From b2647ebca9c8f3c7534016688bd52541063b32a9 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Tue, 12 Jul 2022 20:02:54 +0300 Subject: [PATCH] synced refresh button js timeout with the css animation --- ...nput.1d8e6916.js => FilterAutocompleteInput.74e47ed9.js} | 2 +- ...cdb9bd8.js => PageAdminConfirmPasswordReset.c1f3d524.js} | 2 +- ...e9c0c72.js => PageAdminRequestPasswordReset.476701ad.js} | 2 +- ...e.f421d2c0.js => PageUserConfirmEmailChange.374260dd.js} | 2 +- ...eb6a6644.js => PageUserConfirmPasswordReset.f8d56892.js} | 2 +- ....ac16c5b9.js => PageUserConfirmVerification.69125db3.js} | 2 +- ui/dist/assets/{index.7bea617e.js => index.a233f6f4.js} | 6 +++--- ui/dist/index.html | 2 +- ui/src/components/base/RefreshButton.svelte | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) rename ui/dist/assets/{FilterAutocompleteInput.1d8e6916.js => FilterAutocompleteInput.74e47ed9.js} (99%) rename ui/dist/assets/{PageAdminConfirmPasswordReset.acdb9bd8.js => PageAdminConfirmPasswordReset.c1f3d524.js} (98%) rename ui/dist/assets/{PageAdminRequestPasswordReset.0e9c0c72.js => PageAdminRequestPasswordReset.476701ad.js} (98%) rename ui/dist/assets/{PageUserConfirmEmailChange.f421d2c0.js => PageUserConfirmEmailChange.374260dd.js} (98%) rename ui/dist/assets/{PageUserConfirmPasswordReset.eb6a6644.js => PageUserConfirmPasswordReset.f8d56892.js} (98%) rename ui/dist/assets/{PageUserConfirmVerification.ac16c5b9.js => PageUserConfirmVerification.69125db3.js} (97%) rename ui/dist/assets/{index.7bea617e.js => index.a233f6f4.js} (99%) diff --git a/ui/dist/assets/FilterAutocompleteInput.1d8e6916.js b/ui/dist/assets/FilterAutocompleteInput.74e47ed9.js similarity index 99% rename from ui/dist/assets/FilterAutocompleteInput.1d8e6916.js rename to ui/dist/assets/FilterAutocompleteInput.74e47ed9.js index 29a66a8d..6dc4ab05 100644 --- a/ui/dist/assets/FilterAutocompleteInput.1d8e6916.js +++ b/ui/dist/assets/FilterAutocompleteInput.74e47ed9.js @@ -1,4 +1,4 @@ -import{S as Sa,i as va,s as Ca,e as Aa,f as Ma,g as Da,y as xn,o as Oa,G as Ta,H as Ba,I as Ra,P as Pa,J as La,C as kn,K as Ea}from"./index.7bea617e.js";class z{constructor(){}lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){let s=[];return this.decompose(0,e,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(t,this.length,s,1),Ve.from(s,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let i=[];return this.decompose(e,t,i,0),Ve.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),s=new Zt(this),r=new Zt(e);for(let o=t,l=t;;){if(s.next(o),r.next(o),o=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return!1;if(l+=s.value.length,s.done||l>=i)return!0}}iter(e=1){return new Zt(this,e)}iterRange(e,t=this.length){return new zo(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let s=this.line(e).from;i=this.iterRange(s,Math.max(s,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new qo(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?z.empty:e.length<=32?new Q(e):Ve.from(Q.split(e,[]))}}class Q extends z{constructor(e,t=Ia(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.text[r],l=s+o.length;if((t?i:l)>=e)return new Na(s,l,i,o);s=l+1,i++}}decompose(e,t,i,s){let r=e<=0&&t>=this.length?this:new Q(hr(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(s&1){let o=i.pop(),l=Pi(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new Q(l,o.length+r.length));else{let h=l.length>>1;i.push(new Q(l.slice(0,h)),new Q(l.slice(h)))}}else i.push(r)}replace(e,t,i){if(!(i instanceof Q))return super.replace(e,t,i);let s=Pi(this.text,Pi(i.text,hr(this.text,0,e)),t),r=this.length+i.length-(t-e);return s.length<=32?new Q(s,r):Ve.from(Q.split(s,[]),r)}sliceString(e,t=this.length,i=` +import{S as Sa,i as va,s as Ca,e as Aa,f as Ma,g as Da,y as xn,o as Oa,G as Ta,H as Ba,I as Ra,P as Pa,J as La,C as kn,K as Ea}from"./index.a233f6f4.js";class z{constructor(){}lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){let s=[];return this.decompose(0,e,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(t,this.length,s,1),Ve.from(s,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let i=[];return this.decompose(e,t,i,0),Ve.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),s=new Zt(this),r=new Zt(e);for(let o=t,l=t;;){if(s.next(o),r.next(o),o=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return!1;if(l+=s.value.length,s.done||l>=i)return!0}}iter(e=1){return new Zt(this,e)}iterRange(e,t=this.length){return new zo(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let s=this.line(e).from;i=this.iterRange(s,Math.max(s,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new qo(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?z.empty:e.length<=32?new Q(e):Ve.from(Q.split(e,[]))}}class Q extends z{constructor(e,t=Ia(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.text[r],l=s+o.length;if((t?i:l)>=e)return new Na(s,l,i,o);s=l+1,i++}}decompose(e,t,i,s){let r=e<=0&&t>=this.length?this:new Q(hr(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(s&1){let o=i.pop(),l=Pi(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new Q(l,o.length+r.length));else{let h=l.length>>1;i.push(new Q(l.slice(0,h)),new Q(l.slice(h)))}}else i.push(r)}replace(e,t,i){if(!(i instanceof Q))return super.replace(e,t,i);let s=Pi(this.text,Pi(i.text,hr(this.text,0,e)),t),r=this.length+i.length-(t-e);return s.length<=32?new Q(s,r):Ve.from(Q.split(s,[]),r)}sliceString(e,t=this.length,i=` `){let s="";for(let r=0,o=0;r<=t&&oe&&o&&(s+=i),er&&(s+=l.slice(Math.max(0,e-r),t-r)),r=h+1}return s}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],s=-1;for(let r of e)i.push(r),s+=r.length+1,i.length==32&&(t.push(new Q(i,s)),i=[],s=-1);return s>-1&&t.push(new Q(i,s)),t}}class Ve extends z{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.children[r],l=s+o.length,h=i+o.lines-1;if((t?h:l)>=e)return o.lineInner(e,t,i,s);s=l+1,i=h+1}}decompose(e,t,i,s){for(let r=0,o=0;o<=t&&r=o){let a=s&((o<=e?1:0)|(h>=t?2:0));o>=e&&h<=t&&!a?i.push(l):l.decompose(e-o,t-o,i,a)}o=h+1}}replace(e,t,i){if(i.lines=r&&t<=l){let h=o.replace(e-r,t-r,i),a=this.lines-o.lines+h.lines;if(h.lines>5-1&&h.lines>a>>5+1){let c=this.children.slice();return c[s]=h,new Ve(c,this.length-(t-e)+i.length)}return super.replace(r,l,h)}r=l+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=` `){let s="";for(let r=0,o=0;re&&r&&(s+=i),eo&&(s+=l.sliceString(e-o,t-o,i)),o=h+1}return s}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Ve))return 0;let i=0,[s,r,o,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;s+=t,r+=t){if(s==o||r==l)return i;let h=this.children[s],a=e.children[r];if(h!=a)return i+h.scanIdentical(a,t);i+=h.length+1}}static from(e,t=e.reduce((i,s)=>i+s.length+1,-1)){let i=0;for(let d of e)i+=d.lines;if(i<32){let d=[];for(let p of e)p.flatten(d);return new Q(d,t)}let s=Math.max(32,i>>5),r=s<<1,o=s>>1,l=[],h=0,a=-1,c=[];function f(d){let p;if(d.lines>r&&d instanceof Ve)for(let g of d.children)f(g);else d.lines>o&&(h>o||!h)?(u(),l.push(d)):d instanceof Q&&h&&(p=c[c.length-1])instanceof Q&&d.lines+p.lines<=32?(h+=d.lines,a+=d.length+1,c[c.length-1]=new Q(p.text.concat(d.text),p.length+1+d.length)):(h+d.lines>s&&u(),h+=d.lines,a+=d.length+1,c.push(d))}function u(){h!=0&&(l.push(c.length==1?c[0]:Ve.from(c,a)),a=-1,h=c.length=0)}for(let d of e)f(d);return u(),l.length==1?l[0]:new Ve(l,t)}}z.empty=new Q([""],0);function Ia(n){let e=-1;for(let t of n)e+=t.length+1;return e}function Pi(n,e,t=0,i=1e9){for(let s=0,r=0,o=!0;r=t&&(h>i&&(l=l.slice(0,i-s)),s0?1:(e instanceof Q?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,s=this.nodes[i],r=this.offsets[i],o=r>>1,l=s instanceof Q?s.text.length:s.children.length;if(o==(t>0?l:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=` `,this;e--}else if(s instanceof Q){let h=s.text[o+(t<0?-1:0)];if(this.offsets[i]+=t,h.length>Math.max(0,e))return this.value=e==0?h:t>0?h.slice(e):h.slice(0,h.length-e),this;e-=h.length}else{let h=s.children[o+(t<0?-1:0)];e>h.length?(e-=h.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(h),this.offsets.push(t>0?1:(h instanceof Q?h.text.length:h.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class zo{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new Zt(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:s}=this.cursor.next(e);return this.pos+=(s.length+e)*t,this.value=s.length<=i?s:t<0?s.slice(s.length-i):s.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class qo{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:s}=this.inner.next(e);return t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=s,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol!="undefined"&&(z.prototype[Symbol.iterator]=function(){return this.iter()},Zt.prototype[Symbol.iterator]=zo.prototype[Symbol.iterator]=qo.prototype[Symbol.iterator]=function(){return this});class Na{constructor(e,t,i,s){this.from=e,this.to=t,this.number=i,this.text=s}get length(){return this.to-this.from}}let Dt="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(n=>n?parseInt(n,36):1);for(let n=1;nn)return Dt[e-1]<=n;return!1}function ar(n){return n>=127462&&n<=127487}const cr=8205;function Ae(n,e,t=!0,i=!0){return(t?Ko:Fa)(n,e,i)}function Ko(n,e,t){if(e==n.length)return e;e&&Uo(n.charCodeAt(e))&&jo(n.charCodeAt(e-1))&&e--;let i=re(n,e);for(e+=ve(i);e=0&&ar(re(n,o));)r++,o-=2;if(r%2==0)break;e+=2}else break}return e}function Fa(n,e,t){for(;e>0;){let i=Ko(n,e-2,t);if(i=56320&&n<57344}function jo(n){return n>=55296&&n<56320}function re(n,e){let t=n.charCodeAt(e);if(!jo(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return Uo(i)?(t-55296<<10)+(i-56320)+65536:t}function Rs(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function ve(n){return n<65536?1:2}const Kn=/\r\n?|\n/;var me=function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n}(me||(me={}));class We{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return r+(e-s);r+=l}else{if(i!=me.Simple&&a>=e&&(i==me.TrackDel&&se||i==me.TrackBefore&&se))return null;if(a>e||a==e&&t<0&&!l)return e==s||t<0?r:r+h;r+=h}s=a}if(e>s)throw new RangeError(`Position ${e} is out of range for changeset of length ${s}`);return r}touchesRange(e,t=e){for(let i=0,s=0;i=0&&s<=t&&l>=e)return st?"cover":!0;s=l}return!1}toString(){let e="";for(let t=0;t=0?":"+s:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new We(e)}static create(e){return new We(e)}}class ee extends We{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Un(this,(t,i,s,r,o)=>e=e.replace(s,s+(i-t),o),!1),e}mapDesc(e,t=!1){return jn(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let s=0,r=0;s=0){t[s]=l,t[s+1]=o;let h=s>>1;for(;i.length0&&Ye(i,t,r.text),r.forward(c),l+=c}let a=e[o++];for(;l>1].toJSON()))}return e}static of(e,t,i){let s=[],r=[],o=0,l=null;function h(c=!1){if(!c&&!s.length)return;ou||f<0||u>t)throw new RangeError(`Invalid change range ${f} to ${u} (in doc of length ${t})`);let p=d?typeof d=="string"?z.of(d.split(i||Kn)):d:z.empty,g=p.length;if(f==u&&g==0)return;fo&&he(s,f-o,-1),he(s,u-f,g),Ye(r,s,p),o=u}}return a(e),h(!l),l}static empty(e){return new ee(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let s=0;sl&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)t.push(r[0],0);else{for(;i.length=0&&t<=0&&t==n[s+1]?n[s]+=e:e==0&&n[s]==0?n[s+1]+=t:i?(n[s]+=e,n[s+1]+=t):n.push(e,t)}function Ye(n,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i>1])),!(t||o==n.sections.length||n.sections[o+1]<0);)l=n.sections[o++],h=n.sections[o++];e(s,a,r,c,f),s=a,r=c}}}function jn(n,e,t,i=!1){let s=[],r=i?[]:null,o=new si(n),l=new si(e);for(let h=-1;;)if(o.ins==-1&&l.ins==-1){let a=Math.min(o.len,l.len);he(s,a,-1),o.forward(a),l.forward(a)}else if(l.ins>=0&&(o.ins<0||h==o.i||o.off==0&&(l.len=0&&h=0){let a=0,c=o.len;for(;c;)if(l.ins==-1){let f=Math.min(c,l.len);a+=f,c-=f,l.forward(f)}else if(l.ins==0&&l.lenh||o.ins>=0&&o.len>h)&&(l||i.length>a),r.forward2(h),o.forward(h)}}}}class si{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?z.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?z.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class ct{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return this.flags&16?this.to:this.from}get head(){return this.flags&16?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&4?-1:this.flags&8?1:0}get bidiLevel(){let e=this.flags&3;return e==3?null:e}get goalColumn(){let e=this.flags>>5;return e==33554431?void 0:e}map(e,t=-1){let i,s;return this.empty?i=s=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),s=e.mapPos(this.to,-1)),i==this.from&&s==this.to?this:new ct(i,s,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return m.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return m.range(this.anchor,i)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return m.range(e.anchor,e.head)}static create(e,t,i){return new ct(e,t,i)}}class m{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:m.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;te.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new m(e.ranges.map(t=>ct.fromJSON(t)),e.main)}static single(e,t=e){return new m([m.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,s=0;se?4:0))}static normalized(e,t=0){let i=e[t];e.sort((s,r)=>s.from-r.from),t=e.indexOf(i);for(let s=1;sr.head?m.range(h,l):m.range(l,h))}}return new m(e,t)}}function Jo(n,e){for(let t of n.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let Ps=0;class T{constructor(e,t,i,s,r){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=s,this.id=Ps++,this.default=e([]),this.extensions=typeof r=="function"?r(this):r}static define(e={}){return new T(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:Ls),!!e.static,e.enables)}of(e){return new Li([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Li(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Li(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function Ls(n,e){return n==e||n.length==e.length&&n.every((t,i)=>t===e[i])}class Li{constructor(e,t,i,s){this.dependencies=e,this.facet=t,this.type=i,this.value=s,this.id=Ps++}dynamicSlot(e){var t;let i=this.value,s=this.facet.compareInput,r=this.id,o=e[r]>>1,l=this.type==2,h=!1,a=!1,c=[];for(let f of this.dependencies)f=="doc"?h=!0:f=="selection"?a=!0:(((t=e[f.id])!==null&&t!==void 0?t:1)&1)==0&&c.push(e[f.id]);return{create(f){return f.values[o]=i(f),1},update(f,u){if(h&&u.docChanged||a&&(u.docChanged||u.selection)||Gn(f,c)){let d=i(f);if(l?!fr(d,f.values[o],s):!s(d,f.values[o]))return f.values[o]=d,1}return 0},reconfigure:(f,u)=>{let d=i(f),p=u.config.address[r];if(p!=null){let g=Fi(u,p);if(this.dependencies.every(y=>y instanceof T?u.facet(y)===f.facet(y):y instanceof ke?u.field(y,!1)==f.field(y,!1):!0)||(l?fr(d,g,s):s(d,g)))return f.values[o]=g,0}return f.values[o]=d,1}}}}function fr(n,e,t){if(n.length!=e.length)return!1;for(let i=0;in[h.id]),s=t.map(h=>h.type),r=i.filter(h=>!(h&1)),o=n[e.id]>>1;function l(h){let a=[];for(let c=0;ci===s),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(ur).find(i=>i.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,s)=>{let r=i.values[t],o=this.updateF(r,s);return this.compareF(r,o)?0:(i.values[t]=o,1)},reconfigure:(i,s)=>s.config.address[this.id]!=null?(i.values[t]=s.field(this),0):(i.values[t]=this.create(i),1)}}init(e){return[this,ur.of({field:this,create:e})]}get extension(){return this}}const Ct={lowest:4,low:3,default:2,high:1,highest:0};function Kt(n){return e=>new $o(e,n)}const Wt={highest:Kt(Ct.highest),high:Kt(Ct.high),default:Kt(Ct.default),low:Kt(Ct.low),lowest:Kt(Ct.lowest)};class $o{constructor(e,t){this.inner=e,this.prec=t}}class _e{of(e){return new Jn(this,e)}reconfigure(e){return _e.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Jn{constructor(e,t){this.compartment=e,this.inner=t}}class Vi{constructor(e,t,i,s,r,o){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=s,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,i){let s=[],r=Object.create(null),o=new Map;for(let u of Wa(e,t,o))u instanceof ke?s.push(u):(r[u.facet.id]||(r[u.facet.id]=[])).push(u);let l=Object.create(null),h=[],a=[];for(let u of s)l[u.id]=a.length<<1,a.push(d=>u.slot(d));let c=i==null?void 0:i.config.facets;for(let u in r){let d=r[u],p=d[0].facet,g=c&&c[u]||[];if(d.every(y=>y.type==0))if(l[p.id]=h.length<<1|1,Ls(g,d))h.push(i.facet(p));else{let y=p.combine(d.map(b=>b.value));h.push(i&&p.compare(y,i.facet(p))?i.facet(p):y)}else{for(let y of d)y.type==0?(l[y.id]=h.length<<1|1,h.push(y.value)):(l[y.id]=a.length<<1,a.push(b=>y.dynamicSlot(b)));l[p.id]=a.length<<1,a.push(y=>Ha(y,p,d))}}let f=a.map(u=>u(l));return new Vi(e,o,f,l,h,r)}}function Wa(n,e,t){let i=[[],[],[],[],[]],s=new Map;function r(o,l){let h=s.get(o);if(h!=null){if(h<=l)return;let a=i[h].indexOf(o);a>-1&&i[h].splice(a,1),o instanceof Jn&&t.delete(o.compartment)}if(s.set(o,l),Array.isArray(o))for(let a of o)r(a,l);else if(o instanceof Jn){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let a=e.get(o.compartment)||o.inner;t.set(o.compartment,a),r(a,l)}else if(o instanceof $o)r(o.inner,o.prec);else if(o instanceof ke)i[l].push(o),o.provides&&r(o.provides,l);else if(o instanceof Li)i[l].push(o),o.facet.extensions&&r(o.facet.extensions,l);else{let a=o.extension;if(!a)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(a,l)}}return r(n,Ct.default),i.reduce((o,l)=>o.concat(l))}function ei(n,e){if(e&1)return 2;let t=e>>1,i=n.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;n.status[t]=4;let s=n.computeSlot(n,n.config.dynamicSlots[t]);return n.status[t]=2|s}function Fi(n,e){return e&1?n.config.staticValues[e>>1]:n.values[e>>1]}const Xo=T.define(),Yo=T.define({combine:n=>n.some(e=>e),static:!0}),_o=T.define({combine:n=>n.length?n[0]:void 0,static:!0}),Qo=T.define(),Zo=T.define(),el=T.define(),tl=T.define({combine:n=>n.length?n[0]:!1});class wt{constructor(e,t){this.type=e,this.value=t}static define(){return new za}}class za{of(e){return new wt(this,e)}}class qa{constructor(e){this.map=e}of(e){return new H(this,e)}}class H{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new H(this.type,t)}is(e){return this.type==e}static define(e={}){return new qa(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let s of e){let r=s.map(t);r&&i.push(r)}return i}}H.reconfigure=H.define();H.appendConfig=H.define();class te{constructor(e,t,i,s,r,o){this.startState=e,this.changes=t,this.selection=i,this.effects=s,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&Jo(i,t.newLength),r.some(l=>l.type==te.time)||(this.annotations=r.concat(te.time.of(Date.now())))}static create(e,t,i,s,r,o){return new te(e,t,i,s,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(te.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}te.time=wt.define();te.userEvent=wt.define();te.addToHistory=wt.define();te.remote=wt.define();function Ka(n,e){let t=[];for(let i=0,s=0;;){let r,o;if(i=n[i]))r=n[i++],o=n[i++];else if(s=0;s--){let r=i[s](n);r instanceof te?n=r:Array.isArray(r)&&r.length==1&&r[0]instanceof te?n=r[0]:n=nl(e,Ot(r),!1)}return n}function ja(n){let e=n.startState,t=e.facet(el),i=n;for(let s=t.length-1;s>=0;s--){let r=t[s](n);r&&Object.keys(r).length&&(i=il(n,$n(e,r,n.changes.newLength),!0))}return i==n?n:te.create(e,n.changes,n.selection,i.effects,i.annotations,i.scrollIntoView)}const Ga=[];function Ot(n){return n==null?Ga:Array.isArray(n)?n:[n]}var ce=function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n}(ce||(ce={}));const Ja=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Xn;try{Xn=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function $a(n){if(Xn)return Xn.test(n);for(let e=0;e"\x80"&&(t.toUpperCase()!=t.toLowerCase()||Ja.test(t)))return!0}return!1}function Xa(n){return e=>{if(!/\S/.test(e))return ce.Space;if($a(e))return ce.Word;for(let t=0;t-1)return ce.Word;return ce.Other}}class V{constructor(e,t,i,s,r,o){this.config=e,this.doc=t,this.selection=i,this.values=s,this.status=e.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let l=0;ls.set(h,l)),t=null),s.set(o.value.compartment,o.value.extension)):o.is(H.reconfigure)?(t=null,i=o.value):o.is(H.appendConfig)&&(t=null,i=Ot(i).concat(o.value));let r;t?r=e.startState.values.slice():(t=Vi.resolve(i,s,this),r=new V(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(l,h)=>h.reconfigure(l,this),null).values),new V(t,e.newDoc,e.newSelection,r,(o,l)=>l.update(o,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:m.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),s=this.changes(i.changes),r=[i.range],o=Ot(i.effects);for(let l=1;lo.spec.fromJSON(l,h)))}}return V.create({doc:e.doc,selection:m.fromJSON(e.selection),extensions:t.extensions?s.concat([t.extensions]):s})}static create(e={}){let t=Vi.resolve(e.extensions||[],new Map),i=e.doc instanceof z?e.doc:z.of((e.doc||"").split(t.staticFacet(V.lineSeparator)||Kn)),s=e.selection?e.selection instanceof m?e.selection:m.single(e.selection.anchor,e.selection.head):m.single(0);return Jo(s,i.length),t.staticFacet(Yo)||(s=s.asSingle()),new V(t,i,s,t.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(V.tabSize)}get lineBreak(){return this.facet(V.lineSeparator)||` diff --git a/ui/dist/assets/PageAdminConfirmPasswordReset.acdb9bd8.js b/ui/dist/assets/PageAdminConfirmPasswordReset.c1f3d524.js similarity index 98% rename from ui/dist/assets/PageAdminConfirmPasswordReset.acdb9bd8.js rename to ui/dist/assets/PageAdminConfirmPasswordReset.c1f3d524.js index 327a00b8..17f2e8d1 100644 --- a/ui/dist/assets/PageAdminConfirmPasswordReset.acdb9bd8.js +++ b/ui/dist/assets/PageAdminConfirmPasswordReset.c1f3d524.js @@ -1,2 +1,2 @@ -import{S as E,i as G,s as I,F as K,c as F,m as B,t as H,a as N,d as T,C as M,w as q,e as c,f as u,g as b,h as _,x as O,o as w,q as J,b as k,r as L,u as h,v as Q,j as U,l as V,A as X,p as W,B as Y,D as Z,z as S}from"./index.7bea617e.js";function y(f){let e,o,s;return{c(){e=q("for "),o=c("strong"),s=q(f[3]),u(o,"class","txt-nowrap")},m(l,t){b(l,e,t),b(l,o,t),_(o,s)},p(l,t){t&8&&O(s,l[3])},d(l){l&&w(e),l&&w(o)}}}function x(f){let e,o,s,l,t,r,p,d;return{c(){e=c("label"),o=q("New password"),l=k(),t=c("input"),u(e,"for",s=f[8]),u(t,"type","password"),u(t,"id",r=f[8]),t.required=!0,t.autofocus=!0},m(n,i){b(n,e,i),_(e,o),b(n,l,i),b(n,t,i),S(t,f[0]),t.focus(),p||(d=h(t,"input",f[6]),p=!0)},p(n,i){i&256&&s!==(s=n[8])&&u(e,"for",s),i&256&&r!==(r=n[8])&&u(t,"id",r),i&1&&t.value!==n[0]&&S(t,n[0])},d(n){n&&w(e),n&&w(l),n&&w(t),p=!1,d()}}}function ee(f){let e,o,s,l,t,r,p,d;return{c(){e=c("label"),o=q("New password confirm"),l=k(),t=c("input"),u(e,"for",s=f[8]),u(t,"type","password"),u(t,"id",r=f[8]),t.required=!0},m(n,i){b(n,e,i),_(e,o),b(n,l,i),b(n,t,i),S(t,f[1]),p||(d=h(t,"input",f[7]),p=!0)},p(n,i){i&256&&s!==(s=n[8])&&u(e,"for",s),i&256&&r!==(r=n[8])&&u(t,"id",r),i&2&&t.value!==n[1]&&S(t,n[1])},d(n){n&&w(e),n&&w(l),n&&w(t),p=!1,d()}}}function te(f){let e,o,s,l,t,r,p,d,n,i,g,R,C,v,P,A,j,m=f[3]&&y(f);return r=new J({props:{class:"form-field required",name:"password",$$slots:{default:[x,({uniqueId:a})=>({8:a}),({uniqueId:a})=>a?256:0]},$$scope:{ctx:f}}}),d=new J({props:{class:"form-field required",name:"passwordConfirm",$$slots:{default:[ee,({uniqueId:a})=>({8:a}),({uniqueId:a})=>a?256:0]},$$scope:{ctx:f}}}),{c(){e=c("form"),o=c("div"),s=c("h4"),l=q(`Reset your admin password +import{S as E,i as G,s as I,F as K,c as F,m as B,t as H,a as N,d as T,C as M,w as q,e as c,f as u,g as b,h as _,x as O,o as w,q as J,b as k,r as L,u as h,v as Q,j as U,l as V,A as X,p as W,B as Y,D as Z,z as S}from"./index.a233f6f4.js";function y(f){let e,o,s;return{c(){e=q("for "),o=c("strong"),s=q(f[3]),u(o,"class","txt-nowrap")},m(l,t){b(l,e,t),b(l,o,t),_(o,s)},p(l,t){t&8&&O(s,l[3])},d(l){l&&w(e),l&&w(o)}}}function x(f){let e,o,s,l,t,r,p,d;return{c(){e=c("label"),o=q("New password"),l=k(),t=c("input"),u(e,"for",s=f[8]),u(t,"type","password"),u(t,"id",r=f[8]),t.required=!0,t.autofocus=!0},m(n,i){b(n,e,i),_(e,o),b(n,l,i),b(n,t,i),S(t,f[0]),t.focus(),p||(d=h(t,"input",f[6]),p=!0)},p(n,i){i&256&&s!==(s=n[8])&&u(e,"for",s),i&256&&r!==(r=n[8])&&u(t,"id",r),i&1&&t.value!==n[0]&&S(t,n[0])},d(n){n&&w(e),n&&w(l),n&&w(t),p=!1,d()}}}function ee(f){let e,o,s,l,t,r,p,d;return{c(){e=c("label"),o=q("New password confirm"),l=k(),t=c("input"),u(e,"for",s=f[8]),u(t,"type","password"),u(t,"id",r=f[8]),t.required=!0},m(n,i){b(n,e,i),_(e,o),b(n,l,i),b(n,t,i),S(t,f[1]),p||(d=h(t,"input",f[7]),p=!0)},p(n,i){i&256&&s!==(s=n[8])&&u(e,"for",s),i&256&&r!==(r=n[8])&&u(t,"id",r),i&2&&t.value!==n[1]&&S(t,n[1])},d(n){n&&w(e),n&&w(l),n&&w(t),p=!1,d()}}}function te(f){let e,o,s,l,t,r,p,d,n,i,g,R,C,v,P,A,j,m=f[3]&&y(f);return r=new J({props:{class:"form-field required",name:"password",$$slots:{default:[x,({uniqueId:a})=>({8:a}),({uniqueId:a})=>a?256:0]},$$scope:{ctx:f}}}),d=new J({props:{class:"form-field required",name:"passwordConfirm",$$slots:{default:[ee,({uniqueId:a})=>({8:a}),({uniqueId:a})=>a?256:0]},$$scope:{ctx:f}}}),{c(){e=c("form"),o=c("div"),s=c("h4"),l=q(`Reset your admin password `),m&&m.c(),t=k(),F(r.$$.fragment),p=k(),F(d.$$.fragment),n=k(),i=c("button"),g=c("span"),g.textContent="Set new password",R=k(),C=c("div"),v=c("a"),v.textContent="Back to login",u(s,"class","m-b-xs"),u(o,"class","content txt-center m-b-sm"),u(g,"class","txt"),u(i,"type","submit"),u(i,"class","btn btn-lg btn-block"),i.disabled=f[2],L(i,"btn-loading",f[2]),u(e,"class","m-b-base"),u(v,"href","/login"),u(v,"class","link-hint"),u(C,"class","content txt-center")},m(a,$){b(a,e,$),_(e,o),_(o,s),_(s,l),m&&m.m(s,null),_(e,t),B(r,e,null),_(e,p),B(d,e,null),_(e,n),_(e,i),_(i,g),b(a,R,$),b(a,C,$),_(C,v),P=!0,A||(j=[h(e,"submit",Q(f[4])),U(V.call(null,v))],A=!0)},p(a,$){a[3]?m?m.p(a,$):(m=y(a),m.c(),m.m(s,null)):m&&(m.d(1),m=null);const z={};$&769&&(z.$$scope={dirty:$,ctx:a}),r.$set(z);const D={};$&770&&(D.$$scope={dirty:$,ctx:a}),d.$set(D),(!P||$&4)&&(i.disabled=a[2]),$&4&&L(i,"btn-loading",a[2])},i(a){P||(H(r.$$.fragment,a),H(d.$$.fragment,a),P=!0)},o(a){N(r.$$.fragment,a),N(d.$$.fragment,a),P=!1},d(a){a&&w(e),m&&m.d(),T(r),T(d),a&&w(R),a&&w(C),A=!1,X(j)}}}function se(f){let e,o;return e=new K({props:{$$slots:{default:[te]},$$scope:{ctx:f}}}),{c(){F(e.$$.fragment)},m(s,l){B(e,s,l),o=!0},p(s,[l]){const t={};l&527&&(t.$$scope={dirty:l,ctx:s}),e.$set(t)},i(s){o||(H(e.$$.fragment,s),o=!0)},o(s){N(e.$$.fragment,s),o=!1},d(s){T(e,s)}}}function le(f,e,o){let s,{params:l}=e,t="",r="",p=!1;async function d(){if(!p){o(2,p=!0);try{await W.Admins.confirmPasswordReset(l==null?void 0:l.token,t,r),Y("Successfully set a new admin password."),Z("/")}catch(g){W.errorResponseHandler(g)}o(2,p=!1)}}function n(){t=this.value,o(0,t)}function i(){r=this.value,o(1,r)}return f.$$set=g=>{"params"in g&&o(5,l=g.params)},f.$$.update=()=>{f.$$.dirty&32&&o(3,s=M.getJWTPayload(l==null?void 0:l.token).email||"")},[t,r,p,s,d,l,n,i]}class ae extends E{constructor(e){super(),G(this,e,le,se,I,{params:5})}}export{ae as default}; diff --git a/ui/dist/assets/PageAdminRequestPasswordReset.0e9c0c72.js b/ui/dist/assets/PageAdminRequestPasswordReset.476701ad.js similarity index 98% rename from ui/dist/assets/PageAdminRequestPasswordReset.0e9c0c72.js rename to ui/dist/assets/PageAdminRequestPasswordReset.476701ad.js index 714fd11c..fa4baa92 100644 --- a/ui/dist/assets/PageAdminRequestPasswordReset.0e9c0c72.js +++ b/ui/dist/assets/PageAdminRequestPasswordReset.476701ad.js @@ -1,2 +1,2 @@ -import{S as E,i as M,s as T,F as j,c as H,m as L,t as w,a as y,d as S,b as g,e as _,f as p,g as k,h as d,j as z,l as B,k as N,n as D,o as v,p as C,q as G,r as F,u as A,v as I,w as h,x as J,y as P,z as R}from"./index.7bea617e.js";function K(c){let e,s,n,l,t,o,f,m,i,a,b,u;return l=new G({props:{class:"form-field required",name:"email",$$slots:{default:[Q,({uniqueId:r})=>({5:r}),({uniqueId:r})=>r?32:0]},$$scope:{ctx:c}}}),{c(){e=_("form"),s=_("div"),s.innerHTML=`

Forgotten admin password

+import{S as E,i as M,s as T,F as j,c as H,m as L,t as w,a as y,d as S,b as g,e as _,f as p,g as k,h as d,j as z,l as B,k as N,n as D,o as v,p as C,q as G,r as F,u as A,v as I,w as h,x as J,y as P,z as R}from"./index.a233f6f4.js";function K(c){let e,s,n,l,t,o,f,m,i,a,b,u;return l=new G({props:{class:"form-field required",name:"email",$$slots:{default:[Q,({uniqueId:r})=>({5:r}),({uniqueId:r})=>r?32:0]},$$scope:{ctx:c}}}),{c(){e=_("form"),s=_("div"),s.innerHTML=`

Forgotten admin password

Enter the email associated with your account and we\u2019ll send you a recovery link:

`,n=g(),H(l.$$.fragment),t=g(),o=_("button"),f=_("i"),m=g(),i=_("span"),i.textContent="Send recovery link",p(s,"class","content txt-center m-b-sm"),p(f,"class","ri-mail-send-line"),p(i,"class","txt"),p(o,"type","submit"),p(o,"class","btn btn-lg btn-block"),o.disabled=c[1],F(o,"btn-loading",c[1]),p(e,"class","m-b-base")},m(r,$){k(r,e,$),d(e,s),d(e,n),L(l,e,null),d(e,t),d(e,o),d(o,f),d(o,m),d(o,i),a=!0,b||(u=A(e,"submit",I(c[3])),b=!0)},p(r,$){const q={};$&97&&(q.$$scope={dirty:$,ctx:r}),l.$set(q),(!a||$&2)&&(o.disabled=r[1]),$&2&&F(o,"btn-loading",r[1])},i(r){a||(w(l.$$.fragment,r),a=!0)},o(r){y(l.$$.fragment,r),a=!1},d(r){r&&v(e),S(l),b=!1,u()}}}function O(c){let e,s,n,l,t,o,f,m,i;return{c(){e=_("div"),s=_("div"),s.innerHTML='',n=g(),l=_("div"),t=_("p"),o=h("Check "),f=_("strong"),m=h(c[0]),i=h(" for the recovery link."),p(s,"class","icon"),p(f,"class","txt-nowrap"),p(l,"class","content"),p(e,"class","alert alert-success")},m(a,b){k(a,e,b),d(e,s),d(e,n),d(e,l),d(l,t),d(t,o),d(t,f),d(f,m),d(t,i)},p(a,b){b&1&&J(m,a[0])},i:P,o:P,d(a){a&&v(e)}}}function Q(c){let e,s,n,l,t,o,f,m;return{c(){e=_("label"),s=h("Email"),l=g(),t=_("input"),p(e,"for",n=c[5]),p(t,"type","email"),p(t,"id",o=c[5]),t.required=!0,t.autofocus=!0},m(i,a){k(i,e,a),d(e,s),k(i,l,a),k(i,t,a),R(t,c[0]),t.focus(),f||(m=A(t,"input",c[4]),f=!0)},p(i,a){a&32&&n!==(n=i[5])&&p(e,"for",n),a&32&&o!==(o=i[5])&&p(t,"id",o),a&1&&t.value!==i[0]&&R(t,i[0])},d(i){i&&v(e),i&&v(l),i&&v(t),f=!1,m()}}}function U(c){let e,s,n,l,t,o,f,m;const i=[O,K],a=[];function b(u,r){return u[2]?0:1}return e=b(c),s=a[e]=i[e](c),{c(){s.c(),n=g(),l=_("div"),t=_("a"),t.textContent="Back to login",p(t,"href","/login"),p(t,"class","link-hint"),p(l,"class","content txt-center")},m(u,r){a[e].m(u,r),k(u,n,r),k(u,l,r),d(l,t),o=!0,f||(m=z(B.call(null,t)),f=!0)},p(u,r){let $=e;e=b(u),e===$?a[e].p(u,r):(N(),y(a[$],1,1,()=>{a[$]=null}),D(),s=a[e],s?s.p(u,r):(s=a[e]=i[e](u),s.c()),w(s,1),s.m(n.parentNode,n))},i(u){o||(w(s),o=!0)},o(u){y(s),o=!1},d(u){a[e].d(u),u&&v(n),u&&v(l),f=!1,m()}}}function V(c){let e,s;return e=new j({props:{$$slots:{default:[U]},$$scope:{ctx:c}}}),{c(){H(e.$$.fragment)},m(n,l){L(e,n,l),s=!0},p(n,[l]){const t={};l&71&&(t.$$scope={dirty:l,ctx:n}),e.$set(t)},i(n){s||(w(e.$$.fragment,n),s=!0)},o(n){y(e.$$.fragment,n),s=!1},d(n){S(e,n)}}}function W(c,e,s){let n="",l=!1,t=!1;async function o(){if(!l){s(1,l=!0);try{await C.Admins.requestPasswordReset(n),s(2,t=!0)}catch(m){C.errorResponseHandler(m)}s(1,l=!1)}}function f(){n=this.value,s(0,n)}return[n,l,t,o,f]}class Y extends E{constructor(e){super(),M(this,e,W,V,T,{})}}export{Y as default}; diff --git a/ui/dist/assets/PageUserConfirmEmailChange.f421d2c0.js b/ui/dist/assets/PageUserConfirmEmailChange.374260dd.js similarity index 98% rename from ui/dist/assets/PageUserConfirmEmailChange.f421d2c0.js rename to ui/dist/assets/PageUserConfirmEmailChange.374260dd.js index 2ed0820e..8b766a7e 100644 --- a/ui/dist/assets/PageUserConfirmEmailChange.f421d2c0.js +++ b/ui/dist/assets/PageUserConfirmEmailChange.374260dd.js @@ -1,4 +1,4 @@ -import{S as J,i as M,s as N,F as R,c as S,m as U,t as $,a as v,d as z,C as W,E as Y,g as _,k as j,n as A,o as b,p as F,w as y,e as m,f as d,h as k,x as B,q as D,b as C,r as H,u as E,v as G,y as h,z as T}from"./index.7bea617e.js";function I(r){let e,s,t,l,n,o,c,a,i,u,g,q,p=r[3]&&L(r);return o=new D({props:{class:"form-field required",name:"password",$$slots:{default:[O,({uniqueId:f})=>({8:f}),({uniqueId:f})=>f?256:0]},$$scope:{ctx:r}}}),{c(){e=m("form"),s=m("div"),t=m("h4"),l=y(`Type your password to confirm changing your email address +import{S as J,i as M,s as N,F as R,c as S,m as U,t as $,a as v,d as z,C as W,E as Y,g as _,k as j,n as A,o as b,p as F,w as y,e as m,f as d,h as k,x as B,q as D,b as C,r as H,u as E,v as G,y as h,z as T}from"./index.a233f6f4.js";function I(r){let e,s,t,l,n,o,c,a,i,u,g,q,p=r[3]&&L(r);return o=new D({props:{class:"form-field required",name:"password",$$slots:{default:[O,({uniqueId:f})=>({8:f}),({uniqueId:f})=>f?256:0]},$$scope:{ctx:r}}}),{c(){e=m("form"),s=m("div"),t=m("h4"),l=y(`Type your password to confirm changing your email address `),p&&p.c(),n=C(),S(o.$$.fragment),c=C(),a=m("button"),i=m("span"),i.textContent="Confirm new email",d(t,"class","m-b-xs"),d(s,"class","content txt-center m-b-sm"),d(i,"class","txt"),d(a,"type","submit"),d(a,"class","btn btn-lg btn-block"),a.disabled=r[1],H(a,"btn-loading",r[1])},m(f,w){_(f,e,w),k(e,s),k(s,t),k(t,l),p&&p.m(t,null),k(e,n),U(o,e,null),k(e,c),k(e,a),k(a,i),u=!0,g||(q=E(e,"submit",G(r[4])),g=!0)},p(f,w){f[3]?p?p.p(f,w):(p=L(f),p.c(),p.m(t,null)):p&&(p.d(1),p=null);const P={};w&769&&(P.$$scope={dirty:w,ctx:f}),o.$set(P),(!u||w&2)&&(a.disabled=f[1]),w&2&&H(a,"btn-loading",f[1])},i(f){u||($(o.$$.fragment,f),u=!0)},o(f){v(o.$$.fragment,f),u=!1},d(f){f&&b(e),p&&p.d(),z(o),g=!1,q()}}}function K(r){let e,s,t,l,n;return{c(){e=m("div"),e.innerHTML=`

Email address changed

You can now sign in with your new email address.

`,s=C(),t=m("button"),t.textContent="Close",d(e,"class","alert alert-success"),d(t,"type","button"),d(t,"class","btn btn-secondary btn-block")},m(o,c){_(o,e,c),_(o,s,c),_(o,t,c),l||(n=E(t,"click",r[6]),l=!0)},p:h,i:h,o:h,d(o){o&&b(e),o&&b(s),o&&b(t),l=!1,n()}}}function L(r){let e,s,t;return{c(){e=y("to "),s=m("strong"),t=y(r[3]),d(s,"class","txt-nowrap")},m(l,n){_(l,e,n),_(l,s,n),k(s,t)},p(l,n){n&8&&B(t,l[3])},d(l){l&&b(e),l&&b(s)}}}function O(r){let e,s,t,l,n,o,c,a;return{c(){e=m("label"),s=y("Password"),l=C(),n=m("input"),d(e,"for",t=r[8]),d(n,"type","password"),d(n,"id",o=r[8]),n.required=!0,n.autofocus=!0},m(i,u){_(i,e,u),k(e,s),_(i,l,u),_(i,n,u),T(n,r[0]),n.focus(),c||(a=E(n,"input",r[7]),c=!0)},p(i,u){u&256&&t!==(t=i[8])&&d(e,"for",t),u&256&&o!==(o=i[8])&&d(n,"id",o),u&1&&n.value!==i[0]&&T(n,i[0])},d(i){i&&b(e),i&&b(l),i&&b(n),c=!1,a()}}}function Q(r){let e,s,t,l;const n=[K,I],o=[];function c(a,i){return a[2]?0:1}return e=c(r),s=o[e]=n[e](r),{c(){s.c(),t=Y()},m(a,i){o[e].m(a,i),_(a,t,i),l=!0},p(a,i){let u=e;e=c(a),e===u?o[e].p(a,i):(j(),v(o[u],1,1,()=>{o[u]=null}),A(),s=o[e],s?s.p(a,i):(s=o[e]=n[e](a),s.c()),$(s,1),s.m(t.parentNode,t))},i(a){l||($(s),l=!0)},o(a){v(s),l=!1},d(a){o[e].d(a),a&&b(t)}}}function V(r){let e,s;return e=new R({props:{nobranding:!0,$$slots:{default:[Q]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(t,l){U(e,t,l),s=!0},p(t,[l]){const n={};l&527&&(n.$$scope={dirty:l,ctx:t}),e.$set(n)},i(t){s||($(e.$$.fragment,t),s=!0)},o(t){v(e.$$.fragment,t),s=!1},d(t){z(e,t)}}}function X(r,e,s){let t,{params:l}=e,n="",o=!1,c=!1;async function a(){if(!o){s(1,o=!0);try{await F.Users.confirmEmailChange(l==null?void 0:l.token,n),s(2,c=!0)}catch(g){F.errorResponseHandler(g)}s(1,o=!1)}}const i=()=>window.close();function u(){n=this.value,s(0,n)}return r.$$set=g=>{"params"in g&&s(5,l=g.params)},r.$$.update=()=>{r.$$.dirty&32&&s(3,t=W.getJWTPayload(l==null?void 0:l.token).newEmail||"")},[n,o,c,t,a,l,i,u]}class x extends J{constructor(e){super(),M(this,e,X,V,N,{params:5})}}export{x as default}; diff --git a/ui/dist/assets/PageUserConfirmPasswordReset.eb6a6644.js b/ui/dist/assets/PageUserConfirmPasswordReset.f8d56892.js similarity index 98% rename from ui/dist/assets/PageUserConfirmPasswordReset.eb6a6644.js rename to ui/dist/assets/PageUserConfirmPasswordReset.f8d56892.js index 44480ab6..3912dcbc 100644 --- a/ui/dist/assets/PageUserConfirmPasswordReset.eb6a6644.js +++ b/ui/dist/assets/PageUserConfirmPasswordReset.f8d56892.js @@ -1,4 +1,4 @@ -import{S as W,i as Y,s as j,F as A,c as H,m as N,t as P,a as q,d as S,C as B,E as D,g as _,k as G,n as I,o as m,p as z,w as y,e as b,h as w,x as K,q as E,b as C,f as c,r as J,u as h,v as O,y as F,z as R}from"./index.7bea617e.js";function Q(i){let e,l,t,n,s,o,p,a,r,u,v,g,k,L,d=i[4]&&M(i);return o=new E({props:{class:"form-field required",name:"password",$$slots:{default:[X,({uniqueId:f})=>({10:f}),({uniqueId:f})=>f?1024:0]},$$scope:{ctx:i}}}),a=new E({props:{class:"form-field required",name:"passwordConfirm",$$slots:{default:[Z,({uniqueId:f})=>({10:f}),({uniqueId:f})=>f?1024:0]},$$scope:{ctx:i}}}),{c(){e=b("form"),l=b("div"),t=b("h4"),n=y(`Reset your user password +import{S as W,i as Y,s as j,F as A,c as H,m as N,t as P,a as q,d as S,C as B,E as D,g as _,k as G,n as I,o as m,p as z,w as y,e as b,h as w,x as K,q as E,b as C,f as c,r as J,u as h,v as O,y as F,z as R}from"./index.a233f6f4.js";function Q(i){let e,l,t,n,s,o,p,a,r,u,v,g,k,L,d=i[4]&&M(i);return o=new E({props:{class:"form-field required",name:"password",$$slots:{default:[X,({uniqueId:f})=>({10:f}),({uniqueId:f})=>f?1024:0]},$$scope:{ctx:i}}}),a=new E({props:{class:"form-field required",name:"passwordConfirm",$$slots:{default:[Z,({uniqueId:f})=>({10:f}),({uniqueId:f})=>f?1024:0]},$$scope:{ctx:i}}}),{c(){e=b("form"),l=b("div"),t=b("h4"),n=y(`Reset your user password `),d&&d.c(),s=C(),H(o.$$.fragment),p=C(),H(a.$$.fragment),r=C(),u=b("button"),v=b("span"),v.textContent="Set new password",c(t,"class","m-b-xs"),c(l,"class","content txt-center m-b-sm"),c(v,"class","txt"),c(u,"type","submit"),c(u,"class","btn btn-lg btn-block"),u.disabled=i[2],J(u,"btn-loading",i[2])},m(f,$){_(f,e,$),w(e,l),w(l,t),w(t,n),d&&d.m(t,null),w(e,s),N(o,e,null),w(e,p),N(a,e,null),w(e,r),w(e,u),w(u,v),g=!0,k||(L=h(e,"submit",O(i[5])),k=!0)},p(f,$){f[4]?d?d.p(f,$):(d=M(f),d.c(),d.m(t,null)):d&&(d.d(1),d=null);const T={};$&3073&&(T.$$scope={dirty:$,ctx:f}),o.$set(T);const U={};$&3074&&(U.$$scope={dirty:$,ctx:f}),a.$set(U),(!g||$&4)&&(u.disabled=f[2]),$&4&&J(u,"btn-loading",f[2])},i(f){g||(P(o.$$.fragment,f),P(a.$$.fragment,f),g=!0)},o(f){q(o.$$.fragment,f),q(a.$$.fragment,f),g=!1},d(f){f&&m(e),d&&d.d(),S(o),S(a),k=!1,L()}}}function V(i){let e,l,t,n,s;return{c(){e=b("div"),e.innerHTML=`

Password changed

You can now sign in with your new password.

`,l=C(),t=b("button"),t.textContent="Close",c(e,"class","alert alert-success"),c(t,"type","button"),c(t,"class","btn btn-secondary btn-block")},m(o,p){_(o,e,p),_(o,l,p),_(o,t,p),n||(s=h(t,"click",i[7]),n=!0)},p:F,i:F,o:F,d(o){o&&m(e),o&&m(l),o&&m(t),n=!1,s()}}}function M(i){let e,l,t;return{c(){e=y("for "),l=b("strong"),t=y(i[4])},m(n,s){_(n,e,s),_(n,l,s),w(l,t)},p(n,s){s&16&&K(t,n[4])},d(n){n&&m(e),n&&m(l)}}}function X(i){let e,l,t,n,s,o,p,a;return{c(){e=b("label"),l=y("New password"),n=C(),s=b("input"),c(e,"for",t=i[10]),c(s,"type","password"),c(s,"id",o=i[10]),s.required=!0,s.autofocus=!0},m(r,u){_(r,e,u),w(e,l),_(r,n,u),_(r,s,u),R(s,i[0]),s.focus(),p||(a=h(s,"input",i[8]),p=!0)},p(r,u){u&1024&&t!==(t=r[10])&&c(e,"for",t),u&1024&&o!==(o=r[10])&&c(s,"id",o),u&1&&s.value!==r[0]&&R(s,r[0])},d(r){r&&m(e),r&&m(n),r&&m(s),p=!1,a()}}}function Z(i){let e,l,t,n,s,o,p,a;return{c(){e=b("label"),l=y("New password confirm"),n=C(),s=b("input"),c(e,"for",t=i[10]),c(s,"type","password"),c(s,"id",o=i[10]),s.required=!0},m(r,u){_(r,e,u),w(e,l),_(r,n,u),_(r,s,u),R(s,i[1]),p||(a=h(s,"input",i[9]),p=!0)},p(r,u){u&1024&&t!==(t=r[10])&&c(e,"for",t),u&1024&&o!==(o=r[10])&&c(s,"id",o),u&2&&s.value!==r[1]&&R(s,r[1])},d(r){r&&m(e),r&&m(n),r&&m(s),p=!1,a()}}}function x(i){let e,l,t,n;const s=[V,Q],o=[];function p(a,r){return a[3]?0:1}return e=p(i),l=o[e]=s[e](i),{c(){l.c(),t=D()},m(a,r){o[e].m(a,r),_(a,t,r),n=!0},p(a,r){let u=e;e=p(a),e===u?o[e].p(a,r):(G(),q(o[u],1,1,()=>{o[u]=null}),I(),l=o[e],l?l.p(a,r):(l=o[e]=s[e](a),l.c()),P(l,1),l.m(t.parentNode,t))},i(a){n||(P(l),n=!0)},o(a){q(l),n=!1},d(a){o[e].d(a),a&&m(t)}}}function ee(i){let e,l;return e=new A({props:{nobranding:!0,$$slots:{default:[x]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(t,n){N(e,t,n),l=!0},p(t,[n]){const s={};n&2079&&(s.$$scope={dirty:n,ctx:t}),e.$set(s)},i(t){l||(P(e.$$.fragment,t),l=!0)},o(t){q(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function te(i,e,l){let t,{params:n}=e,s="",o="",p=!1,a=!1;async function r(){if(!p){l(2,p=!0);try{await z.Users.confirmPasswordReset(n==null?void 0:n.token,s,o),l(3,a=!0)}catch(k){z.errorResponseHandler(k)}l(2,p=!1)}}const u=()=>window.close();function v(){s=this.value,l(0,s)}function g(){o=this.value,l(1,o)}return i.$$set=k=>{"params"in k&&l(6,n=k.params)},i.$$.update=()=>{i.$$.dirty&64&&l(4,t=B.getJWTPayload(n==null?void 0:n.token).email||"")},[s,o,p,a,t,r,n,u,v,g]}class le extends W{constructor(e){super(),Y(this,e,te,ee,j,{params:6})}}export{le as default}; diff --git a/ui/dist/assets/PageUserConfirmVerification.ac16c5b9.js b/ui/dist/assets/PageUserConfirmVerification.69125db3.js similarity index 97% rename from ui/dist/assets/PageUserConfirmVerification.ac16c5b9.js rename to ui/dist/assets/PageUserConfirmVerification.69125db3.js index 5d480a44..f2de1ce3 100644 --- a/ui/dist/assets/PageUserConfirmVerification.ac16c5b9.js +++ b/ui/dist/assets/PageUserConfirmVerification.69125db3.js @@ -1,3 +1,3 @@ -import{S as k,i as v,s as y,F as w,c as x,m as C,t as g,a as $,d as L,p as H,E as M,g as r,o as a,e as u,b as m,f,u as _,y as p}from"./index.7bea617e.js";function P(o){let t,s,e,n,i;return{c(){t=u("div"),t.innerHTML=`
+import{S as k,i as v,s as y,F as w,c as x,m as C,t as g,a as $,d as L,p as H,E as M,g as r,o as a,e as u,b as m,f,u as _,y as p}from"./index.a233f6f4.js";function P(o){let t,s,e,n,i;return{c(){t=u("div"),t.innerHTML=`

Invalid or expired verification token.

`,s=m(),e=u("button"),e.textContent="Close",f(t,"class","alert alert-danger"),f(e,"type","button"),f(e,"class","btn btn-secondary btn-block")},m(l,c){r(l,t,c),r(l,s,c),r(l,e,c),n||(i=_(e,"click",o[4]),n=!0)},p,d(l){l&&a(t),l&&a(s),l&&a(e),n=!1,i()}}}function S(o){let t,s,e,n,i;return{c(){t=u("div"),t.innerHTML=`

Successfully verified email address.

`,s=m(),e=u("button"),e.textContent="Close",f(t,"class","alert alert-success"),f(e,"type","button"),f(e,"class","btn btn-secondary btn-block")},m(l,c){r(l,t,c),r(l,s,c),r(l,e,c),n||(i=_(e,"click",o[3]),n=!0)},p,d(l){l&&a(t),l&&a(s),l&&a(e),n=!1,i()}}}function T(o){let t;return{c(){t=u("div"),t.innerHTML='
Please wait...
',f(t,"class","txt-center")},m(s,e){r(s,t,e)},p,d(s){s&&a(t)}}}function F(o){let t;function s(i,l){return i[1]?T:i[0]?S:P}let e=s(o),n=e(o);return{c(){n.c(),t=M()},m(i,l){n.m(i,l),r(i,t,l)},p(i,l){e===(e=s(i))&&n?n.p(i,l):(n.d(1),n=e(i),n&&(n.c(),n.m(t.parentNode,t)))},d(i){n.d(i),i&&a(t)}}}function U(o){let t,s;return t=new w({props:{nobranding:!0,$$slots:{default:[F]},$$scope:{ctx:o}}}),{c(){x(t.$$.fragment)},m(e,n){C(t,e,n),s=!0},p(e,[n]){const i={};n&67&&(i.$$scope={dirty:n,ctx:e}),t.$set(i)},i(e){s||(g(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){L(t,e)}}}function V(o,t,s){let{params:e}=t,n=!1,i=!1;l();async function l(){s(1,i=!0);try{await H.Users.confirmVerification(e==null?void 0:e.token),s(0,n=!0)}catch(d){console.warn(d),s(0,n=!1)}s(1,i=!1)}const c=()=>window.close(),b=()=>window.close();return o.$$set=d=>{"params"in d&&s(2,e=d.params)},[n,i,e,c,b]}class E extends k{constructor(t){super(),v(this,t,V,U,y,{params:2})}}export{E as default}; diff --git a/ui/dist/assets/index.7bea617e.js b/ui/dist/assets/index.a233f6f4.js similarity index 99% rename from ui/dist/assets/index.7bea617e.js rename to ui/dist/assets/index.a233f6f4.js index 3445ac60..b85415f7 100644 --- a/ui/dist/assets/index.7bea617e.js +++ b/ui/dist/assets/index.a233f6f4.js @@ -12,7 +12,7 @@ const B0=function(){const e=document.createElement("link").relList;if(e&&e.suppo opacity: ${a-f*d}`}}function Xt(n,{delay:e=0,duration:t=400,easing:i=Eo}={}){const s=getComputedStyle(n),l=+s.opacity,r=parseFloat(s.height),o=parseFloat(s.paddingTop),a=parseFloat(s.paddingBottom),u=parseFloat(s.marginTop),f=parseFloat(s.marginBottom),c=parseFloat(s.borderTopWidth),d=parseFloat(s.borderBottomWidth);return{delay:e,duration:t,easing:i,css:h=>`overflow: hidden;opacity: ${Math.min(h*20,1)*l};height: ${h*r}px;padding-top: ${h*o}px;padding-bottom: ${h*a}px;margin-top: ${h*u}px;margin-bottom: ${h*f}px;border-top-width: ${h*c}px;border-bottom-width: ${h*d}px;`}}function Yn(n,{delay:e=0,duration:t=400,easing:i=Eo,start:s=0,opacity:l=0}={}){const r=getComputedStyle(n),o=+r.opacity,a=r.transform==="none"?"":r.transform,u=1-s,f=o*(1-l);return{delay:e,duration:t,easing:i,css:(c,d)=>` transform: ${a} scale(${1-u*d}); opacity: ${o-f*d} - `}}function c2(n){let e,t,i,s;return{c(){e=_("input"),p(e,"type","text"),p(e,"id",n[8]),p(e,"placeholder",t=n[0]||n[1])},m(l,r){w(l,e,r),n[13](e),$e(e,n[7]),i||(s=Z(e,"input",n[14]),i=!0)},p(l,r){r&3&&t!==(t=l[0]||l[1])&&p(e,"placeholder",t),r&128&&e.value!==l[7]&&$e(e,l[7])},i:oe,o:oe,d(l){l&&k(e),n[13](null),i=!1,s()}}}function d2(n){let e,t,i,s;function l(a){n[12](a)}var r=n[4];function o(a){let u={singleLine:!0,disableRequestKeys:!0,disableIndirectCollectionsKeys:!0,extraAutocompleteKeys:a[3],baseCollection:a[2],placeholder:a[0]||a[1]};return a[7]!==void 0&&(u.value=a[7]),{props:u}}return r&&(e=new r(o(n)),me.push(()=>Ie(e,"value",l)),e.$on("submit",n[10])),{c(){e&&B(e.$$.fragment),i=lt()},m(a,u){e&&V(e,a,u),w(a,i,u),s=!0},p(a,u){const f={};if(u&8&&(f.extraAutocompleteKeys=a[3]),u&4&&(f.baseCollection=a[2]),u&3&&(f.placeholder=a[0]||a[1]),!t&&u&128&&(t=!0,f.value=a[7],Re(()=>t=!1)),r!==(r=a[4])){if(e){Te();const c=e;L(c.$$.fragment,1,0,()=>{z(c,1)}),Oe()}r?(e=new r(o(a)),me.push(()=>Ie(e,"value",l)),e.$on("submit",a[10]),B(e.$$.fragment),P(e.$$.fragment,1),V(e,i.parentNode,i)):e=null}else r&&e.$set(f)},i(a){s||(e&&P(e.$$.fragment,a),s=!0)},o(a){e&&L(e.$$.fragment,a),s=!1},d(a){a&&k(i),e&&z(e,a)}}}function Fc(n){let e,t,i,s,l,r,o=n[7]!==n[0]&&Ic();return{c(){o&&o.c(),e=T(),t=_("button"),t.innerHTML='Clear',p(t,"type","button"),p(t,"class","btn btn-secondary btn-sm btn-hint p-l-xs p-r-xs m-l-10")},m(a,u){o&&o.m(a,u),w(a,e,u),w(a,t,u),s=!0,l||(r=Z(t,"click",n[15]),l=!0)},p(a,u){a[7]!==a[0]?o?u&129&&P(o,1):(o=Ic(),o.c(),P(o,1),o.m(e.parentNode,e)):o&&(Te(),L(o,1,1,()=>{o=null}),Oe())},i(a){s||(P(o),Tt(()=>{i||(i=ct(t,ni,{duration:150,x:5},!0)),i.run(1)}),s=!0)},o(a){L(o),i||(i=ct(t,ni,{duration:150,x:5},!1)),i.run(0),s=!1},d(a){o&&o.d(a),a&&k(e),a&&k(t),a&&i&&i.end(),l=!1,r()}}}function Ic(n){let e,t,i;return{c(){e=_("button"),e.innerHTML='Search',p(e,"type","submit"),p(e,"class","btn btn-expanded btn-sm btn-warning")},m(s,l){w(s,e,l),i=!0},i(s){i||(Tt(()=>{t||(t=ct(e,ni,{duration:150,x:5},!0)),t.run(1)}),i=!0)},o(s){t||(t=ct(e,ni,{duration:150,x:5},!1)),t.run(0),i=!1},d(s){s&&k(e),s&&t&&t.end()}}}function p2(n){let e,t,i,s,l,r,o,a,u,f,c;const d=[d2,c2],h=[];function g(b,v){return b[4]&&!b[5]?0:1}r=g(n),o=h[r]=d[r](n);let y=(n[0].length||n[7].length)&&Fc(n);return{c(){e=_("div"),t=_("form"),i=_("label"),s=_("i"),l=T(),o.c(),a=T(),y&&y.c(),p(s,"class","ri-search-line"),p(i,"for",n[8]),p(i,"class","m-l-10 txt-xl"),p(t,"class","searchbar"),p(e,"class","searchbar-wrapper")},m(b,v){w(b,e,v),m(e,t),m(t,i),m(i,s),m(t,l),h[r].m(t,null),m(t,a),y&&y.m(t,null),u=!0,f||(c=[Z(t,"submit",Wt(n[10])),Z(e,"click",Wn(n[11]))],f=!0)},p(b,[v]){let S=r;r=g(b),r===S?h[r].p(b,v):(Te(),L(h[S],1,1,()=>{h[S]=null}),Oe(),o=h[r],o?o.p(b,v):(o=h[r]=d[r](b),o.c()),P(o,1),o.m(t,a)),b[0].length||b[7].length?y?(y.p(b,v),v&129&&P(y,1)):(y=Fc(b),y.c(),P(y,1),y.m(t,null)):y&&(Te(),L(y,1,1,()=>{y=null}),Oe())},i(b){u||(P(o),P(y),u=!0)},o(b){L(o),L(y),u=!1},d(b){b&&k(e),h[r].d(),y&&y.d(),f=!1,rt(c)}}}function h2(n,e,t){const i=cn(),s="search_"+W.randomString(7);let{value:l=""}=e,{placeholder:r='Search filter, ex. created > "2022-01-01"...'}=e,{autocompleteCollection:o=new Fn}=e,{extraAutocompleteKeys:a=[]}=e,u,f=!1,c,d="";function h(M=!0){t(7,d=""),M&&(c==null||c.focus()),i("clear")}function g(){t(0,l=d),i("submit",l)}async function y(){u||f||(t(5,f=!0),t(4,u=(await as(()=>import("./FilterAutocompleteInput.1d8e6916.js"),[])).default),t(5,f=!1))}ii(()=>{y()});function b(M){dt.call(this,n,M)}function v(M){d=M,t(7,d),t(0,l)}function S(M){me[M?"unshift":"push"](()=>{c=M,t(6,c)})}function $(){d=this.value,t(7,d),t(0,l)}const C=()=>{h(!1),g()};return n.$$set=M=>{"value"in M&&t(0,l=M.value),"placeholder"in M&&t(1,r=M.placeholder),"autocompleteCollection"in M&&t(2,o=M.autocompleteCollection),"extraAutocompleteKeys"in M&&t(3,a=M.extraAutocompleteKeys)},n.$$.update=()=>{n.$$.dirty&1&&typeof l=="string"&&t(7,d=l)},[l,r,o,a,u,f,c,d,s,h,g,b,v,S,$,C]}class Po extends Ee{constructor(e){super(),Ae(this,e,h2,p2,De,{value:0,placeholder:1,autocompleteCollection:2,extraAutocompleteKeys:3})}}let eu,ts;const tu="app-tooltip";function Nc(n){return typeof n=="string"?{text:n,position:"bottom",hideOnClick:null}:n||{}}function Bi(){return ts=ts||document.querySelector("."+tu),ts||(ts=document.createElement("div"),ts.classList.add(tu),document.body.appendChild(ts)),ts}function Rb(n,e){let t=Bi();if(!t.classList.contains("active")||!(e!=null&&e.text)){nu();return}t.textContent=e.text,t.className=tu+" active",e.class&&t.classList.add(e.class),t.style.top="0px",t.style.left="0px";let i=t.offsetHeight,s=t.offsetWidth,l=n.getBoundingClientRect(),r=0,o=0,a=5;e.position=="left"?(r=l.top+l.height/2-i/2,o=l.left-s-a):e.position=="right"?(r=l.top+l.height/2-i/2,o=l.right+a):e.position=="top"?(r=l.top-i-a,o=l.left+l.width/2-s/2):e.position=="top-left"?(r=l.top-i-a,o=l.left):e.position=="top-right"?(r=l.top-i-a,o=l.right-s):e.position=="bottom-left"?(r=l.top+l.height+a,o=l.left):e.position=="bottom-right"?(r=l.top+l.height+a,o=l.right-s):(r=l.top+l.height+a,o=l.left+l.width/2-s/2),o+s>document.documentElement.clientWidth&&(o=document.documentElement.clientWidth-s),o=o>=0?o:0,r+i>document.documentElement.clientHeight&&(r=document.documentElement.clientHeight-i),r=r>=0?r:0,t.style.top=r+"px",t.style.left=o+"px"}function nu(){clearTimeout(eu),Bi().classList.remove("active"),Bi().activeNode=void 0}function m2(n,e){Bi().activeNode=n,clearTimeout(eu),eu=setTimeout(()=>{Bi().classList.add("active"),Rb(n,e)},isNaN(e.delay)?250:e.delay)}function $t(n,e){let t=Nc(e);function i(){m2(n,t)}function s(){nu()}return n.addEventListener("mouseenter",i),n.addEventListener("mouseleave",s),n.addEventListener("blur",s),(t.hideOnClick===!0||t.hideOnClick===null&&W.isFocusable(n))&&n.addEventListener("click",s),Bi(),{update(l){var r,o;t=Nc(l),(o=(r=Bi())==null?void 0:r.activeNode)!=null&&o.contains(n)&&Rb(n,t)},destroy(){var l,r;(r=(l=Bi())==null?void 0:l.activeNode)!=null&&r.contains(n)&&nu(),n.removeEventListener("mouseenter",i),n.removeEventListener("mouseleave",s),n.removeEventListener("blur",s),n.removeEventListener("click",s)}}}function g2(n){let e,t,i,s;return{c(){e=_("button"),e.innerHTML='',p(e,"type","button"),p(e,"class","btn btn-secondary btn-circle svelte-a2q6ng"),Q(e,"refreshing",n[1])},m(l,r){w(l,e,r),i||(s=[Qe(t=$t.call(null,e,n[0])),Z(e,"click",n[2])],i=!0)},p(l,[r]){t&&In(t.update)&&r&1&&t.update.call(null,l[0]),r&2&&Q(e,"refreshing",l[1])},i:oe,o:oe,d(l){l&&k(e),i=!1,rt(s)}}}function _2(n,e,t){const i=cn();let{tooltip:s={text:"Refresh",position:"right"}}=e,l=null;function r(){i("refresh");const o=s;t(0,s=null),clearTimeout(l),t(1,l=setTimeout(()=>{clearTimeout(l),t(1,l=null),t(0,s=o)},230))}return ii(()=>()=>clearTimeout(l)),n.$$set=o=>{"tooltip"in o&&t(0,s=o.tooltip)},[s,l,r]}class Lo extends Ee{constructor(e){super(),Ae(this,e,_2,g2,De,{tooltip:0})}}function b2(n){let e,t,i,s,l;const r=n[6].default,o=Dn(r,n,n[5],null);return{c(){e=_("th"),o&&o.c(),p(e,"tabindex","0"),p(e,"class",t="col-sort "+n[1]),Q(e,"col-sort-disabled",n[3]),Q(e,"sort-active",n[0]==="-"+n[2]||n[0]==="+"+n[2]),Q(e,"sort-desc",n[0]==="-"+n[2]),Q(e,"sort-asc",n[0]==="+"+n[2])},m(a,u){w(a,e,u),o&&o.m(e,null),i=!0,s||(l=[Z(e,"click",n[7]),Z(e,"keydown",n[8])],s=!0)},p(a,[u]){o&&o.p&&(!i||u&32)&&En(o,r,a,a[5],i?An(r,a[5],u,null):Pn(a[5]),null),(!i||u&2&&t!==(t="col-sort "+a[1]))&&p(e,"class",t),u&10&&Q(e,"col-sort-disabled",a[3]),u&7&&Q(e,"sort-active",a[0]==="-"+a[2]||a[0]==="+"+a[2]),u&7&&Q(e,"sort-desc",a[0]==="-"+a[2]),u&7&&Q(e,"sort-asc",a[0]==="+"+a[2])},i(a){i||(P(o,a),i=!0)},o(a){L(o,a),i=!1},d(a){a&&k(e),o&&o.d(a),s=!1,rt(l)}}}function y2(n,e,t){let{$$slots:i={},$$scope:s}=e,{class:l=""}=e,{name:r}=e,{sort:o=""}=e,{disable:a=!1}=e;function u(){a||("-"+r===o?t(0,o="+"+r):t(0,o="-"+r))}const f=()=>u(),c=d=>{(d.code==="Enter"||d.code==="Space")&&(d.preventDefault(),u())};return n.$$set=d=>{"class"in d&&t(1,l=d.class),"name"in d&&t(2,r=d.name),"sort"in d&&t(0,o=d.sort),"disable"in d&&t(3,a=d.disable),"$$scope"in d&&t(5,s=d.$$scope)},[o,l,r,a,u,s,i,f,c]}class nn extends Ee{constructor(e){super(),Ae(this,e,y2,b2,De,{class:1,name:2,sort:0,disable:3})}}function v2(n){let e;return{c(){e=_("span"),e.textContent="N/A",p(e,"class","txt txt-hint")},m(t,i){w(t,e,i)},p:oe,d(t){t&&k(e)}}}function k2(n){let e,t=W.formatToUTCDate(n[0])+"",i,s,l,r,o;return{c(){e=_("span"),i=H(t),s=H(" UTC"),p(e,"class","txt")},m(a,u){w(a,e,u),m(e,i),m(e,s),r||(o=Qe(l=$t.call(null,e,W.formatToLocalDate(n[0])+" Local")),r=!0)},p(a,u){u&1&&t!==(t=W.formatToUTCDate(a[0])+"")&&_e(i,t),l&&In(l.update)&&u&1&&l.update.call(null,W.formatToLocalDate(a[0])+" Local")},d(a){a&&k(e),r=!1,o()}}}function w2(n){let e;function t(l,r){return l[0]?k2:v2}let i=t(n),s=i(n);return{c(){s.c(),e=lt()},m(l,r){s.m(l,r),w(l,e,r)},p(l,[r]){i===(i=t(l))&&s?s.p(l,r):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},i:oe,o:oe,d(l){s.d(l),l&&k(e)}}}function S2(n,e,t){let{date:i=""}=e;return n.$$set=s=>{"date"in s&&t(0,i=s.date)},[i]}class Ci extends Ee{constructor(e){super(),Ae(this,e,S2,w2,De,{date:0})}}function Rc(n,e,t){const i=n.slice();return i[21]=e[t],i}function $2(n){let e;return{c(){e=_("div"),e.innerHTML=` + `}}function c2(n){let e,t,i,s;return{c(){e=_("input"),p(e,"type","text"),p(e,"id",n[8]),p(e,"placeholder",t=n[0]||n[1])},m(l,r){w(l,e,r),n[13](e),$e(e,n[7]),i||(s=Z(e,"input",n[14]),i=!0)},p(l,r){r&3&&t!==(t=l[0]||l[1])&&p(e,"placeholder",t),r&128&&e.value!==l[7]&&$e(e,l[7])},i:oe,o:oe,d(l){l&&k(e),n[13](null),i=!1,s()}}}function d2(n){let e,t,i,s;function l(a){n[12](a)}var r=n[4];function o(a){let u={singleLine:!0,disableRequestKeys:!0,disableIndirectCollectionsKeys:!0,extraAutocompleteKeys:a[3],baseCollection:a[2],placeholder:a[0]||a[1]};return a[7]!==void 0&&(u.value=a[7]),{props:u}}return r&&(e=new r(o(n)),me.push(()=>Ie(e,"value",l)),e.$on("submit",n[10])),{c(){e&&B(e.$$.fragment),i=lt()},m(a,u){e&&V(e,a,u),w(a,i,u),s=!0},p(a,u){const f={};if(u&8&&(f.extraAutocompleteKeys=a[3]),u&4&&(f.baseCollection=a[2]),u&3&&(f.placeholder=a[0]||a[1]),!t&&u&128&&(t=!0,f.value=a[7],Re(()=>t=!1)),r!==(r=a[4])){if(e){Te();const c=e;L(c.$$.fragment,1,0,()=>{z(c,1)}),Oe()}r?(e=new r(o(a)),me.push(()=>Ie(e,"value",l)),e.$on("submit",a[10]),B(e.$$.fragment),P(e.$$.fragment,1),V(e,i.parentNode,i)):e=null}else r&&e.$set(f)},i(a){s||(e&&P(e.$$.fragment,a),s=!0)},o(a){e&&L(e.$$.fragment,a),s=!1},d(a){a&&k(i),e&&z(e,a)}}}function Fc(n){let e,t,i,s,l,r,o=n[7]!==n[0]&&Ic();return{c(){o&&o.c(),e=T(),t=_("button"),t.innerHTML='Clear',p(t,"type","button"),p(t,"class","btn btn-secondary btn-sm btn-hint p-l-xs p-r-xs m-l-10")},m(a,u){o&&o.m(a,u),w(a,e,u),w(a,t,u),s=!0,l||(r=Z(t,"click",n[15]),l=!0)},p(a,u){a[7]!==a[0]?o?u&129&&P(o,1):(o=Ic(),o.c(),P(o,1),o.m(e.parentNode,e)):o&&(Te(),L(o,1,1,()=>{o=null}),Oe())},i(a){s||(P(o),Tt(()=>{i||(i=ct(t,ni,{duration:150,x:5},!0)),i.run(1)}),s=!0)},o(a){L(o),i||(i=ct(t,ni,{duration:150,x:5},!1)),i.run(0),s=!1},d(a){o&&o.d(a),a&&k(e),a&&k(t),a&&i&&i.end(),l=!1,r()}}}function Ic(n){let e,t,i;return{c(){e=_("button"),e.innerHTML='Search',p(e,"type","submit"),p(e,"class","btn btn-expanded btn-sm btn-warning")},m(s,l){w(s,e,l),i=!0},i(s){i||(Tt(()=>{t||(t=ct(e,ni,{duration:150,x:5},!0)),t.run(1)}),i=!0)},o(s){t||(t=ct(e,ni,{duration:150,x:5},!1)),t.run(0),i=!1},d(s){s&&k(e),s&&t&&t.end()}}}function p2(n){let e,t,i,s,l,r,o,a,u,f,c;const d=[d2,c2],h=[];function g(b,v){return b[4]&&!b[5]?0:1}r=g(n),o=h[r]=d[r](n);let y=(n[0].length||n[7].length)&&Fc(n);return{c(){e=_("div"),t=_("form"),i=_("label"),s=_("i"),l=T(),o.c(),a=T(),y&&y.c(),p(s,"class","ri-search-line"),p(i,"for",n[8]),p(i,"class","m-l-10 txt-xl"),p(t,"class","searchbar"),p(e,"class","searchbar-wrapper")},m(b,v){w(b,e,v),m(e,t),m(t,i),m(i,s),m(t,l),h[r].m(t,null),m(t,a),y&&y.m(t,null),u=!0,f||(c=[Z(t,"submit",Wt(n[10])),Z(e,"click",Wn(n[11]))],f=!0)},p(b,[v]){let S=r;r=g(b),r===S?h[r].p(b,v):(Te(),L(h[S],1,1,()=>{h[S]=null}),Oe(),o=h[r],o?o.p(b,v):(o=h[r]=d[r](b),o.c()),P(o,1),o.m(t,a)),b[0].length||b[7].length?y?(y.p(b,v),v&129&&P(y,1)):(y=Fc(b),y.c(),P(y,1),y.m(t,null)):y&&(Te(),L(y,1,1,()=>{y=null}),Oe())},i(b){u||(P(o),P(y),u=!0)},o(b){L(o),L(y),u=!1},d(b){b&&k(e),h[r].d(),y&&y.d(),f=!1,rt(c)}}}function h2(n,e,t){const i=cn(),s="search_"+W.randomString(7);let{value:l=""}=e,{placeholder:r='Search filter, ex. created > "2022-01-01"...'}=e,{autocompleteCollection:o=new Fn}=e,{extraAutocompleteKeys:a=[]}=e,u,f=!1,c,d="";function h(M=!0){t(7,d=""),M&&(c==null||c.focus()),i("clear")}function g(){t(0,l=d),i("submit",l)}async function y(){u||f||(t(5,f=!0),t(4,u=(await as(()=>import("./FilterAutocompleteInput.74e47ed9.js"),[])).default),t(5,f=!1))}ii(()=>{y()});function b(M){dt.call(this,n,M)}function v(M){d=M,t(7,d),t(0,l)}function S(M){me[M?"unshift":"push"](()=>{c=M,t(6,c)})}function $(){d=this.value,t(7,d),t(0,l)}const C=()=>{h(!1),g()};return n.$$set=M=>{"value"in M&&t(0,l=M.value),"placeholder"in M&&t(1,r=M.placeholder),"autocompleteCollection"in M&&t(2,o=M.autocompleteCollection),"extraAutocompleteKeys"in M&&t(3,a=M.extraAutocompleteKeys)},n.$$.update=()=>{n.$$.dirty&1&&typeof l=="string"&&t(7,d=l)},[l,r,o,a,u,f,c,d,s,h,g,b,v,S,$,C]}class Po extends Ee{constructor(e){super(),Ae(this,e,h2,p2,De,{value:0,placeholder:1,autocompleteCollection:2,extraAutocompleteKeys:3})}}let eu,ts;const tu="app-tooltip";function Nc(n){return typeof n=="string"?{text:n,position:"bottom",hideOnClick:null}:n||{}}function Bi(){return ts=ts||document.querySelector("."+tu),ts||(ts=document.createElement("div"),ts.classList.add(tu),document.body.appendChild(ts)),ts}function Rb(n,e){let t=Bi();if(!t.classList.contains("active")||!(e!=null&&e.text)){nu();return}t.textContent=e.text,t.className=tu+" active",e.class&&t.classList.add(e.class),t.style.top="0px",t.style.left="0px";let i=t.offsetHeight,s=t.offsetWidth,l=n.getBoundingClientRect(),r=0,o=0,a=5;e.position=="left"?(r=l.top+l.height/2-i/2,o=l.left-s-a):e.position=="right"?(r=l.top+l.height/2-i/2,o=l.right+a):e.position=="top"?(r=l.top-i-a,o=l.left+l.width/2-s/2):e.position=="top-left"?(r=l.top-i-a,o=l.left):e.position=="top-right"?(r=l.top-i-a,o=l.right-s):e.position=="bottom-left"?(r=l.top+l.height+a,o=l.left):e.position=="bottom-right"?(r=l.top+l.height+a,o=l.right-s):(r=l.top+l.height+a,o=l.left+l.width/2-s/2),o+s>document.documentElement.clientWidth&&(o=document.documentElement.clientWidth-s),o=o>=0?o:0,r+i>document.documentElement.clientHeight&&(r=document.documentElement.clientHeight-i),r=r>=0?r:0,t.style.top=r+"px",t.style.left=o+"px"}function nu(){clearTimeout(eu),Bi().classList.remove("active"),Bi().activeNode=void 0}function m2(n,e){Bi().activeNode=n,clearTimeout(eu),eu=setTimeout(()=>{Bi().classList.add("active"),Rb(n,e)},isNaN(e.delay)?250:e.delay)}function $t(n,e){let t=Nc(e);function i(){m2(n,t)}function s(){nu()}return n.addEventListener("mouseenter",i),n.addEventListener("mouseleave",s),n.addEventListener("blur",s),(t.hideOnClick===!0||t.hideOnClick===null&&W.isFocusable(n))&&n.addEventListener("click",s),Bi(),{update(l){var r,o;t=Nc(l),(o=(r=Bi())==null?void 0:r.activeNode)!=null&&o.contains(n)&&Rb(n,t)},destroy(){var l,r;(r=(l=Bi())==null?void 0:l.activeNode)!=null&&r.contains(n)&&nu(),n.removeEventListener("mouseenter",i),n.removeEventListener("mouseleave",s),n.removeEventListener("blur",s),n.removeEventListener("click",s)}}}function g2(n){let e,t,i,s;return{c(){e=_("button"),e.innerHTML='',p(e,"type","button"),p(e,"class","btn btn-secondary btn-circle svelte-a2q6ng"),Q(e,"refreshing",n[1])},m(l,r){w(l,e,r),i||(s=[Qe(t=$t.call(null,e,n[0])),Z(e,"click",n[2])],i=!0)},p(l,[r]){t&&In(t.update)&&r&1&&t.update.call(null,l[0]),r&2&&Q(e,"refreshing",l[1])},i:oe,o:oe,d(l){l&&k(e),i=!1,rt(s)}}}function _2(n,e,t){const i=cn();let{tooltip:s={text:"Refresh",position:"right"}}=e,l=null;function r(){i("refresh");const o=s;t(0,s=null),clearTimeout(l),t(1,l=setTimeout(()=>{clearTimeout(l),t(1,l=null),t(0,s=o)},200))}return ii(()=>()=>clearTimeout(l)),n.$$set=o=>{"tooltip"in o&&t(0,s=o.tooltip)},[s,l,r]}class Lo extends Ee{constructor(e){super(),Ae(this,e,_2,g2,De,{tooltip:0})}}function b2(n){let e,t,i,s,l;const r=n[6].default,o=Dn(r,n,n[5],null);return{c(){e=_("th"),o&&o.c(),p(e,"tabindex","0"),p(e,"class",t="col-sort "+n[1]),Q(e,"col-sort-disabled",n[3]),Q(e,"sort-active",n[0]==="-"+n[2]||n[0]==="+"+n[2]),Q(e,"sort-desc",n[0]==="-"+n[2]),Q(e,"sort-asc",n[0]==="+"+n[2])},m(a,u){w(a,e,u),o&&o.m(e,null),i=!0,s||(l=[Z(e,"click",n[7]),Z(e,"keydown",n[8])],s=!0)},p(a,[u]){o&&o.p&&(!i||u&32)&&En(o,r,a,a[5],i?An(r,a[5],u,null):Pn(a[5]),null),(!i||u&2&&t!==(t="col-sort "+a[1]))&&p(e,"class",t),u&10&&Q(e,"col-sort-disabled",a[3]),u&7&&Q(e,"sort-active",a[0]==="-"+a[2]||a[0]==="+"+a[2]),u&7&&Q(e,"sort-desc",a[0]==="-"+a[2]),u&7&&Q(e,"sort-asc",a[0]==="+"+a[2])},i(a){i||(P(o,a),i=!0)},o(a){L(o,a),i=!1},d(a){a&&k(e),o&&o.d(a),s=!1,rt(l)}}}function y2(n,e,t){let{$$slots:i={},$$scope:s}=e,{class:l=""}=e,{name:r}=e,{sort:o=""}=e,{disable:a=!1}=e;function u(){a||("-"+r===o?t(0,o="+"+r):t(0,o="-"+r))}const f=()=>u(),c=d=>{(d.code==="Enter"||d.code==="Space")&&(d.preventDefault(),u())};return n.$$set=d=>{"class"in d&&t(1,l=d.class),"name"in d&&t(2,r=d.name),"sort"in d&&t(0,o=d.sort),"disable"in d&&t(3,a=d.disable),"$$scope"in d&&t(5,s=d.$$scope)},[o,l,r,a,u,s,i,f,c]}class nn extends Ee{constructor(e){super(),Ae(this,e,y2,b2,De,{class:1,name:2,sort:0,disable:3})}}function v2(n){let e;return{c(){e=_("span"),e.textContent="N/A",p(e,"class","txt txt-hint")},m(t,i){w(t,e,i)},p:oe,d(t){t&&k(e)}}}function k2(n){let e,t=W.formatToUTCDate(n[0])+"",i,s,l,r,o;return{c(){e=_("span"),i=H(t),s=H(" UTC"),p(e,"class","txt")},m(a,u){w(a,e,u),m(e,i),m(e,s),r||(o=Qe(l=$t.call(null,e,W.formatToLocalDate(n[0])+" Local")),r=!0)},p(a,u){u&1&&t!==(t=W.formatToUTCDate(a[0])+"")&&_e(i,t),l&&In(l.update)&&u&1&&l.update.call(null,W.formatToLocalDate(a[0])+" Local")},d(a){a&&k(e),r=!1,o()}}}function w2(n){let e;function t(l,r){return l[0]?k2:v2}let i=t(n),s=i(n);return{c(){s.c(),e=lt()},m(l,r){s.m(l,r),w(l,e,r)},p(l,[r]){i===(i=t(l))&&s?s.p(l,r):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},i:oe,o:oe,d(l){s.d(l),l&&k(e)}}}function S2(n,e,t){let{date:i=""}=e;return n.$$set=s=>{"date"in s&&t(0,i=s.date)},[i]}class Ci extends Ee{constructor(e){super(),Ae(this,e,S2,w2,De,{date:0})}}function Rc(n,e,t){const i=n.slice();return i[21]=e[t],i}function $2(n){let e;return{c(){e=_("div"),e.innerHTML=` method`,p(e,"class","col-header-content")},m(t,i){w(t,e,i)},p:oe,d(t){t&&k(e)}}}function C2(n){let e,t,i,s;return{c(){e=_("div"),t=_("i"),i=T(),s=_("span"),s.textContent="url",p(t,"class",W.getFieldTypeIcon("url")),p(s,"class","txt"),p(e,"class","col-header-content")},m(l,r){w(l,e,r),m(e,t),m(e,i),m(e,s)},p:oe,d(l){l&&k(e)}}}function M2(n){let e,t,i,s;return{c(){e=_("div"),t=_("i"),i=T(),s=_("span"),s.textContent="referer",p(t,"class",W.getFieldTypeIcon("url")),p(s,"class","txt"),p(e,"class","col-header-content")},m(l,r){w(l,e,r),m(e,t),m(e,i),m(e,s)},p:oe,d(l){l&&k(e)}}}function T2(n){let e,t,i,s;return{c(){e=_("div"),t=_("i"),i=T(),s=_("span"),s.textContent="status",p(t,"class",W.getFieldTypeIcon("number")),p(s,"class","txt"),p(e,"class","col-header-content")},m(l,r){w(l,e,r),m(e,t),m(e,i),m(e,s)},p:oe,d(l){l&&k(e)}}}function O2(n){let e,t,i,s;return{c(){e=_("div"),t=_("i"),i=T(),s=_("span"),s.textContent="created",p(t,"class",W.getFieldTypeIcon("date")),p(s,"class","txt"),p(e,"class","col-header-content")},m(l,r){w(l,e,r),m(e,t),m(e,i),m(e,s)},p:oe,d(l){l&&k(e)}}}function jc(n){let e;function t(l,r){return l[6]?A2:D2}let i=t(n),s=i(n);return{c(){s.c(),e=lt()},m(l,r){s.m(l,r),w(l,e,r)},p(l,r){i===(i=t(l))&&s?s.p(l,r):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},d(l){s.d(l),l&&k(e)}}}function D2(n){var o;let e,t,i,s,l,r=((o=n[0])==null?void 0:o.length)&&Hc(n);return{c(){e=_("tr"),t=_("td"),i=_("h6"),i.textContent="No logs found.",s=T(),r&&r.c(),l=T(),p(t,"colspan","99"),p(t,"class","txt-center txt-hint p-xs")},m(a,u){w(a,e,u),m(e,t),m(t,i),m(t,s),r&&r.m(t,null),m(e,l)},p(a,u){var f;(f=a[0])!=null&&f.length?r?r.p(a,u):(r=Hc(a),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(a){a&&k(e),r&&r.d()}}}function A2(n){let e;return{c(){e=_("tr"),e.innerHTML=` `},m(t,i){w(t,e,i)},p:oe,d(t){t&&k(e)}}}function Hc(n){let e,t,i;return{c(){e=_("button"),e.innerHTML='Clear filters',p(e,"type","button"),p(e,"class","btn btn-hint btn-expanded m-t-sm")},m(s,l){w(s,e,l),t||(i=Z(e,"click",n[18]),t=!0)},p:oe,d(s){s&&k(e),t=!1,i()}}}function qc(n){let e;return{c(){e=_("i"),p(e,"class","ri-error-warning-line txt-danger m-l-5 m-r-5"),p(e,"title","Error")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function Vc(n,e){var ae,x,Ce;let t,i,s,l=((ae=e[21].method)==null?void 0:ae.toUpperCase())+"",r,o,a,u,f,c=e[21].url+"",d,h,g,y,b,v,S=(e[21].referer||"N/A")+"",$,C,M,O,E,D=e[21].status+"",F,A,N,q,X,ee,j,Y,K,J,te=(((x=e[21].meta)==null?void 0:x.errorMessage)||((Ce=e[21].meta)==null?void 0:Ce.errorData))&&qc();q=new Ci({props:{date:e[21].created}});function se(){return e[16](e[21])}function be(...de){return e[17](e[21],...de)}return{key:n,first:null,c(){t=_("tr"),i=_("td"),s=_("span"),r=H(l),a=T(),u=_("td"),f=_("span"),d=H(c),g=T(),te&&te.c(),y=T(),b=_("td"),v=_("span"),$=H(S),M=T(),O=_("td"),E=_("span"),F=H(D),A=T(),N=_("td"),B(q.$$.fragment),X=T(),ee=_("td"),ee.innerHTML='',j=T(),p(s,"class",o="label txt-uppercase "+e[9][e[21].method.toLowerCase()]),p(i,"class","col-type-text col-field-method min-width"),p(f,"class","txt txt-ellipsis"),p(f,"title",h=e[21].url),p(u,"class","col-type-text col-field-url"),p(v,"class","txt txt-ellipsis"),p(v,"title",C=e[21].referer),Q(v,"txt-hint",!e[21].referer),p(b,"class","col-type-text col-field-referer"),p(E,"class","label"),Q(E,"label-danger",e[21].status>=400),p(O,"class","col-type-number col-field-status"),p(N,"class","col-type-date col-field-created"),p(ee,"class","col-type-action min-width"),p(t,"tabindex","0"),p(t,"class","row-handle"),this.first=t},m(de,fe){w(de,t,fe),m(t,i),m(i,s),m(s,r),m(t,a),m(t,u),m(u,f),m(f,d),m(u,g),te&&te.m(u,null),m(t,y),m(t,b),m(b,v),m(v,$),m(t,M),m(t,O),m(O,E),m(E,F),m(t,A),m(t,N),V(q,N,null),m(t,X),m(t,ee),m(t,j),Y=!0,K||(J=[Z(t,"click",se),Z(t,"keydown",be)],K=!0)},p(de,fe){var ne,ye,je;e=de,(!Y||fe&8)&&l!==(l=((ne=e[21].method)==null?void 0:ne.toUpperCase())+"")&&_e(r,l),(!Y||fe&8&&o!==(o="label txt-uppercase "+e[9][e[21].method.toLowerCase()]))&&p(s,"class",o),(!Y||fe&8)&&c!==(c=e[21].url+"")&&_e(d,c),(!Y||fe&8&&h!==(h=e[21].url))&&p(f,"title",h),((ye=e[21].meta)==null?void 0:ye.errorMessage)||((je=e[21].meta)==null?void 0:je.errorData)?te||(te=qc(),te.c(),te.m(u,null)):te&&(te.d(1),te=null),(!Y||fe&8)&&S!==(S=(e[21].referer||"N/A")+"")&&_e($,S),(!Y||fe&8&&C!==(C=e[21].referer))&&p(v,"title",C),fe&8&&Q(v,"txt-hint",!e[21].referer),(!Y||fe&8)&&D!==(D=e[21].status+"")&&_e(F,D),fe&8&&Q(E,"label-danger",e[21].status>=400);const le={};fe&8&&(le.date=e[21].created),q.$set(le)},i(de){Y||(P(q.$$.fragment,de),Y=!0)},o(de){L(q.$$.fragment,de),Y=!1},d(de){de&&k(t),te&&te.d(),z(q),K=!1,rt(J)}}}function zc(n){let e,t,i=n[3].length+"",s,l,r;return{c(){e=_("small"),t=H("Showing "),s=H(i),l=H(" of "),r=H(n[4]),p(e,"class","block txt-hint txt-right m-t-sm")},m(o,a){w(o,e,a),m(e,t),m(e,s),m(e,l),m(e,r)},p(o,a){a&8&&i!==(i=o[3].length+"")&&_e(s,i),a&16&&_e(r,o[4])},d(o){o&&k(e)}}}function Bc(n){let e,t,i,s,l=n[4]-n[3].length+"",r,o,a,u;return{c(){e=_("div"),t=_("button"),i=_("span"),s=H("Load more ("),r=H(l),o=H(")"),p(i,"class","txt"),p(t,"type","button"),p(t,"class","btn btn-lg btn-secondary btn-expanded"),Q(t,"btn-loading",n[6]),Q(t,"btn-disabled",n[6]),p(e,"class","block txt-center m-t-xs")},m(f,c){w(f,e,c),m(e,t),m(t,i),m(i,s),m(i,r),m(i,o),a||(u=Z(t,"click",n[19]),a=!0)},p(f,c){c&24&&l!==(l=f[4]-f[3].length+"")&&_e(r,l),c&64&&Q(t,"btn-loading",f[6]),c&64&&Q(t,"btn-disabled",f[6])},d(f){f&&k(e),a=!1,u()}}}function E2(n){let e,t,i,s,l,r,o,a,u,f,c,d,h,g,y,b,v,S,$,C,M,O,E=[],D=new Map,F,A,N,q;function X(ne){n[11](ne)}let ee={disable:!0,class:"col-field-method",name:"method",$$slots:{default:[$2]},$$scope:{ctx:n}};n[1]!==void 0&&(ee.sort=n[1]),l=new nn({props:ee}),me.push(()=>Ie(l,"sort",X));function j(ne){n[12](ne)}let Y={disable:!0,class:"col-type-text col-field-url",name:"url",$$slots:{default:[C2]},$$scope:{ctx:n}};n[1]!==void 0&&(Y.sort=n[1]),a=new nn({props:Y}),me.push(()=>Ie(a,"sort",j));function K(ne){n[13](ne)}let J={disable:!0,class:"col-type-text col-field-referer",name:"referer",$$slots:{default:[M2]},$$scope:{ctx:n}};n[1]!==void 0&&(J.sort=n[1]),c=new nn({props:J}),me.push(()=>Ie(c,"sort",K));function te(ne){n[14](ne)}let se={disable:!0,class:"col-type-number col-field-status",name:"status",$$slots:{default:[T2]},$$scope:{ctx:n}};n[1]!==void 0&&(se.sort=n[1]),g=new nn({props:se}),me.push(()=>Ie(g,"sort",te));function be(ne){n[15](ne)}let ae={disable:!0,class:"col-type-date col-field-created",name:"created",$$slots:{default:[O2]},$$scope:{ctx:n}};n[1]!==void 0&&(ae.sort=n[1]),v=new nn({props:ae}),me.push(()=>Ie(v,"sort",be));let x=n[3];const Ce=ne=>ne[21].id;for(let ne=0;ner=!1)),l.$set(je);const Le={};ye&16777216&&(Le.$$scope={dirty:ye,ctx:ne}),!u&&ye&2&&(u=!0,Le.sort=ne[1],Re(()=>u=!1)),a.$set(Le);const Pe={};ye&16777216&&(Pe.$$scope={dirty:ye,ctx:ne}),!d&&ye&2&&(d=!0,Pe.sort=ne[1],Re(()=>d=!1)),c.$set(Pe);const ue={};ye&16777216&&(ue.$$scope={dirty:ye,ctx:ne}),!y&&ye&2&&(y=!0,ue.sort=ne[1],Re(()=>y=!1)),g.$set(ue);const ce={};ye&16777216&&(ce.$$scope={dirty:ye,ctx:ne}),!S&&ye&2&&(S=!0,ce.sort=ne[1],Re(()=>S=!1)),v.$set(ce),ye&841&&(x=ne[3],Te(),E=ut(E,ye,Ce,1,ne,x,D,O,Ft,Vc,null,Rc),Oe(),!x.length&&de?de.p(ne,ye):x.length?de&&(de.d(1),de=null):(de=jc(ne),de.c(),de.m(O,null))),ye&64&&Q(t,"table-loading",ne[6]),ne[3].length?fe?fe.p(ne,ye):(fe=zc(ne),fe.c(),fe.m(A.parentNode,A)):fe&&(fe.d(1),fe=null),ne[3].length&&ne[7]?le?le.p(ne,ye):(le=Bc(ne),le.c(),le.m(N.parentNode,N)):le&&(le.d(1),le=null)},i(ne){if(!q){P(l.$$.fragment,ne),P(a.$$.fragment,ne),P(c.$$.fragment,ne),P(g.$$.fragment,ne),P(v.$$.fragment,ne);for(let ye=0;ye{D<=1&&g(),t(6,d=!1),t(3,u=u.concat(F.items)),t(5,f=F.page),t(4,c=F.totalItems),s("load",u)}).catch(F=>{F!==null&&(t(6,d=!1),console.warn(F),g(),ke.errorResponseHandler(F,!1))})}function g(){t(3,u=[]),t(5,f=1),t(4,c=0)}function y(D){a=D,t(1,a)}function b(D){a=D,t(1,a)}function v(D){a=D,t(1,a)}function S(D){a=D,t(1,a)}function $(D){a=D,t(1,a)}const C=D=>s("select",D),M=(D,F)=>{F.code==="Enter"&&(F.preventDefault(),s("select",D))},O=()=>t(0,r=""),E=()=>h(f+1);return n.$$set=D=>{"filter"in D&&t(0,r=D.filter),"presets"in D&&t(10,o=D.presets),"sort"in D&&t(1,a=D.sort)},n.$$.update=()=>{n.$$.dirty&1027&&(typeof a!="undefined"||typeof r!="undefined"||typeof o!="undefined")&&(g(),h(1)),n.$$.dirty&24&&t(7,i=c>u.length)},[r,a,h,u,c,f,d,i,s,l,o,y,b,v,S,$,C,M,O,E]}class L2 extends Ee{constructor(e){super(),Ae(this,e,P2,E2,De,{filter:0,presets:10,sort:1,load:2})}get load(){return this.$$.ctx[2]}}/*! * Chart.js v3.8.0 @@ -62,7 +62,7 @@ const B0=function(){const e=document.createElement("link").relList;if(e&&e.suppo
@request.user.id!=null && created>"2022-01-01 00:00:00"`,p(s,"class","m-b-0"),p(r,"class","inline-flex flex-gap-5"),p(g,"class","m-t-10 m-b-5"),p(b,"class","m-b-0"),p(S,"class","inline-flex flex-gap-5"),p(C,"class","m-t-10 m-b-5"),p(O,"class","m-b-0"),p(D,"class","inline-flex flex-gap-5"),p(A,"class","m-t-10 m-b-5"),p(i,"class","content"),p(t,"class","alert alert-warning m-0")},m(K,J){w(K,e,J),m(e,t),m(t,i),m(i,s),m(i,l),m(i,r),m(r,o),m(r,a),m(r,u),m(r,f),m(r,c),m(r,d);for(let te=0;te{X||(X=ct(e,Xt,{duration:150},!0)),X.run(1)}),ee=!0)},o(K){K&&(X||(X=ct(e,Xt,{duration:150},!1)),X.run(0)),ee=!1},d(K){K&&k(e),Un(Y,K),K&&X&&X.end()}}}function zM(n){let e,t=n[19].name+"",i;return{c(){e=_("code"),i=H(t)},m(s,l){w(s,e,l),m(e,i)},p(s,l){l&1&&t!==(t=s[19].name+"")&&_e(i,t)},d(s){s&&k(e)}}}function BM(n){let e,t=n[19].name+"",i,s;return{c(){e=_("code"),i=H(t),s=H(".*")},m(l,r){w(l,e,r),m(e,i),m(e,s)},p(l,r){r&1&&t!==(t=l[19].name+"")&&_e(i,t)},d(l){l&&k(e)}}}function xp(n){let e;function t(l,r){return l[19].type==="relation"||l[19].type==="user"?BM:zM}let i=t(n),s=i(n);return{c(){s.c(),e=lt()},m(l,r){s.m(l,r),w(l,e,r)},p(l,r){i===(i=t(l))&&s?s.p(l,r):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},d(l){s.d(l),l&&k(e)}}}function UM(n){let e=[],t=new Map,i,s,l=Object.entries(n[6]);const r=o=>o[14];for(let o=0;o',p(e,"class","txt-center")},m(t,i){w(t,e,i)},p:oe,i:oe,o:oe,d(t){t&&k(e)}}}function YM(n){let e,t,i;function s(){return n[9](n[14])}return{c(){e=_("button"),e.innerHTML='',p(e,"type","button"),p(e,"class","rule-toggle-btn btn btn-circle btn-outline svelte-fjxz7k")},m(l,r){w(l,e,r),t||(i=[Qe($t.call(null,e,"Lock and set to Admins only")),Z(e,"click",s)],t=!0)},p(l,r){n=l},d(l){l&&k(e),t=!1,rt(i)}}}function KM(n){let e,t,i;function s(){return n[8](n[14])}return{c(){e=_("button"),e.innerHTML='',p(e,"type","button"),p(e,"class","rule-toggle-btn btn btn-circle btn-outline btn-success svelte-fjxz7k")},m(l,r){w(l,e,r),t||(i=[Qe($t.call(null,e,"Unlock and set custom rule")),Z(e,"click",s)],t=!0)},p(l,r){n=l},d(l){l&&k(e),t=!1,rt(i)}}}function JM(n){let e;return{c(){e=H("Leave empty to grant everyone access")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function GM(n){let e;return{c(){e=H("Only admins will be able to access (unlock to change)")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function ZM(n){let e,t=n[15]+"",i,s,l=Hi(n[0][n[14]])?"Admins only":"Custom rule",r,o,a,u,f=n[14],c,d,h,g,y,b,v;function S(){return n[10](n[14])}const $=()=>n[11](u,f),C=()=>n[11](null,f);function M(N){n[12](N,n[14])}var O=n[4];function E(N){let q={baseCollection:N[0],disabled:Hi(N[0][N[14]])};return N[0][N[14]]!==void 0&&(q.value=N[0][N[14]]),{props:q}}O&&(u=new O(E(n)),$(),me.push(()=>Ie(u,"value",M)));function D(N,q){return q&1&&(g=null),g==null&&(g=!!Hi(N[0][N[14]])),g?GM:JM}let F=D(n,-1),A=F(n);return{c(){e=_("label"),i=H(t),s=H(" - "),r=H(l),a=T(),u&&B(u.$$.fragment),d=T(),h=_("div"),A.c(),p(e,"for",o=n[18]),p(h,"class","help-block")},m(N,q){w(N,e,q),m(e,i),m(e,s),m(e,r),w(N,a,q),u&&V(u,N,q),w(N,d,q),w(N,h,q),A.m(h,null),y=!0,b||(v=Z(e,"click",S),b=!0)},p(N,q){n=N,(!y||q&1)&&l!==(l=Hi(n[0][n[14]])?"Admins only":"Custom rule")&&_e(r,l),(!y||q&262144&&o!==(o=n[18]))&&p(e,"for",o),f!==n[14]&&(C(),f=n[14],$());const X={};if(q&1&&(X.baseCollection=n[0]),q&1&&(X.disabled=Hi(n[0][n[14]])),!c&&q&65&&(c=!0,X.value=n[0][n[14]],Re(()=>c=!1)),O!==(O=n[4])){if(u){Te();const ee=u;L(ee.$$.fragment,1,0,()=>{z(ee,1)}),Oe()}O?(u=new O(E(n)),$(),me.push(()=>Ie(u,"value",M)),B(u.$$.fragment),P(u.$$.fragment,1),V(u,d.parentNode,d)):u=null}else O&&u.$set(X);F!==(F=D(n,q))&&(A.d(1),A=F(n),A&&(A.c(),A.m(h,null)))},i(N){y||(u&&P(u.$$.fragment,N),y=!0)},o(N){u&&L(u.$$.fragment,N),y=!1},d(N){N&&k(e),N&&k(a),C(),u&&z(u,N),N&&k(d),N&&k(h),A.d(),b=!1,v()}}}function Xp(n,e){let t,i,s,l,r,o,a,u;function f(h,g){return g&1&&(l=null),l==null&&(l=!!Hi(h[0][h[14]])),l?KM:YM}let c=f(e,-1),d=c(e);return o=new Fe({props:{class:"form-field rule-field m-0 "+(Hi(e[0][e[14]])?"disabled":""),name:e[14],$$slots:{default:[ZM,({uniqueId:h})=>({18:h}),({uniqueId:h})=>h?262144:0]},$$scope:{ctx:e}}}),{key:n,first:null,c(){t=_("hr"),i=T(),s=_("div"),d.c(),r=T(),B(o.$$.fragment),a=T(),p(t,"class","m-t-sm m-b-sm"),p(s,"class","rule-block svelte-fjxz7k"),this.first=t},m(h,g){w(h,t,g),w(h,i,g),w(h,s,g),d.m(s,null),m(s,r),V(o,s,null),m(s,a),u=!0},p(h,g){e=h,c===(c=f(e,g))&&d?d.p(e,g):(d.d(1),d=c(e),d&&(d.c(),d.m(s,r)));const y={};g&1&&(y.class="form-field rule-field m-0 "+(Hi(e[0][e[14]])?"disabled":"")),g&4456473&&(y.$$scope={dirty:g,ctx:e}),o.$set(y)},i(h){u||(P(o.$$.fragment,h),u=!0)},o(h){L(o.$$.fragment,h),u=!1},d(h){h&&k(t),h&&k(i),h&&k(s),d.d(),z(o)}}}function xM(n){let e,t,i,s,l,r=n[2]?"Hide available fields":"Show available fields",o,a,u,f,c,d,h,g,y,b=n[2]&&Zp(n);const v=[WM,UM],S=[];function $(C,M){return C[5]?0:1}return f=$(n),c=S[f]=v[f](n),{c(){e=_("div"),t=_("div"),i=_("p"),i.innerHTML=`All rules follow the
PocketBase filter syntax and operators - .`,s=T(),l=_("span"),o=H(r),a=T(),b&&b.c(),u=T(),c.c(),d=lt(),p(l,"class","expand-handle txt-sm txt-bold txt-nowrap link-hint"),p(t,"class","flex"),p(e,"class","block m-b-base")},m(C,M){w(C,e,M),m(e,t),m(t,i),m(t,s),m(t,l),m(l,o),m(e,a),b&&b.m(e,null),w(C,u,M),S[f].m(C,M),w(C,d,M),h=!0,g||(y=Z(l,"click",n[7]),g=!0)},p(C,[M]){(!h||M&4)&&r!==(r=C[2]?"Hide available fields":"Show available fields")&&_e(o,r),C[2]?b?(b.p(C,M),M&4&&P(b,1)):(b=Zp(C),b.c(),P(b,1),b.m(e,null)):b&&(Te(),L(b,1,1,()=>{b=null}),Oe());let O=f;f=$(C),f===O?S[f].p(C,M):(Te(),L(S[O],1,1,()=>{S[O]=null}),Oe(),c=S[f],c?c.p(C,M):(c=S[f]=v[f](C),c.c()),P(c,1),c.m(d.parentNode,d))},i(C){h||(P(b),P(c),h=!0)},o(C){L(b),L(c),h=!1},d(C){C&&k(e),b&&b.d(),C&&k(u),S[f].d(C),C&&k(d),g=!1,y()}}}function Hi(n){return n===null}function XM(n,e,t){let{collection:i=new Fn}=e,s={},l=!1,r={},o,a=!1;const u={listRule:"List Action",viewRule:"View Action",createRule:"Create Action",updateRule:"Update Action",deleteRule:"Delete Action"};async function f(){t(5,a=!0);try{t(4,o=(await as(()=>import("./FilterAutocompleteInput.1d8e6916.js"),[])).default)}catch(v){console.warn(v),t(4,o=null)}t(5,a=!1)}ii(()=>{f()});const c=()=>t(2,l=!l),d=async v=>{var S;t(0,i[v]=s[v]||"",i),await Ti(),(S=r[v])==null||S.focus()},h=v=>{t(1,s[v]=i[v],s),t(0,i[v]=null,i)},g=v=>{var S;return(S=r[v])==null?void 0:S.focus()};function y(v,S){me[v?"unshift":"push"](()=>{r[S]=v,t(3,r)})}function b(v,S){n.$$.not_equal(i[S],v)&&(i[S]=v,t(0,i))}return n.$$set=v=>{"collection"in v&&t(0,i=v.collection)},[i,s,l,r,o,a,u,c,d,h,g,y,b]}class QM extends Ee{constructor(e){super(),Ae(this,e,XM,xM,De,{collection:0})}}function Qp(n,e,t){const i=n.slice();return i[14]=e[t],i}function eh(n,e,t){const i=n.slice();return i[14]=e[t],i}function th(n){let e;return{c(){e=_("p"),e.textContent="All data associated with the removed fields will be permanently deleted!"},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function nh(n){let e,t,i,s,l=n[1].originalName+"",r,o,a,u,f,c=n[1].name+"",d;return{c(){e=_("li"),t=_("div"),i=H(`Renamed collection + .`,s=T(),l=_("span"),o=H(r),a=T(),b&&b.c(),u=T(),c.c(),d=lt(),p(l,"class","expand-handle txt-sm txt-bold txt-nowrap link-hint"),p(t,"class","flex"),p(e,"class","block m-b-base")},m(C,M){w(C,e,M),m(e,t),m(t,i),m(t,s),m(t,l),m(l,o),m(e,a),b&&b.m(e,null),w(C,u,M),S[f].m(C,M),w(C,d,M),h=!0,g||(y=Z(l,"click",n[7]),g=!0)},p(C,[M]){(!h||M&4)&&r!==(r=C[2]?"Hide available fields":"Show available fields")&&_e(o,r),C[2]?b?(b.p(C,M),M&4&&P(b,1)):(b=Zp(C),b.c(),P(b,1),b.m(e,null)):b&&(Te(),L(b,1,1,()=>{b=null}),Oe());let O=f;f=$(C),f===O?S[f].p(C,M):(Te(),L(S[O],1,1,()=>{S[O]=null}),Oe(),c=S[f],c?c.p(C,M):(c=S[f]=v[f](C),c.c()),P(c,1),c.m(d.parentNode,d))},i(C){h||(P(b),P(c),h=!0)},o(C){L(b),L(c),h=!1},d(C){C&&k(e),b&&b.d(),C&&k(u),S[f].d(C),C&&k(d),g=!1,y()}}}function Hi(n){return n===null}function XM(n,e,t){let{collection:i=new Fn}=e,s={},l=!1,r={},o,a=!1;const u={listRule:"List Action",viewRule:"View Action",createRule:"Create Action",updateRule:"Update Action",deleteRule:"Delete Action"};async function f(){t(5,a=!0);try{t(4,o=(await as(()=>import("./FilterAutocompleteInput.74e47ed9.js"),[])).default)}catch(v){console.warn(v),t(4,o=null)}t(5,a=!1)}ii(()=>{f()});const c=()=>t(2,l=!l),d=async v=>{var S;t(0,i[v]=s[v]||"",i),await Ti(),(S=r[v])==null||S.focus()},h=v=>{t(1,s[v]=i[v],s),t(0,i[v]=null,i)},g=v=>{var S;return(S=r[v])==null?void 0:S.focus()};function y(v,S){me[v?"unshift":"push"](()=>{r[S]=v,t(3,r)})}function b(v,S){n.$$.not_equal(i[S],v)&&(i[S]=v,t(0,i))}return n.$$set=v=>{"collection"in v&&t(0,i=v.collection)},[i,s,l,r,o,a,u,c,d,h,g,y,b]}class QM extends Ee{constructor(e){super(),Ae(this,e,XM,xM,De,{collection:0})}}function Qp(n,e,t){const i=n.slice();return i[14]=e[t],i}function eh(n,e,t){const i=n.slice();return i[14]=e[t],i}function th(n){let e;return{c(){e=_("p"),e.textContent="All data associated with the removed fields will be permanently deleted!"},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function nh(n){let e,t,i,s,l=n[1].originalName+"",r,o,a,u,f,c=n[1].name+"",d;return{c(){e=_("li"),t=_("div"),i=H(`Renamed collection `),s=_("strong"),r=H(l),o=T(),a=_("i"),u=T(),f=_("strong"),d=H(c),p(s,"class","txt-strikethrough txt-hint"),p(a,"class","ri-arrow-right-line txt-sm"),p(f,"class","txt"),p(t,"class","inline-flex")},m(h,g){w(h,e,g),m(e,t),m(t,i),m(t,s),m(s,r),m(t,o),m(t,a),m(t,u),m(t,f),m(f,d)},p(h,g){g&2&&l!==(l=h[1].originalName+"")&&_e(r,l),g&2&&c!==(c=h[1].name+"")&&_e(d,c)},d(h){h&&k(e)}}}function ih(n){let e,t,i,s,l=n[14].originalName+"",r,o,a,u,f,c=n[14].name+"",d;return{c(){e=_("li"),t=_("div"),i=H(`Renamed field `),s=_("strong"),r=H(l),o=T(),a=_("i"),u=T(),f=_("strong"),d=H(c),p(s,"class","txt-strikethrough txt-hint"),p(a,"class","ri-arrow-right-line txt-sm"),p(f,"class","txt"),p(t,"class","inline-flex")},m(h,g){w(h,e,g),m(e,t),m(t,i),m(t,s),m(s,r),m(t,o),m(t,a),m(t,u),m(t,f),m(f,d)},p(h,g){g&16&&l!==(l=h[14].originalName+"")&&_e(r,l),g&16&&c!==(c=h[14].name+"")&&_e(d,c)},d(h){h&&k(e)}}}function sh(n){let e,t,i,s=n[14].name+"",l,r;return{c(){e=_("li"),t=H("Removed field "),i=_("span"),l=H(s),r=T(),p(i,"class","txt-bold"),p(e,"class","txt-danger")},m(o,a){w(o,e,a),m(e,t),m(e,i),m(i,l),m(e,r)},p(o,a){a&8&&s!==(s=o[14].name+"")&&_e(l,s)},d(o){o&&k(e)}}}function eT(n){let e,t,i,s,l,r,o,a,u,f,c,d,h=n[3].length&&th(),g=n[5]&&nh(n),y=n[4],b=[];for(let $=0;$',i=T(),s=_("div"),l=_("p"),l.textContent=`If any of the following changes is part of another collection rule or filter, you'll have to update it manually!`,r=T(),h&&h.c(),o=T(),a=_("h6"),a.textContent="Changes:",u=T(),f=_("ul"),g&&g.c(),c=T();for(let $=0;$Cancel',t=T(),i=_("button"),i.innerHTML='Confirm',e.autofocus=!0,p(e,"type","button"),p(e,"class","btn btn-secondary"),p(i,"type","button"),p(i,"class","btn btn-expanded")},m(r,o){w(r,e,o),w(r,t,o),w(r,i,o),e.focus(),s||(l=[Z(e,"click",n[8]),Z(i,"click",n[9])],s=!0)},p:oe,d(r){r&&k(e),r&&k(t),r&&k(i),s=!1,rt(l)}}}function iT(n){let e,t,i={class:"confirm-changes-panel",popup:!0,$$slots:{footer:[nT],header:[tT],default:[eT]},$$scope:{ctx:n}};return e=new Ai({props:i}),n[10](e),e.$on("hide",n[11]),e.$on("show",n[12]),{c(){B(e.$$.fragment)},m(s,l){V(e,s,l),t=!0},p(s,[l]){const r={};l&524346&&(r.$$scope={dirty:l,ctx:s}),e.$set(r)},i(s){t||(P(e.$$.fragment,s),t=!0)},o(s){L(e.$$.fragment,s),t=!1},d(s){n[10](null),z(e,s)}}}function sT(n,e,t){let i,s,l;const r=cn();let o,a;async function u(v){t(1,a=v),await Ti(),!i&&!s.length&&!l.length?c():o==null||o.show()}function f(){o==null||o.hide()}function c(){f(),r("confirm")}const d=()=>f(),h=()=>c();function g(v){me[v?"unshift":"push"](()=>{o=v,t(2,o)})}function y(v){dt.call(this,n,v)}function b(v){dt.call(this,n,v)}return n.$$.update=()=>{n.$$.dirty&2&&t(5,i=(a==null?void 0:a.originalName)!=(a==null?void 0:a.name)),n.$$.dirty&2&&t(4,s=(a==null?void 0:a.schema.filter(v=>v.id&&!v.toDelete&&v.originalName!=v.name))||[]),n.$$.dirty&2&&t(3,l=(a==null?void 0:a.schema.filter(v=>v.id&&v.toDelete))||[])},[f,a,o,l,s,i,c,u,d,h,g,y,b]}class lT extends Ee{constructor(e){super(),Ae(this,e,sT,iT,De,{show:7,hide:0})}get show(){return this.$$.ctx[7]}get hide(){return this.$$.ctx[0]}}function lh(n){let e,t,i,s;function l(o){n[26](o)}let r={};return n[2]!==void 0&&(r.collection=n[2]),t=new QM({props:r}),me.push(()=>Ie(t,"collection",l)),{c(){e=_("div"),B(t.$$.fragment),p(e,"class","tab-item active")},m(o,a){w(o,e,a),V(t,e,null),s=!0},p(o,a){const u={};!i&&a[0]&4&&(i=!0,u.collection=o[2],Re(()=>i=!1)),t.$set(u)},i(o){s||(P(t.$$.fragment,o),s=!0)},o(o){L(t.$$.fragment,o),s=!1},d(o){o&&k(e),z(t)}}}function rT(n){let e,t,i,s,l,r;function o(f){n[25](f)}let a={};n[2]!==void 0&&(a.collection=n[2]),i=new VM({props:a}),me.push(()=>Ie(i,"collection",o));let u=n[9]===Ul&&lh(n);return{c(){e=_("div"),t=_("div"),B(i.$$.fragment),l=T(),u&&u.c(),p(t,"class","tab-item"),Q(t,"active",n[9]===gs),p(e,"class","tabs-content svelte-b10vi")},m(f,c){w(f,e,c),m(e,t),V(i,t,null),m(e,l),u&&u.m(e,null),r=!0},p(f,c){const d={};!s&&c[0]&4&&(s=!0,d.collection=f[2],Re(()=>s=!1)),i.$set(d),c[0]&512&&Q(t,"active",f[9]===gs),f[9]===Ul?u?(u.p(f,c),c[0]&512&&P(u,1)):(u=lh(f),u.c(),P(u,1),u.m(e,null)):u&&(Te(),L(u,1,1,()=>{u=null}),Oe())},i(f){r||(P(i.$$.fragment,f),P(u),r=!0)},o(f){L(i.$$.fragment,f),L(u),r=!1},d(f){f&&k(e),z(i),u&&u.d()}}}function rh(n){let e,t,i,s,l,r,o;return r=new ks({props:{class:"dropdown dropdown-right m-t-5",$$slots:{default:[oT]},$$scope:{ctx:n}}}),{c(){e=_("div"),t=T(),i=_("button"),s=_("i"),l=T(),B(r.$$.fragment),p(e,"class","flex-fill"),p(s,"class","ri-more-line"),p(i,"type","button"),p(i,"class","btn btn-sm btn-circle btn-secondary flex-gap-0")},m(a,u){w(a,e,u),w(a,t,u),w(a,i,u),m(i,s),m(i,l),V(r,i,null),o=!0},p(a,u){const f={};u[1]&256&&(f.$$scope={dirty:u,ctx:a}),r.$set(f)},i(a){o||(P(r.$$.fragment,a),o=!0)},o(a){L(r.$$.fragment,a),o=!1},d(a){a&&k(e),a&&k(t),a&&k(i),z(r)}}}function oT(n){let e,t,i;return{c(){e=_("button"),e.innerHTML=` @@ -371,6 +371,6 @@ const B0=function(){const e=document.createElement("link").relList;if(e&&e.suppo This field is disabled if "Except domains" is set.`,position:"top"})),d=!0)},p(b,v){(!c||v&65536&&l!==(l=b[16]+".config.onlyDomains"))&&p(e,"for",l);const S={};v&65536&&(S.id=b[16]+".config.onlyDomains"),v&1&&(S.disabled=!W.isEmpty(b[0].exceptDomains)),!a&&v&1&&(a=!0,S.value=b[0].onlyDomains,Re(()=>a=!1)),o.$set(S)},i(b){c||(P(o.$$.fragment,b),c=!0)},o(b){L(o.$$.fragment,b),c=!1},d(b){b&&k(e),b&&k(r),z(o,b),b&&k(u),b&&k(f),d=!1,h()}}}function pP(n){let e,t,i,s;e=new Fe({props:{class:"form-field form-field-toggle m-b-0",name:"emailPassword.enabled",$$slots:{default:[uP,({uniqueId:r})=>({16:r}),({uniqueId:r})=>r?65536:0]},$$scope:{ctx:n}}});let l=n[0].enabled&&Ag(n);return{c(){B(e.$$.fragment),t=T(),l&&l.c(),i=lt()},m(r,o){V(e,r,o),w(r,t,o),l&&l.m(r,o),w(r,i,o),s=!0},p(r,o){const a={};o&196609&&(a.$$scope={dirty:o,ctx:r}),e.$set(a),r[0].enabled?l?(l.p(r,o),o&1&&P(l,1)):(l=Ag(r),l.c(),P(l,1),l.m(i.parentNode,i)):l&&(Te(),L(l,1,1,()=>{l=null}),Oe())},i(r){s||(P(e.$$.fragment,r),P(l),s=!0)},o(r){L(e.$$.fragment,r),L(l),s=!1},d(r){z(e,r),r&&k(t),l&&l.d(r),r&&k(i)}}}function hP(n){let e;return{c(){e=_("span"),e.textContent="Disabled",p(e,"class","label")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function mP(n){let e;return{c(){e=_("span"),e.textContent="Enabled",p(e,"class","label label-success")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function Eg(n){let e,t,i,s,l,r;return{c(){e=_("i"),p(e,"class","ri-error-warning-fill txt-danger")},m(o,a){w(o,e,a),s=!0,l||(r=Qe(t=$t.call(null,e,{text:"Has errors",position:"left"})),l=!0)},i(o){s||(Tt(()=>{i||(i=ct(e,Yn,{duration:150,start:.7},!0)),i.run(1)}),s=!0)},o(o){i||(i=ct(e,Yn,{duration:150,start:.7},!1)),i.run(0),s=!1},d(o){o&&k(e),o&&i&&i.end(),l=!1,r()}}}function gP(n){let e,t,i,s,l,r,o;function a(d,h){return d[0].enabled?mP:hP}let u=a(n),f=u(n),c=n[2]&&Eg();return{c(){e=_("div"),e.innerHTML=` Email/Password`,t=T(),f.c(),i=T(),s=_("div"),l=T(),c&&c.c(),r=lt(),p(e,"class","inline-flex"),p(s,"class","flex-fill")},m(d,h){w(d,e,h),w(d,t,h),f.m(d,h),w(d,i,h),w(d,s,h),w(d,l,h),c&&c.m(d,h),w(d,r,h),o=!0},p(d,h){u!==(u=a(d))&&(f.d(1),f=u(d),f&&(f.c(),f.m(i.parentNode,i))),d[2]?c?h&4&&P(c,1):(c=Eg(),c.c(),P(c,1),c.m(r.parentNode,r)):c&&(Te(),L(c,1,1,()=>{c=null}),Oe())},i(d){o||(P(c),o=!0)},o(d){L(c),o=!1},d(d){d&&k(e),d&&k(t),f.d(d),d&&k(i),d&&k(s),d&&k(l),c&&c.d(d),d&&k(r)}}}function _P(n){let e,t;const i=[n[3]];let s={$$slots:{header:[gP],default:[pP]},$$scope:{ctx:n}};for(let l=0;lt(7,r=C));let{config:o={}}=e,a;function u(){a==null||a.expand()}function f(){a==null||a.collapse()}function c(){a==null||a.collapseSiblings()}function d(){o.enabled=this.checked,t(0,o)}function h(){o.minPasswordLength=Ot(this.value),t(0,o)}function g(C){n.$$.not_equal(o.exceptDomains,C)&&(o.exceptDomains=C,t(0,o))}function y(C){n.$$.not_equal(o.onlyDomains,C)&&(o.onlyDomains=C,t(0,o))}function b(C){me[C?"unshift":"push"](()=>{a=C,t(1,a)})}function v(C){dt.call(this,n,C)}function S(C){dt.call(this,n,C)}function $(C){dt.call(this,n,C)}return n.$$set=C=>{e=pt(pt({},e),pi(C)),t(3,l=Ut(e,s)),"config"in C&&t(0,o=C.config)},n.$$.update=()=>{n.$$.dirty&128&&t(2,i=!W.isEmpty(r==null?void 0:r.emailPassword))},[o,a,i,l,u,f,c,r,d,h,g,y,b,v,S,$]}class yP extends Ee{constructor(e){super(),Ae(this,e,bP,_P,De,{config:0,expand:4,collapse:5,collapseSiblings:6})}get expand(){return this.$$.ctx[4]}get collapse(){return this.$$.ctx[5]}get collapseSiblings(){return this.$$.ctx[6]}}function vP(n){let e,t,i,s,l,r,o,a;return{c(){e=_("input"),i=T(),s=_("label"),l=H("Enable"),p(e,"type","checkbox"),p(e,"id",t=n[22]),p(s,"for",r=n[22])},m(u,f){w(u,e,f),e.checked=n[0].enabled,w(u,i,f),w(u,s,f),m(s,l),o||(a=Z(e,"change",n[11]),o=!0)},p(u,f){f&4194304&&t!==(t=u[22])&&p(e,"id",t),f&1&&(e.checked=u[0].enabled),f&4194304&&r!==(r=u[22])&&p(s,"for",r)},d(u){u&&k(e),u&&k(i),u&&k(s),o=!1,a()}}}function Pg(n){let e,t,i,s,l,r,o,a,u,f,c,d,h,g;l=new Fe({props:{class:"form-field required",name:n[1]+".clientId",$$slots:{default:[kP,({uniqueId:b})=>({22:b}),({uniqueId:b})=>b?4194304:0]},$$scope:{ctx:n}}}),a=new Fe({props:{class:"form-field required",name:n[1]+".clientSecret",$$slots:{default:[wP,({uniqueId:b})=>({22:b}),({uniqueId:b})=>b?4194304:0]},$$scope:{ctx:n}}}),c=new Fe({props:{class:"form-field",name:n[1]+".allowRegistrations",$$slots:{default:[SP,({uniqueId:b})=>({22:b}),({uniqueId:b})=>b?4194304:0]},$$scope:{ctx:n}}});let y=n[4]&&Lg(n);return{c(){e=_("div"),t=_("div"),i=T(),s=_("div"),B(l.$$.fragment),r=T(),o=_("div"),B(a.$$.fragment),u=T(),f=_("div"),B(c.$$.fragment),d=T(),y&&y.c(),p(t,"class","col-12 spacing"),p(s,"class","col-lg-6"),p(o,"class","col-lg-6"),p(f,"class","col-lg-12"),p(e,"class","grid")},m(b,v){w(b,e,v),m(e,t),m(e,i),m(e,s),V(l,s,null),m(e,r),m(e,o),V(a,o,null),m(e,u),m(e,f),V(c,f,null),m(e,d),y&&y.m(e,null),g=!0},p(b,v){const S={};v&2&&(S.name=b[1]+".clientId"),v&12582913&&(S.$$scope={dirty:v,ctx:b}),l.$set(S);const $={};v&2&&($.name=b[1]+".clientSecret"),v&12582913&&($.$$scope={dirty:v,ctx:b}),a.$set($);const C={};v&2&&(C.name=b[1]+".allowRegistrations"),v&12582913&&(C.$$scope={dirty:v,ctx:b}),c.$set(C),b[4]?y?(y.p(b,v),v&16&&P(y,1)):(y=Lg(b),y.c(),P(y,1),y.m(e,null)):y&&(Te(),L(y,1,1,()=>{y=null}),Oe())},i(b){g||(P(l.$$.fragment,b),P(a.$$.fragment,b),P(c.$$.fragment,b),P(y),b&&Tt(()=>{h||(h=ct(e,Xt,{duration:200},!0)),h.run(1)}),g=!0)},o(b){L(l.$$.fragment,b),L(a.$$.fragment,b),L(c.$$.fragment,b),L(y),b&&(h||(h=ct(e,Xt,{duration:200},!1)),h.run(0)),g=!1},d(b){b&&k(e),z(l),z(a),z(c),y&&y.d(),b&&h&&h.end()}}}function kP(n){let e,t,i,s,l,r,o,a;return{c(){e=_("label"),t=H("Client ID"),s=T(),l=_("input"),p(e,"for",i=n[22]),p(l,"type","text"),p(l,"id",r=n[22]),l.required=!0},m(u,f){w(u,e,f),m(e,t),w(u,s,f),w(u,l,f),$e(l,n[0].clientId),o||(a=Z(l,"input",n[12]),o=!0)},p(u,f){f&4194304&&i!==(i=u[22])&&p(e,"for",i),f&4194304&&r!==(r=u[22])&&p(l,"id",r),f&1&&l.value!==u[0].clientId&&$e(l,u[0].clientId)},d(u){u&&k(e),u&&k(s),u&&k(l),o=!1,a()}}}function wP(n){let e,t,i,s,l,r,o;function a(f){n[13](f)}let u={id:n[22],required:!0};return n[0].clientSecret!==void 0&&(u.value=n[0].clientSecret),l=new bf({props:u}),me.push(()=>Ie(l,"value",a)),{c(){e=_("label"),t=H("Client Secret"),s=T(),B(l.$$.fragment),p(e,"for",i=n[22])},m(f,c){w(f,e,c),m(e,t),w(f,s,c),V(l,f,c),o=!0},p(f,c){(!o||c&4194304&&i!==(i=f[22]))&&p(e,"for",i);const d={};c&4194304&&(d.id=f[22]),!r&&c&1&&(r=!0,d.value=f[0].clientSecret,Re(()=>r=!1)),l.$set(d)},i(f){o||(P(l.$$.fragment,f),o=!0)},o(f){L(l.$$.fragment,f),o=!1},d(f){f&&k(e),f&&k(s),z(l,f)}}}function SP(n){let e,t,i,s,l,r,o,a;return{c(){e=_("input"),i=T(),s=_("label"),l=H("Allow registration for new users"),p(e,"type","checkbox"),p(e,"id",t=n[22]),p(s,"for",r=n[22])},m(u,f){w(u,e,f),e.checked=n[0].allowRegistrations,w(u,i,f),w(u,s,f),m(s,l),o||(a=Z(e,"change",n[14]),o=!0)},p(u,f){f&4194304&&t!==(t=u[22])&&p(e,"id",t),f&1&&(e.checked=u[0].allowRegistrations),f&4194304&&r!==(r=u[22])&&p(s,"for",r)},d(u){u&&k(e),u&&k(i),u&&k(s),o=!1,a()}}}function Lg(n){let e,t,i,s,l,r,o,a,u,f,c,d,h;return r=new Fe({props:{class:"form-field",name:n[1]+".authUrl",$$slots:{default:[$P,({uniqueId:g})=>({22:g}),({uniqueId:g})=>g?4194304:0]},$$scope:{ctx:n}}}),u=new Fe({props:{class:"form-field",name:n[1]+".tokenUrl",$$slots:{default:[CP,({uniqueId:g})=>({22:g}),({uniqueId:g})=>g?4194304:0]},$$scope:{ctx:n}}}),d=new Fe({props:{class:"form-field",name:n[1]+".userApiUrl",$$slots:{default:[MP,({uniqueId:g})=>({22:g}),({uniqueId:g})=>g?4194304:0]},$$scope:{ctx:n}}}),{c(){e=_("div"),t=_("div"),t.textContent="Optional endpoints (if you self host the OAUTH2 service)",i=T(),s=_("div"),l=_("div"),B(r.$$.fragment),o=T(),a=_("div"),B(u.$$.fragment),f=T(),c=_("div"),B(d.$$.fragment),p(t,"class","section-title"),p(l,"class","col-lg-4"),p(a,"class","col-lg-4"),p(c,"class","col-lg-4"),p(s,"class","grid"),p(e,"class","col-lg-12")},m(g,y){w(g,e,y),m(e,t),m(e,i),m(e,s),m(s,l),V(r,l,null),m(s,o),m(s,a),V(u,a,null),m(s,f),m(s,c),V(d,c,null),h=!0},p(g,y){const b={};y&2&&(b.name=g[1]+".authUrl"),y&12582913&&(b.$$scope={dirty:y,ctx:g}),r.$set(b);const v={};y&2&&(v.name=g[1]+".tokenUrl"),y&12582913&&(v.$$scope={dirty:y,ctx:g}),u.$set(v);const S={};y&2&&(S.name=g[1]+".userApiUrl"),y&12582913&&(S.$$scope={dirty:y,ctx:g}),d.$set(S)},i(g){h||(P(r.$$.fragment,g),P(u.$$.fragment,g),P(d.$$.fragment,g),h=!0)},o(g){L(r.$$.fragment,g),L(u.$$.fragment,g),L(d.$$.fragment,g),h=!1},d(g){g&&k(e),z(r),z(u),z(d)}}}function $P(n){let e,t,i,s,l,r,o,a;return{c(){e=_("label"),t=H("Custom Auth URL"),s=T(),l=_("input"),p(e,"for",i=n[22]),p(l,"type","url"),p(l,"id",r=n[22])},m(u,f){w(u,e,f),m(e,t),w(u,s,f),w(u,l,f),$e(l,n[0].authUrl),o||(a=Z(l,"input",n[15]),o=!0)},p(u,f){f&4194304&&i!==(i=u[22])&&p(e,"for",i),f&4194304&&r!==(r=u[22])&&p(l,"id",r),f&1&&$e(l,u[0].authUrl)},d(u){u&&k(e),u&&k(s),u&&k(l),o=!1,a()}}}function CP(n){let e,t,i,s,l,r,o,a;return{c(){e=_("label"),t=H("Custom Token URL"),s=T(),l=_("input"),p(e,"for",i=n[22]),p(l,"type","text"),p(l,"id",r=n[22])},m(u,f){w(u,e,f),m(e,t),w(u,s,f),w(u,l,f),$e(l,n[0].tokenUrl),o||(a=Z(l,"input",n[16]),o=!0)},p(u,f){f&4194304&&i!==(i=u[22])&&p(e,"for",i),f&4194304&&r!==(r=u[22])&&p(l,"id",r),f&1&&l.value!==u[0].tokenUrl&&$e(l,u[0].tokenUrl)},d(u){u&&k(e),u&&k(s),u&&k(l),o=!1,a()}}}function MP(n){let e,t,i,s,l,r,o,a;return{c(){e=_("label"),t=H("Custom User API URL"),s=T(),l=_("input"),p(e,"for",i=n[22]),p(l,"type","text"),p(l,"id",r=n[22])},m(u,f){w(u,e,f),m(e,t),w(u,s,f),w(u,l,f),$e(l,n[0].userApiUrl),o||(a=Z(l,"input",n[17]),o=!0)},p(u,f){f&4194304&&i!==(i=u[22])&&p(e,"for",i),f&4194304&&r!==(r=u[22])&&p(l,"id",r),f&1&&l.value!==u[0].userApiUrl&&$e(l,u[0].userApiUrl)},d(u){u&&k(e),u&&k(s),u&&k(l),o=!1,a()}}}function TP(n){let e,t,i,s;e=new Fe({props:{class:"form-field form-field-toggle m-b-0",name:n[1]+".enabled",$$slots:{default:[vP,({uniqueId:r})=>({22:r}),({uniqueId:r})=>r?4194304:0]},$$scope:{ctx:n}}});let l=n[0].enabled&&Pg(n);return{c(){B(e.$$.fragment),t=T(),l&&l.c(),i=lt()},m(r,o){V(e,r,o),w(r,t,o),l&&l.m(r,o),w(r,i,o),s=!0},p(r,o){const a={};o&2&&(a.name=r[1]+".enabled"),o&12582913&&(a.$$scope={dirty:o,ctx:r}),e.$set(a),r[0].enabled?l?(l.p(r,o),o&1&&P(l,1)):(l=Pg(r),l.c(),P(l,1),l.m(i.parentNode,i)):l&&(Te(),L(l,1,1,()=>{l=null}),Oe())},i(r){s||(P(e.$$.fragment,r),P(l),s=!0)},o(r){L(e.$$.fragment,r),L(l),s=!1},d(r){z(e,r),r&&k(t),l&&l.d(r),r&&k(i)}}}function Fg(n){let e;return{c(){e=_("i"),p(e,"class",n[3])},m(t,i){w(t,e,i)},p(t,i){i&8&&p(e,"class",t[3])},d(t){t&&k(e)}}}function OP(n){let e;return{c(){e=_("span"),e.textContent="Disabled",p(e,"class","label label-hint")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function DP(n){let e;return{c(){e=_("span"),e.textContent="Enabled",p(e,"class","label label-success")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function Ig(n){let e,t,i,s,l,r;return{c(){e=_("i"),p(e,"class","ri-error-warning-fill txt-danger")},m(o,a){w(o,e,a),s=!0,l||(r=Qe(t=$t.call(null,e,{text:"Has errors",position:"left"})),l=!0)},i(o){s||(Tt(()=>{i||(i=ct(e,Yn,{duration:150,start:.7},!0)),i.run(1)}),s=!0)},o(o){i||(i=ct(e,Yn,{duration:150,start:.7},!1)),i.run(0),s=!1},d(o){o&&k(e),o&&i&&i.end(),l=!1,r()}}}function AP(n){let e,t,i,s,l,r,o,a,u,f,c=n[3]&&Fg(n);function d(b,v){return b[0].enabled?DP:OP}let h=d(n),g=h(n),y=n[6]&&Ig();return{c(){e=_("div"),c&&c.c(),t=T(),i=_("span"),s=H(n[2]),l=T(),g.c(),r=T(),o=_("div"),a=T(),y&&y.c(),u=lt(),p(i,"class","txt"),p(e,"class","inline-flex"),p(o,"class","flex-fill")},m(b,v){w(b,e,v),c&&c.m(e,null),m(e,t),m(e,i),m(i,s),w(b,l,v),g.m(b,v),w(b,r,v),w(b,o,v),w(b,a,v),y&&y.m(b,v),w(b,u,v),f=!0},p(b,v){b[3]?c?c.p(b,v):(c=Fg(b),c.c(),c.m(e,t)):c&&(c.d(1),c=null),(!f||v&4)&&_e(s,b[2]),h!==(h=d(b))&&(g.d(1),g=h(b),g&&(g.c(),g.m(r.parentNode,r))),b[6]?y?v&64&&P(y,1):(y=Ig(),y.c(),P(y,1),y.m(u.parentNode,u)):y&&(Te(),L(y,1,1,()=>{y=null}),Oe())},i(b){f||(P(y),f=!0)},o(b){L(y),f=!1},d(b){b&&k(e),c&&c.d(),b&&k(l),g.d(b),b&&k(r),b&&k(o),b&&k(a),y&&y.d(b),b&&k(u)}}}function EP(n){let e,t;const i=[n[7]];let s={$$slots:{header:[AP],default:[TP]},$$scope:{ctx:n}};for(let l=0;lt(10,r=A));let{key:o}=e,{title:a}=e,{icon:u=""}=e,{config:f={}}=e,{showSelfHostedFields:c=!1}=e,d;function h(){d==null||d.expand()}function g(){d==null||d.collapse()}function y(){f.enabled=this.checked,t(0,f)}function b(){f.clientId=this.value,t(0,f)}function v(A){n.$$.not_equal(f.clientSecret,A)&&(f.clientSecret=A,t(0,f))}function S(){f.allowRegistrations=this.checked,t(0,f)}function $(){f.authUrl=this.value,t(0,f)}function C(){f.tokenUrl=this.value,t(0,f)}function M(){f.userApiUrl=this.value,t(0,f)}function O(A){me[A?"unshift":"push"](()=>{d=A,t(5,d)})}function E(A){dt.call(this,n,A)}function D(A){dt.call(this,n,A)}function F(A){dt.call(this,n,A)}return n.$$set=A=>{e=pt(pt({},e),pi(A)),t(7,l=Ut(e,s)),"key"in A&&t(1,o=A.key),"title"in A&&t(2,a=A.title),"icon"in A&&t(3,u=A.icon),"config"in A&&t(0,f=A.config),"showSelfHostedFields"in A&&t(4,c=A.showSelfHostedFields)},n.$$.update=()=>{n.$$.dirty&1026&&t(6,i=!W.isEmpty(W.getNestedVal(r,o))),n.$$.dirty&3&&(f.enabled||Ib(o))},[f,o,a,u,c,d,i,l,h,g,r,y,b,v,S,$,C,M,O,E,D,F]}class Hr extends Ee{constructor(e){super(),Ae(this,e,PP,EP,De,{key:1,title:2,icon:3,config:0,showSelfHostedFields:4,expand:8,collapse:9})}get expand(){return this.$$.ctx[8]}get collapse(){return this.$$.ctx[9]}}function LP(n){let e,t,i,s,l,r,o,a,u,f,c,d,h,g,y,b,v,S,$,C,M,O,E,D,F;function A(se){n[8](se)}let N={single:!0};n[0].emailAuth!==void 0&&(N.config=n[0].emailAuth),t=new yP({props:N}),n[7](t),me.push(()=>Ie(t,"config",A));function q(se){n[9](se)}let X={single:!0,key:"googleAuth",title:"Google",icon:"ri-google-line"};n[0].googleAuth!==void 0&&(X.config=n[0].googleAuth),l=new Hr({props:X}),me.push(()=>Ie(l,"config",q));function ee(se){n[10](se)}let j={single:!0,key:"facebookAuth",title:"Facebook",icon:"ri-facebook-line"};n[0].facebookAuth!==void 0&&(j.config=n[0].facebookAuth),a=new Hr({props:j}),me.push(()=>Ie(a,"config",ee));function Y(se){n[11](se)}let K={single:!0,key:"githubAuth",title:"GitHub",icon:"ri-github-line"};n[0].githubAuth!==void 0&&(K.config=n[0].githubAuth),c=new Hr({props:K}),me.push(()=>Ie(c,"config",Y));function J(se){n[12](se)}let te={single:!0,key:"gitlabAuth",title:"GitLab",icon:"ri-gitlab-line",showSelfHostedFields:!0};return n[0].gitlabAuth!==void 0&&(te.config=n[0].gitlabAuth),g=new Hr({props:te}),me.push(()=>Ie(g,"config",J)),{c(){e=_("div"),B(t.$$.fragment),s=T(),B(l.$$.fragment),o=T(),B(a.$$.fragment),f=T(),B(c.$$.fragment),h=T(),B(g.$$.fragment),b=T(),v=_("div"),S=_("div"),$=T(),C=_("button"),M=_("span"),M.textContent="Save changes",p(e,"class","accordions"),p(S,"class","flex-fill"),p(M,"class","txt"),p(C,"type","submit"),p(C,"class","btn btn-expanded"),C.disabled=O=!n[4]||n[3],Q(C,"btn-loading",n[3]),p(v,"class","flex m-t-base")},m(se,be){w(se,e,be),V(t,e,null),m(e,s),V(l,e,null),m(e,o),V(a,e,null),m(e,f),V(c,e,null),m(e,h),V(g,e,null),w(se,b,be),w(se,v,be),m(v,S),m(v,$),m(v,C),m(C,M),E=!0,D||(F=Z(C,"click",n[13]),D=!0)},p(se,be){const ae={};!i&&be&1&&(i=!0,ae.config=se[0].emailAuth,Re(()=>i=!1)),t.$set(ae);const x={};!r&&be&1&&(r=!0,x.config=se[0].googleAuth,Re(()=>r=!1)),l.$set(x);const Ce={};!u&&be&1&&(u=!0,Ce.config=se[0].facebookAuth,Re(()=>u=!1)),a.$set(Ce);const de={};!d&&be&1&&(d=!0,de.config=se[0].githubAuth,Re(()=>d=!1)),c.$set(de);const fe={};!y&&be&1&&(y=!0,fe.config=se[0].gitlabAuth,Re(()=>y=!1)),g.$set(fe),(!E||be&24&&O!==(O=!se[4]||se[3]))&&(C.disabled=O),be&8&&Q(C,"btn-loading",se[3])},i(se){E||(P(t.$$.fragment,se),P(l.$$.fragment,se),P(a.$$.fragment,se),P(c.$$.fragment,se),P(g.$$.fragment,se),E=!0)},o(se){L(t.$$.fragment,se),L(l.$$.fragment,se),L(a.$$.fragment,se),L(c.$$.fragment,se),L(g.$$.fragment,se),E=!1},d(se){se&&k(e),n[7](null),z(t),z(l),z(a),z(c),z(g),se&&k(b),se&&k(v),D=!1,F()}}}function FP(n){let e;return{c(){e=_("div"),p(e,"class","loader")},m(t,i){w(t,e,i)},p:oe,i:oe,o:oe,d(t){t&&k(e)}}}function IP(n){let e,t,i,s,l,r,o,a,u,f,c,d,h,g;e=new nl({});const y=[FP,LP],b=[];function v(S,$){return S[2]?0:1}return f=v(n),c=b[f]=y[f](n),{c(){B(e.$$.fragment),t=T(),i=_("main"),s=_("header"),s.innerHTML=``,l=T(),r=_("div"),o=_("form"),a=_("h6"),a.textContent="Manage the allowed users sign-in/sign-up methods.",u=T(),c.c(),p(s,"class","page-header"),p(a,"class","m-b-base"),p(o,"class","panel"),p(o,"autocomplete","off"),p(r,"class","wrapper"),p(i,"class","page-wrapper")},m(S,$){V(e,S,$),w(S,t,$),w(S,i,$),m(i,s),m(i,l),m(i,r),m(r,o),m(o,a),m(o,u),b[f].m(o,null),d=!0,h||(g=Z(o,"submit",Wt(n[5])),h=!0)},p(S,[$]){let C=f;f=v(S),f===C?b[f].p(S,$):(Te(),L(b[C],1,1,()=>{b[C]=null}),Oe(),c=b[f],c?c.p(S,$):(c=b[f]=y[f](S),c.c()),P(c,1),c.m(o,null))},i(S){d||(P(e.$$.fragment,S),P(c),d=!0)},o(S){L(e.$$.fragment,S),L(c),d=!1},d(S){z(e,S),S&&k(t),S&&k(i),b[f].d(),h=!1,g()}}}function NP(n,e,t){let i,s,l={},r=!1,o=!1,a="";W.setDocumentTitle("Auth providers"),u();async function u(){t(2,r=!0);try{const $=await ke.Settings.getAll()||{};c($)}catch($){ke.errorResponseHandler($)}t(2,r=!1)}async function f(){if(!(o||!i)){t(3,o=!0);try{const $=await ke.Settings.update(W.filterRedactedProps(l));c($),Ki({}),s==null||s.collapseSiblings(),gn("Successfully updated auth providers.")}catch($){ke.errorResponseHandler($)}t(3,o=!1)}}function c($){$=$||{},t(0,l={}),t(0,l.emailAuth=Object.assign({enabled:!0},$.emailAuth),l);const C=["googleAuth","facebookAuth","githubAuth","gitlabAuth"];for(const M of C)t(0,l[M]=Object.assign({enabled:!1,allowRegistrations:!0},$[M]),l);t(6,a=JSON.stringify(l))}function d($){me[$?"unshift":"push"](()=>{s=$,t(1,s)})}function h($){n.$$.not_equal(l.emailAuth,$)&&(l.emailAuth=$,t(0,l))}function g($){n.$$.not_equal(l.googleAuth,$)&&(l.googleAuth=$,t(0,l))}function y($){n.$$.not_equal(l.facebookAuth,$)&&(l.facebookAuth=$,t(0,l))}function b($){n.$$.not_equal(l.githubAuth,$)&&(l.githubAuth=$,t(0,l))}function v($){n.$$.not_equal(l.gitlabAuth,$)&&(l.gitlabAuth=$,t(0,l))}const S=()=>f();return n.$$.update=()=>{n.$$.dirty&65&&t(4,i=a!=JSON.stringify(l))},[l,s,r,o,i,f,a,d,h,g,y,b,v,S]}class RP extends Ee{constructor(e){super(),Ae(this,e,NP,IP,De,{})}}function Ng(n,e,t){const i=n.slice();return i[12]=e[t],i[13]=e,i[14]=t,i}function jP(n){let e=[],t=new Map,i,s,l,r,o,a,u,f,c,d,h=n[4];const g=y=>y[12].key;for(let y=0;y({15:l}),({uniqueId:l})=>l?32768:0]},$$scope:{ctx:e}}}),{key:n,first:null,c(){t=lt(),B(i.$$.fragment),this.first=t},m(l,r){w(l,t,r),V(i,l,r),s=!0},p(l,r){e=l;const o={};r&98305&&(o.$$scope={dirty:r,ctx:e}),i.$set(o)},i(l){s||(P(i.$$.fragment,l),s=!0)},o(l){L(i.$$.fragment,l),s=!1},d(l){l&&k(t),z(i,l)}}}function VP(n){let e,t,i,s,l,r,o,a,u,f,c,d,h,g;e=new nl({});const y=[HP,jP],b=[];function v(S,$){return S[1]?0:1}return f=v(n),c=b[f]=y[f](n),{c(){B(e.$$.fragment),t=T(),i=_("main"),s=_("header"),s.innerHTML=``,l=T(),r=_("div"),o=_("form"),a=_("div"),a.innerHTML="

Adjust common token options.

",u=T(),c.c(),p(s,"class","page-header"),p(a,"class","content m-b-sm txt-xl"),p(o,"class","panel"),p(o,"autocomplete","off"),p(r,"class","wrapper"),p(i,"class","page-wrapper")},m(S,$){V(e,S,$),w(S,t,$),w(S,i,$),m(i,s),m(i,l),m(i,r),m(r,o),m(o,a),m(o,u),b[f].m(o,null),d=!0,h||(g=Z(o,"submit",Wt(n[5])),h=!0)},p(S,[$]){let C=f;f=v(S),f===C?b[f].p(S,$):(Te(),L(b[C],1,1,()=>{b[C]=null}),Oe(),c=b[f],c?c.p(S,$):(c=b[f]=y[f](S),c.c()),P(c,1),c.m(o,null))},i(S){d||(P(e.$$.fragment,S),P(c),d=!0)},o(S){L(e.$$.fragment,S),L(c),d=!1},d(S){z(e,S),S&&k(t),S&&k(i),b[f].d(),h=!1,g()}}}function zP(n,e,t){let i;const s=[{key:"userAuthToken",label:"Users auth token"},{key:"userVerificationToken",label:"Users email verification token"},{key:"userPasswordResetToken",label:"Users password reset token"},{key:"userEmailChangeToken",label:"Users email change token"},{key:"adminAuthToken",label:"Admins auth token"},{key:"adminPasswordResetToken",label:"Admins password reset token"}];let l={},r=!1,o=!1,a="";W.setDocumentTitle("Token options"),u();async function u(){t(1,r=!0);try{const y=await ke.Settings.getAll()||{};c(y)}catch(y){ke.errorResponseHandler(y)}t(1,r=!1)}async function f(){if(!(o||!i)){t(2,o=!0);try{const y=await ke.Settings.update(W.filterRedactedProps(l));c(y),gn("Successfully saved tokens options.")}catch(y){ke.errorResponseHandler(y)}t(2,o=!1)}}function c(y){var b;y=y||{},t(0,l={});for(const v of s)t(0,l[v.key]={duration:((b=y[v.key])==null?void 0:b.duration)||0},l);t(6,a=JSON.stringify(l))}function d(y){l[y.key].duration=Ot(this.value),t(0,l)}const h=y=>{l[y.key].secret?(delete l[y.key].secret,t(0,l)):t(0,l[y.key].secret=W.randomString(50),l)},g=()=>f();return n.$$.update=()=>{n.$$.dirty&65&&t(3,i=a!=JSON.stringify(l))},[l,r,o,i,s,f,a,d,h,g]}class BP extends Ee{constructor(e){super(),Ae(this,e,zP,VP,De,{})}}const pn=[async n=>{const e=new URLSearchParams(window.location.search);return n.location!=="/"&&e.has("installer")?Zs("/"):!0}],UP={"/login":ln({component:SE,conditions:pn.concat([n=>!ke.AuthStore.isValid]),userData:{showAppSidebar:!1}}),"/request-password-reset":ln({asyncComponent:()=>as(()=>import("./PageAdminRequestPasswordReset.0e9c0c72.js"),[]),conditions:pn.concat([n=>!ke.AuthStore.isValid]),userData:{showAppSidebar:!1}}),"/confirm-password-reset/:token":ln({asyncComponent:()=>as(()=>import("./PageAdminConfirmPasswordReset.acdb9bd8.js"),[]),conditions:pn.concat([n=>!ke.AuthStore.isValid]),userData:{showAppSidebar:!1}}),"/collections":ln({component:CA,conditions:pn.concat([n=>ke.AuthStore.isValid]),userData:{showAppSidebar:!0}}),"/logs":ln({component:NC,conditions:pn.concat([n=>ke.AuthStore.isValid]),userData:{showAppSidebar:!0}}),"/users":ln({component:GA,conditions:pn.concat([n=>ke.AuthStore.isValid]),userData:{showAppSidebar:!0}}),"/users/confirm-password-reset/:token":ln({asyncComponent:()=>as(()=>import("./PageUserConfirmPasswordReset.eb6a6644.js"),[]),conditions:pn.concat([()=>(ke.logout(!1),!0)]),userData:{showAppSidebar:!1}}),"/users/confirm-verification/:token":ln({asyncComponent:()=>as(()=>import("./PageUserConfirmVerification.ac16c5b9.js"),[]),conditions:pn.concat([()=>(ke.logout(!1),!0)]),userData:{showAppSidebar:!1}}),"/users/confirm-email-change/:token":ln({asyncComponent:()=>as(()=>import("./PageUserConfirmEmailChange.f421d2c0.js"),[]),conditions:pn.concat([()=>(ke.logout(!1),!0)]),userData:{showAppSidebar:!1}}),"/settings":ln({component:EE,conditions:pn.concat([n=>ke.AuthStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/admins":ln({component:_E,conditions:pn.concat([n=>ke.AuthStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/mail":ln({component:xE,conditions:pn.concat([n=>ke.AuthStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/storage":ln({component:aP,conditions:pn.concat([n=>ke.AuthStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/auth-providers":ln({component:RP,conditions:pn.concat([n=>ke.AuthStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/tokens":ln({component:BP,conditions:pn.concat([n=>ke.AuthStore.isValid]),userData:{showAppSidebar:!0}}),"*":ln({component:f2,userData:{showAppSidebar:!1}})};function WP(n,{from:e,to:t},i={}){const s=getComputedStyle(n),l=s.transform==="none"?"":s.transform,[r,o]=s.transformOrigin.split(" ").map(parseFloat),a=e.left+e.width*r/t.width-(t.left+r),u=e.top+e.height*o/t.height-(t.top+o),{delay:f=0,duration:c=h=>Math.sqrt(h)*120,easing:d=Eo}=i;return{delay:f,duration:In(c)?c(Math.sqrt(a*a+u*u)):c,easing:d,css:(h,g)=>{const y=g*a,b=g*u,v=h+g*e.width/t.width,S=h+g*e.height/t.height;return`transform: ${l} translate(${y}px, ${b}px) scale(${v}, ${S});`}}}function jg(n,e,t){const i=n.slice();return i[2]=e[t],i}function YP(n){let e;return{c(){e=_("i"),p(e,"class","ri-alert-line")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function KP(n){let e;return{c(){e=_("i"),p(e,"class","ri-checkbox-circle-line")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function JP(n){let e;return{c(){e=_("i"),p(e,"class","ri-information-line")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function Hg(n,e){let t,i,s,l,r=e[2].message+"",o,a,u,f,c,d,h=oe,g,y,b;function v(M,O){return M[2].type==="info"?JP:M[2].type==="success"?KP:YP}let S=v(e),$=S(e);function C(){return e[1](e[2])}return{key:n,first:null,c(){t=_("div"),i=_("div"),$.c(),s=T(),l=_("div"),o=H(r),a=T(),u=_("div"),u.innerHTML='',f=T(),p(i,"class","icon"),p(l,"class","content"),p(u,"class","close"),p(t,"class","alert txt-break"),Q(t,"alert-info",e[2].type=="info"),Q(t,"alert-success",e[2].type=="success"),Q(t,"alert-danger",e[2].type=="error"),Q(t,"alert-warning",e[2].type=="warning"),this.first=t},m(M,O){w(M,t,O),m(t,i),$.m(i,null),m(t,s),m(t,l),m(l,o),m(t,a),m(t,u),m(t,f),g=!0,y||(b=Z(u,"click",Wt(C)),y=!0)},p(M,O){e=M,S!==(S=v(e))&&($.d(1),$=S(e),$&&($.c(),$.m(i,null))),(!g||O&1)&&r!==(r=e[2].message+"")&&_e(o,r),O&1&&Q(t,"alert-info",e[2].type=="info"),O&1&&Q(t,"alert-success",e[2].type=="success"),O&1&&Q(t,"alert-danger",e[2].type=="error"),O&1&&Q(t,"alert-warning",e[2].type=="warning")},r(){d=t.getBoundingClientRect()},f(){X0(t),h(),Zg(t,d)},a(){h(),h=x0(t,d,WP,{duration:150})},i(M){g||(Tt(()=>{c||(c=ct(t,ao,{duration:150},!0)),c.run(1)}),g=!0)},o(M){c||(c=ct(t,ao,{duration:150},!1)),c.run(0),g=!1},d(M){M&&k(t),$.d(),M&&c&&c.end(),y=!1,b()}}}function GP(n){let e,t=[],i=new Map,s,l=n[0];const r=o=>o[2].message;for(let o=0;ot(0,i=l)),[i,l=>Lb(l)]}class xP extends Ee{constructor(e){super(),Ae(this,e,ZP,GP,De,{})}}function XP(n){var s;let e,t=((s=n[1])==null?void 0:s.text)+"",i;return{c(){e=_("h4"),i=H(t),p(e,"class","block center txt-break"),p(e,"slot","header")},m(l,r){w(l,e,r),m(e,i)},p(l,r){var o;r&2&&t!==(t=((o=l[1])==null?void 0:o.text)+"")&&_e(i,t)},d(l){l&&k(e)}}}function QP(n){let e,t,i,s,l,r,o;return{c(){e=_("button"),t=_("span"),t.textContent="No",i=T(),s=_("button"),l=_("span"),l.textContent="Yes",p(t,"class","txt"),e.autofocus=!0,p(e,"type","button"),p(e,"class","btn btn-secondary btn-expanded-sm"),e.disabled=n[2],p(l,"class","txt"),p(s,"type","button"),p(s,"class","btn btn-danger btn-expanded"),s.disabled=n[2],Q(s,"btn-loading",n[2])},m(a,u){w(a,e,u),m(e,t),w(a,i,u),w(a,s,u),m(s,l),e.focus(),r||(o=[Z(e,"click",n[3]),Z(s,"click",n[4])],r=!0)},p(a,u){u&4&&(e.disabled=a[2]),u&4&&(s.disabled=a[2]),u&4&&Q(s,"btn-loading",a[2])},d(a){a&&k(e),a&&k(i),a&&k(s),r=!1,rt(o)}}}function eL(n){let e,t,i={class:"confirm-popup hide-content overlay-panel-sm",overlayClose:!n[2],escClose:!n[2],btnClose:!1,popup:!0,$$slots:{footer:[QP],header:[XP]},$$scope:{ctx:n}};return e=new Ai({props:i}),n[5](e),e.$on("hide",n[6]),{c(){B(e.$$.fragment)},m(s,l){V(e,s,l),t=!0},p(s,[l]){const r={};l&4&&(r.overlayClose=!s[2]),l&4&&(r.escClose=!s[2]),l&135&&(r.$$scope={dirty:l,ctx:s}),e.$set(r)},i(s){t||(P(e.$$.fragment,s),t=!0)},o(s){L(e.$$.fragment,s),t=!1},d(s){n[5](null),z(e,s)}}}function tL(n,e,t){let i;mn(n,hf,f=>t(1,i=f));let s,l=!1;const r=()=>{i!=null&&i.noCallback&&i.noCallback(),s==null||s.hide()},o=async()=>{i!=null&&i.yesCallback&&(t(2,l=!0),await Promise.resolve(i.yesCallback()),t(2,l=!1)),s==null||s.hide()};function a(f){me[f?"unshift":"push"](()=>{s=f,t(0,s)})}const u=async()=>{i!=null&&i.noCallback&&i.noCallback(),await Ti(),I0()};return n.$$.update=()=>{n.$$.dirty&3&&i!=null&&i.text&&(s==null||s.show())},[s,i,l,r,o,a,u]}class nL extends Ee{constructor(e){super(),Ae(this,e,tL,eL,De,{})}}function qg(n){let e,t,i,s,l,r,o,a,u,f,c,d,h,g,y,b,v,S,$,C,M,O,E,D,F,A,N,q,X,ee,j,Y,K;return ee=new ks({props:{class:"dropdown dropdown-nowrap dropdown-upside dropdown-left",$$slots:{default:[iL]},$$scope:{ctx:n}}}),{c(){var J;e=_("aside"),t=_("a"),t.innerHTML='PocketBase logo',s=T(),l=_("nav"),r=_("a"),r.innerHTML='',f=T(),c=_("a"),c.innerHTML='',y=T(),b=_("a"),b.innerHTML='',C=T(),M=_("a"),M.innerHTML='',F=T(),A=_("figure"),N=_("img"),X=T(),B(ee.$$.fragment),p(t,"href","/"),p(t,"class","logo logo-sm"),p(r,"href","/collections"),p(r,"class","menu-item"),p(r,"aria-label","Collections"),p(c,"href","/users"),p(c,"class","menu-item"),p(c,"aria-label","Users"),p(b,"href","/logs"),p(b,"class","menu-item"),p(b,"aria-label","Logs"),p(M,"href","/settings"),p(M,"class","menu-item"),p(M,"aria-label","Settings"),p(l,"class","main-menu"),ei(N.src,q="/_/images/avatars/avatar"+(((J=n[1])==null?void 0:J.avatar)||0)+".svg")||p(N,"src",q),p(N,"alt","Avatar"),p(A,"class","thumb thumb-circle link-hint closable"),p(e,"class","app-sidebar")},m(J,te){w(J,e,te),m(e,t),m(e,s),m(e,l),m(l,r),m(l,f),m(l,c),m(l,y),m(l,b),m(l,C),m(l,M),m(e,F),m(e,A),m(A,N),m(A,X),V(ee,A,null),j=!0,Y||(K=[Qe(i=Tn.call(null,t)),Qe(o=Tn.call(null,r)),Qe(a=ai.call(null,r,{path:"/collections/?.*",className:"current-route"})),Qe(u=$t.call(null,r,{text:"Collections",position:"right"})),Qe(d=Tn.call(null,c)),Qe(h=ai.call(null,c,{path:"/users/?.*",className:"current-route"})),Qe(g=$t.call(null,c,{text:"Users",position:"right"})),Qe(v=Tn.call(null,b)),Qe(S=ai.call(null,b,{path:"/logs/?.*",className:"current-route"})),Qe($=$t.call(null,b,{text:"Logs",position:"right"})),Qe(O=Tn.call(null,M)),Qe(E=ai.call(null,M,{path:"/settings/?.*",className:"current-route"})),Qe(D=$t.call(null,M,{text:"Settings",position:"right"}))],Y=!0)},p(J,te){var be;(!j||te&2&&!ei(N.src,q="/_/images/avatars/avatar"+(((be=J[1])==null?void 0:be.avatar)||0)+".svg"))&&p(N,"src",q);const se={};te&64&&(se.$$scope={dirty:te,ctx:J}),ee.$set(se)},i(J){j||(P(ee.$$.fragment,J),j=!0)},o(J){L(ee.$$.fragment,J),j=!1},d(J){J&&k(e),z(ee),Y=!1,rt(K)}}}function iL(n){let e,t,i,s,l,r,o;return{c(){e=_("a"),e.innerHTML=` + `,l=T(),r=_("div"),o=_("form"),a=_("div"),a.innerHTML="

Adjust common token options.

",u=T(),c.c(),p(s,"class","page-header"),p(a,"class","content m-b-sm txt-xl"),p(o,"class","panel"),p(o,"autocomplete","off"),p(r,"class","wrapper"),p(i,"class","page-wrapper")},m(S,$){V(e,S,$),w(S,t,$),w(S,i,$),m(i,s),m(i,l),m(i,r),m(r,o),m(o,a),m(o,u),b[f].m(o,null),d=!0,h||(g=Z(o,"submit",Wt(n[5])),h=!0)},p(S,[$]){let C=f;f=v(S),f===C?b[f].p(S,$):(Te(),L(b[C],1,1,()=>{b[C]=null}),Oe(),c=b[f],c?c.p(S,$):(c=b[f]=y[f](S),c.c()),P(c,1),c.m(o,null))},i(S){d||(P(e.$$.fragment,S),P(c),d=!0)},o(S){L(e.$$.fragment,S),L(c),d=!1},d(S){z(e,S),S&&k(t),S&&k(i),b[f].d(),h=!1,g()}}}function zP(n,e,t){let i;const s=[{key:"userAuthToken",label:"Users auth token"},{key:"userVerificationToken",label:"Users email verification token"},{key:"userPasswordResetToken",label:"Users password reset token"},{key:"userEmailChangeToken",label:"Users email change token"},{key:"adminAuthToken",label:"Admins auth token"},{key:"adminPasswordResetToken",label:"Admins password reset token"}];let l={},r=!1,o=!1,a="";W.setDocumentTitle("Token options"),u();async function u(){t(1,r=!0);try{const y=await ke.Settings.getAll()||{};c(y)}catch(y){ke.errorResponseHandler(y)}t(1,r=!1)}async function f(){if(!(o||!i)){t(2,o=!0);try{const y=await ke.Settings.update(W.filterRedactedProps(l));c(y),gn("Successfully saved tokens options.")}catch(y){ke.errorResponseHandler(y)}t(2,o=!1)}}function c(y){var b;y=y||{},t(0,l={});for(const v of s)t(0,l[v.key]={duration:((b=y[v.key])==null?void 0:b.duration)||0},l);t(6,a=JSON.stringify(l))}function d(y){l[y.key].duration=Ot(this.value),t(0,l)}const h=y=>{l[y.key].secret?(delete l[y.key].secret,t(0,l)):t(0,l[y.key].secret=W.randomString(50),l)},g=()=>f();return n.$$.update=()=>{n.$$.dirty&65&&t(3,i=a!=JSON.stringify(l))},[l,r,o,i,s,f,a,d,h,g]}class BP extends Ee{constructor(e){super(),Ae(this,e,zP,VP,De,{})}}const pn=[async n=>{const e=new URLSearchParams(window.location.search);return n.location!=="/"&&e.has("installer")?Zs("/"):!0}],UP={"/login":ln({component:SE,conditions:pn.concat([n=>!ke.AuthStore.isValid]),userData:{showAppSidebar:!1}}),"/request-password-reset":ln({asyncComponent:()=>as(()=>import("./PageAdminRequestPasswordReset.476701ad.js"),[]),conditions:pn.concat([n=>!ke.AuthStore.isValid]),userData:{showAppSidebar:!1}}),"/confirm-password-reset/:token":ln({asyncComponent:()=>as(()=>import("./PageAdminConfirmPasswordReset.c1f3d524.js"),[]),conditions:pn.concat([n=>!ke.AuthStore.isValid]),userData:{showAppSidebar:!1}}),"/collections":ln({component:CA,conditions:pn.concat([n=>ke.AuthStore.isValid]),userData:{showAppSidebar:!0}}),"/logs":ln({component:NC,conditions:pn.concat([n=>ke.AuthStore.isValid]),userData:{showAppSidebar:!0}}),"/users":ln({component:GA,conditions:pn.concat([n=>ke.AuthStore.isValid]),userData:{showAppSidebar:!0}}),"/users/confirm-password-reset/:token":ln({asyncComponent:()=>as(()=>import("./PageUserConfirmPasswordReset.f8d56892.js"),[]),conditions:pn.concat([()=>(ke.logout(!1),!0)]),userData:{showAppSidebar:!1}}),"/users/confirm-verification/:token":ln({asyncComponent:()=>as(()=>import("./PageUserConfirmVerification.69125db3.js"),[]),conditions:pn.concat([()=>(ke.logout(!1),!0)]),userData:{showAppSidebar:!1}}),"/users/confirm-email-change/:token":ln({asyncComponent:()=>as(()=>import("./PageUserConfirmEmailChange.374260dd.js"),[]),conditions:pn.concat([()=>(ke.logout(!1),!0)]),userData:{showAppSidebar:!1}}),"/settings":ln({component:EE,conditions:pn.concat([n=>ke.AuthStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/admins":ln({component:_E,conditions:pn.concat([n=>ke.AuthStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/mail":ln({component:xE,conditions:pn.concat([n=>ke.AuthStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/storage":ln({component:aP,conditions:pn.concat([n=>ke.AuthStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/auth-providers":ln({component:RP,conditions:pn.concat([n=>ke.AuthStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/tokens":ln({component:BP,conditions:pn.concat([n=>ke.AuthStore.isValid]),userData:{showAppSidebar:!0}}),"*":ln({component:f2,userData:{showAppSidebar:!1}})};function WP(n,{from:e,to:t},i={}){const s=getComputedStyle(n),l=s.transform==="none"?"":s.transform,[r,o]=s.transformOrigin.split(" ").map(parseFloat),a=e.left+e.width*r/t.width-(t.left+r),u=e.top+e.height*o/t.height-(t.top+o),{delay:f=0,duration:c=h=>Math.sqrt(h)*120,easing:d=Eo}=i;return{delay:f,duration:In(c)?c(Math.sqrt(a*a+u*u)):c,easing:d,css:(h,g)=>{const y=g*a,b=g*u,v=h+g*e.width/t.width,S=h+g*e.height/t.height;return`transform: ${l} translate(${y}px, ${b}px) scale(${v}, ${S});`}}}function jg(n,e,t){const i=n.slice();return i[2]=e[t],i}function YP(n){let e;return{c(){e=_("i"),p(e,"class","ri-alert-line")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function KP(n){let e;return{c(){e=_("i"),p(e,"class","ri-checkbox-circle-line")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function JP(n){let e;return{c(){e=_("i"),p(e,"class","ri-information-line")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function Hg(n,e){let t,i,s,l,r=e[2].message+"",o,a,u,f,c,d,h=oe,g,y,b;function v(M,O){return M[2].type==="info"?JP:M[2].type==="success"?KP:YP}let S=v(e),$=S(e);function C(){return e[1](e[2])}return{key:n,first:null,c(){t=_("div"),i=_("div"),$.c(),s=T(),l=_("div"),o=H(r),a=T(),u=_("div"),u.innerHTML='',f=T(),p(i,"class","icon"),p(l,"class","content"),p(u,"class","close"),p(t,"class","alert txt-break"),Q(t,"alert-info",e[2].type=="info"),Q(t,"alert-success",e[2].type=="success"),Q(t,"alert-danger",e[2].type=="error"),Q(t,"alert-warning",e[2].type=="warning"),this.first=t},m(M,O){w(M,t,O),m(t,i),$.m(i,null),m(t,s),m(t,l),m(l,o),m(t,a),m(t,u),m(t,f),g=!0,y||(b=Z(u,"click",Wt(C)),y=!0)},p(M,O){e=M,S!==(S=v(e))&&($.d(1),$=S(e),$&&($.c(),$.m(i,null))),(!g||O&1)&&r!==(r=e[2].message+"")&&_e(o,r),O&1&&Q(t,"alert-info",e[2].type=="info"),O&1&&Q(t,"alert-success",e[2].type=="success"),O&1&&Q(t,"alert-danger",e[2].type=="error"),O&1&&Q(t,"alert-warning",e[2].type=="warning")},r(){d=t.getBoundingClientRect()},f(){X0(t),h(),Zg(t,d)},a(){h(),h=x0(t,d,WP,{duration:150})},i(M){g||(Tt(()=>{c||(c=ct(t,ao,{duration:150},!0)),c.run(1)}),g=!0)},o(M){c||(c=ct(t,ao,{duration:150},!1)),c.run(0),g=!1},d(M){M&&k(t),$.d(),M&&c&&c.end(),y=!1,b()}}}function GP(n){let e,t=[],i=new Map,s,l=n[0];const r=o=>o[2].message;for(let o=0;ot(0,i=l)),[i,l=>Lb(l)]}class xP extends Ee{constructor(e){super(),Ae(this,e,ZP,GP,De,{})}}function XP(n){var s;let e,t=((s=n[1])==null?void 0:s.text)+"",i;return{c(){e=_("h4"),i=H(t),p(e,"class","block center txt-break"),p(e,"slot","header")},m(l,r){w(l,e,r),m(e,i)},p(l,r){var o;r&2&&t!==(t=((o=l[1])==null?void 0:o.text)+"")&&_e(i,t)},d(l){l&&k(e)}}}function QP(n){let e,t,i,s,l,r,o;return{c(){e=_("button"),t=_("span"),t.textContent="No",i=T(),s=_("button"),l=_("span"),l.textContent="Yes",p(t,"class","txt"),e.autofocus=!0,p(e,"type","button"),p(e,"class","btn btn-secondary btn-expanded-sm"),e.disabled=n[2],p(l,"class","txt"),p(s,"type","button"),p(s,"class","btn btn-danger btn-expanded"),s.disabled=n[2],Q(s,"btn-loading",n[2])},m(a,u){w(a,e,u),m(e,t),w(a,i,u),w(a,s,u),m(s,l),e.focus(),r||(o=[Z(e,"click",n[3]),Z(s,"click",n[4])],r=!0)},p(a,u){u&4&&(e.disabled=a[2]),u&4&&(s.disabled=a[2]),u&4&&Q(s,"btn-loading",a[2])},d(a){a&&k(e),a&&k(i),a&&k(s),r=!1,rt(o)}}}function eL(n){let e,t,i={class:"confirm-popup hide-content overlay-panel-sm",overlayClose:!n[2],escClose:!n[2],btnClose:!1,popup:!0,$$slots:{footer:[QP],header:[XP]},$$scope:{ctx:n}};return e=new Ai({props:i}),n[5](e),e.$on("hide",n[6]),{c(){B(e.$$.fragment)},m(s,l){V(e,s,l),t=!0},p(s,[l]){const r={};l&4&&(r.overlayClose=!s[2]),l&4&&(r.escClose=!s[2]),l&135&&(r.$$scope={dirty:l,ctx:s}),e.$set(r)},i(s){t||(P(e.$$.fragment,s),t=!0)},o(s){L(e.$$.fragment,s),t=!1},d(s){n[5](null),z(e,s)}}}function tL(n,e,t){let i;mn(n,hf,f=>t(1,i=f));let s,l=!1;const r=()=>{i!=null&&i.noCallback&&i.noCallback(),s==null||s.hide()},o=async()=>{i!=null&&i.yesCallback&&(t(2,l=!0),await Promise.resolve(i.yesCallback()),t(2,l=!1)),s==null||s.hide()};function a(f){me[f?"unshift":"push"](()=>{s=f,t(0,s)})}const u=async()=>{i!=null&&i.noCallback&&i.noCallback(),await Ti(),I0()};return n.$$.update=()=>{n.$$.dirty&3&&i!=null&&i.text&&(s==null||s.show())},[s,i,l,r,o,a,u]}class nL extends Ee{constructor(e){super(),Ae(this,e,tL,eL,De,{})}}function qg(n){let e,t,i,s,l,r,o,a,u,f,c,d,h,g,y,b,v,S,$,C,M,O,E,D,F,A,N,q,X,ee,j,Y,K;return ee=new ks({props:{class:"dropdown dropdown-nowrap dropdown-upside dropdown-left",$$slots:{default:[iL]},$$scope:{ctx:n}}}),{c(){var J;e=_("aside"),t=_("a"),t.innerHTML='PocketBase logo',s=T(),l=_("nav"),r=_("a"),r.innerHTML='',f=T(),c=_("a"),c.innerHTML='',y=T(),b=_("a"),b.innerHTML='',C=T(),M=_("a"),M.innerHTML='',F=T(),A=_("figure"),N=_("img"),X=T(),B(ee.$$.fragment),p(t,"href","/"),p(t,"class","logo logo-sm"),p(r,"href","/collections"),p(r,"class","menu-item"),p(r,"aria-label","Collections"),p(c,"href","/users"),p(c,"class","menu-item"),p(c,"aria-label","Users"),p(b,"href","/logs"),p(b,"class","menu-item"),p(b,"aria-label","Logs"),p(M,"href","/settings"),p(M,"class","menu-item"),p(M,"aria-label","Settings"),p(l,"class","main-menu"),ei(N.src,q="/_/images/avatars/avatar"+(((J=n[1])==null?void 0:J.avatar)||0)+".svg")||p(N,"src",q),p(N,"alt","Avatar"),p(A,"class","thumb thumb-circle link-hint closable"),p(e,"class","app-sidebar")},m(J,te){w(J,e,te),m(e,t),m(e,s),m(e,l),m(l,r),m(l,f),m(l,c),m(l,y),m(l,b),m(l,C),m(l,M),m(e,F),m(e,A),m(A,N),m(A,X),V(ee,A,null),j=!0,Y||(K=[Qe(i=Tn.call(null,t)),Qe(o=Tn.call(null,r)),Qe(a=ai.call(null,r,{path:"/collections/?.*",className:"current-route"})),Qe(u=$t.call(null,r,{text:"Collections",position:"right"})),Qe(d=Tn.call(null,c)),Qe(h=ai.call(null,c,{path:"/users/?.*",className:"current-route"})),Qe(g=$t.call(null,c,{text:"Users",position:"right"})),Qe(v=Tn.call(null,b)),Qe(S=ai.call(null,b,{path:"/logs/?.*",className:"current-route"})),Qe($=$t.call(null,b,{text:"Logs",position:"right"})),Qe(O=Tn.call(null,M)),Qe(E=ai.call(null,M,{path:"/settings/?.*",className:"current-route"})),Qe(D=$t.call(null,M,{text:"Settings",position:"right"}))],Y=!0)},p(J,te){var be;(!j||te&2&&!ei(N.src,q="/_/images/avatars/avatar"+(((be=J[1])==null?void 0:be.avatar)||0)+".svg"))&&p(N,"src",q);const se={};te&64&&(se.$$scope={dirty:te,ctx:J}),ee.$set(se)},i(J){j||(P(ee.$$.fragment,J),j=!0)},o(J){L(ee.$$.fragment,J),j=!1},d(J){J&&k(e),z(ee),Y=!1,rt(K)}}}function iL(n){let e,t,i,s,l,r,o;return{c(){e=_("a"),e.innerHTML=` Manage admins`,t=T(),i=_("hr"),s=T(),l=_("div"),l.innerHTML=` Logout`,p(e,"href","/settings/admins"),p(e,"class","dropdown-item closable"),p(l,"tabindex","0"),p(l,"class","dropdown-item closable")},m(a,u){w(a,e,u),w(a,t,u),w(a,i,u),w(a,s,u),w(a,l,u),r||(o=[Qe(Tn.call(null,e)),Z(l,"click",n[4])],r=!0)},p:oe,d(a){a&&k(e),a&&k(t),a&&k(i),a&&k(s),a&&k(l),r=!1,rt(o)}}}function sL(n){var c;let e,t,i,s,l,r,o,a,u,f=((c=n[1])==null?void 0:c.id)&&n[0]&&qg(n);return s=new u1({props:{routes:UP}}),s.$on("routeLoading",n[2]),s.$on("conditionsFailed",n[3]),r=new xP({}),a=new nL({}),{c(){e=_("div"),f&&f.c(),t=T(),i=_("div"),B(s.$$.fragment),l=T(),B(r.$$.fragment),o=T(),B(a.$$.fragment),p(i,"class","app-body"),p(e,"class","app-layout")},m(d,h){w(d,e,h),f&&f.m(e,null),m(e,t),m(e,i),V(s,i,null),w(d,l,h),V(r,d,h),w(d,o,h),V(a,d,h),u=!0},p(d,[h]){var g;((g=d[1])==null?void 0:g.id)&&d[0]?f?(f.p(d,h),h&3&&P(f,1)):(f=qg(d),f.c(),P(f,1),f.m(e,t)):f&&(Te(),L(f,1,1,()=>{f=null}),Oe())},i(d){u||(P(f),P(s.$$.fragment,d),P(r.$$.fragment,d),P(a.$$.fragment,d),u=!0)},o(d){L(f),L(s.$$.fragment,d),L(r.$$.fragment,d),L(a.$$.fragment,d),u=!1},d(d){d&&k(e),f&&f.d(),z(s),d&&k(l),z(r,d),d&&k(o),z(a,d)}}}function lL(n,e,t){let i;mn(n,Uu,u=>t(1,i=u));let s,l=!1;function r(u){var f,c,d,h;((f=u==null?void 0:u.detail)==null?void 0:f.location)!==s&&(t(0,l=!!((d=(c=u==null?void 0:u.detail)==null?void 0:c.userData)!=null&&d.showAppSidebar)),s=(h=u==null?void 0:u.detail)==null?void 0:h.location,W.setDocumentTitle(""),Ki({}),I0())}function o(){Zs("/")}function a(){ke.logout()}return[l,i,r,o,a]}class rL extends Ee{constructor(e){super(),Ae(this,e,lL,sL,De,{})}}new rL({target:document.getElementById("app")});export{rt as A,gn as B,W as C,Zs as D,lt as E,Nb as F,mn as G,Gs as H,cn as I,ii as J,me as K,Fn as P,Ee as S,L as a,T as b,B as c,z as d,_ as e,p as f,w as g,m as h,Ae as i,Qe as j,Te as k,Tn as l,V as m,Oe as n,k as o,ke as p,Fe as q,Q as r,De as s,P as t,Z as u,Wt as v,H as w,_e as x,oe as y,$e as z}; diff --git a/ui/dist/index.html b/ui/dist/index.html index e71a1171..d12d0258 100644 --- a/ui/dist/index.html +++ b/ui/dist/index.html @@ -20,7 +20,7 @@ window.Prism = window.Prism || {}; window.Prism.manual = true; - + diff --git a/ui/src/components/base/RefreshButton.svelte b/ui/src/components/base/RefreshButton.svelte index a81fbdbb..68505f18 100644 --- a/ui/src/components/base/RefreshButton.svelte +++ b/ui/src/components/base/RefreshButton.svelte @@ -21,7 +21,7 @@ clearTimeout(refreshTimeoutId); refreshTimeoutId = null; tooltipData = oldTooltipData; - }, 230); + }, 200); } onMount(() => {