2023-03-19 14:17:36 +08: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 X ( ) { } const wl = n => n ; function Le ( n , e ) { for ( const t in e ) n [ t ] = e [ t ] ; return n } function rb ( n ) { return ! ! n && ( typeof n == "object" || typeof n == "function" ) && typeof n . then == "function" } function T _ ( n ) { return n ( ) } function ru ( ) { return Object . create ( null ) } function Ae ( n ) { n . forEach ( T _ ) } function Bt ( n ) { return typeof n == "function" } function _e ( n , e ) { return n != n ? e == e : n !== e || n && typeof n == "object" || typeof n == "function" } let ql ; function Un ( n , e ) { return ql || ( ql = document . createElement ( "a" ) ) , ql . href = e , n === ql . href } function ab ( n ) { return Object . keys ( n ) . length === 0 } function $ _ ( n , ... e ) { if ( n == null ) return X ; const t = n . subscribe ( ... e ) ; return t . unsubscribe ? ( ) => t . unsubscribe ( ) : t } function We ( n , e , t ) { n . $$ . on _destroy . push ( $ _ ( e , t ) ) } function Et ( n , e , t , i ) { if ( n ) { const s = C _ ( n , e , t , i ) ; return n [ 0 ] ( s ) } } function C _ ( n , e , t , i ) { return n [ 1 ] && i ? Le ( t . ctx . slice ( ) , n [ 1 ] ( i ( e ) ) ) : t . ctx } function At ( 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 It ( n , e , t , i , s , l ) { if ( s ) { const o = C _ ( e , t , i , l ) ; n . p ( o , s ) } } function Pt ( 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 jt ( n ) { const e = { } ; for ( const t in n ) t [ 0 ] !== "$" && ( e [ t ] = n [ t ] ) ; return e } function Je ( 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 $i ( n ) { return n ? ? "" } function Gt ( n , e , t ) { return n . set ( t ) , e } function De ( n ) { return n && Bt ( n . destroy ) ? n . destroy : X } function au ( n ) { const e = typeof n == "string" && n . match ( /^\s*(-?[\d.]+)([^\s]*)\s*$/ ) ; return e ? [ parseFloat ( e [ 1 ] ) , e [ 2 ] || "px" ] : [ n , "px" ] } const M _ = typeof window < "u" ; let Fo = M _ ? ( ) => window . performance . now ( ) : ( ) => Date . now ( ) , pa = M _ ? n => requestAnimationFrame ( n ) : X ; const bs = new Set ; function O _ ( n ) { bs . forEach ( e => { e . c ( n ) || ( bs . delete ( e ) , e . f ( ) ) } ) , bs . size !== 0 && pa ( O _ ) } function Ro ( n ) { let e ; return bs . size === 0 && pa ( O _ ) , { promise : new Promise ( t => { bs . add ( e = { c : n , f : t } ) } ) , abort ( ) { bs . delete ( e ) } } } function b ( n , e ) { n . appendChild ( e ) } function D _ ( n ) { if ( ! n ) return document ; const e = n . getRootNode ? n . getRootNode ( ) : n . ownerDocument ; return e && e . host ? e : n . ownerDocument } function ub ( n ) { const e = v ( "style" ) ; return fb ( D _ ( n ) , e ) , e . sheet } function fb ( 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 at ( n , e ) { for ( let t = 0 ; t < n . length ; t += 1 ) n [ t ] && n [ t ] . d ( e ) } function v ( n ) { return document . createElement ( n ) } function B ( n ) { return document . createTextNode ( n ) } function D ( ) { return B ( " " ) } function we ( ) { return B ( "" ) } function K ( n , e , t , i ) { return n . addEventListener ( e , t , i ) , ( ) => n . removeEventListener ( e , t , i ) } function ft ( n ) { return function ( e ) { return e . preventDefault ( ) , n . call ( this , e ) } } function $n ( 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 ) } function xn ( 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 ? n [ i ] = e [ i ] : m ( n , i , e [ i ] ) } function cb ( n ) { let e ; return { p ( ... t ) { e = t , e . forEach ( i => n . push ( i ) ) } , r ( ) { e . forEach ( t => n . splice ( n . indexOf ( t ) , 1 ) ) } } } function ht ( n ) { return n === "" ? null : + n } function db ( n ) { return Array . from ( n . childNodes ) } function le ( n , e ) { e = "" + e , n . wholeText !== e && ( n . data = e ) } function ue ( n , e ) { n .
2023-03-17 01:21:16 +08:00
` ;for(let _=0;_<=1;_+=a){const y=e+(t-e)*l(_);u+=_*100+ ` % { $ { o ( y , 1 - y ) } }
` }const f=u+ ` 100 % { $ { o ( t , 1 - t ) } }
2023-03-19 14:17:36 +08:00
} ` ,c= ` _ _svelte _$ { pb ( f ) } _$ { r } ` ,d=D_(n),{stylesheet:p,rules:h}=mo.get(d)||mb(d,n);h[c]||(h[c]=!0,p.insertRule( ` @ keyframes $ { c } $ { f } ` ,p.cssRules.length));const g=n.style.animation||"";return n.style.animation= ` $ { g ? ` ${ g } , ` : "" } $ { c } $ { i } ms linear $ { s } ms 1 both ` ,ho+=1,c}function fl(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(", "),ho-=s,ho||hb())}function hb(){pa(()=>{ho||(mo.forEach(n=>{const{ownerNode:e}=n.stylesheet;e&&w(e)}),mo.clear())})}function _b(n,e,t,i){if(!e)return X;const s=n.getBoundingClientRect();if(e.left===s.left&&e.right===s.right&&e.top===s.top&&e.bottom===s.bottom)return X;const{delay:l=0,duration:o=300,easing:r=wl,start:a=Fo()+l,end:u=a+o,tick:f=X,css:c}=t(n,{from:e,to:s},i);let d=!0,p=!1,h;function g(){c&&(h=ul(n,0,1,o,l,r,c)),l||(p=!0)}function _(){c&&fl(n,h),d=!1}return Ro(y=>{if(!p&&y>=a&&(p=!0),p&&y>=u&&(f(1,0),_()),!d)return!1;if(p){const k=y-a,T=0+1*r(k/o);f(T,1-T)}return!0}),g(),f(0,1),_}function gb(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,A_(n,s)}}function A_(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 cl;function ai(n){cl=n}function Sl(){if(!cl)throw new Error("Function called outside component initialization");return cl}function Qt(n){Sl(). $ $ .on_mount.push(n)}function bb(n){Sl(). $ $ .after_update.push(n)}function I_(n){Sl(). $ $ .on_destroy.push(n)}function yt(){const n=Sl();return(e,t,{cancelable:i=!1}={})=>{const s=n. $ $ .callbacks[e];if(s){const l=E_(e,t,{cancelable:i});return s.slice().forEach(o=>{o.call(n,l)}),!l.defaultPrevented}return!0}}function de(n,e){const t=n. $ $ .callbacks[e.type];t&&t.slice().forEach(i=>i.call(this,e))}const gs=[],se=[];let vs=[];const Fr=[],P_=Promise.resolve();let Rr=!1;function L_(){Rr||(Rr=!0,P_.then(ma))}function rn(){return L_(),P_}function Xe(n){vs.push(n)}function ke(n){Fr.push(n)}const tr=new Set;let cs=0;function ma(){if(cs!==0)return;const n=cl;do{try{for(;cs<gs.length;){const e=gs[cs];cs++,ai(e),vb(e. $ $ )}}catch(e){throw gs.length=0,cs=0,e}for(ai(null),gs.length=0,cs=0;se.length;)se.pop()();for(let e=0;e<vs.length;e+=1){const t=vs[e];tr.has(t)||(tr.add(t),t())}vs.length=0}while(gs.length);for(;Fr.length;)Fr.pop()();Rr=!1,tr.clear(),ai(n)}function vb(n){if(n.fragment!==null){n.update(),Ae(n.before_update);const e=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,e),n.after_update.forEach(Xe)}}function yb(n){const e=[],t=[];vs.forEach(i=>n.indexOf(i)===-1?e.push(i):t.push(i)),t.forEach(i=>i()),vs=e}let qs;function ha(){return qs||(qs=Promise.resolve(),qs.then(()=>{qs=null})),qs}function Gi(n,e,t){n.dispatchEvent(E_( ` $ { e ? "intro" : "outro" } $ { t } ` ))}const ro=new Set;let Gn;function re(){Gn={r:0,c:[],p:Gn}}function ae(){Gn.r||Ae(Gn.c),Gn=Gn.p}function A(n,e){n&&n.i&&(ro.delete(n),n.i(e))}function I(n,e,t,i){if(n&&n.o){if(ro.has(n))return;ro.add(n),Gn.c.push(()=>{ro.delete(n),i&&(t&&n.d(1),i())}),n.o(e)}else i&&i()}const _a={duration:0};function kb(n,e,t){const i={direction:"in"};let s=e(n,t,i),l=!1,o,r,a=0;function u(){o&&fl(n,o)}function f(){const{delay:d=0,duration:p=300,easing:h=wl,tick:g=X,css:_}=s||_a;_&&(o=ul(n,0,1,p,d,h,_,a++)),g(0,1);const y=Fo()+d,k=y+p;r&&r.abort(),l=!0,Xe(()=>Gi(n,!0,"start")),r=Ro(T=>{if(l){if(T>=k)return g(1,0),Gi(n,!0,"end"),u(),l=!1;if(T>=y){const $ =h((T-y)/p);g( $ ,1- $ )}}return l})}let c=!1;return{start(){c||(c=!0,fl(n),Bt(s)?(s=s(i),ha().then(f)):f())},invalidate(){c=!1},end(){l&&(u(),l=!1)}}}function wb(n,e,t){const i={direction:"out"};let s=e(n,t,i),l=!0,o;const r=Gn;r.r+=1;function a(){const{delay:u=0,duration:f=300,easing:c=wl,tick:d=X,css:p}=s||_a;p&&(o=ul(n,1,0,f,u,c,p));const h=Fo()+u,g=h+f;Xe(()=>Gi(n,!1,"start")),Ro(_=>{if(l){if(_>=g)return d(0,1),Gi(n,!1,"end"),--r.r||Ae(r.c),!1;if(_>=h){con
2023-03-17 01:21:16 +08:00
` ,t+=e.columns.filter(i=>!!(i!=null&&i.column)).map(i=>{let s="";return i.column.includes("(")||i.column.includes(" ")?s+=i.column:s+= ` "${i.column}" ` ,i.collate&&(s+=" COLLATE "+i.collate),i.sort&&(s+=" "+i.sort.toUpperCase()),s}).join( ` ,
` ),t+= `
) ` ,e.expression&&(t+= ` WHERE $ { e . expression } ` ),t}static replaceIndexTableName(e,t){const i=H.parseIndex(e);return i.tableName=t,H.buildIndex(i)}static replaceIndexColumn(e,t,i){if(t===i)return e;const s=H.parseIndex(e);let l=!1;for(let o of s.columns)o.column===t&&(o.column=i,l=!0);return l?H.buildIndex(s):e}}const zo=Rn([]);function Vg(n,e=4e3){return Bo(n,"info",e)}function Ut(n,e=3e3){return Bo(n,"success",e)}function pl(n,e=4500){return Bo(n,"error",e)}function Zv(n,e=4500){return Bo(n,"warning",e)}function Bo(n,e,t){t=t||4e3;const i={message:n,type:e,duration:t,timeout:setTimeout(()=>{Hg(i)},t)};zo.update(s=>(Da(s,i.message),H.pushOrReplaceByKey(s,i,"message"),s))}function Hg(n){zo.update(e=>(Da(e,n),e))}function Oa(){zo.update(n=>{for(let e of n)Da(n,e);return[]})}function Da(n,e){let t;typeof e=="string"?t=H.findByKey(n,"message",e):t=e,t&&(clearTimeout(t.timeout),H.removeByKey(n,"message",t.message))}const ti=Rn({});function _n(n){ti.set(n||{})}function ci(n){ti.update(e=>(H.deleteByPath(e,n),e))}const Ea=Rn({});function Jr(n){Ea.set(n||{})}va.prototype.logout=function(n=!0){this.authStore.clear(),n&&Ei("/login")};va.prototype.errorResponseHandler=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&&pl(l)}if(H.isEmpty(s.data)||_n(s.data),i===401)return this.cancelAllRequests(),this.logout();if(i===403)return this.cancelAllRequests(),Ei("/")};class Gv extends H_{save(e,t){super.save(e,t),t instanceof es&&Jr(t)}clear(){super.clear(),Jr(null)}}const me=new va("../",new Gv("pb_admin_auth"));me.authStore.model instanceof es&&Jr(me.authStore.model);function Xv(n){let e,t,i,s,l,o,r,a,u,f,c,d;const p=n[3].default,h=Et(p,n,n[2],null);return{c(){e=v("div"),t=v("main"),h&&h.c(),i=D(),s=v("footer"),l=v("a"),l.innerHTML= ` < i class = "ri-book-open-line txt-sm" > < / i >
< span class = "txt" > Docs < /span>`,o=D(),r=v("span"),r.textContent="|",a=D(),u=v("a"),f=v("span"),f.textContent="PocketBase v0.14.0",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",c="page-wrapper "+n[1]),Q(e,"center-content",n[0])},m(g,_){S(g,e,_),b(e,t),h&&h.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),d=!0},p(g,[_]){h&&h.p&&(!d||_&4)&&It(h,p,g,g[2],d?At(p,g[2],_,null):Pt(g[2]),null),(!d||_&2&&c!==(c="page-wrapper "+g[1]))&&m(e,"class",c),(!d||_&3)&&Q(e,"center-content",g[0])},i(g){d||(A(h,g),d=!0)},o(g){I(h,g),d=!1},d(g){g&&w(e),h&&h.d(g)}}}function Qv(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 Cn extends ve{constructor(e){super(),be(this,e,Qv,Xv,_e,{center:0,class:1})}}function zu(n){let e,t,i;return{c(){e=v("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 = v ( " 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 x v ( n ) { l e t e , t , i , s = ! n [ 0 ] & & z u ( ) ; c o n s t l = n [ 1 ] . d e f a u l t , o = E t ( l , n , n [ 2 ] , n u l l ) ; r e t u r n { c ( ) { e = v ( " 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 = z u ( ) , s . c ( ) , s . m ( e , t ) ) , o & & o . p & & ( ! i | | a & 4 ) & & I t ( o , l , r , r [ 2 ] , i ? A t ( l , r [ 2 ] , a , n u l l ) : P t ( r [ 2 ] ) , n u l l ) } , i ( r ) { i | | ( A ( o , r ) , i = ! 0 ) } , o ( r ) { I ( o , r ) , i = ! 1 } , d ( r ) { r & & w ( e ) , s & & s . d ( ) , o & & o . d ( r ) } } } f u n c t i o n e y ( n ) { l e t e , t ; r e t u r n e = n e w C 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 : [ x v ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { V ( e . $ $ . f r a g m e n t ) } , m ( i , s ) { q ( 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 | | ( A ( e . $ $ . f r a g m e n t , i ) , t = ! 0 ) } , o ( i ) { I ( e . $ $ . f r a g m e n t , i ) , t = ! 1 } , d ( i ) { j ( e , i ) } } } f u n c t i o n t 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 z g e x t e n d s v e { c o n s t r u c t o r ( e ) { s u p e r ( ) , b e ( t h i s , e , t y , e y , _ e , { n o b r a n d i n g : 0 } ) } } f u n c t i o n U 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 v o ( 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 = w 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 e 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 = U 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 ) , [ c , d ] = a u ( s ) , [ p , h ] = a 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 : ( g , _ ) = > `
transform : $ { u } translate ( $ { ( 1 - g ) * c } $ { d } , $ { ( 1 - g ) * p } $ { h } ) ;
2023-03-19 14:17:36 +08:00
opacity : $ { a - f * _ } ` }}function vt(n,{delay:e=0,duration:t=400,easing:i=Uo,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(y=> ` $ { y [ 0 ] . toUpperCase ( ) } $ { y . slice ( 1 ) } ` ),c=parseFloat(l[ ` padding$ { f [ 0 ] } ` ]),d=parseFloat(l[ ` padding$ { f [ 1 ] } ` ]),p=parseFloat(l[ ` margin$ { f [ 0 ] } ` ]),h=parseFloat(l[ ` margin$ { f [ 1 ] } ` ]),g=parseFloat(l[ ` border$ { f [ 0 ] } Width ` ]),_=parseFloat(l[ ` border$ { f [ 1 ] } Width ` ]);return{delay:e,duration:t,easing:i,css:y=> ` overflow : hidden ; opacity : $ { Math . min ( y * 20 , 1 ) * o } ; $ { r } : $ { y * a } px ; padding - $ { u [ 0 ] } : $ { y * c } px ; padding - $ { u [ 1 ] } : $ { y * d } px ; margin - $ { u [ 0 ] } : $ { y * p } px ; margin - $ { u [ 1 ] } : $ { y * h } px ; border - $ { u [ 0 ] } - width : $ { y * g } px ; border - $ { u [ 1 ] } - width : $ { y * _ } px ; ` }}function qt(n,{delay:e=0,duration:t=400,easing:i=Uo,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:(c,d)=> `
2023-03-17 01:21:16 +08:00
transform : $ { a } scale ( $ { 1 - u * d } ) ;
opacity : $ { r - f * d }
` }}let Zr,Hi;const Gr="app-tooltip";function Bu(n){return typeof n=="string"?{text:n,position:"bottom",hideOnClick:null}:n||{}}function Si(){return Hi=Hi||document.querySelector("."+Gr),Hi||(Hi=document.createElement("div"),Hi.classList.add(Gr),document.body.appendChild(Hi)),Hi}function Bg(n,e){let t=Si();if(!t.classList.contains("active")||!(e!=null&&e.text)){Xr();return}t.textContent=e.text,t.className=Gr+" 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 Xr(){clearTimeout(Zr),Si().classList.remove("active"),Si().activeNode=void 0}function ny(n,e){Si().activeNode=n,clearTimeout(Zr),Zr=setTimeout(()=>{Si().classList.add("active"),Bg(n,e)},isNaN(e.delay)?0:e.delay)}function ze(n,e){let t=Bu(e);function i(){ny(n,t)}function s(){Xr()}return n.addEventListener("mouseenter",i),n.addEventListener("mouseleave",s),n.addEventListener("blur",s),(t.hideOnClick===!0||t.hideOnClick===null&&H.isFocusable(n))&&n.addEventListener("click",s),Si(),{update(l){var o,r;t=Bu(l),(r=(o=Si())==null?void 0:o.activeNode)!=null&&r.contains(n)&&Bg(n,t)},destroy(){var l,o;(o=(l=Si())==null?void 0:l.activeNode)!=null&&o.contains(n)&&Xr(),n.removeEventListener("mouseenter",i),n.removeEventListener("mouseleave",s),n.removeEventListener("blur",s),n.removeEventListener("click",s)}}}function Uu(n,e,t){const i=n.slice();return i[12]=e[t],i}const iy=n=>({}),Wu=n=>({uniqueId:n[4]});function sy(n){let e,t,i=n[3],s=[];for(let o=0;o<i.length;o+=1)s[o]=Yu(Uu(n,i,o));const l=o=>I(s[o],1,1,()=>{s[o]=null});return{c(){for(let o=0;o<s.length;o+=1)s[o].c();e=we()},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=Uu(o,i,a);s[a]?(s[a].p(u,r),A(s[a],1)):(s[a]=Yu(u),s[a].c(),A(s[a],1),s[a].m(e.parentNode,e))}for(re(),a=i.length;a<s.length;a+=1)l(a);ae()}},i(o){if(!t){for(let r=0;r<i.length;r+=1)A(s[r]);t=!0}},o(o){s=s.filter(Boolean);for(let r=0;r<s.length;r+=1)I(s[r]);t=!1},d(o){at(s,o),o&&w(e)}}}function ly(n){let e,t,i,s,l,o,r;return{c(){e=v("div"),t=v("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=De(i=ze.call(null,t,{position:"left",text:n[3].map(yo).join( `
` )})),o=!0)},p(a,u){i&&Bt(i.update)&&u&8&&i.update.call(null,{position:"left",text:a[3].map(yo).join( `
2023-03-19 14:17:36 +08:00
` )})},i(a){l||(a&&Xe(()=>{l&&(s||(s=qe(t,qt,{duration:150,start:.7},!0)),s.run(1))}),l=!0)},o(a){a&&(s||(s=qe(t,qt,{duration:150,start:.7},!1)),s.run(0)),l=!1},d(a){a&&w(e),a&&s&&s.end(),o=!1,r()}}}function Yu(n){let e,t,i=yo(n[12])+"",s,l,o,r;return{c(){e=v("div"),t=v("pre"),s=B(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=yo(a[12])+"")&&le(s,i)},i(a){r||(a&&Xe(()=>{r&&(o||(o=qe(e,vt,{duration:150},!0)),o.run(1))}),r=!0)},o(a){a&&(o||(o=qe(e,vt,{duration:150},!1)),o.run(0)),r=!1},d(a){a&&w(e),a&&o&&o.end()}}}function oy(n){let e,t,i,s,l,o,r;const a=n[9].default,u=Et(a,n,n[8],Wu),f=[ly,sy],c=[];function d(p,h){return p[0]&&p[3].length?0:1}return i=d(n),s=c[i]=f[i](n),{c(){e=v("div"),u&&u.c(),t=D(),s.c(),m(e,"class",n[1]),Q(e,"error",n[3].length)},m(p,h){S(p,e,h),u&&u.m(e,null),b(e,t),c[i].m(e,null),n[11](e),l=!0,o||(r=K(e,"click",n[10]),o=!0)},p(p,[h]){u&&u.p&&(!l||h&256)&&It(u,a,p,p[8],l?At(a,p[8],h,iy):Pt(p[8]),Wu);let g=i;i=d(p),i===g?c[i].p(p,h):(re(),I(c[g],1,1,()=>{c[g]=null}),ae(),s=c[i],s?s.p(p,h):(s=c[i]=f[i](p),s.c()),A(s,1),s.m(e,null)),(!l||h&2)&&m(e,"class",p[1]),(!l||h&10)&&Q(e,"error",p[3].length)},i(p){l||(A(u,p),A(s),l=!0)},o(p){I(u,p),I(s),l=!1},d(p){p&&w(e),u&&u.d(p),c[i].d(),n[11](null),o=!1,r()}}}const Ku="Invalid value";function yo(n){return typeof n=="object"?(n==null?void 0:n.message)||(n==null?void 0:n.code)||Ku:n||Ku}function ry(n,e,t){let i;We(n,ti,g=>t(7,i=g));let{ $ $ slots:s={}, $ $ scope:l}=e;const o="field_"+H.randomString(7);let{name:r=""}=e,{inlineError:a=!1}=e,{class:u=void 0}=e,f,c=[];function d(){ci(r)}Qt(()=>(f.addEventListener("input",d),f.addEventListener("change",d),()=>{f.removeEventListener("input",d),f.removeEventListener("change",d)}));function p(g){de.call(this,n,g)}function h(g){se[g?"unshift":"push"](()=>{f=g,t(2,f)})}return n. $ $ set=g=>{"name"in g&&t(5,r=g.name),"inlineError"in g&&t(0,a=g.inlineError),"class"in g&&t(1,u=g.class)," $ $ scope"in g&&t(8,l=g. $ $ scope)},n. $ $ .update=()=>{n. $ $ .dirty&160&&t(3,c=H.toArray(H.getNestedVal(i,r)))},[a,u,f,c,o,r,d,i,l,s,p,h]}class pe extends ve{constructor(e){super(),be(this,e,ry,oy,_e,{name:5,inlineError:0,class:1,changed:6})}get changed(){return this. $ $ .ctx[6]}}function ay(n){let e,t,i,s,l,o,r,a;return{c(){e=v("label"),t=B("Email"),s=D(),l=v("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),ue(l,n[0]),l.focus(),r||(a=K(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]&&ue(l,u[0])},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function uy(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=v("label"),t=B("Password"),s=D(),l=v("input"),r=D(),a=v("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(c,d){S(c,e,d),b(e,t),S(c,s,d),S(c,l,d),ue(l,n[1]),S(c,r,d),S(c,a,d),u||(f=K(l,"input",n[6]),u=!0)},p(c,d){d&512&&i!==(i=c[9])&&m(e,"for",i),d&512&&o!==(o=c[9])&&m(l,"id",o),d&2&&l.value!==c[1]&&ue(l,c[1])},d(c){c&&w(e),c&&w(s),c&&w(l),c&&w(r),c&&w(a),u=!1,f()}}}function fy(n){let e,t,i,s,l,o,r,a;return{c(){e=v("label"),t=B("Password confirm"),s=D(),l=v("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),ue(l,n[2]),r||(a=K(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]&&ue(l,u[2])},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function cy(n){let e,t,i,s,l,o,r,a,u,f,c,d,p;return s=new pe({props:{class:"form-field required",name:"email", $ $ slots:{default:[ay,({uniqueId:h})=>({9:h}),({uniqueId:h})=>h?512:0]}, $ $ scope:{ctx:n}}}),o=new pe({props:{class:"form-field required",name:"password", $ $ slots:{default:[uy,({uniqueId:h})=>({9:h}),({uniqueId:h})=>h?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 " ) , Q ( f , " b t n - d i s a b l e d " , n [ 3 ] ) , Q ( 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 ( h , g ) { S ( h , e , g ) , b ( e , t ) , b ( e , i ) , q ( s , e , n u l l ) , b ( e , l ) , q ( o , e , n u l l ) , b ( e , r ) , q ( a , e , n u l l ) , b ( e , u ) , b ( e , f ) , c = ! 0 , d | | ( p = K ( e , " s u b m i t " , f t ( n [ 4 ] ) ) , d = ! 0 ) } , p ( h , [ g ] ) { c o n s t _ = { } ; g & 1 5 3 7 & & ( _ . $ $ s c o p e = { d i r t y : g , c t x : h } ) , s . $ s e t ( _ ) ; c o n s t y = { } ; g & 1 5 3 8 & & ( y . $ $ s c o p e = { d i r t y : g , c t x : h } ) , o . $ s e t ( y ) ; c o n s t k = { } ; g & 1 5 4 0 & & ( k . $ $ s c o p e = { d i r t y : g , c t x : h } ) , a . $ s e t ( k ) , ( ! c | | g & 8 ) & & Q ( f , " b t n - d i s a b l e d " , h [ 3 ] ) , ( ! c | | g & 8 ) & & Q ( f , " b t n - l o a d i n g " , h [ 3 ] ) } , i ( h ) { c | | ( A ( s . $ $ . f r a g m e n t , h ) , A ( o . $ $ . f r a g m e n t , h ) , A ( a . $ $ . f r a g m e n t , h ) , c = ! 0 ) } , o ( h ) { I ( s . $ $ . f r a g m e n t , h ) , I ( o . $ $ . f r a g m e n t , h ) , I ( a . $ $ . f r a g m e n t , h ) , c = ! 1 } , d ( h ) { h & & w ( e ) , j ( s ) , j ( o ) , j ( a ) , d = ! 1 , p ( ) } } } f u n c t i o n d y ( n , e , t ) { c o n s t i = y 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 m 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 m 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 ( d ) { m e . e r r o r R e s p o n s e H a n d l e r ( d ) } 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 c ( ) { 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 , c ] } c l a s s p y e x t e n d s v e { c o n s t r u c t o r ( e ) { s u p e r ( ) , b e ( t h i s , e , d y , c y , _ e , { } ) } } f u n c t i o n J u ( n ) { l e t e , t ; r e t u r n e = n e w z g ( { p r o p s : { $ $ s l o t s : { d e f a u l t : [ m y ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { V ( e . $ $ . f r a g m e n t ) } , m ( i , s ) { q ( 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 | | ( A ( e . $ $ . f r a g m e n t , i ) , t = ! 0 ) } , o ( i ) { I ( e . $ $ . f r a g m e n t , i ) , t = ! 1 } , d ( i ) { j ( e , i ) } } } f u n c t i o n m y ( n ) { l e t e , t ; r e t u r n e = n e w p y ( { } ) , e . $ o n ( " s u b m i t " , n [ 1 ] ) , { c ( ) { V ( e . $ $ . f r a g m e n t ) } , m ( i , s ) { q ( e , i , s ) , t = ! 0 } , p : X , i ( i ) { t | | ( A ( e . $ $ . f r a g m e n t , i ) , t = ! 0 ) } , o ( i ) { I ( e . $ $ . f r a g m e n t , i ) , t = ! 1 } , d ( i ) { j ( e , i ) } } } f u n c t i o n h y ( n ) { l e t e , t , i = n [ 0 ] & & J u ( n ) ; r e t u r n { c ( ) { i & & i . c ( ) , e = w 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 & & A ( i , 1 ) ) : ( i = J u ( s ) , i . c ( ) , A ( i , 1 ) , i . m ( e . p a r e n t N o d e , e ) ) : i & & ( r e ( ) , I ( i , 1 , 1 , ( ) = > { i = n u l l } ) , a e ( ) ) } , i ( s ) { t | | ( A ( i ) , t = ! 0 ) } , o ( s ) { I ( i ) , t = ! 1 } , d ( s ) { i & & i . d ( s ) , s & & w ( e ) } } } f u n c t i o n _ y ( 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 " ) ) { m e . l o g o u t ( ! 1 ) , t ( 0 , i = ! 0 ) ; r e t u r n } m e . a u t h S t o r e . i s V a l i d ? E i ( " / c o l l e c t i o n s " ) : m 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 r 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 g y e x t e n d s v e { c o n s t r u c t o r ( e ) { s u p e r ( ) , b e ( t h i s , e , _ y , h y , _ e , { } ) } } c o n s t O t = R n ( " " ) , k o = R n ( " " ) , C s = R n ( ! 1 ) ; f u n c t i o n b y ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = v ( " 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 ) , u e ( e , n [ 7 ] ) , i | | ( s = K ( 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 ] & & u e ( e , l [ 7 ] ) } , i : X , o : X , d ( l ) { l & & w ( e ) , n [ 1 3 ] ( n u l l ) , i = ! 1 , s ( ) } } } f u n c t i o n v y ( 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 = C t ( o , r ( n ) ) , s e . p u s h ( ( ) = > g e ( e , " v a l u e " , l ) ) , e . $ o n ( " s u b m i t " , n [ 1 0 ] ) ) , { c ( ) { e & & V ( e . $ $ . f r a g m e n t ) , i = w e ( ) } , m ( a , u ) { e & & q ( 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 ] , k e ( ( ) = > t = ! 1 ) ) , u & 1 6 & & o ! = = ( o = a [ 4 ] ) ) { i f ( e ) { r e ( ) ; c o n s t c = e ; I ( c . $ $ . f r a g m e n t , 1 , 0 , ( ) = > { j ( c , 1 ) } ) , a e ( ) } o ? ( e = C t ( o , r ( a ) ) , s e . p u s h ( ( ) = > g e ( e , " v a l u e " , l ) ) , e . $ o n ( " s u b m i t " , a [ 1 0 ] ) , V ( e . $ $ . f r a g m e n t ) , A ( e . $ $ . f r a g m e n t , 1 ) , q ( 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 & & A ( e . $ $ . f r a g m e n t , a ) , s = ! 0 ) } , o ( a ) { e & & I ( e . $ $ . f r a g m e n t , a ) , s = ! 1 } , d ( a ) { a & & w ( i ) , e & & j ( e , a ) } } } f u n c t i o n Z u ( n ) { l e t e , t , i ; r e t u r n { c ( ) { e = v ( " 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 = q e ( e , e 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 = q e ( e , e 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 G u ( n ) { l e t e , t , i , s , l ; r e t u r n { c ( ) { e = v ( " 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 "
2023-03-17 01:21:16 +08:00
< 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 : X , d ( t ) { t & & w ( e ) } } } f u n c t i o n N y ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " i " ) , i = D ( ) , s = v ( " 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 " , H . 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 : X , d ( l ) { l & & w ( e ) } } } f u n c t i o n F y ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " i " ) , i = D ( ) , s = v ( " 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 " , H . 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 : X , d ( l ) { l & & w ( e ) } } } f u n c t i o n R y ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " i " ) , i = D ( ) , s = v ( " 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 " , H . 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 : X , d ( l ) { l & & w ( e ) } } } f u n c t i o n q y ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " i " ) , i = D ( ) , s = v ( " 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 " , H . 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 : X , d ( l ) { l & & w ( e ) } } } f u n c t i o n j y ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " i " ) , i = D ( ) , s = v ( " 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 " , H . 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 : X , d ( l ) { l & & w ( e ) } } } f u n c t i o n e 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 ] ? H y : V y } l e t i = t ( n ) , s = i ( n ) ; r e t u r n { c ( ) { s . c ( ) , e = w 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 V y ( 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 ) & & t f ( n ) ; r e t u r n { c ( ) { e = v ( " t r " ) , t = v ( " t d " ) , i = v ( " 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 = t 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 H y ( n ) { l e t e ; r e t u r n { c ( ) { e = v ( " 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 >
2023-03-19 14:17:36 +08:00
` },m(t,i){S(t,e,i)},p:X,d(t){t&&w(e)}}}function tf(n){let e,t,i;return{c(){e=v("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=K(e,"click",n[19]),t=!0)},p:X,d(s){s&&w(e),t=!1,i()}}}function nf(n){let e;return{c(){e=v("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 sf(n,e){var $ e,Ye,dt;let t,i,s,l=(( $ e=e[23].method)==null?void 0: $ e.toUpperCase())+"",o,r,a,u,f,c=e[23].url+"",d,p,h,g,_,y,k=(e[23].referer||"N/A")+"",T, $ ,M,C,O,E=(e[23].userIp||"N/A")+"",P,L,F,N,R,z=e[23].status+"",W,J,x,ne,G,fe,Z,ce,he,Ce,Re=(((Ye=e[23].meta)==null?void 0:Ye.errorMessage)||((dt=e[23].meta)==null?void 0:dt.errorData))&&nf();ne=new di({props:{date:e[23].created}});function je(){return e[17](e[23])}function ye(...Ke){return e[18](e[23],...Ke)}return{key:n,first:null,c(){t=v("tr"),i=v("td"),s=v("span"),o=B(l),a=D(),u=v("td"),f=v("span"),d=B(c),h=D(),Re&&Re.c(),g=D(),_=v("td"),y=v("span"),T=B(k),M=D(),C=v("td"),O=v("span"),P=B(E),F=D(),N=v("td"),R=v("span"),W=B(z),J=D(),x=v("td"),V(ne. $ $ .fragment),G=D(),fe=v("td"),fe.innerHTML='<i class="ri-arrow-right-line"></i>',Z=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",p=e[23].url),m(u,"class","col-type-text col-field-url"),m(y,"class","txt txt-ellipsis"),m(y,"title", $ =e[23].referer),Q(y,"txt-hint",!e[23].referer),m(_,"class","col-type-text col-field-referer"),m(O,"class","txt txt-ellipsis"),m(O,"title",L=e[23].userIp),Q(O,"txt-hint",!e[23].userIp),m(C,"class","col-type-number col-field-userIp"),m(R,"class","label"),Q(R,"label-danger",e[23].status>=400),m(N,"class","col-type-number col-field-status"),m(x,"class","col-type-date col-field-created"),m(fe,"class","col-type-action min-width"),m(t,"tabindex","0"),m(t,"class","row-handle"),this.first=t},m(Ke,Be){S(Ke,t,Be),b(t,i),b(i,s),b(s,o),b(t,a),b(t,u),b(u,f),b(f,d),b(u,h),Re&&Re.m(u,null),b(t,g),b(t,_),b(_,y),b(y,T),b(t,M),b(t,C),b(C,O),b(O,P),b(t,F),b(t,N),b(N,R),b(R,W),b(t,J),b(t,x),q(ne,x,null),b(t,G),b(t,fe),b(t,Z),ce=!0,he||(Ce=[K(t,"click",je),K(t,"keydown",ye)],he=!0)},p(Ke,Be){var Fe,Qe,Wt;e=Ke,(!ce||Be&8)&&l!==(l=((Fe=e[23].method)==null?void 0:Fe.toUpperCase())+"")&&le(o,l),(!ce||Be&8&&r!==(r="label txt-uppercase "+e[9][e[23].method.toLowerCase()]))&&m(s,"class",r),(!ce||Be&8)&&c!==(c=e[23].url+"")&&le(d,c),(!ce||Be&8&&p!==(p=e[23].url))&&m(f,"title",p),(Qe=e[23].meta)!=null&&Qe.errorMessage||(Wt=e[23].meta)!=null&&Wt.errorData?Re||(Re=nf(),Re.c(),Re.m(u,null)):Re&&(Re.d(1),Re=null),(!ce||Be&8)&&k!==(k=(e[23].referer||"N/A")+"")&&le(T,k),(!ce||Be&8&& $ !==( $ =e[23].referer))&&m(y,"title", $ ),(!ce||Be&8)&&Q(y,"txt-hint",!e[23].referer),(!ce||Be&8)&&E!==(E=(e[23].userIp||"N/A")+"")&&le(P,E),(!ce||Be&8&&L!==(L=e[23].userIp))&&m(O,"title",L),(!ce||Be&8)&&Q(O,"txt-hint",!e[23].userIp),(!ce||Be&8)&&z!==(z=e[23].status+"")&&le(W,z),(!ce||Be&8)&&Q(R,"label-danger",e[23].status>=400);const ee={};Be&8&&(ee.date=e[23].created),ne. $ set(ee)},i(Ke){ce||(A(ne. $ $ .fragment,Ke),ce=!0)},o(Ke){I(ne. $ $ .fragment,Ke),ce=!1},d(Ke){Ke&&w(t),Re&&Re.d(),j(ne),he=!1,Ae(Ce)}}}function zy(n){let e,t,i,s,l,o,r,a,u,f,c,d,p,h,g,_,y,k,T, $ ,M,C,O,E,P=[],L=new Map,F;function N(ye){n[11](ye)}let R={disable:!0,class:"col-field-method",name:"method", $ $ slots:{default:[Ly]}, $ $ scope:{ctx:n}};n[1]!==void 0&&(R.sort=n[1]),s=new Jt({props:R}),se.push(()=>ge(s,"sort",N));function z(ye){n[12](ye)}let W={disable:!0,class:"col-type-text col-field-url",name:"url", $ $ slots:{default:[Ny]}, $ $ scope:{ctx:n}};n[1]!==void 0&&(W.sort=n[1]),r=new Jt({props:W}),se.push(()=>ge(r,"sort",z));function J(ye){n[13](ye)}let x={disable:!0,class:"col-type-text col-field-referer",name:"referer", $ $ slots:{default:[Fy]}, $ $ scope:{ctx:n}};n[1]!==void 0&&(x.sort=n[1]),f=new Jt({props:x}),se.push(()=>ge(f,"sort",J));function ne(ye){n[14](ye)}let G={disable:!0,class:"col-type-number col-field-userI
2023-03-17 01:21:16 +08:00
* Chart . js v3 . 9.1
* https : //www.chartjs.org
* ( c ) 2022 Chart . js Contributors
* Released under the MIT License
2023-03-19 14:17:36 +08:00
* / f u n c t i o n s i ( ) { } c o n s t Y y = 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 u 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 g 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 Z e ( 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 L 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 D n ( n , e ) { r e t u r n L t ( n ) ? n : e } f u n c t i o n e t ( n , e ) { r e t u r n t y p e o f n > " u " ? e : n } c o n s t K y = ( 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 , U g = ( 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 T 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 c t ( n , e , t , i ) { l e t s , l , o ; i f ( g 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 ( Z e ( 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 w 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 S o ( n ) { i f ( g t ( n ) ) r e t u r n n . m a p ( S o ) ; i f ( Z e ( 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 ] ] = S 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 W g ( 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 J y ( n , e , t , i ) { i f ( ! W g ( n ) ) r e t u r n ; c o n s t s = e [ n ] , l = t [ n ] ; Z e ( s ) & & Z e ( l ) ? m l ( s , l , i ) : e [ n ] = S o ( l ) } f u n c t i o n m l ( n , e , t ) { c o n s t i = g t ( e ) ? e : [ e ] , s = i . l e n g t h ; i f ( ! Z e ( n ) ) r e t u r n n ; t = t | | { } ; c o n s t l = t . m e r g e r | | J y ; f o r ( l e t o = 0 ; o < s ; + + o ) { i f ( e = i [ o ] , ! Z e ( 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 n l ( n , e ) { r e t u r n m l ( n , e , { m e r g e r : Z y } ) } f u n c t i o n Z y ( n , e , t ) { i f ( ! W g ( n ) ) r e t u r n ; c o n s t i = e [ n ] , s = t [ n ] ; Z e ( i ) & & Z e ( s ) ? n 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 ] = S o ( s ) ) } c o n s t r f = { " " : n = > n , x : n = > n . x , y : n = > n . y } ; f u n c t i o n M i ( n , e ) { r e t u r n ( r f [ e ] | | ( r f [ e ] = G y ( e ) ) ) ( n ) } f u n c t i o n G y ( n ) { c o n s t e = X y ( 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 X y ( 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 P 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 N n = n = > t y p e o f n < " u " , O i = n = > t y p e o f n = = " f u n c t i o n " , a 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 y ( 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 D t = M a t h . P I , m t = 2 * D t , x y = m t + D t , T o = N u m b e r . P O S I T I V E _ I N F I N I T Y , e 2 = D t / 1 8 0 , $ t = D t / 2 , B s = D t / 4 , u f = D t * 2 / 3 , P n = M a t h . l o g 1 0 , Q n = M a t h . s i g n ; f u n c t i o n f f ( n ) { c o n s t e = M a t h . r o u n d ( n ) ; n = i 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 ( P 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 t 2 ( 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 M 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 i 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 n 2 ( 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 Y g ( 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 B n ( n ) { r e t u r n n * ( D t / 1 8 0 ) } f u n c t i o n L a ( n ) { r e t u r n n * ( 1 8 0 / D t ) } f u n c t i o n c f ( n ) { i f ( ! L 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 K g ( 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 * D t & & ( l + = m t ) , { a n g l e : l , d i s t a n c e : s } } f u n c t i o n Q r ( 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 i 2 ( n , e ) { r e t u r n ( n - e + x y ) % m t - D t } f u n c t i o n w n ( n ) { r e t u r n ( n % m t + m t ) % m t } f u n c t i o n h l ( n , e , t , i ) { c o n s t s = w n ( n ) , l = w n ( e ) , o = w n ( t ) , r = w n ( l - s ) , a = w n ( o - s ) , u = w n ( s - l ) , f = w 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 Z t ( 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 s 2 ( n ) { r e t u r n Z t ( n , - 3 2 7 6 8 , 3 2 7 6 7 ) } f u n c t i o n _ 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 N 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 Z i = ( n , e , t , i ) = > N a ( n , t , i ? s = > n [ s ] [ e ] < = t : s = > n [ s ] [ e ] < t ) , l 2 = ( n , e , t ) = > N a ( n , t , i = > n [ i ] [ e ] > = t ) ; f u n c t i o n o 2 ( n , e ,
2023-03-17 01:21:16 +08:00
* @ kurkle / color v0 . 2.1
* https : //github.com/kurkle/color#readme
* ( c ) 2022 Jukka Kurkela
* Released under the MIT License
2023-03-19 14:17:36 +08:00
* / f u n c t i o n E l ( n ) { r e t u r n n + . 5 | 0 } c o n s t y 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 Q s ( n ) { r e t u r n y i ( E l ( n * 2 . 5 5 ) , 0 , 2 5 5 ) } f u n c t i o n T i ( n ) { r e t u r n y i ( E 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 y i ( E l ( n / 2 . 5 5 ) / 1 0 0 , 0 , 1 ) } f u n c t i o n _ f ( n ) { r e t u r n y i ( E l ( n * 1 0 0 ) , 0 , 1 0 0 ) } c o n s t O 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 } , x r = [ . . . " 0 1 2 3 4 5 6 7 8 9 A B C D E F " ] , f 2 = n = > x r [ n & 1 5 ] , c 2 = n = > x r [ ( n & 2 4 0 ) > > 4 ] + x r [ n & 1 5 ] , Y l = n = > ( n & 2 4 0 ) > > 4 = = = ( n & 1 5 ) , d 2 = n = > Y l ( n . r ) & & Y l ( n . g ) & & Y l ( n . b ) & & Y l ( n . a ) ; f u n c t i o n p 2 ( 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 & O n [ n [ 1 ] ] * 1 7 , g : 2 5 5 & O n [ n [ 2 ] ] * 1 7 , b : 2 5 5 & O n [ n [ 3 ] ] * 1 7 , a : e = = = 5 ? O n [ n [ 4 ] ] * 1 7 : 2 5 5 } : ( e = = = 7 | | e = = = 9 ) & & ( t = { r : O n [ n [ 1 ] ] < < 4 | O n [ n [ 2 ] ] , g : O n [ n [ 3 ] ] < < 4 | O n [ n [ 4 ] ] , b : O n [ n [ 5 ] ] < < 4 | O n [ n [ 6 ] ] , a : e = = = 9 ? O n [ n [ 7 ] ] < < 4 | O n [ n [ 8 ] ] : 2 5 5 } ) ) , t } c o n s t m 2 = ( n , e ) = > n < 2 5 5 ? e ( n ) : " " ; f u n c t i o n h 2 ( n ) { v a r e = d 2 ( n ) ? f 2 : c 2 ; r e t u r n n ? " # " + e ( n . r ) + e ( n . g ) + e ( n . b ) + m 2 ( n . a , e ) : v o i d 0 } c o n s t _ 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 e 1 ( 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 g 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 b 2 ( n , e , t ) { c o n s t i = e 1 ( 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 v 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 F 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 = v 2 ( t , i , s , f , l ) , a = a * 6 0 + . 5 ) , [ a | 0 , u | | 0 , r ] } f u n c t i o n R 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 ( T i ) } f u n c t i o n q a ( n , e , t ) { r e t u r n R a ( e 1 , n , e , t ) } f u n c t i o n y 2 ( n , e , t ) { r e t u r n R a ( b 2 , n , e , t ) } f u n c t i o n k 2 ( n , e , t ) { r e t u r n R a ( g 2 , n , e , t ) } f u n c t i o n t 1 ( 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 w 2 ( n ) { c o n s t e = _ 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 ] ? Q s ( + e [ 5 ] ) : T i ( + e [ 5 ] ) ) ; c o n s t s = t 1 ( + 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 = y 2 ( s , l , o ) : e [ 1 ] = = = " h s v " ? i = k 2 ( s , l , o ) : i = q a ( s , l , o ) , { r : i [ 0 ] , g : i [ 1 ] , b : i [ 2 ] , a : t } } f u n c t i o n S 2 ( n , e ) { v a r t = F a ( n ) ; t [ 0 ] = t 1 ( t [ 0 ] + e ) , t = q a ( t ) , n . r = t [ 0 ] , n . g = t [ 1 ] , n . b = t [ 2 ] } f u n c t i o n T 2 ( n ) { i f ( ! n ) r e t u r n ; c o n s t e = F a ( n ) , t = e [ 0 ] , i = _ f ( e [ 1 ] ) , s = _ f ( e [ 2 ] ) ; r e t u r n n . a < 2 5 5 ? ` h s l a ( $ { t } , $ { i } % , $ { s } % , $ { r i ( n . a ) } ) ` : ` h s l ( $ { t } , $ { i } % , $ { s } % ) ` } c o n s t g 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 " } , b 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-03-17 01:21:16 +08:00
* Chart . js v3 . 9.1
* https : //www.chartjs.org
* ( c ) 2022 Chart . js Contributors
* Released under the MIT License
2023-03-19 14:17:36 +08:00
* /class Mk{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=Gg.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 li=new Mk;const Ef="transparent",Ok={boolean(n,e,t){return t>.5?e:n},color(n,e,t){const i=yf(n||Ef),s=i.valid&&yf(e||Ef);return s&&s.valid?s.mix(i,t).hexString():e},number(n,e,t){return n+(e-n)*t}};class Dk{constructor(e,t,i,s){const l=t[i];s=Zl([e.to,s,l,e.from]);const o=Zl([e.from,l,s]);this._active=!0,this._fn=e.fn||Ok[e.type||typeof o],this._easing=sl[e.easing]||sl.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=Zl([e.to,t,s,e.from]),this._from=Zl([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 Ek = [ "x" , "y" , "borderWidth" , "radius" , "tension" ] , Ak = [ "color" , "borderColor" , "backgroundColor" ] ; tt . 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 Ik = Object . keys ( tt . animation ) ; tt . describe ( "animation" , { _fallback : ! 1 , _indexable : ! 1 , _scriptable : n => n !== "onProgress" && n !== "onComplete" && n !== "fn" } ) ; tt . set ( "animations" , { colors : { type : "color" , properties : Ak } , numbers : { type : "number" , properties : Ek } } ) ; tt . describe ( "animations" , { _fallback : "animation" } ) ; tt . 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 _1 { constructor ( e , t ) { this . _chart = e , this . _properties = new Map , this . configure ( t ) } configure ( e ) { if ( ! Ze ( e ) ) return ; const t = this . _properties ; Object . getOwnPropertyNames ( e ) . forEach ( i => { const s = e [ i ] ; if ( ! Ze ( s ) ) return ; const l = { } ; for ( con
2023-03-17 01:21:16 +08:00
` )>-1?n.split( `
2023-03-19 14:17:36 +08:00
` ):n}function J3(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 rc(n,e){const t=n.chart.ctx,{body:i,footer:s,title:l}=n,{boxWidth:o,boxHeight:r}=e,a=Sn(e.bodyFont),u=Sn(e.titleFont),f=Sn(e.footerFont),c=l.length,d=s.length,p=i.length,h=Fn(e.padding);let g=h.height,_=0,y=i.reduce(( $ ,M)=> $ +M.before.length+M.lines.length+M.after.length,0);if(y+=n.beforeBody.length+n.afterBody.length,c&&(g+=c*u.lineHeight+(c-1)*e.titleSpacing+e.titleMarginBottom),y){const $ =e.displayColors?Math.max(r,a.lineHeight):a.lineHeight;g+=p* $ +(y-p)*a.lineHeight+(y-1)*e.bodySpacing}d&&(g+=e.footerMarginTop+d*f.lineHeight+(d-1)*e.footerSpacing);let k=0;const T=function( $ ){_=Math.max(_,t.measureText( $ ).width+k)};return t.save(),t.font=u.string,ct(n.title,T),t.font=a.string,ct(n.beforeBody.concat(n.afterBody),T),k=e.displayColors?o+2+e.boxPadding:0,ct(i, $ =>{ct( $ .before,T),ct( $ .lines,T),ct( $ .after,T)}),k=0,t.font=f.string,ct(n.footer,T),t.restore(),_+=h.width,{width:_,height:g}}function Z3(n,e){const{y:t,height:i}=e;return t<i/2?"top":t>n.height-i/2?"bottom":"center"}function G3(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 X3(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"),G3(u,n,e,t)&&(u="center"),u}function ac(n,e,t){const i=t.yAlign||e.yAlign||Z3(n,t);return{xAlign:t.xAlign||e.xAlign||X3(n,e,t,i),yAlign:i}}function Q3(n,e){let{x:t,width:i}=n;return e==="right"?t-=i:e==="center"&&(t-=i/2),t}function x3(n,e,t){let{y:i,height:s}=n;return e==="top"?i+=t:e==="bottom"?i-=s+t:i-=s/2,i}function uc(n,e,t,i){const{caretSize:s,caretPadding:l,cornerRadius:o}=n,{xAlign:r,yAlign:a}=t,u=s+l,{topLeft:f,topRight:c,bottomLeft:d,bottomRight:p}=ks(o);let h=Q3(e,r);const g=x3(e,a,u);return a==="center"?r==="left"?h+=u:r==="right"&&(h-=u):r==="left"?h-=Math.max(f,d)+s:r==="right"&&(h+=Math.max(c,p)+s),{x:Zt(h,0,i.width-e.width),y:Zt(g,0,i.height-e.height)}}function no(n,e,t){const i=Fn(t.padding);return e==="center"?n.x+n.width/2:e==="right"?n.x+n.width-i.right:n.x+i.left}function fc(n){return Zn([],oi(n))}function eS(n,e,t){return Ai(n,{tooltip:e,tooltipItems:t,type:"tooltip"})}function cc(n,e){const t=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return t?n.override(t):n}class aa extends pi{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 _1(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(l)),l}getContext(){return this. $ context||(this. $ context=eS(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=Zn(r,oi(s)),r=Zn(r,oi(l)),r=Zn(r,oi(o)),r}getBeforeBody(e,t){return fc(t.callbacks.beforeBody.apply(this,[e]))}getBody(e,t){const{callbacks:i}=t,s=[];return ct(e,l=>{const o={before:[],lines:[],after:[]},r=cc(i,l);Zn(o.before,oi(r.beforeLabel.call(this,l))
2023-03-17 01:21:16 +08:00
* chartjs - adapter - luxon v1 . 3.1
* https : //www.chartjs.org
* ( c ) 2023 chartjs - adapter - luxon Contributors
* Released under the MIT license
2023-03-19 14:17:36 +08:00
* / c o n s t k S = { d a t e t i m e : V 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 : V e . T I M E _ W I T H _ S E C O N D S , m i n u t e : V 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 " } } ; k 1 . _ 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 V 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 k S } , 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 = V e . f r o m F o r m a t ( n , e , t ) : n = V 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 = V 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 V e ) & & ( n = V 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 v c ( n ) { l e t e , t , i ; r e t u r n { c ( ) { e = v ( " 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 = q e ( e , q 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 = q e ( e , q 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 w S ( 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 = B ( n [ 1 ] ) , t = D ( ) , s = B ( i ) } , m ( l , o ) { S ( l , e , o ) , S ( l , t , o ) , S ( l , s , o ) } , p ( l , o ) { o & 2 & & l e ( e , l [ 1 ] ) , o & 2 & & i ! = = ( i = l [ 1 ] = = = 1 ? " l o g " : " l o g s " ) & & l e ( s , i ) } , d ( l ) { l & & w ( e ) , l & & w ( t ) , l & & w ( s ) } } } f u n c t i o n S S ( n ) { l e t e ; r e t u r n { c ( ) { e = B ( " L o a d i n g . . . " ) } , m ( t , i ) { S ( t , e , i ) } , p : X , d ( t ) { t & & w ( e ) } } } f u n c t i o n T S ( n ) { l e t e , t , i , s , l , o = n [ 2 ] & & v c ( ) ; f u n c t i o n r ( f , c ) { r e t u r n f [ 2 ] ? S S : w S } l e t a = r ( n ) , u = a ( n ) ; r e t u r n { c ( ) { e = v ( " d i v " ) , o & & o . c ( ) , t = D ( ) , i = v ( " c a n v a s " ) , s = D ( ) , l = v ( " 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 " ) , N r ( i , " h e i g h t " , " 2 5 0 p x " ) , N 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 " ) , Q ( 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 , c ) { S ( f , e , c ) , o & & o . m ( e , n u l l ) , b ( e , t ) , b ( e , i ) , n [ 8 ] ( i ) , S ( f , s , c ) , S ( f , l , c ) , u . m ( l , n u l l ) } , p ( f , [ c ] ) { f [ 2 ] ? o ? c & 4 & & A ( o , 1 ) : ( o = v c ( ) , o . c ( ) , A ( o , 1 ) , o . m ( e , t ) ) : o & & ( r e ( ) , I ( o , 1 , 1 , ( ) = > { o = n u l l } ) , a e ( ) ) , c & 4 & & Q ( e , " l o a d i n g " , f [ 2 ] ) , a = = = ( a = r ( f ) ) & & u ? u . p ( f , c ) : ( u . d ( 1 ) , u = a ( f ) , u & & ( u . c ( ) , u . m ( l , n u l l ) ) ) } , i ( f ) { A ( o ) } , o ( f ) { I ( 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 $ S ( 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 ) , m 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 ( p = > { c ( ) ; f o r ( l e t h o f p ) r . p u s h ( { x : n e w D a t e ( h . d a t e ) , y : h . t o t a l } ) , t ( 1 , a + = h . 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 ( p = > { p ! = n u l l & & p . i s A b o r t | | ( c ( ) , c o n s o l e . w a r n ( p ) , m e . e r r o r R e s p o n s e H a n d l e r ( p , ! 1 ) ) } ) . f i n a l l y ( ( ) = > { t ( 2 , u = ! 1 ) } ) } f u n c t i o n c ( ) { t ( 1 , a = 0 ) , t ( 7 , r = [ ] ) } Q t ( ( ) = > ( I o . r e g i s t e r ( I i , Z o , K o , e u , L l , K 3 , t S ) , t ( 6 , o = n e w I 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 : p = > p . 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 : p = > p . 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 d ( p ) { s e [ p ? " u n s h i f t " : " p u s h " ] ( ( ) = > { l = p , t ( 0 , l ) } ) } r e t u r n n . $ $ s e t = p = > { " f i l t e r " i n p & & t ( 3 , i = p . f i l t e r ) , " p r e s e t s " i n p & & t ( 4 , s = p . 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
2023-03-17 01:21:16 +08:00
* Prism : Lightweight , robust , elegant syntax highlighting
*
* @ license MIT < https : //opensource.org/licenses/MIT>
* @ author Lea Verou < https : //lea.verou.me>
* @ namespace
* @ public
* /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 k ( T ) { return T instanceof a ? new a ( T . type , k ( T . content ) , T . alias ) : Array . isArray ( T ) ? T . map ( k ) : T . replace ( /&/g , "&" ) . replace ( /</g , "<" ) . replace ( /\u00a0/g , " " ) } , type : function ( k ) { return Object . prototype . toString . call ( k ) . slice ( 8 , - 1 ) } , objId : function ( k ) { return k . _ _id || Object . defineProperty ( k , "__id" , { value : ++ l } ) , k . _ _id } , clone : function k ( T , $ ) { $ = $ || { } ; var M , C ; switch ( r . util . type ( T ) ) { case "Object" : if ( C = r . util . objId ( T ) , $ [ C ] ) return $ [ C ] ; M = { } , $ [ C ] = M ; for ( var O in T ) T . hasOwnProperty ( O ) && ( M [ O ] = k ( T [ O ] , $ ) ) ; return M ; case "Array" : return C = r . util . objId ( T ) , $ [ C ] ? $ [ C ] : ( M = [ ] , $ [ C ] = M , T . forEach ( function ( E , P ) { M [ P ] = k ( E , $ ) } ) , M ) ; default : return T } } , getLanguage : function ( k ) { for ( ; k ; ) { var T = s . exec ( k . className ) ; if ( T ) return T [ 1 ] . toLowerCase ( ) ; k = k . parentElement } return "none" } , setLanguage : function ( k , T ) { k . className = k . className . replace ( RegExp ( s , "gi" ) , "" ) , k . classList . add ( "language-" + T ) } , currentScript : function ( ) { if ( typeof document > "u" ) return null ; if ( "currentScript" in document && 1 < 2 ) return document . currentScript ; try { throw new Error } catch ( M ) { var k = ( /at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i . exec ( M . stack ) || [ ] ) [ 1 ] ; if ( k ) { var T = document . getElementsByTagName ( "script" ) ; for ( var $ in T ) if ( T [ $ ] . src == k ) return T [ $ ] } return null } } , isActive : function ( k , T , $ ) { for ( var M = "no-" + T ; k ; ) { var C = k . classList ; if ( C . contains ( T ) ) return ! 0 ; if ( C . contains ( M ) ) return ! 1 ; k = k . parentElement } return ! ! $ } } , languages : { plain : o , plaintext : o , text : o , txt : o , extend : function ( k , T ) { var $ = r . util . clone ( r . languages [ k ] ) ; for ( var M in T ) $ [ M ] = T [ M ] ; return $ } , insertBefore : function ( k , T , $ , M ) { M = M || r . languages ; var C = M [ k ] , O = { } ; for ( var E in C ) if ( C . hasOwnProperty ( E ) ) { if ( E == T ) for ( var P in $ ) $ . hasOwnProperty ( P ) && ( O [ P ] = $ [ P ] ) ; $ . hasOwnProperty ( E ) || ( O [ E ] = C [ E ] ) } var L = M [ k ] ; return M [ k ] = O , r . languages . DFS ( r . languages , function ( F , N ) { N === L && F != k && ( this [ F ] = O ) } ) , O } , DFS : function k ( T , $ , M , C ) { C = C || { } ; var O = r . util . objId ; for ( var E in T ) if ( T . hasOwnProperty ( E ) ) { $ . call ( T , E , T [ E ] , M || E ) ; var P = T [ E ] , L = r . util . type ( P ) ; L === "Object" && ! C [ O ( P ) ] ? ( C [ O ( P ) ] = ! 0 , k ( P , $ , null , C ) ) : L === "Array" && ! C [ O ( P ) ] && ( C [ O ( P ) ] = ! 0 , k ( P , $ , E , C ) ) } } } , plugins : { } , highlightAll : function ( k , T ) { r . highlightAllUnder ( document , k , T ) } , highlightAllUnder : function ( k , T , $ ) { var M = { callback : $ , container : k , 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 C = 0 , O ; O = M . elements [ C ++ ] ; ) r . highlightElement ( O , T === ! 0 , M . callback ) } , highlightElement : function ( k , T , $ ) { var M = r . util . getLanguage ( k ) , C = r . languages [ M ] ; r . util . setLanguage ( k , M ) ; var O = k . parentElement ; O && O . nodeName . toLowerCase ( ) === "pre" && r . util . setLanguage ( O , M ) ; var E = k . textContent , P = { element : k , language : M , grammar : C , code : E } ; function L ( N ) { P . highlightedCode = N , r . hooks . run ( "before-insert" , P ) , P . element . innerHTML = P . highlightedCode , r . hooks . run ( "after-highlight" , P ) , r . hooks . run ( "complete" , P ) , $ && $ . call ( P . element ) } if ( r . hooks . run ( "before-sanity-check" , P ) , O = P . element . parentElement , O && O . nodeName . toLowerCase ( ) === "pre" && ! O . hasAttribute ( "tabindex" ) && O . setAttribute ( "tabindex" , "0" ) , ! P . code ) { r . hooks . run ( "complete" , P ) , $ && $ . call ( P . element ) ; return } if ( r . hooks . run ( "before-highlight" , P ) , ! P . grammar ) { L ( r . util . encode ( P . code ) ) ; return } if ( T && i . Worker ) { var F = new Worker ( r . filename ) ; F . onmessage = function ( N ) { L ( N . data ) } , F . postMessage ( JSON . stringify ( { language : P . language , code : P . code , immediateClose : ! 0 } ) ) } else L ( r . highlight ( P . code , P . grammar , P . language ) ) } , highlight : function ( k , T , $ ) { var M = { code : k , grammar : T , language : $ } ; 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 ( k , T ) { var $ = T . rest ; if ( $ ) { for ( var M in $ ) T [ M ] = $ [ M ] ; delete T . rest } var C = new c ; return d ( C , C . head , k ) , f ( k , C , T , C . head , 0 ) , h ( C ) } , hooks : { all : { } , add : function
` ),_.hasAttribute("data-start")||_.setAttribute("data-start",String(P+1))}y.textContent=C,t.highlightElement(y)},function(C){_.setAttribute(r,f),y.textContent=C})}}),t.plugins.fileHighlight={highlight:function(_){for(var y=(_||document).querySelectorAll(c),k=0,T;T=y[k++];)t.highlightElement(T)}};var h=!1;t.fileHighlight=function(){h||(console.warn("Prism.fileHighlight is deprecated. Use ` Prism . plugins . fileHighlight . highlight ` instead."),h=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(MS);const Zs=ca;var kc={},OS={get exports(){return kc},set exports(n){kc=n}};(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( `
` ),u=0;u<a.length;++u)if(!(s(a[u])<=r)){for(var f=a[u].split(/( \s +)/g),c=0,d=0;d<f.length;++d){var p=s(f[d]);c+=p,c>r&&(f[d]= `
` +f[d],c=p)}a[u]=f.join("")}return a.join( `
2023-03-19 14:17:36 +08: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 c=JSON.parse(a.getAttribute("data-"+u)||"true");typeof c===f&&(o.settings[u]=c)}catch{}}for(var d=a.childNodes,p="",h="",g=!1,_=0;_<d.length;++_){var y=d[_];y==o.element?g=!0:y.nodeName==="#text"&&(g?h+=y.nodeValue:p+=y.nodeValue,a.removeChild(y),--_)}if(!o.element.children.length||!Prism.plugins.KeepMarkup)o.code=p+o.code+h,o.code=r.normalize(o.code,o.settings);else{var k=p+o.element.innerHTML+h;o.element.innerHTML=r.normalize(k,o.settings),o.code=o.element.textContent}}}})})()})(OS);(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 DS(n){let e,t,i;return{c(){e=v("div"),t=v("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:X,o:X,d(s){s&&w(e)}}}function ES(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=Zs.plugins.NormalizeWhitespace.normalize(a,{"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0}),Zs.highlight(a,Zs.languages[l]||Zs.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 Zs<"u"&&s&&t(1,o=r(s))},[i,o,s,l]}class H1 extends ve{constructor(e){super(),be(this,e,ES,DS,_e,{class:0,content:2,language:3})}}const AS=n=>({}),wc=n=>({}),IS=n=>({}),Sc=n=>({});function Tc(n){let e,t,i,s,l,o,r,a,u,f,c,d,p,h,g,_,y,k,T=n[4]&&!n[2]&& $ c(n);const $ =n[19].header,M=Et( $ ,n,n[18],Sc);let C=n[4]&&n[2]&&Cc(n);const O=n[19].default,E=Et(O,n,n[18],null),P=n[19].footer,L=Et(P,n,n[18],wc);return{c(){e=v("div"),t=v("div"),s=D(),l=v("div"),o=v("div"),T&&T.c(),r=D(),M&&M.c(),a=D(),C&&C.c(),u=D(),f=v("div"),E&&E.c(),c=D(),d=v("div"),L&&L.c(),m(t,
< span class = "txt" > New index < / s p a n > ` , f = D ( ) , V ( c . $ $ . 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 ( O , E ) { S ( O , e , E ) , b ( e , t ) , b ( e , s ) , b ( e , l ) , S ( O , o , E ) , S ( O , r , E ) ; f o r ( l e t P = 0 ; P < y . l e n g t h ; P + = 1 ) y [ P ] & & y [ P ] . m ( r , n u l l ) ; b ( r , a ) , b ( r , u ) , S ( O , f , E ) , q ( c , O , E ) , p = ! 0 , h | | ( g = K ( u , " c l i c k " , n [ 5 ] ) , h = ! 0 ) } , p ( O , [ E ] ) { v a r L , F , N ; i f ( ( ! p | | E & 1 ) & & i ! = = ( i = ( ( ( F = ( L = O [ 0 ] ) = = n u l l ? v o i d 0 : L . i n d e x e s ) = = n u l l ? v o i d 0 : F . l e n g t h ) | | 0 ) + " " ) & & l e ( s , i ) , E & 7 ) { _ = ( ( N = O [ 0 ] ) = = n u l l ? v o i d 0 : N . i n d e x e s ) | | [ ] ; l e t R ; f o r ( R = 0 ; R < _ . l e n g t h ; R + = 1 ) { c o n s t z = F c ( O , _ , R ) ; y [ R ] ? y [ R ] . p ( z , E ) : ( y [ R ] = q c ( z ) , y [ R ] . c ( ) , y [ R ] . m ( r , a ) ) } f o r ( ; R < y . l e n g t h ; R + = 1 ) y [ R ] . d ( 1 ) ; y . l e n g t h = _ . l e n g t h } c o n s t P = { } ; ! d & & E & 1 & & ( d = ! 0 , P . c o l l e c t i o n = O [ 0 ] , k e ( ( ) = > d = ! 1 ) ) , c . $ s e t ( P ) } , i ( O ) { p | | ( A ( c . $ $ . f r a g m e n t , O ) , p = ! 0 ) } , o ( O ) { I ( c . $ $ . f r a g m e n t , O ) , p = ! 1 } , d ( O ) { O & & w ( e ) , O & & w ( o ) , O & & w ( r ) , a t ( y , O ) , O & & w ( f ) , n [ 6 ] ( n u l l ) , j ( c , O ) , h = ! 1 , g ( ) } } } c o n s t j c = n = > n . c o l u m n ; f u n c t i o n c T ( n , e , t ) { l e t i ; W e ( n , t i , p = > t ( 2 , i = p ) ) ; 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 ( p , 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 ] = = p ) { t ( 0 , s . i n d e x e s [ g ] = h , s ) , c i ( " i n d e x e s . " + g ) ; r e t u r n } s . i n d e x e s . p u s h ( h ) , t ( 0 , s ) } c o n s t r = ( p , h ) = > l = = n u l l ? v o i d 0 : l . s h o w ( p , h ) , 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 ( p ) { s e [ p ? " u n s h i f t " : " p u s h " ] ( ( ) = > { l = p , t ( 1 , l ) } ) } f u n c t i o n f ( p ) { s = p , t ( 0 , s ) } c o n s t c = p = > { f o r ( l e t h = 0 ; h < s . i n d e x e s . l e n g t h ; h + + ) i f ( s . i n d e x e s [ h ] = = p . d e t a i l ) { s . i n d e x e s . s p l i c e ( h , 1 ) , c i ( " i n d e x e s . " + h ) ; b r e a k } t ( 0 , s ) } , d = p = > { o ( p . d e t a i l . o l d , p . d e t a i l . n e w ) } ; r e t u r n n . $ $ s e t = p = > { " c o l l e c t i o n " i n p & & t ( 0 , s = p . c o l l e c t i o n ) } , [ s , l , i , o , r , a , u , f , c , d ] } c l a s s d T e x t e n d s v e { c o n s t r u c t o r ( e ) { s u p e r ( ) , b e ( t h i s , e , c T , f T , _ e , { c o l l e c t i o n : 0 } ) } } f u n c t i o n V 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 H 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 c ( . . . d ) { r e t u r n n [ 5 ] ( n [ 6 ] , . . . d ) } r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " i " ) , i = D ( ) , s = v ( " s p a n " ) , o = B ( 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 p 6 2 6 x 7 " ) , 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 p 6 2 6 x 7 " ) } , m ( d , p ) { S ( d , e , p ) , b ( e , t ) , b ( e , i ) , b ( e , s ) , b ( s , o ) , b ( e , r ) , a | | ( u = [ K ( e , " c l i c k " , $ n ( f ) ) , K ( e , " k e y d o w n " , $ n ( c ) ) ] , a = ! 0 ) } , p ( d , p ) { n = d } , d ( d ) { d & & w ( e ) , a = ! 1 , A e ( u ) } } } f u n c t i o n p T ( 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 ] = H c ( V 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 = w 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 = V c ( s , t , o ) ; i [ o ] ? i [ o ] . p ( r , l ) : ( i [ o ] = H 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 ) { a t ( i , s ) , s & & w ( e ) } } } f u n c t i o n m T ( n ) { l e t e , t , i , s , l , o , r , a , u , f ; r e t u r n o = n e w q 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 : [ p T ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { e = v ( " b u t t o n " ) , t = v ( " i " ) , i = D ( ) , s = v ( " 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 ( ) , V ( 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 = $ i ( n [ 0 ] ) + " s v e l t e - 1 p 6 2 6 x 7 " ) } , m ( c , d ) { S ( c , e , d ) , b ( e , t ) , b ( e , i ) , b ( e , s ) , b ( e , l ) , q ( o , e , n u l l ) , a = ! 0 , u | | ( f = K ( e , " c l i c k " , n [ 1 ] ) , u = ! 0 ) } , p ( c , [ d ] ) { c o n s t p = { } ; d & 5 1 2 & & ( p . $ $ s c o p e = { d i r t y : d , c t x : c } ) , o . $ s e t ( p ) , ( ! a | | d & 1 & & r ! = = ( r = $ i ( c [ 0 ] ) + " s v e l t e - 1 p 6 2 6 x 7 " ) ) & & m ( e , " c l a s s " , r ) } , i ( c ) { a | | ( A ( o . $ $ . f r a g m e n t , c ) , a = ! 0 ) } , o ( c ) { I ( o . $ $ . f r a g m e n t , c ) , a = ! 1 } , d ( c ) { c & & w ( e ) , j ( o ) , u = ! 1 , f ( ) } } } f u n c t i o n h T ( n , e , t ) { l e t { c l a s s : i = " " } = e ; c o n s t s = y 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 : H . 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 : H . 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 : H . 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 : H . 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 : H . 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 : H . 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 : H . 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 : H . 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 : H . 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 : H . 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 : H . 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 a c e " ) & & o ( u . v a l u e ) } ; r e t u r n n .
2023-03-17 01:21:16 +08:00
This field is disabled if "Only domains" is set . ` ,position:"top"})),d=!0)},p(_,y){(!c||y&4096&&l!==(l=_[12]))&&m(e,"for",l);const k={};y&4096&&(k.id=_[12]),y&1&&(k.disabled=!H.isEmpty(_[0].options.onlyDomains)),!a&&y&1&&(a=!0,k.value=_[0].options.exceptDomains,ke(()=>a=!1)),r. $ set(k)},i(_){c||(A(r. $ $ .fragment,_),c=!0)},o(_){I(r. $ $ .fragment,_),c=!1},d(_){_&&w(e),_&&w(o),j(r,_),_&&w(u),_&&w(f),d=!1,p()}}}function YT(n){let e,t,i,s,l,o,r,a,u,f,c,d,p;function h(_){n[4](_)}let g={id:n[12]+".options.onlyDomains",disabled:!H.isEmpty(n[0].options.exceptDomains)};return n[0].options.onlyDomains!==void 0&&(g.value=n[0].options.onlyDomains),r=new Fs({props:g}),se.push(()=>ge(r,"value",h)),{c(){e=v("label"),t=v("span"),t.textContent="Only domains",i=D(),s=v("i"),o=D(),V(r. $ $ .fragment),u=D(),f=v("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]+".options.onlyDomains"),m(f,"class","help-block")},m(_,y){S(_,e,y),b(e,t),b(e,i),b(e,s),S(_,o,y),q(r,_,y),S(_,u,y),S(_,f,y),c=!0,d||(p=De(ze.call(null,s,{text: ` List of domains that are ONLY allowed .
2023-03-19 14:17:36 +08:00
This field is disabled if "Except domains" is set . ` ,position:"top"})),d=!0)},p(_,y){(!c||y&4096&&l!==(l=_[12]+".options.onlyDomains"))&&m(e,"for",l);const k={};y&4096&&(k.id=_[12]+".options.onlyDomains"),y&1&&(k.disabled=!H.isEmpty(_[0].options.exceptDomains)),!a&&y&1&&(a=!0,k.value=_[0].options.onlyDomains,ke(()=>a=!1)),r. $ set(k)},i(_){c||(A(r. $ $ .fragment,_),c=!0)},o(_){I(r. $ $ .fragment,_),c=!1},d(_){_&&w(e),_&&w(o),j(r,_),_&&w(u),_&&w(f),d=!1,p()}}}function KT(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:[WT,({uniqueId:a})=>({12:a}),({uniqueId:a})=>a?4096:0]}, $ $ scope:{ctx:n}}}),o=new pe({props:{class:"form-field",name:"schema."+n[1]+".options.onlyDomains", $ $ slots:{default:[YT,({uniqueId:a})=>({12:a}),({uniqueId:a})=>a?4096:0]}, $ $ scope:{ctx:n}}}),{c(){e=v("div"),t=v("div"),V(i. $ $ .fragment),s=D(),l=v("div"),V(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),q(i,t,null),b(e,s),b(e,l),q(o,l,null),r=!0},p(a,u){const f={};u&2&&(f.name="schema."+a[1]+".options.exceptDomains"),u&12289&&(f. $ $ scope={dirty:u,ctx:a}),i. $ set(f);const c={};u&2&&(c.name="schema."+a[1]+".options.onlyDomains"),u&12289&&(c. $ $ scope={dirty:u,ctx:a}),o. $ set(c)},i(a){r||(A(i. $ $ .fragment,a),A(o. $ $ .fragment,a),r=!0)},o(a){I(i. $ $ .fragment,a),I(o. $ $ .fragment,a),r=!1},d(a){a&&w(e),j(i),j(o)}}}function JT(n){let e,t,i;const s=[{key:n[1]},n[2]];function l(r){n[5](r)}let o={ $ $ slots:{options:[KT]}, $ $ scope:{ctx:n}};for(let r=0;r<s.length;r+=1)o=Le(o,s[r]);return n[0]!==void 0&&(o.field=n[0]),e=new ni({props:o}),se.push(()=>ge(e,"field",l)),e. $ on("rename",n[6]),e. $ on("remove",n[7]),e. $ on("drop",n[8]),e. $ on("dragstart",n[9]),e. $ on("dragenter",n[10]),e. $ on("dragleave",n[11]),{c(){V(e. $ $ .fragment)},m(r,a){q(e,r,a),i=!0},p(r,[a]){const u=a&6?bt(s,[a&2&&{key:r[1]},a&4&&Vt(r[2])]):{};a&8195&&(u. $ $ scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,u.field=r[0],ke(()=>t=!1)),e. $ set(u)},i(r){i||(A(e. $ $ .fragment,r),i=!0)},o(r){I(e. $ $ .fragment,r),i=!1},d(r){j(e,r)}}}function ZT(n,e,t){const i=["field","key"];let s=Je(e,i),{field:l}=e,{key:o=""}=e;function r(_){n. $ $ .not_equal(l.options.exceptDomains,_)&&(l.options.exceptDomains=_,t(0,l))}function a(_){n. $ $ .not_equal(l.options.onlyDomains,_)&&(l.options.onlyDomains=_,t(0,l))}function u(_){l=_,t(0,l)}function f(_){de.call(this,n,_)}function c(_){de.call(this,n,_)}function d(_){de.call(this,n,_)}function p(_){de.call(this,n,_)}function h(_){de.call(this,n,_)}function g(_){de.call(this,n,_)}return n. $ $ set=_=>{e=Le(Le({},e),jt(_)),t(2,s=Je(e,i)),"field"in _&&t(0,l=_.field),"key"in _&&t(1,o=_.key)},[l,o,s,r,a,u,f,c,d,p,h,g]}class W1 extends ve{constructor(e){super(),be(this,e,ZT,JT,_e,{field:0,key:1})}}function GT(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=Le(o,s[r]);return n[0]!==void 0&&(o.field=n[0]),e=new W1({props:o}),se.push(()=>ge(e,"field",l)),e. $ on("rename",n[4]),e. $ on("remove",n[5]),e. $ on("drop",n[6]),e. $ on("dragstart",n[7]),e. $ on("dragenter",n[8]),e. $ on("dragleave",n[9]),{c(){V(e. $ $ .fragment)},m(r,a){q(e,r,a),i=!0},p(r,[a]){const u=a&6?bt(s,[a&2&&{key:r[1]},a&4&&Vt(r[2])]):{};!t&&a&1&&(t=!0,u.field=r[0],ke(()=>t=!1)),e. $ set(u)},i(r){i||(A(e. $ $ .fragment,r),i=!0)},o(r){I(e. $ $ .fragment,r),i=!1},d(r){j(e,r)}}}function XT(n,e,t){const i=["field","key"];let s=Je(e,i),{field:l}=e,{key:o=""}=e;function r(h){l=h,t(0,l)}function a(h){de.call(this,n,h)}function u(h){de.call(this,n,h)}function f(h){de.call(this,n,h)}function c(h){de.call(this,n,h)}function d(h){de.call(this,n,h)}function p(h){de.call(this,n,h)}return n. $ $ set=h=>{e=Le(Le({},e),jt(h)),t(2,s=Je(e,i)),"field"in h&&t(0,l=h.field),"key"in h&&t(1,o=h.key)},[l,o,s,r,a,u,f,c,d,p]}class QT extends ve{constructor(e){super(),be(this,e,XT,GT,_e,{field:0,key:1})}}function xT(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=Le(o,s[r]);return n[0]!==void 0&&(o.field=n[0]),e=new ni({props:o}),se.push(()=>ge(e,"field",l)),e. $ on("rename",n[4]),e. $ on(
2023-03-17 01:21:16 +08:00
< span class = 'flatpickr-weekday' >
` +Y.join("</span><span class='flatpickr-weekday'>")+ `
< / s p a n >
2023-03-19 14:17:36 +08:00
` }}function fe(){t.calendarContainer.classList.add("hasWeeks");var U=ot("div","flatpickr-weekwrapper");U.appendChild(ot("span","flatpickr-weekday",t.l10n.weekAbbreviation));var Y=ot("div","flatpickr-weeks");return U.appendChild(Y),{weekWrapper:U,weekNumbers:Y}}function Z(U,Y){Y===void 0&&(Y=!0);var te=Y?U:U-t.currentMonth;te<0&&t._hidePrevMonthArrow===!0||te>0&&t._hideNextMonthArrow===!0||(t.currentMonth+=te,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,Ge("onYearChange"),R()),N(),Ge("onMonthChange"),Ri())}function ce(U,Y){if(U===void 0&&(U=!0),Y===void 0&&(Y=!0),t.input.value="",t.altInput!==void 0&&(t.altInput.value=""),t.mobileInput!==void 0&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,Y===!0&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),t.config.enableTime===!0){var te=Dr(t.config),oe=te.hours,Te=te.minutes,Ee=te.seconds;p(oe,Te,Ee)}t.redraw(),U&&Ge("onChange")}function he(){t.isOpen=!1,t.isMobile||(t.calendarContainer!==void 0&&t.calendarContainer.classList.remove("open"),t._input!==void 0&&t._input.classList.remove("active")),Ge("onClose")}function Ce(){t.config!==void 0&&Ge("onDestroy");for(var U=t._handlers.length;U--;)t._handlers[U].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 Y=t.calendarContainer.parentNode;if(Y.lastChild&&Y.removeChild(Y.lastChild),Y.parentNode){for(;Y.firstChild;)Y.parentNode.insertBefore(Y.firstChild,Y);Y.parentNode.removeChild(Y)}}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(te){try{delete t[te]}catch{}})}function Re(U){return t.calendarContainer.contains(U)}function je(U){if(t.isOpen&&!t.config.inline){var Y=yn(U),te=Re(Y),oe=Y===t.input||Y===t.altInput||t.element.contains(Y)||U.path&&U.path.indexOf&&(~U.path.indexOf(t.input)||~U.path.indexOf(t.altInput)),Te=!oe&&!te&&!Re(U.relatedTarget),Ee=!t.config.ignoredFocusElements.some(function(Ie){return Ie.contains(Y)});Te&&Ee&&(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 ye(U){if(!(!U||t.config.minDate&&U<t.config.minDate.getFullYear()||t.config.maxDate&&U>t.config.maxDate.getFullYear())){var Y=U,te=t.currentYear!==Y;t.currentYear=Y||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)),te&&(t.redraw(),Ge("onYearChange"),R())}}function $ e(U,Y){var te;Y===void 0&&(Y=!0);var oe=t.parseDate(U,void 0,Y);if(t.config.minDate&&oe&&kn(oe,t.config.minDate,Y!==void 0?Y:!t.minDateHasTime)<0||t.config.maxDate&&oe&&kn(oe,t.config.maxDate,Y!==void 0?Y:!t.maxDateHasTime)>0)return!1;if(!t.config.enable&&t.config.disable.length===0)retu
2023-03-17 01:21:16 +08:00
` ),r=v("code"),r.textContent="multipart/form-data",a=B( `
requests , the following normalization rules are applied if the ` ),u=v("code"),u.textContent="json",f=B( ` field
is a
` ),c=v("strong"),c.textContent="plain string",d=B( ` :
` ),p=v("ul"),h=v("li"),h.innerHTML=""true" is converted to the json <code>true</code>",g=D(),_=v("li"),_.innerHTML=""false" is converted to the json <code>false</code>",y=D(),k=v("li"),k.innerHTML=""null" is converted to the json <code>null</code>",T=D(), $ =v("li"), $ .innerHTML=""[1,2,3]" is converted to the json <code>[1,2,3]</code>",M=D(),C=v("li"),E=B(O),P=B(" is converted to the json "),L=v("code"),L.textContent='{"a":1,"b":2}',F=D(),N=v("li"),N.textContent="numeric strings are converted to json number",R=D(),z=v("li"),z.textContent="double quoted strings are left as they are (aka. without normalizations)",W=D(),J=v("li"),J.textContent="any other string (empty string too) is double quoted",x=B( `
Alternatively , if you want to avoid the string value normalizations , you can wrap your
2023-03-19 14:17:36 +08:00
data inside an object , eg . ` ),ne=v("code"),ne.textContent='{"data": anything}',m(i,"class","content"),m(t,"class","alert alert-warning m-b-0 m-t-10"),m(e,"class","block")},m(Z,ce){S(Z,e,ce),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,c),b(i,d),b(i,p),b(p,h),b(p,g),b(p,_),b(p,y),b(p,k),b(p,T),b(p, $ ),b(p,M),b(p,C),b(C,E),b(C,P),b(C,L),b(p,F),b(p,N),b(p,R),b(p,z),b(p,W),b(p,J),b(i,x),b(i,ne),fe=!0},i(Z){fe||(Z&&Xe(()=>{fe&&(G||(G=qe(e,vt,{duration:150},!0)),G.run(1))}),fe=!0)},o(Z){Z&&(G||(G=qe(e,vt,{duration:150},!1)),G.run(0)),fe=!1},d(Z){Z&&w(e),Z&&G&&G.end()}}}function U $ (n){let e,t,i,s,l,o,r;function a(d,p){return d[2]?B $ :z $ }let u=a(n),f=u(n),c=n[2]&&hd();return{c(){e=v("button"),t=v("strong"),t.textContent="String value normalizations",i=D(),f.c(),s=D(),c&&c.c(),l=we(),m(t,"class","txt"),m(e,"type","button"),m(e,"class","inline-flex txt-sm flex-gap-5 link-hint")},m(d,p){S(d,e,p),b(e,t),b(e,i),f.m(e,null),S(d,s,p),c&&c.m(d,p),S(d,l,p),o||(r=K(e,"click",n[4]),o=!0)},p(d,p){u!==(u=a(d))&&(f.d(1),f=u(d),f&&(f.c(),f.m(e,null))),d[2]?c?p&4&&A(c,1):(c=hd(),c.c(),A(c,1),c.m(l.parentNode,l)):c&&(re(),I(c,1,1,()=>{c=null}),ae())},d(d){d&&w(e),f.d(),d&&w(s),c&&c.d(d),d&&w(l),o=!1,r()}}}function W $ (n){let e,t,i;const s=[{key:n[1]},n[3]];function l(r){n[5](r)}let o={ $ $ slots:{options:[U $ ]}, $ $ scope:{ctx:n}};for(let r=0;r<s.length;r+=1)o=Le(o,s[r]);return n[0]!==void 0&&(o.field=n[0]),e=new ni({props:o}),se.push(()=>ge(e,"field",l)),e. $ on("rename",n[6]),e. $ on("remove",n[7]),e. $ on("drop",n[8]),e. $ on("dragstart",n[9]),e. $ on("dragenter",n[10]),e. $ on("dragleave",n[11]),{c(){V(e. $ $ .fragment)},m(r,a){q(e,r,a),i=!0},p(r,[a]){const u=a&10?bt(s,[a&2&&{key:r[1]},a&8&&Vt(r[3])]):{};a&4100&&(u. $ $ scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,u.field=r[0],ke(()=>t=!1)),e. $ set(u)},i(r){i||(A(e. $ $ .fragment,r),i=!0)},o(r){I(e. $ $ .fragment,r),i=!1},d(r){j(e,r)}}}function Y $ (n,e,t){const i=["field","key"];let s=Je(e,i),{field:l}=e,{key:o=""}=e,r=!1;const a=()=>{t(2,r=!r)};function u(_){l=_,t(0,l)}function f(_){de.call(this,n,_)}function c(_){de.call(this,n,_)}function d(_){de.call(this,n,_)}function p(_){de.call(this,n,_)}function h(_){de.call(this,n,_)}function g(_){de.call(this,n,_)}return n. $ $ set=_=>{e=Le(Le({},e),jt(_)),t(3,s=Je(e,i)),"field"in _&&t(0,l=_.field),"key"in _&&t(1,o=_.key)},[l,o,r,s,a,u,f,c,d,p,h,g]}class K $ extends ve{constructor(e){super(),be(this,e,Y $ ,W $ ,_e,{field:0,key:1})}}function J $ (n){let e,t=(n[0].ext||"N/A")+"",i,s,l,o=n[0].mimeType+"",r;return{c(){e=v("span"),i=B(t),s=D(),l=v("small"),r=B(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")+"")&&le(i,t),u&1&&o!==(o=a[0].mimeType+"")&&le(r,o)},i:X,o:X,d(a){a&&w(e),a&&w(s),a&&w(l)}}}function Z $ (n,e,t){let{item:i={}}=e;return n. $ $ set=s=>{"item"in s&&t(0,i=s.item)},[i]}class _d extends ve{constructor(e){super(),be(this,e,Z $ ,J $ ,_e,{item:0})}}const G $ =[{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.oasi
2023-03-17 01:21:16 +08:00
Leave empty for no restriction . ` ,position:"top"})),k=!0)},p(C,O){(!y||O&33554432&&l!==(l=C[25]))&&m(e,"for",l);const E={};O&33554432&&(E.id=C[25]),O&8&&(E.items=C[3]),!a&&O&1&&(a=!0,E.keyOfSelected=C[0].options.mimeTypes,ke(()=>a=!1)),r. $ set(E);const P={};O&134217729&&(P. $ $ scope={dirty:O,ctx:C}),_. $ set(P)},i(C){y||(A(r. $ $ .fragment,C),A(_. $ $ .fragment,C),y=!0)},o(C){I(r. $ $ .fragment,C),I(_. $ $ .fragment,C),y=!1},d(C){C&&w(e),C&&w(o),j(r,C),C&&w(u),C&&w(f),j(_),k=!1,T()}}}function tC(n){let e;return{c(){e=v("ul"),e.innerHTML= ` < li > < strong > WxH < / s t r o n g >
( 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 >
( 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 : X , d ( t ) { t & & w ( e ) } } } f u n c t i o n n C ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d , p , h , g , _ , y , k , T , $ , M ; f u n c t i o n C ( E ) { n [ 1 2 ] ( E ) } l e t O = { i d : n [ 2 5 ] , 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 & & ( O . v a l u e = n [ 0 ] . o p t i o n s . t h u m b s ) , r = n e w F s ( { p r o p s : O } ) , s e . p u s h ( ( ) = > g e ( r , " v a l u e " , C ) ) , k = n e w q 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 : [ t C ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { e = v ( " l a b e l " ) , t = v ( " 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 = v ( " i " ) , o = D ( ) , V ( r . $ $ . f r a g m e n t ) , u = D ( ) , f = v ( " d i v " ) , c = v ( " s p a n " ) , c . 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 . " , d = D ( ) , p = v ( " b u t t o n " ) , h = v ( " s p a n " ) , h . 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 " , g = D ( ) , _ = v ( " i " ) , y = D ( ) , V ( k . $ $ . 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 5 ] ) , m ( c , " c l a s s " , " t x t " ) , m ( h , " c l a s s " , " t x t l i n k - p r i m a r y " ) , m ( _ , " 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 ( p , " t y p e " , " b u t t o n " ) , m ( p , " 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 ( E , P ) { S ( E , e , P ) , b ( e , t ) , b ( e , i ) , b ( e , s ) , S ( E , o , P ) , q ( r , E , P ) , S ( E , u , P ) , S ( E , f , P ) , b ( f , c ) , b ( f , d ) , b ( f , p ) , b ( p , h ) , b ( p , g ) , b ( p , _ ) , b ( p , y ) , q ( k , p , n u l l ) , T = ! 0 , $ | | ( M = D e ( z 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 " } ) ) , $ = ! 0 ) } , p ( E , P ) { ( ! T | | P & 3 3 5 5 4 4 3 2 & & l ! = = ( l = E [ 2 5 ] ) ) & & m ( e , " f o r " , l ) ; c o n s t L = { } ; P & 3 3 5 5 4 4 3 2 & & ( L . i d = E [ 2 5 ] ) , ! a & & P & 1 & & ( a = ! 0 , L . v a l u e = E [ 0 ] . o p t i o n s . t h u m b s , k e ( ( ) = > a = ! 1 ) ) , r . $ s e t ( L ) ; c o n s t F = { } ; P & 1 3 4 2 1 7 7 2 8 & & ( F . $ $ s c o p e = { d i r t y : P , c t x : E } ) , k . $ s e t ( F ) } , i ( E ) { T | | ( A ( r . $ $ . f r a g m e n t , E ) , A ( k . $ $ . f r a g m e n t , E ) , T = ! 0 ) } , o ( E ) { I ( r . $ $ . f r a g m e n t , E ) , I ( k . $ $ . f r a g m e n t , E ) , T = ! 1 } , d ( E ) { E & & w ( e ) , E & & w ( o ) , j ( r , E ) , E & & w ( u ) , E & & w ( f ) , j ( k ) , $ = ! 1 , M ( ) } } } f u n c t i o n i C ( n ) { l e t e , t , i , s , l , o , r , a , u , f ; r e t u r n { c ( ) { e = v ( " l a b e l " ) , t = B ( " M a x f i l e s i z e " ) , s = D ( ) , l = v ( " i n p u t " ) , r = D ( ) , a = v ( " 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 5 ] ) , m ( l , " t y p e " , " n u m b e r " ) , m ( l , " i d " , o = n [ 2 5 ] ) , 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 ( c , d ) { S ( c , e , d ) , b ( e , t ) , S ( c , s , d ) , S ( c , l , d ) , u e ( l , n [ 0 ] . o p t i o n s . m a x S i z e ) , S ( c , r , d ) , S ( c , a , d ) , u | | ( f = K ( l , " i n p u t " , n [ 1 3 ] ) , u = ! 0 ) } , p ( c , d ) { d & 3 3 5 5 4 4 3 2 & & i ! = = ( i = c [ 2 5 ] ) & & m ( e , " f o r " , i ) , d & 3 3 5 5 4 4 3 2 & & o ! = = ( o = c [ 2 5 ] ) & & m ( l , " i d " , o ) , d & 1 & & h t ( l . v a l u e ) ! = = c [ 0 ] . o p t i o n s . m a x S i z e & & u e ( l , c [ 0 ] . o p t i o n s . m a x S i z e ) } , d ( c ) { c & & w ( e ) , c & & w ( s ) , c & & w ( l ) , c & & w ( r ) , c & & w ( a ) , u = ! 1 , f ( ) } } } f u n c t i o n g 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 : [ s C , ( { u n i q u e I d : s } ) = > ( { 2 5 : s } ) , ( { u n i q u e I d : s } ) = > s ? 3 3 5 5 4 4 3 2 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { e = v ( " d i v " ) , V ( 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 ) , q ( 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 & 1 6 7 7 7 2 1 6 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 | | ( A ( t . $ $ . f r a g m e n t , s ) , i = ! 0 ) } , o ( s ) { I ( t . $ $ . f r a g m e n t , s ) , i = ! 1 } , d ( s ) { s & & w ( e ) , j ( t ) } } } f u n c t i o n s C ( n ) { l e t e , t , i , s , l , o , r , a ; r e t u r n { c ( ) { e = v ( " l a b e l " ) , t = B ( " M a x s e l e c t " ) , s = D ( ) , l = v ( " i n p u t " ) , m ( e , " f o r " , i = n [ 2 5 ] ) , m ( l , " i d " , o = n [ 2 5 ] ) , 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 ) , u e ( l , n [ 0 ] . o p t i o n s . m a x S e l e c t ) , r | | ( a = K ( l , " i n p u t " , n [ 1 4 ] ) , r = ! 0 ) } , p ( u , f ) { f & 3 3 5 5 4 4 3 2 & & i ! = = ( i = u [ 2 5 ] ) & & m ( e , " f o r " , i ) , f & 3 3 5 5 4 4 3 2 & & o ! = = ( o = u [ 2 5 ] ) & & m ( l , " i d " , o ) , f & 1 & & h 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 & & u 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 l C ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d , p ; 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 : [ e C , ( { u n i q u e I d : g } ) = > ( { 2 5 : g } ) , ( { u n i q u e I d : g } ) = > g ? 3 3 5 5 4 4 3 2 : 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 : [ n C , ( { u n i q u e I d : g } ) = > ( { 2 5 : g } ) , ( { u n i q u e I d : g } ) = > g ? 3 3 5 5 4 4 3 2 : 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 : [ i C , ( { u n i q u e I d : g } ) = > ( { 2 5 : g } ) , ( { u n i q u e I d : g } ) = > g ? 3 3 5 5 4 4 3 2 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) ; l e t h = ! n [ 2 ] & & g d ( n ) ; r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " d i v " ) , V ( i . $ $ . f r a g m e n t ) , s = D ( ) , l = v ( " d i v " ) , V ( o . $ $ . f r a g m e n t ) , a = D ( ) , u = v ( " d i v " ) , V ( f . $ $ . f
< 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 = K ( i , " c l i c k " , n [ 1 5 ] ) , s = ! 0 ) } , p : X , d ( o ) { o & & w ( e ) , o & & w ( t ) , o & & w ( i ) , s = ! 1 , l ( ) } } } f u n c t i o n f C ( n ) { l e t e , t , i ; f u n c t i o n s ( o ) { n [ 1 6 ] ( o ) } l e t l = { i d : n [ 3 2 ] , 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 ] , d i s a b l e d : ! n [ 3 3 ] , $ $ s l o t s : { a f t e r O p t i o n s : [ u 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 L i ( { p r o p s : l } ) , s e . p u s h ( ( ) = > g e ( e , " k e y O f S e l e c t e d " , s ) ) , { c ( ) { V ( e . $ $ . f r a g m e n t ) } , m ( o , r ) { q ( e , o , r ) , i = ! 0 } , p ( o , r ) { c o n s t a = { } ; r [ 1 ] & 2 & & ( a . i d = o [ 3 2 ] ) , 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 [ 1 ] & 4 & & ( a . d i s a b l e d = ! o [ 3 3 ] ) , r [ 0 ] & 1 6 | r [ 1 ] & 8 & & ( 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 , k e ( ( ) = > t = ! 1 ) ) , e . $ s e t ( a ) } , i ( o ) { i | | ( A ( e . $ $ . f r a g m e n t , o ) , i = ! 0 ) } , o ( o ) { I ( e . $ $ . f r a g m e n t , o ) , i = ! 1 } , d ( o ) { j ( e , o ) } } } f u n c t i o n c C ( n ) { l e t e , t , i ; f u n c t i o n s ( o ) { n [ 1 7 ] ( o ) } l e t l = { i d : n [ 3 2 ] , i t e m s : n [ 6 ] , d i s a b l e d : ! n [ 3 3 ] } ; 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 L i ( { p r o p s : l } ) , s e . p u s h ( ( ) = > g e ( e , " k e y O f S e l e c t e d " , s ) ) , { c ( ) { V ( e . $ $ . f r a g m e n t ) } , m ( o , r ) { q ( e , o , r ) , i = ! 0 } , p ( o , r ) { c o n s t a = { } ; r [ 1 ] & 2 & & ( a . i d = o [ 3 2 ] ) , r [ 1 ] & 4 & & ( a . d i s a b l e d = ! o [ 3 3 ] ) , ! t & & r [ 0 ] & 4 & & ( t = ! 0 , a . k e y O f S e l e c t e d = o [ 2 ] , k e ( ( ) = > t = ! 1 ) ) , e . $ s e t ( a ) } , i ( o ) { i | | ( A ( e . $ $ . f r a g m e n t , o ) , i = ! 0 ) } , o ( o ) { I ( e . $ $ . f r a g m e n t , o ) , i = ! 1 } , d ( o ) { j ( e , o ) } } } f u n c t i o n d C ( n ) { l e t e , t , i , s ; 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 3 ] ? " " : " d i s a b l e d " ) , 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 : [ f C , ( { u n i q u e I d : l } ) = > ( { 3 2 : l } ) , ( { u n i q u e I d : l } ) = > [ 0 , l ? 2 : 0 ] ] } , $ $ s c o p e : { c t x : 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 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 3 ] ? " " : " d i s a b l e d " ) , i n l i n e E r r o r : ! 0 , $ $ s l o t s : { d e f a u l t : [ c C , ( { u n i q u e I d : l } ) = > ( { 3 2 : l } ) , ( { u n i q u e I d : l } ) = > [ 0 , l ? 2 : 0 ] ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { V ( e . $ $ . f r a g m e n t ) , t = D ( ) , V ( i . $ $ . f r a g m e n t ) } , m ( l , o ) { q ( e , l , o ) , S ( l , t , o ) , q ( i , l , o ) , s = ! 0 } , p ( l , o ) { c o n s t r = { } ; o [ 1 ] & 4 & & ( r . c l a s s = " f o r m - f i e l d r e q u i r e d " + ( l [ 3 3 ] ? " " : " d i s a b l e d " ) ) , o [ 0 ] & 2 & & ( r . n a m e = " s c h e m a . " + l [ 1 ] + " . o p t i o n s . c o l l e c t i o n I d " ) , o [ 0 ] & 2 5 | o [ 1 ] & 1 4 & & ( r . $ $ s c o p e = { d i r t y : o , c t x : l } ) , e . $ s e t ( r ) ; c o n s t a = { } ; o [ 1 ] & 4 & & ( a . 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 " + ( l [ 3 3 ] ? " " : " d i s a b l e d " ) ) , o [ 0 ] & 4 | o [ 1 ] & 1 4 & & ( a . $ $ s c o p e = { d i r t y : o , c t x : l } ) , i . $ s e t ( a ) } , i ( l ) { s | | ( A ( e . $ $ . f r a g m e n t , l ) , A ( i . $ $ . f r a g m e n t , l ) , s = ! 0 ) } , o ( l ) { I ( e . $ $ . f r a g m e n t , l ) , I ( i . $ $ . f r a g m e n t , l ) , s = ! 1 } , d ( l ) { j ( e , l ) , l & & w ( t ) , j ( i , l ) } } } f u n c t i o n b 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 : [ p C , ( { u n i q u e I d : r } ) = > ( { 3 2 : r } ) , ( { u n i q u e I d : r } ) = > [ 0 , r ? 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 : [ m C , ( { u n i q u e I d : r } ) = > ( { 3 2 : r } ) , ( { u n i q u e I d : r } ) = > [ 0 , r ? 2 : 0 ] ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { e = v ( " d i v " ) , V ( t . $ $ . f r a g m e n t ) , i = D ( ) , s = v ( " d i v " ) , V ( 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 ) , q ( t , e , n u l l ) , S ( r , i , a ) , S ( r , s , a ) , q ( 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 ] & 1 | a [ 1 ] & 1 0 & & ( 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 ] & 1 | a [ 1 ] & 1 0 & & ( f . $ $ s c o p e = { d i r t y : a , c t x : r } ) , l . $ s e t ( f ) } , i ( r ) { o | | ( A ( t . $ $ . f r a g m e n t , r ) , A ( l . $ $ . f r a g m e n t , r ) , o = ! 0 ) } , o ( r ) { I ( t . $ $ . f r a g m e n t , r ) , I ( l . $ $ . f r a g m e n t , r ) , o = ! 1 } , d ( r ) { r & & w ( e ) , j ( t ) , r & & w ( i ) , r & & w ( s ) , j ( l ) } } } f u n c t i o n p C ( n ) { l e t e , t , i , s , l , o , r , a ; r e t u r n { c ( ) { e = v ( " l a b e l " ) , t = B ( " M i n s e l e c t " ) , s = D ( ) , l = v ( " i n p u t " ) , m ( e , " f o r " , i = n [ 3 2 ] ) , m ( l , " t y p e " , " n u m b e r " ) , m ( l , " i d " , o = n [ 3 2 ] ) , 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 ) , u e ( l , n [ 0 ] . o p t i o n s . m i n S e l e c t ) , r | | ( a = K ( l , " i n p u t " , n [ 1 1 ] ) , r = ! 0 ) } , p ( u , f ) { f [ 1 ] & 2 & & i ! = = ( i = u [ 3 2 ] ) & & m ( e , " f o r " , i ) , f [ 1 ] & 2 & & o ! = = ( o = u [ 3 2 ] ) & & m ( l , " i d " , o ) , f [ 0 ] & 1 & & h t ( l . v a l u e ) ! = = u [ 0 ] . o p t i o n s . m i n S e l e c t & & u e ( l , u [ 0 ] . o p t i o n s . m i n 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 m C ( n ) { l e t e , t , i , s , l , o , r , a , u ; r e t u r n { c ( ) { e = v ( " l a b e l " ) , t = B ( " M a x s e l e c t " ) , s = D ( ) , l = v ( " i n p u t " ) , m ( e , " f o r " , i = n [ 3 2 ] ) , m ( l , " t y p e " , " n u m b e r "
` ),t=v("code"),t.textContent="username",i=B( ` ,
` ),s=v("code"),s.textContent="email",l=B( ` ,
` ),o=v("code"),o.textContent="emailVisibility",r=B( ` ,
2023-03-19 14:17:36 +08:00
` ),a=v("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 kd(n,e){let t,i,s,l,o;function r(p){e[7](p,e[17],e[18],e[19])}function a(){return e[8](e[19])}function u(...p){return e[10](e[19],...p)}function f(...p){return e[11](e[19],...p)}var c=e[1][e[17].type];function d(p){let h={key:p[4](p[17])};return p[17]!==void 0&&(h.field=p[17]),{props:h}}return c&&(i=Ct(c,d(e)),se.push(()=>ge(i,"field",r)),i. $ on("remove",a),i. $ on("rename",e[9]),i. $ on("dragstart",u),i. $ on("drop",f)),{key:n,first:null,c(){t=we(),i&&V(i. $ $ .fragment),l=we(),this.first=t},m(p,h){S(p,t,h),i&&q(i,p,h),S(p,l,h),o=!0},p(p,h){e=p;const g={};if(h&1&&(g.key=e[4](e[17])),!s&&h&1&&(s=!0,g.field=e[17],ke(()=>s=!1)),h&1&&c!==(c=e[1][e[17].type])){if(i){re();const _=i;I(_. $ $ .fragment,1,0,()=>{j(_,1)}),ae()}c?(i=Ct(c,d(e)),se.push(()=>ge(i,"field",r)),i. $ on("remove",a),i. $ on("rename",e[9]),i. $ on("dragstart",u),i. $ on("drop",f),V(i. $ $ .fragment),A(i. $ $ .fragment,1),q(i,l.parentNode,l)):i=null}else c&&i. $ set(g)},i(p){o||(i&&A(i. $ $ .fragment,p),o=!0)},o(p){i&&I(i. $ $ .fragment,p),o=!1},d(p){p&&w(t),p&&w(l),i&&j(i,p)}}}function kC(n){let e,t,i,s,l,o,r,a,u,f,c,d,p=[],h=new Map,g,_,y,k,T, $ ,M,C,O=n[0].isAuth&&yd(),E=n[0].schema;const P=N=>N[17];for(let N=0;N<E.length;N+=1){let R=vd(n,E,N),z=P(R);h.set(z,p[N]=kd(z,R))}_=new _T({props:{class:"btn btn-block btn-outline"}}),_. $ on("select",n[12]);function L(N){n[13](N)}let F={};return n[0]!==void 0&&(F.collection=n[0]), $ =new dT({props:F}),se.push(()=>ge( $ ,"collection",L)),{c(){e=v("div"),t=v("p"),i=B( ` System fields :
2023-03-17 01:21:16 +08:00
` ),s=v("code"),s.textContent="id",l=B( ` ,
` ),o=v("code"),o.textContent="created",r=B( ` ,
` ),a=v("code"),a.textContent="updated",u=D(),O&&O.c(),f=B( `
2023-03-19 14:17:36 +08:00
. ` ),c=D(),d=v("div");for(let N=0;N<p.length;N+=1)p[N].c();g=D(),V(_. $ $ .fragment),y=D(),k=v("hr"),T=D(),V( $ . $ $ .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(d,"class","accordions schema-fields")},m(N,R){S(N,e,R),b(e,t),b(t,i),b(t,s),b(t,l),b(t,o),b(t,r),b(t,a),b(t,u),O&&O.m(t,null),b(t,f),S(N,c,R),S(N,d,R);for(let z=0;z<p.length;z+=1)p[z]&&p[z].m(d,null);S(N,g,R),q(_,N,R),S(N,y,R),S(N,k,R),S(N,T,R),q( $ ,N,R),C=!0},p(N,[R]){N[0].isAuth?O||(O=yd(),O.c(),O.m(t,f)):O&&(O.d(1),O=null),R&119&&(E=N[0].schema,re(),p=Mt(p,R,P,1,N,E,h,d,an,kd,null,vd),ae());const z={};!M&&R&1&&(M=!0,z.collection=N[0],ke(()=>M=!1)), $ . $ set(z)},i(N){if(!C){for(let R=0;R<E.length;R+=1)A(p[R]);A(_. $ $ .fragment,N),A( $ . $ $ .fragment,N),C=!0}},o(N){for(let R=0;R<p.length;R+=1)I(p[R]);I(_. $ $ .fragment,N),I( $ . $ $ .fragment,N),C=!1},d(N){N&&w(e),O&&O.d(),N&&w(c),N&&w(d);for(let R=0;R<p.length;R+=1)p[R].d();N&&w(g),j(_,N),N&&w(y),N&&w(k),N&&w(T),j( $ ,N)}}}function wC(n,e){n&&(n.dataTransfer.effectAllowed="move",n.dataTransfer.dropEffect="move",n.dataTransfer.setData("text/plain",e))}function SC(n,e,t){let i,{collection:s=new hn}=e;const l={text:PT,number:jT,bool:zT,email:W1,url:QT,editor:t $ ,date:g $ ,select:H $ ,json:K $ ,file:aC,relation:yC};function o( $ ){s.schema[ $ ]&&(s.schema.splice( $ ,1),t(0,s))}function r( $ ="text"){const M=new gn({name:a(),type: $ });M.onMountExpand=!0,s.schema.push(M),t(0,s)}function a( $ ="field"){let M="";for(;u( $ +M);)++M;return $ +M}function u( $ ){return!!s.schema.find(M=>M.name=== $ )}function f( $ ){return i.findIndex(M=>M=== $ )}function c( $ ,M){var C;!((C=s==null?void 0:s.schema)!=null&&C.length)|| $ ===M||!M||t(0,s.indexes=s.indexes.map(O=>H.replaceIndexColumn(O, $ ,M)),s)}function d( $ ,M){if(! $ )return; $ .dataTransfer.dropEffect="move";const C=parseInt( $ .dataTransfer.getData("text/plain")),O=s.schema;C<M?(O.splice(M+1,0,O[C]),O.splice(C,1)):(O.splice(M,0,O[C]),O.splice(C+1,1)),t(0,s.schema=O,s),_n({})}function p( $ ,M,C,O){C[O]= $ ,t(0,s)}const h= $ =>o( $ ),g= $ =>c( $ .detail.oldName, $ .detail.newName),_=( $ ,M)=>wC(M.detail, $ ),y=( $ ,M)=>d(M.detail, $ ),k= $ =>r( $ .detail);function T( $ ){s= $ ,t(0,s)}return n. $ $ set= $ =>{"collection"in $ &&t(0,s= $ .collection)},n. $ $ .update=()=>{n. $ $ .dirty&1&&typeof s.schema>"u"&&(t(0,s=s||new hn),t(0,s.schema=[],s)),n. $ $ .dirty&1&&(i=s.schema.filter( $ =>! $ .toDelete)||[])},[s,l,o,r,f,c,d,p,h,g,_,y,k,T]}class TC extends ve{constructor(e){super(),be(this,e,SC,kC,_e,{collection:0})}}const $ C=n=>({isAdminOnly:n&256}),wd=n=>({isAdminOnly:n[8]});function CC(n){let e,t;return e=new pe({props:{class:"form-field rule-field "+(n[4]?"requied":"")+" "+(n[8]?"disabled":""),name:n[3], $ $ slots:{default:[EC,({uniqueId:i})=>({17:i}),({uniqueId:i})=>i?131072:0]}, $ $ scope:{ctx:n}}}),{c(){V(e. $ $ .fragment)},m(i,s){q(e,i,s),t=!0},p(i,s){const l={};s&272&&(l.class="form-field rule-field "+(i[4]?"requied":"")+" "+(i[8]?"disabled":"")),s&8&&(l.name=i[3]),s&147815&&(l. $ $ scope={dirty:s,ctx:i}),e. $ set(l)},i(i){t||(A(e. $ $ .fragment,i),t=!0)},o(i){I(e. $ $ .fragment,i),t=!1},d(i){j(e,i)}}}function MC(n){let e;return{c(){e=v("div"),e.innerHTML='<span class="loader"></span>',m(e,"class","txt-center")},m(t,i){S(t,e,i)},p:X,i:X,o:X,d(t){t&&w(e)}}}function OC(n){let e,t,i;return{c(){e=v("button"),e.innerHTML= ` < i class = "ri-lock-line" > < / i >
2023-03-17 01:21:16 +08:00
< span class = "txt" > Set Admins only < /span>`,m(e,"type","button"),m(e,"class","btn btn-sm btn-transparent btn-hint lock-toggle svelte-5uq9tk")},m(s,l){S(s,e,l),t||(i=K(e,"click",n[10]),t=!0)},p:X,d(s){s&&w(e),t=!1,i()}}}function DC(n){let e,t,i;return{c(){e=v("button"),e.innerHTML=`<i class="ri-lock-unlock-line"></i >
2023-03-19 14:17:36 +08:00
< span class = "txt" > Enable custom rule < / 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 - s u c c e s s l o c k - t o g g l e s v e l t e - 5 u q 9 t k " ) } , m ( s , l ) { S ( s , e , l ) , t | | ( i = K ( e , " c l i c k " , n [ 9 ] ) , t = ! 0 ) } , p : X , d ( s ) { s & & w ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n E C ( n ) { l e t e , t , i , s , l , o = n [ 8 ] ? " A d m i n s o n l y " : " C u s t o m r u l e " , r , a , u , f , c , d , p , h , g ; f u n c t i o n _ ( E , P ) { r e t u r n E [ 8 ] ? D C : O C } l e t y = _ ( n ) , k = y ( n ) ; f u n c t i o n T ( E ) { n [ 1 3 ] ( E ) } v a r $ = n [ 6 ] ; f u n c t i o n M ( E ) { l e t P = { i d : E [ 1 7 ] , b a s e C o l l e c t i o n : E [ 1 ] , d i s a b l e d : E [ 8 ] , p l a c e h o l d e r : E [ 8 ] ? " " : " 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 . . . " } ; r e t u r n E [ 0 ] ! = = v o i d 0 & & ( P . v a l u e = E [ 0 ] ) , { p r o p s : P } } $ & & ( c = C t ( $ , M ( n ) ) , n [ 1 2 ] ( c ) , s e . p u s h ( ( ) = > g e ( c , " v a l u e " , T ) ) ) ; c o n s t C = n [ 1 1 ] . d e f a u l t , O = E t ( C , n , n [ 1 4 ] , w d ) ; r e t u r n { c ( ) { e = v ( " l a b e l " ) , t = v ( " s p a n " ) , i = B ( n [ 2 ] ) , s = D ( ) , l = v ( " s p a n " ) , r = B ( o ) , a = D ( ) , k . c ( ) , f = D ( ) , c & & V ( c . $ $ . f r a g m e n t ) , p = D ( ) , h = v ( " d i v " ) , O & & O . c ( ) , m ( t , " c l a s s " , " t x t " ) , Q ( t , " t x t - h i n t " , n [ 8 ] ) , m ( l , " c l a s s " , " l a b e l l a b e l - s m s v e l t e - 5 u q 9 t k " ) , m ( e , " f o r " , u = n [ 1 7 ] ) , m ( e , " c l a s s " , " s v e l t e - 5 u q 9 t k " ) , m ( h , " c l a s s " , " h e l p - b l o c k " ) } , m ( E , P ) { S ( E , e , P ) , b ( e , t ) , b ( t , i ) , b ( e , s ) , b ( e , l ) , b ( l , r ) , b ( e , a ) , k . m ( e , n u l l ) , S ( E , f , P ) , c & & q ( c , E , P ) , S ( E , p , P ) , S ( E , h , P ) , O & & O . m ( h , n u l l ) , g = ! 0 } , p ( E , P ) { ( ! g | | P & 4 ) & & l e ( i , E [ 2 ] ) , ( ! g | | P & 2 5 6 ) & & Q ( t , " t x t - h i n t " , E [ 8 ] ) , ( ! g | | P & 2 5 6 ) & & o ! = = ( o = E [ 8 ] ? " A d m i n s o n l y " : " C u s t o m r u l e " ) & & l e ( r , o ) , y = = = ( y = _ ( E ) ) & & k ? k . p ( E , P ) : ( k . d ( 1 ) , k = y ( E ) , k & & ( k . c ( ) , k . m ( e , n u l l ) ) ) , ( ! g | | P & 1 3 1 0 7 2 & & u ! = = ( u = E [ 1 7 ] ) ) & & m ( e , " f o r " , u ) ; c o n s t L = { } ; i f ( P & 1 3 1 0 7 2 & & ( L . i d = E [ 1 7 ] ) , P & 2 & & ( L . b a s e C o l l e c t i o n = E [ 1 ] ) , P & 2 5 6 & & ( L . d i s a b l e d = E [ 8 ] ) , P & 2 5 6 & & ( L . p l a c e h o l d e r = E [ 8 ] ? " " : " 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 . . . " ) , ! d & & P & 1 & & ( d = ! 0 , L . v a l u e = E [ 0 ] , k e ( ( ) = > d = ! 1 ) ) , P & 6 4 & & $ ! = = ( $ = E [ 6 ] ) ) { i f ( c ) { r e ( ) ; c o n s t F = c ; I ( F . $ $ . f r a g m e n t , 1 , 0 , ( ) = > { j ( F , 1 ) } ) , a e ( ) } $ ? ( c = C t ( $ , M ( E ) ) , E [ 1 2 ] ( c ) , s e . p u s h ( ( ) = > g e ( c , " v a l u e " , T ) ) , V ( c . $ $ . f r a g m e n t ) , A ( c . $ $ . f r a g m e n t , 1 ) , q ( c , p . p a r e n t N o d e , p ) ) : c = n u l l } e l s e $ & & c . $ s e t ( L ) ; O & & O . p & & ( ! g | | P & 1 6 6 4 0 ) & & I t ( O , C , E , E [ 1 4 ] , g ? A t ( C , E [ 1 4 ] , P , $ C ) : P t ( E [ 1 4 ] ) , w d ) } , i ( E ) { g | | ( c & & A ( c . $ $ . f r a g m e n t , E ) , A ( O , E ) , g = ! 0 ) } , o ( E ) { c & & I ( c . $ $ . f r a g m e n t , E ) , I ( O , E ) , g = ! 1 } , d ( E ) { E & & w ( e ) , k . d ( ) , E & & w ( f ) , n [ 1 2 ] ( n u l l ) , c & & j ( c , E ) , E & & w ( p ) , E & & w ( h ) , O & & O . d ( E ) } } } f u n c t i o n A C ( n ) { l e t e , t , i , s ; c o n s t l = [ M C , C C ] , o = [ ] ; f u n c t i o n r ( a , u ) { r e t u r n a [ 7 ] ? 0 : 1 } r e t u r n e = r ( n ) , t = o [ e ] = l [ e ] ( n ) , { c ( ) { t . c ( ) , i = w 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 ) : ( r e ( ) , I ( o [ f ] , 1 , 1 , ( ) = > { o [ f ] = n u l l } ) , a e ( ) , t = o [ e ] , t ? t . p ( a , u ) : ( t = o [ e ] = l [ e ] ( a ) , t . c ( ) ) , A ( t , 1 ) , t . m ( i . p a r e n t N o d e , i ) ) } , i ( a ) { s | | ( A ( t ) , s = ! 0 ) } , o ( a ) { I ( t ) , s = ! 1 } , d ( a ) { o [ e ] . d ( a ) , a & & w ( i ) } } } l e t S d ; f u n c t i o n I C ( 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 , c = n u l l , d = n u l l , p = S d , h = ! 1 ; g ( ) ; a s y n c f u n c t i o n g ( ) { p | | h | | ( t ( 7 , h = ! 0 ) , t ( 6 , p = ( a w a i t r 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 - f d b 4 e 1 3 2 . 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 - f d b 4 e 1 3 2 . j s " , " . / i n d e x - 2 0 a d c f 2 4 . j s " ] , i m p o r t . m e t a . u r l ) ) . d e f a u l t ) , S d = p , t ( 7 , h = ! 1 ) ) } a s y n c f u n c t i o n _ ( ) { t ( 0 , r = d | | " " ) , a w a i t r n ( ) , c = = n u l l | | c . f o c u s ( ) } a s y n c f u n c t i o n y ( ) { d = r , t ( 0 , r = n u l l ) } f u n c t i o n k ( $ ) { s e [ $ ? " u n s h i f t " : " p u s h " ] ( ( ) = > { c = $ , t ( 5 , c ) } ) } f u n c t i o n T ( $ ) { r = $ , t ( 0 , r ) } r e t u r n n . $ $ s e t = $ = > { " c o l l e c t i o n " i n $ & & t ( 1 , o = $ . c o l l e c t i o n ) , " r u l e " i n $ & & t ( 0 , r = $ . r u l e ) , " l a b e l " i n $ & & t ( 2 , a = $ . l a b e l ) , " f o r m K e y " i n $ & & t ( 3 , u = $ . f o r m K e y ) , " r e q u i r e d " i n $ & & t ( 4 , f = $ . r e q u i r e d ) , " $ $ s c o p e " i n $ & & t ( 1 4 , l = $ . $ $ s c o p e ) } , n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 1 & & t ( 8 , i = r = = = n u l l ) } , [ r , o , a , u , f , c , p , h , i , _ , y , s , k , T , l ] } c l a s s T s e x t e n d s v e { c o n s t r u c t o r ( e ) { s u p e r ( ) , b e ( t h i s , e , I C , A C , _ 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 } ) } } f u n c t i o n T d ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 1 0 ] = e [ t ] , i } f u n c t i o n $ d ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d , p , h , g , _ , y , k , T , $ , M , C , O , E , P = n [ 2 ] , L = [ ] ; f o r ( l e t F = 0 ; F < P . l e n g t h ; F + = 1 ) L [ F ] = C d ( T d ( n , P , F ) ) ; r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " d i v " ) , i = v ( " d i v " ) , s = v ( " p " ) , s . t e x t C o n t e n t = " T h e f o l l o w i n g r e c o r d f i e l d s a r e a v a i l a b l e : " , l = D ( ) , o = v ( " d i v " ) ; f o r ( l e t F = 0 ; F < L . l e n g t h ; F + = 1 ) L [ F ] . c ( ) ; r = D ( ) , a = v ( " h r " ) , u = D ( ) , f = v ( " p " ) , f . i n n e r H T M L = " T h e r e q u e s t f i e l d s c o u l d b e a c c e s s e d w i t h t h e s p e c i a l < e m > @ r e q u e s t < / e m > f i l t e r : " , c = D ( ) , d = v ( " d i v " ) , d . i n n e r H T M L = ` < c o d e > @ r e q u e s t . h e a d e r s . * < / c o d e >
2023-03-17 01:21:16 +08:00
< code > @ request . query . * < / c o d e >
< code > @ request . data . * < / c o d e >
< code > @ request . auth . * < / c o d e > ` , p = D ( ) , h = v ( " h r " ) , g = D ( ) , _ = v ( " p " ) , _ . 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 : " , y = D ( ) , k = v ( " d i v " ) , k . 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 > " , T = D ( ) , $ = v ( " h r " ) , M = D ( ) , C = v ( " p " ) , C . i n n e r H T M L = ` E x a m p l e r u l e :
< br / >
2023-03-19 14:17:36 +08: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 ( d , " c l a s s " , " i n l i n e - f l e x f l e x - g a p - 5 " ) , m ( h , " c l a s s " , " m - t - 1 0 m - b - 5 " ) , m ( _ , " c l a s s " , " m - b - 0 " ) , m ( k , " c l a s s " , " i n l i n e - f l e x f l e x - g a p - 5 " ) , m ( $ , " 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 , N ) { S ( F , e , N ) , b ( e , t ) , b ( t , i ) , b ( i , s ) , b ( i , l ) , b ( i , o ) ; f o r ( l e t R = 0 ; R < L . l e n g t h ; R + = 1 ) L [ R ] & & L [ R ] . m ( o , n u l l ) ; b ( i , r ) , b ( i , a ) , b ( i , u ) , b ( i , f ) , b ( i , c ) , b ( i , d ) , b ( i , p ) , b ( i , h ) , b ( i , g ) , b ( i , _ ) , b ( i , y ) , b ( i , k ) , b ( i , T ) , b ( i , $ ) , b ( i , M ) , b ( i , C ) , E = ! 0 } , p ( F , N ) { i f ( N & 4 ) { P = F [ 2 ] ; l e t R ; f o r ( R = 0 ; R < P . l e n g t h ; R + = 1 ) { c o n s t z = T d ( F , P , R ) ; L [ R ] ? L [ R ] . p ( z , N ) : ( L [ R ] = C d ( z ) , L [ R ] . c ( ) , L [ R ] . m ( o , n u l l ) ) } f o r ( ; R < L . l e n g t h ; R + = 1 ) L [ R ] . d ( 1 ) ; L . l e n g t h = P . l e n g t h } } , i ( F ) { E | | ( F & & X e ( ( ) = > { E & & ( O | | ( O = q e ( e , v t , { d u r a t i o n : 1 5 0 } , ! 0 ) ) , O . r u n ( 1 ) ) } ) , E = ! 0 ) } , o ( F ) { F & & ( O | | ( O = q e ( e , v t , { d u r a t i o n : 1 5 0 } , ! 1 ) ) , O . r u n ( 0 ) ) , E = ! 1 } , d ( F ) { F & & w ( e ) , a t ( L , F ) , F & & O & & O . e n d ( ) } } } f u n c t i o n C d ( n ) { l e t e , t = n [ 1 0 ] + " " , i ; r e t u r n { c ( ) { e = v ( " c o d e " ) , i = B ( t ) } , m ( s , l ) { S ( s , e , l ) , b ( e , i ) } , p ( s , l ) { l & 4 & & t ! = = ( t = s [ 1 0 ] + " " ) & & l e ( i , t ) } , d ( s ) { s & & w ( e ) } } } f u n c t i o n M d ( n ) { l e t e , t , i , s , l , o , r , a , u ; f u n c t i o n f ( _ ) { n [ 6 ] ( _ ) } l e t c = { 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 ] } ; n [ 0 ] . c r e a t e R u l e ! = = v o i d 0 & & ( c . r u l e = n [ 0 ] . c r e a t e R u l e ) , e = n e w T s ( { p r o p s : c } ) , s e . p u s h ( ( ) = > g e ( e , " r u l e " , f ) ) ; f u n c t i o n d ( _ ) { n [ 7 ] ( _ ) } l e t p = { 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 & & ( p . r u l e = n [ 0 ] . u p d a t e R u l e ) , s = n e w T s ( { p r o p s : p } ) , s e . p u s h ( ( ) = > g e ( s , " r u l e " , d ) ) ; f u n c t i o n h ( _ ) { n [ 8 ] ( _ ) } l e t g = { 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 & & ( g . r u l e = n [ 0 ] . d e l e t e R u l e ) , r = n e w T s ( { p r o p s : g } ) , s e . p u s h ( ( ) = > g e ( r , " r u l e " , h ) ) , { c ( ) { V ( e . $ $ . f r a g m e n t ) , i = D ( ) , V ( s . $ $ . f r a g m e n t ) , o = D ( ) , V ( r . $ $ . f r a g m e n t ) } , m ( _ , y ) { q ( e , _ , y ) , S ( _ , i , y ) , q ( s , _ , y ) , S ( _ , o , y ) , q ( r , _ , y ) , u = ! 0 } , p ( _ , y ) { c o n s t k = { } ; y & 1 & & ( k . c o l l e c t i o n = _ [ 0 ] ) , ! t & & y & 1 & & ( t = ! 0 , k . r u l e = _ [ 0 ] . c r e a t e R u l e , k e ( ( ) = > t = ! 1 ) ) , e . $ s e t ( k ) ; c o n s t T = { } ; y & 1 & & ( T . c o l l e c t i o n = _ [ 0 ] ) , ! l & & y & 1 & & ( l = ! 0 , T . r u l e = _ [ 0 ] . u p d a t e R u l e , k e ( ( ) = > l = ! 1 ) ) , s . $ s e t ( T ) ; c o n s t $ = { } ; y & 1 & & ( $ . c o l l e c t i o n = _ [ 0 ] ) , ! a & & y & 1 & & ( a = ! 0 , $ . r u l e = _ [ 0 ] . d e l e t e R u l e , k e ( ( ) = > a = ! 1 ) ) , r . $ s e t ( $ ) } , i ( _ ) { u | | ( A ( e . $ $ . f r a g m e n t , _ ) , A ( s . $ $ . f r a g m e n t , _ ) , A ( r . $ $ . f r a g m e n t , _ ) , u = ! 0 ) } , o ( _ ) { I ( e . $ $ . f r a g m e n t , _ ) , I ( s . $ $ . f r a g m e n t , _ ) , I ( r . $ $ . f r a g m e n t , _ ) , u = ! 1 } , d ( _ ) { j ( e , _ ) , _ & & w ( i ) , j ( s , _ ) , _ & & w ( o ) , j ( r , _ ) } } } f u n c t i o n O 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 " , c o l l e c t i o n : n [ 0 ] , $ $ s l o t s : { d e f a u l t : [ P 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 . 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 T s ( { p r o p s : l } ) , s e . p u s h ( ( ) = > g e ( e , " r u l e " , s ) ) , { c ( ) { V ( e . $ $ . f r a g m e n t ) } , m ( o , r ) { q ( e , o , r ) , i = ! 0 } , p ( o , r ) { c o n s t a = { } ; r & 1 & & ( a . c o l l e c t i o n = o [ 0 ] ) , r & 8 1 9 2 & & ( 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 , k e ( ( ) = > t = ! 1 ) ) , e . $ s e t ( a ) } , i ( o ) { i | | ( A ( e . $ $ . f r a g m e n t , o ) , i = ! 0 ) } , o ( o ) { I ( e . $ $ . f r a g m e n t , o ) , i = ! 1 } , d ( o ) { j ( e , o ) } } } f u n c t i o n P C ( n ) { l e t e , t , i ; r e t u r n { c ( ) { e = v ( " 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-03-17 01:21:16 +08:00
changing the password without requiring to enter the old one , directly updating the verified
state or email , etc . ` ,t=D(),i=v("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:X,d(s){s&&w(e),s&&w(t),s&&w(i)}}}function LC(n){var N,R;let e,t,i,s,l,o=n[1]?"Hide available fields":"Show available fields",r,a,u,f,c,d,p,h,g,_,y,k,T, $ ,M=n[1]&& $ d(n);function C(z){n[4](z)}let O={label:"List/Search rule",formKey:"listRule",collection:n[0]};n[0].listRule!==void 0&&(O.rule=n[0].listRule),f=new Ts({props:O}),se.push(()=>ge(f,"rule",C));function E(z){n[5](z)}let P={label:"View rule",formKey:"viewRule",collection:n[0]};n[0].viewRule!==void 0&&(P.rule=n[0].viewRule),p=new Ts({props:P}),se.push(()=>ge(p,"rule",E));let L=!((N=n[0])!=null&&N.isView)&&Md(n),F=((R=n[0])==null?void 0:R.isAuth)&&Od(n);return{c(){e=v("div"),t=v("div"),i=v("p"),i.innerHTML= ` All rules follow the
< a href = "https://pocketbase.io/docs/api-rules-and-filters/" target = "_blank" rel = "noopener noreferrer" > PocketBase filter syntax and operators
2023-03-19 14:17:36 +08:00
< / a > . ` , s = D ( ) , l = v ( " b u t t o n " ) , r = B ( o ) , a = D ( ) , M & & M . c ( ) , u = D ( ) , V ( f . $ $ . f r a g m e n t ) , d = D ( ) , V ( p . $ $ . f r a g m e n t ) , g = D ( ) , L & & L . c ( ) , _ = D ( ) , F & & F . c ( ) , y = w 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 " ) , Q ( e , " f a d e " , ! n [ 1 ] ) } , m ( z , W ) { S ( z , e , W ) , 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 ( z , u , W ) , q ( f , z , W ) , S ( z , d , W ) , q ( p , z , W ) , S ( z , g , W ) , L & & L . m ( z , W ) , S ( z , _ , W ) , F & & F . m ( z , W ) , S ( z , y , W ) , k = ! 0 , T | | ( $ = K ( l , " c l i c k " , n [ 3 ] ) , T = ! 0 ) } , p ( z , [ W ] ) { v a r n e , G ; ( ! k | | W & 2 ) & & o ! = = ( o = z [ 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 " ) & & l e ( r , o ) , z [ 1 ] ? M ? ( M . p ( z , W ) , W & 2 & & A ( M , 1 ) ) : ( M = $ d ( z ) , M . c ( ) , A ( M , 1 ) , M . m ( e , n u l l ) ) : M & & ( r e ( ) , I ( M , 1 , 1 , ( ) = > { M = n u l l } ) , a e ( ) ) , ( ! k | | W & 2 ) & & Q ( e , " f a d e " , ! z [ 1 ] ) ; c o n s t J = { } ; W & 1 & & ( J . c o l l e c t i o n = z [ 0 ] ) , ! c & & W & 1 & & ( c = ! 0 , J . r u l e = z [ 0 ] . l i s t R u l e , k e ( ( ) = > c = ! 1 ) ) , f . $ s e t ( J ) ; c o n s t x = { } ; W & 1 & & ( x . c o l l e c t i o n = z [ 0 ] ) , ! h & & W & 1 & & ( h = ! 0 , x . r u l e = z [ 0 ] . v i e w R u l e , k e ( ( ) = > h = ! 1 ) ) , p . $ s e t ( x ) , ( n e = z [ 0 ] ) ! = n u l l & & n e . i s V i e w ? L & & ( r e ( ) , I ( L , 1 , 1 , ( ) = > { L = n u l l } ) , a e ( ) ) : L ? ( L . p ( z , W ) , W & 1 & & A ( L , 1 ) ) : ( L = M d ( z ) , L . c ( ) , A ( L , 1 ) , L . m ( _ . p a r e n t N o d e , _ ) ) , ( G = z [ 0 ] ) ! = n u l l & & G . i s A u t h ? F ? ( F . p ( z , W ) , W & 1 & & A ( F , 1 ) ) : ( F = O d ( z ) , F . c ( ) , A ( F , 1 ) , F . m ( y . p a r e n t N o d e , y ) ) : F & & ( r e ( ) , I ( F , 1 , 1 , ( ) = > { F = n u l l } ) , a e ( ) ) } , i ( z ) { k | | ( A ( M ) , A ( f . $ $ . f r a g m e n t , z ) , A ( p . $ $ . f r a g m e n t , z ) , A ( L ) , A ( F ) , k = ! 0 ) } , o ( z ) { I ( M ) , I ( f . $ $ . f r a g m e n t , z ) , I ( p . $ $ . f r a g m e n t , z ) , I ( L ) , I ( F ) , k = ! 1 } , d ( z ) { z & & w ( e ) , M & & M . d ( ) , z & & w ( u ) , j ( f , z ) , z & & w ( d ) , j ( p , z ) , z & & w ( g ) , L & & L . d ( z ) , z & & w ( _ ) , F & & F . d ( z ) , z & & w ( y ) , T = ! 1 , $ ( ) } } } f u n c t i o n N C ( n , e , t ) { l e t i , { c o l l e c t i o n : s = n e w h n } = e , l = ! 1 ; c o n s t o = ( ) = > t ( 1 , l = ! l ) ; f u n c t i o n r ( p ) { n . $ $ . n o t _ e q u a l ( s . l i s t R u l e , p ) & & ( s . l i s t R u l e = p , t ( 0 , s ) ) } f u n c t i o n a ( p ) { n . $ $ . n o t _ e q u a l ( s . v i e w R u l e , p ) & & ( s . v i e w R u l e = p , t ( 0 , s ) ) } f u n c t i o n u ( p ) { n . $ $ . n o t _ e q u a l ( s . c r e a t e R u l e , p ) & & ( s . c r e a t e R u l e = p , t ( 0 , s ) ) } f u n c t i o n f ( p ) { n . $ $ . n o t _ e q u a l ( s . u p d a t e R u l e , p ) & & ( s . u p d a t e R u l e = p , t ( 0 , s ) ) } f u n c t i o n c ( p ) { n . $ $ . n o t _ e q u a l ( s . d e l e t e R u l e , p ) & & ( s . d e l e t e R u l e = p , t ( 0 , s ) ) } f u n c t i o n d ( p ) { 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 , p ) & & ( s . o p t i o n s . m a n a g e R u l e = p , t ( 0 , s ) ) } r e t u r n n . $ $ s e t = p = > { " c o l l e c t i o n " i n p & & t ( 0 , s = p . 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 = H . 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 , c , d ] } c l a s s F C e x t e n d s v e { c o n s t r u c t o r ( e ) { s u p e r ( ) , b e ( t h i s , e , N C , L C , _ e , { c o l l e c t i o n : 0 } ) } } f u n c t i o n D 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 R C ( 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 = C t ( o , r ( n ) ) , s e . p u s h ( ( ) = > g e ( e , " v a l u e " , l ) ) , e . $ o n ( " c h a n g e " , n [ 6 ] ) ) , { c ( ) { e & & V ( e . $ $ . f r a g m e n t ) , i = w e ( ) } , m ( a , u ) { e & & q ( 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 , k e ( ( ) = > t = ! 1 ) ) , u & 2 & & o ! = = ( o = a [ 1 ] ) ) { i f ( e ) { r e ( ) ; c o n s t c = e ; I ( c . $ $ . f r a g m e n t , 1 , 0 , ( ) = > { j ( c , 1 ) } ) , a e ( ) } o ? ( e = C t ( o , r ( a ) ) , s e . p u s h ( ( ) = > g e ( e , " v a l u e " , l ) ) , e . $ o n ( " c h a n g e " , a [ 6 ] ) , V ( e . $ $ . f r a g m e n t ) , A ( e . $ $ . f r a g m e n t , 1 ) , q ( 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 & & A ( e . $ $ . f r a g m e n t , a ) , s = ! 0 ) } , o ( a ) { e & & I ( e . $ $ . f r a g m e n t , a ) , s = ! 1 } , d ( a ) { a & & w ( i ) , e & & j ( e , a ) } } } f u n c t i o n q C ( n ) { l e t e ; r e t u r n { c ( ) { e = v ( " 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 : X , i : X , o : X , d ( t ) { t & & w ( e ) } } } f u n c t i o n E 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 ] = A d ( D d ( n , i , l ) ) ; r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " 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 = D d ( l , i , r ) ; s [ r ] ? s [ r ] . p ( a , o ) : ( s [ r ] = A 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 ) , a t ( s , l ) } } } f u n c t i o n A d ( n ) { l e t e , t = n [ 9 ] + " " , i ; r e t u r n { c ( ) { e = v ( " p " ) , i = B ( t ) } , m ( s , l ) { S ( s , e , l ) , b ( e , i ) } , p ( s , l ) { l & 8 & & t ! = = ( t = s [ 9 ] + " " ) & & l e ( i , t ) } , d ( s ) { s & & w ( e ) } } } f u n c t i o n j C ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c ; c o n s t d = [ q C , R C ] , p = [ ] ; f u n c t i o n h ( _ , y ) { r e t u r n _ [ 2 ] ? 0 : 1 } l = h ( n ) , o = p [ l ] = d [ l ] ( n ) ; l e t g = n [ 3 ] . l e n g t h & & E d ( n ) ; r e t u r n { c ( ) { e = v ( " l a b e l " ) , t = v ( " 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 = v ( " d i v " ) , a . i n n e r H T M L = ` < u l > < l i > W i l d c a
2023-03-17 01:21:16 +08: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
2023-03-19 14:17:36 +08:00
< code > ( ROW _NUMBER ( ) OVER ( ) ) as id < / c o d e > . < / l i > < / u l > ` , u = D ( ) , g & & g . c ( ) , f = w 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 ( _ , y ) { S ( _ , e , y ) , b ( e , t ) , S ( _ , s , y ) , p [ l ] . m ( _ , y ) , S ( _ , r , y ) , S ( _ , a , y ) , S ( _ , u , y ) , g & & g . m ( _ , y ) , S ( _ , f , y ) , c = ! 0 } , p ( _ , y ) { ( ! c | | y & 2 5 6 & & i ! = = ( i = _ [ 8 ] ) ) & & m ( e , " f o r " , i ) ; l e t k = l ; l = h ( _ ) , l = = = k ? p [ l ] . p ( _ , y ) : ( r e ( ) , I ( p [ k ] , 1 , 1 , ( ) = > { p [ k ] = n u l l } ) , a e ( ) , o = p [ l ] , o ? o . p ( _ , y ) : ( o = p [ l ] = d [ l ] ( _ ) , o . c ( ) ) , A ( o , 1 ) , o . m ( r . p a r e n t N o d e , r ) ) , _ [ 3 ] . l e n g t h ? g ? g . p ( _ , y ) : ( g = E d ( _ ) , g . c ( ) , g . m ( f . p a r e n t N o d e , f ) ) : g & & ( g . d ( 1 ) , g = n u l l ) } , i ( _ ) { c | | ( A ( o ) , c = ! 0 ) } , o ( _ ) { I ( o ) , c = ! 1 } , d ( _ ) { _ & & w ( e ) , _ & & w ( s ) , p [ l ] . d ( _ ) , _ & & w ( r ) , _ & & w ( a ) , _ & & w ( u ) , g & & g . d ( _ ) , _ & & w ( f ) } } } f u n c t i o n V C ( 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 : [ j C , ( { 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 ( ) { V ( e . $ $ . f r a g m e n t ) } , m ( i , s ) { q ( 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 | | ( A ( e . $ $ . f r a g m e n t , i ) , t = ! 0 ) } , o ( i ) { I ( e . $ $ . f r a g m e n t , i ) , t = ! 1 } , d ( i ) { j ( e , i ) } } } f u n c t i o n H C ( n , e , t ) { l e t i ; W e ( n , t i , c = > t ( 4 , i = c ) ) ; l e t { c o l l e c t i o n : s = n e w h n } = e , l , o = ! 1 , r = [ ] ; f u n c t i o n a ( c ) { v a r h ; t ( 3 , r = [ ] ) ; c o n s t d = H . g e t N e s t e d V a l ( c , " s c h e m a " , n u l l ) ; i f ( H . i s E m p t y ( d ) ) r e t u r n ; i f ( d ! = n u l l & & d . m e s s a g e ) { r . p u s h ( d = = n u l l ? v o i d 0 : d . m e s s a g e ) ; r e t u r n } c o n s t p = H . e x t r a c t C o l u m n s F r o m Q u e r y ( ( h = 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 : h . q u e r y ) ; H . r e m o v e B y V a l u e ( p , " i d " ) , H . r e m o v e B y V a l u e ( p , " c r e a t e d " ) , H . r e m o v e B y V a l u e ( p , " u p d a t e d " ) ; f o r ( l e t g i n d ) f o r ( l e t _ i n d [ g ] ) { c o n s t y = d [ g ] [ _ ] . m e s s a g e , k = p [ g ] | | g ; r . p u s h ( H . s e n t e n i z e ( k + " : " + y ) ) } } Q t ( a s y n c ( ) = > { t ( 2 , o = ! 0 ) ; t r y { t ( 1 , l = ( a w a i t r t ( ( ) = > i m p o r t ( " . / C o d e E d i t o r - 3 c 7 b 0 d 7 4 . j s " ) , [ " . / C o d e E d i t o r - 3 c 7 b 0 d 7 4 . j s " , " . / i n d e x - 2 0 a d c f 2 4 . 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 ( c ) { c o n s o l e . w a r n ( c ) } t ( 2 , o = ! 1 ) } ) ; f u n c t i o n u ( c ) { n . $ $ . n o t _ e q u a l ( s . o p t i o n s . q u e r y , c ) & & ( s . o p t i o n s . q u e r y = c , t ( 0 , s ) ) } c o n s t f = ( ) = > { r . l e n g t h & & c i ( " s c h e m a " ) } ; r e t u r n n . $ $ s e t = c = > { " c o l l e c t i o n " i n c & & t ( 0 , s = c . 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 z C e x t e n d s v e { c o n s t r u c t o r ( e ) { s u p e r ( ) , b e ( t h i s , e , H C , V C , _ e , { c o l l e c t i o n : 0 } ) } } c o n s t B C = n = > ( { a c t i v e : n & 1 } ) , I d = n = > ( { a c t i v e : n [ 0 ] } ) ; f u n c t i o n P 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 = E t ( s , n , n [ 1 4 ] , n u l l ) ; r e t u r n { c ( ) { e = v ( " 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 ) & & I t ( l , s , o , o [ 1 4 ] , i ? A t ( s , o [ 1 4 ] , r , n u l l ) : P t ( o [ 1 4 ] ) , n u l l ) } , i ( o ) { i | | ( A ( l , o ) , o & & X e ( ( ) = > { i & & ( t | | ( t = q e ( e , v t , { d u r a t i o n : 1 5 0 } , ! 0 ) ) , t . r u n ( 1 ) ) } ) , i = ! 0 ) } , o ( o ) { I ( l , o ) , o & & ( t | | ( t = q e ( e , v 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 U C ( 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 = E t ( a , n , n [ 1 4 ] , I d ) ; l e t f = n [ 0 ] & & P d ( n ) ; r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " 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 ] ) , Q ( 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 ] ) , Q ( e , " a c t i v e " , n [ 0 ] ) } , m ( c , d ) { S ( c , e , d ) , 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 = [ K ( t , " c l i c k " , f t ( n [ 1 7 ] ) ) , K ( t , " d r o p " , f t ( n [ 1 8 ] ) ) , K ( t , " d r a g s t a r t " , n [ 1 9 ] ) , K ( t , " d r a g e n t e r " , n [ 2 0 ] ) , K ( t , " d r a g l e a v e " , n [ 2 1 ] ) , K ( t , " d r a g o v e r " , f t ( n [ 1 6 ] ) ) ] , o = ! 0 ) } , p ( c , [ d ] ) { u & & u . p & & ( ! l | | d & 1 6 3 8 5 ) & & I t ( u , a , c , c [ 1 4 ] , l ? A t ( a , c [ 1 4 ] , d , B C ) : P t ( c [ 1 4 ] ) , I d ) , ( ! l | | d & 4 ) & & m ( t , " d r a g g a b l e " , c [ 2 ] ) , ( ! l | | d & 8 ) & & Q ( t , " i n t e r a c t i v e " , c [ 3 ] ) , c [ 0 ] ? f ? ( f . p ( c , d ) , d & 1 & & A ( f , 1 ) ) : ( f = P d ( c ) , f . c ( ) , A ( f , 1 ) , f . m ( e , n u l l ) ) : f & & ( r e ( ) , I ( f , 1 , 1 , ( ) = > { f = n u l l } ) , a e ( ) ) , ( ! l | | d & 1 3 0 & & s ! = = ( s = " a c c o r d i o n " + ( c [ 7 ] ? " d r a g - o v e r " : " " ) + " " + c [ 1 ] ) ) & & m ( e , " c l a s s " , s ) , ( ! l | | d & 1 3 1 ) & & Q ( e , " a c t i v e " , c [ 0 ] ) } , i ( c ) { l | | ( A ( u , c ) , A ( f ) , l = ! 0 ) } , o ( c ) { I ( u , c ) , I ( f ) , l = ! 1 } , d ( c ) { c & & w ( e ) , u & & u . d ( c ) , f & & f . d ( ) , n [ 2 2 ] ( n u l l ) , o = ! 1 , A e ( r ) } } } f u n c t i o n W C ( 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 = y 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 : c = ! 0 } = e , { s i n g l e : d = ! 1 } = e , p = ! 1 ; f u n c t i o n h ( ) { r e t u r n ! ! f } f u n c t i o n g ( ) { k ( ) , t ( 0 , f = ! 0 ) , l ( " e x p a n d " ) } f u n c t i o n _ ( ) { 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 y ( ) { l ( " t o g g l e " ) , f ? _ ( ) : g ( ) } f u n c t i o n k ( ) { i f ( d & & o . c l o s e s t ( " . a c c o r d i o n s " ) ) { c o n s t L = 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 = v ( " d i v " ) , s = D ( ) , f . c ( ) , l = D ( ) , c & & c . c ( ) , o = w 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 ( d , p ) { S ( d , e , p ) , S ( d , t , p ) , S ( d , i , p ) , S ( d , s , p ) , f . m ( d , p ) , S ( d , l , p ) , c & & c . m ( d , p ) , S ( d , o , p ) , r = ! 0 } , p ( d , p ) { u ! = = ( u = a ( d ) ) & & ( f . d ( 1 ) , f = u ( d ) , f & & ( f . c ( ) , f . m ( l . p a r e n t N o d e , l ) ) ) , d [ 3 ] ? c ? p & 8 & & A ( c , 1 ) : ( c = L d ( ) , c . c ( ) , A ( c , 1 ) , c . m ( o . p a r e n t N o d e , o ) ) : c & & ( r e ( ) , I ( c , 1 , 1 , ( ) = > { c = n u l l } ) , a e ( ) ) } , i ( d ) { r | | ( A ( c ) , r = ! 0 ) } , o ( d ) { I ( c ) , r = ! 1 } , d ( d ) { d & & w ( e ) , d & & w ( t ) , d & & w ( i ) , d & & w ( s ) , f . d ( d ) , d & & w ( l ) , c & & c . d ( d ) , d & & w ( o ) } } } f u n c t i o n X C ( n ) { l e t e , t , i , s , l , o , r , a ; r e t u r n { c ( ) { e = v ( " i n p u t " ) , i = D ( ) , s = v ( " l a b e l " ) , l = B ( " 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 = K ( 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 N 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 " + ( H . 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 : [ Q C , ( { 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 " + ( H . 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 : [ x C , ( { 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 = v ( " d i v " ) , t = v ( " d i v " ) , V ( i . $ $ . f r a g m e n t ) , s = D ( ) , l = v ( " d i v " ) , V ( 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 ) , q ( i , t , n u l l ) , b ( e , s ) , b ( e , l ) , q ( o , l , n u l l ) , a = ! 0 } , p ( u , f ) { c o n s t c = { } ; f & 1 & & ( c . c l a s s = " f o r m - f i e l d " + ( H . 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 & & ( c . $ $ s c o p e = { d i r t y : f , c t x : u } ) , i . $ s e t ( c ) ; c o n s t d = { } ; f & 1 & & ( d . c l a s s = " f o r m - f i e l d " + ( H . 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 & & ( d . $ $ s c o p e = { d i r t y : f , c t x : u } ) , o . $ s e t ( d ) } , i ( u ) { a | | ( A ( i . $ $ . f r a g m e n t , u ) , A ( o . $ $ . f r a g m e n t , u ) , u & & X e ( ( ) = > { a & & ( r | | ( r = q e ( e , v t , { d u r a t i o n : 1 5 0 } , ! 0 ) ) , r . r u n ( 1 ) ) } ) , a = ! 0 ) } , o ( u ) { I ( i . $ $ . f r a g m e n t , u ) , I ( o . $ $ . f r a g m e n t , u ) , u & & ( r | | ( r = q e ( e , v 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 ) , j ( i ) , j ( o ) , u & & r & & r . e n d ( ) } } } f u n c t i o n Q C ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d , p ; f u n c t i o n h ( _ ) { n [ 7 ] ( _ ) } l e t g = { i d : n [ 1 2 ] , d i s a b l e d : ! H . 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 & & ( g . 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 F s ( { p r o p s : g } ) , s e . p u s h ( ( ) = > g e ( r , " v a l u e " , h ) ) , { c ( ) { e = v ( " l a b e l " ) , t = v ( " 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 = v ( " i " ) , o = D ( ) , V ( r . $ $ . f r a g m e n t ) , u = D ( ) , f = v ( " 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 ( _ , y ) { S ( _ , e , y ) , b ( e , t ) , b ( e , i ) , b ( e , s ) , S ( _ , o , y ) , q ( r , _ , y ) , S ( _ , u , y ) , S ( _ , f , y ) , c = ! 0 , d | | ( p = D e ( z 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 .
2023-03-17 01:21:16 +08:00
This field is disabled if "Only domains" is set . ` ,position:"top"})),d=!0)},p(_,y){(!c||y&4096&&l!==(l=_[12]))&&m(e,"for",l);const k={};y&4096&&(k.id=_[12]),y&1&&(k.disabled=!H.isEmpty(_[0].options.onlyEmailDomains)),!a&&y&1&&(a=!0,k.value=_[0].options.exceptEmailDomains,ke(()=>a=!1)),r. $ set(k)},i(_){c||(A(r. $ $ .fragment,_),c=!0)},o(_){I(r. $ $ .fragment,_),c=!1},d(_){_&&w(e),_&&w(o),j(r,_),_&&w(u),_&&w(f),d=!1,p()}}}function xC(n){let e,t,i,s,l,o,r,a,u,f,c,d,p;function h(_){n[8](_)}let g={id:n[12],disabled:!H.isEmpty(n[0].options.exceptEmailDomains)};return n[0].options.onlyEmailDomains!==void 0&&(g.value=n[0].options.onlyEmailDomains),r=new Fs({props:g}),se.push(()=>ge(r,"value",h)),{c(){e=v("label"),t=v("span"),t.textContent="Only domains",i=D(),s=v("i"),o=D(),V(r. $ $ .fragment),u=D(),f=v("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(_,y){S(_,e,y),b(e,t),b(e,i),b(e,s),S(_,o,y),q(r,_,y),S(_,u,y),S(_,f,y),c=!0,d||(p=De(ze.call(null,s,{text: ` Email domains that are ONLY allowed to sign up .
2023-03-19 14:17:36 +08:00
This field is disabled if "Except domains" is set . ` ,position:"top"})),d=!0)},p(_,y){(!c||y&4096&&l!==(l=_[12]))&&m(e,"for",l);const k={};y&4096&&(k.id=_[12]),y&1&&(k.disabled=!H.isEmpty(_[0].options.exceptEmailDomains)),!a&&y&1&&(a=!0,k.value=_[0].options.onlyEmailDomains,ke(()=>a=!1)),r. $ set(k)},i(_){c||(A(r. $ $ .fragment,_),c=!0)},o(_){I(r. $ $ .fragment,_),c=!1},d(_){_&&w(e),_&&w(o),j(r,_),_&&w(u),_&&w(f),d=!1,p()}}}function e4(n){let e,t,i,s;e=new pe({props:{class:"form-field form-field-toggle m-0",name:"options.allowEmailAuth", $ $ slots:{default:[XC,({uniqueId:o})=>({12:o}),({uniqueId:o})=>o?4096:0]}, $ $ scope:{ctx:n}}});let l=n[0].options.allowEmailAuth&&Nd(n);return{c(){V(e. $ $ .fragment),t=D(),l&&l.c(),i=we()},m(o,r){q(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&&A(l,1)):(l=Nd(o),l.c(),A(l,1),l.m(i.parentNode,i)):l&&(re(),I(l,1,1,()=>{l=null}),ae())},i(o){s||(A(e. $ $ .fragment,o),A(l),s=!0)},o(o){I(e. $ $ .fragment,o),I(l),s=!1},d(o){j(e,o),o&&w(t),l&&l.d(o),o&&w(i)}}}function t4(n){let e;return{c(){e=v("span"),e.textContent="Disabled",m(e,"class","label")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function n4(n){let e;return{c(){e=v("span"),e.textContent="Enabled",m(e,"class","label label-success")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function Fd(n){let e,t,i,s,l;return{c(){e=v("i"),m(e,"class","ri-error-warning-fill txt-danger")},m(o,r){S(o,e,r),i=!0,s||(l=De(ze.call(null,e,{text:"Has errors",position:"left"})),s=!0)},i(o){i||(Xe(()=>{i&&(t||(t=qe(e,qt,{duration:150,start:.7},!0)),t.run(1))}),i=!0)},o(o){t||(t=qe(e,qt,{duration:150,start:.7},!1)),t.run(0),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function i4(n){let e,t,i,s,l,o,r;function a(d,p){return d[0].options.allowEmailAuth?n4:t4}let u=a(n),f=u(n),c=n[2]&&Fd();return{c(){e=v("div"),e.innerHTML= ` < i class = "ri-mail-star-line" > < / i >
< span class = "txt" > Email / Password < / s p a n > ` , t = D ( ) , i = v ( " d i v " ) , s = D ( ) , f . c ( ) , l = D ( ) , c & & c . c ( ) , o = w 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 ( d , p ) { S ( d , e , p ) , S ( d , t , p ) , S ( d , i , p ) , S ( d , s , p ) , f . m ( d , p ) , S ( d , l , p ) , c & & c . m ( d , p ) , S ( d , o , p ) , r = ! 0 } , p ( d , p ) { u ! = = ( u = a ( d ) ) & & ( f . d ( 1 ) , f = u ( d ) , f & & ( f . c ( ) , f . m ( l . p a r e n t N o d e , l ) ) ) , d [ 2 ] ? c ? p & 4 & & A ( c , 1 ) : ( c = F d ( ) , c . c ( ) , A ( c , 1 ) , c . m ( o . p a r e n t N o d e , o ) ) : c & & ( r e ( ) , I ( c , 1 , 1 , ( ) = > { c = n u l l } ) , a e ( ) ) } , i ( d ) { r | | ( A ( c ) , r = ! 0 ) } , o ( d ) { I ( c ) , r = ! 1 } , d ( d ) { d & & w ( e ) , d & & w ( t ) , d & & w ( i ) , d & & w ( s ) , f . d ( d ) , d & & w ( l ) , c & & c . d ( d ) , d & & w ( o ) } } } f u n c t i o n s 4 ( n ) { l e t e , t , i , s , l , o , r , a ; r e t u r n { c ( ) { e = v ( " i n p u t " ) , i = D ( ) , s = v ( " l a b e l " ) , l = B ( " 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 = K ( 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 R d ( n ) { l e t e , t , i ; r e t u r n { c ( ) { e = v ( " 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 = q e ( e , v 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 = q e ( e , v 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 l 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 : [ s 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 & & R d ( ) ; r e t u r n { c ( ) { V ( e . $ $ . f r a g m e n t ) , t = D ( ) , l & & l . c ( ) , i = w e ( ) } , m ( o , r ) { q ( 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 & & A ( l , 1 ) : ( l = R d ( ) , l . c ( ) , A ( l , 1 ) , l . m ( i . p a r e n t N o d e , i ) ) : l & & ( r e ( ) , I ( l , 1 , 1 , ( ) = > { l = n u l l } ) , a e ( ) ) } , i ( o ) { s | | ( A ( e . $ $ . f r a g m e n t , o ) , A ( l ) , s = ! 0 ) } , o ( o ) { I ( e . $ $ . f r a g m e n t , o ) , I ( l ) , s = ! 1 } , d ( o ) { j ( e , o ) , o & & w ( t ) , l & & l . d ( o ) , o & & w ( i ) } } } f u n c t i o n o 4 ( n ) { l e t e ; r e t u r n { c ( ) { e = v ( " 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 r 4 ( n ) { l e t e ; r e t u r n { c ( ) { e = v ( " 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 q d ( n ) { l e t e , t , i , s , l ; r e t u r n { c ( ) { e = v ( " 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 = D e ( z 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 = q e ( e , q 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 = q e ( e , q 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 a 4 ( n ) { l e t e , t , i , s , l , o , r ; f u n c t i o n a ( d , p ) { r e t u r n d [ 0 ] . o p t i o n s . a l l o w O A u t h 2 A u t h ? r 4 : o 4 } l e t u = a ( n ) , f = u ( n ) , c = n [ 1 ] & & q d ( ) ; r e t u r n { c ( ) { e = v ( " 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 >
2023-03-17 01:21:16 +08:00
< span class = "txt" > OAuth2 < / s p a n > ` , t = D ( ) , i = v ( " d i v " ) , s = D ( ) , f . c ( ) , l = D ( ) , c & & c . c ( ) , o = w 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 ( d , p ) { S ( d , e , p ) , S ( d , t , p ) , S ( d , i , p ) , S ( d , s , p ) , f . m ( d , p ) , S ( d , l , p ) , c & & c . m ( d , p ) , S ( d , o , p ) , r = ! 0 } , p ( d , p ) { u ! = = ( u = a ( d ) ) & & ( f . d ( 1 ) , f = u ( d ) , f & & ( f . c ( ) , f . m ( l . p a r e n t N o d e , l ) ) ) , d [ 1 ] ? c ? p & 2 & & A ( c , 1 ) : ( c = q d ( ) , c . c ( ) , A ( c , 1 ) , c . m ( o . p a r e n t N o d e , o ) ) : c & & ( r e ( ) , I ( c , 1 , 1 , ( ) = > { c = n u l l } ) , a e ( ) ) } , i ( d ) { r | | ( A ( c ) , r = ! 0 ) } , o ( d ) { I ( c ) , r = ! 1 } , d ( d ) { d & & w ( e ) , d & & w ( t ) , d & & w ( i ) , d & & w ( s ) , f . d ( d ) , d & & w ( l ) , c & & c . d ( d ) , d & & 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 = v ( " l a b e l " ) , t = B ( " M i n i m u m p a s s w o r d l e n g t h " ) , s = D ( ) , l = v ( " 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 ) , u 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 = K ( 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 & & h 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 & & u 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 f 4 ( n ) { l e t e , t , i , s , l , o , r , a , u , f ; r e t u r n { c ( ) { e = v ( " i n p u t " ) , i = D ( ) , s = v ( " l a b e l " ) , l = v ( " 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 = v ( " 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 ( c , d ) { S ( c , e , d ) , 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 ( c , i , d ) , S ( c , s , d ) , b ( s , l ) , b ( s , o ) , b ( s , r ) , u | | ( f = [ K ( e , " c h a n g e " , n [ 1 1 ] ) , D e ( z 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(c,d){d&4096&&t!==(t=c[12])&&m(e,"id",t),d&1&&(e.checked=c[0].options.requireEmail),d&4096&&a!==(a=c[12])&&m(s,"for",a)},d(c){c&&w(e),c&&w(i),c&&w(s),u=!1,Ae(f)}}}function c4(n){let e,t,i,s,l,o,r,a,u,f,c,d,p,h,g,_,y;return s=new al({props:{single:!0, $ $ slots:{header:[GC],default:[KC]}, $ $ scope:{ctx:n}}}),o=new al({props:{single:!0, $ $ slots:{header:[i4],default:[e4]}, $ $ scope:{ctx:n}}}),a=new al({props:{single:!0, $ $ slots:{header:[a4],default:[l4]}, $ $ scope:{ctx:n}}}),h=new pe({props:{class:"form-field required",name:"options.minPasswordLength", $ $ slots:{default:[u4,({uniqueId:k})=>({12:k}),({uniqueId:k})=>k?4096:0]}, $ $ scope:{ctx:n}}}),_=new pe({props:{class:"form-field form-field-toggle m-b-sm",name:"options.requireEmail", $ $ slots:{default:[f4,({uniqueId:k})=>({12:k}),({uniqueId:k})=>k?4096:0]}, $ $ scope:{ctx:n}}}),{c(){e=v("h4"),e.textContent="Auth methods",t=D(),i=v("div"),V(s. $ $ .fragment),l=D(),V(o. $ $ .fragment),r=D(),V(a. $ $ .fragment),u=D(),f=v("hr"),c=D(),d=v("h4"),d.textContent="General",p=D(),V(h. $ $ .fragment),g=D(),V(_. $ $ .fragment),m(e,"class","section-title"),m(i,"class","accordions"),m(d,"class","section-title")},m(k,T){S(k,e,T),S(k,t,T),S(k,i,T),q(s,i,null),b(i,l),q(o,i,null),b(i,r),q(a,i,null),S(k,u,T),S(k,f,T),S(k,c,T),S(k,d,T),S(k,p,T),q(h,k,T),S(k,g,T),q(_,k,T),y=!0},p(k,[T]){const $ ={};T&8201&&( $ . $ $ scope={dirty:T,ctx:k}),s. $ set( $ );const M={};T&8197&&(M. $ $ scope={dirty:T,ctx:k}),o. $ set(M);const C={};T&8195&&(C. $ $ scope={dirty:T,ctx:k}),a. $ set(C);const O={};T&12289&&(O. $ $ scope={dirty:T,ctx:k}),h. $ set(O);const E={};T&12289&&(E. $ $ scope={dirty:T,ctx:k}),_. $ set(E)},i(k){y||(A(s. $ $ .fragment,k),A(o. $ $ .fragment,k),A(a. $ $ .fragment,k),A(h. $ $ .fragment,k),A(_. $ $ .fragment,k),y=!0)},o(k){I(s. $ $ .fragment,k),I(o. $ $ .fragment,k),I(a. $ $ .fragment,k),I(h. $ $ .fragment,k),I(_. $ $ .fragment,k),y=!1},d(k){k&&w(e),k&&w(t),k&&w(i),j(s),j(o),j(a),k&&w(u),k&&w(f),k&&w(c),k&&w(d),k&&w(p),j(h,k),k&&w(g),j(_,k)}}}function d4(n,e,t){let i,s,l,o;We(n,ti,g=>t(4,o=g));let{collection:r=new hn}=e;function a(){r.options.allowUsernameAuth=this.checked,t(0,r)}function u(){r.options.allowEmailAuth=this.checked,t(0,r)}function f(g){n. $ $ .not_equal(r.options.exceptEmailDomains,g)&&(r.options.exceptEmailDomains=g,t(0,r))}function c(g){n. $ $ .not_equal(r.options.onlyEmailDomains,g)&&(r.options.onlyEmailDomains=g,t(0,r))}function d(){r.options.allowOAuth2Auth=this.checked,t(0,r)}function p(){r.options.minPasswordLength=ht(this.value),t(0,r)}function h(){r.options.requireEmail=this.checked,t(0,r)}return n. $ $ set=g=>{"collection"in g&&t(0,r=g.collection)},n. $ $ .update=()=>{var g,_,y,k;n. $ $ .dirty&1&&r.isAuth&&H.isEmpty(r.options)&&t(0,r.options={allowEmailAuth:!0,allowUsernameAuth:!0,allowOAuth2Auth:!0,minPasswordLength:8},r),n. $ $ .dirty&16&&t(2,s=!H.isEmpty((g=o==null?void 0:o.options)==null?void 0:g.allowEmailAuth)||!H.isEmpty((_=o==null?void 0:o.options)==null?void 0:_.onlyEmailDomains)||!H.isEmpty((y=o==null?void 0:o.options)==null?void 0:y.exceptEmailDomains)),n. $ $ .dirty&16&&t(1,l=!H.isEmpty((k=o==null?void 0:o.options)==null?void 0:k.allowOAuth2Auth))},t(3,i=!1),[r,l,s,i,o,a,u,f,c,d,p,h]}class p4 extends ve{constructor(e){super(),be(this,e,d4,c4,_e,{collection:0})}}function jd(n,e,t){const i=n.slice();return i[17]=e[t],i}function Vd(n,e,t){const i=n.slice();return i[17]=e[t],i}function Hd(n,e,t){const i=n.slice();return i[17]=e[t],i}function zd(n){let e;return{c(){e=v("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 Bd(n){var r;let e,t,i,s,l=n[3]&&Ud(n),o=!((r=n[2])!=null&&r.isView)&&Wd(n);return{c(){e=v("h6"),e.textContent="Changes:",t=D(),i=v("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=Ud(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=Wd(a)
` ),s=v("strong"),o=B(l),r=D(),a=v("i"),u=D(),f=v("strong"),d=B(c),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(g,_){S(g,e,_),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,d)},p(g,_){var y,k;_&2&&l!==(l=((y=g[1])==null?void 0:y.name)+"")&&le(o,l),_&4&&c!==(c=((k=g[2])==null?void 0:k.name)+"")&&le(d,c)},d(g){g&&w(e)}}}function Wd(n){let e,t,i,s=n[5],l=[];for(let f=0;f<s.length;f+=1)l[f]=Yd(Hd(n,s,f));let o=n[7],r=[];for(let f=0;f<o.length;f+=1)r[f]=Kd(Vd(n,o,f));let a=n[6],u=[];for(let f=0;f<a.length;f+=1)u[f]=Jd(jd(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=we()},m(f,c){for(let d=0;d<l.length;d+=1)l[d]&&l[d].m(f,c);S(f,e,c);for(let d=0;d<r.length;d+=1)r[d]&&r[d].m(f,c);S(f,t,c);for(let d=0;d<u.length;d+=1)u[d]&&u[d].m(f,c);S(f,i,c)},p(f,c){if(c&32){s=f[5];let d;for(d=0;d<s.length;d+=1){const p=Hd(f,s,d);l[d]?l[d].p(p,c):(l[d]=Yd(p),l[d].c(),l[d].m(e.parentNode,e))}for(;d<l.length;d+=1)l[d].d(1);l.length=s.length}if(c&128){o=f[7];let d;for(d=0;d<o.length;d+=1){const p=Vd(f,o,d);r[d]?r[d].p(p,c):(r[d]=Kd(p),r[d].c(),r[d].m(t.parentNode,t))}for(;d<r.length;d+=1)r[d].d(1);r.length=o.length}if(c&64){a=f[6];let d;for(d=0;d<a.length;d+=1){const p=jd(f,a,d);u[d]?u[d].p(p,c):(u[d]=Jd(p),u[d].c(),u[d].m(i.parentNode,i))}for(;d<u.length;d+=1)u[d].d(1);u.length=a.length}},d(f){at(l,f),f&&w(e),at(r,f),f&&w(t),at(u,f),f&&w(i)}}}function Yd(n){let e,t,i,s=n[17].name+"",l,o,r;return{c(){e=v("li"),t=B( ` Multiple to single value conversion of field
` ),i=v("strong"),l=B(s),o=D(),r=v("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+"")&&le(l,s)},d(a){a&&w(e)}}}function Kd(n){let e,t,i,s,l=n[17].originalName+"",o,r,a,u,f,c=n[17].name+"",d;return{c(){e=v("li"),t=v("div"),i=B( ` Renamed field
` ),s=v("strong"),o=B(l),r=D(),a=v("i"),u=D(),f=v("strong"),d=B(c),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(p,h){S(p,e,h),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,d)},p(p,h){h&128&&l!==(l=p[17].originalName+"")&&le(o,l),h&128&&c!==(c=p[17].name+"")&&le(d,c)},d(p){p&&w(e)}}}function Jd(n){let e,t,i,s=n[17].name+"",l,o;return{c(){e=v("li"),t=B("Removed field "),i=v("span"),l=B(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+"")&&le(l,s)},d(r){r&&w(e)}}}function m4(n){let e,t,i,s,l,o,r,a,u=n[6].length&&zd(),f=n[8]&&Bd(n);return{c(){e=v("div"),t=v("div"),t.innerHTML='<i class="ri-error-warning-line"></i>',i=D(),s=v("div"),l=v("p"),l.textContent= ` If any of the collection changes is part of another collection rule , filter or view query ,
2023-03-19 14:17:36 +08:00
you 'll have to update it manually!`,o=D(),u&&u.c(),r=D(),f&&f.c(),a=we(),m(t,"class","icon"),m(s,"class","content txt-bold"),m(e,"class","alert alert-warning")},m(c,d){S(c,e,d),b(e,t),b(e,i),b(e,s),b(s,l),b(s,o),u&&u.m(s,null),S(c,r,d),f&&f.m(c,d),S(c,a,d)},p(c,d){c[6].length?u||(u=zd(),u.c(),u.m(s,null)):u&&(u.d(1),u=null),c[8]?f?f.p(c,d):(f=Bd(c),f.c(),f.m(a.parentNode,a)):f&&(f.d(1),f=null)},d(c){c&&w(e),u&&u.d(),c&&w(r),f&&f.d(c),c&&w(a)}}}function h4(n){let e;return{c(){e=v("h4"),e.textContent="Confirm collection changes"},m(t,i){S(t,e,i)},p:X,d(t){t&&w(e)}}}function _4(n){let e,t,i,s,l;return{c(){e=v("button"),e.innerHTML=' < span class = "txt" > Cancel < / s p a n > ' , t = D ( ) , i = v ( " 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 = [ K ( e , " c l i c k " , n [ 1 1 ] ) , K ( i , " c l i c k " , n [ 1 2 ] ) ] , s = ! 0 ) } , p : X , d ( o ) { o & & w ( e ) , o & & w ( t ) , o & & w ( i ) , s = ! 1 , A e ( l ) } } } f u n c t i o n g 4 ( 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 : [ _ 4 ] , h e a d e r : [ h 4 ] , d e f a u l t : [ m 4 ] } , $ $ s c o p e : { c t x : n } } ; r e t u r n e = n e w b 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 ( ) { V ( e . $ $ . f r a g m e n t ) } , m ( s , l ) { q ( 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 | | ( A ( e . $ $ . f r a g m e n t , s ) , t = ! 0 ) } , o ( s ) { I ( e . $ $ . f r a g m e n t , s ) , t = ! 1 } , d ( s ) { n [ 1 3 ] ( n u l l ) , j ( e , s ) } } } f u n c t i o n b 4 ( n , e , t ) { l e t i , s , l , o , r ; c o n s t a = y t ( ) ; l e t u , f , c ; a s y n c f u n c t i o n d ( $ , M ) { t ( 1 , f = $ ) , t ( 2 , c = M ) , a w a i t r 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 ( ) : h ( ) } f u n c t i o n p ( ) { u = = n u l l | | u . h i d e ( ) } f u n c t i o n h ( ) { p ( ) , a ( " c o n f i r m " ) } c o n s t g = ( ) = > p ( ) , _ = ( ) = > h ( ) ; f u n c t i o n y ( $ ) { s e [ $ ? " u n s h i f t " : " p u s h " ] ( ( ) = > { u = $ , t ( 4 , u ) } ) } f u n c t i o n k ( $ ) { d e . c a l l ( t h i s , n , $ ) } f u n c t i o n T ( $ ) { d e . c a l l ( t h i s , n , $ ) } r e t u r n n . $ $ . u p d a t e = ( ) = > { v a r $ , M , C ; 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 ) ! = ( c = = n u l l ? v o i d 0 : c . n a m e ) ) , n . $ $ . d i r t y & 4 & & t ( 7 , s = ( ( $ = c = = n u l l ? v o i d 0 : c . s c h e m a ) = = n u l l ? v o i d 0 : $ . f i l t e r ( O = > O . i d & & ! O . t o D e l e t e & & O . o r i g i n a l N a m e ! = O . n a m e ) ) | | [ ] ) , n . $ $ . d i r t y & 4 & & t ( 6 , l = ( ( M = c = = n u l l ? v o i d 0 : c . s c h e m a ) = = n u l l ? v o i d 0 : M . f i l t e r ( O = > O . i d & & O . t o D e l e t e ) ) | | [ ] ) , n . $ $ . d i r t y & 6 & & t ( 5 , o = ( ( C = c = = n u l l ? v o i d 0 : c . s c h e m a ) = = n u l l ? v o i d 0 : C . f i l t e r ( O = > { v a r P , L , F ; c o n s t E = ( 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 ( N = > N . i d = = O . i d ) ; r e t u r n E ? ( ( L = E . o p t i o n s ) = = n u l l ? v o i d 0 : L . m a x S e l e c t ) ! = 1 & & ( ( F = O . 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 = ! ( c ! = n u l l & & c . i s V i e w ) | | i ) } , [ p , f , c , i , u , o , l , s , r , h , d , g , _ , y , k , T ] } c l a s s v 4 e x t e n d s v e { c o n s t r u c t o r ( e ) { s u p e r ( ) , b e ( t h i s , e , b 4 , g 4 , _ 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 Z d ( 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 y 4 ( 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 T C ( { p r o p s : l } ) , s e . p u s h ( ( ) = > g e ( e , " c o l l e c t i o n " , s ) ) , { c ( ) { V ( e . $ $ . f r a g m e n t ) } , m ( o , r ) { q ( 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 ] , k e ( ( ) = > t = ! 1 ) ) , e . $ s e t ( a ) } , i ( o ) { i | | ( A ( e . $ $ . f r a g m e n t , o ) , i = ! 0 ) } , o ( o ) { I ( e . $ $ . f r a g m e n t , o ) , i = ! 1 } , d ( o ) { j ( e , o ) } } } f u n c t i o n k 4 ( 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 z C ( { p r o p s : l } ) , s e . p u s h ( ( ) = > g e ( e , " c o l l e c t i o n " , s ) ) , { c ( ) { V ( e . $ $ . f r a g m e n t ) } , m ( o , r ) { q ( 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 ] , k e ( ( ) = > t = ! 1 ) ) , e . $ s e t ( a ) } , i ( o ) { i | | ( A ( e . $ $ . f r a g m e n t , o ) , i = ! 0 ) } , o ( o ) { I ( e . $ $ . f r a g m e n t , o ) , i = ! 1 } , d ( o ) { j ( e , o ) } } } f u n c t i o n G d ( 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 F C ( { p r o p s : o } ) , s e . p u s h ( ( ) = > g e ( t , " c o l l e c t i o n " , l ) ) , { c ( ) { e = v ( " d i v " ) , V ( 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 ) , q ( 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 ] , k e ( ( ) = > i = ! 1 ) ) , t . $ s e t ( u ) } , i ( r ) { s | | ( A ( t . $ $ . f r a g m e n t , r ) , s = ! 0 ) } , o ( r ) { I ( t . $ $ . f r a g m e n t , r ) , s = ! 1 } , d ( r ) { r & & w ( e ) , j ( t ) } } } f u n c t i o n X d ( 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 p 4 ( { p r o p s : o } ) , s e . p u s h ( ( ) = > g e ( t , " c o l l e c t i o n " , l ) ) , { c ( ) { e = v ( " d i v " ) , V ( t . $ $ . f r a g m e n t ) , m ( e , " c l a s s " , " t a b - i t e m " ) , Q ( e , " a c t i v e " , n [ 3 ] = = = E s ) } , m ( r , a ) { S ( r , e , a ) , q ( t , e , n u l l ) , s = ! 0 } , p
2023-03-17 01:21:16 +08:00
< span class = "txt" > Duplicate < /span>`,t=D(),i=v("button"),i.innerHTML=`<i class="ri-delete-bin-7-line"></i >
2023-03-19 14:17:36 +08: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 = [ K ( e , " c l i c k " , n [ 2 4 ] ) , K ( i , " c l i c k " , $ n ( f t ( n [ 2 5 ] ) ) ) ] , s = ! 0 ) } , p : X , d ( o ) { o & & w ( e ) , o & & w ( t ) , o & & w ( i ) , s = ! 1 , A e ( l ) } } } f u n c t i o n x d ( n ) { l e t e , t , i , s ; r e t u r n i = n e w q 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 : [ T 4 ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { e = v ( " i " ) , t = D ( ) , V ( 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 ) , q ( 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 | | ( A ( i . $ $ . f r a g m e n t , l ) , s = ! 0 ) } , o ( l ) { I ( i . $ $ . f r a g m e n t , l ) , s = ! 1 } , d ( l ) { l & & w ( e ) , l & & w ( t ) , j ( i , l ) } } } f u n c t i o n e p ( n ) { l e t e , t , i , s , l , o = n [ 4 8 ] + " " , r , a , u , f , c ; f u n c t i o n d ( ) { r e t u r n n [ 2 7 ] ( n [ 4 7 ] ) } r e t u r n { c ( ) { e = v ( " b u t t o n " ) , t = v ( " i " ) , s = D ( ) , l = v ( " s p a n " ) , r = B ( o ) , a = B ( " c o l l e c t i o n " ) , u = D ( ) , m ( t , " c l a s s " , i = $ i ( H . 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 " ) , Q ( e , " s e l e c t e d " , n [ 4 7 ] = = n [ 2 ] . t y p e ) } , m ( p , h ) { S ( p , e , h ) , b ( e , t ) , b ( e , s ) , b ( e , l ) , b ( l , r ) , b ( l , a ) , b ( e , u ) , f | | ( c = K ( e , " c l i c k " , d ) , f = ! 0 ) } , p ( p , h ) { n = p , h [ 0 ] & 6 4 & & i ! = = ( i = $ i ( H . 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 ) , h [ 0 ] & 6 4 & & o ! = = ( o = n [ 4 8 ] + " " ) & & l e ( r , o ) , h [ 0 ] & 6 8 & & Q ( e , " s e l e c t e d " , n [ 4 7 ] = = n [ 2 ] . t y p e ) } , d ( p ) { p & & w ( e ) , f = ! 1 , c ( ) } } } f u n c t i o n T 4 ( 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 ] = e p ( Z d ( 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 = w 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 = Z d ( s , t , o ) ; i [ o ] ? i [ o ] . p ( r , l ) : ( i [ o ] = e 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 ) { a t ( i , s ) , s & & w ( e ) } } } f u n c t i o n t p ( n ) { l e t e ; r e t u r n { c ( ) { e = v ( " 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 $ 4 ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d , p , h , g , _ , y = ( n [ 6 ] [ n [ 2 ] . t y p e ] | | " N / A " ) + " " , k , T , $ , M , C , O , E , P , L , F = n [ 2 ] . i s N e w & & x d ( n ) , N = n [ 2 ] . s y s t e m & & t p ( ) ; r e t u r n { c ( ) { e = v ( " l a b e l " ) , t = B ( " N a m e " ) , s = D ( ) , l = v ( " i n p u t " ) , f = D ( ) , c = v ( " d i v " ) , d = v ( " b u t t o n " ) , p = v ( " s p a n " ) , h = D ( ) , g = v ( " s p a n " ) , _ = B ( " T y p e : " ) , k = B ( y ) , T = D ( ) , F & & F . c ( ) , C = D ( ) , N & & N . c ( ) , O = w 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 ( g , " c l a s s " , " t x t " ) , 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 - 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 " ) ) , d . d i s a b l e d = M = ! n [ 2 ] . i s N e w , m ( c , " c l a s s " , " f o r m - f i e l d - a d d o n " ) } , m ( R , z ) { S ( R , e , z ) , b ( e , t ) , S ( R , s , z ) , S ( R , l , z ) , S ( R , f , z ) , S ( R , c , z ) , b ( c , d ) , b ( d , p ) , b ( d , h ) , b ( d , g ) , b ( g , _ ) , b ( g , k ) , b ( d , T ) , F & & F . m ( d , n u l l ) , S ( R , C , z ) , N & & N . m ( R , z ) , S ( R , O , z ) , E = ! 0 , n [ 2 ] . i s N e w & & l . f o c u s ( ) , P | | ( L = K ( l , " i n p u t " , n [ 2 6 ] ) , P = ! 0 ) } , p ( R , z ) { ( ! E | | z [ 1 ] & 3 2 7 6 8 & & i ! = = ( i = R [ 4 6 ] ) ) & & m ( e , " f o r " , i ) , ( ! E | | z [ 1 ] & 3 2 7 6 8 & & o ! = = ( o = R [ 4 6 ] ) ) & & m ( l , " i d " , o ) , ( ! E | | z [ 0 ] & 8 1 9 2 ) & & ( l . d i s a b l e d = R [ 1 3 ] ) , ( ! E | | z [ 0 ] & 4 & & r ! = = ( r = R [ 2 ] . i s N e w ) ) & & ( l . a u t o f o c u s = r ) , ( ! E | | z [ 0 ] & 4 & & a ! = = ( a = R [ 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 ) , ( ! E | | z [ 0 ] & 4 & & u ! = = ( u = R [ 2 ] . n a m e ) & & l . v a l u e ! = = u ) & & ( l . v a l u e = u ) , ( ! E | | z [ 0 ] & 6 8 ) & & y ! = = ( y = ( R [ 6 ] [ R [ 2 ] . t y p e ] | | " N / A " ) + " " ) & & l e ( k , y ) , R [ 2 ] . i s N e w ? F ? ( F . p ( R , z ) , z [ 0 ] & 4 & & A ( F , 1 ) ) : ( F = x d ( R ) , F . c ( ) , A ( F , 1 ) , F . m ( d , n u l l ) ) : F & & ( r e ( ) , I ( F , 1 , 1 , ( ) = > { F = n u l l } ) , a e ( ) ) , ( ! E | | z [ 0 ] & 4 & & $ ! = = ( $ = " b t n b t n - s m p - r - 1 0 p - l - 1 0 " + ( R [ 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 ( d , " c l a s s " , $ ) , ( ! E | | z [ 0 ] & 4 & & M ! = = ( M = ! R [ 2 ] . i s N e w ) ) & & ( d . d i s a b l e d = M ) , R [ 2 ] . s y s t e m ? N | | ( N = t p ( ) , N . c ( ) , N . m ( O . p a r e n t N o d e , O ) ) : N & & ( N . d ( 1 ) , N = n u l l ) } , i ( R ) { E | | ( A ( F ) , E = ! 0 ) } , o ( R ) { I ( F ) , E = ! 1 } , d ( R ) { R & & w ( e ) , R & & w ( s ) , R & & w ( l ) , R & & w ( f ) , R & & w ( c ) , F & & F . d ( ) , R & & w ( C ) , N & & N . d ( R ) , R & & w ( O ) , P = ! 1 , L ( ) } } } f u n c t i o n n p ( n ) { l e t e , t , i , s , l , o ; r e t u r n { c ( ) { e = v ( " 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 = D e ( t = z e . c a l l ( n u l l , e , n [ 1 1 ] ) ) , l = ! 0 ) } , p ( r , a ) { t & & B 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 = q e ( e , q 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 | | ( i = q e ( e , q t
< 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=K(t,"click",n[12]),i=!0)},p:X,d(l){l&&w(e),i=!1,s()}}}function A4(n){let e,t,i,s,l,o,r,a,u,f,c,d=[],p=new Map,h,g,_,y,k,T,$=n[3];const M=P=>P[15].id;for(let P=0;P<$.length;P+=1){let L=ap(n,$,P),F=M(L);p.set(F,d[P]=cp(F,L))}let C=null;$.length||(C=up(n));let O=!n[7]&&dp(n),E={};return _=new su({props:E}),n[13](_),_.$on("save",n[14]),{c(){e=v("aside"),t=v("header"),i=v("div"),s=v("div"),l=v("button"),l.innerHTML='<i class="ri-close-line"></i > ' , o = D ( ) , r = v ( "input" ) , a = D ( ) , u = v ( "hr" ) , f = D ( ) , c = v ( "div" ) ; for ( let P = 0 ; P < d . length ; P += 1 ) d [ P ] . c ( ) ; C && C . c ( ) , h = D ( ) , O && O . c ( ) , g = D ( ) , V ( _ . $$ . fragment ) , m ( l , "type" , "button" ) , m ( l , "class" , "btn btn-xs btn-transparent btn-circle btn-clear" ) , Q ( 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" ) , Q ( i , "active" , n [ 4 ] ) , m ( t , "class" , "sidebar-header" ) , m ( u , "class" , "m-t-5 m-b-xs" ) , m ( c , "class" , "sidebar-content" ) , Q ( c , "fade" , n [ 6 ] ) , Q ( c , "sidebar-content-compact" , n [ 3 ] . length > 20 ) , m ( e , "class" , "page-sidebar collection-sidebar" ) } , m ( P , L ) { S ( P , e , L ) , b ( e , t ) , b ( t , i ) , b ( i , s ) , b ( s , l ) , b ( i , o ) , b ( i , r ) , ue ( r , n [ 0 ] ) , b ( e , a ) , b ( e , u ) , b ( e , f ) , b ( e , c ) ; for ( let F = 0 ; F < d . length ; F += 1 ) d [ F ] && d [ F ] . m ( c , null ) ; C && C . m ( c , null ) , b ( e , h ) , O && O . m ( e , null ) , S ( P , g , L ) , q ( _ , P , L ) , y = ! 0 , k || ( T = [ K ( l , "click" , n [ 10 ] ) , K ( r , "input" , n [ 11 ] ) ] , k = ! 0 ) } , p ( P , [ L ] ) { ( ! y || L & 16 ) && Q ( l , "hidden" , ! P [ 4 ] ) , L & 1 && r . value !== P [ 0 ] && ue ( r , P [ 0 ] ) , ( ! y || L & 16 ) && Q ( i , "active" , P [ 4 ] ) , L & 42 && ( $ = P [ 3 ] , d = Mt ( d , L , M , 1 , P , $ , p , c , ns , cp , null , ap ) , ! $ . length && C ? C . p ( P , L ) : $ . length ? C && ( C . d ( 1 ) , C = null ) : ( C = up ( P ) , C . c ( ) , C . m ( c , null ) ) ) , ( ! y || L & 64 ) && Q ( c , "fade" , P [ 6 ] ) , ( ! y || L & 8 ) && Q ( c , "sidebar-content-compact" , P [ 3 ] . length > 20 ) , P [ 7 ] ? O && ( O . d ( 1 ) , O = null ) : O ? O . p ( P , L ) : ( O = dp ( P ) , O . c ( ) , O . m ( e , null ) ) ; const F = { } ; _ . $set ( F ) } , i ( P ) { y || ( A ( _ . $$ . fragment , P ) , y = ! 0 ) } , o ( P ) { I ( _ . $$ . fragment , P ) , y = ! 1 } , d ( P ) { P && w ( e ) ; for ( let L = 0 ; L < d . length ; L += 1 ) d [ L ] . d ( ) ; C && C . d ( ) , O && O . d ( ) , P && w ( g ) , n [ 13 ] ( null ) , j ( _ , P ) , k = ! 1 , Ae ( T ) } } } function I4 ( ) { setTimeout ( ( ) => { const n = document . querySelector ( ".collection-sidebar .sidebar-list-item.active" ) ; n && ( n == null || n . scrollIntoView ( { block : "nearest" } ) ) } , 0 ) } function P4 ( n , e , t ) { let i , s , l , o , r , a , u ; We ( n , Di , k => t ( 5 , o = k ) ) , We ( n , Pi , k => t ( 9 , r = k ) ) , We ( n , Lo , k => t ( 6 , a = k ) ) , We ( n , Cs , k => t ( 7 , u = k ) ) ; let f , c = "" ; function d ( k ) { Gt ( Di , o = k , o ) } const p = ( ) => t ( 0 , c = "" ) ; function h ( ) { c = this . value , t ( 0 , c ) } const g = ( ) => f == null ? void 0 : f . show ( ) ; function _ ( k ) { se [ k ? "unshift" : "push" ] ( ( ) => { f = k , t ( 2 , f ) } ) } const y = k => { var T ; ( T = k . detail ) != null && T . isNew && k . detail . collection && d ( k . detail . collection ) } ; return n . $$ . update = ( ) => { n . $$ . dirty & 512 && r && I4 ( ) , n . $$ . dirty & 1 && t ( 1 , i = c . replace ( /\s+/g , "" ) . toLowerCase ( ) ) , n . $$ . dirty & 1 && t ( 4 , s = c !== "" ) , n . $$ . dirty & 515 && t ( 3 , l = r . filter ( k => k . id == c || k . name . replace ( /\s+/g , "" ) . toLowerCase ( ) . includes ( i ) ) ) } , [ c , i , f , l , s , o , a , u , d , r , p , h , g , _ , y ] } class L4 extends ve { constructor ( e ) { super ( ) , be ( this , e , P4 , A4 , _e , { } ) } } function pp ( n , e , t ) { const i = n . slice ( ) ; return i [ 14 ] = e [ t ] [ 0 ] , i [ 15 ] = e [ t ] [ 1 ] , i } function mp ( n ) { n [ 18 ] = n [ 19 ] . default } function hp ( n , e , t ) { const i = n . slice ( ) ; return i [ 14 ] = e [ t ] [ 0 ] , i [ 15 ] = e [ t ] [ 1 ] , i [ 21 ] = t , i } function _p ( n ) { let e ; return { c ( ) { e = v ( "hr" ) , m ( e , "class" , "m-t-sm m-b-sm" ) } , m ( t , i ) { S ( t , e , i ) } , d ( t ) { t && w ( e ) } } } function gp ( n , e ) { let t , i = e [ 21 ] === Object . keys ( e [ 6 ] ) . length , s , l , o = e [ 15 ] . label + "" , r , a , u , f , c = i && _p ( ) ; function d ( ) { return e [ 9 ] ( e [ 14 ] ) } return { key : n , first : null , c ( ) { t = we ( ) , c && c . c ( ) , s = D ( ) , l = v ( "button" ) , r = B ( o ) , a = D ( ) , m ( l , "type" , "button" ) , m ( l , "class" , "sidebar-item" ) , Q ( l , "active" , e [ 5 ] === e [ 14 ] ) , this . first = t } , m ( p , h ) { S ( p , t , h ) , c && c . m ( p , h ) , S ( p , s , h ) , S ( p , l , h ) , b ( l , r ) , b ( l , a ) , u || ( f = K ( l , "click" , d ) , u = ! 0 ) } , p ( p , h ) { e = p , h & 8 && ( i = e [ 21 ] === Object . keys ( e [ 6 ] ) . length ) , i ? c || ( c = _p ( ) , c . c ( ) , c . m ( s . parentNode , s ) ) : c && ( c . d ( 1 ) , c = null ) , h & 8 && o !== ( o = e [ 15 ] . label + "" ) && le ( r , o ) , h & 40 && Q ( l , "active" , e [ 5 ] === e [ 14 ] ) } , d ( p ) { p && w ( t ) , c && c . d ( p ) , p && w ( s ) , p && w ( l ) , u = ! 1 , f ( ) } } } function bp ( n ) { let e , t , i , s = { ctx : n , current : null , token : null , hasCatch : ! 1 , pending : R4 , then : F4 , catch : N4 , value : 19 , blocks : [ , , , ] } ; return uu ( t = n [ 15 ] . component , s ) , { c ( ) { e = we ( ) , s . block . c ( ) } , m ( l , o ) { S ( l , e , o ) , s . block . m ( l , s . anchor = o ) , s . mount = ( ) => e . parentNode , s . an
` ),O&&O.c(),d=D(),h.c(),g=we(),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(N,R){S(N,e,R),q(t,e,null),b(e,i),T&&T.m(e,null),S(N,s,R),S(N,l,R);for(let z=0;z<o.length;z+=1)o[z]&&o[z].m(l,null);C&&C.m(l,null),S(N,u,R),S(N,f,R),b(f,c),O&&O.m(f,null),S(N,d,R),P[p].m(N,R),S(N,g,R),_=!0,y||(k=De(a=iM.call(null,l,n[36])),y=!0)},p(N,R){var J;const z={};R[0]&4&&(z.value=N[2]),R[0]&1024&&(z.autocompleteCollection=N[10]),t. $ set(z),(J=N[10])!=null&&J.isView?T&&(T.d(1),T=null):T?T.p(N,R):(T=qp(N),T.c(),T.m(e,null)),R[0]&145324&&( $ =N[3],re(),o=Mt(o,R,M,1,N, $ ,r,l,an,zp,null,Rp),ae(),! $ .length&&C?C.p(N,R): $ .length?C&&(C.d(1),C=null):(C=jp(N),C.c(),C.m(l,null))),a&&Bt(a.update)&&R[0]&2064&&a.update.call(null,N[36]),N[5]>1?O?O.p(N,R):(O=Bp(N),O.c(),O.m(f,null)):O&&(O.d(1),O=null);let W=p;p=L(N),p===W?P[p].p(N,R):(re(),I(P[W],1,1,()=>{P[W]=null}),ae(),h=P[p],h?h.p(N,R):(h=P[p]=E[p](N),h.c()),A(h,1),h.m(g.parentNode,g))},i(N){if(!_){A(t. $ $ .fragment,N);for(let R=0;R< $ .length;R+=1)A(o[R]);A(h),_=!0}},o(N){I(t. $ $ .fragment,N);for(let R=0;R<o.length;R+=1)I(o[R]);I(h),_=!1},d(N){N&&w(e),j(t),T&&T.d(),N&&w(s),N&&w(l);for(let R=0;R<o.length;R+=1)o[R].d();C&&C.d(),N&&w(u),N&&w(f),O&&O.d(),N&&w(d),P[p].d(N),N&&w(g),y=!1,k()}}}function bM(n){var r;let e,t,i,s=(((r=n[10])==null?void 0:r.name)||"")+"",l,o;return{c(){e=v("h4"),t=B("Select "),i=v("strong"),l=B(s),o=B(" 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)||"")+"")&&le(l,s)},d(a){a&&w(e)}}}function vM(n){let e,t,i,s,l;return{c(){e=v("button"),e.innerHTML='<span class="txt">Cancel</span>',t=D(),i=v("button"),i.innerHTML='<span class="txt">Save 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=[K(e,"click",n[28]),K(i,"click",n[29])],s=!0)},p:X,d(o){o&&w(e),o&&w(t),o&&w(i),s=!1,Ae(l)}}}function yM(n){let e,t,i,s;const l=[{popup:!0},{class:"overlay-panel-xl"},n[19]];let o={ $ $ slots:{footer:[vM],header:[bM],default:[gM]}, $ $ scope:{ctx:n}};for(let a=0;a<l.length;a+=1)o=Le(o,l[a]);e=new bn({props:o}),n[39](e),e. $ on("hide",n[40]),e. $ on("show",n[41]);let r={collection:n[10]};return i=new G1({props:r}),n[42](i),i. $ on("save",n[43]),i. $ on("delete",n[44]),{c(){V(e. $ $ .fragment),t=D(),V(i. $ $ .fragment)},m(a,u){q(e,a,u),S(a,t,u),q(i,a,u),s=!0},p(a,u){const f=u[0]&524288?bt(l,[l[0],l[1],Vt(a[19])]):{};u[0]&16380|u[1]&33554432&&(f. $ $ scope={dirty:u,ctx:a}),e. $ set(f);const c={};u[0]&1024&&(c.collection=a[10]),i. $ set(c)},i(a){s||(A(e. $ $ .fragment,a),A(i. $ $ .fragment,a),s=!0)},o(a){I(e. $ $ .fragment,a),I(i. $ $ .fragment,a),s=!1},d(a){n[39](null),j(e,a),a&&w(t),n[42](null),j(i,a)}}}const Ar=100;function kM(n,e,t){let i,s,l,o,r,a,u,f;const c=["value","field","show","hide"];let d=Je(e,c),p;We(n,Pi,Pe=>t(26,p=Pe));const h=yt(),g="picker_"+H.randomString(5);let{value:_}=e,{field:y}=e,k,T, $ ="",M=[],C=[],O=1,E=0,P=!1,L=!1;function F(){return t(2, $ =""),t(3,M=[]),t(6,C=[]),R(),z(!0),k==null?void 0:k.show()}function N(){return k==null?void 0:k.hide()}async function R(){const Pe=H.toArray(_);if(!s||!Pe.length)return;t(24,L=!0);let ie=[];const Se=Pe.slice(),st=[];for(;Se.length>0;){const nt=[];for(const wt of Se.splice(0,Ar))nt.push( ` id = "${wt}" ` );st.push(me.collection(s).getFullList(Ar,{filter:nt.join("||"), $ autoCancel:!1}))}try{await Promise.all(st).then(nt=>{ie=ie.concat(...nt)}),t(6,C=[]);for(const nt of Pe){const wt=H.findByKey(ie,"id",nt);wt&&C.push(wt)} $ .trim()||t(3,M=H.filterDuplicatesByKey(C.concat(M)))}catch(nt){me.errorResponseHandler(nt)}t(24,L=!1)}async function z(Pe=!1){if(s){t(4,P=!0),Pe&&( $ .trim()?t(3,M=[]):t(3,M=H.toArray(C).slice()));try{const ie=Pe?1:O+1,Se=await me.collection(s).getList(ie,Ar,{filter: $ ,sort:o!=null&&o.isView?"":"-created", $ cancelKey:g+"loadList"});t(3,M=H.filterDuplicatesByKey(M.concat(Se.items))),O=Se.page,t(23,E=Se.totalItems)}catch(ie){me.errorResponseHandler(ie)}t(4,P=!1)}}function W(Pe){i==1?t(6,C=[Pe]):u&&(H.pushOrReplaceByKey(C,Pe)
2023-03-17 01:21:16 +08:00
` ,m(e,"class","list-item")},m(t,i){S(t,e,i)},p:X,d(t){t&&w(e)}}}function Gp(n){var d;let e,t,i,s,l,o,r,a,u,f;i=new Qo({props:{record:n[15],displayFields:(d=n[2].options)==null?void 0:d.displayFields}});function c(){return n[8](n[15])}return{c(){e=v("div"),t=v("div"),V(i. $ $ .fragment),s=D(),l=v("div"),o=v("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")},m(p,h){S(p,e,h),b(e,t),q(i,t,null),b(e,s),b(e,l),b(l,o),b(e,r),a=!0,u||(f=[De(ze.call(null,o,"Remove")),K(o,"click",c)],u=!0)},p(p,h){var _;n=p;const g={};h&16&&(g.record=n[15]),h&4&&(g.displayFields=(_=n[2].options)==null?void 0:_.displayFields),i. $ set(g)},i(p){a||(A(i. $ $ .fragment,p),a=!0)},o(p){I(i. $ $ .fragment,p),a=!1},d(p){p&&w(e),j(i),u=!1,Ae(f)}}}function SM(n){let e,t,i,s,l,o=n[2].name+"",r,a,u,f,c,d,p,h,g,_,y,k=n[4],T=[];for(let C=0;C<k.length;C+=1)T[C]=Gp(Wp(n,k,C));const $ =C=>I(T[C],1,1,()=>{T[C]=null});let M=null;return k.length||(M=Kp(n)),{c(){e=v("label"),t=v("i"),s=D(),l=v("span"),r=B(o),u=D(),f=v("div"),c=v("div");for(let C=0;C<T.length;C+=1)T[C].c();M&&M.c(),d=D(),p=v("div"),h=v("button"),h.innerHTML= ` < i class = "ri-magic-line" > < / i >
2023-03-19 14:17:36 +08:00
< span class = "txt" > Open picker < / s p a n > ` , m ( t , " c l a s s " , i = $ i ( H . 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 4 ] ) , m ( c , " 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 ( h , " t y p e " , " b u t t o n " ) , m ( h , " 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 ( p , " 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 ( C , O ) { S ( C , e , O ) , b ( e , t ) , b ( e , s ) , b ( e , l ) , b ( l , r ) , S ( C , u , O ) , S ( C , f , O ) , b ( f , c ) ; f o r ( l e t E = 0 ; E < T . l e n g t h ; E + = 1 ) T [ E ] & & T [ E ] . m ( c , n u l l ) ; M & & M . m ( c , n u l l ) , b ( f , d ) , b ( f , p ) , b ( p , h ) , g = ! 0 , _ | | ( y = K ( h , " c l i c k " , n [ 9 ] ) , _ = ! 0 ) } , p ( C , O ) { i f ( ( ! g | | O & 4 & & i ! = = ( i = $ i ( H . g e t F i e l d T y p e I c o n ( C [ 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 ) , ( ! g | | O & 4 ) & & o ! = = ( o = C [ 2 ] . n a m e + " " ) & & l e ( r , o ) , ( ! g | | O & 1 6 3 8 4 & & a ! = = ( a = C [ 1 4 ] ) ) & & m ( e , " f o r " , a ) , O & 1 8 1 ) { k = C [ 4 ] ; l e t E ; f o r ( E = 0 ; E < k . l e n g t h ; E + = 1 ) { c o n s t P = W p ( C , k , E ) ; T [ E ] ? ( T [ E ] . p ( P , O ) , A ( T [ E ] , 1 ) ) : ( T [ E ] = G p ( P ) , T [ E ] . c ( ) , A ( T [ E ] , 1 ) , T [ E ] . m ( c , n u l l ) ) } f o r ( r e ( ) , E = k . l e n g t h ; E < T . l e n g t h ; E + = 1 ) $ ( E ) ; a e ( ) , ! k . l e n g t h & & M ? M . p ( C , O ) : k . l e n g t h ? M & & ( M . d ( 1 ) , M = n u l l ) : ( M = K p ( C ) , M . c ( ) , M . m ( c , n u l l ) ) } } , i ( C ) { i f ( ! g ) { f o r ( l e t O = 0 ; O < k . l e n g t h ; O + = 1 ) A ( T [ O ] ) ; g = ! 0 } } , o ( C ) { T = T . f i l t e r ( B o o l e a n ) ; f o r ( l e t O = 0 ; O < T . l e n g t h ; O + = 1 ) I ( T [ O ] ) ; g = ! 1 } , d ( C ) { C & & w ( e ) , C & & w ( u ) , C & & w ( f ) , a t ( T , C ) , M & & M . d ( ) , _ = ! 1 , y ( ) } } } f u n c t i o n T M ( 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 : [ S M , ( { u n i q u e I d : r } ) = > ( { 1 4 : r } ) , ( { u n i q u e I d : r } ) = > r ? 1 6 3 8 4 : 0 ] } , $ $ s c o p e : { c t x : n } } ; e = n e w p e ( { p r o p s : l } ) , n [ 1 0 ] ( 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 w M ( { p r o p s : o } ) , n [ 1 1 ] ( i ) , i . $ o n ( " s a v e " , n [ 1 2 ] ) , { c ( ) { V ( e . $ $ . f r a g m e n t ) , t = D ( ) , V ( i . $ $ . f r a g m e n t ) } , m ( r , a ) { q ( e , r , a ) , S ( r , t , a ) , q ( 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 1 1 3 5 9 1 & & ( 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 | | ( A ( e . $ $ . f r a g m e n t , r ) , A ( i . $ $ . f r a g m e n t , r ) , s = ! 0 ) } , o ( r ) { I ( e . $ $ . f r a g m e n t , r ) , I ( i . $ $ . f r a g m e n t , r ) , s = ! 1 } , d ( r ) { n [ 1 0 ] ( n u l l ) , j ( e , r ) , r & & w ( t ) , n [ 1 1 ] ( n u l l ) , j ( i , r ) } } } c o n s t X p = 1 0 0 ; f u n c t i o n $ M ( 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 g n } = e , r , a = [ ] , u = ! 1 ; f ( ) ; a s y n c f u n c t i o n f ( ) { v a r $ , M ; c o n s t y = H . t o A r r a y ( s ) ; i f ( ! ( ( $ = o = = n u l l ? v o i d 0 : o . o p t i o n s ) ! = n u l l & & $ . c o l l e c t i o n I d ) | | ! y . l e n g t h ) { t ( 4 , a = [ ] ) , t ( 5 , u = ! 1 ) ; r e t u r n } t ( 5 , u = ! 0 ) ; c o n s t k = y . s l i c e ( ) , T = [ ] ; f o r ( ; k . l e n g t h > 0 ; ) { c o n s t C = [ ] ; f o r ( c o n s t O o f k . s p l i c e ( 0 , X p ) ) C . p u s h ( ` i d = " $ { O } " ` ) ; T . p u s h ( m e . c o l l e c t i o n ( ( M = 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 : M . c o l l e c t i o n I d ) . g e t F u l l L i s t ( X p , { f i l t e r : C . j o i n ( " | | " ) , $ a u t o C a n c e l : ! 1 } ) ) } t r y { l e t C = [ ] ; a w a i t P r o m i s e . a l l ( T ) . t h e n ( O = > { C = C . c o n c a t ( . . . O ) } ) ; f o r ( c o n s t O o f y ) { c o n s t E = H . f i n d B y K e y ( C , " i d " , O ) ; E & & a . p u s h ( E ) } t ( 4 , a ) } c a t c h ( C ) { m e . e r r o r R e s p o n s e H a n d l e r ( C ) } t ( 5 , u = ! 1 ) } f u n c t i o n c ( y ) { v a r k ; H . r e m o v e B y K e y ( a , " i d " , y . i d ) , t ( 4 , a ) , i ? t ( 0 , s = a . m a p ( T = > T . i d ) ) : t ( 0 , s = ( ( k = a [ 0 ] ) = = n u l l ? v o i d 0 : k . i d ) | | " " ) } c o n s t d = y = > c ( y ) , p = ( ) = > l = = n u l l ? v o i d 0 : l . s h o w ( ) ; f u n c t i o n h ( y ) { s e [ y ? " u n s h i f t " : " p u s h " ] ( ( ) = > { r = y , t ( 3 , r ) } ) } f u n c t i o n g ( y ) { s e [ y ? " u n s h i f t " : " p u s h " ] ( ( ) = > { l = y , t ( 1 , l ) } ) } c o n s t _ = y = > { v a r k ; t ( 4 , a = y . d e t a i l | | [ ] ) , t ( 0 , s = i ? a . m a p ( T = > T . i d ) : ( ( k = a [ 0 ] ) = = n u l l ? v o i d 0 : k . i d ) | | " " ) } ; r e t u r n n . $ $ s e t = y = > { " v a l u e " i n y & & t ( 0 , s = y . v a l u e ) , " p i c k e r " i n y & & t ( 1 , l = y . p i c k e r ) , " f i e l d " i n y & & t ( 2 , o = y . f i e l d ) } , n . $ $ . u p d a t e = ( ) = > { v a r y ; n . $ $ . d i r t y & 4 & & t ( 6 , i = ( ( y = o . o p t i o n s ) = = n u l l ? v o i d 0 : y . 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 ( ) ) } , [ s , l , o , r , a , u , i , c , d , p , h , g , _ ] } c l a s s C M e x t e n d s v e { c o n s t r u c t o r ( e ) { s u p e r ( ) , b e ( t h i s , e , $ M , T M , _ 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 M M = [ " 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 t e " , " R e d o " , " R e m o v e " , " R e s e t " , " R e s i z e E d i t o r " , " S a v e C o n t e n t " , " S e l e c t i o n C h a n g e " , " S e t A t t r i b " , " S e t C o n t e n t " , " S h o w " , " S u b m i t " , " U n d o " , " V i s u a l A i d " ] , O M = ( n ,
2023-03-17 01:21:16 +08:00
...
2023-03-19 14:17:36 +08:00
-- -- - END PRIVATE KEY -- -- - ` ),m(a,"class","help-block")},m(c,d){S(c,e,d),b(e,t),S(c,s,d),S(c,l,d),ue(l,n[5]),S(c,r,d),S(c,a,d),u||(f=K(l,"input",n[16]),u=!0)},p(c,d){d&8388608&&i!==(i=c[23])&&m(e,"for",i),d&8388608&&o!==(o=c[23])&&m(l,"id",o),d&32&&ue(l,c[5])},d(c){c&&w(e),c&&w(s),c&&w(l),c&&w(r),c&&w(a),u=!1,f()}}}function lO(n){let e,t,i,s,l,o,r,a,u,f,c,d,p,h,g,_,y,k;return s=new pe({props:{class:"form-field required",name:"clientId", $ $ slots:{default:[eO,({uniqueId:T})=>({23:T}),({uniqueId:T})=>T?8388608:0]}, $ $ scope:{ctx:n}}}),r=new pe({props:{class:"form-field required",name:"teamId", $ $ slots:{default:[tO,({uniqueId:T})=>({23:T}),({uniqueId:T})=>T?8388608:0]}, $ $ scope:{ctx:n}}}),f=new pe({props:{class:"form-field required",name:"keyId", $ $ slots:{default:[nO,({uniqueId:T})=>({23:T}),({uniqueId:T})=>T?8388608:0]}, $ $ scope:{ctx:n}}}),p=new pe({props:{class:"form-field required",name:"duration", $ $ slots:{default:[iO,({uniqueId:T})=>({23:T}),({uniqueId:T})=>T?8388608:0]}, $ $ scope:{ctx:n}}}),g=new pe({props:{class:"form-field required",name:"privateKey", $ $ slots:{default:[sO,({uniqueId:T})=>({23:T}),({uniqueId:T})=>T?8388608:0]}, $ $ scope:{ctx:n}}}),{c(){e=v("form"),t=v("div"),i=v("div"),V(s. $ $ .fragment),l=D(),o=v("div"),V(r. $ $ .fragment),a=D(),u=v("div"),V(f. $ $ .fragment),c=D(),d=v("div"),V(p. $ $ .fragment),h=D(),V(g. $ $ .fragment),m(i,"class","col-lg-6"),m(o,"class","col-lg-6"),m(u,"class","col-lg-6"),m(d,"class","col-lg-6"),m(t,"class","grid"),m(e,"id",n[9]),m(e,"autocomplete","off")},m(T, $ ){S(T,e, $ ),b(e,t),b(t,i),q(s,i,null),b(t,l),b(t,o),q(r,o,null),b(t,a),b(t,u),q(f,u,null),b(t,c),b(t,d),q(p,d,null),b(t,h),q(g,t,null),_=!0,y||(k=K(e,"submit",ft(n[17])),y=!0)},p(T, $ ){const M={}; $ &25165828&&(M. $ $ scope={dirty: $ ,ctx:T}),s. $ set(M);const C={}; $ &25165832&&(C. $ $ scope={dirty: $ ,ctx:T}),r. $ set(C);const O={}; $ &25165840&&(O. $ $ scope={dirty: $ ,ctx:T}),f. $ set(O);const E={}; $ &25165888&&(E. $ $ scope={dirty: $ ,ctx:T}),p. $ set(E);const P={}; $ &25165856&&(P. $ $ scope={dirty: $ ,ctx:T}),g. $ set(P)},i(T){_||(A(s. $ $ .fragment,T),A(r. $ $ .fragment,T),A(f. $ $ .fragment,T),A(p. $ $ .fragment,T),A(g. $ $ .fragment,T),_=!0)},o(T){I(s. $ $ .fragment,T),I(r. $ $ .fragment,T),I(f. $ $ .fragment,T),I(p. $ $ .fragment,T),I(g. $ $ .fragment,T),_=!1},d(T){T&&w(e),j(s),j(r),j(f),j(p),j(g),y=!1,k()}}}function oO(n){let e;return{c(){e=v("h4"),e.textContent="Generate Apple client secret",m(e,"class","center txt-break")},m(t,i){S(t,e,i)},p:X,d(t){t&&w(e)}}}function rO(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=v("button"),t=B("Close"),i=D(),s=v("button"),l=v("i"),o=D(),r=v("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],Q(s,"btn-loading",n[7])},m(c,d){S(c,e,d),b(e,t),S(c,i,d),S(c,s,d),b(s,l),b(s,o),b(s,r),u||(f=K(e,"click",n[0]),u=!0)},p(c,d){d&128&&(e.disabled=c[7]),d&384&&a!==(a=!c[8]||c[7])&&(s.disabled=a),d&128&&Q(s,"btn-loading",c[7])},d(c){c&&w(e),c&&w(i),c&&w(s),u=!1,f()}}}function aO(n){let e,t,i={overlayClose:!n[7],escClose:!n[7],beforeHide:n[18],popup:!0, $ $ slots:{footer:[rO],header:[oO],default:[lO]}, $ $ scope:{ctx:n}};return e=new bn({props:i}),n[19](e),e. $ on("show",n[20]),e. $ on("hide",n[21]),{c(){V(e. $ $ .fragment)},m(s,l){q(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||(A(e. $ $ .fragment,s),t=!0)},o(s){I(e. $ $ .fragment,s),t=!1},d(s){n[19](null),j(e,s)}}}const po=15777e3;function uO(n,e,t){let i;const s=yt(),l="apple_secret_"+H.randomString(5);let o,r,a,u,f,c,d=!1;function p(L={}){t(2,r=L.clientId||""),t(3,a=L.teamId||""),t(4,u=L.keyId||""),t(5,f=L.privateKey||""),t(6,c=L.duration||po),_n({}),o==null||o.show()}function h(){return o==null?void 0:o.hide()}async function g(){t(7,d=!0);try{const L=await me.send("/api/settings/apple/generate-client-secret",{method:"POST",body:{teamId:a,clientId:r,keyId:u,privateKey:f.trim(),duration:c}});t(7,d=!1),Ut("Successfully generated cl
2023-03-17 01:21:16 +08:00
Updated : $ { n [ 2 ] . updated } ` ,position:"left"})),_=!0)},p(k,T){T[1]&8388608&&r!==(r=k[54])&&m(e,"for",r),c&&Bt(c.update)&&T[0]&4&&c.update.call(null,{text: ` Created : $ { k [ 2 ] . created }
2023-03-19 14:17:36 +08:00
Updated : $ { k [ 2 ] . updated } ` ,position:"left"}),T[1]&8388608&&h!==(h=k[54])&&m(p,"id",h),T[0]&4&&g!==(g=k[2].id)&&p.value!==g&&(p.value=g)},d(k){k&&w(e),k&&w(a),k&&w(u),k&&w(d),k&&w(p),_=!1,y()}}}function im(n){var u,f;let e,t,i,s,l;function o(c){n[29](c)}let r={collection:n[0]};n[2]!==void 0&&(r.record=n[2]),e=new X4({props:r}),se.push(()=>ge(e,"record",o));let a=((f=(u=n[0])==null?void 0:u.schema)==null?void 0:f.length)&&sm();return{c(){V(e. $ $ .fragment),i=D(),a&&a.c(),s=we()},m(c,d){q(e,c,d),S(c,i,d),a&&a.m(c,d),S(c,s,d),l=!0},p(c,d){var h,g;const p={};d[0]&1&&(p.collection=c[0]),!t&&d[0]&4&&(t=!0,p.record=c[2],ke(()=>t=!1)),e. $ set(p),(g=(h=c[0])==null?void 0:h.schema)!=null&&g.length?a||(a=sm(),a.c(),a.m(s.parentNode,s)):a&&(a.d(1),a=null)},i(c){l||(A(e. $ $ .fragment,c),l=!0)},o(c){I(e. $ $ .fragment,c),l=!1},d(c){j(e,c),c&&w(i),a&&a.d(c),c&&w(s)}}}function sm(n){let e;return{c(){e=v("hr")},m(t,i){S(t,e,i)},d(t){t&&w(e)}}}function kO(n){let e,t,i;function s(o){n[42](o,n[51])}let l={field:n[51]};return n[2][n[51].name]!==void 0&&(l.value=n[2][n[51].name]),e=new CM({props:l}),se.push(()=>ge(e,"value",s)),{c(){V(e. $ $ .fragment)},m(o,r){q(e,o,r),i=!0},p(o,r){n=o;const a={};r[0]&1&&(a.field=n[51]),!t&&r[0]&5&&(t=!0,a.value=n[2][n[51].name],ke(()=>t=!1)),e. $ set(a)},i(o){i||(A(e. $ $ .fragment,o),i=!0)},o(o){I(e. $ $ .fragment,o),i=!1},d(o){j(e,o)}}}function wO(n){let e,t,i,s,l;function o(f){n[39](f,n[51])}function r(f){n[40](f,n[51])}function a(f){n[41](f,n[51])}let u={field:n[51],record:n[2]};return n[2][n[51].name]!==void 0&&(u.value=n[2][n[51].name]),n[3][n[51].name]!==void 0&&(u.uploadedFiles=n[3][n[51].name]),n[4][n[51].name]!==void 0&&(u.deletedFileIndexes=n[4][n[51].name]),e=new nM({props:u}),se.push(()=>ge(e,"value",o)),se.push(()=>ge(e,"uploadedFiles",r)),se.push(()=>ge(e,"deletedFileIndexes",a)),{c(){V(e. $ $ .fragment)},m(f,c){q(e,f,c),l=!0},p(f,c){n=f;const d={};c[0]&1&&(d.field=n[51]),c[0]&4&&(d.record=n[2]),!t&&c[0]&5&&(t=!0,d.value=n[2][n[51].name],ke(()=>t=!1)),!i&&c[0]&9&&(i=!0,d.uploadedFiles=n[3][n[51].name],ke(()=>i=!1)),!s&&c[0]&17&&(s=!0,d.deletedFileIndexes=n[4][n[51].name],ke(()=>s=!1)),e. $ set(d)},i(f){l||(A(e. $ $ .fragment,f),l=!0)},o(f){I(e. $ $ .fragment,f),l=!1},d(f){j(e,f)}}}function SO(n){let e,t,i;function s(o){n[38](o,n[51])}let l={field:n[51]};return n[2][n[51].name]!==void 0&&(l.value=n[2][n[51].name]),e=new I5({props:l}),se.push(()=>ge(e,"value",s)),{c(){V(e. $ $ .fragment)},m(o,r){q(e,o,r),i=!0},p(o,r){n=o;const a={};r[0]&1&&(a.field=n[51]),!t&&r[0]&5&&(t=!0,a.value=n[2][n[51].name],ke(()=>t=!1)),e. $ set(a)},i(o){i||(A(e. $ $ .fragment,o),i=!0)},o(o){I(e. $ $ .fragment,o),i=!1},d(o){j(e,o)}}}function TO(n){let e,t,i;function s(o){n[37](o,n[51])}let l={field:n[51]};return n[2][n[51].name]!==void 0&&(l.value=n[2][n[51].name]),e=new O5({props:l}),se.push(()=>ge(e,"value",s)),{c(){V(e. $ $ .fragment)},m(o,r){q(e,o,r),i=!0},p(o,r){n=o;const a={};r[0]&1&&(a.field=n[51]),!t&&r[0]&5&&(t=!0,a.value=n[2][n[51].name],ke(()=>t=!1)),e. $ set(a)},i(o){i||(A(e. $ $ .fragment,o),i=!0)},o(o){I(e. $ $ .fragment,o),i=!1},d(o){j(e,o)}}}function $ O(n){let e,t,i;function s(o){n[36](o,n[51])}let l={field:n[51]};return n[2][n[51].name]!==void 0&&(l.value=n[2][n[51].name]),e=new T5({props:l}),se.push(()=>ge(e,"value",s)),{c(){V(e. $ $ .fragment)},m(o,r){q(e,o,r),i=!0},p(o,r){n=o;const a={};r[0]&1&&(a.field=n[51]),!t&&r[0]&5&&(t=!0,a.value=n[2][n[51].name],ke(()=>t=!1)),e. $ set(a)},i(o){i||(A(e. $ $ .fragment,o),i=!0)},o(o){I(e. $ $ .fragment,o),i=!1},d(o){j(e,o)}}}function CO(n){let e,t,i;function s(o){n[35](o,n[51])}let l={field:n[51]};return n[2][n[51].name]!==void 0&&(l.value=n[2][n[51].name]),e=new qM({props:l}),se.push(()=>ge(e,"value",s)),{c(){V(e. $ $ .fragment)},m(o,r){q(e,o,r),i=!0},p(o,r){n=o;const a={};r[0]&1&&(a.field=n[51]),!t&&r[0]&5&&(t=!0,a.value=n[2][n[51].name],ke(()=>t=!1)),e. $ set(a)},i(o){i||(A(e. $ $ .fragment,o),i=!0)},o(o){I(e. $ $ .fragment,o),i=!1},d(o){j(e,o)}}}function MO(n){let e,t,i;function s(o){n[34](o,n[51])}let l={field:n[51]};return n[2][n[51].name]!==void 0&&(l.value=n[2][n[51].name]),e=new y5({props:l}),se.push(()=>ge(e,"value",s)),{c(){V(
2023-03-17 01:21:16 +08: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=K(e,"click",n[23]),t=!0)},p:X,d(s){s&&w(e),t=!1,i()}}}function um(n){let e,t,i;return{c(){e=v("button"),e.innerHTML=`<i class="ri-mail-lock-line"></i >
< 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=K(e,"click",n[24]),t=!0)},p:X,d(s){s&&w(e),t=!1,i()}}}function PO(n){let e,t,i,s,l,o,r,a=n[0].isAuth&&!n[7].verified&&n[7].email&&am(n),u=n[0].isAuth&&n[7].email&&um(n);return{c(){a&&a.c(),e=D(),u&&u.c(),t=D(),i=v("button"),i.innerHTML=`<i class="ri-file-copy-line"></i >
< span class = "txt" > Duplicate < /span>`,s=D(),l=v("button"),l.innerHTML=`<i class="ri-delete-bin-7-line"></i >
< 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 , c ) { a & & a . m ( f , c ) , S ( f , e , c ) , u & & u . m ( f , c ) , S ( f , t , c ) , S ( f , i , c ) , S ( f , s , c ) , S ( f , l , c ) , o | | ( r = [ K ( i , " c l i c k " , n [ 2 5 ] ) , K ( l , " c l i c k " , $ n ( f t ( n [ 2 6 ] ) ) ) ] , o = ! 0 ) } , p ( f , c ) { f [ 0 ] . i s A u t h & & ! f [ 7 ] . v e r i f i e d & & f [ 7 ] . e m a i l ? a ? a . p ( f , c ) : ( a = 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 [ 7 ] . e m a i l ? u ? u . p ( f , c ) : ( u = u 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 , A e ( r ) } } } f u n c t i o n f m ( n ) { l e t e , t , i , s , l , o ; r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " 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 = v ( " 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 " ) , Q ( t , " a c t i v e " , n [ 1 0 ] = = = x i ) , 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 " ) , Q ( s , " a c t i v e " , n [ 1 0 ] = = = k 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 = [ K ( t , " c l i c k " , n [ 2 7 ] ) , K ( s , " c l i c k " , n [ 2 8 ] ) ] , l = ! 0 ) } , p ( r , a ) { a [ 0 ] & 1 0 2 4 & & Q ( t , " a c t i v e " , r [ 1 0 ] = = = x i ) , a [ 0 ] & 1 0 2 4 & & Q ( s , " a c t i v e " , r [ 1 0 ] = = = k l ) } , d ( r ) { r & & w ( e ) , l = ! 1 , A e ( o ) } } } f u n c t i o n L O ( n ) { v a r g ; l e t e , t = n [ 2 ] . i s N e w ? " N e w " : " E d i t " , i , s , l , o = ( ( g = n [ 0 ] ) = = n u l l ? v o i d 0 : g . n a m e ) + " " , r , a , u , f , c , d , p = ! n [ 2 ] . i s N e w & & r m ( n ) , h = n [ 0 ] . i s A u t h & & ! n [ 2 ] . i s N e w & & f m ( n ) ; r e t u r n { c ( ) { e = v ( " h 4 " ) , i = B ( t ) , s = D ( ) , l = v ( " s t r o n g " ) , r = B ( o ) , a = B ( " r e c o r d " ) , u = D ( ) , p & & p . c ( ) , f = D ( ) , h & & h . c ( ) , c = w e ( ) } , m ( _ , y ) { S ( _ , e , y ) , b ( e , i ) , b ( e , s ) , b ( e , l ) , b ( l , r ) , b ( e , a ) , S ( _ , u , y ) , p & & p . m ( _ , y ) , S ( _ , f , y ) , h & & h . m ( _ , y ) , S ( _ , c , y ) , d = ! 0 } , p ( _ , y ) { v a r k ; ( ! d | | y [ 0 ] & 4 ) & & t ! = = ( t = _ [ 2 ] . i s N e w ? " N e w " : " E d i t " ) & & l e ( i , t ) , ( ! d | | y [ 0 ] & 1 ) & & o ! = = ( o = ( ( k = _ [ 0 ] ) = = n u l l ? v o i d 0 : k . n a m e ) + " " ) & & l e ( r , o ) , _ [ 2 ] . i s N e w ? p & & ( r e ( ) , I ( p , 1 , 1 , ( ) = > { p = n u l l } ) , a e ( ) ) : p ? ( p . p ( _ , y ) , y [ 0 ] & 4 & & A ( p , 1 ) ) : ( p = r m ( _ ) , p . c ( ) , A ( p , 1 ) , p . m ( f . p a r e n t N o d e , f ) ) , _ [ 0 ] . i s A u t h & & ! _ [ 2 ] . i s N e w ? h ? h . p ( _ , y ) : ( h = f m ( _ ) , h . c ( ) , h . m ( c . p a r e n t N o d e , c ) ) : h & & ( h . d ( 1 ) , h = n u l l ) } , i ( _ ) { d | | ( A ( p ) , d = ! 0 ) } , o ( _ ) { I ( p ) , d = ! 1 } , d ( _ ) { _ & & w ( e ) , _ & & w ( u ) , p & & p . d ( _ ) , _ & & w ( f ) , h & & h . d ( _ ) , _ & & w ( c ) } } } f u n c t i o n N O ( n ) { l e t e , t , i , s , l , o = n [ 2 ] . i s N e w ? " 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 = v ( " b u t t o n " ) , t = v ( " 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 = v ( " b u t t o n " ) , l = v ( " s p a n " ) , r = B ( 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 [ 8 ] , 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 3 ] ) , 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 1 ] | | n [ 8 ] , Q ( s , " b t n - l o a d i n g " , n [ 8 ] ) } , m ( c , d ) { S ( c , e , d ) , b ( e , t ) , S ( c , i , d ) , S ( c , s , d ) , b ( s , l ) , b ( l , r ) , u | | ( f = K ( e , " c l i c k " , n [ 2 2 ] ) , u = ! 0 ) } , p ( c , d ) { d [ 0 ] & 2 5 6 & & ( e . d i s a b l e d = c [ 8 ] ) , d [ 0 ] & 4 & & o ! = = ( o = c [ 2 ] . i s N e w ? " C r e a t e " : " S a v e c h a n g e s " ) & & l e ( r , o ) , d [ 0 ] & 2 3 0 4 & & a ! = = ( a = ! c [ 1 1 ] | | c [ 8 ] ) & & ( s . d i s a b l e d = a ) , d [ 0 ] & 2 5 6 & & Q ( s , " b t n - l o a d i n g " , c [ 8 ] ) } , d ( c ) { c & & w ( e ) , c & & w ( i ) , c & & w ( s ) , u = ! 1 , f ( ) } } } f u n c t i o n F O ( n ) { v a r s ; l e t e , t , i = { c l a s s : `
record - panel
` +(n[12]?"overlay-panel-xl":"overlay-panel-lg")+ `
` +((s=n[0])!=null&&s.isAuth&&!n[2].isNew?"colored-header":"")+ `
` ,beforeHide:n[43], $ $ slots:{footer:[NO],header:[LO],default:[IO]}, $ $ scope:{ctx:n}};return e=new bn({props:i}),n[44](e),e. $ on("hide",n[45]),e. $ on("show",n[46]),{c(){V(e. $ $ .fragment)},m(l,o){q(e,l,o),t=!0},p(l,o){var a;const r={};o[0]&4101&&(r.class= `
record - panel
` +(l[12]?"overlay-panel-xl":"overlay-panel-lg")+ `
` +((a=l[0])!=null&&a.isAuth&&!l[2].isNew?"colored-header":"")+ `
2023-03-19 14:17:36 +08:00
` ),o[0]&544&&(r.beforeHide=l[43]),o[0]&3485|o[1]&16777216&&(r. $ $ scope={dirty:o,ctx:l}),e. $ set(r)},i(l){t||(A(e. $ $ .fragment,l),t=!0)},o(l){I(e. $ $ .fragment,l),t=!1},d(l){n[44](null),j(e,l)}}}const xi="form",kl="providers";function cm(n){return JSON.stringify(n)}function RO(n,e,t){let i,s,l,o;const r=yt(),a="record_"+H.randomString(5);let{collection:u}=e,f,c=null,d=new Ci,p=!1,h=!1,g={},_={},y="",k=xi;function T(ie){return M(ie),t(9,h=!0),t(10,k=xi),f==null?void 0:f.show()}function $ (){return f==null?void 0:f.hide()}async function M(ie){_n({}),t(7,c=ie||{}),ie!=null&&ie.clone?t(2,d=ie.clone()):t(2,d=new Ci),t(3,g={}),t(4,_={}),await rn(),t(20,y=cm(d))}function C(){if(p||!o||!(u!=null&&u.id))return;t(8,p=!0);const ie=E();let Se;d.isNew?Se=me.collection(u.id).create(ie):Se=me.collection(u.id).update(d.id,ie),Se.then(st=>{Ut(d.isNew?"Successfully created record.":"Successfully updated record."),t(9,h=!1), $ (),r("save",st)}).catch(st=>{me.errorResponseHandler(st)}).finally(()=>{t(8,p=!1)})}function O(){c!=null&&c.id&&pn("Do you really want to delete the selected record?",()=>me.collection(c.collectionId).delete(c.id).then(()=>{ $ (),Ut("Successfully deleted record."),r("delete",c)}).catch(ie=>{me.errorResponseHandler(ie)}))}function E(){const ie=(d==null?void 0:d.export())||{},Se=new FormData,st={};for(const nt of(u==null?void 0:u.schema)||[])st[nt.name]=!0;u!=null&&u.isAuth&&(st.username=!0,st.email=!0,st.emailVisibility=!0,st.password=!0,st.passwordConfirm=!0,st.verified=!0);for(const nt in ie)st[nt]&&(typeof ie[nt]>"u"&&(ie[nt]=null),H.addValueToFormData(Se,nt,ie[nt]));for(const nt in g){const wt=H.toArray(g[nt]);for(const xt of wt)Se.append(nt,xt)}for(const nt in _){const wt=H.toArray(_[nt]);for(const xt of wt)Se.append(nt+"."+xt,"")}return Se}function P(){!(u!=null&&u.id)||!(c!=null&&c.email)||pn( ` Do you really want to sent verification email to $ { c . email } ? ` ,()=>me.collection(u.id).requestVerification(c.email).then(()=>{Ut( ` Successfully sent verification email to $ { c . email } . ` )}).catch(ie=>{me.errorResponseHandler(ie)}))}function L(){!(u!=null&&u.id)||!(c!=null&&c.email)||pn( ` Do you really want to sent password reset email to $ { c . email } ? ` ,()=>me.collection(u.id).requestPasswordReset(c.email).then(()=>{Ut( ` Successfully sent password reset email to $ { c . email } . ` )}).catch(ie=>{me.errorResponseHandler(ie)}))}function F(){l?pn("You have unsaved changes. Do you really want to discard them?",()=>{N()}):N()}async function N(){const ie=c==null?void 0:c.clone();if(ie){ie.id="",ie.created="",ie.updated="";const Se=(u==null?void 0:u.schema)||[];for(const st of Se)st.type==="file"&&delete ie[st.name]}T(ie),await rn(),t(20,y="")}const R=()=> $ (),z=()=>P(),W=()=>L(),J=()=>F(),x=()=>O(),ne=()=>t(10,k=xi),G=()=>t(10,k=kl);function fe(ie){d=ie,t(2,d)}function Z(ie,Se){n. $ $ .not_equal(d[Se.name],ie)&&(d[Se.name]=ie,t(2,d))}function ce(ie,Se){n. $ $ .not_equal(d[Se.name],ie)&&(d[Se.name]=ie,t(2,d))}function he(ie,Se){n. $ $ .not_equal(d[Se.name],ie)&&(d[Se.name]=ie,t(2,d))}function Ce(ie,Se){n. $ $ .not_equal(d[Se.name],ie)&&(d[Se.name]=ie,t(2,d))}function Re(ie,Se){n. $ $ .not_equal(d[Se.name],ie)&&(d[Se.name]=ie,t(2,d))}function je(ie,Se){n. $ $ .not_equal(d[Se.name],ie)&&(d[Se.name]=ie,t(2,d))}function ye(ie,Se){n. $ $ .not_equal(d[Se.name],ie)&&(d[Se.name]=ie,t(2,d))}function $ e(ie,Se){n. $ $ .not_equal(d[Se.name],ie)&&(d[Se.name]=ie,t(2,d))}function Ye(ie,Se){n. $ $ .not_equal(d[Se.name],ie)&&(d[Se.name]=ie,t(2,d))}function dt(ie,Se){n. $ $ .not_equal(d[Se.name],ie)&&(d[Se.name]=ie,t(2,d))}function Ke(ie,Se){n. $ $ .not_equal(g[Se.name],ie)&&(g[Se.name]=ie,t(3,g))}function Be(ie,Se){n. $ $ .not_equal(_[Se.name],ie)&&(_[Se.name]=ie,t(4,_))}function ee(ie,Se){n. $ $ .not_equal(d[Se.name],ie)&&(d[Se.name]=ie,t(2,d))}const Fe=()=>l&&h?(pn("You have unsaved changes. Do you really want to close the panel?",()=>{t(9,h=!1), $ ()}),!1):(_n({}),!0);function Qe(ie){se[ie?"unshift":"push"](()=>{f=ie,t(6,f)})}function Wt(ie){de.call(this,n,ie)}function Pe(ie){de.call(this,n,ie)}return n. $ $ set=ie=>{"collection"in ie&&t(0,u=ie.collection)},n. $ $ .update=()=>{var ie;n. $ $ .dirty[0]&1&&t(12,i=!!((
2023-03-17 01:21:16 +08:00
` },m(t,i){S(t,e,i)},p:X,d(t){t&&w(e)}}}function TD(n){let e,t,i;return{c(){e=v("button"),e.innerHTML= ` < i class = "ri-add-line" > < / i >
2023-03-19 14:17:36 +08: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 = K ( e , " c l i c k " , n [ 4 0 ] ) , t = ! 0 ) } , p : X , d ( s ) { s & & w ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n $ D ( n ) { l e t e , t , i ; r e t u r n { c ( ) { e = v ( " 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 = K ( e , " c l i c k " , n [ 3 9 ] ) , t = ! 0 ) } , p : X , d ( s ) { s & & w ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n V m ( n ) { l e t e , t , i , s , l , o , r , a , u , f ; f u n c t i o n c ( ) { r e t u r n n [ 3 6 ] ( n [ 5 5 ] ) } r e t u r n { c ( ) { e = v ( " t d " ) , t = v ( " d i v " ) , i = v ( " i n p u t " ) , o = D ( ) , r = v ( " 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 ( d , p ) { S ( d , e , p ) , b ( e , t ) , b ( t , i ) , b ( t , o ) , b ( t , r ) , u | | ( f = [ K ( i , " c h a n g e " , c ) , K ( t , " c l i c k " , $ n ( n [ 2 6 ] ) ) ] , u = ! 0 ) } , p ( d , p ) { n = d , p [ 0 ] & 1 6 & & s ! = = ( s = " c h e c k b o x _ " + n [ 5 5 ] . i d ) & & m ( i , " i d " , s ) , p [ 0 ] & 8 0 & & l ! = = ( l = n [ 6 ] [ n [ 5 5 ] . i d ] ) & & ( i . c h e c k e d = l ) , p [ 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 ( d ) { d & & w ( e ) , u = ! 1 , A e ( f ) } } } f u n c t i o n H m ( n ) { l e t e , t , i , s , l , o , r = n [ 5 5 ] . i d + " " , a , u , f ; s = n e w x o ( { p r o p s : { v a l u e : n [ 5 5 ] . i d } } ) ; l e t c = n [ 2 ] . i s A u t h & & z m ( n ) ; r e t u r n { c ( ) { e = v ( " t d " ) , t = v ( " d i v " ) , i = v ( " d i v " ) , V ( s . $ $ . f r a g m e n t ) , l = D ( ) , o = v ( " d i v " ) , a = B ( r ) , u = D ( ) , c & & c . 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 ( d , p ) { S ( d , e , p ) , b ( e , t ) , b ( t , i ) , q ( s , i , n u l l ) , b ( i , l ) , b ( i , o ) , b ( o , a ) , b ( t , u ) , c & & c . m ( t , n u l l ) , f = ! 0 } , p ( d , p ) { c o n s t h = { } ; p [ 0 ] & 1 6 & & ( h . v a l u e = d [ 5 5 ] . i d ) , s . $ s e t ( h ) , ( ! f | | p [ 0 ] & 1 6 ) & & r ! = = ( r = d [ 5 5 ] . i d + " " ) & & l e ( a , r ) , d [ 2 ] . i s A u t h ? c ? c . p ( d , p ) : ( c = z m ( d ) , c . c ( ) , c . m ( t , n u l l ) ) : c & & ( c . d ( 1 ) , c = n u l l ) } , i ( d ) { f | | ( A ( s . $ $ . f r a g m e n t , d ) , f = ! 0 ) } , o ( d ) { I ( s . $ $ . f r a g m e n t , d ) , f = ! 1 } , d ( d ) { d & & w ( e ) , j ( s ) , c & & c . d ( ) } } } f u n c t i o n z m ( 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 ? M D : C D } l e t i = t ( n ) , s = i ( n ) ; r e t u r n { c ( ) { s . c ( ) , e = w 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 C D ( n ) { l e t e , t , i ; r e t u r n { c ( ) { e = v ( " 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 = D e ( z 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 M D ( n ) { l e t e , t , i ; r e t u r n { c ( ) { e = v ( " 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 = D e ( z 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 B m ( 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 & & U m ( n ) , o = i & & W m ( n ) ; r e t u r n { c ( ) { l & & l . c ( ) , t = D ( ) , o & & o . c ( ) , s = w 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 = U m ( 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 = W m ( 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 U m ( 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 = ! ! H . i s E m p t y ( o [ 5 5 ] . u s e r n a m e ) ) , t ? D D : O D } l e t s = i ( n , [ - 1 , - 1 , - 1 ] ) , l = s ( n ) ; r e t u r n { c ( ) { e = v ( " 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 O D ( 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 = v ( " s p a n " ) , i = B ( 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 + " " ) & & l 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 D D ( n ) { l e t e ; r e t u r n { c ( ) { e = v ( " 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 : X , d ( t ) { t & & w ( e ) } } } f u n c t i o n W m ( 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 = ! ! H . i s E m p t y ( o [ 5 5 ] . e m a i l ) ) , t ? A D : E D } l e t s = i ( n , [ - 1 , - 1 , - 1 ] ) , l = s ( n ) ; r e t u r n { c ( ) { e = v ( " 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 E D ( n ) { l e t e , t = n [ 5 5 ] . e m a i l + " " , i , s ; r e t u r n { c ( ) { e = v ( " s p a n " ) , i = B ( 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 l + " " )
2023-03-17 01:21:16 +08:00
< 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=K(e,"click",n[18]),t=!0)},p:X,d(s){s&&w(e),t=!1,i()}}}function BD(n){let e,t,i,s,l,o=n[2].name+"",r,a,u,f,c,d,p,h,g,_,y,k,T,$,M,C,O,E,P,L,F=!n[10]&&th(n);c=new Aa({}),c.$on("refresh",n[16]);let N=!n[2].isView&&nh(n);y=new Wo({props:{value:n[0],autocompleteCollection:n[2]}}),y.$on("submit",n[19]);function R(J){n[21](J)}function z(J){n[22](J)}let W={collection:n[2]};return n[0]!==void 0&&(W.filter=n[0]),n[1]!==void 0&&(W.sort=n[1]),M=new jD({props:W}),n[20](M),se.push(()=>ge(M,"filter",R)),se.push(()=>ge(M,"sort",z)),M.$on("select",n[23]),M.$on("new",n[24]),{c(){e=v("header"),t=v("nav"),i=v("div"),i.textContent="Collections",s=D(),l=v("div"),r=B(o),a=D(),u=v("div"),F&&F.c(),f=D(),V(c.$$.fragment),d=D(),p=v("div"),h=v("button"),h.innerHTML=`<i class="ri-code-s-slash-line"></i >
< span class = "txt" > API Preview < /span>`,g=D(),N&&N.c(),_=D(),V(y.$$.fragment),k=D(),T=v("div"),$=D(),V(M.$$.fragment),m(i,"class","breadcrumb-item"),m(l,"class","breadcrumb-item"),m(t,"class","breadcrumbs"),m(u,"class","inline-flex gap-5"),m(h,"type","button"),m(h,"class","btn btn-outline"),m(p,"class","btns-group"),m(e,"class","page-header"),m(T,"class","clearfix m-b-base")},m(J,x){S(J,e,x),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),q(c,u,null),b(e,d),b(e,p),b(p,h),b(p,g),N&&N.m(p,null),S(J,_,x),q(y,J,x),S(J,k,x),S(J,T,x),S(J,$,x),q(M,J,x),E=!0,P||(L=K(h,"click",n[17]),P=!0)},p(J,x){(!E||x[0]&4)&&o!==(o=J[2].name+"")&&le(r,o),J[10]?F&&(F.d(1),F=null):F?F.p(J,x):(F=th(J),F.c(),F.m(u,f)),J[2].isView?N&&(N.d(1),N=null):N?N.p(J,x):(N=nh(J),N.c(),N.m(p,null));const ne={};x[0]&1&&(ne.value=J[0]),x[0]&4&&(ne.autocompleteCollection=J[2]),y.$set(ne);const G={};x[0]&4&&(G.collection=J[2]),!C&&x[0]&1&&(C=!0,G.filter=J[0],ke(()=>C=!1)),!O&&x[0]&2&&(O=!0,G.sort=J[1],ke(()=>O=!1)),M.$set(G)},i(J){E||(A(c.$$.fragment,J),A(y.$$.fragment,J),A(M.$$.fragment,J),E=!0)},o(J){I(c.$$.fragment,J),I(y.$$.fragment,J),I(M.$$.fragment,J),E=!1},d(J){J&&w(e),F&&F.d(),j(c),N&&N.d(),J&&w(_),j(y,J),J&&w(k),J&&w(T),J&&w($),n[20](null),j(M,J),P=!1,L()}}}function UD(n){let e,t,i,s,l;return{c(){e=v("h1"),e.textContent="Create your first collection to add records!",t=D(),i=v("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=K(i,"click",n[14]),s=!0)},p:X,d(o){o&&w(e),o&&w(t),o&&w(i),s=!1,l()}}}function WD(n){let e;return{c(){e=v("h1"),e.textContent="You don't have any collections yet.",m(e,"class","m-b-10")},m(t,i){S(t,e,i)},p:X,d(t){t&&w(e)}}}function YD(n){let e,t,i;function s(r,a){return r[10]?WD:UD}let l=s(n),o=l(n);return{c(){e=v("div"),t=v("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 KD ( n ) { let e ; return { c ( ) { e = v ( "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 : X , d ( t ) { t & & w ( e ) } } } f u n c t i o n J D ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c ; c o n s t d = [ z D , H D , V D ] , p = [ ] ; f u n c t i o n h ( T , $ ) { r e t u r n T [ 3 ] & & ! T [ 9 ] . l e n g t h ? 0 : T [ 9 ] . l e n g t h ? 2 : 1 } e = h ( n ) , t = p [ e ] = d [ e ] ( n ) ; l e t g = { } ; s = n e w s u ( { p r o p s : g } ) , n [ 2 5 ] ( s ) ; l e t _ = { } ; o = n e w z 4 ( { p r o p s : _ } ) , n [ 2 6 ] ( o ) ; l e t y = { c o l l e c t i o n : n [ 2 ] } ; a = n e w G 1 ( { p r o p s : y } ) , 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 k = { c o l l e c t i o n : n [ 2 ] } ; r e t u r n f = n e w p D ( { p r o p s : k } ) , n [ 3 0 ] ( f ) , { c ( ) { t . c ( ) , i = D ( ) , V ( s . $ $ . f r a g m e n t ) , l = D ( ) , V ( o . $ $ . f r a g m e n t ) , r = D ( ) , V ( a . $ $ . f r a g m e n t ) , u = D ( ) , V ( f . $ $ . f r a g m e n t ) } , m ( T , $ ) { p [ e ] . m ( T , $ ) , S ( T , i , $ ) , q ( s , T , $ ) , S ( T , l , $ ) , q ( o , T , $ ) , S ( T , r , $ ) , q ( a , T , $ ) , S ( T , u , $ ) , q ( f , T , $ ) , c = ! 0 } , p ( T , $ ) { l e t M = e ; e = h ( T ) , e = = = M ? p [ e ] . p ( T , $ ) : ( r e ( ) , I ( p [ M ] , 1 , 1 , ( ) = > { p [ M ] = n u l l } ) , a e ( ) , t = p [ e ] , t ? t . p ( T , $ ) : ( t = p [ e ] = d [ e ] ( T ) , t . c ( ) ) , A ( t , 1 ) , t . m ( i . p a r e n t N o d e , i ) ) ; c o n s t C = { } ; s . $ s e t ( C ) ; c o n s t O = { } ; o . $ s e t ( O ) ; c o n s t E = { } ; $ [ 0 ] & 4 & & ( E . c o l l e c t i o n = T [ 2 ] ) , a . $ s e t ( E ) ; c o n s t P = { } ; $ [ 0 ] & 4 & & ( P . c o l l e c t i o n = T [ 2 ] ) , f . $ s e t ( P ) } , i ( T ) { c | | ( A ( t ) , A ( s . $ $ . f r a g m e n t , T ) , A ( o . $ $ . f r a g m e n t , T ) , A ( a . $ $ . f r a g m e n t , T ) , A ( f . $ $ . f r a g m e n t , T ) , c = ! 0 ) } , o ( T ) { I ( t ) , I ( s . $ $ . f r a g m e n t , T ) , I ( o . $ $ . f r a g m e n t , T ) , I ( a . $ $ . f r a g m e n t , T ) , I ( f . $ $ . f r a g m e n t , T ) , c = ! 1 } , d ( T ) { p [ e ] . d ( T ) , T & & w ( i ) , n [ 2 5 ] ( n u l l ) , j ( s , T ) , T & & w ( l ) , n [ 2 6 ] ( n u l l ) , j ( o , T ) , T & & w ( r ) , n [ 2 7 ] ( n u l l ) , j ( a , T ) , T & & w ( u ) , n [ 3 0 ] ( n u l l ) , j ( f , T ) } } } f u n c t i o n Z D ( n , e , t ) { l e t i , s , l , o , r , a , u ; W e ( n , D i , Z = > t ( 2 , s = Z ) ) , W e ( n , O t , Z = > t ( 3 1 , l = Z ) ) , W e ( n , L o , Z = > t ( 3 , o = Z ) ) , W e ( n , g a , Z = > t ( 1 3 , r = Z ) ) , W e ( n , P i , Z = > t ( 9 , a = Z ) ) , W e ( n , C s , Z = > t ( 1 0 , u = Z ) ) ; 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 c , d , p , h , g , _ = f . g e t ( " f i l t e r " ) | | " " , y = f . g e t ( " s o r t " ) | | " " , k = 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 T ( ) { t ( 1 1 , k = s = = n u l l ? v o i d 0 : s . i d ) , t ( 0 , _ = " " ) , t ( 1 , y = " - c r e a t e d " ) , s ! = n u l l & & s . i s V i e w & & ! H . 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 , y = " " ) } B 1 ( k ) ; c o n s t $ = ( ) = > c = = n u l l ? v o i d 0 : c . s h o w ( ) , M = ( ) = > c = = n u l l ? v o i d 0 : c . s h o w ( s ) , C = ( ) = > g = = n u l l ? v o i d 0 : g . l o a d ( ) , O = ( ) = > d = = n u l l ? v o i d 0 : d . s h o w ( s ) , E = ( ) = > p = = n u l l ? v o i d 0 : p . s h o w ( ) , P = Z = > t ( 0 , _ = Z . d e t a i l ) ; f u n c t i o n L ( Z ) { s e [ Z ? " u n s h i f t " : " p u s h " ] ( ( ) = > { g = Z , t ( 8 , g ) } ) } f u n c t i o n F ( Z ) { _ = Z , t ( 0 , _ ) } f u n c t i o n N ( Z ) { y = Z , t ( 1 , y ) } c o n s t R = Z = > { s . i s V i e w ? h . s h o w ( Z = = n u l l ? v o i d 0 : Z . d e t a i l ) : p = = n u l l | | p . s h o w ( Z = = n u l l ? v o i d 0 : Z . d e t a i l ) } , z = ( ) = > p = = n u l l ? v o i d 0 : p . s h o w ( ) ; f u n c t i o n W ( Z ) { s e [ Z ? " u n s h i f t " : " p u s h " ] ( ( ) = > { c = Z , t ( 4 , c ) } ) } f u n c t i o n J ( Z ) { s e [ Z ? " u n s h i f t " : " p u s h " ] ( ( ) = > { d = Z , t ( 5 , d ) } ) } f u n c t i o n x ( Z ) { s e [ Z ? " u n s h i f t " : " p u s h " ] ( ( ) = > { p = Z , t ( 6 , p ) } ) } c o n s t n e = ( ) = > g = = n u l l ? v o i d 0 : g . r e l o a d L o a d e d P a g e s ( ) , G = ( ) = > g = = n u l l ? v o i d 0 : g . 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 f e ( Z ) { s e [ Z ? " u n s h i f t " : " p u s h " ] ( ( ) = > { h = Z , t ( 7 , h ) } ) } 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 " ) ! = k & & G S ( 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 & & k ! = s . i d & & T ( ) , n . $ $ . d i r t y [ 0 ] & 7 & & ( y | | _ | | s ! = n u l l & & s . i d ) ) { c o n s t Z = 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 : _ , s o r t : y } ) . t o S t r i n g ( ) ; E i ( " / c o l l e c t i o n s ? " + Z ) } n . $ $ . d i r t y [ 0 ] & 4 & & G t ( O 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 ) } , [ _ , y , s , o , c , d , p , h , g , a , u , k , i , r , $ , M , C , O , E , P , L , F , N , R , z , W , J , x , n e , G , f e ] } c l a s s G D e x t e n d s v e { c o n s t r u c t o r ( e ) { s u p e r ( ) , b e ( t h i s , e , Z D , J D , _ e , { } , n u l l , [ - 1 , - 1 ] ) } } f u n c t i o n X D ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d , p , h , g , _ , y , k , T , $ , M , C , O , E , P ; r e t u r n { c ( ) { e = v ( " a s i d e " ) , t = v ( " d i v " ) , i = v ( " d i v " ) , i . t e x t C o n t e n t = " S y s t e m " , s = D ( ) , l = v ( " 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 >
< span class = "txt" > Application < /span>`,o=D(),r=v("a"),r.innerHTML=`<i class="ri-send-plane-2-line"></i >
< span class = "txt" > Mail settings < /span>`,a=D(),u=v("a"),u.innerHTML=`<i class="ri-archive-drawer-line"></i >
< span class = "txt" > Files storage < / s p a n > ` , f = D ( ) , c = v ( " d i v " ) , c . 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 > ' , d = D ( ) , p = v ( " a " ) , p . 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 >
< span class = "txt" > Export collections < /span>`,h=D(),g=v("a"),g.innerHTML=`<i class="ri-install-line"></i >
< span class = "txt" > Import collections < /span>`,_=D(),y=v("div"),y.textContent="Authentication",k=D(),T=v("a"),T.innerHTML=`<i class="ri-lock-password-line"></i >
< span class = "txt" > Auth providers < /span>`,$=D(),M=v("a"),M.innerHTML=`<i class="ri-key-line"></i >
< span class = "txt" > Token options < /span>`,C=D(),O=v("a"),O.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 ( c , " c l a s s " , " s i d e b a r - t i t l e " ) , m ( p , " 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 ( p , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , m ( g , " 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 ( g , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , m ( y , " c l a s s " , " s i d e b a r - t i t l e " ) , m ( T , " 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 ( T , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , m ( M , " h r e f " , " / s e t t i n g s / t o k e n s " ) , m ( M , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , m ( O , " h r e f " , " / s e t t i n g s / a d m i n s " ) , m ( O , " 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 ( L , F ) { S ( L , e , F ) , 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 , c ) , b ( t , d ) , b ( t , p ) , b ( t , h ) , b ( t , g ) , b ( t , _ ) , b ( t , y ) , b ( t , k ) , b ( t , T ) , b ( t , $ ) , b ( t , M ) , b ( t , C ) , b ( t , O ) , E | | ( P = [ D e ( H n . c a l l ( n u l l , l , { p a t h : " / s e t t i n g s " } ) ) , D e ( n n . c a l l ( n u l l , l ) ) , D e ( H 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 / ? . * " } ) ) , D e ( n n . c a l l ( n u l l , r ) ) , D e ( H 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 / ? . * " } ) ) , D e ( n n . c a l l ( n u l l , u ) ) , D e ( H n . c a l l ( n u l l , p , { 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 / ? . * " } ) ) , D e ( n n . c a l l ( n u l l , p ) ) , D e ( H n . c a l l ( n u l l , g , { 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 / ? . * " } ) ) , D e ( n n . c a l l ( n u l l , g ) ) , D e ( H n . c a l l ( n u l l , T , { 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 / ? . * " } ) ) , D e ( n n . c a l l ( n u l l , T ) ) , D e ( H n . c a l l ( n u l l , M , { p a t h : " / s e t t i n g s / t o k e n s / ? . * " } ) ) , D e ( n n . c a l l ( n u l l , M ) ) , D e ( H n . c a l l ( n u l l , O , { p a t h : " / s e t t i n g s / a d m i n s / ? . * " } ) ) , D e ( n n . c a l l ( n u l l , O ) ) ] , E = ! 0 ) } , p : X , i : X , o : X , d ( L ) { L & & w ( e ) , E = ! 1 , A e ( P ) } } } c l a s s N i e x t e n d s v e { c o n s t r u c t o r ( e ) { s u p e r ( ) , b e ( t h i s , e , n u l l , X D , _ e , { } ) } } f u n c t i o n i 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 s 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 : [ Q D , ( { 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 ( ) { V ( e . $ $ . f r a g m e n t ) } , m ( i , s ) { q ( 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 | | ( A ( e . $ $ . f r a g m e n t , i ) , t = ! 0 ) } , o ( i ) { I ( e . $ $ . f r a g m e n t , i ) , t = ! 1 } , d ( i ) { j ( e , i ) } } } f u n c t i o n Q D ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d , p , h , g ; r e t u r n { c ( ) { e = v ( " l a b e l " ) , t = v ( " i " ) , i = D ( ) , s = v ( " s p a n " ) , s . t e x t C o n t e n t = " i d " , o = D ( ) , r = v ( " d i v " ) , a = v ( " i " ) , f = D ( ) , c = v ( " i n p u t " ) , m ( t , " c l a s s " , H . 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 ( c , " t y p e " , " t e x t " ) , m ( c , " i d " , d = n [ 2 9 ] ) , c . v a l u e = p = n [ 1 ] . i d , c . r e a d O n l y = ! 0 } , m ( _ , y ) { S ( _ , e , y ) , b ( e , t ) , b ( e , i ) , b ( e , s ) , S ( _ , o , y ) , S ( _ , r , y ) , b ( r , a ) , S ( _ , f , y ) , S ( _ , c , y ) , h | | ( g = D e ( u = z 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"})),h=!0)},p(_,y){y[0]&536870912&&l!==(l=_[29])&&m(e,"for",l),u&&Bt(u.update)&&y[0]&2&&u.update.call(null,{text: ` Created : $ { _ [ 1 ] . created }
2023-03-19 14:17:36 +08:00
Updated : $ { _ [ 1 ] . updated } ` ,position:"left"}),y[0]&536870912&&d!==(d=_[29])&&m(c,"id",d),y[0]&2&&p!==(p=_[1].id)&&c.value!==p&&(c.value=p)},d(_){_&&w(e),_&&w(o),_&&w(r),_&&w(f),_&&w(c),h=!1,g()}}}function lh(n){let e,t,i,s,l,o,r;function a(){return n[17](n[30])}return{c(){e=v("button"),t=v("img"),s=D(),Un(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=K(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 xD(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=v("label"),t=v("i"),i=D(),s=v("span"),s.textContent="Email",o=D(),r=v("input"),m(t,"class",H.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(c,d){S(c,e,d),b(e,t),b(e,i),b(e,s),S(c,o,d),S(c,r,d),ue(r,n[3]),u||(f=K(r,"input",n[18]),u=!0)},p(c,d){d[0]&536870912&&l!==(l=c[29])&&m(e,"for",l),d[0]&536870912&&a!==(a=c[29])&&m(r,"id",a),d[0]&8&&r.value!==c[3]&&ue(r,c[3])},d(c){c&&w(e),c&&w(o),c&&w(r),u=!1,f()}}}function oh(n){let e,t;return e=new pe({props:{class:"form-field form-field-toggle", $ $ slots:{default:[eE,({uniqueId:i})=>({29:i}),({uniqueId:i})=>[i?536870912:0]]}, $ $ scope:{ctx:n}}}),{c(){V(e. $ $ .fragment)},m(i,s){q(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||(A(e. $ $ .fragment,i),t=!0)},o(i){I(e. $ $ .fragment,i),t=!1},d(i){j(e,i)}}}function eE(n){let e,t,i,s,l,o,r,a;return{c(){e=v("input"),i=D(),s=v("label"),l=B("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=K(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 rh(n){let e,t,i,s,l,o,r,a,u;return s=new pe({props:{class:"form-field required",name:"password", $ $ slots:{default:[tE,({uniqueId:f})=>({29:f}),({uniqueId:f})=>[f?536870912:0]]}, $ $ scope:{ctx:n}}}),r=new pe({props:{class:"form-field required",name:"passwordConfirm", $ $ slots:{default:[nE,({uniqueId:f})=>({29:f}),({uniqueId:f})=>[f?536870912:0]]}, $ $ scope:{ctx:n}}}),{c(){e=v("div"),t=v("div"),i=v("div"),V(s. $ $ .fragment),l=D(),o=v("div"),V(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,c){S(f,e,c),b(e,t),b(t,i),q(s,i,null),b(t,l),b(t,o),q(r,o,null),u=!0},p(f,c){const d={};c[0]&536871168|c[1]&4&&(d. $ $ scope={dirty:c,ctx:f}),s. $ set(d);const p={};c[0]&536871424|c[1]&4&&(p. $ $ scope={dirty:c,ctx:f}),r. $ set(p)},i(f){u||(A(s. $ $ .fragment,f),A(r. $ $ .fragment,f),f&&Xe(()=>{u&&(a||(a=qe(t,vt,{duration:150},!0)),a.run(1))}),u=!0)},o(f){I(s. $ $ .fragment,f),I(r. $ $ .fragment,f),f&&(a||(a=qe(t,vt,{duration:150},!1)),a.run(0)),u=!1},d(f){f&&w(e),j(s),j(r),f&&a&&a.end()}}}function tE(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=v("label"),t=v("i"),i=D(),s=v("span"),s.textContent="Password",o=D(),r=v("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(c,d){S(c,e,d),b(e,t),b(e,i),b(e,s),S(c,o,d),S(c,r,d),ue(r,n[8]),u||(f=K(r,"input",n[20]),u=!0)},p(c,d){d[0]&536870912&&l!==(l=c[29])&&m(e,"for",l),d[0]&536870912&&a!==(a=c[29])&&m(r,"id",a),d[0]&256&&r.value!==c[8]&&ue(r,c[8])},d(c){c&&w(e),c&&w(o),c&&w(r),u=!1,f()}}}function nE(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=v("label"),t=v("i"),i=D(),s=v("span"),s.textContent="Password confirm",o=D(),r=v("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(c,d){S(c,e,d),b(e,t),b(e,i),b(e,s),S(c,o,d),S(c,r,d),ue(r,n[9]),u||(f=K(r,"input",n[21]),u=!0)},p(c,d){d[0]&536870912&&l!==(l=c[29])&&m(e,"for",l),d
< 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 = K ( e , " c l i c k " , n [ 1 5 ] ) , t = ! 0 ) } , p : X , d ( s ) { s & & w ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n o E ( 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 , c , d , p = ! n [ 1 ] . i s N e w & & a h ( n ) ; r e t u r n { c ( ) { p & & p . c ( ) , e = D ( ) , t = v ( " b u t t o n " ) , i = v ( " 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 = v ( " b u t t o n " ) , o = v ( " s p a n " ) , a = B ( 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 ] , Q ( l , " b t n - l o a d i n g " , n [ 6 ] ) } , m ( h , g ) { p & & p . m ( h , g ) , S ( h , e , g ) , S ( h , t , g ) , b ( t , i ) , S ( h , s , g ) , S ( h , l , g ) , b ( l , o ) , b ( o , a ) , f = ! 0 , c | | ( d = K ( t , " c l i c k " , n [ 1 6 ] ) , c = ! 0 ) } , p ( h , g ) { h [ 1 ] . i s N e w ? p & & ( r e ( ) , I ( p , 1 , 1 , ( ) = > { p = n u l l } ) , a e ( ) ) : p ? ( p . p ( h , g ) , g [ 0 ] & 2 & & A ( p , 1 ) ) : ( p = a h ( h ) , p . c ( ) , A ( p , 1 ) , p . m ( e . p a r e n t N o d e , e ) ) , ( ! f | | g [ 0 ] & 6 4 ) & & ( t . d i s a b l e d = h [ 6 ] ) , ( ! f | | g [ 0 ] & 2 ) & & r ! = = ( r = h [ 1 ] . i s N e w ? " C r e a t e " : " S a v e c h a n g e s " ) & & l e ( a , r ) , ( ! f | | g [ 0 ] & 1 0 8 8 & & u ! = = ( u = ! h [ 1 0 ] | | h [ 6 ] ) ) & & ( l . d i s a b l e d = u ) , ( ! f | | g [ 0 ] & 6 4 ) & & Q ( l , " b t n - l o a d i n g " , h [ 6 ] ) } , i ( h ) { f | | ( A ( p ) , f = ! 0 ) } , o ( h ) { I ( p ) , f = ! 1 } , d ( h ) { p & & p . d ( h ) , h & & w ( e ) , h & & w ( t ) , h & & w ( s ) , h & & w ( l ) , c = ! 1 , d ( ) } } } f u n c t i o n r E ( 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 : [ o E ] , h e a d e r : [ s E ] , d e f a u l t : [ i E ] } , $ $ s c o p e : { c t x : n } } ; r e t u r n e = n e w b 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 ( ) { V ( e . $ $ . f r a g m e n t ) } , m ( s , l ) { q ( 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 | | ( A ( e . $ $ . f r a g m e n t , s ) , t = ! 0 ) } , o ( s ) { I ( e . $ $ . f r a g m e n t , s ) , t = ! 1 } , d ( s ) { n [ 2 3 ] ( n u l l ) , j ( e , s ) } } } f u n c t i o n a E ( n , e , t ) { l e t i ; c o n s t s = y t ( ) , l = " a d m i n _ " + H . r a n d o m S t r i n g ( 5 ) ; l e t o , r = n e w e s , a = ! 1 , u = ! 1 , f = 0 , c = " " , d = " " , p = " " , h = ! 1 ; f u n c t i o n g ( J ) { r e t u r n y ( J ) , 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 _ ( ) { 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 y ( J ) { t ( 1 , r = J ! = n u l l & & J . c l o n e ? J . c l o n e ( ) : n e w e s ) , k ( ) } f u n c t i o n k ( ) { t ( 4 , h = ! 1 ) , t ( 3 , c = ( 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 , d = " " ) , t ( 9 , p = " " ) , _ n ( { } ) } f u n c t i o n T ( ) { i f ( a | | ! i ) r e t u r n ; t ( 6 , a = ! 0 ) ; c o n s t J = { e m a i l : c , a v a t a r : f } ; ( r . i s N e w | | h ) & & ( J . p a s s w o r d = d , J . p a s s w o r d C o n f i r m = p ) ; l e t x ; r . i s N e w ? x = m e . a d m i n s . c r e a t e ( J ) : x = m e . a d m i n s . u p d a t e ( r . i d , J ) , x . t h e n ( a s y n c n e = > { v a r G ; t ( 7 , u = ! 1 ) , _ ( ) , U 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 . " ) , s ( " s a v e " , n e ) , ( ( G = m 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 ) = = = n e . i d & & m e . a u t h S t o r e . s a v e ( m e . a u t h S t o r e . t o k e n , n e ) } ) . c a t c h ( n e = > { m e . e r r o r R e s p o n s e H a n d l e r ( n e ) } ) . f i n a l l y ( ( ) = > { t ( 6 , a = ! 1 ) } ) } f u n c t i o n $ ( ) { r ! = n u l l & & r . i d & & p 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 ? " , ( ) = > m e . a d m i n s . d e l e t e ( r . i d ) . t h e n ( ( ) = > { t ( 7 , u = ! 1 ) , _ ( ) , U 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 ( J = > { m e . e r r o r R e s p o n s e H a n d l e r ( J ) } ) ) } c o n s t M = ( ) = > $ ( ) , C = ( ) = > _ ( ) , O = J = > t ( 2 , f = J ) ; f u n c t i o n E ( ) { c = t h i s . v a l u e , t ( 3 , c ) } f u n c t i o n P ( ) { h = t h i s . c h e c k e d , t ( 4 , h ) } f u n c t i o n L ( ) { d = t h i s . v a l u e , t ( 8 , d ) } f u n c t i o n F ( ) { p = t h i s . v a l u e , t ( 9 , p ) } c o n s t N = ( ) = > i & & u ? ( p 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 ) , _ ( ) } ) , ! 1 ) : ! 0 ; f u n c t i o n R ( J ) { s e [ J ? " u n s h i f t " : " p u s h " ] ( ( ) = > { o = J , t ( 5 , o ) } ) } f u n c t i o n z ( J ) { d e . c a l l ( t h i s , n , J ) } f u n c t i o n W ( J ) { d e . c a l l ( t h i s , n , J ) } 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 & & c ! = " " | | h | | c ! = = r . e m a i l | | f ! = = r . a v a t a r ) } , [ _ , r , f , c , h , o , a , u , d , p , i , l , T , $ , g , M , C , O , E , P , L , F , N , R , z , W ] } c l a s s u E e x t e n d s v e { c o n s t r u c t o r ( e ) { s u p e r ( ) , b e ( t h i s , e , a E , r E , _ 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 u 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 f E ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " i " ) , i = D ( ) , s = v ( " 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 " , H . 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 : X , d ( l ) { l & & w ( e ) } } } f u n c t i o n c E ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " i " ) , i = D ( ) , s = v ( " 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 " , H . 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 : X , d ( l ) { l & & w ( e ) } } } f u n c t i o n d E ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " i " ) , i = D ( ) , s = v ( " 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 "
` },m(t,i){S(t,e,i)},p:X,d(t){t&&w(e)}}}function ch(n){let e,t,i;return{c(){e=v("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=K(e,"click",n[17]),t=!0)},p:X,d(s){s&&w(e),t=!1,i()}}}function dh(n){let e;return{c(){e=v("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 ph(n,e){let t,i,s,l,o,r,a,u,f,c,d,p=e[24].id+"",h,g,_,y,k,T=e[24].email+"", $ ,M,C,O,E,P,L,F,N,R,z,W,J,x;f=new xo({props:{value:e[24].id}});let ne=e[24].id===e[7].id&&dh();E=new di({props:{date:e[24].created}}),F=new di({props:{date:e[24].updated}});function G(){return e[15](e[24])}function fe(...Z){return e[16](e[24],...Z)}return{key:n,first:null,c(){t=v("tr"),i=v("td"),s=v("figure"),l=v("img"),r=D(),a=v("td"),u=v("div"),V(f. $ $ .fragment),c=D(),d=v("span"),h=B(p),g=D(),ne&&ne.c(),_=D(),y=v("td"),k=v("span"), $ =B(T),C=D(),O=v("td"),V(E. $ $ .fragment),P=D(),L=v("td"),V(F. $ $ .fragment),N=D(),R=v("td"),R.innerHTML='<i class="ri-arrow-right-line"></i>',z=D(),Un(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(d,"class","txt"),m(u,"class","label"),m(a,"class","col-type-text col-field-id"),m(k,"class","txt txt-ellipsis"),m(k,"title",M=e[24].email),m(y,"class","col-type-email col-field-email"),m(O,"class","col-type-date col-field-created"),m(L,"class","col-type-date col-field-updated"),m(R,"class","col-type-action min-width"),m(t,"tabindex","0"),m(t,"class","row-handle"),this.first=t},m(Z,ce){S(Z,t,ce),b(t,i),b(i,s),b(s,l),b(t,r),b(t,a),b(a,u),q(f,u,null),b(u,c),b(u,d),b(d,h),b(a,g),ne&&ne.m(a,null),b(t,_),b(t,y),b(y,k),b(k, $ ),b(t,C),b(t,O),q(E,O,null),b(t,P),b(t,L),q(F,L,null),b(t,N),b(t,R),b(t,z),W=!0,J||(x=[K(t,"click",G),K(t,"keydown",fe)],J=!0)},p(Z,ce){e=Z,(!W||ce&16&&!Un(l.src,o="./images/avatars/avatar"+(e[24].avatar||0)+".svg"))&&m(l,"src",o);const he={};ce&16&&(he.value=e[24].id),f. $ set(he),(!W||ce&16)&&p!==(p=e[24].id+"")&&le(h,p),e[24].id===e[7].id?ne||(ne=dh(),ne.c(),ne.m(a,null)):ne&&(ne.d(1),ne=null),(!W||ce&16)&&T!==(T=e[24].email+"")&&le( $ ,T),(!W||ce&16&&M!==(M=e[24].email))&&m(k,"title",M);const Ce={};ce&16&&(Ce.date=e[24].created),E. $ set(Ce);const Re={};ce&16&&(Re.date=e[24].updated),F. $ set(Re)},i(Z){W||(A(f. $ $ .fragment,Z),A(E. $ $ .fragment,Z),A(F. $ $ .fragment,Z),W=!0)},o(Z){I(f. $ $ .fragment,Z),I(E. $ $ .fragment,Z),I(F. $ $ .fragment,Z),W=!1},d(Z){Z&&w(t),j(f),ne&&ne.d(),j(E),j(F),J=!1,Ae(x)}}}function _E(n){let e,t,i,s,l,o,r,a,u,f,c,d,p,h,g,_,y,k,T, $ ,M=[],C=new Map,O;function E(G){n[11](G)}let P={class:"col-type-text",name:"id", $ $ slots:{default:[fE]}, $ $ scope:{ctx:n}};n[2]!==void 0&&(P.sort=n[2]),o=new Jt({props:P}),se.push(()=>ge(o,"sort",E));function L(G){n[12](G)}let F={class:"col-type-email col-field-email",name:"email", $ $ slots:{default:[cE]}, $ $ scope:{ctx:n}};n[2]!==void 0&&(F.sort=n[2]),u=new Jt({props:F}),se.push(()=>ge(u,"sort",L));function N(G){n[13](G)}let R={class:"col-type-date col-field-created",name:"created", $ $ slots:{default:[dE]}, $ $ scope:{ctx:n}};n[2]!==void 0&&(R.sort=n[2]),d=new Jt({props:R}),se.push(()=>ge(d,"sort",N));function z(G){n[14](G)}let W={class:"col-type-date col-field-updated",name:"updated", $ $ slots:{default:[pE]}, $ $ scope:{ctx:n}};n[2]!==void 0&&(W.sort=n[2]),g=new Jt({props:W}),se.push(()=>ge(g,"sort",z));let J=n[4];const x=G=>G[24].id;for(let G=0;G<J.length;G+=1){let fe=uh(n,J,G),Z=x(fe);C.set(Z,M[G]=ph(Z,fe))}let ne=null;return J.length||(ne=fh(n)),{c(){e=v("table"),t=v("thead"),i=v("tr"),s=v("th"),l=D(),V(o. $ $ .fragment),a=D(),V(u. $ $ .fragment),c=D(),V(d. $ $ .fragment),h=D(),V(g. $ $ .fragment),y=D(),k=v("th"),T=D(), $ =v("tbody");for(let G=0;G<M.length;G+=1)M[G].c();ne&&ne.c(),m(s,"class","min-width"),m(k,"class","col-type-action min-width"),m(e,"class","table"),Q(e,"table-loading",n[5])},m(G,fe){S(G,e,fe),b(e,t),b(t,i),b(i,s),b(i,l),q(o,i,null),b(i,a),q(u,i,null),b(i,c),q(d,i,null),b(i,h),q(g,i,null),b(i,y),b(i,k),b(e,T),b(e, $ );f
2023-03-17 01:21:16 +08:00
< span class = "txt" > New admin < / s p a n > ` , p = D ( ) , V ( h . $ $ . f r a g m e n t ) , g = D ( ) , _ = v ( " d i v " ) , y = D ( ) , V ( k . $ $ . f r a g m e n t ) , T = D ( ) , E & & E . c ( ) , $ = w 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 ( 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 ( e , " c l a s s " , " p a g e - h e a d e r " ) , m ( _ , " c l a s s " , " c l e a r f i x m - b - b a s e " ) } , m ( P , L ) { S ( P , e , L ) , b ( e , t ) , b ( t , i ) , b ( t , s ) , b ( t , l ) , b ( l , o ) , b ( e , r ) , q ( a , e , n u l l ) , b ( e , u ) , b ( e , f ) , b ( e , c ) , b ( e , d ) , S ( P , p , L ) , q ( h , P , L ) , S ( P , g , L ) , S ( P , _ , L ) , S ( P , y , L ) , q ( k , P , L ) , S ( P , T , L ) , E & & E . m ( P , L ) , S ( P , $ , L ) , M = ! 0 , C | | ( O = K ( d , " c l i c k " , n [ 9 ] ) , C = ! 0 ) } , p ( P , L ) { ( ! M | | L & 6 4 ) & & l e ( o , P [ 6 ] ) ; c o n s t F = { } ; L & 2 & & ( F . v a l u e = P [ 1 ] ) , h . $ s e t ( F ) ; c o n s t N = { } ; L & 1 3 4 2 1 7 9 1 8 & & ( N . $ $ s c o p e = { d i r t y : L , c t x : P } ) , k . $ s e t ( N ) , P [ 4 ] . l e n g t h ? E ? E . p ( P , L ) : ( E = m h ( P ) , E . c ( ) , E . m ( $ . p a r e n t N o d e , $ ) ) : E & & ( E . d ( 1 ) , E = n u l l ) } , i ( P ) { M | | ( A ( a . $ $ . f r a g m e n t , P ) , A ( h . $ $ . f r a g m e n t , P ) , A ( k . $ $ . f r a g m e n t , P ) , M = ! 0 ) } , o ( P ) { I ( a . $ $ . f r a g m e n t , P ) , I ( h . $ $ . f r a g m e n t , P ) , I ( k . $ $ . f r a g m e n t , P ) , M = ! 1 } , d ( P ) { P & & w ( e ) , j ( a ) , P & & w ( p ) , j ( h , P ) , P & & w ( g ) , P & & w ( _ ) , P & & w ( y ) , j ( k , P ) , P & & w ( T ) , E & & E . d ( P ) , P & & w ( $ ) , C = ! 1 , O ( ) } } } f u n c t i o n b E ( n ) { l e t e , t , i , s , l , o ; e = n e w N i ( { } ) , i = n e w C n ( { p r o p s : { $ $ s l o t s : { d e f a u l t : [ g E ] } , $ $ s c o p e : { c t x : n } } } ) ; l e t r = { } ; r e t u r n l = n e w u E ( { 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 ( ) { V ( e . $ $ . f r a g m e n t ) , t = D ( ) , V ( i . $ $ . f r a g m e n t ) , s = D ( ) , V ( l . $ $ . f r a g m e n t ) } , m ( a , u ) { q ( e , a , u ) , S ( a , t , u ) , q ( i , a , u ) , S ( a , s , u ) , q ( 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 c = { } ; l . $ s e t ( c ) } , i ( a ) { o | | ( A ( e . $ $ . f r a g m e n t , a ) , A ( i . $ $ . f r a g m e n t , a ) , A ( l . $ $ . f r a g m e n t , a ) , o = ! 0 ) } , o ( a ) { 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 = ! 1 } , d ( a ) { j ( e , a ) , a & & w ( t ) , j ( i , a ) , a & & w ( s ) , n [ 1 8 ] ( n u l l ) , j ( l , a ) } } } f u n c t i o n v E ( n , e , t ) { l e t i , s , l ; W e ( n , g a , F = > t ( 2 1 , i = F ) ) , W e ( n , O t , F = > t ( 6 , s = F ) ) , W e ( n , E a , F = > t ( 7 , l = F ) ) , G t ( O 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 " ) | | " " , c = o . g e t ( " s o r t " ) | | " - c r e a t e d " ; f u n c t i o n d ( ) { r e t u r n t ( 5 , u = ! 0 ) , t ( 4 , a = [ ] ) , m 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 : c | | " - c r e a t e d " , f i l t e r : f } ) . t h e n ( F = > { t ( 4 , a = F ) , t ( 5 , u = ! 1 ) } ) . c a t c h ( F = > { F ! = n u l l & & F . i s A b o r t | | ( t ( 5 , u = ! 1 ) , c o n s o l e . w a r n ( F ) , p ( ) , m e . e r r o r R e s p o n s e H a n d l e r ( F , ! 1 ) ) } ) } f u n c t i o n p ( ) { t ( 4 , a = [ ] ) } c o n s t h = ( ) = > d ( ) , g = ( ) = > r = = n u l l ? v o i d 0 : r . s h o w ( ) , _ = F = > t ( 1 , f = F . d e t a i l ) ; f u n c t i o n y ( F ) { c = F , t ( 2 , c ) } f u n c t i o n k ( F ) { c = F , t ( 2 , c ) } f u n c t i o n T ( F ) { c = F , t ( 2 , c ) } f u n c t i o n $ ( F ) { c = F , t ( 2 , c ) } c o n s t M = F = > r = = n u l l ? v o i d 0 : r . s h o w ( F ) , C = ( F , N ) = > { ( N . c o d e = = = " E n t e r " | | N . c o d e = = = " S p a c e " ) & & ( N . 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 ) ) } , O = ( ) = > t ( 1 , f = " " ) ; f u n c t i o n E ( F ) { s e [ F ? " u n s h i f t " : " p u s h " ] ( ( ) = > { r = F , t ( 3 , r ) } ) } c o n s t P = ( ) = > d ( ) , L = ( ) = > d ( ) ; r e t u r n n . $ $ . u p d a t e = ( ) = > { i f ( n . $ $ . d i r t y & 6 & & c ! = = - 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 : c } ) . t o S t r i n g ( ) ; E i ( " / s e t t i n g s / a d m i n s ? " + F ) , d ( ) } } , [ d , f , c , r , a , u , s , l , h , g , _ , y , k , T , $ , M , C , O , E , P , L ] } c l a s s y E e x t e n d s v e { c o n s t r u c t o r ( e ) { s u p e r ( ) , b e ( t h i s , e , v E , b E , _ 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 k E ( n ) { l e t e , t , i , s , l , o , r , a ; r e t u r n { c ( ) { e = v ( " l a b e l " ) , t = B ( " E m a i l " ) , s = D ( ) , l = v ( " 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 ) , u e ( l , n [ 0 ] ) , l . f o c u s ( ) , r | | ( a = K ( 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 ] & & u 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 w E ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c ; r e t u r n { c ( ) { e = v ( " l a b e l " ) , t = B ( " P a s s w o r d " ) , s = D ( ) , l = v ( " i n p u t " ) , r = D ( ) , a = v ( " d i v " ) , u = v ( " 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 ( d , p ) { S ( d , e , p ) , b ( e , t ) , S ( d , s , p ) , S ( d , l , p ) , u e ( l , n [ 1 ] ) , S ( d , r , p ) , S ( d , a , p ) , b ( a , u ) , f | | ( c = [ K ( l , " i n p u t " , n [ 5 ] ) , D e ( n n . c a l l ( n u l l , u ) ) ] , f = ! 0 ) } , p ( d , p ) { p & 2 5 6 & & i ! = = ( i = d [ 8 ] ) & & m ( e , " f o r " , i ) , p & 2 5 6 & & o ! = = ( o = d [ 8 ] ) & & m ( l , " i d " , o ) , p & 2 & & l . v a l u e ! = = d [ 1 ] & & u e ( l , d [ 1 ] ) } , d ( d ) { d & & w ( e ) , d & & w ( s ) , d & & w ( l ) , d & & w ( r ) , d & & w ( a ) , f = ! 1 , A e ( c ) } } } f u n c t i o n S E ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c ; 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 : [ k E , ( { u n i q u e I d : d } ) = > ( { 8 : d } ) , ( { u n i q u e I d : d } ) = > d ? 2 5 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 r e q u i r e d " , n a m e : " p a s s w o r d " , $ $ s l o t s :
< 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"),Q(a,"btn-disabled",n[2]),Q(a,"btn-loading",n[2]),m(e,"class","block")},m(d,p){S(d,e,p),b(e,t),b(e,i),q(s,e,null),b(e,l),q(o,e,null),b(e,r),b(e,a),u=!0,f||(c=K(e,"submit",ft(n[3])),f=!0)},p(d,p){const h={};p&769&&(h.$$scope={dirty:p,ctx:d}),s.$set(h);const g={};p&770&&(g.$$scope={dirty:p,ctx:d}),o.$set(g),(!u||p&4)&&Q(a,"btn-disabled",d[2]),(!u||p&4)&&Q(a,"btn-loading",d[2])},i(d){u||(A(s.$$.fragment,d),A(o.$$.fragment,d),u=!0)},o(d){I(s.$$.fragment,d),I(o.$$.fragment,d),u=!1},d(d){d&&w(e),j(s),j(o),f=!1,c()}}}function TE(n){let e,t;return e=new zg({props:{$$slots:{default:[SE]},$$scope:{ctx:n}}}),{c(){V(e.$$.fragment)},m(i,s){q(e,i,s),t=!0},p(i,[s]){const l={};s&519&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){j(e,i)}}}function $E(n,e,t){let i;We(n,ga,c=>t(6,i=c));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),me.admins.authWithPassword(l,o).then(()=>{Oa(),Ei("/ ")}).catch(()=>{pl(" 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 CE extends ve{constructor(e){super(),be(this,e,$E,TE,_e,{})}}function ME(n){let e,t,i,s,l,o,r,a,u,f,c,d,p,h,g,_,y,k,T,$,M;i=new pe({props:{class:" form - field required ",name:" meta . appName ",$$slots:{default:[DE,({uniqueId:O})=>({19:O}),({uniqueId:O})=>O?524288:0]},$$scope:{ctx:n}}}),o=new pe({props:{class:" form - field required ",name:" meta . appUrl ",$$slots:{default:[EE,({uniqueId:O})=>({19:O}),({uniqueId:O})=>O?524288:0]},$$scope:{ctx:n}}}),a=new pe({props:{class:" form - field required ",name:" logs . maxDays ",$$slots:{default:[AE,({uniqueId:O})=>({19:O}),({uniqueId:O})=>O?524288:0]},$$scope:{ctx:n}}}),f=new pe({props:{class:" form - field form - field - toggle ",name:" meta . hideControls ",$$slots:{default:[IE,({uniqueId:O})=>({19:O}),({uniqueId:O})=>O?524288:0]},$$scope:{ctx:n}}});let C=n[3]&&hh(n);return{c(){e=v(" div "),t=v(" div "),V(i.$$.fragment),s=D(),l=v(" div "),V(o.$$.fragment),r=D(),V(a.$$.fragment),u=D(),V(f.$$.fragment),c=D(),d=v(" div "),p=v(" div "),h=D(),C&&C.c(),g=D(),_=v(" button "),y=v(" span "),y.textContent=" Save changes ",m(t," class "," col - lg - 6 "),m(l," class "," col - lg - 6 "),m(p," class "," flex - fill "),m(y," class "," txt "),m(_," type "," submit "),m(_," class "," btn btn - expanded "),_.disabled=k=!n[3]||n[2],Q(_," btn - loading ",n[2]),m(d," class "," col - lg - 12 flex "),m(e," class "," grid ")},m(O,E){S(O,e,E),b(e,t),q(i,t,null),b(e,s),b(e,l),q(o,l,null),b(e,r),q(a,e,null),b(e,u),q(f,e,null),b(e,c),b(e,d),b(d,p),b(d,h),C&&C.m(d,null),b(d,g),b(d,_),b(_,y),T=!0,$||(M=K(_," click ",n[13]),$=!0)},p(O,E){const P={};E&1572865&&(P.$$scope={dirty:E,ctx:O}),i.$set(P);const L={};E&1572865&&(L.$$scope={dirty:E,ctx:O}),o.$set(L);const F={};E&1572865&&(F.$$scope={dirty:E,ctx:O}),a.$set(F);const N={};E&1572865&&(N.$$scope={dirty:E,ctx:O}),f.$set(N),O[3]?C?C.p(O,E):(C=hh(O),C.c(),C.m(d,g)):C&&(C.d(1),C=null),(!T||E&12&&k!==(k=!O[3]||O[2]))&&(_.disabled=k),(!T||E&4)&&Q(_," btn - loading ",O[2])},i(O){T||(A(i.$$.fragment,O),A(o.$$.fragment,O),A(a.$$.fragment,O),A(f.$$.fragment,O),T=!0)},o(O){I(i.$$.fragment,O),I(o.$$.fragment,O),I(a.$$.fragment,O),I(f.$$.fragment,O),T=!1},d(O){O&&w(e),j(i),j(o),j(a),j(f),C&&C.d(),$=!1,M()}}}function OE(n){let e;return{c(){e=v(" div "),m(e," class "," loader ")},m(t,i){S(t,e,i)},p:X,i:X,o:X,d(t){t&&w(e)}}}function DE(n){let e,t,i,s,l,o,r,a;return{c(){e=v(" label "),t=B(" Application name "),s=D(),l=v(" 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),ue(l,n[0].meta.appName),r||(a=K(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&&ue(l,u[0].meta.appName)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function EE(n){let e,t,i,s,l,o,r,a;return{c(){e=v(" label "),t=B(" Application url "),s=D(),l=v(" inpu
< div class = "breadcrumb-item" > Application < / d i v > < / n a v > ` , t = D ( ) , i = v ( " d i v " ) , s = v ( " 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 ( p , h ) { S ( p , e , h ) , S ( p , t , h ) , S ( p , i , h ) , b ( i , s ) , c [ l ] . m ( s , n u l l ) , r = ! 0 , a | | ( u = K ( s , " s u b m i t " , f t ( n [ 4 ] ) ) , a = ! 0 ) } , p ( p , h ) { l e t g = l ; l = d ( p ) , l = = = g ? c [ l ] . p ( p , h ) : ( r e ( ) , I ( c [ g ] , 1 , 1 , ( ) = > { c [ g ] = n u l l } ) , a e ( ) , o = c [ l ] , o ? o . p ( p , h ) : ( o = c [ l ] = f [ l ] ( p ) , o . c ( ) ) , A ( o , 1 ) , o . m ( s , n u l l ) ) } , i ( p ) { r | | ( A ( o ) , r = ! 0 ) } , o ( p ) { I ( o ) , r = ! 1 } , d ( p ) { p & & w ( e ) , p & & w ( t ) , p & & w ( i ) , c [ l ] . d ( ) , a = ! 1 , u ( ) } } } f u n c t i o n L E ( n ) { l e t e , t , i , s ; r e t u r n e = n e w N i ( { } ) , i = n e w C n ( { p r o p s : { $ $ s l o t s : { d e f a u l t : [ P E ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { V ( e . $ $ . f r a g m e n t ) , t = D ( ) , V ( i . $ $ . f r a g m e n t ) } , m ( l , o ) { q ( e , l , o ) , S ( l , t , o ) , q ( 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 | | ( A ( e . $ $ . f r a g m e n t , l ) , A ( i . $ $ . f r a g m e n t , l ) , s = ! 0 ) } , o ( l ) { I ( e . $ $ . f r a g m e n t , l ) , I ( i . $ $ . f r a g m e n t , l ) , s = ! 1 } , d ( l ) { j ( e , l ) , l & & w ( t ) , j ( i , l ) } } } f u n c t i o n N E ( n , e , t ) { l e t i , s , l , o ; W e ( n , C s , C = > t ( 1 4 , s = C ) ) , W e ( n , k o , C = > t ( 1 5 , l = C ) ) , W e ( n , O t , C = > t ( 1 6 , o = C ) ) , G t ( O 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 , c = " " ; d ( ) ; a s y n c f u n c t i o n d ( ) { t ( 1 , u = ! 0 ) ; t r y { c o n s t C = a w a i t m e . s e t t i n g s . g e t A l l ( ) | | { } ; h ( C ) } c a t c h ( C ) { m e . e r r o r R e s p o n s e H a n d l e r ( C ) } t ( 1 , u = ! 1 ) } a s y n c f u n c t i o n p ( ) { i f ( ! ( f | | ! i ) ) { t ( 2 , f = ! 0 ) ; t r y { c o n s t C = a w a i t m e . s e t t i n g s . u p d a t e ( H . f i l t e r R e d a c t e d P r o p s ( a ) ) ; h ( C ) , U 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 ( C ) { m e . e r r o r R e s p o n s e H a n d l e r ( C ) } t ( 2 , f = ! 1 ) } } f u n c t i o n h ( C = { } ) { v a r O , E ; G t ( k o , l = ( O = C = = n u l l ? v o i d 0 : C . m e t a ) = = n u l l ? v o i d 0 : O . a p p N a m e , l ) , G t ( C s , s = ! ! ( ( E = C = = n u l l ? v o i d 0 : C . m e t a ) ! = n u l l & & E . h i d e C o n t r o l s ) , s ) , t ( 0 , a = { m e t a : ( C = = n u l l ? v o i d 0 : C . m e t a ) | | { } , l o g s : ( C = = n u l l ? v o i d 0 : C . 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 g ( ) { 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 _ ( ) { 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 y ( ) { 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 k ( ) { a . l o g s . m a x D a y s = h t ( t h i s . v a l u e ) , t ( 0 , a ) } f u n c t i o n T ( ) { 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 $ = ( ) = > g ( ) , M = ( ) = > p ( ) ; r e t u r n n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 6 4 & & t ( 7 , c = 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 = c ! = J S O N . s t r i n g i f y ( a ) ) } , [ a , u , f , i , p , g , r , c , _ , y , k , T , $ , M ] } c l a s s F E e x t e n d s v e { c o n s t r u c t o r ( e ) { s u p e r ( ) , b e ( t h i s , e , N E , L E , _ e , { } ) } } f u n c t i o n R E ( 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 = L e ( l , s [ o ] ) ; r e t u r n { c ( ) { e = v ( " i n p u t " ) , x n ( 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 ) , u e ( e , n [ 0 ] ) , t | | ( i = K ( e , " i n p u t " , n [ 8 ] ) , t = ! 0 ) } , p ( o , r ) { x n ( e , l = b 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 ] & & u 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 q E ( 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 = L e ( a , r [ u ] ) ; r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " 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 = v ( " 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 " ) , x n ( 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 = [ D e ( z 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 " } ) ) , K ( t , " c l i c k " , n [ 6 ] ) ] , l = ! 0 ) } , p ( u , f ) { x n ( s , a = b 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 , A e ( o ) } } } f u n c t i o n j E ( n ) { l e t e ; f u n c t i o n t ( l , o ) { r e t u r n l [ 3 ] ? q E : R E } l e t i = t ( n ) , s = i ( n ) ; r e t u r n { c ( ) { s . c ( ) , e = w 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 : X , o : X , d ( l ) { s . d ( l ) , l & & w ( e ) } } } f u n c t i o n V E ( n , e , t ) { c o n s t i = [ " v a l u e " , " m a s k " ] ; l e t s = J e ( 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 r 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 c ( p ) { s e [ p ? " u n s h i f t " : " p u s h " ] ( ( ) = > { r = p , t ( 2 , r ) } ) } f u n c t i o n d ( ) { l = t h i s . v a l u e , t ( 0 , l ) } r e t u r n n . $ $ s e t = p = > { e = L e ( L e ( { } , e ) , j t ( p ) ) , t ( 5 , s = J e ( e , i ) ) , " v a l u e " i n p & & t ( 0 , l = p . v a l u e ) , " m a s k " i n p & & t ( 1 , o = p . 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 , c , d ] } c l a s s o u e x t e n d s v e { c o n s t r u c t o r ( e ) { s u p e r ( ) , b e ( t h i s , e , V E , j E , _ e , { v a l u e : 0 , m a s k : 1 } ) } } f u n c t i o n H E ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d , p , h , g ; r e t u r n { c ( ) { e = v ( " l a b e l " ) , t = B ( " S u b j e c t " ) , s = D ( ) , l = v ( " i n p u t " ) , r = D ( ) , a = v ( " d i v " ) , u = B ( ` 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
` ),f=v("button"),f.textContent= ` { APP _NAME }
` ,c=B( ` ,
` ),d=v("button"),d.textContent= ` { APP _URL }
` ,p=B("."),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(d,"type","button"),m(d,"class","label label-sm link-primary txt-mono"),m(a,"class","help-block")},m(_,y){S(_,e,y),b(e,t),S(_,s,y),S(_,l,y),ue(l,n[0].subject),S(_,r,y),S(_,a,y),b(a,u),b(a,f),b(a,c),b(a,d),b(a,p),h||(g=[K(l,"input",n[13]),K(f,"click",n[14]),K(d,"click",n[15])],h=!0)},p(_,y){y[1]&1&&i!==(i=_[31])&&m(e,"for",i),y[1]&1&&o!==(o=_[31])&&m(l,"id",o),y[0]&1&&l.value!==_[0].subject&&ue(l,_[0].subject)},d(_){_&&w(e),_&&w(s),_&&w(l),_&&w(r),_&&w(a),h=!1,Ae(g)}}}function zE(n){let e,t,i,s,l,o,r,a,u,f,c,d,p,h,g,_,y;return{c(){e=v("label"),t=B("Action URL"),s=D(),l=v("input"),r=D(),a=v("div"),u=B( ` Available placeholder parameters :
` ),f=v("button"),f.textContent= ` { APP _NAME }
` ,c=B( ` ,
` ),d=v("button"),d.textContent= ` { APP _URL }
` ,p=B( ` ,
` ),h=v("button"),h.textContent= ` { TOKEN }
2023-03-19 14:17:36 +08:00
` ,g=B("."),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(d,"type","button"),m(d,"class","label label-sm link-primary txt-mono"),m(h,"type","button"),m(h,"class","label label-sm link-primary txt-mono"),m(h,"title","Required parameter"),m(a,"class","help-block")},m(k,T){S(k,e,T),b(e,t),S(k,s,T),S(k,l,T),ue(l,n[0].actionUrl),S(k,r,T),S(k,a,T),b(a,u),b(a,f),b(a,c),b(a,d),b(a,p),b(a,h),b(a,g),_||(y=[K(l,"input",n[16]),K(f,"click",n[17]),K(d,"click",n[18]),K(h,"click",n[19])],_=!0)},p(k,T){T[1]&1&&i!==(i=k[31])&&m(e,"for",i),T[1]&1&&o!==(o=k[31])&&m(l,"id",o),T[0]&1&&l.value!==k[0].actionUrl&&ue(l,k[0].actionUrl)},d(k){k&&w(e),k&&w(s),k&&w(l),k&&w(r),k&&w(a),_=!1,Ae(y)}}}function BE(n){let e,t,i,s;return{c(){e=v("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),ue(e,n[0].body),i||(s=K(e,"input",n[21]),i=!0)},p(l,o){o[1]&1&&t!==(t=l[31])&&m(e,"id",t),o[0]&1&&ue(e,l[0].body)},i:X,o:X,d(l){l&&w(e),i=!1,s()}}}function UE(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=Ct(o,r(n)),se.push(()=>ge(e,"value",l))),{c(){e&&V(e. $ $ .fragment),i=we()},m(a,u){e&&q(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,ke(()=>t=!1)),u[0]&16&&o!==(o=a[4])){if(e){re();const c=e;I(c. $ $ .fragment,1,0,()=>{j(c,1)}),ae()}o?(e=Ct(o,r(a)),se.push(()=>ge(e,"value",l)),V(e. $ $ .fragment),A(e. $ $ .fragment,1),q(e,i.parentNode,i)):e=null}else o&&e. $ set(f)},i(a){s||(e&&A(e. $ $ .fragment,a),s=!0)},o(a){e&&I(e. $ $ .fragment,a),s=!1},d(a){a&&w(i),e&&j(e,a)}}}function WE(n){let e,t,i,s,l,o,r,a,u,f,c,d,p,h,g,_,y,k,T, $ ;const M=[UE,BE],C=[];function O(E,P){return E[4]&&!E[5]?0:1}return l=O(n),o=C[l]=M[l](n),{c(){e=v("label"),t=B("Body (HTML)"),s=D(),o.c(),r=D(),a=v("div"),u=B( ` Available placeholder parameters :
2023-03-17 01:21:16 +08:00
` ),f=v("button"),f.textContent= ` { APP _NAME }
` ,c=B( ` ,
` ),d=v("button"),d.textContent= ` { APP _URL }
` ,p=B( ` ,
` ),h=v("button"),h.textContent= ` { TOKEN }
` ,g=B( ` ,
` ),_=v("button"),_.textContent= ` { ACTION _URL }
2023-03-19 14:17:36 +08:00
` ,y=B("."),m(e,"for",i=n[31]),m(f,"type","button"),m(f,"class","label label-sm link-primary txt-mono"),m(d,"type","button"),m(d,"class","label label-sm link-primary txt-mono"),m(h,"type","button"),m(h,"class","label label-sm link-primary txt-mono"),m(_,"type","button"),m(_,"class","label label-sm link-primary txt-mono"),m(_,"title","Required parameter"),m(a,"class","help-block")},m(E,P){S(E,e,P),b(e,t),S(E,s,P),C[l].m(E,P),S(E,r,P),S(E,a,P),b(a,u),b(a,f),b(a,c),b(a,d),b(a,p),b(a,h),b(a,g),b(a,_),b(a,y),k=!0,T||( $ =[K(f,"click",n[22]),K(d,"click",n[23]),K(h,"click",n[24]),K(_,"click",n[25])],T=!0)},p(E,P){(!k||P[1]&1&&i!==(i=E[31]))&&m(e,"for",i);let L=l;l=O(E),l===L?C[l].p(E,P):(re(),I(C[L],1,1,()=>{C[L]=null}),ae(),o=C[l],o?o.p(E,P):(o=C[l]=M[l](E),o.c()),A(o,1),o.m(r.parentNode,r))},i(E){k||(A(o),k=!0)},o(E){I(o),k=!1},d(E){E&&w(e),E&&w(s),C[l].d(E),E&&w(r),E&&w(a),T=!1,Ae( $ )}}}function YE(n){let e,t,i,s,l,o;return e=new pe({props:{class:"form-field required",name:n[1]+".subject", $ $ slots:{default:[HE,({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:[zE,({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:[WE,({uniqueId:r})=>({31:r}),({uniqueId:r})=>[0,r?1:0]]}, $ $ scope:{ctx:n}}}),{c(){V(e. $ $ .fragment),t=D(),V(i. $ $ .fragment),s=D(),V(l. $ $ .fragment)},m(r,a){q(e,r,a),S(r,t,a),q(i,r,a),S(r,s,a),q(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 c={};a[0]&2&&(c.name=r[1]+".body"),a[0]&49|a[1]&3&&(c. $ $ scope={dirty:a,ctx:r}),l. $ set(c)},i(r){o||(A(e. $ $ .fragment,r),A(i. $ $ .fragment,r),A(l. $ $ .fragment,r),o=!0)},o(r){I(e. $ $ .fragment,r),I(i. $ $ .fragment,r),I(l. $ $ .fragment,r),o=!1},d(r){j(e,r),r&&w(t),j(i,r),r&&w(s),j(l,r)}}}function _h(n){let e,t,i,s,l;return{c(){e=v("i"),m(e,"class","ri-error-warning-fill txt-danger")},m(o,r){S(o,e,r),i=!0,s||(l=De(ze.call(null,e,{text:"Has errors",position:"left"})),s=!0)},i(o){i||(o&&Xe(()=>{i&&(t||(t=qe(e,qt,{duration:150,start:.7},!0)),t.run(1))}),i=!0)},o(o){o&&(t||(t=qe(e,qt,{duration:150,start:.7},!1)),t.run(0)),i=!1},d(o){o&&w(e),o&&t&&t.end(),s=!1,l()}}}function KE(n){let e,t,i,s,l,o,r,a,u,f=n[6]&&_h();return{c(){e=v("div"),t=v("i"),i=D(),s=v("span"),l=B(n[2]),o=D(),r=v("div"),a=D(),f&&f.c(),u=we(),m(t,"class","ri-draft-line"),m(s,"class","txt"),m(e,"class","inline-flex"),m(r,"class","flex-fill")},m(c,d){S(c,e,d),b(e,t),b(e,i),b(e,s),b(s,l),S(c,o,d),S(c,r,d),S(c,a,d),f&&f.m(c,d),S(c,u,d)},p(c,d){d[0]&4&&le(l,c[2]),c[6]?f?d[0]&64&&A(f,1):(f=_h(),f.c(),A(f,1),f.m(u.parentNode,u)):f&&(re(),I(f,1,1,()=>{f=null}),ae())},d(c){c&&w(e),c&&w(o),c&&w(r),c&&w(a),f&&f.d(c),c&&w(u)}}}function JE(n){let e,t;const i=[n[8]];let s={ $ $ slots:{header:[KE],default:[YE]}, $ $ scope:{ctx:n}};for(let l=0;l<i.length;l+=1)s=Le(s,i[l]);return e=new al({props:s}),n[26](e),e. $ on("expand",n[27]),e. $ on("collapse",n[28]),e. $ on("toggle",n[29]),{c(){V(e. $ $ .fragment)},m(l,o){q(e,l,o),t=!0},p(l,o){const r=o[0]&256?bt(i,[Vt(l[8])]):{};o[0]&119|o[1]&2&&(r. $ $ scope={dirty:o,ctx:l}),e. $ set(r)},i(l){t||(A(e. $ $ .fragment,l),t=!0)},o(l){I(e. $ $ .fragment,l),t=!1},d(l){n[26](null),j(e,l)}}}let gh;function ZE(n,e,t){let i;const s=["key","title","config","expand","collapse","collapseSiblings"];let l=Je(e,s),o;We(n,ti,G=>t(12,o=G));let{key:r}=e,{title:a}=e,{config:u={}}=e,f,c=gh,d=!1;function p(){f==null||f.expand()}function h(){f==null||f.collapse()}function g(){f==null||f.collapseSiblings()}async function _(){c||d||(t(5,d=!0),t(4,c=(await rt(()=>import("./CodeEditor-3c7b0d74.js"),["./CodeEditor-3c7b0d74.js","./index-20adcf24.js"],import.meta.url)).default),gh=c,t(5,d=!1))}function y(G){H.copyToClipboard(G),Vg( ` Copied $ { G } to clipboard ` ,2e3)}_();function k(){u.subject=this.value,t(0,u)}const T=()=>y("{APP_NAME}"), $ =()=>y("{APP_URL}");function M(){u.action
2023-03-17 01:21:16 +08:00
< 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 = K ( e , " c l i c k " , n [ 2 6 ] ) , t = ! 0 ) } , p : X , d ( s ) { s & & w ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n _ A ( n ) { l e t e , t , i , s , l , o , r , a ; r e t u r n { c ( ) { e = v ( " b u t t o n " ) , t = v ( " 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 = v ( " b u t t o n " ) , l = v ( " 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 ] , Q ( 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 = [ K ( e , " c l i c k " , n [ 2 4 ] ) , K ( 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 & & Q ( 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 , A e ( a ) } } } f u n c t i o n g A ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d , p , h , g , _ ; c o n s t y = [ l A , s A ] , k = [ ] ; f u n c t i o n T ( $ , M ) { r e t u r n $ [ 2 ] ? 0 : 1 } r e t u r n d = T ( n ) , p = k [ d ] = y [ d ] ( n ) , { c ( ) { e = v ( " h e a d e r " ) , t = v ( " n a v " ) , i = v ( " 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 = v ( " d i v " ) , o = B ( n [ 5 ] ) , r = D ( ) , a = v ( " d i v " ) , u = v ( " f o r m " ) , f = v ( " 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 > " , c = D ( ) , p . 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 ( $ , M ) { S ( $ , e , M ) , b ( e , t ) , b ( t , i ) , b ( t , s ) , b ( t , l ) , b ( l , o ) , S ( $ , r , M ) , S ( $ , a , M ) , b ( a , u ) , b ( u , f ) , b ( u , c ) , k [ d ] . m ( u , n u l l ) , h = ! 0 , g | | ( _ = K ( u , " s u b m i t " , f t ( n [ 2 7 ] ) ) , g = ! 0 ) } , p ( $ , M ) { ( ! h | | M [ 0 ] & 3 2 ) & & l e ( o , $ [ 5 ] ) ; l e t C = d ; d = T ( $ ) , d = = = C ? k [ d ] . p ( $ , M ) : ( r e ( ) , I ( k [ C ] , 1 , 1 , ( ) = > { k [ C ] = n u l l } ) , a e ( ) , p = k [ d ] , p ? p . p ( $ , M ) : ( p = k [ d ] = y [ d ] ( $ ) , p . c ( ) ) , A ( p , 1 ) , p . m ( u , n u l l ) ) } , i ( $ ) { h | | ( A ( p ) , h = ! 0 ) } , o ( $ ) { I ( p ) , h = ! 1 } , d ( $ ) { $ & & w ( e ) , $ & & w ( r ) , $ & & w ( a ) , k [ d ] . d ( ) , g = ! 1 , _ ( ) } } } f u n c t i o n b A ( n ) { l e t e , t , i , s , l , o ; e = n e w N i ( { } ) , i = n e w C n ( { p r o p s : { $ $ s l o t s : { d e f a u l t : [ g A ] } , $ $ s c o p e : { c t x : n } } } ) ; l e t r = { } ; r e t u r n l = n e w i A ( { p r o p s : r } ) , n [ 2 8 ] ( l ) , { c ( ) { V ( e . $ $ . f r a g m e n t ) , t = D ( ) , V ( i . $ $ . f r a g m e n t ) , s = D ( ) , V ( l . $ $ . f r a g m e n t ) } , m ( a , u ) { q ( e , a , u ) , S ( a , t , u ) , q ( i , a , u ) , S ( a , s , u ) , q ( 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 c = { } ; l . $ s e t ( c ) } , i ( a ) { o | | ( A ( e . $ $ . f r a g m e n t , a ) , A ( i . $ $ . f r a g m e n t , a ) , A ( l . $ $ . f r a g m e n t , a ) , o = ! 0 ) } , o ( a ) { 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 = ! 1 } , d ( a ) { j ( e , a ) , a & & w ( t ) , j ( i , a ) , a & & w ( s ) , n [ 2 8 ] ( n u l l ) , j ( l , a ) } } } f u n c t i o n v A ( n , e , t ) { l e t i , s , l ; W e ( n , O t , n e = > t ( 5 , l = n e ) ) ; 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 " } ] ; G t ( O t , l = " M a i l s e t t i n g s " , l ) ; l e t a , u = { } , f = { } , c = ! 1 , d = ! 1 ; p ( ) ; a s y n c f u n c t i o n p ( ) { t ( 2 , c = ! 0 ) ; t r y { c o n s t n e = a w a i t m e . s e t t i n g s . g e t A l l ( ) | | { } ; g ( n e ) } c a t c h ( n e ) { m e . e r r o r R e s p o n s e H a n d l e r ( n e ) } t ( 2 , c = ! 1 ) } a s y n c f u n c t i o n h ( ) { i f ( ! ( d | | ! s ) ) { t ( 3 , d = ! 0 ) ; t r y { c o n s t n e = a w a i t m e . s e t t i n g s . u p d a t e ( H . f i l t e r R e d a c t e d P r o p s ( f ) ) ; g ( n e ) , _ n ( { } ) , U 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 ( n e ) { m e . e r r o r R e s p o n s e H a n d l e r ( n e ) } t ( 3 , d = ! 1 ) } } f u n c t i o n g ( n e = { } ) { t ( 0 , f = { m e t a : ( n e = = n u l l ? v o i d 0 : n e . m e t a ) | | { } , s m t p : ( n e = = n u l l ? v o i d 0 : n e . 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 _ ( ) { 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 y ( ) { 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 k ( ) { 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 T ( n e ) { 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 , n e ) & & ( 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 = n e , t ( 0 , f ) ) } f u n c t i o n $ ( n e ) { 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 , n e ) & & ( 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 = n e , t ( 0 , f ) ) } f u n c t i o n M ( n e ) { 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 , n e ) & & ( 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 = n e , t ( 0 , f ) ) } f u n c t i o n C ( ) { 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 O ( ) { 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 E ( ) { f . s m t p . p o r t = h t ( t h i s . v a l u e ) , t ( 0 , f ) } f u n c t i o n P ( n e ) { n . $ $ . n o t _ e q u a l ( f . s m t p . t l s , n e ) & & ( f . s m t p . t l s = n e , t ( 0 , f ) ) } f u n c t i o n L ( n e ) { n . $ $ . n o t _ e q u a l ( f . s m t p . a u t h M e t h o d , n e ) & & ( f . s m t p . a u t h M e t h o d = n e , 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 N ( n e ) { n . $ $ . n o t _ e q u a l ( f . s m t p . p a s s w o r d , n e ) & & ( f . s m t p . p a s s w o r d = n e , t ( 0 , f ) ) } c o n s t R = ( ) = > _ ( ) , z = ( ) = > h ( ) , W = ( ) = > a = = n u l l ? v
the
` ),r=v("strong"),u=B(a),f=B( `
to the
` ),c=v("strong"),p=B(d),h=B( ` .
` ),g=v("br"),_=B( `
There are numerous command line tools that can help you , such as :
` ),y=v("a"),y.textContent= ` rclone
` ,k=B( ` ,
` ),T=v("a"),T.textContent= ` s5cmd
2023-03-19 14:17:36 +08:00
` , $ =B(", etc."),M=D(),C=v("div"),m(i,"class","icon"),m(y,"href","https://github.com/rclone/rclone"),m(y,"target","_blank"),m(y,"rel","noopener noreferrer"),m(y,"class","txt-bold"),m(T,"href","https://github.com/peak/s5cmd"),m(T,"target","_blank"),m(T,"rel","noopener noreferrer"),m(T,"class","txt-bold"),m(l,"class","content"),m(t,"class","alert alert-warning m-0"),m(C,"class","clearfix m-t-base")},m(L,F){S(L,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,c),b(c,p),b(l,h),b(l,g),b(l,_),b(l,y),b(l,k),b(l,T),b(l, $ ),b(e,M),b(e,C),E=!0},p(L,F){var N;(!E||F&1)&&a!==(a=(N=L[0].s3)!=null&&N.enabled?"S3 storage":"local file system")&&le(u,a),(!E||F&2)&&d!==(d=L[1].s3.enabled?"S3 storage":"local file system")&&le(p,d)},i(L){E||(L&&Xe(()=>{E&&(O||(O=qe(e,vt,{duration:150},!0)),O.run(1))}),E=!0)},o(L){L&&(O||(O=qe(e,vt,{duration:150},!1)),O.run(0)),E=!1},d(L){L&&w(e),L&&O&&O.end()}}}function Sh(n){let e,t,i,s,l,o,r,a,u,f,c,d,p,h,g,_,y,k,T, $ ,M,C;return i=new pe({props:{class:"form-field required",name:"s3.endpoint", $ $ slots:{default:[TA,({uniqueId:O})=>({25:O}),({uniqueId:O})=>O?33554432:0]}, $ $ scope:{ctx:n}}}),o=new pe({props:{class:"form-field required",name:"s3.bucket", $ $ slots:{default:[ $ A,({uniqueId:O})=>({25:O}),({uniqueId:O})=>O?33554432:0]}, $ $ scope:{ctx:n}}}),u=new pe({props:{class:"form-field required",name:"s3.region", $ $ slots:{default:[CA,({uniqueId:O})=>({25:O}),({uniqueId:O})=>O?33554432:0]}, $ $ scope:{ctx:n}}}),d=new pe({props:{class:"form-field required",name:"s3.accessKey", $ $ slots:{default:[MA,({uniqueId:O})=>({25:O}),({uniqueId:O})=>O?33554432:0]}, $ $ scope:{ctx:n}}}),g=new pe({props:{class:"form-field required",name:"s3.secret", $ $ slots:{default:[OA,({uniqueId:O})=>({25:O}),({uniqueId:O})=>O?33554432:0]}, $ $ scope:{ctx:n}}}),k=new pe({props:{class:"form-field",name:"s3.forcePathStyle", $ $ slots:{default:[DA,({uniqueId:O})=>({25:O}),({uniqueId:O})=>O?33554432:0]}, $ $ scope:{ctx:n}}}),{c(){e=v("div"),t=v("div"),V(i. $ $ .fragment),s=D(),l=v("div"),V(o. $ $ .fragment),r=D(),a=v("div"),V(u. $ $ .fragment),f=D(),c=v("div"),V(d. $ $ .fragment),p=D(),h=v("div"),V(g. $ $ .fragment),_=D(),y=v("div"),V(k. $ $ .fragment),T=D(), $ =v("div"),m(t,"class","col-lg-6"),m(l,"class","col-lg-3"),m(a,"class","col-lg-3"),m(c,"class","col-lg-6"),m(h,"class","col-lg-6"),m(y,"class","col-lg-12"),m( $ ,"class","col-lg-12"),m(e,"class","grid")},m(O,E){S(O,e,E),b(e,t),q(i,t,null),b(e,s),b(e,l),q(o,l,null),b(e,r),b(e,a),q(u,a,null),b(e,f),b(e,c),q(d,c,null),b(e,p),b(e,h),q(g,h,null),b(e,_),b(e,y),q(k,y,null),b(e,T),b(e, $ ),C=!0},p(O,E){const P={};E&100663298&&(P. $ $ scope={dirty:E,ctx:O}),i. $ set(P);const L={};E&100663298&&(L. $ $ scope={dirty:E,ctx:O}),o. $ set(L);const F={};E&100663298&&(F. $ $ scope={dirty:E,ctx:O}),u. $ set(F);const N={};E&100663298&&(N. $ $ scope={dirty:E,ctx:O}),d. $ set(N);const R={};E&100663298&&(R. $ $ scope={dirty:E,ctx:O}),g. $ set(R);const z={};E&100663298&&(z. $ $ scope={dirty:E,ctx:O}),k. $ set(z)},i(O){C||(A(i. $ $ .fragment,O),A(o. $ $ .fragment,O),A(u. $ $ .fragment,O),A(d. $ $ .fragment,O),A(g. $ $ .fragment,O),A(k. $ $ .fragment,O),O&&Xe(()=>{C&&(M||(M=qe(e,vt,{duration:150},!0)),M.run(1))}),C=!0)},o(O){I(i. $ $ .fragment,O),I(o. $ $ .fragment,O),I(u. $ $ .fragment,O),I(d. $ $ .fragment,O),I(g. $ $ .fragment,O),I(k. $ $ .fragment,O),O&&(M||(M=qe(e,vt,{duration:150},!1)),M.run(0)),C=!1},d(O){O&&w(e),j(i),j(o),j(u),j(d),j(g),j(k),O&&M&&M.end()}}}function TA(n){let e,t,i,s,l,o,r,a;return{c(){e=v("label"),t=B("Endpoint"),s=D(),l=v("input"),m(e,"for",i=n[25]),m(l,"type","text"),m(l,"id",o=n[25]),l.required=!0},m(u,f){S(u,e,f),b(e,t),S(u,s,f),S(u,l,f),ue(l,n[1].s3.endpoint),r||(a=K(l,"input",n[12]),r=!0)},p(u,f){f&33554432&&i!==(i=u[25])&&m(e,"for",i),f&33554432&&o!==(o=u[25])&&m(l,"id",o),f&2&&l.value!==u[1].s3.endpoint&&ue(l,u[1].s3.endpoint)},d(u){u&&w(e),u&&w(s),u&&w(l),r=!1,a()}}}function $ A(n){let e,t,i,s,l,o,r,a;return{c(){e=v("label"),t=B("Bucket"),s=D(),l=v("input"),m(e,"for",i=n[25]),m(l,"type","text"),m(l,"id",o=n[25]),l.required=!0},m(u,f){S(u,e,f),b(e,t),S(u,s,f),S(u,l,f),ue(l,n[1].s3.bucket),r||(a=K(l,"input",n[13]),r=!0)},p(u,f){f&33554432&&i!==(i=u[2
2023-03-17 01:21:16 +08: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:X,d(t){t&&w(e)}}}function AA(n){let e,t,i,s;return{c(){e=v("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 = D e ( t = z 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 & & B 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 I A ( n ) { l e t e ; r e t u r n { c ( ) { e = v ( " 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 : X , d ( t ) { t & & w ( e ) } } } f u n c t i o n $ h ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = v ( " b u t t o n " ) , t = v ( " s p a n " ) , t . t e x t C o n t e n t = " C a n c e l " , 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 = K ( e , " c l i c k " , n [ 1 8 ] ) , 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 P A ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d , p , h , g , _ ; c o n s t y = [ w A , k A ] , k = [ ] ; f u n c t i o n T ( $ , M ) { r e t u r n $ [ 2 ] ? 0 : 1 } r e t u r n d = T ( n ) , p = k [ d ] = y [ d ] ( n ) , { c ( ) { e = v ( " h e a d e r " ) , t = v ( " n a v " ) , i = v ( " 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 = v ( " d i v " ) , o = B ( n [ 7 ] ) , r = D ( ) , a = v ( " d i v " ) , u = v ( " f o r m " ) , f = v ( " 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 >
2023-03-19 14:17:36 +08:00
< p > If you have limited disk space , you could optionally connect to a S3 compatible storage . < / p > ` , c = D ( ) , p . 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 ( $ , M ) { S ( $ , e , M ) , b ( e , t ) , b ( t , i ) , b ( t , s ) , b ( t , l ) , b ( l , o ) , S ( $ , r , M ) , S ( $ , a , M ) , b ( a , u ) , b ( u , f ) , b ( u , c ) , k [ d ] . m ( u , n u l l ) , h = ! 0 , g | | ( _ = K ( u , " s u b m i t " , f t ( n [ 2 0 ] ) ) , g = ! 0 ) } , p ( $ , M ) { ( ! h | | M & 1 2 8 ) & & l e ( o , $ [ 7 ] ) ; l e t C = d ; d = T ( $ ) , d = = = C ? k [ d ] . p ( $ , M ) : ( r e ( ) , I ( k [ C ] , 1 , 1 , ( ) = > { k [ C ] = n u l l } ) , a e ( ) , p = k [ d ] , p ? p . p ( $ , M ) : ( p = k [ d ] = y [ d ] ( $ ) , p . c ( ) ) , A ( p , 1 ) , p . m ( u , n u l l ) ) } , i ( $ ) { h | | ( A ( p ) , h = ! 0 ) } , o ( $ ) { I ( p ) , h = ! 1 } , d ( $ ) { $ & & w ( e ) , $ & & w ( r ) , $ & & w ( a ) , k [ d ] . d ( ) , g = ! 1 , _ ( ) } } } 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 N i ( { } ) , i = n e w C n ( { p r o p s : { $ $ s l o t s : { d e f a u l t : [ P A ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { V ( e . $ $ . f r a g m e n t ) , t = D ( ) , V ( i . $ $ . f r a g m e n t ) } , m ( l , o ) { q ( e , l , o ) , S ( l , t , o ) , q ( i , l , o ) , s = ! 0 } , p ( l , [ o ] ) { c o n s t r = { } ; o & 6 7 1 0 9 1 1 9 & & ( r . $ $ s c o p e = { d i r t y : o , c t x : l } ) , i . $ s e t ( r ) } , i ( l ) { s | | ( A ( e . $ $ . f r a g m e n t , l ) , A ( i . $ $ . f r a g m e n t , l ) , s = ! 0 ) } , o ( l ) { I ( e . $ $ . f r a g m e n t , l ) , I ( i . $ $ . f r a g m e n t , l ) , s = ! 1 } , d ( l ) { j ( e , l ) , l & & w ( t ) , j ( i , l ) } } } c o n s t o o = " 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 ; W e ( n , O t , N = > t ( 7 , l = N ) ) , G t ( O 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 , c = n u l l , 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 N = a w a i t m e . s e t t i n g s . g e t A l l ( ) | | { } ; g ( N ) } c a t c h ( N ) { m e . e r r o r R e s p o n s e H a n d l e r ( N ) } 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 { m e . c a n c e l R e q u e s t ( o o ) ; c o n s t N = a w a i t m e . s e t t i n g s . u p d a t e ( H . f i l t e r R e d a c t e d P r o p s ( r ) ) ; _ n ( { } ) , a w a i t g ( N ) , O a ( ) , c ? Z v ( " 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 . " ) : U 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 ( N ) { m e . e r r o r R e s p o n s e H a n d l e r ( N ) } t ( 3 , u = ! 1 ) } } a s y n c f u n c t i o n g ( N = { } ) { t ( 1 , r = { s 3 : ( N = = n u l l ? v o i d 0 : N . 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 w a i t y ( ) } 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 | | { } ) ) ) , a w a i t y ( ) } a s y n c f u n c t i o n y ( ) { i f ( t ( 5 , c = n u l l ) , ! ! r . s 3 . e n a b l e d ) { m e . c a n c e l R e q u e s t ( o o ) , c l e a r T i m e o u t ( d ) , d = s e t T i m e o u t ( ( ) = > { m e . c a n c e l R e q u e s t ( o o ) , a d d E r r o r T o a s t ( " S 3 t e s t c o n n e c t i o n t i m e o u t . " ) } , 3 e 4 ) , t ( 4 , f = ! 0 ) ; t r y { a w a i t m e . s e t t i n g s . t e s t S 3 ( { $ c a n c e l K e y : o o } ) } c a t c h ( N ) { t ( 5 , c = N ) } t ( 4 , f = ! 1 ) , c l e a r T i m e o u t ( d ) } } Q t ( ( ) = > ( ) = > { c l e a r T i m e o u t ( d ) } ) ; f u n c t i o n k ( ) { r . s 3 . e n a b l e d = t h i s . c h e c k e d , t ( 1 , r ) } f u n c t i o n T ( ) { r . s 3 . e n d p o i n t = t h i s . v a l u e , t ( 1 , r ) } f u n c t i o n $ ( ) { r . s 3 . b u c k e t = t h i s . v a l u e , t ( 1 , r ) } f u n c t i o n M ( ) { r . s 3 . r e g i o n = t h i s . v a l u e , t ( 1 , r ) } f u n c t i o n C ( ) { r . s 3 . a c c e s s K e y = t h i s . v a l u e , t ( 1 , r ) } f u n c t i o n O ( N ) { n . $ $ . n o t _ e q u a l ( r . s 3 . s e c r e t , N ) & & ( r . s 3 . s e c r e t = N , t ( 1 , r ) ) } f u n c t i o n E ( ) { r . s 3 . f o r c e P a t h S t y l e = t h i s . c h e c k e d , t ( 1 , r ) } c o n s t P = ( ) = > _ ( ) , L = ( ) = > h ( ) , F = ( ) = > 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 , c , s , l , h , _ , i , k , T , $ , M , C , O , E , P , L , F ] } c l a s s F A e x t e n d s v e { c o n s t r u c t o r ( e ) { s u p e r ( ) , b e ( t h i s , e , N A , L A , _ 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 = v ( " i n p u t " ) , i = D ( ) , s = v ( " l a b e l " ) , l = B ( " 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 1 ] ) , m ( s , " f o r " , o = n [ 2 1 ] ) } , m ( u , f ) { S ( u , e , f ) , e . c h e c k e d = n [ 0 ] . e n a b l e d , S ( u , i , f ) , S ( u , s , f ) , b ( s , l ) , r | | ( a = K ( e , " c h a n g e " , n [ 1 3 ] ) , r = ! 0 ) } , p ( u , f ) { f & 2 0 9 7 1 5 2 & & t ! = = ( t = u [ 2 1 ] ) & & m ( e , " i d " , t ) , f & 1 & & ( e . c h e c k e d = u [ 0 ] . e n a b l e d ) , f & 2 0 9 7 1 5 2 & & o ! = = ( o = u [ 2 1 ] ) & & 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 = v ( " l a b e l " ) , t = B ( " C l i e n t I D " ) , s = D ( ) , l = v ( " i n p u t " ) , m ( e , " f o r " , i = n [ 2 1 ] ) , m ( l , " t y p e " , " t e x t " ) , m ( l , " i d " , o = n [ 2 1 ] ) , l . r e q u i r e d = r = n [ 0 ] . e n a b l e d } , m ( f , c ) { S ( f , e , c ) , b ( e , t ) , S ( f , s , c ) , S ( f , l , c ) , u e ( l , n [ 0 ] . c l i e n t I d ) , a | | ( u = K ( l , " i n p u t " , n [ 1 4 ] ) , a = ! 0 ) } , p ( f , c ) { c & 2 0 9 7 1 5 2 & & i ! = = ( i = f [ 2 1 ] ) & & m ( e , " f o r " , i ) , c & 2 0 9 7 1 5 2 & & o ! = = ( o = f [ 2 1 ] ) & & m ( l , " i d " , o ) , c & 1 & & r ! = = ( r = f [ 0 ] . e n a b l e d ) & & ( l . r e q u i r e d = r ) , c & 1 & & l . v a l u e ! = = f [ 0 ] . c l i e n t I d & & u e ( l , f [ 0 ] . 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 5 ] ( f ) } l e t u = { i d : n [ 2 1 ] , r e q u i r e d : n [ 0 ] . e n a b l e d } ; r e t u r n n [ 0 ] . c l i e n t S e c r e t ! = = v o i d 0 & & ( u . v a l u e = n [ 0 ] . c l i e n t S e c r e t ) , l = n e w o u ( { p r o p s : u } ) , s e . p u s h ( ( ) = > g e ( l , " v a l u e " , a ) ) , { c ( ) { e = v ( " l a b e l " ) , t = B ( " C l i e n t s e c r e t " ) , s = D ( ) , V ( l . $ $ . f r a g m e n t ) , m ( e , " f o r " , i = n [ 2 1 ] ) } , m ( f , c ) { S ( f , e , c ) , b ( e , t ) , S ( f , s , c ) , q ( l , f , c ) , r = ! 0 } , p ( f , c ) { ( ! r | | c & 2 0 9 7 1 5 2 & & i ! = = ( i = f [ 2 1 ] ) ) & & m ( e , " f o r "
2023-03-17 01:21:16 +08:00
another PocketBase environment . < / p > ` , t = D ( ) , i = v ( " d i v " ) , s = v ( " 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 ( ) , V ( o . $ $ . f r a g m e n t ) , r = D ( ) , a = v ( " d i v " ) , u = v ( " d i v " ) , f = D ( ) , c = v ( " b u t t o n " ) , c . 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 ( c , " t y p e " , " b u t t o n " ) , m ( c , " 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 ( g , _ ) { S ( g , e , _ ) , S ( g , t , _ ) , S ( g , i , _ ) , b ( i , s ) , b ( i , l ) , q ( o , i , n u l l ) , n [ 8 ] ( i ) , S ( g , r , _ ) , S ( g , a , _ ) , b ( a , u ) , b ( a , f ) , b ( a , c ) , d = ! 0 , p | | ( h = [ K ( s , " c l i c k " , n [ 7 ] ) , K ( i , " k e y d o w n " , n [ 9 ] ) , K ( c , " c l i c k " , n [ 1 0 ] ) ] , p = ! 0 ) } , p ( g , _ ) { c o n s t y = { } ; _ & 4 & & ( y . c o n t e n t = g [ 2 ] ) , o . $ s e t ( y ) } , i ( g ) { d | | ( A ( o . $ $ . f r a g m e n t , g ) , d = ! 0 ) } , o ( g ) { I ( o . $ $ . f r a g m e n t , g ) , d = ! 1 } , d ( g ) { g & & w ( e ) , g & & w ( t ) , g & & w ( i ) , j ( o ) , n [ 8 ] ( n u l l ) , g & & w ( r ) , g & & w ( a ) , p = ! 1 , A e ( h ) } } } f u n c t i o n r 6 ( n ) { l e t e ; r e t u r n { c ( ) { e = v ( " d i v " ) , m ( e , " c l a s s " , " l o a d e r " ) } , m ( t , i ) { S ( t , e , i ) } , p : X , i : X , o : X , d ( t ) { t & & w ( e ) } } } f u n c t i o n a 6 ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d ; c o n s t p = [ r 6 , o 6 ] , h = [ ] ; f u n c t i o n g ( _ , y ) { r e t u r n _ [ 1 ] ? 0 : 1 } r e t u r n f = g ( n ) , c = h [ f ] = p [ f ] ( n ) , { c ( ) { e = v ( " h e a d e r " ) , t = v ( " n a v " ) , i = v ( " 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 = v ( " d i v " ) , o = B ( n [ 3 ] ) , r = D ( ) , a = v ( " d i v " ) , u = v ( " d i v " ) , c . 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 ( _ , y ) { S ( _ , e , y ) , b ( e , t ) , b ( t , i ) , b ( t , s ) , b ( t , l ) , b ( l , o ) , S ( _ , r , y ) , S ( _ , a , y ) , b ( a , u ) , h [ f ] . m ( u , n u l l ) , d = ! 0 } , p ( _ , y ) { ( ! d | | y & 8 ) & & l e ( o , _ [ 3 ] ) ; l e t k = f ; f = g ( _ ) , f = = = k ? h [ f ] . p ( _ , y ) : ( r e ( ) , I ( h [ k ] , 1 , 1 , ( ) = > { h [ k ] = n u l l } ) , a e ( ) , c = h [ f ] , c ? c . p ( _ , y ) : ( c = h [ f ] = p [ f ] ( _ ) , c . c ( ) ) , A ( c , 1 ) , c . m ( u , n u l l ) ) } , i ( _ ) { d | | ( A ( c ) , d = ! 0 ) } , o ( _ ) { I ( c ) , d = ! 1 } , d ( _ ) { _ & & w ( e ) , _ & & w ( r ) , _ & & w ( a ) , h [ f ] . d ( ) } } } f u n c t i o n u 6 ( n ) { l e t e , t , i , s ; r e t u r n e = n e w N i ( { } ) , i = n e w C n ( { p r o p s : { $ $ s l o t s : { d e f a u l t : [ a 6 ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { V ( e . $ $ . f r a g m e n t ) , t = D ( ) , V ( i . $ $ . f r a g m e n t ) } , m ( l , o ) { q ( e , l , o ) , S ( l , t , o ) , q ( 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 | | ( A ( e . $ $ . f r a g m e n t , l ) , A ( i . $ $ . f r a g m e n t , l ) , s = ! 0 ) } , o ( l ) { I ( e . $ $ . f r a g m e n t , l ) , I ( i . $ $ . f r a g m e n t , l ) , s = ! 1 } , d ( l ) { j ( e , l ) , l & & w ( t ) , j ( i , l ) } } } f u n c t i o n f 6 ( n , e , t ) { l e t i , s ; W e ( n , O t , _ = > t ( 3 , s = _ ) ) , G t ( O 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 _ " + H . 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 m 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 _ o f r ) d e l e t e _ . c r e a t e d , d e l e t e _ . u p d a t e d } c a t c h ( _ ) { m e . e r r o r R e s p o n s e H a n d l e r ( _ ) } t ( 1 , a = ! 1 ) } f u n c t i o n f ( ) { H . 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 c ( ) { H . c o p y T o C l i p b o a r d ( i ) , V g ( " 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 d = ( ) = > c ( ) ; f u n c t i o n p ( _ ) { s e [ _ ? " u n s h i f t " : " p u s h " ] ( ( ) = > { o = _ , t ( 0 , o ) } ) } c o n s t h = _ = > { i f ( _ . c t r l K e y & & _ . c o d e = = = " K e y A " ) { _ . p r e v e n t D e f a u l t ( ) ; c o n s t y = w i n d o w . g e t S e l e c t i o n ( ) , k = d o c u m e n t . c r e a t e R a n g e ( ) ; k . s e l e c t N o d e C o n t e n t s ( o ) , y . r e m o v e A l l R a n g e s ( ) , y . a d d R a n g e ( k ) } } , g = ( ) = > 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 , c , r , d , p , h , g ] } c l a s s c 6 e x t e n d s v e { c o n s t r u c t o r ( e ) { s u p e r ( ) , b e ( t h i s , e , f 6 , u 6 , _ e , { } ) } } f u n c t i o n R h ( 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 q h ( 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 j h ( 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 V h ( 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 H h ( 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 z h ( 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 B 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 d 6 ( n ) { l e t e , t , i , s , l = n [ 1 ] . n a m e + " " , o , r = n [ 9 ] & & U h ( ) , a = n [ 0 ] . n a m e ! = = n [ 1 ] . n a m e & & W h ( n ) ; r e t u r n { c ( ) { e = v ( " d i v " ) , r & & r . c ( ) , t = D ( ) , a & & a . c ( ) , i = D ( ) , s = v ( " s t r o n g " ) , o = B ( 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 h ( ) , 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 = W h ( 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 + " " ) & & l e ( o , l ) } , d ( u ) { u & & w ( e ) , r & & r . d ( ) , a & & a . d ( ) } } } f u n c t i o n p 6 ( 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 = v ( " 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 = v ( " s t r o n g " ) , l = B ( 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 =
< th width = "10%" class = "svelte-lmkr38" > Old < / t h >
2023-03-19 14:17:36 +08:00
< th width = "10%" class = "svelte-lmkr38" > New < / t h > < / t r > ` , l = D ( ) , o = v ( " t b o d y " ) ; f o r ( l e t $ = 0 ; $ < h . l e n g t h ; $ + = 1 ) h [ $ ] . c ( ) ; r = D ( ) , g & & g . c ( ) , a = D ( ) ; f o r ( l e t $ = 0 ; $ < y . l e n g t h ; $ + = 1 ) y [ $ ] . c ( ) ; u = D ( ) ; f o r ( l e t $ = 0 ; $ < T . l e n g t h ; $ + = 1 ) 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 ( $ , M ) { S ( $ , e , M ) , d . m ( e , n u l l ) , S ( $ , t , M ) , S ( $ , i , M ) , b ( i , s ) , b ( i , l ) , b ( i , o ) ; f o r ( l e t C = 0 ; C < h . l e n g t h ; C + = 1 ) h [ C ] & & h [ C ] . m ( o , n u l l ) ; b ( o , r ) , g & & g . m ( o , n u l l ) , b ( o , a ) ; f o r ( l e t C = 0 ; C < y . l e n g t h ; C + = 1 ) y [ C ] & & y [ C ] . m ( o , n u l l ) ; b ( o , u ) ; f o r ( l e t C = 0 ; C < T . l e n g t h ; C + = 1 ) T [ C ] & & T [ C ] . m ( o , n u l l ) } , p ( $ , M ) { i f ( c = = = ( c = f ( $ ) ) & & d ? d . p ( $ , M ) : ( d . d ( 1 ) , d = c ( $ ) , d & & ( d . c ( ) , d . m ( e , n u l l ) ) ) , M [ 0 ] & 7 2 0 3 ) { p = $ [ 1 1 ] ; l e t C ; f o r ( C = 0 ; C < p . l e n g t h ; C + = 1 ) { c o n s t O = B h ( $ , p , C ) ; h [ C ] ? h [ C ] . p ( O , M ) : ( h [ C ] = Y h ( O ) , h [ C ] . c ( ) , h [ C ] . m ( o , r ) ) } f o r ( ; C < h . l e n g t h ; C + = 1 ) h [ C ] . d ( 1 ) ; h . l e n g t h = p . l e n g t h } i f ( $ [ 2 ] | | $ [ 5 ] ? g ? g . p ( $ , M ) : ( g = K h ( $ ) , g . c ( ) , g . m ( o , a ) ) : g & & ( g . d ( 1 ) , g = n u l l ) , M [ 0 ] & 4 2 4 8 ) { _ = $ [ 7 ] ; l e t C ; f o r ( C = 0 ; C < _ . l e n g t h ; C + = 1 ) { c o n s t O = j h ( $ , _ , C ) ; y [ C ] ? y [ C ] . p ( O , M ) : ( y [ C ] = Q h ( O ) , y [ C ] . c ( ) , y [ C ] . m ( o , u ) ) } f o r ( ; C < y . l e n g t h ; C + = 1 ) y [ C ] . d ( 1 ) ; y . l e n g t h = _ . l e n g t h } i f ( M [ 0 ] & 4 3 5 2 ) { k = $ [ 8 ] ; l e t C ; f o r ( C = 0 ; C < k . l e n g t h ; C + = 1 ) { c o n s t O = R h ( $ , k , C ) ; T [ C ] ? T [ C ] . p ( O , M ) : ( T [ C ] = e _ ( O ) , T [ C ] . c ( ) , T [ C ] . m ( o , n u l l ) ) } f o r ( ; C < T . l e n g t h ; C + = 1 ) T [ C ] . d ( 1 ) ; T . l e n g t h = k . l e n g t h } } , i : X , o : X , d ( $ ) { $ & & w ( e ) , d . d ( ) , $ & & w ( t ) , $ & & w ( i ) , a t ( h , $ ) , g & & g . d ( ) , a t ( y , $ ) , a t ( T , $ ) } } } f u n c t i o n A 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 c 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 _ 6 ( n , e , t ) { l e t i , s , l , { c o l l e c t i o n A : o = n e w h n } = e , { c o l l e c t i o n B : r = n e w h n } = e , { d e l e t e M i s s i n g : a = ! 1 } = e , u = [ ] , f = [ ] , c = [ ] , d = [ ] , p = [ ] ; c o n s t h = O b j e c t . k e y s ( n e w h n ( ) . e x p o r t ( ) ) . f i l t e r ( y = > ! [ " 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 ( y ) ) ; f u n c t i o n g ( ) { 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 ( y = > ! f . f i n d ( k = > y . i d = = k . i d ) ) ) ) } f u n c t i o n _ ( y ) { r e t u r n t y p e o f y > " u " ? " " : H . i s O b j e c t ( y ) ? J S O N . s t r i n g i f y ( y , n u l l , 4 ) : y } r e t u r n n . $ $ s e t = y = > { " c o l l e c t i o n A " i n y & & t ( 0 , o = y . c o l l e c t i o n A ) , " c o l l e c t i o n B " i n y & & t ( 1 , r = y . 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 y & & t ( 2 , a = y . 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 " ) & & g ( ) , n . $ $ . d i r t y [ 0 ] & 2 4 & & t ( 6 , c = u . f i l t e r ( y = > ! f . f i n d ( k = > y . i d = = k . i d ) ) ) , n . $ $ . d i r t y [ 0 ] & 2 4 & & t ( 7 , d = f . f i l t e r ( y = > u . f i n d ( k = > k . i d = = y . i d ) ) ) , n . $ $ . d i r t y [ 0 ] & 2 4 & & t ( 8 , p = f . f i l t e r ( y = > ! u . f i n d ( k = > k . i d = = y . i d ) ) ) , n . $ $ . d i r t y [ 0 ] & 7 & & t ( 9 , l = H . 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 , c , d , p , l , s , h , _ ] } c l a s s g 6 e x t e n d s v e { c o n s t r u c t o r ( e ) { s u p e r ( ) , b e ( t h i s , e , _ 6 , h 6 , _ 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 t _ ( 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 n _ ( n ) { l e t e , t ; r e t u r n e = n e w g 6 ( { 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 ( ) { V ( e . $ $ . f r a g m e n t ) } , m ( i , s ) { q ( 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 | | ( A ( e . $ $ . f r a g m e n t , i ) , t = ! 0 ) } , o ( i ) { I ( e . $ $ . f r a g m e n t , i ) , t = ! 1 } , d ( i ) { j ( e , i ) } } } f u n c t i o n b 6 ( 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 ] = n _ ( t _ ( n , i , o ) ) ; c o n s t l = o = > I ( 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 = w 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 = t _ ( o , i , a ) ; s [ a ] ? ( s [ a ] . p ( u , r ) , A ( s [ a ] , 1 ) ) : ( s [ a ] = n _ ( u ) , s [ a ] . c ( ) , A ( s [ a ] , 1 ) , s [ a ] . m ( e . p a r e n t N o d e , e ) ) } f o r ( r e ( ) , a = i . l e n g t h ; a < s . l e n g t h ; a + = 1 ) l ( a ) ; a e ( ) } } , i ( o ) { i f ( ! t ) { f o r ( l e t r = 0 ; r < i . l e n g t h ; r + = 1 ) A ( 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 ) I ( s [ r ] ) ; t = ! 1 } , d ( o ) { a t ( s , o ) , o & & w ( e ) } } } f u n c t i o n v 6 ( n ) { l e t e ; r e t u r n { c ( ) { e = v ( " 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 : X , d ( t ) { t & & w ( e ) } } } f u n c t i o n y 6 ( n ) { l e t e , t , i , s , l , o , r ; r e t u r n { c ( ) { e = v ( " b u t t o n " ) , t = B ( " C l o s e " ) , i = D ( ) , s = v ( " b u t t o n " ) , l = v ( " 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 n - t r
2023-03-17 01:21:16 +08:00
- $ { $ . join ( `
- ` )} ` , ( ) => { h ( ) } ) : h ( ) } async function h ( ) { if ( ! u ) { t ( 4 , u = ! 0 ) ; try { await me . collections . import ( o , a ) , Ut ( "Successfully imported collections configuration." ) , i ( "submit" ) } catch ( $ ) { me . errorResponseHandler ( $ ) } t ( 4 , u = ! 1 ) , c ( ) } } const g = ( ) => p ( ) , _ = ( ) => ! u ; function y ( $ ) { se [ $ ? "unshift" : "push" ] ( ( ) => { s = $ , t ( 1 , s ) } ) } function k ( $ ) { de . call ( this , n , $ ) } function T ( $ ) { de . call ( this , n , $ ) } return n . $$ . update = ( ) => { n . $$ . dirty & 384 && Array . isArray ( l ) && Array . isArray ( o ) && d ( ) } , [ c , s , r , a , u , p , f , l , o , g , _ , y , k , T ] } class S6 extends ve { constructor ( e ) { super ( ) , be ( this , e , w6 , k6 , _e , { show : 6 , hide : 0 } ) } get show ( ) { return this . $$ . ctx [ 6 ] } get hide ( ) { return this . $$ . ctx [ 0 ] } } function i _ ( 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 l _ ( n , e , t ) { const i = n . slice ( ) ; return i [ 32 ] = e [ t ] , i } function T6 ( n ) { let e , t , i , s , l , o , r , a , u , f , c , d , p , h , g , _ , y , k , T , $ , M , C , O ; a = new pe ( { props : { class : "form-field " + ( n [ 6 ] ? "" : "field-error" ) , name : "collections" , $$slots : { default : [ C6 , ( { uniqueId : R } ) => ( { 40 : R } ) , ( { uniqueId : R } ) => [ 0 , R ? 512 : 0 ] ] } , $$scope : { ctx : n } } } ) ; let E = ! 1 , P = n [ 6 ] && n [ 1 ] . length && ! n [ 7 ] && r _ ( ) , L = n [ 6 ] && n [ 1 ] . length && n [ 7 ] && a _ ( n ) , F = n [ 13 ] . length && v _ ( n ) , N = ! ! n [ 0 ] && y _ ( n ) ; return { c ( ) { e = v ( "input" ) , t = D ( ) , i = v ( "div" ) , s = v ( "p" ) , l = B ( ` Paste below the collections configuration you want to import or
` ),o=v("button"),o.innerHTML='<span class="txt">Load from JSON file</span>',r=D(),V(a. $ $ .fragment),u=D(),f=D(),P&&P.c(),c=D(),L&&L.c(),d=D(),F&&F.c(),p=D(),h=v("div"),N&&N.c(),g=D(),_=v("div"),y=D(),k=v("button"),T=v("span"),T.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"),Q(o,"btn-loading",n[12]),m(i,"class","content txt-xl m-b-base"),m(_,"class","flex-fill"),m(T,"class","txt"),m(k,"type","button"),m(k,"class","btn btn-expanded btn-warning m-l-auto"),k.disabled= $ =!n[14],m(h,"class","flex m-t-base")},m(R,z){S(R,e,z),n[19](e),S(R,t,z),S(R,i,z),b(i,s),b(s,l),b(s,o),S(R,r,z),q(a,R,z),S(R,u,z),S(R,f,z),P&&P.m(R,z),S(R,c,z),L&&L.m(R,z),S(R,d,z),F&&F.m(R,z),S(R,p,z),S(R,h,z),N&&N.m(h,null),b(h,g),b(h,_),b(h,y),b(h,k),b(k,T),M=!0,C||(O=[K(e,"change",n[20]),K(o,"click",n[21]),K(k,"click",n[26])],C=!0)},p(R,z){(!M||z[0]&4096)&&Q(o,"btn-loading",R[12]);const W={};z[0]&64&&(W.class="form-field "+(R[6]?"":"field-error")),z[0]&65|z[1]&1536&&(W. $ $ scope={dirty:z,ctx:R}),a. $ set(W),R[6]&&R[1].length&&!R[7]?P||(P=r_(),P.c(),P.m(c.parentNode,c)):P&&(P.d(1),P=null),R[6]&&R[1].length&&R[7]?L?L.p(R,z):(L=a_(R),L.c(),L.m(d.parentNode,d)):L&&(L.d(1),L=null),R[13].length?F?F.p(R,z):(F=v_(R),F.c(),F.m(p.parentNode,p)):F&&(F.d(1),F=null),R[0]?N?N.p(R,z):(N=y_(R),N.c(),N.m(h,g)):N&&(N.d(1),N=null),(!M||z[0]&16384&& $ !==( $ =!R[14]))&&(k.disabled= $ )},i(R){M||(A(a. $ $ .fragment,R),A(E),M=!0)},o(R){I(a. $ $ .fragment,R),I(E),M=!1},d(R){R&&w(e),n[19](null),R&&w(t),R&&w(i),R&&w(r),j(a,R),R&&w(u),R&&w(f),P&&P.d(R),R&&w(c),L&&L.d(R),R&&w(d),F&&F.d(R),R&&w(p),R&&w(h),N&&N.d(),C=!1,Ae(O)}}}function $ 6(n){let e;return{c(){e=v("div"),m(e,"class","loader")},m(t,i){S(t,e,i)},p:X,i:X,o:X,d(t){t&&w(e)}}}function o_(n){let e;return{c(){e=v("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 C6(n){let e,t,i,s,l,o,r,a,u,f,c=!!n[0]&&!n[6]&&o_();return{c(){e=v("label"),t=B("Collections"),s=D(),l=v("textarea"),r=D(),c&&c.c(),a=we(),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(d,p){S(d,e,p),b(e,t),S(d,s,p),S(d,l,p),ue(l,n[0]),S(d,r,p),c&&c.m(d,p),S(d,a,p),u||(f=K(l,"input",n[22]),u=!0)},p(d,p){p[1]&512&&i!==(i=d[40])&&m(e,"for",i),p[1]&512&&o!==(o=d[40])&&m(l,"id",o),p[0]&1&&ue(l,d[0]),d[0]&&!d[6]?c||(c=o_(),c.c(),c.m(a.parentNode,a)):c&&(c.d(1),c=null)},d(d){d&&w(e),d&&w(s),d&&w(l),d&&w(r),c&&c.d(d),d&&w(a),u=!1,f()}}}function r_(n){let e;return{c(){e=v("div"),e.innerHTML= ` < div class = "icon" > < i class = "ri-information-line" > < / i > < / d i v >
2023-03-19 14:17:36 +08:00
< 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 a _ ( n ) { l e t e , t , i , s , l , o = n [ 9 ] . l e n g t h & & u _ ( n ) , r = n [ 4 ] . l e n g t h & & d _ ( n ) , a = n [ 8 ] . l e n g t h & & _ _ ( n ) ; r e t u r n { c ( ) { e = v ( " 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 = v ( " 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 = u _ ( 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 = d _ ( 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 = _ _ ( 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 u _ ( 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 = l _ ( n , s , o ) , a = l ( r ) ; t . s e t ( a , e [ o ] = c _ ( 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 = w 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 = M t ( e , r , l , 1 , o , s , t , i . p a r e n t N o d e , n s , c _ , i , l _ ) ) } , 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 = v ( " s m a l l " ) , t = B ( " ( " ) , s = B ( i ) , l = B ( " ) " ) , 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 + " " ) & & l e ( s , i ) } , d ( o ) { o & & w ( e ) } } } f u n c t i o n c _ ( 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 & & f _ ( e ) ; r e t u r n { k e y : n , f i r s t : n u l l , c ( ) { t = v ( " d i v " ) , i = v ( " 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 = v ( " s t r o n g " ) , r = B ( 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 ( c , d ) { S ( c , t , d ) , 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 ( c , d ) { e = c , d [ 0 ] & 5 1 2 & & o ! = = ( o = e [ 3 2 ] . n a m e + " " ) & & l e ( r , o ) , e [ 3 2 ] . i d ? f ? f . p ( e , d ) : ( f = f _ ( e ) , f . c ( ) , f . m ( t , u ) ) : f & & ( f . d ( 1 ) , f = n u l l ) } , d ( c ) { c & & w ( t ) , f & & f . d ( ) } } } f u n c t i o n d _ ( 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 ] = h _ ( 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 = w 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 = M t ( e , r , l , 1 , o , s , t , i . p a r e n t N o d e , n s , h _ , 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 p _ ( 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 = v ( " s t r o n g " ) , i = B ( t ) , s = D ( ) , l = v ( " 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 + " " ) & & l e ( i , t ) } , d ( o ) { o & & w ( e ) , o & & w ( s ) , o & & w ( l ) } } } f u n c t i o n m _ ( 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 = v ( " s m a l l " ) , t = B ( " ( " ) , s = B ( i ) , l = B ( " ) " ) , 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 + " " ) & & l e ( s , i ) } , d ( o ) { o & & w ( e ) } } } f u n c t i o n h _ ( n , e ) { l e t t , i , s , l , o , r , a = e [ 3 5 ] . n e w . n a m e + " " , u , f , c , d = e [ 3 5 ] . o l d . n a m e ! = = e [ 3 5 ] . n e w . n a m e & & p _ ( e ) , p = e [ 3 5 ] . n e w . i d & & m _ ( e ) ; r e t u r n { k e y : n , f i r s t : n u l l , c ( ) { t = v ( " d i v " ) , i = v ( " 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 = v ( " d i v " ) , d & & d . c ( ) , o = D ( ) , r = v ( " s t r o n g " ) , u = B ( a ) , f = D ( ) , p & & p . c ( ) , c = 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 ( h , g ) { S ( h , t , g ) , b ( t , i ) , b ( t , s ) , b ( t , l ) , d & & d . m ( l , n u l l ) , b ( l , o ) , b ( l , r ) , b ( r , u ) , b ( l , f ) , p & & p . m ( l , n u l l ) , b ( t , c ) } , p ( h , g ) { e = h , e [ 3 5 ] . o l d . n a m e ! = = e [ 3 5 ] . n e w . n a m e ? d ? d . p ( e , g ) : ( d = p _ ( e ) , d . c ( ) , d . m ( l , o ) ) : d & & ( d . d ( 1 ) , d = n u l l ) , g [ 0 ] & 1 6 & & a ! = = ( a = e [ 3 5 ] . n e w . n a m e + " " ) & & l e ( u , a ) , e [ 3 5 ] . n e w . i d ? p ? p . p ( e , g ) : ( p = m _ ( e ) , p . c ( ) , p . m ( l , n u l l ) ) : p & & ( p . d ( 1 ) , p = n u l l ) } , d ( h ) { h & & w ( t ) , d & & d . d ( ) , p & & p . d ( ) } } } f u n c t i o 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 = i _ ( n , s , o ) , a = l ( r ) ; t . s e t ( a , e [ o ] = b _ ( 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 = w 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 = M t ( e , r , l , 1 , o , s , t , i . p a r e n t N o d e , n s , b _ , i , 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 g _ ( n ) { l e t e , t , i = n [ 3 2 ] . i d + " " , s , l ; r e t u r n { c ( ) { e = v ( " s m a l l " ) , t = B ( " ( " ) , s = B ( i ) , l = B ( " ) " ) , m ( e , " c l a s s " , " t x t - h i n t " ) } , m ( o , r ) { S ( o , e , r
2023-03-17 01:21:16 +08:00
imported with different IDs . You can replace them in the import if you want
2023-03-19 14:17:36 +08:00
to . < / s t r i n g > ` , l = D ( ) , o = v ( " 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 = K ( o , " c l i c k " , n [ 2 4 ] ) , r = ! 0 ) } , p : X , d ( u ) { u & & w ( e ) , r = ! 1 , a ( ) } } } f u n c t i o n y _ ( n ) { l e t e , t , i ; r e t u r n { c ( ) { e = v ( " 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 = K ( e , " c l i c k " , n [ 2 5 ] ) , t = ! 0 ) } , p : X , d ( s ) { s & & w ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n M 6 ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d ; c o n s t p = [ $ 6 , T 6 ] , h = [ ] ; f u n c t i o n g ( _ , y ) { r e t u r n _ [ 5 ] ? 0 : 1 } r e t u r n f = g ( n ) , c = h [ f ] = p [ f ] ( n ) , { c ( ) { e = v ( " h e a d e r " ) , t = v ( " n a v " ) , i = v ( " 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 = v ( " d i v " ) , o = B ( n [ 1 5 ] ) , r = D ( ) , a = v ( " d i v " ) , u = v ( " d i v " ) , c . 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 ( _ , y ) { S ( _ , e , y ) , b ( e , t ) , b ( t , i ) , b ( t , s ) , b ( t , l ) , b ( l , o ) , S ( _ , r , y ) , S ( _ , a , y ) , b ( a , u ) , h [ f ] . m ( u , n u l l ) , d = ! 0 } , p ( _ , y ) { ( ! d | | y [ 0 ] & 3 2 7 6 8 ) & & l e ( o , _ [ 1 5 ] ) ; l e t k = f ; f = g ( _ ) , f = = = k ? h [ f ] . p ( _ , y ) : ( r e ( ) , I ( h [ k ] , 1 , 1 , ( ) = > { h [ k ] = n u l l } ) , a e ( ) , c = h [ f ] , c ? c . p ( _ , y ) : ( c = h [ f ] = p [ f ] ( _ ) , c . c ( ) ) , A ( c , 1 ) , c . m ( u , n u l l ) ) } , i ( _ ) { d | | ( A ( c ) , d = ! 0 ) } , o ( _ ) { I ( c ) , d = ! 1 } , d ( _ ) { _ & & w ( e ) , _ & & w ( r ) , _ & & w ( a ) , h [ f ] . d ( ) } } } f u n c t i o n O 6 ( n ) { l e t e , t , i , s , l , o ; e = n e w N i ( { } ) , i = n e w C n ( { p r o p s : { $ $ s l o t s : { d e f a u l t : [ M 6 ] } , $ $ s c o p e : { c t x : n } } } ) ; l e t r = { } ; r e t u r n l = n e w S 6 ( { p r o p s : r } ) , n [ 2 7 ] ( l ) , l . $ o n ( " s u b m i t " , n [ 2 8 ] ) , { c ( ) { V ( e . $ $ . f r a g m e n t ) , t = D ( ) , V ( i . $ $ . f r a g m e n t ) , s = D ( ) , V ( l . $ $ . f r a g m e n t ) } , m ( a , u ) { q ( e , a , u ) , S ( a , t , u ) , q ( i , a , u ) , S ( a , s , u ) , q ( 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 c = { } ; l . $ s e t ( c ) } , i ( a ) { o | | ( A ( e . $ $ . f r a g m e n t , a ) , A ( i . $ $ . f r a g m e n t , a ) , A ( l . $ $ . f r a g m e n t , a ) , o = ! 0 ) } , o ( a ) { 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 = ! 1 } , d ( a ) { j ( e , a ) , a & & w ( t ) , j ( i , a ) , a & & w ( s ) , n [ 2 7 ] ( n u l l ) , j ( l , a ) } } } f u n c t i o n D 6 ( n , e , t ) { l e t i , s , l , o , r , a , u ; W e ( n , O t , G = > t ( 1 5 , u = G ) ) , G t ( O t , u = " I m p o r t c o l l e c t i o n s " , u ) ; l e t f , c , d = " " , p = ! 1 , h = [ ] , g = [ ] , _ = ! 0 , y = [ ] , k = ! 1 ; T ( ) ; a s y n c f u n c t i o n T ( ) { t ( 5 , k = ! 0 ) ; t r y { t ( 2 , g = a w a i t m 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 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 } c a t c h ( G ) { m e . e r r o r R e s p o n s e H a n d l e r ( G ) } t ( 5 , k = ! 1 ) } f u n c t i o n $ ( ) { i f ( t ( 4 , y = [ ] ) , ! ! i ) f o r ( l e t G o f h ) { c o n s t f e = H . f i n d B y K e y ( g , " i d " , G . i d ) ; ! ( f e ! = n u l l & & f e . i d ) | | ! H . h a s C o l l e c t i o n C h a n g e s ( f e , G , _ ) | | y . p u s h ( { n e w : G , o l d : f e } ) } } f u n c t i o n M ( ) { t ( 1 , h = [ ] ) ; t r y { t ( 1 , h = J S O N . p a r s e ( d ) ) } c a t c h { } A r r a y . i s A r r a y ( h ) ? t ( 1 , h = H . f i l t e r D u p l i c a t e s B y K e y ( h ) ) : t ( 1 , h = [ ] ) ; f o r ( l e t G o f h ) 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 = H . 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 C ( ) { v a r G , f e ; f o r ( l e t Z o f h ) { c o n s t c e = H . f i n d B y K e y ( g , " n a m e " , Z . n a m e ) | | H . f i n d B y K e y ( g , " i d " , Z . i d ) ; i f ( ! c e ) c o n t i n u e ; c o n s t h e = Z . i d , C e = c e . i d ; Z . i d = C e ; c o n s t R e = A r r a y . i s A r r a y ( c e . s c h e m a ) ? c e . s c h e m a : [ ] , j e = A r r a y . i s A r r a y ( Z . s c h e m a ) ? Z . s c h e m a : [ ] ; f o r ( c o n s t y e o f j e ) { c o n s t $ e = H . f i n d B y K e y ( R e , " n a m e " , y e . n a m e ) ; $ e & & $ e . i d & & ( y e . i d = $ e . i d ) } f o r ( l e t y e o f h ) i f ( A r r a y . i s A r r a y ( y e . s c h e m a ) ) f o r ( l e t $ e o f y e . s c h e m a ) ( G = $ 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 & & ( ( f e = $ e . o p t i o n s ) = = n u l l ? v o i d 0 : f e . c o l l e c t i o n I d ) = = = h e & & ( $ e . o p t i o n s . c o l l e c t i o n I d = C e ) } t ( 0 , d = J S O N . s t r i n g i f y ( h , n u l l , 4 ) ) } f u n c t i o n O ( G ) { t ( 1 2 , p = ! 0 ) ; c o n s t f e = n e w F i l e R e a d e r ; f e . o n l o a d = a s y n c Z = > { t ( 1 2 , p = ! 1 ) , t ( 1 0 , f . v a l u e = " " , f ) , t ( 0 , d = Z . t a r g e t . r e s u l t ) , a w a i t r n ( ) , h . l e n g t h | | ( p l ( " 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 . " ) , E ( ) ) } , f e . o n e r r o r = Z = > { c o n s o l e . w a r n ( Z ) , p l ( " 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 , p = ! 1 ) , t ( 1 0 , f . v a l u e = " " , f ) } , f e . r e a d A s T e x t ( G ) } f u n c t i o n E ( ) { t ( 0 , d = " " ) , t ( 1 0 , f . v a l u e = " " , f ) , _ n ( { } ) } f u n c t i o n P ( G ) { s e [ G ? " u n s h i f t " : " p u s h " ] ( ( ) = > { f = G , t ( 1 0 , f ) } ) } c o n s t L = ( ) = > { f . f i l e s . l e n g t h & & O ( f . f i l e s [ 0 ] ) } , F = ( ) = > { f . c l i c k ( ) } ; f u n c t i o n N ( ) { d = t h i s . v a l u e , t ( 0 , d ) } f u n c t i o n R ( ) { _ = t h i s . c h e c k e d , t ( 3 , _ ) } c o n s t z = ( ) = > C ( ) , W = ( ) = > E ( ) , J = ( ) = > c = = n u l l ? v o i d 0 : c . s h o w ( g , h , _ ) ; f u n c t i o n x ( G ) { s e [ G ? " u n s h i f t " : " p u s h " ] ( ( ) = > { c = G , t ( 1 1 , c ) } ) } c o n s t n e = ( ) = > E ( ) ; 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 d < " u " & & M ( ) , n . $ $ . d i r t y [ 0 ] & 3 & & t ( 6 , i = ! ! d & & h . l e n g t h & & h . l e n g t h = = = h . 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 = g . f i l t e r ( G = > i & & _ & & ! H . f i n d B y K e y ( h , " i d " ,
2023-03-17 01:21:16 +08:00
< span class = "txt" > Manage admins < /span>`,t=D(),i=v("hr"),s=D(),l=v("button"),l.innerHTML=`<i class="ri-logout-circle-line"></i >
2023-03-19 14:17:36 +08: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 = [ D e ( n n . c a l l ( n u l l , e ) ) , K ( l , " c l i c k " , n [ 6 ] ) ] , o = ! 0 ) } , p : X , d ( a ) { a & & w ( e ) , a & & w ( t ) , a & & w ( i ) , a & & w ( s ) , a & & w ( l ) , o = ! 1 , A e ( r ) } } } f u n c t i o n Y 6 ( n ) { v a r p ; l e t e , t , i , s , l , o , r , a , u , f , c ; d o c u m e n t . t i t l e = e = H . j o i n N o n E m p t y ( [ n [ 3 ] , n [ 2 ] , " P o c k e t B a s e " ] , " - " ) ; l e t d = ( ( p = n [ 0 ] ) = = n u l l ? v o i d 0 : p . i d ) & & n [ 1 ] & & S _ ( n ) ; r e t u r n o = n e w I b ( { p r o p s : { r o u t e s : A 6 } } ) , o . $ o n ( " r o u t e L o a d i n g " , n [ 4 ] ) , o . $ o n ( " c o n d i t i o n s F a i l e d " , n [ 5 ] ) , a = n e w j 6 ( { } ) , f = n e w U 6 ( { } ) , { c ( ) { t = D ( ) , i = v ( " d i v " ) , d & & d . c ( ) , s = D ( ) , l = v ( " d i v " ) , V ( o . $ $ . f r a g m e n t ) , r = D ( ) , V ( a . $ $ . f r a g m e n t ) , u = D ( ) , V ( f . $ $ . f r a g m e n t ) , 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 ( h , g ) { S ( h , t , g ) , S ( h , i , g ) , d & & d . m ( i , n u l l ) , b ( i , s ) , b ( i , l ) , q ( o , l , n u l l ) , b ( l , r ) , q ( a , l , n u l l ) , S ( h , u , g ) , q ( f , h , g ) , c = ! 0 } , p ( h , [ g ] ) { v a r _ ; ( ! c | | g & 1 2 ) & & e ! = = ( e = H . j o i n N o n E m p t y ( [ h [ 3 ] , h [ 2 ] , " P o c k e t B a s e " ] , " - " ) ) & & ( d o c u m e n t . t i t l e = e ) , ( _ = h [ 0 ] ) ! = n u l l & & _ . i d & & h [ 1 ] ? d ? ( d . p ( h , g ) , g & 3 & & A ( d , 1 ) ) : ( d = S _ ( h ) , d . c ( ) , A ( d , 1 ) , d . m ( i , s ) ) : d & & ( r e ( ) , I ( d , 1 , 1 , ( ) = > { d = n u l l } ) , a e ( ) ) } , i ( h ) { c | | ( A ( d ) , A ( o . $ $ . f r a g m e n t , h ) , A ( a . $ $ . f r a g m e n t , h ) , A ( f . $ $ . f r a g m e n t , h ) , c = ! 0 ) } , o ( h ) { I ( d ) , I ( o . $ $ . f r a g m e n t , h ) , I ( a . $ $ . f r a g m e n t , h ) , I ( f . $ $ . f r a g m e n t , h ) , c = ! 1 } , d ( h ) { h & & w ( t ) , h & & w ( i ) , d & & d . d ( ) , j ( o ) , j ( a ) , h & & w ( u ) , j ( f , h ) } } } f u n c t i o n K 6 ( n , e , t ) { l e t i , s , l , o ; W e ( n , C s , p = > t ( 8 , i = p ) ) , W e ( n , k o , p = > t ( 2 , s = p ) ) , W e ( n , E a , p = > t ( 0 , l = p ) ) , W e ( n , O t , p = > t ( 3 , o = p ) ) ; l e t r , a = ! 1 ; f u n c t i o n u ( p ) { v a r h , g , _ , y ; ( ( h = p = = n u l l ? v o i d 0 : p . d e t a i l ) = = n u l l ? v o i d 0 : h . l o c a t i o n ) ! = = r & & ( t ( 1 , a = ! ! ( ( _ = ( g = p = = n u l l ? v o i d 0 : p . d e t a i l ) = = n u l l ? v o i d 0 : g . 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 = ( y = p = = n u l l ? v o i d 0 : p . d e t a i l ) = = n u l l ? v o i d 0 : y . l o c a t i o n , G t ( O t , o = " " , o ) , _ n ( { } ) , U 1 ( ) ) } f u n c t i o n f ( ) { E i ( " / " ) } a s y n c f u n c t i o n c ( ) { v a r p , h ; i f ( l ! = n u l l & & l . i d ) t r y { c o n s t g = a w a i t m 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 " } ) ; G t ( k o , s = ( ( p = g = = n u l l ? v o i d 0 : g . m e t a ) = = n u l l ? v o i d 0 : p . a p p N a m e ) | | " " , s ) , G t ( C s , i = ! ! ( ( h = g = = n u l l ? v o i d 0 : g . m e t a ) ! = n u l l & & h . h i d e C o n t r o l s ) , i ) } c a t c h ( g ) { g ! = n u l l & & g . 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 . " , g ) } } f u n c t i o n d ( ) { m e . l o g o u t ( ) } 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 & & c ( ) } , [ l , a , s , o , u , f , d ] } c l a s s J 6 e x t e n d s v e { c o n s t r u c t o r ( e ) { s u p e r ( ) , b e ( t h i s , e , K 6 , Y 6 , _ e , { } ) } } n e w J 6 ( { 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 { A e a s A , U t a s B , H a s C , E i a s D , w e a s E , z g a s F , v a a s G , g u a s H , W e a s I , P i a s J , y t a s K , Q t a s L , s e a s M , H 1 a s N , M t a s O , n s a s P , a n a s Q , h n a s R , v e a s S , N r a s T , I a s a , D a s b , V a s c , j a s d , v a s e , m a s f , S a s g , b a s h , b e a s i , D e a s j , r e a s k , n n a s l , q a s m , a e a s n , w a s o , m e a s p , p e a s q , Q a s r , _ e a s s , A a s t , K a s u , f t a s v , B a s w , l e a s x , X a s y , u e a s z } ;