DuyTa's picture
Upload folder using huggingface_hub
bc20498 verified
raw
history blame contribute delete
5.04 kB
import{s as ue,k as S,l as de,m as me,d as m,o as M,i as Z,j as B,p as _e,q as pe,r as he,e as h,t as Q,c as v,a as g,b as X,f as n,g as i,u as ve,h as Y,v as ge,w as be,x as Ee}from"../chunks/scheduler.DB3Sqaa-.js";import{S as we,i as ke,t as T,a as R,c as xe,b as ye,d as De,m as Ie,e as Ve,g as Ae}from"../chunks/index.CidI1d1E.js";import{g as Se}from"../chunks/entry.JtQ7vg2d.js";import{u as Me,W as Ne,s as ce}from"../chunks/index.DPWiq6NR.js";import{M as Pe}from"../chunks/MenuLines.CMXNxLEP.js";import{p as Be}from"../chunks/stores.m3IJIQGn.js";function fe(t){let l,d,r,f,e,a,c,y,D,b,E=t[1].t("Admin Panel")+"",I,u,V,w,k,N=t[1].t("Dashboard")+"",U,W,z,x,P=t[1].t("Settings")+"",q,C,F,L,G,A,j,_,J,$;c=new Pe({});const K=t[7].default,p=he(K,t,t[6],null);return{c(){l=h("div"),d=h("div"),r=h("div"),f=h("div"),e=h("button"),a=h("div"),ye(c.$$.fragment),D=S(),b=h("div"),I=Q(E),u=S(),V=h("div"),w=h("div"),k=h("a"),U=Q(N),z=S(),x=h("a"),q=Q(P),F=S(),L=h("hr"),G=S(),A=h("div"),p&&p.c(),this.h()},l(s){l=v(s,"DIV",{class:!0});var o=g(l);d=v(o,"DIV",{class:!0});var ee=g(d);r=v(ee,"DIV",{class:!0});var H=g(r);f=v(H,"DIV",{class:!0});var ae=g(f);e=v(ae,"BUTTON",{id:!0,class:!0,"aria-label":!0});var te=g(e);a=v(te,"DIV",{class:!0});var se=g(a);De(c.$$.fragment,se),se.forEach(m),te.forEach(m),ae.forEach(m),D=M(H),b=v(H,"DIV",{class:!0});var le=g(b);I=X(le,E),le.forEach(m),H.forEach(m),ee.forEach(m),u=M(o),V=v(o,"DIV",{class:!0});var ne=g(V);w=v(ne,"DIV",{class:!0});var O=g(w);k=v(O,"A",{class:!0,href:!0});var re=g(k);U=X(re,N),re.forEach(m),z=M(O),x=v(O,"A",{class:!0,href:!0});var oe=g(x);q=X(oe,P),oe.forEach(m),O.forEach(m),ne.forEach(m),F=M(o),L=v(o,"HR",{class:!0}),G=M(o),A=v(o,"DIV",{class:!0});var ie=g(A);p&&p.l(ie),ie.forEach(m),o.forEach(m),this.h()},h(){n(a,"class","m-auto self-center"),n(e,"id","sidebar-toggle-button"),n(e,"class","cursor-pointer p-1 flex rounded-xl hover:bg-gray-100 dark:hover:bg-gray-850 transition"),n(e,"aria-label","Toggle Sidebar"),n(f,"class",y=(t[3]?"md:hidden":"")+" mr-1 self-start flex flex-none items-center"),n(b,"class","flex items-center text-xl font-semibold"),n(r,"class","flex items-center gap-1"),n(d,"class","px-4 pt-3 mt-0.5 mb-1"),n(k,"class",W="min-w-fit rounded-lg p-1.5 px-3 "+(["/admin","/admin/"].includes(t[4].url.pathname)?"bg-gray-50 dark:bg-gray-850":"")+" transition"),n(k,"href","/admin"),n(x,"class",C="min-w-fit rounded-lg p-1.5 px-3 "+(t[4].url.pathname.includes("/admin/settings")?"bg-gray-50 dark:bg-gray-850":"")+" transition"),n(x,"href","/admin/settings"),n(w,"class","flex scrollbar-none overflow-x-auto w-fit text-center text-sm font-medium rounded-xl bg-transparent/10 p-1"),n(V,"class","px-4 my-1"),n(L,"class","my-2 dark:border-gray-850"),n(A,"class","py-1 px-5 flex-1 max-h-full overflow-y-auto"),n(l,"class",j="flex flex-col w-full min-h-screen max-h-screen "+(t[3]?"md:max-w-[calc(100%-260px)]":""))},m(s,o){Z(s,l,o),i(l,d),i(d,r),i(r,f),i(f,e),i(e,a),Ie(c,a,null),i(r,D),i(r,b),i(b,I),i(l,u),i(l,V),i(V,w),i(w,k),i(k,U),i(w,z),i(w,x),i(x,q),i(l,F),i(l,L),i(l,G),i(l,A),p&&p.m(A,null),_=!0,J||($=ve(e,"click",t[8]),J=!0)},p(s,o){(!_||o&8&&y!==(y=(s[3]?"md:hidden":"")+" mr-1 self-start flex flex-none items-center"))&&n(f,"class",y),(!_||o&2)&&E!==(E=s[1].t("Admin Panel")+"")&&Y(I,E),(!_||o&2)&&N!==(N=s[1].t("Dashboard")+"")&&Y(U,N),(!_||o&16&&W!==(W="min-w-fit rounded-lg p-1.5 px-3 "+(["/admin","/admin/"].includes(s[4].url.pathname)?"bg-gray-50 dark:bg-gray-850":"")+" transition"))&&n(k,"class",W),(!_||o&2)&&P!==(P=s[1].t("Settings")+"")&&Y(q,P),(!_||o&16&&C!==(C="min-w-fit rounded-lg p-1.5 px-3 "+(s[4].url.pathname.includes("/admin/settings")?"bg-gray-50 dark:bg-gray-850":"")+" transition"))&&n(x,"class",C),p&&p.p&&(!_||o&64)&&ge(p,K,s,s[6],_?Ee(K,s[6],o,null):be(s[6]),null),(!_||o&8&&j!==(j="flex flex-col w-full min-h-screen max-h-screen "+(s[3]?"md:max-w-[calc(100%-260px)]":"")))&&n(l,"class",j)},i(s){_||(T(c.$$.fragment,s),T(p,s),_=!0)},o(s){R(c.$$.fragment,s),R(p,s),_=!1},d(s){s&&m(l),Ve(c),p&&p.d(s),J=!1,$()}}}function Te(t){let l,d,r,f;document.title=l=`
`+t[1].t("Admin Panel")+" | "+t[2]+`
`;let e=t[0]&&fe(t);return{c(){d=S(),e&&e.c(),r=de()},l(a){me("svelte-l0sfb",document.head).forEach(m),d=M(a),e&&e.l(a),r=de()},m(a,c){Z(a,d,c),e&&e.m(a,c),Z(a,r,c),f=!0},p(a,[c]){(!f||c&6)&&l!==(l=`
`+a[1].t("Admin Panel")+" | "+a[2]+`
`)&&(document.title=l),a[0]?e?(e.p(a,c),c&1&&T(e,1)):(e=fe(a),e.c(),T(e,1),e.m(r.parentNode,r)):e&&(Ae(),R(e,1,1,()=>{e=null}),xe())},i(a){f||(T(e),f=!0)},o(a){R(e),f=!1},d(a){a&&(m(d),m(r)),e&&e.d(a)}}}function Ue(t,l,d){let r,f,e,a,c;B(t,Me,u=>d(9,r=u)),B(t,Ne,u=>d(2,e=u)),B(t,ce,u=>d(3,a=u)),B(t,Be,u=>d(4,c=u));let{$$slots:y={},$$scope:D}=l;const b=_e("i18n");B(t,b,u=>d(1,f=u));let E=!1;pe(async()=>{(r==null?void 0:r.role)!=="admin"&&await Se("/"),d(0,E=!0)});const I=()=>{ce.set(!a)};return t.$$set=u=>{"$$scope"in u&&d(6,D=u.$$scope)},[E,f,e,a,c,b,D,y,I]}class Oe extends we{constructor(l){super(),ke(this,l,Ue,Te,ue,{})}}export{Oe as component};
//# sourceMappingURL=3.DRybiFAk.js.map