2023-05-24 22:18:44 +02:00
( function ( ) { const e = document . createElement ( "link" ) . relList ; if ( e && e . supports && e . supports ( "modulepreload" ) ) return ; for ( const s of document . querySelectorAll ( 'link[rel="modulepreload"]' ) ) i ( s ) ; new MutationObserver ( s => { for ( const l of s ) if ( l . type === "childList" ) for ( const o of l . addedNodes ) o . tagName === "LINK" && o . rel === "modulepreload" && i ( o ) } ) . observe ( document , { childList : ! 0 , subtree : ! 0 } ) ; function t ( s ) { const l = { } ; return s . integrity && ( l . integrity = s . integrity ) , s . referrerPolicy && ( l . referrerPolicy = s . referrerPolicy ) , s . crossOrigin === "use-credentials" ? l . credentials = "include" : s . crossOrigin === "anonymous" ? l . credentials = "omit" : l . credentials = "same-origin" , l } function i ( s ) { if ( s . ep ) return ; s . ep = ! 0 ; const l = t ( s ) ; fetch ( s . href , l ) } } ) ( ) ; function te ( ) { } const $l = n => n ; function je ( n , e ) { for ( const t in e ) n [ t ] = e [ t ] ; return n } function j1 ( n ) { return ! ! n && ( typeof n == "object" || typeof n == "function" ) && typeof n . then == "function" } function x _ ( n ) { return n ( ) } function _u ( ) { return Object . create ( null ) } function De ( n ) { n . forEach ( x _ ) } function jt ( n ) { return typeof n == "function" } function he ( n , e ) { return n != n ? e == e : n !== e || n && typeof n == "object" || typeof n == "function" } let jl ; function _n ( n , e ) { return jl || ( jl = document . createElement ( "a" ) ) , jl . href = e , n === jl . href } function V1 ( n ) { return Object . keys ( n ) . length === 0 } function ya ( n , ... e ) { if ( n == null ) return te ; const t = n . subscribe ( ... e ) ; return t . unsubscribe ? ( ) => t . unsubscribe ( ) : t } function z1 ( n ) { let e ; return ya ( n , t => e = t ) ( ) , e } function Ze ( n , e , t ) { n . $$ . on _destroy . push ( ya ( e , t ) ) } function kt ( n , e , t , i ) { if ( n ) { const s = eg ( n , e , t , i ) ; return n [ 0 ] ( s ) } } function eg ( n , e , t , i ) { return n [ 1 ] && i ? je ( t . ctx . slice ( ) , n [ 1 ] ( i ( e ) ) ) : t . ctx } function wt ( n , e , t , i ) { if ( n [ 2 ] && i ) { const s = n [ 2 ] ( i ( t ) ) ; if ( e . dirty === void 0 ) return s ; if ( typeof s == "object" ) { const l = [ ] , o = Math . max ( e . dirty . length , s . length ) ; for ( let r = 0 ; r < o ; r += 1 ) l [ r ] = e . dirty [ r ] | s [ r ] ; return l } return e . dirty | s } return e . dirty } function St ( n , e , t , i , s , l ) { if ( s ) { const o = eg ( e , t , i , l ) ; n . p ( o , s ) } } function $t ( n ) { if ( n . ctx . length > 32 ) { const e = [ ] , t = n . ctx . length / 32 ; for ( let i = 0 ; i < t ; i ++ ) e [ i ] = - 1 ; return e } return - 1 } function Gt ( n ) { const e = { } ; for ( const t in n ) t [ 0 ] !== "$" && ( e [ t ] = n [ t ] ) ; return e } function et ( n , e ) { const t = { } ; e = new Set ( e ) ; for ( const i in n ) ! e . has ( i ) && i [ 0 ] !== "$" && ( t [ i ] = n [ i ] ) ; return t } function os ( n ) { return n ? ? "" } function ln ( n , e , t ) { return n . set ( t ) , e } function Oe ( n ) { return n && jt ( n . destroy ) ? n . destroy : te } function gu ( n ) { const e = typeof n == "string" && n . match ( /^\s*(-?[\d.]+)([^\s]*)\s*$/ ) ; return e ? [ parseFloat ( e [ 1 ] ) , e [ 2 ] || "px" ] : [ n , "px" ] } const tg = typeof window < "u" ; let qo = tg ? ( ) => window . performance . now ( ) : ( ) => Date . now ( ) , ka = tg ? n => requestAnimationFrame ( n ) : te ; const Ss = new Set ; function ng ( n ) { Ss . forEach ( e => { e . c ( n ) || ( Ss . delete ( e ) , e . f ( ) ) } ) , Ss . size !== 0 && ka ( ng ) } function jo ( n ) { let e ; return Ss . size === 0 && ka ( ng ) , { promise : new Promise ( t => { Ss . add ( e = { c : n , f : t } ) } ) , abort ( ) { Ss . delete ( e ) } } } const H1 = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : global ; "WeakMap" in H1 ; function b ( n , e ) { n . appendChild ( e ) } function ig ( n ) { if ( ! n ) return document ; const e = n . getRootNode ? n . getRootNode ( ) : n . ownerDocument ; return e && e . host ? e : n . ownerDocument } function B1 ( n ) { const e = y ( "style" ) ; return U1 ( ig ( n ) , e ) , e . sheet } function U1 ( n , e ) { return b ( n . head || n , e ) , e . sheet } function S ( n , e , t ) { n . insertBefore ( e , t || null ) } function w ( n ) { n . parentNode && n . parentNode . removeChild ( n ) } function ht ( n , e ) { for ( let t = 0 ; t < n . length ; t += 1 ) n [ t ] && n [ t ] . d ( e ) } function y ( n ) { return document . createElement ( n ) } function W ( n ) { return document . createTextNode ( n ) } function D ( ) { return W ( " " ) } function ke ( ) { return W ( "" ) } function J ( n , e , t , i ) { return n . addEventListener ( e , t , i ) , ( ) => n . removeEventListener ( e , t , i ) } function tt ( n ) { return function ( e ) { return e . preventDefault ( ) , n . call ( this , e ) } } function In ( n ) { return function ( e ) { return e . stopPropagation ( ) , n . call ( this , e ) } } function m ( n , e , t ) { t == null ? n . removeAttribute ( e ) : n . getAttribute ( e ) !== t && n . setAttribute ( e , t ) } const W1 = [ "width" , "height" ] ; function ai ( n , e ) { const t = Object . getOwnPropertyDescriptors ( n . _ _proto _ _ ) ; for ( const i in e ) e [ i ] == null ? n . removeAttribute ( i ) : i === "style" ? n . style . cssText = e [ i ] : i === "__value" ? n . value = n [ i ] = e [ i ] : t [ i ] && t [ i ] . set && W1 . indexOf ( i ) === - 1 ? n [ i ] = e [ i ] : m ( n , i , e [ i ] ) } function Y1 ( n ) { let e ; return { p ( ... t ) { e = t , e . forEach ( i => n . push ( i ) ) } , r ( ) { e . forEach (
` ;for(let v=0;v<=1;v+=a){const k=e+(t-e)*l(v);u+=v*100+ ` % { $ { o ( k , 1 - k ) } }
2023-05-17 21:41:42 +02:00
` }const f=u+ ` 100 % { $ { o ( t , 1 - t ) } }
2023-05-24 22:18:44 +02:00
} ` ,d= ` _ _svelte _$ { J1 ( f ) } _$ { r } ` ,p=ig(n),{stylesheet:h,rules:g}=_o.get(p)||Z1(p,n);g[d]||(g[d]=!0,h.insertRule( ` @ keyframes $ { d } $ { f } ` ,h.cssRules.length));const _=n.style.animation||"";return n.style.animation= ` $ { _ ? ` ${ _ } , ` : "" } $ { d } $ { i } ms linear $ { s } ms 1 both ` ,go+=1,d}function ml(n,e){const t=(n.style.animation||"").split(", "),i=t.filter(e?l=>l.indexOf(e)<0:l=>l.indexOf("__svelte")===-1),s=t.length-i.length;s&&(n.style.animation=i.join(", "),go-=s,go||G1())}function G1(){ka(()=>{go||(_o.forEach(n=>{const{ownerNode:e}=n.stylesheet;e&&w(e)}),_o.clear())})}function X1(n,e,t,i){if(!e)return te;const s=n.getBoundingClientRect();if(e.left===s.left&&e.right===s.right&&e.top===s.top&&e.bottom===s.bottom)return te;const{delay:l=0,duration:o=300,easing:r= $ l,start:a=qo()+l,end:u=a+o,tick:f=te,css:d}=t(n,{from:e,to:s},i);let p=!0,h=!1,g;function _(){d&&(g=pl(n,0,1,o,l,r,d)),l||(h=!0)}function v(){d&&ml(n,g),p=!1}return jo(k=>{if(!h&&k>=a&&(h=!0),h&&k>=u&&(f(1,0),v()),!p)return!1;if(h){const $ =k-a,C=0+1*r( $ /o);f(C,1-C)}return!0}),_(),f(0,1),v}function Q1(n){const e=getComputedStyle(n);if(e.position!=="absolute"&&e.position!=="fixed"){const{width:t,height:i}=e,s=n.getBoundingClientRect();n.style.position="absolute",n.style.width=t,n.style.height=i,lg(n,s)}}function lg(n,e){const t=n.getBoundingClientRect();if(e.left!==t.left||e.top!==t.top){const i=getComputedStyle(n),s=i.transform==="none"?"":i.transform;n.style.transform= ` $ { s } translate ( $ { e . left - t . left } px , $ { e . top - t . top } px ) ` }}let hl;function vi(n){hl=n}function Tl(){if(!hl)throw new Error("Function called outside component initialization");return hl}function Xt(n){Tl(). $ $ .on_mount.push(n)}function x1(n){Tl(). $ $ .after_update.push(n)}function Vo(n){Tl(). $ $ .on_destroy.push(n)}function Tt(){const n=Tl();return(e,t,{cancelable:i=!1}={})=>{const s=n. $ $ .callbacks[e];if(s){const l=sg(e,t,{cancelable:i});return s.slice().forEach(o=>{o.call(n,l)}),!l.defaultPrevented}return!0}}function Fe(n,e){const t=n. $ $ .callbacks[e.type];t&&t.slice().forEach(i=>i.call(this,e))}const ws=[],ne=[];let $ s=[];const Br=[],og=Promise.resolve();let Ur=!1;function rg(){Ur||(Ur=!0,og.then(wa))}function cn(){return rg(),og}function xe(n){ $ s.push(n)}function _e(n){Br.push(n)}const lr=new Set;let _s=0;function wa(){if(_s!==0)return;const n=hl;do{try{for(;_s<ws.length;){const e=ws[_s];_s++,vi(e),e0(e. $ $ )}}catch(e){throw ws.length=0,_s=0,e}for(vi(null),ws.length=0,_s=0;ne.length;)ne.pop()();for(let e=0;e< $ s.length;e+=1){const t= $ s[e];lr.has(t)||(lr.add(t),t())} $ s.length=0}while(ws.length);for(;Br.length;)Br.pop()();Ur=!1,lr.clear(),vi(n)}function e0(n){if(n.fragment!==null){n.update(),De(n.before_update);const e=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,e),n.after_update.forEach(xe)}}function t0(n){const e=[],t=[]; $ s.forEach(i=>n.indexOf(i)===-1?e.push(i):t.push(i)),t.forEach(i=>i()), $ s=e}let Bs;function Sa(){return Bs||(Bs=Promise.resolve(),Bs.then(()=>{Bs=null})),Bs}function ns(n,e,t){n.dispatchEvent(sg( ` $ { e ? "intro" : "outro" } $ { t } ` ))}const ro=new Set;let li;function ae(){li={r:0,c:[],p:li}}function ue(){li.r||De(li.c),li=li.p}function I(n,e){n&&n.i&&(ro.delete(n),n.i(e))}function L(n,e,t,i){if(n&&n.o){if(ro.has(n))return;ro.add(n),li.c.push(()=>{ro.delete(n),i&&(t&&n.d(1),i())}),n.o(e)}else i&&i()}const $ a={duration:0};function ag(n,e,t){const i={direction:"in"};let s=e(n,t,i),l=!1,o,r,a=0;function u(){o&&ml(n,o)}function f(){const{delay:p=0,duration:h=300,easing:g= $ l,tick:_=te,css:v}=s|| $ a;v&&(o=pl(n,0,1,h,p,g,v,a++)),_(0,1);const k=qo()+p, $ =k+h;r&&r.abort(),l=!0,xe(()=>ns(n,!0,"start")),r=jo(C=>{if(l){if(C>= $ )return _(1,0),ns(n,!0,"end"),u(),l=!1;if(C>=k){const T=g((C-k)/h);_(T,1-T)}}return l})}let d=!1;return{start(){d||(d=!0,ml(n),jt(s)?(s=s(i),Sa().then(f)):f())},invalidate(){d=!1},end(){l&&(u(),l=!1)}}}function Ta(n,e,t){const i={direction:"out"};let s=e(n,t,i),l=!0,o;const r=li;r.r+=1;function a(){const{delay:u=0,duration:f=300,easing:d= $ l,tick:p=te,css:h}=s|| $ a;h&&(o=pl(n,1,0,f,u,d,h));const g=qo()+u,_=g+f;xe(()=>ns(n,!1,"start")),jo(v=>{if(l){if(v>=_)return p(0,1),ns(n,!1,"end"),--r.r||De(r.c),!1;if(v>=g
2023-05-17 21:41:42 +02:00
` ),t+=i.map(s=>{let l="";return s.name.includes("(")||s.name.includes(" ")?l+=s.name:l+=" ` "+s.name+" ` ",s.collate&&(l+=" COLLATE "+s.collate),s.sort&&(l+=" "+c.sort.toUpperCase()),l}).join( ` ,
` ),i.length>1&&(t+= `
2023-05-24 22:18:44 +02:00
` ),t+=")",e.where&&(t+= ` WHERE $ { e . where } ` ),t}static replaceIndexTableName(e,t){const i=U.parseIndex(e);return i.tableName=t,U.buildIndex(i)}static replaceIndexColumn(e,t,i){if(t===i)return e;const s=U.parseIndex(e);let l=!1;for(let o of s.columns)o.name===t&&(o.name=i,l=!0);return l?U.buildIndex(s):e}static normalizeSearchFilter(e,t){if(e=(e||"").trim(),!e||!t.length)return e;const i=["=","!=","~","!~",">",">=","<","<="];for(const s of i)if(e.includes(s))return e;return e=isNaN(e)&&e!="true"&&e!="false"? ` "${e.replace(/^[\"\'\`]|[\"\'\`]$/gm," ")}" ` :e,t.map(s=> ` $ { s } ~ $ { e } ` ).join("||")}}const Yo=Ln([]);function ko(n,e=4e3){return Ko(n,"info",e)}function Ht(n,e=3e3){return Ko(n,"success",e)}function As(n,e=4500){return Ko(n,"error",e)}function Ay(n,e=4500){return Ko(n,"warning",e)}function Ko(n,e,t){t=t||4e3;const i={message:n,type:e,duration:t,timeout:setTimeout(()=>{_b(i)},t)};Yo.update(s=>(Ra(s,i.message),U.pushOrReplaceByKey(s,i,"message"),s))}function _b(n){Yo.update(e=>(Ra(e,n),e))}function Fa(){Yo.update(n=>{for(let e of n)Ra(n,e);return[]})}function Ra(n,e){let t;typeof e=="string"?t=U.findByKey(n,"message",e):t=e,t&&(clearTimeout(t.timeout),U.removeByKey(n,"message",t.message))}const Ti=Ln({});function tn(n){Ti.set(n||{})}function ui(n){Ti.update(e=>(U.deleteByPath(e,n),e))}const qa=Ln({});function ta(n){qa.set(n||{})}const di=Ln([]),fi=Ln({}),wo=Ln(!1),gb=Ln({});function Iy(n){di.update(e=>{const t=U.findByKey(e,"id",n);return t?fi.set(t):e.length&&fi.set(e[0]),e})}function Ly(n){fi.update(e=>U.isEmpty(e==null?void 0:e.id)||e.id===n.id?n:e),di.update(e=>(U.pushOrReplaceByKey(e,n,"id"),ja(),U.sortCollections(e)))}function Py(n){di.update(e=>(U.removeByKey(e,"id",n.id),fi.update(t=>t.id===n.id?e[0]:t),ja(),e))}async function Ny(n=null){wo.set(!0);try{let e=await ce.collections.getFullList(200,{sort:"+name"});e=U.sortCollections(e),di.set(e);const t=n&&U.findByKey(e,"id",n);t?fi.set(t):e.length&&fi.set(e[0]),ja()}catch(e){ce.error(e)}wo.set(!1)}function ja(){gb.update(n=>(di.update(e=>{var t;for(let i of e)n[i.id]=!!((t=i.schema)!=null&&t.find(s=>{var l;return s.type=="file"&&((l=s.options)==null?void 0:l.protected)}));return e}),n))}const mr="pb_admin_file_token";Ho.prototype.logout=function(n=!0){this.authStore.clear(),n&&Vi("/login")};Ho.prototype.error=function(n,e=!0,t=""){if(!n||!(n instanceof Error)||n.isAbort)return;const i=(n==null?void 0:n.status)<<0||400,s=(n==null?void 0:n.data)||{};if(e&&i!==404){let l=s.message||n.message||t;l&&As(l)}if(U.isEmpty(s.data)||tn(s.data),i===401)return this.cancelAllRequests(),this.logout();if(i===403)return this.cancelAllRequests(),Vi("/")};Ho.prototype.getAdminFileToken=async function(n=""){let e=!0;if(n){const i=z1(gb);e=typeof i[n]<"u"?i[n]:!0}if(!e)return"";let t=localStorage.getItem(mr)||"";return(!t||_g(t,10))&&(t&&localStorage.removeItem(mr),this._adminFileTokenRequest||(this._adminFileTokenRequest=this.files.getToken()),t=await this._adminFileTokenRequest,localStorage.setItem(mr,t),this._adminFileTokenRequest=null),t};class Fy extends gg{save(e,t){super.save(e,t),t instanceof rs&&ta(t)}clear(){super.clear(),ta(null)}}const ce=new Ho("../",new Fy("pb_admin_auth"));ce.authStore.model instanceof rs&&ta(ce.authStore.model);function Ry(n){let e,t,i,s,l,o,r,a,u,f,d,p;const h=n[3].default,g=kt(h,n,n[2],null);return{c(){e=y("div"),t=y("main"),g&&g.c(),i=D(),s=y("footer"),l=y("a"),l.innerHTML= ` < i class = "ri-book-open-line txt-sm" > < / i >
< span class = "txt" > Docs < /span>`,o=D(),r=y("span"),r.textContent="|",a=D(),u=y("a"),f=y("span"),f.textContent="PocketBase v0.16.2",m(t,"class","page-content"),m(l,"href","https:/ / pocketbase . io / docs / "),m(l," target "," _blank "),m(l," rel "," noopener noreferrer "),m(r," class "," delimiter "),m(f," class "," txt "),m(u," href "," https : //github.com/pocketbase/pocketbase/releases"),m(u,"target","_blank"),m(u,"rel","noopener noreferrer"),m(u,"title","Releases"),m(s,"class","page-footer"),m(e,"class",d="page-wrapper "+n[1]),x(e,"center-content",n[0])},m(_,v){S(_,e,v),b(e,t),g&&g.m(t,null),b(e,i),b(e,s),b(s,l),b(s,o),b(s,r),b(s,a),b(s,u),b(u,f),p=!0},p(_,[v]){g&&g.p&&(!p||v&4)&&St(g,h,_,_[2],p?wt(h,_[2],v,null):$t(_[2]),null),(!p||v&2&&d!==(d="page-wrapper "+_[1]))&&m(e,"class",d),(!p||v&3)&&x(e,"center-content",_[0])},i(_){p||(I(g,_),p=!0)},o(_){L(g,_),p=!1},d(_){_&&w(e),g&&g.d(_)}}}function qy(n,e,t){let{$$slots:i={},$$scope:s}=e,{center:l=!1}=e,{class:o=""}=e;return n.$$set=r=>{"center"in r&&t(0,l=r.center),"class"in r&&t(1,o=r.class),"$$scope"in r&&t(2,s=r.$$scope)},[l,o,s,i]}class Sn extends be{constructor(e){super(),ge(this,e,qy,Ry,he,{center:0,class:1})}}function Xu(n){let e,t,i;return{c(){e=y("div"),e.innerHTML=`<figure class="logo"><img src="./images/logo.svg" alt="PocketBase logo" width="40" height="40"/>
< span class = "txt" > Pocket < strong > Base < / s t r o n g > < / s p a n > < / f i g u r e > ` , t = D ( ) , i = y ( " d i v " ) , m ( e , " c l a s s " , " b l o c k t x t - c e n t e r m - b - l g " ) , m ( i , " c l a s s " , " c l e a r f i x " ) } , m ( s , l ) { S ( s , e , l ) , S ( s , t , l ) , S ( s , i , l ) } , d ( s ) { s & & w ( e ) , s & & w ( t ) , s & & w ( i ) } } } f u n c t i o n j y ( n ) { l e t e , t , i , s = ! n [ 0 ] & & X u ( ) ; c o n s t l = n [ 1 ] . d e f a u l t , o = k t ( l , n , n [ 2 ] , n u l l ) ; r e t u r n { c ( ) { e = y ( " d i v " ) , s & & s . c ( ) , t = D ( ) , o & & o . c ( ) , m ( e , " c l a s s " , " w r a p p e r w r a p p e r - s m m - b - x l p a n e l - w r a p p e r s v e l t e - l x x z f u " ) } , m ( r , a ) { S ( r , e , a ) , s & & s . m ( e , n u l l ) , b ( e , t ) , o & & o . m ( e , n u l l ) , i = ! 0 } , p ( r , a ) { r [ 0 ] ? s & & ( s . d ( 1 ) , s = n u l l ) : s | | ( s = X u ( ) , s . c ( ) , s . m ( e , t ) ) , o & & o . p & & ( ! i | | a & 4 ) & & S t ( o , l , r , r [ 2 ] , i ? w t ( l , r [ 2 ] , a , n u l l ) : $ t ( r [ 2 ] ) , n u l l ) } , i ( r ) { i | | ( I ( o , r ) , i = ! 0 ) } , o ( r ) { L ( o , r ) , i = ! 1 } , d ( r ) { r & & w ( e ) , s & & s . d ( ) , o & & o . d ( r ) } } } f u n c t i o n V y ( n ) { l e t e , t ; r e t u r n e = n e w S n ( { p r o p s : { c l a s s : " f u l l - p a g e " , c e n t e r : ! 0 , $ $ s l o t s : { d e f a u l t : [ j y ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( i , s ) { V ( e , i , s ) , t = ! 0 } , p ( i , [ s ] ) { c o n s t l = { } ; s & 5 & & ( l . $ $ s c o p e = { d i r t y : s , c t x : i } ) , e . $ s e t ( l ) } , i ( i ) { t | | ( I ( e . $ $ . f r a g m e n t , i ) , t = ! 0 ) } , o ( i ) { L ( e . $ $ . f r a g m e n t , i ) , t = ! 1 } , d ( i ) { z ( e , i ) } } } f u n c t i o n z y ( n , e , t ) { l e t { $ $ s l o t s : i = { } , $ $ s c o p e : s } = e , { n o b r a n d i n g : l = ! 1 } = e ; r e t u r n n . $ $ s e t = o = > { " n o b r a n d i n g " i n o & & t ( 0 , l = o . n o b r a n d i n g ) , " $ $ s c o p e " i n o & & t ( 2 , s = o . $ $ s c o p e ) } , [ l , i , s ] } c l a s s b b e x t e n d s b e { c o n s t r u c t o r ( e ) { s u p e r ( ) , g e ( t h i s , e , z y , V y , h e , { n o b r a n d i n g : 0 } ) } } f u n c t i o n J o ( n ) { c o n s t e = n - 1 ; r e t u r n e * e * e + 1 } f u n c t i o n n a ( n , { d e l a y : e = 0 , d u r a t i o n : t = 4 0 0 , e a s i n g : i = $ l } = { } ) { c o n s t s = + g e t C o m p u t e d S t y l e ( n ) . o p a c i t y ; r e t u r n { d e l a y : e , d u r a t i o n : t , e a s i n g : i , c s s : l = > ` o p a c i t y : $ { l * s } ` } } f u n c t i o n c i ( n , { d e l a y : e = 0 , d u r a t i o n : t = 4 0 0 , e a s i n g : i = J o , x : s = 0 , y : l = 0 , o p a c i t y : o = 0 } = { } ) { c o n s t r = g e t C o m p u t e d S t y l e ( n ) , a = + r . o p a c i t y , u = r . t r a n s f o r m = = = " n o n e " ? " " : r . t r a n s f o r m , f = a * ( 1 - o ) , [ d , p ] = g u ( s ) , [ h , g ] = g u ( l ) ; r e t u r n { d e l a y : e , d u r a t i o n : t , e a s i n g : i , c s s : ( _ , v ) = > `
2023-05-17 21:41:42 +02:00
transform : $ { u } translate ( $ { ( 1 - _ ) * d } $ { p } , $ { ( 1 - _ ) * h } $ { g } ) ;
2023-05-24 22:18:44 +02:00
opacity : $ { a - f * v } ` }}function rt(n,{delay:e=0,duration:t=400,easing:i=Jo,axis:s="y"}={}){const l=getComputedStyle(n),o=+l.opacity,r=s==="y"?"height":"width",a=parseFloat(l[r]),u=s==="y"?["top","bottom"]:["left","right"],f=u.map(k=> ` $ { k [ 0 ] . toUpperCase ( ) } $ { k . slice ( 1 ) } ` ),d=parseFloat(l[ ` padding$ { f [ 0 ] } ` ]),p=parseFloat(l[ ` padding$ { f [ 1 ] } ` ]),h=parseFloat(l[ ` margin$ { f [ 0 ] } ` ]),g=parseFloat(l[ ` margin$ { f [ 1 ] } ` ]),_=parseFloat(l[ ` border$ { f [ 0 ] } Width ` ]),v=parseFloat(l[ ` border$ { f [ 1 ] } Width ` ]);return{delay:e,duration:t,easing:i,css:k=> ` overflow : hidden ; opacity : $ { Math . min ( k * 20 , 1 ) * o } ; $ { r } : $ { k * a } px ; padding - $ { u [ 0 ] } : $ { k * d } px ; padding - $ { u [ 1 ] } : $ { k * p } px ; margin - $ { u [ 0 ] } : $ { k * h } px ; margin - $ { u [ 1 ] } : $ { k * g } px ; border - $ { u [ 0 ] } - width : $ { k * _ } px ; border - $ { u [ 1 ] } - width : $ { k * v } px ; ` }}function Jt(n,{delay:e=0,duration:t=400,easing:i=Jo,start:s=0,opacity:l=0}={}){const o=getComputedStyle(n),r=+o.opacity,a=o.transform==="none"?"":o.transform,u=1-s,f=r*(1-l);return{delay:e,duration:t,easing:i,css:(d,p)=> `
2023-05-17 21:41:42 +02:00
transform : $ { a } scale ( $ { 1 - u * p } ) ;
opacity : $ { r - f * p }
2023-05-24 22:18:44 +02:00
` }}let ia,Ki;const sa="app-tooltip";function Qu(n){return typeof n=="string"?{text:n,position:"bottom",hideOnClick:null}:n||{}}function Fi(){return Ki=Ki||document.querySelector("."+sa),Ki||(Ki=document.createElement("div"),Ki.classList.add(sa),document.body.appendChild(Ki)),Ki}function vb(n,e){let t=Fi();if(!t.classList.contains("active")||!(e!=null&&e.text)){la();return}t.textContent=e.text,t.className=sa+" active",e.class&&t.classList.add(e.class),e.position&&t.classList.add(e.position),t.style.top="0px",t.style.left="0px";let i=t.offsetHeight,s=t.offsetWidth,l=n.getBoundingClientRect(),o=0,r=0,a=5;e.position=="left"?(o=l.top+l.height/2-i/2,r=l.left-s-a):e.position=="right"?(o=l.top+l.height/2-i/2,r=l.right+a):e.position=="top"?(o=l.top-i-a,r=l.left+l.width/2-s/2):e.position=="top-left"?(o=l.top-i-a,r=l.left):e.position=="top-right"?(o=l.top-i-a,r=l.right-s):e.position=="bottom-left"?(o=l.top+l.height+a,r=l.left):e.position=="bottom-right"?(o=l.top+l.height+a,r=l.right-s):(o=l.top+l.height+a,r=l.left+l.width/2-s/2),r+s>document.documentElement.clientWidth&&(r=document.documentElement.clientWidth-s),r=r>=0?r:0,o+i>document.documentElement.clientHeight&&(o=document.documentElement.clientHeight-i),o=o>=0?o:0,t.style.top=o+"px",t.style.left=r+"px"}function la(){clearTimeout(ia),Fi().classList.remove("active"),Fi().activeNode=void 0}function Hy(n,e){Fi().activeNode=n,clearTimeout(ia),ia=setTimeout(()=>{Fi().classList.add("active"),vb(n,e)},isNaN(e.delay)?0:e.delay)}function Be(n,e){let t=Qu(e);function i(){Hy(n,t)}function s(){la()}return n.addEventListener("mouseenter",i),n.addEventListener("mouseleave",s),n.addEventListener("blur",s),(t.hideOnClick===!0||t.hideOnClick===null&&U.isFocusable(n))&&n.addEventListener("click",s),Fi(),{update(l){var o,r;t=Qu(l),(r=(o=Fi())==null?void 0:o.activeNode)!=null&&r.contains(n)&&vb(n,t)},destroy(){var l,o;(o=(l=Fi())==null?void 0:l.activeNode)!=null&&o.contains(n)&&la(),n.removeEventListener("mouseenter",i),n.removeEventListener("mouseleave",s),n.removeEventListener("blur",s),n.removeEventListener("click",s)}}}function xu(n,e,t){const i=n.slice();return i[12]=e[t],i}const By=n=>({}),ef=n=>({uniqueId:n[4]});function Uy(n){let e,t,i=n[3],s=[];for(let o=0;o<i.length;o+=1)s[o]=tf(xu(n,i,o));const l=o=>L(s[o],1,1,()=>{s[o]=null});return{c(){for(let o=0;o<s.length;o+=1)s[o].c();e=ke()},m(o,r){for(let a=0;a<s.length;a+=1)s[a]&&s[a].m(o,r);S(o,e,r),t=!0},p(o,r){if(r&8){i=o[3];let a;for(a=0;a<i.length;a+=1){const u=xu(o,i,a);s[a]?(s[a].p(u,r),I(s[a],1)):(s[a]=tf(u),s[a].c(),I(s[a],1),s[a].m(e.parentNode,e))}for(ae(),a=i.length;a<s.length;a+=1)l(a);ue()}},i(o){if(!t){for(let r=0;r<i.length;r+=1)I(s[r]);t=!0}},o(o){s=s.filter(Boolean);for(let r=0;r<s.length;r+=1)L(s[r]);t=!1},d(o){ht(s,o),o&&w(e)}}}function Wy(n){let e,t,i,s,l,o,r;return{c(){e=y("div"),t=y("i"),m(t,"class","ri-error-warning-fill txt-danger"),m(e,"class","form-field-addon")},m(a,u){S(a,e,u),b(e,t),l=!0,o||(r=Oe(i=Be.call(null,t,{position:"left",text:n[3].map(So).join( `
` )})),o=!0)},p(a,u){i&&jt(i.update)&&u&8&&i.update.call(null,{position:"left",text:a[3].map(So).join( `
` )})},i(a){l||(a&&xe(()=>{l&&(s||(s=Ve(t,Jt,{duration:150,start:.7},!0)),s.run(1))}),l=!0)},o(a){a&&(s||(s=Ve(t,Jt,{duration:150,start:.7},!1)),s.run(0)),l=!1},d(a){a&&w(e),a&&s&&s.end(),o=!1,r()}}}function tf(n){let e,t,i=So(n[12])+"",s,l,o,r;return{c(){e=y("div"),t=y("pre"),s=W(i),l=D(),m(e,"class","help-block help-block-error")},m(a,u){S(a,e,u),b(e,t),b(t,s),b(e,l),r=!0},p(a,u){(!r||u&8)&&i!==(i=So(a[12])+"")&&se(s,i)},i(a){r||(a&&xe(()=>{r&&(o||(o=Ve(e,rt,{duration:150},!0)),o.run(1))}),r=!0)},o(a){a&&(o||(o=Ve(e,rt,{duration:150},!1)),o.run(0)),r=!1},d(a){a&&w(e),a&&o&&o.end()}}}function Yy(n){let e,t,i,s,l,o,r;const a=n[9].default,u=kt(a,n,n[8],ef),f=[Wy,Uy],d=[];function p(h,g){return h[0]&&h[3].length?0:1}return i=p(n),s=d[i]=f[i](n),{c(){e=y("div"),u&&u.c(),t=D(),s.c(),m(e,"class",n[1]),x(e,"error",n[3].length)},m(h,g){S(h,e,g),u&&u.m(e,null),b(e,t),d[i].m(e,null),n[11](e),l=!0,o||(r=J(e,"click",n[10]),o=!0)},p(h,[g]){u&&u.p&&(!l||g&256)&&St(u,a,h,h[8],l?wt(a,h[8],g,By): $ t(h[8]),ef);let _=i;i=p(h),i===_?d[i].p(h,g):(ae(),L(d[_],1,1,()=>{d[_]=null}),ue(),s=d[i],s?s.p(h,g):(s=d[i]=f[i](h),s.c()),I(s,1),s.m(e,null)),(!l||g&2)&&m(e,"class",h[1]),(!l||g&10)&&x(e,"error",h[3].length)},i(h){l||(I(u,h),I(s),l=!0)},o(h){L(u,h),L(s),l=!1},d(h){h&&w(e),u&&u.d(h),d[i].d(),n[11](null),o=!1,r()}}}const nf="Invalid value";function So(n){return typeof n=="object"?(n==null?void 0:n.message)||(n==null?void 0:n.code)||nf:n||nf}function Ky(n,e,t){let i;Ze(n,Ti,_=>t(7,i=_));let{ $ $ slots:s={}, $ $ scope:l}=e;const o="field_"+U.randomString(7);let{name:r=""}=e,{inlineError:a=!1}=e,{class:u=void 0}=e,f,d=[];function p(){ui(r)}Xt(()=>(f.addEventListener("input",p),f.addEventListener("change",p),()=>{f.removeEventListener("input",p),f.removeEventListener("change",p)}));function h(_){Fe.call(this,n,_)}function g(_){ne[_?"unshift":"push"](()=>{f=_,t(2,f)})}return n. $ $ set=_=>{"name"in _&&t(5,r=_.name),"inlineError"in _&&t(0,a=_.inlineError),"class"in _&&t(1,u=_.class)," $ $ scope"in _&&t(8,l=_. $ $ scope)},n. $ $ .update=()=>{n. $ $ .dirty&160&&t(3,d=U.toArray(U.getNestedVal(i,r)))},[a,u,f,d,o,r,p,i,l,s,h,g]}class pe extends be{constructor(e){super(),ge(this,e,Ky,Yy,he,{name:5,inlineError:0,class:1,changed:6})}get changed(){return this. $ $ .ctx[6]}}function Jy(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=W("Email"),s=D(),l=y("input"),m(e,"for",i=n[9]),m(l,"type","email"),m(l,"autocomplete","off"),m(l,"id",o=n[9]),l.required=!0,l.autofocus=!0},m(u,f){S(u,e,f),b(e,t),S(u,s,f),S(u,l,f),re(l,n[0]),l.focus(),r||(a=J(l,"input",n[5]),r=!0)},p(u,f){f&512&&i!==(i=u[9])&&m(e,"for",i),f&512&&o!==(o=u[9])&&m(l,"id",o),f&1&&l.value!==u[0]&&re(l,u[0])},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function Zy(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("label"),t=W("Password"),s=D(),l=y("input"),r=D(),a=y("div"),a.textContent="Minimum 10 characters.",m(e,"for",i=n[9]),m(l,"type","password"),m(l,"autocomplete","new-password"),m(l,"minlength","10"),m(l,"id",o=n[9]),l.required=!0,m(a,"class","help-block")},m(d,p){S(d,e,p),b(e,t),S(d,s,p),S(d,l,p),re(l,n[1]),S(d,r,p),S(d,a,p),u||(f=J(l,"input",n[6]),u=!0)},p(d,p){p&512&&i!==(i=d[9])&&m(e,"for",i),p&512&&o!==(o=d[9])&&m(l,"id",o),p&2&&l.value!==d[1]&&re(l,d[1])},d(d){d&&w(e),d&&w(s),d&&w(l),d&&w(r),d&&w(a),u=!1,f()}}}function Gy(n){let e,t,i,s,l,o,r,a;return{c(){e=y("label"),t=W("Password confirm"),s=D(),l=y("input"),m(e,"for",i=n[9]),m(l,"type","password"),m(l,"minlength","10"),m(l,"id",o=n[9]),l.required=!0},m(u,f){S(u,e,f),b(e,t),S(u,s,f),S(u,l,f),re(l,n[2]),r||(a=J(l,"input",n[7]),r=!0)},p(u,f){f&512&&i!==(i=u[9])&&m(e,"for",i),f&512&&o!==(o=u[9])&&m(l,"id",o),f&4&&l.value!==u[2]&&re(l,u[2])},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function Xy(n){let e,t,i,s,l,o,r,a,u,f,d,p,h;return s=new pe({props:{class:"form-field required",name:"email", $ $ slots:{default:[Jy,({uniqueId:g})=>({9:g}),({uniqueId:g})=>g?512:0]}, $ $ scope:{ctx:n}}}),o=new pe({props:{class:"form-field required",name:"password", $ $ slots:{default:[Zy,({uniqueId:g})=>({9:g}),({uniqueId:g})=>g?512:0]}, $ $ scope:{ctx:n}}}),a=new pe({props:{class:"form-field required",name:
< i class = "ri-arrow-right-line" > < / i > ` , m ( t , " c l a s s " , " c o n t e n t t x t - c e n t e r m - b - b a s e " ) , m ( f , " t y p e " , " s u b m i t " ) , m ( f , " c l a s s " , " b t n b t n - l g b t n - b l o c k b t n - n e x t " ) , x ( f , " b t n - d i s a b l e d " , n [ 3 ] ) , x ( f , " b t n - l o a d i n g " , n [ 3 ] ) , m ( e , " c l a s s " , " b l o c k " ) , m ( e , " a u t o c o m p l e t e " , " o f f " ) } , m ( g , _ ) { S ( g , e , _ ) , b ( e , t ) , b ( e , i ) , V ( s , e , n u l l ) , b ( e , l ) , V ( o , e , n u l l ) , b ( e , r ) , V ( a , e , n u l l ) , b ( e , u ) , b ( e , f ) , d = ! 0 , p | | ( h = J ( e , " s u b m i t " , t t ( n [ 4 ] ) ) , p = ! 0 ) } , p ( g , [ _ ] ) { c o n s t v = { } ; _ & 1 5 3 7 & & ( v . $ $ s c o p e = { d i r t y : _ , c t x : g } ) , s . $ s e t ( v ) ; c o n s t k = { } ; _ & 1 5 3 8 & & ( k . $ $ s c o p e = { d i r t y : _ , c t x : g } ) , o . $ s e t ( k ) ; c o n s t $ = { } ; _ & 1 5 4 0 & & ( $ . $ $ s c o p e = { d i r t y : _ , c t x : g } ) , a . $ s e t ( $ ) , ( ! d | | _ & 8 ) & & x ( f , " b t n - d i s a b l e d " , g [ 3 ] ) , ( ! d | | _ & 8 ) & & x ( f , " b t n - l o a d i n g " , g [ 3 ] ) } , i ( g ) { d | | ( I ( s . $ $ . f r a g m e n t , g ) , I ( o . $ $ . f r a g m e n t , g ) , I ( a . $ $ . f r a g m e n t , g ) , d = ! 0 ) } , o ( g ) { L ( s . $ $ . f r a g m e n t , g ) , L ( o . $ $ . f r a g m e n t , g ) , L ( a . $ $ . f r a g m e n t , g ) , d = ! 1 } , d ( g ) { g & & w ( e ) , z ( s ) , z ( o ) , z ( a ) , p = ! 1 , h ( ) } } } f u n c t i o n Q y ( n , e , t ) { c o n s t i = T t ( ) ; l e t s = " " , l = " " , o = " " , r = ! 1 ; a s y n c f u n c t i o n a ( ) { i f ( ! r ) { t ( 3 , r = ! 0 ) ; t r y { a w a i t c e . a d m i n s . c r e a t e ( { e m a i l : s , p a s s w o r d : l , p a s s w o r d C o n f i r m : o } ) , a w a i t c e . a d m i n s . a u t h W i t h P a s s w o r d ( s , l ) , i ( " s u b m i t " ) } c a t c h ( p ) { c e . e r r o r ( p ) } t ( 3 , r = ! 1 ) } } f u n c t i o n u ( ) { s = t h i s . v a l u e , t ( 0 , s ) } f u n c t i o n f ( ) { l = t h i s . v a l u e , t ( 1 , l ) } f u n c t i o n d ( ) { o = t h i s . v a l u e , t ( 2 , o ) } r e t u r n [ s , l , o , r , a , u , f , d ] } c l a s s x y e x t e n d s b e { c o n s t r u c t o r ( e ) { s u p e r ( ) , g e ( t h i s , e , Q y , X y , h e , { } ) } } f u n c t i o n s f ( n ) { l e t e , t ; r e t u r n e = n e w b b ( { p r o p s : { $ $ s l o t s : { d e f a u l t : [ e k ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( i , s ) { V ( e , i , s ) , t = ! 0 } , p ( i , s ) { c o n s t l = { } ; s & 9 & & ( l . $ $ s c o p e = { d i r t y : s , c t x : i } ) , e . $ s e t ( l ) } , i ( i ) { t | | ( I ( e . $ $ . f r a g m e n t , i ) , t = ! 0 ) } , o ( i ) { L ( e . $ $ . f r a g m e n t , i ) , t = ! 1 } , d ( i ) { z ( e , i ) } } } f u n c t i o n e k ( n ) { l e t e , t ; r e t u r n e = n e w x y ( { } ) , e . $ o n ( " s u b m i t " , n [ 1 ] ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( i , s ) { V ( e , i , s ) , t = ! 0 } , p : t e , i ( i ) { t | | ( I ( e . $ $ . f r a g m e n t , i ) , t = ! 0 ) } , o ( i ) { L ( e . $ $ . f r a g m e n t , i ) , t = ! 1 } , d ( i ) { z ( e , i ) } } } f u n c t i o n t k ( n ) { l e t e , t , i = n [ 0 ] & & s f ( n ) ; r e t u r n { c ( ) { i & & i . c ( ) , e = k e ( ) } , m ( s , l ) { i & & i . m ( s , l ) , S ( s , e , l ) , t = ! 0 } , p ( s , [ l ] ) { s [ 0 ] ? i ? ( i . p ( s , l ) , l & 1 & & I ( i , 1 ) ) : ( i = s f ( s ) , i . c ( ) , I ( i , 1 ) , i . m ( e . p a r e n t N o d e , e ) ) : i & & ( a e ( ) , L ( i , 1 , 1 , ( ) = > { i = n u l l } ) , u e ( ) ) } , i ( s ) { t | | ( I ( i ) , t = ! 0 ) } , o ( s ) { L ( i ) , t = ! 1 } , d ( s ) { i & & i . d ( s ) , s & & w ( e ) } } } f u n c t i o n n k ( n , e , t ) { l e t i = ! 1 ; s ( ) ; f u n c t i o n s ( ) { i f ( t ( 0 , i = ! 1 ) , n e w U R L S e a r c h P a r a m s ( w i n d o w . l o c a t i o n . s e a r c h ) . h a s ( " i n s t a l l e r " ) ) { c e . l o g o u t ( ! 1 ) , t ( 0 , i = ! 0 ) ; r e t u r n } c e . a u t h S t o r e . i s V a l i d ? V i ( " / c o l l e c t i o n s " ) : c e . l o g o u t ( ) } r e t u r n [ i , a s y n c ( ) = > { t ( 0 , i = ! 1 ) , a w a i t c n ( ) , w i n d o w . l o c a t i o n . s e a r c h = " " } ] } c l a s s i k e x t e n d s b e { c o n s t r u c t o r ( e ) { s u p e r ( ) , g e ( t h i s , e , n k , t k , h e , { } ) } } c o n s t M t = L n ( " " ) , $ o = L n ( " " ) , I s = L n ( ! 1 ) ; f u n c t i o n s k ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = y ( " i n p u t " ) , m ( e , " t y p e " , " t e x t " ) , m ( e , " i d " , n [ 8 ] ) , m ( e , " p l a c e h o l d e r " , t = n [ 0 ] | | n [ 1 ] ) } , m ( l , o ) { S ( l , e , o ) , n [ 1 3 ] ( e ) , r e ( e , n [ 7 ] ) , i | | ( s = J ( e , " i n p u t " , n [ 1 4 ] ) , i = ! 0 ) } , p ( l , o ) { o & 3 & & t ! = = ( t = l [ 0 ] | | l [ 1 ] ) & & m ( e , " p l a c e h o l d e r " , t ) , o & 1 2 8 & & e . v a l u e ! = = l [ 7 ] & & r e ( e , l [ 7 ] ) } , i : t e , o : t e , d ( l ) { l & & w ( e ) , n [ 1 3 ] ( n u l l ) , i = ! 1 , s ( ) } } } f u n c t i o n l k ( n ) { l e t e , t , i , s ; f u n c t i o n l ( a ) { n [ 1 2 ] ( a ) } v a r o = n [ 4 ] ; f u n c t i o n r ( a ) { l e t u = { i d : a [ 8 ] , s i n g l e L i n e : ! 0 , d i s a b l e R e q u e s t K e y s : ! 0 , d i s a b l e I n d i r e c t C o l l e c t i o n s K e y s : ! 0 , e x t r a A u t o c o m p l e t e K e y s : a [ 3 ] , b a s e C o l l e c t i o n : a [ 2 ] , p l a c e h o l d e r : a [ 0 ] | | a [ 1 ] } ; r e t u r n a [ 7 ] ! = = v o i d 0 & & ( u . v a l u e = a [ 7 ] ) , { p r o p s : u } } r e t u r n o & & ( e = R t ( o , r ( n ) ) , n e . p u s h ( ( ) = > d e ( e , " v a l u e " , l ) ) , e . $ o n ( " s u b m i t " , n [ 1 0 ] ) ) , { c ( ) { e & & H ( e . $ $ . f r a g m e n t ) , i = k e ( ) } , m ( a , u ) { e & & V ( e , a , u ) , S ( a , i , u ) , s = ! 0 } , p ( a , u ) { c o n s t f = { } ; i f ( u & 8 & & ( f . e x t r a A u t o c o m p l e t e K e y s = a [ 3 ] ) , u & 4 & & ( f . b a s e C o l l e c t i o n = a [ 2 ] ) , u & 3 & & ( f . p l a c e h o l d e r = a [ 0 ] | | a [ 1 ] ) , ! t & & u & 1 2 8 & & ( t = ! 0 , f . v a l u e = a [ 7 ] , _ e ( ( ) = > t = ! 1 ) ) , u & 1 6 & & o ! = = ( o = a [ 4 ] ) ) { i f ( e ) { a e ( ) ; c o n s t d = e ; L ( d . $ $ . f r a g m e n t , 1 , 0 , ( ) = > { z ( d , 1 ) } ) , u e ( ) } o ? ( e = R t ( o , r ( a ) ) , n e . p u s h ( ( ) = > d e ( e , " v a l u e " , l ) ) , e . $ o n ( " s u b m i t " , a [ 1 0 ] ) , H ( e . $ $ . f r a g m e n t ) , I ( e . $ $ . f r a g m e n t , 1 ) , V ( e , i . p a r e n t N o d e , i ) ) : e = n u l l } e l s e o & & e . $ s e t ( f ) } , i ( a ) { s | | ( e & & I ( e . $ $ . f r a g m e n t , a ) , s = ! 0 ) } , o ( a ) { e & & L ( e . $ $ . f r a g m e n t , a ) , s = ! 1 } , d ( a ) { a & & w ( i ) , e & & z ( e , a ) } } } f u n c t i o n l f ( n ) { l e t e , t , i ; r e t u r n { c ( ) { e = y ( " b u t t o n " ) , e . i n n e r H T M L = ' < s p a n c l a s s = " t x t " > S e a r c h < / s p a n > ' , m ( e , " t y p e " , " s u b m i t " ) , m ( e , " c l a s s " , " b t n b t n - e x p a n d e d b t n - s m b t n - w a r n i n g " ) } , m ( s , l ) { S ( s , e , l ) , i = ! 0 } , i ( s ) { i | | ( s & & x e ( ( ) = > { i & & ( t | | ( t = V e ( e , c i , { d u r a t i o n : 1 5 0 , x : 5 } , ! 0 ) ) , t . r u n ( 1 ) ) } ) , i = ! 0 ) } , o ( s ) { s & & ( t | | ( t = V e ( e , c i , { d u r a t i o n : 1 5 0 , x : 5 } , ! 1 ) ) , t . r u n ( 0 ) ) , i = ! 1 } , d ( s ) { s & & w ( e ) , s & & t & & t . e n d ( ) } } } f u n c t i o n o f ( n ) { l e t e , t , i , s , l ; r e t u r n { c ( ) { e = y ( " b u t t o n " ) , e . i n n e r H T M L = ' < s p a n c l a s s = " t x t " > C l e a r < / s p a n > ' , m ( e , " t y p e " , " b u t t o n " ) , m ( e , " c l a s s
< span class = "txt" > Method < / s p a n > ` , m ( e , " c l a s s " , " c o l - h e a d e r - c o n t e n t " ) } , m ( t , i ) { S ( t , e , i ) } , p : t e , d ( t ) { t & & w ( e ) } } } f u n c t i o n k k ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = y ( " d i v " ) , t = y ( " i " ) , i = D ( ) , s = y ( " s p a n " ) , s . t e x t C o n t e n t = " U R L " , m ( t , " c l a s s " , U . g e t F i e l d T y p e I c o n ( " u r l " ) ) , m ( s , " c l a s s " , " t x t " ) , m ( e , " c l a s s " , " c o l - h e a d e r - c o n t e n t " ) } , m ( l , o ) { S ( l , e , o ) , b ( e , t ) , b ( e , i ) , b ( e , s ) } , p : t e , d ( l ) { l & & w ( e ) } } } f u n c t i o n w k ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = y ( " d i v " ) , t = y ( " i " ) , i = D ( ) , s = y ( " s p a n " ) , s . t e x t C o n t e n t = " R e f e r e r " , m ( t , " c l a s s " , U . g e t F i e l d T y p e I c o n ( " u r l " ) ) , m ( s , " c l a s s " , " t x t " ) , m ( e , " c l a s s " , " c o l - h e a d e r - c o n t e n t " ) } , m ( l , o ) { S ( l , e , o ) , b ( e , t ) , b ( e , i ) , b ( e , s ) } , p : t e , d ( l ) { l & & w ( e ) } } } f u n c t i o n S k ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = y ( " d i v " ) , t = y ( " i " ) , i = D ( ) , s = y ( " s p a n " ) , s . t e x t C o n t e n t = " U s e r I P " , m ( t , " c l a s s " , U . g e t F i e l d T y p e I c o n ( " n u m b e r " ) ) , m ( s , " c l a s s " , " t x t " ) , m ( e , " c l a s s " , " c o l - h e a d e r - c o n t e n t " ) } , m ( l , o ) { S ( l , e , o ) , b ( e , t ) , b ( e , i ) , b ( e , s ) } , p : t e , d ( l ) { l & & w ( e ) } } } f u n c t i o n $ k ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = y ( " d i v " ) , t = y ( " i " ) , i = D ( ) , s = y ( " s p a n " ) , s . t e x t C o n t e n t = " S t a t u s " , m ( t , " c l a s s " , U . g e t F i e l d T y p e I c o n ( " n u m b e r " ) ) , m ( s , " c l a s s " , " t x t " ) , m ( e , " c l a s s " , " c o l - h e a d e r - c o n t e n t " ) } , m ( l , o ) { S ( l , e , o ) , b ( e , t ) , b ( e , i ) , b ( e , s ) } , p : t e , d ( l ) { l & & w ( e ) } } } f u n c t i o n T k ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = y ( " d i v " ) , t = y ( " i " ) , i = D ( ) , s = y ( " s p a n " ) , s . t e x t C o n t e n t = " C r e a t e d " , m ( t , " c l a s s " , U . g e t F i e l d T y p e I c o n ( " d a t e " ) ) , m ( s , " c l a s s " , " t x t " ) , m ( e , " c l a s s " , " c o l - h e a d e r - c o n t e n t " ) } , m ( l , o ) { S ( l , e , o ) , b ( e , t ) , b ( e , i ) , b ( e , s ) } , p : t e , d ( l ) { l & & w ( e ) } } } f u n c t i o n f f ( n ) { l e t e ; f u n c t i o n t ( l , o ) { r e t u r n l [ 6 ] ? M k : C k } l e t i = t ( n ) , s = i ( n ) ; r e t u r n { c ( ) { s . c ( ) , e = k e ( ) } , m ( l , o ) { s . m ( l , o ) , S ( l , e , o ) } , p ( l , o ) { i = = = ( i = t ( l ) ) & & s ? s . p ( l , o ) : ( s . d ( 1 ) , s = i ( l ) , s & & ( s . c ( ) , s . m ( e . p a r e n t N o d e , e ) ) ) } , d ( l ) { s . d ( l ) , l & & w ( e ) } } } f u n c t i o n C k ( n ) { v a r r ; l e t e , t , i , s , l , o = ( ( r = n [ 0 ] ) = = n u l l ? v o i d 0 : r . l e n g t h ) & & c f ( n ) ; r e t u r n { c ( ) { e = y ( " t r " ) , t = y ( " t d " ) , i = y ( " h 6 " ) , i . t e x t C o n t e n t = " N o l o g s f o u n d . " , s = D ( ) , o & & o . c ( ) , l = D ( ) , m ( t , " c o l s p a n " , " 9 9 " ) , m ( t , " c l a s s " , " t x t - c e n t e r t x t - h i n t p - x s " ) } , m ( a , u ) { S ( a , e , u ) , b ( e , t ) , b ( t , i ) , b ( t , s ) , o & & o . m ( t , n u l l ) , b ( e , l ) } , p ( a , u ) { v a r f ; ( f = a [ 0 ] ) ! = n u l l & & f . l e n g t h ? o ? o . p ( a , u ) : ( o = c f ( a ) , o . c ( ) , o . m ( t , n u l l ) ) : o & & ( o . d ( 1 ) , o = n u l l ) } , d ( a ) { a & & w ( e ) , o & & o . d ( ) } } } f u n c t i o n M k ( n ) { l e t e ; r e t u r n { c ( ) { e = y ( " t r " ) , e . i n n e r H T M L = ` < t d c o l s p a n = " 9 9 " c l a s s = " p - x s " > < s p a n c l a s s = " s k e l e t o n - l o a d e r m - 0 " > < / s p a n > < / t d >
` },m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function cf(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='<span class="txt">Clear filters</span>',m(e,"type","button"),m(e,"class","btn btn-hint btn-expanded m-t-sm")},m(s,l){S(s,e,l),t||(i=J(e,"click",n[19]),t=!0)},p:te,d(s){s&&w(e),t=!1,i()}}}function df(n){let e;return{c(){e=y("i"),m(e,"class","ri-error-warning-line txt-danger m-l-5 m-r-5"),m(e,"title","Error")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function pf(n,e){var Ce,Ge,_t;let t,i,s,l=((Ce=e[23].method)==null?void 0:Ce.toUpperCase())+"",o,r,a,u,f,d=e[23].url+"",p,h,g,_,v,k, $ =(e[23].referer||"N/A")+"",C,T,M,O,E,A=(e[23].userIp||"N/A")+"",P,N,F,R,q,j=e[23].status+"",B,Y,Q,Z,G,le,ee,me,ye,Me,ze=(((Ge=e[23].meta)==null?void 0:Ge.errorMessage)||((_t=e[23].meta)==null?void 0:_t.errorData))&&df();Z=new $ i({props:{date:e[23].created}});function Ue(){return e[17](e[23])}function we(...Xe){return e[18](e[23],...Xe)}return{key:n,first:null,c(){t=y("tr"),i=y("td"),s=y("span"),o=W(l),a=D(),u=y("td"),f=y("span"),p=W(d),g=D(),ze&&ze.c(),_=D(),v=y("td"),k=y("span"),C=W( $ ),M=D(),O=y("td"),E=y("span"),P=W(A),F=D(),R=y("td"),q=y("span"),B=W(j),Y=D(),Q=y("td"),H(Z. $ $ .fragment),G=D(),le=y("td"),le.innerHTML='<i class="ri-arrow-right-line"></i>',ee=D(),m(s,"class",r="label txt-uppercase "+e[9][e[23].method.toLowerCase()]),m(i,"class","col-type-text col-field-method min-width"),m(f,"class","txt txt-ellipsis"),m(f,"title",h=e[23].url),m(u,"class","col-type-text col-field-url"),m(k,"class","txt txt-ellipsis"),m(k,"title",T=e[23].referer),x(k,"txt-hint",!e[23].referer),m(v,"class","col-type-text col-field-referer"),m(E,"class","txt txt-ellipsis"),m(E,"title",N=e[23].userIp),x(E,"txt-hint",!e[23].userIp),m(O,"class","col-type-number col-field-userIp"),m(q,"class","label"),x(q,"label-danger",e[23].status>=400),m(R,"class","col-type-number col-field-status"),m(Q,"class","col-type-date col-field-created"),m(le,"class","col-type-action min-width"),m(t,"tabindex","0"),m(t,"class","row-handle"),this.first=t},m(Xe,Ke){S(Xe,t,Ke),b(t,i),b(i,s),b(s,o),b(t,a),b(t,u),b(u,f),b(f,p),b(u,g),ze&&ze.m(u,null),b(t,_),b(t,v),b(v,k),b(k,C),b(t,M),b(t,O),b(O,E),b(E,P),b(t,F),b(t,R),b(R,q),b(q,B),b(t,Y),b(t,Q),V(Z,Q,null),b(t,G),b(t,le),b(t,ee),me=!0,ye||(Me=[J(t,"click",Ue),J(t,"keydown",we)],ye=!0)},p(Xe,Ke){var fe,He,At;e=Xe,(!me||Ke&8)&&l!==(l=((fe=e[23].method)==null?void 0:fe.toUpperCase())+"")&&se(o,l),(!me||Ke&8&&r!==(r="label txt-uppercase "+e[9][e[23].method.toLowerCase()]))&&m(s,"class",r),(!me||Ke&8)&&d!==(d=e[23].url+"")&&se(p,d),(!me||Ke&8&&h!==(h=e[23].url))&&m(f,"title",h),(He=e[23].meta)!=null&&He.errorMessage||(At=e[23].meta)!=null&&At.errorData?ze||(ze=df(),ze.c(),ze.m(u,null)):ze&&(ze.d(1),ze=null),(!me||Ke&8)&& $ !==( $ =(e[23].referer||"N/A")+"")&&se(C, $ ),(!me||Ke&8&&T!==(T=e[23].referer))&&m(k,"title",T),(!me||Ke&8)&&x(k,"txt-hint",!e[23].referer),(!me||Ke&8)&&A!==(A=(e[23].userIp||"N/A")+"")&&se(P,A),(!me||Ke&8&&N!==(N=e[23].userIp))&&m(E,"title",N),(!me||Ke&8)&&x(E,"txt-hint",!e[23].userIp),(!me||Ke&8)&&j!==(j=e[23].status+"")&&se(B,j),(!me||Ke&8)&&x(q,"label-danger",e[23].status>=400);const Se={};Ke&8&&(Se.date=e[23].created),Z. $ set(Se)},i(Xe){me||(I(Z. $ $ .fragment,Xe),me=!0)},o(Xe){L(Z. $ $ .fragment,Xe),me=!1},d(Xe){Xe&&w(t),ze&&ze.d(),z(Z),ye=!1,De(Me)}}}function Ok(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,v,k, $ ,C,T,M,O,E,A,P=[],N=new Map,F;function R(we){n[11](we)}let q={disable:!0,class:"col-field-method",name:"method", $ $ slots:{default:[yk]}, $ $ scope:{ctx:n}};n[1]!==void 0&&(q.sort=n[1]),s=new un({props:q}),ne.push(()=>de(s,"sort",R));function j(we){n[12](we)}let B={disable:!0,class:"col-type-text col-field-url",name:"url", $ $ slots:{default:[kk]}, $ $ scope:{ctx:n}};n[1]!==void 0&&(B.sort=n[1]),r=new un({props:B}),ne.push(()=>de(r,"sort",j));function Y(we){n[13](we)}let Q={disable:!0,class:"col-type-text col-field-referer",name:"referer", $ $ slots:{default:[wk]}, $ $ scope:{ctx:n}};n[1]!==void 0&&(Q.sort=n[1]),f=new un({props:Q}),ne.push(()=>de(f,"sort",Y));function Z(we){n[14](we)}let G={disable:!0,class:"col-type-number col-field-userIp",n
2023-05-17 21:41:42 +02:00
* Chart . js v3 . 9.1
* https : //www.chartjs.org
* ( c ) 2022 Chart . js Contributors
* Released under the MIT License
2023-05-24 22:18:44 +02:00
* / f u n c t i o n h i ( ) { } c o n s t I k = f u n c t i o n ( ) { l e t n = 0 ; r e t u r n f u n c t i o n ( ) { r e t u r n n + + } } ( ) ; f u n c t i o n d t ( n ) { r e t u r n n = = = n u l l | | t y p e o f n > " u " } f u n c t i o n C t ( n ) { i f ( A r r a y . i s A r r a y & & A r r a y . i s A r r a y ( n ) ) r e t u r n ! 0 ; c o n s t e = O b j e c t . p r o t o t y p e . t o S t r i n g . c a l l ( n ) ; r e t u r n e . s l i c e ( 0 , 7 ) = = = " [ o b j e c t " & & e . s l i c e ( - 6 ) = = = " A r r a y ] " } f u n c t i o n n t ( n ) { r e t u r n n ! = = n u l l & & O b j e c t . p r o t o t y p e . t o S t r i n g . c a l l ( n ) = = = " [ o b j e c t O b j e c t ] " } c o n s t B t = n = > ( t y p e o f n = = " n u m b e r " | | n i n s t a n c e o f N u m b e r ) & & i s F i n i t e ( + n ) ; f u n c t i o n j n ( n , e ) { r e t u r n B t ( n ) ? n : e } f u n c t i o n l t ( n , e ) { r e t u r n t y p e o f n > " u " ? e : n } c o n s t L k = ( n , e ) = > t y p e o f n = = " s t r i n g " & & n . e n d s W i t h ( " % " ) ? p a r s e F l o a t ( n ) / 1 0 0 : n / e , y b = ( n , e ) = > t y p e o f n = = " s t r i n g " & & n . e n d s W i t h ( " % " ) ? p a r s e F l o a t ( n ) / 1 0 0 * e : + n ; f u n c t i o n N t ( n , e , t ) { i f ( n & & t y p e o f n . c a l l = = " f u n c t i o n " ) r e t u r n n . a p p l y ( t , e ) } f u n c t i o n m t ( n , e , t , i ) { l e t s , l , o ; i f ( C t ( n ) ) i f ( l = n . l e n g t h , i ) f o r ( s = l - 1 ; s > = 0 ; s - - ) e . c a l l ( t , n [ s ] , s ) ; e l s e f o r ( s = 0 ; s < l ; s + + ) e . c a l l ( t , n [ s ] , s ) ; e l s e i f ( n t ( n ) ) f o r ( o = O b j e c t . k e y s ( n ) , l = o . l e n g t h , s = 0 ; s < l ; s + + ) e . c a l l ( t , n [ o [ s ] ] , o [ s ] ) } f u n c t i o n T o ( n , e ) { l e t t , i , s , l ; i f ( ! n | | ! e | | n . l e n g t h ! = = e . l e n g t h ) r e t u r n ! 1 ; f o r ( t = 0 , i = n . l e n g t h ; t < i ; + + t ) i f ( s = n [ t ] , l = e [ t ] , s . d a t a s e t I n d e x ! = = l . d a t a s e t I n d e x | | s . i n d e x ! = = l . i n d e x ) r e t u r n ! 1 ; r e t u r n ! 0 } f u n c t i o n C o ( n ) { i f ( C t ( n ) ) r e t u r n n . m a p ( C o ) ; i f ( n t ( n ) ) { c o n s t e = O b j e c t . c r e a t e ( n u l l ) , t = O b j e c t . k e y s ( n ) , i = t . l e n g t h ; l e t s = 0 ; f o r ( ; s < i ; + + s ) e [ t [ s ] ] = C o ( n [ t [ s ] ] ) ; r e t u r n e } r e t u r n n } f u n c t i o n k b ( n ) { r e t u r n [ " _ _ p r o t o _ _ " , " p r o t o t y p e " , " c o n s t r u c t o r " ] . i n d e x O f ( n ) = = = - 1 } f u n c t i o n P k ( n , e , t , i ) { i f ( ! k b ( n ) ) r e t u r n ; c o n s t s = e [ n ] , l = t [ n ] ; n t ( s ) & & n t ( l ) ? _ l ( s , l , i ) : e [ n ] = C o ( l ) } f u n c t i o n _ l ( n , e , t ) { c o n s t i = C t ( e ) ? e : [ e ] , s = i . l e n g t h ; i f ( ! n t ( n ) ) r e t u r n n ; t = t | | { } ; c o n s t l = t . m e r g e r | | P k ; f o r ( l e t o = 0 ; o < s ; + + o ) { i f ( e = i [ o ] , ! n t ( e ) ) c o n t i n u e ; c o n s t r = O b j e c t . k e y s ( e ) ; f o r ( l e t a = 0 , u = r . l e n g t h ; a < u ; + + a ) l ( r [ a ] , n , e , t ) } r e t u r n n } f u n c t i o n r l ( n , e ) { r e t u r n _ l ( n , e , { m e r g e r : N k } ) } f u n c t i o n N k ( n , e , t ) { i f ( ! k b ( n ) ) r e t u r n ; c o n s t i = e [ n ] , s = t [ n ] ; n t ( i ) & & n t ( s ) ? r l ( i , s ) : O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y . c a l l ( e , n ) | | ( e [ n ] = C o ( s ) ) } c o n s t _ f = { " " : n = > n , x : n = > n . x , y : n = > n . y } ; f u n c t i o n q i ( n , e ) { r e t u r n ( _ f [ e ] | | ( _ f [ e ] = F k ( e ) ) ) ( n ) } f u n c t i o n F k ( n ) { c o n s t e = R k ( n ) ; r e t u r n t = > { f o r ( c o n s t i o f e ) { i f ( i = = = " " ) b r e a k ; t = t & & t [ i ] } r e t u r n t } } f u n c t i o n R k ( n ) { c o n s t e = n . s p l i t ( " . " ) , t = [ ] ; l e t i = " " ; f o r ( c o n s t s o f e ) i + = s , i . e n d s W i t h ( " \ \ " ) ? i = i . s l i c e ( 0 , - 1 ) + " . " : ( t . p u s h ( i ) , i = " " ) ; r e t u r n t } f u n c t i o n z a ( n ) { r e t u r n n . c h a r A t ( 0 ) . t o U p p e r C a s e ( ) + n . s l i c e ( 1 ) } c o n s t Y n = n = > t y p e o f n < " u " , j i = n = > t y p e o f n = = " f u n c t i o n " , g f = ( n , e ) = > { i f ( n . s i z e ! = = e . s i z e ) r e t u r n ! 1 ; f o r ( c o n s t t o f n ) i f ( ! e . h a s ( t ) ) r e t u r n ! 1 ; r e t u r n ! 0 } ; f u n c t i o n q k ( n ) { r e t u r n n . t y p e = = = " m o u s e u p " | | n . t y p e = = = " c l i c k " | | n . t y p e = = = " c o n t e x t m e n u " } c o n s t q t = M a t h . P I , b t = 2 * q t , j k = b t + q t , M o = N u m b e r . P O S I T I V E _ I N F I N I T Y , V k = q t / 1 8 0 , F t = q t / 2 , J s = q t / 4 , b f = q t * 2 / 3 , U n = M a t h . l o g 1 0 , r i = M a t h . s i g n ; f u n c t i o n v f ( n ) { c o n s t e = M a t h . r o u n d ( n ) ; n = a l ( n , e , n / 1 e 3 ) ? e : n ; c o n s t t = M a t h . p o w ( 1 0 , M a t h . f l o o r ( U n ( n ) ) ) , i = n / t ; r e t u r n ( i < = 1 ? 1 : i < = 2 ? 2 : i < = 5 ? 5 : 1 0 ) * t } f u n c t i o n z k ( n ) { c o n s t e = [ ] , t = M a t h . s q r t ( n ) ; l e t i ; f o r ( i = 1 ; i < t ; i + + ) n % i = = = 0 & & ( e . p u s h ( i ) , e . p u s h ( n / i ) ) ; r e t u r n t = = = ( t | 0 ) & & e . p u s h ( t ) , e . s o r t ( ( s , l ) = > s - l ) . p o p ( ) , e } f u n c t i o n L s ( n ) { r e t u r n ! i s N a N ( p a r s e F l o a t ( n ) ) & & i s F i n i t e ( n ) } f u n c t i o n a l ( n , e , t ) { r e t u r n M a t h . a b s ( n - e ) < t } f u n c t i o n H k ( n , e ) { c o n s t t = M a t h . r o u n d ( n ) ; r e t u r n t - e < = n & & t + e > = n } f u n c t i o n w b ( n , e , t ) { l e t i , s , l ; f o r ( i = 0 , s = n . l e n g t h ; i < s ; i + + ) l = n [ i ] [ t ] , i s N a N ( l ) | | ( e . m i n = M a t h . m i n ( e . m i n , l ) , e . m a x = M a t h . m a x ( e . m a x , l ) ) } f u n c t i o n Q n ( n ) { r e t u r n n * ( q t / 1 8 0 ) } f u n c t i o n H a ( n ) { r e t u r n n * ( 1 8 0 / q t ) } f u n c t i o n y f ( n ) { i f ( ! B t ( n ) ) r e t u r n ; l e t e = 1 , t = 0 ; f o r ( ; M a t h . r o u n d ( n * e ) / e ! = = n ; ) e * = 1 0 , t + + ; r e t u r n t } f u n c t i o n S b ( n , e ) { c o n s t t = e . x - n . x , i = e . y - n . y , s = M a t h . s q r t ( t * t + i * i ) ; l e t l = M a t h . a t a n 2 ( i , t ) ; r e t u r n l < - . 5 * q t & & ( l + = b t ) , { a n g l e : l , d i s t a n c e : s } } f u n c t i o n o a ( n , e ) { r e t u r n M a t h . s q r t ( M a t h . p o w ( e . x - n . x , 2 ) + M a t h . p o w ( e . y - n . y , 2 ) ) } f u n c t i o n B k ( n , e ) { r e t u r n ( n - e + j k ) % b t - q t } f u n c t i o n E n ( n ) { r e t u r n ( n % b t + b t ) % b t } f u n c t i o n g l ( n , e , t , i ) { c o n s t s = E n ( n ) , l = E n ( e ) , o = E n ( t ) , r = E n ( l - s ) , a = E n ( o - s ) , u = E n ( s - l ) , f = E n ( s - o ) ; r e t u r n s = = = l | | s = = = o | | i & & l = = = o | | r > a & & u < f } f u n c t i o n f n ( n , e , t ) { r e t u r n M a t h . m a x ( e , M a t h . m i n ( t , n ) ) } f u n c t i o n U k ( n ) { r e t u r n f n ( n , - 3 2 7 6 8 , 3 2 7 6 7 ) } f u n c t i o n b l ( n , e , t , i = 1 e - 6 ) { r e t u r n n > = M a t h . m i n ( e , t ) - i & & n < = M a t h . m a x ( e , t ) + i } f u n c t i o n B a ( n , e , t ) { t = t | | ( o = > n [ o ] < e ) ; l e t i = n . l e n g t h - 1 , s = 0 , l ; f o r ( ; i - s > 1 ; ) l = s + i > > 1 , t ( l ) ? s = l : i = l ; r e t u r n { l o : s , h i : i } } c o n s t t s = ( n , e , t , i ) = > B a ( n , t , i ? s = > n [ s ] [ e ] < = t : s = > n [ s ] [ e ] < t ) , W k = ( n , e , t ) = > B a ( n , t , i = > n [ i ] [ e ] > = t ) ; f u n c t i o n Y k ( n , e ,
2023-05-17 21:41:42 +02:00
* @ kurkle / color v0 . 2.1
* https : //github.com/kurkle/color#readme
* ( c ) 2022 Jukka Kurkela
* Released under the MIT License
2023-05-24 22:18:44 +02:00
* / f u n c t i o n A l ( n ) { r e t u r n n + . 5 | 0 } c o n s t L i = ( n , e , t ) = > M a t h . m a x ( M a t h . m i n ( n , t ) , e ) ; f u n c t i o n i l ( n ) { r e t u r n L i ( A l ( n * 2 . 5 5 ) , 0 , 2 5 5 ) } f u n c t i o n R i ( n ) { r e t u r n L i ( A l ( n * 2 5 5 ) , 0 , 2 5 5 ) } f u n c t i o n b i ( n ) { r e t u r n L i ( A l ( n / 2 . 5 5 ) / 1 0 0 , 0 , 1 ) } f u n c t i o n T f ( n ) { r e t u r n L i ( A l ( n * 1 0 0 ) , 0 , 1 0 0 ) } c o n s t q n = { 0 : 0 , 1 : 1 , 2 : 2 , 3 : 3 , 4 : 4 , 5 : 5 , 6 : 6 , 7 : 7 , 8 : 8 , 9 : 9 , A : 1 0 , B : 1 1 , C : 1 2 , D : 1 3 , E : 1 4 , F : 1 5 , a : 1 0 , b : 1 1 , c : 1 2 , d : 1 3 , e : 1 4 , f : 1 5 } , r a = [ . . . " 0 1 2 3 4 5 6 7 8 9 A B C D E F " ] , G k = n = > r a [ n & 1 5 ] , X k = n = > r a [ ( n & 2 4 0 ) > > 4 ] + r a [ n & 1 5 ] , K l = n = > ( n & 2 4 0 ) > > 4 = = = ( n & 1 5 ) , Q k = n = > K l ( n . r ) & & K l ( n . g ) & & K l ( n . b ) & & K l ( n . a ) ; f u n c t i o n x k ( n ) { v a r e = n . l e n g t h , t ; r e t u r n n [ 0 ] = = = " # " & & ( e = = = 4 | | e = = = 5 ? t = { r : 2 5 5 & q n [ n [ 1 ] ] * 1 7 , g : 2 5 5 & q n [ n [ 2 ] ] * 1 7 , b : 2 5 5 & q n [ n [ 3 ] ] * 1 7 , a : e = = = 5 ? q n [ n [ 4 ] ] * 1 7 : 2 5 5 } : ( e = = = 7 | | e = = = 9 ) & & ( t = { r : q n [ n [ 1 ] ] < < 4 | q n [ n [ 2 ] ] , g : q n [ n [ 3 ] ] < < 4 | q n [ n [ 4 ] ] , b : q n [ n [ 5 ] ] < < 4 | q n [ n [ 6 ] ] , a : e = = = 9 ? q n [ n [ 7 ] ] < < 4 | q n [ n [ 8 ] ] : 2 5 5 } ) ) , t } c o n s t e 2 = ( n , e ) = > n < 2 5 5 ? e ( n ) : " " ; f u n c t i o n t 2 ( n ) { v a r e = Q k ( n ) ? G k : X k ; r e t u r n n ? " # " + e ( n . r ) + e ( n . g ) + e ( n . b ) + e 2 ( n . a , e ) : v o i d 0 } c o n s t n 2 = / ^ ( h s l a ? | h w b | h s v ) \ ( \ s * ( [ - + . e \ d ] + ) ( ? : d e g ) ? [ \ s , ] + ( [ - + . e \ d ] + ) % [ \ s , ] + ( [ - + . e \ d ] + ) % ( ? : [ \ s , ] + ( [ - + . e \ d ] + ) ( % ) ? ) ? \ s * \ ) $ / ; f u n c t i o n D b ( n , e , t ) { c o n s t i = e * M a t h . m i n ( t , 1 - t ) , s = ( l , o = ( l + n / 3 0 ) % 1 2 ) = > t - i * M a t h . m a x ( M a t h . m i n ( o - 3 , 9 - o , 1 ) , - 1 ) ; r e t u r n [ s ( 0 ) , s ( 8 ) , s ( 4 ) ] } f u n c t i o n i 2 ( n , e , t ) { c o n s t i = ( s , l = ( s + n / 6 0 ) % 6 ) = > t - t * e * M a t h . m a x ( M a t h . m i n ( l , 4 - l , 1 ) , 0 ) ; r e t u r n [ i ( 5 ) , i ( 3 ) , i ( 1 ) ] } f u n c t i o n s 2 ( n , e , t ) { c o n s t i = D b ( n , 1 , . 5 ) ; l e t s ; f o r ( e + t > 1 & & ( s = 1 / ( e + t ) , e * = s , t * = s ) , s = 0 ; s < 3 ; s + + ) i [ s ] * = 1 - e - t , i [ s ] + = e ; r e t u r n i } f u n c t i o n l 2 ( n , e , t , i , s ) { r e t u r n n = = = s ? ( e - t ) / i + ( e < t ? 6 : 0 ) : e = = = s ? ( t - n ) / i + 2 : ( n - e ) / i + 4 } f u n c t i o n U a ( n ) { c o n s t t = n . r / 2 5 5 , i = n . g / 2 5 5 , s = n . b / 2 5 5 , l = M a t h . m a x ( t , i , s ) , o = M a t h . m i n ( t , i , s ) , r = ( l + o ) / 2 ; l e t a , u , f ; r e t u r n l ! = = o & & ( f = l - o , u = r > . 5 ? f / ( 2 - l - o ) : f / ( l + o ) , a = l 2 ( t , i , s , f , l ) , a = a * 6 0 + . 5 ) , [ a | 0 , u | | 0 , r ] } f u n c t i o n W a ( n , e , t , i ) { r e t u r n ( A r r a y . i s A r r a y ( e ) ? n ( e [ 0 ] , e [ 1 ] , e [ 2 ] ) : n ( e , t , i ) ) . m a p ( R i ) } f u n c t i o n Y a ( n , e , t ) { r e t u r n W a ( D b , n , e , t ) } f u n c t i o n o 2 ( n , e , t ) { r e t u r n W a ( s 2 , n , e , t ) } f u n c t i o n r 2 ( n , e , t ) { r e t u r n W a ( i 2 , n , e , t ) } f u n c t i o n A b ( n ) { r e t u r n ( n % 3 6 0 + 3 6 0 ) % 3 6 0 } f u n c t i o n a 2 ( n ) { c o n s t e = n 2 . e x e c ( n ) ; l e t t = 2 5 5 , i ; i f ( ! e ) r e t u r n ; e [ 5 ] ! = = i & & ( t = e [ 6 ] ? i l ( + e [ 5 ] ) : R i ( + e [ 5 ] ) ) ; c o n s t s = A b ( + e [ 2 ] ) , l = + e [ 3 ] / 1 0 0 , o = + e [ 4 ] / 1 0 0 ; r e t u r n e [ 1 ] = = = " h w b " ? i = o 2 ( s , l , o ) : e [ 1 ] = = = " h s v " ? i = r 2 ( s , l , o ) : i = Y a ( s , l , o ) , { r : i [ 0 ] , g : i [ 1 ] , b : i [ 2 ] , a : t } } f u n c t i o n u 2 ( n , e ) { v a r t = U a ( n ) ; t [ 0 ] = A b ( t [ 0 ] + e ) , t = Y a ( t ) , n . r = t [ 0 ] , n . g = t [ 1 ] , n . b = t [ 2 ] } f u n c t i o n f 2 ( n ) { i f ( ! n ) r e t u r n ; c o n s t e = U a ( n ) , t = e [ 0 ] , i = T f ( e [ 1 ] ) , s = T f ( e [ 2 ] ) ; r e t u r n n . a < 2 5 5 ? ` h s l a ( $ { t } , $ { i } % , $ { s } % , $ { b i ( n . a ) } ) ` : ` h s l ( $ { t } , $ { i } % , $ { s } % ) ` } c o n s t C f = { x : " d a r k " , Z : " l i g h t " , Y : " r e " , X : " b l u " , W : " g r " , V : " m e d i u m " , U : " s l a t e " , A : " e e " , T : " o l " , S : " o r " , B : " r a " , C : " l a t e g " , D : " i g h t s " , R : " i n " , Q : " t u r q u o i s " , E : " h i " , P : " r o " , O : " a l " , N : " l e " , M : " d e " , L : " y e l l o " , F : " e n " , K : " c h " , G : " a r k s " , H : " e a " , I : " i g h t g " , J : " w h " } , M f = { O i c e X e : " f 0 f 8 f f " , a n t i q u e w E t e : " f a e b d 7 " , a q u a : " f f f f " , a q u a m a r R e : " 7 f f f d 4 " , a z u Y : " f 0 f f f f " , b e i g e : " f 5 f 5 d c " , b i s q u e : " f f e 4 c 4 " , b l a c k : " 0 " , b l a n K e d O m o n d : " f f e b c d " , X e : " f f " , X e v i T e t : " 8 a 2 b e 2 " , b P w n : " a 5 2 a 2 a " , b u r l y w o o d : " d e b 8 8 7 " , c a M t X e : " 5 f 9 e a 0 " , K a r t Y u s e : " 7 f f f 0 0 " , K o c T a t e : " d 2 6 9 1 e " , c S O : " f f 7 f 5 0 " , c S n f l o w e r X e : " 6 4 9 5 e d " , c S n s i l k : " f f f 8 d c " , c r i m s o n : " d c 1 4 3 c " , c y a n : " f f f f " , x X e : " 8 b " , x c y a n : " 8 b 8 b " , x g T M n P d : " b 8 8 6 0 b " , x W a y : " a 9 a 9 a 9 " , x g Y F : " 6 4 0 0 " , x g Y y : " a 9 a 9 a 9 " , x k h a k i : " b d b 7 6 b " , x m a g F t a : " 8 b 0 0 8 b " , x T i v e g Y F : " 5 5 6 b 2 f " , x S a n g e : " f f 8 c 0 0 " , x S c E d : " 9 9 3 2 c c " , x Y d : " 8 b 0 0 0 0 " , x s O m o n : " e 9 9 6 7 a " , x s H g Y F : " 8 f b c 8 f " , x U X e : " 4 8 3 d 8 b " , x U W a y : " 2 f 4 f 4 f " , x U g Y y : " 2 f 4 f 4 f " , x Q e : " c e d 1 " , x v i T e t : " 9 4 0 0 d 3 " , d A p p R k : " f f 1 4 9 3 " , d A p s k y X e : " b f f f " , d i m W a y : " 6 9 6 9 6 9 " , d i m g Y y : " 6 9 6 9 6 9 " , d o d g e r X e : " 1 e 9 0 f f " , f i Y b r i c k : " b 2 2 2 2 2 " , f l S O w E t e : " f f f a f 0 " , f o Y s t W A n : " 2 2 8 b 2 2 " , f u K s i a : " f f 0 0 f f " , g a R s b S o : " d c d c d c " , g h o s t w E t e : " f 8 f 8 f f " , g T d : " f f d 7 0 0 " , g T M n P d : " d a a 5 2 0 " , W a y : " 8 0 8 0 8 0 " , g Y F : " 8 0 0 0 " , g Y F L w : " a d f f 2 f " , g Y y : " 8 0 8 0 8 0 " , h o n e y M w : " f 0 f f f 0 " , h o t p R k : " f f 6 9 b 4 " , R d i a n Y d : " c d 5 c 5 c " , R d i g o : " 4 b 0 0 8 2 " , i v S y : " f f f f f 0 " , k h a k i : " f 0 e 6 8 c " , l a v F M r : " e 6 e 6 f a " , l a v F M r X s h : " f f f 0 f 5 " , l a w n g Y F : " 7 c f c 0 0 " , N m o n c E f f o n : " f f f a c d " , Z X e : " a d d 8 e 6 " , Z c S O : " f 0 8 0 8 0 " , Z c y a n : " e 0 f f f f " , Z g T M n P d L w : " f a f a d 2 " , Z W a y : " d 3 d 3 d 3 " , Z g Y F : " 9 0 e e 9 0 " , Z g Y y : " d 3 d 3 d 3 " , Z p R k : " f f b 6 c 1 " , Z s O m o n : " f f a 0 7 a " , Z s H g Y F : " 2 0 b 2 a a " , Z s k y X e : " 8 7 c e f a " , Z U W a y : " 7 7 8 8 9 9 " , Z U g Y y : " 7 7 8 8 9 9 " , Z s t A l X e : " b 0 c 4 d e " , Z L w : " f f f f e 0 " , l i m e : " f f 0 0 " , l i m e g Y F : " 3 2 c d 3 2 " , l R F : " f a f 0 e 6 " , m a g F t a : " f f 0 0 f f " , m a P o n : " 8 0 0 0 0 0 " , V a q u a m a r R e : " 6 6 c d a a " , V X e : " c d " , V S c E d : " b a 5 5 d 3 " , V p u r p N : " 9 3 7 0 d b " , V s H g Y F : " 3 c b 3 7 1 " , V U X e : " 7 b 6 8 e e " , V s p r R g g Y F : " f a 9 a " , V Q e : " 4 8 d 1 c c " , V v i T e t Y d : " c 7 1 5 8 5 " , m i d n i g h t X e : " 1 9 1 9 7 0 " , m R t c Y a m : " f 5 f f f a " , m i s t y P s e : "
2023-05-17 21:41:42 +02:00
* Chart . js v3 . 9.1
* https : //www.chartjs.org
* ( c ) 2022 Chart . js Contributors
* Released under the MIT License
2023-05-24 22:18:44 +02:00
* /class pw{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,i,s){const l=t.listeners[s],o=t.duration;l.forEach(r=>r({chart:e,initial:t.initial,numSteps:o,currentStep:Math.min(i-t.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=Cb.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let t=0;this._charts.forEach((i,s)=>{if(!i.running||!i.items.length)return;const l=i.items;let o=l.length-1,r=!1,a;for(;o>=0;--o)a=l[o],a._active?(a._total>i.duration&&(i.duration=a._total),a.tick(e),r=!0):(l[o]=l[l.length-1],l.pop());r&&(s.draw(),this._notify(s,i,e,"progress")),l.length||(i.running=!1,this._notify(s,i,e,"complete"),i.initial=!1),t+=l.length}),this._lastDate=e,t===0&&(this._running=!1)}_getAnims(e){const t=this._charts;let i=t.get(e);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,i)),i}listen(e,t,i){this._getAnims(e).listeners[t].push(i)}add(e,t){!t||!t.length||this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((i,s)=>Math.max(i,s._duration),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!(!t||!t.running||!t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const i=t.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var _i=new pw;const jf="transparent",mw={boolean(n,e,t){return t>.5?e:n},color(n,e,t){const i=Ef(n||jf),s=i.valid&&Ef(e||jf);return s&&s.valid?s.mix(i,t).hexString():e},number(n,e,t){return n+(e-n)*t}};class hw{constructor(e,t,i,s){const l=t[i];s=Gl([e.to,s,l,e.from]);const o=Gl([e.from,l,s]);this._active=!0,this._fn=e.fn||mw[e.type||typeof o],this._easing=ul[e.easing]||ul.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=i,this._from=o,this._to=s,this._promises=void 0}active(){return this._active}update(e,t,i){if(this._active){this._notify(!1);const s=this._target[this._prop],l=i-this._start,o=this._duration-l;this._start=i,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=l,this._loop=!!e.loop,this._to=Gl([e.to,t,s,e.from]),this._from=Gl([e.from,s,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,i=this._duration,s=this._prop,l=this._from,o=this._loop,r=this._to;let a;if(this._active=l!==r&&(o||t<i),!this._active){this._target[s]=r,this._notify(!0);return}if(t<0){this._target[s]=l;return}a=t/i % 2 , a = o && a > 1 ? 2 - a : a , a = this . _easing ( Math . min ( 1 , Math . max ( 0 , a ) ) ) , this . _target [ s ] = this . _fn ( l , r , a ) } wait ( ) { const e = this . _promises || ( this . _promises = [ ] ) ; return new Promise ( ( t , i ) => { e . push ( { res : t , rej : i } ) } ) } _notify ( e ) { const t = e ? "res" : "rej" , i = this . _promises || [ ] ; for ( let s = 0 ; s < i . length ; s ++ ) i [ s ] [ t ] ( ) } } const _w = [ "x" , "y" , "borderWidth" , "radius" , "tension" ] , gw = [ "color" , "borderColor" , "backgroundColor" ] ; ot . set ( "animation" , { delay : void 0 , duration : 1e3 , easing : "easeOutQuart" , fn : void 0 , from : void 0 , loop : void 0 , to : void 0 , type : void 0 } ) ; const bw = Object . keys ( ot . animation ) ; ot . describe ( "animation" , { _fallback : ! 1 , _indexable : ! 1 , _scriptable : n => n !== "onProgress" && n !== "onComplete" && n !== "fn" } ) ; ot . set ( "animations" , { colors : { type : "color" , properties : gw } , numbers : { type : "number" , properties : _w } } ) ; ot . describe ( "animations" , { _fallback : "animation" } ) ; ot . set ( "transitions" , { active : { animation : { duration : 400 } } , resize : { animation : { duration : 0 } } , show : { animations : { colors : { from : "transparent" } , visible : { type : "boolean" , duration : 0 } } } , hide : { animations : { colors : { to : "transparent" } , visible : { type : "boolean" , easing : "linear" , fn : n => n | 0 } } } } ) ; class Yb { constructor ( e , t ) { this . _chart = e , this . _properties = new Map , this . configure ( t ) } configure ( e ) { if ( ! nt ( e ) ) return ; const t = this . _properties ; Object . getOwnPropertyNames ( e ) . forEach ( i => { const s = e [ i ] ; if ( ! nt ( s ) ) return ; const l = { } ; for ( con
2023-05-17 21:41:42 +02:00
` )>-1?n.split( `
2023-05-24 22:18:44 +02:00
` ):n}function PS(n,e){const{element:t,datasetIndex:i,index:s}=e,l=n.getDatasetMeta(i).controller,{label:o,value:r}=l.getLabelAndValue(s);return{chart:n,label:o,parsed:l.getParsed(s),raw:n.data.datasets[i].data[s],formattedValue:r,dataset:l.getDataset(),dataIndex:s,datasetIndex:i,element:t}}function _c(n,e){const t=n.chart.ctx,{body:i,footer:s,title:l}=n,{boxWidth:o,boxHeight:r}=e,a=Dn(e.bodyFont),u=Dn(e.titleFont),f=Dn(e.footerFont),d=l.length,p=s.length,h=i.length,g=Kn(e.padding);let _=g.height,v=0,k=i.reduce((T,M)=>T+M.before.length+M.lines.length+M.after.length,0);if(k+=n.beforeBody.length+n.afterBody.length,d&&(_+=d*u.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),k){const T=e.displayColors?Math.max(r,a.lineHeight):a.lineHeight;_+=h*T+(k-h)*a.lineHeight+(k-1)*e.bodySpacing}p&&(_+=e.footerMarginTop+p*f.lineHeight+(p-1)*e.footerSpacing);let $ =0;const C=function(T){v=Math.max(v,t.measureText(T).width+ $ )};return t.save(),t.font=u.string,mt(n.title,C),t.font=a.string,mt(n.beforeBody.concat(n.afterBody),C), $ =e.displayColors?o+2+e.boxPadding:0,mt(i,T=>{mt(T.before,C),mt(T.lines,C),mt(T.after,C)}), $ =0,t.font=f.string,mt(n.footer,C),t.restore(),v+=g.width,{width:v,height:_}}function NS(n,e){const{y:t,height:i}=e;return t<i/2?"top":t>n.height-i/2?"bottom":"center"}function FS(n,e,t,i){const{x:s,width:l}=i,o=t.caretSize+t.caretPadding;if(n==="left"&&s+l+o>e.width||n==="right"&&s-l-o<0)return!0}function RS(n,e,t,i){const{x:s,width:l}=t,{width:o,chartArea:{left:r,right:a}}=n;let u="center";return i==="center"?u=s<=(r+a)/2?"left":"right":s<=l/2?u="left":s>=o-l/2&&(u="right"),FS(u,n,e,t)&&(u="center"),u}function gc(n,e,t){const i=t.yAlign||e.yAlign||NS(n,t);return{xAlign:t.xAlign||e.xAlign||RS(n,e,t,i),yAlign:i}}function qS(n,e){let{x:t,width:i}=n;return e==="right"?t-=i:e==="center"&&(t-=i/2),t}function jS(n,e,t){let{y:i,height:s}=n;return e==="top"?i+=t:e==="bottom"?i-=s+t:i-=s/2,i}function bc(n,e,t,i){const{caretSize:s,caretPadding:l,cornerRadius:o}=n,{xAlign:r,yAlign:a}=t,u=s+l,{topLeft:f,topRight:d,bottomLeft:p,bottomRight:h}=Cs(o);let g=qS(e,r);const _=jS(e,a,u);return a==="center"?r==="left"?g+=u:r==="right"&&(g-=u):r==="left"?g-=Math.max(f,p)+s:r==="right"&&(g+=Math.max(d,h)+s),{x:fn(g,0,i.width-e.width),y:fn(_,0,i.height-e.height)}}function io(n,e,t){const i=Kn(t.padding);return e==="center"?n.x+n.width/2:e==="right"?n.x+n.width-i.right:n.x+i.left}function vc(n){return si([],gi(n))}function VS(n,e,t){return zi(n,{tooltip:e,tooltipItems:t,type:"tooltip"})}function yc(n,e){const t=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return t?n.override(t):n}class _a extends Ci{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this. $ animations=void 0,this. $ context=void 0,this.chart=e.chart||e._chart,this._chart=this.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this. $ context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&t.options.animation&&i.animations,l=new Yb(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(l)),l}getContext(){return this. $ context||(this. $ context=VS(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,t){const{callbacks:i}=t,s=i.beforeTitle.apply(this,[e]),l=i.title.apply(this,[e]),o=i.afterTitle.apply(this,[e]);let r=[];return r=si(r,gi(s)),r=si(r,gi(l)),r=si(r,gi(o)),r}getBeforeBody(e,t){return vc(t.callbacks.beforeBody.apply(this,[e]))}getBody(e,t){const{callbacks:i}=t,s=[];return mt(e,l=>{const o={before:[],lines:[],after:[]},r=yc(i,l);si(o.before,gi(r.beforeLabel.call(this,l))
2023-05-17 21:41:42 +02:00
* chartjs - adapter - luxon v1 . 3.1
* https : //www.chartjs.org
* ( c ) 2023 chartjs - adapter - luxon Contributors
* Released under the MIT license
2023-05-24 22:18:44 +02:00
* / c o n s t r $ = { d a t e t i m e : W e . D A T E T I M E _ M E D _ W I T H _ S E C O N D S , m i l l i s e c o n d : " h : m m : s s . S S S a " , s e c o n d : W e . T I M E _ W I T H _ S E C O N D S , m i n u t e : W e . T I M E _ S I M P L E , h o u r : { h o u r : " n u m e r i c " } , d a y : { d a y : " n u m e r i c " , m o n t h : " s h o r t " } , w e e k : " D D " , m o n t h : { m o n t h : " s h o r t " , y e a r : " n u m e r i c " } , q u a r t e r : " ' Q ' q - y y y y " , y e a r : { y e a r : " n u m e r i c " } } ; X b . _ d a t e . o v e r r i d e ( { _ i d : " l u x o n " , _ c r e a t e : f u n c t i o n ( n ) { r e t u r n W e . f r o m M i l l i s ( n , t h i s . o p t i o n s ) } , i n i t ( n ) { t h i s . o p t i o n s . l o c a l e | | ( t h i s . o p t i o n s . l o c a l e = n . l o c a l e ) } , f o r m a t s : f u n c t i o n ( ) { r e t u r n r $ } , p a r s e : f u n c t i o n ( n , e ) { c o n s t t = t h i s . o p t i o n s , i = t y p e o f n ; r e t u r n n = = = n u l l | | i = = = " u n d e f i n e d " ? n u l l : ( i = = = " n u m b e r " ? n = t h i s . _ c r e a t e ( n ) : i = = = " s t r i n g " ? t y p e o f e = = " s t r i n g " ? n = W e . f r o m F o r m a t ( n , e , t ) : n = W e . f r o m I S O ( n , t ) : n i n s t a n c e o f D a t e ? n = W e . f r o m J S D a t e ( n , t ) : i = = = " o b j e c t " & & ! ( n i n s t a n c e o f W e ) & & ( n = W e . f r o m O b j e c t ( n , t ) ) , n . i s V a l i d ? n . v a l u e O f ( ) : n u l l ) } , f o r m a t : f u n c t i o n ( n , e ) { c o n s t t = t h i s . _ c r e a t e ( n ) ; r e t u r n t y p e o f e = = " s t r i n g " ? t . t o F o r m a t ( e ) : t . t o L o c a l e S t r i n g ( e ) } , a d d : f u n c t i o n ( n , e , t ) { c o n s t i = { } ; r e t u r n i [ t ] = e , t h i s . _ c r e a t e ( n ) . p l u s ( i ) . v a l u e O f ( ) } , d i f f : f u n c t i o n ( n , e , t ) { r e t u r n t h i s . _ c r e a t e ( n ) . d i f f ( t h i s . _ c r e a t e ( e ) ) . a s ( t ) . v a l u e O f ( ) } , s t a r t O f : f u n c t i o n ( n , e , t ) { i f ( e = = = " i s o W e e k " ) { t = M a t h . t r u n c ( M a t h . m i n ( M a t h . m a x ( 0 , t ) , 6 ) ) ; c o n s t i = t h i s . _ c r e a t e ( n ) ; r e t u r n i . m i n u s ( { d a y s : ( i . w e e k d a y - t + 7 ) % 7 } ) . s t a r t O f ( " d a y " ) . v a l u e O f ( ) } r e t u r n e ? t h i s . _ c r e a t e ( n ) . s t a r t O f ( e ) . v a l u e O f ( ) : n } , e n d O f : f u n c t i o n ( n , e ) { r e t u r n t h i s . _ c r e a t e ( n ) . e n d O f ( e ) . v a l u e O f ( ) } } ) ; f u n c t i o n O c ( n ) { l e t e , t , i ; r e t u r n { c ( ) { e = y ( " d i v " ) , m ( e , " c l a s s " , " c h a r t - l o a d e r l o a d e r s v e l t e - v h 4 s l 8 " ) } , m ( s , l ) { S ( s , e , l ) , i = ! 0 } , i ( s ) { i | | ( s & & x e ( ( ) = > { i & & ( t | | ( t = V e ( e , J t , { d u r a t i o n : 1 5 0 } , ! 0 ) ) , t . r u n ( 1 ) ) } ) , i = ! 0 ) } , o ( s ) { s & & ( t | | ( t = V e ( e , J t , { d u r a t i o n : 1 5 0 } , ! 1 ) ) , t . r u n ( 0 ) ) , i = ! 1 } , d ( s ) { s & & w ( e ) , s & & t & & t . e n d ( ) } } } f u n c t i o n a $ ( n ) { l e t e , t , i = n [ 1 ] = = = 1 ? " l o g " : " l o g s " , s ; r e t u r n { c ( ) { e = W ( n [ 1 ] ) , t = D ( ) , s = W ( i ) } , m ( l , o ) { S ( l , e , o ) , S ( l , t , o ) , S ( l , s , o ) } , p ( l , o ) { o & 2 & & s e ( e , l [ 1 ] ) , o & 2 & & i ! = = ( i = l [ 1 ] = = = 1 ? " l o g " : " l o g s " ) & & s e ( s , i ) } , d ( l ) { l & & w ( e ) , l & & w ( t ) , l & & w ( s ) } } } f u n c t i o n u $ ( n ) { l e t e ; r e t u r n { c ( ) { e = W ( " L o a d i n g . . . " ) } , m ( t , i ) { S ( t , e , i ) } , p : t e , d ( t ) { t & & w ( e ) } } } f u n c t i o n f $ ( n ) { l e t e , t , i , s , l , o = n [ 2 ] & & O c ( ) ; f u n c t i o n r ( f , d ) { r e t u r n f [ 2 ] ? u $ : a $ } l e t a = r ( n ) , u = a ( n ) ; r e t u r n { c ( ) { e = y ( " d i v " ) , o & & o . c ( ) , t = D ( ) , i = y ( " c a n v a s " ) , s = D ( ) , l = y ( " d i v " ) , u . c ( ) , m ( i , " c l a s s " , " c h a r t - c a n v a s s v e l t e - v h 4 s l 8 " ) , H r ( i , " h e i g h t " , " 2 5 0 p x " ) , H r ( i , " w i d t h " , " 1 0 0 % " ) , m ( e , " c l a s s " , " c h a r t - w r a p p e r s v e l t e - v h 4 s l 8 " ) , x ( e , " l o a d i n g " , n [ 2 ] ) , m ( l , " c l a s s " , " t x t - h i n t m - t - x s t x t - r i g h t " ) } , m ( f , d ) { S ( f , e , d ) , o & & o . m ( e , n u l l ) , b ( e , t ) , b ( e , i ) , n [ 8 ] ( i ) , S ( f , s , d ) , S ( f , l , d ) , u . m ( l , n u l l ) } , p ( f , [ d ] ) { f [ 2 ] ? o ? d & 4 & & I ( o , 1 ) : ( o = O c ( ) , o . c ( ) , I ( o , 1 ) , o . m ( e , t ) ) : o & & ( a e ( ) , L ( o , 1 , 1 , ( ) = > { o = n u l l } ) , u e ( ) ) , d & 4 & & x ( e , " l o a d i n g " , f [ 2 ] ) , a = = = ( a = r ( f ) ) & & u ? u . p ( f , d ) : ( u . d ( 1 ) , u = a ( f ) , u & & ( u . c ( ) , u . m ( l , n u l l ) ) ) } , i ( f ) { I ( o ) } , o ( f ) { L ( o ) } , d ( f ) { f & & w ( e ) , o & & o . d ( ) , n [ 8 ] ( n u l l ) , f & & w ( s ) , f & & w ( l ) , u . d ( ) } } } f u n c t i o n c $ ( n , e , t ) { l e t { f i l t e r : i = " " } = e , { p r e s e t s : s = " " } = e , l , o , r = [ ] , a = 0 , u = ! 1 ; a s y n c f u n c t i o n f ( ) { r e t u r n t ( 2 , u = ! 0 ) , c e . l o g s . g e t R e q u e s t s S t a t s ( { f i l t e r : [ s , i ] . f i l t e r ( B o o l e a n ) . j o i n ( " & & " ) } ) . t h e n ( h = > { d ( ) ; f o r ( l e t g o f h ) r . p u s h ( { x : n e w D a t e ( g . d a t e ) , y : g . t o t a l } ) , t ( 1 , a + = g . t o t a l ) ; r . p u s h ( { x : n e w D a t e , y : v o i d 0 } ) } ) . c a t c h ( h = > { h ! = n u l l & & h . i s A b o r t | | ( d ( ) , c o n s o l e . w a r n ( h ) , c e . e r r o r ( h , ! 1 ) ) } ) . f i n a l l y ( ( ) = > { t ( 2 , u = ! 1 ) } ) } f u n c t i o n d ( ) { t ( 1 , a = 0 ) , t ( 7 , r = [ ] ) } X t ( ( ) = > ( N o . r e g i s t e r ( H i , e r , Q o , a u , N l , L S , z S ) , t ( 6 , o = n e w N o ( l , { t y p e : " l i n e " , d a t a : { d a t a s e t s : [ { l a b e l : " T o t a l r e q u e s t s " , d a t a : r , b o r d e r C o l o r : " # e f 4 5 6 5 " , p o i n t B a c k g r o u n d C o l o r : " # e f 4 5 6 5 " , b a c k g r o u n d C o l o r : " r g b ( 2 3 9 , 6 9 , 1 0 1 , 0 . 0 5 ) " , b o r d e r W i d t h : 2 , p o i n t R a d i u s : 1 , p o i n t B o r d e r W i d t h : 0 , f i l l : ! 0 } ] } , o p t i o n s : { a n i m a t i o n : ! 1 , i n t e r a c t i o n : { i n t e r s e c t : ! 1 , m o d e : " i n d e x " } , s c a l e s : { y : { b e g i n A t Z e r o : ! 0 , g r i d : { c o l o r : " # e d f 0 f 3 " , b o r d e r C o l o r : " # d e e 3 e 8 " } , t i c k s : { p r e c i s i o n : 0 , m a x T i c k s L i m i t : 6 , a u t o S k i p : ! 0 , c o l o r : " # 6 6 6 f 7 5 " } } , x : { t y p e : " t i m e " , t i m e : { u n i t : " h o u r " , t o o l t i p F o r m a t : " D D h a " } , g r i d : { b o r d e r C o l o r : " # d e e 3 e 8 " , c o l o r : h = > h . t i c k . m a j o r ? " # e d f 0 f 3 " : " " } , t i c k s : { m a x T i c k s L i m i t : 1 5 , a u t o S k i p : ! 0 , m a x R o t a t i o n : 0 , m a j o r : { e n a b l e d : ! 0 } , c o l o r : h = > h . t i c k . m a j o r ? " # 1 6 1 6 1 a " : " # 6 6 6 f 7 5 " } } } , p l u g i n s : { l e g e n d : { d i s p l a y : ! 1 } } } } ) ) , ( ) = > o = = n u l l ? v o i d 0 : o . d e s t r o y ( ) ) ) ; f u n c t i o n p ( h ) { n e [ h ? " u n s h i f t " : " p u s h " ] ( ( ) = > { l = h , t ( 0 , l ) } ) } r e t u r n n . $ $ s e t = h = > { " f i l t e r " i n h & & t ( 3 , i = h . f i l t e r ) , " p r e s e t s " i n h & & t ( 4 , s = h . p r e s e t s ) } , n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 2 4 & & ( t y p e o f i < " u " | | t y p e o f s < " u " ) & & f ( ) , n . $ $ . d i r t y & 1 9 2 & & t y p e o f r < " u " & & o & & ( t ( 6 , o . d a t a . d a t a s e t s [ 0 ] . d a t a = r , o ) , o . u p d a t e ( )
2023-05-17 21:41:42 +02:00
* Prism : Lightweight , robust , elegant syntax highlighting
*
* @ license MIT < https : //opensource.org/licenses/MIT>
* @ author Lea Verou < https : //lea.verou.me>
* @ namespace
* @ public
2023-05-24 22:18:44 +02:00
* /var t=function(i){var s=/ ( ? : ^ | \ s ) lang ( ? : uage ) ? - ( [ \ w - ] + ) ( ? = \ s | $ ) / i , l = 0 , o = { } , r = { manual : i . Prism && i . Prism . manual , disableWorkerMessageHandler : i . Prism && i . Prism . disableWorkerMessageHandler , util : { encode : function $ ( C ) { return C instanceof a ? new a ( C . type , $ ( C . content ) , C . alias ) : Array . isArray ( C ) ? C . map ( $ ) : C . replace ( /&/g , "&" ) . replace ( /</g , "<" ) . replace ( /\u00a0/g , " " ) } , type : function ( $ ) { return Object . prototype . toString . call ( $ ) . slice ( 8 , - 1 ) } , objId : function ( $ ) { return $ . _ _id || Object . defineProperty ( $ , "__id" , { value : ++ l } ) , $ . _ _id } , clone : function $ ( C , T ) { T = T || { } ; var M , O ; switch ( r . util . type ( C ) ) { case "Object" : if ( O = r . util . objId ( C ) , T [ O ] ) return T [ O ] ; M = { } , T [ O ] = M ; for ( var E in C ) C . hasOwnProperty ( E ) && ( M [ E ] = $ ( C [ E ] , T ) ) ; return M ; case "Array" : return O = r . util . objId ( C ) , T [ O ] ? T [ O ] : ( M = [ ] , T [ O ] = M , C . forEach ( function ( A , P ) { M [ P ] = $ ( A , T ) } ) , M ) ; default : return C } } , getLanguage : function ( $ ) { for ( ; $ ; ) { var C = s . exec ( $ . className ) ; if ( C ) return C [ 1 ] . toLowerCase ( ) ; $ = $ . parentElement } return "none" } , setLanguage : function ( $ , C ) { $ . className = $ . className . replace ( RegExp ( s , "gi" ) , "" ) , $ . classList . add ( "language-" + C ) } , currentScript : function ( ) { if ( typeof document > "u" ) return null ; if ( "currentScript" in document && 1 < 2 ) return document . currentScript ; try { throw new Error } catch ( M ) { var $ = ( /at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i . exec ( M . stack ) || [ ] ) [ 1 ] ; if ( $ ) { var C = document . getElementsByTagName ( "script" ) ; for ( var T in C ) if ( C [ T ] . src == $ ) return C [ T ] } return null } } , isActive : function ( $ , C , T ) { for ( var M = "no-" + C ; $ ; ) { var O = $ . classList ; if ( O . contains ( C ) ) return ! 0 ; if ( O . contains ( M ) ) return ! 1 ; $ = $ . parentElement } return ! ! T } } , languages : { plain : o , plaintext : o , text : o , txt : o , extend : function ( $ , C ) { var T = r . util . clone ( r . languages [ $ ] ) ; for ( var M in C ) T [ M ] = C [ M ] ; return T } , insertBefore : function ( $ , C , T , M ) { M = M || r . languages ; var O = M [ $ ] , E = { } ; for ( var A in O ) if ( O . hasOwnProperty ( A ) ) { if ( A == C ) for ( var P in T ) T . hasOwnProperty ( P ) && ( E [ P ] = T [ P ] ) ; T . hasOwnProperty ( A ) || ( E [ A ] = O [ A ] ) } var N = M [ $ ] ; return M [ $ ] = E , r . languages . DFS ( r . languages , function ( F , R ) { R === N && F != $ && ( this [ F ] = E ) } ) , E } , DFS : function $ ( C , T , M , O ) { O = O || { } ; var E = r . util . objId ; for ( var A in C ) if ( C . hasOwnProperty ( A ) ) { T . call ( C , A , C [ A ] , M || A ) ; var P = C [ A ] , N = r . util . type ( P ) ; N === "Object" && ! O [ E ( P ) ] ? ( O [ E ( P ) ] = ! 0 , $ ( P , T , null , O ) ) : N === "Array" && ! O [ E ( P ) ] && ( O [ E ( P ) ] = ! 0 , $ ( P , T , A , O ) ) } } } , plugins : { } , highlightAll : function ( $ , C ) { r . highlightAllUnder ( document , $ , C ) } , highlightAllUnder : function ( $ , C , T ) { var M = { callback : T , container : $ , selector : 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code' } ; r . hooks . run ( "before-highlightall" , M ) , M . elements = Array . prototype . slice . apply ( M . container . querySelectorAll ( M . selector ) ) , r . hooks . run ( "before-all-elements-highlight" , M ) ; for ( var O = 0 , E ; E = M . elements [ O ++ ] ; ) r . highlightElement ( E , C === ! 0 , M . callback ) } , highlightElement : function ( $ , C , T ) { var M = r . util . getLanguage ( $ ) , O = r . languages [ M ] ; r . util . setLanguage ( $ , M ) ; var E = $ . parentElement ; E && E . nodeName . toLowerCase ( ) === "pre" && r . util . setLanguage ( E , M ) ; var A = $ . textContent , P = { element : $ , language : M , grammar : O , code : A } ; function N ( R ) { P . highlightedCode = R , r . hooks . run ( "before-insert" , P ) , P . element . innerHTML = P . highlightedCode , r . hooks . run ( "after-highlight" , P ) , r . hooks . run ( "complete" , P ) , T && T . call ( P . element ) } if ( r . hooks . run ( "before-sanity-check" , P ) , E = P . element . parentElement , E && E . nodeName . toLowerCase ( ) === "pre" && ! E . hasAttribute ( "tabindex" ) && E . setAttribute ( "tabindex" , "0" ) , ! P . code ) { r . hooks . run ( "complete" , P ) , T && T . call ( P . element ) ; return } if ( r . hooks . run ( "before-highlight" , P ) , ! P . grammar ) { N ( r . util . encode ( P . code ) ) ; return } if ( C && i . Worker ) { var F = new Worker ( r . filename ) ; F . onmessage = function ( R ) { N ( R . data ) } , F . postMessage ( JSON . stringify ( { language : P . language , code : P . code , immediateClose : ! 0 } ) ) } else N ( r . highlight ( P . code , P . grammar , P . language ) ) } , highlight : function ( $ , C , T ) { var M = { code : $ , grammar : C , language : T } ; if ( r . hooks . run ( "before-tokenize" , M ) , ! M . grammar ) throw new Error ( 'The language "' + M . language + '" has no grammar.' ) ; return M . tokens = r . tokenize ( M . code , M . grammar ) , r . hooks . run ( "after-tokenize" , M ) , a . stringify ( r . util . encode ( M . tokens ) , M . language ) } , tokenize : function ( $ , C ) { var T = C . rest ; if ( T ) { for ( var M in T ) C [ M ] = T [ M ] ; delete C . rest } var O = new d ; return p ( O , O . head , $ ) , f ( $ , O , C , O . head , 0 ) , g ( O ) } , hooks : { all : { } , add : function
` ),v.hasAttribute("data-start")||v.setAttribute("data-start",String(P+1))}k.textContent=O,t.highlightElement(k)},function(O){v.setAttribute(r,f),k.textContent=O})}}),t.plugins.fileHighlight={highlight:function(v){for(var k=(v||document).querySelectorAll(d), $ =0,C;C=k[ $ ++];)t.highlightElement(C)}};var g=!1;t.fileHighlight=function(){g||(console.warn("Prism.fileHighlight is deprecated. Use ` Prism . plugins . fileHighlight . highlight ` instead."),g=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(g1);var m $ =g1.exports;const el=p $ (m $ );var h $ ={exports:{}};(function(n){(function(){if(typeof Prism>"u")return;var e=Object.assign||function(o,r){for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);return o};function t(o){this.defaults=e({},o)}function i(o){return o.replace(/-( \w )/g,function(r,a){return a.toUpperCase()})}function s(o){for(var r=0,a=0;a<o.length;++a)o.charCodeAt(a)==" ".charCodeAt(0)&&(r+=3);return o.length+r}var l={"remove-trailing":"boolean","remove-indent":"boolean","left-trim":"boolean","right-trim":"boolean","break-lines":"number",indent:"number","remove-initial-line-feed":"boolean","tabs-to-spaces":"number","spaces-to-tabs":"number"};t.prototype={setDefaults:function(o){this.defaults=e(this.defaults,o)},normalize:function(o,r){r=e(this.defaults,r);for(var a in r){var u=i(a);a!=="normalize"&&u!=="setDefaults"&&r[a]&&this[u]&&(o=this[u].call(this,o,r[a]))}return o},leftTrim:function(o){return o.replace(/^ \s +/,"")},rightTrim:function(o){return o.replace(/ \s + $ /,"")},tabsToSpaces:function(o,r){return r=r|0||4,o.replace(/ \t /g,new Array(++r).join(" "))},spacesToTabs:function(o,r){return r=r|0||4,o.replace(RegExp(" {"+r+"}","g")," ")},removeTrailing:function(o){return o.replace(/ \s *? $ /gm,"")},removeInitialLineFeed:function(o){return o.replace(/^(?: \r ? \n | \r )/,"")},removeIndent:function(o){var r=o.match(/^[^ \S \n \r ]*(?= \S )/gm);return!r||!r[0].length||(r.sort(function(a,u){return a.length-u.length}),!r[0].length)?o:o.replace(RegExp("^"+r[0],"gm"),"")},indent:function(o,r){return o.replace(/^[^ \S \n \r ]*(?= \S )/gm,new Array(++r).join(" ")+" $ &")},breakLines:function(o,r){r=r===!0?80:r|0||80;for(var a=o.split( `
2023-05-17 21:41:42 +02:00
` ),u=0;u<a.length;++u)if(!(s(a[u])<=r)){for(var f=a[u].split(/( \s +)/g),d=0,p=0;p<f.length;++p){var h=s(f[p]);d+=h,d>r&&(f[p]= `
` +f[p],d=h)}a[u]=f.join("")}return a.join( `
2023-05-24 22:18:44 +02:00
` )}},n.exports&&(n.exports=t),Prism.plugins.NormalizeWhitespace=new t({"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0}),Prism.hooks.add("before-sanity-check",function(o){var r=Prism.plugins.NormalizeWhitespace;if(!(o.settings&&o.settings["whitespace-normalization"]===!1)&&Prism.util.isActive(o.element,"whitespace-normalization",!0)){if((!o.element||!o.element.parentNode)&&o.code){o.code=r.normalize(o.code,o.settings);return}var a=o.element.parentNode;if(!(!o.code||!a||a.nodeName.toLowerCase()!=="pre")){o.settings==null&&(o.settings={});for(var u in l)if(Object.hasOwnProperty.call(l,u)){var f=l[u];if(a.hasAttribute("data-"+u))try{var d=JSON.parse(a.getAttribute("data-"+u)||"true");typeof d===f&&(o.settings[u]=d)}catch{}}for(var p=a.childNodes,h="",g="",_=!1,v=0;v<p.length;++v){var k=p[v];k==o.element?_=!0:k.nodeName==="#text"&&(_?g+=k.nodeValue:h+=k.nodeValue,a.removeChild(k),--v)}if(!o.element.children.length||!Prism.plugins.KeepMarkup)o.code=h+o.code+g,o.code=r.normalize(o.code,o.settings);else{var $ =h+o.element.innerHTML+g;o.element.innerHTML=r.normalize( $ ,o.settings),o.code=o.element.textContent}}}})})()})(h $ );(function(n){var e=[/ \b (?:async|sync|yield) \* /,/ \b (?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield) \b /],t=/(^|[^ \w .])(?:[a-z] \w * \s * \. \s *)*(?:[A-Z] \w * \s * \. \s *)*/.source,i={pattern:RegExp(t+/[A-Z](?:[ \d _A-Z]*[a-z] \w *)? \b /.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z] \w *(?: \s * \. \s *[a-z] \w *)*(?: \s * \. )?/,inside:{punctuation:/ \. /}}}};n.languages.dart=n.languages.extend("clike",{"class-name":[i,{pattern:RegExp(t+/[A-Z] \w *(?= \s + \w + \s *[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:e,operator:/ \b is!| \b (?:as|is) \b | \+ \+ |--|&&| \| \| |<<=?|>>=?|~(?: \/ =?)?|[+ \- * \/ %&^|=!<>]=?| \? /}),n.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[ \s \S ]*? \1 |(["'])(?: \\ .|(?! \2 )[^ \\ \r \n ])* \2 (?! \2 ))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^ \\ ])(?: \\ {2})*) \$ (?: \w +| \{ (?:[^{}]| \{ [^{}]* \} )* \} )/,lookbehind:!0,inside:{punctuation:/^ \$ \{ ?| \} $ /,expression:{pattern:/[ \s \S ]+/,inside:n.languages.dart}}},string:/[ \s \S ]+/}},string:void 0}),n.languages.insertBefore("dart","class-name",{metadata:{pattern:/@ \w +/,alias:"function"}}),n.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[ \w \s ,.&?]|<(?:[ \w \s ,.&?]|<(?:[ \w \s ,.&?]|<[ \w \s ,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(Prism);function _ $ (n){let e,t,i;return{c(){e=y("div"),t=y("code"),m(t,"class","svelte-10s5tkd"),m(e,"class",i="code-wrapper prism-light "+n[0]+" svelte-10s5tkd")},m(s,l){S(s,e,l),b(e,t),t.innerHTML=n[1]},p(s,[l]){l&2&&(t.innerHTML=s[1]),l&1&&i!==(i="code-wrapper prism-light "+s[0]+" svelte-10s5tkd")&&m(e,"class",i)},i:te,o:te,d(s){s&&w(e)}}}function g $ (n,e,t){let{class:i=""}=e,{content:s=""}=e,{language:l="javascript"}=e,o="";function r(a){return a=typeof a=="string"?a:"",a=el.plugins.NormalizeWhitespace.normalize(a,{"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0}),el.highlight(a,el.languages[l]||el.languages.javascript,l)}return n. $ $ set=a=>{"class"in a&&t(0,i=a.class),"content"in a&&t(2,s=a.content),"language"in a&&t(3,l=a.language)},n. $ $ .update=()=>{n. $ $ .dirty&4&&typeof el<"u"&&s&&t(1,o=r(s))},[i,o,s,l]}class b1 extends be{constructor(e){super(),ge(this,e,g $ ,_ $ ,he,{class:0,content:2,language:3})}}const b $ =n=>({}),Dc=n=>({}),v $ =n=>({}),Ac=n=>({});function Ic(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,v,k, $ ,C=n[4]&&!n[2]&&Lc(n);const T=n[19].header,M=kt(T,n,n[18],Ac);let O=n[4]&&n[2]&&Pc(n);const E=n[19].default,A=kt(E,n,n[18],null),P=n[19].footer,N=kt(P,n,n[18],Dc);return{c(){e=y("div"),t=y("div"),s=D(),l=y("div"),o=y("div"),C&&C.c(),r=D(),M&&M.c(),a=D(),O&&O.c(),u=D(),f=y("div"),A&&A.c(),d=D(),p=y("div"),N&&N.c(),m(
< span class = "txt" > New index < / s p a n > ` , f = D ( ) , H ( d . $ $ . f r a g m e n t ) , m ( e , " c l a s s " , " s e c t i o n - t i t l e " ) , m ( u , " t y p e " , " b u t t o n " ) , m ( u , " c l a s s " , " b t n b t n - x s b t n - t r a n s p a r e n t b t n - p i l l b t n - o u t l i n e " ) , m ( r , " c l a s s " , " i n d e x e s - l i s t s v e l t e - 1 6 7 l b w u " ) } , m ( E , A ) { S ( E , e , A ) , b ( e , t ) , b ( e , s ) , b ( e , l ) , S ( E , o , A ) , S ( E , r , A ) ; f o r ( l e t P = 0 ; P < k . l e n g t h ; P + = 1 ) k [ P ] & & k [ P ] . m ( r , n u l l ) ; b ( r , a ) , b ( r , u ) , S ( E , f , A ) , V ( d , E , A ) , h = ! 0 , g | | ( _ = J ( u , " c l i c k " , n [ 5 ] ) , g = ! 0 ) } , p ( E , [ A ] ) { v a r N , F , R ; i f ( ( ! h | | A & 1 ) & & i ! = = ( i = ( ( ( F = ( N = E [ 0 ] ) = = n u l l ? v o i d 0 : N . i n d e x e s ) = = n u l l ? v o i d 0 : F . l e n g t h ) | | 0 ) + " " ) & & s e ( s , i ) , A & 7 ) { v = ( ( R = E [ 0 ] ) = = n u l l ? v o i d 0 : R . i n d e x e s ) | | [ ] ; l e t q ; f o r ( q = 0 ; q < v . l e n g t h ; q + = 1 ) { c o n s t j = U c ( E , v , q ) ; k [ q ] ? k [ q ] . p ( j , A ) : ( k [ q ] = Y c ( j ) , k [ q ] . c ( ) , k [ q ] . m ( r , a ) ) } f o r ( ; q < k . l e n g t h ; q + = 1 ) k [ q ] . d ( 1 ) ; k . l e n g t h = v . l e n g t h } c o n s t P = { } ; ! p & & A & 1 & & ( p = ! 0 , P . c o l l e c t i o n = E [ 0 ] , _ e ( ( ) = > p = ! 1 ) ) , d . $ s e t ( P ) } , i ( E ) { h | | ( I ( d . $ $ . f r a g m e n t , E ) , h = ! 0 ) } , o ( E ) { L ( d . $ $ . f r a g m e n t , E ) , h = ! 1 } , d ( E ) { E & & w ( e ) , E & & w ( o ) , E & & w ( r ) , h t ( k , E ) , E & & w ( f ) , n [ 6 ] ( n u l l ) , z ( d , E ) , g = ! 1 , _ ( ) } } } c o n s t K c = n = > n . n a m e ; f u n c t i o n G $ ( n , e , t ) { l e t i ; Z e ( n , T i , h = > t ( 2 , i = h ) ) ; l e t { c o l l e c t i o n : s } = e , l ; f u n c t i o n o ( h , g ) { f o r ( l e t _ = 0 ; _ < s . i n d e x e s . l e n g t h ; _ + + ) i f ( s . i n d e x e s [ _ ] = = h ) { t ( 0 , s . i n d e x e s [ _ ] = g , s ) , u i ( " i n d e x e s . " + _ ) ; r e t u r n } s . i n d e x e s . p u s h ( g ) , t ( 0 , s ) } c o n s t r = ( h , g ) = > l = = n u l l ? v o i d 0 : l . s h o w ( h , g ) , a = ( ) = > l = = n u l l ? v o i d 0 : l . s h o w ( ) ; f u n c t i o n u ( h ) { n e [ h ? " u n s h i f t " : " p u s h " ] ( ( ) = > { l = h , t ( 1 , l ) } ) } f u n c t i o n f ( h ) { s = h , t ( 0 , s ) } c o n s t d = h = > { f o r ( l e t g = 0 ; g < s . i n d e x e s . l e n g t h ; g + + ) i f ( s . i n d e x e s [ g ] = = h . d e t a i l ) { s . i n d e x e s . s p l i c e ( g , 1 ) , u i ( " i n d e x e s . " + g ) ; b r e a k } t ( 0 , s ) } , p = h = > { o ( h . d e t a i l . o l d , h . d e t a i l . n e w ) } ; r e t u r n n . $ $ s e t = h = > { " c o l l e c t i o n " i n h & & t ( 0 , s = h . c o l l e c t i o n ) } , [ s , l , i , o , r , a , u , f , d , p ] } c l a s s X $ e x t e n d s b e { c o n s t r u c t o r ( e ) { s u p e r ( ) , g e ( t h i s , e , G $ , Z $ , h e , { c o l l e c t i o n : 0 } ) } } f u n c t i o n J c ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 6 ] = e [ t ] , i } f u n c t i o n Z c ( n ) { l e t e , t , i , s , l = n [ 6 ] . l a b e l + " " , o , r , a , u ; f u n c t i o n f ( ) { r e t u r n n [ 4 ] ( n [ 6 ] ) } f u n c t i o n d ( . . . p ) { r e t u r n n [ 5 ] ( n [ 6 ] , . . . p ) } r e t u r n { c ( ) { e = y ( " d i v " ) , t = y ( " i " ) , i = D ( ) , s = y ( " s p a n " ) , o = W ( l ) , r = D ( ) , m ( t , " c l a s s " , " i c o n " + n [ 6 ] . i c o n + " s v e l t e - 1 g z 9 b 6 p " ) , m ( s , " c l a s s " , " t x t " ) , m ( e , " t a b i n d e x " , " 0 " ) , m ( e , " c l a s s " , " d r o p d o w n - i t e m c l o s a b l e s v e l t e - 1 g z 9 b 6 p " ) } , m ( p , h ) { S ( p , e , h ) , b ( e , t ) , b ( e , i ) , b ( e , s ) , b ( s , o ) , b ( e , r ) , a | | ( u = [ J ( e , " c l i c k " , I n ( f ) ) , J ( e , " k e y d o w n " , I n ( d ) ) ] , a = ! 0 ) } , p ( p , h ) { n = p } , d ( p ) { p & & w ( e ) , a = ! 1 , D e ( u ) } } } f u n c t i o n Q $ ( n ) { l e t e , t = n [ 2 ] , i = [ ] ; f o r ( l e t s = 0 ; s < t . l e n g t h ; s + = 1 ) i [ s ] = Z c ( J c ( n , t , s ) ) ; r e t u r n { c ( ) { f o r ( l e t s = 0 ; s < i . l e n g t h ; s + = 1 ) i [ s ] . c ( ) ; e = k e ( ) } , m ( s , l ) { f o r ( l e t o = 0 ; o < i . l e n g t h ; o + = 1 ) i [ o ] & & i [ o ] . m ( s , l ) ; S ( s , e , l ) } , p ( s , l ) { i f ( l & 1 2 ) { t = s [ 2 ] ; l e t o ; f o r ( o = 0 ; o < t . l e n g t h ; o + = 1 ) { c o n s t r = J c ( s , t , o ) ; i [ o ] ? i [ o ] . p ( r , l ) : ( i [ o ] = Z c ( r ) , i [ o ] . c ( ) , i [ o ] . m ( e . p a r e n t N o d e , e ) ) } f o r ( ; o < i . l e n g t h ; o + = 1 ) i [ o ] . d ( 1 ) ; i . l e n g t h = t . l e n g t h } } , d ( s ) { h t ( i , s ) , s & & w ( e ) } } } f u n c t i o n x $ ( n ) { l e t e , t , i , s , l , o , r , a , u , f ; r e t u r n o = n e w J n ( { p r o p s : { c l a s s : " d r o p d o w n f i e l d - t y p e s - d r o p d o w n " , $ $ s l o t s : { d e f a u l t : [ Q $ ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { e = y ( " b u t t o n " ) , t = y ( " i " ) , i = D ( ) , s = y ( " d i v " ) , s . t e x t C o n t e n t = " N e w f i e l d " , l = D ( ) , H ( o . $ $ . f r a g m e n t ) , m ( t , " c l a s s " , " r i - a d d - l i n e " ) , m ( s , " c l a s s " , " t x t " ) , m ( e , " t y p e " , " b u t t o n " ) , m ( e , " c l a s s " , r = " f i e l d - t y p e s - b t n " + n [ 0 ] + " s v e l t e - 1 g z 9 b 6 p " ) } , m ( d , p ) { S ( d , e , p ) , b ( e , t ) , b ( e , i ) , b ( e , s ) , b ( e , l ) , V ( o , e , n u l l ) , a = ! 0 , u | | ( f = J ( e , " c l i c k " , n [ 1 ] ) , u = ! 0 ) } , p ( d , [ p ] ) { c o n s t h = { } ; p & 5 1 2 & & ( h . $ $ s c o p e = { d i r t y : p , c t x : d } ) , o . $ s e t ( h ) , ( ! a | | p & 1 & & r ! = = ( r = " f i e l d - t y p e s - b t n " + d [ 0 ] + " s v e l t e - 1 g z 9 b 6 p " ) ) & & m ( e , " c l a s s " , r ) } , i ( d ) { a | | ( I ( o . $ $ . f r a g m e n t , d ) , a = ! 0 ) } , o ( d ) { L ( o . $ $ . f r a g m e n t , d ) , a = ! 1 } , d ( d ) { d & & w ( e ) , z ( o ) , u = ! 1 , f ( ) } } } f u n c t i o n e T ( n , e , t ) { l e t { c l a s s : i = " " } = e ; c o n s t s = T t ( ) , l = [ { l a b e l : " P l a i n t e x t " , v a l u e : " t e x t " , i c o n : U . g e t F i e l d T y p e I c o n ( " t e x t " ) } , { l a b e l : " R i c h e d i t o r " , v a l u e : " e d i t o r " , i c o n : U . g e t F i e l d T y p e I c o n ( " e d i t o r " ) } , { l a b e l : " N u m b e r " , v a l u e : " n u m b e r " , i c o n : U . g e t F i e l d T y p e I c o n ( " n u m b e r " ) } , { l a b e l : " B o o l " , v a l u e : " b o o l " , i c o n : U . g e t F i e l d T y p e I c o n ( " b o o l " ) } , { l a b e l : " E m a i l " , v a l u e : " e m a i l " , i c o n : U . g e t F i e l d T y p e I c o n ( " e m a i l " ) } , { l a b e l : " U r l " , v a l u e : " u r l " , i c o n : U . g e t F i e l d T y p e I c o n ( " u r l " ) } , { l a b e l : " D a t e T i m e " , v a l u e : " d a t e " , i c o n : U . g e t F i e l d T y p e I c o n ( " d a t e " ) } , { l a b e l : " S e l e c t " , v a l u e : " s e l e c t " , i c o n : U . g e t F i e l d T y p e I c o n ( " s e l e c t " ) } , { l a b e l : " F i l e " , v a l u e : " f i l e " , i c o n : U . g e t F i e l d T y p e I c o n ( " f i l e " ) } , { l a b e l : " R e l a t i o n " , v a l u e : " r e l a t i o n " , i c o n : U . g e t F i e l d T y p e I c o n ( " r e l a t i o n " ) } , { l a b e l : " J S O N " , v a l u e : " j s o n " , i c o n : U . g e t F i e l d T y p e I c o n ( " j s o n " ) } ] ; f u n c t i o n o ( u ) { s ( " s e l e c t " , u ) } c o n s t r = u = > { o ( u . v a l u e ) } , a = ( u , f ) = > { ( f . c o d e = = = " E n t e r " | | f . c o d e = = = " S p
This field is disabled if "Only domains" is set . ` ,position:"top"})),p=!0)},p(v,k){(!d||k&256&&l!==(l=v[8]))&&m(e,"for",l);const $ ={};k&256&&( $ .id=v[8]),k&1&&( $ .disabled=!U.isEmpty(v[0].options.onlyDomains)),!a&&k&1&&(a=!0, $ .value=v[0].options.exceptDomains,_e(()=>a=!1)),r. $ set( $ )},i(v){d||(I(r. $ $ .fragment,v),d=!0)},o(v){L(r. $ $ .fragment,v),d=!1},d(v){v&&w(e),v&&w(o),z(r,v),v&&w(u),v&&w(f),p=!1,h()}}}function LT(n){let e,t,i,s,l,o,r,a,u,f,d,p,h;function g(v){n[4](v)}let _={id:n[8]+".options.onlyDomains",disabled:!U.isEmpty(n[0].options.exceptDomains)};return n[0].options.onlyDomains!==void 0&&(_.value=n[0].options.onlyDomains),r=new zs({props:_}),ne.push(()=>de(r,"value",g)),{c(){e=y("label"),t=y("span"),t.textContent="Only domains",i=D(),s=y("i"),o=D(),H(r. $ $ .fragment),u=D(),f=y("div"),f.textContent="Use comma as separator.",m(t,"class","txt"),m(s,"class","ri-information-line link-hint"),m(e,"for",l=n[8]+".options.onlyDomains"),m(f,"class","help-block")},m(v,k){S(v,e,k),b(e,t),b(e,i),b(e,s),S(v,o,k),V(r,v,k),S(v,u,k),S(v,f,k),d=!0,p||(h=Oe(Be.call(null,s,{text: ` List of domains that are ONLY allowed .
This field is disabled if "Except domains" is set . ` ,position:"top"})),p=!0)},p(v,k){(!d||k&256&&l!==(l=v[8]+".options.onlyDomains"))&&m(e,"for",l);const $ ={};k&256&&( $ .id=v[8]+".options.onlyDomains"),k&1&&( $ .disabled=!U.isEmpty(v[0].options.exceptDomains)),!a&&k&1&&(a=!0, $ .value=v[0].options.onlyDomains,_e(()=>a=!1)),r. $ set( $ )},i(v){d||(I(r. $ $ .fragment,v),d=!0)},o(v){L(r. $ $ .fragment,v),d=!1},d(v){v&&w(e),v&&w(o),z(r,v),v&&w(u),v&&w(f),p=!1,h()}}}function PT(n){let e,t,i,s,l,o,r;return i=new pe({props:{class:"form-field",name:"schema."+n[1]+".options.exceptDomains", $ $ slots:{default:[IT,({uniqueId:a})=>({8:a}),({uniqueId:a})=>a?256:0]}, $ $ scope:{ctx:n}}}),o=new pe({props:{class:"form-field",name:"schema."+n[1]+".options.onlyDomains", $ $ slots:{default:[LT,({uniqueId:a})=>({8:a}),({uniqueId:a})=>a?256:0]}, $ $ scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),H(i. $ $ .fragment),s=D(),l=y("div"),H(o. $ $ .fragment),m(t,"class","col-sm-6"),m(l,"class","col-sm-6"),m(e,"class","grid grid-sm")},m(a,u){S(a,e,u),b(e,t),V(i,t,null),b(e,s),b(e,l),V(o,l,null),r=!0},p(a,u){const f={};u&2&&(f.name="schema."+a[1]+".options.exceptDomains"),u&769&&(f. $ $ scope={dirty:u,ctx:a}),i. $ set(f);const d={};u&2&&(d.name="schema."+a[1]+".options.onlyDomains"),u&769&&(d. $ $ scope={dirty:u,ctx:a}),o. $ set(d)},i(a){r||(I(i. $ $ .fragment,a),I(o. $ $ .fragment,a),r=!0)},o(a){L(i. $ $ .fragment,a),L(o. $ $ .fragment,a),r=!1},d(a){a&&w(e),z(i),z(o)}}}function NT(n){let e,t,i;const s=[{key:n[1]},n[2]];function l(r){n[5](r)}let o={ $ $ slots:{options:[PT]}, $ $ scope:{ctx:n}};for(let r=0;r<s.length;r+=1)o=je(o,s[r]);return n[0]!==void 0&&(o.field=n[0]),e=new pi({props:o}),ne.push(()=>de(e,"field",l)),e. $ on("rename",n[6]),e. $ on("remove",n[7]),{c(){H(e. $ $ .fragment)},m(r,a){V(e,r,a),i=!0},p(r,[a]){const u=a&6?Ot(s,[a&2&&{key:r[1]},a&4&&Qt(r[2])]):{};a&515&&(u. $ $ scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,u.field=r[0],_e(()=>t=!1)),e. $ set(u)},i(r){i||(I(e. $ $ .fragment,r),i=!0)},o(r){L(e. $ $ .fragment,r),i=!1},d(r){z(e,r)}}}function FT(n,e,t){const i=["field","key"];let s=et(e,i),{field:l}=e,{key:o=""}=e;function r(p){n. $ $ .not_equal(l.options.exceptDomains,p)&&(l.options.exceptDomains=p,t(0,l))}function a(p){n. $ $ .not_equal(l.options.onlyDomains,p)&&(l.options.onlyDomains=p,t(0,l))}function u(p){l=p,t(0,l)}function f(p){Fe.call(this,n,p)}function d(p){Fe.call(this,n,p)}return n. $ $ set=p=>{e=je(je({},e),Gt(p)),t(2,s=et(e,i)),"field"in p&&t(0,l=p.field),"key"in p&&t(1,o=p.key)},[l,o,s,r,a,u,f,d]}class k1 extends be{constructor(e){super(),ge(this,e,FT,NT,he,{field:0,key:1})}}function RT(n){let e,t,i;const s=[{key:n[1]},n[2]];function l(r){n[3](r)}let o={};for(let r=0;r<s.length;r+=1)o=je(o,s[r]);return n[0]!==void 0&&(o.field=n[0]),e=new k1({props:o}),ne.push(()=>de(e,"field",l)),e. $ on("rename",n[4]),e. $ on("remove",n[5]),{c(){H(e. $ $ .fragment)},m(r,a){V(e,r,a),i=!0},p(r,[a]){const u=a&6?Ot(s,[a&2&&{key:r[1]},a&4&&Qt(r[2])]):{};!t&&a&1&&(t=!0,u.field=r[0],_e(()=>t=!1)),e. $ set(u)},i(r){i||(I(e. $ $ .fragment,r),i=!0)},o(r){L(e. $ $ .fragment,r),i=!1},d(r){z(e,r)}}}function qT(n,e,t){const i=["field","key"];let s=et(e,i),{field:l}=e,{key:o=""}=e;function r(f){l=f,t(0,l)}function a(f){Fe.call(this,n,f)}function u(f){Fe.call(this,n,f)}return n. $ $ set=f=>{e=je(je({},e),Gt(f)),t(2,s=et(e,i)),"field"in f&&t(0,l=f.field),"key"in f&&t(1,o=f.key)},[l,o,s,r,a,u]}class jT extends be{constructor(e){super(),ge(this,e,qT,RT,he,{field:0,key:1})}}function VT(n){let e,t,i;const s=[{key:n[1]},n[2]];function l(r){n[3](r)}let o={};for(let r=0;r<s.length;r+=1)o=je(o,s[r]);return n[0]!==void 0&&(o.field=n[0]),e=new pi({props:o}),ne.push(()=>de(e,"field",l)),e. $ on("rename",n[4]),e. $ on("remove",n[5]),{c(){H(e. $ $ .fragment)},m(r,a){V(e,r,a),i=!0},p(r,[a]){const u=a&6?Ot(s,[a&2&&{key:r[1]},a&4&&Qt(r[2])]):{};!t&&a&1&&(t=!0,u.field=r[0],_e(()=>t=!1)),e. $ set(u)},i(r){i||(I(e. $ $ .fragment,r),i=!0)},o(r){L(e. $ $ .fragment,r),i=!1},d(r){z(e,r)}}}function zT(n,e,t){const i=["field","key"];let s=et(e,i),{field:l}=e,{key:o=""}=e;function r(f){l=f,t(0,l)}function a(f){Fe.call(this,n,f)}function u(f){Fe.call(this,n,f)}return n. $ $ set=f=>{e=je(je({},e),Gt(f)),t(2,
2023-05-17 21:41:42 +02:00
< span class = 'flatpickr-weekday' >
2023-05-24 22:18:44 +02:00
` +X.join("</span><span class='flatpickr-weekday'>")+ `
2023-05-17 21:41:42 +02:00
< / s p a n >
2023-05-24 22:18:44 +02:00
` }}function le(){t.calendarContainer.classList.add("hasWeeks");var K=ct("div","flatpickr-weekwrapper");K.appendChild(ct("span","flatpickr-weekday",t.l10n.weekAbbreviation));var X=ct("div","flatpickr-weeks");return K.appendChild(X),{weekWrapper:K,weekNumbers:X}}function ee(K,X){X===void 0&&(X=!0);var ie=X?K:K-t.currentMonth;ie<0&&t._hidePrevMonthArrow===!0||ie>0&&t._hideNextMonthArrow===!0||(t.currentMonth+=ie,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,Re("onYearChange"),q()),R(),Re("onMonthChange"),Fn())}function me(K,X){if(K===void 0&&(K=!0),X===void 0&&(X=!0),t.input.value="",t.altInput!==void 0&&(t.altInput.value=""),t.mobileInput!==void 0&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,X===!0&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),t.config.enableTime===!0){var ie=Nr(t.config),oe=ie.hours,Te=ie.minutes,Le=ie.seconds;h(oe,Te,Le)}t.redraw(),K&&Re("onChange")}function ye(){t.isOpen=!1,t.isMobile||(t.calendarContainer!==void 0&&t.calendarContainer.classList.remove("open"),t._input!==void 0&&t._input.classList.remove("active")),Re("onClose")}function Me(){t.config!==void 0&&Re("onDestroy");for(var K=t._handlers.length;K--;)t._handlers[K].remove();if(t._handlers=[],t.mobileInput)t.mobileInput.parentNode&&t.mobileInput.parentNode.removeChild(t.mobileInput),t.mobileInput=void 0;else if(t.calendarContainer&&t.calendarContainer.parentNode)if(t.config.static&&t.calendarContainer.parentNode){var X=t.calendarContainer.parentNode;if(X.lastChild&&X.removeChild(X.lastChild),X.parentNode){for(;X.firstChild;)X.parentNode.insertBefore(X.firstChild,X);X.parentNode.removeChild(X)}}else t.calendarContainer.parentNode.removeChild(t.calendarContainer);t.altInput&&(t.input.type="text",t.altInput.parentNode&&t.altInput.parentNode.removeChild(t.altInput),delete t.altInput),t.input&&(t.input.type=t.input._type,t.input.classList.remove("flatpickr-input"),t.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(ie){try{delete t[ie]}catch{}})}function ze(K){return t.calendarContainer.contains(K)}function Ue(K){if(t.isOpen&&!t.config.inline){var X=Mn(K),ie=ze(X),oe=X===t.input||X===t.altInput||t.element.contains(X)||K.path&&K.path.indexOf&&(~K.path.indexOf(t.input)||~K.path.indexOf(t.altInput)),Te=!oe&&!ie&&!ze(K.relatedTarget),Le=!t.config.ignoredFocusElements.some(function(Ne){return Ne.contains(X)});Te&&Le&&(t.config.allowInput&&t.setDate(t._input.value,!1,t.config.altInput?t.config.altFormat:t.config.dateFormat),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0&&t.input.value!==""&&t.input.value!==void 0&&a(),t.close(),t.config&&t.config.mode==="range"&&t.selectedDates.length===1&&t.clear(!1))}}function we(K){if(!(!K||t.config.minDate&&K<t.config.minDate.getFullYear()||t.config.maxDate&&K>t.config.maxDate.getFullYear())){var X=K,ie=t.currentYear!==X;t.currentYear=X||t.currentYear,t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth=Math.min(t.config.maxDate.getMonth(),t.currentMonth):t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&(t.currentMonth=Math.max(t.config.minDate.getMonth(),t.currentMonth)),ie&&(t.redraw(),Re("onYearChange"),q())}}function Ce(K,X){var ie;X===void 0&&(X=!0);var oe=t.parseDate(K,void 0,X);if(t.config.minDate&&oe&&On(oe,t.config.minDate,X!==void 0?X:!t.minDateHasTime)<0||t.config.maxDate&&oe&&On(oe,t.config.maxDate,X!==void 0?X:!t.maxDateHasTime)>0)return!1;if(!t.config.enable&&t.config.disable.length===0)ret
` ),r=y("code"),r.textContent="multipart/form-data",a=W( `
requests , the following normalization rules are applied if the ` ),u=y("code"),u.textContent="json",f=W( ` field
2023-05-17 21:41:42 +02:00
is a
2023-05-24 22:18:44 +02:00
` ),d=y("strong"),d.textContent="plain string",p=W( ` :
` ),h=y("ul"),g=y("li"),g.innerHTML=""true" is converted to the json <code>true</code>",_=D(),v=y("li"),v.innerHTML=""false" is converted to the json <code>false</code>",k=D(), $ =y("li"), $ .innerHTML=""null" is converted to the json <code>null</code>",C=D(),T=y("li"),T.innerHTML=""[1,2,3]" is converted to the json <code>[1,2,3]</code>",M=D(),O=y("li"),A=W(E),P=W(" is converted to the json "),N=y("code"),N.textContent='{"a":1,"b":2}',F=D(),R=y("li"),R.textContent="numeric strings are converted to json number",q=D(),j=y("li"),j.textContent="double quoted strings are left as they are (aka. without normalizations)",B=D(),Y=y("li"),Y.textContent="any other string (empty string too) is double quoted",Q=W( `
2023-05-17 21:41:42 +02:00
Alternatively , if you want to avoid the string value normalizations , you can wrap your
2023-05-24 22:18:44 +02:00
data inside an object , eg . ` ),Z=y("code"),Z.textContent='{"data": anything}',m(i,"class","content"),m(t,"class","alert alert-warning m-b-0 m-t-10"),m(e,"class","block")},m(ee,me){S(ee,e,me),b(e,t),b(t,i),b(i,s),b(i,l),b(i,o),b(i,r),b(i,a),b(i,u),b(i,f),b(i,d),b(i,p),b(i,h),b(h,g),b(h,_),b(h,v),b(h,k),b(h, $ ),b(h,C),b(h,T),b(h,M),b(h,O),b(O,A),b(O,P),b(O,N),b(h,F),b(h,R),b(h,q),b(h,j),b(h,B),b(h,Y),b(i,Q),b(i,Z),le=!0},i(ee){le||(ee&&xe(()=>{le&&(G||(G=Ve(e,rt,{duration:150},!0)),G.run(1))}),le=!0)},o(ee){ee&&(G||(G=Ve(e,rt,{duration:150},!1)),G.run(0)),le=!1},d(ee){ee&&w(e),ee&&G&&G.end()}}}function AC(n){let e,t,i,s,l,o,r;function a(p,h){return p[2]?DC:EC}let u=a(n),f=u(n),d=n[2]&&Td();return{c(){e=y("button"),t=y("strong"),t.textContent="String value normalizations",i=D(),f.c(),s=D(),d&&d.c(),l=ke(),m(t,"class","txt"),m(e,"type","button"),m(e,"class","inline-flex txt-sm flex-gap-5 link-hint")},m(p,h){S(p,e,h),b(e,t),b(e,i),f.m(e,null),S(p,s,h),d&&d.m(p,h),S(p,l,h),o||(r=J(e,"click",n[4]),o=!0)},p(p,h){u!==(u=a(p))&&(f.d(1),f=u(p),f&&(f.c(),f.m(e,null))),p[2]?d?h&4&&I(d,1):(d=Td(),d.c(),I(d,1),d.m(l.parentNode,l)):d&&(ae(),L(d,1,1,()=>{d=null}),ue())},d(p){p&&w(e),f.d(),p&&w(s),d&&d.d(p),p&&w(l),o=!1,r()}}}function IC(n){let e,t,i;const s=[{key:n[1]},n[3]];function l(r){n[5](r)}let o={ $ $ slots:{options:[AC]}, $ $ scope:{ctx:n}};for(let r=0;r<s.length;r+=1)o=je(o,s[r]);return n[0]!==void 0&&(o.field=n[0]),e=new pi({props:o}),ne.push(()=>de(e,"field",l)),e. $ on("rename",n[6]),e. $ on("remove",n[7]),{c(){H(e. $ $ .fragment)},m(r,a){V(e,r,a),i=!0},p(r,[a]){const u=a&10?Ot(s,[a&2&&{key:r[1]},a&8&&Qt(r[3])]):{};a&260&&(u. $ $ scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,u.field=r[0],_e(()=>t=!1)),e. $ set(u)},i(r){i||(I(e. $ $ .fragment,r),i=!0)},o(r){L(e. $ $ .fragment,r),i=!1},d(r){z(e,r)}}}function LC(n,e,t){const i=["field","key"];let s=et(e,i),{field:l}=e,{key:o=""}=e,r=!1;const a=()=>{t(2,r=!r)};function u(p){l=p,t(0,l)}function f(p){Fe.call(this,n,p)}function d(p){Fe.call(this,n,p)}return n. $ $ set=p=>{e=je(je({},e),Gt(p)),t(3,s=et(e,i)),"field"in p&&t(0,l=p.field),"key"in p&&t(1,o=p.key)},[l,o,r,s,a,u,f,d]}class PC extends be{constructor(e){super(),ge(this,e,LC,IC,he,{field:0,key:1})}}function NC(n){let e,t=(n[0].ext||"N/A")+"",i,s,l,o=n[0].mimeType+"",r;return{c(){e=y("span"),i=W(t),s=D(),l=y("small"),r=W(o),m(e,"class","txt"),m(l,"class","txt-hint")},m(a,u){S(a,e,u),b(e,i),S(a,s,u),S(a,l,u),b(l,r)},p(a,[u]){u&1&&t!==(t=(a[0].ext||"N/A")+"")&&se(i,t),u&1&&o!==(o=a[0].mimeType+"")&&se(r,o)},i:te,o:te,d(a){a&&w(e),a&&w(s),a&&w(l)}}}function FC(n,e,t){let{item:i={}}=e;return n. $ $ set=s=>{"item"in s&&t(0,i=s.item)},[i]}class Cd extends be{constructor(e){super(),ge(this,e,FC,NC,he,{item:0})}}const RC=[{ext:".xpm",mimeType:"image/x-xpixmap"},{ext:".7z",mimeType:"application/x-7z-compressed"},{ext:".zip",mimeType:"application/zip"},{ext:".xlsx",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},{ext:".docx",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"},{ext:".pptx",mimeType:"application/vnd.openxmlformats-officedocument.presentationml.presentation"},{ext:".epub",mimeType:"application/epub+zip"},{ext:".jar",mimeType:"application/jar"},{ext:".odt",mimeType:"application/vnd.oasis.opendocument.text"},{ext:".ott",mimeType:"application/vnd.oasis.opendocument.text-template"},{ext:".ods",mimeType:"application/vnd.oasis.opendocument.spreadsheet"},{ext:".ots",mimeType:"application/vnd.oasis.opendocument.spreadsheet-template"},{ext:".odp",mimeType:"application/vnd.oasis.opendocument.presentation"},{ext:".otp",mimeType:"application/vnd.oasis.opendocument.presentation-template"},{ext:".odg",mimeType:"application/vnd.oasis.opendocument.graphics"},{ext:".otg",mimeType:"application/vnd.oasis.opendocument.graphics-template"},{ext:".odf",mimeType:"application/vnd.oasis.opendocument.formula"},{ext:".odc",mimeType:"application/vnd.oasis.opendocument.chart"},{ext:".sxc",mimeType:"application/vnd.sun.xml.calc"},{ext:".pdf",mimeType:"application/pdf"},{ext:".fdf",mimeType:"application/vnd.f
Leave empty for no restriction . ` ,position:"top"})), $ =!0)},p(O,E){(!k||E&4194304&&l!==(l=O[22]))&&m(e,"for",l);const A={};E&4194304&&(A.id=O[22]),E&8&&(A.items=O[3]),!a&&E&1&&(a=!0,A.keyOfSelected=O[0].options.mimeTypes,_e(()=>a=!1)),r. $ set(A);const P={};E&16777217&&(P. $ $ scope={dirty:E,ctx:O}),v. $ set(P)},i(O){k||(I(r. $ $ .fragment,O),I(v. $ $ .fragment,O),k=!0)},o(O){L(r. $ $ .fragment,O),L(v. $ $ .fragment,O),k=!1},d(O){O&&w(e),O&&w(o),z(r,O),O&&w(u),O&&w(f),z(v), $ =!1,C()}}}function HC(n){let e;return{c(){e=y("ul"),e.innerHTML= ` < li > < strong > WxH < / s t r o n g >
2023-05-17 21:41:42 +02:00
( eg . 100 x50 ) - crop to WxH viewbox ( from center ) < / l i >
< li > < strong > WxHt < / s t r o n g >
( eg . 100 x50t ) - crop to WxH viewbox ( from top ) < / l i >
< li > < strong > WxHb < / s t r o n g >
( eg . 100 x50b ) - crop to WxH viewbox ( from bottom ) < / l i >
< li > < strong > WxHf < / s t r o n g >
( eg . 100 x50f ) - fit inside a WxH viewbox ( without cropping ) < / l i >
< li > < strong > 0 xH < / s t r o n g >
( eg . 0x50 ) - resize to H height preserving the aspect ratio < / l i >
< li > < strong > Wx0 < / s t r o n g >
2023-05-24 22:18:44 +02:00
( eg . 100 x0 ) - resize to W width preserving the aspect ratio < / l i > ` , m ( e , " c l a s s " , " m - 0 " ) } , m ( t , i ) { S ( t , e , i ) } , p : t e , d ( t ) { t & & w ( e ) } } } f u n c t i o n B C ( n ) { l e t e , t , i , s , l , o , r , a , u , f , d , p , h , g , _ , v , k , $ , C , T , M ; f u n c t i o n O ( A ) { n [ 1 3 ] ( A ) } l e t E = { i d : n [ 2 2 ] , p l a c e h o l d e r : " e g . 5 0 x 5 0 , 4 8 0 x 7 2 0 " } ; r e t u r n n [ 0 ] . o p t i o n s . t h u m b s ! = = v o i d 0 & & ( E . v a l u e = n [ 0 ] . o p t i o n s . t h u m b s ) , r = n e w z s ( { p r o p s : E } ) , n e . p u s h ( ( ) = > d e ( r , " v a l u e " , O ) ) , $ = n e w J n ( { p r o p s : { c l a s s : " d r o p d o w n d r o p d o w n - s m d r o p d o w n - c e n t e r d r o p d o w n - n o w r a p p - r - 1 0 " , $ $ s l o t s : { d e f a u l t : [ H C ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { e = y ( " l a b e l " ) , t = y ( " s p a n " ) , t . t e x t C o n t e n t = " T h u m b s i z e s " , i = D ( ) , s = y ( " i " ) , o = D ( ) , H ( r . $ $ . f r a g m e n t ) , u = D ( ) , f = y ( " d i v " ) , d = y ( " s p a n " ) , d . t e x t C o n t e n t = " U s e c o m m a a s s e p a r a t o r . " , p = D ( ) , h = y ( " b u t t o n " ) , g = y ( " s p a n " ) , g . t e x t C o n t e n t = " S u p p o r t e d f o r m a t s " , _ = D ( ) , v = y ( " i " ) , k = D ( ) , H ( $ . $ $ . f r a g m e n t ) , m ( t , " c l a s s " , " t x t " ) , m ( s , " c l a s s " , " r i - i n f o r m a t i o n - l i n e l i n k - h i n t " ) , m ( e , " f o r " , l = n [ 2 2 ] ) , m ( d , " c l a s s " , " t x t " ) , m ( g , " c l a s s " , " t x t l i n k - p r i m a r y " ) , m ( v , " c l a s s " , " r i - a r r o w - d r o p - d o w n - f i l l " ) , m ( h , " t y p e " , " b u t t o n " ) , m ( h , " c l a s s " , " i n l i n e - f l e x f l e x - g a p - 0 " ) , m ( f , " c l a s s " , " h e l p - b l o c k " ) } , m ( A , P ) { S ( A , e , P ) , b ( e , t ) , b ( e , i ) , b ( e , s ) , S ( A , o , P ) , V ( r , A , P ) , S ( A , u , P ) , S ( A , f , P ) , b ( f , d ) , b ( f , p ) , b ( f , h ) , b ( h , g ) , b ( h , _ ) , b ( h , v ) , b ( h , k ) , V ( $ , h , n u l l ) , C = ! 0 , T | | ( M = O e ( B e . c a l l ( n u l l , s , { t e x t : " L i s t o f a d d i t i o n a l t h u m b s i z e s f o r i m a g e f i l e s , a l o n g w i t h t h e d e f a u l t t h u m b s i z e o f 1 0 0 x 1 0 0 . T h e t h u m b s a r e g e n e r a t e d l a z i l y o n f i r s t a c c e s s . " , p o s i t i o n : " t o p " } ) ) , T = ! 0 ) } , p ( A , P ) { ( ! C | | P & 4 1 9 4 3 0 4 & & l ! = = ( l = A [ 2 2 ] ) ) & & m ( e , " f o r " , l ) ; c o n s t N = { } ; P & 4 1 9 4 3 0 4 & & ( N . i d = A [ 2 2 ] ) , ! a & & P & 1 & & ( a = ! 0 , N . v a l u e = A [ 0 ] . o p t i o n s . t h u m b s , _ e ( ( ) = > a = ! 1 ) ) , r . $ s e t ( N ) ; c o n s t F = { } ; P & 1 6 7 7 7 2 1 6 & & ( F . $ $ s c o p e = { d i r t y : P , c t x : A } ) , $ . $ s e t ( F ) } , i ( A ) { C | | ( I ( r . $ $ . f r a g m e n t , A ) , I ( $ . $ $ . f r a g m e n t , A ) , C = ! 0 ) } , o ( A ) { L ( r . $ $ . f r a g m e n t , A ) , L ( $ . $ $ . f r a g m e n t , A ) , C = ! 1 } , d ( A ) { A & & w ( e ) , A & & w ( o ) , z ( r , A ) , A & & w ( u ) , A & & w ( f ) , z ( $ ) , T = ! 1 , M ( ) } } } f u n c t i o n U C ( n ) { l e t e , t , i , s , l , o , r , a , u , f ; r e t u r n { c ( ) { e = y ( " l a b e l " ) , t = W ( " M a x f i l e s i z e " ) , s = D ( ) , l = y ( " i n p u t " ) , r = D ( ) , a = y ( " d i v " ) , a . t e x t C o n t e n t = " M u s t b e i n b y t e s . " , m ( e , " f o r " , i = n [ 2 2 ] ) , m ( l , " t y p e " , " n u m b e r " ) , m ( l , " i d " , o = n [ 2 2 ] ) , m ( l , " s t e p " , " 1 " ) , m ( l , " m i n " , " 0 " ) , m ( a , " c l a s s " , " h e l p - b l o c k " ) } , m ( d , p ) { S ( d , e , p ) , b ( e , t ) , S ( d , s , p ) , S ( d , l , p ) , r e ( l , n [ 0 ] . o p t i o n s . m a x S i z e ) , S ( d , r , p ) , S ( d , a , p ) , u | | ( f = J ( l , " i n p u t " , n [ 1 4 ] ) , u = ! 0 ) } , p ( d , p ) { p & 4 1 9 4 3 0 4 & & i ! = = ( i = d [ 2 2 ] ) & & m ( e , " f o r " , i ) , p & 4 1 9 4 3 0 4 & & o ! = = ( o = d [ 2 2 ] ) & & m ( l , " i d " , o ) , p & 1 & & p t ( l . v a l u e ) ! = = d [ 0 ] . o p t i o n s . m a x S i z e & & r e ( l , d [ 0 ] . o p t i o n s . m a x S i z e ) } , d ( d ) { d & & w ( e ) , d & & w ( s ) , d & & w ( l ) , d & & w ( r ) , d & & w ( a ) , u = ! 1 , f ( ) } } } f u n c t i o n M d ( n ) { l e t e , t , i ; r e t u r n t = n e w p e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d " , n a m e : " s c h e m a . " + n [ 1 ] + " . o p t i o n s . m a x S e l e c t " , $ $ s l o t s : { d e f a u l t : [ W C , ( { u n i q u e I d : s } ) = > ( { 2 2 : s } ) , ( { u n i q u e I d : s } ) = > s ? 4 1 9 4 3 0 4 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { e = y ( " d i v " ) , H ( t . $ $ . f r a g m e n t ) , m ( e , " c l a s s " , " c o l - s m - 3 " ) } , m ( s , l ) { S ( s , e , l ) , V ( t , e , n u l l ) , i = ! 0 } , p ( s , l ) { c o n s t o = { } ; l & 2 & & ( o . n a m e = " s c h e m a . " + s [ 1 ] + " . o p t i o n s . m a x S e l e c t " ) , l & 2 0 9 7 1 5 2 1 & & ( o . $ $ s c o p e = { d i r t y : l , c t x : s } ) , t . $ s e t ( o ) } , i ( s ) { i | | ( I ( t . $ $ . f r a g m e n t , s ) , i = ! 0 ) } , o ( s ) { L ( t . $ $ . f r a g m e n t , s ) , i = ! 1 } , d ( s ) { s & & w ( e ) , z ( t ) } } } f u n c t i o n W C ( n ) { l e t e , t , i , s , l , o , r , a ; r e t u r n { c ( ) { e = y ( " l a b e l " ) , t = W ( " M a x s e l e c t " ) , s = D ( ) , l = y ( " i n p u t " ) , m ( e , " f o r " , i = n [ 2 2 ] ) , m ( l , " i d " , o = n [ 2 2 ] ) , m ( l , " t y p e " , " n u m b e r " ) , m ( l , " s t e p " , " 1 " ) , m ( l , " m i n " , " 2 " ) , l . r e q u i r e d = ! 0 } , m ( u , f ) { S ( u , e , f ) , b ( e , t ) , S ( u , s , f ) , S ( u , l , f ) , r e ( l , n [ 0 ] . o p t i o n s . m a x S e l e c t ) , r | | ( a = J ( l , " i n p u t " , n [ 1 5 ] ) , r = ! 0 ) } , p ( u , f ) { f & 4 1 9 4 3 0 4 & & i ! = = ( i = u [ 2 2 ] ) & & m ( e , " f o r " , i ) , f & 4 1 9 4 3 0 4 & & o ! = = ( o = u [ 2 2 ] ) & & m ( l , " i d " , o ) , f & 1 & & p t ( l . v a l u e ) ! = = u [ 0 ] . o p t i o n s . m a x S e l e c t & & r e ( l , u [ 0 ] . o p t i o n s . m a x S e l e c t ) } , d ( u ) { u & & w ( e ) , u & & w ( s ) , u & & w ( l ) , r = ! 1 , a ( ) } } } f u n c t i o n Y C ( n ) { l e t e , t , i , s , l , o , r , a , u , f , d , p , h ; i = n e w p e ( { p r o p s : { c l a s s : " f o r m - f i e l d " , n a m e : " s c h e m a . " + n [ 1 ] + " . o p t i o n s . m i m e T y p e s " , $ $ s l o t s : { d e f a u l t : [ z C , ( { u n i q u e I d : _ } ) = > ( { 2 2 : _ } ) , ( { u n i q u e I d : _ } ) = > _ ? 4 1 9 4 3 0 4 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , o = n e w p e ( { p r o p s : { c l a s s : " f o r m - f i e l d " , n a m e : " s c h e m a . " + n [ 1 ] + " . o p t i o n s . t h u m b s " , $ $ s l o t s : { d e f a u l t : [ B C , ( { u n i q u e I d : _ } ) = > ( { 2 2 : _ } ) , ( { u n i q u e I d : _ } ) = > _ ? 4 1 9 4 3 0 4 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , f = n e w p e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d " , n a m e : " s c h e m a . " + n [ 1 ] + " . o p t i o n s . m a x S i z e " , $ $ s l o t s : { d e f a u l t : [ U C , ( { u n i q u e I d : _ } ) = > ( { 2 2 : _ } ) , ( { u n i q u e I d : _ } ) = > _ ? 4 1 9 4 3 0 4 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) ; l e t g = ! n [ 2 ] & & M d ( n ) ; r e t u r n { c ( ) { e = y ( " d i v " ) , t = y ( " d i v " ) , H ( i . $ $ . f r a g m e n t ) , s = D ( ) , l = y ( " d i v " ) , H ( o . $ $ . f r a g m e n t ) , a = D ( ) , u = y ( " d i v " ) , H ( f . $ $ . f r a g m e n t ) , p =
< span class = "txt" > New collection < / s p a n > ` , m ( i , " t y p e " , " b u t t o n " ) , m ( i , " c l a s s " , " b t n b t n - t r a n s p a r e n t b t n - b l o c k b t n - s m " ) } , m ( o , r ) { S ( o , e , r ) , S ( o , t , r ) , S ( o , i , r ) , s | | ( l = J ( i , " c l i c k " , n [ 1 7 ] ) , s = ! 0 ) } , p : t e , d ( o ) { o & & w ( e ) , o & & w ( t ) , o & & w ( i ) , s = ! 1 , l ( ) } } } f u n c t i o n x C ( n ) { l e t e , t , i ; f u n c t i o n s ( o ) { n [ 1 8 ] ( o ) } l e t l = { i d : n [ 2 9 ] , s e a r c h a b l e : n [ 3 ] . l e n g t h > 5 , s e l e c t P l a c e h o l d e r : " S e l e c t c o l l e c t i o n * " , n o O p t i o n s T e x t : " N o c o l l e c t i o n s f o u n d " , s e l e c t i o n K e y : " i d " , i t e m s : n [ 3 ] , r e a d o n l y : ! n [ 3 0 ] | | n [ 0 ] . i d , $ $ s l o t s : { a f t e r O p t i o n s : [ Q C ] } , $ $ s c o p e : { c t x : n } } ; r e t u r n n [ 0 ] . o p t i o n s . c o l l e c t i o n I d ! = = v o i d 0 & & ( l . k e y O f S e l e c t e d = n [ 0 ] . o p t i o n s . c o l l e c t i o n I d ) , e = n e w B i ( { p r o p s : l } ) , n e . p u s h ( ( ) = > d e ( e , " k e y O f S e l e c t e d " , s ) ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( o , r ) { V ( e , o , r ) , i = ! 0 } , p ( o , r ) { c o n s t a = { } ; r [ 0 ] & 5 3 6 8 7 0 9 1 2 & & ( a . i d = o [ 2 9 ] ) , r [ 0 ] & 8 & & ( a . s e a r c h a b l e = o [ 3 ] . l e n g t h > 5 ) , r [ 0 ] & 8 & & ( a . i t e m s = o [ 3 ] ) , r [ 0 ] & 1 0 7 3 7 4 1 8 2 5 & & ( a . r e a d o n l y = ! o [ 3 0 ] | | o [ 0 ] . i d ) , r [ 0 ] & 1 6 | r [ 1 ] & 1 & & ( a . $ $ s c o p e = { d i r t y : r , c t x : o } ) , ! t & & r [ 0 ] & 1 & & ( t = ! 0 , a . k e y O f S e l e c t e d = o [ 0 ] . o p t i o n s . c o l l e c t i o n I d , _ e ( ( ) = > t = ! 1 ) ) , e . $ s e t ( a ) } , i ( o ) { i | | ( I ( e . $ $ . f r a g m e n t , o ) , i = ! 0 ) } , o ( o ) { L ( e . $ $ . f r a g m e n t , o ) , i = ! 1 } , d ( o ) { z ( e , o ) } } } f u n c t i o n e 4 ( n ) { l e t e , t , i ; f u n c t i o n s ( o ) { n [ 1 9 ] ( o ) } l e t l = { i d : n [ 2 9 ] , i t e m s : n [ 8 ] , r e a d o n l y : ! n [ 3 0 ] } ; r e t u r n n [ 2 ] ! = = v o i d 0 & & ( l . k e y O f S e l e c t e d = n [ 2 ] ) , e = n e w B i ( { p r o p s : l } ) , n e . p u s h ( ( ) = > d e ( e , " k e y O f S e l e c t e d " , s ) ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( o , r ) { V ( e , o , r ) , i = ! 0 } , p ( o , r ) { c o n s t a = { } ; r [ 0 ] & 5 3 6 8 7 0 9 1 2 & & ( a . i d = o [ 2 9 ] ) , r [ 0 ] & 1 0 7 3 7 4 1 8 2 4 & & ( a . r e a d o n l y = ! o [ 3 0 ] ) , ! t & & r [ 0 ] & 4 & & ( t = ! 0 , a . k e y O f S e l e c t e d = o [ 2 ] , _ e ( ( ) = > t = ! 1 ) ) , e . $ s e t ( a ) } , i ( o ) { i | | ( I ( e . $ $ . f r a g m e n t , o ) , i = ! 0 ) } , o ( o ) { L ( e . $ $ . f r a g m e n t , o ) , i = ! 1 } , d ( o ) { z ( e , o ) } } } f u n c t i o n t 4 ( n ) { l e t e , t , i , s , l , o , r , a , u , f ; r e t u r n i = n e w p e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d " + ( n [ 3 0 ] ? " " : " r e a d o n l y " ) , i n l i n e E r r o r : ! 0 , n a m e : " s c h e m a . " + n [ 1 ] + " . o p t i o n s . c o l l e c t i o n I d " , $ $ s l o t s : { d e f a u l t : [ x C , ( { u n i q u e I d : d } ) = > ( { 2 9 : d } ) , ( { u n i q u e I d : d } ) = > [ d ? 5 3 6 8 7 0 9 1 2 : 0 ] ] } , $ $ s c o p e : { c t x : n } } } ) , r = n e w p e ( { p r o p s : { c l a s s : " f o r m - f i e l d f o r m - f i e l d - s i n g l e - m u l t i p l e - s e l e c t " + ( n [ 3 0 ] ? " " : " r e a d o n l y " ) , i n l i n e E r r o r : ! 0 , $ $ s l o t s : { d e f a u l t : [ e 4 , ( { u n i q u e I d : d } ) = > ( { 2 9 : d } ) , ( { u n i q u e I d : d } ) = > [ d ? 5 3 6 8 7 0 9 1 2 : 0 ] ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { e = y ( " d i v " ) , t = D ( ) , H ( i . $ $ . f r a g m e n t ) , s = D ( ) , l = y ( " d i v " ) , o = D ( ) , H ( r . $ $ . f r a g m e n t ) , a = D ( ) , u = y ( " d i v " ) , m ( e , " c l a s s " , " s e p a r a t o r " ) , m ( l , " c l a s s " , " s e p a r a t o r " ) , m ( u , " c l a s s " , " s e p a r a t o r " ) } , m ( d , p ) { S ( d , e , p ) , S ( d , t , p ) , V ( i , d , p ) , S ( d , s , p ) , S ( d , l , p ) , S ( d , o , p ) , V ( r , d , p ) , S ( d , a , p ) , S ( d , u , p ) , f = ! 0 } , p ( d , p ) { c o n s t h = { } ; p [ 0 ] & 1 0 7 3 7 4 1 8 2 4 & & ( h . c l a s s = " f o r m - f i e l d r e q u i r e d " + ( d [ 3 0 ] ? " " : " r e a d o n l y " ) ) , p [ 0 ] & 2 & & ( h . n a m e = " s c h e m a . " + d [ 1 ] + " . o p t i o n s . c o l l e c t i o n I d " ) , p [ 0 ] & 1 6 1 0 6 1 2 7 6 1 | p [ 1 ] & 1 & & ( h . $ $ s c o p e = { d i r t y : p , c t x : d } ) , i . $ s e t ( h ) ; c o n s t g = { } ; p [ 0 ] & 1 0 7 3 7 4 1 8 2 4 & & ( g . c l a s s = " f o r m - f i e l d f o r m - f i e l d - s i n g l e - m u l t i p l e - s e l e c t " + ( d [ 3 0 ] ? " " : " r e a d o n l y " ) ) , p [ 0 ] & 1 6 1 0 6 1 2 7 4 0 | p [ 1 ] & 1 & & ( g . $ $ s c o p e = { d i r t y : p , c t x : d } ) , r . $ s e t ( g ) } , i ( d ) { f | | ( I ( i . $ $ . f r a g m e n t , d ) , I ( r . $ $ . f r a g m e n t , d ) , f = ! 0 ) } , o ( d ) { L ( i . $ $ . f r a g m e n t , d ) , L ( r . $ $ . f r a g m e n t , d ) , f = ! 1 } , d ( d ) { d & & w ( e ) , d & & w ( t ) , z ( i , d ) , d & & w ( s ) , d & & w ( l ) , d & & w ( o ) , z ( r , d ) , d & & w ( a ) , d & & w ( u ) } } } f u n c t i o n O d ( n ) { l e t e , t , i , s , l , o ; r e t u r n t = n e w p e ( { p r o p s : { c l a s s : " f o r m - f i e l d " , n a m e : " s c h e m a . " + n [ 1 ] + " . o p t i o n s . m i n S e l e c t " , $ $ s l o t s : { d e f a u l t : [ n 4 , ( { u n i q u e I d : r } ) = > ( { 2 9 : r } ) , ( { u n i q u e I d : r } ) = > [ r ? 5 3 6 8 7 0 9 1 2 : 0 ] ] } , $ $ s c o p e : { c t x : n } } } ) , l = n e w p e ( { p r o p s : { c l a s s : " f o r m - f i e l d " , n a m e : " s c h e m a . " + n [ 1 ] + " . o p t i o n s . m a x S e l e c t " , $ $ s l o t s : { d e f a u l t : [ i 4 , ( { u n i q u e I d : r } ) = > ( { 2 9 : r } ) , ( { u n i q u e I d : r } ) = > [ r ? 5 3 6 8 7 0 9 1 2 : 0 ] ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { e = y ( " d i v " ) , H ( t . $ $ . f r a g m e n t ) , i = D ( ) , s = y ( " d i v " ) , H ( l . $ $ . f r a g m e n t ) , m ( e , " c l a s s " , " c o l - s m - 6 " ) , m ( s , " c l a s s " , " c o l - s m - 6 " ) } , m ( r , a ) { S ( r , e , a ) , V ( t , e , n u l l ) , S ( r , i , a ) , S ( r , s , a ) , V ( l , s , n u l l ) , o = ! 0 } , p ( r , a ) { c o n s t u = { } ; a [ 0 ] & 2 & & ( u . n a m e = " s c h e m a . " + r [ 1 ] + " . o p t i o n s . m i n S e l e c t " ) , a [ 0 ] & 5 3 6 8 7 0 9 1 3 | a [ 1 ] & 1 & & ( u . $ $ s c o p e = { d i r t y : a , c t x : r } ) , t . $ s e t ( u ) ; c o n s t f = { } ; a [ 0 ] & 2 & & ( f . n a m e = " s c h e m a . " + r [ 1 ] + " . o p t i o n s . m a x S e l e c t " ) , a [ 0 ] & 5 3 6 8 7 0 9 1 3 | a [ 1 ] & 1 & & ( f . $ $ s c o p e = { d i r t y : a , c t x : r } ) , l . $ s e t ( f ) } , i ( r ) { o | | ( I ( t . $ $ . f r a g m e n t , r ) , I ( l . $ $ . f r a g m e n t , r ) , o = ! 0 ) } , o ( r ) { L ( t . $ $ . f r a g m e n t , r ) , L ( l . $ $ . f r a g m e n t , r ) , o = ! 1 } , d ( r ) { r & & w ( e ) , z ( t ) , r & & w ( i ) , r & & w ( s ) , z ( l ) } } } f u n c t i o n n 4 ( n ) { l e t e , t , i , s , l , o , r , a ; r e t u r n { c ( ) { e = y ( " l a b e l " ) , t = W ( " M i n s e l e c t " ) , s = D ( ) , l = y ( " i n p u t " ) , m ( e , " f o r " , i = n [ 2 9 ] ) , m ( l , " t y p e " , " n u m b e r " ) , m ( l , " i d " , o = n [ 2 9 ] ) , m ( l , " s t e p " , " 1 " ) , m ( l , " m i n " , " 1 " ) , m ( l , " p l a c e h o l d e r " , " N o m i n l i m i t " ) } , m ( u , f ) { S ( u , e , f ) , b ( e , t ) , S ( u , s , f ) , S ( u , l , f ) , r e ( l , n [ 0 ] . o p t i o n s . m i n S e l e c t
` ),t=y("code"),t.textContent="username",i=W( ` ,
` ),s=y("code"),s.textContent="email",l=W( ` ,
` ),o=y("code"),o.textContent="emailVisibility",r=W( ` ,
` ),a=y("code"),a.textContent="verified",m(t,"class","txt-sm"),m(s,"class","txt-sm"),m(o,"class","txt-sm"),m(a,"class","txt-sm")},m(u,f){S(u,e,f),S(u,t,f),S(u,i,f),S(u,s,f),S(u,l,f),S(u,o,f),S(u,r,f),S(u,a,f)},d(u){u&&w(e),u&&w(t),u&&w(i),u&&w(s),u&&w(l),u&&w(o),u&&w(r),u&&w(a)}}}function p4(n){let e,t,i,s;function l(u){n[6](u,n[17],n[18],n[19])}function o(){return n[7](n[19])}var r=n[1][n[17].type];function a(u){let f={key:u[4](u[17])};return u[17]!==void 0&&(f.field=u[17]),{props:f}}return r&&(e=Rt(r,a(n)),ne.push(()=>de(e,"field",l)),e. $ on("remove",o),e. $ on("rename",n[8])),{c(){e&&H(e. $ $ .fragment),i=D()},m(u,f){e&&V(e,u,f),S(u,i,f),s=!0},p(u,f){n=u;const d={};if(f&1&&(d.key=n[4](n[17])),!t&&f&1&&(t=!0,d.field=n[17],_e(()=>t=!1)),f&1&&r!==(r=n[1][n[17].type])){if(e){ae();const p=e;L(p. $ $ .fragment,1,0,()=>{z(p,1)}),ue()}r?(e=Rt(r,a(n)),ne.push(()=>de(e,"field",l)),e. $ on("remove",o),e. $ on("rename",n[8]),H(e. $ $ .fragment),I(e. $ $ .fragment,1),V(e,i.parentNode,i)):e=null}else r&&e. $ set(d)},i(u){s||(e&&I(e. $ $ .fragment,u),s=!0)},o(u){e&&L(e. $ $ .fragment,u),s=!1},d(u){e&&z(e,u),u&&w(i)}}}function Id(n,e){let t,i,s,l;function o(a){e[9](a)}let r={index:e[19],disabled:e[17].toDelete||e[17].id&&e[17].system,dragHandleClass:"drag-handle-wrapper", $ $ slots:{default:[p4]}, $ $ scope:{ctx:e}};return e[0].schema!==void 0&&(r.list=e[0].schema),i=new Fl({props:r}),ne.push(()=>de(i,"list",o)),i. $ on("drag",e[10]),i. $ on("sort",e[11]),{key:n,first:null,c(){t=ke(),H(i. $ $ .fragment),this.first=t},m(a,u){S(a,t,u),V(i,a,u),l=!0},p(a,u){e=a;const f={};u&1&&(f.index=e[19]),u&1&&(f.disabled=e[17].toDelete||e[17].id&&e[17].system),u&1048577&&(f. $ $ scope={dirty:u,ctx:e}),!s&&u&1&&(s=!0,f.list=e[0].schema,_e(()=>s=!1)),i. $ set(f)},i(a){l||(I(i. $ $ .fragment,a),l=!0)},o(a){L(i. $ $ .fragment,a),l=!1},d(a){a&&w(t),z(i,a)}}}function m4(n){let e,t,i,s,l,o,r,a,u,f,d,p,h=[],g=new Map,_,v,k, $ ,C,T,M,O,E=n[0]. $ isAuth&&Ad(),A=n[0].schema;const P=R=>R[17];for(let R=0;R<A.length;R+=1){let q=Dd(n,A,R),j=P(q);g.set(j,h[R]=Id(j,q))}v=new tT({props:{class:"btn btn-block btn-outline"}}),v. $ on("select",n[12]);function N(R){n[13](R)}let F={};return n[0]!==void 0&&(F.collection=n[0]),T=new X $ ({props:F}),ne.push(()=>de(T,"collection",N)),{c(){e=y("div"),t=y("p"),i=W( ` System fields :
` ),s=y("code"),s.textContent="id",l=W( ` ,
` ),o=y("code"),o.textContent="created",r=W( ` ,
` ),a=y("code"),a.textContent="updated",u=D(),E&&E.c(),f=W( `
. ` ),d=D(),p=y("div");for(let R=0;R<h.length;R+=1)h[R].c();_=D(),H(v. $ $ .fragment),k=D(), $ =y("hr"),C=D(),H(T. $ $ .fragment),m(s,"class","txt-sm"),m(o,"class","txt-sm"),m(a,"class","txt-sm"),m(t,"class","txt-sm"),m(e,"class","block m-b-25"),m(p,"class","schema-fields")},m(R,q){S(R,e,q),b(e,t),b(t,i),b(t,s),b(t,l),b(t,o),b(t,r),b(t,a),b(t,u),E&&E.m(t,null),b(t,f),S(R,d,q),S(R,p,q);for(let j=0;j<h.length;j+=1)h[j]&&h[j].m(p,null);S(R,_,q),V(v,R,q),S(R,k,q),S(R, $ ,q),S(R,C,q),V(T,R,q),O=!0},p(R,[q]){R[0]. $ isAuth?E||(E=Ad(),E.c(),E.m(t,f)):E&&(E.d(1),E=null),q&55&&(A=R[0].schema,ae(),h=vt(h,q,P,1,R,A,g,p,Ut,Id,null,Dd),ue());const j={};!M&&q&1&&(M=!0,j.collection=R[0],_e(()=>M=!1)),T. $ set(j)},i(R){if(!O){for(let q=0;q<A.length;q+=1)I(h[q]);I(v. $ $ .fragment,R),I(T. $ $ .fragment,R),O=!0}},o(R){for(let q=0;q<h.length;q+=1)L(h[q]);L(v. $ $ .fragment,R),L(T. $ $ .fragment,R),O=!1},d(R){R&&w(e),E&&E.d(),R&&w(d),R&&w(p);for(let q=0;q<h.length;q+=1)h[q].d();R&&w(_),z(v,R),R&&w(k),R&&w( $ ),R&&w(C),z(T,R)}}}function h4(n,e,t){let i,{collection:s=new kn}=e;const l={text:yT,number:CT,bool:ET,email:k1,url:jT,editor:HT,date:sC,select:OC,json:PC,file:XC,relation:u4};function o(T){s.schema[T]&&(s.schema.splice(T,1),t(0,s))}function r(T="text"){const M=new wn({name:a(),type:T});M.onMountSelect=!0,s.schema.push(M),t(0,s)}function a(T="field"){let M="";for(;u(T+M);)++M;return T+M}function u(T){return!!s.schema.find(M=>M.name===T)}function f(T){return i.findIndex(M=>M===T)}function d(T,M){var O;!((O=s==null?void 0:s.schema)!=null&&O.length)||T===M||!M||t(0,s.indexes=s.indexes.map(E=>U.replaceIndexColumn(E,T,M)),s)}function p(T,M,O,E){O[E]=T,t(0,s)}const h=T=>o(T),g=T=>d(T.detail.oldName,T.detail.newName);function _(T){n. $ $ .not_equal(s.schema,T)&&(s.schema=T,t(0,s))}const v=T=>{if(!T.detail)return;const M=T.detail.target;M.style.opacity=0,setTimeout(()=>{var O;(O=M==null?void 0:M.style)==null||O.removeProperty("opacity")},0),T.detail.dataTransfer.setDragImage(M,0,0)},k=()=>{tn({})}, $ =T=>r(T.detail);function C(T){s=T,t(0,s)}return n. $ $ set=T=>{"collection"in T&&t(0,s=T.collection)},n. $ $ .update=()=>{n. $ $ .dirty&1&&typeof s.schema>"u"&&(t(0,s=s||new kn),t(0,s.schema=[],s)),n. $ $ .dirty&1&&(i=s.schema.filter(T=>!T.toDelete)||[])},[s,l,o,r,f,d,p,h,g,_,v,k, $ ,C]}class _4 extends be{constructor(e){super(),ge(this,e,h4,m4,he,{collection:0})}}const g4=n=>({isAdminOnly:n&512}),Ld=n=>({isAdminOnly:n[9]}),b4=n=>({isAdminOnly:n&512}),Pd=n=>({isAdminOnly:n[9]}),v4=n=>({isAdminOnly:n&512}),Nd=n=>({isAdminOnly:n[9]});function y4(n){let e,t;return e=new pe({props:{class:"form-field rule-field "+(n[4]?"requied":"")+" "+(n[9]?"disabled":""),name:n[3], $ $ slots:{default:[w4,({uniqueId:i})=>({18:i}),({uniqueId:i})=>i?262144:0]}, $ $ scope:{ctx:n}}}),{c(){H(e. $ $ .fragment)},m(i,s){V(e,i,s),t=!0},p(i,s){const l={};s&528&&(l.class="form-field rule-field "+(i[4]?"requied":"")+" "+(i[9]?"disabled":"")),s&8&&(l.name=i[3]),s&295655&&(l. $ $ scope={dirty:s,ctx:i}),e. $ set(l)},i(i){t||(I(e. $ $ .fragment,i),t=!0)},o(i){L(e. $ $ .fragment,i),t=!1},d(i){z(e,i)}}}function k4(n){let e;return{c(){e=y("div"),e.innerHTML='<span class="loader"></span>',m(e,"class","txt-center")},m(t,i){S(t,e,i)},p:te,i:te,o:te,d(t){t&&w(e)}}}function Fd(n){let e,t,i;return{c(){e=y("button"),e.innerHTML= ` < i class = "ri-lock-line" > < / i >
< span class = "txt" > Set Admins only < / s p a n > ` , m ( e , " t y p e " , " b u t t o n " ) , m ( e , " c l a s s " , " b t n b t n - s m b t n - t r a n s p a r e n t b t n - h i n t l o c k - t o g g l e s v e l t e - 1 a k u a z q " ) } , m ( s , l ) { S ( s , e , l ) , t | | ( i = J ( e , " c l i c k " , n [ 1 1 ] ) , t = ! 0 ) } , p : t e , d ( s ) { s & & w ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n R d ( n ) { l e t e , t , i , s , l ; r e t u r n { c ( ) { e = y ( " b u t t o n " ) , e . i n n e r H T M L = ` < s m a l l c l a s s = " t x t s v e l t e - 1 a k u a z q " > U n l o c k a n d s e t c u s t o m r u l e < / s m a l l >
< div class = "icon svelte-1akuazq" > < i class = "ri-lock-unlock-line svelte-1akuazq" > < / i > < / d i v > ` , m ( e , " t y p e " , " b u t t o n " ) , m ( e , " c l a s s " , " u n l o c k - o v e r l a y s v e l t e - 1 a k u a z q " ) , m ( e , " a r i a - l a b e l " , " U n l o c k a n d s e t c u s t o m r u l e " ) } , m ( o , r ) { S ( o , e , r ) , i = ! 0 , s | | ( l = J ( e , " c l i c k " , n [ 1 0 ] ) , s = ! 0 ) } , p : t e , i ( o ) { i | | ( o & & x e ( ( ) = > { i & & ( t | | ( t = V e ( e , J t , { d u r a t i o n : 1 5 0 , s t a r t : . 9 8 } , ! 0 ) ) , t . r u n ( 1 ) ) } ) , i = ! 0 ) } , o ( o ) { o & & ( t | | ( t = V e ( e , J t , { d u r a t i o n : 1 5 0 , s t a r t : . 9 8 } , ! 1 ) ) , t . r u n ( 0 ) ) , i = ! 1 } , d ( o ) { o & & w ( e ) , o & & t & & t . e n d ( ) , s = ! 1 , l ( ) } } } f u n c t i o n w 4 ( n ) { l e t e , t , i , s , l , o , r = n [ 9 ] ? " - A d m i n s o n l y " : " " , a , u , f , d , p , h , g , _ , v , k , $ ; c o n s t C = n [ 1 2 ] . b e f o r e L a b e l , T = k t ( C , n , n [ 1 5 ] , N d ) , M = n [ 1 2 ] . a f t e r L a b e l , O = k t ( M , n , n [ 1 5 ] , P d ) ; l e t E = ! n [ 9 ] & & F d ( n ) ; f u n c t i o n A ( j ) { n [ 1 4 ] ( j ) } v a r P = n [ 7 ] ; f u n c t i o n N ( j ) { l e t B = { i d : j [ 1 8 ] , b a s e C o l l e c t i o n : j [ 1 ] , d i s a b l e d : j [ 9 ] , p l a c e h o l d e r : j [ 9 ] ? " " : j [ 5 ] } ; r e t u r n j [ 0 ] ! = = v o i d 0 & & ( B . v a l u e = j [ 0 ] ) , { p r o p s : B } } P & & ( h = R t ( P , N ( n ) ) , n [ 1 3 ] ( h ) , n e . p u s h ( ( ) = > d e ( h , " v a l u e " , A ) ) ) ; l e t F = n [ 9 ] & & R d ( n ) ; c o n s t R = n [ 1 2 ] . d e f a u l t , q = k t ( R , n , n [ 1 5 ] , L d ) ; r e t u r n { c ( ) { e = y ( " d i v " ) , t = y ( " l a b e l " ) , T & & T . c ( ) , i = D ( ) , s = y ( " s p a n " ) , l = W ( n [ 2 ] ) , o = D ( ) , a = W ( r ) , u = D ( ) , O & & O . c ( ) , f = D ( ) , E & & E . c ( ) , p = D ( ) , h & & H ( h . $ $ . f r a g m e n t ) , _ = D ( ) , F & & F . c ( ) , v = D ( ) , k = y ( " d i v " ) , q & & q . c ( ) , m ( s , " c l a s s " , " t x t " ) , x ( s , " t x t - h i n t " , n [ 9 ] ) , m ( t , " f o r " , d = n [ 1 8 ] ) , m ( e , " c l a s s " , " i n p u t - w r a p p e r s v e l t e - 1 a k u a z q " ) , m ( k , " c l a s s " , " h e l p - b l o c k " ) } , m ( j , B ) { S ( j , e , B ) , b ( e , t ) , T & & T . m ( t , n u l l ) , b ( t , i ) , b ( t , s ) , b ( s , l ) , b ( s , o ) , b ( s , a ) , b ( t , u ) , O & & O . m ( t , n u l l ) , b ( t , f ) , E & & E . m ( t , n u l l ) , b ( e , p ) , h & & V ( h , e , n u l l ) , b ( e , _ ) , F & & F . m ( e , n u l l ) , S ( j , v , B ) , S ( j , k , B ) , q & & q . m ( k , n u l l ) , $ = ! 0 } , p ( j , B ) { T & & T . p & & ( ! $ | | B & 3 3 2 8 0 ) & & S t ( T , C , j , j [ 1 5 ] , $ ? w t ( C , j [ 1 5 ] , B , v 4 ) : $ t ( j [ 1 5 ] ) , N d ) , ( ! $ | | B & 4 ) & & s e ( l , j [ 2 ] ) , ( ! $ | | B & 5 1 2 ) & & r ! = = ( r = j [ 9 ] ? " - A d m i n s o n l y " : " " ) & & s e ( a , r ) , ( ! $ | | B & 5 1 2 ) & & x ( s , " t x t - h i n t " , j [ 9 ] ) , O & & O . p & & ( ! $ | | B & 3 3 2 8 0 ) & & S t ( O , M , j , j [ 1 5 ] , $ ? w t ( M , j [ 1 5 ] , B , b 4 ) : $ t ( j [ 1 5 ] ) , P d ) , j [ 9 ] ? E & & ( E . d ( 1 ) , E = n u l l ) : E ? E . p ( j , B ) : ( E = F d ( j ) , E . c ( ) , E . m ( t , n u l l ) ) , ( ! $ | | B & 2 6 2 1 4 4 & & d ! = = ( d = j [ 1 8 ] ) ) & & m ( t , " f o r " , d ) ; c o n s t Y = { } ; i f ( B & 2 6 2 1 4 4 & & ( Y . i d = j [ 1 8 ] ) , B & 2 & & ( Y . b a s e C o l l e c t i o n = j [ 1 ] ) , B & 5 1 2 & & ( Y . d i s a b l e d = j [ 9 ] ) , B & 5 4 4 & & ( Y . p l a c e h o l d e r = j [ 9 ] ? " " : j [ 5 ] ) , ! g & & B & 1 & & ( g = ! 0 , Y . v a l u e = j [ 0 ] , _ e ( ( ) = > g = ! 1 ) ) , B & 1 2 8 & & P ! = = ( P = j [ 7 ] ) ) { i f ( h ) { a e ( ) ; c o n s t Q = h ; L ( Q . $ $ . f r a g m e n t , 1 , 0 , ( ) = > { z ( Q , 1 ) } ) , u e ( ) } P ? ( h = R t ( P , N ( j ) ) , j [ 1 3 ] ( h ) , n e . p u s h ( ( ) = > d e ( h , " v a l u e " , A ) ) , H ( h . $ $ . f r a g m e n t ) , I ( h . $ $ . f r a g m e n t , 1 ) , V ( h , e , _ ) ) : h = n u l l } e l s e P & & h . $ s e t ( Y ) ; j [ 9 ] ? F ? ( F . p ( j , B ) , B & 5 1 2 & & I ( F , 1 ) ) : ( F = R d ( j ) , F . c ( ) , I ( F , 1 ) , F . m ( e , n u l l ) ) : F & & ( a e ( ) , L ( F , 1 , 1 , ( ) = > { F = n u l l } ) , u e ( ) ) , q & & q . p & & ( ! $ | | B & 3 3 2 8 0 ) & & S t ( q , R , j , j [ 1 5 ] , $ ? w t ( R , j [ 1 5 ] , B , g 4 ) : $ t ( j [ 1 5 ] ) , L d ) } , i ( j ) { $ | | ( I ( T , j ) , I ( O , j ) , h & & I ( h . $ $ . f r a g m e n t , j ) , I ( F ) , I ( q , j ) , $ = ! 0 ) } , o ( j ) { L ( T , j ) , L ( O , j ) , h & & L ( h . $ $ . f r a g m e n t , j ) , L ( F ) , L ( q , j ) , $ = ! 1 } , d ( j ) { j & & w ( e ) , T & & T . d ( j ) , O & & O . d ( j ) , E & & E . d ( ) , n [ 1 3 ] ( n u l l ) , h & & z ( h ) , F & & F . d ( ) , j & & w ( v ) , j & & w ( k ) , q & & q . d ( j ) } } } f u n c t i o n S 4 ( n ) { l e t e , t , i , s ; c o n s t l = [ k 4 , y 4 ] , o = [ ] ; f u n c t i o n r ( a , u ) { r e t u r n a [ 8 ] ? 0 : 1 } r e t u r n e = r ( n ) , t = o [ e ] = l [ e ] ( n ) , { c ( ) { t . c ( ) , i = k e ( ) } , m ( a , u ) { o [ e ] . m ( a , u ) , S ( a , i , u ) , s = ! 0 } , p ( a , [ u ] ) { l e t f = e ; e = r ( a ) , e = = = f ? o [ e ] . p ( a , u ) : ( a e ( ) , L ( o [ f ] , 1 , 1 , ( ) = > { o [ f ] = n u l l } ) , u e ( ) , t = o [ e ] , t ? t . p ( a , u ) : ( t = o [ e ] = l [ e ] ( a ) , t . c ( ) ) , I ( t , 1 ) , t . m ( i . p a r e n t N o d e , i ) ) } , i ( a ) { s | | ( I ( t ) , s = ! 0 ) } , o ( a ) { L ( t ) , s = ! 1 } , d ( a ) { o [ e ] . d ( a ) , a & & w ( i ) } } } l e t q d ; f u n c t i o n $ 4 ( n , e , t ) { l e t i , { $ $ s l o t s : s = { } , $ $ s c o p e : l } = e , { c o l l e c t i o n : o = n u l l } = e , { r u l e : r = n u l l } = e , { l a b e l : a = " R u l e " } = e , { f o r m K e y : u = " r u l e " } = e , { r e q u i r e d : f = ! 1 } = e , { p l a c e h o l d e r : d = " L e a v e e m p t y t o g r a n t e v e r y o n e a c c e s s . . . " } = e , p = n u l l , h = n u l l , g = q d , _ = ! 1 ; v ( ) ; a s y n c f u n c t i o n v ( ) { g | | _ | | ( t ( 8 , _ = ! 0 ) , t ( 7 , g = ( a w a i t u t ( ( ) = > i m p o r t ( " . / F i l t e r A u t o c o m p l e t e I n p u t - 1 b a 8 a 8 e e . j s " ) , [ " . / F i l t e r A u t o c o m p l e t e I n p u t - 1 b a 8 a 8 e e . j s " , " . / i n d e x - 8 b 5 7 b 6 c d . j s " ] , i m p o r t . m e t a . u r l ) ) . d e f a u l t ) , q d = g , t ( 8 , _ = ! 1 ) ) } a s y n c f u n c t i o n k ( ) { t ( 0 , r = h | | " " ) , a w a i t c n ( ) , p = = n u l l | | p . f o c u s ( ) } a s y n c f u n c t i o n $ ( ) { h = r , t ( 0 , r = n u l l ) } f u n c t i o n C ( M ) { n e [ M ? " u n s h i f t " : " p u s h " ] ( ( ) = > { p = M , t ( 6 , p ) } ) } f u n c t i o n T ( M ) { r = M , t ( 0 , r ) } r e t u r n n . $ $ s e t = M = > { " c o l l e c t i o n " i n M & & t ( 1 , o = M . c o l l e c t i o n ) , " r u l e " i n M & & t ( 0 , r = M . r u l e ) , " l a b e l " i n M & & t ( 2 , a = M . l a b e l ) , " f o r m K e y " i n M & & t ( 3 , u = M . f o r m K e y ) , " r e q u i r e d " i n M & & t ( 4 , f = M . r e q u i r e d ) , " p l a c e h o l d e r " i n M & & t ( 5 , d = M . p l a c e h o l d e r ) , " $ $ s c o p e " i n M & & t ( 1 5 , l = M . $ $ s c o p e ) } , n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 1 & & t ( 9 , i = r = = = n u l l ) } , [ r , o , a , u , f , d , p , g , _ , i , k , $ , s , C , T , l ] } c l a s s E s e x t e n d s b e { c o n s t r u c t o r ( e ) { s u p e r ( ) , g e ( t h i s , e , $ 4 , S 4 , h e , { c o l l e c t i o n : 1 , r u l e : 0 , l a b e l : 2 , f o r m K e y : 3 , r e q u i r e d : 4 , p l a c e h o l d e r : 5 } ) } } f u n c t i o n j d ( n , e , t ) { c o n s t i = n . s l i
2023-05-17 21:41:42 +02:00
< code > @ request . query . * < / c o d e >
< code > @ request . data . * < / c o d e >
2023-05-24 22:18:44 +02:00
< code > @ request . auth . * < / c o d e > ` , h = D ( ) , g = y ( " h r " ) , _ = D ( ) , v = y ( " p " ) , v . i n n e r H T M L = " Y o u c o u l d a l s o a d d c o n s t r a i n t s a n d q u e r y o t h e r c o l l e c t i o n s u s i n g t h e < e m > @ c o l l e c t i o n < / e m > f i l t e r : " , k = D ( ) , $ = y ( " d i v " ) , $ . i n n e r H T M L = " < c o d e > @ c o l l e c t i o n . A N Y _ C O L L E C T I O N _ N A M E . * < / c o d e > " , C = D ( ) , T = y ( " h r " ) , M = D ( ) , O = y ( " p " ) , O . i n n e r H T M L = ` E x a m p l e r u l e :
2023-05-17 21:41:42 +02:00
< br / >
2023-05-24 22:18:44 +02:00
< code > @ request . auth . id != & quot ; & quot ; & amp ; & amp ; created & gt ; & quot ; 2022 - 01 - 01 00 : 00 : 00 & quot ; < / c o d e > ` , m ( s , " c l a s s " , " m - b - 0 " ) , m ( o , " c l a s s " , " i n l i n e - f l e x f l e x - g a p - 5 " ) , m ( a , " c l a s s " , " m - t - 1 0 m - b - 5 " ) , m ( f , " c l a s s " , " m - b - 0 " ) , m ( p , " c l a s s " , " i n l i n e - f l e x f l e x - g a p - 5 " ) , m ( g , " c l a s s " , " m - t - 1 0 m - b - 5 " ) , m ( v , " c l a s s " , " m - b - 0 " ) , m ( $ , " c l a s s " , " i n l i n e - f l e x f l e x - g a p - 5 " ) , m ( T , " c l a s s " , " m - t - 1 0 m - b - 5 " ) , m ( i , " c l a s s " , " c o n t e n t " ) , m ( t , " c l a s s " , " a l e r t a l e r t - w a r n i n g m - 0 " ) } , m ( F , R ) { S ( F , e , R ) , b ( e , t ) , b ( t , i ) , b ( i , s ) , b ( i , l ) , b ( i , o ) ; f o r ( l e t q = 0 ; q < N . l e n g t h ; q + = 1 ) N [ q ] & & N [ q ] . m ( o , n u l l ) ; b ( i , r ) , b ( i , a ) , b ( i , u ) , b ( i , f ) , b ( i , d ) , b ( i , p ) , b ( i , h ) , b ( i , g ) , b ( i , _ ) , b ( i , v ) , b ( i , k ) , b ( i , $ ) , b ( i , C ) , b ( i , T ) , b ( i , M ) , b ( i , O ) , A = ! 0 } , p ( F , R ) { i f ( R & 4 ) { P = F [ 2 ] ; l e t q ; f o r ( q = 0 ; q < P . l e n g t h ; q + = 1 ) { c o n s t j = j d ( F , P , q ) ; N [ q ] ? N [ q ] . p ( j , R ) : ( N [ q ] = z d ( j ) , N [ q ] . c ( ) , N [ q ] . m ( o , n u l l ) ) } f o r ( ; q < N . l e n g t h ; q + = 1 ) N [ q ] . d ( 1 ) ; N . l e n g t h = P . l e n g t h } } , i ( F ) { A | | ( F & & x e ( ( ) = > { A & & ( E | | ( E = V e ( e , r t , { d u r a t i o n : 1 5 0 } , ! 0 ) ) , E . r u n ( 1 ) ) } ) , A = ! 0 ) } , o ( F ) { F & & ( E | | ( E = V e ( e , r t , { d u r a t i o n : 1 5 0 } , ! 1 ) ) , E . r u n ( 0 ) ) , A = ! 1 } , d ( F ) { F & & w ( e ) , h t ( N , F ) , F & & E & & E . e n d ( ) } } } f u n c t i o n z d ( n ) { l e t e , t = n [ 1 1 ] + " " , i ; r e t u r n { c ( ) { e = y ( " c o d e " ) , i = W ( t ) } , m ( s , l ) { S ( s , e , l ) , b ( e , i ) } , p ( s , l ) { l & 4 & & t ! = = ( t = s [ 1 1 ] + " " ) & & s e ( i , t ) } , d ( s ) { s & & w ( e ) } } } f u n c t i o n H d ( n ) { l e t e , t , i , s , l , o , r , a , u ; f u n c t i o n f ( v ) { n [ 6 ] ( v ) } l e t d = { l a b e l : " C r e a t e r u l e " , f o r m K e y : " c r e a t e R u l e " , c o l l e c t i o n : n [ 0 ] , $ $ s l o t s : { a f t e r L a b e l : [ T 4 , ( { i s A d m i n O n l y : v } ) = > ( { 1 0 : v } ) , ( { i s A d m i n O n l y : v } ) = > v ? 1 0 2 4 : 0 ] } , $ $ s c o p e : { c t x : n } } ; n [ 0 ] . c r e a t e R u l e ! = = v o i d 0 & & ( d . r u l e = n [ 0 ] . c r e a t e R u l e ) , e = n e w E s ( { p r o p s : d } ) , n e . p u s h ( ( ) = > d e ( e , " r u l e " , f ) ) ; f u n c t i o n p ( v ) { n [ 7 ] ( v ) } l e t h = { l a b e l : " U p d a t e r u l e " , f o r m K e y : " u p d a t e R u l e " , c o l l e c t i o n : n [ 0 ] } ; n [ 0 ] . u p d a t e R u l e ! = = v o i d 0 & & ( h . r u l e = n [ 0 ] . u p d a t e R u l e ) , s = n e w E s ( { p r o p s : h } ) , n e . p u s h ( ( ) = > d e ( s , " r u l e " , p ) ) ; f u n c t i o n g ( v ) { n [ 8 ] ( v ) } l e t _ = { l a b e l : " D e l e t e r u l e " , f o r m K e y : " d e l e t e R u l e " , c o l l e c t i o n : n [ 0 ] } ; r e t u r n n [ 0 ] . d e l e t e R u l e ! = = v o i d 0 & & ( _ . r u l e = n [ 0 ] . d e l e t e R u l e ) , r = n e w E s ( { p r o p s : _ } ) , n e . p u s h ( ( ) = > d e ( r , " r u l e " , g ) ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) , i = D ( ) , H ( s . $ $ . f r a g m e n t ) , o = D ( ) , H ( r . $ $ . f r a g m e n t ) } , m ( v , k ) { V ( e , v , k ) , S ( v , i , k ) , V ( s , v , k ) , S ( v , o , k ) , V ( r , v , k ) , u = ! 0 } , p ( v , k ) { c o n s t $ = { } ; k & 1 & & ( $ . c o l l e c t i o n = v [ 0 ] ) , k & 1 7 4 0 8 & & ( $ . $ $ s c o p e = { d i r t y : k , c t x : v } ) , ! t & & k & 1 & & ( t = ! 0 , $ . r u l e = v [ 0 ] . c r e a t e R u l e , _ e ( ( ) = > t = ! 1 ) ) , e . $ s e t ( $ ) ; c o n s t C = { } ; k & 1 & & ( C . c o l l e c t i o n = v [ 0 ] ) , ! l & & k & 1 & & ( l = ! 0 , C . r u l e = v [ 0 ] . u p d a t e R u l e , _ e ( ( ) = > l = ! 1 ) ) , s . $ s e t ( C ) ; c o n s t T = { } ; k & 1 & & ( T . c o l l e c t i o n = v [ 0 ] ) , ! a & & k & 1 & & ( a = ! 0 , T . r u l e = v [ 0 ] . d e l e t e R u l e , _ e ( ( ) = > a = ! 1 ) ) , r . $ s e t ( T ) } , i ( v ) { u | | ( I ( e . $ $ . f r a g m e n t , v ) , I ( s . $ $ . f r a g m e n t , v ) , I ( r . $ $ . f r a g m e n t , v ) , u = ! 0 ) } , o ( v ) { L ( e . $ $ . f r a g m e n t , v ) , L ( s . $ $ . f r a g m e n t , v ) , L ( r . $ $ . f r a g m e n t , v ) , u = ! 1 } , d ( v ) { z ( e , v ) , v & & w ( i ) , z ( s , v ) , v & & w ( o ) , z ( r , v ) } } } f u n c t i o n B d ( n ) { l e t e , t , i ; r e t u r n { c ( ) { e = y ( " i " ) , m ( e , " c l a s s " , " r i - i n f o r m a t i o n - l i n e l i n k - h i n t " ) } , m ( s , l ) { S ( s , e , l ) , t | | ( i = O e ( B e . c a l l ( n u l l , e , { t e x t : ' T h e C r e a t e r u l e i s e x e c u t e d a f t e r a " d r y s a v e " o f t h e s u b m i t t e d d a t a , g i v i n g y o u a c c e s s t o t h e m a i n r e c o r d f i e l d s a s i n e v e r y o t h e r r u l e . ' , p o s i t i o n : " t o p " } ) ) , t = ! 0 ) } , d ( s ) { s & & w ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n T 4 ( n ) { l e t e , t = ! n [ 1 0 ] & & B d ( ) ; r e t u r n { c ( ) { t & & t . c ( ) , e = k e ( ) } , m ( i , s ) { t & & t . m ( i , s ) , S ( i , e , s ) } , p ( i , s ) { i [ 1 0 ] ? t & & ( t . d ( 1 ) , t = n u l l ) : t | | ( t = B d ( ) , t . c ( ) , t . m ( e . p a r e n t N o d e , e ) ) } , d ( i ) { t & & t . d ( i ) , i & & w ( e ) } } } f u n c t i o n U d ( n ) { l e t e , t , i ; f u n c t i o n s ( o ) { n [ 9 ] ( o ) } l e t l = { l a b e l : " M a n a g e r u l e " , f o r m K e y : " o p t i o n s . m a n a g e R u l e " , p l a c e h o l d e r : " " , r e q u i r e d : n [ 0 ] . o p t i o n s . m a n a g e R u l e ! = = n u l l , c o l l e c t i o n : n [ 0 ] , $ $ s l o t s : { d e f a u l t : [ C 4 ] } , $ $ s c o p e : { c t x : n } } ; r e t u r n n [ 0 ] . o p t i o n s . m a n a g e R u l e ! = = v o i d 0 & & ( l . r u l e = n [ 0 ] . o p t i o n s . m a n a g e R u l e ) , e = n e w E s ( { p r o p s : l } ) , n e . p u s h ( ( ) = > d e ( e , " r u l e " , s ) ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( o , r ) { V ( e , o , r ) , i = ! 0 } , p ( o , r ) { c o n s t a = { } ; r & 1 & & ( a . r e q u i r e d = o [ 0 ] . o p t i o n s . m a n a g e R u l e ! = = n u l l ) , r & 1 & & ( a . c o l l e c t i o n = o [ 0 ] ) , r & 1 6 3 8 4 & & ( a . $ $ s c o p e = { d i r t y : r , c t x : o } ) , ! t & & r & 1 & & ( t = ! 0 , a . r u l e = o [ 0 ] . o p t i o n s . m a n a g e R u l e , _ e ( ( ) = > t = ! 1 ) ) , e . $ s e t ( a ) } , i ( o ) { i | | ( I ( e . $ $ . f r a g m e n t , o ) , i = ! 0 ) } , o ( o ) { L ( e . $ $ . f r a g m e n t , o ) , i = ! 1 } , d ( o ) { z ( e , o ) } } } f u n c t i o n C 4 ( n ) { l e t e , t , i ; r e t u r n { c ( ) { e = y ( " p " ) , e . t e x t C o n t e n t = ` T h i s A P I r u l e g i v e s a d m i n - l i k e p e r m i s s i o n s t o a l l o w f u l l y m a n a g i n g t h e a u t h r e c o r d ( s ) , e g .
2023-05-17 21:41:42 +02:00
changing the password without requiring to enter the old one , directly updating the verified
2023-05-24 22:18:44 +02:00
state or email , etc . ` ,t=D(),i=y("p"),i.innerHTML="This rule is executed in addition to the <code>create</code> and <code>update</code> API rules."},m(s,l){S(s,e,l),S(s,t,l),S(s,i,l)},p:te,d(s){s&&w(e),s&&w(t),s&&w(i)}}}function M4(n){var R,q;let e,t,i,s,l,o=n[1]?"Hide available fields":"Show available fields",r,a,u,f,d,p,h,g,_,v,k, $ ,C,T,M=n[1]&&Vd(n);function O(j){n[4](j)}let E={label:"List/Search rule",formKey:"listRule",collection:n[0]};n[0].listRule!==void 0&&(E.rule=n[0].listRule),f=new Es({props:E}),ne.push(()=>de(f,"rule",O));function A(j){n[5](j)}let P={label:"View rule",formKey:"viewRule",collection:n[0]};n[0].viewRule!==void 0&&(P.rule=n[0].viewRule),h=new Es({props:P}),ne.push(()=>de(h,"rule",A));let N=!((R=n[0])!=null&&R. $ isView)&&Hd(n),F=((q=n[0])==null?void 0:q. $ isAuth)&&Ud(n);return{c(){e=y("div"),t=y("div"),i=y("p"),i.innerHTML= ` All rules follow the
2023-05-17 21:41:42 +02:00
< a href = "https://pocketbase.io/docs/api-rules-and-filters/" target = "_blank" rel = "noopener noreferrer" > PocketBase filter syntax and operators
2023-05-24 22:18:44 +02:00
< / a > . ` , s = D ( ) , l = y ( " b u t t o n " ) , r = W ( o ) , a = D ( ) , M & & M . c ( ) , u = D ( ) , H ( f . $ $ . f r a g m e n t ) , p = D ( ) , H ( h . $ $ . f r a g m e n t ) , _ = D ( ) , N & & N . c ( ) , v = D ( ) , F & & F . c ( ) , k = k e ( ) , m ( l , " t y p e " , " b u t t o n " ) , m ( l , " c l a s s " , " e x p a n d - h a n d l e t x t - s m t x t - b o l d t x t - n o w r a p l i n k - h i n t " ) , m ( t , " c l a s s " , " f l e x t x t - s m t x t - h i n t m - b - 5 " ) , m ( e , " c l a s s " , " b l o c k m - b - s m h a n d l e " ) } , m ( j , B ) { S ( j , e , B ) , b ( e , t ) , b ( t , i ) , b ( t , s ) , b ( t , l ) , b ( l , r ) , b ( e , a ) , M & & M . m ( e , n u l l ) , S ( j , u , B ) , V ( f , j , B ) , S ( j , p , B ) , V ( h , j , B ) , S ( j , _ , B ) , N & & N . m ( j , B ) , S ( j , v , B ) , F & & F . m ( j , B ) , S ( j , k , B ) , $ = ! 0 , C | | ( T = J ( l , " c l i c k " , n [ 3 ] ) , C = ! 0 ) } , p ( j , [ B ] ) { v a r Z , G ; ( ! $ | | B & 2 ) & & o ! = = ( o = j [ 1 ] ? " H i d e a v a i l a b l e f i e l d s " : " S h o w a v a i l a b l e f i e l d s " ) & & s e ( r , o ) , j [ 1 ] ? M ? ( M . p ( j , B ) , B & 2 & & I ( M , 1 ) ) : ( M = V d ( j ) , M . c ( ) , I ( M , 1 ) , M . m ( e , n u l l ) ) : M & & ( a e ( ) , L ( M , 1 , 1 , ( ) = > { M = n u l l } ) , u e ( ) ) ; c o n s t Y = { } ; B & 1 & & ( Y . c o l l e c t i o n = j [ 0 ] ) , ! d & & B & 1 & & ( d = ! 0 , Y . r u l e = j [ 0 ] . l i s t R u l e , _ e ( ( ) = > d = ! 1 ) ) , f . $ s e t ( Y ) ; c o n s t Q = { } ; B & 1 & & ( Q . c o l l e c t i o n = j [ 0 ] ) , ! g & & B & 1 & & ( g = ! 0 , Q . r u l e = j [ 0 ] . v i e w R u l e , _ e ( ( ) = > g = ! 1 ) ) , h . $ s e t ( Q ) , ( Z = j [ 0 ] ) ! = n u l l & & Z . $ i s V i e w ? N & & ( a e ( ) , L ( N , 1 , 1 , ( ) = > { N = n u l l } ) , u e ( ) ) : N ? ( N . p ( j , B ) , B & 1 & & I ( N , 1 ) ) : ( N = H d ( j ) , N . c ( ) , I ( N , 1 ) , N . m ( v . p a r e n t N o d e , v ) ) , ( G = j [ 0 ] ) ! = n u l l & & G . $ i s A u t h ? F ? ( F . p ( j , B ) , B & 1 & & I ( F , 1 ) ) : ( F = U d ( j ) , F . c ( ) , I ( F , 1 ) , F . m ( k . p a r e n t N o d e , k ) ) : F & & ( a e ( ) , L ( F , 1 , 1 , ( ) = > { F = n u l l } ) , u e ( ) ) } , i ( j ) { $ | | ( I ( M ) , I ( f . $ $ . f r a g m e n t , j ) , I ( h . $ $ . f r a g m e n t , j ) , I ( N ) , I ( F ) , $ = ! 0 ) } , o ( j ) { L ( M ) , L ( f . $ $ . f r a g m e n t , j ) , L ( h . $ $ . f r a g m e n t , j ) , L ( N ) , L ( F ) , $ = ! 1 } , d ( j ) { j & & w ( e ) , M & & M . d ( ) , j & & w ( u ) , z ( f , j ) , j & & w ( p ) , z ( h , j ) , j & & w ( _ ) , N & & N . d ( j ) , j & & w ( v ) , F & & F . d ( j ) , j & & w ( k ) , C = ! 1 , T ( ) } } } f u n c t i o n O 4 ( n , e , t ) { l e t i , { c o l l e c t i o n : s = n e w k n } = e , l = ! 1 ; c o n s t o = ( ) = > t ( 1 , l = ! l ) ; f u n c t i o n r ( h ) { n . $ $ . n o t _ e q u a l ( s . l i s t R u l e , h ) & & ( s . l i s t R u l e = h , t ( 0 , s ) ) } f u n c t i o n a ( h ) { n . $ $ . n o t _ e q u a l ( s . v i e w R u l e , h ) & & ( s . v i e w R u l e = h , t ( 0 , s ) ) } f u n c t i o n u ( h ) { n . $ $ . n o t _ e q u a l ( s . c r e a t e R u l e , h ) & & ( s . c r e a t e R u l e = h , t ( 0 , s ) ) } f u n c t i o n f ( h ) { n . $ $ . n o t _ e q u a l ( s . u p d a t e R u l e , h ) & & ( s . u p d a t e R u l e = h , t ( 0 , s ) ) } f u n c t i o n d ( h ) { n . $ $ . n o t _ e q u a l ( s . d e l e t e R u l e , h ) & & ( s . d e l e t e R u l e = h , t ( 0 , s ) ) } f u n c t i o n p ( h ) { n . $ $ . n o t _ e q u a l ( s . o p t i o n s . m a n a g e R u l e , h ) & & ( s . o p t i o n s . m a n a g e R u l e = h , t ( 0 , s ) ) } r e t u r n n . $ $ s e t = h = > { " c o l l e c t i o n " i n h & & t ( 0 , s = h . c o l l e c t i o n ) } , n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 1 & & t ( 2 , i = U . g e t A l l C o l l e c t i o n I d e n t i f i e r s ( s ) ) } , [ s , l , i , o , r , a , u , f , d , p ] } c l a s s E 4 e x t e n d s b e { c o n s t r u c t o r ( e ) { s u p e r ( ) , g e ( t h i s , e , O 4 , M 4 , h e , { c o l l e c t i o n : 0 } ) } } f u n c t i o n W d ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 9 ] = e [ t ] , i } f u n c t i o n D 4 ( n ) { l e t e , t , i , s ; f u n c t i o n l ( a ) { n [ 5 ] ( a ) } v a r o = n [ 1 ] ; f u n c t i o n r ( a ) { l e t u = { i d : a [ 8 ] , p l a c e h o l d e r : " e g . S E L E C T i d , n a m e f r o m p o s t s " , l a n g u a g e : " s q l - s e l e c t " , m i n H e i g h t : " 1 5 0 " } ; r e t u r n a [ 0 ] . o p t i o n s . q u e r y ! = = v o i d 0 & & ( u . v a l u e = a [ 0 ] . o p t i o n s . q u e r y ) , { p r o p s : u } } r e t u r n o & & ( e = R t ( o , r ( n ) ) , n e . p u s h ( ( ) = > d e ( e , " v a l u e " , l ) ) , e . $ o n ( " c h a n g e " , n [ 6 ] ) ) , { c ( ) { e & & H ( e . $ $ . f r a g m e n t ) , i = k e ( ) } , m ( a , u ) { e & & V ( e , a , u ) , S ( a , i , u ) , s = ! 0 } , p ( a , u ) { c o n s t f = { } ; i f ( u & 2 5 6 & & ( f . i d = a [ 8 ] ) , ! t & & u & 1 & & ( t = ! 0 , f . v a l u e = a [ 0 ] . o p t i o n s . q u e r y , _ e ( ( ) = > t = ! 1 ) ) , u & 2 & & o ! = = ( o = a [ 1 ] ) ) { i f ( e ) { a e ( ) ; c o n s t d = e ; L ( d . $ $ . f r a g m e n t , 1 , 0 , ( ) = > { z ( d , 1 ) } ) , u e ( ) } o ? ( e = R t ( o , r ( a ) ) , n e . p u s h ( ( ) = > d e ( e , " v a l u e " , l ) ) , e . $ o n ( " c h a n g e " , a [ 6 ] ) , H ( e . $ $ . f r a g m e n t ) , I ( e . $ $ . f r a g m e n t , 1 ) , V ( e , i . p a r e n t N o d e , i ) ) : e = n u l l } e l s e o & & e . $ s e t ( f ) } , i ( a ) { s | | ( e & & I ( e . $ $ . f r a g m e n t , a ) , s = ! 0 ) } , o ( a ) { e & & L ( e . $ $ . f r a g m e n t , a ) , s = ! 1 } , d ( a ) { a & & w ( i ) , e & & z ( e , a ) } } } f u n c t i o n A 4 ( n ) { l e t e ; r e t u r n { c ( ) { e = y ( " t e x t a r e a " ) , e . d i s a b l e d = ! 0 , m ( e , " r o w s " , " 7 " ) , m ( e , " p l a c e h o l d e r " , " L o a d i n g . . . " ) } , m ( t , i ) { S ( t , e , i ) } , p : t e , i : t e , o : t e , d ( t ) { t & & w ( e ) } } } f u n c t i o n Y d ( n ) { l e t e , t , i = n [ 3 ] , s = [ ] ; f o r ( l e t l = 0 ; l < i . l e n g t h ; l + = 1 ) s [ l ] = K d ( W d ( n , i , l ) ) ; r e t u r n { c ( ) { e = y ( " d i v " ) , t = y ( " d i v " ) ; f o r ( l e t l = 0 ; l < s . l e n g t h ; l + = 1 ) s [ l ] . c ( ) ; m ( t , " c l a s s " , " c o n t e n t " ) , m ( e , " c l a s s " , " h e l p - b l o c k h e l p - b l o c k - e r r o r " ) } , m ( l , o ) { S ( l , e , o ) , b ( e , t ) ; f o r ( l e t r = 0 ; r < s . l e n g t h ; r + = 1 ) s [ r ] & & s [ r ] . m ( t , n u l l ) } , p ( l , o ) { i f ( o & 8 ) { i = l [ 3 ] ; l e t r ; f o r ( r = 0 ; r < i . l e n g t h ; r + = 1 ) { c o n s t a = W d ( l , i , r ) ; s [ r ] ? s [ r ] . p ( a , o ) : ( s [ r ] = K d ( a ) , s [ r ] . c ( ) , s [ r ] . m ( t , n u l l ) ) } f o r ( ; r < s . l e n g t h ; r + = 1 ) s [ r ] . d ( 1 ) ; s . l e n g t h = i . l e n g t h } } , d ( l ) { l & & w ( e ) , h t ( s , l ) } } } f u n c t i o n K d ( n ) { l e t e , t = n [ 9 ] + " " , i ; r e t u r n { c ( ) { e = y ( " p " ) , i = W ( t ) } , m ( s , l ) { S ( s , e , l ) , b ( e , i ) } , p ( s , l ) { l & 8 & & t ! = = ( t = s [ 9 ] + " " ) & & s e ( i , t ) } , d ( s ) { s & & w ( e ) } } } f u n c t i o n I 4 ( n ) { l e t e , t , i , s , l , o , r , a , u , f , d ; c o n s t p = [ A 4 , D 4 ] , h = [ ] ; f u n c t i o n g ( v , k ) { r e t u r n v [ 2 ] ? 0 : 1 } l = g ( n ) , o = h [ l ] = p [ l ] ( n ) ; l e t _ = n [ 3 ] . l e n g t h & & Y d ( n ) ; r e t u r n { c ( ) { e = y ( " l a b e l " ) , t = y ( " s p a n " ) , t . t e x t C o n t e n t = " S e l e c t q u e r y " , s = D ( ) , o . c ( ) , r = D ( ) , a = y ( " d i v " ) , a . i n n e r H T M L = ` < u l > < l i > W i l d c a r d c o l u m n s ( < c o d e > * < / c o d e > ) a r e n o t s u p p o r t e d
2023-05-17 21:41:42 +02:00
< li > The query must have a unique < code > id < / c o d e > c o l u m n .
< br / >
If your query doesn & # 39 ; t have a suitable one , you can use the universal
< code > ( ROW _NUMBER ( ) OVER ( ) ) as id < / c o d e > . < / l i >
< li > Expressions must be aliased with a valid formatted field name ( eg .
2023-05-24 22:18:44 +02:00
< code > MAX ( balance ) as maxBalance < / c o d e > ) . < / l i > < / u l > ` , u = D ( ) , _ & & _ . c ( ) , f = k e ( ) , m ( t , " c l a s s " , " t x t " ) , m ( e , " f o r " , i = n [ 8 ] ) , m ( a , " c l a s s " , " h e l p - b l o c k " ) } , m ( v , k ) { S ( v , e , k ) , b ( e , t ) , S ( v , s , k ) , h [ l ] . m ( v , k ) , S ( v , r , k ) , S ( v , a , k ) , S ( v , u , k ) , _ & & _ . m ( v , k ) , S ( v , f , k ) , d = ! 0 } , p ( v , k ) { ( ! d | | k & 2 5 6 & & i ! = = ( i = v [ 8 ] ) ) & & m ( e , " f o r " , i ) ; l e t $ = l ; l = g ( v ) , l = = = $ ? h [ l ] . p ( v , k ) : ( a e ( ) , L ( h [ $ ] , 1 , 1 , ( ) = > { h [ $ ] = n u l l } ) , u e ( ) , o = h [ l ] , o ? o . p ( v , k ) : ( o = h [ l ] = p [ l ] ( v ) , o . c ( ) ) , I ( o , 1 ) , o . m ( r . p a r e n t N o d e , r ) ) , v [ 3 ] . l e n g t h ? _ ? _ . p ( v , k ) : ( _ = Y d ( v ) , _ . c ( ) , _ . m ( f . p a r e n t N o d e , f ) ) : _ & & ( _ . d ( 1 ) , _ = n u l l ) } , i ( v ) { d | | ( I ( o ) , d = ! 0 ) } , o ( v ) { L ( o ) , d = ! 1 } , d ( v ) { v & & w ( e ) , v & & w ( s ) , h [ l ] . d ( v ) , v & & w ( r ) , v & & w ( a ) , v & & w ( u ) , _ & & _ . d ( v ) , v & & w ( f ) } } } f u n c t i o n L 4 ( n ) { l e t e , t ; r e t u r n e = n e w p e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d " + ( n [ 3 ] . l e n g t h ? " e r r o r " : " " ) , n a m e : " o p t i o n s . q u e r y " , $ $ s l o t s : { d e f a u l t : [ I 4 , ( { u n i q u e I d : i } ) = > ( { 8 : i } ) , ( { u n i q u e I d : i } ) = > i ? 2 5 6 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( i , s ) { V ( e , i , s ) , t = ! 0 } , p ( i , [ s ] ) { c o n s t l = { } ; s & 8 & & ( l . c l a s s = " f o r m - f i e l d r e q u i r e d " + ( i [ 3 ] . l e n g t h ? " e r r o r " : " " ) ) , s & 4 3 6 7 & & ( l . $ $ s c o p e = { d i r t y : s , c t x : i } ) , e . $ s e t ( l ) } , i ( i ) { t | | ( I ( e . $ $ . f r a g m e n t , i ) , t = ! 0 ) } , o ( i ) { L ( e . $ $ . f r a g m e n t , i ) , t = ! 1 } , d ( i ) { z ( e , i ) } } } f u n c t i o n P 4 ( n , e , t ) { l e t i ; Z e ( n , T i , d = > t ( 4 , i = d ) ) ; l e t { c o l l e c t i o n : s = n e w k n } = e , l , o = ! 1 , r = [ ] ; f u n c t i o n a ( d ) { v a r g ; t ( 3 , r = [ ] ) ; c o n s t p = U . g e t N e s t e d V a l ( d , " s c h e m a " , n u l l ) ; i f ( U . i s E m p t y ( p ) ) r e t u r n ; i f ( p ! = n u l l & & p . m e s s a g e ) { r . p u s h ( p = = n u l l ? v o i d 0 : p . m e s s a g e ) ; r e t u r n } c o n s t h = U . e x t r a c t C o l u m n s F r o m Q u e r y ( ( g = s = = n u l l ? v o i d 0 : s . o p t i o n s ) = = n u l l ? v o i d 0 : g . q u e r y ) ; U . r e m o v e B y V a l u e ( h , " i d " ) , U . r e m o v e B y V a l u e ( h , " c r e a t e d " ) , U . r e m o v e B y V a l u e ( h , " u p d a t e d " ) ; f o r ( l e t _ i n p ) f o r ( l e t v i n p [ _ ] ) { c o n s t k = p [ _ ] [ v ] . m e s s a g e , $ = h [ _ ] | | _ ; r . p u s h ( U . s e n t e n i z e ( $ + " : " + k ) ) } } X t ( a s y n c ( ) = > { t ( 2 , o = ! 0 ) ; t r y { t ( 1 , l = ( a w a i t u t ( ( ) = > i m p o r t ( " . / C o d e E d i t o r - 2 d c 6 d e 7 d . j s " ) , [ " . / C o d e E d i t o r - 2 d c 6 d e 7 d . j s " , " . / i n d e x - 8 b 5 7 b 6 c d . j s " ] , i m p o r t . m e t a . u r l ) ) . d e f a u l t ) } c a t c h ( d ) { c o n s o l e . w a r n ( d ) } t ( 2 , o = ! 1 ) } ) ; f u n c t i o n u ( d ) { n . $ $ . n o t _ e q u a l ( s . o p t i o n s . q u e r y , d ) & & ( s . o p t i o n s . q u e r y = d , t ( 0 , s ) ) } c o n s t f = ( ) = > { r . l e n g t h & & u i ( " s c h e m a " ) } ; r e t u r n n . $ $ s e t = d = > { " c o l l e c t i o n " i n d & & t ( 0 , s = d . c o l l e c t i o n ) } , n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 1 6 & & a ( i ) } , [ s , l , o , r , i , u , f ] } c l a s s N 4 e x t e n d s b e { c o n s t r u c t o r ( e ) { s u p e r ( ) , g e ( t h i s , e , P 4 , L 4 , h e , { c o l l e c t i o n : 0 } ) } } c o n s t F 4 = n = > ( { a c t i v e : n & 1 } ) , J d = n = > ( { a c t i v e : n [ 0 ] } ) ; f u n c t i o n Z d ( n ) { l e t e , t , i ; c o n s t s = n [ 1 5 ] . d e f a u l t , l = k t ( s , n , n [ 1 4 ] , n u l l ) ; r e t u r n { c ( ) { e = y ( " d i v " ) , l & & l . c ( ) , m ( e , " c l a s s " , " a c c o r d i o n - c o n t e n t " ) } , m ( o , r ) { S ( o , e , r ) , l & & l . m ( e , n u l l ) , i = ! 0 } , p ( o , r ) { l & & l . p & & ( ! i | | r & 1 6 3 8 4 ) & & S t ( l , s , o , o [ 1 4 ] , i ? w t ( s , o [ 1 4 ] , r , n u l l ) : $ t ( o [ 1 4 ] ) , n u l l ) } , i ( o ) { i | | ( I ( l , o ) , o & & x e ( ( ) = > { i & & ( t | | ( t = V e ( e , r t , { d u r a t i o n : 1 5 0 } , ! 0 ) ) , t . r u n ( 1 ) ) } ) , i = ! 0 ) } , o ( o ) { L ( l , o ) , o & & ( t | | ( t = V e ( e , r t , { d u r a t i o n : 1 5 0 } , ! 1 ) ) , t . r u n ( 0 ) ) , i = ! 1 } , d ( o ) { o & & w ( e ) , l & & l . d ( o ) , o & & t & & t . e n d ( ) } } } f u n c t i o n R 4 ( n ) { l e t e , t , i , s , l , o , r ; c o n s t a = n [ 1 5 ] . h e a d e r , u = k t ( a , n , n [ 1 4 ] , J d ) ; l e t f = n [ 0 ] & & Z d ( n ) ; r e t u r n { c ( ) { e = y ( " d i v " ) , t = y ( " b u t t o n " ) , u & & u . c ( ) , i = D ( ) , f & & f . c ( ) , m ( t , " t y p e " , " b u t t o n " ) , m ( t , " c l a s s " , " a c c o r d i o n - h e a d e r " ) , m ( t , " d r a g g a b l e " , n [ 2 ] ) , x ( t , " i n t e r a c t i v e " , n [ 3 ] ) , m ( e , " c l a s s " , s = " a c c o r d i o n " + ( n [ 7 ] ? " d r a g - o v e r " : " " ) + " " + n [ 1 ] ) , x ( e , " a c t i v e " , n [ 0 ] ) } , m ( d , p ) { S ( d , e , p ) , b ( e , t ) , u & & u . m ( t , n u l l ) , b ( e , i ) , f & & f . m ( e , n u l l ) , n [ 2 2 ] ( e ) , l = ! 0 , o | | ( r = [ J ( t , " c l i c k " , t t ( n [ 1 7 ] ) ) , J ( t , " d r o p " , t t ( n [ 1 8 ] ) ) , J ( t , " d r a g s t a r t " , n [ 1 9 ] ) , J ( t , " d r a g e n t e r " , n [ 2 0 ] ) , J ( t , " d r a g l e a v e " , n [ 2 1 ] ) , J ( t , " d r a g o v e r " , t t ( n [ 1 6 ] ) ) ] , o = ! 0 ) } , p ( d , [ p ] ) { u & & u . p & & ( ! l | | p & 1 6 3 8 5 ) & & S t ( u , a , d , d [ 1 4 ] , l ? w t ( a , d [ 1 4 ] , p , F 4 ) : $ t ( d [ 1 4 ] ) , J d ) , ( ! l | | p & 4 ) & & m ( t , " d r a g g a b l e " , d [ 2 ] ) , ( ! l | | p & 8 ) & & x ( t , " i n t e r a c t i v e " , d [ 3 ] ) , d [ 0 ] ? f ? ( f . p ( d , p ) , p & 1 & & I ( f , 1 ) ) : ( f = Z d ( d ) , f . c ( ) , I ( f , 1 ) , f . m ( e , n u l l ) ) : f & & ( a e ( ) , L ( f , 1 , 1 , ( ) = > { f = n u l l } ) , u e ( ) ) , ( ! l | | p & 1 3 0 & & s ! = = ( s = " a c c o r d i o n " + ( d [ 7 ] ? " d r a g - o v e r " : " " ) + " " + d [ 1 ] ) ) & & m ( e , " c l a s s " , s ) , ( ! l | | p & 1 3 1 ) & & x ( e , " a c t i v e " , d [ 0 ] ) } , i ( d ) { l | | ( I ( u , d ) , I ( f ) , l = ! 0 ) } , o ( d ) { L ( u , d ) , L ( f ) , l = ! 1 } , d ( d ) { d & & w ( e ) , u & & u . d ( d ) , f & & f . d ( ) , n [ 2 2 ] ( n u l l ) , o = ! 1 , D e ( r ) } } } f u n c t i o n q 4 ( n , e , t ) { l e t { $ $ s l o t s : i = { } , $ $ s c o p e : s } = e ; c o n s t l = T t ( ) ; l e t o , r , { c l a s s : a = " " } = e , { d r a g g a b l e : u = ! 1 } = e , { a c t i v e : f = ! 1 } = e , { i n t e r a c t i v e : d = ! 0 } = e , { s i n g l e : p = ! 1 } = e , h = ! 1 ; f u n c t i o n g ( ) { r e t u r n ! ! f } f u n c t i o n _ ( ) { $ ( ) , t ( 0 , f = ! 0 ) , l ( " e x p a n d " ) } f u n c t i o n v ( ) { t ( 0 , f = ! 1 ) , c l e a r T i m e o u t ( r ) , l ( " c o l l a p s e " ) } f u n c t i o n k ( ) { l ( " t o g g l e " ) , f ? v ( ) : _ ( ) } f u n c t i o n $ ( ) { i f ( p & & o . c l o s e s t ( " . a c c o r d i o n s " ) ) { c o n s t N = o . c l o s e s t ( " . a c c o r d i o n s " ) . q u e r y S e l e c t o r A l l ( " . a c c o r d i o n . a c t i v e . a c c o r d i o n - h e a d e r . i n t e r a c t i v e " ) ; f o r ( c o n s t
< span class = "txt" > Username / Password < / s p a n > ` , t = D ( ) , i = y ( " d i v " ) , s = D ( ) , f . c ( ) , l = D ( ) , d & & d . c ( ) , o = k e ( ) , m ( e , " c l a s s " , " i n l i n e - f l e x " ) , m ( i , " c l a s s " , " f l e x - f i l l " ) } , m ( p , h ) { S ( p , e , h ) , S ( p , t , h ) , S ( p , i , h ) , S ( p , s , h ) , f . m ( p , h ) , S ( p , l , h ) , d & & d . m ( p , h ) , S ( p , o , h ) , r = ! 0 } , p ( p , h ) { u ! = = ( u = a ( p ) ) & & ( f . d ( 1 ) , f = u ( p ) , f & & ( f . c ( ) , f . m ( l . p a r e n t N o d e , l ) ) ) , p [ 3 ] ? d ? h & 8 & & I ( d , 1 ) : ( d = G d ( ) , d . c ( ) , I ( d , 1 ) , d . m ( o . p a r e n t N o d e , o ) ) : d & & ( a e ( ) , L ( d , 1 , 1 , ( ) = > { d = n u l l } ) , u e ( ) ) } , i ( p ) { r | | ( I ( d ) , r = ! 0 ) } , o ( p ) { L ( d ) , r = ! 1 } , d ( p ) { p & & w ( e ) , p & & w ( t ) , p & & w ( i ) , p & & w ( s ) , f . d ( p ) , p & & w ( l ) , d & & d . d ( p ) , p & & w ( o ) } } } f u n c t i o n U 4 ( n ) { l e t e , t , i , s , l , o , r , a ; r e t u r n { c ( ) { e = y ( " i n p u t " ) , i = D ( ) , s = y ( " l a b e l " ) , l = W ( " E n a b l e " ) , m ( e , " t y p e " , " c h e c k b o x " ) , m ( e , " i d " , t = n [ 1 2 ] ) , m ( s , " f o r " , o = n [ 1 2 ] ) } , m ( u , f ) { S ( u , e , f ) , e . c h e c k e d = n [ 0 ] . o p t i o n s . a l l o w E m a i l A u t h , S ( u , i , f ) , S ( u , s , f ) , b ( s , l ) , r | | ( a = J ( e , " c h a n g e " , n [ 6 ] ) , r = ! 0 ) } , p ( u , f ) { f & 4 0 9 6 & & t ! = = ( t = u [ 1 2 ] ) & & m ( e , " i d " , t ) , f & 1 & & ( e . c h e c k e d = u [ 0 ] . o p t i o n s . a l l o w E m a i l A u t h ) , f & 4 0 9 6 & & o ! = = ( o = u [ 1 2 ] ) & & m ( s , " f o r " , o ) } , d ( u ) { u & & w ( e ) , u & & w ( i ) , u & & w ( s ) , r = ! 1 , a ( ) } } } f u n c t i o n X d ( n ) { l e t e , t , i , s , l , o , r , a ; r e t u r n i = n e w p e ( { p r o p s : { c l a s s : " f o r m - f i e l d " + ( U . i s E m p t y ( n [ 0 ] . o p t i o n s . o n l y E m a i l D o m a i n s ) ? " " : " d i s a b l e d " ) , n a m e : " o p t i o n s . e x c e p t E m a i l D o m a i n s " , $ $ s l o t s : { d e f a u l t : [ W 4 , ( { u n i q u e I d : u } ) = > ( { 1 2 : u } ) , ( { u n i q u e I d : u } ) = > u ? 4 0 9 6 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , o = n e w p e ( { p r o p s : { c l a s s : " f o r m - f i e l d " + ( U . i s E m p t y ( n [ 0 ] . o p t i o n s . e x c e p t E m a i l D o m a i n s ) ? " " : " d i s a b l e d " ) , n a m e : " o p t i o n s . o n l y E m a i l D o m a i n s " , $ $ s l o t s : { d e f a u l t : [ Y 4 , ( { u n i q u e I d : u } ) = > ( { 1 2 : u } ) , ( { u n i q u e I d : u } ) = > u ? 4 0 9 6 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { e = y ( " d i v " ) , t = y ( " d i v " ) , H ( i . $ $ . f r a g m e n t ) , s = D ( ) , l = y ( " d i v " ) , H ( o . $ $ . f r a g m e n t ) , m ( t , " c l a s s " , " c o l - l g - 6 " ) , m ( l , " c l a s s " , " c o l - l g - 6 " ) , m ( e , " c l a s s " , " g r i d g r i d - s m p - t - s m " ) } , m ( u , f ) { S ( u , e , f ) , b ( e , t ) , V ( i , t , n u l l ) , b ( e , s ) , b ( e , l ) , V ( o , l , n u l l ) , a = ! 0 } , p ( u , f ) { c o n s t d = { } ; f & 1 & & ( d . c l a s s = " f o r m - f i e l d " + ( U . i s E m p t y ( u [ 0 ] . o p t i o n s . o n l y E m a i l D o m a i n s ) ? " " : " d i s a b l e d " ) ) , f & 1 2 2 8 9 & & ( d . $ $ s c o p e = { d i r t y : f , c t x : u } ) , i . $ s e t ( d ) ; c o n s t p = { } ; f & 1 & & ( p . c l a s s = " f o r m - f i e l d " + ( U . i s E m p t y ( u [ 0 ] . o p t i o n s . e x c e p t E m a i l D o m a i n s ) ? " " : " d i s a b l e d " ) ) , f & 1 2 2 8 9 & & ( p . $ $ s c o p e = { d i r t y : f , c t x : u } ) , o . $ s e t ( p ) } , i ( u ) { a | | ( I ( i . $ $ . f r a g m e n t , u ) , I ( o . $ $ . f r a g m e n t , u ) , u & & x e ( ( ) = > { a & & ( r | | ( r = V e ( e , r t , { d u r a t i o n : 1 5 0 } , ! 0 ) ) , r . r u n ( 1 ) ) } ) , a = ! 0 ) } , o ( u ) { L ( i . $ $ . f r a g m e n t , u ) , L ( o . $ $ . f r a g m e n t , u ) , u & & ( r | | ( r = V e ( e , r t , { d u r a t i o n : 1 5 0 } , ! 1 ) ) , r . r u n ( 0 ) ) , a = ! 1 } , d ( u ) { u & & w ( e ) , z ( i ) , z ( o ) , u & & r & & r . e n d ( ) } } } f u n c t i o n W 4 ( n ) { l e t e , t , i , s , l , o , r , a , u , f , d , p , h ; f u n c t i o n g ( v ) { n [ 7 ] ( v ) } l e t _ = { i d : n [ 1 2 ] , d i s a b l e d : ! U . i s E m p t y ( n [ 0 ] . o p t i o n s . o n l y E m a i l D o m a i n s ) } ; r e t u r n n [ 0 ] . o p t i o n s . e x c e p t E m a i l D o m a i n s ! = = v o i d 0 & & ( _ . v a l u e = n [ 0 ] . o p t i o n s . e x c e p t E m a i l D o m a i n s ) , r = n e w z s ( { p r o p s : _ } ) , n e . p u s h ( ( ) = > d e ( r , " v a l u e " , g ) ) , { c ( ) { e = y ( " l a b e l " ) , t = y ( " s p a n " ) , t . t e x t C o n t e n t = " E x c e p t d o m a i n s " , i = D ( ) , s = y ( " i " ) , o = D ( ) , H ( r . $ $ . f r a g m e n t ) , u = D ( ) , f = y ( " d i v " ) , f . t e x t C o n t e n t = " U s e c o m m a a s s e p a r a t o r . " , m ( t , " c l a s s " , " t x t " ) , m ( s , " c l a s s " , " r i - i n f o r m a t i o n - l i n e l i n k - h i n t " ) , m ( e , " f o r " , l = n [ 1 2 ] ) , m ( f , " c l a s s " , " h e l p - b l o c k " ) } , m ( v , k ) { S ( v , e , k ) , b ( e , t ) , b ( e , i ) , b ( e , s ) , S ( v , o , k ) , V ( r , v , k ) , S ( v , u , k ) , S ( v , f , k ) , d = ! 0 , p | | ( h = O e ( B e . c a l l ( n u l l , s , { t e x t : ` E m a i l d o m a i n s t h a t a r e N O T a l l o w e d t o s i g n u p .
This field is disabled if "Only domains" is set . ` ,position:"top"})),p=!0)},p(v,k){(!d||k&4096&&l!==(l=v[12]))&&m(e,"for",l);const $ ={};k&4096&&( $ .id=v[12]),k&1&&( $ .disabled=!U.isEmpty(v[0].options.onlyEmailDomains)),!a&&k&1&&(a=!0, $ .value=v[0].options.exceptEmailDomains,_e(()=>a=!1)),r. $ set( $ )},i(v){d||(I(r. $ $ .fragment,v),d=!0)},o(v){L(r. $ $ .fragment,v),d=!1},d(v){v&&w(e),v&&w(o),z(r,v),v&&w(u),v&&w(f),p=!1,h()}}}function Y4(n){let e,t,i,s,l,o,r,a,u,f,d,p,h;function g(v){n[8](v)}let _={id:n[12],disabled:!U.isEmpty(n[0].options.exceptEmailDomains)};return n[0].options.onlyEmailDomains!==void 0&&(_.value=n[0].options.onlyEmailDomains),r=new zs({props:_}),ne.push(()=>de(r,"value",g)),{c(){e=y("label"),t=y("span"),t.textContent="Only domains",i=D(),s=y("i"),o=D(),H(r. $ $ .fragment),u=D(),f=y("div"),f.textContent="Use comma as separator.",m(t,"class","txt"),m(s,"class","ri-information-line link-hint"),m(e,"for",l=n[12]),m(f,"class","help-block")},m(v,k){S(v,e,k),b(e,t),b(e,i),b(e,s),S(v,o,k),V(r,v,k),S(v,u,k),S(v,f,k),d=!0,p||(h=Oe(Be.call(null,s,{text: ` Email domains that are ONLY allowed to sign up .
This field is disabled if "Except domains" is set . ` ,position:"top"})),p=!0)},p(v,k){(!d||k&4096&&l!==(l=v[12]))&&m(e,"for",l);const $ ={};k&4096&&( $ .id=v[12]),k&1&&( $ .disabled=!U.isEmpty(v[0].options.exceptEmailDomains)),!a&&k&1&&(a=!0, $ .value=v[0].options.onlyEmailDomains,_e(()=>a=!1)),r. $ set( $ )},i(v){d||(I(r. $ $ .fragment,v),d=!0)},o(v){L(r. $ $ .fragment,v),d=!1},d(v){v&&w(e),v&&w(o),z(r,v),v&&w(u),v&&w(f),p=!1,h()}}}function K4(n){let e,t,i,s;e=new pe({props:{class:"form-field form-field-toggle m-0",name:"options.allowEmailAuth", $ $ slots:{default:[U4,({uniqueId:o})=>({12:o}),({uniqueId:o})=>o?4096:0]}, $ $ scope:{ctx:n}}});let l=n[0].options.allowEmailAuth&&Xd(n);return{c(){H(e. $ $ .fragment),t=D(),l&&l.c(),i=ke()},m(o,r){V(e,o,r),S(o,t,r),l&&l.m(o,r),S(o,i,r),s=!0},p(o,r){const a={};r&12289&&(a. $ $ scope={dirty:r,ctx:o}),e. $ set(a),o[0].options.allowEmailAuth?l?(l.p(o,r),r&1&&I(l,1)):(l=Xd(o),l.c(),I(l,1),l.m(i.parentNode,i)):l&&(ae(),L(l,1,1,()=>{l=null}),ue())},i(o){s||(I(e. $ $ .fragment,o),I(l),s=!0)},o(o){L(e. $ $ .fragment,o),L(l),s=!1},d(o){z(e,o),o&&w(t),l&&l.d(o),o&&w(i)}}}function J4(n){let e;return{c(){e=y("span"),e.textContent="Disabled",m(e,"class","label")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function Z4(n){let e;return{c(){e=y("span"),e.textContent="Enabled",m(e,"class","label label-success")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function Qd(n){let e,t,i,s,l;return{c(){e=y("i"),m(e,"class","ri-error-warning-fill txt-danger")},m(o,r){S(o,e,r),i=!0,s||(l=Oe(Be.call(null,e,{text:"Has errors",position:"left"})),s=!0)},i(o){i||(xe(()=>{i&&(t||(t=Ve(e,Jt,{duration:150,start:.7},!0)),t.run(1))}),i=!0)},o(o){t||(t=Ve(e,Jt,{duration:150,start:.7},!1)),t.run(0),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function G4(n){let e,t,i,s,l,o,r;function a(p,h){return p[0].options.allowEmailAuth?Z4:J4}let u=a(n),f=u(n),d=n[2]&&Qd();return{c(){e=y("div"),e.innerHTML= ` < i class = "ri-mail-star-line" > < / i >
< span class = "txt" > Email / Password < / s p a n > ` , t = D ( ) , i = y ( " d i v " ) , s = D ( ) , f . c ( ) , l = D ( ) , d & & d . c ( ) , o = k e ( ) , m ( e , " c l a s s " , " i n l i n e - f l e x " ) , m ( i , " c l a s s " , " f l e x - f i l l " ) } , m ( p , h ) { S ( p , e , h ) , S ( p , t , h ) , S ( p , i , h ) , S ( p , s , h ) , f . m ( p , h ) , S ( p , l , h ) , d & & d . m ( p , h ) , S ( p , o , h ) , r = ! 0 } , p ( p , h ) { u ! = = ( u = a ( p ) ) & & ( f . d ( 1 ) , f = u ( p ) , f & & ( f . c ( ) , f . m ( l . p a r e n t N o d e , l ) ) ) , p [ 2 ] ? d ? h & 4 & & I ( d , 1 ) : ( d = Q d ( ) , d . c ( ) , I ( d , 1 ) , d . m ( o . p a r e n t N o d e , o ) ) : d & & ( a e ( ) , L ( d , 1 , 1 , ( ) = > { d = n u l l } ) , u e ( ) ) } , i ( p ) { r | | ( I ( d ) , r = ! 0 ) } , o ( p ) { L ( d ) , r = ! 1 } , d ( p ) { p & & w ( e ) , p & & w ( t ) , p & & w ( i ) , p & & w ( s ) , f . d ( p ) , p & & w ( l ) , d & & d . d ( p ) , p & & w ( o ) } } } f u n c t i o n X 4 ( n ) { l e t e , t , i , s , l , o , r , a ; r e t u r n { c ( ) { e = y ( " i n p u t " ) , i = D ( ) , s = y ( " l a b e l " ) , l = W ( " E n a b l e " ) , m ( e , " t y p e " , " c h e c k b o x " ) , m ( e , " i d " , t = n [ 1 2 ] ) , m ( s , " f o r " , o = n [ 1 2 ] ) } , m ( u , f ) { S ( u , e , f ) , e . c h e c k e d = n [ 0 ] . o p t i o n s . a l l o w O A u t h 2 A u t h , S ( u , i , f ) , S ( u , s , f ) , b ( s , l ) , r | | ( a = J ( e , " c h a n g e " , n [ 9 ] ) , r = ! 0 ) } , p ( u , f ) { f & 4 0 9 6 & & t ! = = ( t = u [ 1 2 ] ) & & m ( e , " i d " , t ) , f & 1 & & ( e . c h e c k e d = u [ 0 ] . o p t i o n s . a l l o w O A u t h 2 A u t h ) , f & 4 0 9 6 & & o ! = = ( o = u [ 1 2 ] ) & & m ( s , " f o r " , o ) } , d ( u ) { u & & w ( e ) , u & & w ( i ) , u & & w ( s ) , r = ! 1 , a ( ) } } } f u n c t i o n x d ( n ) { l e t e , t , i ; r e t u r n { c ( ) { e = y ( " d i v " ) , e . i n n e r H T M L = ' < d i v c l a s s = " f l e x p - t - b a s e " > < a h r e f = " / _ / # / s e t t i n g s / a u t h - p r o v i d e r s " t a r g e t = " _ b l a n k " c l a s s = " b t n b t n - s m b t n - o u t l i n e " > < s p a n c l a s s = " t x t " > M a n a g e O A u t h 2 p r o v i d e r s < / s p a n > < / a > < / d i v > ' , m ( e , " c l a s s " , " b l o c k " ) } , m ( s , l ) { S ( s , e , l ) , i = ! 0 } , i ( s ) { i | | ( s & & x e ( ( ) = > { i & & ( t | | ( t = V e ( e , r t , { d u r a t i o n : 1 5 0 } , ! 0 ) ) , t . r u n ( 1 ) ) } ) , i = ! 0 ) } , o ( s ) { s & & ( t | | ( t = V e ( e , r t , { d u r a t i o n : 1 5 0 } , ! 1 ) ) , t . r u n ( 0 ) ) , i = ! 1 } , d ( s ) { s & & w ( e ) , s & & t & & t . e n d ( ) } } } f u n c t i o n Q 4 ( n ) { l e t e , t , i , s ; e = n e w p e ( { p r o p s : { c l a s s : " f o r m - f i e l d f o r m - f i e l d - t o g g l e m - b - 0 " , n a m e : " o p t i o n s . a l l o w O A u t h 2 A u t h " , $ $ s l o t s : { d e f a u l t : [ X 4 , ( { u n i q u e I d : o } ) = > ( { 1 2 : o } ) , ( { u n i q u e I d : o } ) = > o ? 4 0 9 6 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) ; l e t l = n [ 0 ] . o p t i o n s . a l l o w O A u t h 2 A u t h & & x d ( ) ; r e t u r n { c ( ) { H ( e . $ $ . f r a g m e n t ) , t = D ( ) , l & & l . c ( ) , i = k e ( ) } , m ( o , r ) { V ( e , o , r ) , S ( o , t , r ) , l & & l . m ( o , r ) , S ( o , i , r ) , s = ! 0 } , p ( o , r ) { c o n s t a = { } ; r & 1 2 2 8 9 & & ( a . $ $ s c o p e = { d i r t y : r , c t x : o } ) , e . $ s e t ( a ) , o [ 0 ] . o p t i o n s . a l l o w O A u t h 2 A u t h ? l ? r & 1 & & I ( l , 1 ) : ( l = x d ( ) , l . c ( ) , I ( l , 1 ) , l . m ( i . p a r e n t N o d e , i ) ) : l & & ( a e ( ) , L ( l , 1 , 1 , ( ) = > { l = n u l l } ) , u e ( ) ) } , i ( o ) { s | | ( I ( e . $ $ . f r a g m e n t , o ) , I ( l ) , s = ! 0 ) } , o ( o ) { L ( e . $ $ . f r a g m e n t , o ) , L ( l ) , s = ! 1 } , d ( o ) { z ( e , o ) , o & & w ( t ) , l & & l . d ( o ) , o & & w ( i ) } } } f u n c t i o n x 4 ( n ) { l e t e ; r e t u r n { c ( ) { e = y ( " s p a n " ) , e . t e x t C o n t e n t = " D i s a b l e d " , m ( e , " c l a s s " , " l a b e l " ) } , m ( t , i ) { S ( t , e , i ) } , d ( t ) { t & & w ( e ) } } } f u n c t i o n e M ( n ) { l e t e ; r e t u r n { c ( ) { e = y ( " s p a n " ) , e . t e x t C o n t e n t = " E n a b l e d " , m ( e , " c l a s s " , " l a b e l l a b e l - s u c c e s s " ) } , m ( t , i ) { S ( t , e , i ) } , d ( t ) { t & & w ( e ) } } } f u n c t i o n e p ( n ) { l e t e , t , i , s , l ; r e t u r n { c ( ) { e = y ( " i " ) , m ( e , " c l a s s " , " r i - e r r o r - w a r n i n g - f i l l t x t - d a n g e r " ) } , m ( o , r ) { S ( o , e , r ) , i = ! 0 , s | | ( l = O e ( B e . c a l l ( n u l l , e , { t e x t : " H a s e r r o r s " , p o s i t i o n : " l e f t " } ) ) , s = ! 0 ) } , i ( o ) { i | | ( x e ( ( ) = > { i & & ( t | | ( t = V e ( e , J t , { d u r a t i o n : 1 5 0 , s t a r t : . 7 } , ! 0 ) ) , t . r u n ( 1 ) ) } ) , i = ! 0 ) } , o ( o ) { t | | ( t = V e ( e , J t , { d u r a t i o n : 1 5 0 , s t a r t : . 7 } , ! 1 ) ) , t . r u n ( 0 ) , i = ! 1 } , d ( o ) { o & & w ( e ) , o & & t & & t . e n d ( ) , s = ! 1 , l ( ) } } } f u n c t i o n t M ( n ) { l e t e , t , i , s , l , o , r ; f u n c t i o n a ( p , h ) { r e t u r n p [ 0 ] . o p t i o n s . a l l o w O A u t h 2 A u t h ? e M : x 4 } l e t u = a ( n ) , f = u ( n ) , d = n [ 1 ] & & e p ( ) ; r e t u r n { c ( ) { e = y ( " d i v " ) , e . i n n e r H T M L = ` < i c l a s s = " r i - s h i e l d - s t a r - l i n e " > < / i >
< span class = "txt" > OAuth2 < / s p a n > ` , t = D ( ) , i = y ( " d i v " ) , s = D ( ) , f . c ( ) , l = D ( ) , d & & d . c ( ) , o = k e ( ) , m ( e , " c l a s s " , " i n l i n e - f l e x " ) , m ( i , " c l a s s " , " f l e x - f i l l " ) } , m ( p , h ) { S ( p , e , h ) , S ( p , t , h ) , S ( p , i , h ) , S ( p , s , h ) , f . m ( p , h ) , S ( p , l , h ) , d & & d . m ( p , h ) , S ( p , o , h ) , r = ! 0 } , p ( p , h ) { u ! = = ( u = a ( p ) ) & & ( f . d ( 1 ) , f = u ( p ) , f & & ( f . c ( ) , f . m ( l . p a r e n t N o d e , l ) ) ) , p [ 1 ] ? d ? h & 2 & & I ( d , 1 ) : ( d = e p ( ) , d . c ( ) , I ( d , 1 ) , d . m ( o . p a r e n t N o d e , o ) ) : d & & ( a e ( ) , L ( d , 1 , 1 , ( ) = > { d = n u l l } ) , u e ( ) ) } , i ( p ) { r | | ( I ( d ) , r = ! 0 ) } , o ( p ) { L ( d ) , r = ! 1 } , d ( p ) { p & & w ( e ) , p & & w ( t ) , p & & w ( i ) , p & & w ( s ) , f . d ( p ) , p & & w ( l ) , d & & d . d ( p ) , p & & w ( o ) } } } f u n c t i o n n M ( n ) { l e t e , t , i , s , l , o , r , a ; r e t u r n { c ( ) { e = y ( " l a b e l " ) , t = W ( " M i n i m u m p a s s w o r d l e n g t h " ) , s = D ( ) , l = y ( " i n p u t " ) , m ( e , " f o r " , i = n [ 1 2 ] ) , m ( l , " t y p e " , " n u m b e r " ) , m ( l , " i d " , o = n [ 1 2 ] ) , l . r e q u i r e d = ! 0 , m ( l , " m i n " , " 6 " ) , m ( l , " m a x " , " 7 2 " ) } , m ( u , f ) { S ( u , e , f ) , b ( e , t ) , S ( u , s , f ) , S ( u , l , f ) , r e ( l , n [ 0 ] . o p t i o n s . m i n P a s s w o r d L e n g t h ) , r | | ( a = J ( l , " i n p u t " , n [ 1 0 ] ) , r = ! 0 ) } , p ( u , f ) { f & 4 0 9 6 & & i ! = = ( i = u [ 1 2 ] ) & & m ( e , " f o r " , i ) , f & 4 0 9 6 & & o ! = = ( o = u [ 1 2 ] ) & & m ( l , " i d " , o ) , f & 1 & & p t ( l . v a l u e ) ! = = u [ 0 ] . o p t i o n s . m i n P a s s w o r d L e n g t h & & r e ( l , u [ 0 ] . o p t i o n s . m i n P a s s w o r d L e n g t h ) } , d ( u ) { u & & w ( e ) , u & & w ( s ) , u & & w ( l ) , r = ! 1 , a ( ) } } } f u n c t i o n i M ( n ) { l e t e , t , i , s , l , o , r , a , u , f ; r e t u r n { c ( ) { e = y ( " i n p u t " ) , i = D ( ) , s = y ( " l a b e l " ) , l = y ( " s p a n " ) , l . t e x t C o n t e n t = " A l w a y s r e q u i r e e m a i l " , o = D ( ) , r = y ( " i " ) , m ( e , " t y p e " , " c h e c k b o x " ) , m ( e , " i d " , t = n [ 1 2 ] ) , m ( l , " c l a s s " , " t x t " ) , m ( r , " c l a s s " , " r i - i n f o r m a t i o n - l i n e t x t - s m l i n k - h i n t " ) , m ( s , " f o r " , a = n [ 1 2 ] ) } , m ( d , p ) { S ( d , e , p ) , e . c h e c k e d = n [ 0 ] . o p t i o n s . r e q u i r e E m a i l , S ( d , i , p ) , S ( d , s , p ) , b ( s , l ) , b ( s , o ) , b ( s , r ) , u | | ( f = [ J ( e , " c h a n g e " , n [ 1 1 ] ) , O e ( B e . c a l l ( n u l l , r , { t e x t : ` T h e c o n s t r a i n t i s a p p l i e d o n l y f o r n e w r e c o r d s .
Also note that some OAuth2 providers ( like Twitter ) , don ' t return an email and the authentication may fail if the email field is required . ` ,position:"right"}))],u=!0)},p(d,p){p&4096&&t!==(t=d[12])&&m(e,"id",t),p&1&&(e.checked=d[0].options.requireEmail),p&4096&&a!==(a=d[12])&&m(s,"for",a)},d(d){d&&w(e),d&&w(i),d&&w(s),u=!1,De(f)}}}function sM(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,v,k;return s=new po({props:{single:!0, $ $ slots:{header:[B4],default:[V4]}, $ $ scope:{ctx:n}}}),o=new po({props:{single:!0, $ $ slots:{header:[G4],default:[K4]}, $ $ scope:{ctx:n}}}),a=new po({props:{single:!0, $ $ slots:{header:[tM],default:[Q4]}, $ $ scope:{ctx:n}}}),g=new pe({props:{class:"form-field required",name:"options.minPasswordLength", $ $ slots:{default:[nM,({uniqueId: $ })=>({12: $ }),({uniqueId: $ })=> $ ?4096:0]}, $ $ scope:{ctx:n}}}),v=new pe({props:{class:"form-field form-field-toggle m-b-sm",name:"options.requireEmail", $ $ slots:{default:[iM,({uniqueId: $ })=>({12: $ }),({uniqueId: $ })=> $ ?4096:0]}, $ $ scope:{ctx:n}}}),{c(){e=y("h4"),e.textContent="Auth methods",t=D(),i=y("div"),H(s. $ $ .fragment),l=D(),H(o. $ $ .fragment),r=D(),H(a. $ $ .fragment),u=D(),f=y("hr"),d=D(),p=y("h4"),p.textContent="General",h=D(),H(g. $ $ .fragment),_=D(),H(v. $ $ .fragment),m(e,"class","section-title"),m(i,"class","accordions"),m(p,"class","section-title")},m( $ ,C){S( $ ,e,C),S( $ ,t,C),S( $ ,i,C),V(s,i,null),b(i,l),V(o,i,null),b(i,r),V(a,i,null),S( $ ,u,C),S( $ ,f,C),S( $ ,d,C),S( $ ,p,C),S( $ ,h,C),V(g, $ ,C),S( $ ,_,C),V(v, $ ,C),k=!0},p( $ ,[C]){const T={};C&8201&&(T. $ $ scope={dirty:C,ctx: $ }),s. $ set(T);const M={};C&8197&&(M. $ $ scope={dirty:C,ctx: $ }),o. $ set(M);const O={};C&8195&&(O. $ $ scope={dirty:C,ctx: $ }),a. $ set(O);const E={};C&12289&&(E. $ $ scope={dirty:C,ctx: $ }),g. $ set(E);const A={};C&12289&&(A. $ $ scope={dirty:C,ctx: $ }),v. $ set(A)},i( $ ){k||(I(s. $ $ .fragment, $ ),I(o. $ $ .fragment, $ ),I(a. $ $ .fragment, $ ),I(g. $ $ .fragment, $ ),I(v. $ $ .fragment, $ ),k=!0)},o( $ ){L(s. $ $ .fragment, $ ),L(o. $ $ .fragment, $ ),L(a. $ $ .fragment, $ ),L(g. $ $ .fragment, $ ),L(v. $ $ .fragment, $ ),k=!1},d( $ ){ $ &&w(e), $ &&w(t), $ &&w(i),z(s),z(o),z(a), $ &&w(u), $ &&w(f), $ &&w(d), $ &&w(p), $ &&w(h),z(g, $ ), $ &&w(_),z(v, $ )}}}function lM(n,e,t){let i,s,l,o;Ze(n,Ti,_=>t(4,o=_));let{collection:r=new kn}=e;function a(){r.options.allowUsernameAuth=this.checked,t(0,r)}function u(){r.options.allowEmailAuth=this.checked,t(0,r)}function f(_){n. $ $ .not_equal(r.options.exceptEmailDomains,_)&&(r.options.exceptEmailDomains=_,t(0,r))}function d(_){n. $ $ .not_equal(r.options.onlyEmailDomains,_)&&(r.options.onlyEmailDomains=_,t(0,r))}function p(){r.options.allowOAuth2Auth=this.checked,t(0,r)}function h(){r.options.minPasswordLength=pt(this.value),t(0,r)}function g(){r.options.requireEmail=this.checked,t(0,r)}return n. $ $ set=_=>{"collection"in _&&t(0,r=_.collection)},n. $ $ .update=()=>{var _,v,k, $ ;n. $ $ .dirty&1&&r. $ isAuth&&U.isEmpty(r.options)&&t(0,r.options={allowEmailAuth:!0,allowUsernameAuth:!0,allowOAuth2Auth:!0,minPasswordLength:8},r),n. $ $ .dirty&16&&t(2,s=!U.isEmpty((_=o==null?void 0:o.options)==null?void 0:_.allowEmailAuth)||!U.isEmpty((v=o==null?void 0:o.options)==null?void 0:v.onlyEmailDomains)||!U.isEmpty((k=o==null?void 0:o.options)==null?void 0:k.exceptEmailDomains)),n. $ $ .dirty&16&&t(1,l=!U.isEmpty(( $ =o==null?void 0:o.options)==null?void 0: $ .allowOAuth2Auth))},t(3,i=!1),[r,l,s,i,o,a,u,f,d,p,h,g]}class oM extends be{constructor(e){super(),ge(this,e,lM,sM,he,{collection:0})}}function tp(n,e,t){const i=n.slice();return i[17]=e[t],i}function np(n,e,t){const i=n.slice();return i[17]=e[t],i}function ip(n,e,t){const i=n.slice();return i[17]=e[t],i}function sp(n){let e;return{c(){e=y("p"),e.textContent="All data associated with the removed fields will be permanently deleted!"},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function lp(n){var r;let e,t,i,s,l=n[3]&&op(n),o=!((r=n[2])!=null&&r. $ isView)&&rp(n);return{c(){e=y("h6"),e.textContent="Changes:",t=D(),i=y("ul"),l&&l.c(),s=D(),o&&o.c(),m(i,"class","changes-list svelte-xqpcsf")},m(a,u){S(a,e,u),S(a,t,u),S(a,i,u),l&&l.m(i,null),b(i,s),o&&o.m(i,null)},p(a,u){var f;a[3]?l?l.p(a,u):(l=op(a),l.c(),l.m(i,s)):l&&(l.d(1),l=null),(f=a[2])!=null&&f. $ isView?o&&(o.d(1),o=null):o?o.p(a,u):(o=rp
` ),s=y("strong"),o=W(l),r=D(),a=y("i"),u=D(),f=y("strong"),p=W(d),m(s,"class","txt-strikethrough txt-hint"),m(a,"class","ri-arrow-right-line txt-sm"),m(f,"class","txt"),m(t,"class","inline-flex"),m(e,"class","svelte-xqpcsf")},m(_,v){S(_,e,v),b(e,t),b(t,i),b(t,s),b(s,o),b(t,r),b(t,a),b(t,u),b(t,f),b(f,p)},p(_,v){var k, $ ;v&2&&l!==(l=((k=_[1])==null?void 0:k.name)+"")&&se(o,l),v&4&&d!==(d=(( $ =_[2])==null?void 0: $ .name)+"")&&se(p,d)},d(_){_&&w(e)}}}function rp(n){let e,t,i,s=n[5],l=[];for(let f=0;f<s.length;f+=1)l[f]=ap(ip(n,s,f));let o=n[7],r=[];for(let f=0;f<o.length;f+=1)r[f]=up(np(n,o,f));let a=n[6],u=[];for(let f=0;f<a.length;f+=1)u[f]=fp(tp(n,a,f));return{c(){for(let f=0;f<l.length;f+=1)l[f].c();e=D();for(let f=0;f<r.length;f+=1)r[f].c();t=D();for(let f=0;f<u.length;f+=1)u[f].c();i=ke()},m(f,d){for(let p=0;p<l.length;p+=1)l[p]&&l[p].m(f,d);S(f,e,d);for(let p=0;p<r.length;p+=1)r[p]&&r[p].m(f,d);S(f,t,d);for(let p=0;p<u.length;p+=1)u[p]&&u[p].m(f,d);S(f,i,d)},p(f,d){if(d&32){s=f[5];let p;for(p=0;p<s.length;p+=1){const h=ip(f,s,p);l[p]?l[p].p(h,d):(l[p]=ap(h),l[p].c(),l[p].m(e.parentNode,e))}for(;p<l.length;p+=1)l[p].d(1);l.length=s.length}if(d&128){o=f[7];let p;for(p=0;p<o.length;p+=1){const h=np(f,o,p);r[p]?r[p].p(h,d):(r[p]=up(h),r[p].c(),r[p].m(t.parentNode,t))}for(;p<r.length;p+=1)r[p].d(1);r.length=o.length}if(d&64){a=f[6];let p;for(p=0;p<a.length;p+=1){const h=tp(f,a,p);u[p]?u[p].p(h,d):(u[p]=fp(h),u[p].c(),u[p].m(i.parentNode,i))}for(;p<u.length;p+=1)u[p].d(1);u.length=a.length}},d(f){ht(l,f),f&&w(e),ht(r,f),f&&w(t),ht(u,f),f&&w(i)}}}function ap(n){let e,t,i,s=n[17].name+"",l,o,r;return{c(){e=y("li"),t=W( ` Multiple to single value conversion of field
` ),i=y("strong"),l=W(s),o=D(),r=y("em"),r.textContent="(will keep only the last array item)",m(r,"class","txt-sm"),m(e,"class","svelte-xqpcsf")},m(a,u){S(a,e,u),b(e,t),b(e,i),b(i,l),b(e,o),b(e,r)},p(a,u){u&32&&s!==(s=a[17].name+"")&&se(l,s)},d(a){a&&w(e)}}}function up(n){let e,t,i,s,l=n[17].originalName+"",o,r,a,u,f,d=n[17].name+"",p;return{c(){e=y("li"),t=y("div"),i=W( ` Renamed field
` ),s=y("strong"),o=W(l),r=D(),a=y("i"),u=D(),f=y("strong"),p=W(d),m(s,"class","txt-strikethrough txt-hint"),m(a,"class","ri-arrow-right-line txt-sm"),m(f,"class","txt"),m(t,"class","inline-flex"),m(e,"class","svelte-xqpcsf")},m(h,g){S(h,e,g),b(e,t),b(t,i),b(t,s),b(s,o),b(t,r),b(t,a),b(t,u),b(t,f),b(f,p)},p(h,g){g&128&&l!==(l=h[17].originalName+"")&&se(o,l),g&128&&d!==(d=h[17].name+"")&&se(p,d)},d(h){h&&w(e)}}}function fp(n){let e,t,i,s=n[17].name+"",l,o;return{c(){e=y("li"),t=W("Removed field "),i=y("span"),l=W(s),o=D(),m(i,"class","txt-bold"),m(e,"class","txt-danger svelte-xqpcsf")},m(r,a){S(r,e,a),b(e,t),b(e,i),b(i,l),b(e,o)},p(r,a){a&64&&s!==(s=r[17].name+"")&&se(l,s)},d(r){r&&w(e)}}}function rM(n){let e,t,i,s,l,o,r,a,u=n[6].length&&sp(),f=n[8]&&lp(n);return{c(){e=y("div"),t=y("div"),t.innerHTML='<i class="ri-error-warning-line"></i>',i=D(),s=y("div"),l=y("p"),l.textContent= ` If any of the collection changes is part of another collection rule , filter or view query ,
you 'll have to update it manually!`,o=D(),u&&u.c(),r=D(),f&&f.c(),a=ke(),m(t,"class","icon"),m(s,"class","content txt-bold"),m(e,"class","alert alert-warning")},m(d,p){S(d,e,p),b(e,t),b(e,i),b(e,s),b(s,l),b(s,o),u&&u.m(s,null),S(d,r,p),f&&f.m(d,p),S(d,a,p)},p(d,p){d[6].length?u||(u=sp(),u.c(),u.m(s,null)):u&&(u.d(1),u=null),d[8]?f?f.p(d,p):(f=lp(d),f.c(),f.m(a.parentNode,a)):f&&(f.d(1),f=null)},d(d){d&&w(e),u&&u.d(),d&&w(r),f&&f.d(d),d&&w(a)}}}function aM(n){let e;return{c(){e=y("h4"),e.textContent="Confirm collection changes"},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function uM(n){let e,t,i,s,l;return{c(){e=y("button"),e.innerHTML=' < span class = "txt" > Cancel < / s p a n > ' , t = D ( ) , i = y ( " b u t t o n " ) , i . i n n e r H T M L = ' < s p a n c l a s s = " t x t " > C o n f i r m < / s p a n > ' , e . a u t o f o c u s = ! 0 , m ( e , " t y p e " , " b u t t o n " ) , m ( e , " c l a s s " , " b t n b t n - t r a n s p a r e n t " ) , m ( i , " t y p e " , " b u t t o n " ) , m ( i , " c l a s s " , " b t n b t n - e x p a n d e d " ) } , m ( o , r ) { S ( o , e , r ) , S ( o , t , r ) , S ( o , i , r ) , e . f o c u s ( ) , s | | ( l = [ J ( e , " c l i c k " , n [ 1 1 ] ) , J ( i , " c l i c k " , n [ 1 2 ] ) ] , s = ! 0 ) } , p : t e , d ( o ) { o & & w ( e ) , o & & w ( t ) , o & & w ( i ) , s = ! 1 , D e ( l ) } } } f u n c t i o n f M ( n ) { l e t e , t , i = { c l a s s : " c o n f i r m - c h a n g e s - p a n e l " , p o p u p : ! 0 , $ $ s l o t s : { f o o t e r : [ u M ] , h e a d e r : [ a M ] , d e f a u l t : [ r M ] } , $ $ s c o p e : { c t x : n } } ; r e t u r n e = n e w o n ( { p r o p s : i } ) , n [ 1 3 ] ( e ) , e . $ o n ( " h i d e " , n [ 1 4 ] ) , e . $ o n ( " s h o w " , n [ 1 5 ] ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( s , l ) { V ( e , s , l ) , t = ! 0 } , p ( s , [ l ] ) { c o n s t o = { } ; l & 1 6 7 7 7 7 1 0 & & ( o . $ $ s c o p e = { d i r t y : l , c t x : s } ) , e . $ s e t ( o ) } , i ( s ) { t | | ( I ( e . $ $ . f r a g m e n t , s ) , t = ! 0 ) } , o ( s ) { L ( e . $ $ . f r a g m e n t , s ) , t = ! 1 } , d ( s ) { n [ 1 3 ] ( n u l l ) , z ( e , s ) } } } f u n c t i o n c M ( n , e , t ) { l e t i , s , l , o , r ; c o n s t a = T t ( ) ; l e t u , f , d ; a s y n c f u n c t i o n p ( T , M ) { t ( 1 , f = T ) , t ( 2 , d = M ) , a w a i t c n ( ) , i | | s . l e n g t h | | l . l e n g t h | | o . l e n g t h ? u = = n u l l | | u . s h o w ( ) : g ( ) } f u n c t i o n h ( ) { u = = n u l l | | u . h i d e ( ) } f u n c t i o n g ( ) { h ( ) , a ( " c o n f i r m " ) } c o n s t _ = ( ) = > h ( ) , v = ( ) = > g ( ) ; f u n c t i o n k ( T ) { n e [ T ? " u n s h i f t " : " p u s h " ] ( ( ) = > { u = T , t ( 4 , u ) } ) } f u n c t i o n $ ( T ) { F e . c a l l ( t h i s , n , T ) } f u n c t i o n C ( T ) { F e . c a l l ( t h i s , n , T ) } r e t u r n n . $ $ . u p d a t e = ( ) = > { v a r T , M , O ; n . $ $ . d i r t y & 6 & & t ( 3 , i = ( f = = n u l l ? v o i d 0 : f . n a m e ) ! = ( d = = n u l l ? v o i d 0 : d . n a m e ) ) , n . $ $ . d i r t y & 4 & & t ( 7 , s = ( ( T = d = = n u l l ? v o i d 0 : d . s c h e m a ) = = n u l l ? v o i d 0 : T . f i l t e r ( E = > E . i d & & ! E . t o D e l e t e & & E . o r i g i n a l N a m e ! = E . n a m e ) ) | | [ ] ) , n . $ $ . d i r t y & 4 & & t ( 6 , l = ( ( M = d = = n u l l ? v o i d 0 : d . s c h e m a ) = = n u l l ? v o i d 0 : M . f i l t e r ( E = > E . i d & & E . t o D e l e t e ) ) | | [ ] ) , n . $ $ . d i r t y & 6 & & t ( 5 , o = ( ( O = d = = n u l l ? v o i d 0 : d . s c h e m a ) = = n u l l ? v o i d 0 : O . f i l t e r ( E = > { v a r P , N , F ; c o n s t A = ( P = f = = n u l l ? v o i d 0 : f . s c h e m a ) = = n u l l ? v o i d 0 : P . f i n d ( R = > R . i d = = E . i d ) ; r e t u r n A ? ( ( N = A . o p t i o n s ) = = n u l l ? v o i d 0 : N . m a x S e l e c t ) ! = 1 & & ( ( F = E . o p t i o n s ) = = n u l l ? v o i d 0 : F . m a x S e l e c t ) = = 1 : ! 1 } ) ) | | [ ] ) , n . $ $ . d i r t y & 1 2 & & t ( 8 , r = ! ( d ! = n u l l & & d . $ i s V i e w ) | | i ) } , [ h , f , d , i , u , o , l , s , r , g , p , _ , v , k , $ , C ] } c l a s s d M e x t e n d s b e { c o n s t r u c t o r ( e ) { s u p e r ( ) , g e ( t h i s , e , c M , f M , h e , { s h o w : 1 0 , h i d e : 0 } ) } g e t s h o w ( ) { r e t u r n t h i s . $ $ . c t x [ 1 0 ] } g e t h i d e ( ) { r e t u r n t h i s . $ $ . c t x [ 0 ] } } f u n c t i o n c p ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 4 7 ] = e [ t ] [ 0 ] , i [ 4 8 ] = e [ t ] [ 1 ] , i } f u n c t i o n p M ( n ) { l e t e , t , i ; f u n c t i o n s ( o ) { n [ 3 3 ] ( o ) } l e t l = { } ; r e t u r n n [ 2 ] ! = = v o i d 0 & & ( l . c o l l e c t i o n = n [ 2 ] ) , e = n e w _ 4 ( { p r o p s : l } ) , n e . p u s h ( ( ) = > d e ( e , " c o l l e c t i o n " , s ) ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( o , r ) { V ( e , o , r ) , i = ! 0 } , p ( o , r ) { c o n s t a = { } ; ! t & & r [ 0 ] & 4 & & ( t = ! 0 , a . c o l l e c t i o n = o [ 2 ] , _ e ( ( ) = > t = ! 1 ) ) , e . $ s e t ( a ) } , i ( o ) { i | | ( I ( e . $ $ . f r a g m e n t , o ) , i = ! 0 ) } , o ( o ) { L ( e . $ $ . f r a g m e n t , o ) , i = ! 1 } , d ( o ) { z ( e , o ) } } } f u n c t i o n m M ( n ) { l e t e , t , i ; f u n c t i o n s ( o ) { n [ 3 2 ] ( o ) } l e t l = { } ; r e t u r n n [ 2 ] ! = = v o i d 0 & & ( l . c o l l e c t i o n = n [ 2 ] ) , e = n e w N 4 ( { p r o p s : l } ) , n e . p u s h ( ( ) = > d e ( e , " c o l l e c t i o n " , s ) ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( o , r ) { V ( e , o , r ) , i = ! 0 } , p ( o , r ) { c o n s t a = { } ; ! t & & r [ 0 ] & 4 & & ( t = ! 0 , a . c o l l e c t i o n = o [ 2 ] , _ e ( ( ) = > t = ! 1 ) ) , e . $ s e t ( a ) } , i ( o ) { i | | ( I ( e . $ $ . f r a g m e n t , o ) , i = ! 0 ) } , o ( o ) { L ( e . $ $ . f r a g m e n t , o ) , i = ! 1 } , d ( o ) { z ( e , o ) } } } f u n c t i o n d p ( n ) { l e t e , t , i , s ; f u n c t i o n l ( r ) { n [ 3 4 ] ( r ) } l e t o = { } ; r e t u r n n [ 2 ] ! = = v o i d 0 & & ( o . c o l l e c t i o n = n [ 2 ] ) , t = n e w E 4 ( { p r o p s : o } ) , n e . p u s h ( ( ) = > d e ( t , " c o l l e c t i o n " , l ) ) , { c ( ) { e = y ( " d i v " ) , H ( t . $ $ . f r a g m e n t ) , m ( e , " c l a s s " , " t a b - i t e m a c t i v e " ) } , m ( r , a ) { S ( r , e , a ) , V ( t , e , n u l l ) , s = ! 0 } , p ( r , a ) { c o n s t u = { } ; ! i & & a [ 0 ] & 4 & & ( i = ! 0 , u . c o l l e c t i o n = r [ 2 ] , _ e ( ( ) = > i = ! 1 ) ) , t . $ s e t ( u ) } , i ( r ) { s | | ( I ( t . $ $ . f r a g m e n t , r ) , s = ! 0 ) } , o ( r ) { L ( t . $ $ . f r a g m e n t , r ) , s = ! 1 } , d ( r ) { r & & w ( e ) , z ( t ) } } } f u n c t i o n p p ( n ) { l e t e , t , i , s ; f u n c t i o n l ( r ) { n [ 3 5 ] ( r ) } l e t o = { } ; r e t u r n n [ 2 ] ! = = v o i d 0 & & ( o . c o l l e c t i o n = n [ 2 ] ) , t = n e w o M ( { p r o p s : o } ) , n e . p u s h ( ( ) = > d e ( t , " c o l l e c t i o n " , l ) ) , { c ( ) { e = y ( " d i v " ) , H ( t . $ $ . f r a g m e n t ) , m ( e , " c l a s s " , " t a b - i t e m " ) , x ( e , " a c t i v e " , n [ 3 ] = = = F s ) } , m ( r , a ) { S ( r , e , a ) , V ( t , e , n u l l ) , s = ! 0
2023-05-17 21:41:42 +02:00
< span class = "txt" > Duplicate < /span>`,t=D(),i=y("button"),i.innerHTML=`<i class="ri-delete-bin-7-line"></i >
2023-05-24 22:18:44 +02:00
< span class = "txt" > Delete < / s p a n > ` , m ( e , " t y p e " , " b u t t o n " ) , m ( e , " c l a s s " , " d r o p d o w n - i t e m c l o s a b l e " ) , m ( i , " t y p e " , " b u t t o n " ) , m ( i , " c l a s s " , " d r o p d o w n - i t e m t x t - d a n g e r c l o s a b l e " ) } , m ( o , r ) { S ( o , e , r ) , S ( o , t , r ) , S ( o , i , r ) , s | | ( l = [ J ( e , " c l i c k " , n [ 2 4 ] ) , J ( i , " c l i c k " , I n ( t t ( n [ 2 5 ] ) ) ) ] , s = ! 0 ) } , p : t e , d ( o ) { o & & w ( e ) , o & & w ( t ) , o & & w ( i ) , s = ! 1 , D e ( l ) } } } f u n c t i o n h p ( n ) { l e t e , t , i , s ; r e t u r n i = n e w J n ( { p r o p s : { c l a s s : " d r o p d o w n d r o p d o w n - r i g h t d r o p d o w n - n o w r a p m - t - 5 " , $ $ s l o t s : { d e f a u l t : [ g M ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { e = y ( " i " ) , t = D ( ) , H ( i . $ $ . f r a g m e n t ) , m ( e , " c l a s s " , " r i - a r r o w - d o w n - s - f i l l " ) } , m ( l , o ) { S ( l , e , o ) , S ( l , t , o ) , V ( i , l , o ) , s = ! 0 } , p ( l , o ) { c o n s t r = { } ; o [ 0 ] & 6 8 | o [ 1 ] & 1 0 4 8 5 7 6 & & ( r . $ $ s c o p e = { d i r t y : o , c t x : l } ) , i . $ s e t ( r ) } , i ( l ) { s | | ( I ( i . $ $ . f r a g m e n t , l ) , s = ! 0 ) } , o ( l ) { L ( i . $ $ . f r a g m e n t , l ) , s = ! 1 } , d ( l ) { l & & w ( e ) , l & & w ( t ) , z ( i , l ) } } } f u n c t i o n _ p ( n ) { l e t e , t , i , s , l , o = n [ 4 8 ] + " " , r , a , u , f , d ; f u n c t i o n p ( ) { r e t u r n n [ 2 7 ] ( n [ 4 7 ] ) } r e t u r n { c ( ) { e = y ( " b u t t o n " ) , t = y ( " i " ) , s = D ( ) , l = y ( " s p a n " ) , r = W ( o ) , a = W ( " c o l l e c t i o n " ) , u = D ( ) , m ( t , " c l a s s " , i = o s ( U . g e t C o l l e c t i o n T y p e I c o n ( n [ 4 7 ] ) ) + " s v e l t e - 1 2 y 0 y z b " ) , m ( l , " c l a s s " , " t x t " ) , m ( e , " t y p e " , " b u t t o n " ) , m ( e , " c l a s s " , " d r o p d o w n - i t e m c l o s a b l e " ) , x ( e , " s e l e c t e d " , n [ 4 7 ] = = n [ 2 ] . t y p e ) } , m ( h , g ) { S ( h , e , g ) , b ( e , t ) , b ( e , s ) , b ( e , l ) , b ( l , r ) , b ( l , a ) , b ( e , u ) , f | | ( d = J ( e , " c l i c k " , p ) , f = ! 0 ) } , p ( h , g ) { n = h , g [ 0 ] & 6 4 & & i ! = = ( i = o s ( U . g e t C o l l e c t i o n T y p e I c o n ( n [ 4 7 ] ) ) + " s v e l t e - 1 2 y 0 y z b " ) & & m ( t , " c l a s s " , i ) , g [ 0 ] & 6 4 & & o ! = = ( o = n [ 4 8 ] + " " ) & & s e ( r , o ) , g [ 0 ] & 6 8 & & x ( e , " s e l e c t e d " , n [ 4 7 ] = = n [ 2 ] . t y p e ) } , d ( h ) { h & & w ( e ) , f = ! 1 , d ( ) } } } f u n c t i o n g M ( n ) { l e t e , t = O b j e c t . e n t r i e s ( n [ 6 ] ) , i = [ ] ; f o r ( l e t s = 0 ; s < t . l e n g t h ; s + = 1 ) i [ s ] = _ p ( c p ( n , t , s ) ) ; r e t u r n { c ( ) { f o r ( l e t s = 0 ; s < i . l e n g t h ; s + = 1 ) i [ s ] . c ( ) ; e = k e ( ) } , m ( s , l ) { f o r ( l e t o = 0 ; o < i . l e n g t h ; o + = 1 ) i [ o ] & & i [ o ] . m ( s , l ) ; S ( s , e , l ) } , p ( s , l ) { i f ( l [ 0 ] & 1 3 1 1 4 0 ) { t = O b j e c t . e n t r i e s ( s [ 6 ] ) ; l e t o ; f o r ( o = 0 ; o < t . l e n g t h ; o + = 1 ) { c o n s t r = c p ( s , t , o ) ; i [ o ] ? i [ o ] . p ( r , l ) : ( i [ o ] = _ p ( r ) , i [ o ] . c ( ) , i [ o ] . m ( e . p a r e n t N o d e , e ) ) } f o r ( ; o < i . l e n g t h ; o + = 1 ) i [ o ] . d ( 1 ) ; i . l e n g t h = t . l e n g t h } } , d ( s ) { h t ( i , s ) , s & & w ( e ) } } } f u n c t i o n g p ( n ) { l e t e ; r e t u r n { c ( ) { e = y ( " d i v " ) , e . t e x t C o n t e n t = " S y s t e m c o l l e c t i o n " , m ( e , " c l a s s " , " h e l p - b l o c k " ) } , m ( t , i ) { S ( t , e , i ) } , d ( t ) { t & & w ( e ) } } } f u n c t i o n b M ( n ) { l e t e , t , i , s , l , o , r , a , u , f , d , p , h , g , _ , v , k = ( n [ 6 ] [ n [ 2 ] . t y p e ] | | " N / A " ) + " " , $ , C , T , M , O , E , A , P , N , F = n [ 2 ] . $ i s N e w & & h p ( n ) , R = n [ 2 ] . s y s t e m & & g p ( ) ; r e t u r n { c ( ) { e = y ( " l a b e l " ) , t = W ( " N a m e " ) , s = D ( ) , l = y ( " i n p u t " ) , f = D ( ) , d = y ( " d i v " ) , p = y ( " b u t t o n " ) , h = y ( " s p a n " ) , g = D ( ) , _ = y ( " s p a n " ) , v = W ( " T y p e : " ) , $ = W ( k ) , C = D ( ) , F & & F . c ( ) , O = D ( ) , R & & R . c ( ) , E = k e ( ) , m ( e , " f o r " , i = n [ 4 6 ] ) , m ( l , " t y p e " , " t e x t " ) , m ( l , " i d " , o = n [ 4 6 ] ) , l . r e q u i r e d = ! 0 , l . d i s a b l e d = n [ 1 3 ] , m ( l , " s p e l l c h e c k " , " f a l s e " ) , l . a u t o f o c u s = r = n [ 2 ] . $ i s N e w , m ( l , " p l a c e h o l d e r " , a = n [ 2 ] . $ i s A u t h ? ' e g . " u s e r s " ' : ' e g . " p o s t s " ' ) , l . v a l u e = u = n [ 2 ] . n a m e , m ( _ , " c l a s s " , " t x t " ) , m ( p , " t y p e " , " b u t t o n " ) , m ( p , " c l a s s " , T = " b t n b t n - s m p - r - 1 0 p - l - 1 0 " + ( n [ 2 ] . $ i s N e w ? " b t n - o u t l i n e " : " b t n - t r a n s p a r e n t " ) ) , p . d i s a b l e d = M = ! n [ 2 ] . $ i s N e w , m ( d , " c l a s s " , " f o r m - f i e l d - a d d o n " ) } , m ( q , j ) { S ( q , e , j ) , b ( e , t ) , S ( q , s , j ) , S ( q , l , j ) , S ( q , f , j ) , S ( q , d , j ) , b ( d , p ) , b ( p , h ) , b ( p , g ) , b ( p , _ ) , b ( _ , v ) , b ( _ , $ ) , b ( p , C ) , F & & F . m ( p , n u l l ) , S ( q , O , j ) , R & & R . m ( q , j ) , S ( q , E , j ) , A = ! 0 , n [ 2 ] . $ i s N e w & & l . f o c u s ( ) , P | | ( N = J ( l , " i n p u t " , n [ 2 6 ] ) , P = ! 0 ) } , p ( q , j ) { ( ! A | | j [ 1 ] & 3 2 7 6 8 & & i ! = = ( i = q [ 4 6 ] ) ) & & m ( e , " f o r " , i ) , ( ! A | | j [ 1 ] & 3 2 7 6 8 & & o ! = = ( o = q [ 4 6 ] ) ) & & m ( l , " i d " , o ) , ( ! A | | j [ 0 ] & 8 1 9 2 ) & & ( l . d i s a b l e d = q [ 1 3 ] ) , ( ! A | | j [ 0 ] & 4 & & r ! = = ( r = q [ 2 ] . $ i s N e w ) ) & & ( l . a u t o f o c u s = r ) , ( ! A | | j [ 0 ] & 4 & & a ! = = ( a = q [ 2 ] . $ i s A u t h ? ' e g . " u s e r s " ' : ' e g . " p o s t s " ' ) ) & & m ( l , " p l a c e h o l d e r " , a ) , ( ! A | | j [ 0 ] & 4 & & u ! = = ( u = q [ 2 ] . n a m e ) & & l . v a l u e ! = = u ) & & ( l . v a l u e = u ) , ( ! A | | j [ 0 ] & 6 8 ) & & k ! = = ( k = ( q [ 6 ] [ q [ 2 ] . t y p e ] | | " N / A " ) + " " ) & & s e ( $ , k ) , q [ 2 ] . $ i s N e w ? F ? ( F . p ( q , j ) , j [ 0 ] & 4 & & I ( F , 1 ) ) : ( F = h p ( q ) , F . c ( ) , I ( F , 1 ) , F . m ( p , n u l l ) ) : F & & ( a e ( ) , L ( F , 1 , 1 , ( ) = > { F = n u l l } ) , u e ( ) ) , ( ! A | | j [ 0 ] & 4 & & T ! = = ( T = " b t n b t n - s m p - r - 1 0 p - l - 1 0 " + ( q [ 2 ] . $ i s N e w ? " b t n - o u t l i n e " : " b t n - t r a n s p a r e n t " ) ) ) & & m ( p , " c l a s s " , T ) , ( ! A | | j [ 0 ] & 4 & & M ! = = ( M = ! q [ 2 ] . $ i s N e w ) ) & & ( p . d i s a b l e d = M ) , q [ 2 ] . s y s t e m ? R | | ( R = g p ( ) , R . c ( ) , R . m ( E . p a r e n t N o d e , E ) ) : R & & ( R . d ( 1 ) , R = n u l l ) } , i ( q ) { A | | ( I ( F ) , A = ! 0 ) } , o ( q ) { L ( F ) , A = ! 1 } , d ( q ) { q & & w ( e ) , q & & w ( s ) , q & & w ( l ) , q & & w ( f ) , q & & w ( d ) , F & & F . d ( ) , q & & w ( O ) , R & & R . d ( q ) , q & & w ( E ) , P = ! 1 , N ( ) } } } f u n c t i o n b p ( n ) { l e t e , t , i , s , l , o ; r e t u r n { c ( ) { e = y ( " i " ) , m ( e , " c l a s s " , " r i - e r r o r - w a r n i n g - f i l l t x t - d a n g e r " ) } , m ( r , a ) { S ( r , e , a ) , s = ! 0 , l | | ( o = O e ( t = B e . c a l l ( n u l l , e , n [ 1 1 ] ) ) , l = ! 0 ) } , p ( r , a ) { t & & j t ( t . u p d a t e ) & & a [ 0 ] & 2 0 4 8 & & t . u p d a t e . c a l l ( n u l l , r [ 1 1 ] ) } , i ( r ) { s | | ( r & & x e ( ( ) = > { s & & ( i | | ( i = V e ( e , J t , { d u r a t i o n : 1 5 0 , s t a r t : . 7 } , ! 0 ) ) , i . r u n ( 1 ) ) } ) , s = ! 0 ) } , o ( r ) { r & & ( i
< span class = "txt" > New collection < /span>`,m(t,"type","button"),m(t,"class","btn btn-block btn-outline"),m(e,"class","sidebar-footer")},m(l,o){S(l,e,o),b(e,t),i||(s=J(t,"click",n[12]),i=!0)},p:te,d(l){l&&w(e),i=!1,s()}}}function $M(n){let e,t,i,s,l,o,r,a,u,f,d,p=[],h=new Map,g,_,v,k,$,C,T=n[3];const M=P=>P[15].id;for(let P=0;P<T.length;P+=1){let N=$p(n,T,P),F=M(N);h.set(F,p[P]=Mp(F,N))}let O=null;T.length||(O=Tp(n));let E=!n[7]&&Op(n),A={};return v=new du({props:A}),n[13](v),v.$on("save",n[14]),{c(){e=y("aside"),t=y("header"),i=y("div"),s=y("div"),l=y("button"),l.innerHTML='<i class="ri-close-line"></i > ' , o = D ( ) , r = y ( "input" ) , a = D ( ) , u = y ( "hr" ) , f = D ( ) , d = y ( "div" ) ; for ( let P = 0 ; P < p . length ; P += 1 ) p [ P ] . c ( ) ; O && O . c ( ) , g = D ( ) , E && E . c ( ) , _ = D ( ) , H ( v . $$ . fragment ) , m ( l , "type" , "button" ) , m ( l , "class" , "btn btn-xs btn-transparent btn-circle btn-clear" ) , x ( l , "hidden" , ! n [ 4 ] ) , m ( s , "class" , "form-field-addon" ) , m ( r , "type" , "text" ) , m ( r , "placeholder" , "Search collections..." ) , m ( i , "class" , "form-field search" ) , x ( i , "active" , n [ 4 ] ) , m ( t , "class" , "sidebar-header" ) , m ( u , "class" , "m-t-5 m-b-xs" ) , m ( d , "class" , "sidebar-content" ) , x ( d , "fade" , n [ 6 ] ) , x ( d , "sidebar-content-compact" , n [ 3 ] . length > 20 ) , m ( e , "class" , "page-sidebar collection-sidebar" ) } , m ( P , N ) { S ( P , e , N ) , b ( e , t ) , b ( t , i ) , b ( i , s ) , b ( s , l ) , b ( i , o ) , b ( i , r ) , re ( r , n [ 0 ] ) , b ( e , a ) , b ( e , u ) , b ( e , f ) , b ( e , d ) ; for ( let F = 0 ; F < p . length ; F += 1 ) p [ F ] && p [ F ] . m ( d , null ) ; O && O . m ( d , null ) , b ( e , g ) , E && E . m ( e , null ) , S ( P , _ , N ) , V ( v , P , N ) , k = ! 0 , $ || ( C = [ J ( l , "click" , n [ 10 ] ) , J ( r , "input" , n [ 11 ] ) ] , $ = ! 0 ) } , p ( P , [ N ] ) { ( ! k || N & 16 ) && x ( l , "hidden" , ! P [ 4 ] ) , N & 1 && r . value !== P [ 0 ] && re ( r , P [ 0 ] ) , ( ! k || N & 16 ) && x ( i , "active" , P [ 4 ] ) , N & 42 && ( T = P [ 3 ] , p = vt ( p , N , M , 1 , P , T , h , d , us , Mp , null , $p ) , ! T . length && O ? O . p ( P , N ) : T . length ? O && ( O . d ( 1 ) , O = null ) : ( O = Tp ( P ) , O . c ( ) , O . m ( d , null ) ) ) , ( ! k || N & 64 ) && x ( d , "fade" , P [ 6 ] ) , ( ! k || N & 8 ) && x ( d , "sidebar-content-compact" , P [ 3 ] . length > 20 ) , P [ 7 ] ? E && ( E . d ( 1 ) , E = null ) : E ? E . p ( P , N ) : ( E = Op ( P ) , E . c ( ) , E . m ( e , null ) ) ; const F = { } ; v . $set ( F ) } , i ( P ) { k || ( I ( v . $$ . fragment , P ) , k = ! 0 ) } , o ( P ) { L ( v . $$ . fragment , P ) , k = ! 1 } , d ( P ) { P && w ( e ) ; for ( let N = 0 ; N < p . length ; N += 1 ) p [ N ] . d ( ) ; O && O . d ( ) , E && E . d ( ) , P && w ( _ ) , n [ 13 ] ( null ) , z ( v , P ) , $ = ! 1 , De ( C ) } } } function TM ( ) { setTimeout ( ( ) => { const n = document . querySelector ( ".collection-sidebar .sidebar-list-item.active" ) ; n && ( n == null || n . scrollIntoView ( { block : "nearest" } ) ) } , 0 ) } function CM ( n , e , t ) { let i , s , l , o , r , a , u ; Ze ( n , fi , $ => t ( 5 , o = $ ) ) , Ze ( n , di , $ => t ( 9 , r = $ ) ) , Ze ( n , wo , $ => t ( 6 , a = $ ) ) , Ze ( n , Is , $ => t ( 7 , u = $ ) ) ; let f , d = "" ; function p ( $ ) { ln ( fi , o = $ , o ) } const h = ( ) => t ( 0 , d = "" ) ; function g ( ) { d = this . value , t ( 0 , d ) } const _ = ( ) => f == null ? void 0 : f . show ( ) ; function v ( $ ) { ne [ $ ? "unshift" : "push" ] ( ( ) => { f = $ , t ( 2 , f ) } ) } const k = $ => { var C ; ( C = $ . detail ) != null && C . isNew && $ . detail . collection && p ( $ . detail . collection ) } ; return n . $$ . update = ( ) => { n . $$ . dirty & 512 && r && TM ( ) , n . $$ . dirty & 1 && t ( 1 , i = d . replace ( /\s+/g , "" ) . toLowerCase ( ) ) , n . $$ . dirty & 1 && t ( 4 , s = d !== "" ) , n . $$ . dirty & 515 && t ( 3 , l = r . filter ( $ => $ . id == d || $ . name . replace ( /\s+/g , "" ) . toLowerCase ( ) . includes ( i ) ) ) } , [ d , i , f , l , s , o , a , u , p , r , h , g , _ , v , k ] } class MM extends be { constructor ( e ) { super ( ) , ge ( this , e , CM , $M , he , { } ) } } function Ep ( n , e , t ) { const i = n . slice ( ) ; return i [ 14 ] = e [ t ] [ 0 ] , i [ 15 ] = e [ t ] [ 1 ] , i } function Dp ( n ) { n [ 18 ] = n [ 19 ] . default } function Ap ( n , e , t ) { const i = n . slice ( ) ; return i [ 14 ] = e [ t ] [ 0 ] , i [ 15 ] = e [ t ] [ 1 ] , i [ 21 ] = t , i } function Ip ( n ) { let e ; return { c ( ) { e = y ( "hr" ) , m ( e , "class" , "m-t-sm m-b-sm" ) } , m ( t , i ) { S ( t , e , i ) } , d ( t ) { t && w ( e ) } } } function Lp ( n , e ) { let t , i = e [ 21 ] === Object . keys ( e [ 6 ] ) . length , s , l , o = e [ 15 ] . label + "" , r , a , u , f , d = i && Ip ( ) ; function p ( ) { return e [ 9 ] ( e [ 14 ] ) } return { key : n , first : null , c ( ) { t = ke ( ) , d && d . c ( ) , s = D ( ) , l = y ( "button" ) , r = W ( o ) , a = D ( ) , m ( l , "type" , "button" ) , m ( l , "class" , "sidebar-item" ) , x ( l , "active" , e [ 5 ] === e [ 14 ] ) , this . first = t } , m ( h , g ) { S ( h , t , g ) , d && d . m ( h , g ) , S ( h , s , g ) , S ( h , l , g ) , b ( l , r ) , b ( l , a ) , u || ( f = J ( l , "click" , p ) , u = ! 0 ) } , p ( h , g ) { e = h , g & 8 && ( i = e [ 21 ] === Object . keys ( e [ 6 ] ) . length ) , i ? d || ( d = Ip ( ) , d . c ( ) , d . m ( s . parentNode , s ) ) : d && ( d . d ( 1 ) , d = null ) , g & 8 && o !== ( o = e [ 15 ] . label + "" ) && se ( r , o ) , g & 40 && x ( l , "active" , e [ 5 ] === e [ 14 ] ) } , d ( h ) { h && w ( t ) , d && d . d ( h ) , h && w ( s ) , h && w ( l ) , u = ! 1 , f ( ) } } } function Pp ( n ) { let e , t , i , s = { ctx : n , current : null , token : null , hasCatch : ! 1 , pending : DM , then : EM , catch : OM , value : 19 , blocks : [ , , , ] } ; return bu ( t = n [ 15 ] . component , s ) , { c ( ) { e = ke ( ) , s . block . c ( ) } , m ( l , o ) { S ( l , e , o ) , s . block . m ( l , s . anchor = o ) , s . mount = ( ) => e . parentNode , s . a
2023-05-17 21:41:42 +02:00
form - field form - field - list form - field - file
` +(n[4].required?"required":"")+ `
` +(n[9]?"dragover":"")+ `
2023-05-24 22:18:44 +02:00
` ,name:n[4].name, $ $ slots:{default:[G6,({uniqueId:o})=>({28:o}),({uniqueId:o})=>[o?268435456:0]]}, $ $ scope:{ctx:n}}}),{c(){e=y("div"),H(t. $ $ .fragment),m(e,"class","block")},m(o,r){S(o,e,r),V(t,e,null),i=!0,s||(l=[J(e,"dragover",tt(n[25])),J(e,"dragleave",n[26]),J(e,"drop",n[15])],s=!0)},p(o,r){const a={};r[0]&528&&(a.class= `
2023-05-17 21:41:42 +02:00
form - field form - field - list form - field - file
` +(o[4].required?"required":"")+ `
` +(o[9]?"dragover":"")+ `
2023-05-24 22:18:44 +02:00
` ),r[0]&16&&(a.name=o[4].name),r[0]&268439039|r[1]&64&&(a. $ $ scope={dirty:r,ctx:o}),t. $ set(a)},i(o){i||(I(t. $ $ .fragment,o),i=!0)},o(o){L(t. $ $ .fragment,o),i=!1},d(o){o&&w(e),z(t),s=!1,De(l)}}}function Q6(n,e,t){let i,s,l,{record:o}=e,{value:r=""}=e,{uploadedFiles:a=[]}=e,{deletedFileNames:u=[]}=e,{field:f=new wn}=e,d,p,h=!1,g="";function _(B){U.removeByValue(u,B),t(2,u)}function v(B){U.pushUnique(u,B),t(2,u)}function k(B){U.isEmpty(a[B])||a.splice(B,1),t(1,a)}function $ (){p==null||p.dispatchEvent(new CustomEvent("change",{detail:{value:r,uploadedFiles:a,deletedFileNames:u},bubbles:!0}))}function C(B){var Q,Z;B.preventDefault(),t(9,h=!1);const Y=((Q=B.dataTransfer)==null?void 0:Q.files)||[];if(!(l||!Y.length)){for(const G of Y){const le=s.length+a.length-u.length;if(((Z=f.options)==null?void 0:Z.maxSelect)<=le)break;a.push(G)}t(1,a)}}Xt(async()=>{t(10,g=await ce.getAdminFileToken(o.collectionId))});const T=B=>_(B),M=B=>v(B);function O(B){r=B,t(0,r),t(6,i),t(4,f)}const E=B=>k(B);function A(B){a=B,t(1,a)}function P(B){ne[B?"unshift":"push"](()=>{d=B,t(7,d)})}const N=()=>{for(let B of d.files)a.push(B);t(1,a),t(7,d.value=null,d)},F=()=>d==null?void 0:d.click();function R(B){ne[B?"unshift":"push"](()=>{p=B,t(8,p)})}const q=()=>{t(9,h=!0)},j=()=>{t(9,h=!1)};return n. $ $ set=B=>{"record"in B&&t(3,o=B.record),"value"in B&&t(0,r=B.value),"uploadedFiles"in B&&t(1,a=B.uploadedFiles),"deletedFileNames"in B&&t(2,u=B.deletedFileNames),"field"in B&&t(4,f=B.field)},n. $ $ .update=()=>{var B,Y;n. $ $ .dirty[0]&2&&(Array.isArray(a)||t(1,a=U.toArray(a))),n. $ $ .dirty[0]&4&&(Array.isArray(u)||t(2,u=U.toArray(u))),n. $ $ .dirty[0]&16&&t(6,i=((B=f.options)==null?void 0:B.maxSelect)>1),n. $ $ .dirty[0]&65&&U.isEmpty(r)&&t(0,r=i?[]:""),n. $ $ .dirty[0]&1&&t(5,s=U.toArray(r)),n. $ $ .dirty[0]&54&&t(11,l=(s.length||a.length)&&((Y=f.options)==null?void 0:Y.maxSelect)<=s.length+a.length-u.length),n. $ $ .dirty[0]&6&&(a!==-1||u!==-1)&& $ ()},[r,a,u,o,f,s,i,d,p,h,g,l,_,v,k,C,T,M,O,E,A,P,N,F,R,q,j]}class x6 extends be{constructor(e){super(),ge(this,e,Q6,X6,he,{record:3,value:0,uploadedFiles:1,deletedFileNames:2,field:4},null,[-1,-1])}}function Wp(n){return typeof n=="function"?{threshold:100,callback:n}:n||{}}function e5(n,e){e=Wp(e),e!=null&&e.callback&&e.callback();function t(i){if(!(e!=null&&e.callback))return;i.target.scrollHeight-i.target.clientHeight-i.target.scrollTop<=e.threshold&&e.callback()}return n.addEventListener("scroll",t),n.addEventListener("resize",t),{update(i){e=Wp(i)},destroy(){n.removeEventListener("scroll",t),n.removeEventListener("resize",t)}}}function Yp(n,e,t){const i=n.slice();i[6]=e[t];const s=U.toArray(i[0][i[6]]).slice(0,5);return i[7]=s,i}function Kp(n,e,t){const i=n.slice();return i[10]=e[t],i}function Jp(n){let e,t;return e=new pu({props:{record:n[0],filename:n[10],size:"xs"}}),{c(){H(e. $ $ .fragment)},m(i,s){V(e,i,s),t=!0},p(i,s){const l={};s&1&&(l.record=i[0]),s&3&&(l.filename=i[10]),e. $ set(l)},i(i){t||(I(e. $ $ .fragment,i),t=!0)},o(i){L(e. $ $ .fragment,i),t=!1},d(i){z(e,i)}}}function Zp(n){let e=!U.isEmpty(n[10]),t,i,s=e&&Jp(n);return{c(){s&&s.c(),t=ke()},m(l,o){s&&s.m(l,o),S(l,t,o),i=!0},p(l,o){o&3&&(e=!U.isEmpty(l[10])),e?s?(s.p(l,o),o&3&&I(s,1)):(s=Jp(l),s.c(),I(s,1),s.m(t.parentNode,t)):s&&(ae(),L(s,1,1,()=>{s=null}),ue())},i(l){i||(I(s),i=!0)},o(l){L(s),i=!1},d(l){s&&s.d(l),l&&w(t)}}}function Gp(n){let e,t,i=n[7],s=[];for(let o=0;o<i.length;o+=1)s[o]=Zp(Kp(n,i,o));const l=o=>L(s[o],1,1,()=>{s[o]=null});return{c(){for(let o=0;o<s.length;o+=1)s[o].c();e=ke()},m(o,r){for(let a=0;a<s.length;a+=1)s[a]&&s[a].m(o,r);S(o,e,r),t=!0},p(o,r){if(r&3){i=o[7];let a;for(a=0;a<i.length;a+=1){const u=Kp(o,i,a);s[a]?(s[a].p(u,r),I(s[a],1)):(s[a]=Zp(u),s[a].c(),I(s[a],1),s[a].m(e.parentNode,e))}for(ae(),a=i.length;a<s.length;a+=1)l(a);ue()}},i(o){if(!t){for(let r=0;r<i.length;r+=1)I(s[r]);t=!0}},o(o){s=s.filter(Boolean);for(let r=0;r<s.length;r+=1)L(s[r]);t=!1},d(o){ht(s,o),o&&w(e)}}}function t5(n){let e,t,i,s,l,o,r=U.truncate(U.displayValue(n[0],n[2]),70)+"",a,u,f,d,p=n[1],h=[];for(let _=0;_<p.length;_+=1)h[_]=Gp(Yp(n,p,_));const g=_=>L(h[_],1,1,()=>{h[_
` ),E&&E.c(),p=D(),g.c(),_=ke(),m(e,"class","flex m-b-base flex-gap-10"),m(l,"class","list picker-list m-b-base svelte-1u8jhky"),m(f,"class","section-title")},m(R,q){S(R,e,q),V(t,e,null),b(e,i),C&&C.m(e,null),S(R,s,q),S(R,l,q);for(let j=0;j<o.length;j+=1)o[j]&&o[j].m(l,null);O&&O.m(l,null),S(R,u,q),S(R,f,q),b(f,d),E&&E.m(f,null),S(R,p,q),P[h].m(R,q),S(R,_,q),v=!0,k||( $ =Oe(a=e5.call(null,l,n[36])),k=!0)},p(R,q){var Y;const j={};q[0]&4&&(j.value=R[2]),q[0]&1024&&(j.autocompleteCollection=R[10]),t. $ set(j),(Y=R[10])!=null&&Y. $ isView?C&&(C.d(1),C=null):C?C.p(R,q):(C=xp(R),C.c(),C.m(e,null)),q[0]&145324&&(T=R[3],ae(),o=vt(o,q,M,1,R,T,r,l,Ut,im,null,Qp),ue(),!T.length&&O?O.p(R,q):T.length?O&&(O.d(1),O=null):(O=em(R),O.c(),O.m(l,null))),a&&jt(a.update)&&q[0]&2064&&a.update.call(null,R[36]),R[5]>1?E?E.p(R,q):(E=sm(R),E.c(),E.m(f,null)):E&&(E.d(1),E=null);let B=h;h=N(R),h===B?P[h].p(R,q):(ae(),L(P[B],1,1,()=>{P[B]=null}),ue(),g=P[h],g?g.p(R,q):(g=P[h]=A[h](R),g.c()),I(g,1),g.m(_.parentNode,_))},i(R){if(!v){I(t. $ $ .fragment,R);for(let q=0;q<T.length;q+=1)I(o[q]);I(g),v=!0}},o(R){L(t. $ $ .fragment,R);for(let q=0;q<o.length;q+=1)L(o[q]);L(g),v=!1},d(R){R&&w(e),z(t),C&&C.d(),R&&w(s),R&&w(l);for(let q=0;q<o.length;q+=1)o[q].d();O&&O.d(),R&&w(u),R&&w(f),E&&E.d(),R&&w(p),P[h].d(R),R&&w(_),k=!1, $ ()}}}function c5(n){var r;let e,t,i,s=(((r=n[10])==null?void 0:r.name)||"")+"",l,o;return{c(){e=y("h4"),t=W("Select "),i=y("strong"),l=W(s),o=W(" records")},m(a,u){S(a,e,u),b(e,t),b(e,i),b(i,l),b(e,o)},p(a,u){var f;u[0]&1024&&s!==(s=(((f=a[10])==null?void 0:f.name)||"")+"")&&se(l,s)},d(a){a&&w(e)}}}function d5(n){let e,t,i,s,l;return{c(){e=y("button"),e.innerHTML='<span class="txt">Cancel</span>',t=D(),i=y("button"),i.innerHTML='<span class="txt">Set selection</span>',m(e,"type","button"),m(e,"class","btn btn-transparent"),m(i,"type","button"),m(i,"class","btn")},m(o,r){S(o,e,r),S(o,t,r),S(o,i,r),s||(l=[J(e,"click",n[28]),J(i,"click",n[29])],s=!0)},p:te,d(o){o&&w(e),o&&w(t),o&&w(i),s=!1,De(l)}}}function p5(n){let e,t,i,s;const l=[{popup:!0},{class:"overlay-panel-xl"},n[19]];let o={ $ $ slots:{footer:[d5],header:[c5],default:[f5]}, $ $ scope:{ctx:n}};for(let a=0;a<l.length;a+=1)o=je(o,l[a]);e=new on({props:o}),n[39](e),e. $ on("hide",n[40]),e. $ on("show",n[41]);let r={collection:n[10]};return i=new T1({props:r}),n[42](i),i. $ on("save",n[43]),i. $ on("delete",n[44]),{c(){H(e. $ $ .fragment),t=D(),H(i. $ $ .fragment)},m(a,u){V(e,a,u),S(a,t,u),V(i,a,u),s=!0},p(a,u){const f=u[0]&524288?Ot(l,[l[0],l[1],Qt(a[19])]):{};u[0]&16380|u[1]&33554432&&(f. $ $ scope={dirty:u,ctx:a}),e. $ set(f);const d={};u[0]&1024&&(d.collection=a[10]),i. $ set(d)},i(a){s||(I(e. $ $ .fragment,a),I(i. $ $ .fragment,a),s=!0)},o(a){L(e. $ $ .fragment,a),L(i. $ $ .fragment,a),s=!1},d(a){n[39](null),z(e,a),a&&w(t),n[42](null),z(i,a)}}}const Rr=100;function m5(n,e,t){let i,s,l,o,r,a,u,f;const d=["value","field","show","hide"];let p=et(e,d),h;Ze(n,di,Pe=>t(26,h=Pe));const g=Tt(),_="picker_"+U.randomString(5);let{value:v}=e,{field:k}=e, $ ,C,T="",M=[],O=[],E=1,A=0,P=!1,N=!1;function F(){return t(2,T=""),t(3,M=[]),t(6,O=[]),q(),j(!0), $ ==null?void 0: $ .show()}function R(){return $ ==null?void 0: $ .hide()}async function q(){const Pe=U.toArray(v);if(!s||!Pe.length)return;t(24,N=!0);let $ e=[];const it=Pe.slice(),It=[];for(;it.length>0;){const Vt=[];for(const Wt of it.splice(0,Rr))Vt.push( ` id = "${Wt}" ` );It.push(ce.collection(s).getFullList(Rr,{filter:Vt.join("||"), $ autoCancel:!1}))}try{await Promise.all(It).then(Vt=>{ $ e= $ e.concat(...Vt)}),t(6,O=[]);for(const Vt of Pe){const Wt=U.findByKey( $ e,"id",Vt);Wt&&O.push(Wt)}T.trim()||t(3,M=U.filterDuplicatesByKey(O.concat(M)))}catch(Vt){ce.error(Vt)}t(24,N=!1)}async function j(Pe=!1){if(s){t(4,P=!0),Pe&&(T.trim()?t(3,M=[]):t(3,M=U.toArray(O).slice()));try{const $ e=Pe?1:E+1,it=U.getAllCollectionIdentifiers(o),It=await ce.collection(s).getList( $ e,Rr,{filter:U.normalizeSearchFilter(T,it),sort:o!=null&&o. $ isView?"":"-created", $ cancelKey:_+"loadList"});t(3,M=U.filterDuplicatesByKey(M.concat(It.items))),E=It.page,t(23,A=It.totalItems)}catch( $ e){ce.error( $ e)}t(4,P=!1)}}function B(Pe){i==1?t(6,O=
` ,m(e,"class","list-item")},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function _5(n){var p;let e,t,i,s,l,o,r,a,u,f;i=new ir({props:{record:n[20],displayFields:(p=n[2].options)==null?void 0:p.displayFields}});function d(){return n[10](n[20])}return{c(){e=y("div"),t=y("div"),H(i. $ $ .fragment),s=D(),l=y("div"),o=y("button"),o.innerHTML='<i class="ri-close-line"></i>',r=D(),m(t,"class","content"),m(o,"type","button"),m(o,"class","btn btn-transparent btn-hint btn-sm btn-circle btn-remove"),m(l,"class","actions"),m(e,"class","list-item"),x(e,"dragging",n[23]),x(e,"dragover",n[24])},m(h,g){S(h,e,g),b(e,t),V(i,t,null),b(e,s),b(e,l),b(l,o),S(h,r,g),a=!0,u||(f=[Oe(Be.call(null,o,"Remove")),J(o,"click",d)],u=!0)},p(h,g){var v;n=h;const _={};g&16&&(_.record=n[20]),g&4&&(_.displayFields=(v=n[2].options)==null?void 0:v.displayFields),i. $ set(_),(!a||g&8388608)&&x(e,"dragging",n[23]),(!a||g&16777216)&&x(e,"dragover",n[24])},i(h){a||(I(i. $ $ .fragment,h),a=!0)},o(h){L(i. $ $ .fragment,h),a=!1},d(h){h&&w(e),z(i),h&&w(r),u=!1,De(f)}}}function cm(n,e){let t,i,s,l;function o(a){e[11](a)}let r={group:e[2].name+"_relation",index:e[22],disabled:!e[6], $ $ slots:{default:[_5,({dragging:a,dragover:u})=>({23:a,24:u}),({dragging:a,dragover:u})=>(a?8388608:0)|(u?16777216:0)]}, $ $ scope:{ctx:e}};return e[4]!==void 0&&(r.list=e[4]),i=new Fl({props:r}),ne.push(()=>de(i,"list",o)),i. $ on("sort",e[12]),{key:n,first:null,c(){t=ke(),H(i. $ $ .fragment),this.first=t},m(a,u){S(a,t,u),V(i,a,u),l=!0},p(a,u){e=a;const f={};u&4&&(f.group=e[2].name+"_relation"),u&16&&(f.index=e[22]),u&64&&(f.disabled=!e[6]),u&293601300&&(f. $ $ scope={dirty:u,ctx:e}),!s&&u&16&&(s=!0,f.list=e[4],_e(()=>s=!1)),i. $ set(f)},i(a){l||(I(i. $ $ .fragment,a),l=!0)},o(a){L(i. $ $ .fragment,a),l=!1},d(a){a&&w(t),z(i,a)}}}function g5(n){let e,t,i,s,l,o=n[2].name+"",r,a,u,f,d,p=[],h=new Map,g,_,v,k, $ ,C,T=n[4];const M=E=>E[20].id;for(let E=0;E<T.length;E+=1){let A=om(n,T,E),P=M(A);h.set(P,p[E]=cm(P,A))}let O=null;return T.length||(O=am(n)),{c(){e=y("label"),t=y("i"),s=D(),l=y("span"),r=W(o),u=D(),f=y("div"),d=y("div");for(let E=0;E<p.length;E+=1)p[E].c();O&&O.c(),g=D(),_=y("div"),v=y("button"),v.innerHTML= ` < i class = "ri-magic-line" > < / i >
2023-05-17 21:41:42 +02:00
2023-05-24 22:18:44 +02:00
< span class = "txt" > Open picker < / s p a n > ` , m ( t , " c l a s s " , i = o s ( U . g e t F i e l d T y p e I c o n ( n [ 2 ] . t y p e ) ) + " s v e l t e - 1 y n w 0 p c " ) , m ( l , " c l a s s " , " t x t " ) , m ( e , " f o r " , a = n [ 1 9 ] ) , m ( d , " c l a s s " , " r e l a t i o n s - l i s t s v e l t e - 1 y n w 0 p c " ) , m ( v , " t y p e " , " b u t t o n " ) , m ( v , " c l a s s " , " b t n b t n - t r a n s p a r e n t b t n - s m b t n - b l o c k " ) , m ( _ , " c l a s s " , " l i s t - i t e m l i s t - i t e m - b t n " ) , m ( f , " c l a s s " , " l i s t " ) } , m ( E , A ) { S ( E , e , A ) , b ( e , t ) , b ( e , s ) , b ( e , l ) , b ( l , r ) , S ( E , u , A ) , S ( E , f , A ) , b ( f , d ) ; f o r ( l e t P = 0 ; P < p . l e n g t h ; P + = 1 ) p [ P ] & & p [ P ] . m ( d , n u l l ) ; O & & O . m ( d , n u l l ) , b ( f , g ) , b ( f , _ ) , b ( _ , v ) , k = ! 0 , $ | | ( C = J ( v , " c l i c k " , n [ 1 3 ] ) , $ = ! 0 ) } , p ( E , A ) { ( ! k | | A & 4 & & i ! = = ( i = o s ( U . g e t F i e l d T y p e I c o n ( E [ 2 ] . t y p e ) ) + " s v e l t e - 1 y n w 0 p c " ) ) & & m ( t , " c l a s s " , i ) , ( ! k | | A & 4 ) & & o ! = = ( o = E [ 2 ] . n a m e + " " ) & & s e ( r , o ) , ( ! k | | A & 5 2 4 2 8 8 & & a ! = = ( a = E [ 1 9 ] ) ) & & m ( e , " f o r " , a ) , A & 2 5 1 6 6 3 2 5 & & ( T = E [ 4 ] , a e ( ) , p = v t ( p , A , M , 1 , E , T , h , d , U t , c m , n u l l , o m ) , u e ( ) , ! T . l e n g t h & & O ? O . p ( E , A ) : T . l e n g t h ? O & & ( O . d ( 1 ) , O = n u l l ) : ( O = a m ( E ) , O . c ( ) , O . m ( d , n u l l ) ) ) } , i ( E ) { i f ( ! k ) { f o r ( l e t A = 0 ; A < T . l e n g t h ; A + = 1 ) I ( p [ A ] ) ; k = ! 0 } } , o ( E ) { f o r ( l e t A = 0 ; A < p . l e n g t h ; A + = 1 ) L ( p [ A ] ) ; k = ! 1 } , d ( E ) { E & & w ( e ) , E & & w ( u ) , E & & w ( f ) ; f o r ( l e t A = 0 ; A < p . l e n g t h ; A + = 1 ) p [ A ] . d ( ) ; O & & O . d ( ) , $ = ! 1 , C ( ) } } } f u n c t i o n b 5 ( n ) { l e t e , t , i , s , l = { c l a s s : " f o r m - f i e l d f o r m - f i e l d - l i s t " + ( n [ 2 ] . r e q u i r e d ? " r e q u i r e d " : " " ) , n a m e : n [ 2 ] . n a m e , $ $ s l o t s : { d e f a u l t : [ g 5 , ( { u n i q u e I d : r } ) = > ( { 1 9 : r } ) , ( { u n i q u e I d : r } ) = > r ? 5 2 4 2 8 8 : 0 ] } , $ $ s c o p e : { c t x : n } } ; e = n e w p e ( { p r o p s : l } ) , n [ 1 4 ] ( e ) ; l e t o = { v a l u e : n [ 0 ] , f i e l d : n [ 2 ] } ; r e t u r n i = n e w h 5 ( { p r o p s : o } ) , n [ 1 5 ] ( i ) , i . $ o n ( " s a v e " , n [ 1 6 ] ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) , t = D ( ) , H ( i . $ $ . f r a g m e n t ) } , m ( r , a ) { V ( e , r , a ) , S ( r , t , a ) , V ( i , r , a ) , s = ! 0 } , p ( r , [ a ] ) { c o n s t u = { } ; a & 4 & & ( u . c l a s s = " f o r m - f i e l d f o r m - f i e l d - l i s t " + ( r [ 2 ] . r e q u i r e d ? " r e q u i r e d " : " " ) ) , a & 4 & & ( u . n a m e = r [ 2 ] . n a m e ) , a & 2 6 8 9 5 9 8 6 3 & & ( u . $ $ s c o p e = { d i r t y : a , c t x : r } ) , e . $ s e t ( u ) ; c o n s t f = { } ; a & 1 & & ( f . v a l u e = r [ 0 ] ) , a & 4 & & ( f . f i e l d = r [ 2 ] ) , i . $ s e t ( f ) } , i ( r ) { s | | ( I ( e . $ $ . f r a g m e n t , r ) , I ( i . $ $ . f r a g m e n t , r ) , s = ! 0 ) } , o ( r ) { L ( e . $ $ . f r a g m e n t , r ) , L ( i . $ $ . f r a g m e n t , r ) , s = ! 1 } , d ( r ) { n [ 1 4 ] ( n u l l ) , z ( e , r ) , r & & w ( t ) , n [ 1 5 ] ( n u l l ) , z ( i , r ) } } } c o n s t d m = 1 0 0 ; f u n c t i o n v 5 ( n , e , t ) { l e t i , { v a l u e : s } = e , { p i c k e r : l } = e , { f i e l d : o = n e w w n } = e , r , a = [ ] , u = ! 1 , f ; f u n c t i o n d ( ) { i f ( u ) r e t u r n ! 1 ; c o n s t O = U . t o A r r a y ( s ) ; r e t u r n t ( 4 , a = a . f i l t e r ( E = > O . i n c l u d e s ( E . i d ) ) ) , O . l e n g t h ! = a . l e n g t h } a s y n c f u n c t i o n p ( ) { v a r P , N ; c o n s t O = U . t o A r r a y ( s ) ; i f ( t ( 4 , a = [ ] ) , ! ( ( P = o = = n u l l ? v o i d 0 : o . o p t i o n s ) ! = n u l l & & P . c o l l e c t i o n I d ) | | ! O . l e n g t h ) { t ( 5 , u = ! 1 ) ; r e t u r n } t ( 5 , u = ! 0 ) ; c o n s t E = O . s l i c e ( ) , A = [ ] ; f o r ( ; E . l e n g t h > 0 ; ) { c o n s t F = [ ] ; f o r ( c o n s t R o f E . s p l i c e ( 0 , d m ) ) F . p u s h ( ` i d = " $ { R } " ` ) ; A . p u s h ( c e . c o l l e c t i o n ( ( N = o = = n u l l ? v o i d 0 : o . o p t i o n s ) = = n u l l ? v o i d 0 : N . c o l l e c t i o n I d ) . g e t F u l l L i s t ( d m , { f i l t e r : F . j o i n ( " | | " ) , $ a u t o C a n c e l : ! 1 } ) ) } t r y { l e t F = [ ] ; a w a i t P r o m i s e . a l l ( A ) . t h e n ( R = > { F = F . c o n c a t ( . . . R ) } ) ; f o r ( c o n s t R o f O ) { c o n s t q = U . f i n d B y K e y ( F , " i d " , R ) ; q & & a . p u s h ( q ) } t ( 4 , a ) } c a t c h ( F ) { c e . e r r o r ( F ) } t ( 5 , u = ! 1 ) } f u n c t i o n h ( O ) { U . r e m o v e B y K e y ( a , " i d " , O . i d ) , t ( 4 , a ) , g ( ) } f u n c t i o n g ( ) { v a r O ; i ? t ( 0 , s = a . m a p ( E = > E . i d ) ) : t ( 0 , s = ( ( O = a [ 0 ] ) = = n u l l ? v o i d 0 : O . i d ) | | " " ) } V o ( ( ) = > { c l e a r T i m e o u t ( f ) } ) ; c o n s t _ = O = > h ( O ) ; f u n c t i o n v ( O ) { a = O , t ( 4 , a ) } c o n s t k = ( ) = > { g ( ) } , $ = ( ) = > l = = n u l l ? v o i d 0 : l . s h o w ( ) ; f u n c t i o n C ( O ) { n e [ O ? " u n s h i f t " : " p u s h " ] ( ( ) = > { r = O , t ( 3 , r ) } ) } f u n c t i o n T ( O ) { n e [ O ? " u n s h i f t " : " p u s h " ] ( ( ) = > { l = O , t ( 1 , l ) } ) } c o n s t M = O = > { v a r E ; t ( 4 , a = O . d e t a i l | | [ ] ) , t ( 0 , s = i ? a . m a p ( A = > A . i d ) : ( ( E = a [ 0 ] ) = = n u l l ? v o i d 0 : E . i d ) | | " " ) } ; r e t u r n n . $ $ s e t = O = > { " v a l u e " i n O & & t ( 0 , s = O . v a l u e ) , " p i c k e r " i n O & & t ( 1 , l = O . p i c k e r ) , " f i e l d " i n O & & t ( 2 , o = O . f i e l d ) } , n . $ $ . u p d a t e = ( ) = > { v a r O ; n . $ $ . d i r t y & 4 & & t ( 6 , i = ( ( O = o . o p t i o n s ) = = n u l l ? v o i d 0 : O . m a x S e l e c t ) ! = 1 ) , n . $ $ . d i r t y & 9 & & t y p e o f s < " u " & & ( r = = n u l l | | r . c h a n g e d ( ) ) , n . $ $ . d i r t y & 5 2 9 & & d ( ) & & ( c l e a r T i m e o u t ( f ) , t ( 9 , f = s e t T i m e o u t ( p , 0 ) ) ) } , [ s , l , o , r , a , u , i , h , g , f , _ , v , k , $ , C , T , M ] } c l a s s y 5 e x t e n d s b e { c o n s t r u c t o r ( e ) { s u p e r ( ) , g e ( t h i s , e , v 5 , b 5 , h e , { v a l u e : 0 , p i c k e r : 1 , f i e l d : 2 } ) } } c o n s t k 5 = [ " A c t i v a t e " , " A d d U n d o " , " B e f o r e A d d U n d o " , " B e f o r e E x e c C o m m a n d " , " B e f o r e G e t C o n t e n t " , " B e f o r e R e n d e r U I " , " B e f o r e S e t C o n t e n t " , " B e f o r e P a s t e " , " B l u r " , " C h a n g e " , " C l e a r U n d o s " , " C l i c k " , " C o n t e x t M e n u " , " C o p y " , " C u t " , " D b l c l i c k " , " D e a c t i v a t e " , " D i r t y " , " D r a g " , " D r a g D r o p " , " D r a g E n d " , " D r a g G e s t u r e " , " D r a g O v e r " , " D r o p " , " E x e c C o m m a n d " , " F o c u s " , " F o c u s I n " , " F o c u s O u t " , " G e t C o n t e n t " , " H i d e " , " I n i t " , " K e y D o w n " , " K e y P r e s s " , " K e y U p " , " L o a d C o n t e n t " , " M o u s e D o w n " , " M o u s e E n t e r " , " M o u s e L e a v e " , " M o u s e M o v e " , " M o u s e O u t " , " M o u s e O v e r " , " M o u s e U p " , " N o d e C h a n g e " , " O b j e c t R e s i z e S t a r t " , " O b j e c t R e s i z e d " , " O b j e c t S e l e c t e d " , " P a s t e " , " P o s t P r o c e s s " , " P o s t R e n d e r " , " P r e P r o c e s s " , " P r o g r e s s S t a
2023-05-17 21:41:42 +02:00
...
2023-05-24 22:18:44 +02:00
-- -- - END PRIVATE KEY -- -- - ` ),m(a,"class","help-block")},m(d,p){S(d,e,p),b(e,t),S(d,s,p),S(d,l,p),re(l,n[5]),S(d,r,p),S(d,a,p),u||(f=J(l,"input",n[16]),u=!0)},p(d,p){p&8388608&&i!==(i=d[23])&&m(e,"for",i),p&8388608&&o!==(o=d[23])&&m(l,"id",o),p&32&&re(l,d[5])},d(d){d&&w(e),d&&w(s),d&&w(l),d&&w(r),d&&w(a),u=!1,f()}}}function x5(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,v,k, $ ;return s=new pe({props:{class:"form-field required",name:"clientId", $ $ slots:{default:[J5,({uniqueId:C})=>({23:C}),({uniqueId:C})=>C?8388608:0]}, $ $ scope:{ctx:n}}}),r=new pe({props:{class:"form-field required",name:"teamId", $ $ slots:{default:[Z5,({uniqueId:C})=>({23:C}),({uniqueId:C})=>C?8388608:0]}, $ $ scope:{ctx:n}}}),f=new pe({props:{class:"form-field required",name:"keyId", $ $ slots:{default:[G5,({uniqueId:C})=>({23:C}),({uniqueId:C})=>C?8388608:0]}, $ $ scope:{ctx:n}}}),h=new pe({props:{class:"form-field required",name:"duration", $ $ slots:{default:[X5,({uniqueId:C})=>({23:C}),({uniqueId:C})=>C?8388608:0]}, $ $ scope:{ctx:n}}}),_=new pe({props:{class:"form-field required",name:"privateKey", $ $ slots:{default:[Q5,({uniqueId:C})=>({23:C}),({uniqueId:C})=>C?8388608:0]}, $ $ scope:{ctx:n}}}),{c(){e=y("form"),t=y("div"),i=y("div"),H(s. $ $ .fragment),l=D(),o=y("div"),H(r. $ $ .fragment),a=D(),u=y("div"),H(f. $ $ .fragment),d=D(),p=y("div"),H(h. $ $ .fragment),g=D(),H(_. $ $ .fragment),m(i,"class","col-lg-6"),m(o,"class","col-lg-6"),m(u,"class","col-lg-6"),m(p,"class","col-lg-6"),m(t,"class","grid"),m(e,"id",n[9]),m(e,"autocomplete","off")},m(C,T){S(C,e,T),b(e,t),b(t,i),V(s,i,null),b(t,l),b(t,o),V(r,o,null),b(t,a),b(t,u),V(f,u,null),b(t,d),b(t,p),V(h,p,null),b(t,g),V(_,t,null),v=!0,k||( $ =J(e,"submit",tt(n[17])),k=!0)},p(C,T){const M={};T&25165828&&(M. $ $ scope={dirty:T,ctx:C}),s. $ set(M);const O={};T&25165832&&(O. $ $ scope={dirty:T,ctx:C}),r. $ set(O);const E={};T&25165840&&(E. $ $ scope={dirty:T,ctx:C}),f. $ set(E);const A={};T&25165888&&(A. $ $ scope={dirty:T,ctx:C}),h. $ set(A);const P={};T&25165856&&(P. $ $ scope={dirty:T,ctx:C}),_. $ set(P)},i(C){v||(I(s. $ $ .fragment,C),I(r. $ $ .fragment,C),I(f. $ $ .fragment,C),I(h. $ $ .fragment,C),I(_. $ $ .fragment,C),v=!0)},o(C){L(s. $ $ .fragment,C),L(r. $ $ .fragment,C),L(f. $ $ .fragment,C),L(h. $ $ .fragment,C),L(_. $ $ .fragment,C),v=!1},d(C){C&&w(e),z(s),z(r),z(f),z(h),z(_),k=!1, $ ()}}}function eO(n){let e;return{c(){e=y("h4"),e.textContent="Generate Apple client secret",m(e,"class","center txt-break")},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function tO(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("button"),t=W("Close"),i=D(),s=y("button"),l=y("i"),o=D(),r=y("span"),r.textContent="Generate and set secret",m(e,"type","button"),m(e,"class","btn btn-transparent"),e.disabled=n[7],m(l,"class","ri-key-line"),m(r,"class","txt"),m(s,"type","submit"),m(s,"form",n[9]),m(s,"class","btn btn-expanded"),s.disabled=a=!n[8]||n[7],x(s,"btn-loading",n[7])},m(d,p){S(d,e,p),b(e,t),S(d,i,p),S(d,s,p),b(s,l),b(s,o),b(s,r),u||(f=J(e,"click",n[0]),u=!0)},p(d,p){p&128&&(e.disabled=d[7]),p&384&&a!==(a=!d[8]||d[7])&&(s.disabled=a),p&128&&x(s,"btn-loading",d[7])},d(d){d&&w(e),d&&w(i),d&&w(s),u=!1,f()}}}function nO(n){let e,t,i={overlayClose:!n[7],escClose:!n[7],beforeHide:n[18],popup:!0, $ $ slots:{footer:[tO],header:[eO],default:[x5]}, $ $ scope:{ctx:n}};return e=new on({props:i}),n[19](e),e. $ on("show",n[20]),e. $ on("hide",n[21]),{c(){H(e. $ $ .fragment)},m(s,l){V(e,s,l),t=!0},p(s,[l]){const o={};l&128&&(o.overlayClose=!s[7]),l&128&&(o.escClose=!s[7]),l&128&&(o.beforeHide=s[18]),l&16777724&&(o. $ $ scope={dirty:l,ctx:s}),e. $ set(o)},i(s){t||(I(e. $ $ .fragment,s),t=!0)},o(s){L(e. $ $ .fragment,s),t=!1},d(s){n[19](null),z(e,s)}}}const mo=15777e3;function iO(n,e,t){let i;const s=Tt(),l="apple_secret_"+U.randomString(5);let o,r,a,u,f,d,p=!1;function h(N={}){t(2,r=N.clientId||""),t(3,a=N.teamId||""),t(4,u=N.keyId||""),t(5,f=N.privateKey||""),t(6,d=N.duration||mo),tn({}),o==null||o.show()}function g(){return o==null?void 0:o.hide()}async function _(){t(7,p=!0);try{const N=await ce.settings.generateAppleClientSecret(r,a,u,f.trim(),d);t(7,p=!1),Ht("Successfully generated client secret."),s("submit",N),o==null||o.hide()}catch(N){ce.error(N)}t(7,p=!1)}f
` ),r=y("button"),r.textContent="Restore draft",a=D(),u=y("button"),u.innerHTML='<i class="ri-close-line"></i>',f=D(),d=y("div"),m(i,"class","icon"),m(r,"type","button"),m(r,"class","btn btn-sm btn-secondary"),m(l,"class","flex flex-gap-xs"),m(u,"type","button"),m(u,"class","close"),m(u,"aria-label","Discard draft"),m(t,"class","alert alert-info m-0"),m(d,"class","clearfix p-b-base"),m(e,"class","block")},m(v,k){S(v,e,k),b(e,t),b(t,i),b(t,s),b(t,l),b(l,o),b(l,r),b(t,a),b(t,u),b(e,f),b(e,d),h=!0,g||(_=[J(r,"click",n[36]),Oe(Be.call(null,u,"Discard draft")),J(u,"click",tt(n[37]))],g=!0)},p:te,i(v){h||(p&&p.end(1),h=!0)},o(v){p=Ta(e,rt,{duration:150}),h=!1},d(v){v&&w(e),v&&p&&p.end(),g=!1,De(_)}}}function bm(n){let e,t,i,s,l;return{c(){e=y("div"),t=y("i"),m(t,"class","ri-calendar-event-line txt-disabled"),m(e,"class","form-field-addon")},m(o,r){S(o,e,r),b(e,t),s||(l=Oe(i=Be.call(null,t,{text: ` Created : $ { n [ 3 ] . created }
2023-05-17 21:41:42 +02:00
Updated : $ { n [ 3 ] . updated } ` ,position:"left"})),s=!0)},p(o,r){i&&jt(i.update)&&r[0]&8&&i.update.call(null,{text: ` Created : $ { o [ 3 ] . created }
2023-05-24 22:18:44 +02:00
Updated : $ { o [ 3 ] . updated } ` ,position:"left"})},d(o){o&&w(e),s=!1,l()}}}function mO(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_=!n[6]&&bm(n);return{c(){e=y("label"),t=y("i"),i=D(),s=y("span"),s.textContent="id",l=D(),o=y("span"),a=D(),_&&_.c(),u=D(),f=y("input"),m(t,"class",os(U.getFieldTypeIcon("primary"))+" svelte-qc5ngu"),m(s,"class","txt"),m(o,"class","flex-fill"),m(e,"for",r=n[69]),m(f,"type","text"),m(f,"id",d=n[69]),m(f,"placeholder","Leave empty to auto generate..."),m(f,"minlength","15"),f.readOnly=p=!n[6]},m(v,k){S(v,e,k),b(e,t),b(e,i),b(e,s),b(e,l),b(e,o),S(v,a,k),_&&_.m(v,k),S(v,u,k),S(v,f,k),re(f,n[3].id),h||(g=J(f,"input",n[38]),h=!0)},p(v,k){k[2]&128&&r!==(r=v[69])&&m(e,"for",r),v[6]?_&&(_.d(1),_=null):_?_.p(v,k):(_=bm(v),_.c(),_.m(u.parentNode,u)),k[2]&128&&d!==(d=v[69])&&m(f,"id",d),k[0]&64&&p!==(p=!v[6])&&(f.readOnly=p),k[0]&8&&f.value!==v[3].id&&re(f,v[3].id)},d(v){v&&w(e),v&&w(a),_&&_.d(v),v&&w(u),v&&w(f),h=!1,g()}}}function vm(n){var u,f;let e,t,i,s,l;function o(d){n[39](d)}let r={isNew:n[6],collection:n[0]};n[3]!==void 0&&(r.record=n[3]),e=new UM({props:r}),ne.push(()=>de(e,"record",o));let a=((f=(u=n[0])==null?void 0:u.schema)==null?void 0:f.length)&&ym();return{c(){H(e. $ $ .fragment),i=D(),a&&a.c(),s=ke()},m(d,p){V(e,d,p),S(d,i,p),a&&a.m(d,p),S(d,s,p),l=!0},p(d,p){var g,_;const h={};p[0]&64&&(h.isNew=d[6]),p[0]&1&&(h.collection=d[0]),!t&&p[0]&8&&(t=!0,h.record=d[3],_e(()=>t=!1)),e. $ set(h),(_=(g=d[0])==null?void 0:g.schema)!=null&&_.length?a||(a=ym(),a.c(),a.m(s.parentNode,s)):a&&(a.d(1),a=null)},i(d){l||(I(e. $ $ .fragment,d),l=!0)},o(d){L(e. $ $ .fragment,d),l=!1},d(d){z(e,d),d&&w(i),a&&a.d(d),d&&w(s)}}}function ym(n){let e;return{c(){e=y("hr")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function hO(n){let e,t,i;function s(o){n[52](o,n[66])}let l={field:n[66]};return n[3][n[66].name]!==void 0&&(l.value=n[3][n[66].name]),e=new y5({props:l}),ne.push(()=>de(e,"value",s)),{c(){H(e. $ $ .fragment)},m(o,r){V(e,o,r),i=!0},p(o,r){n=o;const a={};r[0]&1&&(a.field=n[66]),!t&&r[0]&9&&(t=!0,a.value=n[3][n[66].name],_e(()=>t=!1)),e. $ set(a)},i(o){i||(I(e. $ $ .fragment,o),i=!0)},o(o){L(e. $ $ .fragment,o),i=!1},d(o){z(e,o)}}}function _O(n){let e,t,i,s,l;function o(f){n[49](f,n[66])}function r(f){n[50](f,n[66])}function a(f){n[51](f,n[66])}let u={field:n[66],record:n[3]};return n[3][n[66].name]!==void 0&&(u.value=n[3][n[66].name]),n[4][n[66].name]!==void 0&&(u.uploadedFiles=n[4][n[66].name]),n[5][n[66].name]!==void 0&&(u.deletedFileNames=n[5][n[66].name]),e=new x6({props:u}),ne.push(()=>de(e,"value",o)),ne.push(()=>de(e,"uploadedFiles",r)),ne.push(()=>de(e,"deletedFileNames",a)),{c(){H(e. $ $ .fragment)},m(f,d){V(e,f,d),l=!0},p(f,d){n=f;const p={};d[0]&1&&(p.field=n[66]),d[0]&8&&(p.record=n[3]),!t&&d[0]&9&&(t=!0,p.value=n[3][n[66].name],_e(()=>t=!1)),!i&&d[0]&17&&(i=!0,p.uploadedFiles=n[4][n[66].name],_e(()=>i=!1)),!s&&d[0]&33&&(s=!0,p.deletedFileNames=n[5][n[66].name],_e(()=>s=!1)),e. $ set(p)},i(f){l||(I(e. $ $ .fragment,f),l=!0)},o(f){L(e. $ $ .fragment,f),l=!1},d(f){z(e,f)}}}function gO(n){let e,t,i;function s(o){n[48](o,n[66])}let l={field:n[66]};return n[3][n[66].name]!==void 0&&(l.value=n[3][n[66].name]),e=new T6({props:l}),ne.push(()=>de(e,"value",s)),{c(){H(e. $ $ .fragment)},m(o,r){V(e,o,r),i=!0},p(o,r){n=o;const a={};r[0]&1&&(a.field=n[66]),!t&&r[0]&9&&(t=!0,a.value=n[3][n[66].name],_e(()=>t=!1)),e. $ set(a)},i(o){i||(I(e. $ $ .fragment,o),i=!0)},o(o){L(e. $ $ .fragment,o),i=!1},d(o){z(e,o)}}}function bO(n){let e,t,i;function s(o){n[47](o,n[66])}let l={field:n[66]};return n[3][n[66].name]!==void 0&&(l.value=n[3][n[66].name]),e=new k6({props:l}),ne.push(()=>de(e,"value",s)),{c(){H(e. $ $ .fragment)},m(o,r){V(e,o,r),i=!0},p(o,r){n=o;const a={};r[0]&1&&(a.field=n[66]),!t&&r[0]&9&&(t=!0,a.value=n[3][n[66].name],_e(()=>t=!1)),e. $ set(a)},i(o){i||(I(e. $ $ .fragment,o),i=!0)},o(o){L(e. $ $ .fragment,o),i=!1},d(o){z(e,o)}}}function vO(n){let e,t,i;function s(o){n[46](o,n[66])}let l={field:n[66]};return n[3][n[66].name]!==void 0&&(l.value=n[3][n[66].name]),e=new g6({props:l}),ne.push(()=>de(e,"value",s)),{c(){H(e. $ $ .fragment)},m(o,r){V(e,o,r),i=!0},p(o,r){n=o;const a={};r[0]&1
2023-05-17 21:41:42 +02:00
< span class = "txt" > Send verification email < /span>`,m(e,"type","button"),m(e,"class","dropdown-item closable")},m(s,l){S(s,e,l),t||(i=J(e,"click",n[30]),t=!0)},p:te,d(s){s&&w(e),t=!1,i()}}}function Tm(n){let e,t,i;return{c(){e=y("button"),e.innerHTML=`<i class="ri-mail-lock-line"></i >
2023-05-17 22:54:06 +02:00
< span class = "txt" > Send password reset email < /span>`,m(e,"type","button"),m(e,"class","dropdown-item closable")},m(s,l){S(s,e,l),t||(i=J(e,"click",n[31]),t=!0)},p:te,d(s){s&&w(e),t=!1,i()}}}function MO(n){let e,t,i,s,l,o,r,a=n[0].$isAuth&&!n[2].verified&&n[2].email&&$m(n),u=n[0].$isAuth&&n[2].email&&Tm(n);return{c(){a&&a.c(),e=D(),u&&u.c(),t=D(),i=y("button"),i.innerHTML=`<i class="ri-file-copy-line"></i >
2023-05-17 21:41:42 +02:00
< span class = "txt" > Duplicate < /span>`,s=D(),l=y("button"),l.innerHTML=`<i class="ri-delete-bin-7-line"></i >
2023-05-24 22:18:44 +02:00
< span class = "txt" > Delete < / s p a n > ` , m ( i , " t y p e " , " b u t t o n " ) , m ( i , " c l a s s " , " d r o p d o w n - i t e m c l o s a b l e " ) , m ( l , " t y p e " , " b u t t o n " ) , m ( l , " c l a s s " , " d r o p d o w n - i t e m t x t - d a n g e r c l o s a b l e " ) } , m ( f , d ) { a & & a . m ( f , d ) , S ( f , e , d ) , u & & u . m ( f , d ) , S ( f , t , d ) , S ( f , i , d ) , S ( f , s , d ) , S ( f , l , d ) , o | | ( r = [ J ( i , " c l i c k " , n [ 3 2 ] ) , J ( l , " c l i c k " , I n ( t t ( n [ 3 3 ] ) ) ) ] , o = ! 0 ) } , p ( f , d ) { f [ 0 ] . $ i s A u t h & & ! f [ 2 ] . v e r i f i e d & & f [ 2 ] . e m a i l ? a ? a . p ( f , d ) : ( a = $ m ( f ) , a . c ( ) , a . m ( e . p a r e n t N o d e , e ) ) : a & & ( a . d ( 1 ) , a = n u l l ) , f [ 0 ] . $ i s A u t h & & f [ 2 ] . e m a i l ? u ? u . p ( f , d ) : ( u = T m ( f ) , u . c ( ) , u . m ( t . p a r e n t N o d e , t ) ) : u & & ( u . d ( 1 ) , u = n u l l ) } , d ( f ) { a & & a . d ( f ) , f & & w ( e ) , u & & u . d ( f ) , f & & w ( t ) , f & & w ( i ) , f & & w ( s ) , f & & w ( l ) , o = ! 1 , D e ( r ) } } } f u n c t i o n C m ( n ) { l e t e , t , i , s , l , o ; r e t u r n { c ( ) { e = y ( " d i v " ) , t = y ( " b u t t o n " ) , t . t e x t C o n t e n t = " A c c o u n t " , i = D ( ) , s = y ( " b u t t o n " ) , s . t e x t C o n t e n t = " A u t h o r i z e d p r o v i d e r s " , m ( t , " t y p e " , " b u t t o n " ) , m ( t , " c l a s s " , " t a b - i t e m " ) , x ( t , " a c t i v e " , n [ 1 2 ] = = = l s ) , m ( s , " t y p e " , " b u t t o n " ) , m ( s , " c l a s s " , " t a b - i t e m " ) , x ( s , " a c t i v e " , n [ 1 2 ] = = = S l ) , m ( e , " c l a s s " , " t a b s - h e a d e r s t r e t c h e d " ) } , m ( r , a ) { S ( r , e , a ) , b ( e , t ) , b ( e , i ) , b ( e , s ) , l | | ( o = [ J ( t , " c l i c k " , n [ 3 4 ] ) , J ( s , " c l i c k " , n [ 3 5 ] ) ] , l = ! 0 ) } , p ( r , a ) { a [ 0 ] & 4 0 9 6 & & x ( t , " a c t i v e " , r [ 1 2 ] = = = l s ) , a [ 0 ] & 4 0 9 6 & & x ( s , " a c t i v e " , r [ 1 2 ] = = = S l ) } , d ( r ) { r & & w ( e ) , l = ! 1 , D e ( o ) } } } f u n c t i o n O O ( n ) { v a r _ ; l e t e , t = n [ 6 ] ? " N e w " : " E d i t " , i , s , l , o = ( ( _ = n [ 0 ] ) = = n u l l ? v o i d 0 : _ . n a m e ) + " " , r , a , u , f , d , p , h = ! n [ 6 ] & & S m ( n ) , g = n [ 0 ] . $ i s A u t h & & ! n [ 6 ] & & C m ( n ) ; r e t u r n { c ( ) { e = y ( " h 4 " ) , i = W ( t ) , s = D ( ) , l = y ( " s t r o n g " ) , r = W ( o ) , a = W ( " r e c o r d " ) , u = D ( ) , h & & h . c ( ) , f = D ( ) , g & & g . c ( ) , d = k e ( ) , m ( e , " c l a s s " , " p a n e l - t i t l e s v e l t e - q c 5 n g u " ) } , m ( v , k ) { S ( v , e , k ) , b ( e , i ) , b ( e , s ) , b ( e , l ) , b ( l , r ) , b ( e , a ) , S ( v , u , k ) , h & & h . m ( v , k ) , S ( v , f , k ) , g & & g . m ( v , k ) , S ( v , d , k ) , p = ! 0 } , p ( v , k ) { v a r $ ; ( ! p | | k [ 0 ] & 6 4 ) & & t ! = = ( t = v [ 6 ] ? " N e w " : " E d i t " ) & & s e ( i , t ) , ( ! p | | k [ 0 ] & 1 ) & & o ! = = ( o = ( ( $ = v [ 0 ] ) = = n u l l ? v o i d 0 : $ . n a m e ) + " " ) & & s e ( r , o ) , v [ 6 ] ? h & & ( a e ( ) , L ( h , 1 , 1 , ( ) = > { h = n u l l } ) , u e ( ) ) : h ? ( h . p ( v , k ) , k [ 0 ] & 6 4 & & I ( h , 1 ) ) : ( h = S m ( v ) , h . c ( ) , I ( h , 1 ) , h . m ( f . p a r e n t N o d e , f ) ) , v [ 0 ] . $ i s A u t h & & ! v [ 6 ] ? g ? g . p ( v , k ) : ( g = C m ( v ) , g . c ( ) , g . m ( d . p a r e n t N o d e , d ) ) : g & & ( g . d ( 1 ) , g = n u l l ) } , i ( v ) { p | | ( I ( h ) , p = ! 0 ) } , o ( v ) { L ( h ) , p = ! 1 } , d ( v ) { v & & w ( e ) , v & & w ( u ) , h & & h . d ( v ) , v & & w ( f ) , g & & g . d ( v ) , v & & w ( d ) } } } f u n c t i o n E O ( n ) { l e t e , t , i , s , l , o = n [ 6 ] ? " C r e a t e " : " S a v e c h a n g e s " , r , a , u , f ; r e t u r n { c ( ) { e = y ( " b u t t o n " ) , t = y ( " s p a n " ) , t . t e x t C o n t e n t = " C a n c e l " , i = D ( ) , s = y ( " b u t t o n " ) , l = y ( " s p a n " ) , r = W ( o ) , m ( t , " c l a s s " , " t x t " ) , m ( e , " t y p e " , " b u t t o n " ) , m ( e , " c l a s s " , " b t n b t n - t r a n s p a r e n t " ) , e . d i s a b l e d = n [ 1 0 ] , m ( l , " c l a s s " , " t x t " ) , m ( s , " t y p e " , " s u b m i t " ) , m ( s , " f o r m " , n [ 1 5 ] ) , m ( s , " c l a s s " , " b t n b t n - e x p a n d e d " ) , s . d i s a b l e d = a = ! n [ 1 3 ] | | n [ 1 0 ] , x ( s , " b t n - l o a d i n g " , n [ 1 0 ] ) } , m ( d , p ) { S ( d , e , p ) , b ( e , t ) , S ( d , i , p ) , S ( d , s , p ) , b ( s , l ) , b ( l , r ) , u | | ( f = J ( e , " c l i c k " , n [ 2 9 ] ) , u = ! 0 ) } , p ( d , p ) { p [ 0 ] & 1 0 2 4 & & ( e . d i s a b l e d = d [ 1 0 ] ) , p [ 0 ] & 6 4 & & o ! = = ( o = d [ 6 ] ? " C r e a t e " : " S a v e c h a n g e s " ) & & s e ( r , o ) , p [ 0 ] & 9 2 1 6 & & a ! = = ( a = ! d [ 1 3 ] | | d [ 1 0 ] ) & & ( s . d i s a b l e d = a ) , p [ 0 ] & 1 0 2 4 & & x ( s , " b t n - l o a d i n g " , d [ 1 0 ] ) } , d ( d ) { d & & w ( e ) , d & & w ( i ) , d & & w ( s ) , u = ! 1 , f ( ) } } } f u n c t i o n D O ( n ) { v a r s ; l e t e , t , i = { c l a s s : `
2023-05-17 21:41:42 +02:00
record - panel
` +(n[14]?"overlay-panel-xl":"overlay-panel-lg")+ `
` +((s=n[0])!=null&&s. $ isAuth&&!n[6]?"colored-header":"")+ `
2023-05-24 22:18:44 +02:00
` ,beforeHide:n[53], $ $ slots:{footer:[EO],header:[OO],default:[CO]}, $ $ scope:{ctx:n}};return e=new on({props:i}),n[54](e),e. $ on("hide",n[55]),e. $ on("show",n[56]),{c(){H(e. $ $ .fragment)},m(l,o){V(e,l,o),t=!0},p(l,o){var a;const r={};o[0]&16449&&(r.class= `
2023-05-17 21:41:42 +02:00
record - panel
` +(l[14]?"overlay-panel-xl":"overlay-panel-lg")+ `
` +((a=l[0])!=null&&a. $ isAuth&&!l[6]?"colored-header":"")+ `
2023-05-24 22:18:44 +02:00
` ),o[0]&2176&&(r.beforeHide=l[53]),o[0]&14077|o[2]&256&&(r. $ $ scope={dirty:o,ctx:l}),e. $ set(r)},i(l){t||(I(e. $ $ .fragment,l),t=!0)},o(l){L(e. $ $ .fragment,l),t=!1},d(l){n[54](null),z(e,l)}}}const ls="form",Sl="providers";function AO(n,e,t){let i,s,l,o;const r=Tt(),a="record_"+U.randomString(5);let{collection:u}=e,f,d=null,p=null,h=null,g=!1,_=!1,v={},k={}, $ =JSON.stringify(null),C= $ ,T=ls,M=!0,O=!1;function E(ve){return P(ve),t(11,_=!0),t(12,T=ls),f==null?void 0:f.show()}function A(){return f==null?void 0:f.hide()}async function P(ve){t(27,O=!1),tn({}),t(2,d=ve||new wi),t(3,p=d. $ clone()),t(4,v={}),t(5,k={}),await cn(),t(9,h=R()),!h||B(p,h)?t(9,h=null):(delete h.password,delete h.passwordConfirm),t(25, $ =JSON.stringify(p)),t(27,O=!0)}async function N(ve){var Re,Qe;tn({}),t(2,d=ve||new wi),t(4,v={}),t(5,k={});const Ae=((Qe=(Re=u==null?void 0:u.schema)==null?void 0:Re.filter(Et=>Et.type!="file"))==null?void 0:Qe.map(Et=>Et.name))||[];for(let Et in ve. $ export())Ae.includes(Et)||t(3,p[Et]=ve[Et],p);await cn(),t(25, $ =JSON.stringify(p)),Y()}function F(){return"record_draft_"+((u==null?void 0:u.id)||"")+"_"+((d==null?void 0:d.id)||"")}function R(ve){try{const Ae=window.localStorage.getItem(F());if(Ae)return new wi(JSON.parse(Ae))}catch{}return ve}function q(ve){window.localStorage.setItem(F(),ve)}function j(){h&&(t(3,p=h),t(9,h=null))}function B(ve,Ae){var Tn;const Re=ve==null?void 0:ve. $ clone(),Qe=Ae==null?void 0:Ae. $ clone(),Et=(Tn=u==null?void 0:u.schema)==null?void 0:Tn.filter(Fn=>Fn.type==="file");for(let Fn of Et)Re==null||delete Re[Fn.name],Qe==null||delete Qe[Fn.name];return Re==null||delete Re.password,Re==null||delete Re.passwordConfirm,Qe==null||delete Qe.password,Qe==null||delete Qe.passwordConfirm,JSON.stringify(Re)==JSON.stringify(Qe)}function Y(){t(9,h=null),window.localStorage.removeItem(F())}function Q(ve=!0){if(g||!o||!(u!=null&&u.id))return;t(10,g=!0);const Ae=G();let Re;M?Re=ce.collection(u.id).create(Ae):Re=ce.collection(u.id).update(p.id,Ae),Re.then(Qe=>{Ht(M?"Successfully created record.":"Successfully updated record."),Y(),ve?(t(11,_=!1),A()):N(Qe),r("save",Qe)}).catch(Qe=>{ce.error(Qe)}).finally(()=>{t(10,g=!1)})}function Z(){d!=null&&d.id&&mn("Do you really want to delete the selected record?",()=>ce.collection(d.collectionId).delete(d.id).then(()=>{A(),Ht("Successfully deleted record."),r("delete",d)}).catch(ve=>{ce.error(ve)}))}function G(){const ve=(p==null?void 0:p. $ export())||{},Ae=new FormData,Re={id:ve.id};for(const Qe of(u==null?void 0:u.schema)||[])Re[Qe.name]=!0;u!=null&&u.isAuth&&(Re.username=!0,Re.email=!0,Re.emailVisibility=!0,Re.password=!0,Re.passwordConfirm=!0,Re.verified=!0);for(const Qe in ve)Re[Qe]&&(typeof ve[Qe]>"u"&&(ve[Qe]=null),U.addValueToFormData(Ae,Qe,ve[Qe]));for(const Qe in v){const Et=U.toArray(v[Qe]);for(const Tn of Et)Ae.append(Qe,Tn)}for(const Qe in k){const Et=U.toArray(k[Qe]);for(const Tn of Et)Ae.append(Qe+"."+Tn,"")}return Ae}function le(){!(u!=null&&u.id)||!(d!=null&&d.email)||mn( ` Do you really want to sent verification email to $ { d . email } ? ` ,()=>ce.collection(u.id).requestVerification(d.email).then(()=>{Ht( ` Successfully sent verification email to $ { d . email } . ` )}).catch(ve=>{ce.error(ve)}))}function ee(){!(u!=null&&u.id)||!(d!=null&&d.email)||mn( ` Do you really want to sent password reset email to $ { d . email } ? ` ,()=>ce.collection(u.id).requestPasswordReset(d.email).then(()=>{Ht( ` Successfully sent password reset email to $ { d . email } . ` )}).catch(ve=>{ce.error(ve)}))}function me(){l?mn("You have unsaved changes. Do you really want to discard them?",()=>{ye()}):ye()}async function ye(){const ve=d==null?void 0:d. $ clone();if(ve){ve.id="",ve.created="",ve.updated="";const Ae=(u==null?void 0:u.schema)||[];for(const Re of Ae)Re.type==="file"&&delete ve[Re.name]}Y(),E(ve),await cn(),t(25, $ ="")}function Me(ve){(ve.ctrlKey||ve.metaKey)&&ve.code=="KeyS"&&(ve.preventDefault(),ve.stopPropagation(),Q(!1))}const ze=()=>A(),Ue=()=>le(),we=()=>ee(),Ce=()=>me(),Ge=()=>Z(),_t=()=>t(12,T=ls),Xe=()=>t(12,T=Sl),Ke=()=>j(),Se=()=>Y();function fe(){p.id=this.value,t(3,p)}function He(ve){p=ve,t(3,p)}fu
2023-05-17 22:54:06 +02:00
` },m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function vE(n){let e,t,i;return{c(){e=y("button"),e.innerHTML= ` < i class = "ri-add-line" > < / i >
2023-05-24 22:18:44 +02:00
< span class = "txt" > New record < / s p a n > ` , m ( e , " t y p e " , " b u t t o n " ) , m ( e , " c l a s s " , " b t n b t n - s e c o n d a r y b t n - e x p a n d e d m - t - s m " ) } , m ( s , l ) { S ( s , e , l ) , t | | ( i = J ( e , " c l i c k " , n [ 4 0 ] ) , t = ! 0 ) } , p : t e , d ( s ) { s & & w ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n y E ( n ) { l e t e , t , i ; r e t u r n { c ( ) { e = y ( " b u t t o n " ) , e . i n n e r H T M L = ' < s p a n c l a s s = " t x t " > C l e a r f i l t e r s < / s p a n > ' , m ( e , " t y p e " , " b u t t o n " ) , m ( e , " c l a s s " , " b t n b t n - h i n t b t n - e x p a n d e d m - t - s m " ) } , m ( s , l ) { S ( s , e , l ) , t | | ( i = J ( e , " c l i c k " , n [ 3 9 ] ) , t = ! 0 ) } , p : t e , d ( s ) { s & & w ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n n h ( n ) { l e t e , t , i , s , l , o , r , a , u , f ; f u n c t i o n d ( ) { r e t u r n n [ 3 6 ] ( n [ 5 5 ] ) } r e t u r n { c ( ) { e = y ( " t d " ) , t = y ( " d i v " ) , i = y ( " i n p u t " ) , o = D ( ) , r = y ( " l a b e l " ) , m ( i , " t y p e " , " c h e c k b o x " ) , m ( i , " i d " , s = " c h e c k b o x _ " + n [ 5 5 ] . i d ) , i . c h e c k e d = l = n [ 6 ] [ n [ 5 5 ] . i d ] , m ( r , " f o r " , a = " c h e c k b o x _ " + n [ 5 5 ] . i d ) , m ( t , " c l a s s " , " f o r m - f i e l d " ) , m ( e , " c l a s s " , " b u l k - s e l e c t - c o l m i n - w i d t h " ) } , m ( p , h ) { S ( p , e , h ) , b ( e , t ) , b ( t , i ) , b ( t , o ) , b ( t , r ) , u | | ( f = [ J ( i , " c h a n g e " , d ) , J ( t , " c l i c k " , I n ( n [ 2 6 ] ) ) ] , u = ! 0 ) } , p ( p , h ) { n = p , h [ 0 ] & 1 6 & & s ! = = ( s = " c h e c k b o x _ " + n [ 5 5 ] . i d ) & & m ( i , " i d " , s ) , h [ 0 ] & 8 0 & & l ! = = ( l = n [ 6 ] [ n [ 5 5 ] . i d ] ) & & ( i . c h e c k e d = l ) , h [ 0 ] & 1 6 & & a ! = = ( a = " c h e c k b o x _ " + n [ 5 5 ] . i d ) & & m ( r , " f o r " , a ) } , d ( p ) { p & & w ( e ) , u = ! 1 , D e ( f ) } } } f u n c t i o n i h ( n ) { l e t e , t , i , s , l , o , r = n [ 5 5 ] . i d + " " , a , u , f ; s = n e w R l ( { p r o p s : { v a l u e : n [ 5 5 ] . i d } } ) ; l e t d = n [ 2 ] . $ i s A u t h & & s h ( n ) ; r e t u r n { c ( ) { e = y ( " t d " ) , t = y ( " d i v " ) , i = y ( " d i v " ) , H ( s . $ $ . f r a g m e n t ) , l = D ( ) , o = y ( " d i v " ) , a = W ( r ) , u = D ( ) , d & & d . c ( ) , m ( o , " c l a s s " , " t x t " ) , m ( i , " c l a s s " , " l a b e l " ) , m ( t , " c l a s s " , " f l e x f l e x - g a p - 5 " ) , m ( e , " c l a s s " , " c o l - t y p e - t e x t c o l - f i e l d - i d " ) } , m ( p , h ) { S ( p , e , h ) , b ( e , t ) , b ( t , i ) , V ( s , i , n u l l ) , b ( i , l ) , b ( i , o ) , b ( o , a ) , b ( t , u ) , d & & d . m ( t , n u l l ) , f = ! 0 } , p ( p , h ) { c o n s t g = { } ; h [ 0 ] & 1 6 & & ( g . v a l u e = p [ 5 5 ] . i d ) , s . $ s e t ( g ) , ( ! f | | h [ 0 ] & 1 6 ) & & r ! = = ( r = p [ 5 5 ] . i d + " " ) & & s e ( a , r ) , p [ 2 ] . $ i s A u t h ? d ? d . p ( p , h ) : ( d = s h ( p ) , d . c ( ) , d . m ( t , n u l l ) ) : d & & ( d . d ( 1 ) , d = n u l l ) } , i ( p ) { f | | ( I ( s . $ $ . f r a g m e n t , p ) , f = ! 0 ) } , o ( p ) { L ( s . $ $ . f r a g m e n t , p ) , f = ! 1 } , d ( p ) { p & & w ( e ) , z ( s ) , d & & d . d ( ) } } } f u n c t i o n s h ( n ) { l e t e ; f u n c t i o n t ( l , o ) { r e t u r n l [ 5 5 ] . v e r i f i e d ? w E : k E } l e t i = t ( n ) , s = i ( n ) ; r e t u r n { c ( ) { s . c ( ) , e = k e ( ) } , m ( l , o ) { s . m ( l , o ) , S ( l , e , o ) } , p ( l , o ) { i ! = = ( i = t ( l ) ) & & ( s . d ( 1 ) , s = i ( l ) , s & & ( s . c ( ) , s . m ( e . p a r e n t N o d e , e ) ) ) } , d ( l ) { s . d ( l ) , l & & w ( e ) } } } f u n c t i o n k E ( n ) { l e t e , t , i ; r e t u r n { c ( ) { e = y ( " i " ) , m ( e , " c l a s s " , " r i - e r r o r - w a r n i n g - f i l l t x t - s m t x t - h i n t " ) } , m ( s , l ) { S ( s , e , l ) , t | | ( i = O e ( B e . c a l l ( n u l l , e , " U n v e r i f i e d " ) ) , t = ! 0 ) } , d ( s ) { s & & w ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n w E ( n ) { l e t e , t , i ; r e t u r n { c ( ) { e = y ( " i " ) , m ( e , " c l a s s " , " r i - c h e c k b o x - c i r c l e - f i l l t x t - s m t x t - s u c c e s s " ) } , m ( s , l ) { S ( s , e , l ) , t | | ( i = O e ( B e . c a l l ( n u l l , e , " V e r i f i e d " ) ) , t = ! 0 ) } , d ( s ) { s & & w ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n l h ( n ) { l e t e = ! n [ 7 ] . i n c l u d e s ( " @ u s e r n a m e " ) , t , i = ! n [ 7 ] . i n c l u d e s ( " @ e m a i l " ) , s , l = e & & o h ( n ) , o = i & & r h ( n ) ; r e t u r n { c ( ) { l & & l . c ( ) , t = D ( ) , o & & o . c ( ) , s = k e ( ) } , m ( r , a ) { l & & l . m ( r , a ) , S ( r , t , a ) , o & & o . m ( r , a ) , S ( r , s , a ) } , p ( r , a ) { a [ 0 ] & 1 2 8 & & ( e = ! r [ 7 ] . i n c l u d e s ( " @ u s e r n a m e " ) ) , e ? l ? l . p ( r , a ) : ( l = o h ( r ) , l . c ( ) , l . m ( t . p a r e n t N o d e , t ) ) : l & & ( l . d ( 1 ) , l = n u l l ) , a [ 0 ] & 1 2 8 & & ( i = ! r [ 7 ] . i n c l u d e s ( " @ e m a i l " ) ) , i ? o ? o . p ( r , a ) : ( o = r h ( r ) , o . c ( ) , o . m ( s . p a r e n t N o d e , s ) ) : o & & ( o . d ( 1 ) , o = n u l l ) } , d ( r ) { l & & l . d ( r ) , r & & w ( t ) , o & & o . d ( r ) , r & & w ( s ) } } } f u n c t i o n o h ( n ) { l e t e , t ; f u n c t i o n i ( o , r ) { r e t u r n r [ 0 ] & 1 6 & & ( t = n u l l ) , t = = n u l l & & ( t = ! ! U . i s E m p t y ( o [ 5 5 ] . u s e r n a m e ) ) , t ? $ E : S E } l e t s = i ( n , [ - 1 , - 1 , - 1 ] ) , l = s ( n ) ; r e t u r n { c ( ) { e = y ( " t d " ) , l . c ( ) , m ( e , " c l a s s " , " c o l - t y p e - t e x t c o l - f i e l d - u s e r n a m e " ) } , m ( o , r ) { S ( o , e , r ) , l . m ( e , n u l l ) } , p ( o , r ) { s = = = ( s = i ( o , r ) ) & & l ? l . p ( o , r ) : ( l . d ( 1 ) , l = s ( o ) , l & & ( l . c ( ) , l . m ( e , n u l l ) ) ) } , d ( o ) { o & & w ( e ) , l . d ( ) } } } f u n c t i o n S E ( n ) { l e t e , t = n [ 5 5 ] . u s e r n a m e + " " , i , s ; r e t u r n { c ( ) { e = y ( " s p a n " ) , i = W ( t ) , m ( e , " c l a s s " , " t x t t x t - e l l i p s i s " ) , m ( e , " t i t l e " , s = n [ 5 5 ] . u s e r n a m e ) } , m ( l , o ) { S ( l , e , o ) , b ( e , i ) } , p ( l , o ) { o [ 0 ] & 1 6 & & t ! = = ( t = l [ 5 5 ] . u s e r n a m e + " " ) & & s e ( i , t ) , o [ 0 ] & 1 6 & & s ! = = ( s = l [ 5 5 ] . u s e r n a m e ) & & m ( e , " t i t l e " , s ) } , d ( l ) { l & & w ( e ) } } } f u n c t i o n $ E ( n ) { l e t e ; r e t u r n { c ( ) { e = y ( " s p a n " ) , e . t e x t C o n t e n t = " N / A " , m ( e , " c l a s s " , " t x t - h i n t " ) } , m ( t , i ) { S ( t , e , i ) } , p : t e , d ( t ) { t & & w ( e ) } } } f u n c t i o n r h ( n ) { l e t e , t ; f u n c t i o n i ( o , r ) { r e t u r n r [ 0 ] & 1 6 & & ( t = n u l l ) , t = = n u l l & & ( t = ! ! U . i s E m p t y ( o [ 5 5 ] . e m a i l ) ) , t ? C E : T E } l e t s = i ( n , [ - 1 , - 1 , - 1 ] ) , l = s ( n ) ; r e t u r n { c ( ) { e = y ( " t d " ) , l . c ( ) , m ( e , " c l a s s " , " c o l - t y p e - t e x t c o l - f i e l d - e m a i l " ) } , m ( o , r ) { S ( o , e , r ) , l . m ( e , n u l l ) } , p ( o , r ) { s = = = ( s = i ( o , r ) ) & & l ? l . p ( o , r ) : ( l . d ( 1 ) , l = s ( o ) , l & & ( l . c ( ) , l . m ( e , n u l l ) ) ) } , d ( o ) { o & & w ( e ) , l . d ( ) } } } f u n c t i o n T E ( n ) { l e t e , t = n [ 5 5 ] . e m a i l + " " , i , s ; r e t u r n { c ( ) { e = y ( " s p a n " ) , i = W ( t ) , m ( e , " c l a s s " , " t x t t x t - e l l i p s i s " ) , m ( e , " t i t l e " , s = n [ 5 5 ] . e m a i l ) } , m ( l , o ) { S ( l , e , o ) , b ( e , i ) } , p ( l , o ) { o [ 0 ] & 1 6 & & t ! = = ( t = l [ 5 5 ] . e m a i
< span class = "txt" > New record < /span>`,m(e,"type","button"),m(e,"class","btn btn-expanded")},m(s,l){S(s,e,l),t||(i=J(e,"click",n[18]),t=!0)},p:te,d(s){s&&w(e),t=!1,i()}}}function qE(n){let e,t,i,s,l,o=n[2].name+"",r,a,u,f,d,p,h,g,_,v,k,$,C,T,M,O,E,A,P,N,F=!n[10]&&gh(n);d=new Go({}),d.$on("refresh",n[16]);let R=!n[2].$isView&&bh(n);k=new Zo({props:{value:n[0],autocompleteCollection:n[2]}}),k.$on("submit",n[19]);function q(Y){n[21](Y)}function j(Y){n[22](Y)}let B={collection:n[2]};return n[0]!==void 0&&(B.filter=n[0]),n[1]!==void 0&&(B.sort=n[1]),M=new PE({props:B}),n[20](M),ne.push(()=>de(M,"filter",q)),ne.push(()=>de(M,"sort",j)),M.$on("select",n[23]),M.$on("new",n[24]),{c(){e=y("header"),t=y("nav"),i=y("div"),i.textContent="Collections",s=D(),l=y("div"),r=W(o),a=D(),u=y("div"),F&&F.c(),f=D(),H(d.$$.fragment),p=D(),h=y("div"),g=y("button"),g.innerHTML=`<i class="ri-code-s-slash-line"></i >
< span class = "txt" > API Preview < /span>`,_=D(),R&&R.c(),v=D(),H(k.$$.fragment),$=D(),C=y("div"),T=D(),H(M.$$.fragment),m(i,"class","breadcrumb-item"),m(l,"class","breadcrumb-item"),m(t,"class","breadcrumbs"),m(u,"class","inline-flex gap-5"),m(g,"type","button"),m(g,"class","btn btn-outline"),m(h,"class","btns-group"),m(e,"class","page-header"),m(C,"class","clearfix m-b-base")},m(Y,Q){S(Y,e,Q),b(e,t),b(t,i),b(t,s),b(t,l),b(l,r),b(e,a),b(e,u),F&&F.m(u,null),b(u,f),V(d,u,null),b(e,p),b(e,h),b(h,g),b(h,_),R&&R.m(h,null),S(Y,v,Q),V(k,Y,Q),S(Y,$,Q),S(Y,C,Q),S(Y,T,Q),V(M,Y,Q),A=!0,P||(N=J(g,"click",n[17]),P=!0)},p(Y,Q){(!A||Q[0]&4)&&o!==(o=Y[2].name+"")&&se(r,o),Y[10]?F&&(F.d(1),F=null):F?F.p(Y,Q):(F=gh(Y),F.c(),F.m(u,f)),Y[2].$isView?R&&(R.d(1),R=null):R?R.p(Y,Q):(R=bh(Y),R.c(),R.m(h,null));const Z={};Q[0]&1&&(Z.value=Y[0]),Q[0]&4&&(Z.autocompleteCollection=Y[2]),k.$set(Z);const G={};Q[0]&4&&(G.collection=Y[2]),!O&&Q[0]&1&&(O=!0,G.filter=Y[0],_e(()=>O=!1)),!E&&Q[0]&2&&(E=!0,G.sort=Y[1],_e(()=>E=!1)),M.$set(G)},i(Y){A||(I(d.$$.fragment,Y),I(k.$$.fragment,Y),I(M.$$.fragment,Y),A=!0)},o(Y){L(d.$$.fragment,Y),L(k.$$.fragment,Y),L(M.$$.fragment,Y),A=!1},d(Y){Y&&w(e),F&&F.d(),z(d),R&&R.d(),Y&&w(v),z(k,Y),Y&&w($),Y&&w(C),Y&&w(T),n[20](null),z(M,Y),P=!1,N()}}}function jE(n){let e,t,i,s,l;return{c(){e=y("h1"),e.textContent="Create your first collection to add records!",t=D(),i=y("button"),i.innerHTML=`<i class="ri-add-line"></i >
< span class = "txt" > Create new collection < /span>`,m(e,"class","m-b-10"),m(i,"type","button"),m(i,"class","btn btn-expanded-lg btn-lg")},m(o,r){S(o,e,r),S(o,t,r),S(o,i,r),s||(l=J(i,"click",n[14]),s=!0)},p:te,d(o){o&&w(e),o&&w(t),o&&w(i),s=!1,l()}}}function VE(n){let e;return{c(){e=y("h1"),e.textContent="You don't have any collections yet.",m(e,"class","m-b-10")},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function zE(n){let e,t,i;function s(r,a){return r[10]?VE:jE}let l=s(n),o=l(n);return{c(){e=y("div"),t=y("div"),t.innerHTML='<i class="ri-database-2-line"></i > ' , i = D ( ) , o . c ( ) , m ( t , "class" , "icon" ) , m ( e , "class" , "placeholder-section m-b-base" ) } , m ( r , a ) { S ( r , e , a ) , b ( e , t ) , b ( e , i ) , o . m ( e , null ) } , p ( r , a ) { l === ( l = s ( r ) ) && o ? o . p ( r , a ) : ( o . d ( 1 ) , o = l ( r ) , o && ( o . c ( ) , o . m ( e , null ) ) ) } , d ( r ) { r && w ( e ) , o . d ( ) } } } function HE ( n ) { let e ; return { c ( ) { e = y ( "div" ) , e . innerHTML = ` <span class="loader loader-lg"></span>
< h1 > Loading collections ... < / h 1 > ` , m ( e , " c l a s s " , " p l a c e h o l d e r - s e c t i o n m - b - b a s e " ) } , m ( t , i ) { S ( t , e , i ) } , p : t e , d ( t ) { t & & w ( e ) } } } f u n c t i o n B E ( n ) { l e t e , t , i , s , l , o , r , a , u , f , d ; c o n s t p = [ R E , F E , N E ] , h = [ ] ; f u n c t i o n g ( C , T ) { r e t u r n C [ 3 ] & & ! C [ 9 ] . l e n g t h ? 0 : C [ 9 ] . l e n g t h ? 2 : 1 } e = g ( n ) , t = h [ e ] = p [ e ] ( n ) ; l e t _ = { } ; s = n e w d u ( { p r o p s : _ } ) , n [ 2 5 ] ( s ) ; l e t v = { } ; o = n e w N M ( { p r o p s : v } ) , n [ 2 6 ] ( o ) ; l e t k = { c o l l e c t i o n : n [ 2 ] } ; a = n e w T 1 ( { p r o p s : k } ) , n [ 2 7 ] ( a ) , a . $ o n ( " s a v e " , n [ 2 8 ] ) , a . $ o n ( " d e l e t e " , n [ 2 9 ] ) ; l e t $ = { c o l l e c t i o n : n [ 2 ] } ; r e t u r n f = n e w a E ( { p r o p s : $ } ) , n [ 3 0 ] ( f ) , { c ( ) { t . c ( ) , i = D ( ) , H ( s . $ $ . f r a g m e n t ) , l = D ( ) , H ( o . $ $ . f r a g m e n t ) , r = D ( ) , H ( a . $ $ . f r a g m e n t ) , u = D ( ) , H ( f . $ $ . f r a g m e n t ) } , m ( C , T ) { h [ e ] . m ( C , T ) , S ( C , i , T ) , V ( s , C , T ) , S ( C , l , T ) , V ( o , C , T ) , S ( C , r , T ) , V ( a , C , T ) , S ( C , u , T ) , V ( f , C , T ) , d = ! 0 } , p ( C , T ) { l e t M = e ; e = g ( C ) , e = = = M ? h [ e ] . p ( C , T ) : ( a e ( ) , L ( h [ M ] , 1 , 1 , ( ) = > { h [ M ] = n u l l } ) , u e ( ) , t = h [ e ] , t ? t . p ( C , T ) : ( t = h [ e ] = p [ e ] ( C ) , t . c ( ) ) , I ( t , 1 ) , t . m ( i . p a r e n t N o d e , i ) ) ; c o n s t O = { } ; s . $ s e t ( O ) ; c o n s t E = { } ; o . $ s e t ( E ) ; c o n s t A = { } ; T [ 0 ] & 4 & & ( A . c o l l e c t i o n = C [ 2 ] ) , a . $ s e t ( A ) ; c o n s t P = { } ; T [ 0 ] & 4 & & ( P . c o l l e c t i o n = C [ 2 ] ) , f . $ s e t ( P ) } , i ( C ) { d | | ( I ( t ) , I ( s . $ $ . f r a g m e n t , C ) , I ( o . $ $ . f r a g m e n t , C ) , I ( a . $ $ . f r a g m e n t , C ) , I ( f . $ $ . f r a g m e n t , C ) , d = ! 0 ) } , o ( C ) { L ( t ) , L ( s . $ $ . f r a g m e n t , C ) , L ( o . $ $ . f r a g m e n t , C ) , L ( a . $ $ . f r a g m e n t , C ) , L ( f . $ $ . f r a g m e n t , C ) , d = ! 1 } , d ( C ) { h [ e ] . d ( C ) , C & & w ( i ) , n [ 2 5 ] ( n u l l ) , z ( s , C ) , C & & w ( l ) , n [ 2 6 ] ( n u l l ) , z ( o , C ) , C & & w ( r ) , n [ 2 7 ] ( n u l l ) , z ( a , C ) , C & & w ( u ) , n [ 3 0 ] ( n u l l ) , z ( f , C ) } } } f u n c t i o n U E ( n , e , t ) { l e t i , s , l , o , r , a , u ; Z e ( n , f i , e e = > t ( 2 , s = e e ) ) , Z e ( n , M t , e e = > t ( 3 1 , l = e e ) ) , Z e ( n , w o , e e = > t ( 3 , o = e e ) ) , Z e ( n , C a , e e = > t ( 1 3 , r = e e ) ) , Z e ( n , d i , e e = > t ( 9 , a = e e ) ) , Z e ( n , I s , e e = > t ( 1 0 , u = e e ) ) ; c o n s t f = n e w U R L S e a r c h P a r a m s ( r ) ; l e t d , p , h , g , _ , v = f . g e t ( " f i l t e r " ) | | " " , k = f . g e t ( " s o r t " ) | | " " , $ = f . g e t ( " c o l l e c t i o n I d " ) | | ( s = = n u l l ? v o i d 0 : s . i d ) ; f u n c t i o n C ( ) { t ( 1 1 , $ = s = = n u l l ? v o i d 0 : s . i d ) , t ( 0 , v = " " ) , t ( 1 , k = " - c r e a t e d " ) , s ! = n u l l & & s . $ i s V i e w & & ! U . e x t r a c t C o l u m n s F r o m Q u e r y ( s . o p t i o n s . q u e r y ) . i n c l u d e s ( " c r e a t e d " ) & & t ( 1 , k = " " ) } N y ( $ ) ; c o n s t T = ( ) = > d = = n u l l ? v o i d 0 : d . s h o w ( ) , M = ( ) = > d = = n u l l ? v o i d 0 : d . s h o w ( s ) , O = ( ) = > _ = = n u l l ? v o i d 0 : _ . l o a d ( ) , E = ( ) = > p = = n u l l ? v o i d 0 : p . s h o w ( s ) , A = ( ) = > h = = n u l l ? v o i d 0 : h . s h o w ( ) , P = e e = > t ( 0 , v = e e . d e t a i l ) ; f u n c t i o n N ( e e ) { n e [ e e ? " u n s h i f t " : " p u s h " ] ( ( ) = > { _ = e e , t ( 8 , _ ) } ) } f u n c t i o n F ( e e ) { v = e e , t ( 0 , v ) } f u n c t i o n R ( e e ) { k = e e , t ( 1 , k ) } c o n s t q = e e = > { s . $ i s V i e w ? g . s h o w ( e e = = n u l l ? v o i d 0 : e e . d e t a i l ) : h = = n u l l | | h . s h o w ( e e = = n u l l ? v o i d 0 : e e . d e t a i l ) } , j = ( ) = > h = = n u l l ? v o i d 0 : h . s h o w ( ) ; f u n c t i o n B ( e e ) { n e [ e e ? " u n s h i f t " : " p u s h " ] ( ( ) = > { d = e e , t ( 4 , d ) } ) } f u n c t i o n Y ( e e ) { n e [ e e ? " u n s h i f t " : " p u s h " ] ( ( ) = > { p = e e , t ( 5 , p ) } ) } f u n c t i o n Q ( e e ) { n e [ e e ? " u n s h i f t " : " p u s h " ] ( ( ) = > { h = e e , t ( 6 , h ) } ) } c o n s t Z = ( ) = > _ = = n u l l ? v o i d 0 : _ . r e l o a d L o a d e d P a g e s ( ) , G = ( ) = > _ = = n u l l ? v o i d 0 : _ . r e l o a d L o a d e d P a g e s ( ) ; f u n c t i o n l e ( e e ) { n e [ e e ? " u n s h i f t " : " p u s h " ] ( ( ) = > { g = e e , t ( 7 , g ) } ) } r e t u r n n . $ $ . u p d a t e = ( ) = > { i f ( n . $ $ . d i r t y [ 0 ] & 8 1 9 2 & & t ( 1 2 , i = n e w U R L S e a r c h P a r a m s ( r ) ) , n . $ $ . d i r t y [ 0 ] & 6 1 5 2 & & ! o & & i . g e t ( " c o l l e c t i o n I d " ) & & i . g e t ( " c o l l e c t i o n I d " ) ! = $ & & I y ( i . g e t ( " c o l l e c t i o n I d " ) ) , n . $ $ . d i r t y [ 0 ] & 2 0 5 2 & & s ! = n u l l & & s . i d & & $ ! = s . i d & & C ( ) , n . $ $ . d i r t y [ 0 ] & 7 & & ( k | | v | | s ! = n u l l & & s . i d ) ) { c o n s t e e = n e w U R L S e a r c h P a r a m s ( { c o l l e c t i o n I d : ( s = = n u l l ? v o i d 0 : s . i d ) | | " " , f i l t e r : v , s o r t : k } ) . t o S t r i n g ( ) ; V i ( " / c o l l e c t i o n s ? " + e e ) } n . $ $ . d i r t y [ 0 ] & 4 & & l n ( M t , l = ( s = = n u l l ? v o i d 0 : s . n a m e ) | | " C o l l e c t i o n s " , l ) } , [ v , k , s , o , d , p , h , g , _ , a , u , $ , i , r , T , M , O , E , A , P , N , F , R , q , j , B , Y , Q , Z , G , l e ] } c l a s s W E e x t e n d s b e { c o n s t r u c t o r ( e ) { s u p e r ( ) , g e ( t h i s , e , U E , B E , h e , { } , n u l l , [ - 1 , - 1 ] ) } } f u n c t i o n Y E ( n ) { l e t e , t , i , s , l , o , r , a , u , f , d , p , h , g , _ , v , k , $ , C , T , M , O , E , A , P , N , F ; r e t u r n { c ( ) { e = y ( " a s i d e " ) , t = y ( " d i v " ) , i = y ( " d i v " ) , i . t e x t C o n t e n t = " S y s t e m " , s = D ( ) , l = y ( " a " ) , l . i n n e r H T M L = ` < i c l a s s = " r i - h o m e - g e a r - l i n e " > < / i >
2023-05-17 21:41:42 +02:00
< span class = "txt" > Application < /span>`,o=D(),r=y("a"),r.innerHTML=`<i class="ri-send-plane-2-line"></i >
< span class = "txt" > Mail settings < /span>`,a=D(),u=y("a"),u.innerHTML=`<i class="ri-archive-drawer-line"></i >
< span class = "txt" > Files storage < /span>`,f=D(),d=y("a"),d.innerHTML=`<i class="ri-archive-line"></i >
< span class = "txt" > Backups < / s p a n > ` , p = D ( ) , h = y ( " d i v " ) , h . i n n e r H T M L = ' < s p a n c l a s s = " t x t " > S y n c < / s p a n > ' , g = D ( ) , _ = y ( " a " ) , _ . i n n e r H T M L = ` < i c l a s s = " r i - u n i n s t a l l - l i n e " > < / i >
2023-05-24 22:18:44 +02:00
< span class = "txt" > Export collections < /span>`,v=D(),k=y("a"),k.innerHTML=`<i class="ri-install-line"></i >
< span class = "txt" > Import collections < /span>`,$=D(),C=y("div"),C.textContent="Authentication",T=D(),M=y("a"),M.innerHTML=`<i class="ri-lock-password-line"></i >
< span class = "txt" > Auth providers < /span>`,O=D(),E=y("a"),E.innerHTML=`<i class="ri-key-line"></i >
< span class = "txt" > Token options < /span>`,A=D(),P=y("a"),P.innerHTML=`<i class="ri-shield-user-line"></i >
< span class = "txt" > Admins < / s p a n > ` , m ( i , " c l a s s " , " s i d e b a r - t i t l e " ) , m ( l , " h r e f " , " / s e t t i n g s " ) , m ( l , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , m ( r , " h r e f " , " / s e t t i n g s / m a i l " ) , m ( r , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , m ( u , " h r e f " , " / s e t t i n g s / s t o r a g e " ) , m ( u , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , m ( d , " h r e f " , " / s e t t i n g s / b a c k u p s " ) , m ( d , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , m ( h , " c l a s s " , " s i d e b a r - t i t l e " ) , m ( _ , " h r e f " , " / s e t t i n g s / e x p o r t - c o l l e c t i o n s " ) , m ( _ , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , m ( k , " h r e f " , " / s e t t i n g s / i m p o r t - c o l l e c t i o n s " ) , m ( k , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , m ( C , " c l a s s " , " s i d e b a r - t i t l e " ) , m ( M , " h r e f " , " / s e t t i n g s / a u t h - p r o v i d e r s " ) , m ( M , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , m ( E , " h r e f " , " / s e t t i n g s / t o k e n s " ) , m ( E , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , m ( P , " h r e f " , " / s e t t i n g s / a d m i n s " ) , m ( P , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , m ( t , " c l a s s " , " s i d e b a r - c o n t e n t " ) , m ( e , " c l a s s " , " p a g e - s i d e b a r s e t t i n g s - s i d e b a r " ) } , m ( R , q ) { S ( R , e , q ) , b ( e , t ) , b ( t , i ) , b ( t , s ) , b ( t , l ) , b ( t , o ) , b ( t , r ) , b ( t , a ) , b ( t , u ) , b ( t , f ) , b ( t , d ) , b ( t , p ) , b ( t , h ) , b ( t , g ) , b ( t , _ ) , b ( t , v ) , b ( t , k ) , b ( t , $ ) , b ( t , C ) , b ( t , T ) , b ( t , M ) , b ( t , O ) , b ( t , E ) , b ( t , A ) , b ( t , P ) , N | | ( F = [ O e ( z n . c a l l ( n u l l , l , { p a t h : " / s e t t i n g s " } ) ) , O e ( r n . c a l l ( n u l l , l ) ) , O e ( z n . c a l l ( n u l l , r , { p a t h : " / s e t t i n g s / m a i l / ? . * " } ) ) , O e ( r n . c a l l ( n u l l , r ) ) , O e ( z n . c a l l ( n u l l , u , { p a t h : " / s e t t i n g s / s t o r a g e / ? . * " } ) ) , O e ( r n . c a l l ( n u l l , u ) ) , O e ( z n . c a l l ( n u l l , d , { p a t h : " / s e t t i n g s / b a c k u p s / ? . * " } ) ) , O e ( r n . c a l l ( n u l l , d ) ) , O e ( z n . c a l l ( n u l l , _ , { p a t h : " / s e t t i n g s / e x p o r t - c o l l e c t i o n s / ? . * " } ) ) , O e ( r n . c a l l ( n u l l , _ ) ) , O e ( z n . c a l l ( n u l l , k , { p a t h : " / s e t t i n g s / i m p o r t - c o l l e c t i o n s / ? . * " } ) ) , O e ( r n . c a l l ( n u l l , k ) ) , O e ( z n . c a l l ( n u l l , M , { p a t h : " / s e t t i n g s / a u t h - p r o v i d e r s / ? . * " } ) ) , O e ( r n . c a l l ( n u l l , M ) ) , O e ( z n . c a l l ( n u l l , E , { p a t h : " / s e t t i n g s / t o k e n s / ? . * " } ) ) , O e ( r n . c a l l ( n u l l , E ) ) , O e ( z n . c a l l ( n u l l , P , { p a t h : " / s e t t i n g s / a d m i n s / ? . * " } ) ) , O e ( r n . c a l l ( n u l l , P ) ) ] , N = ! 0 ) } , p : t e , i : t e , o : t e , d ( R ) { R & & w ( e ) , N = ! 1 , D e ( F ) } } } c l a s s M i e x t e n d s b e { c o n s t r u c t o r ( e ) { s u p e r ( ) , g e ( t h i s , e , n u l l , Y E , h e , { } ) } } f u n c t i o n v h ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 3 0 ] = e [ t ] , i } f u n c t i o n y h ( n ) { l e t e , t ; r e t u r n e = n e w p e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e a d o n l y " , n a m e : " i d " , $ $ s l o t s : { d e f a u l t : [ K E , ( { u n i q u e I d : i } ) = > ( { 2 9 : i } ) , ( { u n i q u e I d : i } ) = > [ i ? 5 3 6 8 7 0 9 1 2 : 0 ] ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( i , s ) { V ( e , i , s ) , t = ! 0 } , p ( i , s ) { c o n s t l = { } ; s [ 0 ] & 5 3 6 8 7 0 9 1 4 | s [ 1 ] & 4 & & ( l . $ $ s c o p e = { d i r t y : s , c t x : i } ) , e . $ s e t ( l ) } , i ( i ) { t | | ( I ( e . $ $ . f r a g m e n t , i ) , t = ! 0 ) } , o ( i ) { L ( e . $ $ . f r a g m e n t , i ) , t = ! 1 } , d ( i ) { z ( e , i ) } } } f u n c t i o n K E ( n ) { l e t e , t , i , s , l , o , r , a , u , f , d , p , h , g , _ ; r e t u r n { c ( ) { e = y ( " l a b e l " ) , t = y ( " i " ) , i = D ( ) , s = y ( " s p a n " ) , s . t e x t C o n t e n t = " i d " , o = D ( ) , r = y ( " d i v " ) , a = y ( " i " ) , f = D ( ) , d = y ( " i n p u t " ) , m ( t , " c l a s s " , U . g e t F i e l d T y p e I c o n ( " p r i m a r y " ) ) , m ( s , " c l a s s " , " t x t " ) , m ( e , " f o r " , l = n [ 2 9 ] ) , m ( a , " c l a s s " , " r i - c a l e n d a r - e v e n t - l i n e t x t - d i s a b l e d " ) , m ( r , " c l a s s " , " f o r m - f i e l d - a d d o n " ) , m ( d , " t y p e " , " t e x t " ) , m ( d , " i d " , p = n [ 2 9 ] ) , d . v a l u e = h = n [ 1 ] . i d , d . r e a d O n l y = ! 0 } , m ( v , k ) { S ( v , e , k ) , b ( e , t ) , b ( e , i ) , b ( e , s ) , S ( v , o , k ) , S ( v , r , k ) , b ( r , a ) , S ( v , f , k ) , S ( v , d , k ) , g | | ( _ = O e ( u = B e . c a l l ( n u l l , a , { t e x t : ` C r e a t e d : $ { n [ 1 ] . c r e a t e d }
Updated : $ { n [ 1 ] . updated } ` ,position:"left"})),g=!0)},p(v,k){k[0]&536870912&&l!==(l=v[29])&&m(e,"for",l),u&&jt(u.update)&&k[0]&2&&u.update.call(null,{text: ` Created : $ { v [ 1 ] . created }
Updated : $ { v [ 1 ] . updated } ` ,position:"left"}),k[0]&536870912&&p!==(p=v[29])&&m(d,"id",p),k[0]&2&&h!==(h=v[1].id)&&d.value!==h&&(d.value=h)},d(v){v&&w(e),v&&w(o),v&&w(r),v&&w(f),v&&w(d),g=!1,_()}}}function kh(n){let e,t,i,s,l,o,r;function a(){return n[17](n[30])}return{c(){e=y("button"),t=y("img"),s=D(),_n(t.src,i="./images/avatars/avatar"+n[30]+".svg")||m(t,"src",i),m(t,"alt","Avatar "+n[30]),m(e,"type","button"),m(e,"class",l="link-fade thumb thumb-circle "+(n[30]==n[2]?"thumb-active":"thumb-sm"))},m(u,f){S(u,e,f),b(e,t),b(e,s),o||(r=J(e,"click",a),o=!0)},p(u,f){n=u,f[0]&4&&l!==(l="link-fade thumb thumb-circle "+(n[30]==n[2]?"thumb-active":"thumb-sm"))&&m(e,"class",l)},d(u){u&&w(e),o=!1,r()}}}function JE(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("label"),t=y("i"),i=D(),s=y("span"),s.textContent="Email",o=D(),r=y("input"),m(t,"class",U.getFieldTypeIcon("email")),m(s,"class","txt"),m(e,"for",l=n[29]),m(r,"type","email"),m(r,"autocomplete","off"),m(r,"id",a=n[29]),r.required=!0},m(d,p){S(d,e,p),b(e,t),b(e,i),b(e,s),S(d,o,p),S(d,r,p),re(r,n[3]),u||(f=J(r,"input",n[18]),u=!0)},p(d,p){p[0]&536870912&&l!==(l=d[29])&&m(e,"for",l),p[0]&536870912&&a!==(a=d[29])&&m(r,"id",a),p[0]&8&&r.value!==d[3]&&re(r,d[3])},d(d){d&&w(e),d&&w(o),d&&w(r),u=!1,f()}}}function wh(n){let e,t;return e=new pe({props:{class:"form-field form-field-toggle", $ $ slots:{default:[ZE,({uniqueId:i})=>({29:i}),({uniqueId:i})=>[i?536870912:0]]}, $ $ scope:{ctx:n}}}),{c(){H(e. $ $ .fragment)},m(i,s){V(e,i,s),t=!0},p(i,s){const l={};s[0]&536870928|s[1]&4&&(l. $ $ scope={dirty:s,ctx:i}),e. $ set(l)},i(i){t||(I(e. $ $ .fragment,i),t=!0)},o(i){L(e. $ $ .fragment,i),t=!1},d(i){z(e,i)}}}function ZE(n){let e,t,i,s,l,o,r,a;return{c(){e=y("input"),i=D(),s=y("label"),l=W("Change password"),m(e,"type","checkbox"),m(e,"id",t=n[29]),m(s,"for",o=n[29])},m(u,f){S(u,e,f),e.checked=n[4],S(u,i,f),S(u,s,f),b(s,l),r||(a=J(e,"change",n[19]),r=!0)},p(u,f){f[0]&536870912&&t!==(t=u[29])&&m(e,"id",t),f[0]&16&&(e.checked=u[4]),f[0]&536870912&&o!==(o=u[29])&&m(s,"for",o)},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,a()}}}function Sh(n){let e,t,i,s,l,o,r,a,u;return s=new pe({props:{class:"form-field required",name:"password", $ $ slots:{default:[GE,({uniqueId:f})=>({29:f}),({uniqueId:f})=>[f?536870912:0]]}, $ $ scope:{ctx:n}}}),r=new pe({props:{class:"form-field required",name:"passwordConfirm", $ $ slots:{default:[XE,({uniqueId:f})=>({29:f}),({uniqueId:f})=>[f?536870912:0]]}, $ $ scope:{ctx:n}}}),{c(){e=y("div"),t=y("div"),i=y("div"),H(s. $ $ .fragment),l=D(),o=y("div"),H(r. $ $ .fragment),m(i,"class","col-sm-6"),m(o,"class","col-sm-6"),m(t,"class","grid"),m(e,"class","col-12")},m(f,d){S(f,e,d),b(e,t),b(t,i),V(s,i,null),b(t,l),b(t,o),V(r,o,null),u=!0},p(f,d){const p={};d[0]&536871168|d[1]&4&&(p. $ $ scope={dirty:d,ctx:f}),s. $ set(p);const h={};d[0]&536871424|d[1]&4&&(h. $ $ scope={dirty:d,ctx:f}),r. $ set(h)},i(f){u||(I(s. $ $ .fragment,f),I(r. $ $ .fragment,f),f&&xe(()=>{u&&(a||(a=Ve(t,rt,{duration:150},!0)),a.run(1))}),u=!0)},o(f){L(s. $ $ .fragment,f),L(r. $ $ .fragment,f),f&&(a||(a=Ve(t,rt,{duration:150},!1)),a.run(0)),u=!1},d(f){f&&w(e),z(s),z(r),f&&a&&a.end()}}}function GE(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("label"),t=y("i"),i=D(),s=y("span"),s.textContent="Password",o=D(),r=y("input"),m(t,"class","ri-lock-line"),m(s,"class","txt"),m(e,"for",l=n[29]),m(r,"type","password"),m(r,"autocomplete","new-password"),m(r,"id",a=n[29]),r.required=!0},m(d,p){S(d,e,p),b(e,t),b(e,i),b(e,s),S(d,o,p),S(d,r,p),re(r,n[8]),u||(f=J(r,"input",n[20]),u=!0)},p(d,p){p[0]&536870912&&l!==(l=d[29])&&m(e,"for",l),p[0]&536870912&&a!==(a=d[29])&&m(r,"id",a),p[0]&256&&r.value!==d[8]&&re(r,d[8])},d(d){d&&w(e),d&&w(o),d&&w(r),u=!1,f()}}}function XE(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=y("label"),t=y("i"),i=D(),s=y("span"),s.textContent="Password confirm",o=D(),r=y("input"),m(t,"class","ri-lock-line"),m(s,"class","txt"),m(e,"for",l=n[29]),m(r,"type","password"),m(r,"autocomplete","new-password"),m(r,"id",a=n[29]),r.required=!0},m(d,p){S(d,e,p),b(e,t),b(e,i),b(e,s),S(d,o,p),S(d,r,p),re(r,n[9]),u||(f=J(r,"input",n[21]),u=!0)},p(d,p){p[0]&536870912&&l!==(l=d[29])&&m(e,"for",l),p
< span class = "txt" > Delete < / s p a n > ` , m ( e , " t y p e " , " b u t t o n " ) , m ( e , " c l a s s " , " d r o p d o w n - i t e m t x t - d a n g e r " ) } , m ( s , l ) { S ( s , e , l ) , t | | ( i = J ( e , " c l i c k " , n [ 1 5 ] ) , t = ! 0 ) } , p : t e , d ( s ) { s & & w ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n t D ( n ) { l e t e , t , i , s , l , o , r = n [ 1 ] . $ i s N e w ? " C r e a t e " : " S a v e c h a n g e s " , a , u , f , d , p , h = ! n [ 1 ] . $ i s N e w & & $ h ( n ) ; r e t u r n { c ( ) { h & & h . c ( ) , e = D ( ) , t = y ( " b u t t o n " ) , i = y ( " s p a n " ) , i . t e x t C o n t e n t = " C a n c e l " , s = D ( ) , l = y ( " b u t t o n " ) , o = y ( " s p a n " ) , a = W ( r ) , m ( i , " c l a s s " , " t x t " ) , m ( t , " t y p e " , " b u t t o n " ) , m ( t , " c l a s s " , " b t n b t n - t r a n s p a r e n t " ) , t . d i s a b l e d = n [ 6 ] , m ( o , " c l a s s " , " t x t " ) , m ( l , " t y p e " , " s u b m i t " ) , m ( l , " f o r m " , n [ 1 1 ] ) , m ( l , " c l a s s " , " b t n b t n - e x p a n d e d " ) , l . d i s a b l e d = u = ! n [ 1 0 ] | | n [ 6 ] , x ( l , " b t n - l o a d i n g " , n [ 6 ] ) } , m ( g , _ ) { h & & h . m ( g , _ ) , S ( g , e , _ ) , S ( g , t , _ ) , b ( t , i ) , S ( g , s , _ ) , S ( g , l , _ ) , b ( l , o ) , b ( o , a ) , f = ! 0 , d | | ( p = J ( t , " c l i c k " , n [ 1 6 ] ) , d = ! 0 ) } , p ( g , _ ) { g [ 1 ] . $ i s N e w ? h & & ( a e ( ) , L ( h , 1 , 1 , ( ) = > { h = n u l l } ) , u e ( ) ) : h ? ( h . p ( g , _ ) , _ [ 0 ] & 2 & & I ( h , 1 ) ) : ( h = $ h ( g ) , h . c ( ) , I ( h , 1 ) , h . m ( e . p a r e n t N o d e , e ) ) , ( ! f | | _ [ 0 ] & 6 4 ) & & ( t . d i s a b l e d = g [ 6 ] ) , ( ! f | | _ [ 0 ] & 2 ) & & r ! = = ( r = g [ 1 ] . $ i s N e w ? " C r e a t e " : " S a v e c h a n g e s " ) & & s e ( a , r ) , ( ! f | | _ [ 0 ] & 1 0 8 8 & & u ! = = ( u = ! g [ 1 0 ] | | g [ 6 ] ) ) & & ( l . d i s a b l e d = u ) , ( ! f | | _ [ 0 ] & 6 4 ) & & x ( l , " b t n - l o a d i n g " , g [ 6 ] ) } , i ( g ) { f | | ( I ( h ) , f = ! 0 ) } , o ( g ) { L ( h ) , f = ! 1 } , d ( g ) { h & & h . d ( g ) , g & & w ( e ) , g & & w ( t ) , g & & w ( s ) , g & & w ( l ) , d = ! 1 , p ( ) } } } f u n c t i o n n D ( n ) { l e t e , t , i = { p o p u p : ! 0 , c l a s s : " a d m i n - p a n e l " , b e f o r e H i d e : n [ 2 2 ] , $ $ s l o t s : { f o o t e r : [ t D ] , h e a d e r : [ x E ] , d e f a u l t : [ Q E ] } , $ $ s c o p e : { c t x : n } } ; r e t u r n e = n e w o n ( { p r o p s : i } ) , n [ 2 3 ] ( e ) , e . $ o n ( " h i d e " , n [ 2 4 ] ) , e . $ o n ( " s h o w " , n [ 2 5 ] ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( s , l ) { V ( e , s , l ) , t = ! 0 } , p ( s , l ) { c o n s t o = { } ; l [ 0 ] & 1 1 5 2 & & ( o . b e f o r e H i d e = s [ 2 2 ] ) , l [ 0 ] & 1 8 8 6 | l [ 1 ] & 4 & & ( o . $ $ s c o p e = { d i r t y : l , c t x : s } ) , e . $ s e t ( o ) } , i ( s ) { t | | ( I ( e . $ $ . f r a g m e n t , s ) , t = ! 0 ) } , o ( s ) { L ( e . $ $ . f r a g m e n t , s ) , t = ! 1 } , d ( s ) { n [ 2 3 ] ( n u l l ) , z ( e , s ) } } } f u n c t i o n i D ( n , e , t ) { l e t i ; c o n s t s = T t ( ) , l = " a d m i n _ " + U . r a n d o m S t r i n g ( 5 ) ; l e t o , r = n e w r s , a = ! 1 , u = ! 1 , f = 0 , d = " " , p = " " , h = " " , g = ! 1 ; f u n c t i o n _ ( Y ) { r e t u r n k ( Y ) , t ( 7 , u = ! 0 ) , o = = n u l l ? v o i d 0 : o . s h o w ( ) } f u n c t i o n v ( ) { r e t u r n o = = n u l l ? v o i d 0 : o . h i d e ( ) } f u n c t i o n k ( Y ) { t ( 1 , r = Y ! = n u l l & & Y . $ c l o n e ? Y . $ c l o n e ( ) : n e w r s ) , $ ( ) } f u n c t i o n $ ( ) { t ( 4 , g = ! 1 ) , t ( 3 , d = ( r = = n u l l ? v o i d 0 : r . e m a i l ) | | " " ) , t ( 2 , f = ( r = = n u l l ? v o i d 0 : r . a v a t a r ) | | 0 ) , t ( 8 , p = " " ) , t ( 9 , h = " " ) , t n ( { } ) } f u n c t i o n C ( ) { i f ( a | | ! i ) r e t u r n ; t ( 6 , a = ! 0 ) ; c o n s t Y = { e m a i l : d , a v a t a r : f } ; ( r . $ i s N e w | | g ) & & ( Y . p a s s w o r d = p , Y . p a s s w o r d C o n f i r m = h ) ; l e t Q ; r . $ i s N e w ? Q = c e . a d m i n s . c r e a t e ( Y ) : Q = c e . a d m i n s . u p d a t e ( r . i d , Y ) , Q . t h e n ( a s y n c Z = > { v a r G ; t ( 7 , u = ! 1 ) , v ( ) , H t ( r . $ i s N e w ? " S u c c e s s f u l l y c r e a t e d a d m i n . " : " S u c c e s s f u l l y u p d a t e d a d m i n . " ) , ( ( G = c e . a u t h S t o r e . m o d e l ) = = n u l l ? v o i d 0 : G . i d ) = = = Z . i d & & c e . a u t h S t o r e . s a v e ( c e . a u t h S t o r e . t o k e n , Z ) , s ( " s a v e " , Z ) } ) . c a t c h ( Z = > { c e . e r r o r ( Z ) } ) . f i n a l l y ( ( ) = > { t ( 6 , a = ! 1 ) } ) } f u n c t i o n T ( ) { r ! = n u l l & & r . i d & & m n ( " D o y o u r e a l l y w a n t t o d e l e t e t h e s e l e c t e d a d m i n ? " , ( ) = > c e . a d m i n s . d e l e t e ( r . i d ) . t h e n ( ( ) = > { t ( 7 , u = ! 1 ) , v ( ) , H t ( " S u c c e s s f u l l y d e l e t e d a d m i n . " ) , s ( " d e l e t e " , r ) } ) . c a t c h ( Y = > { c e . e r r o r ( Y ) } ) ) } c o n s t M = ( ) = > T ( ) , O = ( ) = > v ( ) , E = Y = > t ( 2 , f = Y ) ; f u n c t i o n A ( ) { d = t h i s . v a l u e , t ( 3 , d ) } f u n c t i o n P ( ) { g = t h i s . c h e c k e d , t ( 4 , g ) } f u n c t i o n N ( ) { p = t h i s . v a l u e , t ( 8 , p ) } f u n c t i o n F ( ) { h = t h i s . v a l u e , t ( 9 , h ) } c o n s t R = ( ) = > i & & u ? ( m n ( " Y o u h a v e u n s a v e d c h a n g e s . D o y o u r e a l l y w a n t t o c l o s e t h e p a n e l ? " , ( ) = > { t ( 7 , u = ! 1 ) , v ( ) } ) , ! 1 ) : ! 0 ; f u n c t i o n q ( Y ) { n e [ Y ? " u n s h i f t " : " p u s h " ] ( ( ) = > { o = Y , t ( 5 , o ) } ) } f u n c t i o n j ( Y ) { F e . c a l l ( t h i s , n , Y ) } f u n c t i o n B ( Y ) { F e . c a l l ( t h i s , n , Y ) } r e t u r n n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y [ 0 ] & 3 0 & & t ( 1 0 , i = r . $ i s N e w & & d ! = " " | | g | | d ! = = r . e m a i l | | f ! = = r . a v a t a r ) } , [ v , r , f , d , g , o , a , u , p , h , i , l , C , T , _ , M , O , E , A , P , N , F , R , q , j , B ] } c l a s s s D e x t e n d s b e { c o n s t r u c t o r ( e ) { s u p e r ( ) , g e ( t h i s , e , i D , n D , h e , { s h o w : 1 4 , h i d e : 0 } , n u l l , [ - 1 , - 1 ] ) } g e t s h o w ( ) { r e t u r n t h i s . $ $ . c t x [ 1 4 ] } g e t h i d e ( ) { r e t u r n t h i s . $ $ . c t x [ 0 ] } } f u n c t i o n T h ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 2 4 ] = e [ t ] , i } f u n c t i o n l D ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = y ( " d i v " ) , t = y ( " i " ) , i = D ( ) , s = y ( " s p a n " ) , s . t e x t C o n t e n t = " i d " , m ( t , " c l a s s " , U . g e t F i e l d T y p e I c o n ( " p r i m a r y " ) ) , m ( s , " c l a s s " , " t x t " ) , m ( e , " c l a s s " , " c o l - h e a d e r - c o n t e n t " ) } , m ( l , o ) { S ( l , e , o ) , b ( e , t ) , b ( e , i ) , b ( e , s ) } , p : t e , d ( l ) { l & & w ( e ) } } } f u n c t i o n o D ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = y ( " d i v " ) , t = y ( " i " ) , i = D ( ) , s = y ( " s p a n " ) , s . t e x t C o n t e n t = " e m a i l " , m ( t , " c l a s s " , U . g e t F i e l d T y p e I c o n ( " e m a i l " ) ) , m ( s , " c l a s s " , " t x t " ) , m ( e , " c l a s s " , " c o l - h e a d e r - c o n t e n t " ) } , m ( l , o ) { S ( l , e , o ) , b ( e , t ) , b ( e , i ) , b ( e , s ) } , p : t e , d ( l ) { l & & w ( e ) } } } f u n c t i o n r D ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = y ( " d i v " ) , t = y ( " i " ) , i = D ( ) , s = y ( " s p a n " ) , s . t e x t C o n t e n t = " c r e a t e d " , m ( t , " c l a s s " , U . g e t F i e l d T y p e I c o n ( " d a
` },m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function Mh(n){let e,t,i;return{c(){e=y("button"),e.innerHTML='<span class="txt">Clear filters</span>',m(e,"type","button"),m(e,"class","btn btn-hint btn-expanded m-t-sm")},m(s,l){S(s,e,l),t||(i=J(e,"click",n[17]),t=!0)},p:te,d(s){s&&w(e),t=!1,i()}}}function Oh(n){let e;return{c(){e=y("span"),e.textContent="You",m(e,"class","label label-warning m-l-5")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function Eh(n,e){let t,i,s,l,o,r,a,u,f,d,p,h=e[24].id+"",g,_,v,k, $ ,C=e[24].email+"",T,M,O,E,A,P,N,F,R,q,j,B,Y,Q;f=new Rl({props:{value:e[24].id}});let Z=e[24].id===e[7].id&&Oh();A=new $ i({props:{date:e[24].created}}),F=new $ i({props:{date:e[24].updated}});function G(){return e[15](e[24])}function le(...ee){return e[16](e[24],...ee)}return{key:n,first:null,c(){t=y("tr"),i=y("td"),s=y("figure"),l=y("img"),r=D(),a=y("td"),u=y("div"),H(f. $ $ .fragment),d=D(),p=y("span"),g=W(h),_=D(),Z&&Z.c(),v=D(),k=y("td"), $ =y("span"),T=W(C),O=D(),E=y("td"),H(A. $ $ .fragment),P=D(),N=y("td"),H(F. $ $ .fragment),R=D(),q=y("td"),q.innerHTML='<i class="ri-arrow-right-line"></i>',j=D(),_n(l.src,o="./images/avatars/avatar"+(e[24].avatar||0)+".svg")||m(l,"src",o),m(l,"alt","Admin avatar"),m(s,"class","thumb thumb-sm thumb-circle"),m(i,"class","min-width"),m(p,"class","txt"),m(u,"class","label"),m(a,"class","col-type-text col-field-id"),m( $ ,"class","txt txt-ellipsis"),m( $ ,"title",M=e[24].email),m(k,"class","col-type-email col-field-email"),m(E,"class","col-type-date col-field-created"),m(N,"class","col-type-date col-field-updated"),m(q,"class","col-type-action min-width"),m(t,"tabindex","0"),m(t,"class","row-handle"),this.first=t},m(ee,me){S(ee,t,me),b(t,i),b(i,s),b(s,l),b(t,r),b(t,a),b(a,u),V(f,u,null),b(u,d),b(u,p),b(p,g),b(a,_),Z&&Z.m(a,null),b(t,v),b(t,k),b(k, $ ),b( $ ,T),b(t,O),b(t,E),V(A,E,null),b(t,P),b(t,N),V(F,N,null),b(t,R),b(t,q),b(t,j),B=!0,Y||(Q=[J(t,"click",G),J(t,"keydown",le)],Y=!0)},p(ee,me){e=ee,(!B||me&16&&!_n(l.src,o="./images/avatars/avatar"+(e[24].avatar||0)+".svg"))&&m(l,"src",o);const ye={};me&16&&(ye.value=e[24].id),f. $ set(ye),(!B||me&16)&&h!==(h=e[24].id+"")&&se(g,h),e[24].id===e[7].id?Z||(Z=Oh(),Z.c(),Z.m(a,null)):Z&&(Z.d(1),Z=null),(!B||me&16)&&C!==(C=e[24].email+"")&&se(T,C),(!B||me&16&&M!==(M=e[24].email))&&m( $ ,"title",M);const Me={};me&16&&(Me.date=e[24].created),A. $ set(Me);const ze={};me&16&&(ze.date=e[24].updated),F. $ set(ze)},i(ee){B||(I(f. $ $ .fragment,ee),I(A. $ $ .fragment,ee),I(F. $ $ .fragment,ee),B=!0)},o(ee){L(f. $ $ .fragment,ee),L(A. $ $ .fragment,ee),L(F. $ $ .fragment,ee),B=!1},d(ee){ee&&w(t),z(f),Z&&Z.d(),z(A),z(F),Y=!1,De(Q)}}}function cD(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,v,k, $ ,C,T,M=[],O=new Map,E;function A(G){n[11](G)}let P={class:"col-type-text",name:"id", $ $ slots:{default:[lD]}, $ $ scope:{ctx:n}};n[2]!==void 0&&(P.sort=n[2]),o=new un({props:P}),ne.push(()=>de(o,"sort",A));function N(G){n[12](G)}let F={class:"col-type-email col-field-email",name:"email", $ $ slots:{default:[oD]}, $ $ scope:{ctx:n}};n[2]!==void 0&&(F.sort=n[2]),u=new un({props:F}),ne.push(()=>de(u,"sort",N));function R(G){n[13](G)}let q={class:"col-type-date col-field-created",name:"created", $ $ slots:{default:[rD]}, $ $ scope:{ctx:n}};n[2]!==void 0&&(q.sort=n[2]),p=new un({props:q}),ne.push(()=>de(p,"sort",R));function j(G){n[14](G)}let B={class:"col-type-date col-field-updated",name:"updated", $ $ slots:{default:[aD]}, $ $ scope:{ctx:n}};n[2]!==void 0&&(B.sort=n[2]),_=new un({props:B}),ne.push(()=>de(_,"sort",j));let Y=n[4];const Q=G=>G[24].id;for(let G=0;G<Y.length;G+=1){let le=Th(n,Y,G),ee=Q(le);O.set(ee,M[G]=Eh(ee,le))}let Z=null;return Y.length||(Z=Ch(n)),{c(){e=y("table"),t=y("thead"),i=y("tr"),s=y("th"),l=D(),H(o. $ $ .fragment),a=D(),H(u. $ $ .fragment),d=D(),H(p. $ $ .fragment),g=D(),H(_. $ $ .fragment),k=D(), $ =y("th"),C=D(),T=y("tbody");for(let G=0;G<M.length;G+=1)M[G].c();Z&&Z.c(),m(s,"class","min-width"),m( $ ,"class","col-type-action min-width"),m(e,"class","table"),x(e,"table-loading",n[5])},m(G,le){S(G,e,le),b(e,t),b(t,i),b(i,s),b(i,l),V(o,i,null),b(i,a),V(u,i,null),b(i,d),V(p,i,null),b(i,g),V(_,i,null),b(i,k),b(i, $ ),b(e,C),b(e,T
< span class = "txt" > New admin < / s p a n > ` , h = D ( ) , H ( g . $ $ . f r a g m e n t ) , _ = D ( ) , v = y ( " d i v " ) , k = D ( ) , H ( $ . $ $ . f r a g m e n t ) , C = D ( ) , A & & A . c ( ) , T = k e ( ) , m ( i , " c l a s s " , " b r e a d c r u m b - i t e m " ) , m ( l , " c l a s s " , " b r e a d c r u m b - i t e m " ) , m ( t , " c l a s s " , " b r e a d c r u m b s " ) , m ( f , " c l a s s " , " f l e x - f i l l " ) , m ( p , " t y p e " , " b u t t o n " ) , m ( p , " c l a s s " , " b t n b t n - e x p a n d e d " ) , m ( e , " c l a s s " , " p a g e - h e a d e r " ) , m ( v , " c l a s s " , " c l e a r f i x m - b - b a s e " ) } , m ( P , N ) { S ( P , e , N ) , b ( e , t ) , b ( t , i ) , b ( t , s ) , b ( t , l ) , b ( l , o ) , b ( e , r ) , V ( a , e , n u l l ) , b ( e , u ) , b ( e , f ) , b ( e , d ) , b ( e , p ) , S ( P , h , N ) , V ( g , P , N ) , S ( P , _ , N ) , S ( P , v , N ) , S ( P , k , N ) , V ( $ , P , N ) , S ( P , C , N ) , A & & A . m ( P , N ) , S ( P , T , N ) , M = ! 0 , O | | ( E = J ( p , " c l i c k " , n [ 9 ] ) , O = ! 0 ) } , p ( P , N ) { ( ! M | | N & 6 4 ) & & s e ( o , P [ 6 ] ) ; c o n s t F = { } ; N & 2 & & ( F . v a l u e = P [ 1 ] ) , g . $ s e t ( F ) ; c o n s t R = { } ; N & 1 3 4 2 1 7 9 1 8 & & ( R . $ $ s c o p e = { d i r t y : N , c t x : P } ) , $ . $ s e t ( R ) , P [ 4 ] . l e n g t h ? A ? A . p ( P , N ) : ( A = D h ( P ) , A . c ( ) , A . m ( T . p a r e n t N o d e , T ) ) : A & & ( A . d ( 1 ) , A = n u l l ) } , i ( P ) { M | | ( I ( a . $ $ . f r a g m e n t , P ) , I ( g . $ $ . f r a g m e n t , P ) , I ( $ . $ $ . f r a g m e n t , P ) , M = ! 0 ) } , o ( P ) { L ( a . $ $ . f r a g m e n t , P ) , L ( g . $ $ . f r a g m e n t , P ) , L ( $ . $ $ . f r a g m e n t , P ) , M = ! 1 } , d ( P ) { P & & w ( e ) , z ( a ) , P & & w ( h ) , z ( g , P ) , P & & w ( _ ) , P & & w ( v ) , P & & w ( k ) , z ( $ , P ) , P & & w ( C ) , A & & A . d ( P ) , P & & w ( T ) , O = ! 1 , E ( ) } } } f u n c t i o n p D ( n ) { l e t e , t , i , s , l , o ; e = n e w M i ( { } ) , i = n e w S n ( { p r o p s : { $ $ s l o t s : { d e f a u l t : [ d D ] } , $ $ s c o p e : { c t x : n } } } ) ; l e t r = { } ; r e t u r n l = n e w s D ( { p r o p s : r } ) , n [ 1 8 ] ( l ) , l . $ o n ( " s a v e " , n [ 1 9 ] ) , l . $ o n ( " d e l e t e " , n [ 2 0 ] ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) , t = D ( ) , H ( i . $ $ . f r a g m e n t ) , s = D ( ) , H ( l . $ $ . f r a g m e n t ) } , m ( a , u ) { V ( e , a , u ) , S ( a , t , u ) , V ( i , a , u ) , S ( a , s , u ) , V ( l , a , u ) , o = ! 0 } , p ( a , [ u ] ) { c o n s t f = { } ; u & 1 3 4 2 1 7 9 8 2 & & ( f . $ $ s c o p e = { d i r t y : u , c t x : a } ) , i . $ s e t ( f ) ; c o n s t d = { } ; l . $ s e t ( d ) } , i ( a ) { o | | ( I ( e . $ $ . f r a g m e n t , a ) , I ( i . $ $ . f r a g m e n t , a ) , I ( l . $ $ . f r a g m e n t , a ) , o = ! 0 ) } , o ( a ) { L ( e . $ $ . f r a g m e n t , a ) , L ( i . $ $ . f r a g m e n t , a ) , L ( l . $ $ . f r a g m e n t , a ) , o = ! 1 } , d ( a ) { z ( e , a ) , a & & w ( t ) , z ( i , a ) , a & & w ( s ) , n [ 1 8 ] ( n u l l ) , z ( l , a ) } } } f u n c t i o n m D ( n , e , t ) { l e t i , s , l ; Z e ( n , C a , F = > t ( 2 1 , i = F ) ) , Z e ( n , M t , F = > t ( 6 , s = F ) ) , Z e ( n , q a , F = > t ( 7 , l = F ) ) , l n ( M t , s = " A d m i n s " , s ) ; c o n s t o = n e w U R L S e a r c h P a r a m s ( i ) ; l e t r , a = [ ] , u = ! 1 , f = o . g e t ( " f i l t e r " ) | | " " , d = o . g e t ( " s o r t " ) | | " - c r e a t e d " ; f u n c t i o n p ( ) { t ( 5 , u = ! 0 ) , t ( 4 , a = [ ] ) ; c o n s t F = U . n o r m a l i z e S e a r c h F i l t e r ( f , [ " i d " , " e m a i l " , " c r e a t e d " , " u p d a t e d " ] ) ; r e t u r n c e . a d m i n s . g e t F u l l L i s t ( 1 0 0 , { s o r t : d | | " - c r e a t e d " , f i l t e r : F } ) . t h e n ( R = > { t ( 4 , a = R ) , t ( 5 , u = ! 1 ) } ) . c a t c h ( R = > { R ! = n u l l & & R . i s A b o r t | | ( t ( 5 , u = ! 1 ) , c o n s o l e . w a r n ( R ) , h ( ) , c e . e r r o r ( R , ! 1 ) ) } ) } f u n c t i o n h ( ) { t ( 4 , a = [ ] ) } c o n s t g = ( ) = > p ( ) , _ = ( ) = > r = = n u l l ? v o i d 0 : r . s h o w ( ) , v = F = > t ( 1 , f = F . d e t a i l ) ; f u n c t i o n k ( F ) { d = F , t ( 2 , d ) } f u n c t i o n $ ( F ) { d = F , t ( 2 , d ) } f u n c t i o n C ( F ) { d = F , t ( 2 , d ) } f u n c t i o n T ( F ) { d = F , t ( 2 , d ) } c o n s t M = F = > r = = n u l l ? v o i d 0 : r . s h o w ( F ) , O = ( F , R ) = > { ( R . c o d e = = = " E n t e r " | | R . c o d e = = = " S p a c e " ) & & ( R . p r e v e n t D e f a u l t ( ) , r = = n u l l | | r . s h o w ( F ) ) } , E = ( ) = > t ( 1 , f = " " ) ; f u n c t i o n A ( F ) { n e [ F ? " u n s h i f t " : " p u s h " ] ( ( ) = > { r = F , t ( 3 , r ) } ) } c o n s t P = ( ) = > p ( ) , N = ( ) = > p ( ) ; r e t u r n n . $ $ . u p d a t e = ( ) = > { i f ( n . $ $ . d i r t y & 6 & & d ! = = - 1 & & f ! = = - 1 ) { c o n s t F = n e w U R L S e a r c h P a r a m s ( { f i l t e r : f , s o r t : d } ) . t o S t r i n g ( ) ; V i ( " / s e t t i n g s / a d m i n s ? " + F ) , p ( ) } } , [ p , f , d , r , a , u , s , l , g , _ , v , k , $ , C , T , M , O , E , A , P , N ] } c l a s s h D e x t e n d s b e { c o n s t r u c t o r ( e ) { s u p e r ( ) , g e ( t h i s , e , m D , p D , h e , { l o a d A d m i n s : 0 } ) } g e t l o a d A d m i n s ( ) { r e t u r n t h i s . $ $ . c t x [ 0 ] } } f u n c t i o n _ D ( n ) { l e t e , t , i , s , l , o , r , a ; r e t u r n { c ( ) { e = y ( " l a b e l " ) , t = W ( " E m a i l " ) , s = D ( ) , l = y ( " i n p u t " ) , m ( e , " f o r " , i = n [ 8 ] ) , m ( l , " t y p e " , " e m a i l " ) , m ( l , " i d " , o = n [ 8 ] ) , l . r e q u i r e d = ! 0 , l . a u t o f o c u s = ! 0 } , m ( u , f ) { S ( u , e , f ) , b ( e , t ) , S ( u , s , f ) , S ( u , l , f ) , r e ( l , n [ 0 ] ) , l . f o c u s ( ) , r | | ( a = J ( l , " i n p u t " , n [ 4 ] ) , r = ! 0 ) } , p ( u , f ) { f & 2 5 6 & & i ! = = ( i = u [ 8 ] ) & & m ( e , " f o r " , i ) , f & 2 5 6 & & o ! = = ( o = u [ 8 ] ) & & m ( l , " i d " , o ) , f & 1 & & l . v a l u e ! = = u [ 0 ] & & r e ( l , u [ 0 ] ) } , d ( u ) { u & & w ( e ) , u & & w ( s ) , u & & w ( l ) , r = ! 1 , a ( ) } } } f u n c t i o n g D ( n ) { l e t e , t , i , s , l , o , r , a , u , f , d ; r e t u r n { c ( ) { e = y ( " l a b e l " ) , t = W ( " P a s s w o r d " ) , s = D ( ) , l = y ( " i n p u t " ) , r = D ( ) , a = y ( " d i v " ) , u = y ( " a " ) , u . t e x t C o n t e n t = " F o r g o t t e n p a s s w o r d ? " , m ( e , " f o r " , i = n [ 8 ] ) , m ( l , " t y p e " , " p a s s w o r d " ) , m ( l , " i d " , o = n [ 8 ] ) , l . r e q u i r e d = ! 0 , m ( u , " h r e f " , " / r e q u e s t - p a s s w o r d - r e s e t " ) , m ( u , " c l a s s " , " l i n k - h i n t " ) , m ( a , " c l a s s " , " h e l p - b l o c k " ) } , m ( p , h ) { S ( p , e , h ) , b ( e , t ) , S ( p , s , h ) , S ( p , l , h ) , r e ( l , n [ 1 ] ) , S ( p , r , h ) , S ( p , a , h ) , b ( a , u ) , f | | ( d = [ J ( l , " i n p u t " , n [ 5 ] ) , O e ( r n . c a l l ( n u l l , u ) ) ] , f = ! 0 ) } , p ( p , h ) { h & 2 5 6 & & i ! = = ( i = p [ 8 ] ) & & m ( e , " f o r " , i ) , h & 2 5 6 & & o ! = = ( o = p [ 8 ] ) & & m ( l , " i d " , o ) , h & 2 & & l . v a l u e ! = = p [ 1 ] & & r e ( l , p [ 1 ] ) } , d ( p ) { p & & w ( e ) , p & & w ( s ) , p & & w ( l ) , p & & w ( r ) , p & & w ( a ) , f = ! 1 , D e ( d ) } } } f u n c t i o n b D ( n ) { l e t e , t , i , s , l , o , r , a , u , f , d ; r e t u r n s = n e w p e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d " , n a m e : " i d e n t i t y " , $ $ s l o t s : { d e f a u l t : [ _ D , ( { u n i q u e I d : p } ) = > ( { 8 : p } ) , ( { u n i q u e I d : p } ) = > p ? 2 5 6 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , o = n e w p e ( { p r o p
< i class = "ri-arrow-right-line" > < /i>`,m(t,"class","content txt-center m-b-base"),m(a,"type","submit"),m(a,"class","btn btn-lg btn-block btn-next"),x(a,"btn-disabled",n[2]),x(a,"btn-loading",n[2]),m(e,"class","block")},m(p,h){S(p,e,h),b(e,t),b(e,i),V(s,e,null),b(e,l),V(o,e,null),b(e,r),b(e,a),u=!0,f||(d=J(e,"submit",tt(n[3])),f=!0)},p(p,h){const g={};h&769&&(g.$$scope={dirty:h,ctx:p}),s.$set(g);const _={};h&770&&(_.$$scope={dirty:h,ctx:p}),o.$set(_),(!u||h&4)&&x(a,"btn-disabled",p[2]),(!u||h&4)&&x(a,"btn-loading",p[2])},i(p){u||(I(s.$$.fragment,p),I(o.$$.fragment,p),u=!0)},o(p){L(s.$$.fragment,p),L(o.$$.fragment,p),u=!1},d(p){p&&w(e),z(s),z(o),f=!1,d()}}}function vD(n){let e,t;return e=new bb({props:{$$slots:{default:[bD]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment)},m(i,s){V(e,i,s),t=!0},p(i,[s]){const l={};s&519&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(I(e.$$.fragment,i),t=!0)},o(i){L(e.$$.fragment,i),t=!1},d(i){z(e,i)}}}function yD(n,e,t){let i;Ze(n,Ca,d=>t(6,i=d));const s=new URLSearchParams(i);let l=s.get("demoEmail")||"",o=s.get("demoPassword")||"",r=!1;function a(){if(!r)return t(2,r=!0),ce.admins.authWithPassword(l,o).then(()=>{Fa(),Vi("/ ")}).catch(()=>{As(" Invalid login credentials . ")}).finally(()=>{t(2,r=!1)})}function u(){l=this.value,t(0,l)}function f(){o=this.value,t(1,o)}return[l,o,r,a,u,f]}class kD extends be{constructor(e){super(),ge(this,e,yD,vD,he,{})}}function wD(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,v,k,$,C,T,M;i=new pe({props:{class:" form - field required ",name:" meta . appName ",$$slots:{default:[$D,({uniqueId:E})=>({19:E}),({uniqueId:E})=>E?524288:0]},$$scope:{ctx:n}}}),o=new pe({props:{class:" form - field required ",name:" meta . appUrl ",$$slots:{default:[TD,({uniqueId:E})=>({19:E}),({uniqueId:E})=>E?524288:0]},$$scope:{ctx:n}}}),a=new pe({props:{class:" form - field required ",name:" logs . maxDays ",$$slots:{default:[CD,({uniqueId:E})=>({19:E}),({uniqueId:E})=>E?524288:0]},$$scope:{ctx:n}}}),f=new pe({props:{class:" form - field form - field - toggle ",name:" meta . hideControls ",$$slots:{default:[MD,({uniqueId:E})=>({19:E}),({uniqueId:E})=>E?524288:0]},$$scope:{ctx:n}}});let O=n[3]&&Ah(n);return{c(){e=y(" div "),t=y(" div "),H(i.$$.fragment),s=D(),l=y(" div "),H(o.$$.fragment),r=D(),H(a.$$.fragment),u=D(),H(f.$$.fragment),d=D(),p=y(" div "),h=y(" div "),g=D(),O&&O.c(),_=D(),v=y(" button "),k=y(" span "),k.textContent=" Save changes ",m(t," class "," col - lg - 6 "),m(l," class "," col - lg - 6 "),m(h," class "," flex - fill "),m(k," class "," txt "),m(v," type "," submit "),m(v," class "," btn btn - expanded "),v.disabled=$=!n[3]||n[2],x(v," btn - loading ",n[2]),m(p," class "," col - lg - 12 flex "),m(e," class "," grid ")},m(E,A){S(E,e,A),b(e,t),V(i,t,null),b(e,s),b(e,l),V(o,l,null),b(e,r),V(a,e,null),b(e,u),V(f,e,null),b(e,d),b(e,p),b(p,h),b(p,g),O&&O.m(p,null),b(p,_),b(p,v),b(v,k),C=!0,T||(M=J(v," click ",n[13]),T=!0)},p(E,A){const P={};A&1572865&&(P.$$scope={dirty:A,ctx:E}),i.$set(P);const N={};A&1572865&&(N.$$scope={dirty:A,ctx:E}),o.$set(N);const F={};A&1572865&&(F.$$scope={dirty:A,ctx:E}),a.$set(F);const R={};A&1572865&&(R.$$scope={dirty:A,ctx:E}),f.$set(R),E[3]?O?O.p(E,A):(O=Ah(E),O.c(),O.m(p,_)):O&&(O.d(1),O=null),(!C||A&12&&$!==($=!E[3]||E[2]))&&(v.disabled=$),(!C||A&4)&&x(v," btn - loading ",E[2])},i(E){C||(I(i.$$.fragment,E),I(o.$$.fragment,E),I(a.$$.fragment,E),I(f.$$.fragment,E),C=!0)},o(E){L(i.$$.fragment,E),L(o.$$.fragment,E),L(a.$$.fragment,E),L(f.$$.fragment,E),C=!1},d(E){E&&w(e),z(i),z(o),z(a),z(f),O&&O.d(),T=!1,M()}}}function SD(n){let e;return{c(){e=y(" div "),m(e," class "," loader ")},m(t,i){S(t,e,i)},p:te,i:te,o:te,d(t){t&&w(e)}}}function $D(n){let e,t,i,s,l,o,r,a;return{c(){e=y(" label "),t=W(" Application name "),s=D(),l=y(" input "),m(e," for ",i=n[19]),m(l," type "," text "),m(l," id ",o=n[19]),l.required=!0},m(u,f){S(u,e,f),b(e,t),S(u,s,f),S(u,l,f),re(l,n[0].meta.appName),r||(a=J(l," input ",n[8]),r=!0)},p(u,f){f&524288&&i!==(i=u[19])&&m(e," for ",i),f&524288&&o!==(o=u[19])&&m(l," id ",o),f&1&&l.value!==u[0].meta.appName&&re(l,u[0].meta.appName)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function TD(n){let e,t,i,s,l,o,r,a;return{c(){e=y(" label "),t=W(" Application url "),s=D(),l=y(" i
< div class = "breadcrumb-item" > Application < / d i v > < / n a v > ` , t = D ( ) , i = y ( " d i v " ) , s = y ( " f o r m " ) , o . c ( ) , m ( e , " c l a s s " , " p a g e - h e a d e r " ) , m ( s , " c l a s s " , " p a n e l " ) , m ( s , " a u t o c o m p l e t e " , " o f f " ) , m ( i , " c l a s s " , " w r a p p e r " ) } , m ( h , g ) { S ( h , e , g ) , S ( h , t , g ) , S ( h , i , g ) , b ( i , s ) , d [ l ] . m ( s , n u l l ) , r = ! 0 , a | | ( u = J ( s , " s u b m i t " , t t ( n [ 4 ] ) ) , a = ! 0 ) } , p ( h , g ) { l e t _ = l ; l = p ( h ) , l = = = _ ? d [ l ] . p ( h , g ) : ( a e ( ) , L ( d [ _ ] , 1 , 1 , ( ) = > { d [ _ ] = n u l l } ) , u e ( ) , o = d [ l ] , o ? o . p ( h , g ) : ( o = d [ l ] = f [ l ] ( h ) , o . c ( ) ) , I ( o , 1 ) , o . m ( s , n u l l ) ) } , i ( h ) { r | | ( I ( o ) , r = ! 0 ) } , o ( h ) { L ( o ) , r = ! 1 } , d ( h ) { h & & w ( e ) , h & & w ( t ) , h & & w ( i ) , d [ l ] . d ( ) , a = ! 1 , u ( ) } } } f u n c t i o n E D ( n ) { l e t e , t , i , s ; r e t u r n e = n e w M i ( { } ) , i = n e w S n ( { p r o p s : { $ $ s l o t s : { d e f a u l t : [ O D ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) , t = D ( ) , H ( i . $ $ . f r a g m e n t ) } , m ( l , o ) { V ( e , l , o ) , S ( l , t , o ) , V ( i , l , o ) , s = ! 0 } , p ( l , [ o ] ) { c o n s t r = { } ; o & 1 0 4 8 5 9 1 & & ( r . $ $ s c o p e = { d i r t y : o , c t x : l } ) , i . $ s e t ( r ) } , i ( l ) { s | | ( I ( e . $ $ . f r a g m e n t , l ) , I ( i . $ $ . f r a g m e n t , l ) , s = ! 0 ) } , o ( l ) { L ( e . $ $ . f r a g m e n t , l ) , L ( i . $ $ . f r a g m e n t , l ) , s = ! 1 } , d ( l ) { z ( e , l ) , l & & w ( t ) , z ( i , l ) } } } f u n c t i o n D D ( n , e , t ) { l e t i , s , l , o ; Z e ( n , I s , O = > t ( 1 4 , s = O ) ) , Z e ( n , $ o , O = > t ( 1 5 , l = O ) ) , Z e ( n , M t , O = > t ( 1 6 , o = O ) ) , l n ( M t , o = " A p p l i c a t i o n s e t t i n g s " , o ) ; l e t r = { } , a = { } , u = ! 1 , f = ! 1 , d = " " ; p ( ) ; a s y n c f u n c t i o n p ( ) { t ( 1 , u = ! 0 ) ; t r y { c o n s t O = a w a i t c e . s e t t i n g s . g e t A l l ( ) | | { } ; g ( O ) } c a t c h ( O ) { c e . e r r o r ( O ) } t ( 1 , u = ! 1 ) } a s y n c f u n c t i o n h ( ) { i f ( ! ( f | | ! i ) ) { t ( 2 , f = ! 0 ) ; t r y { c o n s t O = a w a i t c e . s e t t i n g s . u p d a t e ( U . f i l t e r R e d a c t e d P r o p s ( a ) ) ; g ( O ) , H t ( " S u c c e s s f u l l y s a v e d a p p l i c a t i o n s e t t i n g s . " ) } c a t c h ( O ) { c e . e r r o r ( O ) } t ( 2 , f = ! 1 ) } } f u n c t i o n g ( O = { } ) { v a r E , A ; l n ( $ o , l = ( E = O = = n u l l ? v o i d 0 : O . m e t a ) = = n u l l ? v o i d 0 : E . a p p N a m e , l ) , l n ( I s , s = ! ! ( ( A = O = = n u l l ? v o i d 0 : O . m e t a ) ! = n u l l & & A . h i d e C o n t r o l s ) , s ) , t ( 0 , a = { m e t a : ( O = = n u l l ? v o i d 0 : O . m e t a ) | | { } , l o g s : ( O = = n u l l ? v o i d 0 : O . l o g s ) | | { } } ) , t ( 6 , r = J S O N . p a r s e ( J S O N . s t r i n g i f y ( a ) ) ) } f u n c t i o n _ ( ) { t ( 0 , a = J S O N . p a r s e ( J S O N . s t r i n g i f y ( r | | { } ) ) ) } f u n c t i o n v ( ) { a . m e t a . a p p N a m e = t h i s . v a l u e , t ( 0 , a ) } f u n c t i o n k ( ) { a . m e t a . a p p U r l = t h i s . v a l u e , t ( 0 , a ) } f u n c t i o n $ ( ) { a . l o g s . m a x D a y s = p t ( t h i s . v a l u e ) , t ( 0 , a ) } f u n c t i o n C ( ) { a . m e t a . h i d e C o n t r o l s = t h i s . c h e c k e d , t ( 0 , a ) } c o n s t T = ( ) = > _ ( ) , M = ( ) = > h ( ) ; r e t u r n n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 6 4 & & t ( 7 , d = J S O N . s t r i n g i f y ( r ) ) , n . $ $ . d i r t y & 1 2 9 & & t ( 3 , i = d ! = J S O N . s t r i n g i f y ( a ) ) } , [ a , u , f , i , h , _ , r , d , v , k , $ , C , T , M ] } c l a s s A D e x t e n d s b e { c o n s t r u c t o r ( e ) { s u p e r ( ) , g e ( t h i s , e , D D , E D , h e , { } ) } } f u n c t i o n I D ( n ) { l e t e , t , i , s = [ { t y p e : " p a s s w o r d " } , { a u t o c o m p l e t e : " n e w - p a s s w o r d " } , n [ 5 ] ] , l = { } ; f o r ( l e t o = 0 ; o < s . l e n g t h ; o + = 1 ) l = j e ( l , s [ o ] ) ; r e t u r n { c ( ) { e = y ( " i n p u t " ) , a i ( e , l ) } , m ( o , r ) { S ( o , e , r ) , e . a u t o f o c u s & & e . f o c u s ( ) , n [ 7 ] ( e ) , r e ( e , n [ 0 ] ) , t | | ( i = J ( e , " i n p u t " , n [ 8 ] ) , t = ! 0 ) } , p ( o , r ) { a i ( e , l = O t ( s , [ { t y p e : " p a s s w o r d " } , { a u t o c o m p l e t e : " n e w - p a s s w o r d " } , r & 3 2 & & o [ 5 ] ] ) ) , r & 1 & & e . v a l u e ! = = o [ 0 ] & & r e ( e , o [ 0 ] ) } , d ( o ) { o & & w ( e ) , n [ 7 ] ( n u l l ) , t = ! 1 , i ( ) } } } f u n c t i o n L D ( n ) { l e t e , t , i , s , l , o , r = [ { r e a d O n l y : ! 0 } , { t y p e : " t e x t " } , { p l a c e h o l d e r : n [ 1 ] } , n [ 5 ] ] , a = { } ; f o r ( l e t u = 0 ; u < r . l e n g t h ; u + = 1 ) a = j e ( a , r [ u ] ) ; r e t u r n { c ( ) { e = y ( " d i v " ) , t = y ( " b u t t o n " ) , t . i n n e r H T M L = ' < i c l a s s = " r i - k e y - l i n e " > < / i > ' , i = D ( ) , s = y ( " i n p u t " ) , m ( t , " t y p e " , " b u t t o n " ) , m ( t , " c l a s s " , " b t n b t n - t r a n s p a r e n t b t n - c i r c l e " ) , m ( e , " c l a s s " , " f o r m - f i e l d - a d d o n " ) , a i ( s , a ) } , m ( u , f ) { S ( u , e , f ) , b ( e , t ) , S ( u , i , f ) , S ( u , s , f ) , s . a u t o f o c u s & & s . f o c u s ( ) , l | | ( o = [ O e ( B e . c a l l ( n u l l , t , { p o s i t i o n : " l e f t " , t e x t : " S e t n e w v a l u e " } ) ) , J ( t , " c l i c k " , n [ 6 ] ) ] , l = ! 0 ) } , p ( u , f ) { a i ( s , a = O t ( r , [ { r e a d O n l y : ! 0 } , { t y p e : " t e x t " } , f & 2 & & { p l a c e h o l d e r : u [ 1 ] } , f & 3 2 & & u [ 5 ] ] ) ) } , d ( u ) { u & & w ( e ) , u & & w ( i ) , u & & w ( s ) , l = ! 1 , D e ( o ) } } } f u n c t i o n P D ( n ) { l e t e ; f u n c t i o n t ( l , o ) { r e t u r n l [ 3 ] ? L D : I D } l e t i = t ( n ) , s = i ( n ) ; r e t u r n { c ( ) { s . c ( ) , e = k e ( ) } , m ( l , o ) { s . m ( l , o ) , S ( l , e , o ) } , p ( l , [ o ] ) { i = = = ( i = t ( l ) ) & & s ? s . p ( l , o ) : ( s . d ( 1 ) , s = i ( l ) , s & & ( s . c ( ) , s . m ( e . p a r e n t N o d e , e ) ) ) } , i : t e , o : t e , d ( l ) { s . d ( l ) , l & & w ( e ) } } } f u n c t i o n N D ( n , e , t ) { c o n s t i = [ " v a l u e " , " m a s k " ] ; l e t s = e t ( e , i ) , { v a l u e : l = " " } = e , { m a s k : o = " * * * * * * " } = e , r , a = ! 1 ; a s y n c f u n c t i o n u ( ) { t ( 0 , l = " " ) , t ( 3 , a = ! 1 ) , a w a i t c n ( ) , r = = n u l l | | r . f o c u s ( ) } c o n s t f = ( ) = > u ( ) ; f u n c t i o n d ( h ) { n e [ h ? " u n s h i f t " : " p u s h " ] ( ( ) = > { r = h , t ( 2 , r ) } ) } f u n c t i o n p ( ) { l = t h i s . v a l u e , t ( 0 , l ) } r e t u r n n . $ $ s e t = h = > { e = j e ( j e ( { } , e ) , G t ( h ) ) , t ( 5 , s = e t ( e , i ) ) , " v a l u e " i n h & & t ( 0 , l = h . v a l u e ) , " m a s k " i n h & & t ( 1 , o = h . m a s k ) } , n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 3 & & t ( 3 , a = l = = = o ) } , [ l , o , r , a , u , s , f , d , p ] } c l a s s h u e x t e n d s b e { c o n s t r u c t o r ( e ) { s u p e r ( ) , g e ( t h i s , e , N D , P D , h e , { v a l u e : 0 , m a s k : 1 } ) } } f u n c t i o n F D ( n ) { l e t e , t , i , s , l , o , r , a , u , f , d , p , h , g , _ ; r e t u r n { c ( ) { e = y ( " l a b e l " ) , t = W ( " S u b j e c t " ) , s = D ( ) , l = y ( " i n p u t " ) , r = D ( ) , a = y ( " d i v " ) , u = W ( ` A v a i l a b l e p l a c e h o l d e r p a r a m e t e r s :
2023-05-17 21:41:42 +02:00
` ),f=y("button"),f.textContent= ` { APP _NAME }
2023-05-24 22:18:44 +02:00
` ,d=W( ` ,
2023-05-17 21:41:42 +02:00
` ),p=y("button"),p.textContent= ` { APP _URL }
2023-05-24 22:18:44 +02:00
` ,h=W("."),m(e,"for",i=n[31]),m(l,"type","text"),m(l,"id",o=n[31]),m(l,"spellcheck","false"),l.required=!0,m(f,"type","button"),m(f,"class","label label-sm link-primary txt-mono"),m(p,"type","button"),m(p,"class","label label-sm link-primary txt-mono"),m(a,"class","help-block")},m(v,k){S(v,e,k),b(e,t),S(v,s,k),S(v,l,k),re(l,n[0].subject),S(v,r,k),S(v,a,k),b(a,u),b(a,f),b(a,d),b(a,p),b(a,h),g||(_=[J(l,"input",n[13]),J(f,"click",n[14]),J(p,"click",n[15])],g=!0)},p(v,k){k[1]&1&&i!==(i=v[31])&&m(e,"for",i),k[1]&1&&o!==(o=v[31])&&m(l,"id",o),k[0]&1&&l.value!==v[0].subject&&re(l,v[0].subject)},d(v){v&&w(e),v&&w(s),v&&w(l),v&&w(r),v&&w(a),g=!1,De(_)}}}function RD(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,v,k;return{c(){e=y("label"),t=W("Action URL"),s=D(),l=y("input"),r=D(),a=y("div"),u=W( ` Available placeholder parameters :
2023-05-17 21:41:42 +02:00
` ),f=y("button"),f.textContent= ` { APP _NAME }
2023-05-24 22:18:44 +02:00
` ,d=W( ` ,
2023-05-17 21:41:42 +02:00
` ),p=y("button"),p.textContent= ` { APP _URL }
2023-05-24 22:18:44 +02:00
` ,h=W( ` ,
2023-05-17 21:41:42 +02:00
` ),g=y("button"),g.textContent= ` { TOKEN }
2023-05-24 22:18:44 +02:00
` ,_=W("."),m(e,"for",i=n[31]),m(l,"type","text"),m(l,"id",o=n[31]),m(l,"spellcheck","false"),l.required=!0,m(f,"type","button"),m(f,"class","label label-sm link-primary txt-mono"),m(p,"type","button"),m(p,"class","label label-sm link-primary txt-mono"),m(g,"type","button"),m(g,"class","label label-sm link-primary txt-mono"),m(g,"title","Required parameter"),m(a,"class","help-block")},m( $ ,C){S( $ ,e,C),b(e,t),S( $ ,s,C),S( $ ,l,C),re(l,n[0].actionUrl),S( $ ,r,C),S( $ ,a,C),b(a,u),b(a,f),b(a,d),b(a,p),b(a,h),b(a,g),b(a,_),v||(k=[J(l,"input",n[16]),J(f,"click",n[17]),J(p,"click",n[18]),J(g,"click",n[19])],v=!0)},p( $ ,C){C[1]&1&&i!==(i= $ [31])&&m(e,"for",i),C[1]&1&&o!==(o= $ [31])&&m(l,"id",o),C[0]&1&&l.value!== $ [0].actionUrl&&re(l, $ [0].actionUrl)},d( $ ){ $ &&w(e), $ &&w(s), $ &&w(l), $ &&w(r), $ &&w(a),v=!1,De(k)}}}function qD(n){let e,t,i,s;return{c(){e=y("textarea"),m(e,"id",t=n[31]),m(e,"class","txt-mono"),m(e,"spellcheck","false"),m(e,"rows","14"),e.required=!0},m(l,o){S(l,e,o),re(e,n[0].body),i||(s=J(e,"input",n[21]),i=!0)},p(l,o){o[1]&1&&t!==(t=l[31])&&m(e,"id",t),o[0]&1&&re(e,l[0].body)},i:te,o:te,d(l){l&&w(e),i=!1,s()}}}function jD(n){let e,t,i,s;function l(a){n[20](a)}var o=n[4];function r(a){let u={id:a[31],language:"html"};return a[0].body!==void 0&&(u.value=a[0].body),{props:u}}return o&&(e=Rt(o,r(n)),ne.push(()=>de(e,"value",l))),{c(){e&&H(e. $ $ .fragment),i=ke()},m(a,u){e&&V(e,a,u),S(a,i,u),s=!0},p(a,u){const f={};if(u[1]&1&&(f.id=a[31]),!t&&u[0]&1&&(t=!0,f.value=a[0].body,_e(()=>t=!1)),u[0]&16&&o!==(o=a[4])){if(e){ae();const d=e;L(d. $ $ .fragment,1,0,()=>{z(d,1)}),ue()}o?(e=Rt(o,r(a)),ne.push(()=>de(e,"value",l)),H(e. $ $ .fragment),I(e. $ $ .fragment,1),V(e,i.parentNode,i)):e=null}else o&&e. $ set(f)},i(a){s||(e&&I(e. $ $ .fragment,a),s=!0)},o(a){e&&L(e. $ $ .fragment,a),s=!1},d(a){a&&w(i),e&&z(e,a)}}}function VD(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,v,k, $ ,C,T;const M=[jD,qD],O=[];function E(A,P){return A[4]&&!A[5]?0:1}return l=E(n),o=O[l]=M[l](n),{c(){e=y("label"),t=W("Body (HTML)"),s=D(),o.c(),r=D(),a=y("div"),u=W( ` Available placeholder parameters :
2023-05-17 21:41:42 +02:00
` ),f=y("button"),f.textContent= ` { APP _NAME }
2023-05-24 22:18:44 +02:00
` ,d=W( ` ,
2023-05-17 21:41:42 +02:00
` ),p=y("button"),p.textContent= ` { APP _URL }
2023-05-24 22:18:44 +02:00
` ,h=W( ` ,
2023-05-17 21:41:42 +02:00
` ),g=y("button"),g.textContent= ` { TOKEN }
2023-05-24 22:18:44 +02:00
` ,_=W( ` ,
` ),v=y("button"),v.textContent= ` { ACTION _URL }
` ,k=W("."),m(e,"for",i=n[31]),m(f,"type","button"),m(f,"class","label label-sm link-primary txt-mono"),m(p,"type","button"),m(p,"class","label label-sm link-primary txt-mono"),m(g,"type","button"),m(g,"class","label label-sm link-primary txt-mono"),m(v,"type","button"),m(v,"class","label label-sm link-primary txt-mono"),m(v,"title","Required parameter"),m(a,"class","help-block")},m(A,P){S(A,e,P),b(e,t),S(A,s,P),O[l].m(A,P),S(A,r,P),S(A,a,P),b(a,u),b(a,f),b(a,d),b(a,p),b(a,h),b(a,g),b(a,_),b(a,v),b(a,k), $ =!0,C||(T=[J(f,"click",n[22]),J(p,"click",n[23]),J(g,"click",n[24]),J(v,"click",n[25])],C=!0)},p(A,P){(! $ ||P[1]&1&&i!==(i=A[31]))&&m(e,"for",i);let N=l;l=E(A),l===N?O[l].p(A,P):(ae(),L(O[N],1,1,()=>{O[N]=null}),ue(),o=O[l],o?o.p(A,P):(o=O[l]=M[l](A),o.c()),I(o,1),o.m(r.parentNode,r))},i(A){ $ ||(I(o), $ =!0)},o(A){L(o), $ =!1},d(A){A&&w(e),A&&w(s),O[l].d(A),A&&w(r),A&&w(a),C=!1,De(T)}}}function zD(n){let e,t,i,s,l,o;return e=new pe({props:{class:"form-field required",name:n[1]+".subject", $ $ slots:{default:[FD,({uniqueId:r})=>({31:r}),({uniqueId:r})=>[0,r?1:0]]}, $ $ scope:{ctx:n}}}),i=new pe({props:{class:"form-field required",name:n[1]+".actionUrl", $ $ slots:{default:[RD,({uniqueId:r})=>({31:r}),({uniqueId:r})=>[0,r?1:0]]}, $ $ scope:{ctx:n}}}),l=new pe({props:{class:"form-field m-0 required",name:n[1]+".body", $ $ slots:{default:[VD,({uniqueId:r})=>({31:r}),({uniqueId:r})=>[0,r?1:0]]}, $ $ scope:{ctx:n}}}),{c(){H(e. $ $ .fragment),t=D(),H(i. $ $ .fragment),s=D(),H(l. $ $ .fragment)},m(r,a){V(e,r,a),S(r,t,a),V(i,r,a),S(r,s,a),V(l,r,a),o=!0},p(r,a){const u={};a[0]&2&&(u.name=r[1]+".subject"),a[0]&1|a[1]&3&&(u. $ $ scope={dirty:a,ctx:r}),e. $ set(u);const f={};a[0]&2&&(f.name=r[1]+".actionUrl"),a[0]&1|a[1]&3&&(f. $ $ scope={dirty:a,ctx:r}),i. $ set(f);const d={};a[0]&2&&(d.name=r[1]+".body"),a[0]&49|a[1]&3&&(d. $ $ scope={dirty:a,ctx:r}),l. $ set(d)},i(r){o||(I(e. $ $ .fragment,r),I(i. $ $ .fragment,r),I(l. $ $ .fragment,r),o=!0)},o(r){L(e. $ $ .fragment,r),L(i. $ $ .fragment,r),L(l. $ $ .fragment,r),o=!1},d(r){z(e,r),r&&w(t),z(i,r),r&&w(s),z(l,r)}}}function Ih(n){let e,t,i,s,l;return{c(){e=y("i"),m(e,"class","ri-error-warning-fill txt-danger")},m(o,r){S(o,e,r),i=!0,s||(l=Oe(Be.call(null,e,{text:"Has errors",position:"left"})),s=!0)},i(o){i||(o&&xe(()=>{i&&(t||(t=Ve(e,Jt,{duration:150,start:.7},!0)),t.run(1))}),i=!0)},o(o){o&&(t||(t=Ve(e,Jt,{duration:150,start:.7},!1)),t.run(0)),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function HD(n){let e,t,i,s,l,o,r,a,u,f=n[6]&&Ih();return{c(){e=y("div"),t=y("i"),i=D(),s=y("span"),l=W(n[2]),o=D(),r=y("div"),a=D(),f&&f.c(),u=ke(),m(t,"class","ri-draft-line"),m(s,"class","txt"),m(e,"class","inline-flex"),m(r,"class","flex-fill")},m(d,p){S(d,e,p),b(e,t),b(e,i),b(e,s),b(s,l),S(d,o,p),S(d,r,p),S(d,a,p),f&&f.m(d,p),S(d,u,p)},p(d,p){p[0]&4&&se(l,d[2]),d[6]?f?p[0]&64&&I(f,1):(f=Ih(),f.c(),I(f,1),f.m(u.parentNode,u)):f&&(ae(),L(f,1,1,()=>{f=null}),ue())},d(d){d&&w(e),d&&w(o),d&&w(r),d&&w(a),f&&f.d(d),d&&w(u)}}}function BD(n){let e,t;const i=[n[8]];let s={ $ $ slots:{header:[HD],default:[zD]}, $ $ scope:{ctx:n}};for(let l=0;l<i.length;l+=1)s=je(s,i[l]);return e=new po({props:s}),n[26](e),e. $ on("expand",n[27]),e. $ on("collapse",n[28]),e. $ on("toggle",n[29]),{c(){H(e. $ $ .fragment)},m(l,o){V(e,l,o),t=!0},p(l,o){const r=o[0]&256?Ot(i,[Qt(l[8])]):{};o[0]&119|o[1]&2&&(r. $ $ scope={dirty:o,ctx:l}),e. $ set(r)},i(l){t||(I(e. $ $ .fragment,l),t=!0)},o(l){L(e. $ $ .fragment,l),t=!1},d(l){n[26](null),z(e,l)}}}let Lh;function UD(n,e,t){let i;const s=["key","title","config","expand","collapse","collapseSiblings"];let l=et(e,s),o;Ze(n,Ti,G=>t(12,o=G));let{key:r}=e,{title:a}=e,{config:u={}}=e,f,d=Lh,p=!1;function h(){f==null||f.expand()}function g(){f==null||f.collapse()}function _(){f==null||f.collapseSiblings()}async function v(){d||p||(t(5,p=!0),t(4,d=(await ut(()=>import("./CodeEditor-2dc6de7d.js"),["./CodeEditor-2dc6de7d.js","./index-8b57b6cd.js"],import.meta.url)).default),Lh=d,t(5,p=!1))}function k(G){U.copyToClipboard(G),ko( ` Copied $ { G } to clipboard ` ,2e3)}v();function $ (){u.subject=this.value,t(0,u)}const C=()=>k("{APP_NAME}"),T=()=>k("{APP_URL}");function M(){u.action
< span class = "txt" > Send test email < / s p a n > ` , m ( e , " t y p e " , " b u t t o n " ) , m ( e , " c l a s s " , " b t n b t n - e x p a n d e d b t n - o u t l i n e " ) } , m ( s , l ) { S ( s , e , l ) , t | | ( i = J ( e , " c l i c k " , n [ 2 6 ] ) , t = ! 0 ) } , p : t e , d ( s ) { s & & w ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n c A ( n ) { l e t e , t , i , s , l , o , r , a ; r e t u r n { c ( ) { e = y ( " b u t t o n " ) , t = y ( " s p a n " ) , t . t e x t C o n t e n t = " C a n c e l " , i = D ( ) , s = y ( " b u t t o n " ) , l = y ( " s p a n " ) , l . t e x t C o n t e n t = " S a v e c h a n g e s " , m ( t , " c l a s s " , " t x t " ) , m ( e , " t y p e " , " b u t t o n " ) , m ( e , " c l a s s " , " b t n b t n - t r a n s p a r e n t b t n - h i n t " ) , e . d i s a b l e d = n [ 3 ] , m ( l , " c l a s s " , " t x t " ) , m ( s , " t y p e " , " s u b m i t " ) , m ( s , " c l a s s " , " b t n b t n - e x p a n d e d " ) , s . d i s a b l e d = o = ! n [ 4 ] | | n [ 3 ] , x ( s , " b t n - l o a d i n g " , n [ 3 ] ) } , m ( u , f ) { S ( u , e , f ) , b ( e , t ) , S ( u , i , f ) , S ( u , s , f ) , b ( s , l ) , r | | ( a = [ J ( e , " c l i c k " , n [ 2 4 ] ) , J ( s , " c l i c k " , n [ 2 5 ] ) ] , r = ! 0 ) } , p ( u , f ) { f [ 0 ] & 8 & & ( e . d i s a b l e d = u [ 3 ] ) , f [ 0 ] & 2 4 & & o ! = = ( o = ! u [ 4 ] | | u [ 3 ] ) & & ( s . d i s a b l e d = o ) , f [ 0 ] & 8 & & x ( s , " b t n - l o a d i n g " , u [ 3 ] ) } , d ( u ) { u & & w ( e ) , u & & w ( i ) , u & & w ( s ) , r = ! 1 , D e ( a ) } } } f u n c t i o n d A ( n ) { l e t e , t , i , s , l , o , r , a , u , f , d , p , h , g , _ , v ; c o n s t k = [ e A , x D ] , $ = [ ] ; f u n c t i o n C ( T , M ) { r e t u r n T [ 2 ] ? 0 : 1 } r e t u r n p = C ( n ) , h = $ [ p ] = k [ p ] ( n ) , { c ( ) { e = y ( " h e a d e r " ) , t = y ( " n a v " ) , i = y ( " d i v " ) , i . t e x t C o n t e n t = " S e t t i n g s " , s = D ( ) , l = y ( " d i v " ) , o = W ( n [ 5 ] ) , r = D ( ) , a = y ( " d i v " ) , u = y ( " f o r m " ) , f = y ( " d i v " ) , f . i n n e r H T M L = " < p > C o n f i g u r e c o m m o n s e t t i n g s f o r s e n d i n g e m a i l s . < / p > " , d = D ( ) , h . c ( ) , m ( i , " c l a s s " , " b r e a d c r u m b - i t e m " ) , m ( l , " c l a s s " , " b r e a d c r u m b - i t e m " ) , m ( t , " c l a s s " , " b r e a d c r u m b s " ) , m ( e , " c l a s s " , " p a g e - h e a d e r " ) , m ( f , " c l a s s " , " c o n t e n t t x t - x l m - b - b a s e " ) , m ( u , " c l a s s " , " p a n e l " ) , m ( u , " a u t o c o m p l e t e " , " o f f " ) , m ( a , " c l a s s " , " w r a p p e r " ) } , m ( T , M ) { S ( T , e , M ) , b ( e , t ) , b ( t , i ) , b ( t , s ) , b ( t , l ) , b ( l , o ) , S ( T , r , M ) , S ( T , a , M ) , b ( a , u ) , b ( u , f ) , b ( u , d ) , $ [ p ] . m ( u , n u l l ) , g = ! 0 , _ | | ( v = J ( u , " s u b m i t " , t t ( n [ 2 7 ] ) ) , _ = ! 0 ) } , p ( T , M ) { ( ! g | | M [ 0 ] & 3 2 ) & & s e ( o , T [ 5 ] ) ; l e t O = p ; p = C ( T ) , p = = = O ? $ [ p ] . p ( T , M ) : ( a e ( ) , L ( $ [ O ] , 1 , 1 , ( ) = > { $ [ O ] = n u l l } ) , u e ( ) , h = $ [ p ] , h ? h . p ( T , M ) : ( h = $ [ p ] = k [ p ] ( T ) , h . c ( ) ) , I ( h , 1 ) , h . m ( u , n u l l ) ) } , i ( T ) { g | | ( I ( h ) , g = ! 0 ) } , o ( T ) { L ( h ) , g = ! 1 } , d ( T ) { T & & w ( e ) , T & & w ( r ) , T & & w ( a ) , $ [ p ] . d ( ) , _ = ! 1 , v ( ) } } } f u n c t i o n p A ( n ) { l e t e , t , i , s , l , o ; e = n e w M i ( { } ) , i = n e w S n ( { p r o p s : { $ $ s l o t s : { d e f a u l t : [ d A ] } , $ $ s c o p e : { c t x : n } } } ) ; l e t r = { } ; r e t u r n l = n e w Q D ( { p r o p s : r } ) , n [ 2 8 ] ( l ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) , t = D ( ) , H ( i . $ $ . f r a g m e n t ) , s = D ( ) , H ( l . $ $ . f r a g m e n t ) } , m ( a , u ) { V ( e , a , u ) , S ( a , t , u ) , V ( i , a , u ) , S ( a , s , u ) , V ( l , a , u ) , o = ! 0 } , p ( a , u ) { c o n s t f = { } ; u [ 0 ] & 6 3 | u [ 1 ] & 2 & & ( f . $ $ s c o p e = { d i r t y : u , c t x : a } ) , i . $ s e t ( f ) ; c o n s t d = { } ; l . $ s e t ( d ) } , i ( a ) { o | | ( I ( e . $ $ . f r a g m e n t , a ) , I ( i . $ $ . f r a g m e n t , a ) , I ( l . $ $ . f r a g m e n t , a ) , o = ! 0 ) } , o ( a ) { L ( e . $ $ . f r a g m e n t , a ) , L ( i . $ $ . f r a g m e n t , a ) , L ( l . $ $ . f r a g m e n t , a ) , o = ! 1 } , d ( a ) { z ( e , a ) , a & & w ( t ) , z ( i , a ) , a & & w ( s ) , n [ 2 8 ] ( n u l l ) , z ( l , a ) } } } f u n c t i o n m A ( n , e , t ) { l e t i , s , l ; Z e ( n , M t , Z = > t ( 5 , l = Z ) ) ; c o n s t o = [ { l a b e l : " A u t o ( S t a r t T L S ) " , v a l u e : ! 1 } , { l a b e l : " A l w a y s " , v a l u e : ! 0 } ] , r = [ { l a b e l : " P L A I N ( d e f a u l t ) " , v a l u e : " P L A I N " } , { l a b e l : " L O G I N " , v a l u e : " L O G I N " } ] ; l n ( M t , l = " M a i l s e t t i n g s " , l ) ; l e t a , u = { } , f = { } , d = ! 1 , p = ! 1 ; h ( ) ; a s y n c f u n c t i o n h ( ) { t ( 2 , d = ! 0 ) ; t r y { c o n s t Z = a w a i t c e . s e t t i n g s . g e t A l l ( ) | | { } ; _ ( Z ) } c a t c h ( Z ) { c e . e r r o r ( Z ) } t ( 2 , d = ! 1 ) } a s y n c f u n c t i o n g ( ) { i f ( ! ( p | | ! s ) ) { t ( 3 , p = ! 0 ) ; t r y { c o n s t Z = a w a i t c e . s e t t i n g s . u p d a t e ( U . f i l t e r R e d a c t e d P r o p s ( f ) ) ; _ ( Z ) , t n ( { } ) , H t ( " S u c c e s s f u l l y s a v e d m a i l s e t t i n g s . " ) } c a t c h ( Z ) { c e . e r r o r ( Z ) } t ( 3 , p = ! 1 ) } } f u n c t i o n _ ( Z = { } ) { t ( 0 , f = { m e t a : ( Z = = n u l l ? v o i d 0 : Z . m e t a ) | | { } , s m t p : ( Z = = n u l l ? v o i d 0 : Z . s m t p ) | | { } } ) , f . s m t p . a u t h M e t h o d | | t ( 0 , f . s m t p . a u t h M e t h o d = r [ 0 ] . v a l u e , f ) , t ( 1 0 , u = J S O N . p a r s e ( J S O N . s t r i n g i f y ( f ) ) ) } f u n c t i o n v ( ) { t ( 0 , f = J S O N . p a r s e ( J S O N . s t r i n g i f y ( u | | { } ) ) ) } f u n c t i o n k ( ) { f . m e t a . s e n d e r N a m e = t h i s . v a l u e , t ( 0 , f ) } f u n c t i o n $ ( ) { f . m e t a . s e n d e r A d d r e s s = t h i s . v a l u e , t ( 0 , f ) } f u n c t i o n C ( Z ) { n . $ $ . n o t _ e q u a l ( f . m e t a . v e r i f i c a t i o n T e m p l a t e , Z ) & & ( f . m e t a . v e r i f i c a t i o n T e m p l a t e = Z , t ( 0 , f ) ) } f u n c t i o n T ( Z ) { n . $ $ . n o t _ e q u a l ( f . m e t a . r e s e t P a s s w o r d T e m p l a t e , Z ) & & ( f . m e t a . r e s e t P a s s w o r d T e m p l a t e = Z , t ( 0 , f ) ) } f u n c t i o n M ( Z ) { n . $ $ . n o t _ e q u a l ( f . m e t a . c o n f i r m E m a i l C h a n g e T e m p l a t e , Z ) & & ( f . m e t a . c o n f i r m E m a i l C h a n g e T e m p l a t e = Z , t ( 0 , f ) ) } f u n c t i o n O ( ) { f . s m t p . e n a b l e d = t h i s . c h e c k e d , t ( 0 , f ) } f u n c t i o n E ( ) { f . s m t p . h o s t = t h i s . v a l u e , t ( 0 , f ) } f u n c t i o n A ( ) { f . s m t p . p o r t = p t ( t h i s . v a l u e ) , t ( 0 , f ) } f u n c t i o n P ( Z ) { n . $ $ . n o t _ e q u a l ( f . s m t p . t l s , Z ) & & ( f . s m t p . t l s = Z , t ( 0 , f ) ) } f u n c t i o n N ( Z ) { n . $ $ . n o t _ e q u a l ( f . s m t p . a u t h M e t h o d , Z ) & & ( f . s m t p . a u t h M e t h o d = Z , t ( 0 , f ) ) } f u n c t i o n F ( ) { f . s m t p . u s e r n a m e = t h i s . v a l u e , t ( 0 , f ) } f u n c t i o n R ( Z ) { n . $ $ . n o t _ e q u a l ( f . s m t p . p a s s w o r d , Z ) & & ( f . s m t p . p a s s w o r d = Z , t ( 0 , f ) ) } c o n s t q = ( ) = > v ( ) , j = ( ) = > g ( ) , B = ( ) = > a = = n u l l ? v o i d 0 : a . s h o w ( ) , Y = ( ) = > g ( ) ; f u n c t i o n Q ( Z ) { n e [ Z ? " u n s h i f t " : " p u s h " ] (
2023-05-17 21:41:42 +02:00
from the
2023-05-24 22:18:44 +02:00
` ),r=y("strong"),u=W(a),f=W( `
2023-05-17 21:41:42 +02:00
to the
2023-05-24 22:18:44 +02:00
` ),d=y("strong"),h=W(p),g=W( ` .
` ),_=y("br"),v=W( `
2023-05-17 21:41:42 +02:00
There are numerous command line tools that can help you , such as :
` ),k=y("a"),k.textContent= ` rclone
2023-05-24 22:18:44 +02:00
` , $ =W( ` ,
2023-05-17 21:41:42 +02:00
` ),C=y("a"),C.textContent= ` s5cmd
2023-05-24 22:18:44 +02:00
` ,T=W(", etc."),M=D(),O=y("div"),m(i,"class","icon"),m(k,"href","https://github.com/rclone/rclone"),m(k,"target","_blank"),m(k,"rel","noopener noreferrer"),m(k,"class","txt-bold"),m(C,"href","https://github.com/peak/s5cmd"),m(C,"target","_blank"),m(C,"rel","noopener noreferrer"),m(C,"class","txt-bold"),m(l,"class","content"),m(t,"class","alert alert-warning m-0"),m(O,"class","clearfix m-t-base")},m(N,F){S(N,e,F),b(e,t),b(t,i),b(t,s),b(t,l),b(l,o),b(l,r),b(r,u),b(l,f),b(l,d),b(d,h),b(l,g),b(l,_),b(l,v),b(l,k),b(l, $ ),b(l,C),b(l,T),b(e,M),b(e,O),A=!0},p(N,F){var R;(!A||F&1)&&a!==(a=(R=N[0].s3)!=null&&R.enabled?"S3 storage":"local file system")&&se(u,a),(!A||F&2)&&p!==(p=N[1].s3.enabled?"S3 storage":"local file system")&&se(h,p)},i(N){A||(N&&xe(()=>{A&&(E||(E=Ve(e,rt,{duration:150},!0)),E.run(1))}),A=!0)},o(N){N&&(E||(E=Ve(e,rt,{duration:150},!1)),E.run(0)),A=!1},d(N){N&&w(e),N&&E&&E.end()}}}function OA(n){var i;let e,t=((i=n[0].s3)==null?void 0:i.enabled)!=n[1].s3.enabled&&Vh(n);return{c(){t&&t.c(),e=ke()},m(s,l){t&&t.m(s,l),S(s,e,l)},p(s,l){var o;((o=s[0].s3)==null?void 0:o.enabled)!=s[1].s3.enabled?t?(t.p(s,l),l&3&&I(t,1)):(t=Vh(s),t.c(),I(t,1),t.m(e.parentNode,e)):t&&(ae(),L(t,1,1,()=>{t=null}),ue())},d(s){t&&t.d(s),s&&w(e)}}}function zh(n){let e;function t(l,o){return l[4]?AA:l[5]?DA:EA}let i=t(n),s=i(n);return{c(){s.c(),e=ke()},m(l,o){s.m(l,o),S(l,e,o)},p(l,o){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},d(l){s.d(l),l&&w(e)}}}function EA(n){let e;return{c(){e=y("div"),e.innerHTML= ` < i class = "ri-checkbox-circle-line txt-success" > < / i >
2023-05-17 22:54:06 +02:00
< span class = "txt" > S3 connected successfully < /span>`,m(e,"class","label label-sm label-success entrance-right")},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function DA(n){let e,t,i,s;return{c(){e=y("div"),e.innerHTML=`<i class="ri-error-warning-line txt-warning"></i >
2023-05-24 22:18:44 +02:00
< span class = "txt" > Failed to establish S3 connection < / s p a n > ` , m ( e , " c l a s s " , " l a b e l l a b e l - s m l a b e l - w a r n i n g e n t r a n c e - r i g h t " ) } , m ( l , o ) { v a r r ; S ( l , e , o ) , i | | ( s = O e ( t = B e . c a l l ( n u l l , e , ( r = n [ 5 ] . d a t a ) = = n u l l ? v o i d 0 : r . m e s s a g e ) ) , i = ! 0 ) } , p ( l , o ) { v a r r ; t & & j t ( t . u p d a t e ) & & o & 3 2 & & t . u p d a t e . c a l l ( n u l l , ( r = l [ 5 ] . d a t a ) = = n u l l ? v o i d 0 : r . m e s s a g e ) } , d ( l ) { l & & w ( e ) , i = ! 1 , s ( ) } } } f u n c t i o n A A ( n ) { l e t e ; r e t u r n { c ( ) { e = y ( " s p a n " ) , m ( e , " c l a s s " , " l o a d e r l o a d e r - s m " ) } , m ( t , i ) { S ( t , e , i ) } , p : t e , d ( t ) { t & & w ( e ) } } } f u n c t i o n H h ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = y ( " b u t t o n " ) , t = y ( " s p a n " ) , t . t e x t C o n t e n t = " R e s e t " , m ( t , " c l a s s " , " t x t " ) , m ( e , " t y p e " , " b u t t o n " ) , m ( e , " c l a s s " , " b t n b t n - t r a n s p a r e n t b t n - h i n t " ) , e . d i s a b l e d = n [ 3 ] } , m ( l , o ) { S ( l , e , o ) , b ( e , t ) , i | | ( s = J ( e , " c l i c k " , n [ 1 4 ] ) , i = ! 0 ) } , p ( l , o ) { o & 8 & & ( e . d i s a b l e d = l [ 3 ] ) } , d ( l ) { l & & w ( e ) , i = ! 1 , s ( ) } } } f u n c t i o n I A ( n ) { l e t e , t , i , s , l , o , r , a , u , f , d , p , h , g , _ , v ; c o n s t k = [ M A , C A ] , $ = [ ] ; f u n c t i o n C ( T , M ) { r e t u r n T [ 2 ] ? 0 : 1 } r e t u r n p = C ( n ) , h = $ [ p ] = k [ p ] ( n ) , { c ( ) { e = y ( " h e a d e r " ) , t = y ( " n a v " ) , i = y ( " d i v " ) , i . t e x t C o n t e n t = " S e t t i n g s " , s = D ( ) , l = y ( " d i v " ) , o = W ( n [ 7 ] ) , r = D ( ) , a = y ( " d i v " ) , u = y ( " f o r m " ) , f = y ( " d i v " ) , f . i n n e r H T M L = ` < p > B y d e f a u l t P o c k e t B a s e u s e s t h e l o c a l f i l e s y s t e m t o s t o r e u p l o a d e d f i l e s . < / p >
< p > If you have limited disk space , you could optionally connect to a S3 compatible storage . < / p > ` , d = D ( ) , h . c ( ) , m ( i , " c l a s s " , " b r e a d c r u m b - i t e m " ) , m ( l , " c l a s s " , " b r e a d c r u m b - i t e m " ) , m ( t , " c l a s s " , " b r e a d c r u m b s " ) , m ( e , " c l a s s " , " p a g e - h e a d e r " ) , m ( f , " c l a s s " , " c o n t e n t t x t - x l m - b - b a s e " ) , m ( u , " c l a s s " , " p a n e l " ) , m ( u , " a u t o c o m p l e t e " , " o f f " ) , m ( a , " c l a s s " , " w r a p p e r " ) } , m ( T , M ) { S ( T , e , M ) , b ( e , t ) , b ( t , i ) , b ( t , s ) , b ( t , l ) , b ( l , o ) , S ( T , r , M ) , S ( T , a , M ) , b ( a , u ) , b ( u , f ) , b ( u , d ) , $ [ p ] . m ( u , n u l l ) , g = ! 0 , _ | | ( v = J ( u , " s u b m i t " , t t ( n [ 1 6 ] ) ) , _ = ! 0 ) } , p ( T , M ) { ( ! g | | M & 1 2 8 ) & & s e ( o , T [ 7 ] ) ; l e t O = p ; p = C ( T ) , p = = = O ? $ [ p ] . p ( T , M ) : ( a e ( ) , L ( $ [ O ] , 1 , 1 , ( ) = > { $ [ O ] = n u l l } ) , u e ( ) , h = $ [ p ] , h ? h . p ( T , M ) : ( h = $ [ p ] = k [ p ] ( T ) , h . c ( ) ) , I ( h , 1 ) , h . m ( u , n u l l ) ) } , i ( T ) { g | | ( I ( h ) , g = ! 0 ) } , o ( T ) { L ( h ) , g = ! 1 } , d ( T ) { T & & w ( e ) , T & & w ( r ) , T & & w ( a ) , $ [ p ] . d ( ) , _ = ! 1 , v ( ) } } } f u n c t i o n L A ( n ) { l e t e , t , i , s ; r e t u r n e = n e w M i ( { } ) , i = n e w S n ( { p r o p s : { $ $ s l o t s : { d e f a u l t : [ I A ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) , t = D ( ) , H ( i . $ $ . f r a g m e n t ) } , m ( l , o ) { V ( e , l , o ) , S ( l , t , o ) , V ( i , l , o ) , s = ! 0 } , p ( l , [ o ] ) { c o n s t r = { } ; o & 5 2 4 5 4 3 & & ( r . $ $ s c o p e = { d i r t y : o , c t x : l } ) , i . $ s e t ( r ) } , i ( l ) { s | | ( I ( e . $ $ . f r a g m e n t , l ) , I ( i . $ $ . f r a g m e n t , l ) , s = ! 0 ) } , o ( l ) { L ( e . $ $ . f r a g m e n t , l ) , L ( i . $ $ . f r a g m e n t , l ) , s = ! 1 } , d ( l ) { z ( e , l ) , l & & w ( t ) , z ( i , l ) } } } c o n s t P A = " s 3 _ t e s t _ r e q u e s t " ; f u n c t i o n N A ( n , e , t ) { l e t i , s , l ; Z e ( n , M t , O = > t ( 7 , l = O ) ) , l n ( M t , l = " F i l e s s t o r a g e " , l ) ; l e t o = { } , r = { } , a = ! 1 , u = ! 1 , f = ! 1 , d = n u l l ; p ( ) ; a s y n c f u n c t i o n p ( ) { t ( 2 , a = ! 0 ) ; t r y { c o n s t O = a w a i t c e . s e t t i n g s . g e t A l l ( ) | | { } ; g ( O ) } c a t c h ( O ) { c e . e r r o r ( O ) } t ( 2 , a = ! 1 ) } a s y n c f u n c t i o n h ( ) { i f ( ! ( u | | ! s ) ) { t ( 3 , u = ! 0 ) ; t r y { c e . c a n c e l R e q u e s t ( P A ) ; c o n s t O = a w a i t c e . s e t t i n g s . u p d a t e ( U . f i l t e r R e d a c t e d P r o p s ( r ) ) ; t n ( { } ) , a w a i t g ( O ) , F a ( ) , d ? A y ( " S u c c e s s f u l l y s a v e d b u t f a i l e d t o e s t a b l i s h S 3 c o n n e c t i o n . " ) : H t ( " S u c c e s s f u l l y s a v e d f i l e s s t o r a g e s e t t i n g s . " ) } c a t c h ( O ) { c e . e r r o r ( O ) } t ( 3 , u = ! 1 ) } } a s y n c f u n c t i o n g ( O = { } ) { t ( 1 , r = { s 3 : ( O = = n u l l ? v o i d 0 : O . s 3 ) | | { } } ) , t ( 0 , o = J S O N . p a r s e ( J S O N . s t r i n g i f y ( r ) ) ) } a s y n c f u n c t i o n _ ( ) { t ( 1 , r = J S O N . p a r s e ( J S O N . s t r i n g i f y ( o | | { } ) ) ) } f u n c t i o n v ( O ) { n . $ $ . n o t _ e q u a l ( r . s 3 , O ) & & ( r . s 3 = O , t ( 1 , r ) ) } f u n c t i o n k ( O ) { f = O , t ( 4 , f ) } f u n c t i o n $ ( O ) { d = O , t ( 5 , d ) } c o n s t C = ( ) = > _ ( ) , T = ( ) = > h ( ) , M = ( ) = > h ( ) ; r e t u r n n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 1 & & t ( 1 0 , i = J S O N . s t r i n g i f y ( o ) ) , n . $ $ . d i r t y & 1 0 2 6 & & t ( 6 , s = i ! = J S O N . s t r i n g i f y ( r ) ) } , [ o , r , a , u , f , d , s , l , h , _ , i , v , k , $ , C , T , M ] } c l a s s F A e x t e n d s b e { c o n s t r u c t o r ( e ) { s u p e r ( ) , g e ( t h i s , e , N A , L A , h e , { } ) } } f u n c t i o n R A ( n ) { l e t e , t , i , s , l , o , r , a ; r e t u r n { c ( ) { e = y ( " i n p u t " ) , i = D ( ) , s = y ( " l a b e l " ) , l = W ( " E n a b l e " ) , m ( e , " t y p e " , " c h e c k b o x " ) , m ( e , " i d " , t = n [ 2 0 ] ) , m ( s , " f o r " , o = n [ 2 0 ] ) } , m ( u , f ) { S ( u , e , f ) , e . c h e c k e d = n [ 1 ] . e n a b l e d , S ( u , i , f ) , S ( u , s , f ) , b ( s , l ) , r | | ( a = J ( e , " c h a n g e " , n [ 1 1 ] ) , r = ! 0 ) } , p ( u , f ) { f & 1 0 4 8 5 7 6 & & t ! = = ( t = u [ 2 0 ] ) & & m ( e , " i d " , t ) , f & 2 & & ( e . c h e c k e d = u [ 1 ] . e n a b l e d ) , f & 1 0 4 8 5 7 6 & & o ! = = ( o = u [ 2 0 ] ) & & m ( s , " f o r " , o ) } , d ( u ) { u & & w ( e ) , u & & w ( i ) , u & & w ( s ) , r = ! 1 , a ( ) } } } f u n c t i o n q A ( n ) { l e t e , t , i , s , l , o , r , a , u ; r e t u r n { c ( ) { e = y ( " l a b e l " ) , t = W ( " C l i e n t I D " ) , s = D ( ) , l = y ( " i n p u t " ) , m ( e , " f o r " , i = n [ 2 0 ] ) , m ( l , " t y p e " , " t e x t " ) , m ( l , " i d " , o = n [ 2 0 ] ) , l . r e q u i r e d = r = n [ 1 ] . e n a b l e d } , m ( f , d ) { S ( f , e , d ) , b ( e , t ) , S ( f , s , d ) , S ( f , l , d ) , r e ( l , n [ 1 ] . c l i e n t I d ) , a | | ( u = J ( l , " i n p u t " , n [ 1 2 ] ) , a = ! 0 ) } , p ( f , d ) { d & 1 0 4 8 5 7 6 & & i ! = = ( i = f [ 2 0 ] ) & & m ( e , " f o r " , i ) , d & 1 0 4 8 5 7 6 & & o ! = = ( o = f [ 2 0 ] ) & & m ( l , " i d " , o ) , d & 2 & & r ! = = ( r = f [ 1 ] . e n a b l e d ) & & ( l . r e q u i r e d = r ) , d & 2 & & l . v a l u e ! = = f [ 1 ] . c l i e n t I d & & r e ( l , f [ 1 ] . c l i e n t I d ) } , d ( f ) { f & & w ( e ) , f & & w ( s ) , f & & w ( l ) , a = ! 1 , u ( ) } } } f u n c t i o n j A ( n ) { l e t e , t , i , s , l , o , r ; f u n c t i o n a ( f ) { n [ 1 3 ] ( f ) } l e t u = { i d : n [ 2 0 ] , r e q u i r e d : n [ 1 ] . e n a b l e d } ; r e t u r n n [ 1 ] . c l i e n t S e c r e t ! = = v o i d 0 & & ( u . v a l u e = n [ 1 ] . c l i e n t S e c r e t ) , l = n e w h u ( { p r o p s : u } ) , n e . p u s h ( ( ) = > d e ( l , " v a l u e " , a ) ) , { c ( ) { e = y ( " l a b e l " ) , t = W ( " C l i e n t s e c r e t " ) , s = D ( ) , H ( l . $ $ . f r a g m e n t ) , m ( e , " f o r " , i = n [ 2 0 ] ) } , m ( f , d ) { S ( f , e , d ) , b ( e , t ) , S ( f , s , d ) , V ( l , f , d ) , r = ! 0 } , p ( f , d ) { ( ! r | | d & 1 0 4 8 5 7 6 & & i ! = = ( i = f [ 2 0 ] ) ) & & m ( e , " f o r " , i ) ; c o n s t p = { } ; d & 1 0 4 8 5 7 6 & & ( p . i d = f [ 2 0 ] ) , d & 2 & & ( p . r e q u i r e d = f [ 1 ] . e n a b l e d ) , ! o & & d & 2 & & ( o = ! 0 , p . v a l u e = f [ 1 ] . c l i e n t S e c r e t , _ e ( ( ) = > o = ! 1 ) ) , l . $ s e t ( p ) } , i ( f ) { r | | ( I ( l . $ $ . f r a g m e n t , f ) , r = ! 0 ) } , o ( f ) { L ( l . $ $ . f r a g m e n t , f ) , r = ! 1 } , d ( f ) { f & & w ( e ) , f & & w ( s ) , z ( l , f ) } } } f u n c t i o n B h ( n ) { l e t e , t , i , s ; f u n c t i o n l ( a ) { n [ 1 4 ] ( a ) } v a r o = n [ 3 ] . o p t i o n s C o m p o n e n t ; f u n c t i o n r ( a ) { l e t u = { k e y : a [ 3 ] . k e y } ; r e t u r n a [ 1 ] ! = = v o i d 0 & & ( u . c o n f i g = a [ 1 ] ) , { p r o p s : u } } r e t u r n o & & ( t = R t ( o , r ( n ) ) , n e . p u s h ( ( ) = > d e ( t , " c o n f i g " , l ) ) ) , { c ( ) { e = y ( " d i v " ) , t & & H ( t . $ $ . f r a g m e n t ) , m ( e , " c l a s s " , " c o l - l g - 1 2 " ) } , m ( a , u ) { S ( a , e , u ) , t & & V ( t , e , n u l l ) , s = ! 0 } , p ( a , u ) { c o n s t f = { } ; i f ( u & 8 & & ( f . k e y = a [ 3 ] . k e y ) , ! i & & u & 2 & & ( i = ! 0 , f . c o n f i g = a [
another PocketBase environment . < / p > ` , t = D ( ) , i = y ( " d i v " ) , s = y ( " b u t t o n " ) , s . i n n e r H T M L = ' < s p a n c l a s s = " t x t " > C o p y < / s p a n > ' , l = D ( ) , H ( o . $ $ . f r a g m e n t ) , r = D ( ) , a = y ( " d i v " ) , u = y ( " d i v " ) , f = D ( ) , d = y ( " b u t t o n " ) , d . i n n e r H T M L = ` < i c l a s s = " r i - d o w n l o a d - l i n e " > < / i >
< span class = "txt" > Download as JSON < / s p a n > ` , m ( e , " c l a s s " , " c o n t e n t t x t - x l m - b - b a s e " ) , m ( s , " t y p e " , " b u t t o n " ) , m ( s , " c l a s s " , " b t n b t n - s m b t n - t r a n s p a r e n t f a d e c o p y - s c h e m a s v e l t e - j m 5 c 4 z " ) , m ( i , " t a b i n d e x " , " 0 " ) , m ( i , " c l a s s " , " e x p o r t - p r e v i e w s v e l t e - j m 5 c 4 z " ) , m ( u , " c l a s s " , " f l e x - f i l l " ) , m ( d , " t y p e " , " b u t t o n " ) , m ( d , " c l a s s " , " b t n b t n - e x p a n d e d " ) , m ( a , " c l a s s " , " f l e x m - t - b a s e " ) } , m ( _ , v ) { S ( _ , e , v ) , S ( _ , t , v ) , S ( _ , i , v ) , b ( i , s ) , b ( i , l ) , V ( o , i , n u l l ) , n [ 8 ] ( i ) , S ( _ , r , v ) , S ( _ , a , v ) , b ( a , u ) , b ( a , f ) , b ( a , d ) , p = ! 0 , h | | ( g = [ J ( s , " c l i c k " , n [ 7 ] ) , J ( i , " k e y d o w n " , n [ 9 ] ) , J ( d , " c l i c k " , n [ 1 0 ] ) ] , h = ! 0 ) } , p ( _ , v ) { c o n s t k = { } ; v & 4 & & ( k . c o n t e n t = _ [ 2 ] ) , o . $ s e t ( k ) } , i ( _ ) { p | | ( I ( o . $ $ . f r a g m e n t , _ ) , p = ! 0 ) } , o ( _ ) { L ( o . $ $ . f r a g m e n t , _ ) , p = ! 1 } , d ( _ ) { _ & & w ( e ) , _ & & w ( t ) , _ & & w ( i ) , z ( o ) , n [ 8 ] ( n u l l ) , _ & & w ( r ) , _ & & w ( a ) , h = ! 1 , D e ( g ) } } } f u n c t i o n f I ( n ) { l e t e ; r e t u r n { c ( ) { e = y ( " d i v " ) , m ( e , " c l a s s " , " l o a d e r " ) } , m ( t , i ) { S ( t , e , i ) } , p : t e , i : t e , o : t e , d ( t ) { t & & w ( e ) } } } f u n c t i o n c I ( n ) { l e t e , t , i , s , l , o , r , a , u , f , d , p ; c o n s t h = [ f I , u I ] , g = [ ] ; f u n c t i o n _ ( v , k ) { r e t u r n v [ 1 ] ? 0 : 1 } r e t u r n f = _ ( n ) , d = g [ f ] = h [ f ] ( n ) , { c ( ) { e = y ( " h e a d e r " ) , t = y ( " n a v " ) , i = y ( " d i v " ) , i . t e x t C o n t e n t = " S e t t i n g s " , s = D ( ) , l = y ( " d i v " ) , o = W ( n [ 3 ] ) , r = D ( ) , a = y ( " d i v " ) , u = y ( " d i v " ) , d . c ( ) , m ( i , " c l a s s " , " b r e a d c r u m b - i t e m " ) , m ( l , " c l a s s " , " b r e a d c r u m b - i t e m " ) , m ( t , " c l a s s " , " b r e a d c r u m b s " ) , m ( e , " c l a s s " , " p a g e - h e a d e r " ) , m ( u , " c l a s s " , " p a n e l " ) , m ( a , " c l a s s " , " w r a p p e r " ) } , m ( v , k ) { S ( v , e , k ) , b ( e , t ) , b ( t , i ) , b ( t , s ) , b ( t , l ) , b ( l , o ) , S ( v , r , k ) , S ( v , a , k ) , b ( a , u ) , g [ f ] . m ( u , n u l l ) , p = ! 0 } , p ( v , k ) { ( ! p | | k & 8 ) & & s e ( o , v [ 3 ] ) ; l e t $ = f ; f = _ ( v ) , f = = = $ ? g [ f ] . p ( v , k ) : ( a e ( ) , L ( g [ $ ] , 1 , 1 , ( ) = > { g [ $ ] = n u l l } ) , u e ( ) , d = g [ f ] , d ? d . p ( v , k ) : ( d = g [ f ] = h [ f ] ( v ) , d . c ( ) ) , I ( d , 1 ) , d . m ( u , n u l l ) ) } , i ( v ) { p | | ( I ( d ) , p = ! 0 ) } , o ( v ) { L ( d ) , p = ! 1 } , d ( v ) { v & & w ( e ) , v & & w ( r ) , v & & w ( a ) , g [ f ] . d ( ) } } } f u n c t i o n d I ( n ) { l e t e , t , i , s ; r e t u r n e = n e w M i ( { } ) , i = n e w S n ( { p r o p s : { $ $ s l o t s : { d e f a u l t : [ c I ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) , t = D ( ) , H ( i . $ $ . f r a g m e n t ) } , m ( l , o ) { V ( e , l , o ) , S ( l , t , o ) , V ( i , l , o ) , s = ! 0 } , p ( l , [ o ] ) { c o n s t r = { } ; o & 8 2 0 7 & & ( r . $ $ s c o p e = { d i r t y : o , c t x : l } ) , i . $ s e t ( r ) } , i ( l ) { s | | ( I ( e . $ $ . f r a g m e n t , l ) , I ( i . $ $ . f r a g m e n t , l ) , s = ! 0 ) } , o ( l ) { L ( e . $ $ . f r a g m e n t , l ) , L ( i . $ $ . f r a g m e n t , l ) , s = ! 1 } , d ( l ) { z ( e , l ) , l & & w ( t ) , z ( i , l ) } } } f u n c t i o n p I ( n , e , t ) { l e t i , s ; Z e ( n , M t , v = > t ( 3 , s = v ) ) , l n ( M t , s = " E x p o r t c o l l e c t i o n s " , s ) ; c o n s t l = " e x p o r t _ " + U . r a n d o m S t r i n g ( 5 ) ; l e t o , r = [ ] , a = ! 1 ; u ( ) ; a s y n c f u n c t i o n u ( ) { t ( 1 , a = ! 0 ) ; t r y { t ( 6 , r = a w a i t c e . c o l l e c t i o n s . g e t F u l l L i s t ( 1 0 0 , { $ c a n c e l K e y : l , s o r t : " u p d a t e d " } ) ) ; f o r ( l e t v o f r ) d e l e t e v . c r e a t e d , d e l e t e v . u p d a t e d } c a t c h ( v ) { c e . e r r o r ( v ) } t ( 1 , a = ! 1 ) } f u n c t i o n f ( ) { U . d o w n l o a d J s o n ( r , " p b _ s c h e m a " ) } f u n c t i o n d ( ) { U . c o p y T o C l i p b o a r d ( i ) , k o ( " T h e c o n f i g u r a t i o n w a s c o p i e d t o y o u r c l i p b o a r d ! " , 3 e 3 ) } c o n s t p = ( ) = > d ( ) ; f u n c t i o n h ( v ) { n e [ v ? " u n s h i f t " : " p u s h " ] ( ( ) = > { o = v , t ( 0 , o ) } ) } c o n s t g = v = > { i f ( v . c t r l K e y & & v . c o d e = = = " K e y A " ) { v . p r e v e n t D e f a u l t ( ) ; c o n s t k = w i n d o w . g e t S e l e c t i o n ( ) , $ = d o c u m e n t . c r e a t e R a n g e ( ) ; $ . s e l e c t N o d e C o n t e n t s ( o ) , k . r e m o v e A l l R a n g e s ( ) , k . a d d R a n g e ( $ ) } } , _ = ( ) = > f ( ) ; r e t u r n n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 6 4 & & t ( 2 , i = J S O N . s t r i n g i f y ( r , n u l l , 4 ) ) } , [ o , a , i , s , f , d , r , p , h , g , _ ] } c l a s s m I e x t e n d s b e { c o n s t r u c t o r ( e ) { s u p e r ( ) , g e ( t h i s , e , p I , d I , h e , { } ) } } f u n c t i o n n _ ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 1 4 ] = e [ t ] , i } f u n c t i o n i _ ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 1 7 ] = e [ t ] [ 0 ] , i [ 1 8 ] = e [ t ] [ 1 ] , i } f u n c t i o n s _ ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 1 4 ] = e [ t ] , i } f u n c t i o n l _ ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 1 7 ] = e [ t ] [ 0 ] , i [ 2 3 ] = e [ t ] [ 1 ] , i } f u n c t i o n o _ ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 1 4 ] = e [ t ] , i } f u n c t i o n r _ ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 1 7 ] = e [ t ] [ 0 ] , i [ 1 8 ] = e [ t ] [ 1 ] , i } f u n c t i o n a _ ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 3 0 ] = e [ t ] , i } f u n c t i o n h I ( n ) { l e t e , t , i , s , l = n [ 1 ] . n a m e + " " , o , r = n [ 9 ] & & u _ ( ) , a = n [ 0 ] . n a m e ! = = n [ 1 ] . n a m e & & f _ ( n ) ; r e t u r n { c ( ) { e = y ( " d i v " ) , r & & r . c ( ) , t = D ( ) , a & & a . c ( ) , i = D ( ) , s = y ( " s t r o n g " ) , o = W ( l ) , m ( s , " c l a s s " , " t x t " ) , m ( e , " c l a s s " , " i n l i n e - f l e x f l e g - g a p - 5 " ) } , m ( u , f ) { S ( u , e , f ) , r & & r . m ( e , n u l l ) , b ( e , t ) , a & & a . m ( e , n u l l ) , b ( e , i ) , b ( e , s ) , b ( s , o ) } , p ( u , f ) { u [ 9 ] ? r | | ( r = u _ ( ) , r . c ( ) , r . m ( e , t ) ) : r & & ( r . d ( 1 ) , r = n u l l ) , u [ 0 ] . n a m e ! = = u [ 1 ] . n a m e ? a ? a . p ( u , f ) : ( a = f _ ( u ) , a . c ( ) , a . m ( e , i ) ) : a & & ( a . d ( 1 ) , a = n u l l ) , f [ 0 ] & 2 & & l ! = = ( l = u [ 1 ] . n a m e + " " ) & & s e ( o , l ) } , d ( u ) { u & & w ( e ) , r & & r . d ( ) , a & & a . d ( ) } } } f u n c t i o n _ I ( n ) { v a r o ; l e t e , t , i , s = ( ( o = n [ 0 ] ) = = n u l l ? v o i d 0 : o . n a m e ) + " " , l ; r e t u r n { c ( ) { e = y ( " s p a n " ) , e . t e x t C o n t e n t = " D e l e t e d " , t = D ( ) , i = y ( " s t r o n g " ) , l = W ( s ) , m ( e , " c l a s s " , " l a b e l l a b e l - d a n g e r " ) } , m ( r , a ) { S ( r , e , a ) , S ( r , t , a ) , S ( r , i , a ) , b ( i , l ) } , p ( r , a ) { v a r u ; a [ 0 ] & 1 & & s ! = = ( s = ( ( u = r [ 0 ] ) = = n u l l ?
2023-05-17 21:41:42 +02:00
< th width = "10%" class = "svelte-lmkr38" > Old < / t h >
2023-05-24 22:18:44 +02:00
< th width = "10%" class = "svelte-lmkr38" > New < / t h > < / t r > ` , l = D ( ) , o = y ( " t b o d y " ) ; f o r ( l e t T = 0 ; T < g . l e n g t h ; T + = 1 ) g [ T ] . c ( ) ; r = D ( ) , _ & & _ . c ( ) , a = D ( ) ; f o r ( l e t T = 0 ; T < k . l e n g t h ; T + = 1 ) k [ T ] . c ( ) ; u = D ( ) ; f o r ( l e t T = 0 ; T < C . l e n g t h ; T + = 1 ) C [ T ] . c ( ) ; m ( e , " c l a s s " , " s e c t i o n - t i t l e " ) , m ( i , " c l a s s " , " t a b l e c o l l e c t i o n s - d i f f - t a b l e m - b - b a s e s v e l t e - l m k r 3 8 " ) } , m ( T , M ) { S ( T , e , M ) , p . m ( e , n u l l ) , S ( T , t , M ) , S ( T , i , M ) , b ( i , s ) , b ( i , l ) , b ( i , o ) ; f o r ( l e t O = 0 ; O < g . l e n g t h ; O + = 1 ) g [ O ] & & g [ O ] . m ( o , n u l l ) ; b ( o , r ) , _ & & _ . m ( o , n u l l ) , b ( o , a ) ; f o r ( l e t O = 0 ; O < k . l e n g t h ; O + = 1 ) k [ O ] & & k [ O ] . m ( o , n u l l ) ; b ( o , u ) ; f o r ( l e t O = 0 ; O < C . l e n g t h ; O + = 1 ) C [ O ] & & C [ O ] . m ( o , n u l l ) } , p ( T , M ) { i f ( d = = = ( d = f ( T ) ) & & p ? p . p ( T , M ) : ( p . d ( 1 ) , p = d ( T ) , p & & ( p . c ( ) , p . m ( e , n u l l ) ) ) , M [ 0 ] & 7 2 0 3 ) { h = T [ 1 1 ] ; l e t O ; f o r ( O = 0 ; O < h . l e n g t h ; O + = 1 ) { c o n s t E = a _ ( T , h , O ) ; g [ O ] ? g [ O ] . p ( E , M ) : ( g [ O ] = c _ ( E ) , g [ O ] . c ( ) , g [ O ] . m ( o , r ) ) } f o r ( ; O < g . l e n g t h ; O + = 1 ) g [ O ] . d ( 1 ) ; g . l e n g t h = h . l e n g t h } i f ( T [ 2 ] | | T [ 5 ] ? _ ? _ . p ( T , M ) : ( _ = d _ ( T ) , _ . c ( ) , _ . m ( o , a ) ) : _ & & ( _ . d ( 1 ) , _ = n u l l ) , M [ 0 ] & 4 2 4 8 ) { v = T [ 7 ] ; l e t O ; f o r ( O = 0 ; O < v . l e n g t h ; O + = 1 ) { c o n s t E = s _ ( T , v , O ) ; k [ O ] ? k [ O ] . p ( E , M ) : ( k [ O ] = g _ ( E ) , k [ O ] . c ( ) , k [ O ] . m ( o , u ) ) } f o r ( ; O < k . l e n g t h ; O + = 1 ) k [ O ] . d ( 1 ) ; k . l e n g t h = v . l e n g t h } i f ( M [ 0 ] & 4 3 5 2 ) { $ = T [ 8 ] ; l e t O ; f o r ( O = 0 ; O < $ . l e n g t h ; O + = 1 ) { c o n s t E = n _ ( T , $ , O ) ; C [ O ] ? C [ O ] . p ( E , M ) : ( C [ O ] = v _ ( E ) , C [ O ] . c ( ) , C [ O ] . m ( o , n u l l ) ) } f o r ( ; O < C . l e n g t h ; O + = 1 ) C [ O ] . d ( 1 ) ; C . l e n g t h = $ . l e n g t h } } , i : t e , o : t e , d ( T ) { T & & w ( e ) , p . d ( ) , T & & w ( t ) , T & & w ( i ) , h t ( g , T ) , _ & & _ . d ( ) , h t ( k , T ) , h t ( C , T ) } } } f u n c t i o n H n ( n , e ) { n = n | | [ ] ; f o r ( l e t t o f n ) i f ( t . i d = = e ) r e t u r n t ; r e t u r n n u l l } f u n c t i o n b n ( n , e ) { r e t u r n n = = = e ? ! 1 : J S O N . s t r i n g i f y ( n ) ! = = J S O N . s t r i n g i f y ( e ) } f u n c t i o n v I ( n , e , t ) { l e t i , s , l , { c o l l e c t i o n A : o = n e w k n } = e , { c o l l e c t i o n B : r = n e w k n } = e , { d e l e t e M i s s i n g : a = ! 1 } = e , u = [ ] , f = [ ] , d = [ ] , p = [ ] , h = [ ] ; c o n s t g = O b j e c t . k e y s ( n e w k n ( ) . $ e x p o r t ( ) ) . f i l t e r ( k = > ! [ " s c h e m a " , " c r e a t e d " , " u p d a t e d " ] . i n c l u d e s ( k ) ) ; f u n c t i o n _ ( ) { t ( 4 , f = A r r a y . i s A r r a y ( r = = n u l l ? v o i d 0 : r . s c h e m a ) ? r = = n u l l ? v o i d 0 : r . s c h e m a . c o n c a t ( ) : [ ] ) , a | | t ( 4 , f = f . c o n c a t ( u . f i l t e r ( k = > ! f . f i n d ( $ = > k . i d = = $ . i d ) ) ) ) } f u n c t i o n v ( k ) { r e t u r n t y p e o f k > " u " ? " " : U . i s O b j e c t ( k ) ? J S O N . s t r i n g i f y ( k , n u l l , 4 ) : k } r e t u r n n . $ $ s e t = k = > { " c o l l e c t i o n A " i n k & & t ( 0 , o = k . c o l l e c t i o n A ) , " c o l l e c t i o n B " i n k & & t ( 1 , r = k . c o l l e c t i o n B ) , " d e l e t e M i s s i n g " i n k & & t ( 2 , a = k . d e l e t e M i s s i n g ) } , n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y [ 0 ] & 2 & & t ( 5 , i = ! ( r ! = n u l l & & r . i d ) & & ! ( r ! = n u l l & & r . n a m e ) ) , n . $ $ . d i r t y [ 0 ] & 3 3 & & t ( 1 0 , s = ! i & & ! ( o ! = n u l l & & o . i d ) ) , n . $ $ . d i r t y [ 0 ] & 1 & & t ( 3 , u = A r r a y . i s A r r a y ( o = = n u l l ? v o i d 0 : o . s c h e m a ) ? o = = n u l l ? v o i d 0 : o . s c h e m a . c o n c a t ( ) : [ ] ) , n . $ $ . d i r t y [ 0 ] & 7 & & ( t y p e o f ( o = = n u l l ? v o i d 0 : o . s c h e m a ) < " u " | | t y p e o f ( r = = n u l l ? v o i d 0 : r . s c h e m a ) < " u " | | t y p e o f a < " u " ) & & _ ( ) , n . $ $ . d i r t y [ 0 ] & 2 4 & & t ( 6 , d = u . f i l t e r ( k = > ! f . f i n d ( $ = > k . i d = = $ . i d ) ) ) , n . $ $ . d i r t y [ 0 ] & 2 4 & & t ( 7 , p = f . f i l t e r ( k = > u . f i n d ( $ = > $ . i d = = k . i d ) ) ) , n . $ $ . d i r t y [ 0 ] & 2 4 & & t ( 8 , h = f . f i l t e r ( k = > ! u . f i n d ( $ = > $ . i d = = k . i d ) ) ) , n . $ $ . d i r t y [ 0 ] & 7 & & t ( 9 , l = U . h a s C o l l e c t i o n C h a n g e s ( o , r , a ) ) } , [ o , r , a , u , f , i , d , p , h , l , s , g , v ] } c l a s s y I e x t e n d s b e { c o n s t r u c t o r ( e ) { s u p e r ( ) , g e ( t h i s , e , v I , b I , h e , { c o l l e c t i o n A : 0 , c o l l e c t i o n B : 1 , d e l e t e M i s s i n g : 2 } , n u l l , [ - 1 , - 1 ] ) } } f u n c t i o n y _ ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 1 7 ] = e [ t ] , i } f u n c t i o n k _ ( n ) { l e t e , t ; r e t u r n e = n e w y I ( { p r o p s : { c o l l e c t i o n A : n [ 1 7 ] . o l d , c o l l e c t i o n B : n [ 1 7 ] . n e w , d e l e t e M i s s i n g : n [ 3 ] } } ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( i , s ) { V ( e , i , s ) , t = ! 0 } , p ( i , s ) { c o n s t l = { } ; s & 4 & & ( l . c o l l e c t i o n A = i [ 1 7 ] . o l d ) , s & 4 & & ( l . c o l l e c t i o n B = i [ 1 7 ] . n e w ) , s & 8 & & ( l . d e l e t e M i s s i n g = i [ 3 ] ) , e . $ s e t ( l ) } , i ( i ) { t | | ( I ( e . $ $ . f r a g m e n t , i ) , t = ! 0 ) } , o ( i ) { L ( e . $ $ . f r a g m e n t , i ) , t = ! 1 } , d ( i ) { z ( e , i ) } } } f u n c t i o n k I ( n ) { l e t e , t , i = n [ 2 ] , s = [ ] ; f o r ( l e t o = 0 ; o < i . l e n g t h ; o + = 1 ) s [ o ] = k _ ( y _ ( n , i , o ) ) ; c o n s t l = o = > L ( s [ o ] , 1 , 1 , ( ) = > { s [ o ] = n u l l } ) ; r e t u r n { c ( ) { f o r ( l e t o = 0 ; o < s . l e n g t h ; o + = 1 ) s [ o ] . c ( ) ; e = k e ( ) } , m ( o , r ) { f o r ( l e t a = 0 ; a < s . l e n g t h ; a + = 1 ) s [ a ] & & s [ a ] . m ( o , r ) ; S ( o , e , r ) , t = ! 0 } , p ( o , r ) { i f ( r & 1 2 ) { i = o [ 2 ] ; l e t a ; f o r ( a = 0 ; a < i . l e n g t h ; a + = 1 ) { c o n s t u = y _ ( o , i , a ) ; s [ a ] ? ( s [ a ] . p ( u , r ) , I ( s [ a ] , 1 ) ) : ( s [ a ] = k _ ( u ) , s [ a ] . c ( ) , I ( s [ a ] , 1 ) , s [ a ] . m ( e . p a r e n t N o d e , e ) ) } f o r ( a e ( ) , a = i . l e n g t h ; a < s . l e n g t h ; a + = 1 ) l ( a ) ; u e ( ) } } , i ( o ) { i f ( ! t ) { f o r ( l e t r = 0 ; r < i . l e n g t h ; r + = 1 ) I ( s [ r ] ) ; t = ! 0 } } , o ( o ) { s = s . f i l t e r ( B o o l e a n ) ; f o r ( l e t r = 0 ; r < s . l e n g t h ; r + = 1 ) L ( s [ r ] ) ; t = ! 1 } , d ( o ) { h t ( s , o ) , o & & w ( e ) } } } f u n c t i o n w I ( n ) { l e t e ; r e t u r n { c ( ) { e = y ( " h 4 " ) , e . t e x t C o n t e n t = " S i d e - b y - s i d e d i f f " , m ( e , " c l a s s " , " c e n t e r t x t - b r e a k " ) } , m ( t , i ) { S ( t , e , i ) } , p : t e , d ( t ) { t & & w ( e ) } } } f u n c t i o n S I ( n ) { l e t e , t , i , s , l , o , r ; r e t u r n { c ( ) { e = y ( " b u t t o n " ) , t = W ( " C l o s e " ) , i = D ( ) , s = y ( " b u t t o n " ) , l = y ( " s p a n " ) , l . t e x t C o n t e n t = " C o n f i r m a n d i m p o r t " , m ( e , " t y p e " , " b u t t o n " ) , m ( e , " c l a s s " , " b t n b t
2023-05-17 21:41:42 +02:00
- $ { T . join ( `
2023-05-24 22:18:44 +02:00
- ` )} ` , ( ) => { g ( ) } ) : g ( ) } async function g ( ) { if ( ! u ) { t ( 4 , u = ! 0 ) ; try { await ce . collections . import ( o , a ) , Ht ( "Successfully imported collections configuration." ) , i ( "submit" ) } catch ( T ) { ce . error ( T ) } t ( 4 , u = ! 1 ) , d ( ) } } const _ = ( ) => h ( ) , v = ( ) => ! u ; function k ( T ) { ne [ T ? "unshift" : "push" ] ( ( ) => { s = T , t ( 1 , s ) } ) } function $ ( T ) { Fe . call ( this , n , T ) } function C ( T ) { Fe . call ( this , n , T ) } return n . $$ . update = ( ) => { n . $$ . dirty & 384 && Array . isArray ( l ) && Array . isArray ( o ) && p ( ) } , [ d , s , r , a , u , h , f , l , o , _ , v , k , $ , C ] } class CI extends be { constructor ( e ) { super ( ) , ge ( this , e , TI , $I , he , { show : 6 , hide : 0 } ) } get show ( ) { return this . $$ . ctx [ 6 ] } get hide ( ) { return this . $$ . ctx [ 0 ] } } function w _ ( n , e , t ) { const i = n . slice ( ) ; return i [ 32 ] = e [ t ] , i } function S _ ( n , e , t ) { const i = n . slice ( ) ; return i [ 35 ] = e [ t ] , i } function $ _ ( n , e , t ) { const i = n . slice ( ) ; return i [ 32 ] = e [ t ] , i } function MI ( n ) { let e , t , i , s , l , o , r , a , u , f , d , p , h , g , _ , v , k , $ , C , T , M , O , E ; a = new pe ( { props : { class : "form-field " + ( n [ 6 ] ? "" : "field-error" ) , name : "collections" , $$slots : { default : [ EI , ( { uniqueId : q } ) => ( { 40 : q } ) , ( { uniqueId : q } ) => [ 0 , q ? 512 : 0 ] ] } , $$scope : { ctx : n } } } ) ; let A = ! 1 , P = n [ 6 ] && n [ 1 ] . length && ! n [ 7 ] && C _ ( ) , N = n [ 6 ] && n [ 1 ] . length && n [ 7 ] && M _ ( n ) , F = n [ 13 ] . length && q _ ( n ) , R = ! ! n [ 0 ] && j _ ( n ) ; return { c ( ) { e = y ( "input" ) , t = D ( ) , i = y ( "div" ) , s = y ( "p" ) , l = W ( ` Paste below the collections configuration you want to import or
` ),o=y("button"),o.innerHTML='<span class="txt">Load from JSON file</span>',r=D(),H(a. $ $ .fragment),u=D(),f=D(),P&&P.c(),d=D(),N&&N.c(),p=D(),F&&F.c(),h=D(),g=y("div"),R&&R.c(),_=D(),v=y("div"),k=D(), $ =y("button"),C=y("span"),C.textContent="Review",m(e,"type","file"),m(e,"class","hidden"),m(e,"accept",".json"),m(o,"class","btn btn-outline btn-sm m-l-5"),x(o,"btn-loading",n[12]),m(i,"class","content txt-xl m-b-base"),m(v,"class","flex-fill"),m(C,"class","txt"),m( $ ,"type","button"),m( $ ,"class","btn btn-expanded btn-warning m-l-auto"), $ .disabled=T=!n[14],m(g,"class","flex m-t-base")},m(q,j){S(q,e,j),n[19](e),S(q,t,j),S(q,i,j),b(i,s),b(s,l),b(s,o),S(q,r,j),V(a,q,j),S(q,u,j),S(q,f,j),P&&P.m(q,j),S(q,d,j),N&&N.m(q,j),S(q,p,j),F&&F.m(q,j),S(q,h,j),S(q,g,j),R&&R.m(g,null),b(g,_),b(g,v),b(g,k),b(g, $ ),b( $ ,C),M=!0,O||(E=[J(e,"change",n[20]),J(o,"click",n[21]),J( $ ,"click",n[26])],O=!0)},p(q,j){(!M||j[0]&4096)&&x(o,"btn-loading",q[12]);const B={};j[0]&64&&(B.class="form-field "+(q[6]?"":"field-error")),j[0]&65|j[1]&1536&&(B. $ $ scope={dirty:j,ctx:q}),a. $ set(B),q[6]&&q[1].length&&!q[7]?P||(P=C_(),P.c(),P.m(d.parentNode,d)):P&&(P.d(1),P=null),q[6]&&q[1].length&&q[7]?N?N.p(q,j):(N=M_(q),N.c(),N.m(p.parentNode,p)):N&&(N.d(1),N=null),q[13].length?F?F.p(q,j):(F=q_(q),F.c(),F.m(h.parentNode,h)):F&&(F.d(1),F=null),q[0]?R?R.p(q,j):(R=j_(q),R.c(),R.m(g,_)):R&&(R.d(1),R=null),(!M||j[0]&16384&&T!==(T=!q[14]))&&( $ .disabled=T)},i(q){M||(I(a. $ $ .fragment,q),I(A),M=!0)},o(q){L(a. $ $ .fragment,q),L(A),M=!1},d(q){q&&w(e),n[19](null),q&&w(t),q&&w(i),q&&w(r),z(a,q),q&&w(u),q&&w(f),P&&P.d(q),q&&w(d),N&&N.d(q),q&&w(p),F&&F.d(q),q&&w(h),q&&w(g),R&&R.d(),O=!1,De(E)}}}function OI(n){let e;return{c(){e=y("div"),m(e,"class","loader")},m(t,i){S(t,e,i)},p:te,i:te,o:te,d(t){t&&w(e)}}}function T_(n){let e;return{c(){e=y("div"),e.textContent="Invalid collections configuration.",m(e,"class","help-block help-block-error")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function EI(n){let e,t,i,s,l,o,r,a,u,f,d=!!n[0]&&!n[6]&&T_();return{c(){e=y("label"),t=W("Collections"),s=D(),l=y("textarea"),r=D(),d&&d.c(),a=ke(),m(e,"for",i=n[40]),m(e,"class","p-b-10"),m(l,"id",o=n[40]),m(l,"class","code"),m(l,"spellcheck","false"),m(l,"rows","15"),l.required=!0},m(p,h){S(p,e,h),b(e,t),S(p,s,h),S(p,l,h),re(l,n[0]),S(p,r,h),d&&d.m(p,h),S(p,a,h),u||(f=J(l,"input",n[22]),u=!0)},p(p,h){h[1]&512&&i!==(i=p[40])&&m(e,"for",i),h[1]&512&&o!==(o=p[40])&&m(l,"id",o),h[0]&1&&re(l,p[0]),p[0]&&!p[6]?d||(d=T_(),d.c(),d.m(a.parentNode,a)):d&&(d.d(1),d=null)},d(p){p&&w(e),p&&w(s),p&&w(l),p&&w(r),d&&d.d(p),p&&w(a),u=!1,f()}}}function C_(n){let e;return{c(){e=y("div"),e.innerHTML= ` < div class = "icon" > < i class = "ri-information-line" > < / i > < / d i v >
< div class = "content" > < string > Your collections configuration is already up - to - date ! < / s t r i n g > < / d i v > ` , m ( e , " c l a s s " , " a l e r t a l e r t - i n f o " ) } , m ( t , i ) { S ( t , e , i ) } , d ( t ) { t & & w ( e ) } } } f u n c t i o n M _ ( n ) { l e t e , t , i , s , l , o = n [ 9 ] . l e n g t h & & O _ ( n ) , r = n [ 4 ] . l e n g t h & & A _ ( n ) , a = n [ 8 ] . l e n g t h & & N _ ( n ) ; r e t u r n { c ( ) { e = y ( " h 5 " ) , e . t e x t C o n t e n t = " D e t e c t e d c h a n g e s " , t = D ( ) , i = y ( " d i v " ) , o & & o . c ( ) , s = D ( ) , r & & r . c ( ) , l = D ( ) , a & & a . c ( ) , m ( e , " c l a s s " , " s e c t i o n - t i t l e " ) , m ( i , " c l a s s " , " l i s t " ) } , m ( u , f ) { S ( u , e , f ) , S ( u , t , f ) , S ( u , i , f ) , o & & o . m ( i , n u l l ) , b ( i , s ) , r & & r . m ( i , n u l l ) , b ( i , l ) , a & & a . m ( i , n u l l ) } , p ( u , f ) { u [ 9 ] . l e n g t h ? o ? o . p ( u , f ) : ( o = O _ ( u ) , o . c ( ) , o . m ( i , s ) ) : o & & ( o . d ( 1 ) , o = n u l l ) , u [ 4 ] . l e n g t h ? r ? r . p ( u , f ) : ( r = A _ ( u ) , r . c ( ) , r . m ( i , l ) ) : r & & ( r . d ( 1 ) , r = n u l l ) , u [ 8 ] . l e n g t h ? a ? a . p ( u , f ) : ( a = N _ ( u ) , a . c ( ) , a . m ( i , n u l l ) ) : a & & ( a . d ( 1 ) , a = n u l l ) } , d ( u ) { u & & w ( e ) , u & & w ( t ) , u & & w ( i ) , o & & o . d ( ) , r & & r . d ( ) , a & & a . d ( ) } } } f u n c t i o n O _ ( n ) { l e t e = [ ] , t = n e w M a p , i , s = n [ 9 ] ; c o n s t l = o = > o [ 3 2 ] . i d ; f o r ( l e t o = 0 ; o < s . l e n g t h ; o + = 1 ) { l e t r = $ _ ( n , s , o ) , a = l ( r ) ; t . s e t ( a , e [ o ] = D _ ( a , r ) ) } r e t u r n { c ( ) { f o r ( l e t o = 0 ; o < e . l e n g t h ; o + = 1 ) e [ o ] . c ( ) ; i = k e ( ) } , m ( o , r ) { f o r ( l e t a = 0 ; a < e . l e n g t h ; a + = 1 ) e [ a ] & & e [ a ] . m ( o , r ) ; S ( o , i , r ) } , p ( o , r ) { r [ 0 ] & 5 1 2 & & ( s = o [ 9 ] , e = v t ( e , r , l , 1 , o , s , t , i . p a r e n t N o d e , u s , D _ , i , $ _ ) ) } , d ( o ) { f o r ( l e t r = 0 ; r < e . l e n g t h ; r + = 1 ) e [ r ] . d ( o ) ; o & & w ( i ) } } } f u n c t i o n E _ ( n ) { l e t e , t , i = n [ 3 2 ] . i d + " " , s , l ; r e t u r n { c ( ) { e = y ( " s m a l l " ) , t = W ( " ( " ) , s = W ( i ) , l = W ( " ) " ) , m ( e , " c l a s s " , " t x t - h i n t " ) } , m ( o , r ) { S ( o , e , r ) , b ( e , t ) , b ( e , s ) , b ( e , l ) } , p ( o , r ) { r [ 0 ] & 5 1 2 & & i ! = = ( i = o [ 3 2 ] . i d + " " ) & & s e ( s , i ) } , d ( o ) { o & & w ( e ) } } } f u n c t i o n D _ ( n , e ) { l e t t , i , s , l , o = e [ 3 2 ] . n a m e + " " , r , a , u , f = e [ 3 2 ] . i d & & E _ ( e ) ; r e t u r n { k e y : n , f i r s t : n u l l , c ( ) { t = y ( " d i v " ) , i = y ( " s p a n " ) , i . t e x t C o n t e n t = " D e l e t e d " , s = D ( ) , l = y ( " s t r o n g " ) , r = W ( o ) , a = D ( ) , f & & f . c ( ) , u = D ( ) , m ( i , " c l a s s " , " l a b e l l a b e l - d a n g e r l i s t - l a b e l s v e l t e - 1 j x 2 0 f l " ) , m ( t , " c l a s s " , " l i s t - i t e m " ) , t h i s . f i r s t = t } , m ( d , p ) { S ( d , t , p ) , b ( t , i ) , b ( t , s ) , b ( t , l ) , b ( l , r ) , b ( t , a ) , f & & f . m ( t , n u l l ) , b ( t , u ) } , p ( d , p ) { e = d , p [ 0 ] & 5 1 2 & & o ! = = ( o = e [ 3 2 ] . n a m e + " " ) & & s e ( r , o ) , e [ 3 2 ] . i d ? f ? f . p ( e , p ) : ( f = E _ ( e ) , f . c ( ) , f . m ( t , u ) ) : f & & ( f . d ( 1 ) , f = n u l l ) } , d ( d ) { d & & w ( t ) , f & & f . d ( ) } } } f u n c t i o n A _ ( n ) { l e t e = [ ] , t = n e w M a p , i , s = n [ 4 ] ; c o n s t l = o = > o [ 3 5 ] . o l d . i d + o [ 3 5 ] . n e w . i d ; f o r ( l e t o = 0 ; o < s . l e n g t h ; o + = 1 ) { l e t r = S _ ( n , s , o ) , a = l ( r ) ; t . s e t ( a , e [ o ] = P _ ( a , r ) ) } r e t u r n { c ( ) { f o r ( l e t o = 0 ; o < e . l e n g t h ; o + = 1 ) e [ o ] . c ( ) ; i = k e ( ) } , m ( o , r ) { f o r ( l e t a = 0 ; a < e . l e n g t h ; a + = 1 ) e [ a ] & & e [ a ] . m ( o , r ) ; S ( o , i , r ) } , p ( o , r ) { r [ 0 ] & 1 6 & & ( s = o [ 4 ] , e = v t ( e , r , l , 1 , o , s , t , i . p a r e n t N o d e , u s , P _ , i , S _ ) ) } , d ( o ) { f o r ( l e t r = 0 ; r < e . l e n g t h ; r + = 1 ) e [ r ] . d ( o ) ; o & & w ( i ) } } } f u n c t i o n I _ ( n ) { l e t e , t = n [ 3 5 ] . o l d . n a m e + " " , i , s , l ; r e t u r n { c ( ) { e = y ( " s t r o n g " ) , i = W ( t ) , s = D ( ) , l = y ( " i " ) , m ( e , " c l a s s " , " t x t - s t r i k e t h r o u g h t x t - h i n t " ) , m ( l , " c l a s s " , " r i - a r r o w - r i g h t - l i n e t x t - s m " ) } , m ( o , r ) { S ( o , e , r ) , b ( e , i ) , S ( o , s , r ) , S ( o , l , r ) } , p ( o , r ) { r [ 0 ] & 1 6 & & t ! = = ( t = o [ 3 5 ] . o l d . n a m e + " " ) & & s e ( i , t ) } , d ( o ) { o & & w ( e ) , o & & w ( s ) , o & & w ( l ) } } } f u n c t i o n L _ ( n ) { l e t e , t , i = n [ 3 5 ] . n e w . i d + " " , s , l ; r e t u r n { c ( ) { e = y ( " s m a l l " ) , t = W ( " ( " ) , s = W ( i ) , l = W ( " ) " ) , m ( e , " c l a s s " , " t x t - h i n t " ) } , m ( o , r ) { S ( o , e , r ) , b ( e , t ) , b ( e , s ) , b ( e , l ) } , p ( o , r ) { r [ 0 ] & 1 6 & & i ! = = ( i = o [ 3 5 ] . n e w . i d + " " ) & & s e ( s , i ) } , d ( o ) { o & & w ( e ) } } } f u n c t i o n P _ ( n , e ) { l e t t , i , s , l , o , r , a = e [ 3 5 ] . n e w . n a m e + " " , u , f , d , p = e [ 3 5 ] . o l d . n a m e ! = = e [ 3 5 ] . n e w . n a m e & & I _ ( e ) , h = e [ 3 5 ] . n e w . i d & & L _ ( e ) ; r e t u r n { k e y : n , f i r s t : n u l l , c ( ) { t = y ( " d i v " ) , i = y ( " s p a n " ) , i . t e x t C o n t e n t = " C h a n g e d " , s = D ( ) , l = y ( " d i v " ) , p & & p . c ( ) , o = D ( ) , r = y ( " s t r o n g " ) , u = W ( a ) , f = D ( ) , h & & h . c ( ) , d = D ( ) , m ( i , " c l a s s " , " l a b e l l a b e l - w a r n i n g l i s t - l a b e l s v e l t e - 1 j x 2 0 f l " ) , m ( l , " c l a s s " , " i n l i n e - f l e x f l e x - g a p - 5 " ) , m ( t , " c l a s s " , " l i s t - i t e m " ) , t h i s . f i r s t = t } , m ( g , _ ) { S ( g , t , _ ) , b ( t , i ) , b ( t , s ) , b ( t , l ) , p & & p . m ( l , n u l l ) , b ( l , o ) , b ( l , r ) , b ( r , u ) , b ( l , f ) , h & & h . m ( l , n u l l ) , b ( t , d ) } , p ( g , _ ) { e = g , e [ 3 5 ] . o l d . n a m e ! = = e [ 3 5 ] . n e w . n a m e ? p ? p . p ( e , _ ) : ( p = I _ ( e ) , p . c ( ) , p . m ( l , o ) ) : p & & ( p . d ( 1 ) , p = n u l l ) , _ [ 0 ] & 1 6 & & a ! = = ( a = e [ 3 5 ] . n e w . n a m e + " " ) & & s e ( u , a ) , e [ 3 5 ] . n e w . i d ? h ? h . p ( e , _ ) : ( h = L _ ( e ) , h . c ( ) , h . m ( l , n u l l ) ) : h & & ( h . d ( 1 ) , h = n u l l ) } , d ( g ) { g & & w ( t ) , p & & p . d ( ) , h & & h . d ( ) } } } f u n c t i o n N _ ( n ) { l e t e = [ ] , t = n e w M a p , i , s = n [ 8 ] ; c o n s t l = o = > o [ 3 2 ] . i d ; f o r ( l e t o = 0 ; o < s . l e n g t h ; o + = 1 ) { l e t r = w _ ( n , s , o ) , a = l ( r ) ; t . s e t ( a , e [ o ] = R _ ( a , r ) ) } r e t u r n { c ( ) { f o r ( l e t o = 0 ; o < e . l e n g t h ; o + = 1 ) e [ o ] . c ( ) ; i = k e ( ) } , m ( o , r ) { f o r ( l e t a = 0 ; a < e . l e n g t h ; a + = 1 ) e [ a ] & & e [ a ] . m ( o , r ) ; S ( o , i , r ) } , p ( o , r ) { r [ 0 ] & 2 5 6 & & ( s = o [ 8 ] , e = v t ( e , r , l , 1 , o , s , t , i . p a r e n t N o d e , u s , R _ , i , w _ ) ) } , d ( o ) { f o r ( l e t r = 0 ; r < e . l e n g t h ; r + = 1 ) e [ r ] . d ( o ) ; o & & w ( i ) } } } f u n c t i o n F _ ( n ) { l e t e , t , i = n [ 3 2 ] . i d + " " , s , l ; r e t u r n { c ( ) { e = y ( " s m a l l " ) , t = W ( " ( " ) , s = W ( i ) , l = W ( " ) " ) , m ( e , " c l a s s " , " t x t - h i n t " ) } , m ( o , r ) { S ( o , e , r
2023-05-17 21:41:42 +02:00
imported with different IDs . You can replace them in the import if you want
2023-05-24 22:18:44 +02:00
to . < / s t r i n g > ` , l = D ( ) , o = y ( " b u t t o n " ) , o . i n n e r H T M L = ' < s p a n c l a s s = " t x t " > R e p l a c e w i t h o r i g i n a l i d s < / s p a n > ' , m ( t , " c l a s s " , " i c o n " ) , m ( s , " c l a s s " , " c o n t e n t " ) , m ( o , " t y p e " , " b u t t o n " ) , m ( o , " c l a s s " , " b t n b t n - w a r n i n g b t n - s m b t n - o u t l i n e " ) , m ( e , " c l a s s " , " a l e r t a l e r t - w a r n i n g m - t - b a s e " ) } , m ( u , f ) { S ( u , e , f ) , b ( e , t ) , b ( e , i ) , b ( e , s ) , b ( e , l ) , b ( e , o ) , r | | ( a = J ( o , " c l i c k " , n [ 2 4 ] ) , r = ! 0 ) } , p : t e , d ( u ) { u & & w ( e ) , r = ! 1 , a ( ) } } } f u n c t i o n j _ ( n ) { l e t e , t , i ; r e t u r n { c ( ) { e = y ( " b u t t o n " ) , e . i n n e r H T M L = ' < s p a n c l a s s = " t x t " > C l e a r < / s p a n > ' , m ( e , " t y p e " , " b u t t o n " ) , m ( e , " c l a s s " , " b t n b t n - t r a n s p a r e n t l i n k - h i n t " ) } , m ( s , l ) { S ( s , e , l ) , t | | ( i = J ( e , " c l i c k " , n [ 2 5 ] ) , t = ! 0 ) } , p : t e , d ( s ) { s & & w ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n D I ( n ) { l e t e , t , i , s , l , o , r , a , u , f , d , p ; c o n s t h = [ O I , M I ] , g = [ ] ; f u n c t i o n _ ( v , k ) { r e t u r n v [ 5 ] ? 0 : 1 } r e t u r n f = _ ( n ) , d = g [ f ] = h [ f ] ( n ) , { c ( ) { e = y ( " h e a d e r " ) , t = y ( " n a v " ) , i = y ( " d i v " ) , i . t e x t C o n t e n t = " S e t t i n g s " , s = D ( ) , l = y ( " d i v " ) , o = W ( n [ 1 5 ] ) , r = D ( ) , a = y ( " d i v " ) , u = y ( " d i v " ) , d . c ( ) , m ( i , " c l a s s " , " b r e a d c r u m b - i t e m " ) , m ( l , " c l a s s " , " b r e a d c r u m b - i t e m " ) , m ( t , " c l a s s " , " b r e a d c r u m b s " ) , m ( e , " c l a s s " , " p a g e - h e a d e r " ) , m ( u , " c l a s s " , " p a n e l " ) , m ( a , " c l a s s " , " w r a p p e r " ) } , m ( v , k ) { S ( v , e , k ) , b ( e , t ) , b ( t , i ) , b ( t , s ) , b ( t , l ) , b ( l , o ) , S ( v , r , k ) , S ( v , a , k ) , b ( a , u ) , g [ f ] . m ( u , n u l l ) , p = ! 0 } , p ( v , k ) { ( ! p | | k [ 0 ] & 3 2 7 6 8 ) & & s e ( o , v [ 1 5 ] ) ; l e t $ = f ; f = _ ( v ) , f = = = $ ? g [ f ] . p ( v , k ) : ( a e ( ) , L ( g [ $ ] , 1 , 1 , ( ) = > { g [ $ ] = n u l l } ) , u e ( ) , d = g [ f ] , d ? d . p ( v , k ) : ( d = g [ f ] = h [ f ] ( v ) , d . c ( ) ) , I ( d , 1 ) , d . m ( u , n u l l ) ) } , i ( v ) { p | | ( I ( d ) , p = ! 0 ) } , o ( v ) { L ( d ) , p = ! 1 } , d ( v ) { v & & w ( e ) , v & & w ( r ) , v & & w ( a ) , g [ f ] . d ( ) } } } f u n c t i o n A I ( n ) { l e t e , t , i , s , l , o ; e = n e w M i ( { } ) , i = n e w S n ( { p r o p s : { $ $ s l o t s : { d e f a u l t : [ D I ] } , $ $ s c o p e : { c t x : n } } } ) ; l e t r = { } ; r e t u r n l = n e w C I ( { p r o p s : r } ) , n [ 2 7 ] ( l ) , l . $ o n ( " s u b m i t " , n [ 2 8 ] ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) , t = D ( ) , H ( i . $ $ . f r a g m e n t ) , s = D ( ) , H ( l . $ $ . f r a g m e n t ) } , m ( a , u ) { V ( e , a , u ) , S ( a , t , u ) , V ( i , a , u ) , S ( a , s , u ) , V ( l , a , u ) , o = ! 0 } , p ( a , u ) { c o n s t f = { } ; u [ 0 ] & 6 5 5 3 5 | u [ 1 ] & 1 0 2 4 & & ( f . $ $ s c o p e = { d i r t y : u , c t x : a } ) , i . $ s e t ( f ) ; c o n s t d = { } ; l . $ s e t ( d ) } , i ( a ) { o | | ( I ( e . $ $ . f r a g m e n t , a ) , I ( i . $ $ . f r a g m e n t , a ) , I ( l . $ $ . f r a g m e n t , a ) , o = ! 0 ) } , o ( a ) { L ( e . $ $ . f r a g m e n t , a ) , L ( i . $ $ . f r a g m e n t , a ) , L ( l . $ $ . f r a g m e n t , a ) , o = ! 1 } , d ( a ) { z ( e , a ) , a & & w ( t ) , z ( i , a ) , a & & w ( s ) , n [ 2 7 ] ( n u l l ) , z ( l , a ) } } } f u n c t i o n I I ( n , e , t ) { l e t i , s , l , o , r , a , u ; Z e ( n , M t , G = > t ( 1 5 , u = G ) ) , l n ( M t , u = " I m p o r t c o l l e c t i o n s " , u ) ; l e t f , d , p = " " , h = ! 1 , g = [ ] , _ = [ ] , v = ! 0 , k = [ ] , $ = ! 1 ; C ( ) ; a s y n c f u n c t i o n C ( ) { t ( 5 , $ = ! 0 ) ; t r y { t ( 2 , _ = a w a i t c e . c o l l e c t i o n s . g e t F u l l L i s t ( 2 0 0 ) ) ; f o r ( l e t G o f _ ) d e l e t e G . c r e a t e d , d e l e t e G . u p d a t e d } c a t c h ( G ) { c e . e r r o r ( G ) } t ( 5 , $ = ! 1 ) } f u n c t i o n T ( ) { i f ( t ( 4 , k = [ ] ) , ! ! i ) f o r ( l e t G o f g ) { c o n s t l e = U . f i n d B y K e y ( _ , " i d " , G . i d ) ; ! ( l e ! = n u l l & & l e . i d ) | | ! U . h a s C o l l e c t i o n C h a n g e s ( l e , G , v ) | | k . p u s h ( { n e w : G , o l d : l e } ) } } f u n c t i o n M ( ) { t ( 1 , g = [ ] ) ; t r y { t ( 1 , g = J S O N . p a r s e ( p ) ) } c a t c h { } A r r a y . i s A r r a y ( g ) ? t ( 1 , g = U . f i l t e r D u p l i c a t e s B y K e y ( g ) ) : t ( 1 , g = [ ] ) ; f o r ( l e t G o f g ) d e l e t e G . c r e a t e d , d e l e t e G . u p d a t e d , G . s c h e m a = U . f i l t e r D u p l i c a t e s B y K e y ( G . s c h e m a ) } f u n c t i o n O ( ) { v a r G , l e ; f o r ( l e t e e o f g ) { c o n s t m e = U . f i n d B y K e y ( _ , " n a m e " , e e . n a m e ) | | U . f i n d B y K e y ( _ , " i d " , e e . i d ) ; i f ( ! m e ) c o n t i n u e ; c o n s t y e = e e . i d , M e = m e . i d ; e e . i d = M e ; c o n s t z e = A r r a y . i s A r r a y ( m e . s c h e m a ) ? m e . s c h e m a : [ ] , U e = A r r a y . i s A r r a y ( e e . s c h e m a ) ? e e . s c h e m a : [ ] ; f o r ( c o n s t w e o f U e ) { c o n s t C e = U . f i n d B y K e y ( z e , " n a m e " , w e . n a m e ) ; C e & & C e . i d & & ( w e . i d = C e . i d ) } f o r ( l e t w e o f g ) i f ( A r r a y . i s A r r a y ( w e . s c h e m a ) ) f o r ( l e t C e o f w e . s c h e m a ) ( G = C e . o p t i o n s ) ! = n u l l & & G . c o l l e c t i o n I d & & ( ( l e = C e . o p t i o n s ) = = n u l l ? v o i d 0 : l e . c o l l e c t i o n I d ) = = = y e & & ( C e . o p t i o n s . c o l l e c t i o n I d = M e ) } t ( 0 , p = J S O N . s t r i n g i f y ( g , n u l l , 4 ) ) } f u n c t i o n E ( G ) { t ( 1 2 , h = ! 0 ) ; c o n s t l e = n e w F i l e R e a d e r ; l e . o n l o a d = a s y n c e e = > { t ( 1 2 , h = ! 1 ) , t ( 1 0 , f . v a l u e = " " , f ) , t ( 0 , p = e e . t a r g e t . r e s u l t ) , a w a i t c n ( ) , g . l e n g t h | | ( A s ( " I n v a l i d c o l l e c t i o n s c o n f i g u r a t i o n . " ) , A ( ) ) } , l e . o n e r r o r = e e = > { c o n s o l e . w a r n ( e e ) , A s ( " F a i l e d t o l o a d t h e i m p o r t e d J S O N . " ) , t ( 1 2 , h = ! 1 ) , t ( 1 0 , f . v a l u e = " " , f ) } , l e . r e a d A s T e x t ( G ) } f u n c t i o n A ( ) { t ( 0 , p = " " ) , t ( 1 0 , f . v a l u e = " " , f ) , t n ( { } ) } f u n c t i o n P ( G ) { n e [ G ? " u n s h i f t " : " p u s h " ] ( ( ) = > { f = G , t ( 1 0 , f ) } ) } c o n s t N = ( ) = > { f . f i l e s . l e n g t h & & E ( f . f i l e s [ 0 ] ) } , F = ( ) = > { f . c l i c k ( ) } ; f u n c t i o n R ( ) { p = t h i s . v a l u e , t ( 0 , p ) } f u n c t i o n q ( ) { v = t h i s . c h e c k e d , t ( 3 , v ) } c o n s t j = ( ) = > O ( ) , B = ( ) = > A ( ) , Y = ( ) = > d = = n u l l ? v o i d 0 : d . s h o w ( _ , g , v ) ; f u n c t i o n Q ( G ) { n e [ G ? " u n s h i f t " : " p u s h " ] ( ( ) = > { d = G , t ( 1 1 , d ) } ) } c o n s t Z = ( ) = > A ( ) ; r e t u r n n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y [ 0 ] & 1 & & t y p e o f p < " u " & & M ( ) , n . $ $ . d i r t y [ 0 ] & 3 & & t ( 6 , i = ! ! p & & g . l e n g t h & & g . l e n g t h = = = g . f i l t e r ( G = > ! ! G . i d & & ! ! G . n a m e ) . l e n g t h ) , n . $ $ . d i r t y [ 0 ] & 7 8 & & t ( 9 , s = _ . f i l t e r ( G = > i & & v & & ! U . f i n d B y K e y ( g , " i d " , G . i
2023-05-22 06:59:56 +02:00
< div class = "content" > < p > Please note that during the backup other concurrent write requests may fail since the
2023-05-17 21:41:42 +02:00
database will be temporary & quot ; locked & quot ; ( this usually happens only during the ZIP generation ) . < / p >
< p class = "txt-bold" > If you are using S3 storage for the collections file upload , you & # 39 ; ll have to backup them
2023-05-24 22:18:44 +02:00
separately since they are not locally stored and will not be included in the final backup ! < / p > < / d i v > ` , t = D ( ) , i = y ( " f o r m " ) , H ( s . $ $ . f r a g m e n t ) , m ( e , " c l a s s " , " a l e r t a l e r t - i n f o " ) , m ( i , " i d " , n [ 4 ] ) , m ( i , " a u t o c o m p l e t e " , " o f f " ) } , m ( a , u ) { S ( a , e , u ) , S ( a , t , u ) , S ( a , i , u ) , V ( s , i , n u l l ) , l = ! 0 , o | | ( r = J ( i , " s u b m i t " , t t ( n [ 5 ] ) ) , o = ! 0 ) } , p ( a , u ) { c o n s t f = { } ; u & 9 8 3 0 8 & & ( f . $ $ s c o p e = { d i r t y : u , c t x : a } ) , s . $ s e t ( f ) } , i ( a ) { l | | ( I ( s . $ $ . f r a g m e n t , a ) , l = ! 0 ) } , o ( a ) { L ( s . $ $ . f r a g m e n t , a ) , l = ! 1 } , d ( a ) { a & & w ( e ) , a & & w ( t ) , a & & w ( i ) , z ( s ) , o = ! 1 , r ( ) } } } f u n c t i o n F I ( n ) { l e t e ; r e t u r n { c ( ) { e = y ( " h 4 " ) , e . t e x t C o n t e n t = " I n i t i a l i z e n e w b a c k u p " , m ( e , " c l a s s " , " c e n t e r t x t - b r e a k " ) } , m ( t , i ) { S ( t , e , i ) } , p : t e , d ( t ) { t & & w ( e ) } } } f u n c t i o n R I ( n ) { l e t e , t , i , s , l , o , r ; r e t u r n { c ( ) { e = y ( " b u t t o n " ) , t = y ( " s p a n " ) , t . t e x t C o n t e n t = " C a n c e l " , i = D ( ) , s = y ( " b u t t o n " ) , l = y ( " s p a n " ) , l . t e x t C o n t e n t = " S t a r t b a c k u p " , m ( t , " c l a s s " , " t x t " ) , m ( e , " t y p e " , " b u t t o n " ) , m ( e , " c l a s s " , " b t n b t n - t r a n s p a r e n t " ) , e . d i s a b l e d = n [ 3 ] , m ( l , " c l a s s " , " t x t " ) , m ( s , " t y p e " , " s u b m i t " ) , m ( s , " f o r m " , n [ 4 ] ) , m ( s , " c l a s s " , " b t n b t n - e x p a n d e d " ) , s . d i s a b l e d = n [ 3 ] , x ( s , " b t n - l o a d i n g " , n [ 3 ] ) } , m ( a , u ) { S ( a , e , u ) , b ( e , t ) , S ( a , i , u ) , S ( a , s , u ) , b ( s , l ) , o | | ( r = J ( e , " c l i c k " , n [ 0 ] ) , o = ! 0 ) } , p ( a , u ) { u & 8 & & ( e . d i s a b l e d = a [ 3 ] ) , u & 8 & & ( s . d i s a b l e d = a [ 3 ] ) , u & 8 & & x ( s , " b t n - l o a d i n g " , a [ 3 ] ) } , d ( a ) { a & & w ( e ) , a & & w ( i ) , a & & w ( s ) , o = ! 1 , r ( ) } } } f u n c t i o n q I ( n ) { l e t e , t , i = { c l a s s : " b a c k u p - c r e a t e - p a n e l " , b e f o r e O p e n : n [ 8 ] , b e f o r e H i d e : n [ 9 ] , p o p u p : ! 0 , $ $ s l o t s : { f o o t e r : [ R I ] , h e a d e r : [ F I ] , d e f a u l t : [ N I ] } , $ $ s c o p e : { c t x : n } } ; r e t u r n e = n e w o n ( { p r o p s : i } ) , n [ 1 0 ] ( e ) , e . $ o n ( " s h o w " , n [ 1 1 ] ) , e . $ o n ( " h i d e " , n [ 1 2 ] ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( s , l ) { V ( e , s , l ) , t = ! 0 } , p ( s , [ l ] ) { c o n s t o = { } ; l & 8 & & ( o . b e f o r e O p e n = s [ 8 ] ) , l & 8 & & ( o . b e f o r e H i d e = s [ 9 ] ) , l & 6 5 5 4 8 & & ( o . $ $ s c o p e = { d i r t y : l , c t x : s } ) , e . $ s e t ( o ) } , i ( s ) { t | | ( I ( e . $ $ . f r a g m e n t , s ) , t = ! 0 ) } , o ( s ) { L ( e . $ $ . f r a g m e n t , s ) , t = ! 1 } , d ( s ) { n [ 1 0 ] ( n u l l ) , z ( e , s ) } } } f u n c t i o n j I ( n , e , t ) { c o n s t i = T t ( ) , s = " b a c k u p _ c r e a t e _ " + U . r a n d o m S t r i n g ( 5 ) ; l e t l , o = " " , r = ! 1 , a ; f u n c t i o n u ( $ ) { t n ( { } ) , t ( 3 , r = ! 1 ) , t ( 2 , o = $ | | " " ) , l = = n u l l | | l . s h o w ( ) } f u n c t i o n f ( ) { r e t u r n l = = n u l l ? v o i d 0 : l . h i d e ( ) } a s y n c f u n c t i o n d ( ) { i f ( ! r ) { t ( 3 , r = ! 0 ) , c l e a r T i m e o u t ( a ) , a = s e t T i m e o u t ( ( ) = > { f ( ) } , 1 5 0 0 ) ; t r y { a w a i t c e . b a c k u p s . c r e a t e ( o , { $ c a n c e l K e y : s } ) , t ( 3 , r = ! 1 ) , f ( ) , i ( " s u b m i t " ) , H t ( " S u c c e s s f u l l y g e n e r a t e d n e w b a c k u p . " ) } c a t c h ( $ ) { $ . i s A b o r t | | c e . e r r o r ( $ ) } c l e a r T i m e o u t ( a ) , t ( 3 , r = ! 1 ) } } V o ( ( ) = > { c l e a r T i m e o u t ( a ) } ) ; f u n c t i o n p ( ) { o = t h i s . v a l u e , t ( 2 , o ) } c o n s t h = ( ) = > r ? ( k o ( " A b a c k u p h a s a l r e a d y b e e n s t a r t e d , p l e a s e w a i t . " ) , ! 1 ) : ! 0 , g = ( ) = > ( r & & k o ( " T h e b a c k u p w a s s t a r t e d b u t m a y t a k e a w h i l e t o c o m p l e t e . Y o u c a n c o m e b a c k l a t e r . " , 4 5 0 0 ) , ! 0 ) ; f u n c t i o n _ ( $ ) { n e [ $ ? " u n s h i f t " : " p u s h " ] ( ( ) = > { l = $ , t ( 1 , l ) } ) } f u n c t i o n v ( $ ) { F e . c a l l ( t h i s , n , $ ) } f u n c t i o n k ( $ ) { F e . c a l l ( t h i s , n , $ ) } r e t u r n [ f , l , o , r , s , d , u , p , h , g , _ , v , k ] } c l a s s V I e x t e n d s b e { c o n s t r u c t o r ( e ) { s u p e r ( ) , g e ( t h i s , e , j I , q I , h e , { s h o w : 6 , h i d e : 0 } ) } g e t s h o w ( ) { r e t u r n t h i s . $ $ . c t x [ 6 ] } g e t h i d e ( ) { r e t u r n t h i s . $ $ . c t x [ 0 ] } } f u n c t i o n z I ( n ) { l e t e , t , i , s , l , o , r , a ; r e t u r n { c ( ) { e = y ( " l a b e l " ) , t = W ( " B a c k u p n a m e " ) , s = D ( ) , l = y ( " i n p u t " ) , m ( e , " f o r " , i = n [ 1 4 ] ) , m ( l , " t y p e " , " t e x t " ) , m ( l , " i d " , o = n [ 1 4 ] ) , l . r e q u i r e d = ! 0 } , m ( u , f ) { S ( u , e , f ) , b ( e , t ) , S ( u , s , f ) , S ( u , l , f ) , r e ( l , n [ 2 ] ) , r | | ( a = J ( l , " i n p u t " , n [ 9 ] ) , r = ! 0 ) } , p ( u , f ) { f & 1 6 3 8 4 & & i ! = = ( i = u [ 1 4 ] ) & & m ( e , " f o r " , i ) , f & 1 6 3 8 4 & & o ! = = ( o = u [ 1 4 ] ) & & m ( l , " i d " , o ) , f & 4 & & l . v a l u e ! = = u [ 2 ] & & r e ( l , u [ 2 ] ) } , d ( u ) { u & & w ( e ) , u & & w ( s ) , u & & w ( l ) , r = ! 1 , a ( ) } } } f u n c t i o n H I ( n ) { l e t e , t , i , s , l , o , r , a , u , f , d , p , h , g , _ , v ; r e t u r n u = n e w R l ( { p r o p s : { v a l u e : n [ 1 ] } } ) , h = n e w p e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d m - 0 " , n a m e : " n a m e " , $ $ s l o t s : { d e f a u l t : [ z I , ( { u n i q u e I d : k } ) = > ( { 1 4 : k } ) , ( { u n i q u e I d : k } ) = > k ? 1 6 3 8 4 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { e = y ( " d i v " ) , e . i n n e r H T M L = ` < d i v c l a s s = " i c o n " > < i c l a s s = " r i - a l e r t - l i n e " > < / i > < / d i v >
2023-05-17 21:41:42 +02:00
< div class = "content" > < p > Please proceed with caution . < / p >
< p > The restore operation will replace your existing < code > pb _data < / c o d e > w i t h t h e o n e f r o m t h e b a c k u p
and will restart the application process ! < / p >
2023-05-24 22:18:44 +02:00
< p class = "txt-bold" > Backup restore is still experimental and currently works only on UNIX based systems . < / p > < / d i v > ` , t = D ( ) , i = y ( " d i v " ) , s = W ( ` T y p e t h e b a c k u p n a m e
` ),l=y("div"),o=y("span"),r=W(n[1]),a=D(),H(u. $ $ .fragment),f=W( `
to confirm : ` ),d=D(),p=y("form"),H(h. $ $ .fragment),m(e,"class","alert alert-danger"),m(o,"class","txt"),m(l,"class","label"),m(i,"class","content m-b-sm"),m(p,"id",n[6]),m(p,"autocomplete","off")},m(k, $ ){S(k,e, $ ),S(k,t, $ ),S(k,i, $ ),b(i,s),b(i,l),b(l,o),b(o,r),b(l,a),V(u,l,null),b(i,f),S(k,d, $ ),S(k,p, $ ),V(h,p,null),g=!0,_||(v=J(p,"submit",tt(n[7])),_=!0)},p(k, $ ){(!g|| $ &2)&&se(r,k[1]);const C={}; $ &2&&(C.value=k[1]),u. $ set(C);const T={}; $ &49156&&(T. $ $ scope={dirty: $ ,ctx:k}),h. $ set(T)},i(k){g||(I(u. $ $ .fragment,k),I(h. $ $ .fragment,k),g=!0)},o(k){L(u. $ $ .fragment,k),L(h. $ $ .fragment,k),g=!1},d(k){k&&w(e),k&&w(t),k&&w(i),z(u),k&&w(d),k&&w(p),z(h),_=!1,v()}}}function BI(n){let e,t,i,s;return{c(){e=y("h4"),t=W("Restore "),i=y("strong"),s=W(n[1]),m(e,"class","center txt-break")},m(l,o){S(l,e,o),b(e,t),b(e,i),b(i,s)},p(l,o){o&2&&se(s,l[1])},d(l){l&&w(e)}}}function UI(n){let e,t,i,s,l,o,r,a;return{c(){e=y("button"),t=W("Cancel"),i=D(),s=y("button"),l=y("span"),l.textContent="Restore backup",m(e,"type","button"),m(e,"class","btn btn-transparent"),e.disabled=n[4],m(l,"class","txt"),m(s,"type","submit"),m(s,"form",n[6]),m(s,"class","btn btn-expanded"),s.disabled=o=!n[5]||n[4],x(s,"btn-loading",n[4])},m(u,f){S(u,e,f),b(e,t),S(u,i,f),S(u,s,f),b(s,l),r||(a=J(e,"click",n[0]),r=!0)},p(u,f){f&16&&(e.disabled=u[4]),f&48&&o!==(o=!u[5]||u[4])&&(s.disabled=o),f&16&&x(s,"btn-loading",u[4])},d(u){u&&w(e),u&&w(i),u&&w(s),r=!1,a()}}}function WI(n){let e,t,i={class:"backup-restore-panel",overlayClose:!n[4],escClose:!n[4],beforeHide:n[10],popup:!0, $ $ slots:{footer:[UI],header:[BI],default:[HI]}, $ $ scope:{ctx:n}};return e=new on({props:i}),n[11](e),e. $ on("show",n[12]),e. $ on("hide",n[13]),{c(){H(e. $ $ .fragment)},m(s,l){V(e,s,l),t=!0},p(s,[l]){const o={};l&16&&(o.overlayClose=!s[4]),l&16&&(o.escClose=!s[4]),l&16&&(o.beforeHide=s[10]),l&32822&&(o. $ $ scope={dirty:l,ctx:s}),e. $ set(o)},i(s){t||(I(e. $ $ .fragment,s),t=!0)},o(s){L(e. $ $ .fragment,s),t=!1},d(s){n[11](null),z(e,s)}}}function YI(n,e,t){let i;const s="backup_restore_"+U.randomString(5);let l,o="",r="",a=!1;function u(k){tn({}),t(2,r=""),t(1,o=k),t(4,a=!1),l==null||l.show()}function f(){return l==null?void 0:l.hide()}async function d(){var k;if(!(!i||a)){t(4,a=!0);try{await ce.backups.restore(o),setTimeout(()=>{window.location.reload()},1e3)}catch( $ ){ $ !=null&& $ .isAbort||(t(4,a=!1),As(((k= $ .response)==null?void 0:k.message)|| $ .message))}}}function p(){r=this.value,t(2,r)}const h=()=>!a;function g(k){ne[k?"unshift":"push"](()=>{l=k,t(3,l)})}function _(k){Fe.call(this,n,k)}function v(k){Fe.call(this,n,k)}return n. $ $ .update=()=>{n. $ $ .dirty&6&&t(5,i=r!=""&&o==r)},[f,o,r,l,a,i,s,d,u,p,h,g,_,v]}class KI extends be{constructor(e){super(),ge(this,e,YI,WI,he,{show:8,hide:0})}get show(){return this. $ $ .ctx[8]}get hide(){return this. $ $ .ctx[0]}}function V_(n,e,t){const i=n.slice();return i[22]=e[t],i}function z_(n,e,t){const i=n.slice();return i[19]=e[t],i}function JI(n){let e=[],t=new Map,i,s,l=n[3];const o=a=>a[22].key;for(let a=0;a<l.length;a+=1){let u=V_(n,l,a),f=o(u);t.set(f,e[a]=B_(f,u))}let r=null;return l.length||(r=H_()),{c(){for(let a=0;a<e.length;a+=1)e[a].c();i=ke(),r&&r.c()},m(a,u){for(let f=0;f<e.length;f+=1)e[f]&&e[f].m(a,u);S(a,i,u),r&&r.m(a,u),s=!0},p(a,u){u&876&&(l=a[3],ae(),e=vt(e,u,o,1,a,l,t,i.parentNode,Ut,B_,i,V_),ue(),!l.length&&r?r.p(a,u):l.length?r&&(r.d(1),r=null):(r=H_(),r.c(),r.m(i.parentNode,i)))},i(a){if(!s){for(let u=0;u<l.length;u+=1)I(e[u]);s=!0}},o(a){for(let u=0;u<e.length;u+=1)L(e[u]);s=!1},d(a){for(let u=0;u<e.length;u+=1)e[u].d(a);a&&w(i),r&&r.d(a)}}}function ZI(n){let e,t=Array(n[3].length||1),i=[];for(let s=0;s<t.length;s+=1)i[s]=U_(z_(n,t,s));return{c(){for(let s=0;s<i.length;s+=1)i[s].c();e=ke()},m(s,l){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(s,l);S(s,e,l)},p(s,l){if(l&8){t=Array(s[3].length||1);let o;for(o=0;o<t.length;o+=1){const r=z_(s,t,o);i[o]?i[o].p(r,l):(i[o]=U_(),i[o].c(),i[o].m(e.parentNode,e))}for(;o<i.length;o+=1)i[o].d(1);i.length=t.length}},i:te,o:te,d(s){ht(i,s),s&&w(e)}}}function H_(n){let e;return{c(){e=y("div"),e.innerHTML= ` < span class = "txt" > No backups yet . < /
` ,m(e,"class","list-item list-item-placeholder svelte-1ulbkf5")},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function B_(n,e){let t,i,s,l,o,r=e[22].key+"",a,u,f,d,p=U.formattedFileSize(e[22].size)+"",h,g,_,v,k, $ ,C,T,M,O,E,A,P,N,F,R,q,j,B,Y;function Q(){return e[10](e[22])}function Z(){return e[11](e[22])}function G(){return e[12](e[22])}return{key:n,first:null,c(){t=y("div"),i=y("i"),s=D(),l=y("div"),o=y("span"),a=W(r),u=D(),f=y("span"),d=W("("),h=W(p),g=W(")"),_=D(),v=y("div"),k=y("button"), $ =y("i"),T=D(),M=y("button"),O=y("i"),A=D(),P=y("button"),N=y("i"),R=D(),m(i,"class","ri-folder-zip-line"),m(o,"class","name backup-name svelte-1ulbkf5"),m(f,"class","size txt-hint txt-nowrap"),m(l,"class","content"),m( $ ,"class","ri-download-line"),m(k,"type","button"),m(k,"class","btn btn-sm btn-circle btn-hint btn-transparent"),k.disabled=C=e[6][e[22].key]||e[5][e[22].key],m(k,"aria-label","Download"),x(k,"btn-loading",e[5][e[22].key]),m(O,"class","ri-restart-line"),m(M,"type","button"),m(M,"class","btn btn-sm btn-circle btn-hint btn-transparent"),M.disabled=E=e[6][e[22].key],m(M,"aria-label","Restore"),m(N,"class","ri-delete-bin-7-line"),m(P,"type","button"),m(P,"class","btn btn-sm btn-circle btn-hint btn-transparent"),P.disabled=F=e[6][e[22].key],m(P,"aria-label","Delete"),x(P,"btn-loading",e[6][e[22].key]),m(v,"class","actions nonintrusive"),m(t,"class","list-item svelte-1ulbkf5"),this.first=t},m(le,ee){S(le,t,ee),b(t,i),b(t,s),b(t,l),b(l,o),b(o,a),b(l,u),b(l,f),b(f,d),b(f,h),b(f,g),b(t,_),b(t,v),b(v,k),b(k, $ ),b(v,T),b(v,M),b(M,O),b(v,A),b(v,P),b(P,N),b(t,R),j=!0,B||(Y=[Oe(Be.call(null,k,"Download")),J(k,"click",tt(Q)),Oe(Be.call(null,M,"Restore")),J(M,"click",tt(Z)),Oe(Be.call(null,P,"Delete")),J(P,"click",tt(G))],B=!0)},p(le,ee){e=le,(!j||ee&8)&&r!==(r=e[22].key+"")&&se(a,r),(!j||ee&8)&&p!==(p=U.formattedFileSize(e[22].size)+"")&&se(h,p),(!j||ee&104&&C!==(C=e[6][e[22].key]||e[5][e[22].key]))&&(k.disabled=C),(!j||ee&40)&&x(k,"btn-loading",e[5][e[22].key]),(!j||ee&72&&E!==(E=e[6][e[22].key]))&&(M.disabled=E),(!j||ee&72&&F!==(F=e[6][e[22].key]))&&(P.disabled=F),(!j||ee&72)&&x(P,"btn-loading",e[6][e[22].key])},i(le){j||(le&&xe(()=>{j&&(q||(q=Ve(t,rt,{duration:150},!0)),q.run(1))}),j=!0)},o(le){le&&(q||(q=Ve(t,rt,{duration:150},!1)),q.run(0)),j=!1},d(le){le&&w(t),le&&q&&q.end(),B=!1,De(Y)}}}function U_(n){let e;return{c(){e=y("div"),e.innerHTML= ` < span class = "skeleton-loader" > < / s p a n >
` ,m(e,"class","list-item list-item-loader svelte-1ulbkf5")},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function GI(n){let e,t,i;return{c(){e=y("span"),t=D(),i=y("span"),i.textContent="Backup/restore operation is in process",m(e,"class","loader loader-sm"),m(i,"class","txt")},m(s,l){S(s,e,l),S(s,t,l),S(s,i,l)},d(s){s&&w(e),s&&w(t),s&&w(i)}}}function XI(n){let e,t,i;return{c(){e=y("i"),t=D(),i=y("span"),i.textContent="Initialize new backup",m(e,"class","ri-play-circle-line"),m(i,"class","txt")},m(s,l){S(s,e,l),S(s,t,l),S(s,i,l)},d(s){s&&w(e),s&&w(t),s&&w(i)}}}function QI(n){let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_;const v=[ZI,JI],k=[];function $ (A,P){return A[4]?0:1}i= $ (n),s=k[i]=v[i](n);function C(A,P){return A[7]?XI:GI}let T=C(n),M=T(n),O={};f=new VI({props:O}),n[14](f),f. $ on("submit",n[15]);let E={};return p=new KI({props:E}),n[16](p),{c(){e=y("div"),t=y("div"),s.c(),l=D(),o=y("div"),r=y("button"),M.c(),u=D(),H(f. $ $ .fragment),d=D(),H(p. $ $ .fragment),m(t,"class","list-content svelte-1ulbkf5"),m(r,"type","button"),m(r,"class","btn btn-block btn-transparent"),r.disabled=a=n[4]||!n[7],m(o,"class","list-item list-item-btn"),m(e,"class","list list-compact")},m(A,P){S(A,e,P),b(e,t),k[i].m(t,null),b(e,l),b(e,o),b(o,r),M.m(r,null),S(A,u,P),V(f,A,P),S(A,d,P),V(p,A,P),h=!0,g||(_=J(r,"click",n[13]),g=!0)},p(A,[P]){let N=i;i= $ (A),i===N?k[i].p(A,P):(ae(),L(k[N],1,1,()=>{k[N]=null}),ue(),s=k[i],s?s.p(A,P):(s=k[i]=v[i](A),s.c()),I(s,1),s.m(t,null)),T!==(T=C(A))&&(M.d(1),M=T(A),M&&(M.c(),M.m(r,null))),(!h||P&144&&a!==(a=A[4]||!A[7]))&&(r.disabled=a);const F={};f. $ set(F);const R={};p. $ set(R)},i(A){h||(I(s),I(f. $ $ .fragment,A),I(p. $ $ .fragment,A),h=!0)},o(A){L(s),L(f. $ $ .fragment,A),L(p. $ $ .fragment,A),h=!1},d(A){A&&w(e),k[i].d(),M.d(),A&&w(u),n[14](null),z(f,A),A&&w(d),n[16](null),z(p,A),g=!1,_()}}}function xI(n,e,t){let i,s,l=[],o=!1,r={},a={},u=!0;f(),g();async function f(){t(4,o=!0);try{t(3,l=await ce.backups.getFullList()),l.sort((O,E)=>O.modified<E.modified?1:O.modified>E.modified?-1:0),t(4,o=!1)}catch(O){O.isAbort||(ce.error(O),t(4,o=!1))}}async function d(O){if(!r[O]){t(5,r[O]=!0,r);try{const E=await ce.getAdminFileToken(),A=ce.backups.getDownloadUrl(E,O);U.download(A)}catch(E){E.isAbort||ce.error(E)}delete r[O],t(5,r)}}function p(O){mn( ` Do you really want to delete $ { O } ? ` ,()=>h(O))}async function h(O){if(!a[O]){t(6,a[O]=!0,a);try{await ce.backups.delete(O),U.removeByKey(l,"name",O),f(),Ht( ` Successfully deleted $ { O } . ` )}catch(E){E.isAbort||ce.error(E)}delete a[O],t(6,a)}}async function g(){var O;try{const E=await ce.health.check({ $ autoCancel:!1}),A=u;t(7,u=((O=E==null?void 0:E.data)==null?void 0:O.canBackup)||!1),A!=u&&u&&f()}catch{}}Xt(()=>{let O=setInterval(()=>{g()},3e3);return()=>{clearInterval(O)}});const _=O=>d(O.key),v=O=>s.show(O.key),k=O=>p(O.key), $ =()=>i==null?void 0:i.show();function C(O){ne[O?"unshift":"push"](()=>{i=O,t(1,i)})}const T=()=>{f()};function M(O){ne[O?"unshift":"push"](()=>{s=O,t(2,s)})}return[f,i,s,l,o,r,a,u,d,p,_,v,k, $ ,C,T,M]}class e8 extends be{constructor(e){super(),ge(this,e,xI,QI,he,{loadBackups:0})}get loadBackups(){return this. $ $ .ctx[0]}}function t8(n){let e;return{c(){e=y("i"),m(e,"class","ri-arrow-down-s-line")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function n8(n){let e;return{c(){e=y("i"),m(e,"class","ri-arrow-up-s-line")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function W_(n){var B,Y,Q;let e,t,i,s,l,o,r,a,u,f,d,p,h,g,_,v,k, $ ,C,T,M,O,E;t=new pe({props:{class:"form-field form-field-toggle m-t-base m-b-0", $ $ slots:{default:[i8,({uniqueId:Z})=>({32:Z}),({uniqueId:Z})=>[0,Z?2:0]]}, $ $ scope:{ctx:n}}});let A=n[2]&&Y_(n);function P(Z){n[25](Z)}function N(Z){n[26](Z)}function F(Z){n[27](Z)}let R={toggleLabel:"Store backups in S3 storage",testFilesystem:"backups",configKey:"backups.s3",originalConfig:(B=n[0].backups)==null?void 0:B.s3};n[1].backups.s3!==void 0&&(R.config=n[1].backups.s3),n[7]!==void 0&&(R.isTesting=n[7]),n[8]!==void 0&&(R.testError=n[8]),r=new M1({props:R}),ne.push(()=>de(r,"config",P)),ne.push(()=>de(r,"isTesting",N)),ne.push(()=>de(r,"testError",F));let q=((Q=(Y=n[1].backups)==null?void 0:Y.s3)==null?vo
< span class = "txt" > S3 connected successfully < /span>`,m(e,"class","label label-sm label-success entrance-right")},m(t,i){S(t,e,i)},p:te,d(t){t&&w(e)}}}function a8(n){let e,t,i,s;return{c(){e=y("div"),e.innerHTML=`<i class="ri-error-warning-line txt-warning"></i >
< span class = "txt" > Failed to establish S3 connection < / s p a n > ` , m ( e , " c l a s s " , " l a b e l l a b e l - s m l a b e l - w a r n i n g e n t r a n c e - r i g h t " ) } , m ( l , o ) { v a r r ; S ( l , e , o ) , i | | ( s = O e ( t = B e . c a l l ( n u l l , e , ( r = n [ 8 ] . d a t a ) = = n u l l ? v o i d 0 : r . m e s s a g e ) ) , i = ! 0 ) } , p ( l , o ) { v a r r ; t & & j t ( t . u p d a t e ) & & o [ 0 ] & 2 5 6 & & t . u p d a t e . c a l l ( n u l l , ( r = l [ 8 ] . d a t a ) = = n u l l ? v o i d 0 : r . m e s s a g e ) } , d ( l ) { l & & w ( e ) , i = ! 1 , s ( ) } } } f u n c t i o n u 8 ( n ) { l e t e ; r e t u r n { c ( ) { e = y ( " s p a n " ) , m ( e , " c l a s s " , " l o a d e r l o a d e r - s m " ) } , m ( t , i ) { S ( t , e , i ) } , p : t e , d ( t ) { t & & w ( e ) } } } f u n c t i o n J _ ( n ) { l e t e , t , i , s , l ; r e t u r n { c ( ) { e = y ( " b u t t o n " ) , t = y ( " s p a n " ) , t . t e x t C o n t e n t = " R e s e t " , m ( t , " c l a s s " , " t x t " ) , m ( e , " t y p e " , " s u b m i t " ) , m ( e , " c l a s s " , " b t n b t n - h i n t b t n - t r a n s p a r e n t " ) , e . d i s a b l e d = i = ! n [ 9 ] | | n [ 5 ] } , m ( o , r ) { S ( o , e , r ) , b ( e , t ) , s | | ( l = J ( e , " c l i c k " , n [ 2 8 ] ) , s = ! 0 ) } , p ( o , r ) { r [ 0 ] & 5 4 4 & & i ! = = ( i = ! o [ 9 ] | | o [ 5 ] ) & & ( e . d i s a b l e d = i ) } , d ( o ) { o & & w ( e ) , s = ! 1 , l ( ) } } } f u n c t i o n f 8 ( n ) { l e t e , t , i , s , l , o , r , a , u , f , d , p , h , g , _ , v , k , $ , C , T , M , O , E , A , P ; h = n e w G o ( { p r o p s : { c l a s s : " b t n - s m " , t o o l t i p : " R e l o a d b a c k u p s l i s t " } } ) , h . $ o n ( " r e f r e s h " , n [ 1 5 ] ) ; l e t N = { } ; _ = n e w e 8 ( { p r o p s : N } ) , n [ 1 6 ] ( _ ) ; f u n c t i o n F ( B , Y ) { r e t u r n B [ 6 ] ? n 8 : t 8 } l e t R = F ( n ) , q = R ( n ) , j = n [ 6 ] & & ! n [ 4 ] & & W _ ( n ) ; r e t u r n { c ( ) { e = y ( " h e a d e r " ) , t = y ( " n a v " ) , i = y ( " d i v " ) , i . t e x t C o n t e n t = " S e t t i n g s " , s = D ( ) , l = y ( " d i v " ) , o = W ( n [ 1 0 ] ) , r = D ( ) , a = y ( " d i v " ) , u = y ( " d i v " ) , f = y ( " d i v " ) , d = y ( " s p a n " ) , d . t e x t C o n t e n t = " B a c k u p a n d r e s t o r e y o u r P o c k e t B a s e d a t a " , p = D ( ) , H ( h . $ $ . f r a g m e n t ) , g = D ( ) , H ( _ . $ $ . f r a g m e n t ) , v = D ( ) , k = y ( " h r " ) , $ = D ( ) , C = y ( " b u t t o n " ) , T = y ( " s p a n " ) , T . t e x t C o n t e n t = " B a c k u p s o p t i o n s " , M = D ( ) , q . c ( ) , O = D ( ) , j & & j . c ( ) , m ( i , " c l a s s " , " b r e a d c r u m b - i t e m " ) , m ( l , " c l a s s " , " b r e a d c r u m b - i t e m " ) , m ( t , " c l a s s " , " b r e a d c r u m b s " ) , m ( e , " c l a s s " , " p a g e - h e a d e r " ) , m ( d , " c l a s s " , " t x t - x l " ) , m ( f , " c l a s s " , " f l e x m - b - s m f l e x - g a p - 5 " ) , m ( T , " c l a s s " , " t x t " ) , m ( C , " t y p e " , " b u t t o n " ) , m ( C , " c l a s s " , " b t n b t n - s e c o n d a r y " ) , C . d i s a b l e d = n [ 4 ] , x ( C , " b t n - l o a d i n g " , n [ 4 ] ) , m ( u , " c l a s s " , " p a n e l " ) , m ( u , " a u t o c o m p l e t e " , " o f f " ) , m ( a , " c l a s s " , " w r a p p e r " ) } , m ( B , Y ) { S ( B , e , Y ) , b ( e , t ) , b ( t , i ) , b ( t , s ) , b ( t , l ) , b ( l , o ) , S ( B , r , Y ) , S ( B , a , Y ) , b ( a , u ) , b ( u , f ) , b ( f , d ) , b ( f , p ) , V ( h , f , n u l l ) , b ( u , g ) , V ( _ , u , n u l l ) , b ( u , v ) , b ( u , k ) , b ( u , $ ) , b ( u , C ) , b ( C , T ) , b ( C , M ) , q . m ( C , n u l l ) , b ( u , O ) , j & & j . m ( u , n u l l ) , E = ! 0 , A | | ( P = [ J ( C , " c l i c k " , n [ 1 7 ] ) , J ( u , " s u b m i t " , t t ( n [ 1 1 ] ) ) ] , A = ! 0 ) } , p ( B , Y ) { ( ! E | | Y [ 0 ] & 1 0 2 4 ) & & s e ( o , B [ 1 0 ] ) ; c o n s t Q = { } ; _ . $ s e t ( Q ) , R ! = = ( R = F ( B ) ) & & ( q . d ( 1 ) , q = R ( B ) , q & & ( q . c ( ) , q . m ( C , n u l l ) ) ) , ( ! E | | Y [ 0 ] & 1 6 ) & & ( C . d i s a b l e d = B [ 4 ] ) , ( ! E | | Y [ 0 ] & 1 6 ) & & x ( C , " b t n - l o a d i n g " , B [ 4 ] ) , B [ 6 ] & & ! B [ 4 ] ? j ? ( j . p ( B , Y ) , Y [ 0 ] & 8 0 & & I ( j , 1 ) ) : ( j = W _ ( B ) , j . c ( ) , I ( j , 1 ) , j . m ( u , n u l l ) ) : j & & ( a e ( ) , L ( j , 1 , 1 , ( ) = > { j = n u l l } ) , u e ( ) ) } , i ( B ) { E | | ( I ( h . $ $ . f r a g m e n t , B ) , I ( _ . $ $ . f r a g m e n t , B ) , I ( j ) , E = ! 0 ) } , o ( B ) { L ( h . $ $ . f r a g m e n t , B ) , L ( _ . $ $ . f r a g m e n t , B ) , L ( j ) , E = ! 1 } , d ( B ) { B & & w ( e ) , B & & w ( r ) , B & & w ( a ) , z ( h ) , n [ 1 6 ] ( n u l l ) , z ( _ ) , q . d ( ) , j & & j . d ( ) , A = ! 1 , D e ( P ) } } } f u n c t i o n c 8 ( n ) { l e t e , t , i , s ; r e t u r n e = n e w M i ( { } ) , i = n e w S n ( { p r o p s : { $ $ s l o t s : { d e f a u l t : [ f 8 ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) , t = D ( ) , H ( i . $ $ . f r a g m e n t ) } , m ( l , o ) { V ( e , l , o ) , S ( l , t , o ) , V ( i , l , o ) , s = ! 0 } , p ( l , o ) { c o n s t r = { } ; o [ 0 ] & 2 0 4 7 | o [ 1 ] & 4 & & ( r . $ $ s c o p e = { d i r t y : o , c t x : l } ) , i . $ s e t ( r ) } , i ( l ) { s | | ( I ( e . $ $ . f r a g m e n t , l ) , I ( i . $ $ . f r a g m e n t , l ) , s = ! 0 ) } , o ( l ) { L ( e . $ $ . f r a g m e n t , l ) , L ( i . $ $ . f r a g m e n t , l ) , s = ! 1 } , d ( l ) { z ( e , l ) , l & & w ( t ) , z ( i , l ) } } } f u n c t i o n d 8 ( n , e , t ) { l e t i , s ; Z e ( n , M t , G = > t ( 1 0 , s = G ) ) , l n ( M t , s = " B a c k u p s " , s ) ; l e t l , o = { } , r = { } , a = ! 1 , u = ! 1 , f = " " , d = ! 1 , p = ! 1 , h = ! 1 , g = n u l l ; _ ( ) ; a s y n c f u n c t i o n _ ( ) { t ( 4 , a = ! 0 ) ; t r y { c o n s t G = a w a i t c e . s e t t i n g s . g e t A l l ( ) | | { } ; k ( G ) } c a t c h ( G ) { c e . e r r o r ( G ) } t ( 4 , a = ! 1 ) } a s y n c f u n c t i o n v ( ) { i f ( ! ( u | | ! i ) ) { t ( 5 , u = ! 0 ) ; t r y { c o n s t G = a w a i t c e . s e t t i n g s . u p d a t e ( U . f i l t e r R e d a c t e d P r o p s ( r ) ) ; a w a i t C ( ) , k ( G ) , H t ( " S u c c e s s f u l l y s a v e d a p p l i c a t i o n s e t t i n g s . " ) } c a t c h ( G ) { c e . e r r o r ( G ) } t ( 5 , u = ! 1 ) } } f u n c t i o n k ( G = { } ) { t ( 1 , r = { b a c k u p s : ( G = = n u l l ? v o i d 0 : G . b a c k u p s ) | | { } } ) , t ( 2 , d = r . b a c k u p s . c r o n ! = " " ) , t ( 0 , o = J S O N . p a r s e ( J S O N . s t r i n g i f y ( r ) ) ) } f u n c t i o n $ ( ) { t ( 1 , r = J S O N . p a r s e ( J S O N . s t r i n g i f y ( o | | { b a c k u p s : { } } ) ) ) , t ( 2 , d = r . b a c k u p s . c r o n ! = " " ) } a s y n c f u n c t i o n C ( ) { a w a i t ( l = = n u l l ? v o i d 0 : l . l o a d B a c k u p s ( ) ) } c o n s t T = ( ) = > C ( ) ; f u n c t i o n M ( G ) { n e [ G ? " u n s h i f t " : " p u s h " ] ( ( ) = > { l = G , t ( 3 , l ) } ) } c o n s t O = ( ) = > t ( 6 , p = ! p ) ; f u n c t i o n E ( ) { d = t h i s . c h e c k e d , t ( 2 , d ) } f u n c t i o n A ( ) { r . b a c k u p s . c r o n = t h i s . v a l u e , t ( 1 , r ) , t ( 2 , d ) } c o n s t P = ( ) = > { t ( 1 , r . b a c k u p s . c r o n = " 0 0 * * * " , r ) } , N = ( ) = > { t ( 1 , r . b a c k u p s . c r o n = " 0 0 * * 0 " , r ) } , F = ( ) = > { t ( 1 , r . b a c k u p s . c r o n = " 0 0 * * 1 , 3 " , r ) } , R = ( ) = > { t ( 1 , r . b a c k u p s . c r o n = " 0 0 1 * * " , r ) } ; f u n c t i o n q ( ) { r . b a c k u p s . c r o n M a x K e e p = p t ( t h i s . v a l u e ) , t ( 1 , r ) , t ( 2 , d ) } f u n c t i
2023-05-17 21:41:42 +02:00
< span class = "txt" > Manage admins < /span>`,t=D(),i=y("hr"),s=D(),l=y("button"),l.innerHTML=`<i class="ri-logout-circle-line"></i >
2023-05-24 22:18:44 +02:00
< span class = "txt" > Logout < / s p a n > ` , m ( e , " h r e f " , " / s e t t i n g s / a d m i n s " ) , m ( e , " c l a s s " , " d r o p d o w n - i t e m c l o s a b l e " ) , m ( l , " t y p e " , " b u t t o n " ) , m ( l , " c l a s s " , " d r o p d o w n - i t e m c l o s a b l e " ) } , m ( a , u ) { S ( a , e , u ) , S ( a , t , u ) , S ( a , i , u ) , S ( a , s , u ) , S ( a , l , u ) , o | | ( r = [ O e ( r n . c a l l ( n u l l , e ) ) , J ( l , " c l i c k " , n [ 7 ] ) ] , o = ! 0 ) } , p : t e , d ( a ) { a & & w ( e ) , a & & w ( t ) , a & & w ( i ) , a & & w ( s ) , a & & w ( l ) , o = ! 1 , D e ( r ) } } } f u n c t i o n Q _ ( n ) { l e t e , t , i ; r e t u r n t = n e w m u ( { p r o p s : { s c r i p t S r c : " . / l i b s / t i n y m c e / t i n y m c e . m i n . j s " , c o n f : U . d e f a u l t E d i t o r O p t i o n s ( ) } } ) , t . $ o n ( " i n i t " , n [ 8 ] ) , { c ( ) { e = y ( " d i v " ) , H ( t . $ $ . f r a g m e n t ) , m ( e , " c l a s s " , " t i n y m c e - p r e l o a d e r h i d d e n " ) } , m ( s , l ) { S ( s , e , l ) , V ( t , e , n u l l ) , i = ! 0 } , p : t e , i ( s ) { i | | ( I ( t . $ $ . f r a g m e n t , s ) , i = ! 0 ) } , o ( s ) { L ( t . $ $ . f r a g m e n t , s ) , i = ! 1 } , d ( s ) { s & & w ( e ) , z ( t ) } } } f u n c t i o n E 8 ( n ) { v a r v ; l e t e , t , i , s , l , o , r , a , u , f , d , p , h ; d o c u m e n t . t i t l e = e = U . j o i n N o n E m p t y ( [ n [ 4 ] , n [ 3 ] , " P o c k e t B a s e " ] , " - " ) ; l e t g = ( ( v = n [ 0 ] ) = = n u l l ? v o i d 0 : v . i d ) & & n [ 1 ] & & X _ ( n ) ; o = n e w d 0 ( { p r o p s : { r o u t e s : m 8 } } ) , o . $ o n ( " r o u t e L o a d i n g " , n [ 5 ] ) , o . $ o n ( " c o n d i t i o n s F a i l e d " , n [ 6 ] ) , a = n e w w 8 ( { } ) , f = n e w M 8 ( { } ) ; l e t _ = n [ 1 ] & & ! n [ 2 ] & & Q _ ( n ) ; r e t u r n { c ( ) { t = D ( ) , i = y ( " d i v " ) , g & & g . c ( ) , s = D ( ) , l = y ( " d i v " ) , H ( o . $ $ . f r a g m e n t ) , r = D ( ) , H ( a . $ $ . f r a g m e n t ) , u = D ( ) , H ( f . $ $ . f r a g m e n t ) , d = D ( ) , _ & & _ . c ( ) , p = k e ( ) , m ( l , " c l a s s " , " a p p - b o d y " ) , m ( i , " c l a s s " , " a p p - l a y o u t " ) } , m ( k , $ ) { S ( k , t , $ ) , S ( k , i , $ ) , g & & g . m ( i , n u l l ) , b ( i , s ) , b ( i , l ) , V ( o , l , n u l l ) , b ( l , r ) , V ( a , l , n u l l ) , S ( k , u , $ ) , V ( f , k , $ ) , S ( k , d , $ ) , _ & & _ . m ( k , $ ) , S ( k , p , $ ) , h = ! 0 } , p ( k , [ $ ] ) { v a r C ; ( ! h | | $ & 2 4 ) & & e ! = = ( e = U . j o i n N o n E m p t y ( [ k [ 4 ] , k [ 3 ] , " P o c k e t B a s e " ] , " - " ) ) & & ( d o c u m e n t . t i t l e = e ) , ( C = k [ 0 ] ) ! = n u l l & & C . i d & & k [ 1 ] ? g ? ( g . p ( k , $ ) , $ & 3 & & I ( g , 1 ) ) : ( g = X _ ( k ) , g . c ( ) , I ( g , 1 ) , g . m ( i , s ) ) : g & & ( a e ( ) , L ( g , 1 , 1 , ( ) = > { g = n u l l } ) , u e ( ) ) , k [ 1 ] & & ! k [ 2 ] ? _ ? ( _ . p ( k , $ ) , $ & 6 & & I ( _ , 1 ) ) : ( _ = Q _ ( k ) , _ . c ( ) , I ( _ , 1 ) , _ . m ( p . p a r e n t N o d e , p ) ) : _ & & ( a e ( ) , L ( _ , 1 , 1 , ( ) = > { _ = n u l l } ) , u e ( ) ) } , i ( k ) { h | | ( I ( g ) , I ( o . $ $ . f r a g m e n t , k ) , I ( a . $ $ . f r a g m e n t , k ) , I ( f . $ $ . f r a g m e n t , k ) , I ( _ ) , h = ! 0 ) } , o ( k ) { L ( g ) , L ( o . $ $ . f r a g m e n t , k ) , L ( a . $ $ . f r a g m e n t , k ) , L ( f . $ $ . f r a g m e n t , k ) , L ( _ ) , h = ! 1 } , d ( k ) { k & & w ( t ) , k & & w ( i ) , g & & g . d ( ) , z ( o ) , z ( a ) , k & & w ( u ) , z ( f , k ) , k & & w ( d ) , _ & & _ . d ( k ) , k & & w ( p ) } } } f u n c t i o n D 8 ( n , e , t ) { l e t i , s , l , o ; Z e ( n , I s , _ = > t ( 1 0 , i = _ ) ) , Z e ( n , $ o , _ = > t ( 3 , s = _ ) ) , Z e ( n , q a , _ = > t ( 0 , l = _ ) ) , Z e ( n , M t , _ = > t ( 4 , o = _ ) ) ; l e t r , a = ! 1 , u = ! 1 ; f u n c t i o n f ( _ ) { v a r v , k , $ , C ; ( ( v = _ = = n u l l ? v o i d 0 : _ . d e t a i l ) = = n u l l ? v o i d 0 : v . l o c a t i o n ) ! = = r & & ( t ( 1 , a = ! ! ( ( $ = ( k = _ = = n u l l ? v o i d 0 : _ . d e t a i l ) = = n u l l ? v o i d 0 : k . u s e r D a t a ) ! = n u l l & & $ . s h o w A p p S i d e b a r ) ) , r = ( C = _ = = n u l l ? v o i d 0 : _ . d e t a i l ) = = n u l l ? v o i d 0 : C . l o c a t i o n , l n ( M t , o = " " , o ) , t n ( { } ) , y 1 ( ) ) } f u n c t i o n d ( ) { V i ( " / " ) } a s y n c f u n c t i o n p ( ) { v a r _ , v ; i f ( l ! = n u l l & & l . i d ) t r y { c o n s t k = a w a i t c e . s e t t i n g s . g e t A l l ( { $ c a n c e l K e y : " i n i t i a l A p p S e t t i n g s " } ) ; l n ( $ o , s = ( ( _ = k = = n u l l ? v o i d 0 : k . m e t a ) = = n u l l ? v o i d 0 : _ . a p p N a m e ) | | " " , s ) , l n ( I s , i = ! ! ( ( v = k = = n u l l ? v o i d 0 : k . m e t a ) ! = n u l l & & v . h i d e C o n t r o l s ) , i ) } c a t c h ( k ) { k ! = n u l l & & k . i s A b o r t | | c o n s o l e . w a r n ( " F a i l e d t o l o a d a p p s e t t i n g s . " , k ) } } f u n c t i o n h ( ) { c e . l o g o u t ( ) } c o n s t g = ( ) = > { t ( 2 , u = ! 0 ) } ; r e t u r n n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 1 & & l ! = n u l l & & l . i d & & p ( ) } , [ l , a , u , s , o , f , d , h , g ] } c l a s s A 8 e x t e n d s b e { c o n s t r u c t o r ( e ) { s u p e r ( ) , g e ( t h i s , e , D 8 , E 8 , h e , { } ) } } n e w A 8 ( { t a r g e t : d o c u m e n t . g e t E l e m e n t B y I d ( " a p p " ) } ) ; e x p o r t { D e a s A , H t a s B , U a s C , V i a s D , k e a s E , b b a s F , h g a s G , X t a s H , Z e a s I , d i a s J , T t a s K , n e a s L , b 1 a s M , v t a s N , H o a s O , u s a s P , U t a s Q , h t a s R , b e a s S , k n a s T , H r a s U , L a s a , D a s b , H a s c , z a s d , y a s e , m a s f , S a s g , b a s h , g e a s i , O e a s j , a e a s k , r n a s l , V a s m , u e a s n , w a s o , c e a s p , p e a s q , x a s r , h e a s s , I a s t , J a s u , t t a s v , W a s w , s e a s x , t e a s y , r e a s z } ;