@xwiki/cristal-authentication-nextcloud-ui 0.21.0 → 0.22.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/CHANGELOG.md +14 -0
- package/api-extractor.json +4 -0
- package/dist/NextcloudLoginMenu-KxFlJo82.js +121 -0
- package/dist/NextcloudLoginMenu-KxFlJo82.js.map +1 -0
- package/dist/NextcloudLoginMenuUIExtension.d.ts +1 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +23 -197
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +3 -34
- package/dist/index.umd.js.map +1 -1
- package/etc/cristal-authentication-nextcloud-ui.api.md +16 -0
- package/langs/translation-fr.json +8 -8
- package/package.json +17 -15
- package/src/NextcloudLoginMenuUIExtension.ts +1 -0
- package/src/index.ts +3 -0
- package/src/vue/NextcloudLoginMenu.vue +1 -1
- package/vitest.config.ts +1 -1
- package/dist/NextcloudLoginMenu-BFwopT8H.js +0 -1939
- package/dist/NextcloudLoginMenu-BFwopT8H.js.map +0 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,35 +1,4 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".alerts-wrapper[data-v-
|
|
2
|
-
(function(
|
|
3
|
-
/*$vite$:1*/`,document.head.appendChild(
|
|
4
|
-
|
|
5
|
-
Cause:
|
|
6
|
-
|
|
7
|
-
${o.message}
|
|
8
|
-
|
|
9
|
-
Details
|
|
10
|
-
|
|
11
|
-
${function(s){switch(s.kind){case K.method:return`[class: "${s.targetClass.name}", method: "${s.method.toString()}"]`;case K.parameter:return`[class: "${s.targetClass.name}", index: "${s.index.toString()}"]`;case K.property:return`[class: "${s.targetClass.name}", property: "${s.property.toString()}"]`}}(r)}`,{cause:o})}throw o}function Fn(e,t){return(n,o,r)=>{try{r===void 0?function(s,i){const c=Qe(s,i);return(l,f)=>{ue(l.constructor,Ne,Se,Tt(c(l),f))}}(e,t)(n,o):typeof r=="number"?function(s,i){const c=Qe(s,i);return(l,f,d)=>{if(!function(a,u){return typeof a=="function"&&u===void 0}(l,f))throw new T(j.injectionDecoratorConflict,`Found an @inject decorator in a non constructor parameter.
|
|
12
|
-
Found @inject decorator at method "${f?.toString()??""}" at class "${l.constructor.name}"`);ue(l,Ne,Se,function(a,u){return p=>{const g=p.constructorArguments[u];return p.constructorArguments[u]=a(g),p}}(c(l),d))}}(e,t)(n,o,r):function(s,i){const c=Qe(s,i);return(l,f,d)=>{if(!function(a){return a.set!==void 0}(d))throw new T(j.injectionDecoratorConflict,`Found an @inject decorator in a non setter property method.
|
|
13
|
-
Found @inject decorator at method "${f.toString()}" at class "${l.constructor.name}"`);ue(l.constructor,Ne,Se,Tt(c(l),f))}}(e,t)(n,o,r)}catch(s){Pn(n,o,r,s)}}}function Qe(e,t){return n=>{const o=t(n);return r=>(o(r),e(r))}}function Hn(e){return Fn(kn(Y.singleInjection,e),Mn)}(function(e){e[e.method=0]="method",e[e.parameter=1]="parameter",e[e.property=2]="property"})(K||(K={}));const jt="@inversifyjs/core/classIsInjectableFlagReflectKey",Ln=[Array,BigInt,Boolean,Function,Number,Object,String];function Kn(e){const t=Ye(e,"design:paramtypes");t!==void 0&&ue(e,Ne,Se,function(n){return o=>(n.forEach((r,s)=>{var i;o.constructorArguments[s]!==void 0||(i=r,Ln.includes(i))||(o.constructorArguments[s]=function(c){return{isFromTypescriptParamType:!0,kind:Y.singleInjection,name:void 0,optional:!1,tags:new Map,value:c}}(r))}),o)}(t))}function Un(e){return t=>{(function(n){if(Ye(n,jt)!==void 0)throw new T(j.injectionDecoratorConflict,`Cannot apply @injectable decorator multiple times at class "${n.name}"`);Vn(n,jt,!0)})(t),Kn(t)}}var Mt;(function(e){e[e.multipleInjection=0]="multipleInjection",e[e.singleInjection=1]="singleInjection"})(Mt||(Mt={}));var Wn=Object.getOwnPropertyDescriptor,zn=(e,t,n,o)=>{for(var r=o>1?void 0:o?Wn(t,n):t,s=e.length-1,i;s>=0;s--)(i=e[s])&&(r=i(r)||r);return r},Bn=(e,t)=>(n,o)=>t(n,o,e);let Xe=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(()=>Sr)).default}async enabled(){return!await this.authenticationManager.get()?.isAuthenticated()}};Xe=zn([Un(),Bn(0,Hn("AuthenticationManagerProvider"))],Xe);class qn{constructor(t){t.bind("UIExtension").to(Xe).inSingletonScope()}}/**
|
|
14
|
-
* @vue/shared v3.5.18
|
|
15
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
-
* @license MIT
|
|
17
|
-
**//*! #__NO_SIDE_EFFECTS__ */function Jn(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const fe=process.env.NODE_ENV!=="production"?Object.freeze({}):{},Yn=process.env.NODE_ENV!=="production"?Object.freeze([]):[],oe=()=>{},Gn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),k=Object.assign,Qn=Object.prototype.hasOwnProperty,Ze=(e,t)=>Qn.call(e,t),v=Array.isArray,G=e=>De(e)==="[object Map]",$t=e=>De(e)==="[object Set]",y=e=>typeof e=="function",M=e=>typeof e=="string",Q=e=>typeof e=="symbol",b=e=>e!==null&&typeof e=="object",Xn=e=>(b(e)||y(e))&&y(e.then)&&y(e.catch),At=Object.prototype.toString,De=e=>At.call(e),kt=e=>De(e).slice(8,-1),Pt=e=>De(e)==="[object Object]",et=e=>M(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ft=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Zn=/-(\w)/g,Ie=Ft(e=>e.replace(Zn,(t,n)=>n?n.toUpperCase():"")),Ce=Ft(e=>e.charAt(0).toUpperCase()+e.slice(1)),U=(e,t)=>!Object.is(e,t);let Ht;const Re=()=>Ht||(Ht=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function tt(e){if(v(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=M(o)?oo(o):tt(o);if(r)for(const s in r)t[s]=r[s]}return t}else if(M(e)||b(e))return e}const eo=/;(?![^(]*\))/g,to=/:([^]+)/,no=/\/\*[^]*?\*\//g;function oo(e){const t={};return e.replace(no,"").split(eo).forEach(n=>{if(n){const o=n.split(to);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function nt(e){let t="";if(M(e))t=e;else if(v(e))for(let n=0;n<e.length;n++){const o=nt(e[n]);o&&(t+=o+" ")}else if(b(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Lt=e=>!!(e&&e.__v_isRef===!0),Ve=e=>M(e)?e:e==null?"":v(e)||b(e)&&(e.toString===At||!y(e.toString))?Lt(e)?Ve(e.value):JSON.stringify(e,Kt,2):String(e),Kt=(e,t)=>Lt(t)?Kt(e,t.value):G(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],s)=>(n[ot(o,s)+" =>"]=r,n),{})}:$t(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ot(n))}:Q(t)?ot(t):b(t)&&!v(t)&&!Pt(t)?String(t):t,ot=(e,t="")=>{var n;return Q(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
18
|
-
* @vue/reactivity v3.5.18
|
|
19
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
20
|
-
* @license MIT
|
|
21
|
-
**/function W(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let _;const rt=new WeakSet;class ro{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,rt.has(this)&&(rt.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||so(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,qt(this),Wt(this);const t=_,n=C;_=this,C=!0;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&_!==this&&W("Active effect was not restored correctly - this is likely a Vue internal bug."),zt(this),_=t,C=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)at(t);this.deps=this.depsTail=void 0,qt(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?rt.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ct(this)&&this.run()}get dirty(){return ct(this)}}let Ut=0,de,pe;function so(e,t=!1){if(e.flags|=8,t){e.next=pe,pe=e;return}e.next=de,de=e}function st(){Ut++}function it(){if(--Ut>0)return;if(pe){let t=pe;for(pe=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;de;){let t=de;for(de=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function Wt(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function zt(e){let t,n=e.depsTail,o=n;for(;o;){const r=o.prevDep;o.version===-1?(o===n&&(n=r),at(o),co(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=r}e.deps=t,e.depsTail=n}function ct(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(io(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function io(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Te)||(e.globalVersion=Te,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ct(e))))return;e.flags|=2;const t=e.dep,n=_,o=C;_=e,C=!0;try{Wt(e);const r=e.fn(e._value);(t.version===0||U(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{_=n,C=o,zt(e),e.flags&=-3}}function at(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)at(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function co(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let C=!0;const Bt=[];function he(){Bt.push(C),C=!1}function me(){const e=Bt.pop();C=e===void 0?!0:e}function qt(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=_;_=void 0;try{t()}finally{_=n}}}let Te=0;class ao{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Jt{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!_||!C||_===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==_)n=this.activeLink=new ao(_,this),_.deps?(n.prevDep=_.depsTail,_.depsTail.nextDep=n,_.depsTail=n):_.deps=_.depsTail=n,Yt(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=_.depsTail,n.nextDep=void 0,_.depsTail.nextDep=n,_.depsTail=n,_.deps===n&&(_.deps=o)}return process.env.NODE_ENV!=="production"&&_.onTrack&&_.onTrack(k({effect:_},t)),n}trigger(t){this.version++,Te++,this.notify(t)}notify(t){st();try{if(process.env.NODE_ENV!=="production")for(let n=this.subsHead;n;n=n.nextSub)n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(k({effect:n.sub},t));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{it()}}}function Yt(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)Yt(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),process.env.NODE_ENV!=="production"&&e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}const lt=new WeakMap,X=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),ut=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),_e=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function N(e,t,n){if(C&&_){let o=lt.get(e);o||lt.set(e,o=new Map);let r=o.get(n);r||(o.set(n,r=new Jt),r.map=o,r.key=n),process.env.NODE_ENV!=="production"?r.track({target:e,type:t,key:n}):r.track()}}function z(e,t,n,o,r,s){const i=lt.get(e);if(!i){Te++;return}const c=l=>{l&&(process.env.NODE_ENV!=="production"?l.trigger({target:e,type:t,key:n,newValue:o,oldValue:r,oldTarget:s}):l.trigger())};if(st(),t==="clear")i.forEach(c);else{const l=v(e),f=l&&et(n);if(l&&n==="length"){const d=Number(o);i.forEach((a,u)=>{(u==="length"||u===_e||!Q(u)&&u>=d)&&c(a)})}else switch((n!==void 0||i.has(void 0))&&c(i.get(n)),f&&c(i.get(_e)),t){case"add":l?f&&c(i.get("length")):(c(i.get(X)),G(e)&&c(i.get(ut)));break;case"delete":l||(c(i.get(X)),G(e)&&c(i.get(ut)));break;case"set":G(e)&&c(i.get(X));break}}it()}function re(e){const t=h(e);return t===e?t:(N(t,"iterate",_e),S(e)?t:t.map(x))}function ft(e){return N(e=h(e),"iterate",_e),e}const lo={__proto__:null,[Symbol.iterator](){return dt(this,Symbol.iterator,x)},concat(...e){return re(this).concat(...e.map(t=>v(t)?re(t):t))},entries(){return dt(this,"entries",e=>(e[1]=x(e[1]),e))},every(e,t){return P(this,"every",e,t,void 0,arguments)},filter(e,t){return P(this,"filter",e,t,n=>n.map(x),arguments)},find(e,t){return P(this,"find",e,t,x,arguments)},findIndex(e,t){return P(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return P(this,"findLast",e,t,x,arguments)},findLastIndex(e,t){return P(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return P(this,"forEach",e,t,void 0,arguments)},includes(...e){return pt(this,"includes",e)},indexOf(...e){return pt(this,"indexOf",e)},join(e){return re(this).join(e)},lastIndexOf(...e){return pt(this,"lastIndexOf",e)},map(e,t){return P(this,"map",e,t,void 0,arguments)},pop(){return ge(this,"pop")},push(...e){return ge(this,"push",e)},reduce(e,...t){return Gt(this,"reduce",e,t)},reduceRight(e,...t){return Gt(this,"reduceRight",e,t)},shift(){return ge(this,"shift")},some(e,t){return P(this,"some",e,t,void 0,arguments)},splice(...e){return ge(this,"splice",e)},toReversed(){return re(this).toReversed()},toSorted(e){return re(this).toSorted(e)},toSpliced(...e){return re(this).toSpliced(...e)},unshift(...e){return ge(this,"unshift",e)},values(){return dt(this,"values",x)}};function dt(e,t,n){const o=ft(e),r=o[t]();return o!==e&&!S(e)&&(r._next=r.next,r.next=()=>{const s=r._next();return s.value&&(s.value=n(s.value)),s}),r}const uo=Array.prototype;function P(e,t,n,o,r,s){const i=ft(e),c=i!==e&&!S(e),l=i[t];if(l!==uo[t]){const a=l.apply(e,s);return c?x(a):a}let f=n;i!==e&&(c?f=function(a,u){return n.call(this,x(a),u,e)}:n.length>2&&(f=function(a,u){return n.call(this,a,u,e)}));const d=l.call(i,f,o);return c&&r?r(d):d}function Gt(e,t,n,o){const r=ft(e);let s=n;return r!==e&&(S(e)?n.length>3&&(s=function(i,c,l){return n.call(this,i,c,l,e)}):s=function(i,c,l){return n.call(this,i,x(c),l,e)}),r[t](s,...o)}function pt(e,t,n){const o=h(e);N(o,"iterate",_e);const r=o[t](...n);return(r===-1||r===!1)&&$e(n[0])?(n[0]=h(n[0]),o[t](...n)):r}function ge(e,t,n=[]){he(),st();const o=h(e)[t].apply(e,n);return it(),me(),o}const fo=Jn("__proto__,__v_isRef,__isVue"),Qt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Q));function po(e){Q(e)||(e=String(e));const t=h(this);return N(t,"has",e),t.hasOwnProperty(e)}class Xt{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return s;if(n==="__v_raw")return o===(r?s?xo:nn:s?bo:tn).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const i=v(t);if(!r){let l;if(i&&(l=lo[n]))return l;if(n==="hasOwnProperty")return po}const c=Reflect.get(t,n,E(t)?t:o);return(Q(n)?Qt.has(n):fo(n))||(r||N(t,"get",n),s)?c:E(c)?i&&et(n)?c:c.value:b(c)?r?rn(c):on(c):c}}class ho extends Xt{constructor(t=!1){super(!1,t)}set(t,n,o,r){let s=t[n];if(!this._isShallow){const l=F(s);if(!S(o)&&!F(o)&&(s=h(s),o=h(o)),!v(t)&&E(s)&&!E(o))return l?!1:(s.value=o,!0)}const i=v(t)&&et(n)?Number(n)<t.length:Ze(t,n),c=Reflect.set(t,n,o,E(t)?t:r);return t===h(r)&&(i?U(o,s)&&z(t,"set",n,o,s):z(t,"add",n,o)),c}deleteProperty(t,n){const o=Ze(t,n),r=t[n],s=Reflect.deleteProperty(t,n);return s&&o&&z(t,"delete",n,void 0,r),s}has(t,n){const o=Reflect.has(t,n);return(!Q(n)||!Qt.has(n))&&N(t,"has",n),o}ownKeys(t){return N(t,"iterate",v(t)?"length":X),Reflect.ownKeys(t)}}class mo extends Xt{constructor(t=!1){super(!0,t)}set(t,n){return process.env.NODE_ENV!=="production"&&W(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return process.env.NODE_ENV!=="production"&&W(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const _o=new ho,go=new mo,ht=e=>e,je=e=>Reflect.getPrototypeOf(e);function vo(e,t,n){return function(...o){const r=this.__v_raw,s=h(r),i=G(s),c=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,f=r[e](...o),d=n?ht:t?mt:x;return!t&&N(s,"iterate",l?ut:X),{next(){const{value:a,done:u}=f.next();return u?{value:a,done:u}:{value:c?[d(a[0]),d(a[1])]:d(a),done:u}},[Symbol.iterator](){return this}}}}function Me(e){return function(...t){if(process.env.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";W(`${Ce(e)} operation ${n}failed: target is readonly.`,h(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function yo(e,t){const n={get(r){const s=this.__v_raw,i=h(s),c=h(r);e||(U(r,c)&&N(i,"get",r),N(i,"get",c));const{has:l}=je(i),f=t?ht:e?mt:x;if(l.call(i,r))return f(s.get(r));if(l.call(i,c))return f(s.get(c));s!==i&&s.get(r)},get size(){const r=this.__v_raw;return!e&&N(h(r),"iterate",X),Reflect.get(r,"size",r)},has(r){const s=this.__v_raw,i=h(s),c=h(r);return e||(U(r,c)&&N(i,"has",r),N(i,"has",c)),r===c?s.has(r):s.has(r)||s.has(c)},forEach(r,s){const i=this,c=i.__v_raw,l=h(c),f=t?ht:e?mt:x;return!e&&N(l,"iterate",X),c.forEach((d,a)=>r.call(s,f(d),f(a),i))}};return k(n,e?{add:Me("add"),set:Me("set"),delete:Me("delete"),clear:Me("clear")}:{add(r){!t&&!S(r)&&!F(r)&&(r=h(r));const s=h(this);return je(s).has.call(s,r)||(s.add(r),z(s,"add",r,r)),this},set(r,s){!t&&!S(s)&&!F(s)&&(s=h(s));const i=h(this),{has:c,get:l}=je(i);let f=c.call(i,r);f?process.env.NODE_ENV!=="production"&&en(i,c,r):(r=h(r),f=c.call(i,r));const d=l.call(i,r);return i.set(r,s),f?U(s,d)&&z(i,"set",r,s,d):z(i,"add",r,s),this},delete(r){const s=h(this),{has:i,get:c}=je(s);let l=i.call(s,r);l?process.env.NODE_ENV!=="production"&&en(s,i,r):(r=h(r),l=i.call(s,r));const f=c?c.call(s,r):void 0,d=s.delete(r);return l&&z(s,"delete",r,void 0,f),d},clear(){const r=h(this),s=r.size!==0,i=process.env.NODE_ENV!=="production"?G(r)?new Map(r):new Set(r):void 0,c=r.clear();return s&&z(r,"clear",void 0,void 0,i),c}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=vo(r,e,t)}),n}function Zt(e,t){const n=yo(e,t);return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(Ze(n,r)&&r in o?n:o,r,s)}const wo={get:Zt(!1,!1)},Eo={get:Zt(!0,!1)};function en(e,t,n){const o=h(n);if(o!==n&&t.call(e,o)){const r=kt(e);W(`Reactive ${r} contains both the raw and reactive versions of the same object${r==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const tn=new WeakMap,bo=new WeakMap,nn=new WeakMap,xo=new WeakMap;function No(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function So(e){return e.__v_skip||!Object.isExtensible(e)?0:No(kt(e))}function on(e){return F(e)?e:sn(e,!1,_o,wo,tn)}function rn(e){return sn(e,!0,go,Eo,nn)}function sn(e,t,n,o,r){if(!b(e))return process.env.NODE_ENV!=="production"&&W(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=So(e);if(s===0)return e;const i=r.get(e);if(i)return i;const c=new Proxy(e,s===2?o:n);return r.set(e,c),c}function ve(e){return F(e)?ve(e.__v_raw):!!(e&&e.__v_isReactive)}function F(e){return!!(e&&e.__v_isReadonly)}function S(e){return!!(e&&e.__v_isShallow)}function $e(e){return e?!!e.__v_raw:!1}function h(e){const t=e&&e.__v_raw;return t?h(t):e}const x=e=>b(e)?on(e):e,mt=e=>b(e)?rn(e):e;function E(e){return e?e.__v_isRef===!0:!1}function Oo(e){return Do(e,!1)}function Do(e,t){return E(e)?e:new Io(e,t)}class Io{constructor(t,n){this.dep=new Jt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:h(t),this._value=n?t:x(t),this.__v_isShallow=n}get value(){return process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||S(t)||F(t);t=o?t:h(t),U(t,n)&&(this._rawValue=t,this._value=o?t:x(t),process.env.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:n}):this.dep.trigger())}}function R(e){return E(e)?e.value:e}const Ae={},ke=new WeakMap;let Z;function Co(e,t=!1,n=Z){if(n){let o=ke.get(n);o||ke.set(n,o=[]),o.push(e)}else process.env.NODE_ENV!=="production"&&!t&&W("onWatcherCleanup() was called when there was no active watcher to associate with.")}function Ro(e,t,n=fe){const{immediate:o,deep:r,once:s,scheduler:i,augmentJob:c,call:l}=n,f=m=>{(n.onWarn||W)("Invalid watch source: ",m,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},d=m=>r?m:S(m)||r===!1||r===0?B(m,1):B(m);let a,u,p,g,O=!1,$=!1;if(E(e)?(u=()=>e.value,O=S(e)):ve(e)?(u=()=>d(e),O=!0):v(e)?($=!0,O=e.some(m=>ve(m)||S(m)),u=()=>e.map(m=>{if(E(m))return m.value;if(ve(m))return d(m);if(y(m))return l?l(m,2):m();process.env.NODE_ENV!=="production"&&f(m)})):y(e)?t?u=l?()=>l(e,2):e:u=()=>{if(p){he();try{p()}finally{me()}}const m=Z;Z=a;try{return l?l(e,3,[g]):e(g)}finally{Z=m}}:(u=oe,process.env.NODE_ENV!=="production"&&f(e)),t&&r){const m=u,A=r===!0?1/0:r;u=()=>B(m(),A)}const ae=()=>{a.stop()};if(s&&t){const m=t;t=(...A)=>{m(...A),ae()}}let ne=$?new Array(e.length).fill(Ae):Ae;const xe=m=>{if(!(!(a.flags&1)||!a.dirty&&!m))if(t){const A=a.run();if(r||O||($?A.some((Dt,Je)=>U(Dt,ne[Je])):U(A,ne))){p&&p();const Dt=Z;Z=a;try{const Je=[A,ne===Ae?void 0:$&&ne[0]===Ae?[]:ne,g];ne=A,l?l(t,3,Je):t(...Je)}finally{Z=Dt}}}else a.run()};return c&&c(xe),a=new ro(u),a.scheduler=i?()=>i(xe,!1):xe,g=m=>Co(m,!1,a),p=a.onStop=()=>{const m=ke.get(a);if(m){if(l)l(m,4);else for(const A of m)A();ke.delete(a)}},process.env.NODE_ENV!=="production"&&(a.onTrack=n.onTrack,a.onTrigger=n.onTrigger),t?o?xe(!0):ne=a.run():i?i(xe.bind(null,!0),!0):a.run(),ae.pause=a.pause.bind(a),ae.resume=a.resume.bind(a),ae.stop=ae,ae}function B(e,t=1/0,n){if(t<=0||!b(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,E(e))B(e.value,t,n);else if(v(e))for(let o=0;o<e.length;o++)B(e[o],t,n);else if($t(e)||G(e))e.forEach(o=>{B(o,t,n)});else if(Pt(e)){for(const o in e)B(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&B(e[o],t,n)}return e}/**
|
|
22
|
-
* @vue/runtime-core v3.5.18
|
|
23
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
24
|
-
* @license MIT
|
|
25
|
-
**/const ee=[];function Vo(e){ee.push(e)}function To(){ee.pop()}let _t=!1;function w(e,...t){if(_t)return;_t=!0,he();const n=ee.length?ee[ee.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=jo();if(o)Pe(o,n,11,[e+t.map(s=>{var i,c;return(c=(i=s.toString)==null?void 0:i.call(s))!=null?c:JSON.stringify(s)}).join(""),n&&n.proxy,r.map(({vnode:s})=>`at <${In(n,s.type)}>`).join(`
|
|
26
|
-
`),r]);else{const s=[`[Vue warn]: ${e}`,...t];r.length&&s.push(`
|
|
27
|
-
`,...Mo(r)),console.warn(...s)}me(),_t=!1}function jo(){let e=ee[ee.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 Mo(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
|
|
28
|
-
`],...$o(n))}),t}function $o({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,r=` at <${In(e.component,e.type,o)}`,s=">"+n;return e.props?[r,...Ao(e.props),s]:[r+s]}function Ao(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...cn(o,e[o]))}),n.length>3&&t.push(" ..."),t}function cn(e,t,n){return M(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:E(t)?(t=cn(e,h(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):y(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=h(t),n?t:[`${e}=`,t])}const an={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 Pe(e,t,n,o){try{return o?e(...o):e()}catch(r){gt(r,t,n)}}function ln(e,t,n,o){if(y(e)){const r=Pe(e,t,n,o);return r&&Xn(r)&&r.catch(s=>{gt(s,t,n)}),r}if(v(e)){const r=[];for(let s=0;s<e.length;s++)r.push(ln(e[s],t,n,o));return r}else process.env.NODE_ENV!=="production"&&w(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function gt(e,t,n,o=!0){const r=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||fe;if(t){let c=t.parent;const l=t.proxy,f=process.env.NODE_ENV!=="production"?an[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;c;){const d=c.ec;if(d){for(let a=0;a<d.length;a++)if(d[a](e,l,f)===!1)return}c=c.parent}if(s){he(),Pe(s,null,10,[e,l,f]),me();return}}ko(e,n,r,o,i)}function ko(e,t,n,o=!0,r=!1){if(process.env.NODE_ENV!=="production"){const s=an[t];if(n&&Vo(n),w(`Unhandled error${s?` during execution of ${s}`:""}`),n&&To(),o)throw e;console.error(e)}else{if(r)throw e;console.error(e)}}const I=[];let H=-1;const se=[];let q=null,ie=0;const Po=Promise.resolve();let vt=null;const Fo=100;function Ho(e){let t=H+1,n=I.length;for(;t<n;){const o=t+n>>>1,r=I[o],s=ye(r);s<e||s===e&&r.flags&2?t=o+1:n=o}return t}function un(e){if(!(e.flags&1)){const t=ye(e),n=I[I.length-1];!n||!(e.flags&2)&&t>=ye(n)?I.push(e):I.splice(Ho(t),0,e),e.flags|=1,fn()}}function fn(){vt||(vt=Po.then(pn))}function dn(e){v(e)?se.push(...e):q&&e.id===-1?q.splice(ie+1,0,e):e.flags&1||(se.push(e),e.flags|=1),fn()}function Lo(e){if(se.length){const t=[...new Set(se)].sort((n,o)=>ye(n)-ye(o));if(se.length=0,q){q.push(...t);return}for(q=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),ie=0;ie<q.length;ie++){const n=q[ie];process.env.NODE_ENV!=="production"&&hn(e,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}q=null,ie=0}}const ye=e=>e.id==null?e.flags&2?-1:1/0:e.id;function pn(e){process.env.NODE_ENV!=="production"&&(e=e||new Map);const t=process.env.NODE_ENV!=="production"?n=>hn(e,n):oe;try{for(H=0;H<I.length;H++){const n=I[H];if(n&&!(n.flags&8)){if(process.env.NODE_ENV!=="production"&&t(n))continue;n.flags&4&&(n.flags&=-2),Pe(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2)}}}finally{for(;H<I.length;H++){const n=I[H];n&&(n.flags&=-2)}H=-1,I.length=0,Lo(e),vt=null,(I.length||se.length)&&pn(e)}}function hn(e,t){const n=e.get(t)||0;if(n>Fo){const o=t.i,r=o&&Ot(o.type);return gt(`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 yt=new Map;process.env.NODE_ENV!=="production"&&(Re().__VUE_HMR_RUNTIME__={createRecord:wt(Ko),rerender:wt(Uo),reload:wt(Wo)});const Fe=new Map;function Ko(e,t){return Fe.has(e)?!1:(Fe.set(e,{initialDef:He(t),instances:new Set}),!0)}function He(e){return Cn(e)?e.__vccOpts:e}function Uo(e,t){const n=Fe.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(o=>{t&&(o.render=t,He(o.type).render=t),o.renderCache=[],o.update()}))}function Wo(e,t){const n=Fe.get(e);if(!n)return;t=He(t),mn(n.initialDef,t);const o=[...n.instances];for(let r=0;r<o.length;r++){const s=o[r],i=He(s.type);let c=yt.get(i);c||(i!==n.initialDef&&mn(i,t),yt.set(i,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?un(()=>{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(i)}dn(()=>{yt.clear()})}function mn(e,t){k(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function wt(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 J,we=[],Et=!1;function zo(e,...t){J?J.emit(e,...t):Et||we.push({event:e,args:t})}function _n(e,t){var n,o;J=e,J?(J.enabled=!0,we.forEach(({event:r,args:s})=>J.emit(r,...s)),we=[]):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=>{_n(s,t)}),setTimeout(()=>{J||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Et=!0,we=[])},3e3)):(Et=!0,we=[])}const Bo=qo("component:updated");/*! #__NO_SIDE_EFFECTS__ */function qo(e){return t=>{zo(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}let V=null,gn=null;function vn(e){const t=V;return V=e,gn=e&&e.type.__scopeId||null,t}function ce(e,t=V,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Nn(-1);const s=vn(t);let i;try{i=e(...r)}finally{vn(s),o._d&&Nn(1)}return process.env.NODE_ENV!=="production"&&Bo(t),i};return o._n=!0,o._c=!0,o._d=!0,o}const Jo=e=>e.__isTeleport;function yn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,yn(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 Yo(e,t){return y(e)?k({name:e.name},t,{setup:e}):e}Re().requestIdleCallback,Re().cancelIdleCallback;const Go="components";function Ee(e,t){return Xo(Go,e,!0,t)||e}const Qo=Symbol.for("v-ndc");function Xo(e,t,n=!0,o=!1){const r=V||qe;if(r){const s=r.type;{const c=Ot(s,!1);if(c&&(c===t||c===Ie(t)||c===Ce(Ie(t))))return s}const i=wn(r[e]||s[e],t)||wn(r.appContext[e],t);return!i&&o?s:(process.env.NODE_ENV!=="production"&&n&&!i&&w(`Failed to resolve ${e.slice(0,-1)}: ${t}
|
|
29
|
-
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`),i)}else process.env.NODE_ENV!=="production"&&w(`resolve${Ce(e.slice(0,-1))} can only be used in render() or setup().`)}function wn(e,t){return e&&(e[t]||e[Ie(t)]||e[Ce(Ie(t))])}const Zo={};process.env.NODE_ENV!=="production"&&(Zo.ownKeys=e=>(w("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 er=null;function En(e,t,n=!1){const o=gr();if(o||er){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&&y(t)?t.call(o&&o.proxy):t;process.env.NODE_ENV!=="production"&&w(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!=="production"&&w("inject() can only be used inside setup() or functional components.")}const tr={},bn=e=>Object.getPrototypeOf(e)===tr,nr=ar,or=Symbol.for("v-scx"),rr=()=>{{const e=En(or);return e||process.env.NODE_ENV!=="production"&&w("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function sr(e,t,n){return process.env.NODE_ENV!=="production"&&!y(t)&&w("`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."),ir(e,t,n)}function ir(e,t,n=fe){const{immediate:o,deep:r,flush:s,once:i}=n;process.env.NODE_ENV!=="production"&&!t&&(o!==void 0&&w('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&w('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&w('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const c=k({},n);process.env.NODE_ENV!=="production"&&(c.onWarn=w);const l=t&&o||!t&&s!=="post";let f;if(St){if(s==="sync"){const p=rr();f=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=oe,p.resume=oe,p.pause=oe,p}}const d=qe;c.call=(p,g,O)=>ln(p,d,g,O);let a=!1;s==="post"?c.scheduler=p=>{nr(p,d&&d.suspense)}:s!=="sync"&&(a=!0,c.scheduler=(p,g)=>{g?p():un(p)}),c.augmentJob=p=>{t&&(p.flags|=4),a&&(p.flags|=2,d&&(p.id=d.uid,p.i=d))};const u=Ro(e,t,c);return St&&(f?f.push(u):l&&u()),u}const cr=e=>e.__isSuspense;function ar(e,t){t&&t.pendingBranch?v(e)?t.effects.push(...e):t.effects.push(e):dn(e)}const xn=Symbol.for("v-fgt"),lr=Symbol.for("v-txt"),bt=Symbol.for("v-cmt"),Le=[];let D=null;function Ke(e=!1){Le.push(D=e?null:[])}function ur(){Le.pop(),D=Le[Le.length-1]||null}let be=1;function Nn(e,t=!1){be+=e,e<0&&D&&t&&(D.hasOnce=!0)}function fr(e){return e.dynamicChildren=be>0?D||Yn:null,ur(),be>0&&D&&D.push(e),e}function Ue(e,t,n,o,r){return fr(te(e,t,n,o,r,!0))}function dr(e){return e?e.__v_isVNode===!0:!1}const pr=(...e)=>On(...e),Sn=({key:e})=>e??null,We=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?M(e)||E(e)||y(e)?{i:V,r:e,k:t,f:!!n}:e:null);function xt(e,t=null,n=null,o=0,r=null,s=e===xn?0:1,i=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Sn(t),ref:t&&We(t),scopeId:gn,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:V};return c?(Nt(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=M(n)?8:16),process.env.NODE_ENV!=="production"&&l.key!==l.key&&w("VNode created with invalid key (NaN). VNode type:",l.type),be>0&&!i&&D&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&D.push(l),l}const te=process.env.NODE_ENV!=="production"?pr:On;function On(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===Qo)&&(process.env.NODE_ENV!=="production"&&!e&&w(`Invalid vnode type when creating vnode: ${e}.`),e=bt),dr(e)){const c=ze(e,t,!0);return n&&Nt(c,n),be>0&&!s&&D&&(c.shapeFlag&6?D[D.indexOf(e)]=c:D.push(c)),c.patchFlag=-2,c}if(Cn(e)&&(e=e.__vccOpts),t){t=hr(t);let{class:c,style:l}=t;c&&!M(c)&&(t.class=nt(c)),b(l)&&($e(l)&&!v(l)&&(l=k({},l)),t.style=tt(l))}const i=M(e)?1:cr(e)?128:Jo(e)?64:b(e)?4:y(e)?2:0;return process.env.NODE_ENV!=="production"&&i&4&&$e(e)&&(e=h(e),w("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`.",`
|
|
30
|
-
Component that was made reactive: `,e)),xt(e,t,n,o,r,i,s,!0)}function hr(e){return e?$e(e)||bn(e)?k({},e):e:null}function ze(e,t,n=!1,o=!1){const{props:r,ref:s,patchFlag:i,children:c,transition:l}=e,f=t?_r(r||{},t):r,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&Sn(f),ref:t&&t.ref?n&&s?v(s)?s.concat(We(t)):[s,We(t)]:We(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&i===-1&&v(c)?c.map(Dn):c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xn?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ze(e.ssContent),ssFallback:e.ssFallback&&ze(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&o&&yn(d,l.clone(d)),d}function Dn(e){const t=ze(e);return v(e.children)&&(t.children=e.children.map(Dn)),t}function Be(e=" ",t=0){return te(lr,null,e,t)}function mr(e="",t=!1){return t?(Ke(),Ue(bt,null,e)):te(bt,null,e)}function Nt(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(v(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Nt(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!bn(t)?t._ctx=V:r===3&&V&&(V.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else y(t)?(t={default:t,_ctx:V},n=32):(t=String(t),o&64?(n=16,t=[Be(t)]):n=8);e.children=t,e.shapeFlag|=n}function _r(...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=nt([t.class,o.class]));else if(r==="style")t.style=tt([t.style,o.style]);else if(Gn(r)){const s=t[r],i=o[r];i&&s!==i&&!(v(s)&&s.includes(i))&&(t[r]=s?[].concat(s,i):i)}else r!==""&&(t[r]=o[r])}return t}let qe=null;const gr=()=>qe||V;{const e=Re(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),s=>{r.length>1?r.forEach(i=>i(s)):r[0](s)}};t("__VUE_INSTANCE_SETTERS__",n=>qe=n),t("__VUE_SSR_SETTERS__",n=>St=n)}let St=!1;process.env.NODE_ENV;const vr=/(?:^|[-_])(\w)/g,yr=e=>e.replace(vr,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ot(e,t=!0){return y(e)?e.displayName||e.name:e.name||t&&e.__name}function In(e,t,n=!1){let o=Ot(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 i in s)if(s[i]===t)return i};o=r(e.components||e.parent.type.components)||r(e.appContext.components)}return o?yr(o):n?"App":"Anonymous"}function Cn(e){return y(e)&&"__vccOpts"in e}function wr(){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(a){if(!b(a))return null;if(a.__isVue)return["div",e,"VueInstance"];if(E(a)){he();const u=a.value;return me(),["div",{},["span",e,d(a)],"<",c(u),">"]}else{if(ve(a))return["div",{},["span",e,S(a)?"ShallowReactive":"Reactive"],"<",c(a),`>${F(a)?" (readonly)":""}`];if(F(a))return["div",{},["span",e,S(a)?"ShallowReadonly":"Readonly"],"<",c(a),">"]}return null},hasBody(a){return a&&a.__isVue},body(a){if(a&&a.__isVue)return["div",{},...s(a.$)]}};function s(a){const u=[];a.type.props&&a.props&&u.push(i("props",h(a.props))),a.setupState!==fe&&u.push(i("setup",a.setupState)),a.data!==fe&&u.push(i("data",h(a.data)));const p=l(a,"computed");p&&u.push(i("computed",p));const g=l(a,"inject");return g&&u.push(i("injected",g)),u.push(["div",{},["span",{style:o.style+";opacity:0.66"},"$ (internal): "],["object",{object:a}]]),u}function i(a,u){return u=k({},u),Object.keys(u).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},a],["div",{style:"padding-left:1.25em"},...Object.keys(u).map(p=>["div",{},["span",o,p+": "],c(u[p],!1)])]]:["span",{}]}function c(a,u=!0){return typeof a=="number"?["span",t,a]:typeof a=="string"?["span",n,JSON.stringify(a)]:typeof a=="boolean"?["span",o,a]:b(a)?["object",{object:u?h(a):a}]:["span",n,String(a)]}function l(a,u){const p=a.type;if(y(p))return;const g={};for(const O in a.ctx)f(p,O,u)&&(g[O]=a.ctx[O]);return g}function f(a,u,p){const g=a[p];if(v(g)&&g.includes(u)||b(g)&&u in g||a.extends&&f(a.extends,u,p)||a.mixins&&a.mixins.some(O=>f(O,u,p)))return!0}function d(a){return S(a)?"ShallowRef":a.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;/**
|
|
31
|
-
* vue v3.5.18
|
|
32
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
33
|
-
* @license MIT
|
|
34
|
-
**/function Er(){wr()}process.env.NODE_ENV!=="production"&&Er();const br={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","authentication.nextcloud.modal.error.invalid":"Invalid username or password.","authentication.nextcloud.modal.error.generic":"Login check failed. Response status: {status}."},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","authentication.nextcloud.modal.error.invalid":"Nom d'utilisateur ou mot de passe invalide.","authentication.nextcloud.modal.error.generic":"Échec de la vérification de connexion. Status de la réponse: {status}."}},xr={class:"alerts-wrapper"},Nr={class:"alerts"},Sr=Object.freeze(Object.defineProperty({__proto__:null,default:((e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n})(Yo({__name:"NextcloudLoginMenu",setup(e){const{t}=Rn.useI18n({messages:br}),o=En("cristal").getContainer().get(le.NextcloudAuthenticationState),r=o.modalOpened,s=o.username,i=o.password,c=Oo(void 0);async function l(){const f=await o.callback();f.success||(c.value=f.status)}return sr(o.modalOpened,async(f,d)=>{f&&!d&&(o.username.value="",o.password.value="",c.value=void 0)}),(f,d)=>{const a=Ee("x-alert"),u=Ee("x-text-field"),p=Ee("x-form"),g=Ee("x-btn"),O=Ee("x-dialog");return Ke(),Ue(O,{modelValue:R(r),"onUpdate:modelValue":d[2]||(d[2]=$=>E(r)?r.value=$:null),width:"auto",title:R(t)("authentication.nextcloud.modal.title")},{default:ce(()=>[xt("div",xr,[xt("div",Nr,[c.value===401?(Ke(),Ue(a,{key:0,type:"error"},{default:ce(()=>[Be(Ve(R(t)("authentication.nextcloud.modal.error.invalid")),1)]),_:1})):c.value!==void 0?(Ke(),Ue(a,{key:1,type:"error"},{default:ce(()=>[Be(Ve(R(t)("authentication.nextcloud.modal.error.generic",{status:c.value})),1)]),_:1})):mr("",!0)])]),te(p,{id:"nextcloud-login-form",onSubmit:l},{default:ce(()=>[te(u,{modelValue:R(s),"onUpdate:modelValue":d[0]||(d[0]=$=>E(s)?s.value=$:null),label:R(t)("authentication.nextcloud.modal.username.label"),help:R(t)("authentication.nextcloud.modal.username.help"),autofocus:"",required:""},null,8,["modelValue","label","help"]),te(u,{modelValue:R(i),"onUpdate:modelValue":d[1]||(d[1]=$=>E(i)?i.value=$:null),type:"password",label:R(t)("authentication.nextcloud.modal.password.label"),help:R(t)("authentication.nextcloud.modal.password.help")},null,8,["modelValue","label","help"])]),_:1})]),footer:ce(()=>[te(g,{variant:"primary",type:"submit",form:"nextcloud-login-form"},{default:ce(()=>[Be(Ve(R(t)("authentication.nextcloud.modal.submit.label")),1)]),_:1})]),_:1},8,["modelValue","title"])}}}),[["__scopeId","data-v-212d5fe6"]])},Symbol.toStringTag,{value:"Module"}));L.ComponentInit=qn,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".alerts-wrapper[data-v-9d125113]{display:flex}.alerts[data-v-9d125113]{flex-grow:1;width:0}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
+
(function(a,c){typeof exports=="object"&&typeof module<"u"?c(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"],c):(a=typeof globalThis<"u"?globalThis:a||self,c(a["cristal_authentication-nextcloud-ui"]={},a.inversify,a.Vue,a.cristalAuthenticationNextcloudState,a.vueI18n))})(this,(function(a,c,e,w,g){"use strict";var h=document.createElement("style");h.textContent=`.alerts-wrapper[data-v-9d125113]{display:flex}.alerts[data-v-9d125113]{flex-grow:1;width:0}
|
|
3
|
+
/*$vite$:1*/`,document.head.appendChild(h);var b=Object.getOwnPropertyDescriptor,y=(o,t,r,n)=>{for(var i=n>1?void 0:n?b(t,r):t,s=o.length-1,d;s>=0;s--)(d=o[s])&&(i=d(i)||i);return i},N=(o,t)=>(r,n)=>t(r,n,o);let x=class{constructor(o){this.authenticationManager=o}id="sidebar.actions.nextcloudLoginMenu";uixpName="sidebar.actions";order=2100;parameters={};async component(){return(await Promise.resolve().then(()=>k)).default}async enabled(){return!await this.authenticationManager.get()?.isAuthenticated()}};x=y([c.injectable(),N(0,c.inject("AuthenticationManagerProvider"))],x);class C{constructor(t){t.bind("UIExtension").to(x).inSingletonScope()}}const V={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","authentication.nextcloud.modal.error.invalid":"Invalid username or password.","authentication.nextcloud.modal.error.generic":"Login check failed. Response status: {status}."},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","authentication.nextcloud.modal.error.invalid":"Nom d'utilisateur ou mot de passe non valide.","authentication.nextcloud.modal.error.generic":"Échec d’authentification. Statut de la réponse : {status}."}},S={class:"alerts-wrapper"},M={class:"alerts"},k=Object.freeze(Object.defineProperty({__proto__:null,default:((o,t)=>{const r=o.__vccOpts||o;for(const[n,i]of t)r[n]=i;return r})(e.defineComponent({__name:"NextcloudLoginMenu",setup(o){const{t}=g.useI18n({messages:V}),n=e.inject("cristal").getContainer().get(w.NextcloudAuthenticationState),i=n.modalOpened,s=n.username,d=n.password,u=e.ref(void 0);async function I(){const m=await n.callback();m.success||(u.value=m.status)}return e.watch(n.modalOpened,async(m,l)=>{m&&!l&&(n.username.value="",n.password.value="",u.value=void 0)}),(m,l)=>{const f=e.resolveComponent("x-alert"),_=e.resolveComponent("x-text-field"),O=e.resolveComponent("x-form"),L=e.resolveComponent("x-btn"),j=e.resolveComponent("x-dialog");return e.openBlock(),e.createBlock(j,{modelValue:e.unref(i),"onUpdate:modelValue":l[2]||(l[2]=p=>e.isRef(i)?i.value=p:null),width:"auto",title:e.unref(t)("authentication.nextcloud.modal.title")},{default:e.withCtx(()=>[e.createElementVNode("div",S,[e.createElementVNode("div",M,[u.value===401?(e.openBlock(),e.createBlock(f,{key:0,type:"error"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("authentication.nextcloud.modal.error.invalid")),1)]),_:1})):u.value!==void 0?(e.openBlock(),e.createBlock(f,{key:1,type:"error"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("authentication.nextcloud.modal.error.generic",{status:u.value})),1)]),_:1})):e.createCommentVNode("",!0)])]),e.createVNode(O,{id:"nextcloud-login-form",onSubmit:I},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:e.unref(s),"onUpdate:modelValue":l[0]||(l[0]=p=>e.isRef(s)?s.value=p: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(_,{modelValue:e.unref(d),"onUpdate:modelValue":l[1]||(l[1]=p=>e.isRef(d)?d.value=p: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})]),footer:e.withCtx(()=>[e.createVNode(L,{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"])}}}),[["__scopeId","data-v-9d125113"]])},Symbol.toStringTag,{value:"Module"}));a.ComponentInit=C,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})}));
|
|
35
4
|
//# sourceMappingURL=index.umd.js.map
|