2023-07-22 23:50:40 +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 Sl = n => n ; function qe ( n , e ) { for ( const t in e ) n [ t ] = e [ t ] ; return n } function V1 ( n ) { return ! ! n && ( typeof n == "object" || typeof n == "function" ) && typeof n . then == "function" } function eg ( n ) { return n ( ) } function hu ( ) { return Object . create ( null ) } function Ee ( n ) { n . forEach ( eg ) } function jt ( n ) { return typeof n == "function" } function me ( n , e ) { return n != n ? e == e : n !== e || n && typeof n == "object" || typeof n == "function" } let ql ; function hn ( n , e ) { return ql || ( ql = document . createElement ( "a" ) ) , ql . href = e , n === ql . href } function z1 ( n ) { return Object . keys ( n ) . length === 0 } function va ( n , ... e ) { if ( n == null ) return x ; const t = n . subscribe ( ... e ) ; return t . unsubscribe ? ( ) => t . unsubscribe ( ) : t } function H1 ( n ) { let e ; return va ( n , t => e = t ) ( ) , e } function Je ( n , e , t ) { n . $$ . on _destroy . push ( va ( e , t ) ) } function yt ( n , e , t , i ) { if ( n ) { const s = tg ( n , e , t , i ) ; return n [ 0 ] ( s ) } } function tg ( n , e , t , i ) { return n [ 1 ] && i ? qe ( t . ctx . slice ( ) , n [ 1 ] ( i ( e ) ) ) : t . ctx } function kt ( 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 wt ( n , e , t , i , s , l ) { if ( s ) { const o = tg ( e , t , i , l ) ; n . p ( o , s ) } } function St ( 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 Zt ( n ) { const e = { } ; for ( const t in n ) t [ 0 ] !== "$" && ( e [ t ] = n [ t ] ) ; return e } function xe ( 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 ls ( n ) { return n ? ? "" } function sn ( n , e , t ) { return n . set ( t ) , e } function Me ( n ) { return n && jt ( n . destroy ) ? n . destroy : x } function _u ( n ) { const e = typeof n == "string" && n . match ( /^\s*(-?[\d.]+)([^\s]*)\s*$/ ) ; return e ? [ parseFloat ( e [ 1 ] ) , e [ 2 ] || "px" ] : [ n , "px" ] } const ng = typeof window < "u" ; let qo = ng ? ( ) => window . performance . now ( ) : ( ) => Date . now ( ) , ya = ng ? n => requestAnimationFrame ( n ) : x ; const ws = new Set ; function ig ( n ) { ws . forEach ( e => { e . c ( n ) || ( ws . delete ( e ) , e . f ( ) ) } ) , ws . size !== 0 && ya ( ig ) } function jo ( n ) { let e ; return ws . size === 0 && ya ( ig ) , { promise : new Promise ( t => { ws . add ( e = { c : n , f : t } ) } ) , abort ( ) { ws . delete ( e ) } } } function g ( n , e ) { n . appendChild ( e ) } function sg ( n ) { if ( ! n ) return document ; const e = n . getRootNode ? n . getRootNode ( ) : n . ownerDocument ; return e && e . host ? e : n . ownerDocument } function B1 ( n ) { const e = v ( "style" ) ; return U1 ( sg ( n ) , e ) , e . sheet } function U1 ( n , e ) { return g ( n . head || n , e ) , e . sheet } function w ( n , e , t ) { n . insertBefore ( e , t || null ) } function k ( n ) { n . parentNode && n . parentNode . removeChild ( n ) } function mt ( 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 U ( n ) { return document . createTextNode ( n ) } function E ( ) { return U ( " " ) } function ye ( ) { return U ( "" ) } function J ( n , e , t , i ) { return n . addEventListener ( e , t , i ) , ( ) => n . removeEventListener ( e , t , i ) } function et ( n ) { return function ( e ) { return e . preventDefault ( ) , n . call ( this , e ) } } function An ( n ) { return function ( e ) { return e . stopPropagation ( ) , n . call ( this , e ) } } function p ( n , e , t ) { t == null ? n . removeAttribute ( e ) : n . getAttribute ( e ) !== t && n . setAttribute ( e , t ) } const W1 = [ "width" , "height" ] ; function ri ( n , e ) { const t = Object . getOwnPropertyDescriptors ( n . _ _proto _ _ ) ; for ( const i in e ) e [ i ] == null ? n . removeAttribute ( i ) : i === "style" ? n . style . cssText = e [ i ] : i === "__value" ? n . value = n [ i ] = e [ i ] : t [ i ] && t [ i ] . set && W1 . indexOf ( i ) === - 1 ? n [ i ] = e [ i ] : p ( n , i , e [ i ] ) } function Y1 ( 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 dt ( n ) { return n === "" ? null : + n } function K1 ( n ) { return Arr
2023-06-11 04:32:41 +08:00
` ;for(let b=0;b<=1;b+=a){const y=e+(t-e)*l(b);u+=b*100+ ` % { $ { o ( y , 1 - y ) } }
` }const f=u+ ` 100 % { $ { o ( t , 1 - t ) } }
2023-07-27 20:57:20 +08:00
} ` ,c= ` _ _svelte _$ { J1 ( f ) } _$ { r } ` ,d=sg(n),{stylesheet:m,rules:_}=_o.get(d)||Z1(d,n);_[c]||(_[c]=!0,m.insertRule( ` @ keyframes $ { c } $ { f } ` ,m.cssRules.length));const h=n.style.animation||"";return n.style.animation= ` $ { h ? ` ${ h } , ` : "" } $ { c } $ { i } ms linear $ { s } ms 1 both ` ,go+=1,c}function pl(n,e){const t=(n.style.animation||"").split(", "),i=t.filter(e?l=>l.indexOf(e)<0:l=>l.indexOf("__svelte")===-1),s=t.length-i.length;s&&(n.style.animation=i.join(", "),go-=s,go||G1())}function G1(){ya(()=>{go||(_o.forEach(n=>{const{ownerNode:e}=n.stylesheet;e&&k(e)}),_o.clear())})}function X1(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=Sl,start:a=qo()+l,end:u=a+o,tick:f=x,css:c}=t(n,{from:e,to:s},i);let d=!0,m=!1,_;function h(){c&&(_=dl(n,0,1,o,l,r,c)),l||(m=!0)}function b(){c&&pl(n,_),d=!1}return jo(y=>{if(!m&&y>=a&&(m=!0),m&&y>=u&&(f(1,0),b()),!d)return!1;if(m){const S=y-a,C=0+1*r(S/o);f(C,1-C)}return!0}),h(),f(0,1),b}function Q1(n){const e=getComputedStyle(n);if(e.position!=="absolute"&&e.position!=="fixed"){const{width:t,height:i}=e,s=n.getBoundingClientRect();n.style.position="absolute",n.style.width=t,n.style.height=i,og(n,s)}}function og(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 ml;function bi(n){ml=n}function $ l(){if(!ml)throw new Error("Function called outside component initialization");return ml}function Gt(n){ $ l(). $ $ .on_mount.push(n)}function x1(n){ $ l(). $ $ .after_update.push(n)}function Vo(n){ $ l(). $ $ .on_destroy.push(n)}function $ t(){const n= $ l();return(e,t,{cancelable:i=!1}={})=>{const s=n. $ $ .callbacks[e];if(s){const l=lg(e,t,{cancelable:i});return s.slice().forEach(o=>{o.call(n,l)}),!l.defaultPrevented}return!0}}function Ne(n,e){const t=n. $ $ .callbacks[e.type];t&&t.slice().forEach(i=>i.call(this,e))}const ks=[],te=[];let Ss=[];const Hr=[],rg=Promise.resolve();let Br=!1;function ag(){Br||(Br=!0,rg.then(ka))}function fn(){return ag(),rg}function Qe(n){Ss.push(n)}function he(n){Hr.push(n)}const lr=new Set;let hs=0;function ka(){if(hs!==0)return;const n=ml;do{try{for(;hs<ks.length;){const e=ks[hs];hs++,bi(e),e0(e. $ $ )}}catch(e){throw ks.length=0,hs=0,e}for(bi(null),ks.length=0,hs=0;te.length;)te.pop()();for(let e=0;e<Ss.length;e+=1){const t=Ss[e];lr.has(t)||(lr.add(t),t())}Ss.length=0}while(ks.length);for(;Hr.length;)Hr.pop()();Br=!1,lr.clear(),bi(n)}function e0(n){if(n.fragment!==null){n.update(),Ee(n.before_update);const e=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,e),n.after_update.forEach(Qe)}}function t0(n){const e=[],t=[];Ss.forEach(i=>n.indexOf(i)===-1?e.push(i):t.push(i)),t.forEach(i=>i()),Ss=e}let Hs;function wa(){return Hs||(Hs=Promise.resolve(),Hs.then(()=>{Hs=null})),Hs}function ts(n,e,t){n.dispatchEvent(lg( ` $ { e ? "intro" : "outro" } $ { t } ` ))}const ro=new Set;let si;function ae(){si={r:0,c:[],p:si}}function ue(){si.r||Ee(si.c),si=si.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),si.c.push(()=>{ro.delete(n),i&&(t&&n.d(1),i())}),n.o(e)}else i&&i()}const Sa={duration:0};function ug(n,e,t){const i={direction:"in"};let s=e(n,t,i),l=!1,o,r,a=0;function u(){o&&pl(n,o)}function f(){const{delay:d=0,duration:m=300,easing:_=Sl,tick:h=x,css:b}=s||Sa;b&&(o=dl(n,0,1,m,d,_,b,a++)),h(0,1);const y=qo()+d,S=y+m;r&&r.abort(),l=!0,Qe(()=>ts(n,!0,"start")),r=jo(C=>{if(l){if(C>=S)return h(1,0),ts(n,!0,"end"),u(),l=!1;if(C>=y){const $ =_((C-y)/m);h( $ ,1- $ )}}return l})}let c=!1;return{start(){c||(c=!0,pl(n),jt(s)?(s=s(i),wa().then(f)):f())},invalidate(){c=!1},end(){l&&(u(),l=!1)}}}function $ a(n,e,t){const i={direction:"out"};let s=e(n,t,i),l=!0,o;const r=si;r.r+=1;function a(){const{delay:u=0,duration:f=300,easing:c=Sl,tick:d=x,css:m}=s||Sa;m&&(o=dl(n,1,0,f,u,c,m));const _=qo()+u,h=_+f;Qe(()=>ts(n,!1,"start")),jo(b=>{if(l){if(b>=h)return d(0,1),ts(n,!1,"end"),--r.r||Ee(r.c),!1;if(b>=_){con
2023-06-11 04:32:41 +08:00
` ),t+=i.map(s=>{let l="";return s.name.includes("(")||s.name.includes(" ")?l+=s.name:l+=" ` "+s.name+" ` ",s.collate&&(l+=" COLLATE "+s.collate),s.sort&&(l+=" "+s.sort.toUpperCase()),l}).join( ` ,
` ),i.length>1&&(t+= `
2023-07-22 23:50:40 +08:00
` ),t+=")",e.where&&(t+= ` WHERE $ { e . where } ` ),t}static replaceIndexTableName(e,t){const i=B.parseIndex(e);return i.tableName=t,B.buildIndex(i)}static replaceIndexColumn(e,t,i){if(t===i)return e;const s=B.parseIndex(e);let l=!1;for(let o of s.columns)o.name===t&&(o.name=i,l=!0);return l?B.buildIndex(s):e}static normalizeSearchFilter(e,t){if(e=(e||"").trim(),!e||!t.length)return e;const i=["=","!=","~","!~",">",">=","<","<="];for(const s of i)if(e.includes(s))return e;return e=isNaN(e)&&e!="true"&&e!="false"? ` "${e.replace(/^[\"\'\`]|[\"\'\`]$/gm," ")}" ` :e,t.map(s=> ` $ { s } ~ $ { e } ` ).join("||")}}const Yo=In([]);function ko(n,e=4e3){return Ko(n,"info",e)}function zt(n,e=3e3){return Ko(n,"success",e)}function Ds(n,e=4500){return Ko(n,"error",e)}function Dy(n,e=4500){return Ko(n,"warning",e)}function Ko(n,e,t){t=t||4e3;const i={message:n,type:e,duration:t,timeout:setTimeout(()=>{gb(i)},t)};Yo.update(s=>(Fa(s,i.message),B.pushOrReplaceByKey(s,i,"message"),s))}function gb(n){Yo.update(e=>(Fa(e,n),e))}function Na(){Yo.update(n=>{for(let e of n)Fa(n,e);return[]})}function Fa(n,e){let t;typeof e=="string"?t=B.findByKey(n,"message",e):t=e,t&&(clearTimeout(t.timeout),B.removeByKey(n,"message",t.message))}const Si=In({});function en(n){Si.set(n||{})}function ai(n){Si.update(e=>(B.deleteByPath(e,n),e))}const Ra=In({});function ea(n){Ra.set(n||{})}const ci=In([]),ui=In({}),wo=In(!1),bb=In({});function Ay(n){ci.update(e=>{const t=B.findByKey(e,"id",n);return t?ui.set(t):e.length&&ui.set(e[0]),e})}function Iy(n){ui.update(e=>B.isEmpty(e==null?void 0:e.id)||e.id===n.id?n:e),ci.update(e=>(B.pushOrReplaceByKey(e,n,"id"),qa(),B.sortCollections(e)))}function Ly(n){ci.update(e=>(B.removeByKey(e,"id",n.id),ui.update(t=>t.id===n.id?e[0]:t),qa(),e))}async function Py(n=null){wo.set(!0);try{let e=await ce.collections.getFullList(200,{sort:"+name"});e=B.sortCollections(e),ci.set(e);const t=n&&B.findByKey(e,"id",n);t?ui.set(t):e.length&&ui.set(e[0]),qa()}catch(e){ce.error(e)}wo.set(!1)}function qa(){bb.update(n=>(ci.update(e=>{var t;for(let i of e)n[i.id]=!!((t=i.schema)!=null&&t.find(s=>{var l;return s.type=="file"&&((l=s.options)==null?void 0:l.protected)}));return e}),n))}const mr="pb_admin_file_token";Ho.prototype.logout=function(n=!0){this.authStore.clear(),n&&ji("/login")};Ho.prototype.error=function(n,e=!0,t=""){if(!n||!(n instanceof Error)||n.isAbort)return;const i=(n==null?void 0:n.status)<<0||400,s=(n==null?void 0:n.data)||{},l=s.message||n.message||t;if(e&&l&&Ds(l),B.isEmpty(s.data)||en(s.data),i===401)return this.cancelAllRequests(),this.logout();if(i===403)return this.cancelAllRequests(),ji("/")};Ho.prototype.getAdminFileToken=async function(n=""){let e=!0;if(n){const i=H1(bb);e=typeof i[n]<"u"?i[n]:!0}if(!e)return"";let t=localStorage.getItem(mr)||"";return(!t||gg(t,10))&&(t&&localStorage.removeItem(mr),this._adminFileTokenRequest||(this._adminFileTokenRequest=this.files.getToken()),t=await this._adminFileTokenRequest,localStorage.setItem(mr,t),this._adminFileTokenRequest=null),t};class Ny extends bg{save(e,t){super.save(e,t),t instanceof os&&ea(t)}clear(){super.clear(),ea(null)}}const ce=new Ho("../",new Ny("pb_admin_auth"));ce.authStore.model instanceof os&&ea(ce.authStore.model);function Fy(n){let e,t,i,s,l,o,r,a,u,f,c,d;const m=n[3].default,_=yt(m,n,n[2],null);return{c(){e=v("div"),t=v("main"),_&&_.c(),i=E(),s=v("footer"),l=v("a"),l.innerHTML= ` < i class = "ri-book-open-line txt-sm" > < / i >
2023-08-03 17:42:00 +08:00
< span class = "txt" > Docs < /span>`,o=E(),r=v("span"),r.textContent="|",a=E(),u=v("a"),f=v("span"),f.textContent="PocketBase v0.17.2",p(t,"class","page-content"),p(l,"href","https:/ / pocketbase . io / docs / "),p(l," target "," _blank "),p(l," rel "," noopener noreferrer "),p(r," class "," delimiter "),p(f," class "," txt "),p(u," href "," https : //github.com/pocketbase/pocketbase/releases"),p(u,"target","_blank"),p(u,"rel","noopener noreferrer"),p(u,"title","Releases"),p(s,"class","page-footer"),p(e,"class",c="page-wrapper "+n[1]),Q(e,"center-content",n[0])},m(h,b){w(h,e,b),g(e,t),_&&_.m(t,null),g(e,i),g(e,s),g(s,l),g(s,o),g(s,r),g(s,a),g(s,u),g(u,f),d=!0},p(h,[b]){_&&_.p&&(!d||b&4)&&wt(_,m,h,h[2],d?kt(m,h[2],b,null):St(h[2]),null),(!d||b&2&&c!==(c="page-wrapper "+h[1]))&&p(e,"class",c),(!d||b&3)&&Q(e,"center-content",h[0])},i(h){d||(A(_,h),d=!0)},o(h){I(_,h),d=!1},d(h){h&&k(e),_&&_.d(h)}}}function Ry(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 wn extends ge{constructor(e){super(),_e(this,e,Ry,Fy,me,{center:0,class:1})}}function Gu(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"/>
2023-07-22 23:50:40 +08:00
< span class = "txt" > Pocket < strong > Base < / s t r o n g > < / s p a n > < / f i g u r e > ` , t = E ( ) , i = v ( " d i v " ) , p ( e , " c l a s s " , " b l o c k t x t - c e n t e r m - b - l g " ) , p ( i , " c l a s s " , " c l e a r f i x " ) } , m ( s , l ) { w ( s , e , l ) , w ( s , t , l ) , w ( s , i , l ) } , d ( s ) { s & & k ( e ) , s & & k ( t ) , s & & k ( i ) } } } f u n c t i o n q y ( n ) { l e t e , t , i , s = ! n [ 0 ] & & G u ( ) ; c o n s t l = n [ 1 ] . d e f a u l t , o = y 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 = E ( ) , o & & o . c ( ) , p ( 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 ) { w ( r , e , a ) , s & & s . m ( e , n u l l ) , g ( 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 = G u ( ) , s . c ( ) , s . m ( e , t ) ) , o & & o . p & & ( ! i | | a & 4 ) & & w t ( o , l , r , r [ 2 ] , i ? k t ( l , r [ 2 ] , a , n u l l ) : S 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 & & k ( e ) , s & & s . d ( ) , o & & o . d ( r ) } } } f u n c t i o n j y ( n ) { l e t e , t ; r e t u r n e = n e w w 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 : [ q y ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( i , s ) { V ( e , i , s ) , t = ! 0 } , p ( i , [ s ] ) { c o n s t l = { } ; s & 5 & & ( l . $ $ s c o p e = { d i r t y : s , c t x : i } ) , e . $ s e t ( l ) } , i ( i ) { t | | ( 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 ) { z ( e , i ) } } } f u n c t i o n V 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 v b e x t e n d s g e { c o n s t r u c t o r ( e ) { s u p e r ( ) , _ e ( t h i s , e , V y , j y , m e , { n o b r a n d i n g : 0 } ) } } f u n c t i o n J o ( n ) { c o n s t e = n - 1 ; r e t u r n e * e * e + 1 } f u n c t i o n t a ( n , { d e l a y : e = 0 , d u r a t i o n : t = 4 0 0 , e a s i n g : i = S 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 f i ( n , { d e l a y : e = 0 , d u r a t i o n : t = 4 0 0 , e a s i n g : i = J o , x : s = 0 , y : l = 0 , o p a c i t y : o = 0 } = { } ) { c o n s t r = g e t C o m p u t e d S t y l e ( n ) , a = + r . o p a c i t y , u = r . t r a n s f o r m = = = " n o n e " ? " " : r . t r a n s f o r m , f = a * ( 1 - o ) , [ c , d ] = _ u ( s ) , [ m , _ ] = _ 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 : ( h , b ) = > `
2023-06-11 04:32:41 +08:00
transform : $ { u } translate ( $ { ( 1 - h ) * c } $ { d } , $ { ( 1 - h ) * m } $ { _ } ) ;
2023-07-22 23:50:40 +08:00
opacity : $ { a - f * b } ` }}function ot(n,{delay:e=0,duration:t=400,easing:i=Jo,axis:s="y"}={}){const l=getComputedStyle(n),o=+l.opacity,r=s==="y"?"height":"width",a=parseFloat(l[r]),u=s==="y"?["top","bottom"]:["left","right"],f=u.map(y=> ` $ { y [ 0 ] . toUpperCase ( ) } $ { y . slice ( 1 ) } ` ),c=parseFloat(l[ ` padding$ { f [ 0 ] } ` ]),d=parseFloat(l[ ` padding$ { f [ 1 ] } ` ]),m=parseFloat(l[ ` margin$ { f [ 0 ] } ` ]),_=parseFloat(l[ ` margin$ { f [ 1 ] } ` ]),h=parseFloat(l[ ` border$ { f [ 0 ] } Width ` ]),b=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 * m } px ; margin - $ { u [ 1 ] } : $ { y * _ } px ; border - $ { u [ 0 ] } - width : $ { y * h } px ; border - $ { u [ 1 ] } - width : $ { y * b } px ; ` }}function Kt(n,{delay:e=0,duration:t=400,easing:i=Jo,start:s=0,opacity:l=0}={}){const o=getComputedStyle(n),r=+o.opacity,a=o.transform==="none"?"":o.transform,u=1-s,f=r*(1-l);return{delay:e,duration:t,easing:i,css:(c,d)=> `
2023-06-11 04:32:41 +08:00
transform : $ { a } scale ( $ { 1 - u * d } ) ;
opacity : $ { r - f * d }
2023-07-22 23:50:40 +08:00
` }}let na,Yi;const ia="app-tooltip";function Xu(n){return typeof n=="string"?{text:n,position:"bottom",hideOnClick:null}:n||{}}function Ni(){return Yi=Yi||document.querySelector("."+ia),Yi||(Yi=document.createElement("div"),Yi.classList.add(ia),document.body.appendChild(Yi)),Yi}function yb(n,e){let t=Ni();if(!t.classList.contains("active")||!(e!=null&&e.text)){sa();return}t.textContent=e.text,t.className=ia+" 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 sa(){clearTimeout(na),Ni().classList.remove("active"),Ni().activeNode=void 0}function zy(n,e){Ni().activeNode=n,clearTimeout(na),na=setTimeout(()=>{Ni().classList.add("active"),yb(n,e)},isNaN(e.delay)?0:e.delay)}function He(n,e){let t=Xu(e);function i(){zy(n,t)}function s(){sa()}return n.addEventListener("mouseenter",i),n.addEventListener("mouseleave",s),n.addEventListener("blur",s),(t.hideOnClick===!0||t.hideOnClick===null&&B.isFocusable(n))&&n.addEventListener("click",s),Ni(),{update(l){var o,r;t=Xu(l),(r=(o=Ni())==null?void 0:o.activeNode)!=null&&r.contains(n)&&yb(n,t)},destroy(){var l,o;(o=(l=Ni())==null?void 0:l.activeNode)!=null&&o.contains(n)&&sa(),n.removeEventListener("mouseenter",i),n.removeEventListener("mouseleave",s),n.removeEventListener("blur",s),n.removeEventListener("click",s)}}}function Qu(n,e,t){const i=n.slice();return i[12]=e[t],i}const Hy=n=>({}),xu=n=>({uniqueId:n[4]});function By(n){let e,t,i=n[3],s=[];for(let o=0;o<i.length;o+=1)s[o]=ef(Qu(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=ye()},m(o,r){for(let a=0;a<s.length;a+=1)s[a]&&s[a].m(o,r);w(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=Qu(o,i,a);s[a]?(s[a].p(u,r),A(s[a],1)):(s[a]=ef(u),s[a].c(),A(s[a],1),s[a].m(e.parentNode,e))}for(ae(),a=i.length;a<s.length;a+=1)l(a);ue()}},i(o){if(!t){for(let r=0;r<i.length;r+=1)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){mt(s,o),o&&k(e)}}}function Uy(n){let e,t,i,s,l,o,r;return{c(){e=v("div"),t=v("i"),p(t,"class","ri-error-warning-fill txt-danger"),p(e,"class","form-field-addon")},m(a,u){w(a,e,u),g(e,t),l=!0,o||(r=Me(i=He.call(null,t,{position:"left",text:n[3].map(So).join( `
` )})),o=!0)},p(a,u){i&&jt(i.update)&&u&8&&i.update.call(null,{position:"left",text:a[3].map(So).join( `
2023-07-27 20:57:20 +08:00
` )})},i(a){l||(a&&Qe(()=>{l&&(s||(s=je(t,Kt,{duration:150,start:.7},!0)),s.run(1))}),l=!0)},o(a){a&&(s||(s=je(t,Kt,{duration:150,start:.7},!1)),s.run(0)),l=!1},d(a){a&&k(e),a&&s&&s.end(),o=!1,r()}}}function ef(n){let e,t,i=So(n[12])+"",s,l,o,r;return{c(){e=v("div"),t=v("pre"),s=U(i),l=E(),p(e,"class","help-block help-block-error")},m(a,u){w(a,e,u),g(e,t),g(t,s),g(e,l),r=!0},p(a,u){(!r||u&8)&&i!==(i=So(a[12])+"")&&se(s,i)},i(a){r||(a&&Qe(()=>{r&&(o||(o=je(e,ot,{duration:150},!0)),o.run(1))}),r=!0)},o(a){a&&(o||(o=je(e,ot,{duration:150},!1)),o.run(0)),r=!1},d(a){a&&k(e),a&&o&&o.end()}}}function Wy(n){let e,t,i,s,l,o,r;const a=n[9].default,u=yt(a,n,n[8],xu),f=[Uy,By],c=[];function d(m,_){return m[0]&&m[3].length?0:1}return i=d(n),s=c[i]=f[i](n),{c(){e=v("div"),u&&u.c(),t=E(),s.c(),p(e,"class",n[1]),Q(e,"error",n[3].length)},m(m,_){w(m,e,_),u&&u.m(e,null),g(e,t),c[i].m(e,null),n[11](e),l=!0,o||(r=J(e,"click",n[10]),o=!0)},p(m,[_]){u&&u.p&&(!l||_&256)&&wt(u,a,m,m[8],l?kt(a,m[8],_,Hy):St(m[8]),xu);let h=i;i=d(m),i===h?c[i].p(m,_):(ae(),I(c[h],1,1,()=>{c[h]=null}),ue(),s=c[i],s?s.p(m,_):(s=c[i]=f[i](m),s.c()),A(s,1),s.m(e,null)),(!l||_&2)&&p(e,"class",m[1]),(!l||_&10)&&Q(e,"error",m[3].length)},i(m){l||(A(u,m),A(s),l=!0)},o(m){I(u,m),I(s),l=!1},d(m){m&&k(e),u&&u.d(m),c[i].d(),n[11](null),o=!1,r()}}}const tf="Invalid value";function So(n){return typeof n=="object"?(n==null?void 0:n.message)||(n==null?void 0:n.code)||tf:n||tf}function Yy(n,e,t){let i;Je(n,Si,h=>t(7,i=h));let{ $ $ slots:s={}, $ $ scope:l}=e;const o="field_"+B.randomString(7);let{name:r=""}=e,{inlineError:a=!1}=e,{class:u=void 0}=e,f,c=[];function d(){ai(r)}Gt(()=>(f.addEventListener("input",d),f.addEventListener("change",d),()=>{f.removeEventListener("input",d),f.removeEventListener("change",d)}));function m(h){Ne.call(this,n,h)}function _(h){te[h?"unshift":"push"](()=>{f=h,t(2,f)})}return n. $ $ set=h=>{"name"in h&&t(5,r=h.name),"inlineError"in h&&t(0,a=h.inlineError),"class"in h&&t(1,u=h.class)," $ $ scope"in h&&t(8,l=h. $ $ scope)},n. $ $ .update=()=>{n. $ $ .dirty&160&&t(3,c=B.toArray(B.getNestedVal(i,r)))},[a,u,f,c,o,r,d,i,l,s,m,_]}class pe extends ge{constructor(e){super(),_e(this,e,Yy,Wy,me,{name:5,inlineError:0,class:1,changed:6})}get changed(){return this. $ $ .ctx[6]}}function Ky(n){let e,t,i,s,l,o,r,a;return{c(){e=v("label"),t=U("Email"),s=E(),l=v("input"),p(e,"for",i=n[9]),p(l,"type","email"),p(l,"autocomplete","off"),p(l,"id",o=n[9]),l.required=!0,l.autofocus=!0},m(u,f){w(u,e,f),g(e,t),w(u,s,f),w(u,l,f),re(l,n[0]),l.focus(),r||(a=J(l,"input",n[5]),r=!0)},p(u,f){f&512&&i!==(i=u[9])&&p(e,"for",i),f&512&&o!==(o=u[9])&&p(l,"id",o),f&1&&l.value!==u[0]&&re(l,u[0])},d(u){u&&k(e),u&&k(s),u&&k(l),r=!1,a()}}}function Jy(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=v("label"),t=U("Password"),s=E(),l=v("input"),r=E(),a=v("div"),a.textContent="Minimum 10 characters.",p(e,"for",i=n[9]),p(l,"type","password"),p(l,"autocomplete","new-password"),p(l,"minlength","10"),p(l,"id",o=n[9]),l.required=!0,p(a,"class","help-block")},m(c,d){w(c,e,d),g(e,t),w(c,s,d),w(c,l,d),re(l,n[1]),w(c,r,d),w(c,a,d),u||(f=J(l,"input",n[6]),u=!0)},p(c,d){d&512&&i!==(i=c[9])&&p(e,"for",i),d&512&&o!==(o=c[9])&&p(l,"id",o),d&2&&l.value!==c[1]&&re(l,c[1])},d(c){c&&k(e),c&&k(s),c&&k(l),c&&k(r),c&&k(a),u=!1,f()}}}function Zy(n){let e,t,i,s,l,o,r,a;return{c(){e=v("label"),t=U("Password confirm"),s=E(),l=v("input"),p(e,"for",i=n[9]),p(l,"type","password"),p(l,"minlength","10"),p(l,"id",o=n[9]),l.required=!0},m(u,f){w(u,e,f),g(e,t),w(u,s,f),w(u,l,f),re(l,n[2]),r||(a=J(l,"input",n[7]),r=!0)},p(u,f){f&512&&i!==(i=u[9])&&p(e,"for",i),f&512&&o!==(o=u[9])&&p(l,"id",o),f&4&&l.value!==u[2]&&re(l,u[2])},d(u){u&&k(e),u&&k(s),u&&k(l),r=!1,a()}}}function Gy(n){let e,t,i,s,l,o,r,a,u,f,c,d,m;return s=new pe({props:{class:"form-field required",name:"email", $ $ slots:{default:[Ky,({uniqueId:_})=>({9:_}),({uniqueId:_})=>_?512:0]}, $ $ scope:{ctx:n}}}),o=new pe({props:{class:"form-field required",name:"password", $ $ slots:{default:[Jy,({uniqueId:_})=>({9:_}),({uniqueId:_})=>_?512:0]}, $ $ scope:{ctx:n}}}),a=new pe({props:{class:"form-field required",name:
2023-08-07 02:51:55 +08:00
< i class = "ri-arrow-right-line" > < / i > ` , p ( 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 " ) , p ( f , " t y p e " , " s u b m i t " ) , p ( 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 ] ) , p ( e , " c l a s s " , " b l o c k " ) , p ( e , " a u t o c o m p l e t e " , " o f f " ) } , m ( _ , h ) { w ( _ , e , h ) , g ( e , t ) , g ( e , i ) , V ( s , e , n u l l ) , g ( e , l ) , V ( o , e , n u l l ) , g ( e , r ) , V ( a , e , n u l l ) , g ( e , u ) , g ( e , f ) , c = ! 0 , d | | ( m = J ( e , " s u b m i t " , e t ( n [ 4 ] ) ) , d = ! 0 ) } , p ( _ , [ h ] ) { c o n s t b = { } ; h & 1 5 3 7 & & ( b . $ $ s c o p e = { d i r t y : h , c t x : _ } ) , s . $ s e t ( b ) ; c o n s t y = { } ; h & 1 5 3 8 & & ( y . $ $ s c o p e = { d i r t y : h , c t x : _ } ) , o . $ s e t ( y ) ; c o n s t S = { } ; h & 1 5 4 0 & & ( S . $ $ s c o p e = { d i r t y : h , c t x : _ } ) , a . $ s e t ( S ) , ( ! c | | h & 8 ) & & Q ( f , " b t n - d i s a b l e d " , _ [ 3 ] ) , ( ! c | | h & 8 ) & & Q ( f , " b t n - l o a d i n g " , _ [ 3 ] ) } , i ( _ ) { c | | ( A ( s . $ $ . f r a g m e n t , _ ) , A ( o . $ $ . f r a g m e n t , _ ) , A ( a . $ $ . f r a g m e n t , _ ) , c = ! 0 ) } , o ( _ ) { I ( s . $ $ . f r a g m e n t , _ ) , I ( o . $ $ . f r a g m e n t , _ ) , I ( a . $ $ . f r a g m e n t , _ ) , c = ! 1 } , d ( _ ) { _ & & k ( e ) , z ( s ) , z ( o ) , z ( a ) , d = ! 1 , m ( ) } } } f u n c t i o n X y ( n , e , t ) { c o n s t i = $ t ( ) ; l e t s = " " , l = " " , o = " " , r = ! 1 ; a s y n c f u n c t i o n a ( ) { i f ( ! r ) { t ( 3 , r = ! 0 ) ; t r y { a w a i t c e . a d m i n s . c r e a t e ( { e m a i l : s , p a s s w o r d : l , p a s s w o r d C o n f i r m : o } ) , a w a i t c e . a d m i n s . a u t h W i t h P a s s w o r d ( s , l ) , i ( " s u b m i t " ) } c a t c h ( d ) { c e . e r r o 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 Q y e x t e n d s g e { c o n s t r u c t o r ( e ) { s u p e r ( ) , _ e ( t h i s , e , X y , G y , m e , { } ) } } f u n c t i o n n f ( n ) { l e t e , t ; r e t u r n e = n e w v b ( { p r o p s : { $ $ s l o t s : { d e f a u l t : [ x y ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( i , s ) { V ( e , i , s ) , t = ! 0 } , p ( i , s ) { c o n s t l = { } ; s & 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 ) { z ( e , i ) } } } f u n c t i o n x y ( n ) { l e t e , t ; r e t u r n e = n e w Q y ( { } ) , e . $ o n ( " s u b m i t " , n [ 1 ] ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( i , s ) { V ( e , i , s ) , t = ! 0 } , p : 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 ) { z ( e , i ) } } } f u n c t i o n e k ( n ) { l e t e , t , i = n [ 0 ] & & n f ( n ) ; r e t u r n { c ( ) { i & & i . c ( ) , e = y e ( ) } , m ( s , l ) { i & & i . m ( s , l ) , w ( s , e , l ) , t = ! 0 } , p ( s , [ l ] ) { s [ 0 ] ? i ? ( i . p ( s , l ) , l & 1 & & A ( i , 1 ) ) : ( i = n f ( s ) , i . c ( ) , A ( i , 1 ) , i . m ( e . p a r e n t N o d e , e ) ) : i & & ( a e ( ) , I ( i , 1 , 1 , ( ) = > { i = n u l l } ) , u e ( ) ) } , i ( s ) { t | | ( A ( i ) , t = ! 0 ) } , o ( s ) { I ( i ) , t = ! 1 } , d ( s ) { i & & i . d ( s ) , s & & k ( e ) } } } f u n c t i o n t k ( n , e , t ) { l e t i = ! 1 ; s ( ) ; f u n c t i o n s ( ) { i f ( t ( 0 , i = ! 1 ) , n e w U R L S e a r c h P a r a m s ( w i n d o w . l o c a t i o n . s e a r c h ) . h a s ( " i n s t a l l e r " ) ) { c e . l o g o u t ( ! 1 ) , t ( 0 , i = ! 0 ) ; r e t u r n } c e . a u t h S t o r e . i s V a l i d ? j i ( " / c o l l e c t i o n s " ) : c e . l o g o u t ( ) } r e t u r n [ i , a s y n c ( ) = > { t ( 0 , i = ! 1 ) , a w a i t f 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 n k e x t e n d s g e { c o n s t r u c t o r ( e ) { s u p e r ( ) , _ e ( t h i s , e , t k , e k , m e , { } ) } } c o n s t T t = I n ( " " ) , $ o = I n ( " " ) , A s = I n ( ! 1 ) ; f u n c t i o n i k ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = v ( " i n p u t " ) , p ( e , " t y p e " , " t e x t " ) , p ( e , " i d " , n [ 8 ] ) , p ( e , " p l a c e h o l d e r " , t = n [ 0 ] | | n [ 1 ] ) } , m ( l , o ) { w ( l , e , o ) , n [ 1 3 ] ( e ) , r e ( e , n [ 7 ] ) , i | | ( s = J ( e , " i n p u t " , n [ 1 4 ] ) , i = ! 0 ) } , p ( l , o ) { o & 3 & & t ! = = ( t = l [ 0 ] | | l [ 1 ] ) & & p ( e , " p l a c e h o l d e r " , t ) , o & 1 2 8 & & e . v a l u e ! = = l [ 7 ] & & r e ( e , l [ 7 ] ) } , i : x , o : x , d ( l ) { l & & k ( e ) , n [ 1 3 ] ( n u l l ) , i = ! 1 , s ( ) } } } f u n c t i o n s k ( n ) { l e t e , t , i , s ; f u n c t i o n l ( a ) { n [ 1 2 ] ( a ) } v a r o = n [ 4 ] ; f u n c t i o n r ( a ) { l e t u = { i d : a [ 8 ] , s i n g l e L i n e : ! 0 , d i s a b l e R e q u e s t K e y s : ! 0 , d i s a b l e I n d i r e c t C o l l e c t i o n s K e y s : ! 0 , e x t r a A u t o c o m p l e t e K e y s : a [ 3 ] , b a s e C o l l e c t i o n : a [ 2 ] , p l a c e h o l d e r : a [ 0 ] | | a [ 1 ] } ; r e t u r n a [ 7 ] ! = = v o i d 0 & & ( u . v a l u e = a [ 7 ] ) , { p r o p s : u } } r e t u r n o & & ( e = R t ( o , r ( n ) ) , t e . p u s h ( ( ) = > d e ( e , " v a l u e " , l ) ) , e . $ o n ( " s u b m i t " , n [ 1 0 ] ) ) , { c ( ) { e & & H ( e . $ $ . f r a g m e n t ) , i = y e ( ) } , m ( a , u ) { e & & V ( e , a , u ) , w ( 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 ] , h e ( ( ) = > t = ! 1 ) ) , u & 1 6 & & o ! = = ( o = a [ 4 ] ) ) { i f ( e ) { a e ( ) ; c o n s t c = e ; I ( c . $ $ . f r a g m e n t , 1 , 0 , ( ) = > { z ( c , 1 ) } ) , u e ( ) } o ? ( e = R t ( o , r ( a ) ) , t e . p u s h ( ( ) = > d e ( e , " v a l u e " , l ) ) , e . $ o n ( " s u b m i t " , a [ 1 0 ] ) , H ( e . $ $ . f r a g m e n t ) , A ( e . $ $ . f r a g m e n t , 1 ) , V ( e , i . p a r e n t N o d e , i ) ) : e = n u l l } e l s e o & & e . $ s e t ( f ) } , i ( a ) { s | | ( e & & 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 & & k ( i ) , e & & z ( e , a ) } } } f u n c t i o n s f ( 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 > ' , p ( e , " t y p e " , " s u b m i t " ) , p ( 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 ) { w ( s , e , l ) , i = ! 0 } , i ( s ) { i | | ( s & & Q e ( ( ) = > { i & & ( t | | ( t = j e ( e , f 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 = j e ( e , f 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 & & k ( e ) , s & & t & & t . e n d ( ) } } } f u n c t i o n l f ( 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 > ' , p ( e , " t y p e " , " b u t t o n " ) , p ( e , " c l a s s " , "
2023-07-22 23:50:40 +08:00
< span class = "txt" > Method < / s p a n > ` , p ( 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 ) { w ( t , e , i ) } , p : x , d ( t ) { t & & k ( e ) } } } f u n c t i o n y k ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " i " ) , i = E ( ) , s = v ( " s p a n " ) , s . t e x t C o n t e n t = " U R L " , p ( t , " c l a s s " , B . g e t F i e l d T y p e I c o n ( " u r l " ) ) , p ( s , " c l a s s " , " t x t " ) , p ( 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 ) { w ( l , e , o ) , g ( e , t ) , g ( e , i ) , g ( e , s ) } , p : x , d ( l ) { l & & k ( e ) } } } f u n c t i o n k k ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " i " ) , i = E ( ) , 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 " , p ( t , " c l a s s " , B . g e t F i e l d T y p e I c o n ( " u r l " ) ) , p ( s , " c l a s s " , " t x t " ) , p ( 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 ) { w ( l , e , o ) , g ( e , t ) , g ( e , i ) , g ( e , s ) } , p : x , d ( l ) { l & & k ( e ) } } } f u n c t i o n w k ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " i " ) , i = E ( ) , s = v ( " s p a n " ) , s . t e x t C o n t e n t = " U s e r I P " , p ( t , " c l a s s " , B . g e t F i e l d T y p e I c o n ( " n u m b e r " ) ) , p ( s , " c l a s s " , " t x t " ) , p ( 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 ) { w ( l , e , o ) , g ( e , t ) , g ( e , i ) , g ( e , s ) } , p : x , d ( l ) { l & & k ( e ) } } } f u n c t i o n S k ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " i " ) , i = E ( ) , s = v ( " s p a n " ) , s . t e x t C o n t e n t = " S t a t u s " , p ( t , " c l a s s " , B . g e t F i e l d T y p e I c o n ( " n u m b e r " ) ) , p ( s , " c l a s s " , " t x t " ) , p ( 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 ) { w ( l , e , o ) , g ( e , t ) , g ( e , i ) , g ( e , s ) } , p : x , d ( l ) { l & & k ( e ) } } } f u n c t i o n $ k ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " i " ) , i = E ( ) , 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 " , p ( t , " c l a s s " , B . g e t F i e l d T y p e I c o n ( " d a t e " ) ) , p ( s , " c l a s s " , " t x t " ) , p ( 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 ) { w ( l , e , o ) , g ( e , t ) , g ( e , i ) , g ( e , s ) } , p : x , d ( l ) { l & & k ( e ) } } } f u n c t i o n u 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 ] ? T k : C k } l e t i = t ( n ) , s = i ( n ) ; r e t u r n { c ( ) { s . c ( ) , e = y e ( ) } , m ( l , o ) { s . m ( l , o ) , w ( 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 & & k ( e ) } } } f u n c t i o n C k ( n ) { v a r r ; l e t e , t , i , s , l , o = ( ( r = n [ 0 ] ) = = n u l l ? v o i d 0 : r . l e n g t h ) & & f 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 = E ( ) , o & & o . c ( ) , l = E ( ) , p ( t , " c o l s p a n " , " 9 9 " ) , p ( 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 ) { w ( a , e , u ) , g ( e , t ) , g ( t , i ) , g ( t , s ) , o & & o . m ( t , n u l l ) , g ( 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 = f f ( a ) , o . c ( ) , o . m ( t , n u l l ) ) : o & & ( o . d ( 1 ) , o = n u l l ) } , d ( a ) { a & & k ( e ) , o & & o . d ( ) } } } f u n c t i o n T k ( 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-07-27 20:57:20 +08:00
` },m(t,i){w(t,e,i)},p:x,d(t){t&&k(e)}}}function ff(n){let e,t,i;return{c(){e=v("button"),e.innerHTML='<span class="txt">Clear filters</span>',p(e,"type","button"),p(e,"class","btn btn-hint btn-expanded m-t-sm")},m(s,l){w(s,e,l),t||(i=J(e,"click",n[19]),t=!0)},p:x,d(s){s&&k(e),t=!1,i()}}}function cf(n){let e;return{c(){e=v("i"),p(e,"class","ri-error-warning-line txt-danger m-l-5 m-r-5"),p(e,"title","Error")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function df(n,e){var Te,Ze,ht;let t,i,s,l=((Te=e[23].method)==null?void 0:Te.toUpperCase())+"",o,r,a,u,f,c=e[23].url+"",d,m,_,h,b,y,S=(e[23].referer||"N/A")+"",C, $ ,T,M,O,D=(e[23].userIp||"N/A")+"",L,P,N,F,R,q=e[23].status+"",j,Y,X,G,W,le,ee,ie,be,Se,Ve=(((Ze=e[23].meta)==null?void 0:Ze.errorMessage)||((ht=e[23].meta)==null?void 0:ht.errorData))&&cf();G=new wi({props:{date:e[23].created}});function Be(){return e[17](e[23])}function ke(...Ge){return e[18](e[23],...Ge)}return{key:n,first:null,c(){t=v("tr"),i=v("td"),s=v("span"),o=U(l),a=E(),u=v("td"),f=v("span"),d=U(c),_=E(),Ve&&Ve.c(),h=E(),b=v("td"),y=v("span"),C=U(S),T=E(),M=v("td"),O=v("span"),L=U(D),N=E(),F=v("td"),R=v("span"),j=U(q),Y=E(),X=v("td"),H(G. $ $ .fragment),W=E(),le=v("td"),le.innerHTML='<i class="ri-arrow-right-line"></i>',ee=E(),p(s,"class",r="label txt-uppercase "+e[9][e[23].method.toLowerCase()]),p(i,"class","col-type-text col-field-method min-width"),p(f,"class","txt txt-ellipsis"),p(f,"title",m=e[23].url),p(u,"class","col-type-text col-field-url"),p(y,"class","txt txt-ellipsis"),p(y,"title", $ =e[23].referer),Q(y,"txt-hint",!e[23].referer),p(b,"class","col-type-text col-field-referer"),p(O,"class","txt txt-ellipsis"),p(O,"title",P=e[23].userIp),Q(O,"txt-hint",!e[23].userIp),p(M,"class","col-type-number col-field-userIp"),p(R,"class","label"),Q(R,"label-danger",e[23].status>=400),p(F,"class","col-type-number col-field-status"),p(X,"class","col-type-date col-field-created"),p(le,"class","col-type-action min-width"),p(t,"tabindex","0"),p(t,"class","row-handle"),this.first=t},m(Ge,Ye){w(Ge,t,Ye),g(t,i),g(i,s),g(s,o),g(t,a),g(t,u),g(u,f),g(f,d),g(u,_),Ve&&Ve.m(u,null),g(t,h),g(t,b),g(b,y),g(y,C),g(t,T),g(t,M),g(M,O),g(O,L),g(t,N),g(t,F),g(F,R),g(R,j),g(t,Y),g(t,X),V(G,X,null),g(t,W),g(t,le),g(t,ee),ie=!0,be||(Se=[J(t,"click",Be),J(t,"keydown",ke)],be=!0)},p(Ge,Ye){var fe,ze,Dt;e=Ge,(!ie||Ye&8)&&l!==(l=((fe=e[23].method)==null?void 0:fe.toUpperCase())+"")&&se(o,l),(!ie||Ye&8&&r!==(r="label txt-uppercase "+e[9][e[23].method.toLowerCase()]))&&p(s,"class",r),(!ie||Ye&8)&&c!==(c=e[23].url+"")&&se(d,c),(!ie||Ye&8&&m!==(m=e[23].url))&&p(f,"title",m),(ze=e[23].meta)!=null&&ze.errorMessage||(Dt=e[23].meta)!=null&&Dt.errorData?Ve||(Ve=cf(),Ve.c(),Ve.m(u,null)):Ve&&(Ve.d(1),Ve=null),(!ie||Ye&8)&&S!==(S=(e[23].referer||"N/A")+"")&&se(C,S),(!ie||Ye&8&& $ !==( $ =e[23].referer))&&p(y,"title", $ ),(!ie||Ye&8)&&Q(y,"txt-hint",!e[23].referer),(!ie||Ye&8)&&D!==(D=(e[23].userIp||"N/A")+"")&&se(L,D),(!ie||Ye&8&&P!==(P=e[23].userIp))&&p(O,"title",P),(!ie||Ye&8)&&Q(O,"txt-hint",!e[23].userIp),(!ie||Ye&8)&&q!==(q=e[23].status+"")&&se(j,q),(!ie||Ye&8)&&Q(R,"label-danger",e[23].status>=400);const we={};Ye&8&&(we.date=e[23].created),G. $ set(we)},i(Ge){ie||(A(G. $ $ .fragment,Ge),ie=!0)},o(Ge){I(G. $ $ .fragment,Ge),ie=!1},d(Ge){Ge&&k(t),Ve&&Ve.d(),z(G),be=!1,Ee(Se)}}}function Mk(n){let e,t,i,s,l,o,r,a,u,f,c,d,m,_,h,b,y,S,C, $ ,T,M,O,D,L=[],P=new Map,N;function F(ke){n[11](ke)}let R={disable:!0,class:"col-field-method",name:"method", $ $ slots:{default:[vk]}, $ $ scope:{ctx:n}};n[1]!==void 0&&(R.sort=n[1]),s=new an({props:R}),te.push(()=>de(s,"sort",F));function q(ke){n[12](ke)}let j={disable:!0,class:"col-type-text col-field-url",name:"url", $ $ slots:{default:[yk]}, $ $ scope:{ctx:n}};n[1]!==void 0&&(j.sort=n[1]),r=new an({props:j}),te.push(()=>de(r,"sort",q));function Y(ke){n[13](ke)}let X={disable:!0,class:"col-type-text col-field-referer",name:"referer", $ $ slots:{default:[kk]}, $ $ scope:{ctx:n}};n[1]!==void 0&&(X.sort=n[1]),f=new an({props:X}),te.push(()=>de(f,"sort",Y));function G(ke){n[14](ke)}let W={disable:!0,class:"col-type-number col-field-userIp",nam
2023-06-11 04:32:41 +08:00
* Chart . js v3 . 9.1
* https : //www.chartjs.org
* ( c ) 2022 Chart . js Contributors
* Released under the MIT License
2023-07-22 23:50:40 +08:00
* / f u n c t i o n m i ( ) { } c o n s t A k = f u n c t i o n ( ) { l e t n = 0 ; r e t u r n f u n c t i o n ( ) { r e t u r n n + + } } ( ) ; f u n c t i o n c t ( n ) { r e t u r n n = = = n u l l | | t y p e o f n > " u " } f u n c t i o n C t ( n ) { i f ( A r r a y . i s A r r a y & & A r r a y . i s A r r a y ( n ) ) r e t u r n ! 0 ; c o n s t e = O b j e c t . p r o t o t y p e . t o S t r i n g . c a l l ( n ) ; r e t u r n e . s l i c e ( 0 , 7 ) = = = " [ o b j e c t " & & e . s l i c e ( - 6 ) = = = " A r r a y ] " } f u n c t i o n t t ( n ) { r e t u r n n ! = = n u l l & & O b j e c t . p r o t o t y p e . t o S t r i n g . c a l l ( n ) = = = " [ o b j e c t O b j e c t ] " } c o n s t H 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 q n ( n , e ) { r e t u r n H t ( n ) ? n : e } f u n c t i o n s t ( n , e ) { r e t u r n t y p e o f n > " u " ? e : n } c o n s t I k = ( n , e ) = > t y p e o f n = = " s t r i n g " & & n . e n d s W i t h ( " % " ) ? p a r s e F l o a t ( n ) / 1 0 0 : n / e , k b = ( n , e ) = > t y p e o f n = = " s t r i n g " & & n . e n d s W i t h ( " % " ) ? p a r s e F l o a t ( n ) / 1 0 0 * e : + n ; f u n c t i o n N t ( n , e , t ) { i f ( n & & t y p e o f n . c a l l = = " f u n c t i o n " ) r e t u r n n . a p p l y ( t , e ) } f u n c t i o n p t ( n , e , t , i ) { l e t s , l , o ; i f ( C t ( n ) ) i f ( l = n . l e n g t h , i ) f o r ( s = l - 1 ; s > = 0 ; s - - ) e . c a l l ( t , n [ s ] , s ) ; e l s e f o r ( s = 0 ; s < l ; s + + ) e . c a l l ( t , n [ s ] , s ) ; e l s e i f ( t t ( n ) ) f o r ( o = O b j e c t . k e y s ( n ) , l = o . l e n g t h , s = 0 ; s < l ; s + + ) e . c a l l ( t , n [ o [ s ] ] , o [ s ] ) } f u n c t i o n C 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 T o ( n ) { i f ( C t ( n ) ) r e t u r n n . m a p ( T o ) ; i f ( t t ( n ) ) { c o n s t e = O b j e c t . c r e a t e ( n u l l ) , t = O b j e c t . k e y s ( n ) , i = t . l e n g t h ; l e t s = 0 ; f o r ( ; s < i ; + + s ) e [ t [ s ] ] = T 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 b ( n ) { r e t u r n [ " _ _ p r o t o _ _ " , " p r o t o t y p e " , " c o n s t r u c t o r " ] . i n d e x O f ( n ) = = = - 1 } f u n c t i o n L k ( n , e , t , i ) { i f ( ! w b ( n ) ) r e t u r n ; c o n s t s = e [ n ] , l = t [ n ] ; t t ( s ) & & t t ( l ) ? h l ( s , l , i ) : e [ n ] = T o ( l ) } f u n c t i o n h l ( n , e , t ) { c o n s t i = C t ( e ) ? e : [ e ] , s = i . l e n g t h ; i f ( ! t t ( n ) ) r e t u r n n ; t = t | | { } ; c o n s t l = t . m e r g e r | | L k ; f o r ( l e t o = 0 ; o < s ; + + o ) { i f ( e = i [ o ] , ! t t ( e ) ) c o n t i n u e ; c o n s t r = O b j e c t . k e y s ( e ) ; f o r ( l e t a = 0 , u = r . l e n g t h ; a < u ; + + a ) l ( r [ a ] , n , e , t ) } r e t u r n n } f u n c t i o n o l ( n , e ) { r e t u r n h l ( n , e , { m e r g e r : P k } ) } f u n c t i o n P k ( n , e , t ) { i f ( ! w b ( n ) ) r e t u r n ; c o n s t i = e [ n ] , s = t [ n ] ; t t ( i ) & & t t ( s ) ? o 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 ] = T o ( s ) ) } c o n s t h f = { " " : n = > n , x : n = > n . x , y : n = > n . y } ; f u n c t i o n R i ( n , e ) { r e t u r n ( h f [ e ] | | ( h f [ e ] = N k ( e ) ) ) ( n ) } f u n c t i o n N k ( n ) { c o n s t e = F k ( n ) ; r e t u r n t = > { f o r ( c o n s t i o f e ) { i f ( i = = = " " ) b r e a k ; t = t & & t [ i ] } r e t u r n t } } f u n c t i o n F k ( n ) { c o n s t e = n . s p l i t ( " . " ) , t = [ ] ; l e t i = " " ; f o r ( c o n s t s o f e ) i + = s , i . e n d s W i t h ( " \ \ " ) ? i = i . s l i c e ( 0 , - 1 ) + " . " : ( t . p u s h ( i ) , i = " " ) ; r e t u r n t } f u n c t i o n V 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 W n = n = > t y p e o f n < " u " , q i = n = > t y p e o f n = = " f u n c t i o n " , _ 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 R k ( n ) { r e t u r n n . t y p e = = = " m o u s e u p " | | n . t y p e = = = " c l i c k " | | n . t y p e = = = " c o n t e x t m e n u " } c o n s t q t = M a t h . P I , g t = 2 * q t , q k = g t + q t , M o = N u m b e r . P O S I T I V E _ I N F I N I T Y , j k = q t / 1 8 0 , F t = q t / 2 , K s = q t / 4 , g f = q t * 2 / 3 , B n = M a t h . l o g 1 0 , o i = M a t h . s i g n ; f u n c t i o n b f ( n ) { c o n s t e = M a t h . r o u n d ( n ) ; n = r 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 ( B 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 V k ( n ) { c o n s t e = [ ] , t = M a t h . s q r t ( n ) ; l e t i ; f o r ( i = 1 ; i < t ; i + + ) n % i = = = 0 & & ( e . p u s h ( i ) , e . p u s h ( n / i ) ) ; r e t u r n t = = = ( t | 0 ) & & e . p u s h ( t ) , e . s o r t ( ( s , l ) = > s - l ) . p o p ( ) , e } f u n c t i o n I 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 r 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 z k ( n , e ) { c o n s t t = M a t h . r o u n d ( n ) ; r e t u r n t - e < = n & & t + e > = n } f u n c t i o n S b ( n , e , t ) { l e t i , s , l ; f o r ( i = 0 , s = n . l e n g t h ; i < s ; i + + ) l = n [ i ] [ t ] , i s N a N ( l ) | | ( e . m i n = M a t h . m i n ( e . m i n , l ) , e . m a x = M a t h . m a x ( e . m a x , l ) ) } f u n c t i o n X n ( n ) { r e t u r n n * ( q t / 1 8 0 ) } f u n c t i o n z a ( n ) { r e t u r n n * ( 1 8 0 / q t ) } f u n c t i o n v f ( n ) { i f ( ! H 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 $ b ( n , e ) { c o n s t t = e . x - n . x , i = e . y - n . y , s = M a t h . s q r t ( t * t + i * i ) ; l e t l = M a t h . a t a n 2 ( i , t ) ; r e t u r n l < - . 5 * q t & & ( l + = g t ) , { a n g l e : l , d i s t a n c e : s } } f u n c t i o n l a ( n , e ) { r e t u r n M a t h . s q r t ( M a t h . p o w ( e . x - n . x , 2 ) + M a t h . p o w ( e . y - n . y , 2 ) ) } f u n c t i o n H k ( n , e ) { r e t u r n ( n - e + q k ) % g t - q t } f u n c t i o n O n ( n ) { r e t u r n ( n % g t + g t ) % g t } f u n c t i o n _ l ( n , e , t , i ) { c o n s t s = O n ( n ) , l = O n ( e ) , o = O n ( t ) , r = O n ( l - s ) , a = O n ( o - s ) , u = O n ( s - l ) , f = O 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 u n ( n , e , t ) { r e t u r n M a t h . m a x ( e , M a t h . m i n ( t , n ) ) } f u n c t i o n B k ( n ) { r e t u r n u n ( n , - 3 2 7 6 8 , 3 2 7 6 7 ) } f u n c t i o n g 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 H 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 e s = ( n , e , t , i ) = > H a ( n , t , i ? s = > n [ s ] [ e ] < = t : s = > n [ s ] [ e ] < t ) , U k = ( n , e , t ) = > H a ( n , t , i = > n [ i ] [ e ] > = t ) ; f u n c t i o n W k ( n , e ,
2023-06-11 04:32:41 +08:00
* @ kurkle / color v0 . 2.1
* https : //github.com/kurkle/color#readme
* ( c ) 2022 Jukka Kurkela
* Released under the MIT License
2023-07-22 23:50:40 +08:00
* / f u n c t i o n D l ( n ) { r e t u r n n + . 5 | 0 } c o n s t I 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 n l ( n ) { r e t u r n I i ( D l ( n * 2 . 5 5 ) , 0 , 2 5 5 ) } f u n c t i o n F i ( n ) { r e t u r n I i ( D l ( n * 2 5 5 ) , 0 , 2 5 5 ) } f u n c t i o n g i ( n ) { r e t u r n I i ( D 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 I i ( D l ( n * 1 0 0 ) , 0 , 1 0 0 ) } c o n s t R 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 } , o a = [ . . . " 0 1 2 3 4 5 6 7 8 9 A B C D E F " ] , Z k = n = > o a [ n & 1 5 ] , G k = n = > o a [ ( n & 2 4 0 ) > > 4 ] + o a [ n & 1 5 ] , Y l = n = > ( n & 2 4 0 ) > > 4 = = = ( n & 1 5 ) , X k = 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 Q k ( n ) { v a r e = n . l e n g t h , t ; r e t u r n n [ 0 ] = = = " # " & & ( e = = = 4 | | e = = = 5 ? t = { r : 2 5 5 & R n [ n [ 1 ] ] * 1 7 , g : 2 5 5 & R n [ n [ 2 ] ] * 1 7 , b : 2 5 5 & R n [ n [ 3 ] ] * 1 7 , a : e = = = 5 ? R n [ n [ 4 ] ] * 1 7 : 2 5 5 } : ( e = = = 7 | | e = = = 9 ) & & ( t = { r : R n [ n [ 1 ] ] < < 4 | R n [ n [ 2 ] ] , g : R n [ n [ 3 ] ] < < 4 | R n [ n [ 4 ] ] , b : R n [ n [ 5 ] ] < < 4 | R n [ n [ 6 ] ] , a : e = = = 9 ? R n [ n [ 7 ] ] < < 4 | R n [ n [ 8 ] ] : 2 5 5 } ) ) , t } c o n s t x k = ( n , e ) = > n < 2 5 5 ? e ( n ) : " " ; f u n c t i o n e 2 ( n ) { v a r e = X k ( n ) ? Z k : G k ; r e t u r n n ? " # " + e ( n . r ) + e ( n . g ) + e ( n . b ) + x k ( n . a , e ) : v o i d 0 } c o n s t 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 A b ( n , e , t ) { c o n s t i = e * M a t h . m i n ( t , 1 - t ) , s = ( l , o = ( l + n / 3 0 ) % 1 2 ) = > t - i * M a t h . m a x ( M a t h . m i n ( o - 3 , 9 - o , 1 ) , - 1 ) ; r e t u r n [ s ( 0 ) , s ( 8 ) , s ( 4 ) ] } f u n c t i o n n 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 i 2 ( n , e , t ) { c o n s t i = A b ( n , 1 , . 5 ) ; l e t s ; f o r ( e + t > 1 & & ( s = 1 / ( e + t ) , e * = s , t * = s ) , s = 0 ; s < 3 ; s + + ) i [ s ] * = 1 - e - t , i [ s ] + = e ; r e t u r n i } f u n c t i o n s 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 B 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 = s 2 ( t , i , s , f , l ) , a = a * 6 0 + . 5 ) , [ a | 0 , u | | 0 , r ] } f u n c t i o n U 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 ( F i ) } f u n c t i o n W a ( n , e , t ) { r e t u r n U a ( A b , n , e , t ) } f u n c t i o n l 2 ( n , e , t ) { r e t u r n U a ( i 2 , n , e , t ) } f u n c t i o n o 2 ( n , e , t ) { r e t u r n U a ( n 2 , n , e , t ) } f u n c t i o n I b ( n ) { r e t u r n ( n % 3 6 0 + 3 6 0 ) % 3 6 0 } f u n c t i o n r 2 ( n ) { c o n s t e = t 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 ] ? n l ( + e [ 5 ] ) : F i ( + e [ 5 ] ) ) ; c o n s t s = I b ( + e [ 2 ] ) , l = + e [ 3 ] / 1 0 0 , o = + e [ 4 ] / 1 0 0 ; r e t u r n e [ 1 ] = = = " h w b " ? i = l 2 ( s , l , o ) : e [ 1 ] = = = " h s v " ? i = o 2 ( s , l , o ) : i = W a ( s , l , o ) , { r : i [ 0 ] , g : i [ 1 ] , b : i [ 2 ] , a : t } } f u n c t i o n a 2 ( n , e ) { v a r t = B a ( n ) ; t [ 0 ] = I b ( t [ 0 ] + e ) , t = W a ( t ) , n . r = t [ 0 ] , n . g = t [ 1 ] , n . b = t [ 2 ] } f u n c t i o n u 2 ( n ) { i f ( ! n ) r e t u r n ; c o n s t e = B 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 } % , $ { g i ( n . a ) } ) ` : ` h s l ( $ { t } , $ { i } % , $ { s } % ) ` } c o n s t C f = { x : " d a r k " , Z : " l i g h t " , Y : " r e " , X : " b l u " , W : " g r " , V : " m e d i u m " , U : " s l a t e " , A : " e e " , T : " o l " , S : " o r " , B : " r a " , C : " l a t e g " , D : " i g h t s " , R : " i n " , Q : " t u r q u o i s " , E : " h i " , P : " r o " , O : " a l " , N : " l e " , M : " d e " , L : " y e l l o " , F : " e n " , K : " c h " , G : " a r k s " , H : " e a " , I : " i g h t g " , J : " w h " } , T 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-06-11 04:32:41 +08:00
* Chart . js v3 . 9.1
* https : //www.chartjs.org
* ( c ) 2022 Chart . js Contributors
* Released under the MIT License
2023-07-27 20:57:20 +08:00
* /class dw{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=Mb.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 hi=new dw;const qf="transparent",pw={boolean(n,e,t){return t>.5?e:n},color(n,e,t){const i=Of(n||qf),s=i.valid&&Of(e||qf);return s&&s.valid?s.mix(i,t).hexString():e},number(n,e,t){return n+(e-n)*t}};class mw{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||pw[e.type||typeof o],this._easing=al[e.easing]||al.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 hw = [ "x" , "y" , "borderWidth" , "radius" , "tension" ] , _w = [ "color" , "borderColor" , "backgroundColor" ] ; lt . 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 gw = Object . keys ( lt . animation ) ; lt . describe ( "animation" , { _fallback : ! 1 , _indexable : ! 1 , _scriptable : n => n !== "onProgress" && n !== "onComplete" && n !== "fn" } ) ; lt . set ( "animations" , { colors : { type : "color" , properties : _w } , numbers : { type : "number" , properties : hw } } ) ; lt . describe ( "animations" , { _fallback : "animation" } ) ; lt . 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 Kb { constructor ( e , t ) { this . _chart = e , this . _properties = new Map , this . configure ( t ) } configure ( e ) { if ( ! tt ( e ) ) return ; const t = this . _properties ; Object . getOwnPropertyNames ( e ) . forEach ( i => { const s = e [ i ] ; if ( ! tt ( s ) ) return ; const l = { } ; for ( con
2023-06-11 04:32:41 +08:00
` )>-1?n.split( `
2023-07-22 23:50:40 +08:00
` ):n}function LS(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 hc(n,e){const t=n.chart.ctx,{body:i,footer:s,title:l}=n,{boxWidth:o,boxHeight:r}=e,a=En(e.bodyFont),u=En(e.titleFont),f=En(e.footerFont),c=l.length,d=s.length,m=i.length,_=Yn(e.padding);let h=_.height,b=0,y=i.reduce(( $ ,T)=> $ +T.before.length+T.lines.length+T.after.length,0);if(y+=n.beforeBody.length+n.afterBody.length,c&&(h+=c*u.lineHeight+(c-1)*e.titleSpacing+e.titleMarginBottom),y){const $ =e.displayColors?Math.max(r,a.lineHeight):a.lineHeight;h+=m* $ +(y-m)*a.lineHeight+(y-1)*e.bodySpacing}d&&(h+=e.footerMarginTop+d*f.lineHeight+(d-1)*e.footerSpacing);let S=0;const C=function( $ ){b=Math.max(b,t.measureText( $ ).width+S)};return t.save(),t.font=u.string,pt(n.title,C),t.font=a.string,pt(n.beforeBody.concat(n.afterBody),C),S=e.displayColors?o+2+e.boxPadding:0,pt(i, $ =>{pt( $ .before,C),pt( $ .lines,C),pt( $ .after,C)}),S=0,t.font=f.string,pt(n.footer,C),t.restore(),b+=_.width,{width:b,height:h}}function PS(n,e){const{y:t,height:i}=e;return t<i/2?"top":t>n.height-i/2?"bottom":"center"}function NS(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 FS(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"),NS(u,n,e,t)&&(u="center"),u}function _c(n,e,t){const i=t.yAlign||e.yAlign||PS(n,t);return{xAlign:t.xAlign||e.xAlign||FS(n,e,t,i),yAlign:i}}function RS(n,e){let{x:t,width:i}=n;return e==="right"?t-=i:e==="center"&&(t-=i/2),t}function qS(n,e,t){let{y:i,height:s}=n;return e==="top"?i+=t:e==="bottom"?i-=s+t:i-=s/2,i}function gc(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:m}=Cs(o);let _=RS(e,r);const h=qS(e,a,u);return a==="center"?r==="left"?_+=u:r==="right"&&(_-=u):r==="left"?_-=Math.max(f,d)+s:r==="right"&&(_+=Math.max(c,m)+s),{x:un(_,0,i.width-e.width),y:un(h,0,i.height-e.height)}}function no(n,e,t){const i=Yn(t.padding);return e==="center"?n.x+n.width/2:e==="right"?n.x+n.width-i.right:n.x+i.left}function bc(n){return ii([],_i(n))}function jS(n,e,t){return Vi(n,{tooltip:e,tooltipItems:t,type:"tooltip"})}function vc(n,e){const t=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return t?n.override(t):n}class ha extends $ i{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 Kb(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(l)),l}getContext(){return this. $ context||(this. $ context=jS(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=ii(r,_i(s)),r=ii(r,_i(l)),r=ii(r,_i(o)),r}getBeforeBody(e,t){return bc(t.callbacks.beforeBody.apply(this,[e]))}getBody(e,t){const{callbacks:i}=t,s=[];return pt(e,l=>{const o={before:[],lines:[],after:[]},r=vc(i,l);ii(o.before,_i(r.beforeLabel.call(this,l))
2023-06-11 04:32:41 +08:00
* chartjs - adapter - luxon v1 . 3.1
* https : //www.chartjs.org
* ( c ) 2023 chartjs - adapter - luxon Contributors
* Released under the MIT license
2023-07-27 20:57:20 +08:00
* / c o n s t o $ = { d a t e t i m e : U 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 : U e . T I M E _ W I T H _ S E C O N D S , m i n u t e : U 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 " } } ; Q b . _ d a t e . o v e r r i d e ( { _ i d : " l u x o n " , _ c r e a t e : f u n c t i o n ( n ) { r e t u r n U 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 o $ } , 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 = U e . f r o m F o r m a t ( n , e , t ) : n = U 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 = U 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 U e ) & & ( n = U 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 M c ( n ) { l e t e , t , i ; r e t u r n { c ( ) { e = v ( " d i v " ) , p ( 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 ) { w ( s , e , l ) , i = ! 0 } , i ( s ) { i | | ( s & & Q e ( ( ) = > { i & & ( t | | ( t = j e ( e , K 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 = j e ( e , K t , { d u r a t i o n : 1 5 0 } , ! 1 ) ) , t . r u n ( 0 ) ) , i = ! 1 } , d ( s ) { s & & k ( e ) , s & & t & & t . e n d ( ) } } } f u n c t i o n r $ ( 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 = U ( n [ 1 ] ) , t = E ( ) , s = U ( i ) } , m ( l , o ) { w ( l , e , o ) , w ( l , t , o ) , w ( l , s , o ) } , p ( l , o ) { o & 2 & & s e ( e , l [ 1 ] ) , o & 2 & & i ! = = ( i = l [ 1 ] = = = 1 ? " l o g " : " l o g s " ) & & s e ( s , i ) } , d ( l ) { l & & k ( e ) , l & & k ( t ) , l & & k ( s ) } } } f u n c t i o n a $ ( n ) { l e t e ; r e t u r n { c ( ) { e = U ( " L o a d i n g . . . " ) } , m ( t , i ) { w ( t , e , i ) } , p : x , d ( t ) { t & & k ( e ) } } } f u n c t i o n u $ ( n ) { l e t e , t , i , s , l , o = n [ 2 ] & & M c ( ) ; f u n c t i o n r ( f , c ) { r e t u r n f [ 2 ] ? a $ : r $ } 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 = E ( ) , i = v ( " c a n v a s " ) , s = E ( ) , l = v ( " d i v " ) , u . c ( ) , p ( 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 " ) , z r ( i , " h e i g h t " , " 2 5 0 p x " ) , z r ( i , " w i d t h " , " 1 0 0 % " ) , p ( 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 ] ) , p ( 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 ) { w ( f , e , c ) , o & & o . m ( e , n u l l ) , g ( e , t ) , g ( e , i ) , n [ 8 ] ( i ) , w ( f , s , c ) , w ( f , l , c ) , u . m ( l , n u l l ) } , p ( f , [ c ] ) { f [ 2 ] ? o ? c & 4 & & A ( o , 1 ) : ( o = M c ( ) , o . c ( ) , A ( o , 1 ) , o . m ( e , t ) ) : o & & ( a e ( ) , I ( o , 1 , 1 , ( ) = > { o = n u l l } ) , u 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 & & k ( e ) , o & & o . d ( ) , n [ 8 ] ( n u l l ) , f & & k ( s ) , f & & k ( l ) , u . d ( ) } } } f u n c t i o n f $ ( n , e , t ) { l e t { f i l t e r : i = " " } = e , { p r e s e t s : s = " " } = e , l , o , r = [ ] , a = 0 , u = ! 1 ; a s y n c f u n c t i o n f ( ) { r e t u r n t ( 2 , u = ! 0 ) , c e . l o g s . g e t R e q u e s t s S t a t s ( { f i l t e r : [ s , i ] . f i l t e r ( B o o l e a n ) . j o i n ( " & & " ) } ) . t h e n ( m = > { c ( ) ; f o r ( l e t _ o f m ) r . p u s h ( { x : n e w D a t e ( _ . d a t e ) , y : _ . t o t a l } ) , t ( 1 , a + = _ . 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 ( m = > { m ! = n u l l & & m . i s A b o r t | | ( c ( ) , c o n s o l e . w a r n ( m ) , c e . e r r o r ( m , ! 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 = [ ] ) } G t ( ( ) = > ( N o . r e g i s t e r ( z i , e r , Q o , r u , P l , I S , V S ) , t ( 6 , o = n e w N o ( l , { t y p e : " l i n e " , d a t a : { d a t a s e t s : [ { l a b e l : " T o t a l r e q u e s t s " , d a t a : r , b o r d e r C o l o r : " # e f 4 5 6 5 " , p o i n t B a c k g r o u n d C o l o r : " # e f 4 5 6 5 " , b a c k g r o u n d C o l o r : " r g b ( 2 3 9 , 6 9 , 1 0 1 , 0 . 0 5 ) " , b o r d e r W i d t h : 2 , p o i n t R a d i u s : 1 , p o i n t B o r d e r W i d t h : 0 , f i l l : ! 0 } ] } , o p t i o n s : { a n i m a t i o n : ! 1 , i n t e r a c t i o n : { i n t e r s e c t : ! 1 , m o d e : " i n d e x " } , s c a l e s : { y : { b e g i n A t Z e r o : ! 0 , g r i d : { c o l o r : " # e d f 0 f 3 " , b o r d e r C o l o r : " # d e e 3 e 8 " } , t i c k s : { p r e c i s i o n : 0 , m a x T i c k s L i m i t : 6 , a u t o S k i p : ! 0 , c o l o r : " # 6 6 6 f 7 5 " } } , x : { t y p e : " t i m e " , t i m e : { u n i t : " h o u r " , t o o l t i p F o r m a t : " D D h a " } , g r i d : { b o r d e r C o l o r : " # d e e 3 e 8 " , c o l o r : m = > m . 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 : m = > m . 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 ( m ) { t e [ m ? " u n s h i f t " : " p u s h " ] ( ( ) = > { l = m , t ( 0 , l ) } ) } r e t u r n n . $ $ s e t = m = > { " f i l t e r " i n m & & t ( 3 , i = m . f i l t e r ) , " p r e s e t s " i n m & & t ( 4 , s = m . p r e s e t s ) } , n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 2 4 & & ( t y p e o f i < " u " | | t y p e o f s < " u " ) & & f ( ) , n . $ $ . d i r t y & 1 9 2 & & t y p e o f r < " u " & & o & & ( t ( 6 , o . d a t a . d a t a s e t s [ 0 ] . d a t a = r , o ) , o . u p d a t e ( ) )
2023-06-11 04:32:41 +08:00
* Prism : Lightweight , robust , elegant syntax highlighting
*
* @ license MIT < https : //opensource.org/licenses/MIT>
* @ author Lea Verou < https : //lea.verou.me>
* @ namespace
* @ public
2023-07-27 20:57:20 +08:00
* /var t=function(i){var s=/ ( ? : ^ | \ s ) lang ( ? : uage ) ? - ( [ \ w - ] + ) ( ? = \ s | $ ) / i , l = 0 , o = { } , r = { manual : i . Prism && i . Prism . manual , disableWorkerMessageHandler : i . Prism && i . Prism . disableWorkerMessageHandler , util : { encode : function S ( C ) { return C instanceof a ? new a ( C . type , S ( C . content ) , C . alias ) : Array . isArray ( C ) ? C . map ( S ) : C . replace ( /&/g , "&" ) . replace ( /</g , "<" ) . replace ( /\u00a0/g , " " ) } , type : function ( S ) { return Object . prototype . toString . call ( S ) . slice ( 8 , - 1 ) } , objId : function ( S ) { return S . _ _id || Object . defineProperty ( S , "__id" , { value : ++ l } ) , S . _ _id } , clone : function S ( C , $ ) { $ = $ || { } ; var T , M ; switch ( r . util . type ( C ) ) { case "Object" : if ( M = r . util . objId ( C ) , $ [ M ] ) return $ [ M ] ; T = { } , $ [ M ] = T ; for ( var O in C ) C . hasOwnProperty ( O ) && ( T [ O ] = S ( C [ O ] , $ ) ) ; return T ; case "Array" : return M = r . util . objId ( C ) , $ [ M ] ? $ [ M ] : ( T = [ ] , $ [ M ] = T , C . forEach ( function ( D , L ) { T [ L ] = S ( D , $ ) } ) , T ) ; default : return C } } , getLanguage : function ( S ) { for ( ; S ; ) { var C = s . exec ( S . className ) ; if ( C ) return C [ 1 ] . toLowerCase ( ) ; S = S . parentElement } return "none" } , setLanguage : function ( S , C ) { S . className = S . className . replace ( RegExp ( s , "gi" ) , "" ) , S . classList . add ( "language-" + C ) } , currentScript : function ( ) { if ( typeof document > "u" ) return null ; if ( "currentScript" in document && 1 < 2 ) return document . currentScript ; try { throw new Error } catch ( T ) { var S = ( /at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i . exec ( T . stack ) || [ ] ) [ 1 ] ; if ( S ) { var C = document . getElementsByTagName ( "script" ) ; for ( var $ in C ) if ( C [ $ ] . src == S ) return C [ $ ] } return null } } , isActive : function ( S , C , $ ) { for ( var T = "no-" + C ; S ; ) { var M = S . classList ; if ( M . contains ( C ) ) return ! 0 ; if ( M . contains ( T ) ) return ! 1 ; S = S . parentElement } return ! ! $ } } , languages : { plain : o , plaintext : o , text : o , txt : o , extend : function ( S , C ) { var $ = r . util . clone ( r . languages [ S ] ) ; for ( var T in C ) $ [ T ] = C [ T ] ; return $ } , insertBefore : function ( S , C , $ , T ) { T = T || r . languages ; var M = T [ S ] , O = { } ; for ( var D in M ) if ( M . hasOwnProperty ( D ) ) { if ( D == C ) for ( var L in $ ) $ . hasOwnProperty ( L ) && ( O [ L ] = $ [ L ] ) ; $ . hasOwnProperty ( D ) || ( O [ D ] = M [ D ] ) } var P = T [ S ] ; return T [ S ] = O , r . languages . DFS ( r . languages , function ( N , F ) { F === P && N != S && ( this [ N ] = O ) } ) , O } , DFS : function S ( C , $ , T , M ) { M = M || { } ; var O = r . util . objId ; for ( var D in C ) if ( C . hasOwnProperty ( D ) ) { $ . call ( C , D , C [ D ] , T || D ) ; var L = C [ D ] , P = r . util . type ( L ) ; P === "Object" && ! M [ O ( L ) ] ? ( M [ O ( L ) ] = ! 0 , S ( L , $ , null , M ) ) : P === "Array" && ! M [ O ( L ) ] && ( M [ O ( L ) ] = ! 0 , S ( L , $ , D , M ) ) } } } , plugins : { } , highlightAll : function ( S , C ) { r . highlightAllUnder ( document , S , C ) } , highlightAllUnder : function ( S , C , $ ) { var T = { callback : $ , container : S , selector : 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code' } ; r . hooks . run ( "before-highlightall" , T ) , T . elements = Array . prototype . slice . apply ( T . container . querySelectorAll ( T . selector ) ) , r . hooks . run ( "before-all-elements-highlight" , T ) ; for ( var M = 0 , O ; O = T . elements [ M ++ ] ; ) r . highlightElement ( O , C === ! 0 , T . callback ) } , highlightElement : function ( S , C , $ ) { var T = r . util . getLanguage ( S ) , M = r . languages [ T ] ; r . util . setLanguage ( S , T ) ; var O = S . parentElement ; O && O . nodeName . toLowerCase ( ) === "pre" && r . util . setLanguage ( O , T ) ; var D = S . textContent , L = { element : S , language : T , grammar : M , code : D } ; function P ( F ) { L . highlightedCode = F , r . hooks . run ( "before-insert" , L ) , L . element . innerHTML = L . highlightedCode , r . hooks . run ( "after-highlight" , L ) , r . hooks . run ( "complete" , L ) , $ && $ . call ( L . element ) } if ( r . hooks . run ( "before-sanity-check" , L ) , O = L . element . parentElement , O && O . nodeName . toLowerCase ( ) === "pre" && ! O . hasAttribute ( "tabindex" ) && O . setAttribute ( "tabindex" , "0" ) , ! L . code ) { r . hooks . run ( "complete" , L ) , $ && $ . call ( L . element ) ; return } if ( r . hooks . run ( "before-highlight" , L ) , ! L . grammar ) { P ( r . util . encode ( L . code ) ) ; return } if ( C && i . Worker ) { var N = new Worker ( r . filename ) ; N . onmessage = function ( F ) { P ( F . data ) } , N . postMessage ( JSON . stringify ( { language : L . language , code : L . code , immediateClose : ! 0 } ) ) } else P ( r . highlight ( L . code , L . grammar , L . language ) ) } , highlight : function ( S , C , $ ) { var T = { code : S , grammar : C , language : $ } ; if ( r . hooks . run ( "before-tokenize" , T ) , ! T . grammar ) throw new Error ( 'The language "' + T . language + '" has no grammar.' ) ; return T . tokens = r . tokenize ( T . code , T . grammar ) , r . hooks . run ( "after-tokenize" , T ) , a . stringify ( r . util . encode ( T . tokens ) , T . language ) } , tokenize : function ( S , C ) { var $ = C . rest ; if ( $ ) { for ( var T in $ ) C [ T ] = $ [ T ] ; delete C . rest } var M = new c ; return d ( M , M . head , S ) , f ( S , M , C , M . head , 0 ) , _ ( M ) } , hooks : { all : { } , add : function
2023-07-22 23:50:40 +08:00
` ),b.hasAttribute("data-start")||b.setAttribute("data-start",String(L+1))}y.textContent=M,t.highlightElement(y)},function(M){b.setAttribute(r,f),y.textContent=M})}}),t.plugins.fileHighlight={highlight:function(b){for(var y=(b||document).querySelectorAll(c),S=0,C;C=y[S++];)t.highlightElement(C)}};var _=!1;t.fileHighlight=function(){_||(console.warn("Prism.fileHighlight is deprecated. Use ` Prism . plugins . fileHighlight . highlight ` instead."),_=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(b1);var p $ =b1.exports;const xs=d $ (p $ );var m $ ={exports:{}};(function(n){(function(){if(typeof Prism>"u")return;var e=Object.assign||function(o,r){for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);return o};function t(o){this.defaults=e({},o)}function i(o){return o.replace(/-( \w )/g,function(r,a){return a.toUpperCase()})}function s(o){for(var r=0,a=0;a<o.length;++a)o.charCodeAt(a)==" ".charCodeAt(0)&&(r+=3);return o.length+r}var l={"remove-trailing":"boolean","remove-indent":"boolean","left-trim":"boolean","right-trim":"boolean","break-lines":"number",indent:"number","remove-initial-line-feed":"boolean","tabs-to-spaces":"number","spaces-to-tabs":"number"};t.prototype={setDefaults:function(o){this.defaults=e(this.defaults,o)},normalize:function(o,r){r=e(this.defaults,r);for(var a in r){var u=i(a);a!=="normalize"&&u!=="setDefaults"&&r[a]&&this[u]&&(o=this[u].call(this,o,r[a]))}return o},leftTrim:function(o){return o.replace(/^ \s +/,"")},rightTrim:function(o){return o.replace(/ \s + $ /,"")},tabsToSpaces:function(o,r){return r=r|0||4,o.replace(/ \t /g,new Array(++r).join(" "))},spacesToTabs:function(o,r){return r=r|0||4,o.replace(RegExp(" {"+r+"}","g")," ")},removeTrailing:function(o){return o.replace(/ \s *? $ /gm,"")},removeInitialLineFeed:function(o){return o.replace(/^(?: \r ? \n | \r )/,"")},removeIndent:function(o){var r=o.match(/^[^ \S \n \r ]*(?= \S )/gm);return!r||!r[0].length||(r.sort(function(a,u){return a.length-u.length}),!r[0].length)?o:o.replace(RegExp("^"+r[0],"gm"),"")},indent:function(o,r){return o.replace(/^[^ \S \n \r ]*(?= \S )/gm,new Array(++r).join(" ")+" $ &")},breakLines:function(o,r){r=r===!0?80:r|0||80;for(var a=o.split( `
2023-06-11 04:32:41 +08:00
` ),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 m=s(f[d]);c+=m,c>r&&(f[d]= `
` +f[d],c=m)}a[u]=f.join("")}return a.join( `
2023-08-07 02:51:55 +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,m="",_="",h=!1,b=0;b<d.length;++b){var y=d[b];y==o.element?h=!0:y.nodeName==="#text"&&(h?_+=y.nodeValue:m+=y.nodeValue,a.removeChild(y),--b)}if(!o.element.children.length||!Prism.plugins.KeepMarkup)o.code=m+o.code+_,o.code=r.normalize(o.code,o.settings);else{var S=m+o.element.innerHTML+_;o.element.innerHTML=r.normalize(S,o.settings),o.code=o.element.textContent}}}})})()})(m $ );(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 h $ (n){let e,t,i;return{c(){e=v("div"),t=v("code"),p(t,"class","svelte-10s5tkd"),p(e,"class",i="code-wrapper prism-light "+n[0]+" svelte-10s5tkd")},m(s,l){w(s,e,l),g(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")&&p(e,"class",i)},i:x,o:x,d(s){s&&k(e)}}}function _ $ (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=xs.plugins.NormalizeWhitespace.normalize(a,{"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0}),xs.highlight(a,xs.languages[l]||xs.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 xs<"u"&&s&&t(1,o=r(s))},[i,o,s,l]}class v1 extends ge{constructor(e){super(),_e(this,e,_ $ ,h $ ,me,{class:0,content:2,language:3})}}const g $ =n=>({}),Ec=n=>({}),b $ =n=>({}),Dc=n=>({});function Ac(n){let e,t,i,s,l,o,r,a,u,f,c,d,m,_,h,b,y,S,C=n[4]&&!n[2]&&Ic(n);const $ =n[19].header,T=yt( $ ,n,n[18],Dc);let M=n[4]&&n[2]&&Lc(n);const O=n[19].default,D=yt(O,n,n[18],null),L=n[19].footer,P=yt(L,n,n[18],Ec);return{c(){e=v("div"),t=v("div"),s=E(),l=v("div"),o=v("div"),C&&C.c(),r=E(),T&&T.c(),a=E(),M&&M.c(),u=E(),f=v("div"),D&&D.c(),c=E(),d=v("div"),P&&P.c(),p(t,
2023-07-27 20:57:20 +08:00
< span class = "txt" > New index < / s p a n > ` , f = E ( ) , H ( c . $ $ . f r a g m e n t ) , p ( e , " c l a s s " , " s e c t i o n - t i t l e " ) , p ( u , " t y p e " , " b u t t o n " ) , p ( 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 " ) , p ( 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 , D ) { w ( O , e , D ) , g ( e , t ) , g ( e , s ) , g ( e , l ) , w ( O , o , D ) , w ( O , r , D ) ; f o r ( l e t L = 0 ; L < y . l e n g t h ; L + = 1 ) y [ L ] & & y [ L ] . m ( r , n u l l ) ; g ( r , a ) , g ( r , u ) , w ( O , f , D ) , V ( c , O , D ) , m = ! 0 , _ | | ( h = J ( u , " c l i c k " , n [ 5 ] ) , _ = ! 0 ) } , p ( O , [ D ] ) { v a r P , N , F ; i f ( ( ! m | | D & 1 ) & & i ! = = ( i = ( ( ( N = ( P = O [ 0 ] ) = = n u l l ? v o i d 0 : P . i n d e x e s ) = = n u l l ? v o i d 0 : N . l e n g t h ) | | 0 ) + " " ) & & s e ( s , i ) , D & 7 ) { b = ( ( F = O [ 0 ] ) = = n u l l ? v o i d 0 : F . i n d e x e s ) | | [ ] ; l e t R ; f o r ( R = 0 ; R < b . l e n g t h ; R + = 1 ) { c o n s t q = B c ( O , b , R ) ; y [ R ] ? y [ R ] . p ( q , D ) : ( y [ R ] = W c ( q ) , 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 = b . l e n g t h } c o n s t L = { } ; ! d & & D & 1 & & ( d = ! 0 , L . c o l l e c t i o n = O [ 0 ] , h e ( ( ) = > d = ! 1 ) ) , c . $ s e t ( L ) } , i ( O ) { m | | ( A ( c . $ $ . f r a g m e n t , O ) , m = ! 0 ) } , o ( O ) { I ( c . $ $ . f r a g m e n t , O ) , m = ! 1 } , d ( O ) { O & & k ( e ) , O & & k ( o ) , O & & k ( r ) , m t ( y , O ) , O & & k ( f ) , n [ 6 ] ( n u l l ) , z ( c , O ) , _ = ! 1 , h ( ) } } } c o n s t Y c = n = > n . n a m e ; f u n c t i o n Z $ ( n , e , t ) { l e t i ; J e ( n , S i , m = > t ( 2 , i = m ) ) ; 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 ( m , _ ) { 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 ] = = m ) { t ( 0 , s . i n d e x e s [ h ] = _ , s ) , a i ( " i n d e x e s . " + h ) ; r e t u r n } s . i n d e x e s . p u s h ( _ ) , t ( 0 , s ) } c o n s t r = ( m , _ ) = > l = = n u l l ? v o i d 0 : l . s h o w ( m , _ ) , 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 ( m ) { t e [ m ? " u n s h i f t " : " p u s h " ] ( ( ) = > { l = m , t ( 1 , l ) } ) } f u n c t i o n f ( m ) { s = m , t ( 0 , s ) } c o n s t c = m = > { f o r ( l e t _ = 0 ; _ < s . i n d e x e s . l e n g t h ; _ + + ) i f ( s . i n d e x e s [ _ ] = = m . d e t a i l ) { s . i n d e x e s . s p l i c e ( _ , 1 ) , a i ( " i n d e x e s . " + _ ) ; b r e a k } t ( 0 , s ) } , d = m = > { o ( m . d e t a i l . o l d , m . d e t a i l . n e w ) } ; r e t u r n n . $ $ s e t = m = > { " c o l l e c t i o n " i n m & & t ( 0 , s = m . 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 G $ e x t e n d s g e { c o n s t r u c t o r ( e ) { s u p e r ( ) , _ e ( t h i s , e , Z $ , J $ , m e , { c o l l e c t i o n : 0 } ) } } f u n c t i o n K 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 J 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 = E ( ) , s = v ( " s p a n " ) , o = U ( l ) , r = E ( ) , p ( t , " c l a s s " , " i c o n " + n [ 6 ] . i c o n + " s v e l t e - 1 g z 9 b 6 p " ) , p ( s , " c l a s s " , " t x t " ) , p ( e , " t a b i n d e x " , " 0 " ) , p ( e , " c l a s s " , " d r o p d o w n - i t e m c l o s a b l e s v e l t e - 1 g z 9 b 6 p " ) } , m ( d , m ) { w ( d , e , m ) , g ( e , t ) , g ( e , i ) , g ( e , s ) , g ( s , o ) , g ( e , r ) , a | | ( u = [ J ( e , " c l i c k " , A n ( f ) ) , J ( e , " k e y d o w n " , A n ( c ) ) ] , a = ! 0 ) } , p ( d , m ) { n = d } , d ( d ) { d & & k ( e ) , a = ! 1 , E e ( u ) } } } f u n c t i o n X $ ( 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 ] = J c ( K 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 = y 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 ) ; w ( 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 = K c ( s , t , o ) ; i [ o ] ? i [ o ] . p ( r , l ) : ( i [ o ] = J 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 ) { m t ( i , s ) , s & & k ( e ) } } } f u n c t i o n Q $ ( n ) { l e t e , t , i , s , l , o , r , a , u , f ; r e t u r n o = n e w K 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 : [ X $ ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { e = v ( " b u t t o n " ) , t = v ( " i " ) , i = E ( ) , 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 = E ( ) , H ( o . $ $ . f r a g m e n t ) , p ( t , " c l a s s " , " r i - a d d - l i n e " ) , p ( s , " c l a s s " , " t x t " ) , p ( e , " t y p e " , " b u t t o n " ) , p ( e , " c l a s s " , r = " f i e l d - t y p e s - b t n " + n [ 0 ] + " s v e l t e - 1 g z 9 b 6 p " ) } , m ( c , d ) { w ( c , e , d ) , g ( e , t ) , g ( e , i ) , g ( e , s ) , g ( e , l ) , V ( o , e , n u l l ) , a = ! 0 , u | | ( f = J ( e , " c l i c k " , n [ 1 ] ) , u = ! 0 ) } , p ( c , [ d ] ) { c o n s t m = { } ; d & 5 1 2 & & ( m . $ $ s c o p e = { d i r t y : d , c t x : c } ) , o . $ s e t ( m ) , ( ! a | | d & 1 & & r ! = = ( r = " f i e l d - t y p e s - b t n " + c [ 0 ] + " s v e l t e - 1 g z 9 b 6 p " ) ) & & p ( 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 & & k ( e ) , z ( o ) , u = ! 1 , f ( ) } } } f u n c t i o n x $ ( n , e , t ) { l e t { c l a s s : i = " " } = e ; c o n s t s = $ 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 : B . 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 : B . 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 : B . 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 : B . 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 : B . 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 : B . 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 : B . 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 : B . 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 : B . 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 : B . 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 : B . g e t F i e l d T y p e I c o n ( " j s o n " ) } ] ; f u n c t i o n o ( u ) { s ( " s e l e c t " , u ) } c o n s t r = u = > { o ( u . v a l u e ) } , a = ( u , f ) = > { ( f . c o d e = = = " E n t e r " | | f . c o d e = = = " S p
This field is disabled if "Only domains" is set . ` ,position:"top"})),d=!0)},p(b,y){(!c||y&256&&l!==(l=b[8]))&&p(e,"for",l);const S={};y&256&&(S.id=b[8]),y&1&&(S.disabled=!B.isEmpty(b[0].options.onlyDomains)),!a&&y&1&&(a=!0,S.value=b[0].options.exceptDomains,he(()=>a=!1)),r. $ set(S)},i(b){c||(A(r. $ $ .fragment,b),c=!0)},o(b){I(r. $ $ .fragment,b),c=!1},d(b){b&&k(e),b&&k(o),z(r,b),b&&k(u),b&&k(f),d=!1,m()}}}function I4(n){let e,t,i,s,l,o,r,a,u,f,c,d,m;function _(b){n[4](b)}let h={id:n[8]+".options.onlyDomains",disabled:!B.isEmpty(n[0].options.exceptDomains)};return n[0].options.onlyDomains!==void 0&&(h.value=n[0].options.onlyDomains),r=new Vs({props:h}),te.push(()=>de(r,"value",_)),{c(){e=v("label"),t=v("span"),t.textContent="Only domains",i=E(),s=v("i"),o=E(),H(r. $ $ .fragment),u=E(),f=v("div"),f.textContent="Use comma as separator.",p(t,"class","txt"),p(s,"class","ri-information-line link-hint"),p(e,"for",l=n[8]+".options.onlyDomains"),p(f,"class","help-block")},m(b,y){w(b,e,y),g(e,t),g(e,i),g(e,s),w(b,o,y),V(r,b,y),w(b,u,y),w(b,f,y),c=!0,d||(m=Me(He.call(null,s,{text: ` List of domains that are ONLY allowed .
This field is disabled if "Except domains" is set . ` ,position:"top"})),d=!0)},p(b,y){(!c||y&256&&l!==(l=b[8]+".options.onlyDomains"))&&p(e,"for",l);const S={};y&256&&(S.id=b[8]+".options.onlyDomains"),y&1&&(S.disabled=!B.isEmpty(b[0].options.exceptDomains)),!a&&y&1&&(a=!0,S.value=b[0].options.onlyDomains,he(()=>a=!1)),r. $ set(S)},i(b){c||(A(r. $ $ .fragment,b),c=!0)},o(b){I(r. $ $ .fragment,b),c=!1},d(b){b&&k(e),b&&k(o),z(r,b),b&&k(u),b&&k(f),d=!1,m()}}}function L4(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:[A4,({uniqueId:a})=>({8:a}),({uniqueId:a})=>a?256:0]}, $ $ scope:{ctx:n}}}),o=new pe({props:{class:"form-field",name:"schema."+n[1]+".options.onlyDomains", $ $ slots:{default:[I4,({uniqueId:a})=>({8:a}),({uniqueId:a})=>a?256:0]}, $ $ scope:{ctx:n}}}),{c(){e=v("div"),t=v("div"),H(i. $ $ .fragment),s=E(),l=v("div"),H(o. $ $ .fragment),p(t,"class","col-sm-6"),p(l,"class","col-sm-6"),p(e,"class","grid grid-sm")},m(a,u){w(a,e,u),g(e,t),V(i,t,null),g(e,s),g(e,l),V(o,l,null),r=!0},p(a,u){const f={};u&2&&(f.name="schema."+a[1]+".options.exceptDomains"),u&769&&(f. $ $ scope={dirty:u,ctx:a}),i. $ set(f);const c={};u&2&&(c.name="schema."+a[1]+".options.onlyDomains"),u&769&&(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&&k(e),z(i),z(o)}}}function P4(n){let e,t,i;const s=[{key:n[1]},n[2]];function l(r){n[5](r)}let o={ $ $ slots:{options:[L4]}, $ $ scope:{ctx:n}};for(let r=0;r<s.length;r+=1)o=qe(o,s[r]);return n[0]!==void 0&&(o.field=n[0]),e=new di({props:o}),te.push(()=>de(e,"field",l)),e. $ on("rename",n[6]),e. $ on("remove",n[7]),{c(){H(e. $ $ .fragment)},m(r,a){V(e,r,a),i=!0},p(r,[a]){const u=a&6?Mt(s,[a&2&&{key:r[1]},a&4&&Xt(r[2])]):{};a&515&&(u. $ $ scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,u.field=r[0],he(()=>t=!1)),e. $ set(u)},i(r){i||(A(e. $ $ .fragment,r),i=!0)},o(r){I(e. $ $ .fragment,r),i=!1},d(r){z(e,r)}}}function N4(n,e,t){const i=["field","key"];let s=xe(e,i),{field:l}=e,{key:o=""}=e;function r(d){n. $ $ .not_equal(l.options.exceptDomains,d)&&(l.options.exceptDomains=d,t(0,l))}function a(d){n. $ $ .not_equal(l.options.onlyDomains,d)&&(l.options.onlyDomains=d,t(0,l))}function u(d){l=d,t(0,l)}function f(d){Ne.call(this,n,d)}function c(d){Ne.call(this,n,d)}return n. $ $ set=d=>{e=qe(qe({},e),Zt(d)),t(2,s=xe(e,i)),"field"in d&&t(0,l=d.field),"key"in d&&t(1,o=d.key)},[l,o,s,r,a,u,f,c]}class w1 extends ge{constructor(e){super(),_e(this,e,N4,P4,me,{field:0,key:1})}}function F4(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=qe(o,s[r]);return n[0]!==void 0&&(o.field=n[0]),e=new w1({props:o}),te.push(()=>de(e,"field",l)),e. $ on("rename",n[4]),e. $ on("remove",n[5]),{c(){H(e. $ $ .fragment)},m(r,a){V(e,r,a),i=!0},p(r,[a]){const u=a&6?Mt(s,[a&2&&{key:r[1]},a&4&&Xt(r[2])]):{};!t&&a&1&&(t=!0,u.field=r[0],he(()=>t=!1)),e. $ set(u)},i(r){i||(A(e. $ $ .fragment,r),i=!0)},o(r){I(e. $ $ .fragment,r),i=!1},d(r){z(e,r)}}}function R4(n,e,t){const i=["field","key"];let s=xe(e,i),{field:l}=e,{key:o=""}=e;function r(f){l=f,t(0,l)}function a(f){Ne.call(this,n,f)}function u(f){Ne.call(this,n,f)}return n. $ $ set=f=>{e=qe(qe({},e),Zt(f)),t(2,s=xe(e,i)),"field"in f&&t(0,l=f.field),"key"in f&&t(1,o=f.key)},[l,o,s,r,a,u]}class q4 extends ge{constructor(e){super(),_e(this,e,R4,F4,me,{field:0,key:1})}}function j4(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=qe(o,s[r]);return n[0]!==void 0&&(o.field=n[0]),e=new di({props:o}),te.push(()=>de(e,"field",l)),e. $ on("rename",n[4]),e. $ on("remove",n[5]),{c(){H(e. $ $ .fragment)},m(r,a){V(e,r,a),i=!0},p(r,[a]){const u=a&6?Mt(s,[a&2&&{key:r[1]},a&4&&Xt(r[2])]):{};!t&&a&1&&(t=!0,u.field=r[0],he(()=>t=!1)),e. $ set(u)},i(r){i||(A(e. $ $ .fragment,r),i=!0)},o(r){I(e. $ $ .fragment,r),i=!1},d(r){z(e,r)}}}function V4(n,e,t){const i=["field","key"];let s=xe(e,i),{field:l}=e,{key:o=""}=e;function r(f){l=f,t(0,l)}function a(f){Ne.call(this,n,f)}function u(f){Ne.call(this,n,f)}return n. $ $ set=f=>{e=qe(qe({},e),Zt(f)),t(2,
2023-06-11 04:32:41 +08:00
< span class = 'flatpickr-weekday' >
2023-07-27 20:57:20 +08:00
` +Z.join("</span><span class='flatpickr-weekday'>")+ `
2023-06-11 04:32:41 +08:00
< / s p a n >
2023-07-27 20:57:20 +08:00
` }}function le(){t.calendarContainer.classList.add("hasWeeks");var K=ft("div","flatpickr-weekwrapper");K.appendChild(ft("span","flatpickr-weekday",t.l10n.weekAbbreviation));var Z=ft("div","flatpickr-weeks");return K.appendChild(Z),{weekWrapper:K,weekNumbers:Z}}function ee(K,Z){Z===void 0&&(Z=!0);var ne=Z?K:K-t.currentMonth;ne<0&&t._hidePrevMonthArrow===!0||ne>0&&t._hideNextMonthArrow===!0||(t.currentMonth+=ne,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,Fe("onYearChange"),R()),F(),Fe("onMonthChange"),Nn())}function ie(K,Z){if(K===void 0&&(K=!0),Z===void 0&&(Z=!0),t.input.value="",t.altInput!==void 0&&(t.altInput.value=""),t.mobileInput!==void 0&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,Z===!0&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),t.config.enableTime===!0){var ne=Nr(t.config),oe=ne.hours,Ce=ne.minutes,Ie=ne.seconds;m(oe,Ce,Ie)}t.redraw(),K&&Fe("onChange")}function be(){t.isOpen=!1,t.isMobile||(t.calendarContainer!==void 0&&t.calendarContainer.classList.remove("open"),t._input!==void 0&&t._input.classList.remove("active")),Fe("onClose")}function Se(){t.config!==void 0&&Fe("onDestroy");for(var K=t._handlers.length;K--;)t._handlers[K].remove();if(t._handlers=[],t.mobileInput)t.mobileInput.parentNode&&t.mobileInput.parentNode.removeChild(t.mobileInput),t.mobileInput=void 0;else if(t.calendarContainer&&t.calendarContainer.parentNode)if(t.config.static&&t.calendarContainer.parentNode){var Z=t.calendarContainer.parentNode;if(Z.lastChild&&Z.removeChild(Z.lastChild),Z.parentNode){for(;Z.firstChild;)Z.parentNode.insertBefore(Z.firstChild,Z);Z.parentNode.removeChild(Z)}}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(ne){try{delete t[ne]}catch{}})}function Ve(K){return t.calendarContainer.contains(K)}function Be(K){if(t.isOpen&&!t.config.inline){var Z=Tn(K),ne=Ve(Z),oe=Z===t.input||Z===t.altInput||t.element.contains(Z)||K.path&&K.path.indexOf&&(~K.path.indexOf(t.input)||~K.path.indexOf(t.altInput)),Ce=!oe&&!ne&&!Ve(K.relatedTarget),Ie=!t.config.ignoredFocusElements.some(function(Pe){return Pe.contains(Z)});Ce&&Ie&&(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 ke(K){if(!(!K||t.config.minDate&&K<t.config.minDate.getFullYear()||t.config.maxDate&&K>t.config.maxDate.getFullYear())){var Z=K,ne=t.currentYear!==Z;t.currentYear=Z||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)),ne&&(t.redraw(),Fe("onYearChange"),R())}}function Te(K,Z){var ne;Z===void 0&&(Z=!0);var oe=t.parseDate(K,void 0,Z);if(t.config.minDate&&oe&&Mn(oe,t.config.minDate,Z!==void 0?Z:!t.minDateHasTime)<0||t.config.maxDate&&oe&&Mn(oe,t.config.maxDate,Z!==void 0?Z:!t.maxDateHasTime)>0)return!1;if(!t.config.enable&&t.config.disable.length===0)ret
2023-06-11 04:32:41 +08:00
` ),r=v("code"),r.textContent="multipart/form-data",a=U( `
requests , the following normalization rules are applied if the ` ),u=v("code"),u.textContent="json",f=U( ` field
is a
` ),c=v("strong"),c.textContent="plain string",d=U( ` :
2023-07-27 20:57:20 +08:00
` ),m=v("ul"),_=v("li"),_.innerHTML=""true" is converted to the json <code>true</code>",h=E(),b=v("li"),b.innerHTML=""false" is converted to the json <code>false</code>",y=E(),S=v("li"),S.innerHTML=""null" is converted to the json <code>null</code>",C=E(), $ =v("li"), $ .innerHTML=""[1,2,3]" is converted to the json <code>[1,2,3]</code>",T=E(),M=v("li"),D=U(O),L=U(" is converted to the json "),P=v("code"),P.textContent='{"a":1,"b":2}',N=E(),F=v("li"),F.textContent="numeric strings are converted to json number",R=E(),q=v("li"),q.textContent="double quoted strings are left as they are (aka. without normalizations)",j=E(),Y=v("li"),Y.textContent="any other string (empty string too) is double quoted",X=U( `
2023-06-11 04:32:41 +08:00
Alternatively , if you want to avoid the string value normalizations , you can wrap your
2023-07-27 20:57:20 +08:00
data inside an object , eg . ` ),G=v("code"),G.textContent='{"data": anything}',p(i,"class","content"),p(t,"class","alert alert-warning m-b-0 m-t-10"),p(e,"class","block")},m(ee,ie){w(ee,e,ie),g(e,t),g(t,i),g(i,s),g(i,l),g(i,o),g(i,r),g(i,a),g(i,u),g(i,f),g(i,c),g(i,d),g(i,m),g(m,_),g(m,h),g(m,b),g(m,y),g(m,S),g(m,C),g(m, $ ),g(m,T),g(m,M),g(M,D),g(M,L),g(M,P),g(m,N),g(m,F),g(m,R),g(m,q),g(m,j),g(m,Y),g(i,X),g(i,G),le=!0},i(ee){le||(ee&&Qe(()=>{le&&(W||(W=je(e,ot,{duration:150},!0)),W.run(1))}),le=!0)},o(ee){ee&&(W||(W=je(e,ot,{duration:150},!1)),W.run(0)),le=!1},d(ee){ee&&k(e),ee&&W&&W.end()}}}function DC(n){let e,t,i,s,l,o,r;function a(d,m){return d[2]?EC:OC}let u=a(n),f=u(n),c=n[2]&& $ d();return{c(){e=v("button"),t=v("strong"),t.textContent="String value normalizations",i=E(),f.c(),s=E(),c&&c.c(),l=ye(),p(t,"class","txt"),p(e,"type","button"),p(e,"class","inline-flex txt-sm flex-gap-5 link-hint")},m(d,m){w(d,e,m),g(e,t),g(e,i),f.m(e,null),w(d,s,m),c&&c.m(d,m),w(d,l,m),o||(r=J(e,"click",n[4]),o=!0)},p(d,m){u!==(u=a(d))&&(f.d(1),f=u(d),f&&(f.c(),f.m(e,null))),d[2]?c?m&4&&A(c,1):(c= $ d(),c.c(),A(c,1),c.m(l.parentNode,l)):c&&(ae(),I(c,1,1,()=>{c=null}),ue())},d(d){d&&k(e),f.d(),d&&k(s),c&&c.d(d),d&&k(l),o=!1,r()}}}function AC(n){let e,t,i;const s=[{key:n[1]},n[3]];function l(r){n[5](r)}let o={ $ $ slots:{options:[DC]}, $ $ scope:{ctx:n}};for(let r=0;r<s.length;r+=1)o=qe(o,s[r]);return n[0]!==void 0&&(o.field=n[0]),e=new di({props:o}),te.push(()=>de(e,"field",l)),e. $ on("rename",n[6]),e. $ on("remove",n[7]),{c(){H(e. $ $ .fragment)},m(r,a){V(e,r,a),i=!0},p(r,[a]){const u=a&10?Mt(s,[a&2&&{key:r[1]},a&8&&Xt(r[3])]):{};a&260&&(u. $ $ scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,u.field=r[0],he(()=>t=!1)),e. $ set(u)},i(r){i||(A(e. $ $ .fragment,r),i=!0)},o(r){I(e. $ $ .fragment,r),i=!1},d(r){z(e,r)}}}function IC(n,e,t){const i=["field","key"];let s=xe(e,i),{field:l}=e,{key:o=""}=e,r=!1;const a=()=>{t(2,r=!r)};function u(d){l=d,t(0,l)}function f(d){Ne.call(this,n,d)}function c(d){Ne.call(this,n,d)}return n. $ $ set=d=>{e=qe(qe({},e),Zt(d)),t(3,s=xe(e,i)),"field"in d&&t(0,l=d.field),"key"in d&&t(1,o=d.key)},[l,o,r,s,a,u,f,c]}class LC extends ge{constructor(e){super(),_e(this,e,IC,AC,me,{field:0,key:1})}}function PC(n){let e,t=(n[0].ext||"N/A")+"",i,s,l,o=n[0].mimeType+"",r;return{c(){e=v("span"),i=U(t),s=E(),l=v("small"),r=U(o),p(e,"class","txt"),p(l,"class","txt-hint")},m(a,u){w(a,e,u),g(e,i),w(a,s,u),w(a,l,u),g(l,r)},p(a,[u]){u&1&&t!==(t=(a[0].ext||"N/A")+"")&&se(i,t),u&1&&o!==(o=a[0].mimeType+"")&&se(r,o)},i:x,o:x,d(a){a&&k(e),a&&k(s),a&&k(l)}}}function NC(n,e,t){let{item:i={}}=e;return n. $ $ set=s=>{"item"in s&&t(0,i=s.item)},[i]}class Cd extends ge{constructor(e){super(),_e(this,e,NC,PC,me,{item:0})}}const FC=[{ext:".xpm",mimeType:"image/x-xpixmap"},{ext:".7z",mimeType:"application/x-7z-compressed"},{ext:".zip",mimeType:"application/zip"},{ext:".xlsx",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},{ext:".docx",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"},{ext:".pptx",mimeType:"application/vnd.openxmlformats-officedocument.presentationml.presentation"},{ext:".epub",mimeType:"application/epub+zip"},{ext:".jar",mimeType:"application/jar"},{ext:".odt",mimeType:"application/vnd.oasis.opendocument.text"},{ext:".ott",mimeType:"application/vnd.oasis.opendocument.text-template"},{ext:".ods",mimeType:"application/vnd.oasis.opendocument.spreadsheet"},{ext:".ots",mimeType:"application/vnd.oasis.opendocument.spreadsheet-template"},{ext:".odp",mimeType:"application/vnd.oasis.opendocument.presentation"},{ext:".otp",mimeType:"application/vnd.oasis.opendocument.presentation-template"},{ext:".odg",mimeType:"application/vnd.oasis.opendocument.graphics"},{ext:".otg",mimeType:"application/vnd.oasis.opendocument.graphics-template"},{ext:".odf",mimeType:"application/vnd.oasis.opendocument.formula"},{ext:".odc",mimeType:"application/vnd.oasis.opendocument.chart"},{ext:".sxc",mimeType:"application/vnd.sun.xml.calc"},{ext:".pdf",mimeType:"application/pdf"},{ext:".fdf",mimeType:"application/vnd.fdf
Leave empty for no restriction . ` ,position:"top"})),S=!0)},p(M,O){(!y||O&4194304&&l!==(l=M[22]))&&p(e,"for",l);const D={};O&4194304&&(D.id=M[22]),O&8&&(D.items=M[3]),!a&&O&1&&(a=!0,D.keyOfSelected=M[0].options.mimeTypes,he(()=>a=!1)),r. $ set(D);const L={};O&16777217&&(L. $ $ scope={dirty:O,ctx:M}),b. $ set(L)},i(M){y||(A(r. $ $ .fragment,M),A(b. $ $ .fragment,M),y=!0)},o(M){I(r. $ $ .fragment,M),I(b. $ $ .fragment,M),y=!1},d(M){M&&k(e),M&&k(o),z(r,M),M&&k(u),M&&k(f),z(b),S=!1,C()}}}function zC(n){let e;return{c(){e=v("ul"),e.innerHTML= ` < li > < strong > WxH < / s t r o n g >
2023-06-11 04:32:41 +08:00
( eg . 100 x50 ) - crop to WxH viewbox ( from center ) < / l i >
< li > < strong > WxHt < / s t r o n g >
( eg . 100 x50t ) - crop to WxH viewbox ( from top ) < / l i >
< li > < strong > WxHb < / s t r o n g >
( eg . 100 x50b ) - crop to WxH viewbox ( from bottom ) < / l i >
< li > < strong > WxHf < / s t r o n g >
( eg . 100 x50f ) - fit inside a WxH viewbox ( without cropping ) < / l i >
< li > < strong > 0 xH < / s t r o n g >
( eg . 0x50 ) - resize to H height preserving the aspect ratio < / l i >
< li > < strong > Wx0 < / s t r o n g >
2023-07-27 20:57:20 +08:00
( eg . 100 x0 ) - resize to W width preserving the aspect ratio < / l i > ` , p ( e , " c l a s s " , " m - 0 " ) } , m ( t , i ) { w ( t , e , i ) } , p : x , d ( t ) { t & & k ( e ) } } } f u n c t i o n H C ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d , m , _ , h , b , y , S , C , $ , T ; f u n c t i o n M ( D ) { n [ 1 3 ] ( D ) } l e t O = { i d : n [ 2 2 ] , p l a c e h o l d e r : " e g . 5 0 x 5 0 , 4 8 0 x 7 2 0 " } ; r e t u r n n [ 0 ] . o p t i o n s . t h u m b s ! = = v o i d 0 & & ( 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 V s ( { p r o p s : O } ) , t e . p u s h ( ( ) = > d e ( r , " v a l u e " , M ) ) , S = n e w K 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 : [ z 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 = E ( ) , s = v ( " i " ) , o = E ( ) , H ( r . $ $ . f r a g m e n t ) , u = E ( ) , 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 = E ( ) , m = v ( " b u t t o n " ) , _ = v ( " s p a n " ) , _ . 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 " , h = E ( ) , b = v ( " i " ) , y = E ( ) , H ( S . $ $ . f r a g m e n t ) , p ( t , " c l a s s " , " t x t " ) , p ( 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 " ) , p ( e , " f o r " , l = n [ 2 2 ] ) , p ( c , " c l a s s " , " t x t " ) , p ( _ , " c l a s s " , " t x t l i n k - p r i m a r y " ) , p ( b , " c l a s s " , " r i - a r r o w - d r o p - d o w n - f i l l " ) , p ( m , " t y p e " , " b u t t o n " ) , p ( m , " c l a s s " , " i n l i n e - f l e x f l e x - g a p - 0 " ) , p ( f , " c l a s s " , " h e l p - b l o c k " ) } , m ( D , L ) { w ( D , e , L ) , g ( e , t ) , g ( e , i ) , g ( e , s ) , w ( D , o , L ) , V ( r , D , L ) , w ( D , u , L ) , w ( D , f , L ) , g ( f , c ) , g ( f , d ) , g ( f , m ) , g ( m , _ ) , g ( m , h ) , g ( m , b ) , g ( m , y ) , V ( S , m , n u l l ) , C = ! 0 , $ | | ( T = M e ( H 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 ( D , L ) { ( ! C | | L & 4 1 9 4 3 0 4 & & l ! = = ( l = D [ 2 2 ] ) ) & & p ( e , " f o r " , l ) ; c o n s t P = { } ; L & 4 1 9 4 3 0 4 & & ( P . i d = D [ 2 2 ] ) , ! a & & L & 1 & & ( a = ! 0 , P . v a l u e = D [ 0 ] . o p t i o n s . t h u m b s , h e ( ( ) = > a = ! 1 ) ) , r . $ s e t ( P ) ; c o n s t N = { } ; L & 1 6 7 7 7 2 1 6 & & ( N . $ $ s c o p e = { d i r t y : L , c t x : D } ) , S . $ s e t ( N ) } , i ( D ) { C | | ( A ( r . $ $ . f r a g m e n t , D ) , A ( S . $ $ . f r a g m e n t , D ) , C = ! 0 ) } , o ( D ) { I ( r . $ $ . f r a g m e n t , D ) , I ( S . $ $ . f r a g m e n t , D ) , C = ! 1 } , d ( D ) { D & & k ( e ) , D & & k ( o ) , z ( r , D ) , D & & k ( u ) , D & & k ( f ) , z ( S ) , $ = ! 1 , T ( ) } } } f u n c t i o n B 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 = U ( " M a x f i l e s i z e " ) , s = E ( ) , l = v ( " i n p u t " ) , r = E ( ) , 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 . " , p ( e , " f o r " , i = n [ 2 2 ] ) , p ( l , " t y p e " , " n u m b e r " ) , p ( l , " i d " , o = n [ 2 2 ] ) , p ( l , " s t e p " , " 1 " ) , p ( l , " m i n " , " 0 " ) , p ( a , " c l a s s " , " h e l p - b l o c k " ) } , m ( c , d ) { w ( c , e , d ) , g ( e , t ) , w ( c , s , d ) , w ( c , l , d ) , r e ( l , n [ 0 ] . o p t i o n s . m a x S i z e ) , w ( c , r , d ) , w ( c , a , d ) , u | | ( f = J ( l , " i n p u t " , n [ 1 4 ] ) , u = ! 0 ) } , p ( c , d ) { d & 4 1 9 4 3 0 4 & & i ! = = ( i = c [ 2 2 ] ) & & p ( e , " f o r " , i ) , d & 4 1 9 4 3 0 4 & & o ! = = ( o = c [ 2 2 ] ) & & p ( l , " i d " , o ) , d & 1 & & d t ( l . v a l u e ) ! = = c [ 0 ] . o p t i o n s . m a x S i z e & & r e ( l , c [ 0 ] . o p t i o n s . m a x S i z e ) } , d ( c ) { c & & k ( e ) , c & & k ( s ) , c & & k ( l ) , c & & k ( r ) , c & & k ( a ) , u = ! 1 , f ( ) } } } f u n c t i o n T 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 : [ U C , ( { u n i q u e I d : s } ) = > ( { 2 2 : s } ) , ( { u n i q u e I d : s } ) = > s ? 4 1 9 4 3 0 4 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { e = v ( " d i v " ) , H ( t . $ $ . f r a g m e n t ) , p ( e , " c l a s s " , " c o l - s m - 3 " ) } , m ( s , l ) { w ( s , e , l ) , V ( t , e , n u l l ) , i = ! 0 } , p ( s , l ) { c o n s t o = { } ; l & 2 & & ( o . n a m e = " s c h e m a . " + s [ 1 ] + " . o p t i o n s . m a x S e l e c t " ) , l & 2 0 9 7 1 5 2 1 & & ( o . $ $ s c o p e = { d i r t y : l , c t x : s } ) , t . $ s e t ( o ) } , i ( s ) { i | | ( 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 & & k ( e ) , z ( t ) } } } f u n c t i o n U 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 = U ( " M a x s e l e c t " ) , s = E ( ) , l = v ( " i n p u t " ) , p ( e , " f o r " , i = n [ 2 2 ] ) , p ( l , " i d " , o = n [ 2 2 ] ) , p ( l , " t y p e " , " n u m b e r " ) , p ( l , " s t e p " , " 1 " ) , p ( l , " m i n " , " 2 " ) , l . r e q u i r e d = ! 0 } , m ( u , f ) { w ( u , e , f ) , g ( e , t ) , w ( u , s , f ) , w ( u , l , f ) , r e ( l , n [ 0 ] . o p t i o n s . m a x S e l e c t ) , r | | ( a = J ( l , " i n p u t " , n [ 1 5 ] ) , r = ! 0 ) } , p ( u , f ) { f & 4 1 9 4 3 0 4 & & i ! = = ( i = u [ 2 2 ] ) & & p ( e , " f o r " , i ) , f & 4 1 9 4 3 0 4 & & o ! = = ( o = u [ 2 2 ] ) & & p ( l , " i d " , o ) , f & 1 & & d t ( l . v a l u e ) ! = = u [ 0 ] . o p t i o n s . m a x S e l e c t & & r e ( l , u [ 0 ] . o p t i o n s . m a x S e l e c t ) } , d ( u ) { u & & k ( e ) , u & & k ( s ) , u & & k ( l ) , r = ! 1 , a ( ) } } } f u n c t i o n W C ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d , m ; 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 : [ V C , ( { u n i q u e I d : h } ) = > ( { 2 2 : h } ) , ( { u n i q u e I d : h } ) = > h ? 4 1 9 4 3 0 4 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , o = n e w p e ( { p r o p s : { c l a s s : " f o r m - f i e l d " , n a m e : " s c h e m a . " + n [ 1 ] + " . o p t i o n s . t h u m b s " , $ $ s l o t s : { d e f a u l t : [ H C , ( { u n i q u e I d : h } ) = > ( { 2 2 : h } ) , ( { u n i q u e I d : h } ) = > h ? 4 1 9 4 3 0 4 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , f = n e w p e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d " , n a m e : " s c h e m a . " + n [ 1 ] + " . o p t i o n s . m a x S i z e " , $ $ s l o t s : { d e f a u l t : [ B C , ( { u n i q u e I d : h } ) = > ( { 2 2 : h } ) , ( { u n i q u e I d : h } ) = > h ? 4 1 9 4 3 0 4 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) ; l e t _ = ! n [ 2 ] & & T d ( n ) ; r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " d i v " ) , H ( i . $ $ . f r a g m e n t ) , s = E ( ) , l = v ( " d i v " ) , H ( o . $ $ . f r a g m e n t ) , a = E ( ) , u = v ( " d i v " ) , H ( f . $ $ . f r a g m e n t ) , d = E
< span class = "txt" > New collection < / s p a n > ` , p ( i , " t y p e " , " b u t t o n " ) , p ( 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 ) { w ( o , e , r ) , w ( o , t , r ) , w ( o , i , r ) , s | | ( l = J ( i , " c l i c k " , n [ 1 8 ] ) , s = ! 0 ) } , p : x , d ( o ) { o & & k ( e ) , o & & k ( t ) , o & & k ( i ) , s = ! 1 , l ( ) } } } f u n c t i o n Q C ( n ) { l e t e , t , i ; f u n c t i o n s ( o ) { n [ 1 9 ] ( o ) } l e t l = { i d : n [ 3 0 ] , s e a r c h a b l e : n [ 6 ] . 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 [ 6 ] , r e a d o n l y : ! n [ 3 1 ] | | n [ 0 ] . i d , $ $ s l o t s : { a f t e r O p t i o n s : [ X 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 H i ( { p r o p s : l } ) , t e . p u s h ( ( ) = > d e ( e , " k e y O f S e l e c t e d " , s ) ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( o , r ) { V ( e , o , r ) , i = ! 0 } , p ( o , r ) { c o n s t a = { } ; r [ 0 ] & 1 0 7 3 7 4 1 8 2 4 & & ( a . i d = o [ 3 0 ] ) , r [ 0 ] & 6 4 & & ( a . s e a r c h a b l e = o [ 6 ] . l e n g t h > 5 ) , r [ 0 ] & 6 4 & & ( a . i t e m s = o [ 6 ] ) , r [ 0 ] & 1 | r [ 1 ] & 1 & & ( a . r e a d o n l y = ! o [ 3 1 ] | | o [ 0 ] . i d ) , r [ 0 ] & 8 | r [ 1 ] & 2 & & ( 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 , h 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 ) { z ( e , o ) } } } f u n c t i o n x C ( n ) { l e t e , t , i ; f u n c t i o n s ( o ) { n [ 2 0 ] ( o ) } l e t l = { i d : n [ 3 0 ] , i t e m s : n [ 8 ] , r e a d o n l y : ! n [ 3 1 ] } ; 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 H i ( { p r o p s : l } ) , t e . p u s h ( ( ) = > d e ( e , " k e y O f S e l e c t e d " , s ) ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( o , r ) { V ( e , o , r ) , i = ! 0 } , p ( o , r ) { c o n s t a = { } ; r [ 0 ] & 1 0 7 3 7 4 1 8 2 4 & & ( a . i d = o [ 3 0 ] ) , r [ 1 ] & 1 & & ( a . r e a d o n l y = ! o [ 3 1 ] ) , ! t & & r [ 0 ] & 4 & & ( t = ! 0 , a . k e y O f S e l e c t e d = o [ 2 ] , h 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 ) { z ( e , o ) } } } f u n c t i o n e T ( n ) { l e t e , t , i , s , l , o , r , a , u , f ; r e t u r n i = n e w p e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d " + ( n [ 3 1 ] ? " " : " r e a d o n l y " ) , i n l i n e E r r o r : ! 0 , n a m e : " s c h e m a . " + n [ 1 ] + " . o p t i o n s . c o l l e c t i o n I d " , $ $ s l o t s : { d e f a u l t : [ Q C , ( { u n i q u e I d : c } ) = > ( { 3 0 : c } ) , ( { u n i q u e I d : c } ) = > [ c ? 1 0 7 3 7 4 1 8 2 4 : 0 ] ] } , $ $ s c o p e : { c t x : n } } } ) , r = n e w p e ( { p r o p s : { c l a s s : " f o r m - f i e l d f o r m - f i e l d - s i n g l e - m u l t i p l e - s e l e c t " + ( n [ 3 1 ] ? " " : " r e a d o n l y " ) , i n l i n e E r r o r : ! 0 , $ $ s l o t s : { d e f a u l t : [ x C , ( { u n i q u e I d : c } ) = > ( { 3 0 : c } ) , ( { u n i q u e I d : c } ) = > [ c ? 1 0 7 3 7 4 1 8 2 4 : 0 ] ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { e = v ( " d i v " ) , t = E ( ) , H ( i . $ $ . f r a g m e n t ) , s = E ( ) , l = v ( " d i v " ) , o = E ( ) , H ( r . $ $ . f r a g m e n t ) , a = E ( ) , u = v ( " d i v " ) , p ( e , " c l a s s " , " s e p a r a t o r " ) , p ( l , " c l a s s " , " s e p a r a t o r " ) , p ( u , " c l a s s " , " s e p a r a t o r " ) } , m ( c , d ) { w ( c , e , d ) , w ( c , t , d ) , V ( i , c , d ) , w ( c , s , d ) , w ( c , l , d ) , w ( c , o , d ) , V ( r , c , d ) , w ( c , a , d ) , w ( c , u , d ) , f = ! 0 } , p ( c , d ) { c o n s t m = { } ; d [ 1 ] & 1 & & ( m . c l a s s = " f o r m - f i e l d r e q u i r e d " + ( c [ 3 1 ] ? " " : " r e a d o n l y " ) ) , d [ 0 ] & 2 & & ( m . n a m e = " s c h e m a . " + c [ 1 ] + " . o p t i o n s . c o l l e c t i o n I d " ) , d [ 0 ] & 1 0 7 3 7 4 1 8 9 7 | d [ 1 ] & 3 & & ( m . $ $ s c o p e = { d i r t y : d , c t x : c } ) , i . $ s e t ( m ) ; c o n s t _ = { } ; d [ 1 ] & 1 & & ( _ . 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 " + ( c [ 3 1 ] ? " " : " r e a d o n l y " ) ) , d [ 0 ] & 1 0 7 3 7 4 1 8 2 8 | d [ 1 ] & 3 & & ( _ . $ $ s c o p e = { d i r t y : d , c t x : c } ) , r . $ s e t ( _ ) } , i ( c ) { f | | ( A ( i . $ $ . f r a g m e n t , c ) , A ( r . $ $ . f r a g m e n t , c ) , f = ! 0 ) } , o ( c ) { I ( i . $ $ . f r a g m e n t , c ) , I ( r . $ $ . f r a g m e n t , c ) , f = ! 1 } , d ( c ) { c & & k ( e ) , c & & k ( t ) , z ( i , c ) , c & & k ( s ) , c & & k ( l ) , c & & k ( o ) , z ( r , c ) , c & & k ( a ) , c & & k ( u ) } } } f u n c t i o n M 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 : [ t T , ( { u n i q u e I d : r } ) = > ( { 3 0 : r } ) , ( { u n i q u e I d : r } ) = > [ r ? 1 0 7 3 7 4 1 8 2 4 : 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 : [ n T , ( { u n i q u e I d : r } ) = > ( { 3 0 : r } ) , ( { u n i q u e I d : r } ) = > [ r ? 1 0 7 3 7 4 1 8 2 4 : 0 ] ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { e = v ( " d i v " ) , H ( t . $ $ . f r a g m e n t ) , i = E ( ) , s = v ( " d i v " ) , H ( l . $ $ . f r a g m e n t ) , p ( e , " c l a s s " , " c o l - s m - 6 " ) , p ( s , " c l a s s " , " c o l - s m - 6 " ) } , m ( r , a ) { w ( r , e , a ) , V ( t , e , n u l l ) , w ( r , i , a ) , w ( r , s , a ) , V ( l , s , n u l l ) , o = ! 0 } , p ( r , a ) { c o n s t u = { } ; a [ 0 ] & 2 & & ( u . n a m e = " s c h e m a . " + r [ 1 ] + " . o p t i o n s . m i n S e l e c t " ) , a [ 0 ] & 1 0 7 3 7 4 1 8 2 5 | a [ 1 ] & 2 & & ( 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 0 7 3 7 4 1 8 2 5 | a [ 1 ] & 2 & & ( 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 & & k ( e ) , z ( t ) , r & & k ( i ) , r & & k ( s ) , z ( l ) } } } f u n c t i o n t T ( 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 = U ( " M i n s e l e c t " ) , s = E ( ) , l = v ( " i n p u t " ) , p ( e , " f o r " , i = n [ 3 0 ] ) , p ( l , " t y p e " , " n u m b e r " ) , p ( l , " i d " , o = n [ 3 0 ] ) , p ( l , " s t e p " , " 1 " ) , p ( l , " m i n " , " 1 " ) , p ( 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 ) { w ( u , e , f ) , g ( e , t ) , w ( u , s , f ) , w ( u , l , f ) , r e ( l , n [ 0 ] . o p t i o n s . m i n S e l e c t ) , r | | ( a = J ( l , " i n p u t " , n
2023-06-11 04:32:41 +08:00
` ),t=v("code"),t.textContent="username",i=U( ` ,
` ),s=v("code"),s.textContent="email",l=U( ` ,
` ),o=v("code"),o.textContent="emailVisibility",r=U( ` ,
2023-07-27 20:57:20 +08:00
` ),a=v("code"),a.textContent="verified",p(t,"class","txt-sm"),p(s,"class","txt-sm"),p(o,"class","txt-sm"),p(a,"class","txt-sm")},m(u,f){w(u,e,f),w(u,t,f),w(u,i,f),w(u,s,f),w(u,l,f),w(u,o,f),w(u,r,f),w(u,a,f)},d(u){u&&k(e),u&&k(t),u&&k(i),u&&k(s),u&&k(l),u&&k(o),u&&k(r),u&&k(a)}}}function dT(n){let e,t,i,s;function l(u){n[6](u,n[17],n[18],n[19])}function o(){return n[7](n[19])}var r=n[1][n[17].type];function a(u){let f={key:u[4](u[17])};return u[17]!==void 0&&(f.field=u[17]),{props:f}}return r&&(e=Rt(r,a(n)),te.push(()=>de(e,"field",l)),e. $ on("remove",o),e. $ on("rename",n[8])),{c(){e&&H(e. $ $ .fragment),i=E()},m(u,f){e&&V(e,u,f),w(u,i,f),s=!0},p(u,f){n=u;const c={};if(f&1&&(c.key=n[4](n[17])),!t&&f&1&&(t=!0,c.field=n[17],he(()=>t=!1)),f&1&&r!==(r=n[1][n[17].type])){if(e){ae();const d=e;I(d. $ $ .fragment,1,0,()=>{z(d,1)}),ue()}r?(e=Rt(r,a(n)),te.push(()=>de(e,"field",l)),e. $ on("remove",o),e. $ on("rename",n[8]),H(e. $ $ .fragment),A(e. $ $ .fragment,1),V(e,i.parentNode,i)):e=null}else r&&e. $ set(c)},i(u){s||(e&&A(e. $ $ .fragment,u),s=!0)},o(u){e&&I(e. $ $ .fragment,u),s=!1},d(u){e&&z(e,u),u&&k(i)}}}function Ad(n,e){let t,i,s,l;function o(a){e[9](a)}let r={index:e[19],disabled:e[17].toDelete||e[17].id&&e[17].system,dragHandleClass:"drag-handle-wrapper", $ $ slots:{default:[dT]}, $ $ scope:{ctx:e}};return e[0].schema!==void 0&&(r.list=e[0].schema),i=new Nl({props:r}),te.push(()=>de(i,"list",o)),i. $ on("drag",e[10]),i. $ on("sort",e[11]),{key:n,first:null,c(){t=ye(),H(i. $ $ .fragment),this.first=t},m(a,u){w(a,t,u),V(i,a,u),l=!0},p(a,u){e=a;const f={};u&1&&(f.index=e[19]),u&1&&(f.disabled=e[17].toDelete||e[17].id&&e[17].system),u&1048577&&(f. $ $ scope={dirty:u,ctx:e}),!s&&u&1&&(s=!0,f.list=e[0].schema,he(()=>s=!1)),i. $ set(f)},i(a){l||(A(i. $ $ .fragment,a),l=!0)},o(a){I(i. $ $ .fragment,a),l=!1},d(a){a&&k(t),z(i,a)}}}function pT(n){let e,t,i,s,l,o,r,a,u,f,c,d,m=[],_=new Map,h,b,y,S,C, $ ,T,M,O=n[0]. $ isAuth&&Dd(),D=n[0].schema;const L=F=>F[17];for(let F=0;F<D.length;F+=1){let R=Ed(n,D,F),q=L(R);_.set(q,m[F]=Ad(q,R))}b=new e4({props:{class:"btn btn-block btn-outline"}}),b. $ on("select",n[12]);function P(F){n[13](F)}let N={};return n[0]!==void 0&&(N.collection=n[0]), $ =new G $ ({props:N}),te.push(()=>de( $ ,"collection",P)),{c(){e=v("div"),t=v("p"),i=U( ` System fields :
2023-06-11 04:32:41 +08:00
` ),s=v("code"),s.textContent="id",l=U( ` ,
` ),o=v("code"),o.textContent="created",r=U( ` ,
` ),a=v("code"),a.textContent="updated",u=E(),O&&O.c(),f=U( `
2023-07-27 20:57:20 +08:00
. ` ),c=E(),d=v("div");for(let F=0;F<m.length;F+=1)m[F].c();h=E(),H(b. $ $ .fragment),y=E(),S=v("hr"),C=E(),H( $ . $ $ .fragment),p(s,"class","txt-sm"),p(o,"class","txt-sm"),p(a,"class","txt-sm"),p(t,"class","txt-sm"),p(e,"class","block m-b-25"),p(d,"class","schema-fields")},m(F,R){w(F,e,R),g(e,t),g(t,i),g(t,s),g(t,l),g(t,o),g(t,r),g(t,a),g(t,u),O&&O.m(t,null),g(t,f),w(F,c,R),w(F,d,R);for(let q=0;q<m.length;q+=1)m[q]&&m[q].m(d,null);w(F,h,R),V(b,F,R),w(F,y,R),w(F,S,R),w(F,C,R),V( $ ,F,R),M=!0},p(F,[R]){F[0]. $ isAuth?O||(O=Dd(),O.c(),O.m(t,f)):O&&(O.d(1),O=null),R&55&&(D=F[0].schema,ae(),m=bt(m,R,L,1,F,D,_,d,Bt,Ad,null,Ed),ue());const q={};!T&&R&1&&(T=!0,q.collection=F[0],he(()=>T=!1)), $ . $ set(q)},i(F){if(!M){for(let R=0;R<D.length;R+=1)A(m[R]);A(b. $ $ .fragment,F),A( $ . $ $ .fragment,F),M=!0}},o(F){for(let R=0;R<m.length;R+=1)I(m[R]);I(b. $ $ .fragment,F),I( $ . $ $ .fragment,F),M=!1},d(F){F&&k(e),O&&O.d(),F&&k(c),F&&k(d);for(let R=0;R<m.length;R+=1)m[R].d();F&&k(h),z(b,F),F&&k(y),F&&k(S),F&&k(C),z( $ ,F)}}}function mT(n,e,t){let i,{collection:s=new yn}=e;const l={text:v4,number:C4,bool:O4,email:w1,url:q4,editor:z4,date:iC,select:MC,json:LC,file:GC,relation:aT};function o( $ ){s.schema[ $ ]&&(s.schema.splice( $ ,1),t(0,s))}function r( $ ="text"){const T=new kn({name:a(),type: $ });T.onMountSelect=!0,s.schema.push(T),t(0,s)}function a( $ ="field"){let T="";for(;u( $ +T);)++T;return $ +T}function u( $ ){return!!s.schema.find(T=>T.name=== $ )}function f( $ ){return i.findIndex(T=>T=== $ )}function c( $ ,T){var M;!((M=s==null?void 0:s.schema)!=null&&M.length)|| $ ===T||!T||t(0,s.indexes=s.indexes.map(O=>B.replaceIndexColumn(O, $ ,T)),s)}function d( $ ,T,M,O){M[O]= $ ,t(0,s)}const m= $ =>o( $ ),_= $ =>c( $ .detail.oldName, $ .detail.newName);function h( $ ){n. $ $ .not_equal(s.schema, $ )&&(s.schema= $ ,t(0,s))}const b= $ =>{if(! $ .detail)return;const T= $ .detail.target;T.style.opacity=0,setTimeout(()=>{var M;(M=T==null?void 0:T.style)==null||M.removeProperty("opacity")},0), $ .detail.dataTransfer.setDragImage(T,0,0)},y=()=>{en({})},S= $ =>r( $ .detail);function C( $ ){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 yn),t(0,s.schema=[],s)),n. $ $ .dirty&1&&(i=s.schema.filter( $ =>! $ .toDelete)||[])},[s,l,o,r,f,c,d,m,_,h,b,y,S,C]}class hT extends ge{constructor(e){super(),_e(this,e,mT,pT,me,{collection:0})}}const _T=n=>({isAdminOnly:n&512}),Id=n=>({isAdminOnly:n[9]}),gT=n=>({isAdminOnly:n&512}),Ld=n=>({isAdminOnly:n[9]}),bT=n=>({isAdminOnly:n&512}),Pd=n=>({isAdminOnly:n[9]});function vT(n){let e,t;return e=new pe({props:{class:"form-field rule-field "+(n[4]?"requied":"")+" "+(n[9]?"disabled":""),name:n[3], $ $ slots:{default:[kT,({uniqueId:i})=>({18:i}),({uniqueId:i})=>i?262144:0]}, $ $ scope:{ctx:n}}}),{c(){H(e. $ $ .fragment)},m(i,s){V(e,i,s),t=!0},p(i,s){const l={};s&528&&(l.class="form-field rule-field "+(i[4]?"requied":"")+" "+(i[9]?"disabled":"")),s&8&&(l.name=i[3]),s&295655&&(l. $ $ scope={dirty:s,ctx:i}),e. $ set(l)},i(i){t||(A(e. $ $ .fragment,i),t=!0)},o(i){I(e. $ $ .fragment,i),t=!1},d(i){z(e,i)}}}function yT(n){let e;return{c(){e=v("div"),e.innerHTML='<span class="loader"></span>',p(e,"class","txt-center")},m(t,i){w(t,e,i)},p:x,i:x,o:x,d(t){t&&k(e)}}}function Nd(n){let e,t,i;return{c(){e=v("button"),e.innerHTML= ` < i class = "ri-lock-line" > < / i >
2023-07-22 23:50:40 +08:00
< span class = "txt" > Set Admins only < / s p a n > ` , p ( e , " t y p e " , " b u t t o n " ) , p ( e , " c l a s s " , " b t n b t n - s m b t n - t r a n s p a r e n t b t n - h i n t l o c k - t o g g l e s v e l t e - 1 a k u a z q " ) } , m ( s , l ) { w ( s , e , l ) , t | | ( i = J ( e , " c l i c k " , n [ 1 1 ] ) , t = ! 0 ) } , p : x , d ( s ) { s & & k ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n F d ( 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 m a l l c l a s s = " t x t s v e l t e - 1 a k u a z q " > U n l o c k a n d s e t c u s t o m r u l e < / s m a l l >
2023-08-07 02:51:55 +08:00
< div class = "icon svelte-1akuazq" > < i class = "ri-lock-unlock-line svelte-1akuazq" > < / i > < / d i v > ` , p ( e , " t y p e " , " b u t t o n " ) , p ( e , " c l a s s " , " u n l o c k - o v e r l a y s v e l t e - 1 a k u a z q " ) , p ( e , " a r i a - l a b e l " , " U n l o c k a n d s e t c u s t o m r u l e " ) } , m ( o , r ) { w ( o , e , r ) , i = ! 0 , s | | ( l = J ( e , " c l i c k " , n [ 1 0 ] ) , s = ! 0 ) } , p : x , i ( o ) { i | | ( o & & Q e ( ( ) = > { i & & ( t | | ( t = j e ( e , K t , { d u r a t i o n : 1 5 0 , s t a r t : . 9 8 } , ! 0 ) ) , t . r u n ( 1 ) ) } ) , i = ! 0 ) } , o ( o ) { o & & ( t | | ( t = j e ( e , K t , { d u r a t i o n : 1 5 0 , s t a r t : . 9 8 } , ! 1 ) ) , t . r u n ( 0 ) ) , i = ! 1 } , d ( o ) { o & & k ( e ) , o & & t & & t . e n d ( ) , s = ! 1 , l ( ) } } } f u n c t i o n k T ( n ) { l e t e , t , i , s , l , o , r = n [ 9 ] ? " - A d m i n s o n l y " : " " , a , u , f , c , d , m , _ , h , b , y , S ; c o n s t C = n [ 1 2 ] . b e f o r e L a b e l , $ = y t ( C , n , n [ 1 5 ] , P d ) , T = n [ 1 2 ] . a f t e r L a b e l , M = y t ( T , n , n [ 1 5 ] , L d ) ; l e t O = ! n [ 9 ] & & N d ( n ) ; f u n c t i o n D ( q ) { n [ 1 4 ] ( q ) } v a r L = n [ 7 ] ; f u n c t i o n P ( q ) { l e t j = { i d : q [ 1 8 ] , b a s e C o l l e c t i o n : q [ 1 ] , d i s a b l e d : q [ 9 ] , p l a c e h o l d e r : q [ 9 ] ? " " : q [ 5 ] } ; r e t u r n q [ 0 ] ! = = v o i d 0 & & ( j . v a l u e = q [ 0 ] ) , { p r o p s : j } } L & & ( m = R t ( L , P ( n ) ) , n [ 1 3 ] ( m ) , t e . p u s h ( ( ) = > d e ( m , " v a l u e " , D ) ) ) ; l e t N = n [ 9 ] & & F d ( n ) ; c o n s t F = n [ 1 2 ] . d e f a u l t , R = y t ( F , n , n [ 1 5 ] , I d ) ; r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " l a b e l " ) , $ & & $ . c ( ) , i = E ( ) , s = v ( " s p a n " ) , l = U ( n [ 2 ] ) , o = E ( ) , a = U ( r ) , u = E ( ) , M & & M . c ( ) , f = E ( ) , O & & O . c ( ) , d = E ( ) , m & & H ( m . $ $ . f r a g m e n t ) , h = E ( ) , N & & N . c ( ) , b = E ( ) , y = v ( " d i v " ) , R & & R . c ( ) , p ( s , " c l a s s " , " t x t " ) , Q ( s , " t x t - h i n t " , n [ 9 ] ) , p ( t , " f o r " , c = n [ 1 8 ] ) , p ( e , " c l a s s " , " i n p u t - w r a p p e r s v e l t e - 1 a k u a z q " ) , p ( y , " c l a s s " , " h e l p - b l o c k " ) } , m ( q , j ) { w ( q , e , j ) , g ( e , t ) , $ & & $ . m ( t , n u l l ) , g ( t , i ) , g ( t , s ) , g ( s , l ) , g ( s , o ) , g ( s , a ) , g ( t , u ) , M & & M . m ( t , n u l l ) , g ( t , f ) , O & & O . m ( t , n u l l ) , g ( e , d ) , m & & V ( m , e , n u l l ) , g ( e , h ) , N & & N . m ( e , n u l l ) , w ( q , b , j ) , w ( q , y , j ) , R & & R . m ( y , n u l l ) , S = ! 0 } , p ( q , j ) { $ & & $ . p & & ( ! S | | j & 3 3 2 8 0 ) & & w t ( $ , C , q , q [ 1 5 ] , S ? k t ( C , q [ 1 5 ] , j , b T ) : S t ( q [ 1 5 ] ) , P d ) , ( ! S | | j & 4 ) & & s e ( l , q [ 2 ] ) , ( ! S | | j & 5 1 2 ) & & r ! = = ( r = q [ 9 ] ? " - A d m i n s o n l y " : " " ) & & s e ( a , r ) , ( ! S | | j & 5 1 2 ) & & Q ( s , " t x t - h i n t " , q [ 9 ] ) , M & & M . p & & ( ! S | | j & 3 3 2 8 0 ) & & w t ( M , T , q , q [ 1 5 ] , S ? k t ( T , q [ 1 5 ] , j , g T ) : S t ( q [ 1 5 ] ) , L d ) , q [ 9 ] ? O & & ( O . d ( 1 ) , O = n u l l ) : O ? O . p ( q , j ) : ( O = N d ( q ) , O . c ( ) , O . m ( t , n u l l ) ) , ( ! S | | j & 2 6 2 1 4 4 & & c ! = = ( c = q [ 1 8 ] ) ) & & p ( t , " f o r " , c ) ; c o n s t Y = { } ; i f ( j & 2 6 2 1 4 4 & & ( Y . i d = q [ 1 8 ] ) , j & 2 & & ( Y . b a s e C o l l e c t i o n = q [ 1 ] ) , j & 5 1 2 & & ( Y . d i s a b l e d = q [ 9 ] ) , j & 5 4 4 & & ( Y . p l a c e h o l d e r = q [ 9 ] ? " " : q [ 5 ] ) , ! _ & & j & 1 & & ( _ = ! 0 , Y . v a l u e = q [ 0 ] , h e ( ( ) = > _ = ! 1 ) ) , j & 1 2 8 & & L ! = = ( L = q [ 7 ] ) ) { i f ( m ) { a e ( ) ; c o n s t X = m ; I ( X . $ $ . f r a g m e n t , 1 , 0 , ( ) = > { z ( X , 1 ) } ) , u e ( ) } L ? ( m = R t ( L , P ( q ) ) , q [ 1 3 ] ( m ) , t e . p u s h ( ( ) = > d e ( m , " v a l u e " , D ) ) , H ( m . $ $ . f r a g m e n t ) , A ( m . $ $ . f r a g m e n t , 1 ) , V ( m , e , h ) ) : m = n u l l } e l s e L & & m . $ s e t ( Y ) ; q [ 9 ] ? N ? ( N . p ( q , j ) , j & 5 1 2 & & A ( N , 1 ) ) : ( N = F d ( q ) , N . c ( ) , A ( N , 1 ) , N . m ( e , n u l l ) ) : N & & ( a e ( ) , I ( N , 1 , 1 , ( ) = > { N = n u l l } ) , u e ( ) ) , R & & R . p & & ( ! S | | j & 3 3 2 8 0 ) & & w t ( R , F , q , q [ 1 5 ] , S ? k t ( F , q [ 1 5 ] , j , _ T ) : S t ( q [ 1 5 ] ) , I d ) } , i ( q ) { S | | ( A ( $ , q ) , A ( M , q ) , m & & A ( m . $ $ . f r a g m e n t , q ) , A ( N ) , A ( R , q ) , S = ! 0 ) } , o ( q ) { I ( $ , q ) , I ( M , q ) , m & & I ( m . $ $ . f r a g m e n t , q ) , I ( N ) , I ( R , q ) , S = ! 1 } , d ( q ) { q & & k ( e ) , $ & & $ . d ( q ) , M & & M . d ( q ) , O & & O . d ( ) , n [ 1 3 ] ( n u l l ) , m & & z ( m ) , N & & N . d ( ) , q & & k ( b ) , q & & k ( y ) , R & & R . d ( q ) } } } f u n c t i o n w T ( n ) { l e t e , t , i , s ; c o n s t l = [ y T , v T ] , o = [ ] ; f u n c t i o n r ( a , u ) { r e t u r n a [ 8 ] ? 0 : 1 } r e t u r n e = r ( n ) , t = o [ e ] = l [ e ] ( n ) , { c ( ) { t . c ( ) , i = y e ( ) } , m ( a , u ) { o [ e ] . m ( a , u ) , w ( a , i , u ) , s = ! 0 } , p ( a , [ u ] ) { l e t f = e ; e = r ( a ) , e = = = f ? o [ e ] . p ( a , u ) : ( a e ( ) , I ( o [ f ] , 1 , 1 , ( ) = > { o [ f ] = n u l l } ) , u e ( ) , t = o [ e ] , t ? t . p ( a , u ) : ( t = o [ e ] = l [ e ] ( a ) , t . c ( ) ) , 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 & & k ( i ) } } } l e t R d ; f u n c t i o n S T ( n , e , t ) { l e t i , { $ $ s l o t s : s = { } , $ $ s c o p e : l } = e , { c o l l e c t i o n : o = n u l l } = e , { r u l e : r = n u l l } = e , { l a b e l : a = " R u l e " } = e , { f o r m K e y : u = " r u l e " } = e , { r e q u i r e d : f = ! 1 } = e , { p l a c e h o l d e r : c = " L e a v e e m p t y t o g r a n t e v e r y o n e a c c e s s . . . " } = e , d = n u l l , m = n u l l , _ = R d , h = ! 1 ; b ( ) ; a s y n c f u n c t i o n b ( ) { _ | | h | | ( t ( 8 , h = ! 0 ) , t ( 7 , _ = ( a w a i t a 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 - 7 a 0 e d a b 1 . 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 - 7 a 0 e d a b 1 . j s " , " . / i n d e x - f d 4 2 8 9 f b . j s " ] , i m p o r t . m e t a . u r l ) ) . d e f a u l t ) , R d = _ , t ( 8 , h = ! 1 ) ) } a s y n c f u n c t i o n y ( ) { t ( 0 , r = m | | " " ) , a w a i t f n ( ) , d = = n u l l | | d . f o c u s ( ) } a s y n c f u n c t i o n S ( ) { m = r , t ( 0 , r = n u l l ) } f u n c t i o n C ( T ) { t e [ T ? " u n s h i f t " : " p u s h " ] ( ( ) = > { d = T , t ( 6 , d ) } ) } f u n c t i o n $ ( T ) { r = T , t ( 0 , r ) } r e t u r n n . $ $ s e t = T = > { " c o l l e c t i o n " i n T & & t ( 1 , o = T . c o l l e c t i o n ) , " r u l e " i n T & & t ( 0 , r = T . r u l e ) , " l a b e l " i n T & & t ( 2 , a = T . l a b e l ) , " f o r m K e y " i n T & & t ( 3 , u = T . f o r m K e y ) , " r e q u i r e d " i n T & & t ( 4 , f = T . r e q u i r e d ) , " p l a c e h o l d e r " i n T & & t ( 5 , c = T . p l a c e h o l d e r ) , " $ $ s c o p e " i n T & & t ( 1 5 , l = T . $ $ s c o p e ) } , n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 1 & & t ( 9 , i = r = = = n u l l ) } , [ r , o , a , u , f , c , d , _ , h , i , y , S , s , C , $ , l ] } c l a s s O s e x t e n d s g e { c o n s t r u c t o r ( e ) { s u p e r ( ) , _ e ( t h i s , e , S T , w T , m e , { c o l l e c t i o n : 1 , r u l e : 0 , l a b e l : 2 , f o r m K e y : 3 , r e q u i r e d : 4 , p l a c e h o l d e r : 5 } ) } } f u n c t i o n q d ( n , e , t ) { c o n s t i = n . s l i c
2023-06-11 04:32:41 +08:00
< code > @ request . query . * < / c o d e >
< code > @ request . data . * < / c o d e >
< code > @ request . auth . * < / c o d e > ` , m = E ( ) , _ = v ( " h r " ) , h = E ( ) , b = v ( " p " ) , b . 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 = E ( ) , S = v ( " d i v " ) , S . i n n e r H T M L = " < c o d e > @ c o l l e c t i o n . A N Y _ C O L L E C T I O N _ N A M E . * < / c o d e > " , C = E ( ) , $ = v ( " h r " ) , T = E ( ) , M = v ( " p " ) , M . i n n e r H T M L = ` E x a m p l e r u l e :
< br / >
2023-07-27 20:57:20 +08:00
< code > @ request . auth . id != & quot ; & quot ; & amp ; & amp ; created & gt ; & quot ; 2022 - 01 - 01 00 : 00 : 00 & quot ; < / c o d e > ` , p ( s , " c l a s s " , " m - b - 0 " ) , p ( o , " c l a s s " , " i n l i n e - f l e x f l e x - g a p - 5 " ) , p ( a , " c l a s s " , " m - t - 1 0 m - b - 5 " ) , p ( f , " c l a s s " , " m - b - 0 " ) , p ( d , " c l a s s " , " i n l i n e - f l e x f l e x - g a p - 5 " ) , p ( _ , " c l a s s " , " m - t - 1 0 m - b - 5 " ) , p ( b , " c l a s s " , " m - b - 0 " ) , p ( S , " c l a s s " , " i n l i n e - f l e x f l e x - g a p - 5 " ) , p ( $ , " c l a s s " , " m - t - 1 0 m - b - 5 " ) , p ( i , " c l a s s " , " c o n t e n t " ) , p ( 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 ( N , F ) { w ( N , e , F ) , g ( e , t ) , g ( t , i ) , g ( i , s ) , g ( i , l ) , g ( i , o ) ; f o r ( l e t R = 0 ; R < P . l e n g t h ; R + = 1 ) P [ R ] & & P [ R ] . m ( o , n u l l ) ; g ( i , r ) , g ( i , a ) , g ( i , u ) , g ( i , f ) , g ( i , c ) , g ( i , d ) , g ( i , m ) , g ( i , _ ) , g ( i , h ) , g ( i , b ) , g ( i , y ) , g ( i , S ) , g ( i , C ) , g ( i , $ ) , g ( i , T ) , g ( i , M ) , D = ! 0 } , p ( N , F ) { i f ( F & 4 ) { L = N [ 2 ] ; l e t R ; f o r ( R = 0 ; R < L . l e n g t h ; R + = 1 ) { c o n s t q = q d ( N , L , R ) ; P [ R ] ? P [ R ] . p ( q , F ) : ( P [ R ] = V d ( q ) , P [ R ] . c ( ) , P [ R ] . m ( o , n u l l ) ) } f o r ( ; R < P . l e n g t h ; R + = 1 ) P [ R ] . d ( 1 ) ; P . l e n g t h = L . l e n g t h } } , i ( N ) { D | | ( N & & Q e ( ( ) = > { D & & ( O | | ( O = j e ( e , o t , { d u r a t i o n : 1 5 0 } , ! 0 ) ) , O . r u n ( 1 ) ) } ) , D = ! 0 ) } , o ( N ) { N & & ( O | | ( O = j e ( e , o t , { d u r a t i o n : 1 5 0 } , ! 1 ) ) , O . r u n ( 0 ) ) , D = ! 1 } , d ( N ) { N & & k ( e ) , m t ( P , N ) , N & & O & & O . e n d ( ) } } } f u n c t i o n V d ( n ) { l e t e , t = n [ 1 1 ] + " " , i ; r e t u r n { c ( ) { e = v ( " c o d e " ) , i = U ( t ) } , m ( s , l ) { w ( s , e , l ) , g ( e , i ) } , p ( s , l ) { l & 4 & & t ! = = ( t = s [ 1 1 ] + " " ) & & s e ( i , t ) } , d ( s ) { s & & k ( e ) } } } f u n c t i o n z d ( n ) { l e t e , t , i , s , l , o , r , a , u ; f u n c t i o n f ( b ) { n [ 6 ] ( b ) } 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 ] , $ $ s l o t s : { a f t e r L a b e l : [ $ T , ( { i s A d m i n O n l y : b } ) = > ( { 1 0 : b } ) , ( { i s A d m i n O n l y : b } ) = > b ? 1 0 2 4 : 0 ] } , $ $ s c o p e : { c t x : n } } ; n [ 0 ] . c r e a t e R u l e ! = = v o i d 0 & & ( c . r u l e = n [ 0 ] . c r e a t e R u l e ) , e = n e w O s ( { p r o p s : c } ) , t e . p u s h ( ( ) = > d e ( e , " r u l e " , f ) ) ; f u n c t i o n d ( b ) { n [ 7 ] ( b ) } l e t m = { 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 & & ( m . r u l e = n [ 0 ] . u p d a t e R u l e ) , s = n e w O s ( { p r o p s : m } ) , t e . p u s h ( ( ) = > d e ( s , " r u l e " , d ) ) ; f u n c t i o n _ ( b ) { n [ 8 ] ( b ) } l e t h = { 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 & & ( h . r u l e = n [ 0 ] . d e l e t e R u l e ) , r = n e w O s ( { p r o p s : h } ) , t e . p u s h ( ( ) = > d e ( r , " r u l e " , _ ) ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) , i = E ( ) , H ( s . $ $ . f r a g m e n t ) , o = E ( ) , H ( r . $ $ . f r a g m e n t ) } , m ( b , y ) { V ( e , b , y ) , w ( b , i , y ) , V ( s , b , y ) , w ( b , o , y ) , V ( r , b , y ) , u = ! 0 } , p ( b , y ) { c o n s t S = { } ; y & 1 & & ( S . c o l l e c t i o n = b [ 0 ] ) , y & 1 7 4 0 8 & & ( S . $ $ s c o p e = { d i r t y : y , c t x : b } ) , ! t & & y & 1 & & ( t = ! 0 , S . r u l e = b [ 0 ] . c r e a t e R u l e , h e ( ( ) = > t = ! 1 ) ) , e . $ s e t ( S ) ; c o n s t C = { } ; y & 1 & & ( C . c o l l e c t i o n = b [ 0 ] ) , ! l & & y & 1 & & ( l = ! 0 , C . r u l e = b [ 0 ] . u p d a t e R u l e , h e ( ( ) = > l = ! 1 ) ) , s . $ s e t ( C ) ; c o n s t $ = { } ; y & 1 & & ( $ . c o l l e c t i o n = b [ 0 ] ) , ! a & & y & 1 & & ( a = ! 0 , $ . r u l e = b [ 0 ] . d e l e t e R u l e , h e ( ( ) = > a = ! 1 ) ) , r . $ s e t ( $ ) } , i ( b ) { u | | ( A ( e . $ $ . f r a g m e n t , b ) , A ( s . $ $ . f r a g m e n t , b ) , A ( r . $ $ . f r a g m e n t , b ) , u = ! 0 ) } , o ( b ) { I ( e . $ $ . f r a g m e n t , b ) , I ( s . $ $ . f r a g m e n t , b ) , I ( r . $ $ . f r a g m e n t , b ) , u = ! 1 } , d ( b ) { z ( e , b ) , b & & k ( i ) , z ( s , b ) , b & & k ( o ) , z ( r , b ) } } } f u n c t i o n H d ( n ) { l e t e , t , i ; r e t u r n { c ( ) { e = v ( " i " ) , p ( e , " c l a s s " , " r i - i n f o r m a t i o n - l i n e l i n k - h i n t " ) } , m ( s , l ) { w ( s , e , l ) , t | | ( i = M e ( H e . c a l l ( n u l l , e , { t e x t : ' T h e C r e a t e r u l e i s e x e c u t e d a f t e r a " d r y s a v e " o f t h e s u b m i t t e d d a t a , g i v i n g y o u a c c e s s t o t h e m a i n r e c o r d f i e l d s a s i n e v e r y o t h e r r u l e . ' , p o s i t i o n : " t o p " } ) ) , t = ! 0 ) } , d ( s ) { s & & k ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n $ T ( n ) { l e t e , t = ! n [ 1 0 ] & & H d ( ) ; r e t u r n { c ( ) { t & & t . c ( ) , e = y e ( ) } , m ( i , s ) { t & & t . m ( i , s ) , w ( i , e , s ) } , p ( i , s ) { i [ 1 0 ] ? t & & ( t . d ( 1 ) , t = n u l l ) : t | | ( t = H d ( ) , t . c ( ) , t . m ( e . p a r e n t N o d e , e ) ) } , d ( i ) { t & & t . d ( i ) , i & & k ( e ) } } } f u n c t i o n B d ( n ) { l e t e , t , i ; f u n c t i o n s ( o ) { n [ 9 ] ( o ) } l e t l = { l a b e l : " M a n a g e r u l e " , f o r m K e y : " o p t i o n s . m a n a g e R u l e " , p l a c e h o l d e r : " " , r e q u i r e d : n [ 0 ] . o p t i o n s . m a n a g e R u l e ! = = n u l l , c o l l e c t i o n : n [ 0 ] , $ $ s l o t s : { d e f a u l t : [ C T ] } , $ $ 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 O s ( { p r o p s : l } ) , t e . p u s h ( ( ) = > d e ( e , " r u l e " , s ) ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( o , r ) { V ( e , o , r ) , i = ! 0 } , p ( o , r ) { c o n s t a = { } ; r & 1 & & ( a . r e q u i r e d = o [ 0 ] . o p t i o n s . m a n a g e R u l e ! = = n u l l ) , r & 1 & & ( a . c o l l e c t i o n = o [ 0 ] ) , r & 1 6 3 8 4 & & ( a . $ $ s c o p e = { d i r t y : r , c t x : o } ) , ! t & & r & 1 & & ( t = ! 0 , a . r u l e = o [ 0 ] . o p t i o n s . m a n a g e R u l e , h 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 ) { z ( e , o ) } } } f u n c t i o n C T ( 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-06-11 04:32:41 +08:00
changing the password without requiring to enter the old one , directly updating the verified
2023-07-27 20:57:20 +08:00
state or email , etc . ` ,t=E(),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){w(s,e,l),w(s,t,l),w(s,i,l)},p:x,d(s){s&&k(e),s&&k(t),s&&k(i)}}}function TT(n){var F,R;let e,t,i,s,l,o=n[1]?"Hide available fields":"Show available fields",r,a,u,f,c,d,m,_,h,b,y,S,C, $ ,T=n[1]&&jd(n);function M(q){n[4](q)}let O={label:"List/Search rule",formKey:"listRule",collection:n[0]};n[0].listRule!==void 0&&(O.rule=n[0].listRule),f=new Os({props:O}),te.push(()=>de(f,"rule",M));function D(q){n[5](q)}let L={label:"View rule",formKey:"viewRule",collection:n[0]};n[0].viewRule!==void 0&&(L.rule=n[0].viewRule),m=new Os({props:L}),te.push(()=>de(m,"rule",D));let P=!((F=n[0])!=null&&F. $ isView)&&zd(n),N=((R=n[0])==null?void 0:R. $ isAuth)&&Bd(n);return{c(){e=v("div"),t=v("div"),i=v("p"),i.innerHTML= ` All rules follow the
2023-06-11 04:32:41 +08:00
< a href = "https://pocketbase.io/docs/api-rules-and-filters/" target = "_blank" rel = "noopener noreferrer" > PocketBase filter syntax and operators
2023-07-27 20:57:20 +08:00
< / a > . ` , s = E ( ) , l = v ( " b u t t o n " ) , r = U ( o ) , a = E ( ) , T & & T . c ( ) , u = E ( ) , H ( f . $ $ . f r a g m e n t ) , d = E ( ) , H ( m . $ $ . f r a g m e n t ) , h = E ( ) , P & & P . c ( ) , b = E ( ) , N & & N . c ( ) , y = y e ( ) , p ( l , " t y p e " , " b u t t o n " ) , p ( 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 " ) , p ( 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 " ) , p ( e , " c l a s s " , " b l o c k m - b - s m h a n d l e " ) } , m ( q , j ) { w ( q , e , j ) , g ( e , t ) , g ( t , i ) , g ( t , s ) , g ( t , l ) , g ( l , r ) , g ( e , a ) , T & & T . m ( e , n u l l ) , w ( q , u , j ) , V ( f , q , j ) , w ( q , d , j ) , V ( m , q , j ) , w ( q , h , j ) , P & & P . m ( q , j ) , w ( q , b , j ) , N & & N . m ( q , j ) , w ( q , y , j ) , S = ! 0 , C | | ( $ = J ( l , " c l i c k " , n [ 3 ] ) , C = ! 0 ) } , p ( q , [ j ] ) { v a r G , W ; ( ! S | | j & 2 ) & & o ! = = ( o = q [ 1 ] ? " H i d e a v a i l a b l e f i e l d s " : " S h o w a v a i l a b l e f i e l d s " ) & & s e ( r , o ) , q [ 1 ] ? T ? ( T . p ( q , j ) , j & 2 & & A ( T , 1 ) ) : ( T = j d ( q ) , T . c ( ) , A ( T , 1 ) , T . m ( e , n u l l ) ) : T & & ( a e ( ) , I ( T , 1 , 1 , ( ) = > { T = n u l l } ) , u e ( ) ) ; c o n s t Y = { } ; j & 1 & & ( Y . c o l l e c t i o n = q [ 0 ] ) , ! c & & j & 1 & & ( c = ! 0 , Y . r u l e = q [ 0 ] . l i s t R u l e , h e ( ( ) = > c = ! 1 ) ) , f . $ s e t ( Y ) ; c o n s t X = { } ; j & 1 & & ( X . c o l l e c t i o n = q [ 0 ] ) , ! _ & & j & 1 & & ( _ = ! 0 , X . r u l e = q [ 0 ] . v i e w R u l e , h e ( ( ) = > _ = ! 1 ) ) , m . $ s e t ( X ) , ( G = q [ 0 ] ) ! = n u l l & & G . $ i s V i e w ? P & & ( a e ( ) , I ( P , 1 , 1 , ( ) = > { P = n u l l } ) , u e ( ) ) : P ? ( P . p ( q , j ) , j & 1 & & A ( P , 1 ) ) : ( P = z d ( q ) , P . c ( ) , A ( P , 1 ) , P . m ( b . p a r e n t N o d e , b ) ) , ( W = q [ 0 ] ) ! = n u l l & & W . $ i s A u t h ? N ? ( N . p ( q , j ) , j & 1 & & A ( N , 1 ) ) : ( N = B d ( q ) , N . c ( ) , A ( N , 1 ) , N . m ( y . p a r e n t N o d e , y ) ) : N & & ( a e ( ) , I ( N , 1 , 1 , ( ) = > { N = n u l l } ) , u e ( ) ) } , i ( q ) { S | | ( A ( T ) , A ( f . $ $ . f r a g m e n t , q ) , A ( m . $ $ . f r a g m e n t , q ) , A ( P ) , A ( N ) , S = ! 0 ) } , o ( q ) { I ( T ) , I ( f . $ $ . f r a g m e n t , q ) , I ( m . $ $ . f r a g m e n t , q ) , I ( P ) , I ( N ) , S = ! 1 } , d ( q ) { q & & k ( e ) , T & & T . d ( ) , q & & k ( u ) , z ( f , q ) , q & & k ( d ) , z ( m , q ) , q & & k ( h ) , P & & P . d ( q ) , q & & k ( b ) , N & & N . d ( q ) , q & & k ( y ) , C = ! 1 , $ ( ) } } } f u n c t i o n M T ( n , e , t ) { l e t i , { c o l l e c t i o n : s = n e w y n } = e , l = ! 1 ; c o n s t o = ( ) = > t ( 1 , l = ! l ) ; f u n c t i o n r ( m ) { n . $ $ . n o t _ e q u a l ( s . l i s t R u l e , m ) & & ( s . l i s t R u l e = m , t ( 0 , s ) ) } f u n c t i o n a ( m ) { n . $ $ . n o t _ e q u a l ( s . v i e w R u l e , m ) & & ( s . v i e w R u l e = m , t ( 0 , s ) ) } f u n c t i o n u ( m ) { n . $ $ . n o t _ e q u a l ( s . c r e a t e R u l e , m ) & & ( s . c r e a t e R u l e = m , t ( 0 , s ) ) } f u n c t i o n f ( m ) { n . $ $ . n o t _ e q u a l ( s . u p d a t e R u l e , m ) & & ( s . u p d a t e R u l e = m , t ( 0 , s ) ) } f u n c t i o n c ( m ) { n . $ $ . n o t _ e q u a l ( s . d e l e t e R u l e , m ) & & ( s . d e l e t e R u l e = m , t ( 0 , s ) ) } f u n c t i o n d ( m ) { 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 , m ) & & ( s . o p t i o n s . m a n a g e R u l e = m , t ( 0 , s ) ) } r e t u r n n . $ $ s e t = m = > { " c o l l e c t i o n " i n m & & t ( 0 , s = m . 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 = B . 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 O T e x t e n d s g e { c o n s t r u c t o r ( e ) { s u p e r ( ) , _ e ( t h i s , e , M T , T T , m e , { c o l l e c t i o n : 0 } ) } } f u n c t i o n U 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 E T ( n ) { l e t e , t , i , s ; f u n c t i o n l ( a ) { n [ 5 ] ( a ) } v a r o = n [ 1 ] ; f u n c t i o n r ( a ) { l e t u = { i d : a [ 8 ] , p l a c e h o l d e r : " e g . S E L E C T i d , n a m e f r o m p o s t s " , l a n g u a g e : " s q l - s e l e c t " , m i n H e i g h t : " 1 5 0 " } ; r e t u r n a [ 0 ] . o p t i o n s . q u e r y ! = = v o i d 0 & & ( u . v a l u e = a [ 0 ] . o p t i o n s . q u e r y ) , { p r o p s : u } } r e t u r n o & & ( e = R t ( o , r ( n ) ) , t e . p u s h ( ( ) = > d e ( e , " v a l u e " , l ) ) , e . $ o n ( " c h a n g e " , n [ 6 ] ) ) , { c ( ) { e & & H ( e . $ $ . f r a g m e n t ) , i = y e ( ) } , m ( a , u ) { e & & V ( e , a , u ) , w ( 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 , h e ( ( ) = > t = ! 1 ) ) , u & 2 & & o ! = = ( o = a [ 1 ] ) ) { i f ( e ) { a e ( ) ; c o n s t c = e ; I ( c . $ $ . f r a g m e n t , 1 , 0 , ( ) = > { z ( c , 1 ) } ) , u e ( ) } o ? ( e = R t ( o , r ( a ) ) , t e . p u s h ( ( ) = > d e ( e , " v a l u e " , l ) ) , e . $ o n ( " c h a n g e " , a [ 6 ] ) , H ( e . $ $ . f r a g m e n t ) , A ( e . $ $ . f r a g m e n t , 1 ) , V ( e , i . p a r e n t N o d e , i ) ) : e = n u l l } e l s e o & & e . $ s e t ( f ) } , i ( a ) { s | | ( e & & 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 & & k ( i ) , e & & z ( e , a ) } } } f u n c t i o n D T ( 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 , p ( e , " r o w s " , " 7 " ) , p ( e , " p l a c e h o l d e r " , " L o a d i n g . . . " ) } , m ( t , i ) { w ( t , e , i ) } , p : x , i : x , o : x , d ( t ) { t & & k ( e ) } } } f u n c t i o n W 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 ] = Y d ( U 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 ( ) ; p ( t , " c l a s s " , " c o n t e n t " ) , p ( 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 ) { w ( l , e , o ) , g ( 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 = U d ( l , i , r ) ; s [ r ] ? s [ r ] . p ( a , o ) : ( s [ r ] = Y 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 & & k ( e ) , m t ( s , l ) } } } f u n c t i o n Y d ( n ) { l e t e , t = n [ 9 ] + " " , i ; r e t u r n { c ( ) { e = v ( " p " ) , i = U ( t ) } , m ( s , l ) { w ( s , e , l ) , g ( e , i ) } , p ( s , l ) { l & 8 & & t ! = = ( t = s [ 9 ] + " " ) & & s e ( i , t ) } , d ( s ) { s & & k ( e ) } } } f u n c t i o n A T ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c ; c o n s t d = [ D T , E T ] , m = [ ] ; f u n c t i o n _ ( b , y ) { r e t u r n b [ 2 ] ? 0 : 1 } l = _ ( n ) , o = m [ l ] = d [ l ] ( n ) ; l e t h = n [ 3 ] . l e n g t h & & W 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 = E ( ) , o . c ( ) , r = E ( ) , 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 r d c o l u m n s ( < c o d e > * < / c o d e > ) a r e n o t s u p p o r t e d . < /
2023-06-11 04:32:41 +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
< code > ( ROW _NUMBER ( ) OVER ( ) ) as id < / c o d e > . < / l i >
< li > Expressions must be aliased with a valid formatted field name ( eg .
2023-08-07 02:51:55 +08:00
< code > MAX ( balance ) as maxBalance < / c o d e > ) . < / l i > < / u l > ` , u = E ( ) , h & & h . c ( ) , f = y e ( ) , p ( t , " c l a s s " , " t x t " ) , p ( e , " f o r " , i = n [ 8 ] ) , p ( a , " c l a s s " , " h e l p - b l o c k " ) } , m ( b , y ) { w ( b , e , y ) , g ( e , t ) , w ( b , s , y ) , m [ l ] . m ( b , y ) , w ( b , r , y ) , w ( b , a , y ) , w ( b , u , y ) , h & & h . m ( b , y ) , w ( b , f , y ) , c = ! 0 } , p ( b , y ) { ( ! c | | y & 2 5 6 & & i ! = = ( i = b [ 8 ] ) ) & & p ( e , " f o r " , i ) ; l e t S = l ; l = _ ( b ) , l = = = S ? m [ l ] . p ( b , y ) : ( a e ( ) , I ( m [ S ] , 1 , 1 , ( ) = > { m [ S ] = n u l l } ) , u e ( ) , o = m [ l ] , o ? o . p ( b , y ) : ( o = m [ l ] = d [ l ] ( b ) , o . c ( ) ) , A ( o , 1 ) , o . m ( r . p a r e n t N o d e , r ) ) , b [ 3 ] . l e n g t h ? h ? h . p ( b , y ) : ( h = W d ( b ) , h . c ( ) , h . m ( f . p a r e n t N o d e , f ) ) : h & & ( h . d ( 1 ) , h = n u l l ) } , i ( b ) { c | | ( A ( o ) , c = ! 0 ) } , o ( b ) { I ( o ) , c = ! 1 } , d ( b ) { b & & k ( e ) , b & & k ( s ) , m [ l ] . d ( b ) , b & & k ( r ) , b & & k ( a ) , b & & k ( u ) , h & & h . d ( b ) , b & & k ( f ) } } } f u n c t i o n I T ( 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 : [ A T , ( { u n i q u e I d : i } ) = > ( { 8 : i } ) , ( { u n i q u e I d : i } ) = > i ? 2 5 6 : 0 ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( i , s ) { V ( e , i , s ) , t = ! 0 } , p ( i , [ s ] ) { c o n s t l = { } ; s & 8 & & ( l . c l a s s = " f o r m - f i e l d r e q u i r e d " + ( i [ 3 ] . l e n g t h ? " e r r o r " : " " ) ) , s & 4 3 6 7 & & ( l . $ $ s c o p e = { d i r t y : s , c t x : i } ) , e . $ s e t ( l ) } , i ( i ) { t | | ( 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 ) { z ( e , i ) } } } f u n c t i o n L T ( n , e , t ) { l e t i ; J e ( n , S i , c = > t ( 4 , i = c ) ) ; l e t { c o l l e c t i o n : s = n e w y n } = e , l , o = ! 1 , r = [ ] ; f u n c t i o n a ( c ) { v a r _ ; t ( 3 , r = [ ] ) ; c o n s t d = B . 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 ( B . 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 m = B . e x t r a c t C o l u m n s F r o m Q u e r y ( ( _ = 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 : _ . q u e r y ) ; B . r e m o v e B y V a l u e ( m , " i d " ) , B . r e m o v e B y V a l u e ( m , " c r e a t e d " ) , B . r e m o v e B y V a l u e ( m , " u p d a t e d " ) ; f o r ( l e t h i n d ) f o r ( l e t b i n d [ h ] ) { c o n s t y = d [ h ] [ b ] . m e s s a g e , S = m [ h ] | | h ; r . p u s h ( B . s e n t e n i z e ( S + " : " + y ) ) } } G t ( a s y n c ( ) = > { t ( 2 , o = ! 0 ) ; t r y { t ( 1 , l = ( a w a i t a t ( ( ) = > i m p o r t ( " . / C o d e E d i t o r - 4 7 f 6 5 1 1 b . j s " ) , [ " . / C o d e E d i t o r - 4 7 f 6 5 1 1 b . j s " , " . / i n d e x - f d 4 2 8 9 f b . 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 & & a 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 P T e x t e n d s g e { c o n s t r u c t o r ( e ) { s u p e r ( ) , _ e ( t h i s , e , L T , I T , m e , { c o l l e c t i o n : 0 } ) } } c o n s t N T = n = > ( { a c t i v e : n & 1 } ) , K d = n = > ( { a c t i v e : n [ 0 ] } ) ; f u n c t i o n J 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 = y 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 ( ) , p ( 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 ) { w ( 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 ) & & w t ( l , s , o , o [ 1 4 ] , i ? k t ( s , o [ 1 4 ] , r , n u l l ) : S t ( o [ 1 4 ] ) , n u l l ) } , i ( o ) { i | | ( A ( l , o ) , o & & Q e ( ( ) = > { i & & ( t | | ( t = j e ( e , o 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 = j e ( e , o t , { d u r a t i o n : 1 5 0 } , ! 1 ) ) , t . r u n ( 0 ) ) , i = ! 1 } , d ( o ) { o & & k ( e ) , l & & l . d ( o ) , o & & t & & t . e n d ( ) } } } f u n c t i o n F T ( 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 = y t ( a , n , n [ 1 4 ] , K d ) ; l e t f = n [ 0 ] & & J 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 = E ( ) , f & & f . c ( ) , p ( t , " t y p e " , " b u t t o n " ) , p ( t , " c l a s s " , " a c c o r d i o n - h e a d e r " ) , p ( 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 ] ) , p ( 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 ) { w ( c , e , d ) , g ( e , t ) , u & & u . m ( t , n u l l ) , g ( e , i ) , f & & f . m ( e , n u l l ) , n [ 2 2 ] ( e ) , l = ! 0 , o | | ( r = [ J ( t , " c l i c k " , e t ( n [ 1 7 ] ) ) , J ( t , " d r o p " , e t ( n [ 1 8 ] ) ) , J ( t , " d r a g s t a r t " , n [ 1 9 ] ) , J ( t , " d r a g e n t e r " , n [ 2 0 ] ) , J ( t , " d r a g l e a v e " , n [ 2 1 ] ) , J ( t , " d r a g o v e r " , e t ( n [ 1 6 ] ) ) ] , o = ! 0 ) } , p ( c , [ d ] ) { u & & u . p & & ( ! l | | d & 1 6 3 8 5 ) & & w t ( u , a , c , c [ 1 4 ] , l ? k t ( a , c [ 1 4 ] , d , N T ) : S t ( c [ 1 4 ] ) , K d ) , ( ! l | | d & 4 ) & & p ( 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 = J d ( c ) , f . c ( ) , A ( f , 1 ) , f . m ( e , n u l l ) ) : f & & ( a e ( ) , I ( f , 1 , 1 , ( ) = > { f = n u l l } ) , u 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 ] ) ) & & p ( 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 & & k ( e ) , u & & u . d ( c ) , f & & f . d ( ) , n [ 2 2 ] ( n u l l ) , o = ! 1 , E e ( r ) } } } f u n c t i o n R T ( n , e , t ) { l e t { $ $ s l o t s : i = { } , $ $ s c o p e : s } = e ; c o n s t l = $ t ( ) ; 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 , m = ! 1 ; f u n c t i o n _ ( ) { r e t u r n ! ! f } f u n c t i o n h ( ) { S ( ) , t ( 0 , f = ! 0 ) , l ( " e x p a n d " ) } f u n c t i o n b ( ) { 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 ? b ( ) : h ( ) } f u n c t i o n S ( ) { 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 P = 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
2023-07-31 18:02:23 +08:00
< span class = "txt" > Username / Password < / s p a n > ` , t = E ( ) , i = v ( " d i v " ) , s = E ( ) , u . c ( ) , l = E ( ) , f & & f . c ( ) , o = y e ( ) , p ( e , " c l a s s " , " i n l i n e - f l e x " ) , p ( i , " c l a s s " , " f l e x - f i l l " ) } , m ( c , d ) { w ( c , e , d ) , w ( c , t , d ) , w ( c , i , d ) , w ( c , s , d ) , u . m ( c , d ) , w ( c , l , d ) , f & & f . m ( c , d ) , w ( c , o , d ) } , p ( c , d ) { a ! = = ( a = r ( c ) ) & & ( u . d ( 1 ) , u = a ( c ) , u & & ( u . c ( ) , u . m ( l . p a r e n t N o d e , l ) ) ) , c [ 3 ] ? f ? d & 8 & & A ( f , 1 ) : ( f = Z d ( ) , f . c ( ) , A ( f , 1 ) , f . m ( o . p a r e n t N o d e , o ) ) : f & & ( a e ( ) , I ( f , 1 , 1 , ( ) = > { f = n u l l } ) , u e ( ) ) } , d ( c ) { c & & k ( e ) , c & & k ( t ) , c & & k ( i ) , c & & k ( s ) , u . d ( c ) , c & & k ( l ) , f & & f . d ( c ) , c & & k ( o ) } } } f u n c t i o n B T ( 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 = E ( ) , s = v ( " l a b e l " ) , l = U ( " E n a b l e " ) , p ( e , " t y p e " , " c h e c k b o x " ) , p ( e , " i d " , t = n [ 1 2 ] ) , p ( s , " f o r " , o = n [ 1 2 ] ) } , m ( u , f ) { w ( 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 , w ( u , i , f ) , w ( u , s , f ) , g ( s , l ) , r | | ( a = J ( e , " c h a n g e " , n [ 6 ] ) , r = ! 0 ) } , p ( u , f ) { f & 4 0 9 6 & & t ! = = ( t = u [ 1 2 ] ) & & p ( 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 ] ) & & p ( s , " f o r " , o ) } , d ( u ) { u & & k ( e ) , u & & k ( i ) , u & & k ( s ) , r = ! 1 , a ( ) } } } f u n c t i o n G d ( n ) { l e t e , t , i , s , l , o , r , a ; 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 " + ( B . 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 : [ U T , ( { 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 " + ( B . 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 : [ W T , ( { 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 " ) , H ( i . $ $ . f r a g m e n t ) , s = E ( ) , l = v ( " d i v " ) , H ( o . $ $ . f r a g m e n t ) , p ( t , " c l a s s " , " c o l - l g - 6 " ) , p ( l , " c l a s s " , " c o l - l g - 6 " ) , p ( e , " c l a s s " , " g r i d g r i d - s m p - t - s m " ) } , m ( u , f ) { w ( u , e , f ) , g ( e , t ) , V ( i , t , n u l l ) , g ( e , s ) , g ( e , l ) , V ( 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 " + ( B . 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 " + ( B . 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 & & Q e ( ( ) = > { a & & ( r | | ( r = j e ( e , o 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 = j e ( e , o t , { d u r a t i o n : 1 5 0 } , ! 1 ) ) , r . r u n ( 0 ) ) , a = ! 1 } , d ( u ) { u & & k ( e ) , z ( i ) , z ( o ) , u & & r & & r . e n d ( ) } } } f u n c t i o n U T ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d , m ; f u n c t i o n _ ( b ) { n [ 7 ] ( b ) } l e t h = { i d : n [ 1 2 ] , d i s a b l e d : ! B . 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 & & ( h . 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 V s ( { p r o p s : h } ) , t e . p u s h ( ( ) = > d e ( r , " v a l u e " , _ ) ) , { 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 = E ( ) , s = v ( " i " ) , o = E ( ) , H ( r . $ $ . f r a g m e n t ) , u = E ( ) , 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 . " , p ( t , " c l a s s " , " t x t " ) , p ( 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 " ) , p ( e , " f o r " , l = n [ 1 2 ] ) , p ( f , " c l a s s " , " h e l p - b l o c k " ) } , m ( b , y ) { w ( b , e , y ) , g ( e , t ) , g ( e , i ) , g ( e , s ) , w ( b , o , y ) , V ( r , b , y ) , w ( b , u , y ) , w ( b , f , y ) , c = ! 0 , d | | ( m = M e ( H 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-07-27 20:57:20 +08:00
This field is disabled if "Only domains" is set . ` ,position:"top"})),d=!0)},p(b,y){(!c||y&4096&&l!==(l=b[12]))&&p(e,"for",l);const S={};y&4096&&(S.id=b[12]),y&1&&(S.disabled=!B.isEmpty(b[0].options.onlyEmailDomains)),!a&&y&1&&(a=!0,S.value=b[0].options.exceptEmailDomains,he(()=>a=!1)),r. $ set(S)},i(b){c||(A(r. $ $ .fragment,b),c=!0)},o(b){I(r. $ $ .fragment,b),c=!1},d(b){b&&k(e),b&&k(o),z(r,b),b&&k(u),b&&k(f),d=!1,m()}}}function WT(n){let e,t,i,s,l,o,r,a,u,f,c,d,m;function _(b){n[8](b)}let h={id:n[12],disabled:!B.isEmpty(n[0].options.exceptEmailDomains)};return n[0].options.onlyEmailDomains!==void 0&&(h.value=n[0].options.onlyEmailDomains),r=new Vs({props:h}),te.push(()=>de(r,"value",_)),{c(){e=v("label"),t=v("span"),t.textContent="Only domains",i=E(),s=v("i"),o=E(),H(r. $ $ .fragment),u=E(),f=v("div"),f.textContent="Use comma as separator.",p(t,"class","txt"),p(s,"class","ri-information-line link-hint"),p(e,"for",l=n[12]),p(f,"class","help-block")},m(b,y){w(b,e,y),g(e,t),g(e,i),g(e,s),w(b,o,y),V(r,b,y),w(b,u,y),w(b,f,y),c=!0,d||(m=Me(He.call(null,s,{text: ` Email domains that are ONLY allowed to sign up .
2023-07-31 18:02:23 +08:00
This field is disabled if "Except domains" is set . ` ,position:"top"})),d=!0)},p(b,y){(!c||y&4096&&l!==(l=b[12]))&&p(e,"for",l);const S={};y&4096&&(S.id=b[12]),y&1&&(S.disabled=!B.isEmpty(b[0].options.exceptEmailDomains)),!a&&y&1&&(a=!0,S.value=b[0].options.onlyEmailDomains,he(()=>a=!1)),r. $ set(S)},i(b){c||(A(r. $ $ .fragment,b),c=!0)},o(b){I(r. $ $ .fragment,b),c=!1},d(b){b&&k(e),b&&k(o),z(r,b),b&&k(u),b&&k(f),d=!1,m()}}}function YT(n){let e,t,i,s;e=new pe({props:{class:"form-field form-field-toggle m-0",name:"options.allowEmailAuth", $ $ slots:{default:[BT,({uniqueId:o})=>({12:o}),({uniqueId:o})=>o?4096:0]}, $ $ scope:{ctx:n}}});let l=n[0].options.allowEmailAuth&&Gd(n);return{c(){H(e. $ $ .fragment),t=E(),l&&l.c(),i=ye()},m(o,r){V(e,o,r),w(o,t,r),l&&l.m(o,r),w(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=Gd(o),l.c(),A(l,1),l.m(i.parentNode,i)):l&&(ae(),I(l,1,1,()=>{l=null}),ue())},i(o){s||(A(e. $ $ .fragment,o),A(l),s=!0)},o(o){I(e. $ $ .fragment,o),I(l),s=!1},d(o){z(e,o),o&&k(t),l&&l.d(o),o&&k(i)}}}function KT(n){let e;return{c(){e=v("span"),e.textContent="Disabled",p(e,"class","label")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function JT(n){let e;return{c(){e=v("span"),e.textContent="Enabled",p(e,"class","label label-success")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function Xd(n){let e,t,i,s,l;return{c(){e=v("i"),p(e,"class","ri-error-warning-fill txt-danger")},m(o,r){w(o,e,r),i=!0,s||(l=Me(He.call(null,e,{text:"Has errors",position:"left"})),s=!0)},i(o){i||(o&&Qe(()=>{i&&(t||(t=je(e,Kt,{duration:150,start:.7},!0)),t.run(1))}),i=!0)},o(o){o&&(t||(t=je(e,Kt,{duration:150,start:.7},!1)),t.run(0)),i=!1},d(o){o&&k(e),o&&t&&t.end(),s=!1,l()}}}function ZT(n){let e,t,i,s,l,o;function r(c,d){return c[0].options.allowEmailAuth?JT:KT}let a=r(n),u=a(n),f=n[2]&&Xd();return{c(){e=v("div"),e.innerHTML= ` < i class = "ri-mail-star-line" > < / i >
< span class = "txt" > Email / Password < / s p a n > ` , t = E ( ) , i = v ( " d i v " ) , s = E ( ) , u . c ( ) , l = E ( ) , f & & f . c ( ) , o = y e ( ) , p ( e , " c l a s s " , " i n l i n e - f l e x " ) , p ( i , " c l a s s " , " f l e x - f i l l " ) } , m ( c , d ) { w ( c , e , d ) , w ( c , t , d ) , w ( c , i , d ) , w ( c , s , d ) , u . m ( c , d ) , w ( c , l , d ) , f & & f . m ( c , d ) , w ( c , o , d ) } , p ( c , d ) { a ! = = ( a = r ( c ) ) & & ( u . d ( 1 ) , u = a ( c ) , u & & ( u . c ( ) , u . m ( l . p a r e n t N o d e , l ) ) ) , c [ 2 ] ? f ? d & 4 & & A ( f , 1 ) : ( f = X d ( ) , f . c ( ) , A ( f , 1 ) , f . m ( o . p a r e n t N o d e , o ) ) : f & & ( a e ( ) , I ( f , 1 , 1 , ( ) = > { f = n u l l } ) , u e ( ) ) } , d ( c ) { c & & k ( e ) , c & & k ( t ) , c & & k ( i ) , c & & k ( s ) , u . d ( c ) , c & & k ( l ) , f & & f . d ( c ) , c & & k ( o ) } } } f u n c t i o n G T ( 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 = E ( ) , s = v ( " l a b e l " ) , l = U ( " E n a b l e " ) , p ( e , " t y p e " , " c h e c k b o x " ) , p ( e , " i d " , t = n [ 1 2 ] ) , p ( s , " f o r " , o = n [ 1 2 ] ) } , m ( u , f ) { w ( 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 , w ( u , i , f ) , w ( u , s , f ) , g ( s , l ) , r | | ( a = J ( e , " c h a n g e " , n [ 9 ] ) , r = ! 0 ) } , p ( u , f ) { f & 4 0 9 6 & & t ! = = ( t = u [ 1 2 ] ) & & p ( 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 ] ) & & p ( s , " f o r " , o ) } , d ( u ) { u & & k ( e ) , u & & k ( i ) , u & & k ( s ) , r = ! 1 , a ( ) } } } f u n c t i o n Q 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 > ' , p ( e , " c l a s s " , " b l o c k " ) } , m ( s , l ) { w ( s , e , l ) , i = ! 0 } , i ( s ) { i | | ( s & & Q e ( ( ) = > { i & & ( t | | ( t = j e ( e , o 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 = j e ( e , o t , { d u r a t i o n : 1 5 0 } , ! 1 ) ) , t . r u n ( 0 ) ) , i = ! 1 } , d ( s ) { s & & k ( e ) , s & & t & & t . e n d ( ) } } } f u n c t i o n X T ( 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 : [ G T , ( { 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 & & Q d ( ) ; r e t u r n { c ( ) { H ( e . $ $ . f r a g m e n t ) , t = E ( ) , l & & l . c ( ) , i = y e ( ) } , m ( o , r ) { V ( e , o , r ) , w ( o , t , r ) , l & & l . m ( o , r ) , w ( 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 = Q d ( ) , l . c ( ) , A ( l , 1 ) , l . m ( i . p a r e n t N o d e , i ) ) : l & & ( a e ( ) , I ( l , 1 , 1 , ( ) = > { l = n u l l } ) , u 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 ) { z ( e , o ) , o & & k ( t ) , l & & l . d ( o ) , o & & k ( i ) } } } f u n c t i o n Q T ( 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 " , p ( e , " c l a s s " , " l a b e l " ) } , m ( t , i ) { w ( t , e , i ) } , d ( t ) { t & & k ( e ) } } } f u n c t i o n x T ( 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 " , p ( 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 ) { w ( t , e , i ) } , d ( t ) { t & & k ( e ) } } } f u n c t i o n x d ( n ) { l e t e , t , i , s , l ; r e t u r n { c ( ) { e = v ( " i " ) , p ( 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 ) { w ( o , e , r ) , i = ! 0 , s | | ( l = M e ( H 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 | | ( o & & Q e ( ( ) = > { i & & ( t | | ( t = j e ( e , K 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 ) { o & & ( t | | ( t = j e ( e , K 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 & & k ( e ) , o & & t & & t . e n d ( ) , s = ! 1 , l ( ) } } } f u n c t i o n e M ( n ) { l e t e , t , i , s , l , o ; f u n c t i o n r ( c , d ) { r e t u r n c [ 0 ] . o p t i o n s . a l l o w O A u t h 2 A u t h ? x T : Q T } l e t a = r ( n ) , u = a ( n ) , f = n [ 1 ] & & x 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 >
< span class = "txt" > OAuth2 < / s p a n > ` , t = E ( ) , i = v ( " d i v " ) , s = E ( ) , u . c ( ) , l = E ( ) , f & & f . c ( ) , o = y e ( ) , p ( e , " c l a s s " , " i n l i n e - f l e x " ) , p ( i , " c l a s s " , " f l e x - f i l l " ) } , m ( c , d ) { w ( c , e , d ) , w ( c , t , d ) , w ( c , i , d ) , w ( c , s , d ) , u . m ( c , d ) , w ( c , l , d ) , f & & f . m ( c , d ) , w ( c , o , d ) } , p ( c , d ) { a ! = = ( a = r ( c ) ) & & ( u . d ( 1 ) , u = a ( c ) , u & & ( u . c ( ) , u . m ( l . p a r e n t N o d e , l ) ) ) , c [ 1 ] ? f ? d & 2 & & A ( f , 1 ) : ( f = x d ( ) , f . c ( ) , A ( f , 1 ) , f . m ( o . p a r e n t N o d e , o ) ) : f & & ( a e ( ) , I ( f , 1 , 1 , ( ) = > { f = n u l l } ) , u e ( ) ) } , d ( c ) { c & & k ( e ) , c & & k ( t ) , c & & k ( i ) , c & & k ( s ) , u . d ( c ) , c & & k ( l ) , f & & f . d ( c ) , c & & k ( o ) } } } f u n c t i o n t M ( 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 = U ( " M i n i m u m p a s s w o r d l e n g t h " ) , s = E ( ) , l = v ( " i n p u t " ) , p ( e , " f o r " , i = n [ 1 2 ] ) , p ( l , " t y p e " , " n u m b e r " ) , p ( l , " i d " , o = n [ 1 2 ] ) , l . r e q u i r e d = ! 0 , p ( l , " m i n " , " 6 " ) , p ( l , " m a x " , " 7 2 " ) } , m ( u , f ) { w ( u , e , f ) , g ( e , t ) , w ( u , s , f ) , w ( u , l , f ) , r e ( l , n [ 0 ] . o p t i o n s . m i n P a s s w o r d L e n g t h ) , r | | ( a = J ( l , " i n p u t " , n [ 1 0 ] ) , r = ! 0 ) } , p ( u , f ) { f & 4 0 9 6 & & i ! = = ( i = u [ 1 2 ] ) & & p ( e , " f o r " , i ) , f & 4 0 9 6 & & o ! = = ( o = u [ 1 2 ] ) & & p ( l , " i d " , o ) , f & 1 & & d t ( l . v a l u e ) ! = = u [ 0 ] . o p t i o n s . m i n P a s s w o r d L e n g t h & & r e ( l , u [ 0 ] . o p t i o n s . m i n P a s s w o r d L e n g t h ) } , d ( u ) { u & & k ( e ) , u & & k ( s ) , u & & k ( l ) , r = ! 1 , a ( ) } } } f u n c t i o n n M ( 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 = E ( ) , 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 = E ( ) , r = v ( " i " ) , p ( e , " t y p e " , " c h e c k b o x " ) , p ( e , " i d " , t = n [ 1 2 ] ) , p ( l , " c l a s s " , " t x t " ) , p ( 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 " ) , p ( s , " f o r " , a = n [ 1 2 ] ) } , m ( c , d ) { w ( 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 , w ( c , i , d ) , w ( c , s , d ) , g ( s , l ) , g ( s , o ) , g ( s , r ) , u | | ( f = [ J ( e , " c h a n g e " , n [ 1 1 ] ) , M e ( H 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 .
2023-07-27 20:57:20 +08:00
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])&&p(e,"id",t),d&1&&(e.checked=c[0].options.requireEmail),d&4096&&a!==(a=c[12])&&p(s,"for",a)},d(c){c&&k(e),c&&k(i),c&&k(s),u=!1,Ee(f)}}}function iM(n){let e,t,i,s,l,o,r,a,u,f,c,d,m,_,h,b,y;return s=new po({props:{single:!0, $ $ slots:{header:[HT],default:[jT]}, $ $ scope:{ctx:n}}}),o=new po({props:{single:!0, $ $ slots:{header:[ZT],default:[YT]}, $ $ scope:{ctx:n}}}),a=new po({props:{single:!0, $ $ slots:{header:[eM],default:[XT]}, $ $ scope:{ctx:n}}}),_=new pe({props:{class:"form-field required",name:"options.minPasswordLength", $ $ slots:{default:[tM,({uniqueId:S})=>({12:S}),({uniqueId:S})=>S?4096:0]}, $ $ scope:{ctx:n}}}),b=new pe({props:{class:"form-field form-field-toggle m-b-sm",name:"options.requireEmail", $ $ slots:{default:[nM,({uniqueId:S})=>({12:S}),({uniqueId:S})=>S?4096:0]}, $ $ scope:{ctx:n}}}),{c(){e=v("h4"),e.textContent="Auth methods",t=E(),i=v("div"),H(s. $ $ .fragment),l=E(),H(o. $ $ .fragment),r=E(),H(a. $ $ .fragment),u=E(),f=v("hr"),c=E(),d=v("h4"),d.textContent="General",m=E(),H(_. $ $ .fragment),h=E(),H(b. $ $ .fragment),p(e,"class","section-title"),p(i,"class","accordions"),p(d,"class","section-title")},m(S,C){w(S,e,C),w(S,t,C),w(S,i,C),V(s,i,null),g(i,l),V(o,i,null),g(i,r),V(a,i,null),w(S,u,C),w(S,f,C),w(S,c,C),w(S,d,C),w(S,m,C),V(_,S,C),w(S,h,C),V(b,S,C),y=!0},p(S,[C]){const $ ={};C&8201&&( $ . $ $ scope={dirty:C,ctx:S}),s. $ set( $ );const T={};C&8197&&(T. $ $ scope={dirty:C,ctx:S}),o. $ set(T);const M={};C&8195&&(M. $ $ scope={dirty:C,ctx:S}),a. $ set(M);const O={};C&12289&&(O. $ $ scope={dirty:C,ctx:S}),_. $ set(O);const D={};C&12289&&(D. $ $ scope={dirty:C,ctx:S}),b. $ set(D)},i(S){y||(A(s. $ $ .fragment,S),A(o. $ $ .fragment,S),A(a. $ $ .fragment,S),A(_. $ $ .fragment,S),A(b. $ $ .fragment,S),y=!0)},o(S){I(s. $ $ .fragment,S),I(o. $ $ .fragment,S),I(a. $ $ .fragment,S),I(_. $ $ .fragment,S),I(b. $ $ .fragment,S),y=!1},d(S){S&&k(e),S&&k(t),S&&k(i),z(s),z(o),z(a),S&&k(u),S&&k(f),S&&k(c),S&&k(d),S&&k(m),z(_,S),S&&k(h),z(b,S)}}}function sM(n,e,t){let i,s,l,o;Je(n,Si,h=>t(4,o=h));let{collection:r=new yn}=e;function a(){r.options.allowUsernameAuth=this.checked,t(0,r)}function u(){r.options.allowEmailAuth=this.checked,t(0,r)}function f(h){n. $ $ .not_equal(r.options.exceptEmailDomains,h)&&(r.options.exceptEmailDomains=h,t(0,r))}function c(h){n. $ $ .not_equal(r.options.onlyEmailDomains,h)&&(r.options.onlyEmailDomains=h,t(0,r))}function d(){r.options.allowOAuth2Auth=this.checked,t(0,r)}function m(){r.options.minPasswordLength=dt(this.value),t(0,r)}function _(){r.options.requireEmail=this.checked,t(0,r)}return n. $ $ set=h=>{"collection"in h&&t(0,r=h.collection)},n. $ $ .update=()=>{var h,b,y,S;n. $ $ .dirty&1&&r. $ isAuth&&B.isEmpty(r.options)&&t(0,r.options={allowEmailAuth:!0,allowUsernameAuth:!0,allowOAuth2Auth:!0,minPasswordLength:8},r),n. $ $ .dirty&16&&t(2,s=!B.isEmpty((h=o==null?void 0:o.options)==null?void 0:h.allowEmailAuth)||!B.isEmpty((b=o==null?void 0:o.options)==null?void 0:b.onlyEmailDomains)||!B.isEmpty((y=o==null?void 0:o.options)==null?void 0:y.exceptEmailDomains)),n. $ $ .dirty&16&&t(1,l=!B.isEmpty((S=o==null?void 0:o.options)==null?void 0:S.allowOAuth2Auth))},t(3,i=!1),[r,l,s,i,o,a,u,f,c,d,m,_]}class lM extends ge{constructor(e){super(),_e(this,e,sM,iM,me,{collection:0})}}function ep(n,e,t){const i=n.slice();return i[17]=e[t],i}function tp(n,e,t){const i=n.slice();return i[17]=e[t],i}function np(n,e,t){const i=n.slice();return i[17]=e[t],i}function ip(n){let e;return{c(){e=v("p"),e.textContent="All data associated with the removed fields will be permanently deleted!"},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function sp(n){var r;let e,t,i,s,l=n[3]&&lp(n),o=!((r=n[2])!=null&&r. $ isView)&&op(n);return{c(){e=v("h6"),e.textContent="Changes:",t=E(),i=v("ul"),l&&l.c(),s=E(),o&&o.c(),p(i,"class","changes-list svelte-xqpcsf")},m(a,u){w(a,e,u),w(a,t,u),w(a,i,u),l&&l.m(i,null),g(i,s),o&&o.m(i,null)},p(a,u){var f;a[3]?l?l.p(a,u):(l=lp(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=op
2023-06-11 04:32:41 +08:00
` ),s=v("strong"),o=U(l),r=E(),a=v("i"),u=E(),f=v("strong"),d=U(c),p(s,"class","txt-strikethrough txt-hint"),p(a,"class","ri-arrow-right-line txt-sm"),p(f,"class","txt"),p(t,"class","inline-flex"),p(e,"class","svelte-xqpcsf")},m(h,b){w(h,e,b),g(e,t),g(t,i),g(t,s),g(s,o),g(t,r),g(t,a),g(t,u),g(t,f),g(f,d)},p(h,b){var y,S;b&2&&l!==(l=((y=h[1])==null?void 0:y.name)+"")&&se(o,l),b&4&&c!==(c=((S=h[2])==null?void 0:S.name)+"")&&se(d,c)},d(h){h&&k(e)}}}function op(n){let e,t,i,s=n[5],l=[];for(let f=0;f<s.length;f+=1)l[f]=rp(np(n,s,f));let o=n[7],r=[];for(let f=0;f<o.length;f+=1)r[f]=ap(tp(n,o,f));let a=n[6],u=[];for(let f=0;f<a.length;f+=1)u[f]=up(ep(n,a,f));return{c(){for(let f=0;f<l.length;f+=1)l[f].c();e=E();for(let f=0;f<r.length;f+=1)r[f].c();t=E();for(let f=0;f<u.length;f+=1)u[f].c();i=ye()},m(f,c){for(let d=0;d<l.length;d+=1)l[d]&&l[d].m(f,c);w(f,e,c);for(let d=0;d<r.length;d+=1)r[d]&&r[d].m(f,c);w(f,t,c);for(let d=0;d<u.length;d+=1)u[d]&&u[d].m(f,c);w(f,i,c)},p(f,c){if(c&32){s=f[5];let d;for(d=0;d<s.length;d+=1){const m=np(f,s,d);l[d]?l[d].p(m,c):(l[d]=rp(m),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 m=tp(f,o,d);r[d]?r[d].p(m,c):(r[d]=ap(m),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 m=ep(f,a,d);u[d]?u[d].p(m,c):(u[d]=up(m),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){mt(l,f),f&&k(e),mt(r,f),f&&k(t),mt(u,f),f&&k(i)}}}function rp(n){let e,t,i,s=n[17].name+"",l,o,r;return{c(){e=v("li"),t=U( ` Multiple to single value conversion of field
` ),i=v("strong"),l=U(s),o=E(),r=v("em"),r.textContent="(will keep only the last array item)",p(r,"class","txt-sm"),p(e,"class","svelte-xqpcsf")},m(a,u){w(a,e,u),g(e,t),g(e,i),g(i,l),g(e,o),g(e,r)},p(a,u){u&32&&s!==(s=a[17].name+"")&&se(l,s)},d(a){a&&k(e)}}}function ap(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=U( ` Renamed field
2023-07-22 23:50:40 +08:00
` ),s=v("strong"),o=U(l),r=E(),a=v("i"),u=E(),f=v("strong"),d=U(c),p(s,"class","txt-strikethrough txt-hint"),p(a,"class","ri-arrow-right-line txt-sm"),p(f,"class","txt"),p(t,"class","inline-flex"),p(e,"class","svelte-xqpcsf")},m(m,_){w(m,e,_),g(e,t),g(t,i),g(t,s),g(s,o),g(t,r),g(t,a),g(t,u),g(t,f),g(f,d)},p(m,_){_&128&&l!==(l=m[17].originalName+"")&&se(o,l),_&128&&c!==(c=m[17].name+"")&&se(d,c)},d(m){m&&k(e)}}}function up(n){let e,t,i,s=n[17].name+"",l,o;return{c(){e=v("li"),t=U("Removed field "),i=v("span"),l=U(s),o=E(),p(i,"class","txt-bold"),p(e,"class","txt-danger svelte-xqpcsf")},m(r,a){w(r,e,a),g(e,t),g(e,i),g(i,l),g(e,o)},p(r,a){a&64&&s!==(s=r[17].name+"")&&se(l,s)},d(r){r&&k(e)}}}function oM(n){let e,t,i,s,l,o,r,a,u=n[6].length&&ip(),f=n[8]&&sp(n);return{c(){e=v("div"),t=v("div"),t.innerHTML='<i class="ri-error-warning-line"></i>',i=E(),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-07-27 20:57:20 +08:00
you 'll have to update it manually!`,o=E(),u&&u.c(),r=E(),f&&f.c(),a=ye(),p(t,"class","icon"),p(s,"class","content txt-bold"),p(e,"class","alert alert-warning")},m(c,d){w(c,e,d),g(e,t),g(e,i),g(e,s),g(s,l),g(s,o),u&&u.m(s,null),w(c,r,d),f&&f.m(c,d),w(c,a,d)},p(c,d){c[6].length?u||(u=ip(),u.c(),u.m(s,null)):u&&(u.d(1),u=null),c[8]?f?f.p(c,d):(f=sp(c),f.c(),f.m(a.parentNode,a)):f&&(f.d(1),f=null)},d(c){c&&k(e),u&&u.d(),c&&k(r),f&&f.d(c),c&&k(a)}}}function rM(n){let e;return{c(){e=v("h4"),e.textContent="Confirm collection changes"},m(t,i){w(t,e,i)},p:x,d(t){t&&k(e)}}}function aM(n){let e,t,i,s,l;return{c(){e=v("button"),e.innerHTML=' < span class = "txt" > Cancel < / s p a n > ' , t = E ( ) , 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 , p ( e , " t y p e " , " b u t t o n " ) , p ( e , " c l a s s " , " b t n b t n - t r a n s p a r e n t " ) , p ( i , " t y p e " , " b u t t o n " ) , p ( i , " c l a s s " , " b t n b t n - e x p a n d e d " ) } , m ( o , r ) { w ( o , e , r ) , w ( o , t , r ) , w ( o , i , r ) , e . f o c u s ( ) , s | | ( l = [ J ( e , " c l i c k " , n [ 1 1 ] ) , J ( i , " c l i c k " , n [ 1 2 ] ) ] , s = ! 0 ) } , p : x , d ( o ) { o & & k ( e ) , o & & k ( t ) , o & & k ( i ) , s = ! 1 , E e ( l ) } } } f u n c t i o n u M ( n ) { l e t e , t , i = { c l a s s : " c o n f i r m - c h a n g e s - p a n e l " , p o p u p : ! 0 , $ $ s l o t s : { f o o t e r : [ a M ] , h e a d e r : [ r M ] , d e f a u l t : [ o M ] } , $ $ s c o p e : { c t x : n } } ; r e t u r n e = n e w l n ( { p r o p s : i } ) , n [ 1 3 ] ( e ) , e . $ o n ( " h i d e " , n [ 1 4 ] ) , e . $ o n ( " s h o w " , n [ 1 5 ] ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( s , l ) { V ( e , s , l ) , t = ! 0 } , p ( s , [ l ] ) { c o n s t o = { } ; l & 1 6 7 7 7 7 1 0 & & ( o . $ $ s c o p e = { d i r t y : l , c t x : s } ) , e . $ s e t ( o ) } , i ( s ) { t | | ( 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 ) , z ( e , s ) } } } f u n c t i o n f M ( n , e , t ) { l e t i , s , l , o , r ; c o n s t a = $ t ( ) ; l e t u , f , c ; a s y n c f u n c t i o n d ( $ , T ) { t ( 1 , f = $ ) , t ( 2 , c = T ) , a w a i t f 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 ( ) : _ ( ) } f u n c t i o n m ( ) { u = = n u l l | | u . h i d e ( ) } f u n c t i o n _ ( ) { m ( ) , a ( " c o n f i r m " ) } c o n s t h = ( ) = > m ( ) , b = ( ) = > _ ( ) ; f u n c t i o n y ( $ ) { t e [ $ ? " u n s h i f t " : " p u s h " ] ( ( ) = > { u = $ , t ( 4 , u ) } ) } f u n c t i o n S ( $ ) { N e . c a l l ( t h i s , n , $ ) } f u n c t i o n C ( $ ) { N 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 $ , T , M ; 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 = ( ( T = 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 : T . 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 = ( ( 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 = > { v a r L , P , N ; c o n s t D = ( L = 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 : L . f i n d ( F = > F . i d = = O . i d ) ; r e t u r n D ? ( ( P = D . o p t i o n s ) = = n u l l ? v o i d 0 : P . m a x S e l e c t ) ! = 1 & & ( ( N = O . o p t i o n s ) = = n u l l ? v o i d 0 : N . m a x S e l e c t ) = = 1 : ! 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 ) } , [ m , f , c , i , u , o , l , s , r , _ , d , h , b , y , S , C ] } c l a s s c M e x t e n d s g e { c o n s t r u c t o r ( e ) { s u p e r ( ) , _ e ( t h i s , e , f M , u M , m 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 f p ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 4 7 ] = e [ t ] [ 0 ] , i [ 4 8 ] = e [ t ] [ 1 ] , i } f u n c t i o n d M ( n ) { l e t e , t , i ; f u n c t i o n s ( o ) { n [ 3 3 ] ( o ) } l e t l = { } ; r e t u r n n [ 2 ] ! = = v o i d 0 & & ( l . c o l l e c t i o n = n [ 2 ] ) , e = n e w h T ( { p r o p s : l } ) , t e . p u s h ( ( ) = > d e ( e , " c o l l e c t i o n " , s ) ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( o , r ) { V ( e , o , r ) , i = ! 0 } , p ( o , r ) { c o n s t a = { } ; ! t & & r [ 0 ] & 4 & & ( t = ! 0 , a . c o l l e c t i o n = o [ 2 ] , h 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 ) { z ( e , o ) } } } f u n c t i o n p M ( n ) { l e t e , t , i ; f u n c t i o n s ( o ) { n [ 3 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 P T ( { p r o p s : l } ) , t e . p u s h ( ( ) = > d e ( e , " c o l l e c t i o n " , s ) ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( o , r ) { V ( e , o , r ) , i = ! 0 } , p ( o , r ) { c o n s t a = { } ; ! t & & r [ 0 ] & 4 & & ( t = ! 0 , a . c o l l e c t i o n = o [ 2 ] , h 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 ) { z ( e , o ) } } } f u n c t i o n c p ( n ) { l e t e , t , i , s ; f u n c t i o n l ( r ) { n [ 3 4 ] ( r ) } l e t o = { } ; r e t u r n n [ 2 ] ! = = v o i d 0 & & ( o . c o l l e c t i o n = n [ 2 ] ) , t = n e w O T ( { p r o p s : o } ) , t e . p u s h ( ( ) = > d e ( t , " c o l l e c t i o n " , l ) ) , { c ( ) { e = v ( " d i v " ) , H ( t . $ $ . f r a g m e n t ) , p ( e , " c l a s s " , " t a b - i t e m a c t i v e " ) } , m ( r , a ) { w ( r , e , a ) , V ( t , e , n u l l ) , s = ! 0 } , p ( r , a ) { c o n s t u = { } ; ! i & & a [ 0 ] & 4 & & ( i = ! 0 , u . c o l l e c t i o n = r [ 2 ] , h 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 & & k ( e ) , z ( t ) } } } f u n c t i o n d p ( n ) { l e t e , t , i , s ; f u n c t i o n l ( r ) { n [ 3 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 l M ( { p r o p s : o } ) , t e . p u s h ( ( ) = > d e ( t , " c o l l e c t i o n " , l ) ) , { c ( ) { e = v ( " d i v " ) , H ( t . $ $ . f r a g m e n t ) , p ( e , " c l a s s " , " t a b - i t e m " ) , Q ( e , " a c t i v e " , n [ 3 ] = = = N s ) } , m ( r , a ) { w ( r , e , a ) , V ( t , e , n u l l ) , s = ! 0 } ,
2023-06-11 04:32:41 +08:00
< span class = "txt" > Duplicate < /span>`,t=E(),i=v("button"),i.innerHTML=`<i class="ri-delete-bin-7-line"></i >
2023-07-27 20:57:20 +08:00
< span class = "txt" > Delete < / s p a n > ` , p ( e , " t y p e " , " b u t t o n " ) , p ( 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 " ) , p ( i , " t y p e " , " b u t t o n " ) , p ( 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 ) { w ( o , e , r ) , w ( o , t , r ) , w ( o , i , r ) , s | | ( l = [ J ( e , " c l i c k " , n [ 2 4 ] ) , J ( i , " c l i c k " , A n ( e t ( n [ 2 5 ] ) ) ) ] , s = ! 0 ) } , p : x , d ( o ) { o & & k ( e ) , o & & k ( t ) , o & & k ( i ) , s = ! 1 , E e ( l ) } } } f u n c t i o n m p ( n ) { l e t e , t , i , s ; r e t u r n i = n e w K 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 : [ _ M ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { e = v ( " i " ) , t = E ( ) , H ( i . $ $ . f r a g m e n t ) , p ( 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 ) { w ( l , e , o ) , w ( l , t , o ) , V ( i , l , o ) , s = ! 0 } , p ( l , o ) { c o n s t r = { } ; o [ 0 ] & 6 8 | o [ 1 ] & 1 0 4 8 5 7 6 & & ( r . $ $ s c o p e = { d i r t y : o , c t x : l } ) , i . $ s e t ( r ) } , i ( l ) { s | | ( 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 & & k ( e ) , l & & k ( t ) , z ( i , l ) } } } f u n c t i o n h 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 = E ( ) , l = v ( " s p a n " ) , r = U ( o ) , a = U ( " c o l l e c t i o n " ) , u = E ( ) , p ( t , " c l a s s " , i = l s ( B . 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 " ) , p ( l , " c l a s s " , " t x t " ) , p ( e , " t y p e " , " b u t t o n " ) , p ( 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 ( m , _ ) { w ( m , e , _ ) , g ( e , t ) , g ( e , s ) , g ( e , l ) , g ( l , r ) , g ( l , a ) , g ( e , u ) , f | | ( c = J ( e , " c l i c k " , d ) , f = ! 0 ) } , p ( m , _ ) { n = m , _ [ 0 ] & 6 4 & & i ! = = ( i = l s ( B . 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 " ) & & p ( t , " c l a s s " , i ) , _ [ 0 ] & 6 4 & & o ! = = ( o = n [ 4 8 ] + " " ) & & s e ( r , o ) , _ [ 0 ] & 6 8 & & Q ( e , " s e l e c t e d " , n [ 4 7 ] = = n [ 2 ] . t y p e ) } , d ( m ) { m & & k ( e ) , f = ! 1 , c ( ) } } } f u n c t i o n _ M ( n ) { l e t e , t = O b j e c t . e n t r i e s ( n [ 6 ] ) , i = [ ] ; f o r ( l e t s = 0 ; s < t . l e n g t h ; s + = 1 ) i [ s ] = h p ( f p ( n , t , s ) ) ; r e t u r n { c ( ) { f o r ( l e t s = 0 ; s < i . l e n g t h ; s + = 1 ) i [ s ] . c ( ) ; e = y 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 ) ; w ( 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 = f p ( s , t , o ) ; i [ o ] ? i [ o ] . p ( r , l ) : ( i [ o ] = h 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 ) { m t ( i , s ) , s & & k ( e ) } } } f u n c t i o n _ 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 " , p ( e , " c l a s s " , " h e l p - b l o c k " ) } , m ( t , i ) { w ( t , e , i ) } , d ( t ) { t & & k ( e ) } } } f u n c t i o n g M ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d , m , _ , h , b , y = ( n [ 6 ] [ n [ 2 ] . t y p e ] | | " N / A " ) + " " , S , C , $ , T , M , O , D , L , P , N = n [ 2 ] . $ i s N e w & & m p ( n ) , F = n [ 2 ] . s y s t e m & & _ p ( ) ; r e t u r n { c ( ) { e = v ( " l a b e l " ) , t = U ( " N a m e " ) , s = E ( ) , l = v ( " i n p u t " ) , f = E ( ) , c = v ( " d i v " ) , d = v ( " b u t t o n " ) , m = v ( " s p a n " ) , _ = E ( ) , h = v ( " s p a n " ) , b = U ( " T y p e : " ) , S = U ( y ) , C = E ( ) , N & & N . c ( ) , M = E ( ) , F & & F . c ( ) , O = y e ( ) , p ( e , " f o r " , i = n [ 4 6 ] ) , p ( l , " t y p e " , " t e x t " ) , p ( 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 ] , p ( 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 , p ( 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 , p ( h , " c l a s s " , " t x t " ) , p ( d , " t y p e " , " b u t t o n " ) , p ( 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 = T = ! n [ 2 ] . $ i s N e w , p ( c , " c l a s s " , " f o r m - f i e l d - a d d o n " ) } , m ( R , q ) { w ( R , e , q ) , g ( e , t ) , w ( R , s , q ) , w ( R , l , q ) , w ( R , f , q ) , w ( R , c , q ) , g ( c , d ) , g ( d , m ) , g ( d , _ ) , g ( d , h ) , g ( h , b ) , g ( h , S ) , g ( d , C ) , N & & N . m ( d , n u l l ) , w ( R , M , q ) , F & & F . m ( R , q ) , w ( R , O , q ) , D = ! 0 , n [ 2 ] . $ i s N e w & & l . f o c u s ( ) , L | | ( P = J ( l , " i n p u t " , n [ 2 6 ] ) , L = ! 0 ) } , p ( R , q ) { ( ! D | | q [ 1 ] & 3 2 7 6 8 & & i ! = = ( i = R [ 4 6 ] ) ) & & p ( e , " f o r " , i ) , ( ! D | | q [ 1 ] & 3 2 7 6 8 & & o ! = = ( o = R [ 4 6 ] ) ) & & p ( l , " i d " , o ) , ( ! D | | q [ 0 ] & 8 1 9 2 ) & & ( l . d i s a b l e d = R [ 1 3 ] ) , ( ! D | | q [ 0 ] & 4 & & r ! = = ( r = R [ 2 ] . $ i s N e w ) ) & & ( l . a u t o f o c u s = r ) , ( ! D | | q [ 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 " ' ) ) & & p ( l , " p l a c e h o l d e r " , a ) , ( ! D | | q [ 0 ] & 4 & & u ! = = ( u = R [ 2 ] . n a m e ) & & l . v a l u e ! = = u ) & & ( l . v a l u e = u ) , ( ! D | | q [ 0 ] & 6 8 ) & & y ! = = ( y = ( R [ 6 ] [ R [ 2 ] . t y p e ] | | " N / A " ) + " " ) & & s e ( S , y ) , R [ 2 ] . $ i s N e w ? N ? ( N . p ( R , q ) , q [ 0 ] & 4 & & A ( N , 1 ) ) : ( N = m p ( R ) , N . c ( ) , A ( N , 1 ) , N . m ( d , n u l l ) ) : N & & ( a e ( ) , I ( N , 1 , 1 , ( ) = > { N = n u l l } ) , u e ( ) ) , ( ! D | | q [ 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 " ) ) ) & & p ( d , " c l a s s " , $ ) , ( ! D | | q [ 0 ] & 4 & & T ! = = ( T = ! R [ 2 ] . $ i s N e w ) ) & & ( d . d i s a b l e d = T ) , R [ 2 ] . s y s t e m ? F | | ( F = _ p ( ) , F . c ( ) , F . m ( O . p a r e n t N o d e , O ) ) : F & & ( F . d ( 1 ) , F = n u l l ) } , i ( R ) { D | | ( A ( N ) , D = ! 0 ) } , o ( R ) { I ( N ) , D = ! 1 } , d ( R ) { R & & k ( e ) , R & & k ( s ) , R & & k ( l ) , R & & k ( f ) , R & & k ( c ) , N & & N . d ( ) , R & & k ( M ) , F & & F . d ( R ) , R & & k ( O ) , L = ! 1 , P ( ) } } } f u n c t i o n g p ( n ) { l e t e , t , i , s , l , o ; r e t u r n { c ( ) { e = v ( " i " ) , p ( 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 ) { w ( r , e , a ) , s = ! 0 , l | | ( o = M e ( t = H e . c a l l ( n u l l , e , n [ 1 1 ] ) ) , l = ! 0 ) } , p ( r , a ) { t & & j t ( t . u p d a t e ) & & a [ 0 ] & 2 0 4 8 & & t . u p d a t e . c a l l ( n u l l , r [ 1 1 ] ) } , i ( r ) { s | | ( r & & Q e ( ( ) = > { s & & ( i | | ( i = j e ( e , K 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 |
2023-08-07 02:51:55 +08:00
< span class = "txt" > New collection < /span>`,p(t,"type","button"),p(t,"class","btn btn-block btn-outline"),p(e,"class","sidebar-footer")},m(l,o){w(l,e,o),g(e,t),i||(s=J(t,"click",n[12]),i=!0)},p:x,d(l){l&&k(e),i=!1,s()}}}function SM(n){let e,t,i,s,l,o,r,a,u,f,c,d=[],m=new Map,_,h,b,y,S,C,$=n[3];const T=L=>L[15].id;for(let L=0;L<$.length;L+=1){let P=Sp(n,$,L),N=T(P);m.set(N,d[L]=Tp(N,P))}let M=null;$.length||(M=$p(n));let O=!n[7]&&Mp(n),D={};return b=new cu({props:D}),n[13](b),b.$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 = E ( ) , r = v ( "input" ) , a = E ( ) , u = v ( "hr" ) , f = E ( ) , c = v ( "div" ) ; for ( let L = 0 ; L < d . length ; L += 1 ) d [ L ] . c ( ) ; M && M . c ( ) , _ = E ( ) , O && O . c ( ) , h = E ( ) , H ( b . $$ . fragment ) , p ( l , "type" , "button" ) , p ( l , "class" , "btn btn-xs btn-transparent btn-circle btn-clear" ) , Q ( l , "hidden" , ! n [ 4 ] ) , p ( s , "class" , "form-field-addon" ) , p ( r , "type" , "text" ) , p ( r , "placeholder" , "Search collections..." ) , p ( i , "class" , "form-field search" ) , Q ( i , "active" , n [ 4 ] ) , p ( t , "class" , "sidebar-header" ) , p ( u , "class" , "m-t-5 m-b-xs" ) , p ( c , "class" , "sidebar-content" ) , Q ( c , "fade" , n [ 6 ] ) , Q ( c , "sidebar-content-compact" , n [ 3 ] . length > 20 ) , p ( e , "class" , "page-sidebar collection-sidebar" ) } , m ( L , P ) { w ( L , e , P ) , g ( e , t ) , g ( t , i ) , g ( i , s ) , g ( s , l ) , g ( i , o ) , g ( i , r ) , re ( r , n [ 0 ] ) , g ( e , a ) , g ( e , u ) , g ( e , f ) , g ( e , c ) ; for ( let N = 0 ; N < d . length ; N += 1 ) d [ N ] && d [ N ] . m ( c , null ) ; M && M . m ( c , null ) , g ( e , _ ) , O && O . m ( e , null ) , w ( L , h , P ) , V ( b , L , P ) , y = ! 0 , S || ( C = [ J ( l , "click" , n [ 10 ] ) , J ( r , "input" , n [ 11 ] ) ] , S = ! 0 ) } , p ( L , [ P ] ) { ( ! y || P & 16 ) && Q ( l , "hidden" , ! L [ 4 ] ) , P & 1 && r . value !== L [ 0 ] && re ( r , L [ 0 ] ) , ( ! y || P & 16 ) && Q ( i , "active" , L [ 4 ] ) , P & 42 && ( $ = L [ 3 ] , d = bt ( d , P , T , 1 , L , $ , m , c , as , Tp , null , Sp ) , ! $ . length && M ? M . p ( L , P ) : $ . length ? M && ( M . d ( 1 ) , M = null ) : ( M = $p ( L ) , M . c ( ) , M . m ( c , null ) ) ) , ( ! y || P & 64 ) && Q ( c , "fade" , L [ 6 ] ) , ( ! y || P & 8 ) && Q ( c , "sidebar-content-compact" , L [ 3 ] . length > 20 ) , L [ 7 ] ? O && ( O . d ( 1 ) , O = null ) : O ? O . p ( L , P ) : ( O = Mp ( L ) , O . c ( ) , O . m ( e , null ) ) ; const N = { } ; b . $set ( N ) } , i ( L ) { y || ( A ( b . $$ . fragment , L ) , y = ! 0 ) } , o ( L ) { I ( b . $$ . fragment , L ) , y = ! 1 } , d ( L ) { L && k ( e ) ; for ( let P = 0 ; P < d . length ; P += 1 ) d [ P ] . d ( ) ; M && M . d ( ) , O && O . d ( ) , L && k ( h ) , n [ 13 ] ( null ) , z ( b , L ) , S = ! 1 , Ee ( C ) } } } function $M ( ) { setTimeout ( ( ) => { const n = document . querySelector ( ".collection-sidebar .sidebar-list-item.active" ) ; n && ( n == null || n . scrollIntoView ( { block : "nearest" } ) ) } , 0 ) } function CM ( n , e , t ) { let i , s , l , o , r , a , u ; Je ( n , ui , S => t ( 5 , o = S ) ) , Je ( n , ci , S => t ( 9 , r = S ) ) , Je ( n , wo , S => t ( 6 , a = S ) ) , Je ( n , As , S => t ( 7 , u = S ) ) ; let f , c = "" ; function d ( S ) { sn ( ui , o = S , o ) } const m = ( ) => t ( 0 , c = "" ) ; function _ ( ) { c = this . value , t ( 0 , c ) } const h = ( ) => f == null ? void 0 : f . show ( ) ; function b ( S ) { te [ S ? "unshift" : "push" ] ( ( ) => { f = S , t ( 2 , f ) } ) } const y = S => { var C ; ( C = S . detail ) != null && C . isNew && S . detail . collection && d ( S . detail . collection ) } ; return n . $$ . update = ( ) => { n . $$ . dirty & 512 && r && $M ( ) , 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 ( S => S . id == c || S . name . replace ( /\s+/g , "" ) . toLowerCase ( ) . includes ( i ) ) ) } , [ c , i , f , l , s , o , a , u , d , r , m , _ , h , b , y ] } class TM extends ge { constructor ( e ) { super ( ) , _e ( this , e , CM , SM , me , { } ) } } function Op ( n , e , t ) { const i = n . slice ( ) ; return i [ 14 ] = e [ t ] [ 0 ] , i [ 15 ] = e [ t ] [ 1 ] , i } function Ep ( n ) { n [ 18 ] = n [ 19 ] . default } function Dp ( n , e , t ) { const i = n . slice ( ) ; return i [ 14 ] = e [ t ] [ 0 ] , i [ 15 ] = e [ t ] [ 1 ] , i [ 21 ] = t , i } function Ap ( n ) { let e ; return { c ( ) { e = v ( "hr" ) , p ( e , "class" , "m-t-sm m-b-sm" ) } , m ( t , i ) { w ( t , e , i ) } , d ( t ) { t && k ( e ) } } } function Ip ( n , e ) { let t , i = e [ 21 ] === Object . keys ( e [ 6 ] ) . length , s , l , o = e [ 15 ] . label + "" , r , a , u , f , c = i && Ap ( ) ; function d ( ) { return e [ 9 ] ( e [ 14 ] ) } return { key : n , first : null , c ( ) { t = ye ( ) , c && c . c ( ) , s = E ( ) , l = v ( "button" ) , r = U ( o ) , a = E ( ) , p ( l , "type" , "button" ) , p ( l , "class" , "sidebar-item" ) , Q ( l , "active" , e [ 5 ] === e [ 14 ] ) , this . first = t } , m ( m , _ ) { w ( m , t , _ ) , c && c . m ( m , _ ) , w ( m , s , _ ) , w ( m , l , _ ) , g ( l , r ) , g ( l , a ) , u || ( f = J ( l , "click" , d ) , u = ! 0 ) } , p ( m , _ ) { e = m , _ & 8 && ( i = e [ 21 ] === Object . keys ( e [ 6 ] ) . length ) , i ? c || ( c = Ap ( ) , c . c ( ) , c . m ( s . parentNode , s ) ) : c && ( c . d ( 1 ) , c = null ) , _ & 8 && o !== ( o = e [ 15 ] . label + "" ) && se ( r , o ) , _ & 40 && Q ( l , "active" , e [ 5 ] === e [ 14 ] ) } , d ( m ) { m && k ( t ) , c && c . d ( m ) , m && k ( s ) , m && k ( l ) , u = ! 1 , f ( ) } } } function Lp ( n ) { let e , t , i , s = { ctx : n , current : null , token : null , hasCatch : ! 1 , pending : EM , then : OM , catch : MM , value : 19 , blocks : [ , , , ] } ; return gu ( t = n [ 15 ] . component , s ) , { c ( ) { e = ye ( ) , s . block . c ( ) } , m ( l , o ) { w ( l , e , o ) , s . block . m ( l , s . anchor = o ) , s . mount = ( ) => e . parentNode , s . an
2023-06-11 04:32:41 +08:00
form - field form - field - list form - field - file
` +(n[4].required?"required":"")+ `
` +(n[9]?"dragover":"")+ `
2023-07-22 23:50:40 +08:00
` ,name:n[4].name, $ $ slots:{default:[Z5,({uniqueId:o})=>({28:o}),({uniqueId:o})=>[o?268435456:0]]}, $ $ scope:{ctx:n}}}),{c(){e=v("div"),H(t. $ $ .fragment),p(e,"class","block")},m(o,r){w(o,e,r),V(t,e,null),i=!0,s||(l=[J(e,"dragover",et(n[25])),J(e,"dragleave",n[26]),J(e,"drop",n[15])],s=!0)},p(o,r){const a={};r[0]&528&&(a.class= `
2023-06-11 04:32:41 +08:00
form - field form - field - list form - field - file
` +(o[4].required?"required":"")+ `
` +(o[9]?"dragover":"")+ `
2023-07-27 20:57:20 +08:00
` ),r[0]&16&&(a.name=o[4].name),r[0]&268439039|r[1]&64&&(a. $ $ scope={dirty:r,ctx:o}),t. $ set(a)},i(o){i||(A(t. $ $ .fragment,o),i=!0)},o(o){I(t. $ $ .fragment,o),i=!1},d(o){o&&k(e),z(t),s=!1,Ee(l)}}}function X5(n,e,t){let i,s,l,{record:o}=e,{value:r=""}=e,{uploadedFiles:a=[]}=e,{deletedFileNames:u=[]}=e,{field:f=new kn}=e,c,d,m=!1,_="";function h(j){B.removeByValue(u,j),t(2,u)}function b(j){B.pushUnique(u,j),t(2,u)}function y(j){B.isEmpty(a[j])||a.splice(j,1),t(1,a)}function S(){d==null||d.dispatchEvent(new CustomEvent("change",{detail:{value:r,uploadedFiles:a,deletedFileNames:u},bubbles:!0}))}function C(j){var X,G;j.preventDefault(),t(9,m=!1);const Y=((X=j.dataTransfer)==null?void 0:X.files)||[];if(!(l||!Y.length)){for(const W of Y){const le=s.length+a.length-u.length;if(((G=f.options)==null?void 0:G.maxSelect)<=le)break;a.push(W)}t(1,a)}}Gt(async()=>{t(10,_=await ce.getAdminFileToken(o.collectionId))});const $ =j=>h(j),T=j=>b(j);function M(j){r=j,t(0,r),t(6,i),t(4,f)}const O=j=>y(j);function D(j){a=j,t(1,a)}function L(j){te[j?"unshift":"push"](()=>{c=j,t(7,c)})}const P=()=>{for(let j of c.files)a.push(j);t(1,a),t(7,c.value=null,c)},N=()=>c==null?void 0:c.click();function F(j){te[j?"unshift":"push"](()=>{d=j,t(8,d)})}const R=()=>{t(9,m=!0)},q=()=>{t(9,m=!1)};return n. $ $ set=j=>{"record"in j&&t(3,o=j.record),"value"in j&&t(0,r=j.value),"uploadedFiles"in j&&t(1,a=j.uploadedFiles),"deletedFileNames"in j&&t(2,u=j.deletedFileNames),"field"in j&&t(4,f=j.field)},n. $ $ .update=()=>{var j,Y;n. $ $ .dirty[0]&2&&(Array.isArray(a)||t(1,a=B.toArray(a))),n. $ $ .dirty[0]&4&&(Array.isArray(u)||t(2,u=B.toArray(u))),n. $ $ .dirty[0]&16&&t(6,i=((j=f.options)==null?void 0:j.maxSelect)>1),n. $ $ .dirty[0]&65&&B.isEmpty(r)&&t(0,r=i?[]:""),n. $ $ .dirty[0]&1&&t(5,s=B.toArray(r)),n. $ $ .dirty[0]&54&&t(11,l=(s.length||a.length)&&((Y=f.options)==null?void 0:Y.maxSelect)<=s.length+a.length-u.length),n. $ $ .dirty[0]&6&&(a!==-1||u!==-1)&&S()},[r,a,u,o,f,s,i,c,d,m,_,l,h,b,y,C, $ ,T,M,O,D,L,P,N,F,R,q]}class Q5 extends ge{constructor(e){super(),_e(this,e,X5,G5,me,{record:3,value:0,uploadedFiles:1,deletedFileNames:2,field:4},null,[-1,-1])}}function Up(n){return typeof n=="function"?{threshold:100,callback:n}:n||{}}function x5(n,e){e=Up(e),e!=null&&e.callback&&e.callback();function t(i){if(!(e!=null&&e.callback))return;i.target.scrollHeight-i.target.clientHeight-i.target.scrollTop<=e.threshold&&e.callback()}return n.addEventListener("scroll",t),n.addEventListener("resize",t),{update(i){e=Up(i)},destroy(){n.removeEventListener("scroll",t),n.removeEventListener("resize",t)}}}function Wp(n,e,t){const i=n.slice();i[6]=e[t];const s=B.toArray(i[0][i[6]]).slice(0,5);return i[7]=s,i}function Yp(n,e,t){const i=n.slice();return i[10]=e[t],i}function Kp(n){let e,t;return e=new du({props:{record:n[0],filename:n[10],size:"xs"}}),{c(){H(e. $ $ .fragment)},m(i,s){V(e,i,s),t=!0},p(i,s){const l={};s&1&&(l.record=i[0]),s&3&&(l.filename=i[10]),e. $ set(l)},i(i){t||(A(e. $ $ .fragment,i),t=!0)},o(i){I(e. $ $ .fragment,i),t=!1},d(i){z(e,i)}}}function Jp(n){let e=!B.isEmpty(n[10]),t,i,s=e&&Kp(n);return{c(){s&&s.c(),t=ye()},m(l,o){s&&s.m(l,o),w(l,t,o),i=!0},p(l,o){o&3&&(e=!B.isEmpty(l[10])),e?s?(s.p(l,o),o&3&&A(s,1)):(s=Kp(l),s.c(),A(s,1),s.m(t.parentNode,t)):s&&(ae(),I(s,1,1,()=>{s=null}),ue())},i(l){i||(A(s),i=!0)},o(l){I(s),i=!1},d(l){s&&s.d(l),l&&k(t)}}}function Zp(n){let e,t,i=n[7],s=[];for(let o=0;o<i.length;o+=1)s[o]=Jp(Yp(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=ye()},m(o,r){for(let a=0;a<s.length;a+=1)s[a]&&s[a].m(o,r);w(o,e,r),t=!0},p(o,r){if(r&3){i=o[7];let a;for(a=0;a<i.length;a+=1){const u=Yp(o,i,a);s[a]?(s[a].p(u,r),A(s[a],1)):(s[a]=Jp(u),s[a].c(),A(s[a],1),s[a].m(e.parentNode,e))}for(ae(),a=i.length;a<s.length;a+=1)l(a);ue()}},i(o){if(!t){for(let r=0;r<i.length;r+=1)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){mt(s,o),o&&k(e)}}}function e6(n){let e,t,i,s,l,o,r=B.truncate(B.displayValue(n[0],n[2]),70)+"",a,u,f,c,d=n[1],m=[];for(let h=0;h<d.length;h+=1)m[h]=Zp(Wp(n,d,h));const _=h=>I(m[h],1,1,()=>{m[h
` ),L&&L.c(),m=E(),h.c(),b=ye(),p(e,"class","flex m-b-base flex-gap-10"),p(l,"class","list picker-list m-b-base svelte-1u8jhky"),p(c,"class","section-title")},m(q,j){w(q,e,j),V(t,e,null),g(e,i), $ && $ .m(e,null),w(q,s,j),w(q,l,j);for(let Y=0;Y<o.length;Y+=1)o[Y]&&o[Y].m(l,null);O&&O.m(l,null),g(l,a),D&&D.m(l,null),w(q,f,j),w(q,c,j),g(c,d),L&&L.m(c,null),w(q,m,j),N[_].m(q,j),w(q,b,j),y=!0,S||(C=Me(u=x5.call(null,l,n[36])),S=!0)},p(q,j){var G;const Y={};j[0]&4&&(Y.value=q[2]),j[0]&1024&&(Y.autocompleteCollection=q[10]),t. $ set(Y),(G=q[10])!=null&&G. $ isView? $ &&( $ .d(1), $ =null): $ ? $ .p(q,j):( $ =Qp(q), $ .c(), $ .m(e,null)),j[0]&145364&&(T=q[7],ae(),o=bt(o,j,M,1,q,T,r,l,Bt,im,a,Xp),ue(),!T.length&&O?O.p(q,j):T.length?O&&(O.d(1),O=null):(O=xp(q),O.c(),O.m(l,a))),q[12]?D||(D=sm(),D.c(),D.m(l,null)):D&&(D.d(1),D=null),u&&jt(u.update)&&j[0]&2056&&u.update.call(null,q[36]),q[4]>1?L?L.p(q,j):(L=lm(q),L.c(),L.m(c,null)):L&&(L.d(1),L=null);let X=_;_=F(q),_===X?N[_].p(q,j):(ae(),I(N[X],1,1,()=>{N[X]=null}),ue(),h=N[_],h?h.p(q,j):(h=N[_]=P[_](q),h.c()),A(h,1),h.m(b.parentNode,b))},i(q){if(!y){A(t. $ $ .fragment,q);for(let j=0;j<T.length;j+=1)A(o[j]);A(h),y=!0}},o(q){I(t. $ $ .fragment,q);for(let j=0;j<o.length;j+=1)I(o[j]);I(h),y=!1},d(q){q&&k(e),z(t), $ && $ .d(),q&&k(s),q&&k(l);for(let j=0;j<o.length;j+=1)o[j].d();O&&O.d(),D&&D.d(),q&&k(f),q&&k(c),L&&L.d(),q&&k(m),N[_].d(q),q&&k(b),S=!1,C()}}}function a6(n){var r;let e,t,i,s=(((r=n[10])==null?void 0:r.name)||"")+"",l,o;return{c(){e=v("h4"),t=U("Select "),i=v("strong"),l=U(s),o=U(" records")},m(a,u){w(a,e,u),g(e,t),g(e,i),g(i,l),g(e,o)},p(a,u){var f;u[0]&1024&&s!==(s=(((f=a[10])==null?void 0:f.name)||"")+"")&&se(l,s)},d(a){a&&k(e)}}}function u6(n){let e,t,i,s,l;return{c(){e=v("button"),e.innerHTML='<span class="txt">Cancel</span>',t=E(),i=v("button"),i.innerHTML='<span class="txt">Set selection</span>',p(e,"type","button"),p(e,"class","btn btn-transparent"),p(i,"type","button"),p(i,"class","btn")},m(o,r){w(o,e,r),w(o,t,r),w(o,i,r),s||(l=[J(e,"click",n[28]),J(i,"click",n[29])],s=!0)},p:x,d(o){o&&k(e),o&&k(t),o&&k(i),s=!1,Ee(l)}}}function f6(n){let e,t,i,s;const l=[{popup:!0},{class:"overlay-panel-xl"},n[19]];let o={ $ $ slots:{footer:[u6],header:[a6],default:[r6]}, $ $ scope:{ctx:n}};for(let a=0;a<l.length;a+=1)o=qe(o,l[a]);e=new ln({props:o}),n[39](e),e. $ on("hide",n[40]),e. $ on("show",n[41]);let r={collection:n[10]};return i=new T1({props:r}),n[42](i),i. $ on("save",n[43]),i. $ on("delete",n[44]),{c(){H(e. $ $ .fragment),t=E(),H(i. $ $ .fragment)},m(a,u){V(e,a,u),w(a,t,u),V(i,a,u),s=!0},p(a,u){const f=u[0]&524288?Mt(l,[l[0],l[1],Xt(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),z(e,a),a&&k(t),n[42](null),z(i,a)}}}const oo=50;function c6(n,e,t){let i,s,l,o,r,a,u,f;const c=["value","field","show","hide"];let d=xe(e,c),m;Je(n,ci,Le=>t(26,m=Le));const _= $ t(),h="picker_"+B.randomString(5);let{value:b}=e,{field:y}=e,S,C, $ ="",T=[],M=[],O=1,D=0,L=!1,P=!1;function N(){return t(2, $ =""),t(7,T=[]),t(5,M=[]),R(),q(!0),S==null?void 0:S.show()}function F(){return S==null?void 0:S.hide()}async function R(){const Le=B.toArray(b);if(!s||!Le.length)return;t(24,P=!0);let $ e=[];const nt=Le.slice(),At=[];for(;nt.length>0;){const It=[];for(const Ut of nt.splice(0,oo))It.push( ` id = "${Ut}" ` );At.push(ce.collection(s).getFullList(oo,{filter:It.join("||"), $ autoCancel:!1}))}try{await Promise.all(At).then(It=>{ $ e= $ e.concat(...It)}),t(5,M=[]);for(const It of Le){const Ut=B.findByKey( $ e,"id",It);Ut&&M.push(Ut)} $ .trim()||t(7,T=B.filterDuplicatesByKey(M.concat(T))),t(24,P=!1)}catch(It){It.isAbort||(ce.error(It),t(24,P=!1))}}async function q(Le=!1){if(s){t(3,L=!0),Le&&( $ .trim()?t(7,T=[]):t(7,T=B.toArray(M).slice()));try{const $ e=Le?1:O+1,nt=B.getAllCollectionIdentifiers(o),At=await ce.collection(s).getList( $ e,oo,{filter:B.normalizeSearchFilter( $ ,nt),sort:o!=null&&o. $ isView?"":"-created",skipTotal:1, $ cancelKey:h+"loadList"});t(7,T=B.filterDuplicatesByK
` ,p(e,"class","list-item")},m(t,i){w(t,e,i)},p:x,d(t){t&&k(e)}}}function p6(n){var d;let e,t,i,s,l,o,r,a,u,f;i=new ir({props:{record:n[20],displayFields:(d=n[2].options)==null?void 0:d.displayFields}});function c(){return n[10](n[20])}return{c(){e=v("div"),t=v("div"),H(i. $ $ .fragment),s=E(),l=v("div"),o=v("button"),o.innerHTML='<i class="ri-close-line"></i>',r=E(),p(t,"class","content"),p(o,"type","button"),p(o,"class","btn btn-transparent btn-hint btn-sm btn-circle btn-remove"),p(l,"class","actions"),p(e,"class","list-item"),Q(e,"dragging",n[23]),Q(e,"dragover",n[24])},m(m,_){w(m,e,_),g(e,t),V(i,t,null),g(e,s),g(e,l),g(l,o),w(m,r,_),a=!0,u||(f=[Me(He.call(null,o,"Remove")),J(o,"click",c)],u=!0)},p(m,_){var b;n=m;const h={};_&16&&(h.record=n[20]),_&4&&(h.displayFields=(b=n[2].options)==null?void 0:b.displayFields),i. $ set(h),(!a||_&8388608)&&Q(e,"dragging",n[23]),(!a||_&16777216)&&Q(e,"dragover",n[24])},i(m){a||(A(i. $ $ .fragment,m),a=!0)},o(m){I(i. $ $ .fragment,m),a=!1},d(m){m&&k(e),z(i),m&&k(r),u=!1,Ee(f)}}}function dm(n,e){let t,i,s,l;function o(a){e[11](a)}let r={group:e[2].name+"_relation",index:e[22],disabled:!e[6], $ $ slots:{default:[p6,({dragging:a,dragover:u})=>({23:a,24:u}),({dragging:a,dragover:u})=>(a?8388608:0)|(u?16777216:0)]}, $ $ scope:{ctx:e}};return e[4]!==void 0&&(r.list=e[4]),i=new Nl({props:r}),te.push(()=>de(i,"list",o)),i. $ on("sort",e[12]),{key:n,first:null,c(){t=ye(),H(i. $ $ .fragment),this.first=t},m(a,u){w(a,t,u),V(i,a,u),l=!0},p(a,u){e=a;const f={};u&4&&(f.group=e[2].name+"_relation"),u&16&&(f.index=e[22]),u&64&&(f.disabled=!e[6]),u&293601300&&(f. $ $ scope={dirty:u,ctx:e}),!s&&u&16&&(s=!0,f.list=e[4],he(()=>s=!1)),i. $ set(f)},i(a){l||(A(i. $ $ .fragment,a),l=!0)},o(a){I(i. $ $ .fragment,a),l=!1},d(a){a&&k(t),z(i,a)}}}function m6(n){let e,t,i,s,l,o=n[2].name+"",r,a,u,f,c,d=[],m=new Map,_,h,b,y,S,C, $ =n[4];const T=O=>O[20].id;for(let O=0;O< $ .length;O+=1){let D=rm(n, $ ,O),L=T(D);m.set(L,d[O]=dm(L,D))}let M=null;return $ .length||(M=um(n)),{c(){e=v("label"),t=v("i"),s=E(),l=v("span"),r=U(o),u=E(),f=v("div"),c=v("div");for(let O=0;O<d.length;O+=1)d[O].c();M&&M.c(),_=E(),h=v("div"),b=v("button"),b.innerHTML= ` < i class = "ri-magic-line" > < / i >
2023-06-11 04:32:41 +08:00
2023-07-27 21:10:28 +08:00
< span class = "txt" > Open picker < / s p a n > ` , p ( t , " c l a s s " , i = l s ( B . 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 " ) , p ( l , " c l a s s " , " t x t " ) , p ( e , " f o r " , a = n [ 1 9 ] ) , p ( 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 " ) , p ( b , " t y p e " , " b u t t o n " ) , p ( b , " 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 " ) , p ( h , " c l a s s " , " l i s t - i t e m l i s t - i t e m - b t n " ) , p ( f , " c l a s s " , " l i s t " ) } , m ( O , D ) { w ( O , e , D ) , g ( e , t ) , g ( e , s ) , g ( e , l ) , g ( l , r ) , w ( O , u , D ) , w ( O , f , D ) , g ( f , c ) ; f o r ( l e t L = 0 ; L < d . l e n g t h ; L + = 1 ) d [ L ] & & d [ L ] . m ( c , n u l l ) ; M & & M . m ( c , n u l l ) , g ( f , _ ) , g ( f , h ) , g ( h , b ) , y = ! 0 , S | | ( C = J ( b , " c l i c k " , n [ 1 3 ] ) , S = ! 0 ) } , p ( O , D ) { ( ! y | | D & 4 & & i ! = = ( i = l s ( B . g e t F i e l d T y p e I c o n ( O [ 2 ] . t y p e ) ) + " s v e l t e - 1 y n w 0 p c " ) ) & & p ( t , " c l a s s " , i ) , ( ! y | | D & 4 ) & & o ! = = ( o = O [ 2 ] . n a m e + " " ) & & s e ( r , o ) , ( ! y | | D & 5 2 4 2 8 8 & & a ! = = ( a = O [ 1 9 ] ) ) & & p ( e , " f o r " , a ) , D & 2 5 1 6 6 3 2 5 & & ( $ = O [ 4 ] , a e ( ) , d = b t ( d , D , T , 1 , O , $ , m , c , B t , d m , n u l l , r m ) , u e ( ) , ! $ . l e n g t h & & M ? M . p ( O , D ) : $ . l e n g t h ? M & & ( M . d ( 1 ) , M = n u l l ) : ( M = u m ( O ) , M . c ( ) , M . m ( c , n u l l ) ) ) } , i ( O ) { i f ( ! y ) { f o r ( l e t D = 0 ; D < $ . l e n g t h ; D + = 1 ) A ( d [ D ] ) ; y = ! 0 } } , o ( O ) { f o r ( l e t D = 0 ; D < d . l e n g t h ; D + = 1 ) I ( d [ D ] ) ; y = ! 1 } , d ( O ) { O & & k ( e ) , O & & k ( u ) , O & & k ( f ) ; f o r ( l e t D = 0 ; D < d . l e n g t h ; D + = 1 ) d [ D ] . d ( ) ; M & & M . d ( ) , S = ! 1 , C ( ) } } } f u n c t i o n h 6 ( 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 : [ m 6 , ( { u n i q u e I d : r } ) = > ( { 1 9 : r } ) , ( { u n i q u e I d : r } ) = > r ? 5 2 4 2 8 8 : 0 ] } , $ $ s c o p e : { c t x : n } } ; e = n e w p e ( { p r o p s : l } ) , n [ 1 4 ] ( e ) ; l e t o = { v a l u e : n [ 0 ] , f i e l d : n [ 2 ] } ; r e t u r n i = n e w d 6 ( { p r o p s : o } ) , n [ 1 5 ] ( i ) , i . $ o n ( " s a v e " , n [ 1 6 ] ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) , t = E ( ) , H ( i . $ $ . f r a g m e n t ) } , m ( r , a ) { V ( e , r , a ) , w ( r , t , a ) , V ( i , r , a ) , s = ! 0 } , p ( r , [ a ] ) { c o n s t u = { } ; a & 4 & & ( u . c l a s s = " f o r m - f i e l d f o r m - f i e l d - l i s t " + ( r [ 2 ] . r e q u i r e d ? " r e q u i r e d " : " " ) ) , a & 4 & & ( u . n a m e = r [ 2 ] . n a m e ) , a & 2 6 8 9 5 9 8 6 3 & & ( u . $ $ s c o p e = { d i r t y : a , c t x : r } ) , e . $ s e t ( u ) ; c o n s t f = { } ; a & 1 & & ( f . v a l u e = r [ 0 ] ) , a & 4 & & ( f . f i e l d = r [ 2 ] ) , i . $ s e t ( f ) } , i ( r ) { s | | ( 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 4 ] ( n u l l ) , z ( e , r ) , r & & k ( t ) , n [ 1 5 ] ( n u l l ) , z ( i , r ) } } } c o n s t p m = 1 0 0 ; f u n c t i o n _ 6 ( 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 k n } = e , r , a = [ ] , u = ! 1 , f ; f u n c t i o n c ( ) { i f ( u ) r e t u r n ! 1 ; c o n s t M = B . t o A r r a y ( s ) ; r e t u r n t ( 4 , a = a . f i l t e r ( O = > M . i n c l u d e s ( O . i d ) ) ) , M . l e n g t h ! = a . l e n g t h } a s y n c f u n c t i o n d ( ) { v a r L , P ; c o n s t M = B . t o A r r a y ( s ) ; i f ( t ( 4 , a = [ ] ) , ! ( ( L = o = = n u l l ? v o i d 0 : o . o p t i o n s ) ! = n u l l & & L . c o l l e c t i o n I d ) | | ! M . l e n g t h ) { t ( 5 , u = ! 1 ) ; r e t u r n } t ( 5 , u = ! 0 ) ; c o n s t O = M . s l i c e ( ) , D = [ ] ; f o r ( ; O . l e n g t h > 0 ; ) { c o n s t N = [ ] ; f o r ( c o n s t F o f O . s p l i c e ( 0 , p m ) ) N . p u s h ( ` i d = " $ { F } " ` ) ; D . p u s h ( c e . c o l l e c t i o n ( ( P = 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 : P . c o l l e c t i o n I d ) . g e t F u l l L i s t ( p m , { f i l t e r : N . j o i n ( " | | " ) , $ a u t o C a n c e l : ! 1 } ) ) } t r y { l e t N = [ ] ; a w a i t P r o m i s e . a l l ( D ) . t h e n ( F = > { N = N . c o n c a t ( . . . F ) } ) ; f o r ( c o n s t F o f M ) { c o n s t R = B . f i n d B y K e y ( N , " i d " , F ) ; R & & a . p u s h ( R ) } t ( 4 , a ) , _ ( ) } c a t c h ( N ) { c e . e r r o r ( N ) } t ( 5 , u = ! 1 ) } f u n c t i o n m ( M ) { B . r e m o v e B y K e y ( a , " i d " , M . i d ) , t ( 4 , a ) , _ ( ) } f u n c t i o n _ ( ) { v a r M ; i ? t ( 0 , s = a . m a p ( O = > O . i d ) ) : t ( 0 , s = ( ( M = a [ 0 ] ) = = n u l l ? v o i d 0 : M . i d ) | | " " ) } V o ( ( ) = > { c l e a r T i m e o u t ( f ) } ) ; c o n s t h = M = > m ( M ) ; f u n c t i o n b ( M ) { a = M , t ( 4 , a ) } c o n s t y = ( ) = > { _ ( ) } , S = ( ) = > l = = n u l l ? v o i d 0 : l . s h o w ( ) ; f u n c t i o n C ( M ) { t e [ M ? " u n s h i f t " : " p u s h " ] ( ( ) = > { r = M , t ( 3 , r ) } ) } f u n c t i o n $ ( M ) { t e [ M ? " u n s h i f t " : " p u s h " ] ( ( ) = > { l = M , t ( 1 , l ) } ) } c o n s t T = M = > { v a r O ; t ( 4 , a = M . d e t a i l | | [ ] ) , t ( 0 , s = i ? a . m a p ( D = > D . i d ) : ( ( O = a [ 0 ] ) = = n u l l ? v o i d 0 : O . i d ) | | " " ) } ; r e t u r n n . $ $ s e t = M = > { " v a l u e " i n M & & t ( 0 , s = M . v a l u e ) , " p i c k e r " i n M & & t ( 1 , l = M . p i c k e r ) , " f i e l d " i n M & & t ( 2 , o = M . f i e l d ) } , n . $ $ . u p d a t e = ( ) = > { v a r M ; n . $ $ . d i r t y & 4 & & t ( 6 , i = ( ( M = o . o p t i o n s ) = = n u l l ? v o i d 0 : M . m a x S e l e c t ) ! = 1 ) , n . $ $ . d i r t y & 9 & & t y p e o f s < " u " & & ( r = = n u l l | | r . c h a n g e d ( ) ) , n . $ $ . d i r t y & 5 2 9 & & c ( ) & & ( t ( 5 , u = ! 0 ) , c l e a r T i m e o u t ( f ) , t ( 9 , f = s e t T i m e o u t ( d , 0 ) ) ) } , [ s , l , o , r , a , u , i , m , _ , f , h , b , y , S , C , $ , T ] } c l a s s g 6 e x t e n d s g e { c o n s t r u c t o r ( e ) { s u p e r ( ) , _ e ( t h i s , e , _ 6 , h 6 , 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 b 6 = [ " 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
2023-06-11 04:32:41 +08:00
...
2023-07-27 20:57:20 +08:00
-- -- - END PRIVATE KEY -- -- - ` ),p(a,"class","help-block")},m(c,d){w(c,e,d),g(e,t),w(c,s,d),w(c,l,d),re(l,n[5]),w(c,r,d),w(c,a,d),u||(f=J(l,"input",n[16]),u=!0)},p(c,d){d&8388608&&i!==(i=c[23])&&p(e,"for",i),d&8388608&&o!==(o=c[23])&&p(l,"id",o),d&32&&re(l,c[5])},d(c){c&&k(e),c&&k(s),c&&k(l),c&&k(r),c&&k(a),u=!1,f()}}}function G6(n){let e,t,i,s,l,o,r,a,u,f,c,d,m,_,h,b,y,S;return s=new pe({props:{class:"form-field required",name:"clientId", $ $ slots:{default:[W6,({uniqueId:C})=>({23:C}),({uniqueId:C})=>C?8388608:0]}, $ $ scope:{ctx:n}}}),r=new pe({props:{class:"form-field required",name:"teamId", $ $ slots:{default:[Y6,({uniqueId:C})=>({23:C}),({uniqueId:C})=>C?8388608:0]}, $ $ scope:{ctx:n}}}),f=new pe({props:{class:"form-field required",name:"keyId", $ $ slots:{default:[K6,({uniqueId:C})=>({23:C}),({uniqueId:C})=>C?8388608:0]}, $ $ scope:{ctx:n}}}),m=new pe({props:{class:"form-field required",name:"duration", $ $ slots:{default:[J6,({uniqueId:C})=>({23:C}),({uniqueId:C})=>C?8388608:0]}, $ $ scope:{ctx:n}}}),h=new pe({props:{class:"form-field required",name:"privateKey", $ $ slots:{default:[Z6,({uniqueId:C})=>({23:C}),({uniqueId:C})=>C?8388608:0]}, $ $ scope:{ctx:n}}}),{c(){e=v("form"),t=v("div"),i=v("div"),H(s. $ $ .fragment),l=E(),o=v("div"),H(r. $ $ .fragment),a=E(),u=v("div"),H(f. $ $ .fragment),c=E(),d=v("div"),H(m. $ $ .fragment),_=E(),H(h. $ $ .fragment),p(i,"class","col-lg-6"),p(o,"class","col-lg-6"),p(u,"class","col-lg-6"),p(d,"class","col-lg-6"),p(t,"class","grid"),p(e,"id",n[9]),p(e,"autocomplete","off")},m(C, $ ){w(C,e, $ ),g(e,t),g(t,i),V(s,i,null),g(t,l),g(t,o),V(r,o,null),g(t,a),g(t,u),V(f,u,null),g(t,c),g(t,d),V(m,d,null),g(t,_),V(h,t,null),b=!0,y||(S=J(e,"submit",et(n[17])),y=!0)},p(C, $ ){const T={}; $ &25165828&&(T. $ $ scope={dirty: $ ,ctx:C}),s. $ set(T);const M={}; $ &25165832&&(M. $ $ scope={dirty: $ ,ctx:C}),r. $ set(M);const O={}; $ &25165840&&(O. $ $ scope={dirty: $ ,ctx:C}),f. $ set(O);const D={}; $ &25165888&&(D. $ $ scope={dirty: $ ,ctx:C}),m. $ set(D);const L={}; $ &25165856&&(L. $ $ scope={dirty: $ ,ctx:C}),h. $ set(L)},i(C){b||(A(s. $ $ .fragment,C),A(r. $ $ .fragment,C),A(f. $ $ .fragment,C),A(m. $ $ .fragment,C),A(h. $ $ .fragment,C),b=!0)},o(C){I(s. $ $ .fragment,C),I(r. $ $ .fragment,C),I(f. $ $ .fragment,C),I(m. $ $ .fragment,C),I(h. $ $ .fragment,C),b=!1},d(C){C&&k(e),z(s),z(r),z(f),z(m),z(h),y=!1,S()}}}function X6(n){let e;return{c(){e=v("h4"),e.textContent="Generate Apple client secret",p(e,"class","center txt-break")},m(t,i){w(t,e,i)},p:x,d(t){t&&k(e)}}}function Q6(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=v("button"),t=U("Close"),i=E(),s=v("button"),l=v("i"),o=E(),r=v("span"),r.textContent="Generate and set secret",p(e,"type","button"),p(e,"class","btn btn-transparent"),e.disabled=n[7],p(l,"class","ri-key-line"),p(r,"class","txt"),p(s,"type","submit"),p(s,"form",n[9]),p(s,"class","btn btn-expanded"),s.disabled=a=!n[8]||n[7],Q(s,"btn-loading",n[7])},m(c,d){w(c,e,d),g(e,t),w(c,i,d),w(c,s,d),g(s,l),g(s,o),g(s,r),u||(f=J(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&&k(e),c&&k(i),c&&k(s),u=!1,f()}}}function x6(n){let e,t,i={overlayClose:!n[7],escClose:!n[7],beforeHide:n[18],popup:!0, $ $ slots:{footer:[Q6],header:[X6],default:[G6]}, $ $ scope:{ctx:n}};return e=new ln({props:i}),n[19](e),e. $ on("show",n[20]),e. $ on("hide",n[21]),{c(){H(e. $ $ .fragment)},m(s,l){V(e,s,l),t=!0},p(s,[l]){const o={};l&128&&(o.overlayClose=!s[7]),l&128&&(o.escClose=!s[7]),l&128&&(o.beforeHide=s[18]),l&16777724&&(o. $ $ scope={dirty:l,ctx:s}),e. $ set(o)},i(s){t||(A(e. $ $ .fragment,s),t=!0)},o(s){I(e. $ $ .fragment,s),t=!1},d(s){n[19](null),z(e,s)}}}const mo=15777e3;function eO(n,e,t){let i;const s= $ t(),l="apple_secret_"+B.randomString(5);let o,r,a,u,f,c,d=!1;function m(P={}){t(2,r=P.clientId||""),t(3,a=P.teamId||""),t(4,u=P.keyId||""),t(5,f=P.privateKey||""),t(6,c=P.duration||mo),en({}),o==null||o.show()}function _(){return o==null?void 0:o.hide()}async function h(){t(7,d=!0);try{const P=await ce.settings.generateAppleClientSecret(r,a,u,f.trim(),c);t(7,d=!1),zt("Successfully generated client secret."),s("submit",P),o==null||o.hide()}catch(P){ce.error(P)}t(7,d=!1)}fu
2023-07-22 23:50:40 +08:00
` ),r=v("button"),r.textContent="Restore draft",a=E(),u=v("button"),u.innerHTML='<i class="ri-close-line"></i>',f=E(),c=v("div"),p(i,"class","icon"),p(r,"type","button"),p(r,"class","btn btn-sm btn-secondary"),p(l,"class","flex flex-gap-xs"),p(u,"type","button"),p(u,"class","close"),p(u,"aria-label","Discard draft"),p(t,"class","alert alert-info m-0"),p(c,"class","clearfix p-b-base"),p(e,"class","block")},m(b,y){w(b,e,y),g(e,t),g(t,i),g(t,s),g(t,l),g(l,o),g(l,r),g(t,a),g(t,u),g(e,f),g(e,c),m=!0,_||(h=[J(r,"click",n[36]),Me(He.call(null,u,"Discard draft")),J(u,"click",et(n[37]))],_=!0)},p:x,i(b){m||(d&&d.end(1),m=!0)},o(b){d= $ a(e,ot,{duration:150}),m=!1},d(b){b&&k(e),b&&d&&d.end(),_=!1,Ee(h)}}}function vm(n){let e,t,i,s,l;return{c(){e=v("div"),t=v("i"),p(t,"class","ri-calendar-event-line txt-disabled"),p(e,"class","form-field-addon")},m(o,r){w(o,e,r),g(e,t),s||(l=Me(i=He.call(null,t,{text: ` Created : $ { n [ 3 ] . created }
Updated : $ { n [ 3 ] . updated } ` ,position:"left"})),s=!0)},p(o,r){i&&jt(i.update)&&r[0]&8&&i.update.call(null,{text: ` Created : $ { o [ 3 ] . created }
2023-07-27 20:57:20 +08:00
Updated : $ { o [ 3 ] . updated } ` ,position:"left"})},d(o){o&&k(e),s=!1,l()}}}function cO(n){let e,t,i,s,l,o,r,a,u,f,c,d,m,_,h=!n[6]&&vm(n);return{c(){e=v("label"),t=v("i"),i=E(),s=v("span"),s.textContent="id",l=E(),o=v("span"),a=E(),h&&h.c(),u=E(),f=v("input"),p(t,"class",ls(B.getFieldTypeIcon("primary"))+" svelte-qc5ngu"),p(s,"class","txt"),p(o,"class","flex-fill"),p(e,"for",r=n[69]),p(f,"type","text"),p(f,"id",c=n[69]),p(f,"placeholder","Leave empty to auto generate..."),p(f,"minlength","15"),f.readOnly=d=!n[6]},m(b,y){w(b,e,y),g(e,t),g(e,i),g(e,s),g(e,l),g(e,o),w(b,a,y),h&&h.m(b,y),w(b,u,y),w(b,f,y),re(f,n[3].id),m||(_=J(f,"input",n[38]),m=!0)},p(b,y){y[2]&128&&r!==(r=b[69])&&p(e,"for",r),b[6]?h&&(h.d(1),h=null):h?h.p(b,y):(h=vm(b),h.c(),h.m(u.parentNode,u)),y[2]&128&&c!==(c=b[69])&&p(f,"id",c),y[0]&64&&d!==(d=!b[6])&&(f.readOnly=d),y[0]&8&&f.value!==b[3].id&&re(f,b[3].id)},d(b){b&&k(e),b&&k(a),h&&h.d(b),b&&k(u),b&&k(f),m=!1,_()}}}function ym(n){var u,f;let e,t,i,s,l;function o(c){n[39](c)}let r={isNew:n[6],collection:n[0]};n[3]!==void 0&&(r.record=n[3]),e=new BM({props:r}),te.push(()=>de(e,"record",o));let a=((f=(u=n[0])==null?void 0:u.schema)==null?void 0:f.length)&&km();return{c(){H(e. $ $ .fragment),i=E(),a&&a.c(),s=ye()},m(c,d){V(e,c,d),w(c,i,d),a&&a.m(c,d),w(c,s,d),l=!0},p(c,d){var _,h;const m={};d[0]&64&&(m.isNew=c[6]),d[0]&1&&(m.collection=c[0]),!t&&d[0]&8&&(t=!0,m.record=c[3],he(()=>t=!1)),e. $ set(m),(h=(_=c[0])==null?void 0:_.schema)!=null&&h.length?a||(a=km(),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){z(e,c),c&&k(i),a&&a.d(c),c&&k(s)}}}function km(n){let e;return{c(){e=v("hr")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function dO(n){let e,t,i;function s(o){n[52](o,n[66])}let l={field:n[66]};return n[3][n[66].name]!==void 0&&(l.value=n[3][n[66].name]),e=new g6({props:l}),te.push(()=>de(e,"value",s)),{c(){H(e. $ $ .fragment)},m(o,r){V(e,o,r),i=!0},p(o,r){n=o;const a={};r[0]&1&&(a.field=n[66]),!t&&r[0]&9&&(t=!0,a.value=n[3][n[66].name],he(()=>t=!1)),e. $ set(a)},i(o){i||(A(e. $ $ .fragment,o),i=!0)},o(o){I(e. $ $ .fragment,o),i=!1},d(o){z(e,o)}}}function pO(n){let e,t,i,s,l;function o(f){n[49](f,n[66])}function r(f){n[50](f,n[66])}function a(f){n[51](f,n[66])}let u={field:n[66],record:n[3]};return n[3][n[66].name]!==void 0&&(u.value=n[3][n[66].name]),n[4][n[66].name]!==void 0&&(u.uploadedFiles=n[4][n[66].name]),n[5][n[66].name]!==void 0&&(u.deletedFileNames=n[5][n[66].name]),e=new Q5({props:u}),te.push(()=>de(e,"value",o)),te.push(()=>de(e,"uploadedFiles",r)),te.push(()=>de(e,"deletedFileNames",a)),{c(){H(e. $ $ .fragment)},m(f,c){V(e,f,c),l=!0},p(f,c){n=f;const d={};c[0]&1&&(d.field=n[66]),c[0]&8&&(d.record=n[3]),!t&&c[0]&9&&(t=!0,d.value=n[3][n[66].name],he(()=>t=!1)),!i&&c[0]&17&&(i=!0,d.uploadedFiles=n[4][n[66].name],he(()=>i=!1)),!s&&c[0]&33&&(s=!0,d.deletedFileNames=n[5][n[66].name],he(()=>s=!1)),e. $ set(d)},i(f){l||(A(e. $ $ .fragment,f),l=!0)},o(f){I(e. $ $ .fragment,f),l=!1},d(f){z(e,f)}}}function mO(n){let e,t,i;function s(o){n[48](o,n[66])}let l={field:n[66]};return n[3][n[66].name]!==void 0&&(l.value=n[3][n[66].name]),e=new $ 5({props:l}),te.push(()=>de(e,"value",s)),{c(){H(e. $ $ .fragment)},m(o,r){V(e,o,r),i=!0},p(o,r){n=o;const a={};r[0]&1&&(a.field=n[66]),!t&&r[0]&9&&(t=!0,a.value=n[3][n[66].name],he(()=>t=!1)),e. $ set(a)},i(o){i||(A(e. $ $ .fragment,o),i=!0)},o(o){I(e. $ $ .fragment,o),i=!1},d(o){z(e,o)}}}function hO(n){let e,t,i;function s(o){n[47](o,n[66])}let l={field:n[66]};return n[3][n[66].name]!==void 0&&(l.value=n[3][n[66].name]),e=new y5({props:l}),te.push(()=>de(e,"value",s)),{c(){H(e. $ $ .fragment)},m(o,r){V(e,o,r),i=!0},p(o,r){n=o;const a={};r[0]&1&&(a.field=n[66]),!t&&r[0]&9&&(t=!0,a.value=n[3][n[66].name],he(()=>t=!1)),e. $ set(a)},i(o){i||(A(e. $ $ .fragment,o),i=!0)},o(o){I(e. $ $ .fragment,o),i=!1},d(o){z(e,o)}}}function _O(n){let e,t,i;function s(o){n[46](o,n[66])}let l={field:n[66]};return n[3][n[66].name]!==void 0&&(l.value=n[3][n[66].name]),e=new _5({props:l}),te.push(()=>de(e,"value",s)),{c(){H(e. $ $ .fragment)},m(o,r){V(e,o,r),i=!0},p(o,r){n=o;const a={};r[0]&1
2023-07-22 23:50:40 +08:00
< span class = "txt" > Send verification email < /span>`,p(e,"type","button"),p(e,"class","dropdown-item closable")},m(s,l){w(s,e,l),t||(i=J(e,"click",n[30]),t=!0)},p:x,d(s){s&&k(e),t=!1,i()}}}function Tm(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>`,p(e,"type","button"),p(e,"class","dropdown-item closable")},m(s,l){w(s,e,l),t||(i=J(e,"click",n[31]),t=!0)},p:x,d(s){s&&k(e),t=!1,i()}}}function $O(n){let e,t,i,s,l,o,r,a=n[0].$isAuth&&!n[2].verified&&n[2].email&&Cm(n),u=n[0].$isAuth&&n[2].email&&Tm(n);return{c(){a&&a.c(),e=E(),u&&u.c(),t=E(),i=v("button"),i.innerHTML=`<i class="ri-file-copy-line"></i >
2023-06-11 04:32:41 +08:00
< span class = "txt" > Duplicate < /span>`,s=E(),l=v("button"),l.innerHTML=`<i class="ri-delete-bin-7-line"></i >
2023-07-22 23:50:40 +08:00
< span class = "txt" > Delete < / s p a n > ` , p ( i , " t y p e " , " b u t t o n " ) , p ( 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 " ) , p ( l , " t y p e " , " b u t t o n " ) , p ( 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 ) , w ( f , e , c ) , u & & u . m ( f , c ) , w ( f , t , c ) , w ( f , i , c ) , w ( f , s , c ) , w ( f , l , c ) , o | | ( r = [ J ( i , " c l i c k " , n [ 3 2 ] ) , J ( l , " c l i c k " , A n ( e t ( n [ 3 3 ] ) ) ) ] , o = ! 0 ) } , p ( f , c ) { f [ 0 ] . $ i s A u t h & & ! f [ 2 ] . v e r i f i e d & & f [ 2 ] . e m a i l ? a ? a . p ( f , c ) : ( a = C m ( f ) , a . c ( ) , a . m ( e . p a r e n t N o d e , e ) ) : a & & ( a . d ( 1 ) , a = n u l l ) , f [ 0 ] . $ i s A u t h & & f [ 2 ] . e m a i l ? u ? u . p ( f , c ) : ( u = T m ( f ) , u . c ( ) , u . m ( t . p a r e n t N o d e , t ) ) : u & & ( u . d ( 1 ) , u = n u l l ) } , d ( f ) { a & & a . d ( f ) , f & & k ( e ) , u & & u . d ( f ) , f & & k ( t ) , f & & k ( i ) , f & & k ( s ) , f & & k ( l ) , o = ! 1 , E e ( r ) } } } f u n c t i o n M 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 = E ( ) , 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 " , p ( t , " t y p e " , " b u t t o n " ) , p ( t , " c l a s s " , " t a b - i t e m " ) , Q ( t , " a c t i v e " , n [ 1 2 ] = = = s s ) , p ( s , " t y p e " , " b u t t o n " ) , p ( s , " c l a s s " , " t a b - i t e m " ) , Q ( s , " a c t i v e " , n [ 1 2 ] = = = w l ) , p ( 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 ) { w ( r , e , a ) , g ( e , t ) , g ( e , i ) , g ( e , s ) , l | | ( o = [ J ( t , " c l i c k " , n [ 3 4 ] ) , J ( s , " c l i c k " , n [ 3 5 ] ) ] , l = ! 0 ) } , p ( r , a ) { a [ 0 ] & 4 0 9 6 & & Q ( t , " a c t i v e " , r [ 1 2 ] = = = s s ) , a [ 0 ] & 4 0 9 6 & & Q ( s , " a c t i v e " , r [ 1 2 ] = = = w l ) } , d ( r ) { r & & k ( e ) , l = ! 1 , E e ( o ) } } } f u n c t i o n C O ( n ) { v a r h ; l e t e , t = n [ 6 ] ? " N e w " : " E d i t " , i , s , l , o = ( ( h = n [ 0 ] ) = = n u l l ? v o i d 0 : h . n a m e ) + " " , r , a , u , f , c , d , m = ! n [ 6 ] & & $ m ( n ) , _ = n [ 0 ] . $ i s A u t h & & ! n [ 6 ] & & M m ( n ) ; r e t u r n { c ( ) { e = v ( " h 4 " ) , i = U ( t ) , s = E ( ) , l = v ( " s t r o n g " ) , r = U ( o ) , a = U ( " r e c o r d " ) , u = E ( ) , m & & m . c ( ) , f = E ( ) , _ & & _ . c ( ) , c = y e ( ) , p ( e , " c l a s s " , " p a n e l - t i t l e s v e l t e - q c 5 n g u " ) } , m ( b , y ) { w ( b , e , y ) , g ( e , i ) , g ( e , s ) , g ( e , l ) , g ( l , r ) , g ( e , a ) , w ( b , u , y ) , m & & m . m ( b , y ) , w ( b , f , y ) , _ & & _ . m ( b , y ) , w ( b , c , y ) , d = ! 0 } , p ( b , y ) { v a r S ; ( ! d | | y [ 0 ] & 6 4 ) & & t ! = = ( t = b [ 6 ] ? " N e w " : " E d i t " ) & & s e ( i , t ) , ( ! d | | y [ 0 ] & 1 ) & & o ! = = ( o = ( ( S = b [ 0 ] ) = = n u l l ? v o i d 0 : S . n a m e ) + " " ) & & s e ( r , o ) , b [ 6 ] ? m & & ( a e ( ) , I ( m , 1 , 1 , ( ) = > { m = n u l l } ) , u e ( ) ) : m ? ( m . p ( b , y ) , y [ 0 ] & 6 4 & & A ( m , 1 ) ) : ( m = $ m ( b ) , m . c ( ) , A ( m , 1 ) , m . m ( f . p a r e n t N o d e , f ) ) , b [ 0 ] . $ i s A u t h & & ! b [ 6 ] ? _ ? _ . p ( b , y ) : ( _ = M m ( b ) , _ . c ( ) , _ . m ( c . p a r e n t N o d e , c ) ) : _ & & ( _ . d ( 1 ) , _ = n u l l ) } , i ( b ) { d | | ( A ( m ) , d = ! 0 ) } , o ( b ) { I ( m ) , d = ! 1 } , d ( b ) { b & & k ( e ) , b & & k ( u ) , m & & m . d ( b ) , b & & k ( f ) , _ & & _ . d ( b ) , b & & k ( c ) } } } f u n c t i o n T O ( n ) { l e t e , t , i , s , l , o = n [ 6 ] ? " C r e a t e " : " S a v e c h a n g e s " , r , a , u , f ; r e t u r n { c ( ) { e = 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 = E ( ) , s = v ( " b u t t o n " ) , l = v ( " s p a n " ) , r = U ( o ) , p ( t , " c l a s s " , " t x t " ) , p ( e , " t y p e " , " b u t t o n " ) , p ( e , " c l a s s " , " b t n b t n - t r a n s p a r e n t " ) , e . d i s a b l e d = n [ 1 0 ] , p ( l , " c l a s s " , " t x t " ) , p ( s , " t y p e " , " s u b m i t " ) , p ( s , " f o r m " , n [ 1 5 ] ) , p ( s , " c l a s s " , " b t n b t n - e x p a n d e d " ) , s . d i s a b l e d = a = ! n [ 1 3 ] | | n [ 1 0 ] , Q ( s , " b t n - l o a d i n g " , n [ 1 0 ] ) } , m ( c , d ) { w ( c , e , d ) , g ( e , t ) , w ( c , i , d ) , w ( c , s , d ) , g ( s , l ) , g ( l , r ) , u | | ( f = J ( e , " c l i c k " , n [ 2 9 ] ) , u = ! 0 ) } , p ( c , d ) { d [ 0 ] & 1 0 2 4 & & ( e . d i s a b l e d = c [ 1 0 ] ) , d [ 0 ] & 6 4 & & o ! = = ( o = c [ 6 ] ? " C r e a t e " : " S a v e c h a n g e s " ) & & s e ( r , o ) , d [ 0 ] & 9 2 1 6 & & a ! = = ( a = ! c [ 1 3 ] | | c [ 1 0 ] ) & & ( s . d i s a b l e d = a ) , d [ 0 ] & 1 0 2 4 & & Q ( s , " b t n - l o a d i n g " , c [ 1 0 ] ) } , d ( c ) { c & & k ( e ) , c & & k ( i ) , c & & k ( s ) , u = ! 1 , f ( ) } } } f u n c t i o n M O ( n ) { v a r s ; l e t e , t , i = { c l a s s : `
2023-06-11 04:32:41 +08:00
record - panel
` +(n[14]?"overlay-panel-xl":"overlay-panel-lg")+ `
` +((s=n[0])!=null&&s. $ isAuth&&!n[6]?"colored-header":"")+ `
2023-07-22 23:50:40 +08:00
` ,beforeHide:n[53], $ $ slots:{footer:[TO],header:[CO],default:[SO]}, $ $ scope:{ctx:n}};return e=new ln({props:i}),n[54](e),e. $ on("hide",n[55]),e. $ on("show",n[56]),{c(){H(e. $ $ .fragment)},m(l,o){V(e,l,o),t=!0},p(l,o){var a;const r={};o[0]&16449&&(r.class= `
2023-06-11 04:32:41 +08:00
record - panel
` +(l[14]?"overlay-panel-xl":"overlay-panel-lg")+ `
` +((a=l[0])!=null&&a. $ isAuth&&!l[6]?"colored-header":"")+ `
2023-07-27 20:57:20 +08:00
` ),o[0]&2176&&(r.beforeHide=l[53]),o[0]&14077|o[2]&256&&(r. $ $ scope={dirty:o,ctx:l}),e. $ set(r)},i(l){t||(A(e. $ $ .fragment,l),t=!0)},o(l){I(e. $ $ .fragment,l),t=!1},d(l){n[54](null),z(e,l)}}}const ss="form",wl="providers";function OO(n,e,t){let i,s,l,o;const r= $ t(),a="record_"+B.randomString(5);let{collection:u}=e,f,c=null,d=null,m=null,_=!1,h=!1,b={},y={},S=JSON.stringify(null),C=S, $ =ss,T=!0,M=!1;function O(ve){return L(ve),t(11,h=!0),t(12, $ =ss),f==null?void 0:f.show()}function D(){return f==null?void 0:f.hide()}async function L(ve){t(27,M=!1),en({}),t(2,c=ve||new yi),t(3,d=c. $ clone()),t(4,b={}),t(5,y={}),await fn(),t(9,m=F()),!m||j(d,m)?t(9,m=null):(delete m.password,delete m.passwordConfirm),t(25,S=JSON.stringify(d)),t(27,M=!0)}async function P(ve){var Fe,Xe;en({}),t(2,c=ve||new yi),t(4,b={}),t(5,y={});const De=((Xe=(Fe=u==null?void 0:u.schema)==null?void 0:Fe.filter(Ot=>Ot.type!="file"))==null?void 0:Xe.map(Ot=>Ot.name))||[];for(let Ot in ve. $ export())De.includes(Ot)||t(3,d[Ot]=ve[Ot],d);await fn(),t(25,S=JSON.stringify(d)),Y()}function N(){return"record_draft_"+((u==null?void 0:u.id)||"")+"_"+((c==null?void 0:c.id)||"")}function F(ve){try{const De=window.localStorage.getItem(N());if(De)return new yi(JSON.parse(De))}catch{}return ve}function R(ve){window.localStorage.setItem(N(),ve)}function q(){m&&(t(3,d=m),t(9,m=null))}function j(ve,De){var $ n;const Fe=ve==null?void 0:ve. $ clone(),Xe=De==null?void 0:De. $ clone(),Ot=( $ n=u==null?void 0:u.schema)==null?void 0: $ n.filter(Nn=>Nn.type==="file");for(let Nn of Ot)Fe==null||delete Fe[Nn.name],Xe==null||delete Xe[Nn.name];return Fe==null||delete Fe.password,Fe==null||delete Fe.passwordConfirm,Xe==null||delete Xe.password,Xe==null||delete Xe.passwordConfirm,JSON.stringify(Fe)==JSON.stringify(Xe)}function Y(){t(9,m=null),window.localStorage.removeItem(N())}function X(ve=!0){if(_||!o||!(u!=null&&u.id))return;t(10,_=!0);const De=W();let Fe;T?Fe=ce.collection(u.id).create(De):Fe=ce.collection(u.id).update(d.id,De),Fe.then(Xe=>{zt(T?"Successfully created record.":"Successfully updated record."),Y(),ve?(t(11,h=!1),D()):P(Xe),r("save",Xe)}).catch(Xe=>{ce.error(Xe)}).finally(()=>{t(10,_=!1)})}function G(){c!=null&&c.id&&pn("Do you really want to delete the selected record?",()=>ce.collection(c.collectionId).delete(c.id).then(()=>{D(),zt("Successfully deleted record."),r("delete",c)}).catch(ve=>{ce.error(ve)}))}function W(){const ve=(d==null?void 0:d. $ export())||{},De=new FormData,Fe={id:ve.id};for(const Xe of(u==null?void 0:u.schema)||[])Fe[Xe.name]=!0;u!=null&&u.isAuth&&(Fe.username=!0,Fe.email=!0,Fe.emailVisibility=!0,Fe.password=!0,Fe.passwordConfirm=!0,Fe.verified=!0);for(const Xe in ve)Fe[Xe]&&(typeof ve[Xe]>"u"&&(ve[Xe]=null),B.addValueToFormData(De,Xe,ve[Xe]));for(const Xe in b){const Ot=B.toArray(b[Xe]);for(const $ n of Ot)De.append(Xe, $ n)}for(const Xe in y){const Ot=B.toArray(y[Xe]);for(const $ n of Ot)De.append(Xe+"."+ $ n,"")}return De}function le(){!(u!=null&&u.id)||!(c!=null&&c.email)||pn( ` Do you really want to sent verification email to $ { c . email } ? ` ,()=>ce.collection(u.id).requestVerification(c.email).then(()=>{zt( ` Successfully sent verification email to $ { c . email } . ` )}).catch(ve=>{ce.error(ve)}))}function ee(){!(u!=null&&u.id)||!(c!=null&&c.email)||pn( ` Do you really want to sent password reset email to $ { c . email } ? ` ,()=>ce.collection(u.id).requestPasswordReset(c.email).then(()=>{zt( ` Successfully sent password reset email to $ { c . email } . ` )}).catch(ve=>{ce.error(ve)}))}function ie(){l?pn("You have unsaved changes. Do you really want to discard them?",()=>{be()}):be()}async function be(){const ve=c==null?void 0:c. $ clone();if(ve){ve.id="",ve.created="",ve.updated="";const De=(u==null?void 0:u.schema)||[];for(const Fe of De)Fe.type==="file"&&delete ve[Fe.name]}Y(),O(ve),await fn(),t(25,S="")}function Se(ve){(ve.ctrlKey||ve.metaKey)&&ve.code=="KeyS"&&(ve.preventDefault(),ve.stopPropagation(),X(!1))}const Ve=()=>D(),Be=()=>le(),ke=()=>ee(),Te=()=>ie(),Ze=()=>G(),ht=()=>t(12, $ =ss),Ge=()=>t(12, $ =wl),Ye=()=>q(),we=()=>Y();function fe(){d.id=this.value,t(3,d)}function ze(ve){d=ve,t(3,d)}fu
2023-06-11 04:32:41 +08:00
` },m(t,i){w(t,e,i)},p:x,d(t){t&&k(e)}}}function _E(n){let e,t,i;return{c(){e=v("button"),e.innerHTML= ` < i class = "ri-add-line" > < / i >
2023-07-27 20:57:20 +08:00
< span class = "txt" > New record < / s p a n > ` , p ( e , " t y p e " , " b u t t o n " ) , p ( 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 ) { w ( s , e , l ) , t | | ( i = J ( e , " c l i c k " , n [ 4 0 ] ) , t = ! 0 ) } , p : x , d ( s ) { s & & k ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n g E ( 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 > ' , p ( e , " t y p e " , " b u t t o n " ) , p ( 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 ) { w ( s , e , l ) , t | | ( i = J ( e , " c l i c k " , n [ 3 9 ] ) , t = ! 0 ) } , p : x , d ( s ) { s & & k ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n i h ( 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 = E ( ) , r = v ( " l a b e l " ) , p ( i , " t y p e " , " c h e c k b o x " ) , p ( 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 ] , p ( r , " f o r " , a = " c h e c k b o x _ " + n [ 5 5 ] . i d ) , p ( t , " c l a s s " , " f o r m - f i e l d " ) , p ( 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 , m ) { w ( d , e , m ) , g ( e , t ) , g ( t , i ) , g ( t , o ) , g ( t , r ) , u | | ( f = [ J ( i , " c h a n g e " , c ) , J ( t , " c l i c k " , A n ( n [ 2 6 ] ) ) ] , u = ! 0 ) } , p ( d , m ) { n = d , m [ 0 ] & 1 6 & & s ! = = ( s = " c h e c k b o x _ " + n [ 5 5 ] . i d ) & & p ( i , " i d " , s ) , m [ 0 ] & 8 0 & & l ! = = ( l = n [ 6 ] [ n [ 5 5 ] . i d ] ) & & ( i . c h e c k e d = l ) , m [ 0 ] & 1 6 & & a ! = = ( a = " c h e c k b o x _ " + n [ 5 5 ] . i d ) & & p ( r , " f o r " , a ) } , d ( d ) { d & & k ( e ) , u = ! 1 , E e ( f ) } } } f u n c t i o n s h ( n ) { l e t e , t , i , s , l , o , r = n [ 5 5 ] . i d + " " , a , u , f ; s = n e w F l ( { 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 & & l h ( n ) ; r e t u r n { c ( ) { e = v ( " t d " ) , t = v ( " d i v " ) , i = v ( " d i v " ) , H ( s . $ $ . f r a g m e n t ) , l = E ( ) , o = v ( " d i v " ) , a = U ( r ) , u = E ( ) , c & & c . c ( ) , p ( o , " c l a s s " , " t x t " ) , p ( i , " c l a s s " , " l a b e l " ) , p ( t , " c l a s s " , " f l e x f l e x - g a p - 5 " ) , p ( 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 , m ) { w ( d , e , m ) , g ( e , t ) , g ( t , i ) , V ( s , i , n u l l ) , g ( i , l ) , g ( i , o ) , g ( o , a ) , g ( t , u ) , c & & c . m ( t , n u l l ) , f = ! 0 } , p ( d , m ) { c o n s t _ = { } ; m [ 0 ] & 1 6 & & ( _ . v a l u e = d [ 5 5 ] . i d ) , s . $ s e t ( _ ) , ( ! f | | m [ 0 ] & 1 6 ) & & r ! = = ( r = d [ 5 5 ] . i d + " " ) & & s e ( a , r ) , d [ 2 ] . $ i s A u t h ? c ? c . p ( d , m ) : ( c = l h ( 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 & & k ( e ) , z ( s ) , c & & c . d ( ) } } } f u n c t i o n l h ( n ) { l e t e ; f u n c t i o n t ( l , o ) { r e t u r n l [ 5 5 ] . v e r i f i e d ? v E : b E } l e t i = t ( n ) , s = i ( n ) ; r e t u r n { c ( ) { s . c ( ) , e = y e ( ) } , m ( l , o ) { s . m ( l , o ) , w ( 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 & & k ( e ) } } } f u n c t i o n b E ( n ) { l e t e , t , i ; r e t u r n { c ( ) { e = v ( " i " ) , p ( 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 ) { w ( s , e , l ) , t | | ( i = M e ( H 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 & & k ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n v E ( n ) { l e t e , t , i ; r e t u r n { c ( ) { e = v ( " i " ) , p ( 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 ) { w ( s , e , l ) , t | | ( i = M e ( H e . c a l l ( n u l l , e , " V e r i f i e d " ) ) , t = ! 0 ) } , d ( s ) { s & & k ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n o h ( n ) { l e t e = ! n [ 7 ] . i n c l u d e s ( " @ u s e r n a m e " ) , t , i = ! n [ 7 ] . i n c l u d e s ( " @ e m a i l " ) , s , l = e & & r h ( n ) , o = i & & a h ( n ) ; r e t u r n { c ( ) { l & & l . c ( ) , t = E ( ) , o & & o . c ( ) , s = y e ( ) } , m ( r , a ) { l & & l . m ( r , a ) , w ( r , t , a ) , o & & o . m ( r , a ) , w ( 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 = r h ( r ) , l . c ( ) , l . m ( t . p a r e n t N o d e , t ) ) : l & & ( l . d ( 1 ) , l = n u l l ) , a [ 0 ] & 1 2 8 & & ( i = ! r [ 7 ] . i n c l u d e s ( " @ e m a i l " ) ) , i ? o ? o . p ( r , a ) : ( o = a h ( r ) , o . c ( ) , o . m ( s . p a r e n t N o d e , s ) ) : o & & ( o . d ( 1 ) , o = n u l l ) } , d ( r ) { l & & l . d ( r ) , r & & k ( t ) , o & & o . d ( r ) , r & & k ( s ) } } } f u n c t i o n r h ( n ) { l e t e , t ; f u n c t i o n i ( o , r ) { r e t u r n r [ 0 ] & 1 6 & & ( t = n u l l ) , t = = n u l l & & ( t = ! ! B . i s E m p t y ( o [ 5 5 ] . u s e r n a m e ) ) , t ? k E : y E } 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 ( ) , p ( 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 ) { w ( 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 & & k ( e ) , l . d ( ) } } } f u n c t i o n y E ( n ) { l e t e , t = n [ 5 5 ] . u s e r n a m e + " " , i , s ; r e t u r n { c ( ) { e = v ( " s p a n " ) , i = U ( t ) , p ( e , " c l a s s " , " t x t t x t - e l l i p s i s " ) , p ( e , " t i t l e " , s = n [ 5 5 ] . u s e r n a m e ) } , m ( l , o ) { w ( l , e , o ) , g ( e , i ) } , p ( l , o ) { o [ 0 ] & 1 6 & & t ! = = ( t = l [ 5 5 ] . u s e r n a m e + " " ) & & s e ( i , t ) , o [ 0 ] & 1 6 & & s ! = = ( s = l [ 5 5 ] . u s e r n a m e ) & & p ( e , " t i t l e " , s ) } , d ( l ) { l & & k ( e ) } } } f u n c t i o n k E ( 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 " , p ( e , " c l a s s " , " t x t - h i n t " ) } , m ( t , i ) { w ( t , e , i ) } , p : x , d ( t ) { t & & k ( e ) } } } f u n c t i o n a h ( n ) { l e t e , t ; f u n c t i o n i ( o , r ) { r e t u r n r [ 0 ] & 1 6 & & ( t = n u l l ) , t = = n u l l & & ( t = ! ! B . i s E m p t y ( o [ 5 5 ] . e m a i l ) ) , t ? S E : w E } 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 ( ) , p ( 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 ) { w ( 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 & & k ( e ) , l . d ( ) } } } f u n c t i o n w E ( n ) { l e t e , t = n [ 5 5 ] . e m a i l + " " , i , s ; r e t u r n { c ( ) { e = v ( " s p a n " ) , i = U ( t ) , p ( e , " c l a s s " , " t x t t x t - e l l i p s i s " ) , p ( e , " t i t l e " , s = n [ 5 5 ] . e m a i l ) } , m ( l , o ) { w ( l , e , o ) , g ( e , i ) } , p ( l , o ) { o [ 0 ] & 1 6 & & t ! = = ( t = l [ 5 5 ] . e m a i l + "
< span class = "txt" > New record < /span>`,p(e,"type","button"),p(e,"class","btn btn-expanded")},m(s,l){w(s,e,l),t||(i=J(e,"click",n[18]),t=!0)},p:x,d(s){s&&k(e),t=!1,i()}}}function NE(n){let e,t,i,s,l,o=n[2].name+"",r,a,u,f,c,d,m,_,h,b,y,S,C,$,T,M,O,D,L,P,N=!n[10]&&bh(n);c=new Go({}),c.$on("refresh",n[16]);let F=!n[2].$isView&&vh(n);y=new Zo({props:{value:n[0],autocompleteCollection:n[2]}}),y.$on("submit",n[19]);function R(Y){n[21](Y)}function q(Y){n[22](Y)}let j={collection:n[2]};return n[0]!==void 0&&(j.filter=n[0]),n[1]!==void 0&&(j.sort=n[1]),T=new AE({props:j}),n[20](T),te.push(()=>de(T,"filter",R)),te.push(()=>de(T,"sort",q)),T.$on("select",n[23]),T.$on("new",n[24]),{c(){e=v("header"),t=v("nav"),i=v("div"),i.textContent="Collections",s=E(),l=v("div"),r=U(o),a=E(),u=v("div"),N&&N.c(),f=E(),H(c.$$.fragment),d=E(),m=v("div"),_=v("button"),_.innerHTML=`<i class="ri-code-s-slash-line"></i >
< span class = "txt" > API Preview < /span>`,h=E(),F&&F.c(),b=E(),H(y.$$.fragment),S=E(),C=v("div"),$=E(),H(T.$$.fragment),p(i,"class","breadcrumb-item"),p(l,"class","breadcrumb-item"),p(t,"class","breadcrumbs"),p(u,"class","inline-flex gap-5"),p(_,"type","button"),p(_,"class","btn btn-outline"),p(m,"class","btns-group"),p(e,"class","page-header"),p(C,"class","clearfix m-b-base")},m(Y,X){w(Y,e,X),g(e,t),g(t,i),g(t,s),g(t,l),g(l,r),g(e,a),g(e,u),N&&N.m(u,null),g(u,f),V(c,u,null),g(e,d),g(e,m),g(m,_),g(m,h),F&&F.m(m,null),w(Y,b,X),V(y,Y,X),w(Y,S,X),w(Y,C,X),w(Y,$,X),V(T,Y,X),D=!0,L||(P=J(_,"click",n[17]),L=!0)},p(Y,X){(!D||X[0]&4)&&o!==(o=Y[2].name+"")&&se(r,o),Y[10]?N&&(N.d(1),N=null):N?N.p(Y,X):(N=bh(Y),N.c(),N.m(u,f)),Y[2].$isView?F&&(F.d(1),F=null):F?F.p(Y,X):(F=vh(Y),F.c(),F.m(m,null));const G={};X[0]&1&&(G.value=Y[0]),X[0]&4&&(G.autocompleteCollection=Y[2]),y.$set(G);const W={};X[0]&4&&(W.collection=Y[2]),!M&&X[0]&1&&(M=!0,W.filter=Y[0],he(()=>M=!1)),!O&&X[0]&2&&(O=!0,W.sort=Y[1],he(()=>O=!1)),T.$set(W)},i(Y){D||(A(c.$$.fragment,Y),A(y.$$.fragment,Y),A(T.$$.fragment,Y),D=!0)},o(Y){I(c.$$.fragment,Y),I(y.$$.fragment,Y),I(T.$$.fragment,Y),D=!1},d(Y){Y&&k(e),N&&N.d(),z(c),F&&F.d(),Y&&k(b),z(y,Y),Y&&k(S),Y&&k(C),Y&&k($),n[20](null),z(T,Y),L=!1,P()}}}function FE(n){let e,t,i,s,l;return{c(){e=v("h1"),e.textContent="Create your first collection to add records!",t=E(),i=v("button"),i.innerHTML=`<i class="ri-add-line"></i >
2023-07-22 23:50:40 +08:00
< span class = "txt" > Create new collection < /span>`,p(e,"class","m-b-10"),p(i,"type","button"),p(i,"class","btn btn-expanded-lg btn-lg")},m(o,r){w(o,e,r),w(o,t,r),w(o,i,r),s||(l=J(i,"click",n[14]),s=!0)},p:x,d(o){o&&k(e),o&&k(t),o&&k(i),s=!1,l()}}}function RE(n){let e;return{c(){e=v("h1"),e.textContent="You don't have any collections yet.",p(e,"class","m-b-10")},m(t,i){w(t,e,i)},p:x,d(t){t&&k(e)}}}function qE(n){let e,t,i;function s(r,a){return r[10]?RE:FE}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 = E ( ) , o . c ( ) , p ( t , "class" , "icon" ) , p ( e , "class" , "placeholder-section m-b-base" ) } , m ( r , a ) { w ( r , e , a ) , g ( e , t ) , g ( 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 && k ( e ) , o . d ( ) } } } function jE ( n ) { let e ; return { c ( ) { e = v ( "div" ) , e . innerHTML = ` <span class="loader loader-lg"></span>
2023-07-27 20:57:20 +08:00
< h1 > Loading collections ... < / h 1 > ` , p ( 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 ) { w ( t , e , i ) } , p : x , d ( t ) { t & & k ( e ) } } } f u n c t i o n V E ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c ; c o n s t d = [ P E , L E , I E ] , m = [ ] ; f u n c t i o n _ ( C , $ ) { r e t u r n C [ 3 ] & & ! C [ 9 ] . l e n g t h ? 0 : C [ 9 ] . l e n g t h ? 2 : 1 } e = _ ( n ) , t = m [ e ] = d [ e ] ( n ) ; l e t h = { } ; s = n e w c u ( { p r o p s : h } ) , n [ 2 5 ] ( s ) ; l e t b = { } ; o = n e w P M ( { p r o p s : b } ) , n [ 2 6 ] ( o ) ; l e t y = { c o l l e c t i o n : n [ 2 ] } ; a = n e w T 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 S = { c o l l e c t i o n : n [ 2 ] } ; r e t u r n f = n e w l E ( { p r o p s : S } ) , n [ 3 0 ] ( f ) , { c ( ) { t . c ( ) , i = E ( ) , H ( s . $ $ . f r a g m e n t ) , l = E ( ) , H ( o . $ $ . f r a g m e n t ) , r = E ( ) , H ( a . $ $ . f r a g m e n t ) , u = E ( ) , H ( f . $ $ . f r a g m e n t ) } , m ( C , $ ) { m [ e ] . m ( C , $ ) , w ( C , i , $ ) , V ( s , C , $ ) , w ( C , l , $ ) , V ( o , C , $ ) , w ( C , r , $ ) , V ( a , C , $ ) , w ( C , u , $ ) , V ( f , C , $ ) , c = ! 0 } , p ( C , $ ) { l e t T = e ; e = _ ( C ) , e = = = T ? m [ e ] . p ( C , $ ) : ( a e ( ) , I ( m [ T ] , 1 , 1 , ( ) = > { m [ T ] = n u l l } ) , u e ( ) , t = m [ e ] , t ? t . p ( C , $ ) : ( t = m [ e ] = d [ e ] ( C ) , t . c ( ) ) , A ( t , 1 ) , t . m ( i . p a r e n t N o d e , i ) ) ; c o n s t M = { } ; s . $ s e t ( M ) ; c o n s t O = { } ; o . $ s e t ( O ) ; c o n s t D = { } ; $ [ 0 ] & 4 & & ( D . c o l l e c t i o n = C [ 2 ] ) , a . $ s e t ( D ) ; c o n s t L = { } ; $ [ 0 ] & 4 & & ( L . c o l l e c t i o n = C [ 2 ] ) , f . $ s e t ( L ) } , i ( C ) { c | | ( A ( t ) , A ( s . $ $ . f r a g m e n t , C ) , A ( o . $ $ . f r a g m e n t , C ) , A ( a . $ $ . f r a g m e n t , C ) , A ( f . $ $ . f r a g m e n t , C ) , c = ! 0 ) } , o ( C ) { I ( t ) , I ( s . $ $ . f r a g m e n t , C ) , I ( o . $ $ . f r a g m e n t , C ) , I ( a . $ $ . f r a g m e n t , C ) , I ( f . $ $ . f r a g m e n t , C ) , c = ! 1 } , d ( C ) { m [ e ] . d ( C ) , C & & k ( i ) , n [ 2 5 ] ( n u l l ) , z ( s , C ) , C & & k ( l ) , n [ 2 6 ] ( n u l l ) , z ( o , C ) , C & & k ( r ) , n [ 2 7 ] ( n u l l ) , z ( a , C ) , C & & k ( u ) , n [ 3 0 ] ( n u l l ) , z ( f , C ) } } } f u n c t i o n z E ( n , e , t ) { l e t i , s , l , o , r , a , u ; J e ( n , u i , i e = > t ( 2 , s = i e ) ) , J e ( n , T t , i e = > t ( 3 1 , l = i e ) ) , J e ( n , w o , i e = > t ( 3 , o = i e ) ) , J e ( n , C a , i e = > t ( 1 3 , r = i e ) ) , J e ( n , c i , i e = > t ( 9 , a = i e ) ) , J e ( n , A s , i e = > t ( 1 0 , u = i e ) ) ; c o n s t f = n e w U R L S e a r c h P a r a m s ( r ) ; l e t c , d , m , _ , h , b = f . g e t ( " f i l t e r " ) | | " " , y = f . g e t ( " s o r t " ) | | " - c r e a t e d " , S = f . g e t ( " c o l l e c t i o n I d " ) | | ( s = = n u l l ? v o i d 0 : s . i d ) ; f u n c t i o n C ( ) { t ( 1 1 , S = s = = n u l l ? v o i d 0 : s . i d ) , t ( 0 , b = " " ) , t ( 1 , y = " - c r e a t e d " ) , $ ( ) } a s y n c f u n c t i o n $ ( ) { i f ( ! y ) r e t u r n ; c o n s t i e = B . 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 ) , b e = y . s p l i t ( " , " ) . m a p ( S e = > S e . s t a r t s W i t h ( " + " ) | | S e . s t a r t s W i t h ( " - " ) ? S e . s u b s t r i n g ( 1 ) : S e ) ; b e . f i l t e r ( S e = > i e . i n c l u d e s ( S e ) ) . l e n g t h ! = b e . l e n g t h & & ( i e . i n c l u d e s ( " c r e a t e d " ) ? t ( 1 , y = " - c r e a t e d " ) : t ( 1 , y = " " ) ) } P y ( S ) ; c o n s t 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 ) , O = ( ) = > h = = n u l l ? v o i d 0 : h . l o a d ( ) , D = ( ) = > d = = n u l l ? v o i d 0 : d . s h o w ( s ) , L = ( ) = > m = = n u l l ? v o i d 0 : m . s h o w ( ) , P = i e = > t ( 0 , b = i e . d e t a i l ) ; f u n c t i o n N ( i e ) { t e [ i e ? " u n s h i f t " : " p u s h " ] ( ( ) = > { h = i e , t ( 8 , h ) } ) } f u n c t i o n F ( i e ) { b = i e , t ( 0 , b ) } f u n c t i o n R ( i e ) { y = i e , t ( 1 , y ) } c o n s t q = i e = > { s . $ i s V i e w ? _ . s h o w ( i e = = n u l l ? v o i d 0 : i e . d e t a i l ) : m = = n u l l | | m . s h o w ( i e = = n u l l ? v o i d 0 : i e . d e t a i l ) } , j = ( ) = > m = = n u l l ? v o i d 0 : m . s h o w ( ) ; f u n c t i o n Y ( i e ) { t e [ i e ? " u n s h i f t " : " p u s h " ] ( ( ) = > { c = i e , t ( 4 , c ) } ) } f u n c t i o n X ( i e ) { t e [ i e ? " u n s h i f t " : " p u s h " ] ( ( ) = > { d = i e , t ( 5 , d ) } ) } f u n c t i o n G ( i e ) { t e [ i e ? " u n s h i f t " : " p u s h " ] ( ( ) = > { m = i e , t ( 6 , m ) } ) } c o n s t W = ( ) = > h = = n u l l ? v o i d 0 : h . r e l o a d L o a d e d P a g e s ( ) , l e = ( ) = > h = = n u l l ? v o i d 0 : h . 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 e e ( i e ) { t e [ i e ? " u n s h i f t " : " p u s h " ] ( ( ) = > { _ = i e , t ( 7 , _ ) } ) } 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 " ) ! = S & & A y ( i . g e t ( " c o l l e c t i o n I d " ) ) , n . $ $ . d i r t y [ 0 ] & 2 0 5 2 & & s ! = n u l l & & s . i d & & S ! = s . i d & & C ( ) , n . $ $ . d i r t y [ 0 ] & 4 & & s ! = n u l l & & s . i d & & $ ( ) , n . $ $ . d i r t y [ 0 ] & 7 & & ( y | | b | | s ! = n u l l & & s . i d ) ) { c o n s t i e = n e w U R L S e a r c h P a r a m s ( { c o l l e c t i o n I d : ( s = = n u l l ? v o i d 0 : s . i d ) | | " " , f i l t e r : b , s o r t : y } ) . t o S t r i n g ( ) ; j i ( " / c o l l e c t i o n s ? " + i e ) } n . $ $ . d i r t y [ 0 ] & 4 & & s n ( T 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 ) } , [ b , y , s , o , c , d , m , _ , h , a , u , S , i , r , T , M , O , D , L , P , N , F , R , q , j , Y , X , G , W , l e , e e ] } c l a s s H E e x t e n d s g e { c o n s t r u c t o r ( e ) { s u p e r ( ) , _ e ( t h i s , e , z E , V E , m e , { } , n u l l , [ - 1 , - 1 ] ) } } f u n c t i o n B E ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d , m , _ , h , b , y , S , C , $ , T , M , O , D , L , P , N ; 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 = E ( ) , 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 >
2023-06-11 04:32:41 +08:00
< span class = "txt" > Application < /span>`,o=E(),r=v("a"),r.innerHTML=`<i class="ri-send-plane-2-line"></i >
< span class = "txt" > Mail settings < /span>`,a=E(),u=v("a"),u.innerHTML=`<i class="ri-archive-drawer-line"></i >
< span class = "txt" > Files storage < /span>`,f=E(),c=v("a"),c.innerHTML=`<i class="ri-archive-line"></i >
< span class = "txt" > Backups < / s p a n > ` , d = E ( ) , m = v ( " d i v " ) , m . 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 > ' , _ = E ( ) , h = v ( " a " ) , h . 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>`,b=E(),y=v("a"),y.innerHTML=`<i class="ri-install-line"></i >
< span class = "txt" > Import collections < /span>`,S=E(),C=v("div"),C.textContent="Authentication",$=E(),T=v("a"),T.innerHTML=`<i class="ri-lock-password-line"></i >
< span class = "txt" > Auth providers < /span>`,M=E(),O=v("a"),O.innerHTML=`<i class="ri-key-line"></i >
< span class = "txt" > Token options < /span>`,D=E(),L=v("a"),L.innerHTML=`<i class="ri-shield-user-line"></i >
2023-07-22 23:50:40 +08:00
< span class = "txt" > Admins < / s p a n > ` , p ( i , " c l a s s " , " s i d e b a r - t i t l e " ) , p ( l , " h r e f " , " / s e t t i n g s " ) , p ( l , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , p ( r , " h r e f " , " / s e t t i n g s / m a i l " ) , p ( r , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , p ( u , " h r e f " , " / s e t t i n g s / s t o r a g e " ) , p ( u , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , p ( c , " h r e f " , " / s e t t i n g s / b a c k u p s " ) , p ( c , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , p ( m , " c l a s s " , " s i d e b a r - t i t l e " ) , p ( h , " 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 " ) , p ( h , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , p ( y , " 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 " ) , p ( y , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , p ( C , " c l a s s " , " s i d e b a r - t i t l e " ) , p ( 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 " ) , p ( T , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , p ( O , " h r e f " , " / s e t t i n g s / t o k e n s " ) , p ( O , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , p ( L , " h r e f " , " / s e t t i n g s / a d m i n s " ) , p ( L , " c l a s s " , " s i d e b a r - l i s t - i t e m " ) , p ( t , " c l a s s " , " s i d e b a r - c o n t e n t " ) , p ( 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 ( F , R ) { w ( F , e , R ) , g ( e , t ) , g ( t , i ) , g ( t , s ) , g ( t , l ) , g ( t , o ) , g ( t , r ) , g ( t , a ) , g ( t , u ) , g ( t , f ) , g ( t , c ) , g ( t , d ) , g ( t , m ) , g ( t , _ ) , g ( t , h ) , g ( t , b ) , g ( t , y ) , g ( t , S ) , g ( t , C ) , g ( t , $ ) , g ( t , T ) , g ( t , M ) , g ( t , O ) , g ( t , D ) , g ( t , L ) , P | | ( N = [ M e ( V n . c a l l ( n u l l , l , { p a t h : " / s e t t i n g s " } ) ) , M e ( o n . c a l l ( n u l l , l ) ) , M e ( V 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 / ? . * " } ) ) , M e ( o n . c a l l ( n u l l , r ) ) , M e ( V 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 / ? . * " } ) ) , M e ( o n . c a l l ( n u l l , u ) ) , M e ( V n . c a l l ( n u l l , c , { p a t h : " / s e t t i n g s / b a c k u p s / ? . * " } ) ) , M e ( o n . c a l l ( n u l l , c ) ) , M e ( V n . c a l l ( n u l l , h , { 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 / ? . * " } ) ) , M e ( o n . c a l l ( n u l l , h ) ) , M e ( V n . c a l l ( n u l l , y , { 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 / ? . * " } ) ) , M e ( o n . c a l l ( n u l l , y ) ) , M e ( V 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 / ? . * " } ) ) , M e ( o n . c a l l ( n u l l , T ) ) , M e ( V n . c a l l ( n u l l , O , { p a t h : " / s e t t i n g s / t o k e n s / ? . * " } ) ) , M e ( o n . c a l l ( n u l l , O ) ) , M e ( V n . c a l l ( n u l l , L , { p a t h : " / s e t t i n g s / a d m i n s / ? . * " } ) ) , M e ( o n . c a l l ( n u l l , L ) ) ] , P = ! 0 ) } , p : x , i : x , o : x , d ( F ) { F & & k ( e ) , P = ! 1 , E e ( N ) } } } c l a s s C i e x t e n d s g e { c o n s t r u c t o r ( e ) { s u p e r ( ) , _ e ( t h i s , e , n u l l , B E , m e , { } ) } } f u n c t i o n y 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 k 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 : [ U E , ( { u n i q u e I d : i } ) = > ( { 2 9 : i } ) , ( { u n i q u e I d : i } ) = > [ i ? 5 3 6 8 7 0 9 1 2 : 0 ] ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( i , s ) { V ( e , i , s ) , t = ! 0 } , p ( i , s ) { c o n s t l = { } ; s [ 0 ] & 5 3 6 8 7 0 9 1 4 | s [ 1 ] & 4 & & ( l . $ $ s c o p e = { d i r t y : s , c t x : i } ) , e . $ s e t ( l ) } , i ( i ) { t | | ( 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 ) { z ( e , i ) } } } f u n c t i o n U E ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d , m , _ , h ; r e t u r n { c ( ) { e = v ( " l a b e l " ) , t = v ( " i " ) , i = E ( ) , s = v ( " s p a n " ) , s . t e x t C o n t e n t = " i d " , o = E ( ) , r = v ( " d i v " ) , a = v ( " i " ) , f = E ( ) , c = v ( " i n p u t " ) , p ( t , " c l a s s " , B . g e t F i e l d T y p e I c o n ( " p r i m a r y " ) ) , p ( s , " c l a s s " , " t x t " ) , p ( e , " f o r " , l = n [ 2 9 ] ) , p ( 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 " ) , p ( r , " c l a s s " , " f o r m - f i e l d - a d d o n " ) , p ( c , " t y p e " , " t e x t " ) , p ( c , " i d " , d = n [ 2 9 ] ) , c . v a l u e = m = n [ 1 ] . i d , c . r e a d O n l y = ! 0 } , m ( b , y ) { w ( b , e , y ) , g ( e , t ) , g ( e , i ) , g ( e , s ) , w ( b , o , y ) , w ( b , r , y ) , g ( r , a ) , w ( b , f , y ) , w ( b , c , y ) , _ | | ( h = M e ( u = H 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"})),_=!0)},p(b,y){y[0]&536870912&&l!==(l=b[29])&&p(e,"for",l),u&&jt(u.update)&&y[0]&2&&u.update.call(null,{text: ` Created : $ { b [ 1 ] . created }
Updated : $ { b [ 1 ] . updated } ` ,position:"left"}),y[0]&536870912&&d!==(d=b[29])&&p(c,"id",d),y[0]&2&&m!==(m=b[1].id)&&c.value!==m&&(c.value=m)},d(b){b&&k(e),b&&k(o),b&&k(r),b&&k(f),b&&k(c),_=!1,h()}}}function wh(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=E(),hn(t.src,i="./images/avatars/avatar"+n[30]+".svg")||p(t,"src",i),p(t,"alt","Avatar "+n[30]),p(e,"type","button"),p(e,"class",l="link-fade thumb thumb-circle "+(n[30]==n[2]?"thumb-active":"thumb-sm"))},m(u,f){w(u,e,f),g(e,t),g(e,s),o||(r=J(e,"click",a),o=!0)},p(u,f){n=u,f[0]&4&&l!==(l="link-fade thumb thumb-circle "+(n[30]==n[2]?"thumb-active":"thumb-sm"))&&p(e,"class",l)},d(u){u&&k(e),o=!1,r()}}}function WE(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=v("label"),t=v("i"),i=E(),s=v("span"),s.textContent="Email",o=E(),r=v("input"),p(t,"class",B.getFieldTypeIcon("email")),p(s,"class","txt"),p(e,"for",l=n[29]),p(r,"type","email"),p(r,"autocomplete","off"),p(r,"id",a=n[29]),r.required=!0},m(c,d){w(c,e,d),g(e,t),g(e,i),g(e,s),w(c,o,d),w(c,r,d),re(r,n[3]),u||(f=J(r,"input",n[18]),u=!0)},p(c,d){d[0]&536870912&&l!==(l=c[29])&&p(e,"for",l),d[0]&536870912&&a!==(a=c[29])&&p(r,"id",a),d[0]&8&&r.value!==c[3]&&re(r,c[3])},d(c){c&&k(e),c&&k(o),c&&k(r),u=!1,f()}}}function Sh(n){let e,t;return e=new pe({props:{class:"form-field form-field-toggle", $ $ slots:{default:[YE,({uniqueId:i})=>({29:i}),({uniqueId:i})=>[i?536870912:0]]}, $ $ scope:{ctx:n}}}),{c(){H(e. $ $ .fragment)},m(i,s){V(e,i,s),t=!0},p(i,s){const l={};s[0]&536870928|s[1]&4&&(l. $ $ scope={dirty:s,ctx:i}),e. $ set(l)},i(i){t||(A(e. $ $ .fragment,i),t=!0)},o(i){I(e. $ $ .fragment,i),t=!1},d(i){z(e,i)}}}function YE(n){let e,t,i,s,l,o,r,a;return{c(){e=v("input"),i=E(),s=v("label"),l=U("Change password"),p(e,"type","checkbox"),p(e,"id",t=n[29]),p(s,"for",o=n[29])},m(u,f){w(u,e,f),e.checked=n[4],w(u,i,f),w(u,s,f),g(s,l),r||(a=J(e,"change",n[19]),r=!0)},p(u,f){f[0]&536870912&&t!==(t=u[29])&&p(e,"id",t),f[0]&16&&(e.checked=u[4]),f[0]&536870912&&o!==(o=u[29])&&p(s,"for",o)},d(u){u&&k(e),u&&k(i),u&&k(s),r=!1,a()}}}function $ h(n){let e,t,i,s,l,o,r,a,u;return s=new pe({props:{class:"form-field required",name:"password", $ $ slots:{default:[KE,({uniqueId:f})=>({29:f}),({uniqueId:f})=>[f?536870912:0]]}, $ $ scope:{ctx:n}}}),r=new pe({props:{class:"form-field required",name:"passwordConfirm", $ $ slots:{default:[JE,({uniqueId:f})=>({29:f}),({uniqueId:f})=>[f?536870912:0]]}, $ $ scope:{ctx:n}}}),{c(){e=v("div"),t=v("div"),i=v("div"),H(s. $ $ .fragment),l=E(),o=v("div"),H(r. $ $ .fragment),p(i,"class","col-sm-6"),p(o,"class","col-sm-6"),p(t,"class","grid"),p(e,"class","col-12")},m(f,c){w(f,e,c),g(e,t),g(t,i),V(s,i,null),g(t,l),g(t,o),V(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 m={};c[0]&536871424|c[1]&4&&(m. $ $ scope={dirty:c,ctx:f}),r. $ set(m)},i(f){u||(A(s. $ $ .fragment,f),A(r. $ $ .fragment,f),f&&Qe(()=>{u&&(a||(a=je(t,ot,{duration:150},!0)),a.run(1))}),u=!0)},o(f){I(s. $ $ .fragment,f),I(r. $ $ .fragment,f),f&&(a||(a=je(t,ot,{duration:150},!1)),a.run(0)),u=!1},d(f){f&&k(e),z(s),z(r),f&&a&&a.end()}}}function KE(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=v("label"),t=v("i"),i=E(),s=v("span"),s.textContent="Password",o=E(),r=v("input"),p(t,"class","ri-lock-line"),p(s,"class","txt"),p(e,"for",l=n[29]),p(r,"type","password"),p(r,"autocomplete","new-password"),p(r,"id",a=n[29]),r.required=!0},m(c,d){w(c,e,d),g(e,t),g(e,i),g(e,s),w(c,o,d),w(c,r,d),re(r,n[8]),u||(f=J(r,"input",n[20]),u=!0)},p(c,d){d[0]&536870912&&l!==(l=c[29])&&p(e,"for",l),d[0]&536870912&&a!==(a=c[29])&&p(r,"id",a),d[0]&256&&r.value!==c[8]&&re(r,c[8])},d(c){c&&k(e),c&&k(o),c&&k(r),u=!1,f()}}}function JE(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=v("label"),t=v("i"),i=E(),s=v("span"),s.textContent="Password confirm",o=E(),r=v("input"),p(t,"class","ri-lock-line"),p(s,"class","txt"),p(e,"for",l=n[29]),p(r,"type","password"),p(r,"autocomplete","new-password"),p(r,"id",a=n[29]),r.required=!0},m(c,d){w(c,e,d),g(e,t),g(e,i),g(e,s),w(c,o,d),w(c,r,d),re(r,n[9]),u||(f=J(r,"input",n[21]),u=!0)},p(c,d){d[0]&536870912&&l!==(l=c[29])&&p(e,"for",l),d
2023-07-27 20:57:20 +08:00
< span class = "txt" > Delete < / s p a n > ` , p ( e , " t y p e " , " b u t t o n " ) , p ( 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 ) { w ( s , e , l ) , t | | ( i = J ( e , " c l i c k " , n [ 1 5 ] ) , t = ! 0 ) } , p : x , d ( s ) { s & & k ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n Q 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 , m = ! n [ 1 ] . $ i s N e w & & C h ( n ) ; r e t u r n { c ( ) { m & & m . c ( ) , e = E ( ) , 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 = E ( ) , l = v ( " b u t t o n " ) , o = v ( " s p a n " ) , a = U ( r ) , p ( i , " c l a s s " , " t x t " ) , p ( t , " t y p e " , " b u t t o n " ) , p ( 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 ] , p ( o , " c l a s s " , " t x t " ) , p ( l , " t y p e " , " s u b m i t " ) , p ( l , " f o r m " , n [ 1 1 ] ) , p ( 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 ) { m & & m . m ( _ , h ) , w ( _ , e , h ) , w ( _ , t , h ) , g ( t , i ) , w ( _ , s , h ) , w ( _ , l , h ) , g ( l , o ) , g ( o , a ) , f = ! 0 , c | | ( d = J ( t , " c l i c k " , n [ 1 6 ] ) , c = ! 0 ) } , p ( _ , h ) { _ [ 1 ] . $ i s N e w ? m & & ( a e ( ) , I ( m , 1 , 1 , ( ) = > { m = n u l l } ) , u e ( ) ) : m ? ( m . p ( _ , h ) , h [ 0 ] & 2 & & A ( m , 1 ) ) : ( m = C h ( _ ) , m . c ( ) , A ( m , 1 ) , m . m ( e . p a r e n t N o d e , e ) ) , ( ! f | | h [ 0 ] & 6 4 ) & & ( t . d i s a b l e d = _ [ 6 ] ) , ( ! f | | h [ 0 ] & 2 ) & & r ! = = ( r = _ [ 1 ] . $ i s N e w ? " C r e a t e " : " S a v e c h a n g e s " ) & & s e ( a , r ) , ( ! f | | h [ 0 ] & 1 0 8 8 & & u ! = = ( u = ! _ [ 1 0 ] | | _ [ 6 ] ) ) & & ( l . d i s a b l e d = u ) , ( ! f | | h [ 0 ] & 6 4 ) & & Q ( l , " b t n - l o a d i n g " , _ [ 6 ] ) } , i ( _ ) { f | | ( A ( m ) , f = ! 0 ) } , o ( _ ) { I ( m ) , f = ! 1 } , d ( _ ) { m & & m . d ( _ ) , _ & & k ( e ) , _ & & k ( t ) , _ & & k ( s ) , _ & & k ( l ) , c = ! 1 , d ( ) } } } f u n c t i o n x 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 : [ Q E ] , h e a d e r : [ G E ] , d e f a u l t : [ Z E ] } , $ $ s c o p e : { c t x : n } } ; r e t u r n e = n e w l n ( { p r o p s : i } ) , n [ 2 3 ] ( e ) , e . $ o n ( " h i d e " , n [ 2 4 ] ) , e . $ o n ( " s h o w " , n [ 2 5 ] ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( s , l ) { V ( e , s , l ) , t = ! 0 } , p ( s , l ) { c o n s t o = { } ; l [ 0 ] & 1 1 5 2 & & ( o . b e f o r e H i d e = s [ 2 2 ] ) , l [ 0 ] & 1 8 8 6 | l [ 1 ] & 4 & & ( o . $ $ s c o p e = { d i r t y : l , c t x : s } ) , e . $ s e t ( o ) } , i ( s ) { t | | ( 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 ) , z ( e , s ) } } } f u n c t i o n e D ( n , e , t ) { l e t i ; c o n s t s = $ t ( ) , l = " a d m i n _ " + B . r a n d o m S t r i n g ( 5 ) ; l e t o , r = n e w o s , a = ! 1 , u = ! 1 , f = 0 , c = " " , d = " " , m = " " , _ = ! 1 ; f u n c t i o n h ( Y ) { r e t u r n y ( Y ) , t ( 7 , u = ! 0 ) , o = = n u l l ? v o i d 0 : o . s h o w ( ) } f u n c t i o n b ( ) { 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 ( Y ) { t ( 1 , r = Y ! = n u l l & & Y . $ c l o n e ? Y . $ c l o n e ( ) : n e w o s ) , S ( ) } f u n c t i o n S ( ) { t ( 4 , _ = ! 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 , m = " " ) , e n ( { } ) } f u n c t i o n C ( ) { i f ( a | | ! i ) r e t u r n ; t ( 6 , a = ! 0 ) ; c o n s t Y = { e m a i l : c , a v a t a r : f } ; ( r . $ i s N e w | | _ ) & & ( Y . p a s s w o r d = d , Y . p a s s w o r d C o n f i r m = m ) ; l e t X ; r . $ i s N e w ? X = c e . a d m i n s . c r e a t e ( Y ) : X = c e . a d m i n s . u p d a t e ( r . i d , Y ) , X . t h e n ( a s y n c G = > { v a r W ; t ( 7 , u = ! 1 ) , b ( ) , z 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 . " ) , ( ( W = c e . a u t h S t o r e . m o d e l ) = = n u l l ? v o i d 0 : W . i d ) = = = G . i d & & c e . a u t h S t o r e . s a v e ( c e . a u t h S t o r e . t o k e n , G ) , s ( " s a v e " , G ) } ) . c a t c h ( G = > { c e . e r r o r ( G ) } ) . 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 ? " , ( ) = > c e . a d m i n s . d e l e t e ( r . i d ) . t h e n ( ( ) = > { t ( 7 , u = ! 1 ) , b ( ) , z t ( " S u c c e s s f u l l y d e l e t e d a d m i n . " ) , s ( " d e l e t e " , r ) } ) . c a t c h ( Y = > { c e . e r r o r ( Y ) } ) ) } c o n s t T = ( ) = > $ ( ) , M = ( ) = > b ( ) , O = Y = > t ( 2 , f = Y ) ; f u n c t i o n D ( ) { c = t h i s . v a l u e , t ( 3 , c ) } f u n c t i o n L ( ) { _ = t h i s . c h e c k e d , t ( 4 , _ ) } f u n c t i o n P ( ) { d = t h i s . v a l u e , t ( 8 , d ) } f u n c t i o n N ( ) { m = t h i s . v a l u e , t ( 9 , m ) } c o n s t F = ( ) = > 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 ) , b ( ) } ) , ! 1 ) : ! 0 ; f u n c t i o n R ( Y ) { t e [ Y ? " u n s h i f t " : " p u s h " ] ( ( ) = > { o = Y , t ( 5 , o ) } ) } f u n c t i o n q ( Y ) { N e . c a l l ( t h i s , n , Y ) } f u n c t i o n j ( Y ) { N e . c a l l ( t h i s , n , Y ) } r e t u r n n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y [ 0 ] & 3 0 & & t ( 1 0 , i = r . $ i s N e w & & c ! = " " | | _ | | c ! = = r . e m a i l | | f ! = = r . a v a t a r ) } , [ b , r , f , c , _ , o , a , u , d , m , i , l , C , $ , h , T , M , O , D , L , P , N , F , R , q , j ] } c l a s s t D e x t e n d s g e { c o n s t r u c t o r ( e ) { s u p e r ( ) , _ e ( t h i s , e , e D , x E , m e , { s h o w : 1 4 , h i d e : 0 } , n u l l , [ - 1 , - 1 ] ) } g e t s h o w ( ) { r e t u r n t h i s . $ $ . c t x [ 1 4 ] } g e t h i d e ( ) { r e t u r n t h i s . $ $ . c t x [ 0 ] } } f u n c t i o n T h ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 2 4 ] = e [ t ] , i } f u n c t i o n n D ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " i " ) , i = E ( ) , s = v ( " s p a n " ) , s . t e x t C o n t e n t = " i d " , p ( t , " c l a s s " , B . g e t F i e l d T y p e I c o n ( " p r i m a r y " ) ) , p ( s , " c l a s s " , " t x t " ) , p ( 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 ) { w ( l , e , o ) , g ( e , t ) , g ( e , i ) , g ( e , s ) } , p : x , d ( l ) { l & & k ( e ) } } } f u n c t i o n i D ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " i " ) , i = E ( ) , s = v ( " s p a n " ) , s . t e x t C o n t e n t = " e m a i l " , p ( t , " c l a s s " , B . g e t F i e l d T y p e I c o n ( " e m a i l " ) ) , p ( s , " c l a s s " , " t x t " ) , p ( 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 ) { w ( l , e , o ) , g ( e , t ) , g ( e , i ) , g ( e , s ) } , p : x , d ( l ) { l & & k ( e ) } } } f u n c t i o n s D ( n ) { l e t e , t , i , s ; r e t u r n { c ( ) { e = v ( " d i v " ) , t = v ( " i " ) , i = E ( ) , 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 " , p ( t , " c l a s s " , B . g e t F i e l d T y p e I c o n ( " d a t e "
` },m(t,i){w(t,e,i)},p:x,d(t){t&&k(e)}}}function Oh(n){let e,t,i;return{c(){e=v("button"),e.innerHTML='<span class="txt">Clear filters</span>',p(e,"type","button"),p(e,"class","btn btn-hint btn-expanded m-t-sm")},m(s,l){w(s,e,l),t||(i=J(e,"click",n[17]),t=!0)},p:x,d(s){s&&k(e),t=!1,i()}}}function Eh(n){let e;return{c(){e=v("span"),e.textContent="You",p(e,"class","label label-warning m-l-5")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function Dh(n,e){let t,i,s,l,o,r,a,u,f,c,d,m=e[24].id+"",_,h,b,y,S,C=e[24].email+"", $ ,T,M,O,D,L,P,N,F,R,q,j,Y,X;f=new Fl({props:{value:e[24].id}});let G=e[24].id===e[7].id&&Eh();D=new wi({props:{date:e[24].created}}),N=new wi({props:{date:e[24].updated}});function W(){return e[15](e[24])}function le(...ee){return e[16](e[24],...ee)}return{key:n,first:null,c(){t=v("tr"),i=v("td"),s=v("figure"),l=v("img"),r=E(),a=v("td"),u=v("div"),H(f. $ $ .fragment),c=E(),d=v("span"),_=U(m),h=E(),G&&G.c(),b=E(),y=v("td"),S=v("span"), $ =U(C),M=E(),O=v("td"),H(D. $ $ .fragment),L=E(),P=v("td"),H(N. $ $ .fragment),F=E(),R=v("td"),R.innerHTML='<i class="ri-arrow-right-line"></i>',q=E(),hn(l.src,o="./images/avatars/avatar"+(e[24].avatar||0)+".svg")||p(l,"src",o),p(l,"alt","Admin avatar"),p(s,"class","thumb thumb-sm thumb-circle"),p(i,"class","min-width"),p(d,"class","txt"),p(u,"class","label"),p(a,"class","col-type-text col-field-id"),p(S,"class","txt txt-ellipsis"),p(S,"title",T=e[24].email),p(y,"class","col-type-email col-field-email"),p(O,"class","col-type-date col-field-created"),p(P,"class","col-type-date col-field-updated"),p(R,"class","col-type-action min-width"),p(t,"tabindex","0"),p(t,"class","row-handle"),this.first=t},m(ee,ie){w(ee,t,ie),g(t,i),g(i,s),g(s,l),g(t,r),g(t,a),g(a,u),V(f,u,null),g(u,c),g(u,d),g(d,_),g(a,h),G&&G.m(a,null),g(t,b),g(t,y),g(y,S),g(S, $ ),g(t,M),g(t,O),V(D,O,null),g(t,L),g(t,P),V(N,P,null),g(t,F),g(t,R),g(t,q),j=!0,Y||(X=[J(t,"click",W),J(t,"keydown",le)],Y=!0)},p(ee,ie){e=ee,(!j||ie&16&&!hn(l.src,o="./images/avatars/avatar"+(e[24].avatar||0)+".svg"))&&p(l,"src",o);const be={};ie&16&&(be.value=e[24].id),f. $ set(be),(!j||ie&16)&&m!==(m=e[24].id+"")&&se(_,m),e[24].id===e[7].id?G||(G=Eh(),G.c(),G.m(a,null)):G&&(G.d(1),G=null),(!j||ie&16)&&C!==(C=e[24].email+"")&&se( $ ,C),(!j||ie&16&&T!==(T=e[24].email))&&p(S,"title",T);const Se={};ie&16&&(Se.date=e[24].created),D. $ set(Se);const Ve={};ie&16&&(Ve.date=e[24].updated),N. $ set(Ve)},i(ee){j||(A(f. $ $ .fragment,ee),A(D. $ $ .fragment,ee),A(N. $ $ .fragment,ee),j=!0)},o(ee){I(f. $ $ .fragment,ee),I(D. $ $ .fragment,ee),I(N. $ $ .fragment,ee),j=!1},d(ee){ee&&k(t),z(f),G&&G.d(),z(D),z(N),Y=!1,Ee(X)}}}function aD(n){let e,t,i,s,l,o,r,a,u,f,c,d,m,_,h,b,y,S,C, $ ,T=[],M=new Map,O;function D(W){n[11](W)}let L={class:"col-type-text",name:"id", $ $ slots:{default:[nD]}, $ $ scope:{ctx:n}};n[2]!==void 0&&(L.sort=n[2]),o=new an({props:L}),te.push(()=>de(o,"sort",D));function P(W){n[12](W)}let N={class:"col-type-email col-field-email",name:"email", $ $ slots:{default:[iD]}, $ $ scope:{ctx:n}};n[2]!==void 0&&(N.sort=n[2]),u=new an({props:N}),te.push(()=>de(u,"sort",P));function F(W){n[13](W)}let R={class:"col-type-date col-field-created",name:"created", $ $ slots:{default:[sD]}, $ $ scope:{ctx:n}};n[2]!==void 0&&(R.sort=n[2]),d=new an({props:R}),te.push(()=>de(d,"sort",F));function q(W){n[14](W)}let j={class:"col-type-date col-field-updated",name:"updated", $ $ slots:{default:[lD]}, $ $ scope:{ctx:n}};n[2]!==void 0&&(j.sort=n[2]),h=new an({props:j}),te.push(()=>de(h,"sort",q));let Y=n[4];const X=W=>W[24].id;for(let W=0;W<Y.length;W+=1){let le=Th(n,Y,W),ee=X(le);M.set(ee,T[W]=Dh(ee,le))}let G=null;return Y.length||(G=Mh(n)),{c(){e=v("table"),t=v("thead"),i=v("tr"),s=v("th"),l=E(),H(o. $ $ .fragment),a=E(),H(u. $ $ .fragment),c=E(),H(d. $ $ .fragment),_=E(),H(h. $ $ .fragment),y=E(),S=v("th"),C=E(), $ =v("tbody");for(let W=0;W<T.length;W+=1)T[W].c();G&&G.c(),p(s,"class","min-width"),p(S,"class","col-type-action min-width"),p(e,"class","table"),Q(e,"table-loading",n[5])},m(W,le){w(W,e,le),g(e,t),g(t,i),g(i,s),g(i,l),V(o,i,null),g(i,a),V(u,i,null),g(i,c),V(d,i,null),g(i,_),V(h,i,null),g(i,y),g(i,S),g(e,C),g(e, $ );
< span class = "txt" > New admin < / s p a n > ` , m = E ( ) , H ( _ . $ $ . f r a g m e n t ) , h = E ( ) , b = v ( " d i v " ) , y = E ( ) , H ( S . $ $ . f r a g m e n t ) , C = E ( ) , D & & D . c ( ) , $ = y e ( ) , p ( i , " c l a s s " , " b r e a d c r u m b - i t e m " ) , p ( l , " c l a s s " , " b r e a d c r u m b - i t e m " ) , p ( t , " c l a s s " , " b r e a d c r u m b s " ) , p ( f , " c l a s s " , " f l e x - f i l l " ) , p ( d , " t y p e " , " b u t t o n " ) , p ( d , " c l a s s " , " b t n b t n - e x p a n d e d " ) , p ( e , " c l a s s " , " p a g e - h e a d e r " ) , p ( b , " c l a s s " , " c l e a r f i x m - b - b a s e " ) } , m ( L , P ) { w ( L , e , P ) , g ( e , t ) , g ( t , i ) , g ( t , s ) , g ( t , l ) , g ( l , o ) , g ( e , r ) , V ( a , e , n u l l ) , g ( e , u ) , g ( e , f ) , g ( e , c ) , g ( e , d ) , w ( L , m , P ) , V ( _ , L , P ) , w ( L , h , P ) , w ( L , b , P ) , w ( L , y , P ) , V ( S , L , P ) , w ( L , C , P ) , D & & D . m ( L , P ) , w ( L , $ , P ) , T = ! 0 , M | | ( O = J ( d , " c l i c k " , n [ 9 ] ) , M = ! 0 ) } , p ( L , P ) { ( ! T | | P & 6 4 ) & & s e ( o , L [ 6 ] ) ; c o n s t N = { } ; P & 2 & & ( N . v a l u e = L [ 1 ] ) , _ . $ s e t ( N ) ; c o n s t F = { } ; P & 1 3 4 2 1 7 9 1 8 & & ( F . $ $ s c o p e = { d i r t y : P , c t x : L } ) , S . $ s e t ( F ) , L [ 4 ] . l e n g t h ? D ? D . p ( L , P ) : ( D = A h ( L ) , D . c ( ) , D . m ( $ . p a r e n t N o d e , $ ) ) : D & & ( D . d ( 1 ) , D = n u l l ) } , i ( L ) { T | | ( A ( a . $ $ . f r a g m e n t , L ) , A ( _ . $ $ . f r a g m e n t , L ) , A ( S . $ $ . f r a g m e n t , L ) , T = ! 0 ) } , o ( L ) { I ( a . $ $ . f r a g m e n t , L ) , I ( _ . $ $ . f r a g m e n t , L ) , I ( S . $ $ . f r a g m e n t , L ) , T = ! 1 } , d ( L ) { L & & k ( e ) , z ( a ) , L & & k ( m ) , z ( _ , L ) , L & & k ( h ) , L & & k ( b ) , L & & k ( y ) , z ( S , L ) , L & & k ( C ) , D & & D . d ( L ) , L & & k ( $ ) , M = ! 1 , O ( ) } } } f u n c t i o n f D ( n ) { l e t e , t , i , s , l , o ; e = n e w C i ( { } ) , i = n e w w n ( { p r o p s : { $ $ s l o t s : { d e f a u l t : [ u D ] } , $ $ s c o p e : { c t x : n } } } ) ; l e t r = { } ; r e t u r n l = n e w t D ( { p r o p s : r } ) , n [ 1 8 ] ( l ) , l . $ o n ( " s a v e " , n [ 1 9 ] ) , l . $ o n ( " d e l e t e " , n [ 2 0 ] ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) , t = E ( ) , H ( i . $ $ . f r a g m e n t ) , s = E ( ) , H ( l . $ $ . f r a g m e n t ) } , m ( a , u ) { V ( e , a , u ) , w ( a , t , u ) , V ( i , a , u ) , w ( a , s , u ) , V ( l , a , u ) , o = ! 0 } , p ( a , [ u ] ) { c o n s t f = { } ; u & 1 3 4 2 1 7 9 8 2 & & ( f . $ $ s c o p e = { d i r t y : u , c t x : a } ) , i . $ s e t ( f ) ; c o n s t 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 ) { z ( e , a ) , a & & k ( t ) , z ( i , a ) , a & & k ( s ) , n [ 1 8 ] ( n u l l ) , z ( l , a ) } } } f u n c t i o n c D ( n , e , t ) { l e t i , s , l ; J e ( n , C a , N = > t ( 2 1 , i = N ) ) , J e ( n , T t , N = > t ( 6 , s = N ) ) , J e ( n , R a , N = > t ( 7 , l = N ) ) , s n ( T 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 ( ) { t ( 5 , u = ! 0 ) , t ( 4 , a = [ ] ) ; c o n s t N = B . n o r m a l i z e S e a r c h F i l t e r ( f , [ " i d " , " e m a i l " , " c r e a t e d " , " u p d a t e d " ] ) ; r e t u r n c e . a d m i n s . g e t F u l l L i s t ( 1 0 0 , { s o r t : c | | " - c r e a t e d " , f i l t e r : N } ) . 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 ) , m ( ) , c e . e r r o r ( F , ! 1 ) ) } ) } f u n c t i o n m ( ) { t ( 4 , a = [ ] ) } c o n s t _ = ( ) = > d ( ) , h = ( ) = > r = = n u l l ? v o i d 0 : r . s h o w ( ) , b = N = > t ( 1 , f = N . d e t a i l ) ; f u n c t i o n y ( N ) { c = N , t ( 2 , c ) } f u n c t i o n S ( N ) { c = N , t ( 2 , c ) } f u n c t i o n C ( N ) { c = N , t ( 2 , c ) } f u n c t i o n $ ( N ) { c = N , t ( 2 , c ) } c o n s t T = N = > r = = n u l l ? v o i d 0 : r . s h o w ( N ) , M = ( N , F ) = > { ( F . c o d e = = = " E n t e r " | | F . c o d e = = = " S p a c e " ) & & ( F . p r e v e n t D e f a u l t ( ) , r = = n u l l | | r . s h o w ( N ) ) } , O = ( ) = > t ( 1 , f = " " ) ; f u n c t i o n D ( N ) { t e [ N ? " u n s h i f t " : " p u s h " ] ( ( ) = > { r = N , t ( 3 , r ) } ) } c o n s t L = ( ) = > d ( ) , P = ( ) = > 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 N = 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 ( ) ; j i ( " / s e t t i n g s / a d m i n s ? " + N ) , d ( ) } } , [ d , f , c , r , a , u , s , l , _ , h , b , y , S , C , $ , T , M , O , D , L , P ] } c l a s s d D e x t e n d s g e { c o n s t r u c t o r ( e ) { s u p e r ( ) , _ e ( t h i s , e , c D , f D , m 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 p D ( 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 = U ( " E m a i l " ) , s = E ( ) , l = v ( " i n p u t " ) , p ( e , " f o r " , i = n [ 8 ] ) , p ( l , " t y p e " , " e m a i l " ) , p ( 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 ) { w ( u , e , f ) , g ( e , t ) , w ( u , s , f ) , w ( u , l , f ) , r e ( l , n [ 0 ] ) , l . f o c u s ( ) , r | | ( a = J ( l , " i n p u t " , n [ 4 ] ) , r = ! 0 ) } , p ( u , f ) { f & 2 5 6 & & i ! = = ( i = u [ 8 ] ) & & p ( e , " f o r " , i ) , f & 2 5 6 & & o ! = = ( o = u [ 8 ] ) & & p ( l , " i d " , o ) , f & 1 & & l . v a l u e ! = = u [ 0 ] & & r e ( l , u [ 0 ] ) } , d ( u ) { u & & k ( e ) , u & & k ( s ) , u & & k ( l ) , r = ! 1 , a ( ) } } } f u n c t i o n m D ( 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 = U ( " P a s s w o r d " ) , s = E ( ) , l = v ( " i n p u t " ) , r = E ( ) , 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 ? " , p ( e , " f o r " , i = n [ 8 ] ) , p ( l , " t y p e " , " p a s s w o r d " ) , p ( l , " i d " , o = n [ 8 ] ) , l . r e q u i r e d = ! 0 , p ( 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 " ) , p ( u , " c l a s s " , " l i n k - h i n t " ) , p ( a , " c l a s s " , " h e l p - b l o c k " ) } , m ( d , m ) { w ( d , e , m ) , g ( e , t ) , w ( d , s , m ) , w ( d , l , m ) , r e ( l , n [ 1 ] ) , w ( d , r , m ) , w ( d , a , m ) , g ( a , u ) , f | | ( c = [ J ( l , " i n p u t " , n [ 5 ] ) , M e ( o n . c a l l ( n u l l , u ) ) ] , f = ! 0 ) } , p ( d , m ) { m & 2 5 6 & & i ! = = ( i = d [ 8 ] ) & & p ( e , " f o r " , i ) , m & 2 5 6 & & o ! = = ( o = d [ 8 ] ) & & p ( l , " i d " , o ) , m & 2 & & l . v a l u e ! = = d [ 1 ] & & r e ( l , d [ 1 ] ) } , d ( d ) { d & & k ( e ) , d & & k ( s ) , d & & k ( l ) , d & & k ( r ) , d & & k ( a ) , f = ! 1 , E e ( c ) } } } f u n c t i o n h D ( 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 : [ p D , ( { 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
2023-07-22 23:50:40 +08:00
< i class = "ri-arrow-right-line" > < /i>`,p(t,"class","content txt-center m-b-base"),p(a,"type","submit"),p(a,"class","btn btn-lg btn-block btn-next"),Q(a,"btn-disabled",n[2]),Q(a,"btn-loading",n[2]),p(e,"class","block")},m(d,m){w(d,e,m),g(e,t),g(e,i),V(s,e,null),g(e,l),V(o,e,null),g(e,r),g(e,a),u=!0,f||(c=J(e,"submit",et(n[3])),f=!0)},p(d,m){const _={};m&769&&(_.$$scope={dirty:m,ctx:d}),s.$set(_);const h={};m&770&&(h.$$scope={dirty:m,ctx:d}),o.$set(h),(!u||m&4)&&Q(a,"btn-disabled",d[2]),(!u||m&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&&k(e),z(s),z(o),f=!1,c()}}}function _D(n){let e,t;return e=new vb({props:{$$slots:{default:[hD]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment)},m(i,s){V(e,i,s),t=!0},p(i,[s]){const l={};s&519&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){z(e,i)}}}function gD(n,e,t){let i;Je(n,Ca,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),ce.admins.authWithPassword(l,o).then(()=>{Na(),ji("/ ")}).catch(()=>{Ds(" 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 bD extends ge{constructor(e){super(),_e(this,e,gD,_D,me,{})}}function vD(n){let e,t,i,s,l,o,r,a,u,f,c,d,m,_,h,b,y,S,C,$,T;i=new pe({props:{class:" form - field required ",name:" meta . appName ",$$slots:{default:[kD,({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:[wD,({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:[SD,({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:[$D,({uniqueId:O})=>({19:O}),({uniqueId:O})=>O?524288:0]},$$scope:{ctx:n}}});let M=n[3]&&Ih(n);return{c(){e=v(" div "),t=v(" div "),H(i.$$.fragment),s=E(),l=v(" div "),H(o.$$.fragment),r=E(),H(a.$$.fragment),u=E(),H(f.$$.fragment),c=E(),d=v(" div "),m=v(" div "),_=E(),M&&M.c(),h=E(),b=v(" button "),y=v(" span "),y.textContent=" Save changes ",p(t," class "," col - lg - 6 "),p(l," class "," col - lg - 6 "),p(m," class "," flex - fill "),p(y," class "," txt "),p(b," type "," submit "),p(b," class "," btn btn - expanded "),b.disabled=S=!n[3]||n[2],Q(b," btn - loading ",n[2]),p(d," class "," col - lg - 12 flex "),p(e," class "," grid ")},m(O,D){w(O,e,D),g(e,t),V(i,t,null),g(e,s),g(e,l),V(o,l,null),g(e,r),V(a,e,null),g(e,u),V(f,e,null),g(e,c),g(e,d),g(d,m),g(d,_),M&&M.m(d,null),g(d,h),g(d,b),g(b,y),C=!0,$||(T=J(b," click ",n[13]),$=!0)},p(O,D){const L={};D&1572865&&(L.$$scope={dirty:D,ctx:O}),i.$set(L);const P={};D&1572865&&(P.$$scope={dirty:D,ctx:O}),o.$set(P);const N={};D&1572865&&(N.$$scope={dirty:D,ctx:O}),a.$set(N);const F={};D&1572865&&(F.$$scope={dirty:D,ctx:O}),f.$set(F),O[3]?M?M.p(O,D):(M=Ih(O),M.c(),M.m(d,h)):M&&(M.d(1),M=null),(!C||D&12&&S!==(S=!O[3]||O[2]))&&(b.disabled=S),(!C||D&4)&&Q(b," btn - loading ",O[2])},i(O){C||(A(i.$$.fragment,O),A(o.$$.fragment,O),A(a.$$.fragment,O),A(f.$$.fragment,O),C=!0)},o(O){I(i.$$.fragment,O),I(o.$$.fragment,O),I(a.$$.fragment,O),I(f.$$.fragment,O),C=!1},d(O){O&&k(e),z(i),z(o),z(a),z(f),M&&M.d(),$=!1,T()}}}function yD(n){let e;return{c(){e=v(" div "),p(e," class "," loader ")},m(t,i){w(t,e,i)},p:x,i:x,o:x,d(t){t&&k(e)}}}function kD(n){let e,t,i,s,l,o,r,a;return{c(){e=v(" label "),t=U(" Application name "),s=E(),l=v(" input "),p(e," for ",i=n[19]),p(l," type "," text "),p(l," id ",o=n[19]),l.required=!0},m(u,f){w(u,e,f),g(e,t),w(u,s,f),w(u,l,f),re(l,n[0].meta.appName),r||(a=J(l," input ",n[8]),r=!0)},p(u,f){f&524288&&i!==(i=u[19])&&p(e," for ",i),f&524288&&o!==(o=u[19])&&p(l," id ",o),f&1&&l.value!==u[0].meta.appName&&re(l,u[0].meta.appName)},d(u){u&&k(e),u&&k(s),u&&k(l),r=!1,a()}}}function wD(n){let e,t,i,s,l,o,r,a;return{c(){e=v(" label "),t=U(" Application URL "),s=E(),l=v(" inpu
2023-07-27 20:57:20 +08:00
< div class = "breadcrumb-item" > Application < / d i v > < / n a v > ` , t = E ( ) , i = v ( " d i v " ) , s = v ( " f o r m " ) , o . c ( ) , p ( e , " c l a s s " , " p a g e - h e a d e r " ) , p ( s , " c l a s s " , " p a n e l " ) , p ( s , " a u t o c o m p l e t e " , " o f f " ) , p ( i , " c l a s s " , " w r a p p e r " ) } , m ( m , _ ) { w ( m , e , _ ) , w ( m , t , _ ) , w ( m , i , _ ) , g ( i , s ) , c [ l ] . m ( s , n u l l ) , r = ! 0 , a | | ( u = J ( s , " s u b m i t " , e t ( n [ 4 ] ) ) , a = ! 0 ) } , p ( m , _ ) { l e t h = l ; l = d ( m ) , l = = = h ? c [ l ] . p ( m , _ ) : ( a e ( ) , I ( c [ h ] , 1 , 1 , ( ) = > { c [ h ] = n u l l } ) , u e ( ) , o = c [ l ] , o ? o . p ( m , _ ) : ( o = c [ l ] = f [ l ] ( m ) , o . c ( ) ) , A ( o , 1 ) , o . m ( s , n u l l ) ) } , i ( m ) { r | | ( A ( o ) , r = ! 0 ) } , o ( m ) { I ( o ) , r = ! 1 } , d ( m ) { m & & k ( e ) , m & & k ( t ) , m & & k ( i ) , c [ l ] . d ( ) , a = ! 1 , u ( ) } } } f u n c t i o n T D ( n ) { l e t e , t , i , s ; r e t u r n e = n e w C i ( { } ) , i = n e w w n ( { p r o p s : { $ $ s l o t s : { d e f a u l t : [ C D ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) , t = E ( ) , H ( i . $ $ . f r a g m e n t ) } , m ( l , o ) { V ( e , l , o ) , w ( l , t , o ) , V ( i , l , o ) , s = ! 0 } , p ( l , [ o ] ) { c o n s t r = { } ; o & 1 0 4 8 5 9 1 & & ( r . $ $ s c o p e = { d i r t y : o , c t x : l } ) , i . $ s e t ( r ) } , i ( l ) { s | | ( 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 ) { z ( e , l ) , l & & k ( t ) , z ( i , l ) } } } f u n c t i o n M D ( n , e , t ) { l e t i , s , l , o ; J e ( n , A s , M = > t ( 1 4 , s = M ) ) , J e ( n , $ o , M = > t ( 1 5 , l = M ) ) , J e ( n , T t , M = > t ( 1 6 , o = M ) ) , s n ( T 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 M = a w a i t c e . s e t t i n g s . g e t A l l ( ) | | { } ; _ ( M ) } c a t c h ( M ) { c e . e r r o r ( M ) } t ( 1 , u = ! 1 ) } a s y n c f u n c t i o n m ( ) { i f ( ! ( f | | ! i ) ) { t ( 2 , f = ! 0 ) ; t r y { c o n s t M = a w a i t c e . s e t t i n g s . u p d a t e ( B . f i l t e r R e d a c t e d P r o p s ( a ) ) ; _ ( M ) , z 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 ( M ) { c e . e r r o r ( M ) } t ( 2 , f = ! 1 ) } } f u n c t i o n _ ( M = { } ) { v a r O , D ; s n ( $ o , l = ( O = M = = n u l l ? v o i d 0 : M . m e t a ) = = n u l l ? v o i d 0 : O . a p p N a m e , l ) , s n ( A s , s = ! ! ( ( D = M = = n u l l ? v o i d 0 : M . m e t a ) ! = n u l l & & D . h i d e C o n t r o l s ) , s ) , t ( 0 , a = { m e t a : ( M = = n u l l ? v o i d 0 : M . m e t a ) | | { } , l o g s : ( M = = n u l l ? v o i d 0 : M . 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 h ( ) { 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 b ( ) { 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 S ( ) { a . l o g s . m a x D a y s = d t ( t h i s . v a l u e ) , t ( 0 , a ) } f u n c t i o n C ( ) { a . m e t a . h i d e C o n t r o l s = t h i s . c h e c k e d , t ( 0 , a ) } c o n s t $ = ( ) = > h ( ) , T = ( ) = > m ( ) ; 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 , m , h , r , c , b , y , S , C , $ , T ] } c l a s s O D e x t e n d s g e { c o n s t r u c t o r ( e ) { s u p e r ( ) , _ e ( t h i s , e , M D , T D , m e , { } ) } } f u n c t i o n E D ( n ) { l e t e , t , i , s = [ { t y p e : " p a s s w o r d " } , { a u t o c o m p l e t e : " n e w - p a s s w o r d " } , n [ 5 ] ] , l = { } ; f o r ( l e t o = 0 ; o < s . l e n g t h ; o + = 1 ) l = q e ( l , s [ o ] ) ; r e t u r n { c ( ) { e = v ( " i n p u t " ) , r i ( e , l ) } , m ( o , r ) { w ( o , e , r ) , e . a u t o f o c u s & & e . f o c u s ( ) , n [ 7 ] ( e ) , r e ( e , n [ 0 ] ) , t | | ( i = J ( e , " i n p u t " , n [ 8 ] ) , t = ! 0 ) } , p ( o , r ) { r i ( e , l = M t ( s , [ { t y p e : " p a s s w o r d " } , { a u t o c o m p l e t e : " n e w - p a s s w o r d " } , r & 3 2 & & o [ 5 ] ] ) ) , r & 1 & & e . v a l u e ! = = o [ 0 ] & & r e ( e , o [ 0 ] ) } , d ( o ) { o & & k ( e ) , n [ 7 ] ( n u l l ) , t = ! 1 , i ( ) } } } f u n c t i o n D D ( n ) { l e t e , t , i , s , l , o , r = [ { r e a d O n l y : ! 0 } , { t y p e : " t e x t " } , { p l a c e h o l d e r : n [ 1 ] } , n [ 5 ] ] , a = { } ; f o r ( l e t u = 0 ; u < r . l e n g t h ; u + = 1 ) a = q 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 = E ( ) , s = v ( " i n p u t " ) , p ( t , " t y p e " , " b u t t o n " ) , p ( 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 " ) , p ( e , " c l a s s " , " f o r m - f i e l d - a d d o n " ) , r i ( s , a ) } , m ( u , f ) { w ( u , e , f ) , g ( e , t ) , w ( u , i , f ) , w ( u , s , f ) , s . a u t o f o c u s & & s . f o c u s ( ) , l | | ( o = [ M e ( H e . c a l l ( n u l l , t , { p o s i t i o n : " l e f t " , t e x t : " S e t n e w v a l u e " } ) ) , J ( t , " c l i c k " , n [ 6 ] ) ] , l = ! 0 ) } , p ( u , f ) { r i ( s , a = M 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 & & k ( e ) , u & & k ( i ) , u & & k ( s ) , l = ! 1 , E e ( o ) } } } f u n c t i o n A D ( n ) { l e t e ; f u n c t i o n t ( l , o ) { r e t u r n l [ 3 ] ? D D : E D } l e t i = t ( n ) , s = i ( n ) ; r e t u r n { c ( ) { s . c ( ) , e = y e ( ) } , m ( l , o ) { s . m ( l , o ) , w ( 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 & & k ( e ) } } } f u n c t i o n I D ( n , e , t ) { c o n s t i = [ " v a l u e " , " m a s k " ] ; l e t s = x 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 f 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 ( m ) { t e [ m ? " u n s h i f t " : " p u s h " ] ( ( ) = > { r = m , 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 = m = > { e = q e ( q e ( { } , e ) , Z t ( m ) ) , t ( 5 , s = x e ( e , i ) ) , " v a l u e " i n m & & t ( 0 , l = m . v a l u e ) , " m a s k " i n m & & t ( 1 , o = m . 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 m u e x t e n d s g e { c o n s t r u c t o r ( e ) { s u p e r ( ) , _ e ( t h i s , e , I D , A D , m e , { v a l u e : 0 , m a s k : 1 } ) } } f u n c t i o n L D ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d , m , _ , h ; r e t u r n { c ( ) { e = v ( " l a b e l " ) , t = U ( " S u b j e c t " ) , s = E ( ) , l = v ( " i n p u t " ) , r = E ( ) , a = v ( " d i v " ) , u = U ( ` A v a i l a b l e p l a c e h o l d e r p a r a m e t e r s :
2023-06-11 04:32:41 +08:00
` ),f=v("button"),f.textContent= ` { APP _NAME }
` ,c=U( ` ,
` ),d=v("button"),d.textContent= ` { APP _URL }
2023-07-22 23:50:40 +08:00
` ,m=U("."),p(e,"for",i=n[31]),p(l,"type","text"),p(l,"id",o=n[31]),p(l,"spellcheck","false"),l.required=!0,p(f,"type","button"),p(f,"class","label label-sm link-primary txt-mono"),p(d,"type","button"),p(d,"class","label label-sm link-primary txt-mono"),p(a,"class","help-block")},m(b,y){w(b,e,y),g(e,t),w(b,s,y),w(b,l,y),re(l,n[0].subject),w(b,r,y),w(b,a,y),g(a,u),g(a,f),g(a,c),g(a,d),g(a,m),_||(h=[J(l,"input",n[13]),J(f,"click",n[14]),J(d,"click",n[15])],_=!0)},p(b,y){y[1]&1&&i!==(i=b[31])&&p(e,"for",i),y[1]&1&&o!==(o=b[31])&&p(l,"id",o),y[0]&1&&l.value!==b[0].subject&&re(l,b[0].subject)},d(b){b&&k(e),b&&k(s),b&&k(l),b&&k(r),b&&k(a),_=!1,Ee(h)}}}function PD(n){let e,t,i,s,l,o,r,a,u,f,c,d,m,_,h,b,y;return{c(){e=v("label"),t=U("Action URL"),s=E(),l=v("input"),r=E(),a=v("div"),u=U( ` Available placeholder parameters :
2023-06-11 04:32:41 +08:00
` ),f=v("button"),f.textContent= ` { APP _NAME }
` ,c=U( ` ,
` ),d=v("button"),d.textContent= ` { APP _URL }
` ,m=U( ` ,
` ),_=v("button"),_.textContent= ` { TOKEN }
2023-07-27 20:57:20 +08:00
` ,h=U("."),p(e,"for",i=n[31]),p(l,"type","text"),p(l,"id",o=n[31]),p(l,"spellcheck","false"),l.required=!0,p(f,"type","button"),p(f,"class","label label-sm link-primary txt-mono"),p(d,"type","button"),p(d,"class","label label-sm link-primary txt-mono"),p(_,"type","button"),p(_,"class","label label-sm link-primary txt-mono"),p(_,"title","Required parameter"),p(a,"class","help-block")},m(S,C){w(S,e,C),g(e,t),w(S,s,C),w(S,l,C),re(l,n[0].actionUrl),w(S,r,C),w(S,a,C),g(a,u),g(a,f),g(a,c),g(a,d),g(a,m),g(a,_),g(a,h),b||(y=[J(l,"input",n[16]),J(f,"click",n[17]),J(d,"click",n[18]),J(_,"click",n[19])],b=!0)},p(S,C){C[1]&1&&i!==(i=S[31])&&p(e,"for",i),C[1]&1&&o!==(o=S[31])&&p(l,"id",o),C[0]&1&&l.value!==S[0].actionUrl&&re(l,S[0].actionUrl)},d(S){S&&k(e),S&&k(s),S&&k(l),S&&k(r),S&&k(a),b=!1,Ee(y)}}}function ND(n){let e,t,i,s;return{c(){e=v("textarea"),p(e,"id",t=n[31]),p(e,"class","txt-mono"),p(e,"spellcheck","false"),p(e,"rows","14"),e.required=!0},m(l,o){w(l,e,o),re(e,n[0].body),i||(s=J(e,"input",n[21]),i=!0)},p(l,o){o[1]&1&&t!==(t=l[31])&&p(e,"id",t),o[0]&1&&re(e,l[0].body)},i:x,o:x,d(l){l&&k(e),i=!1,s()}}}function FD(n){let e,t,i,s;function l(a){n[20](a)}var o=n[4];function r(a){let u={id:a[31],language:"html"};return a[0].body!==void 0&&(u.value=a[0].body),{props:u}}return o&&(e=Rt(o,r(n)),te.push(()=>de(e,"value",l))),{c(){e&&H(e. $ $ .fragment),i=ye()},m(a,u){e&&V(e,a,u),w(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,he(()=>t=!1)),u[0]&16&&o!==(o=a[4])){if(e){ae();const c=e;I(c. $ $ .fragment,1,0,()=>{z(c,1)}),ue()}o?(e=Rt(o,r(a)),te.push(()=>de(e,"value",l)),H(e. $ $ .fragment),A(e. $ $ .fragment,1),V(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&&k(i),e&&z(e,a)}}}function RD(n){let e,t,i,s,l,o,r,a,u,f,c,d,m,_,h,b,y,S,C, $ ;const T=[FD,ND],M=[];function O(D,L){return D[4]&&!D[5]?0:1}return l=O(n),o=M[l]=T[l](n),{c(){e=v("label"),t=U("Body (HTML)"),s=E(),o.c(),r=E(),a=v("div"),u=U( ` Available placeholder parameters :
2023-06-11 04:32:41 +08:00
` ),f=v("button"),f.textContent= ` { APP _NAME }
` ,c=U( ` ,
` ),d=v("button"),d.textContent= ` { APP _URL }
` ,m=U( ` ,
` ),_=v("button"),_.textContent= ` { TOKEN }
` ,h=U( ` ,
` ),b=v("button"),b.textContent= ` { ACTION _URL }
2023-08-07 02:51:55 +08:00
` ,y=U("."),p(e,"for",i=n[31]),p(f,"type","button"),p(f,"class","label label-sm link-primary txt-mono"),p(d,"type","button"),p(d,"class","label label-sm link-primary txt-mono"),p(_,"type","button"),p(_,"class","label label-sm link-primary txt-mono"),p(b,"type","button"),p(b,"class","label label-sm link-primary txt-mono"),p(b,"title","Required parameter"),p(a,"class","help-block")},m(D,L){w(D,e,L),g(e,t),w(D,s,L),M[l].m(D,L),w(D,r,L),w(D,a,L),g(a,u),g(a,f),g(a,c),g(a,d),g(a,m),g(a,_),g(a,h),g(a,b),g(a,y),S=!0,C||( $ =[J(f,"click",n[22]),J(d,"click",n[23]),J(_,"click",n[24]),J(b,"click",n[25])],C=!0)},p(D,L){(!S||L[1]&1&&i!==(i=D[31]))&&p(e,"for",i);let P=l;l=O(D),l===P?M[l].p(D,L):(ae(),I(M[P],1,1,()=>{M[P]=null}),ue(),o=M[l],o?o.p(D,L):(o=M[l]=T[l](D),o.c()),A(o,1),o.m(r.parentNode,r))},i(D){S||(A(o),S=!0)},o(D){I(o),S=!1},d(D){D&&k(e),D&&k(s),M[l].d(D),D&&k(r),D&&k(a),C=!1,Ee( $ )}}}function qD(n){let e,t,i,s,l,o;return e=new pe({props:{class:"form-field required",name:n[1]+".subject", $ $ slots:{default:[LD,({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:[PD,({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:[RD,({uniqueId:r})=>({31:r}),({uniqueId:r})=>[0,r?1:0]]}, $ $ scope:{ctx:n}}}),{c(){H(e. $ $ .fragment),t=E(),H(i. $ $ .fragment),s=E(),H(l. $ $ .fragment)},m(r,a){V(e,r,a),w(r,t,a),V(i,r,a),w(r,s,a),V(l,r,a),o=!0},p(r,a){const u={};a[0]&2&&(u.name=r[1]+".subject"),a[0]&1|a[1]&3&&(u. $ $ scope={dirty:a,ctx:r}),e. $ set(u);const f={};a[0]&2&&(f.name=r[1]+".actionUrl"),a[0]&1|a[1]&3&&(f. $ $ scope={dirty:a,ctx:r}),i. $ set(f);const 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){z(e,r),r&&k(t),z(i,r),r&&k(s),z(l,r)}}}function Lh(n){let e,t,i,s,l;return{c(){e=v("i"),p(e,"class","ri-error-warning-fill txt-danger")},m(o,r){w(o,e,r),i=!0,s||(l=Me(He.call(null,e,{text:"Has errors",position:"left"})),s=!0)},i(o){i||(o&&Qe(()=>{i&&(t||(t=je(e,Kt,{duration:150,start:.7},!0)),t.run(1))}),i=!0)},o(o){o&&(t||(t=je(e,Kt,{duration:150,start:.7},!1)),t.run(0)),i=!1},d(o){o&&k(e),o&&t&&t.end(),s=!1,l()}}}function jD(n){let e,t,i,s,l,o,r,a,u,f=n[6]&&Lh();return{c(){e=v("div"),t=v("i"),i=E(),s=v("span"),l=U(n[2]),o=E(),r=v("div"),a=E(),f&&f.c(),u=ye(),p(t,"class","ri-draft-line"),p(s,"class","txt"),p(e,"class","inline-flex"),p(r,"class","flex-fill")},m(c,d){w(c,e,d),g(e,t),g(e,i),g(e,s),g(s,l),w(c,o,d),w(c,r,d),w(c,a,d),f&&f.m(c,d),w(c,u,d)},p(c,d){d[0]&4&&se(l,c[2]),c[6]?f?d[0]&64&&A(f,1):(f=Lh(),f.c(),A(f,1),f.m(u.parentNode,u)):f&&(ae(),I(f,1,1,()=>{f=null}),ue())},d(c){c&&k(e),c&&k(o),c&&k(r),c&&k(a),f&&f.d(c),c&&k(u)}}}function VD(n){let e,t;const i=[n[8]];let s={ $ $ slots:{header:[jD],default:[qD]}, $ $ scope:{ctx:n}};for(let l=0;l<i.length;l+=1)s=qe(s,i[l]);return e=new po({props:s}),n[26](e),e. $ on("expand",n[27]),e. $ on("collapse",n[28]),e. $ on("toggle",n[29]),{c(){H(e. $ $ .fragment)},m(l,o){V(e,l,o),t=!0},p(l,o){const r=o[0]&256?Mt(i,[Xt(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),z(e,l)}}}let Ph;function zD(n,e,t){let i;const s=["key","title","config","expand","collapse","collapseSiblings"];let l=xe(e,s),o;Je(n,Si,W=>t(12,o=W));let{key:r}=e,{title:a}=e,{config:u={}}=e,f,c=Ph,d=!1;function m(){f==null||f.expand()}function _(){f==null||f.collapse()}function h(){f==null||f.collapseSiblings()}async function b(){c||d||(t(5,d=!0),t(4,c=(await at(()=>import("./CodeEditor-47f6511b.js"),["./CodeEditor-47f6511b.js","./index-fd4289fb.js"],import.meta.url)).default),Ph=c,t(5,d=!1))}function y(W){B.copyToClipboard(W),ko( ` Copied $ { W } to clipboard ` ,2e3)}b();function S(){u.subject=this.value,t(0,u)}const C=()=>y("{APP_NAME}"), $ =()=>y("{APP_URL}");function T(){u.action
2023-07-27 20:57:20 +08:00
< span class = "txt" > Send test email < / s p a n > ` , p ( e , " t y p e " , " b u t t o n " ) , p ( 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 ) { w ( s , e , l ) , t | | ( i = J ( e , " c l i c k " , n [ 2 6 ] ) , t = ! 0 ) } , p : x , d ( s ) { s & & k ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n a 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 = E ( ) , 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 " , p ( t , " c l a s s " , " t x t " ) , p ( e , " t y p e " , " b u t t o n " ) , p ( 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 ] , p ( l , " c l a s s " , " t x t " ) , p ( s , " t y p e " , " s u b m i t " ) , p ( 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 ) { w ( u , e , f ) , g ( e , t ) , w ( u , i , f ) , w ( u , s , f ) , g ( s , l ) , r | | ( a = [ J ( e , " c l i c k " , n [ 2 4 ] ) , J ( s , " c l i c k " , n [ 2 5 ] ) ] , r = ! 0 ) } , p ( u , f ) { f [ 0 ] & 8 & & ( e . d i s a b l e d = u [ 3 ] ) , f [ 0 ] & 2 4 & & o ! = = ( o = ! u [ 4 ] | | u [ 3 ] ) & & ( s . d i s a b l e d = o ) , f [ 0 ] & 8 & & Q ( s , " b t n - l o a d i n g " , u [ 3 ] ) } , d ( u ) { u & & k ( e ) , u & & k ( i ) , u & & k ( s ) , r = ! 1 , E e ( a ) } } } f u n c t i o n u A ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d , m , _ , h , b ; c o n s t y = [ X D , G D ] , S = [ ] ; f u n c t i o n C ( $ , T ) { r e t u r n $ [ 2 ] ? 0 : 1 } r e t u r n d = C ( n ) , m = S [ 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 = E ( ) , l = v ( " d i v " ) , o = U ( n [ 5 ] ) , r = E ( ) , 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 = E ( ) , m . c ( ) , p ( i , " c l a s s " , " b r e a d c r u m b - i t e m " ) , p ( l , " c l a s s " , " b r e a d c r u m b - i t e m " ) , p ( t , " c l a s s " , " b r e a d c r u m b s " ) , p ( e , " c l a s s " , " p a g e - h e a d e r " ) , p ( f , " c l a s s " , " c o n t e n t t x t - x l m - b - b a s e " ) , p ( u , " c l a s s " , " p a n e l " ) , p ( u , " a u t o c o m p l e t e " , " o f f " ) , p ( a , " c l a s s " , " w r a p p e r " ) } , m ( $ , T ) { w ( $ , e , T ) , g ( e , t ) , g ( t , i ) , g ( t , s ) , g ( t , l ) , g ( l , o ) , w ( $ , r , T ) , w ( $ , a , T ) , g ( a , u ) , g ( u , f ) , g ( u , c ) , S [ d ] . m ( u , n u l l ) , _ = ! 0 , h | | ( b = J ( u , " s u b m i t " , e t ( n [ 2 7 ] ) ) , h = ! 0 ) } , p ( $ , T ) { ( ! _ | | T [ 0 ] & 3 2 ) & & s e ( o , $ [ 5 ] ) ; l e t M = d ; d = C ( $ ) , d = = = M ? S [ d ] . p ( $ , T ) : ( a e ( ) , I ( S [ M ] , 1 , 1 , ( ) = > { S [ M ] = n u l l } ) , u e ( ) , m = S [ d ] , m ? m . p ( $ , T ) : ( m = S [ d ] = y [ d ] ( $ ) , m . c ( ) ) , A ( m , 1 ) , m . m ( u , n u l l ) ) } , i ( $ ) { _ | | ( A ( m ) , _ = ! 0 ) } , o ( $ ) { I ( m ) , _ = ! 1 } , d ( $ ) { $ & & k ( e ) , $ & & k ( r ) , $ & & k ( a ) , S [ d ] . d ( ) , h = ! 1 , b ( ) } } } f u n c t i o n f A ( n ) { l e t e , t , i , s , l , o ; e = n e w C i ( { } ) , i = n e w w n ( { p r o p s : { $ $ s l o t s : { d e f a u l t : [ u A ] } , $ $ s c o p e : { c t x : n } } } ) ; l e t r = { } ; r e t u r n l = n e w Z D ( { p r o p s : r } ) , n [ 2 8 ] ( l ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) , t = E ( ) , H ( i . $ $ . f r a g m e n t ) , s = E ( ) , H ( l . $ $ . f r a g m e n t ) } , m ( a , u ) { V ( e , a , u ) , w ( a , t , u ) , V ( i , a , u ) , w ( a , s , u ) , V ( l , a , u ) , o = ! 0 } , p ( a , u ) { c o n s t f = { } ; u [ 0 ] & 6 3 | u [ 1 ] & 2 & & ( f . $ $ s c o p e = { d i r t y : u , c t x : a } ) , i . $ s e t ( f ) ; c o n s t 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 ) { z ( e , a ) , a & & k ( t ) , z ( i , a ) , a & & k ( s ) , n [ 2 8 ] ( n u l l ) , z ( l , a ) } } } f u n c t i o n c A ( n , e , t ) { l e t i , s , l ; J e ( n , T t , G = > t ( 5 , l = G ) ) ; 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 " } ] ; s n ( T 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 ; m ( ) ; a s y n c f u n c t i o n m ( ) { t ( 2 , c = ! 0 ) ; t r y { c o n s t G = a w a i t c e . s e t t i n g s . g e t A l l ( ) | | { } ; h ( G ) } c a t c h ( G ) { c e . e r r o r ( G ) } t ( 2 , c = ! 1 ) } a s y n c f u n c t i o n _ ( ) { i f ( ! ( d | | ! s ) ) { t ( 3 , d = ! 0 ) ; t r y { c o n s t G = a w a i t c e . s e t t i n g s . u p d a t e ( B . f i l t e r R e d a c t e d P r o p s ( f ) ) ; h ( G ) , e n ( { } ) , z 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 ( G ) { c e . e r r o r ( G ) } t ( 3 , d = ! 1 ) } } f u n c t i o n h ( G = { } ) { t ( 0 , f = { m e t a : ( G = = n u l l ? v o i d 0 : G . m e t a ) | | { } , s m t p : ( G = = n u l l ? v o i d 0 : G . 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 b ( ) { 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 S ( ) { f . m e t a . s e n d e r A d d r e s s = t h i s . v a l u e , t ( 0 , f ) } f u n c t i o n C ( G ) { 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 , G ) & & ( 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 = G , t ( 0 , f ) ) } f u n c t i o n $ ( G ) { 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 , G ) & & ( 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 = G , t ( 0 , f ) ) } f u n c t i o n T ( G ) { 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 , G ) & & ( 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 = G , t ( 0 , f ) ) } f u n c t i o n M ( ) { 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 D ( ) { f . s m t p . p o r t = d t ( t h i s . v a l u e ) , t ( 0 , f ) } f u n c t i o n L ( G ) { n . $ $ . n o t _ e q u a l ( f . s m t p . t l s , G ) & & ( f . s m t p . t l s = G , t ( 0 , f ) ) } f u n c t i o n P ( G ) { n . $ $ . n o t _ e q u a l ( f . s m t p . a u t h M e t h o d , G ) & & ( f . s m t p . a u t h M e t h o d = G , t ( 0 , f ) ) } f u n c t i o n N ( ) { 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 F ( G ) { n . $ $ . n o t _ e q u a l ( f . s m t p . p a s s w o r d , G ) & & ( f . s m t p . p a s s w o r d = G , t ( 0 , f ) ) } c o n s t R = ( ) = > b ( ) , q = ( ) = > _ ( ) , j = ( ) = > a = = n u l l ? v o i d 0 : a . s h o w ( ) , Y = ( ) = > _ ( ) ; f u n c t i o n X ( G ) { t e [ G ? " u n s h i f t " : " p u s h " ] ( (
2023-06-11 04:32:41 +08:00
from the
` ),r=v("strong"),u=U(a),f=U( `
to the
` ),c=v("strong"),m=U(d),_=U( ` .
` ),h=v("br"),b=U( `
There are numerous command line tools that can help you , such as :
` ),y=v("a"),y.textContent= ` rclone
` ,S=U( ` ,
` ),C=v("a"),C.textContent= ` s5cmd
2023-07-22 23:50:40 +08:00
` , $ =U(", etc."),T=E(),M=v("div"),p(i,"class","icon"),p(y,"href","https://github.com/rclone/rclone"),p(y,"target","_blank"),p(y,"rel","noopener noreferrer"),p(y,"class","txt-bold"),p(C,"href","https://github.com/peak/s5cmd"),p(C,"target","_blank"),p(C,"rel","noopener noreferrer"),p(C,"class","txt-bold"),p(l,"class","content"),p(t,"class","alert alert-warning m-0"),p(M,"class","clearfix m-t-base")},m(P,N){w(P,e,N),g(e,t),g(t,i),g(t,s),g(t,l),g(l,o),g(l,r),g(r,u),g(l,f),g(l,c),g(c,m),g(l,_),g(l,h),g(l,b),g(l,y),g(l,S),g(l,C),g(l, $ ),g(e,T),g(e,M),D=!0},p(P,N){var F;(!D||N&1)&&a!==(a=(F=P[0].s3)!=null&&F.enabled?"S3 storage":"local file system")&&se(u,a),(!D||N&2)&&d!==(d=P[1].s3.enabled?"S3 storage":"local file system")&&se(m,d)},i(P){D||(P&&Qe(()=>{D&&(O||(O=je(e,ot,{duration:150},!0)),O.run(1))}),D=!0)},o(P){P&&(O||(O=je(e,ot,{duration:150},!1)),O.run(0)),D=!1},d(P){P&&k(e),P&&O&&O.end()}}}function CA(n){var i;let e,t=((i=n[0].s3)==null?void 0:i.enabled)!=n[1].s3.enabled&&zh(n);return{c(){t&&t.c(),e=ye()},m(s,l){t&&t.m(s,l),w(s,e,l)},p(s,l){var o;((o=s[0].s3)==null?void 0:o.enabled)!=s[1].s3.enabled?t?(t.p(s,l),l&3&&A(t,1)):(t=zh(s),t.c(),A(t,1),t.m(e.parentNode,e)):t&&(ae(),I(t,1,1,()=>{t=null}),ue())},d(s){t&&t.d(s),s&&k(e)}}}function Hh(n){let e;function t(l,o){return l[4]?OA:l[5]?MA:TA}let i=t(n),s=i(n);return{c(){s.c(),e=ye()},m(l,o){s.m(l,o),w(l,e,o)},p(l,o){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},d(l){s.d(l),l&&k(e)}}}function TA(n){let e;return{c(){e=v("div"),e.innerHTML= ` < i class = "ri-checkbox-circle-line txt-success" > < / i >
2023-06-11 04:32:41 +08:00
< span class = "txt" > S3 connected successfully < /span>`,p(e,"class","label label-sm label-success entrance-right")},m(t,i){w(t,e,i)},p:x,d(t){t&&k(e)}}}function MA(n){let e,t,i,s;return{c(){e=v("div"),e.innerHTML=`<i class="ri-error-warning-line txt-warning"></i >
2023-07-22 23:50:40 +08:00
< span class = "txt" > Failed to establish S3 connection < / s p a n > ` , p ( 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 ; w ( l , e , o ) , i | | ( s = M e ( t = H e . c a l l ( n u l l , e , ( r = n [ 5 ] . d a t a ) = = n u l l ? v o i d 0 : r . m e s s a g e ) ) , i = ! 0 ) } , p ( l , o ) { v a r r ; t & & j t ( t . u p d a t e ) & & o & 3 2 & & t . u p d a t e . c a l l ( n u l l , ( r = l [ 5 ] . d a t a ) = = n u l l ? v o i d 0 : r . m e s s a g e ) } , d ( l ) { l & & k ( e ) , i = ! 1 , s ( ) } } } f u n c t i o n O A ( n ) { l e t e ; r e t u r n { c ( ) { e = v ( " s p a n " ) , p ( e , " c l a s s " , " l o a d e r l o a d e r - s m " ) } , m ( t , i ) { w ( t , e , i ) } , p : x , d ( t ) { t & & k ( e ) } } } f u n c t i o n B 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 = " R e s e t " , p ( t , " c l a s s " , " t x t " ) , p ( e , " t y p e " , " b u t t o n " ) , p ( 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 ) { w ( l , e , o ) , g ( e , t ) , i | | ( s = J ( e , " c l i c k " , n [ 1 4 ] ) , i = ! 0 ) } , p ( l , o ) { o & 8 & & ( e . d i s a b l e d = l [ 3 ] ) } , d ( l ) { l & & k ( e ) , i = ! 1 , s ( ) } } } f u n c t i o n E A ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d , m , _ , h , b ; c o n s t y = [ $ A , S A ] , S = [ ] ; f u n c t i o n C ( $ , T ) { r e t u r n $ [ 2 ] ? 0 : 1 } r e t u r n d = C ( n ) , m = S [ 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 = E ( ) , l = v ( " d i v " ) , o = U ( n [ 7 ] ) , r = E ( ) , 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-07-27 20:57:20 +08:00
< p > If you have limited disk space , you could optionally connect to a S3 compatible storage . < / p > ` , c = E ( ) , m . c ( ) , p ( i , " c l a s s " , " b r e a d c r u m b - i t e m " ) , p ( l , " c l a s s " , " b r e a d c r u m b - i t e m " ) , p ( t , " c l a s s " , " b r e a d c r u m b s " ) , p ( e , " c l a s s " , " p a g e - h e a d e r " ) , p ( f , " c l a s s " , " c o n t e n t t x t - x l m - b - b a s e " ) , p ( u , " c l a s s " , " p a n e l " ) , p ( u , " a u t o c o m p l e t e " , " o f f " ) , p ( a , " c l a s s " , " w r a p p e r " ) } , m ( $ , T ) { w ( $ , e , T ) , g ( e , t ) , g ( t , i ) , g ( t , s ) , g ( t , l ) , g ( l , o ) , w ( $ , r , T ) , w ( $ , a , T ) , g ( a , u ) , g ( u , f ) , g ( u , c ) , S [ d ] . m ( u , n u l l ) , _ = ! 0 , h | | ( b = J ( u , " s u b m i t " , e t ( n [ 1 6 ] ) ) , h = ! 0 ) } , p ( $ , T ) { ( ! _ | | T & 1 2 8 ) & & s e ( o , $ [ 7 ] ) ; l e t M = d ; d = C ( $ ) , d = = = M ? S [ d ] . p ( $ , T ) : ( a e ( ) , I ( S [ M ] , 1 , 1 , ( ) = > { S [ M ] = n u l l } ) , u e ( ) , m = S [ d ] , m ? m . p ( $ , T ) : ( m = S [ d ] = y [ d ] ( $ ) , m . c ( ) ) , A ( m , 1 ) , m . m ( u , n u l l ) ) } , i ( $ ) { _ | | ( A ( m ) , _ = ! 0 ) } , o ( $ ) { I ( m ) , _ = ! 1 } , d ( $ ) { $ & & k ( e ) , $ & & k ( r ) , $ & & k ( a ) , S [ d ] . d ( ) , h = ! 1 , b ( ) } } } f u n c t i o n D A ( n ) { l e t e , t , i , s ; r e t u r n e = n e w C i ( { } ) , i = n e w w n ( { p r o p s : { $ $ s l o t s : { d e f a u l t : [ E A ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) , t = E ( ) , H ( i . $ $ . f r a g m e n t ) } , m ( l , o ) { V ( e , l , o ) , w ( l , t , o ) , V ( i , l , o ) , s = ! 0 } , p ( l , [ o ] ) { c o n s t r = { } ; o & 5 2 4 5 4 3 & & ( r . $ $ s c o p e = { d i r t y : o , c t x : l } ) , i . $ s e t ( r ) } , i ( l ) { s | | ( 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 ) { z ( e , l ) , l & & k ( t ) , z ( i , l ) } } } c o n s t A A = " s 3 _ t e s t _ r e q u e s t " ; f u n c t i o n I A ( n , e , t ) { l e t i , s , l ; J e ( n , T t , M = > t ( 7 , l = M ) ) , s n ( T 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 ( ) ; a s y n c f u n c t i o n d ( ) { t ( 2 , a = ! 0 ) ; t r y { c o n s t M = a w a i t c e . s e t t i n g s . g e t A l l ( ) | | { } ; _ ( M ) } c a t c h ( M ) { c e . e r r o r ( M ) } t ( 2 , a = ! 1 ) } a s y n c f u n c t i o n m ( ) { i f ( ! ( u | | ! s ) ) { t ( 3 , u = ! 0 ) ; t r y { c e . c a n c e l R e q u e s t ( A A ) ; c o n s t M = a w a i t c e . s e t t i n g s . u p d a t e ( B . f i l t e r R e d a c t e d P r o p s ( r ) ) ; e n ( { } ) , a w a i t _ ( M ) , N a ( ) , c ? D y ( " S u c c e s s f u l l y s a v e d b u t f a i l e d t o e s t a b l i s h S 3 c o n n e c t i o n . " ) : z 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 ( M ) { c e . e r r o r ( M ) } t ( 3 , u = ! 1 ) } } a s y n c f u n c t i o n _ ( M = { } ) { t ( 1 , r = { s 3 : ( M = = n u l l ? v o i d 0 : M . s 3 ) | | { } } ) , t ( 0 , o = J S O N . p a r s e ( J S O N . s t r i n g i f y ( r ) ) ) } a s y n c f u n c t i o n h ( ) { t ( 1 , r = J S O N . p a r s e ( J S O N . s t r i n g i f y ( o | | { } ) ) ) } f u n c t i o n b ( M ) { n . $ $ . n o t _ e q u a l ( r . s 3 , M ) & & ( r . s 3 = M , t ( 1 , r ) ) } f u n c t i o n y ( M ) { f = M , t ( 4 , f ) } f u n c t i o n S ( M ) { c = M , t ( 5 , c ) } c o n s t C = ( ) = > h ( ) , $ = ( ) = > m ( ) , T = ( ) = > m ( ) ; 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 , m , h , i , b , y , S , C , $ , T ] } c l a s s L A e x t e n d s g e { c o n s t r u c t o r ( e ) { s u p e r ( ) , _ e ( t h i s , e , I A , D A , m e , { } ) } } f u n c t i o n P 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 = E ( ) , s = v ( " l a b e l " ) , l = U ( " E n a b l e " ) , p ( e , " t y p e " , " c h e c k b o x " ) , p ( e , " i d " , t = n [ 2 0 ] ) , p ( s , " f o r " , o = n [ 2 0 ] ) } , m ( u , f ) { w ( u , e , f ) , e . c h e c k e d = n [ 1 ] . e n a b l e d , w ( u , i , f ) , w ( u , s , f ) , g ( s , l ) , r | | ( a = J ( e , " c h a n g e " , n [ 1 1 ] ) , r = ! 0 ) } , p ( u , f ) { f & 1 0 4 8 5 7 6 & & t ! = = ( t = u [ 2 0 ] ) & & p ( e , " i d " , t ) , f & 2 & & ( e . c h e c k e d = u [ 1 ] . e n a b l e d ) , f & 1 0 4 8 5 7 6 & & o ! = = ( o = u [ 2 0 ] ) & & p ( s , " f o r " , o ) } , d ( u ) { u & & k ( e ) , u & & k ( i ) , u & & k ( s ) , r = ! 1 , a ( ) } } } f u n c t i o n N 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 = U ( " C l i e n t I D " ) , s = E ( ) , l = v ( " i n p u t " ) , p ( e , " f o r " , i = n [ 2 0 ] ) , p ( l , " t y p e " , " t e x t " ) , p ( l , " i d " , o = n [ 2 0 ] ) , l . r e q u i r e d = r = n [ 1 ] . e n a b l e d } , m ( f , c ) { w ( f , e , c ) , g ( e , t ) , w ( f , s , c ) , w ( f , l , c ) , r e ( l , n [ 1 ] . c l i e n t I d ) , a | | ( u = J ( l , " i n p u t " , n [ 1 2 ] ) , a = ! 0 ) } , p ( f , c ) { c & 1 0 4 8 5 7 6 & & i ! = = ( i = f [ 2 0 ] ) & & p ( e , " f o r " , i ) , c & 1 0 4 8 5 7 6 & & o ! = = ( o = f [ 2 0 ] ) & & p ( l , " i d " , o ) , c & 2 & & r ! = = ( r = f [ 1 ] . e n a b l e d ) & & ( l . r e q u i r e d = r ) , c & 2 & & l . v a l u e ! = = f [ 1 ] . c l i e n t I d & & r e ( l , f [ 1 ] . c l i e n t I d ) } , d ( f ) { f & & k ( e ) , f & & k ( s ) , f & & k ( l ) , a = ! 1 , u ( ) } } } f u n c t i o n F A ( n ) { l e t e , t , i , s , l , o , r ; f u n c t i o n a ( f ) { n [ 1 3 ] ( f ) } l e t u = { i d : n [ 2 0 ] , r e q u i r e d : n [ 1 ] . e n a b l e d } ; r e t u r n n [ 1 ] . c l i e n t S e c r e t ! = = v o i d 0 & & ( u . v a l u e = n [ 1 ] . c l i e n t S e c r e t ) , l = n e w m u ( { p r o p s : u } ) , t e . p u s h ( ( ) = > d e ( l , " v a l u e " , a ) ) , { c ( ) { e = v ( " l a b e l " ) , t = U ( " C l i e n t s e c r e t " ) , s = E ( ) , H ( l . $ $ . f r a g m e n t ) , p ( e , " f o r " , i = n [ 2 0 ] ) } , m ( f , c ) { w ( f , e , c ) , g ( e , t ) , w ( f , s , c ) , V ( l , f , c ) , r = ! 0 } , p ( f , c ) { ( ! r | | c & 1 0 4 8 5 7 6 & & i ! = = ( i = f [ 2 0 ] ) ) & & p ( e , " f o r " , i ) ; c o n s t d = { } ; c & 1 0 4 8 5 7 6 & & ( d . i d = f [ 2 0 ] ) , c & 2 & & ( d . r e q u i r e d = f [ 1 ] . e n a b l e d ) , ! o & & c & 2 & & ( o = ! 0 , d . v a l u e = f [ 1 ] . c l i e n t S e c r e t , h e ( ( ) = > o = ! 1 ) ) , l . $ s e t ( d ) } , i ( f ) { r | | ( A ( l . $ $ . f r a g m e n t , f ) , r = ! 0 ) } , o ( f ) { I ( l . $ $ . f r a g m e n t , f ) , r = ! 1 } , d ( f ) { f & & k ( e ) , f & & k ( s ) , z ( l , f ) } } } f u n c t i o n U h ( n ) { l e t e , t , i , s ; f u n c t i o n l ( a ) { n [ 1 4 ] ( a ) } v a r o = n [ 3 ] . o p t i o n s C o m p o n e n t ; f u n c t i o n r ( a ) { l e t u = { k e y : a [ 3 ] . k e y } ; r e t u r n a [ 1 ] ! = = v o i d 0 & & ( u . c o n f i g = a [ 1 ] ) , { p r o p s : u } } r e t u r n o & & ( t = R t ( o , r ( n ) ) , t e . p u s h ( ( ) = > d e ( t , " c o n f i g " , l ) ) ) , { c ( ) { e = v ( " d i v " ) , t & & H ( t . $ $ . f r a g m e n t ) , p ( e , " c l a s s " , " c o l - l g - 1 2 " ) } , m ( a , u ) { w ( a , e , u ) , t & & V ( t , e , n u l l ) , s = ! 0 } , p ( a , u ) { c o n s t f = { } ; i f ( u & 8 & & ( f . k e y = a [ 3 ] . k e y ) , ! i & & u & 2 & & ( i = ! 0 , f . c o n f i g = a [
2023-07-22 23:50:40 +08:00
another PocketBase environment . < / p > ` , t = E ( ) , 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 = E ( ) , H ( o . $ $ . f r a g m e n t ) , r = E ( ) , a = v ( " d i v " ) , u = v ( " d i v " ) , f = E ( ) , 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 >
2023-07-27 20:57:20 +08:00
< span class = "txt" > Download as JSON < / s p a n > ` , p ( e , " c l a s s " , " c o n t e n t t x t - x l m - b - b a s e " ) , p ( s , " t y p e " , " b u t t o n " ) , p ( 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 " ) , p ( i , " t a b i n d e x " , " 0 " ) , p ( 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 " ) , p ( u , " c l a s s " , " f l e x - f i l l " ) , p ( c , " t y p e " , " b u t t o n " ) , p ( c , " c l a s s " , " b t n b t n - e x p a n d e d " ) , p ( a , " c l a s s " , " f l e x m - t - b a s e " ) } , m ( h , b ) { w ( h , e , b ) , w ( h , t , b ) , w ( h , i , b ) , g ( i , s ) , g ( i , l ) , V ( o , i , n u l l ) , n [ 8 ] ( i ) , w ( h , r , b ) , w ( h , a , b ) , g ( a , u ) , g ( a , f ) , g ( a , c ) , d = ! 0 , m | | ( _ = [ J ( s , " c l i c k " , n [ 7 ] ) , J ( i , " k e y d o w n " , n [ 9 ] ) , J ( c , " c l i c k " , n [ 1 0 ] ) ] , m = ! 0 ) } , p ( h , b ) { c o n s t y = { } ; b & 4 & & ( y . c o n t e n t = h [ 2 ] ) , o . $ s e t ( y ) } , i ( h ) { d | | ( A ( o . $ $ . f r a g m e n t , h ) , d = ! 0 ) } , o ( h ) { I ( o . $ $ . f r a g m e n t , h ) , d = ! 1 } , d ( h ) { h & & k ( e ) , h & & k ( t ) , h & & k ( i ) , z ( o ) , n [ 8 ] ( n u l l ) , h & & k ( r ) , h & & k ( a ) , m = ! 1 , E e ( _ ) } } } f u n c t i o n r I ( n ) { l e t e ; r e t u r n { c ( ) { e = v ( " d i v " ) , p ( e , " c l a s s " , " l o a d e r " ) } , m ( t , i ) { w ( t , e , i ) } , p : x , i : x , o : x , d ( t ) { t & & k ( e ) } } } f u n c t i o n a I ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d ; c o n s t m = [ r I , o I ] , _ = [ ] ; f u n c t i o n h ( b , y ) { r e t u r n b [ 1 ] ? 0 : 1 } r e t u r n f = h ( n ) , c = _ [ f ] = m [ 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 = E ( ) , l = v ( " d i v " ) , o = U ( n [ 3 ] ) , r = E ( ) , a = v ( " d i v " ) , u = v ( " d i v " ) , c . c ( ) , p ( i , " c l a s s " , " b r e a d c r u m b - i t e m " ) , p ( l , " c l a s s " , " b r e a d c r u m b - i t e m " ) , p ( t , " c l a s s " , " b r e a d c r u m b s " ) , p ( e , " c l a s s " , " p a g e - h e a d e r " ) , p ( u , " c l a s s " , " p a n e l " ) , p ( a , " c l a s s " , " w r a p p e r " ) } , m ( b , y ) { w ( b , e , y ) , g ( e , t ) , g ( t , i ) , g ( t , s ) , g ( t , l ) , g ( l , o ) , w ( b , r , y ) , w ( b , a , y ) , g ( a , u ) , _ [ f ] . m ( u , n u l l ) , d = ! 0 } , p ( b , y ) { ( ! d | | y & 8 ) & & s e ( o , b [ 3 ] ) ; l e t S = f ; f = h ( b ) , f = = = S ? _ [ f ] . p ( b , y ) : ( a e ( ) , I ( _ [ S ] , 1 , 1 , ( ) = > { _ [ S ] = n u l l } ) , u e ( ) , c = _ [ f ] , c ? c . p ( b , y ) : ( c = _ [ f ] = m [ f ] ( b ) , c . c ( ) ) , A ( c , 1 ) , c . m ( u , n u l l ) ) } , i ( b ) { d | | ( A ( c ) , d = ! 0 ) } , o ( b ) { I ( c ) , d = ! 1 } , d ( b ) { b & & k ( e ) , b & & k ( r ) , b & & k ( a ) , _ [ f ] . d ( ) } } } f u n c t i o n u I ( n ) { l e t e , t , i , s ; r e t u r n e = n e w C i ( { } ) , i = n e w w n ( { p r o p s : { $ $ s l o t s : { d e f a u l t : [ a I ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) , t = E ( ) , H ( i . $ $ . f r a g m e n t ) } , m ( l , o ) { V ( e , l , o ) , w ( l , t , o ) , V ( i , l , o ) , s = ! 0 } , p ( l , [ o ] ) { c o n s t r = { } ; o & 8 2 0 7 & & ( r . $ $ s c o p e = { d i r t y : o , c t x : l } ) , i . $ s e t ( r ) } , i ( l ) { s | | ( 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 ) { z ( e , l ) , l & & k ( t ) , z ( i , l ) } } } f u n c t i o n f I ( n , e , t ) { l e t i , s ; J e ( n , T t , b = > t ( 3 , s = b ) ) , s n ( T 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 _ " + B . r a n d o m S t r i n g ( 5 ) ; l e t o , r = [ ] , a = ! 1 ; u ( ) ; a s y n c f u n c t i o n u ( ) { t ( 1 , a = ! 0 ) ; t r y { t ( 6 , r = a w a i t c e . c o l l e c t i o n s . g e t F u l l L i s t ( 1 0 0 , { $ c a n c e l K e y : l , s o r t : " u p d a t e d " } ) ) ; f o r ( l e t b o f r ) d e l e t e b . c r e a t e d , d e l e t e b . u p d a t e d } c a t c h ( b ) { c e . e r r o r ( b ) } t ( 1 , a = ! 1 ) } f u n c t i o n f ( ) { B . 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 ( ) { B . c o p y T o C l i p b o a r d ( i ) , k o ( " T h e c o n f i g u r a t i o n w a s c o p i e d t o y o u r c l i p b o a r d ! " , 3 e 3 ) } c o n s t d = ( ) = > c ( ) ; f u n c t i o n m ( b ) { t e [ b ? " u n s h i f t " : " p u s h " ] ( ( ) = > { o = b , t ( 0 , o ) } ) } c o n s t _ = b = > { i f ( b . c t r l K e y & & b . c o d e = = = " K e y A " ) { b . 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 ( ) , S = d o c u m e n t . c r e a t e R a n g e ( ) ; S . 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 ( S ) } } , h = ( ) = > 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 , m , _ , h ] } c l a s s c I e x t e n d s g e { c o n s t r u c t o r ( e ) { s u p e r ( ) , _ e ( t h i s , e , f I , u I , m e , { } ) } } f u n c t i o n i _ ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 1 4 ] = e [ t ] , i } f u n c t i o n s _ ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 1 7 ] = e [ t ] [ 0 ] , i [ 1 8 ] = e [ t ] [ 1 ] , i } f u n c t i o n l _ ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 1 4 ] = e [ t ] , i } f u n c t i o n o _ ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 1 7 ] = e [ t ] [ 0 ] , i [ 2 3 ] = e [ t ] [ 1 ] , i } f u n c t i o n r _ ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 1 4 ] = e [ t ] , i } f u n c t i o n a _ ( n , e , t ) { c o n s t i = n . s l i c e ( ) ; r e t u r n i [ 1 7 ] = e [ t ] [ 0 ] , i [ 1 8 ] = e [ t ] [ 1 ] , i } f u n c t i o n u _ ( 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 I ( n ) { l e t e , t , i , s , l = n [ 1 ] . n a m e + " " , o , r = n [ 9 ] & & f _ ( ) , a = n [ 0 ] . n a m e ! = = n [ 1 ] . n a m e & & c _ ( n ) ; r e t u r n { c ( ) { e = v ( " d i v " ) , r & & r . c ( ) , t = E ( ) , a & & a . c ( ) , i = E ( ) , s = v ( " s t r o n g " ) , o = U ( l ) , p ( s , " c l a s s " , " t x t " ) , p ( 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 ) { w ( u , e , f ) , r & & r . m ( e , n u l l ) , g ( e , t ) , a & & a . m ( e , n u l l ) , g ( e , i ) , g ( e , s ) , g ( s , o ) } , p ( u , f ) { u [ 9 ] ? r | | ( r = f _ ( ) , 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 = c _ ( u ) , a . c ( ) , a . m ( e , i ) ) : a & & ( a . d ( 1 ) , a = n u l l ) , f [ 0 ] & 2 & & l ! = = ( l = u [ 1 ] . n a m e + " " ) & & s e ( o , l ) } , d ( u ) { u & & k ( e ) , r & & r . d ( ) , a & & a . d ( ) } } } f u n c t i o n p I ( n ) { v a r o ; l e t e , t , i , s = ( ( o = n [ 0 ] ) = = n u l l ? v o i d 0 : o . n a m e ) + " " , l ; r e t u r n { c ( ) { e = 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 = E ( ) , i = v ( " s t r o n g " ) , l = U ( s ) , p ( 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 ) { w ( r , e , a ) , w ( r , t , a ) , w ( r , i , a ) , g ( i , l ) } , p ( r , a ) { v a r u ; a [ 0 ] & 1 & & s ! = = ( s = ( ( u = r [ 0 ] ) = = n u l l ? v o i
2023-06-11 04:32:41 +08:00
< th width = "10%" class = "svelte-lmkr38" > Old < / t h >
2023-07-22 23:50:40 +08:00
< th width = "10%" class = "svelte-lmkr38" > New < / t h > < / t r > ` , l = E ( ) , o = v ( " t b o d y " ) ; f o r ( l e t $ = 0 ; $ < _ . l e n g t h ; $ + = 1 ) _ [ $ ] . c ( ) ; r = E ( ) , h & & h . c ( ) , a = E ( ) ; f o r ( l e t $ = 0 ; $ < y . l e n g t h ; $ + = 1 ) y [ $ ] . c ( ) ; u = E ( ) ; f o r ( l e t $ = 0 ; $ < C . l e n g t h ; $ + = 1 ) C [ $ ] . c ( ) ; p ( e , " c l a s s " , " s e c t i o n - t i t l e " ) , p ( i , " c l a s s " , " t a b l e c o l l e c t i o n s - d i f f - t a b l e m - b - b a s e s v e l t e - l m k r 3 8 " ) } , m ( $ , T ) { w ( $ , e , T ) , d . m ( e , n u l l ) , w ( $ , t , T ) , w ( $ , i , T ) , g ( i , s ) , g ( i , l ) , g ( i , o ) ; f o r ( l e t M = 0 ; M < _ . l e n g t h ; M + = 1 ) _ [ M ] & & _ [ M ] . m ( o , n u l l ) ; g ( o , r ) , h & & h . m ( o , n u l l ) , g ( o , a ) ; f o r ( l e t M = 0 ; M < y . l e n g t h ; M + = 1 ) y [ M ] & & y [ M ] . m ( o , n u l l ) ; g ( o , u ) ; f o r ( l e t M = 0 ; M < C . l e n g t h ; M + = 1 ) C [ M ] & & C [ M ] . m ( o , n u l l ) } , p ( $ , T ) { i f ( c = = = ( c = f ( $ ) ) & & d ? d . p ( $ , T ) : ( d . d ( 1 ) , d = c ( $ ) , d & & ( d . c ( ) , d . m ( e , n u l l ) ) ) , T [ 0 ] & 7 2 0 3 ) { m = $ [ 1 1 ] ; l e t M ; f o r ( M = 0 ; M < m . l e n g t h ; M + = 1 ) { c o n s t O = u _ ( $ , m , M ) ; _ [ M ] ? _ [ M ] . p ( O , T ) : ( _ [ M ] = d _ ( O ) , _ [ M ] . c ( ) , _ [ M ] . m ( o , r ) ) } f o r ( ; M < _ . l e n g t h ; M + = 1 ) _ [ M ] . d ( 1 ) ; _ . l e n g t h = m . l e n g t h } i f ( $ [ 2 ] | | $ [ 5 ] ? h ? h . p ( $ , T ) : ( h = p _ ( $ ) , h . c ( ) , h . m ( o , a ) ) : h & & ( h . d ( 1 ) , h = n u l l ) , T [ 0 ] & 4 2 4 8 ) { b = $ [ 7 ] ; l e t M ; f o r ( M = 0 ; M < b . l e n g t h ; M + = 1 ) { c o n s t O = l _ ( $ , b , M ) ; y [ M ] ? y [ M ] . p ( O , T ) : ( y [ M ] = b _ ( O ) , y [ M ] . c ( ) , y [ M ] . m ( o , u ) ) } f o r ( ; M < y . l e n g t h ; M + = 1 ) y [ M ] . d ( 1 ) ; y . l e n g t h = b . l e n g t h } i f ( T [ 0 ] & 4 3 5 2 ) { S = $ [ 8 ] ; l e t M ; f o r ( M = 0 ; M < S . l e n g t h ; M + = 1 ) { c o n s t O = i _ ( $ , S , M ) ; C [ M ] ? C [ M ] . p ( O , T ) : ( C [ M ] = y _ ( O ) , C [ M ] . c ( ) , C [ M ] . m ( o , n u l l ) ) } f o r ( ; M < C . l e n g t h ; M + = 1 ) C [ M ] . d ( 1 ) ; C . l e n g t h = S . l e n g t h } } , i : x , o : x , d ( $ ) { $ & & k ( e ) , d . d ( ) , $ & & k ( t ) , $ & & k ( i ) , m t ( _ , $ ) , h & & h . d ( ) , m t ( y , $ ) , m t ( C , $ ) } } } f u n c t i o n z 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 g 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 _ I ( n , e , t ) { l e t i , s , l , { c o l l e c t i o n A : o = n e w y n } = e , { c o l l e c t i o n B : r = n e w y n } = e , { d e l e t e M i s s i n g : a = ! 1 } = e , u = [ ] , f = [ ] , c = [ ] , d = [ ] , m = [ ] ; c o n s t _ = O b j e c t . k e y s ( n e w y 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 h ( ) { 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 ( S = > y . i d = = S . i d ) ) ) ) } f u n c t i o n b ( y ) { r e t u r n t y p e o f y > " u " ? " " : B . 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 " ) & & h ( ) , 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 ( S = > y . i d = = S . 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 ( S = > S . i d = = y . i d ) ) ) , n . $ $ . d i r t y [ 0 ] & 2 4 & & t ( 8 , m = f . f i l t e r ( y = > ! u . f i n d ( S = > S . i d = = y . i d ) ) ) , n . $ $ . d i r t y [ 0 ] & 7 & & t ( 9 , l = B . 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 , m , l , s , _ , b ] } c l a s s g I e x t e n d s g e { c o n s t r u c t o r ( e ) { s u p e r ( ) , _ e ( t h i s , e , _ I , h I , m 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 k _ ( 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 w _ ( n ) { l e t e , t ; r e t u r n e = n e w g I ( { p r o p s : { c o l l e c t i o n A : n [ 1 7 ] . o l d , c o l l e c t i o n B : n [ 1 7 ] . n e w , d e l e t e M i s s i n g : n [ 3 ] } } ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( i , s ) { V ( e , i , s ) , t = ! 0 } , p ( i , s ) { c o n s t l = { } ; s & 4 & & ( l . c o l l e c t i o n A = i [ 1 7 ] . o l d ) , s & 4 & & ( l . c o l l e c t i o n B = i [ 1 7 ] . n e w ) , s & 8 & & ( l . d e l e t e M i s s i n g = i [ 3 ] ) , e . $ s e t ( l ) } , i ( i ) { t | | ( 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 ) { z ( e , i ) } } } f u n c t i o n b I ( n ) { l e t e , t , i = n [ 2 ] , s = [ ] ; f o r ( l e t o = 0 ; o < i . l e n g t h ; o + = 1 ) s [ o ] = w _ ( k _ ( 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 = y 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 ) ; w ( 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 = k _ ( o , i , a ) ; s [ a ] ? ( s [ a ] . p ( u , r ) , A ( s [ a ] , 1 ) ) : ( s [ a ] = w _ ( 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 ( a e ( ) , a = i . l e n g t h ; a < s . l e n g t h ; a + = 1 ) l ( a ) ; u e ( ) } } , i ( o ) { i f ( ! t ) { f o r ( l e t r = 0 ; r < i . l e n g t h ; r + = 1 ) 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 ) { m t ( s , o ) , o & & k ( e ) } } } f u n c t i o n v I ( 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 " , p ( e , " c l a s s " , " c e n t e r t x t - b r e a k " ) } , m ( t , i ) { w ( t , e , i ) } , p : x , d ( t ) { t & & k ( e ) } } } f u n c t i o n y I ( 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 = U ( " C l o s e " ) , i = E ( ) , 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 " , p ( e , " t y p e " , " b u t t o n " ) , p ( e , " c l a s s " , " b t n b t n - t
2023-06-11 04:32:41 +08:00
- $ { $ . join ( `
2023-07-27 20:57:20 +08:00
- ` )} ` , ( ) => { _ ( ) } ) : _ ( ) } async function _ ( ) { if ( ! u ) { t ( 4 , u = ! 0 ) ; try { await ce . collections . import ( o , a ) , zt ( "Successfully imported collections configuration." ) , i ( "submit" ) } catch ( $ ) { ce . error ( $ ) } t ( 4 , u = ! 1 ) , c ( ) } } const h = ( ) => m ( ) , b = ( ) => ! u ; function y ( $ ) { te [ $ ? "unshift" : "push" ] ( ( ) => { s = $ , t ( 1 , s ) } ) } function S ( $ ) { Ne . call ( this , n , $ ) } function C ( $ ) { Ne . call ( this , n , $ ) } return n . $$ . update = ( ) => { n . $$ . dirty & 384 && Array . isArray ( l ) && Array . isArray ( o ) && d ( ) } , [ c , s , r , a , u , m , f , l , o , h , b , y , S , C ] } class SI extends ge { constructor ( e ) { super ( ) , _e ( this , e , wI , kI , me , { show : 6 , hide : 0 } ) } get show ( ) { return this . $$ . ctx [ 6 ] } get hide ( ) { return this . $$ . ctx [ 0 ] } } function S _ ( n , e , t ) { const i = n . slice ( ) ; return i [ 32 ] = e [ t ] , i } function $ _ ( n , e , t ) { const i = n . slice ( ) ; return i [ 35 ] = e [ t ] , i } function C _ ( n , e , t ) { const i = n . slice ( ) ; return i [ 32 ] = e [ t ] , i } function $I ( n ) { let e , t , i , s , l , o , r , a , u , f , c , d , m , _ , h , b , y , S , C , $ , T , M , O ; a = new pe ( { props : { class : "form-field " + ( n [ 6 ] ? "" : "field-error" ) , name : "collections" , $$slots : { default : [ TI , ( { uniqueId : R } ) => ( { 40 : R } ) , ( { uniqueId : R } ) => [ 0 , R ? 512 : 0 ] ] } , $$scope : { ctx : n } } } ) ; let D = ! 1 , L = n [ 6 ] && n [ 1 ] . length && ! n [ 7 ] && M _ ( ) , P = n [ 6 ] && n [ 1 ] . length && n [ 7 ] && O _ ( n ) , N = n [ 13 ] . length && j _ ( n ) , F = ! ! n [ 0 ] && V _ ( n ) ; return { c ( ) { e = v ( "input" ) , t = E ( ) , i = v ( "div" ) , s = v ( "p" ) , l = U ( ` Paste below the collections configuration you want to import or
2023-07-22 23:50:40 +08:00
` ),o=v("button"),o.innerHTML='<span class="txt">Load from JSON file</span>',r=E(),H(a. $ $ .fragment),u=E(),f=E(),L&&L.c(),c=E(),P&&P.c(),d=E(),N&&N.c(),m=E(),_=v("div"),F&&F.c(),h=E(),b=v("div"),y=E(),S=v("button"),C=v("span"),C.textContent="Review",p(e,"type","file"),p(e,"class","hidden"),p(e,"accept",".json"),p(o,"class","btn btn-outline btn-sm m-l-5"),Q(o,"btn-loading",n[12]),p(i,"class","content txt-xl m-b-base"),p(b,"class","flex-fill"),p(C,"class","txt"),p(S,"type","button"),p(S,"class","btn btn-expanded btn-warning m-l-auto"),S.disabled= $ =!n[14],p(_,"class","flex m-t-base")},m(R,q){w(R,e,q),n[19](e),w(R,t,q),w(R,i,q),g(i,s),g(s,l),g(s,o),w(R,r,q),V(a,R,q),w(R,u,q),w(R,f,q),L&&L.m(R,q),w(R,c,q),P&&P.m(R,q),w(R,d,q),N&&N.m(R,q),w(R,m,q),w(R,_,q),F&&F.m(_,null),g(_,h),g(_,b),g(_,y),g(_,S),g(S,C),T=!0,M||(O=[J(e,"change",n[20]),J(o,"click",n[21]),J(S,"click",n[26])],M=!0)},p(R,q){(!T||q[0]&4096)&&Q(o,"btn-loading",R[12]);const j={};q[0]&64&&(j.class="form-field "+(R[6]?"":"field-error")),q[0]&65|q[1]&1536&&(j. $ $ scope={dirty:q,ctx:R}),a. $ set(j),R[6]&&R[1].length&&!R[7]?L||(L=M_(),L.c(),L.m(c.parentNode,c)):L&&(L.d(1),L=null),R[6]&&R[1].length&&R[7]?P?P.p(R,q):(P=O_(R),P.c(),P.m(d.parentNode,d)):P&&(P.d(1),P=null),R[13].length?N?N.p(R,q):(N=j_(R),N.c(),N.m(m.parentNode,m)):N&&(N.d(1),N=null),R[0]?F?F.p(R,q):(F=V_(R),F.c(),F.m(_,h)):F&&(F.d(1),F=null),(!T||q[0]&16384&& $ !==( $ =!R[14]))&&(S.disabled= $ )},i(R){T||(A(a. $ $ .fragment,R),A(D),T=!0)},o(R){I(a. $ $ .fragment,R),I(D),T=!1},d(R){R&&k(e),n[19](null),R&&k(t),R&&k(i),R&&k(r),z(a,R),R&&k(u),R&&k(f),L&&L.d(R),R&&k(c),P&&P.d(R),R&&k(d),N&&N.d(R),R&&k(m),R&&k(_),F&&F.d(),M=!1,Ee(O)}}}function CI(n){let e;return{c(){e=v("div"),p(e,"class","loader")},m(t,i){w(t,e,i)},p:x,i:x,o:x,d(t){t&&k(e)}}}function T_(n){let e;return{c(){e=v("div"),e.textContent="Invalid collections configuration.",p(e,"class","help-block help-block-error")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function TI(n){let e,t,i,s,l,o,r,a,u,f,c=!!n[0]&&!n[6]&&T_();return{c(){e=v("label"),t=U("Collections"),s=E(),l=v("textarea"),r=E(),c&&c.c(),a=ye(),p(e,"for",i=n[40]),p(e,"class","p-b-10"),p(l,"id",o=n[40]),p(l,"class","code"),p(l,"spellcheck","false"),p(l,"rows","15"),l.required=!0},m(d,m){w(d,e,m),g(e,t),w(d,s,m),w(d,l,m),re(l,n[0]),w(d,r,m),c&&c.m(d,m),w(d,a,m),u||(f=J(l,"input",n[22]),u=!0)},p(d,m){m[1]&512&&i!==(i=d[40])&&p(e,"for",i),m[1]&512&&o!==(o=d[40])&&p(l,"id",o),m[0]&1&&re(l,d[0]),d[0]&&!d[6]?c||(c=T_(),c.c(),c.m(a.parentNode,a)):c&&(c.d(1),c=null)},d(d){d&&k(e),d&&k(s),d&&k(l),d&&k(r),c&&c.d(d),d&&k(a),u=!1,f()}}}function M_(n){let e;return{c(){e=v("div"),e.innerHTML= ` < div class = "icon" > < i class = "ri-information-line" > < / i > < / d i v >
< div class = "content" > < string > Your collections configuration is already up - to - date ! < / s t r i n g > < / d i v > ` , p ( e , " c l a s s " , " a l e r t a l e r t - i n f o " ) } , m ( t , i ) { w ( t , e , i ) } , d ( t ) { t & & k ( e ) } } } f u n c t i o n O _ ( n ) { l e t e , t , i , s , l , o = n [ 9 ] . l e n g t h & & E _ ( n ) , r = n [ 4 ] . l e n g t h & & I _ ( n ) , a = n [ 8 ] . l e n g t h & & F _ ( 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 = E ( ) , i = v ( " d i v " ) , o & & o . c ( ) , s = E ( ) , r & & r . c ( ) , l = E ( ) , a & & a . c ( ) , p ( e , " c l a s s " , " s e c t i o n - t i t l e " ) , p ( i , " c l a s s " , " l i s t " ) } , m ( u , f ) { w ( u , e , f ) , w ( u , t , f ) , w ( u , i , f ) , o & & o . m ( i , n u l l ) , g ( i , s ) , r & & r . m ( i , n u l l ) , g ( 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 = E _ ( 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 = I _ ( 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 = F _ ( u ) , a . c ( ) , a . m ( i , n u l l ) ) : a & & ( a . d ( 1 ) , a = n u l l ) } , d ( u ) { u & & k ( e ) , u & & k ( t ) , u & & k ( i ) , o & & o . d ( ) , r & & r . d ( ) , a & & a . d ( ) } } } f u n c t i o n E _ ( 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 = C _ ( n , s , o ) , a = l ( r ) ; t . s e t ( a , e [ o ] = A _ ( 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 = y 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 ) ; w ( o , i , r ) } , p ( o , r ) { r [ 0 ] & 5 1 2 & & ( s = o [ 9 ] , e = b t ( e , r , l , 1 , o , s , t , i . p a r e n t N o d e , a s , A _ , i , C _ ) ) } , 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 & & k ( i ) } } } f u n c t i o n D _ ( 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 = U ( " ( " ) , s = U ( i ) , l = U ( " ) " ) , p ( e , " c l a s s " , " t x t - h i n t " ) } , m ( o , r ) { w ( o , e , r ) , g ( e , t ) , g ( e , s ) , g ( e , l ) } , p ( o , r ) { r [ 0 ] & 5 1 2 & & i ! = = ( i = o [ 3 2 ] . i d + " " ) & & s e ( s , i ) } , d ( o ) { o & & k ( e ) } } } f u n c t i o n A _ ( 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 & & D _ ( 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 = E ( ) , l = v ( " s t r o n g " ) , r = U ( o ) , a = E ( ) , f & & f . c ( ) , u = E ( ) , p ( 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 " ) , p ( 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 ) { w ( c , t , d ) , g ( t , i ) , g ( t , s ) , g ( t , l ) , g ( l , r ) , g ( t , a ) , f & & f . m ( t , n u l l ) , g ( t , u ) } , p ( c , d ) { e = c , d [ 0 ] & 5 1 2 & & o ! = = ( o = e [ 3 2 ] . n a m e + " " ) & & s e ( r , o ) , e [ 3 2 ] . i d ? f ? f . p ( e , d ) : ( f = D _ ( e ) , f . c ( ) , f . m ( t , u ) ) : f & & ( f . d ( 1 ) , f = n u l l ) } , d ( c ) { c & & k ( t ) , f & & f . d ( ) } } } f u n c t i o n I _ ( 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 = $ _ ( n , s , o ) , a = l ( r ) ; t . s e t ( a , e [ o ] = N _ ( 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 = y 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 ) ; w ( o , i , r ) } , p ( o , r ) { r [ 0 ] & 1 6 & & ( s = o [ 4 ] , e = b t ( e , r , l , 1 , o , s , t , i . p a r e n t N o d e , a s , N _ , 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 & & k ( i ) } } } f u n c t i o n L _ ( 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 = U ( t ) , s = E ( ) , l = v ( " i " ) , p ( 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 " ) , p ( 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 ) { w ( o , e , r ) , g ( e , i ) , w ( o , s , r ) , w ( o , l , r ) } , p ( o , r ) { r [ 0 ] & 1 6 & & t ! = = ( t = o [ 3 5 ] . o l d . n a m e + " " ) & & s e ( i , t ) } , d ( o ) { o & & k ( e ) , o & & k ( s ) , o & & k ( l ) } } } f u n c t i o n P _ ( 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 = U ( " ( " ) , s = U ( i ) , l = U ( " ) " ) , p ( e , " c l a s s " , " t x t - h i n t " ) } , m ( o , r ) { w ( o , e , r ) , g ( e , t ) , g ( e , s ) , g ( e , l ) } , p ( o , r ) { r [ 0 ] & 1 6 & & i ! = = ( i = o [ 3 5 ] . n e w . i d + " " ) & & s e ( s , i ) } , d ( o ) { o & & k ( e ) } } } f u n c t i o n N _ ( 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 & & L _ ( e ) , m = e [ 3 5 ] . n e w . i d & & P _ ( 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 = E ( ) , l = v ( " d i v " ) , d & & d . c ( ) , o = E ( ) , r = v ( " s t r o n g " ) , u = U ( a ) , f = E ( ) , m & & m . c ( ) , c = E ( ) , p ( 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 " ) , p ( l , " c l a s s " , " i n l i n e - f l e x f l e x - g a p - 5 " ) , p ( 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 ) { w ( _ , t , h ) , g ( t , i ) , g ( t , s ) , g ( t , l ) , d & & d . m ( l , n u l l ) , g ( l , o ) , g ( l , r ) , g ( r , u ) , g ( l , f ) , m & & m . m ( l , n u l l ) , g ( t , c ) } , p ( _ , h ) { e = _ , e [ 3 5 ] . o l d . n a m e ! = = e [ 3 5 ] . n e w . n a m e ? d ? d . p ( e , h ) : ( d = L _ ( e ) , d . c ( ) , d . m ( l , o ) ) : d & & ( d . d ( 1 ) , d = n u l l ) , h [ 0 ] & 1 6 & & a ! = = ( a = e [ 3 5 ] . n e w . n a m e + " " ) & & s e ( u , a ) , e [ 3 5 ] . n e w . i d ? m ? m . p ( e , h ) : ( m = P _ ( e ) , m . c ( ) , m . m ( l , n u l l ) ) : m & & ( m . d ( 1 ) , m = n u l l ) } , d ( _ ) { _ & & k ( t ) , d & & d . d ( ) , m & & m . d ( ) } } } f u n c t i o n F _ ( 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 = S _ ( n , s , o ) , a = l ( r ) ; t . s e t ( a , e [ o ] = q _ ( 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 = y 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 ) ; w ( o , i , r ) } , p ( o , r ) { r [ 0 ] & 2 5 6 & & ( s = o [ 8 ] , e = b t ( e , r , l , 1 , o , s , t , i . p a r e n t N o d e , a s , q _ , 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 & & k ( i ) } } } f u n c t i o n R _ ( 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 = U ( " ( " ) , s = U ( i ) , l = U ( " ) " ) , p ( e , " c l a s s " , " t x t - h i n t " ) } , m ( o , r ) { w ( o , e , r
2023-06-11 04:32:41 +08:00
imported with different IDs . You can replace them in the import if you want
2023-07-27 20:57:20 +08:00
to . < / s t r i n g > ` , l = E ( ) , 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 > ' , p ( t , " c l a s s " , " i c o n " ) , p ( s , " c l a s s " , " c o n t e n t " ) , p ( o , " t y p e " , " b u t t o n " ) , p ( 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 " ) , p ( 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 ) { w ( u , e , f ) , g ( e , t ) , g ( e , i ) , g ( e , s ) , g ( e , l ) , g ( e , o ) , r | | ( a = J ( o , " c l i c k " , n [ 2 4 ] ) , r = ! 0 ) } , p : x , d ( u ) { u & & k ( e ) , r = ! 1 , a ( ) } } } f u n c t i o n V _ ( 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 > ' , p ( e , " t y p e " , " b u t t o n " ) , p ( 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 ) { w ( s , e , l ) , t | | ( i = J ( e , " c l i c k " , n [ 2 5 ] ) , t = ! 0 ) } , p : x , d ( s ) { s & & k ( e ) , t = ! 1 , i ( ) } } } f u n c t i o n M I ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d ; c o n s t m = [ C I , $ I ] , _ = [ ] ; f u n c t i o n h ( b , y ) { r e t u r n b [ 5 ] ? 0 : 1 } r e t u r n f = h ( n ) , c = _ [ f ] = m [ 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 = E ( ) , l = v ( " d i v " ) , o = U ( n [ 1 5 ] ) , r = E ( ) , a = v ( " d i v " ) , u = v ( " d i v " ) , c . c ( ) , p ( i , " c l a s s " , " b r e a d c r u m b - i t e m " ) , p ( l , " c l a s s " , " b r e a d c r u m b - i t e m " ) , p ( t , " c l a s s " , " b r e a d c r u m b s " ) , p ( e , " c l a s s " , " p a g e - h e a d e r " ) , p ( u , " c l a s s " , " p a n e l " ) , p ( a , " c l a s s " , " w r a p p e r " ) } , m ( b , y ) { w ( b , e , y ) , g ( e , t ) , g ( t , i ) , g ( t , s ) , g ( t , l ) , g ( l , o ) , w ( b , r , y ) , w ( b , a , y ) , g ( a , u ) , _ [ f ] . m ( u , n u l l ) , d = ! 0 } , p ( b , y ) { ( ! d | | y [ 0 ] & 3 2 7 6 8 ) & & s e ( o , b [ 1 5 ] ) ; l e t S = f ; f = h ( b ) , f = = = S ? _ [ f ] . p ( b , y ) : ( a e ( ) , I ( _ [ S ] , 1 , 1 , ( ) = > { _ [ S ] = n u l l } ) , u e ( ) , c = _ [ f ] , c ? c . p ( b , y ) : ( c = _ [ f ] = m [ f ] ( b ) , c . c ( ) ) , A ( c , 1 ) , c . m ( u , n u l l ) ) } , i ( b ) { d | | ( A ( c ) , d = ! 0 ) } , o ( b ) { I ( c ) , d = ! 1 } , d ( b ) { b & & k ( e ) , b & & k ( r ) , b & & k ( a ) , _ [ f ] . d ( ) } } } f u n c t i o n O I ( n ) { l e t e , t , i , s , l , o ; e = n e w C i ( { } ) , i = n e w w n ( { p r o p s : { $ $ s l o t s : { d e f a u l t : [ M I ] } , $ $ s c o p e : { c t x : n } } } ) ; l e t r = { } ; r e t u r n l = n e w S I ( { p r o p s : r } ) , n [ 2 7 ] ( l ) , l . $ o n ( " s u b m i t " , n [ 2 8 ] ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) , t = E ( ) , H ( i . $ $ . f r a g m e n t ) , s = E ( ) , H ( l . $ $ . f r a g m e n t ) } , m ( a , u ) { V ( e , a , u ) , w ( a , t , u ) , V ( i , a , u ) , w ( a , s , u ) , V ( l , a , u ) , o = ! 0 } , p ( a , u ) { c o n s t f = { } ; u [ 0 ] & 6 5 5 3 5 | u [ 1 ] & 1 0 2 4 & & ( f . $ $ s c o p e = { d i r t y : u , c t x : a } ) , i . $ s e t ( f ) ; c o n s t 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 ) { z ( e , a ) , a & & k ( t ) , z ( i , a ) , a & & k ( s ) , n [ 2 7 ] ( n u l l ) , z ( l , a ) } } } f u n c t i o n E I ( n , e , t ) { l e t i , s , l , o , r , a , u ; J e ( n , T t , W = > t ( 1 5 , u = W ) ) , s n ( T 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 = " " , m = ! 1 , _ = [ ] , h = [ ] , b = ! 0 , y = [ ] , S = ! 1 ; C ( ) ; a s y n c f u n c t i o n C ( ) { t ( 5 , S = ! 0 ) ; t r y { t ( 2 , h = a w a i t c e . c o l l e c t i o n s . g e t F u l l L i s t ( 2 0 0 ) ) ; f o r ( l e t W o f h ) d e l e t e W . c r e a t e d , d e l e t e W . u p d a t e d } c a t c h ( W ) { c e . e r r o r ( W ) } t ( 5 , S = ! 1 ) } f u n c t i o n $ ( ) { i f ( t ( 4 , y = [ ] ) , ! ! i ) f o r ( l e t W o f _ ) { c o n s t l e = B . f i n d B y K e y ( h , " i d " , W . i d ) ; ! ( l e ! = n u l l & & l e . i d ) | | ! B . h a s C o l l e c t i o n C h a n g e s ( l e , W , b ) | | y . p u s h ( { n e w : W , o l d : l e } ) } } f u n c t i o n T ( ) { t ( 1 , _ = [ ] ) ; t r y { t ( 1 , _ = 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 ( _ ) ? t ( 1 , _ = B . f i l t e r D u p l i c a t e s B y K e y ( _ ) ) : t ( 1 , _ = [ ] ) ; f o r ( l e t W o f _ ) d e l e t e W . c r e a t e d , d e l e t e W . u p d a t e d , W . s c h e m a = B . f i l t e r D u p l i c a t e s B y K e y ( W . s c h e m a ) } f u n c t i o n M ( ) { v a r W , l e ; f o r ( l e t e e o f _ ) { c o n s t i e = B . f i n d B y K e y ( h , " n a m e " , e e . n a m e ) | | B . f i n d B y K e y ( h , " i d " , e e . i d ) ; i f ( ! i e ) c o n t i n u e ; c o n s t b e = e e . i d , S e = i e . i d ; e e . i d = S e ; c o n s t V e = A r r a y . i s A r r a y ( i e . s c h e m a ) ? i e . s c h e m a : [ ] , B e = A r r a y . i s A r r a y ( e e . s c h e m a ) ? e e . s c h e m a : [ ] ; f o r ( c o n s t k e o f B e ) { c o n s t T e = B . f i n d B y K e y ( V e , " n a m e " , k e . n a m e ) ; T e & & T e . i d & & ( k e . i d = T e . i d ) } f o r ( l e t k e o f _ ) i f ( A r r a y . i s A r r a y ( k e . s c h e m a ) ) f o r ( l e t T e o f k e . s c h e m a ) ( W = T e . o p t i o n s ) ! = n u l l & & W . c o l l e c t i o n I d & & ( ( l e = T e . o p t i o n s ) = = n u l l ? v o i d 0 : l e . c o l l e c t i o n I d ) = = = b e & & ( T e . o p t i o n s . c o l l e c t i o n I d = S e ) } t ( 0 , d = J S O N . s t r i n g i f y ( _ , n u l l , 4 ) ) } f u n c t i o n O ( W ) { t ( 1 2 , m = ! 0 ) ; c o n s t l e = n e w F i l e R e a d e r ; l e . o n l o a d = a s y n c e e = > { t ( 1 2 , m = ! 1 ) , t ( 1 0 , f . v a l u e = " " , f ) , t ( 0 , d = e e . t a r g e t . r e s u l t ) , a w a i t f n ( ) , _ . l e n g t h | | ( D s ( " I n v a l i d c o l l e c t i o n s c o n f i g u r a t i o n . " ) , D ( ) ) } , l e . o n e r r o r = e e = > { c o n s o l e . w a r n ( e e ) , D s ( " F a i l e d t o l o a d t h e i m p o r t e d J S O N . " ) , t ( 1 2 , m = ! 1 ) , t ( 1 0 , f . v a l u e = " " , f ) } , l e . r e a d A s T e x t ( W ) } f u n c t i o n D ( ) { t ( 0 , d = " " ) , t ( 1 0 , f . v a l u e = " " , f ) , e n ( { } ) } f u n c t i o n L ( W ) { t e [ W ? " u n s h i f t " : " p u s h " ] ( ( ) = > { f = W , t ( 1 0 , f ) } ) } c o n s t P = ( ) = > { f . f i l e s . l e n g t h & & O ( f . f i l e s [ 0 ] ) } , N = ( ) = > { f . c l i c k ( ) } ; f u n c t i o n F ( ) { d = t h i s . v a l u e , t ( 0 , d ) } f u n c t i o n R ( ) { b = t h i s . c h e c k e d , t ( 3 , b ) } c o n s t q = ( ) = > M ( ) , j = ( ) = > D ( ) , Y = ( ) = > c = = n u l l ? v o i d 0 : c . s h o w ( h , _ , b ) ; f u n c t i o n X ( W ) { t e [ W ? " u n s h i f t " : " p u s h " ] ( ( ) = > { c = W , t ( 1 1 , c ) } ) } c o n s t G = ( ) = > D ( ) ; 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 " & & T ( ) , n . $ $ . d i r t y [ 0 ] & 3 & & t ( 6 , i = ! ! d & & _ . l e n g t h & & _ . l e n g t h = = = _ . f i l t e r ( W = > ! ! W . i d & & ! ! W . n a m e ) . l e n g t h ) , n . $ $ . d i r t y [ 0 ] & 7 8 & & t ( 9 , s = h . f i l t e r ( W = > i & & b & & ! B . f i n d B y K e y ( _ , " i d " , W . i d )
2023-06-11 04:32:41 +08:00
< div class = "content" > < p > Please note that during the backup other concurrent write requests may fail since the
database will be temporary & quot ; locked & quot ; ( this usually happens only during the ZIP generation ) . < / p >
< p class = "txt-bold" > If you are using S3 storage for the collections file upload , you & # 39 ; ll have to backup them
2023-07-27 20:57:20 +08:00
separately since they are not locally stored and will not be included in the final backup ! < / p > < / d i v > ` , t = E ( ) , i = v ( " f o r m " ) , H ( s . $ $ . f r a g m e n t ) , p ( e , " c l a s s " , " a l e r t a l e r t - i n f o " ) , p ( i , " i d " , n [ 4 ] ) , p ( i , " a u t o c o m p l e t e " , " o f f " ) } , m ( a , u ) { w ( a , e , u ) , w ( a , t , u ) , w ( a , i , u ) , V ( s , i , n u l l ) , l = ! 0 , o | | ( r = J ( i , " s u b m i t " , e t ( n [ 5 ] ) ) , o = ! 0 ) } , p ( a , u ) { c o n s t f = { } ; u & 9 8 3 0 8 & & ( f . $ $ s c o p e = { d i r t y : u , c t x : a } ) , s . $ s e t ( f ) } , i ( a ) { l | | ( A ( s . $ $ . f r a g m e n t , a ) , l = ! 0 ) } , o ( a ) { I ( s . $ $ . f r a g m e n t , a ) , l = ! 1 } , d ( a ) { a & & k ( e ) , a & & k ( t ) , a & & k ( i ) , z ( s ) , o = ! 1 , r ( ) } } } f u n c t i o n L I ( 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 = " I n i t i a l i z e n e w b a c k u p " , p ( e , " c l a s s " , " c e n t e r t x t - b r e a k " ) } , m ( t , i ) { w ( t , e , i ) } , p : x , d ( t ) { t & & k ( e ) } } } f u n c t i o n P I ( 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 = v ( " s p a n " ) , t . t e x t C o n t e n t = " C a n c e l " , i = E ( ) , 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 t a r t b a c k u p " , p ( t , " c l a s s " , " t x t " ) , p ( e , " t y p e " , " b u t t o n " ) , p ( e , " c l a s s " , " b t n b t n - t r a n s p a r e n t " ) , e . d i s a b l e d = n [ 3 ] , p ( l , " c l a s s " , " t x t " ) , p ( s , " t y p e " , " s u b m i t " ) , p ( s , " f o r m " , n [ 4 ] ) , p ( s , " c l a s s " , " b t n b t n - e x p a n d e d " ) , s . d i s a b l e d = n [ 3 ] , Q ( s , " b t n - l o a d i n g " , n [ 3 ] ) } , m ( a , u ) { w ( a , e , u ) , g ( e , t ) , w ( a , i , u ) , w ( a , s , u ) , g ( s , l ) , o | | ( r = J ( e , " c l i c k " , n [ 0 ] ) , o = ! 0 ) } , p ( a , u ) { u & 8 & & ( e . d i s a b l e d = a [ 3 ] ) , u & 8 & & ( s . d i s a b l e d = a [ 3 ] ) , u & 8 & & Q ( s , " b t n - l o a d i n g " , a [ 3 ] ) } , d ( a ) { a & & k ( e ) , a & & k ( i ) , a & & k ( s ) , o = ! 1 , r ( ) } } } f u n c t i o n N I ( n ) { l e t e , t , i = { c l a s s : " b a c k u p - c r e a t e - p a n e l " , b e f o r e O p e n : n [ 8 ] , b e f o r e H i d e : n [ 9 ] , p o p u p : ! 0 , $ $ s l o t s : { f o o t e r : [ P I ] , h e a d e r : [ L I ] , d e f a u l t : [ I I ] } , $ $ s c o p e : { c t x : n } } ; r e t u r n e = n e w l n ( { p r o p s : i } ) , n [ 1 0 ] ( e ) , e . $ o n ( " s h o w " , n [ 1 1 ] ) , e . $ o n ( " h i d e " , n [ 1 2 ] ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) } , m ( s , l ) { V ( e , s , l ) , t = ! 0 } , p ( s , [ l ] ) { c o n s t o = { } ; l & 8 & & ( o . b e f o r e O p e n = s [ 8 ] ) , l & 8 & & ( o . b e f o r e H i d e = s [ 9 ] ) , l & 6 5 5 4 8 & & ( o . $ $ s c o p e = { d i r t y : l , c t x : s } ) , e . $ s e t ( o ) } , i ( s ) { t | | ( 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 0 ] ( n u l l ) , z ( e , s ) } } } f u n c t i o n F I ( n , e , t ) { c o n s t i = $ t ( ) , s = " b a c k u p _ c r e a t e _ " + B . r a n d o m S t r i n g ( 5 ) ; l e t l , o = " " , r = ! 1 , a ; f u n c t i o n u ( S ) { e n ( { } ) , t ( 3 , r = ! 1 ) , t ( 2 , o = S | | " " ) , l = = n u l l | | l . s h o w ( ) } f u n c t i o n f ( ) { r e t u r n l = = n u l l ? v o i d 0 : l . h i d e ( ) } a s y n c f u n c t i o n c ( ) { i f ( ! r ) { t ( 3 , r = ! 0 ) , c l e a r T i m e o u t ( a ) , a = s e t T i m e o u t ( ( ) = > { f ( ) } , 1 5 0 0 ) ; t r y { a w a i t c e . b a c k u p s . c r e a t e ( o , { $ c a n c e l K e y : s } ) , t ( 3 , r = ! 1 ) , f ( ) , i ( " s u b m i t " ) , z t ( " S u c c e s s f u l l y g e n e r a t e d n e w b a c k u p . " ) } c a t c h ( S ) { S . i s A b o r t | | c e . e r r o r ( S ) } c l e a r T i m e o u t ( a ) , t ( 3 , r = ! 1 ) } } V o ( ( ) = > { c l e a r T i m e o u t ( a ) } ) ; f u n c t i o n d ( ) { o = t h i s . v a l u e , t ( 2 , o ) } c o n s t m = ( ) = > r ? ( k o ( " A b a c k u p h a s a l r e a d y b e e n s t a r t e d , p l e a s e w a i t . " ) , ! 1 ) : ! 0 , _ = ( ) = > ( r & & k o ( " T h e b a c k u p w a s s t a r t e d b u t m a y t a k e a w h i l e t o c o m p l e t e . Y o u c a n c o m e b a c k l a t e r . " , 4 5 0 0 ) , ! 0 ) ; f u n c t i o n h ( S ) { t e [ S ? " u n s h i f t " : " p u s h " ] ( ( ) = > { l = S , t ( 1 , l ) } ) } f u n c t i o n b ( S ) { N e . c a l l ( t h i s , n , S ) } f u n c t i o n y ( S ) { N e . c a l l ( t h i s , n , S ) } r e t u r n [ f , l , o , r , s , c , u , d , m , _ , h , b , y ] } c l a s s R I e x t e n d s g e { c o n s t r u c t o r ( e ) { s u p e r ( ) , _ e ( t h i s , e , F I , N I , m e , { s h o w : 6 , h i d e : 0 } ) } g e t s h o w ( ) { r e t u r n t h i s . $ $ . c t x [ 6 ] } g e t h i d e ( ) { r e t u r n t h i s . $ $ . c t x [ 0 ] } } f u n c t i o n q I ( 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 = U ( " B a c k u p n a m e " ) , s = E ( ) , l = v ( " i n p u t " ) , p ( e , " f o r " , i = n [ 1 4 ] ) , p ( l , " t y p e " , " t e x t " ) , p ( l , " i d " , o = n [ 1 4 ] ) , l . r e q u i r e d = ! 0 } , m ( u , f ) { w ( u , e , f ) , g ( e , t ) , w ( u , s , f ) , w ( u , l , f ) , r e ( l , n [ 2 ] ) , r | | ( a = J ( l , " i n p u t " , n [ 9 ] ) , r = ! 0 ) } , p ( u , f ) { f & 1 6 3 8 4 & & i ! = = ( i = u [ 1 4 ] ) & & p ( e , " f o r " , i ) , f & 1 6 3 8 4 & & o ! = = ( o = u [ 1 4 ] ) & & p ( l , " i d " , o ) , f & 4 & & l . v a l u e ! = = u [ 2 ] & & r e ( l , u [ 2 ] ) } , d ( u ) { u & & k ( e ) , u & & k ( s ) , u & & k ( l ) , r = ! 1 , a ( ) } } } f u n c t i o n j I ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d , m , _ , h , b ; r e t u r n u = n e w F l ( { p r o p s : { v a l u e : n [ 1 ] } } ) , m = n e w p e ( { p r o p s : { c l a s s : " f o r m - f i e l d r e q u i r e d m - 0 " , n a m e : " n a m e " , $ $ s l o t s : { d e f a u l t : [ q I , ( { u n i q u e I d : y } ) = > ( { 1 4 : y } ) , ( { u n i q u e I d : y } ) = > y ? 1 6 3 8 4 : 0 ] } , $ $ s c o p e : { c t x : 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 = " i c o n " > < i c l a s s = " r i - a l e r t - l i n e " > < / i > < / d i v >
2023-06-11 04:32:41 +08:00
< div class = "content" > < p > Please proceed with caution . < / p >
< p > The restore operation will replace your existing < code > pb _data < / c o d e > w i t h t h e o n e f r o m t h e b a c k u p
and will restart the application process ! < / p >
< p class = "txt-bold" > Backup restore is still experimental and currently works only on UNIX based systems . < / p > < / d i v > ` , t = E ( ) , i = v ( " d i v " ) , s = U ( ` T y p e t h e b a c k u p n a m e
2023-07-22 23:50:40 +08:00
` ),l=v("div"),o=v("span"),r=U(n[1]),a=E(),H(u. $ $ .fragment),f=U( `
2023-07-27 20:57:20 +08:00
to confirm : ` ),c=E(),d=v("form"),H(m. $ $ .fragment),p(e,"class","alert alert-danger"),p(o,"class","txt"),p(l,"class","label"),p(i,"class","content m-b-sm"),p(d,"id",n[6]),p(d,"autocomplete","off")},m(y,S){w(y,e,S),w(y,t,S),w(y,i,S),g(i,s),g(i,l),g(l,o),g(o,r),g(l,a),V(u,l,null),g(i,f),w(y,c,S),w(y,d,S),V(m,d,null),_=!0,h||(b=J(d,"submit",et(n[7])),h=!0)},p(y,S){(!_||S&2)&&se(r,y[1]);const C={};S&2&&(C.value=y[1]),u. $ set(C);const $ ={};S&49156&&( $ . $ $ scope={dirty:S,ctx:y}),m. $ set( $ )},i(y){_||(A(u. $ $ .fragment,y),A(m. $ $ .fragment,y),_=!0)},o(y){I(u. $ $ .fragment,y),I(m. $ $ .fragment,y),_=!1},d(y){y&&k(e),y&&k(t),y&&k(i),z(u),y&&k(c),y&&k(d),z(m),h=!1,b()}}}function VI(n){let e,t,i,s;return{c(){e=v("h4"),t=U("Restore "),i=v("strong"),s=U(n[1]),p(e,"class","center txt-break")},m(l,o){w(l,e,o),g(e,t),g(e,i),g(i,s)},p(l,o){o&2&&se(s,l[1])},d(l){l&&k(e)}}}function zI(n){let e,t,i,s,l,o,r,a;return{c(){e=v("button"),t=U("Cancel"),i=E(),s=v("button"),l=v("span"),l.textContent="Restore backup",p(e,"type","button"),p(e,"class","btn btn-transparent"),e.disabled=n[4],p(l,"class","txt"),p(s,"type","submit"),p(s,"form",n[6]),p(s,"class","btn btn-expanded"),s.disabled=o=!n[5]||n[4],Q(s,"btn-loading",n[4])},m(u,f){w(u,e,f),g(e,t),w(u,i,f),w(u,s,f),g(s,l),r||(a=J(e,"click",n[0]),r=!0)},p(u,f){f&16&&(e.disabled=u[4]),f&48&&o!==(o=!u[5]||u[4])&&(s.disabled=o),f&16&&Q(s,"btn-loading",u[4])},d(u){u&&k(e),u&&k(i),u&&k(s),r=!1,a()}}}function HI(n){let e,t,i={class:"backup-restore-panel",overlayClose:!n[4],escClose:!n[4],beforeHide:n[10],popup:!0, $ $ slots:{footer:[zI],header:[VI],default:[jI]}, $ $ scope:{ctx:n}};return e=new ln({props:i}),n[11](e),e. $ on("show",n[12]),e. $ on("hide",n[13]),{c(){H(e. $ $ .fragment)},m(s,l){V(e,s,l),t=!0},p(s,[l]){const o={};l&16&&(o.overlayClose=!s[4]),l&16&&(o.escClose=!s[4]),l&16&&(o.beforeHide=s[10]),l&32822&&(o. $ $ scope={dirty:l,ctx:s}),e. $ set(o)},i(s){t||(A(e. $ $ .fragment,s),t=!0)},o(s){I(e. $ $ .fragment,s),t=!1},d(s){n[11](null),z(e,s)}}}function BI(n,e,t){let i;const s="backup_restore_"+B.randomString(5);let l,o="",r="",a=!1;function u(y){en({}),t(2,r=""),t(1,o=y),t(4,a=!1),l==null||l.show()}function f(){return l==null?void 0:l.hide()}async function c(){var y;if(!(!i||a)){t(4,a=!0);try{await ce.backups.restore(o),setTimeout(()=>{window.location.reload()},1e3)}catch(S){S!=null&&S.isAbort||(t(4,a=!1),Ds(((y=S.response)==null?void 0:y.message)||S.message))}}}function d(){r=this.value,t(2,r)}const m=()=>!a;function _(y){te[y?"unshift":"push"](()=>{l=y,t(3,l)})}function h(y){Ne.call(this,n,y)}function b(y){Ne.call(this,n,y)}return n. $ $ .update=()=>{n. $ $ .dirty&6&&t(5,i=r!=""&&o==r)},[f,o,r,l,a,i,s,c,u,d,m,_,h,b]}class UI extends ge{constructor(e){super(),_e(this,e,BI,HI,me,{show:8,hide:0})}get show(){return this. $ $ .ctx[8]}get hide(){return this. $ $ .ctx[0]}}function z_(n,e,t){const i=n.slice();return i[22]=e[t],i}function H_(n,e,t){const i=n.slice();return i[19]=e[t],i}function WI(n){let e=[],t=new Map,i,s,l=n[3];const o=a=>a[22].key;for(let a=0;a<l.length;a+=1){let u=z_(n,l,a),f=o(u);t.set(f,e[a]=U_(f,u))}let r=null;return l.length||(r=B_()),{c(){for(let a=0;a<e.length;a+=1)e[a].c();i=ye(),r&&r.c()},m(a,u){for(let f=0;f<e.length;f+=1)e[f]&&e[f].m(a,u);w(a,i,u),r&&r.m(a,u),s=!0},p(a,u){u&876&&(l=a[3],ae(),e=bt(e,u,o,1,a,l,t,i.parentNode,Bt,U_,i,z_),ue(),!l.length&&r?r.p(a,u):l.length?r&&(r.d(1),r=null):(r=B_(),r.c(),r.m(i.parentNode,i)))},i(a){if(!s){for(let u=0;u<l.length;u+=1)A(e[u]);s=!0}},o(a){for(let u=0;u<e.length;u+=1)I(e[u]);s=!1},d(a){for(let u=0;u<e.length;u+=1)e[u].d(a);a&&k(i),r&&r.d(a)}}}function YI(n){let e,t=Array(n[3].length||1),i=[];for(let s=0;s<t.length;s+=1)i[s]=W_(H_(n,t,s));return{c(){for(let s=0;s<i.length;s+=1)i[s].c();e=ye()},m(s,l){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(s,l);w(s,e,l)},p(s,l){if(l&8){t=Array(s[3].length||1);let o;for(o=0;o<t.length;o+=1){const r=H_(s,t,o);i[o]?i[o].p(r,l):(i[o]=W_(),i[o].c(),i[o].m(e.parentNode,e))}for(;o<i.length;o+=1)i[o].d(1);i.length=t.length}},i:x,o:x,d(s){mt(i,s),s&&k(e)}}}function B_(n){let e;return{c(){e=v("div"),e.innerHTML= ` < span class = "txt" > No backups yet . < / s p
` ,p(e,"class","list-item list-item-placeholder svelte-1ulbkf5")},m(t,i){w(t,e,i)},p:x,d(t){t&&k(e)}}}function U_(n,e){let t,i,s,l,o,r=e[22].key+"",a,u,f,c,d=B.formattedFileSize(e[22].size)+"",m,_,h,b,y,S,C, $ ,T,M,O,D,L,P,N,F,R,q,j,Y;function X(){return e[10](e[22])}function G(){return e[11](e[22])}function W(){return e[12](e[22])}return{key:n,first:null,c(){t=v("div"),i=v("i"),s=E(),l=v("div"),o=v("span"),a=U(r),u=E(),f=v("span"),c=U("("),m=U(d),_=U(")"),h=E(),b=v("div"),y=v("button"),S=v("i"), $ =E(),T=v("button"),M=v("i"),D=E(),L=v("button"),P=v("i"),F=E(),p(i,"class","ri-folder-zip-line"),p(o,"class","name backup-name svelte-1ulbkf5"),p(f,"class","size txt-hint txt-nowrap"),p(l,"class","content"),p(S,"class","ri-download-line"),p(y,"type","button"),p(y,"class","btn btn-sm btn-circle btn-hint btn-transparent"),y.disabled=C=e[6][e[22].key]||e[5][e[22].key],p(y,"aria-label","Download"),Q(y,"btn-loading",e[5][e[22].key]),p(M,"class","ri-restart-line"),p(T,"type","button"),p(T,"class","btn btn-sm btn-circle btn-hint btn-transparent"),T.disabled=O=e[6][e[22].key],p(T,"aria-label","Restore"),p(P,"class","ri-delete-bin-7-line"),p(L,"type","button"),p(L,"class","btn btn-sm btn-circle btn-hint btn-transparent"),L.disabled=N=e[6][e[22].key],p(L,"aria-label","Delete"),Q(L,"btn-loading",e[6][e[22].key]),p(b,"class","actions nonintrusive"),p(t,"class","list-item svelte-1ulbkf5"),this.first=t},m(le,ee){w(le,t,ee),g(t,i),g(t,s),g(t,l),g(l,o),g(o,a),g(l,u),g(l,f),g(f,c),g(f,m),g(f,_),g(t,h),g(t,b),g(b,y),g(y,S),g(b, $ ),g(b,T),g(T,M),g(b,D),g(b,L),g(L,P),g(t,F),q=!0,j||(Y=[Me(He.call(null,y,"Download")),J(y,"click",et(X)),Me(He.call(null,T,"Restore")),J(T,"click",et(G)),Me(He.call(null,L,"Delete")),J(L,"click",et(W))],j=!0)},p(le,ee){e=le,(!q||ee&8)&&r!==(r=e[22].key+"")&&se(a,r),(!q||ee&8)&&d!==(d=B.formattedFileSize(e[22].size)+"")&&se(m,d),(!q||ee&104&&C!==(C=e[6][e[22].key]||e[5][e[22].key]))&&(y.disabled=C),(!q||ee&40)&&Q(y,"btn-loading",e[5][e[22].key]),(!q||ee&72&&O!==(O=e[6][e[22].key]))&&(T.disabled=O),(!q||ee&72&&N!==(N=e[6][e[22].key]))&&(L.disabled=N),(!q||ee&72)&&Q(L,"btn-loading",e[6][e[22].key])},i(le){q||(le&&Qe(()=>{q&&(R||(R=je(t,ot,{duration:150},!0)),R.run(1))}),q=!0)},o(le){le&&(R||(R=je(t,ot,{duration:150},!1)),R.run(0)),q=!1},d(le){le&&k(t),le&&R&&R.end(),j=!1,Ee(Y)}}}function W_(n){let e;return{c(){e=v("div"),e.innerHTML= ` < span class = "skeleton-loader" > < / s p a n >
2023-07-29 03:23:42 +08:00
` ,p(e,"class","list-item list-item-loader svelte-1ulbkf5")},m(t,i){w(t,e,i)},p:x,d(t){t&&k(e)}}}function KI(n){let e,t,i;return{c(){e=v("span"),t=E(),i=v("span"),i.textContent="Backup/restore operation is in process",p(e,"class","loader loader-sm"),p(i,"class","txt")},m(s,l){w(s,e,l),w(s,t,l),w(s,i,l)},d(s){s&&k(e),s&&k(t),s&&k(i)}}}function JI(n){let e,t,i;return{c(){e=v("i"),t=E(),i=v("span"),i.textContent="Initialize new backup",p(e,"class","ri-play-circle-line"),p(i,"class","txt")},m(s,l){w(s,e,l),w(s,t,l),w(s,i,l)},d(s){s&&k(e),s&&k(t),s&&k(i)}}}function ZI(n){let e,t,i,s,l,o,r,a,u,f,c,d,m,_,h;const b=[YI,WI],y=[];function S(D,L){return D[4]?0:1}i=S(n),s=y[i]=b[i](n);function C(D,L){return D[7]?JI:KI}let $ =C(n),T= $ (n),M={};f=new RI({props:M}),n[14](f),f. $ on("submit",n[15]);let O={};return d=new UI({props:O}),n[16](d),{c(){e=v("div"),t=v("div"),s.c(),l=E(),o=v("div"),r=v("button"),T.c(),u=E(),H(f. $ $ .fragment),c=E(),H(d. $ $ .fragment),p(t,"class","list-content svelte-1ulbkf5"),p(r,"type","button"),p(r,"class","btn btn-block btn-transparent"),r.disabled=a=n[4]||!n[7],p(o,"class","list-item list-item-btn"),p(e,"class","list list-compact")},m(D,L){w(D,e,L),g(e,t),y[i].m(t,null),g(e,l),g(e,o),g(o,r),T.m(r,null),w(D,u,L),V(f,D,L),w(D,c,L),V(d,D,L),m=!0,_||(h=J(r,"click",n[13]),_=!0)},p(D,[L]){let P=i;i=S(D),i===P?y[i].p(D,L):(ae(),I(y[P],1,1,()=>{y[P]=null}),ue(),s=y[i],s?s.p(D,L):(s=y[i]=b[i](D),s.c()),A(s,1),s.m(t,null)), $ !==( $ =C(D))&&(T.d(1),T= $ (D),T&&(T.c(),T.m(r,null))),(!m||L&144&&a!==(a=D[4]||!D[7]))&&(r.disabled=a);const N={};f. $ set(N);const F={};d. $ set(F)},i(D){m||(A(s),A(f. $ $ .fragment,D),A(d. $ $ .fragment,D),m=!0)},o(D){I(s),I(f. $ $ .fragment,D),I(d. $ $ .fragment,D),m=!1},d(D){D&&k(e),y[i].d(),T.d(),D&&k(u),n[14](null),z(f,D),D&&k(c),n[16](null),z(d,D),_=!1,h()}}}function GI(n,e,t){let i,s,l=[],o=!1,r={},a={},u=!0;f(),_();async function f(){t(4,o=!0);try{t(3,l=await ce.backups.getFullList()),l.sort((M,O)=>M.modified<O.modified?1:M.modified>O.modified?-1:0),t(4,o=!1)}catch(M){M.isAbort||(ce.error(M),t(4,o=!1))}}async function c(M){if(!r[M]){t(5,r[M]=!0,r);try{const O=await ce.getAdminFileToken(),D=ce.backups.getDownloadUrl(O,M);B.download(D)}catch(O){O.isAbort||ce.error(O)}delete r[M],t(5,r)}}function d(M){pn( ` Do you really want to delete $ { M } ? ` ,()=>m(M))}async function m(M){if(!a[M]){t(6,a[M]=!0,a);try{await ce.backups.delete(M),B.removeByKey(l,"name",M),f(),zt( ` Successfully deleted $ { M } . ` )}catch(O){O.isAbort||ce.error(O)}delete a[M],t(6,a)}}async function _(){var M;try{const O=await ce.health.check({ $ autoCancel:!1}),D=u;t(7,u=((M=O==null?void 0:O.data)==null?void 0:M.canBackup)||!1),D!=u&&u&&f()}catch{}}Gt(()=>{let M=setInterval(()=>{_()},3e3);return()=>{clearInterval(M)}});const h=M=>c(M.key),b=M=>s.show(M.key),y=M=>d(M.key),S=()=>i==null?void 0:i.show();function C(M){te[M?"unshift":"push"](()=>{i=M,t(1,i)})}const $ =()=>{f()};function T(M){te[M?"unshift":"push"](()=>{s=M,t(2,s)})}return[f,i,s,l,o,r,a,u,c,d,h,b,y,S,C, $ ,T]}class XI extends ge{constructor(e){super(),_e(this,e,GI,ZI,me,{loadBackups:0})}get loadBackups(){return this. $ $ .ctx[0]}}function QI(n){let e;return{c(){e=v("i"),p(e,"class","ri-arrow-down-s-line")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function xI(n){let e;return{c(){e=v("i"),p(e,"class","ri-arrow-up-s-line")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function Y_(n){var j,Y,X;let e,t,i,s,l,o,r,a,u,f,c,d,m,_,h,b,y,S,C, $ ,T,M,O;t=new pe({props:{class:"form-field form-field-toggle m-t-base m-b-0", $ $ slots:{default:[e8,({uniqueId:G})=>({32:G}),({uniqueId:G})=>[0,G?2:0]]}, $ $ scope:{ctx:n}}});let D=n[2]&&K_(n);function L(G){n[25](G)}function P(G){n[26](G)}function N(G){n[27](G)}let F={toggleLabel:"Store backups in S3 storage",testFilesystem:"backups",configKey:"backups.s3",originalConfig:(j=n[0].backups)==null?void 0:j.s3};n[1].backups.s3!==void 0&&(F.config=n[1].backups.s3),n[7]!==void 0&&(F.isTesting=n[7]),n[8]!==void 0&&(F.testError=n[8]),r=new O1({props:F}),te.push(()=>de(r,"config",L)),te.push(()=>de(r,"isTesting",P)),te.push(()=>de(r,"testError",N));let R=((X=(Y=n[1].backups)==null?void 0:Y.s3)==null?voi
UTC . < /p>`,p(e,"for",i=n[32]),l.required=!0,p(l,"type","text"),p(l,"id",o=n[32]),p(l,"class","txt-lg txt-mono"),p(l,"placeholder","* * * * *"),l.autofocus=r=!((M=(T=n[0])==null?void 0:T.backups)!=null&&M.cron),p(c,"class","txt"),p(m,"class","ri-arrow-drop-down-fill"),p(f,"type","button"),p(f,"class","btn btn-sm btn-outline p-r-0"),p(u,"class","form-field-addon"),p(y,"class","help-block")},m(T,M){var O,D;w(T,e,M),g(e,t),w(T,s,M),w(T,l,M),re(l,n[1].backups.cron),w(T,a,M),w(T,u,M),g(u,f),g(f,c),g(f,d),g(f,m),g(f,_),V(h,f,null),w(T,b,M),w(T,y,M),S=!0,(D=(O=n[0])==null?void 0:O.backups)!=null&&D.cron||l.focus(),C||($=J(l,"input",n[19]),C=!0)},p(T,M){var D,L;(!S||M[1]&2&&i!==(i=T[32]))&&p(e,"for",i),(!S||M[1]&2&&o!==(o=T[32]))&&p(l,"id",o),(!S||M[0]&1&&r!==(r=!((L=(D=T[0])==null?void 0:D.backups)!=null&&L.cron)))&&(l.autofocus=r),M[0]&2&&l.value!==T[1].backups.cron&&re(l,T[1].backups.cron);const O={};M[0]&2|M[1]&4&&(O.$$scope={dirty:M,ctx:T}),h.$set(O)},i(T){S||(A(h.$$.fragment,T),S=!0)},o(T){I(h.$$.fragment,T),S=!1},d(T){T&&k(e),T&&k(s),T&&k(l),T&&k(a),T&&k(u),z(h),T&&k(b),T&&k(y),C=!1,$()}}}function i8(n){let e,t,i,s,l,o,r,a;return{c(){e=v("label"),t=U("Max @auto backups to keep"),s=E(),l=v("input"),p(e,"for",i=n[32]),p(l,"type","number"),p(l,"id",o=n[32]),p(l,"min","1")},m(u,f){w(u,e,f),g(e,t),w(u,s,f),w(u,l,f),re(l,n[1].backups.cronMaxKeep),r||(a=J(l,"input",n[24]),r=!0)},p(u,f){f[1]&2&&i!==(i=u[32])&&p(e,"for",i),f[1]&2&&o!==(o=u[32])&&p(l,"id",o),f[0]&2&&dt(l.value)!==u[1].backups.cronMaxKeep&&re(l,u[1].backups.cronMaxKeep)},d(u){u&&k(e),u&&k(s),u&&k(l),r=!1,a()}}}function J_(n){let e;function t(l,o){return l[7]?o8:l[8]?l8:s8}let i=t(n),s=i(n);return{c(){s.c(),e=ye()},m(l,o){s.m(l,o),w(l,e,o)},p(l,o){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},d(l){s.d(l),l&&k(e)}}}function s8(n){let e;return{c(){e=v("div"),e.innerHTML=`<i class="ri-checkbox-circle-line txt-success"></i >
2023-06-11 04:32:41 +08:00
< span class = "txt" > S3 connected successfully < /span>`,p(e,"class","label label-sm label-success entrance-right")},m(t,i){w(t,e,i)},p:x,d(t){t&&k(e)}}}function l8(n){let e,t,i,s;return{c(){e=v("div"),e.innerHTML=`<i class="ri-error-warning-line txt-warning"></i >
2023-08-07 02:51:55 +08:00
< span class = "txt" > Failed to establish S3 connection < / s p a n > ` , p ( 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 ; w ( l , e , o ) , i | | ( s = M e ( t = H e . c a l l ( n u l l , e , ( r = n [ 8 ] . d a t a ) = = n u l l ? v o i d 0 : r . m e s s a g e ) ) , i = ! 0 ) } , p ( l , o ) { v a r r ; t & & j t ( t . u p d a t e ) & & o [ 0 ] & 2 5 6 & & t . u p d a t e . c a l l ( n u l l , ( r = l [ 8 ] . d a t a ) = = n u l l ? v o i d 0 : r . m e s s a g e ) } , d ( l ) { l & & k ( e ) , i = ! 1 , s ( ) } } } f u n c t i o n o 8 ( n ) { l e t e ; r e t u r n { c ( ) { e = v ( " s p a n " ) , p ( e , " c l a s s " , " l o a d e r l o a d e r - s m " ) } , m ( t , i ) { w ( t , e , i ) } , p : x , d ( t ) { t & & k ( e ) } } } f u n c t i o n Z _ ( n ) { l e t e , t , i , s , l ; 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 = " R e s e t " , p ( t , " c l a s s " , " t x t " ) , p ( e , " t y p e " , " s u b m i t " ) , p ( e , " c l a s s " , " b t n b t n - h i n t b t n - t r a n s p a r e n t " ) , e . d i s a b l e d = i = ! n [ 9 ] | | n [ 5 ] } , m ( o , r ) { w ( o , e , r ) , g ( e , t ) , s | | ( l = J ( e , " c l i c k " , n [ 2 8 ] ) , s = ! 0 ) } , p ( o , r ) { r [ 0 ] & 5 4 4 & & i ! = = ( i = ! o [ 9 ] | | o [ 5 ] ) & & ( e . d i s a b l e d = i ) } , d ( o ) { o & & k ( e ) , s = ! 1 , l ( ) } } } f u n c t i o n r 8 ( n ) { l e t e , t , i , s , l , o , r , a , u , f , c , d , m , _ , h , b , y , S , C , $ , T , M , O , D , L ; m = n e w G o ( { p r o p s : { c l a s s : " b t n - s m " , t o o l t i p : " R e l o a d b a c k u p s l i s t " } } ) , m . $ o n ( " r e f r e s h " , n [ 1 5 ] ) ; l e t P = { } ; h = n e w X I ( { p r o p s : P } ) , n [ 1 6 ] ( h ) ; f u n c t i o n N ( j , Y ) { r e t u r n j [ 6 ] ? x I : Q I } l e t F = N ( n ) , R = F ( n ) , q = n [ 6 ] & & ! n [ 4 ] & & Y _ ( n ) ; r e t u r 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 = E ( ) , l = v ( " d i v " ) , o = U ( n [ 1 0 ] ) , r = E ( ) , a = v ( " d i v " ) , u = v ( " d i v " ) , f = v ( " d i v " ) , c = v ( " s p a n " ) , c . t e x t C o n t e n t = " B a c k u p a n d r e s t o r e y o u r P o c k e t B a s e d a t a " , d = E ( ) , H ( m . $ $ . f r a g m e n t ) , _ = E ( ) , H ( h . $ $ . f r a g m e n t ) , b = E ( ) , y = v ( " h r " ) , S = E ( ) , C = v ( " b u t t o n " ) , $ = v ( " s p a n " ) , $ . t e x t C o n t e n t = " B a c k u p s o p t i o n s " , T = E ( ) , R . c ( ) , M = E ( ) , q & & q . c ( ) , p ( i , " c l a s s " , " b r e a d c r u m b - i t e m " ) , p ( l , " c l a s s " , " b r e a d c r u m b - i t e m " ) , p ( t , " c l a s s " , " b r e a d c r u m b s " ) , p ( e , " c l a s s " , " p a g e - h e a d e r " ) , p ( c , " c l a s s " , " t x t - x l " ) , p ( f , " c l a s s " , " f l e x m - b - s m f l e x - g a p - 5 " ) , p ( $ , " c l a s s " , " t x t " ) , p ( C , " t y p e " , " b u t t o n " ) , p ( C , " c l a s s " , " b t n b t n - s e c o n d a r y " ) , C . d i s a b l e d = n [ 4 ] , Q ( C , " b t n - l o a d i n g " , n [ 4 ] ) , p ( u , " c l a s s " , " p a n e l " ) , p ( u , " a u t o c o m p l e t e " , " o f f " ) , p ( a , " c l a s s " , " w r a p p e r " ) } , m ( j , Y ) { w ( j , e , Y ) , g ( e , t ) , g ( t , i ) , g ( t , s ) , g ( t , l ) , g ( l , o ) , w ( j , r , Y ) , w ( j , a , Y ) , g ( a , u ) , g ( u , f ) , g ( f , c ) , g ( f , d ) , V ( m , f , n u l l ) , g ( u , _ ) , V ( h , u , n u l l ) , g ( u , b ) , g ( u , y ) , g ( u , S ) , g ( u , C ) , g ( C , $ ) , g ( C , T ) , R . m ( C , n u l l ) , g ( u , M ) , q & & q . m ( u , n u l l ) , O = ! 0 , D | | ( L = [ J ( C , " c l i c k " , n [ 1 7 ] ) , J ( u , " s u b m i t " , e t ( n [ 1 1 ] ) ) ] , D = ! 0 ) } , p ( j , Y ) { ( ! O | | Y [ 0 ] & 1 0 2 4 ) & & s e ( o , j [ 1 0 ] ) ; c o n s t X = { } ; h . $ s e t ( X ) , F ! = = ( F = N ( j ) ) & & ( R . d ( 1 ) , R = F ( j ) , R & & ( R . c ( ) , R . m ( C , n u l l ) ) ) , ( ! O | | Y [ 0 ] & 1 6 ) & & ( C . d i s a b l e d = j [ 4 ] ) , ( ! O | | Y [ 0 ] & 1 6 ) & & Q ( C , " b t n - l o a d i n g " , j [ 4 ] ) , j [ 6 ] & & ! j [ 4 ] ? q ? ( q . p ( j , Y ) , Y [ 0 ] & 8 0 & & A ( q , 1 ) ) : ( q = Y _ ( j ) , q . c ( ) , A ( q , 1 ) , q . m ( u , n u l l ) ) : q & & ( a e ( ) , I ( q , 1 , 1 , ( ) = > { q = n u l l } ) , u e ( ) ) } , i ( j ) { O | | ( A ( m . $ $ . f r a g m e n t , j ) , A ( h . $ $ . f r a g m e n t , j ) , A ( q ) , O = ! 0 ) } , o ( j ) { I ( m . $ $ . f r a g m e n t , j ) , I ( h . $ $ . f r a g m e n t , j ) , I ( q ) , O = ! 1 } , d ( j ) { j & & k ( e ) , j & & k ( r ) , j & & k ( a ) , z ( m ) , n [ 1 6 ] ( n u l l ) , z ( h ) , R . d ( ) , q & & q . d ( ) , D = ! 1 , E e ( L ) } } } f u n c t i o n a 8 ( n ) { l e t e , t , i , s ; r e t u r n e = n e w C i ( { } ) , i = n e w w n ( { p r o p s : { $ $ s l o t s : { d e f a u l t : [ r 8 ] } , $ $ s c o p e : { c t x : n } } } ) , { c ( ) { H ( e . $ $ . f r a g m e n t ) , t = E ( ) , H ( i . $ $ . f r a g m e n t ) } , m ( l , o ) { V ( e , l , o ) , w ( l , t , o ) , V ( i , l , o ) , s = ! 0 } , p ( l , o ) { c o n s t r = { } ; o [ 0 ] & 2 0 4 7 | o [ 1 ] & 4 & & ( r . $ $ s c o p e = { d i r t y : o , c t x : l } ) , i . $ s e t ( r ) } , i ( l ) { s | | ( 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 ) { z ( e , l ) , l & & k ( t ) , z ( i , l ) } } } f u n c t i o n u 8 ( n , e , t ) { l e t i , s ; J e ( n , T t , W = > t ( 1 0 , s = W ) ) , s n ( T t , s = " B a c k u p s " , s ) ; l e t l , o = { } , r = { } , a = ! 1 , u = ! 1 , f = " " , c = ! 1 , d = ! 1 , m = ! 1 , _ = n u l l ; h ( ) ; a s y n c f u n c t i o n h ( ) { t ( 4 , a = ! 0 ) ; t r y { c o n s t W = a w a i t c e . s e t t i n g s . g e t A l l ( ) | | { } ; y ( W ) } c a t c h ( W ) { c e . e r r o r ( W ) } t ( 4 , a = ! 1 ) } a s y n c f u n c t i o n b ( ) { i f ( ! ( u | | ! i ) ) { t ( 5 , u = ! 0 ) ; t r y { c o n s t W = a w a i t c e . s e t t i n g s . u p d a t e ( B . f i l t e r R e d a c t e d P r o p s ( r ) ) ; a w a i t C ( ) , y ( W ) , z 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 ( W ) { c e . e r r o r ( W ) } t ( 5 , u = ! 1 ) } } f u n c t i o n y ( W = { } ) { t ( 1 , r = { b a c k u p s : ( W = = n u l l ? v o i d 0 : W . b a c k u p s ) | | { } } ) , t ( 2 , c = r . b a c k u p s . c r o n ! = " " ) , t ( 0 , o = J S O N . p a r s e ( J S O N . s t r i n g i f y ( r ) ) ) } f u n c t i o n S ( ) { t ( 1 , r = J S O N . p a r s e ( J S O N . s t r i n g i f y ( o | | { b a c k u p s : { } } ) ) ) , t ( 2 , c = r . b a c k u p s . c r o n ! = " " ) } a s y n c f u n c t i o n C ( ) { a w a i t ( l = = n u l l ? v o i d 0 : l . l o a d B a c k u p s ( ) ) } c o n s t $ = ( ) = > C ( ) ; f u n c t i o n T ( W ) { t e [ W ? " u n s h i f t " : " p u s h " ] ( ( ) = > { l = W , t ( 3 , l ) } ) } c o n s t M = ( ) = > t ( 6 , d = ! d ) ; f u n c t i o n O ( ) { c = t h i s . c h e c k e d , t ( 2 , c ) } f u n c t i o n D ( ) { r . b a c k u p s . c r o n = t h i s . v a l u e , t ( 1 , r ) , t ( 2 , c ) } c o n s t L = ( ) = > { t ( 1 , r . b a c k u p s . c r o n = " 0 0 * * * " , r ) } , P = ( ) = > { t ( 1 , r . b a c k u p s . c r o n = " 0 0 * * 0 " , r ) } , N = ( ) = > { t ( 1 , r . b a c k u p s . c r o n = " 0 0 * * 1 , 3 " , r ) } , F = ( ) = > { t ( 1 , r . b a c k u p s . c r o n = " 0 0 1 * * " , r ) } ; f u n c t i o n R ( ) { r . b a c k u p s . c r o n M a x K e e p = d t ( t h i s . v a l u e ) , t ( 1 , r ) , t ( 2 , c ) } f u n c t i o
2023-06-11 04:32:41 +08:00
< span class = "txt" > Manage admins < /span>`,t=E(),i=v("hr"),s=E(),l=v("button"),l.innerHTML=`<i class="ri-logout-circle-line"></i >
2023-07-27 20:57:20 +08:00
< span class = "txt" > Logout < / s p a n > ` , p ( e , " h r e f " , " / s e t t i n g s / a d m i n s " ) , p ( 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 " ) , p ( l , " t y p e " , " b u t t o n " ) , p ( 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 ) { w ( a , e , u ) , w ( a , t , u ) , w ( a , i , u ) , w ( a , s , u ) , w ( a , l , u ) , o | | ( r = [ M e ( o n . c a l l ( n u l l , e ) ) , J ( l , " c l i c k " , n [ 7 ] ) ] , o = ! 0 ) } , p : x , d ( a ) { a & & k ( e ) , a & & k ( t ) , a & & k ( i ) , a & & k ( s ) , a & & k ( l ) , o = ! 1 , E e ( r ) } } } f u n c t i o n x _ ( n ) { l e t e , t , i ; r e t u r n t = n e w p u ( { p r o p s : { s c r i p t S r c : " . / l i b s / t i n y m c e / t i n y m c e . m i n . j s " , c o n f : B . d e f a u l t E d i t o r O p t i o n s ( ) } } ) , t . $ o n ( " i n i t " , n [ 8 ] ) , { c ( ) { e = v ( " d i v " ) , H ( t . $ $ . f r a g m e n t ) , p ( e , " c l a s s " , " t i n y m c e - p r e l o a d e r h i d d e n " ) } , m ( s , l ) { w ( s , e , l ) , V ( t , e , n u l l ) , i = ! 0 } , p : x , 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 & & k ( e ) , z ( t ) } } } f u n c t i o n T 8 ( n ) { v a r b ; l e t e , t , i , s , l , o , r , a , u , f , c , d , m ; d o c u m e n t . t i t l e = e = B . j o i n N o n E m p t y ( [ n [ 4 ] , n [ 3 ] , " P o c k e t B a s e " ] , " - " ) ; l e t _ = ( ( b = n [ 0 ] ) = = n u l l ? v o i d 0 : b . i d ) & & n [ 1 ] & & Q _ ( n ) ; o = n e w c 0 ( { p r o p s : { r o u t e s : c 8 } } ) , o . $ o n ( " r o u t e L o a d i n g " , n [ 5 ] ) , o . $ o n ( " c o n d i t i o n s F a i l e d " , n [ 6 ] ) , a = n e w v 8 ( { } ) , f = n e w $ 8 ( { } ) ; l e t h = n [ 1 ] & & ! n [ 2 ] & & x _ ( n ) ; r e t u r n { c ( ) { t = E ( ) , i = v ( " d i v " ) , _ & & _ . c ( ) , s = E ( ) , l = v ( " d i v " ) , H ( o . $ $ . f r a g m e n t ) , r = E ( ) , H ( a . $ $ . f r a g m e n t ) , u = E ( ) , H ( f . $ $ . f r a g m e n t ) , c = E ( ) , h & & h . c ( ) , d = y e ( ) , p ( l , " c l a s s " , " a p p - b o d y " ) , p ( i , " c l a s s " , " a p p - l a y o u t " ) } , m ( y , S ) { w ( y , t , S ) , w ( y , i , S ) , _ & & _ . m ( i , n u l l ) , g ( i , s ) , g ( i , l ) , V ( o , l , n u l l ) , g ( l , r ) , V ( a , l , n u l l ) , w ( y , u , S ) , V ( f , y , S ) , w ( y , c , S ) , h & & h . m ( y , S ) , w ( y , d , S ) , m = ! 0 } , p ( y , [ S ] ) { v a r C ; ( ! m | | S & 2 4 ) & & e ! = = ( e = B . j o i n N o n E m p t y ( [ y [ 4 ] , y [ 3 ] , " P o c k e t B a s e " ] , " - " ) ) & & ( d o c u m e n t . t i t l e = e ) , ( C = y [ 0 ] ) ! = n u l l & & C . i d & & y [ 1 ] ? _ ? ( _ . p ( y , S ) , S & 3 & & A ( _ , 1 ) ) : ( _ = Q _ ( y ) , _ . c ( ) , A ( _ , 1 ) , _ . m ( i , s ) ) : _ & & ( a e ( ) , I ( _ , 1 , 1 , ( ) = > { _ = n u l l } ) , u e ( ) ) , y [ 1 ] & & ! y [ 2 ] ? h ? ( h . p ( y , S ) , S & 6 & & A ( h , 1 ) ) : ( h = x _ ( y ) , h . c ( ) , A ( h , 1 ) , h . m ( d . p a r e n t N o d e , d ) ) : h & & ( a e ( ) , I ( h , 1 , 1 , ( ) = > { h = n u l l } ) , u e ( ) ) } , i ( y ) { m | | ( A ( _ ) , A ( o . $ $ . f r a g m e n t , y ) , A ( a . $ $ . f r a g m e n t , y ) , A ( f . $ $ . f r a g m e n t , y ) , A ( h ) , m = ! 0 ) } , o ( y ) { I ( _ ) , I ( o . $ $ . f r a g m e n t , y ) , I ( a . $ $ . f r a g m e n t , y ) , I ( f . $ $ . f r a g m e n t , y ) , I ( h ) , m = ! 1 } , d ( y ) { y & & k ( t ) , y & & k ( i ) , _ & & _ . d ( ) , z ( o ) , z ( a ) , y & & k ( u ) , z ( f , y ) , y & & k ( c ) , h & & h . d ( y ) , y & & k ( d ) } } } f u n c t i o n M 8 ( n , e , t ) { l e t i , s , l , o ; J e ( n , A s , h = > t ( 1 0 , i = h ) ) , J e ( n , $ o , h = > t ( 3 , s = h ) ) , J e ( n , R a , h = > t ( 0 , l = h ) ) , J e ( n , T t , h = > t ( 4 , o = h ) ) ; l e t r , a = ! 1 , u = ! 1 ; f u n c t i o n f ( h ) { v a r b , y , S , C ; ( ( b = h = = n u l l ? v o i d 0 : h . d e t a i l ) = = n u l l ? v o i d 0 : b . l o c a t i o n ) ! = = r & & ( t ( 1 , a = ! ! ( ( S = ( y = h = = n u l l ? v o i d 0 : h . d e t a i l ) = = n u l l ? v o i d 0 : y . u s e r D a t a ) ! = n u l l & & S . s h o w A p p S i d e b a r ) ) , r = ( C = h = = n u l l ? v o i d 0 : h . d e t a i l ) = = n u l l ? v o i d 0 : C . l o c a t i o n , s n ( T t , o = " " , o ) , e n ( { } ) , k 1 ( ) ) } f u n c t i o n c ( ) { j i ( " / " ) } a s y n c f u n c t i o n d ( ) { v a r h , b ; i f ( l ! = n u l l & & l . i d ) t r y { c o n s t y = a w a i t c e . s e t t i n g s . g e t A l l ( { $ c a n c e l K e y : " i n i t i a l A p p S e t t i n g s " } ) ; s n ( $ o , s = ( ( h = y = = n u l l ? v o i d 0 : y . m e t a ) = = n u l l ? v o i d 0 : h . a p p N a m e ) | | " " , s ) , s n ( A s , i = ! ! ( ( b = y = = n u l l ? v o i d 0 : y . m e t a ) ! = n u l l & & b . h i d e C o n t r o l s ) , i ) } c a t c h ( y ) { y ! = n u l l & & y . 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 . " , y ) } } f u n c t i o n m ( ) { c e . l o g o u t ( ) } c o n s t _ = ( ) = > { t ( 2 , u = ! 0 ) } ; r e t u r n n . $ $ . u p d a t e = ( ) = > { n . $ $ . d i r t y & 1 & & l ! = n u l l & & l . i d & & d ( ) } , [ l , a , u , s , o , f , c , m , _ ] } c l a s s O 8 e x t e n d s g e { c o n s t r u c t o r ( e ) { s u p e r ( ) , _ e ( t h i s , e , M 8 , T 8 , m e , { } ) } } n e w O 8 ( { t a r g e t : d o c u m e n t . g e t E l e m e n t B y I d ( " a p p " ) } ) ; e x p o r t { E e a s A , z t a s B , B a s C , j i a s D , y e a s E , v b a s F , _ g a s G , G t a s H , J e a s I , c i a s J , $ t a s K , t e a s L , v 1 a s M , b t a s N , H o a s O , a s a s P , B t a s Q , m t a s R , g e a s S , y n a s T , z r a s U , I a s a , E a s b , H a s c , z a s d , v a s e , p a s f , w a s g , g a s h , _ e a s i , M e a s j , a e a s k , o n a s l , V a s m , u e a s n , k a s o , c e a s p , p e a s q , Q a s r , m e a s s , A a s t , J a s u , e t a s v , U a s w , s e a s x , x a s y , r e a s z } ;