1 line
7.8 KiB
JavaScript
1 line
7.8 KiB
JavaScript
import{s as ae,n as q,c as ce,b as fe,u as ue,g as de,d as pe}from"../chunks/t7hwNuoe.js";import{S as re,i as se,d,k as me,l as n,a as I,b as m,n as he,u as le,c as b,e as g,g as $,v as R,h as y,j as A,w as G,m as ne,f as ie,t as oe,y as _e,z as J,A as K,B as ve,C as ge,D as be}from"../chunks/CZxRa0tt.js";import{e as W}from"../chunks/D6YF6ztN.js";import{p as ye}from"../chunks/fVhWLsyl.js";function X(r,e,t){const a=r.slice();return a[5]=e[t],a}function Y(r){let e,t='<h1 class="text-xl font-bold bg-gradient-to-r from-primary-700 to-accent-600 bg-clip-text text-transparent">AI Tools Suite</h1> <p class="text-xs text-surface-500 mt-1">v0.1.0</p>';return{c(){e=y("div"),e.innerHTML=t},l(a){e=b(a,"DIV",{"data-svelte-h":!0}),ne(e)!=="svelte-1572qjr"&&(e.innerHTML=t)},m(a,l){I(a,e,l)},d(a){a&&d(e)}}}function Z(r){let e,t=r[5].name+"",a;return{c(){e=y("span"),a=oe(t),this.h()},l(l){e=b(l,"SPAN",{class:!0});var s=g(e);a=ie(s,t),s.forEach(d),this.h()},h(){n(e,"class","text-sm font-medium truncate")},m(l,s){I(l,e,s),m(e,a)},p:q,d(l){l&&d(e)}}}function ee(r){let e,t,a,l=r[5].icon+"",s,h,k,o,c,i=!r[0]&&Z(r);return{c(){e=y("li"),t=y("a"),a=y("span"),s=oe(l),h=A(),i&&i.c(),c=A(),this.h()},l(u){e=b(u,"LI",{});var _=g(e);t=b(_,"A",{href:!0,class:!0,title:!0});var S=g(t);a=b(S,"SPAN",{class:!0});var C=g(a);s=ie(C,l),C.forEach(d),h=$(S),i&&i.l(S),S.forEach(d),c=$(_),_.forEach(d),this.h()},h(){n(a,"class","text-lg flex-shrink-0"),n(t,"href",r[5].path),n(t,"class",k="flex items-center gap-3 px-3 py-2 rounded-lg transition-all duration-200 "+(r[1]===r[5].path?"bg-gradient-to-r from-primary-500 to-primary-600 text-white shadow-soft":"text-surface-600 hover:bg-white/70 hover:text-primary-700")+" "+(r[0]?"justify-center":"")),n(t,"title",o=r[0]?r[5].name:"")},m(u,_){I(u,e,_),m(e,t),m(t,a),m(a,s),m(t,h),i&&i.m(t,null),m(e,c)},p(u,_){u[0]?i&&(i.d(1),i=null):i?i.p(u,_):(i=Z(u),i.c(),i.m(t,null)),_&3&&k!==(k="flex items-center gap-3 px-3 py-2 rounded-lg transition-all duration-200 "+(u[1]===u[5].path?"bg-gradient-to-r from-primary-500 to-primary-600 text-white shadow-soft":"text-surface-600 hover:bg-white/70 hover:text-primary-700")+" "+(u[0]?"justify-center":""))&&n(t,"class",k),_&1&&o!==(o=u[0]?u[5].name:"")&&n(t,"title",o)},d(u){u&&d(e),i&&i.d()}}}function te(r){let e,t="API Connected";return{c(){e=y("span"),e.textContent=t},l(a){e=b(a,"SPAN",{"data-svelte-h":!0}),ne(e)!=="svelte-i7oxkb"&&(e.textContent=t)},m(a,l){I(a,e,l)},d(a){a&&d(e)}}}function we(r){let e,t,a,l,s,h,k,o,c,i,u,_,S,C,F,j,M,B,V,N,H,x=!r[0]&&Y(),D=W(r[3]),v=[];for(let f=0;f<D.length;f+=1)v[f]=ee(X(r,D,f));let E=!r[0]&&te();return{c(){e=y("aside"),t=y("div"),x&&x.c(),a=A(),l=y("button"),s=G("svg"),h=G("path"),i=A(),u=y("nav"),_=y("ul");for(let f=0;f<v.length;f+=1)v[f].c();S=A(),C=y("div"),F=y("div"),j=y("span"),M=A(),E&&E.c(),this.h()},l(f){e=b(f,"ASIDE",{class:!0,style:!0});var w=g(e);t=b(w,"DIV",{class:!0});var p=g(t);x&&x.l(p),a=$(p),l=b(p,"BUTTON",{class:!0,title:!0});var P=g(l);s=R(P,"svg",{xmlns:!0,class:!0,fill:!0,viewBox:!0,stroke:!0,"stroke-width":!0});var U=g(s);h=R(U,"path",{"stroke-linecap":!0,"stroke-linejoin":!0,d:!0}),g(h).forEach(d),U.forEach(d),P.forEach(d),p.forEach(d),i=$(w),u=b(w,"NAV",{class:!0});var z=g(u);_=b(z,"UL",{class:!0});var O=g(_);for(let T=0;T<v.length;T+=1)v[T].l(O);O.forEach(d),z.forEach(d),S=$(w),C=b(w,"DIV",{class:!0});var Q=g(C);F=b(Q,"DIV",{class:!0});var L=g(F);j=b(L,"SPAN",{class:!0}),g(j).forEach(d),M=$(L),E&&E.l(L),L.forEach(d),Q.forEach(d),w.forEach(d),this.h()},h(){n(h,"stroke-linecap","round"),n(h,"stroke-linejoin","round"),n(h,"d","M11 19l-7-7 7-7m8 14l-7-7 7-7"),n(s,"xmlns","http://www.w3.org/2000/svg"),n(s,"class",k="h-5 w-5 transition-transform duration-300 "+(r[0]?"rotate-180":"")),n(s,"fill","none"),n(s,"viewBox","0 0 24 24"),n(s,"stroke","currentColor"),n(s,"stroke-width","2"),n(l,"class","p-2 rounded-lg hover:bg-white/70 text-surface-600 hover:text-primary-700 transition-all duration-200"),n(l,"title",o=r[0]?"Expand sidebar":"Collapse sidebar"),n(t,"class",c="p-4 border-b border-primary-100/60 flex items-center "+(r[0]?"justify-center":"justify-between")),n(_,"class","space-y-1 px-2"),n(u,"class","flex-1 overflow-y-auto py-4"),n(j,"class","w-2 h-2 bg-green-500 rounded-full animate-pulse flex-shrink-0"),n(F,"class",B="flex items-center gap-2 text-xs text-surface-500 "+(r[0]?"justify-center":"")),n(C,"class","p-4 border-t border-primary-100/60"),n(e,"class",V="flex flex-col h-full border-r border-primary-100 transition-all duration-300 ease-in-out "+(r[0]?"w-16":"w-64")),le(e,"background","linear-gradient(180deg, #f8f6ff 0%, #f3f0ff 100%)")},m(f,w){I(f,e,w),m(e,t),x&&x.m(t,null),m(t,a),m(t,l),m(l,s),m(s,h),m(e,i),m(e,u),m(u,_);for(let p=0;p<v.length;p+=1)v[p]&&v[p].m(_,null);m(e,S),m(e,C),m(C,F),m(F,j),m(F,M),E&&E.m(F,null),N||(H=he(l,"click",r[2]),N=!0)},p(f,[w]){if(f[0]?x&&(x.d(1),x=null):x||(x=Y(),x.c(),x.m(t,a)),w&1&&k!==(k="h-5 w-5 transition-transform duration-300 "+(f[0]?"rotate-180":""))&&n(s,"class",k),w&1&&o!==(o=f[0]?"Expand sidebar":"Collapse sidebar")&&n(l,"title",o),w&1&&c!==(c="p-4 border-b border-primary-100/60 flex items-center "+(f[0]?"justify-center":"justify-between"))&&n(t,"class",c),w&11){D=W(f[3]);let p;for(p=0;p<D.length;p+=1){const P=X(f,D,p);v[p]?v[p].p(P,w):(v[p]=ee(P),v[p].c(),v[p].m(_,null))}for(;p<v.length;p+=1)v[p].d(1);v.length=D.length}f[0]?E&&(E.d(1),E=null):E||(E=te(),E.c(),E.m(F,null)),w&1&&B!==(B="flex items-center gap-2 text-xs text-surface-500 "+(f[0]?"justify-center":""))&&n(F,"class",B),w&1&&V!==(V="flex flex-col h-full border-r border-primary-100 transition-all duration-300 ease-in-out "+(f[0]?"w-16":"w-64"))&&n(e,"class",V)},i:q,o:q,d(f){f&&d(e),x&&x.d(),me(v,f),E&&E.d(),N=!1,H()}}}function ke(r,e,t){let a,l;ce(r,ye,o=>t(4,l=o));let s=!1;typeof window<"u"&&(s=localStorage.getItem("sidebar-collapsed")==="true");function h(){t(0,s=!s),typeof window<"u"&&localStorage.setItem("sidebar-collapsed",String(s))}const k=[{name:"Dashboard",path:"/",icon:"📊"},{name:"Model Drift Monitor",path:"/drift-monitor",icon:"📈"},{name:"Vendor Cost Tracker",path:"/cost-tracker",icon:"💰"},{name:"Security Tester",path:"/security-tester",icon:"🔒"},{name:"Data History Log",path:"/data-history",icon:"📜"},{name:"Model Comparator",path:"/model-comparator",icon:"🔄"},{name:"Privacy Scanner",path:"/privacy-scanner",icon:"🕵️"},{name:"Label Quality Scorer",path:"/label-quality",icon:"✅"},{name:"Inference Estimator",path:"/inference-estimator",icon:"💵"},{name:"Data Integrity Audit",path:"/data-audit",icon:"🧹"},{name:"Content Performance",path:"/content-performance",icon:"📺"},{name:"Safety/Bias Checks",path:"/bias-checks",icon:"⚖️"},{name:"Profitability Analysis",path:"/profitability",icon:"💹"},{name:"Emergency Control",path:"/emergency-control",icon:"🚨"},{name:"Reports",path:"/reports",icon:"📝"}];return r.$$.update=()=>{r.$$.dirty&16&&t(1,a=l.url.pathname)},[s,a,h,k,l]}class xe extends re{constructor(e){super(),se(this,e,ke,we,ae,{})}}function Ee(r){let e,t,a,l,s,h;t=new xe({});const k=r[1].default,o=fe(k,r,r[0],null);return{c(){e=y("div"),be(t.$$.fragment),a=A(),l=y("main"),s=y("div"),o&&o.c(),this.h()},l(c){e=b(c,"DIV",{class:!0,style:!0});var i=g(e);ge(t.$$.fragment,i),a=$(i),l=b(i,"MAIN",{class:!0});var u=g(l);s=b(u,"DIV",{class:!0});var _=g(s);o&&o.l(_),_.forEach(d),u.forEach(d),i.forEach(d),this.h()},h(){n(s,"class","max-w-7xl mx-auto"),n(l,"class","flex-1 overflow-auto p-6 transition-all duration-300"),n(e,"class","flex h-screen"),le(e,"background","#fdf8f3")},m(c,i){I(c,e,i),ve(t,e,null),m(e,a),m(e,l),m(l,s),o&&o.m(s,null),h=!0},p(c,[i]){o&&o.p&&(!h||i&1)&&ue(o,k,c,c[0],h?pe(k,c[0],i,null):de(c[0]),null)},i(c){h||(K(t.$$.fragment,c),K(o,c),h=!0)},o(c){J(t.$$.fragment,c),J(o,c),h=!1},d(c){c&&d(e),_e(t),o&&o.d(c)}}}function Fe(r,e,t){let{$$slots:a={},$$scope:l}=e;return r.$$set=s=>{"$$scope"in s&&t(0,l=s.$$scope)},[l,a]}class De extends re{constructor(e){super(),se(this,e,Fe,Ee,ae,{})}}export{De as component};
|