|
|
|
@@ -10,7 +10,7 @@ const I1=function(){const e=document.createElement("link").relList;if(e&&e.suppo
|
|
|
|
|
opacity: ${a-c*d}`}}function fn(n,{delay:e=0,duration:t=400,easing:i=As}={}){const o=getComputedStyle(n),r=+o.opacity,l=parseFloat(o.height),s=parseFloat(o.paddingTop),a=parseFloat(o.paddingBottom),f=parseFloat(o.marginTop),c=parseFloat(o.marginBottom),u=parseFloat(o.borderTopWidth),d=parseFloat(o.borderBottomWidth);return{delay:e,duration:t,easing:i,css:h=>`overflow: hidden;opacity: ${Math.min(h*20,1)*r};height: ${h*l}px;padding-top: ${h*s}px;padding-bottom: ${h*a}px;margin-top: ${h*f}px;margin-bottom: ${h*c}px;border-top-width: ${h*u}px;border-bottom-width: ${h*d}px;`}}function Bn(n,{delay:e=0,duration:t=400,easing:i=As,start:o=0,opacity:r=0}={}){const l=getComputedStyle(n),s=+l.opacity,a=l.transform==="none"?"":l.transform,f=1-o,c=s*(1-r);return{delay:e,duration:t,easing:i,css:(u,d)=>`
|
|
|
|
|
transform: ${a} scale(${1-f*d});
|
|
|
|
|
opacity: ${s-c*d}
|
|
|
|
|
`}}function Y2(n){let e,t,i,o;return{c(){e=g("input"),p(e,"type","text"),p(e,"id",n[8]),p(e,"placeholder",t=n[0]||n[1])},m(r,l){w(r,e,l),n[13](e),Me(e,n[7]),i||(o=X(e,"input",n[14]),i=!0)},p(r,l){l&3&&t!==(t=r[0]||r[1])&&p(e,"placeholder",t),l&128&&e.value!==r[7]&&Me(e,r[7])},i:le,o:le,d(r){r&&k(e),n[13](null),i=!1,o()}}}function G2(n){let e,t,i,o;function r(a){n[12](a)}var l=n[4];function s(a){let f={singleLine:!0,disableRequestKeys:!0,disableIndirectCollectionsKeys:!0,extraAutocompleteKeys:a[3],baseCollection:a[2],placeholder:a[0]||a[1]};return a[7]!==void 0&&(f.value=a[7]),{props:f}}return l&&(e=new l(s(n)),he.push(()=>Fe(e,"value",r)),e.$on("submit",n[10])),{c(){e&&V(e.$$.fragment),i=lt()},m(a,f){e&&H(e,a,f),w(a,i,f),o=!0},p(a,f){const c={};if(f&8&&(c.extraAutocompleteKeys=a[3]),f&4&&(c.baseCollection=a[2]),f&3&&(c.placeholder=a[0]||a[1]),!t&&f&128&&(t=!0,c.value=a[7],Re(()=>t=!1)),l!==(l=a[4])){if(e){Ae();const u=e;F(u.$$.fragment,1,0,()=>{q(u,1)}),De()}l?(e=new l(s(a)),he.push(()=>Fe(e,"value",r)),e.$on("submit",a[10]),V(e.$$.fragment),T(e.$$.fragment,1),H(e,i.parentNode,i)):e=null}else l&&e.$set(c)},i(a){o||(e&&T(e.$$.fragment,a),o=!0)},o(a){e&&F(e.$$.fragment,a),o=!1},d(a){a&&k(i),e&&q(e,a)}}}function Ou(n){let e,t,i,o,r,l,s=n[7]!==n[0]&&Tu();return{c(){s&&s.c(),e=$(),t=g("button"),t.innerHTML='<span class="txt">Clear</span>',p(t,"type","button"),p(t,"class","btn btn-secondary btn-sm btn-hint p-l-xs p-r-xs m-l-10")},m(a,f){s&&s.m(a,f),w(a,e,f),w(a,t,f),o=!0,r||(l=X(t,"click",n[15]),r=!0)},p(a,f){a[7]!==a[0]?s?f&129&&T(s,1):(s=Tu(),s.c(),T(s,1),s.m(e.parentNode,e)):s&&(Ae(),F(s,1,1,()=>{s=null}),De())},i(a){o||(T(s),Dt(()=>{i||(i=ct(t,ti,{duration:150,x:5},!0)),i.run(1)}),o=!0)},o(a){F(s),i||(i=ct(t,ti,{duration:150,x:5},!1)),i.run(0),o=!1},d(a){s&&s.d(a),a&&k(e),a&&k(t),a&&i&&i.end(),r=!1,l()}}}function Tu(n){let e,t,i;return{c(){e=g("button"),e.innerHTML='<span class="txt">Search</span>',p(e,"type","submit"),p(e,"class","btn btn-expanded btn-sm btn-warning")},m(o,r){w(o,e,r),i=!0},i(o){i||(Dt(()=>{t||(t=ct(e,ti,{duration:150,x:5},!0)),t.run(1)}),i=!0)},o(o){t||(t=ct(e,ti,{duration:150,x:5},!1)),t.run(0),i=!1},d(o){o&&k(e),o&&t&&t.end()}}}function K2(n){let e,t,i,o,r,l,s,a,f,c,u;const d=[G2,Y2],h=[];function b(_,y){return _[4]&&!_[5]?0:1}l=b(n),s=h[l]=d[l](n);let v=(n[0].length||n[7].length)&&Ou(n);return{c(){e=g("div"),t=g("form"),i=g("label"),o=g("i"),r=$(),s.c(),a=$(),v&&v.c(),p(o,"class","ri-search-line"),p(i,"for",n[8]),p(i,"class","m-l-10 txt-xl"),p(t,"class","searchbar"),p(e,"class","searchbar-wrapper")},m(_,y){w(_,e,y),m(e,t),m(t,i),m(i,o),m(t,r),h[l].m(t,null),m(t,a),v&&v.m(t,null),f=!0,c||(u=[X(t,"submit",Gt(n[10])),X(e,"click",Vn(n[11]))],c=!0)},p(_,[y]){let S=l;l=b(_),l===S?h[l].p(_,y):(Ae(),F(h[S],1,1,()=>{h[S]=null}),De(),s=h[l],s?s.p(_,y):(s=h[l]=d[l](_),s.c()),T(s,1),s.m(t,a)),_[0].length||_[7].length?v?(v.p(_,y),y&129&&T(v,1)):(v=Ou(_),v.c(),T(v,1),v.m(t,null)):v&&(Ae(),F(v,1,1,()=>{v=null}),De())},i(_){f||(T(s),T(v),f=!0)},o(_){F(s),F(v),f=!1},d(_){_&&k(e),h[l].d(),v&&v.d(),c=!1,rt(u)}}}function J2(n,e,t){const i=yn(),o="search_"+B.randomString(7);let{value:r=""}=e,{placeholder:l='Search filter, ex. created > "2022-01-01"...'}=e,{autocompleteCollection:s=new En}=e,{extraAutocompleteKeys:a=[]}=e,f,c=!1,u,d="";function h(M=!0){t(7,d=""),M&&(u==null||u.focus()),i("clear")}function b(){t(0,r=d),i("submit",r)}async function v(){f||c||(t(5,c=!0),t(4,f=(await _i(()=>import("./FilterAutocompleteInput.15d21df7.js"),[])).default),t(5,c=!1))}di(()=>{v()});function _(M){ft.call(this,n,M)}function y(M){d=M,t(7,d),t(0,r)}function S(M){he[M?"unshift":"push"](()=>{u=M,t(6,u)})}function C(){d=this.value,t(7,d),t(0,r)}const x=()=>{h(!1),b()};return n.$$set=M=>{"value"in M&&t(0,r=M.value),"placeholder"in M&&t(1,l=M.placeholder),"autocompleteCollection"in M&&t(2,s=M.autocompleteCollection),"extraAutocompleteKeys"in M&&t(3,a=M.extraAutocompleteKeys)},n.$$.update=()=>{n.$$.dirty&1&&typeof r=="string"&&t(7,d=r)},[r,l,s,a,f,c,u,d,o,h,b,_,y,S,C,x]}class Ds extends Ie{constructor(e){super(),Le(this,e,J2,K2,Ee,{value:0,placeholder:1,autocompleteCollection:2,extraAutocompleteKeys:3})}}function Z2(n){let e,t,i,o,r;const l=n[6].default,s=$n(l,n,n[5],null);return{c(){e=g("th"),s&&s.c(),p(e,"tabindex","0"),p(e,"class",t="col-sort "+n[1]),ne(e,"col-sort-disabled",n[3]),ne(e,"sort-active",n[0]==="-"+n[2]||n[0]==="+"+n[2]),ne(e,"sort-desc",n[0]==="-"+n[2]),ne(e,"sort-asc",n[0]==="+"+n[2])},m(a,f){w(a,e,f),s&&s.m(e,null),i=!0,o||(r=[X(e,"click",n[7]),X(e,"keydown",n[8])],o=!0)},p(a,[f]){s&&s.p&&(!i||f&32)&&Dn(s,l,a,a[5],i?An(l,a[5],f,null):On(a[5]),null),(!i||f&2&&t!==(t="col-sort "+a[1]))&&p(e,"class",t),f&10&&ne(e,"col-sort-disabled",a[3]),f&7&&ne(e,"sort-active",a[0]==="-"+a[2]||a[0]==="+"+a[2]),f&7&&ne(e,"sort-desc",a[0]==="-"+a[2]),f&7&&ne(e,"sort-asc",a[0]==="+"+a[2])},i(a){i||(T(s,a),i=!0)},o(a){F(s,a),i=!1},d(a){a&&k(e),s&&s.d(a),o=!1,rt(r)}}}function X2(n,e,t){let{$$slots:i={},$$scope:o}=e,{class:r=""}=e,
Line truncated
|
|
|
|
|
`}}function Y2(n){let e,t,i,o;return{c(){e=g("input"),p(e,"type","text"),p(e,"id",n[8]),p(e,"placeholder",t=n[0]||n[1])},m(r,l){w(r,e,l),n[13](e),Me(e,n[7]),i||(o=X(e,"input",n[14]),i=!0)},p(r,l){l&3&&t!==(t=r[0]||r[1])&&p(e,"placeholder",t),l&128&&e.value!==r[7]&&Me(e,r[7])},i:le,o:le,d(r){r&&k(e),n[13](null),i=!1,o()}}}function G2(n){let e,t,i,o;function r(a){n[12](a)}var l=n[4];function s(a){let f={singleLine:!0,disableRequestKeys:!0,disableIndirectCollectionsKeys:!0,extraAutocompleteKeys:a[3],baseCollection:a[2],placeholder:a[0]||a[1]};return a[7]!==void 0&&(f.value=a[7]),{props:f}}return l&&(e=new l(s(n)),he.push(()=>Fe(e,"value",r)),e.$on("submit",n[10])),{c(){e&&V(e.$$.fragment),i=lt()},m(a,f){e&&H(e,a,f),w(a,i,f),o=!0},p(a,f){const c={};if(f&8&&(c.extraAutocompleteKeys=a[3]),f&4&&(c.baseCollection=a[2]),f&3&&(c.placeholder=a[0]||a[1]),!t&&f&128&&(t=!0,c.value=a[7],Re(()=>t=!1)),l!==(l=a[4])){if(e){Ae();const u=e;F(u.$$.fragment,1,0,()=>{q(u,1)}),De()}l?(e=new l(s(a)),he.push(()=>Fe(e,"value",r)),e.$on("submit",a[10]),V(e.$$.fragment),T(e.$$.fragment,1),H(e,i.parentNode,i)):e=null}else l&&e.$set(c)},i(a){o||(e&&T(e.$$.fragment,a),o=!0)},o(a){e&&F(e.$$.fragment,a),o=!1},d(a){a&&k(i),e&&q(e,a)}}}function Ou(n){let e,t,i,o,r,l,s=n[7]!==n[0]&&Tu();return{c(){s&&s.c(),e=$(),t=g("button"),t.innerHTML='<span class="txt">Clear</span>',p(t,"type","button"),p(t,"class","btn btn-secondary btn-sm btn-hint p-l-xs p-r-xs m-l-10")},m(a,f){s&&s.m(a,f),w(a,e,f),w(a,t,f),o=!0,r||(l=X(t,"click",n[15]),r=!0)},p(a,f){a[7]!==a[0]?s?f&129&&T(s,1):(s=Tu(),s.c(),T(s,1),s.m(e.parentNode,e)):s&&(Ae(),F(s,1,1,()=>{s=null}),De())},i(a){o||(T(s),Dt(()=>{i||(i=ct(t,ti,{duration:150,x:5},!0)),i.run(1)}),o=!0)},o(a){F(s),i||(i=ct(t,ti,{duration:150,x:5},!1)),i.run(0),o=!1},d(a){s&&s.d(a),a&&k(e),a&&k(t),a&&i&&i.end(),r=!1,l()}}}function Tu(n){let e,t,i;return{c(){e=g("button"),e.innerHTML='<span class="txt">Search</span>',p(e,"type","submit"),p(e,"class","btn btn-expanded btn-sm btn-warning")},m(o,r){w(o,e,r),i=!0},i(o){i||(Dt(()=>{t||(t=ct(e,ti,{duration:150,x:5},!0)),t.run(1)}),i=!0)},o(o){t||(t=ct(e,ti,{duration:150,x:5},!1)),t.run(0),i=!1},d(o){o&&k(e),o&&t&&t.end()}}}function K2(n){let e,t,i,o,r,l,s,a,f,c,u;const d=[G2,Y2],h=[];function b(_,y){return _[4]&&!_[5]?0:1}l=b(n),s=h[l]=d[l](n);let v=(n[0].length||n[7].length)&&Ou(n);return{c(){e=g("div"),t=g("form"),i=g("label"),o=g("i"),r=$(),s.c(),a=$(),v&&v.c(),p(o,"class","ri-search-line"),p(i,"for",n[8]),p(i,"class","m-l-10 txt-xl"),p(t,"class","searchbar"),p(e,"class","searchbar-wrapper")},m(_,y){w(_,e,y),m(e,t),m(t,i),m(i,o),m(t,r),h[l].m(t,null),m(t,a),v&&v.m(t,null),f=!0,c||(u=[X(t,"submit",Gt(n[10])),X(e,"click",Vn(n[11]))],c=!0)},p(_,[y]){let S=l;l=b(_),l===S?h[l].p(_,y):(Ae(),F(h[S],1,1,()=>{h[S]=null}),De(),s=h[l],s?s.p(_,y):(s=h[l]=d[l](_),s.c()),T(s,1),s.m(t,a)),_[0].length||_[7].length?v?(v.p(_,y),y&129&&T(v,1)):(v=Ou(_),v.c(),T(v,1),v.m(t,null)):v&&(Ae(),F(v,1,1,()=>{v=null}),De())},i(_){f||(T(s),T(v),f=!0)},o(_){F(s),F(v),f=!1},d(_){_&&k(e),h[l].d(),v&&v.d(),c=!1,rt(u)}}}function J2(n,e,t){const i=yn(),o="search_"+B.randomString(7);let{value:r=""}=e,{placeholder:l='Search filter, ex. created > "2022-01-01"...'}=e,{autocompleteCollection:s=new En}=e,{extraAutocompleteKeys:a=[]}=e,f,c=!1,u,d="";function h(M=!0){t(7,d=""),M&&(u==null||u.focus()),i("clear")}function b(){t(0,r=d),i("submit",r)}async function v(){f||c||(t(5,c=!0),t(4,f=(await _i(()=>import("./FilterAutocompleteInput.3cd8dab2.js"),[])).default),t(5,c=!1))}di(()=>{v()});function _(M){ft.call(this,n,M)}function y(M){d=M,t(7,d),t(0,r)}function S(M){he[M?"unshift":"push"](()=>{u=M,t(6,u)})}function C(){d=this.value,t(7,d),t(0,r)}const x=()=>{h(!1),b()};return n.$$set=M=>{"value"in M&&t(0,r=M.value),"placeholder"in M&&t(1,l=M.placeholder),"autocompleteCollection"in M&&t(2,s=M.autocompleteCollection),"extraAutocompleteKeys"in M&&t(3,a=M.extraAutocompleteKeys)},n.$$.update=()=>{n.$$.dirty&1&&typeof r=="string"&&t(7,d=r)},[r,l,s,a,f,c,u,d,o,h,b,_,y,S,C,x]}class Ds extends Ie{constructor(e){super(),Le(this,e,J2,K2,Ee,{value:0,placeholder:1,autocompleteCollection:2,extraAutocompleteKeys:3})}}function Z2(n){let e,t,i,o,r;const l=n[6].default,s=$n(l,n,n[5],null);return{c(){e=g("th"),s&&s.c(),p(e,"tabindex","0"),p(e,"class",t="col-sort "+n[1]),ne(e,"col-sort-disabled",n[3]),ne(e,"sort-active",n[0]==="-"+n[2]||n[0]==="+"+n[2]),ne(e,"sort-desc",n[0]==="-"+n[2]),ne(e,"sort-asc",n[0]==="+"+n[2])},m(a,f){w(a,e,f),s&&s.m(e,null),i=!0,o||(r=[X(e,"click",n[7]),X(e,"keydown",n[8])],o=!0)},p(a,[f]){s&&s.p&&(!i||f&32)&&Dn(s,l,a,a[5],i?An(l,a[5],f,null):On(a[5]),null),(!i||f&2&&t!==(t="col-sort "+a[1]))&&p(e,"class",t),f&10&&ne(e,"col-sort-disabled",a[3]),f&7&&ne(e,"sort-active",a[0]==="-"+a[2]||a[0]==="+"+a[2]),f&7&&ne(e,"sort-desc",a[0]==="-"+a[2]),f&7&&ne(e,"sort-asc",a[0]==="+"+a[2])},i(a){i||(T(s,a),i=!0)},o(a){F(s,a),i=!1},d(a){a&&k(e),s&&s.d(a),o=!1,rt(r)}}}function X2(n,e,t){let{$$slots:i={},$$scope:o}=e,{class:r=""}=e,
Line truncated
|
|
|
|
|
<span class="txt">method</span>`,p(e,"class","col-header-content")},m(t,i){w(t,e,i)},p:le,d(t){t&&k(e)}}}function ok(n){let e,t,i,o;return{c(){e=g("div"),t=g("i"),i=$(),o=g("span"),o.textContent="url",p(t,"class",B.getFieldTypeIcon("url")),p(o,"class","txt"),p(e,"class","col-header-content")},m(r,l){w(r,e,l),m(e,t),m(e,i),m(e,o)},p:le,d(r){r&&k(e)}}}function rk(n){let e,t,i,o;return{c(){e=g("div"),t=g("i"),i=$(),o=g("span"),o.textContent="referer",p(t,"class",B.getFieldTypeIcon("url")),p(o,"class","txt"),p(e,"class","col-header-content")},m(r,l){w(r,e,l),m(e,t),m(e,i),m(e,o)},p:le,d(r){r&&k(e)}}}function lk(n){let e,t,i,o;return{c(){e=g("div"),t=g("i"),i=$(),o=g("span"),o.textContent="status",p(t,"class",B.getFieldTypeIcon("number")),p(o,"class","txt"),p(e,"class","col-header-content")},m(r,l){w(r,e,l),m(e,t),m(e,i),m(e,o)},p:le,d(r){r&&k(e)}}}function sk(n){let e,t,i,o;return{c(){e=g("div"),t=g("i"),i=$(),o=g("span"),o.textContent="created",p(t,"class",B.getFieldTypeIcon("date")),p(o,"class","txt"),p(e,"class","col-header-content")},m(r,l){w(r,e,l),m(e,t),m(e,i),m(e,o)},p:le,d(r){r&&k(e)}}}function Pu(n){let e;function t(r,l){return r[6]?fk:ak}let i=t(n),o=i(n);return{c(){o.c(),e=lt()},m(r,l){o.m(r,l),w(r,e,l)},p(r,l){i===(i=t(r))&&o?o.p(r,l):(o.d(1),o=i(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){o.d(r),r&&k(e)}}}function ak(n){var s;let e,t,i,o,r,l=((s=n[0])==null?void 0:s.length)&&Fu(n);return{c(){e=g("tr"),t=g("td"),i=g("h6"),i.textContent="No logs found.",o=$(),l&&l.c(),r=$(),p(t,"colspan","99"),p(t,"class","txt-center txt-hint p-xs")},m(a,f){w(a,e,f),m(e,t),m(t,i),m(t,o),l&&l.m(t,null),m(e,r)},p(a,f){var c;(c=a[0])!=null&&c.length?l?l.p(a,f):(l=Fu(a),l.c(),l.m(t,null)):l&&(l.d(1),l=null)},d(a){a&&k(e),l&&l.d()}}}function fk(n){let e;return{c(){e=g("tr"),e.innerHTML=`<td colspan="99" class="p-xs"><span class="skeleton-loader"></span></td>
|
|
|
|
|
`},m(t,i){w(t,e,i)},p:le,d(t){t&&k(e)}}}function Fu(n){let e,t,i;return{c(){e=g("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(o,r){w(o,e,r),t||(i=X(e,"click",n[18]),t=!0)},p:le,d(o){o&&k(e),t=!1,i()}}}function Lu(n){let e;return{c(){e=g("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 Iu(n,e){var oe,J,$e;let t,i,o,r=((oe=e[21].method)==null?void 0:oe.toUpperCase())+"",l,s,a,f,c,u=e[21].url+"",d,h,b,v,_,y,S=(e[21].referer||"N/A")+"",C,x,M,A,O,D=e[21].status+"",E,P,I,R,G,U,z,K,Y,W,te=(((J=e[21].meta)==null?void 0:J.errorMessage)||(($e=e[21].meta)==null?void 0:$e.errorData))&&Lu();R=new Ci({props:{date:e[21].created}});function ce(){return e[16](e[21])}function ve(...ee){return e[17](e[21],...ee)}return{key:n,first:null,c(){t=g("tr"),i=g("td"),o=g("span"),l=j(r),a=$(),f=g("td"),c=g("span"),d=j(u),b=$(),te&&te.c(),v=$(),_=g("td"),y=g("span"),C=j(S),M=$(),A=g("td"),O=g("span"),E=j(D),P=$(),I=g("td"),V(R.$$.fragment),G=$(),U=g("td"),U.innerHTML='<i class="ri-arrow-right-line"></i>',z=$(),p(o,"class",s="label txt-uppercase "+e[9][e[21].method.toLowerCase()]),p(i,"class","col-type-text col-field-method min-width"),p(c,"class","txt txt-ellipsis"),p(c,"title",h=e[21].url),p(f,"class","col-type-text col-field-url"),p(y,"class","txt txt-ellipsis"),p(y,"title",x=e[21].referer),ne(y,"txt-hint",!e[21].referer),p(_,"class","col-type-text col-field-referer"),p(O,"class","label"),ne(O,"label-danger",e[21].status>=400),p(A,"class","col-type-number col-field-status"),p(I,"class","col-type-date col-field-created"),p(U,"class","col-type-action min-width"),p(t,"tabindex","0"),p(t,"class","row-handle"),this.first=t},m(ee,_e){w(ee,t,_e),m(t,i),m(i,o),m(o,l),m(t,a),m(t,f),m(f,c),m(c,d),m(f,b),te&&te.m(f,null),m(t,v),m(t,_),m(_,y),m(y,C),m(t,M),m(t,A),m(A,O),m(O,E),m(t,P),m(t,I),H(R,I,null),m(t,G),m(t,U),m(t,z),K=!0,Y||(W=[X(t,"click",ce),X(t,"keydown",ve)],Y=!0)},p(ee,_e){var ie,ye,Ne;e=ee,(!K||_e&8)&&r!==(r=((ie=e[21].method)==null?void 0:ie.toUpperCase())+"")&&ge(l,r),(!K||_e&8&&s!==(s="label txt-uppercase "+e[9][e[21].method.toLowerCase()]))&&p(o,"class",s),(!K||_e&8)&&u!==(u=e[21].url+"")&&ge(d,u),(!K||_e&8&&h!==(h=e[21].url))&&p(c,"title",h),((ye=e[21].meta)==null?void 0:ye.errorMessage)||((Ne=e[21].meta)==null?void 0:Ne.errorData)?te||(te=Lu(),te.c(),te.m(f,null)):te&&(te.d(1),te=null),(!K||_e&8)&&S!==(S=(e[21].referer||"N/A")+"")&&ge(C,S),(!K||_e&8&&x!==(x=e[21].referer))&&p(y,"title",x),_e&8&&ne(y,"txt-hint",!e[21].referer),(!K||_e&8)&&D!==(D=e[21].status+"")&&ge(E,D),_e&8&&ne(O,"label-danger",e[21].status>=400);const fe={};_e&8&&(fe.date=e[21].created),R.$set(fe)},i(ee){K||(T(R.$$.fragment,ee),K=!0)},o(ee){F(R.$$.fragment,ee),K=!1},d(ee){ee&&k(t),te&&te.d(),q(R),Y=!1,rt(W)}}}function Ru(n){let e,t,i=n[3].length+"",o,r,l;return{c(){e=g("small"),t=j("Showing "),o=j(i),r=j(" of "),l=j(n[4]),p(e,"class","block txt-hint txt-right m-t-sm")},m(s,a){w(s,e,a),m(e,t),m(e,o),m(e,r),m(e,l)},p(s,a){a&8&&i!==(i=s[3].length+"")&&ge(o,i),a&16&&ge(l,s[4])},d(s){s&&k(e)}}}function Nu(n){let e,t,i,o,r=n[4]-n[3].length+"",l,s,a,f;return{c(){e=g("div"),t=g("button"),i=g("span"),o=j("Load more ("),l=j(r),s=j(")"),p(i,"class","txt"),p(t,"type","button"),p(t,"class","btn btn-lg btn-secondary btn-expanded"),ne(t,"btn-loading",n[6]),ne(t,"btn-disabled",n[6]),p(e,"class","block txt-center m-t-xs")},m(c,u){w(c,e,u),m(e,t),m(t,i),m(i,o),m(i,l),m(i,s),a||(f=X(t,"click",n[19]),a=!0)},p(c,u){u&24&&r!==(r=c[4]-c[3].length+"")&&ge(l,r),u&64&&ne(t,"btn-loading",c[6]),u&64&&ne(t,"btn-disabled",c[6])},d(c){c&&k(e),a=!1,f()}}}function ck(n){let e,t,i,o,r,l,s,a,f,c,u,d,h,b,v,_,y,S,C,x,M,A,O=[],D=new Map,E,P,I,R;function G(ie){n[11](ie)}let U={disable:!0,class:"col-field-method",name:"method",$$slots:{default:[ik]},$$scope:{ctx:n}};n[1]!==void 0&&(U.sort=n[1]),r=new en({props:U}),he.push(()=>Fe(r,"sort",G));function z(ie){n[12](ie)}let K={disable:!0,class:"col-type-text col-field-url",name:"url",$$slots:{default:[ok]},$$scope:{ctx:n}};n[1]!==void 0&&(K.sort=n[1]),a=new en({props:K}),he.push(()=>Fe(a,"sort",z));function Y(ie){n[13](ie)}let W={disable:!0,class:"col-type-text col-field-referer",name:"referer",$$slots:{default:[rk]},$$scope:{ctx:n}};n[1]!==void 0&&(W.sort=n[1]),u=new en({props:W}),he.push(()=>Fe(u,"sort",Y));function te(ie){n[14](ie)}let ce={disable:!0,class:"col-type-number col-field-status",name:"status",$$slots:{default:[lk]},$$scope:{ctx:n}};n[1]!==void 0&&(ce.sort=n[1]),b=new en({props:ce}),he.push(()=>Fe(b,"sort",te));function ve(ie){n[15](ie)}let oe={disable:!0,class:"col-type-date col-field-created",name:"created",$$slots:{default:[sk]},$$scope:{ctx:n}};n[1]!==void 0&&(oe.sort=n[1]),y=new en({props:oe}),he.push(()=>Fe(y,"sort",ve));let J=n[3];const $e=ie=>ie[21].id;for(let ie=0;ie<J.length;ie+=1){let ye=Eu(n,J,ie),Ne=$e(ye);D.set(Ne,O[ie]=Iu(Ne,ye))}let ee=
Line truncated
|
|
|
|
|
* Chart.js v3.8.0
|
|
|
|
@@ -60,7 +60,7 @@ const I1=function(){const e=document.createElement("link").relList;if(e&&e.suppo
|
|
|
|
|
<br/>
|
|
|
|
|
<code>@request.user.id!=null && created>"2022-01-01 00:00:00"</code>`,p(o,"class","m-b-0"),p(l,"class","inline-flex flex-gap-5"),p(b,"class","m-t-10 m-b-5"),p(_,"class","m-b-0"),p(S,"class","inline-flex flex-gap-5"),p(x,"class","m-t-10 m-b-5"),p(A,"class","m-b-0"),p(D,"class","inline-flex flex-gap-5"),p(P,"class","m-t-10 m-b-5"),p(i,"class","content"),p(t,"class","alert alert-warning m-0")},m(Y,W){w(Y,e,W),m(e,t),m(t,i),m(i,o),m(i,r),m(i,l),m(l,s),m(l,a),m(l,f),m(l,c),m(l,u),m(l,d);for(let te=0;te<K.length;te+=1)K[te].m(l,null);m(i,h),m(i,b),m(i,v),m(i,_),m(i,y),m(i,S),m(i,C),m(i,x),m(i,M),m(i,A),m(i,O),m(i,D),m(i,E),m(i,P),m(i,I),m(i,R),U=!0},p(Y,W){if(W&1){z=Y[0].schema;let te;for(te=0;te<z.length;te+=1){const ce=Bp(Y,z,te);K[te]?K[te].p(ce,W):(K[te]=Wp(ce),K[te].c(),K[te].m(l,null))}for(;te<K.length;te+=1)K[te].d(1);K.length=z.length}},i(Y){U||(Y&&Dt(()=>{G||(G=ct(e,fn,{duration:150},!0)),G.run(1)}),U=!0)},o(Y){Y&&(G||(G=ct(e,fn,{duration:150},!1)),G.run(0)),U=!1},d(Y){Y&&k(e),qn(K,Y),Y&&G&&G.end()}}}function kx(n){let e,t=n[19].name+"",i;return{c(){e=g("code"),i=j(t)},m(o,r){w(o,e,r),m(e,i)},p(o,r){r&1&&t!==(t=o[19].name+"")&&ge(i,t)},d(o){o&&k(e)}}}function wx(n){let e,t=n[19].name+"",i,o;return{c(){e=g("code"),i=j(t),o=j(".*")},m(r,l){w(r,e,l),m(e,i),m(e,o)},p(r,l){l&1&&t!==(t=r[19].name+"")&&ge(i,t)},d(r){r&&k(e)}}}function Wp(n){let e;function t(r,l){return r[19].type==="relation"||r[19].type==="user"?wx:kx}let i=t(n),o=i(n);return{c(){o.c(),e=lt()},m(r,l){o.m(r,l),w(r,e,l)},p(r,l){i===(i=t(r))&&o?o.p(r,l):(o.d(1),o=i(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){o.d(r),r&&k(e)}}}function Sx(n){let e=[],t=new Map,i,o,r=Object.entries(n[6]);const l=s=>s[14];for(let s=0;s<r.length;s+=1){let a=Vp(n,r,s),f=l(a);t.set(f,e[s]=Yp(f,a))}return{c(){for(let s=0;s<e.length;s+=1)e[s].c();i=lt()},m(s,a){for(let f=0;f<e.length;f+=1)e[f].m(s,a);w(s,i,a),o=!0},p(s,a){a&262235&&(r=Object.entries(s[6]),Ae(),e=st(e,a,l,1,s,r,t,i.parentNode,Pt,Yp,i,Vp),De())},i(s){if(!o){for(let a=0;a<r.length;a+=1)T(e[a]);o=!0}},o(s){for(let a=0;a<e.length;a+=1)F(e[a]);o=!1},d(s){for(let a=0;a<e.length;a+=1)e[a].d(s);s&&k(i)}}}function Cx(n){let e;return{c(){e=g("div"),e.innerHTML='<span class="loader"></span>',p(e,"class","txt-center")},m(t,i){w(t,e,i)},p:le,i:le,o:le,d(t){t&&k(e)}}}function xx(n){let e,t,i;function o(){return n[9](n[14])}return{c(){e=g("button"),e.innerHTML='<i class="ri-lock-line"></i>',p(e,"type","button"),p(e,"class","rule-toggle-btn btn btn-circle btn-outline svelte-fjxz7k")},m(r,l){w(r,e,l),t||(i=[Xe(St.call(null,e,"Lock and set to Admins only")),X(e,"click",o)],t=!0)},p(r,l){n=r},d(r){r&&k(e),t=!1,rt(i)}}}function Mx(n){let e,t,i;function o(){return n[8](n[14])}return{c(){e=g("button"),e.innerHTML='<i class="ri-lock-unlock-line"></i>',p(e,"type","button"),p(e,"class","rule-toggle-btn btn btn-circle btn-outline btn-success svelte-fjxz7k")},m(r,l){w(r,e,l),t||(i=[Xe(St.call(null,e,"Unlock and set custom rule")),X(e,"click",o)],t=!0)},p(r,l){n=r},d(r){r&&k(e),t=!1,rt(i)}}}function $x(n){let e;return{c(){e=j("Leave empty to grant everyone access")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function Ax(n){let e;return{c(){e=j("Only admins will be able to access (unlock to change)")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function Dx(n){let e,t=n[15]+"",i,o,r=Ii(n[0][n[14]])?"Admins only":"Custom rule",l,s,a,f,c=n[14],u,d,h,b,v,_,y;function S(){return n[10](n[14])}const C=()=>n[11](f,c),x=()=>n[11](null,c);function M(I){n[12](I,n[14])}var A=n[4];function O(I){let R={baseCollection:I[0],disabled:Ii(I[0][I[14]])};return I[0][I[14]]!==void 0&&(R.value=I[0][I[14]]),{props:R}}A&&(f=new A(O(n)),C(),he.push(()=>Fe(f,"value",M)));function D(I,R){return R&1&&(b=null),b==null&&(b=!!Ii(I[0][I[14]])),b?Ax:$x}let E=D(n,-1),P=E(n);return{c(){e=g("label"),i=j(t),o=j(" - "),l=j(r),a=$(),f&&V(f.$$.fragment),d=$(),h=g("div"),P.c(),p(e,"for",s=n[18]),p(h,"class","help-block")},m(I,R){w(I,e,R),m(e,i),m(e,o),m(e,l),w(I,a,R),f&&H(f,I,R),w(I,d,R),w(I,h,R),P.m(h,null),v=!0,_||(y=X(e,"click",S),_=!0)},p(I,R){n=I,(!v||R&1)&&r!==(r=Ii(n[0][n[14]])?"Admins only":"Custom rule")&&ge(l,r),(!v||R&262144&&s!==(s=n[18]))&&p(e,"for",s),c!==n[14]&&(x(),c=n[14],C());const G={};if(R&1&&(G.baseCollection=n[0]),R&1&&(G.disabled=Ii(n[0][n[14]])),!u&&R&65&&(u=!0,G.value=n[0][n[14]],Re(()=>u=!1)),A!==(A=n[4])){if(f){Ae();const U=f;F(U.$$.fragment,1,0,()=>{q(U,1)}),De()}A?(f=new A(O(n)),C(),he.push(()=>Fe(f,"value",M)),V(f.$$.fragment),T(f.$$.fragment,1),H(f,d.parentNode,d)):f=null}else A&&f.$set(G);E!==(E=D(n,R))&&(P.d(1),P=E(n),P&&(P.c(),P.m(h,null)))},i(I){v||(f&&T(f.$$.fragment,I),v=!0)},o(I){f&&F(f.$$.fragment,I),v=!1},d(I){I&&k(e),I&&k(a),x(),f&&q(f,I),I&&k(d),I&&k(h),P.d(),_=!1,y()}}}function Yp(n,e){let t,i,o,r,l,s,a,f;function c(h,b){return b&1&&(r=null),r==null&&(r=!!Ii(h[0][h[14]])),r?Mx:xx}let u=c(e,-1),d=u(e);return s=new je({props:{class:"form-field rule-field m-0 "+(Ii(e[0][e[14]])?"disabled":""),name:e[14],$$slots:{defaLine truncated
|
|
|
|
|
<a href="https://pocketbase.io/docs/manage-collections#rules-filters-syntax" target="_blank" rel="noopener">PocketBase filter syntax and operators
|
|
|
|
|
</a>.`,o=$(),r=g("span"),s=j(l),a=$(),_&&_.c(),f=$(),u.c(),d=lt(),p(r,"class","expand-handle txt-sm txt-bold txt-nowrap link-hint"),p(t,"class","flex"),p(e,"class","block m-b-base")},m(x,M){w(x,e,M),m(e,t),m(t,i),m(t,o),m(t,r),m(r,s),m(e,a),_&&_.m(e,null),w(x,f,M),S[c].m(x,M),w(x,d,M),h=!0,b||(v=X(r,"click",n[7]),b=!0)},p(x,[M]){(!h||M&4)&&l!==(l=x[2]?"Hide available fields":"Show available fields")&&ge(s,l),x[2]?_?(_.p(x,M),M&4&&T(_,1)):(_=Up(x),_.c(),T(_,1),_.m(e,null)):_&&(Ae(),F(_,1,1,()=>{_=null}),De());let A=c;c=C(x),c===A?S[c].p(x,M):(Ae(),F(S[A],1,1,()=>{S[A]=null}),De(),u=S[c],u?u.p(x,M):(u=S[c]=y[c](x),u.c()),T(u,1),u.m(d.parentNode,d))},i(x){h||(T(_),T(u),h=!0)},o(x){F(_),F(u),h=!1},d(x){x&&k(e),_&&_.d(),x&&k(f),S[c].d(x),x&&k(d),b=!1,v()}}}function Ii(n){return n===null}function Tx(n,e,t){let{collection:i=new En}=e,o={},r=!1,l={},s,a=!1;const f={listRule:"List Action",viewRule:"View Action",createRule:"Create Action",updateRule:"Update Action",deleteRule:"Delete Action"};async function c(){t(5,a=!0);try{t(4,s=(await _i(()=>import("./FilterAutocompleteInput.15d21df7.js"),[])).default)}catch(y){console.warn(y),t(4,s=null)}t(5,a=!1)}di(()=>{c()});const u=()=>t(2,r=!r),d=async y=>{var S;t(0,i[y]=o[y]||"",i),await Bi(),(S=l[y])==null||S.focus()},h=y=>{t(1,o[y]=i[y],o),t(0,i[y]=null,i)},b=y=>{var S;return(S=l[y])==null?void 0:S.focus()};function v(y,S){he[y?"unshift":"push"](()=>{l[S]=y,t(3,l)})}function _(y,S){n.$$.not_equal(i[S],y)&&(i[S]=y,t(0,i))}return n.$$set=y=>{"collection"in y&&t(0,i=y.collection)},[i,o,r,l,s,a,f,u,d,h,b,v,_]}class Ex extends Ie{constructor(e){super(),Le(this,e,Tx,Ox,Ee,{collection:0})}}function Gp(n,e,t){const i=n.slice();return i[14]=e[t],i}function Kp(n,e,t){const i=n.slice();return i[14]=e[t],i}function Jp(n){let e;return{c(){e=g("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 Zp(n){let e,t,i,o,r=n[1].originalName+"",l,s,a,f,c,u=n[1].name+"",d;return{c(){e=g("li"),t=g("div"),i=j(`Renamed collection
|
|
|
|
|
</a>.`,o=$(),r=g("span"),s=j(l),a=$(),_&&_.c(),f=$(),u.c(),d=lt(),p(r,"class","expand-handle txt-sm txt-bold txt-nowrap link-hint"),p(t,"class","flex"),p(e,"class","block m-b-base")},m(x,M){w(x,e,M),m(e,t),m(t,i),m(t,o),m(t,r),m(r,s),m(e,a),_&&_.m(e,null),w(x,f,M),S[c].m(x,M),w(x,d,M),h=!0,b||(v=X(r,"click",n[7]),b=!0)},p(x,[M]){(!h||M&4)&&l!==(l=x[2]?"Hide available fields":"Show available fields")&&ge(s,l),x[2]?_?(_.p(x,M),M&4&&T(_,1)):(_=Up(x),_.c(),T(_,1),_.m(e,null)):_&&(Ae(),F(_,1,1,()=>{_=null}),De());let A=c;c=C(x),c===A?S[c].p(x,M):(Ae(),F(S[A],1,1,()=>{S[A]=null}),De(),u=S[c],u?u.p(x,M):(u=S[c]=y[c](x),u.c()),T(u,1),u.m(d.parentNode,d))},i(x){h||(T(_),T(u),h=!0)},o(x){F(_),F(u),h=!1},d(x){x&&k(e),_&&_.d(),x&&k(f),S[c].d(x),x&&k(d),b=!1,v()}}}function Ii(n){return n===null}function Tx(n,e,t){let{collection:i=new En}=e,o={},r=!1,l={},s,a=!1;const f={listRule:"List Action",viewRule:"View Action",createRule:"Create Action",updateRule:"Update Action",deleteRule:"Delete Action"};async function c(){t(5,a=!0);try{t(4,s=(await _i(()=>import("./FilterAutocompleteInput.3cd8dab2.js"),[])).default)}catch(y){console.warn(y),t(4,s=null)}t(5,a=!1)}di(()=>{c()});const u=()=>t(2,r=!r),d=async y=>{var S;t(0,i[y]=o[y]||"",i),await Bi(),(S=l[y])==null||S.focus()},h=y=>{t(1,o[y]=i[y],o),t(0,i[y]=null,i)},b=y=>{var S;return(S=l[y])==null?void 0:S.focus()};function v(y,S){he[y?"unshift":"push"](()=>{l[S]=y,t(3,l)})}function _(y,S){n.$$.not_equal(i[S],y)&&(i[S]=y,t(0,i))}return n.$$set=y=>{"collection"in y&&t(0,i=y.collection)},[i,o,r,l,s,a,f,u,d,h,b,v,_]}class Ex extends Ie{constructor(e){super(),Le(this,e,Tx,Ox,Ee,{collection:0})}}function Gp(n,e,t){const i=n.slice();return i[14]=e[t],i}function Kp(n,e,t){const i=n.slice();return i[14]=e[t],i}function Jp(n){let e;return{c(){e=g("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 Zp(n){let e,t,i,o,r=n[1].originalName+"",l,s,a,f,c,u=n[1].name+"",d;return{c(){e=g("li"),t=g("div"),i=j(`Renamed collection
|
|
|
|
|
`),o=g("strong"),l=j(r),s=$(),a=g("i"),f=$(),c=g("strong"),d=j(u),p(o,"class","txt-strikethrough txt-hint"),p(a,"class","ri-arrow-right-line txt-sm"),p(c,"class","txt"),p(t,"class","inline-flex")},m(h,b){w(h,e,b),m(e,t),m(t,i),m(t,o),m(o,l),m(t,s),m(t,a),m(t,f),m(t,c),m(c,d)},p(h,b){b&2&&r!==(r=h[1].originalName+"")&&ge(l,r),b&2&&u!==(u=h[1].name+"")&&ge(d,u)},d(h){h&&k(e)}}}function Xp(n){let e,t,i,o,r=n[14].originalName+"",l,s,a,f,c,u=n[14].name+"",d;return{c(){e=g("li"),t=g("div"),i=j(`Renamed field
|
|
|
|
|
`),o=g("strong"),l=j(r),s=$(),a=g("i"),f=$(),c=g("strong"),d=j(u),p(o,"class","txt-strikethrough txt-hint"),p(a,"class","ri-arrow-right-line txt-sm"),p(c,"class","txt"),p(t,"class","inline-flex")},m(h,b){w(h,e,b),m(e,t),m(t,i),m(t,o),m(o,l),m(t,s),m(t,a),m(t,f),m(t,c),m(c,d)},p(h,b){b&16&&r!==(r=h[14].originalName+"")&&ge(l,r),b&16&&u!==(u=h[14].name+"")&&ge(d,u)},d(h){h&&k(e)}}}function Qp(n){let e,t,i,o=n[14].name+"",r,l;return{c(){e=g("li"),t=j("Removed field "),i=g("span"),r=j(o),l=$(),p(i,"class","txt-bold"),p(e,"class","txt-danger")},m(s,a){w(s,e,a),m(e,t),m(e,i),m(i,r),m(e,l)},p(s,a){a&8&&o!==(o=s[14].name+"")&&ge(r,o)},d(s){s&&k(e)}}}function Px(n){let e,t,i,o,r,l,s,a,f,c,u,d,h=n[3].length&&Jp(),b=n[5]&&Zp(n),v=n[4],_=[];for(let C=0;C<v.length;C+=1)_[C]=Xp(Kp(n,v,C));let y=n[3],S=[];for(let C=0;C<y.length;C+=1)S[C]=Qp(Gp(n,y,C));return{c(){e=g("div"),t=g("div"),t.innerHTML='<i class="ri-error-warning-line"></i>',i=$(),o=g("div"),r=g("p"),r.textContent=`If any of the following changes is part of another collection rule or filter, you'll have to
|
|
|
|
|
update it manually!`,l=$(),h&&h.c(),s=$(),a=g("h6"),a.textContent="Changes:",f=$(),c=g("ul"),b&&b.c(),u=$();for(let C=0;C<_.length;C+=1)_[C].c();d=$();for(let C=0;C<S.length;C+=1)S[C].c();p(t,"class","icon"),p(o,"class","content txt-bold"),p(e,"class","alert alert-warning"),p(c,"class","changes-list svelte-1ghly2p")},m(C,x){w(C,e,x),m(e,t),m(e,i),m(e,o),m(o,r),m(o,l),h&&h.m(o,null),w(C,s,x),w(C,a,x),w(C,f,x),w(C,c,x),b&&b.m(c,null),m(c,u);for(let M=0;M<_.length;M+=1)_[M].m(c,null);m(c,d);for(let M=0;M<S.length;M+=1)S[M].m(c,null)},p(C,x){if(C[3].length?h||(h=Jp(),h.c(),h.m(o,null)):h&&(h.d(1),h=null),C[5]?b?b.p(C,x):(b=Zp(C),b.c(),b.m(c,u)):b&&(b.d(1),b=null),x&16){v=C[4];let M;for(M=0;M<v.length;M+=1){const A=Kp(C,v,M);_[M]?_[M].p(A,x):(_[M]=Xp(A),_[M].c(),_[M].m(c,d))}for(;M<_.length;M+=1)_[M].d(1);_.length=v.length}if(x&8){y=C[3];let M;for(M=0;M<y.length;M+=1){const A=Gp(C,y,M);S[M]?S[M].p(A,x):(S[M]=Qp(A),S[M].c(),S[M].m(c,null))}for(;M<S.length;M+=1)S[M].d(1);S.length=y.length}},d(C){C&&k(e),h&&h.d(),C&&k(s),C&&k(a),C&&k(f),C&&k(c),b&&b.d(),qn(_,C),qn(S,C)}}}function Fx(n){let e;return{c(){e=g("h4"),e.textContent="Confirm collection changes"},m(t,i){w(t,e,i)},p:le,d(t){t&&k(e)}}}function Lx(n){let e,t,i,o,r;return{c(){e=g("button"),e.innerHTML='<span class="txt">Cancel</span>',t=$(),i=g("button"),i.innerHTML='<span class="txt">Confirm</span>',e.autofocus=!0,p(e,"type","button"),p(e,"class","btn btn-secondary"),p(i,"type","button"),p(i,"class","btn btn-expanded")},m(l,s){w(l,e,s),w(l,t,s),w(l,i,s),e.focus(),o||(r=[X(e,"click",n[8]),X(i,"click",n[9])],o=!0)},p:le,d(l){l&&k(e),l&&k(t),l&&k(i),o=!1,rt(r)}}}function Ix(n){let e,t,i={class:"confirm-changes-panel",popup:!0,$$slots:{footer:[Lx],header:[Fx],default:[Px]},$$scope:{ctx:n}};return e=new Ai({props:i}),n[10](e),e.$on("hide",n[11]),e.$on("show",n[12]),{c(){V(e.$$.fragment)},m(o,r){H(e,o,r),t=!0},p(o,[r]){const l={};r&524346&&(l.$$scope={dirty:r,ctx:o}),e.$set(l)},i(o){t||(T(e.$$.fragment,o),t=!0)},o(o){F(e.$$.fragment,o),t=!1},d(o){n[10](null),q(e,o)}}}function Rx(n,e,t){let i,o,r;const l=yn();let s,a;async function f(y){t(1,a=y),await Bi(),!i&&!o.length&&!r.length?u():s==null||s.show()}function c(){s==null||s.hide()}function u(){c(),l("confirm")}const d=()=>c(),h=()=>u();function b(y){he[y?"unshift":"push"](()=>{s=y,t(2,s)})}function v(y){ft.call(this,n,y)}function _(y){ft.call(this,n,y)}return n.$$.update=()=>{n.$$.dirty&2&&t(5,i=(a==null?void 0:a.originalName)!=(a==null?void 0:a.name)),n.$$.dirty&2&&t(4,o=(a==null?void 0:a.schema.filter(y=>y.id&&!y.toDelete&&y.originalName!=y.name))||[]),n.$$.dirty&2&&t(3,r=(a==null?void 0:a.schema.filter(y=>y.id&&y.toDelete))||[])},[c,a,s,r,o,i,u,f,d,h,b,v,_]}class Nx extends Ie{constructor(e){super(),Le(this,e,Rx,Ix,Ee,{show:7,hide:0})}get show(){return this.$$.ctx[7]}get hide(){return this.$$.ctx[0]}}function eh(n){let e,t,i,o;function r(s){n[26](s)}let l={};return n[2]!==void 0&&(l.collection=n[2]),t=new Ex({props:l}),he.push(()=>Fe(t,"collection",r)),{c(){e=g("div"),V(t.$$.fragment),p(e,"class","tab-item active")},m(s,a){w(s,e,a),H(t,e,null),o=!0},p(s,a){const f={};!i&&a[0]&4&&(i=!0,f.collection=s[2],Re(()=>i=!1)),t.$set(f)},i(s){o||(T(t.$$.fragment,s),o=!0)},o(s){F(t.$$.fragment,s),o=!1},d(s){s&&k(e),q(t)}}}function jx(n){let e,t,i,o,r,l;function s(c){n[25](c)}let a={};n[2]!==void 0&&(a.collection=n[2]),i=new yx({props:a}),he.push(()=>Fe(i,"collection",s));let f=n[9]===qr&&eh(n);return{c(){e=g("div"),t=g("div"),V(i.$$.fragment),r=$(),f&&f.c(),p(t,"class","tab-item"),ne(t,"active",n[9]===ho),p(e,"class","tabs-content svelte-b10vi")},m(c,u){w(c,e,u),m(e,t),H(i,t,null),m(e,r),f&&f.m(e,null),l=!0},p(c,u){const d={};!o&&u[0]&4&&(o=!0,d.collection=c[2],Re(()=>o=!1)),i.$set(d),u[0]&512&&ne(t,"active",c[9]===ho),c[9]===qr?f?(f.p(c,u),u[0]&512&&T(f,1)):(f=eh(c),f.c(),T(f,1),f.m(e,null)):f&&(Ae(),F(f,1,1,()=>{f=null}),De())},i(c){l||(T(i.$$.fragment,c),T(f),l=!0)},o(c){F(i.$$.fragment,c),F(f),l=!1},d(c){c&&k(e),q(i),f&&f.d()}}}function th(n){let e,t,i,o,r,l,s;return l=new vo({props:{class:"dropdown dropdown-right m-t-5",$$slots:{default:[zx]},$$scope:{ctx:n}}}),{c(){e=g("div"),t=$(),i=g("button"),o=g("i"),r=$(),V(l.$$.fragment),p(e,"class","flex-fill"),p(o,"class","ri-more-line"),p(i,"type","button"),p(i,"class","btn btn-sm btn-circle btn-secondary flex-gap-0")},m(a,f){w(a,e,f),w(a,t,f),w(a,i,f),m(i,o),m(i,r),H(l,i,null),s=!0},p(a,f){const c={};f[1]&256&&(c.$$scope={dirty:f,ctx:a}),l.$set(c)},i(a){s||(T(l.$$.fragment,a),s=!0)},o(a){F(l.$$.fragment,a),s=!1},d(a){a&&k(e),a&&k(t),a&&k(i),q(l)}}}function zx(n){let e,t,i;return{c(){e=g("button"),e.innerHTML=`<i class="ri-delete-bin-7-line"></i>
|
|
|
|
@@ -357,7 +357,7 @@ const I1=function(){const e=document.createElement("link").relList;if(e&&e.suppo
|
|
|
|
|
This field is disabled if "Only domains" is set.`,position:"top"})),d=!0)},p(_,y){(!u||y&65536&&r!==(r=_[16]))&&p(e,"for",r);const S={};y&65536&&(S.id=_[16]),y&1&&(S.disabled=!B.isEmpty(_[0].onlyDomains)),!a&&y&1&&(a=!0,S.value=_[0].exceptDomains,Re(()=>a=!1)),s.$set(S)},i(_){u||(T(s.$$.fragment,_),u=!0)},o(_){F(s.$$.fragment,_),u=!1},d(_){_&&k(e),_&&k(l),q(s,_),_&&k(f),_&&k(c),d=!1,h()}}}function GD(n){let e,t,i,o,r,l,s,a,f,c,u,d,h;function b(_){n[11](_)}let v={id:n[16]+".config.onlyDomains",disabled:!B.isEmpty(n[0].exceptDomains)};return n[0].onlyDomains!==void 0&&(v.value=n[0].onlyDomains),s=new ko({props:v}),he.push(()=>Fe(s,"value",b)),{c(){e=g("label"),t=g("span"),t.textContent="Only domains",i=$(),o=g("i"),l=$(),V(s.$$.fragment),f=$(),c=g("div"),c.textContent="Use comma as separator.",p(t,"class","txt"),p(o,"class","ri-information-line link-hint"),p(e,"for",r=n[16]+".config.onlyDomains"),p(c,"class","help-block")},m(_,y){w(_,e,y),m(e,t),m(e,i),m(e,o),w(_,l,y),H(s,_,y),w(_,f,y),w(_,c,y),u=!0,d||(h=Xe(St.call(null,o,{text:`Email domains that are ONLY allowed to sign up.
|
|
|
|
|
This field is disabled if "Except domains" is set.`,position:"top"})),d=!0)},p(_,y){(!u||y&65536&&r!==(r=_[16]+".config.onlyDomains"))&&p(e,"for",r);const S={};y&65536&&(S.id=_[16]+".config.onlyDomains"),y&1&&(S.disabled=!B.isEmpty(_[0].exceptDomains)),!a&&y&1&&(a=!0,S.value=_[0].onlyDomains,Re(()=>a=!1)),s.$set(S)},i(_){u||(T(s.$$.fragment,_),u=!0)},o(_){F(s.$$.fragment,_),u=!1},d(_){_&&k(e),_&&k(l),q(s,_),_&&k(f),_&&k(c),d=!1,h()}}}function KD(n){let e,t,i,o;e=new je({props:{class:"form-field form-field-toggle m-b-0",name:"emailPassword.enabled",$$slots:{default:[UD,({uniqueId:l})=>({16:l}),({uniqueId:l})=>l?65536:0]},$$scope:{ctx:n}}});let r=n[0].enabled&&xb(n);return{c(){V(e.$$.fragment),t=$(),r&&r.c(),i=lt()},m(l,s){H(e,l,s),w(l,t,s),r&&r.m(l,s),w(l,i,s),o=!0},p(l,s){const a={};s&196609&&(a.$$scope={dirty:s,ctx:l}),e.$set(a),l[0].enabled?r?(r.p(l,s),s&1&&T(r,1)):(r=xb(l),r.c(),T(r,1),r.m(i.parentNode,i)):r&&(Ae(),F(r,1,1,()=>{r=null}),De())},i(l){o||(T(e.$$.fragment,l),T(r),o=!0)},o(l){F(e.$$.fragment,l),F(r),o=!1},d(l){q(e,l),l&&k(t),r&&r.d(l),l&&k(i)}}}function JD(n){let e;return{c(){e=g("span"),e.textContent="Disabled",p(e,"class","label")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function ZD(n){let e;return{c(){e=g("span"),e.textContent="Enabled",p(e,"class","label label-success")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function Mb(n){let e,t,i,o,r,l;return{c(){e=g("i"),p(e,"class","ri-error-warning-fill txt-danger")},m(s,a){w(s,e,a),o=!0,r||(l=Xe(t=St.call(null,e,{text:"Has errors",position:"left"})),r=!0)},i(s){o||(Dt(()=>{i||(i=ct(e,Bn,{duration:150,start:.7},!0)),i.run(1)}),o=!0)},o(s){i||(i=ct(e,Bn,{duration:150,start:.7},!1)),i.run(0),o=!1},d(s){s&&k(e),s&&i&&i.end(),r=!1,l()}}}function XD(n){let e,t,i,o,r,l,s;function a(d,h){return d[0].enabled?ZD:JD}let f=a(n),c=f(n),u=n[2]&&Mb();return{c(){e=g("div"),e.innerHTML=`<i class="ri-mail-lock-line"></i>
|
|
|
|
|
<span class="txt">Email/Password</span>`,t=$(),c.c(),i=$(),o=g("div"),r=$(),u&&u.c(),l=lt(),p(e,"class","inline-flex"),p(o,"class","flex-fill")},m(d,h){w(d,e,h),w(d,t,h),c.m(d,h),w(d,i,h),w(d,o,h),w(d,r,h),u&&u.m(d,h),w(d,l,h),s=!0},p(d,h){f!==(f=a(d))&&(c.d(1),c=f(d),c&&(c.c(),c.m(i.parentNode,i))),d[2]?u?h&4&&T(u,1):(u=Mb(),u.c(),T(u,1),u.m(l.parentNode,l)):u&&(Ae(),F(u,1,1,()=>{u=null}),De())},i(d){s||(T(u),s=!0)},o(d){F(u),s=!1},d(d){d&&k(e),d&&k(t),c.d(d),d&&k(i),d&&k(o),d&&k(r),u&&u.d(d),d&&k(l)}}}function QD(n){let e,t;const i=[n[3]];let o={$$slots:{header:[XD],default:[KD]},$$scope:{ctx:n}};for(let r=0;r<i.length;r+=1)o=ut(o,i[r]);return e=new dc({props:o}),n[12](e),e.$on("expand",n[13]),e.$on("collapse",n[14]),e.$on("toggle",n[15]),{c(){V(e.$$.fragment)},m(r,l){H(e,r,l),t=!0},p(r,[l]){const s=l&8?bn(i,[pi(r[3])]):{};l&131077&&(s.$$scope={dirty:l,ctx:r}),e.$set(s)},i(r){t||(T(e.$$.fragment,r),t=!0)},o(r){F(e.$$.fragment,r),t=!1},d(r){n[12](null),q(e,r)}}}function eO(n,e,t){let i;const o=["config","expand","collapse","collapseSiblings"];let r=Wt(e,o),l;pn(n,go,x=>t(7,l=x));let{config:s={}}=e,a;function f(){a==null||a.expand()}function c(){a==null||a.collapse()}function u(){a==null||a.collapseSiblings()}function d(){s.enabled=this.checked,t(0,s)}function h(){s.minPasswordLength=At(this.value),t(0,s)}function b(x){n.$$.not_equal(s.exceptDomains,x)&&(s.exceptDomains=x,t(0,s))}function v(x){n.$$.not_equal(s.onlyDomains,x)&&(s.onlyDomains=x,t(0,s))}function _(x){he[x?"unshift":"push"](()=>{a=x,t(1,a)})}function y(x){ft.call(this,n,x)}function S(x){ft.call(this,n,x)}function C(x){ft.call(this,n,x)}return n.$$set=x=>{e=ut(ut({},e),ui(x)),t(3,r=Wt(e,o)),"config"in x&&t(0,s=x.config)},n.$$.update=()=>{n.$$.dirty&128&&t(2,i=!B.isEmpty(l==null?void 0:l.emailPassword))},[s,a,i,r,f,c,u,l,d,h,b,v,_,y,S,C]}class tO extends Ie{constructor(e){super(),Le(this,e,eO,QD,Ee,{config:0,expand:4,collapse:5,collapseSiblings:6})}get expand(){return this.$$.ctx[4]}get collapse(){return this.$$.ctx[5]}get collapseSiblings(){return this.$$.ctx[6]}}function nO(n){let e,t,i,o,r,l,s,a;return{c(){e=g("input"),i=$(),o=g("label"),r=j("Enable"),p(e,"type","checkbox"),p(e,"id",t=n[22]),p(o,"for",l=n[22])},m(f,c){w(f,e,c),e.checked=n[0].enabled,w(f,i,c),w(f,o,c),m(o,r),s||(a=X(e,"change",n[11]),s=!0)},p(f,c){c&4194304&&t!==(t=f[22])&&p(e,"id",t),c&1&&(e.checked=f[0].enabled),c&4194304&&l!==(l=f[22])&&p(o,"for",l)},d(f){f&&k(e),f&&k(i),f&&k(o),s=!1,a()}}}function $b(n){let e,t,i,o,r,l,s,a,f,c,u,d,h,b;r=new je({props:{class:"form-field required",name:n[1]+".clientId",$$slots:{default:[iO,({uniqueId:_})=>({22:_}),({uniqueId:_})=>_?4194304:0]},$$scope:{ctx:n}}}),a=new je({props:{class:"form-field required",name:n[1]+".clientSecret",$$slots:{default:[oO,({uniqueId:_})=>({22:_}),({uniqueId:_})=>_?4194304:0]},$$scope:{ctx:n}}}),u=new je({props:{class:"form-field",name:n[1]+".allowRegistrations",$$slots:{default:[rO,({uniqueId:_})=>({22:_}),({uniqueId:_})=>_?4194304:0]},$$scope:{ctx:n}}});let v=n[4]&&Ab(n);return{c(){e=g("div"),t=g("div"),i=$(),o=g("div"),V(r.$$.fragment),l=$(),s=g("div"),V(a.$$.fragment),f=$(),c=g("div"),V(u.$$.fragment),d=$(),v&&v.c(),p(t,"class","col-12 spacing"),p(o,"class","col-lg-6"),p(s,"class","col-lg-6"),p(c,"class","col-lg-12"),p(e,"class","grid")},m(_,y){w(_,e,y),m(e,t),m(e,i),m(e,o),H(r,o,null),m(e,l),m(e,s),H(a,s,null),m(e,f),m(e,c),H(u,c,null),m(e,d),v&&v.m(e,null),b=!0},p(_,y){const S={};y&2&&(S.name=_[1]+".clientId"),y&12582913&&(S.$$scope={dirty:y,ctx:_}),r.$set(S);const C={};y&2&&(C.name=_[1]+".clientSecret"),y&12582913&&(C.$$scope={dirty:y,ctx:_}),a.$set(C);const x={};y&2&&(x.name=_[1]+".allowRegistrations"),y&12582913&&(x.$$scope={dirty:y,ctx:_}),u.$set(x),_[4]?v?(v.p(_,y),y&16&&T(v,1)):(v=Ab(_),v.c(),T(v,1),v.m(e,null)):v&&(Ae(),F(v,1,1,()=>{v=null}),De())},i(_){b||(T(r.$$.fragment,_),T(a.$$.fragment,_),T(u.$$.fragment,_),T(v),_&&Dt(()=>{h||(h=ct(e,fn,{duration:200},!0)),h.run(1)}),b=!0)},o(_){F(r.$$.fragment,_),F(a.$$.fragment,_),F(u.$$.fragment,_),F(v),_&&(h||(h=ct(e,fn,{duration:200},!1)),h.run(0)),b=!1},d(_){_&&k(e),q(r),q(a),q(u),v&&v.d(),_&&h&&h.end()}}}function iO(n){let e,t,i,o,r,l,s,a;return{c(){e=g("label"),t=j("Client ID"),o=$(),r=g("input"),p(e,"for",i=n[22]),p(r,"type","text"),p(r,"id",l=n[22]),r.required=!0},m(f,c){w(f,e,c),m(e,t),w(f,o,c),w(f,r,c),Me(r,n[0].clientId),s||(a=X(r,"input",n[12]),s=!0)},p(f,c){c&4194304&&i!==(i=f[22])&&p(e,"for",i),c&4194304&&l!==(l=f[22])&&p(r,"id",l),c&1&&r.value!==f[0].clientId&&Me(r,f[0].clientId)},d(f){f&&k(e),f&&k(o),f&&k(r),s=!1,a()}}}function oO(n){let e,t,i,o,r,l,s;function a(c){n[13](c)}let f={id:n[22],required:!0};return n[0].clientSecret!==void 0&&(f.value=n[0].clientSecret),r=new mc({props:f}),he.push(()=>Fe(r,"value",a)),{c(){e=g("label"),t=j("Client Secret"),o=$(),V(r.$$.fragment),p(e,"for",i=n[22])},m(c,u){w(c,e,u),m(e,t),w(c,o,u),H(r,c,u),s=!0},p(c,u){(!s||u&4194304&&i!==(i=c[22]))&&p(e,"for",i);const d={};u&4194304&&(d.id=c[22]),!l&&u&Line truncated
|
|
|
|
|
<div class="breadcrumb-item">Auth providers</div></nav>`,r=$(),l=g("div"),s=g("form"),a=g("h6"),a.textContent="Manage the allowed users sign-in/sign-up methods.",f=$(),u.c(),p(o,"class","page-header"),p(a,"class","m-b-base"),p(s,"class","panel"),p(s,"autocomplete","off"),p(l,"class","wrapper"),p(i,"class","page-wrapper")},m(S,C){H(e,S,C),w(S,t,C),w(S,i,C),m(i,o),m(i,r),m(i,l),m(l,s),m(s,a),m(s,f),_[c].m(s,null),d=!0,h||(b=X(s,"submit",Gt(n[5])),h=!0)},p(S,[C]){let x=c;c=y(S),c===x?_[c].p(S,C):(Ae(),F(_[x],1,1,()=>{_[x]=null}),De(),u=_[c],u?u.p(S,C):(u=_[c]=v[c](S),u.c()),T(u,1),u.m(s,null))},i(S){d||(T(e.$$.fragment,S),T(u),d=!0)},o(S){F(e.$$.fragment,S),F(u),d=!1},d(S){q(e,S),S&&k(t),S&&k(i),_[c].d(),h=!1,b()}}}function _O(n,e,t){let i,o,r={},l=!1,s=!1,a="";B.setDocumentTitle("Auth providers"),f();async function f(){t(2,l=!0);try{const C=await Se.Settings.getAll()||{};u(C)}catch(C){Se.errorResponseHandler(C)}t(2,l=!1)}async function c(){if(!(s||!i)){t(3,s=!0);try{const C=await Se.Settings.update(B.filterRedactedProps(r));u(C),Ui({}),o==null||o.collapseSiblings(),hn("Successfully updated auth providers.")}catch(C){Se.errorResponseHandler(C)}t(3,s=!1)}}function u(C){C=C||{},t(0,r={}),t(0,r.emailAuth=Object.assign({enabled:!0},C.emailAuth),r);const x=["googleAuth","facebookAuth","githubAuth","gitlabAuth"];for(const M of x)t(0,r[M]=Object.assign({enabled:!1,allowRegistrations:!0},C[M]),r);t(6,a=JSON.stringify(r))}function d(C){he[C?"unshift":"push"](()=>{o=C,t(1,o)})}function h(C){n.$$.not_equal(r.emailAuth,C)&&(r.emailAuth=C,t(0,r))}function b(C){n.$$.not_equal(r.googleAuth,C)&&(r.googleAuth=C,t(0,r))}function v(C){n.$$.not_equal(r.facebookAuth,C)&&(r.facebookAuth=C,t(0,r))}function _(C){n.$$.not_equal(r.githubAuth,C)&&(r.githubAuth=C,t(0,r))}function y(C){n.$$.not_equal(r.gitlabAuth,C)&&(r.gitlabAuth=C,t(0,r))}const S=()=>c();return n.$$.update=()=>{n.$$.dirty&65&&t(4,i=a!=JSON.stringify(r))},[r,o,l,s,i,c,a,d,h,b,v,_,y,S]}class vO extends Ie{constructor(e){super(),Le(this,e,_O,gO,Ee,{})}}function Tb(n,e,t){const i=n.slice();return i[12]=e[t],i[13]=e,i[14]=t,i}function yO(n){let e=[],t=new Map,i,o,r,l,s,a,f,c,u,d,h=n[4];const b=v=>v[12].key;for(let v=0;v<h.length;v+=1){let _=Tb(n,h,v),y=b(_);t.set(y,e[v]=Eb(y,_))}return{c(){for(let v=0;v<e.length;v+=1)e[v].c();i=$(),o=g("div"),r=g("div"),l=$(),s=g("button"),a=g("span"),a.textContent="Save changes",p(r,"class","flex-fill"),p(a,"class","txt"),p(s,"type","submit"),p(s,"class","btn btn-expanded"),s.disabled=f=!n[3]||n[2],ne(s,"btn-loading",n[2]),p(o,"class","flex")},m(v,_){for(let y=0;y<e.length;y+=1)e[y].m(v,_);w(v,i,_),w(v,o,_),m(o,r),m(o,l),m(o,s),m(s,a),c=!0,u||(d=X(s,"click",n[9]),u=!0)},p(v,_){_&32785&&(h=v[4],Ae(),e=st(e,_,b,1,v,h,t,i.parentNode,Pt,Eb,i,Tb),De()),(!c||_&12&&f!==(f=!v[3]||v[2]))&&(s.disabled=f),_&4&&ne(s,"btn-loading",v[2])},i(v){if(!c){for(let _=0;_<h.length;_+=1)T(e[_]);c=!0}},o(v){for(let _=0;_<e.length;_+=1)F(e[_]);c=!1},d(v){for(let _=0;_<e.length;_+=1)e[_].d(v);v&&k(i),v&&k(o),u=!1,d()}}}function kO(n){let e;return{c(){e=g("div"),p(e,"class","loader")},m(t,i){w(t,e,i)},p:le,i:le,o:le,d(t){t&&k(e)}}}function wO(n){let e,t=n[12].label+"",i,o,r,l,s,a,f,c,u,d,h;function b(){n[7].call(s,n[12])}function v(){return n[8](n[12])}return{c(){e=g("label"),i=j(t),o=j(" duration (in seconds)"),l=$(),s=g("input"),f=$(),c=g("div"),u=g("span"),u.textContent="Invalidate all previosly issued tokens",p(e,"for",r=n[15]),p(s,"type","number"),p(s,"id",a=n[15]),s.required=!0,p(u,"class","link-primary"),ne(u,"txt-success",n[0][n[12].key].secret),p(c,"class","help-block")},m(_,y){w(_,e,y),m(e,i),m(e,o),w(_,l,y),w(_,s,y),Me(s,n[0][n[12].key].duration),w(_,f,y),w(_,c,y),m(c,u),d||(h=[X(s,"input",b),X(u,"click",v)],d=!0)},p(_,y){n=_,y&32768&&r!==(r=n[15])&&p(e,"for",r),y&32768&&a!==(a=n[15])&&p(s,"id",a),y&17&&At(s.value)!==n[0][n[12].key].duration&&Me(s,n[0][n[12].key].duration),y&17&&ne(u,"txt-success",n[0][n[12].key].secret)},d(_){_&&k(e),_&&k(l),_&&k(s),_&&k(f),_&&k(c),d=!1,rt(h)}}}function Eb(n,e){let t,i,o;return i=new je({props:{class:"form-field required",name:e[12].key+".duration",$$slots:{default:[wO,({uniqueId:r})=>({15:r}),({uniqueId:r})=>r?32768:0]},$$scope:{ctx:e}}}),{key:n,first:null,c(){t=lt(),V(i.$$.fragment),this.first=t},m(r,l){w(r,t,l),H(i,r,l),o=!0},p(r,l){e=r;const s={};l&98305&&(s.$$scope={dirty:l,ctx:e}),i.$set(s)},i(r){o||(T(i.$$.fragment,r),o=!0)},o(r){F(i.$$.fragment,r),o=!1},d(r){r&&k(t),q(i,r)}}}function SO(n){let e,t,i,o,r,l,s,a,f,c,u,d,h,b;e=new er({});const v=[kO,yO],_=[];function y(S,C){return S[1]?0:1}return c=y(n),u=_[c]=v[c](n),{c(){V(e.$$.fragment),t=$(),i=g("main"),o=g("header"),o.innerHTML=`<nav class="breadcrumbs"><div class="breadcrumb-item">Settings</div>
|
|
|
|
|
<div class="breadcrumb-item">Token options</div></nav>`,r=$(),l=g("div"),s=g("form"),a=g("div"),a.innerHTML="<p>Adjust common token options.</p>",f=$(),u.c(),p(o,"class","page-header"),p(a,"class","content m-b-sm txt-xl"),p(s,"class","panel"),p(s,"autocomplete","off"),p(l,"class","wrapper"),p(i,"class","page-wrapper")},m(S,C){H(e,S,C),w(S,t,C),w(S,i,C),m(i,o),m(i,r),m(i,l),m(l,s),m(s,a),m(s,f),_[c].m(s,null),d=!0,h||(b=X(s,"submit",Gt(n[5])),h=!0)},p(S,[C]){let x=c;c=y(S),c===x?_[c].p(S,C):(Ae(),F(_[x],1,1,()=>{_[x]=null}),De(),u=_[c],u?u.p(S,C):(u=_[c]=v[c](S),u.c()),T(u,1),u.m(s,null))},i(S){d||(T(e.$$.fragment,S),T(u),d=!0)},o(S){F(e.$$.fragment,S),F(u),d=!1},d(S){q(e,S),S&&k(t),S&&k(i),_[c].d(),h=!1,b()}}}function CO(n,e,t){let i;const o=[{key:"userAuthToken",label:"Users auth token"},{key:"userVerificationToken",label:"Users email verification token"},{key:"userPasswordResetToken",label:"Users password reset token"},{key:"userEmailChangeToken",label:"Users email change token"},{key:"adminAuthToken",label:"Admins auth token"},{key:"adminPasswordResetToken",label:"Admins password reset token"}];let r={},l=!1,s=!1,a="";B.setDocumentTitle("Token options"),f();async function f(){t(1,l=!0);try{const v=await Se.Settings.getAll()||{};u(v)}catch(v){Se.errorResponseHandler(v)}t(1,l=!1)}async function c(){if(!(s||!i)){t(2,s=!0);try{const v=await Se.Settings.update(B.filterRedactedProps(r));u(v),hn("Successfully saved tokens options.")}catch(v){Se.errorResponseHandler(v)}t(2,s=!1)}}function u(v){var _;v=v||{},t(0,r={});for(const y of o)t(0,r[y.key]={duration:((_=v[y.key])==null?void 0:_.duration)||0},r);t(6,a=JSON.stringify(r))}function d(v){r[v.key].duration=At(this.value),t(0,r)}const h=v=>{r[v.key].secret?(delete r[v.key].secret,t(0,r)):t(0,r[v.key].secret=B.randomString(50),r)},b=()=>c();return n.$$.update=()=>{n.$$.dirty&65&&t(3,i=a!=JSON.stringify(r))},[r,l,s,i,o,c,a,d,h,b]}class xO extends Ie{constructor(e){super(),Le(this,e,CO,SO,Ee,{})}}const MO={"/_elements":Zt({asyncComponent:()=>_i(()=>import("./Elements.c2e07307.js"),[])}),"/login":Zt({component:rD,conditions:[n=>!Se.AuthStore.isValid]}),"/request-password-reset":Zt({asyncComponent:()=>_i(()=>import("./PageAdminRequestPasswordReset.f5bd52f0.js"),[]),conditions:[n=>!Se.AuthStore.isValid]}),"/confirm-password-reset/:token":Zt({asyncComponent:()=>_i(()=>import("./PageAdminConfirmPasswordReset.a49a8974.js"),[]),conditions:[n=>!Se.AuthStore.isValid]}),"/collections":Zt({component:oA,conditions:[n=>Se.AuthStore.isValid]}),"/logs":Zt({component:mC,conditions:[n=>Se.AuthStore.isValid]}),"/users":Zt({component:AA,conditions:[n=>Se.AuthStore.isValid]}),"/users/confirm-password-reset/:token":Zt({asyncComponent:()=>_i(()=>import("./PageUserConfirmPasswordReset.b297807e.js"),[]),conditions:[()=>(Se.logout(!1),!0)]}),"/users/confirm-verification/:token":Zt({asyncComponent:()=>_i(()=>import("./PageUserConfirmVerification.07c01eba.js"),[]),conditions:[()=>(Se.logout(!1),!0)]}),"/users/confirm-email-change/:token":Zt({asyncComponent:()=>_i(()=>import("./PageUserConfirmEmailChange.172a5083.js"),[]),conditions:[()=>(Se.logout(!1),!0)]}),"/settings":Zt({component:pD,conditions:[n=>Se.AuthStore.isValid]}),"/settings/admins":Zt({component:JA,conditions:[n=>Se.AuthStore.isValid]}),"/settings/mail":Zt({component:PD,conditions:[n=>Se.AuthStore.isValid]}),"/settings/storage":Zt({component:BD,conditions:[n=>Se.AuthStore.isValid]}),"/settings/auth-providers":Zt({component:vO,conditions:[n=>Se.AuthStore.isValid]}),"/settings/tokens":Zt({component:xO,conditions:[n=>Se.AuthStore.isValid]}),"*":Zt({asyncComponent:()=>_i(()=>import("./NotFoundPage.8b4364cc.js"),[])})};function $O(n,{from:e,to:t},i={}){const o=getComputedStyle(n),r=o.transform==="none"?"":o.transform,[l,s]=o.transformOrigin.split(" ").map(parseFloat),a=e.left+e.width*l/t.width-(t.left+l),f=e.top+e.height*s/t.height-(t.top+s),{delay:c=0,duration:u=h=>Math.sqrt(h)*120,easing:d=As}=i;return{delay:c,duration:Yn(u)?u(Math.sqrt(a*a+f*f)):u,easing:d,css:(h,b)=>{const v=b*a,_=b*f,y=h+b*e.width/t.width,S=h+b*e.height/t.height;return`transform: ${r} translate(${v}px, ${_}px) scale(${y}, ${S});`}}}function Pb(n,e,t){const i=n.slice();return i[2]=e[t],i}function AO(n){let e;return{c(){e=g("i"),p(e,"class","ri-alert-line")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function DO(n){let e;return{c(){e=g("i"),p(e,"class","ri-checkbox-circle-line")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function OO(n){let e;return{c(){e=g("i"),p(e,"class","ri-information-line")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function Fb(n,e){let t,i,o,r,l=e[2].message+"",s,a,f,c,u,d,h=le,b,v,_;function y(M,A){return M[2].type==="info"?OO:M[2].type==="success"?DO:AO}let S=y(e),C=S(e);function x(){return e[1](e[2])}return{key:n,first:null,c(){t=g("div"),i=g("div"),C.c(),o=$(),r=g("div"),s=j(l),a=$(),f=g("div"),f.innerHTML='<i class="ri-close-line"></i>',c=$(),p(i,"class","icon"),p(r,"class","content"),p(f,"class","close"),p(t,"class","alert txt-break"),ne(t,"alert-info",eLine truncated
|
|
|
|
|
<div class="breadcrumb-item">Auth providers</div></nav>`,r=$(),l=g("div"),s=g("form"),a=g("h6"),a.textContent="Manage the allowed users sign-in/sign-up methods.",f=$(),u.c(),p(o,"class","page-header"),p(a,"class","m-b-base"),p(s,"class","panel"),p(s,"autocomplete","off"),p(l,"class","wrapper"),p(i,"class","page-wrapper")},m(S,C){H(e,S,C),w(S,t,C),w(S,i,C),m(i,o),m(i,r),m(i,l),m(l,s),m(s,a),m(s,f),_[c].m(s,null),d=!0,h||(b=X(s,"submit",Gt(n[5])),h=!0)},p(S,[C]){let x=c;c=y(S),c===x?_[c].p(S,C):(Ae(),F(_[x],1,1,()=>{_[x]=null}),De(),u=_[c],u?u.p(S,C):(u=_[c]=v[c](S),u.c()),T(u,1),u.m(s,null))},i(S){d||(T(e.$$.fragment,S),T(u),d=!0)},o(S){F(e.$$.fragment,S),F(u),d=!1},d(S){q(e,S),S&&k(t),S&&k(i),_[c].d(),h=!1,b()}}}function _O(n,e,t){let i,o,r={},l=!1,s=!1,a="";B.setDocumentTitle("Auth providers"),f();async function f(){t(2,l=!0);try{const C=await Se.Settings.getAll()||{};u(C)}catch(C){Se.errorResponseHandler(C)}t(2,l=!1)}async function c(){if(!(s||!i)){t(3,s=!0);try{const C=await Se.Settings.update(B.filterRedactedProps(r));u(C),Ui({}),o==null||o.collapseSiblings(),hn("Successfully updated auth providers.")}catch(C){Se.errorResponseHandler(C)}t(3,s=!1)}}function u(C){C=C||{},t(0,r={}),t(0,r.emailAuth=Object.assign({enabled:!0},C.emailAuth),r);const x=["googleAuth","facebookAuth","githubAuth","gitlabAuth"];for(const M of x)t(0,r[M]=Object.assign({enabled:!1,allowRegistrations:!0},C[M]),r);t(6,a=JSON.stringify(r))}function d(C){he[C?"unshift":"push"](()=>{o=C,t(1,o)})}function h(C){n.$$.not_equal(r.emailAuth,C)&&(r.emailAuth=C,t(0,r))}function b(C){n.$$.not_equal(r.googleAuth,C)&&(r.googleAuth=C,t(0,r))}function v(C){n.$$.not_equal(r.facebookAuth,C)&&(r.facebookAuth=C,t(0,r))}function _(C){n.$$.not_equal(r.githubAuth,C)&&(r.githubAuth=C,t(0,r))}function y(C){n.$$.not_equal(r.gitlabAuth,C)&&(r.gitlabAuth=C,t(0,r))}const S=()=>c();return n.$$.update=()=>{n.$$.dirty&65&&t(4,i=a!=JSON.stringify(r))},[r,o,l,s,i,c,a,d,h,b,v,_,y,S]}class vO extends Ie{constructor(e){super(),Le(this,e,_O,gO,Ee,{})}}function Tb(n,e,t){const i=n.slice();return i[12]=e[t],i[13]=e,i[14]=t,i}function yO(n){let e=[],t=new Map,i,o,r,l,s,a,f,c,u,d,h=n[4];const b=v=>v[12].key;for(let v=0;v<h.length;v+=1){let _=Tb(n,h,v),y=b(_);t.set(y,e[v]=Eb(y,_))}return{c(){for(let v=0;v<e.length;v+=1)e[v].c();i=$(),o=g("div"),r=g("div"),l=$(),s=g("button"),a=g("span"),a.textContent="Save changes",p(r,"class","flex-fill"),p(a,"class","txt"),p(s,"type","submit"),p(s,"class","btn btn-expanded"),s.disabled=f=!n[3]||n[2],ne(s,"btn-loading",n[2]),p(o,"class","flex")},m(v,_){for(let y=0;y<e.length;y+=1)e[y].m(v,_);w(v,i,_),w(v,o,_),m(o,r),m(o,l),m(o,s),m(s,a),c=!0,u||(d=X(s,"click",n[9]),u=!0)},p(v,_){_&32785&&(h=v[4],Ae(),e=st(e,_,b,1,v,h,t,i.parentNode,Pt,Eb,i,Tb),De()),(!c||_&12&&f!==(f=!v[3]||v[2]))&&(s.disabled=f),_&4&&ne(s,"btn-loading",v[2])},i(v){if(!c){for(let _=0;_<h.length;_+=1)T(e[_]);c=!0}},o(v){for(let _=0;_<e.length;_+=1)F(e[_]);c=!1},d(v){for(let _=0;_<e.length;_+=1)e[_].d(v);v&&k(i),v&&k(o),u=!1,d()}}}function kO(n){let e;return{c(){e=g("div"),p(e,"class","loader")},m(t,i){w(t,e,i)},p:le,i:le,o:le,d(t){t&&k(e)}}}function wO(n){let e,t=n[12].label+"",i,o,r,l,s,a,f,c,u,d,h;function b(){n[7].call(s,n[12])}function v(){return n[8](n[12])}return{c(){e=g("label"),i=j(t),o=j(" duration (in seconds)"),l=$(),s=g("input"),f=$(),c=g("div"),u=g("span"),u.textContent="Invalidate all previously issued tokens",p(e,"for",r=n[15]),p(s,"type","number"),p(s,"id",a=n[15]),s.required=!0,p(u,"class","link-primary"),ne(u,"txt-success",n[0][n[12].key].secret),p(c,"class","help-block")},m(_,y){w(_,e,y),m(e,i),m(e,o),w(_,l,y),w(_,s,y),Me(s,n[0][n[12].key].duration),w(_,f,y),w(_,c,y),m(c,u),d||(h=[X(s,"input",b),X(u,"click",v)],d=!0)},p(_,y){n=_,y&32768&&r!==(r=n[15])&&p(e,"for",r),y&32768&&a!==(a=n[15])&&p(s,"id",a),y&17&&At(s.value)!==n[0][n[12].key].duration&&Me(s,n[0][n[12].key].duration),y&17&&ne(u,"txt-success",n[0][n[12].key].secret)},d(_){_&&k(e),_&&k(l),_&&k(s),_&&k(f),_&&k(c),d=!1,rt(h)}}}function Eb(n,e){let t,i,o;return i=new je({props:{class:"form-field required",name:e[12].key+".duration",$$slots:{default:[wO,({uniqueId:r})=>({15:r}),({uniqueId:r})=>r?32768:0]},$$scope:{ctx:e}}}),{key:n,first:null,c(){t=lt(),V(i.$$.fragment),this.first=t},m(r,l){w(r,t,l),H(i,r,l),o=!0},p(r,l){e=r;const s={};l&98305&&(s.$$scope={dirty:l,ctx:e}),i.$set(s)},i(r){o||(T(i.$$.fragment,r),o=!0)},o(r){F(i.$$.fragment,r),o=!1},d(r){r&&k(t),q(i,r)}}}function SO(n){let e,t,i,o,r,l,s,a,f,c,u,d,h,b;e=new er({});const v=[kO,yO],_=[];function y(S,C){return S[1]?0:1}return c=y(n),u=_[c]=v[c](n),{c(){V(e.$$.fragment),t=$(),i=g("main"),o=g("header"),o.innerHTML=`<nav class="breadcrumbs"><div class="breadcrumb-item">Settings</div>
|
|
|
|
|
<div class="breadcrumb-item">Token options</div></nav>`,r=$(),l=g("div"),s=g("form"),a=g("div"),a.innerHTML="<p>Adjust common token options.</p>",f=$(),u.c(),p(o,"class","page-header"),p(a,"class","content m-b-sm txt-xl"),p(s,"class","panel"),p(s,"autocomplete","off"),p(l,"class","wrapper"),p(i,"class","page-wrapper")},m(S,C){H(e,S,C),w(S,t,C),w(S,i,C),m(i,o),m(i,r),m(i,l),m(l,s),m(s,a),m(s,f),_[c].m(s,null),d=!0,h||(b=X(s,"submit",Gt(n[5])),h=!0)},p(S,[C]){let x=c;c=y(S),c===x?_[c].p(S,C):(Ae(),F(_[x],1,1,()=>{_[x]=null}),De(),u=_[c],u?u.p(S,C):(u=_[c]=v[c](S),u.c()),T(u,1),u.m(s,null))},i(S){d||(T(e.$$.fragment,S),T(u),d=!0)},o(S){F(e.$$.fragment,S),F(u),d=!1},d(S){q(e,S),S&&k(t),S&&k(i),_[c].d(),h=!1,b()}}}function CO(n,e,t){let i;const o=[{key:"userAuthToken",label:"Users auth token"},{key:"userVerificationToken",label:"Users email verification token"},{key:"userPasswordResetToken",label:"Users password reset token"},{key:"userEmailChangeToken",label:"Users email change token"},{key:"adminAuthToken",label:"Admins auth token"},{key:"adminPasswordResetToken",label:"Admins password reset token"}];let r={},l=!1,s=!1,a="";B.setDocumentTitle("Token options"),f();async function f(){t(1,l=!0);try{const v=await Se.Settings.getAll()||{};u(v)}catch(v){Se.errorResponseHandler(v)}t(1,l=!1)}async function c(){if(!(s||!i)){t(2,s=!0);try{const v=await Se.Settings.update(B.filterRedactedProps(r));u(v),hn("Successfully saved tokens options.")}catch(v){Se.errorResponseHandler(v)}t(2,s=!1)}}function u(v){var _;v=v||{},t(0,r={});for(const y of o)t(0,r[y.key]={duration:((_=v[y.key])==null?void 0:_.duration)||0},r);t(6,a=JSON.stringify(r))}function d(v){r[v.key].duration=At(this.value),t(0,r)}const h=v=>{r[v.key].secret?(delete r[v.key].secret,t(0,r)):t(0,r[v.key].secret=B.randomString(50),r)},b=()=>c();return n.$$.update=()=>{n.$$.dirty&65&&t(3,i=a!=JSON.stringify(r))},[r,l,s,i,o,c,a,d,h,b]}class xO extends Ie{constructor(e){super(),Le(this,e,CO,SO,Ee,{})}}const MO={"/_elements":Zt({asyncComponent:()=>_i(()=>import("./Elements.fba5cef6.js"),[])}),"/login":Zt({component:rD,conditions:[n=>!Se.AuthStore.isValid]}),"/request-password-reset":Zt({asyncComponent:()=>_i(()=>import("./PageAdminRequestPasswordReset.45866e03.js"),[]),conditions:[n=>!Se.AuthStore.isValid]}),"/confirm-password-reset/:token":Zt({asyncComponent:()=>_i(()=>import("./PageAdminConfirmPasswordReset.6f7f63d0.js"),[]),conditions:[n=>!Se.AuthStore.isValid]}),"/collections":Zt({component:oA,conditions:[n=>Se.AuthStore.isValid]}),"/logs":Zt({component:mC,conditions:[n=>Se.AuthStore.isValid]}),"/users":Zt({component:AA,conditions:[n=>Se.AuthStore.isValid]}),"/users/confirm-password-reset/:token":Zt({asyncComponent:()=>_i(()=>import("./PageUserConfirmPasswordReset.6d56895b.js"),[]),conditions:[()=>(Se.logout(!1),!0)]}),"/users/confirm-verification/:token":Zt({asyncComponent:()=>_i(()=>import("./PageUserConfirmVerification.8d023a32.js"),[]),conditions:[()=>(Se.logout(!1),!0)]}),"/users/confirm-email-change/:token":Zt({asyncComponent:()=>_i(()=>import("./PageUserConfirmEmailChange.a2624070.js"),[]),conditions:[()=>(Se.logout(!1),!0)]}),"/settings":Zt({component:pD,conditions:[n=>Se.AuthStore.isValid]}),"/settings/admins":Zt({component:JA,conditions:[n=>Se.AuthStore.isValid]}),"/settings/mail":Zt({component:PD,conditions:[n=>Se.AuthStore.isValid]}),"/settings/storage":Zt({component:BD,conditions:[n=>Se.AuthStore.isValid]}),"/settings/auth-providers":Zt({component:vO,conditions:[n=>Se.AuthStore.isValid]}),"/settings/tokens":Zt({component:xO,conditions:[n=>Se.AuthStore.isValid]}),"*":Zt({asyncComponent:()=>_i(()=>import("./NotFoundPage.899a1d8c.js"),[])})};function $O(n,{from:e,to:t},i={}){const o=getComputedStyle(n),r=o.transform==="none"?"":o.transform,[l,s]=o.transformOrigin.split(" ").map(parseFloat),a=e.left+e.width*l/t.width-(t.left+l),f=e.top+e.height*s/t.height-(t.top+s),{delay:c=0,duration:u=h=>Math.sqrt(h)*120,easing:d=As}=i;return{delay:c,duration:Yn(u)?u(Math.sqrt(a*a+f*f)):u,easing:d,css:(h,b)=>{const v=b*a,_=b*f,y=h+b*e.width/t.width,S=h+b*e.height/t.height;return`transform: ${r} translate(${v}px, ${_}px) scale(${y}, ${S});`}}}function Pb(n,e,t){const i=n.slice();return i[2]=e[t],i}function AO(n){let e;return{c(){e=g("i"),p(e,"class","ri-alert-line")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function DO(n){let e;return{c(){e=g("i"),p(e,"class","ri-checkbox-circle-line")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function OO(n){let e;return{c(){e=g("i"),p(e,"class","ri-information-line")},m(t,i){w(t,e,i)},d(t){t&&k(e)}}}function Fb(n,e){let t,i,o,r,l=e[2].message+"",s,a,f,c,u,d,h=le,b,v,_;function y(M,A){return M[2].type==="info"?OO:M[2].type==="success"?DO:AO}let S=y(e),C=S(e);function x(){return e[1](e[2])}return{key:n,first:null,c(){t=g("div"),i=g("div"),C.c(),o=$(),r=g("div"),s=j(l),a=$(),f=g("div"),f.innerHTML='<i class="ri-close-line"></i>',c=$(),p(i,"class","icon"),p(r,"class","content"),p(f,"class","close"),p(t,"class","alert txt-break"),ne(t,"alert-info",eLine truncated
|
|
|
|
|
<span class="txt">Manage admins</span>`,t=$(),i=g("hr"),o=$(),r=g("div"),r.innerHTML=`<i class="ri-logout-circle-line"></i>
|
|
|
|
|
<span class="txt">Logout</span>`,p(e,"href","/settings/admins"),p(e,"class","dropdown-item closable"),p(r,"tabindex","0"),p(r,"class","dropdown-item closable")},m(a,f){w(a,e,f),w(a,t,f),w(a,i,f),w(a,o,f),w(a,r,f),l||(s=[Xe(xn.call(null,e)),X(r,"click",n[3])],l=!0)},p:le,d(a){a&&k(e),a&&k(t),a&&k(i),a&&k(o),a&&k(r),l=!1,rt(s)}}}function zO(n){var u;let e,t,i,o,r,l,s,a,f,c=((u=n[0])==null?void 0:u.id)&&Lb(n);return o=new n_({props:{routes:MO}}),o.$on("routeLoading",n[1]),o.$on("conditionsFailed",n[2]),l=new PO({}),a=new NO({}),{c(){e=g("div"),c&&c.c(),t=$(),i=g("div"),V(o.$$.fragment),r=$(),V(l.$$.fragment),s=$(),V(a.$$.fragment),p(i,"class","app-body"),p(e,"class","app-layout")},m(d,h){w(d,e,h),c&&c.m(e,null),m(e,t),m(e,i),H(o,i,null),w(d,r,h),H(l,d,h),w(d,s,h),H(a,d,h),f=!0},p(d,[h]){var b;(b=d[0])!=null&&b.id?c?(c.p(d,h),h&1&&T(c,1)):(c=Lb(d),c.c(),T(c,1),c.m(e,t)):c&&(Ae(),F(c,1,1,()=>{c=null}),De())},i(d){f||(T(c),T(o.$$.fragment,d),T(l.$$.fragment,d),T(a.$$.fragment,d),f=!0)},o(d){F(c),F(o.$$.fragment,d),F(l.$$.fragment,d),F(a.$$.fragment,d),f=!1},d(d){d&&k(e),c&&c.d(),q(o),d&&k(r),q(l,d),d&&k(s),q(a,d)}}}function HO(n,e,t){let i;pn(n,qf,a=>t(0,i=a));let o;function r(a){var f,c;((f=a==null?void 0:a.detail)==null?void 0:f.location)!==o&&(o=(c=a==null?void 0:a.detail)==null?void 0:c.location,B.setDocumentTitle(""),Ui({}),A1())}function l(){Se.AuthStore.isValid?Ss("/"):Se.logout()}function s(){Se.logout()}return[i,r,l,s]}class qO extends Ie{constructor(e){super(),Le(this,e,HO,zO,Ee,{})}}new qO({target:document.getElementById("app")});export{ne as A,X as B,Gt as C,j as D,ge as E,QA as F,Me as G,B as H,rt as I,hn as J,Ss as K,lt as L,pn as M,Go as N,yo as O,yn as P,En as Q,di as R,Ie as S,Ai as a,he as b,Fe as c,$ as d,g as e,V as f,p as g,w as h,Le as i,m as j,Xe as k,Re as l,H as m,T as n,F as o,k as p,q,VO as r,Ee as s,St as t,le as u,xn as v,Ae as w,De as x,Se as y,je as z};
|