dsql-admin/dsql-app/.local_dist/server/chunks/9796.js

1 line
14 KiB
JavaScript
Raw Normal View History

2025-01-13 08:00:21 +00:00
exports.id=9796,exports.ids=[9796],exports.modules={16757:(e,a,s)=>{"use strict";s.d(a,{A:()=>i});var t=s(8732),l=s(82015),r=s.n(l);function i({width:e,position:a,style:s,borderWidth:l,screen:i,title:n}){return(0,t.jsxs)("div",{className:" top-0 left-0 w-full h-full flex items-center justify-center gap-4 bg-white/80 dark:bg-slate-800/80 z-50"+(i?" fixed":" absolute"),style:{...s,position:a,zIndex:2e4},children:[(0,t.jsx)("span",{className:"general_loader",style:e?{width:e,height:e,minWidth:e,borderWidth:l||"4px"}:{}}),n?(0,t.jsx)("span",{children:n}):(0,t.jsx)(r().Fragment,{})]})}},50139:(e,a,s)=>{"use strict";s.d(a,{A:()=>r});var t=s(8732),l=s(66759);function r({size:e,adminAside:a,collapseAsideMobile:s,setCollapseAsideMobile:r}){return(0,t.jsxs)("a",{href:"/",className:"logo",onClick:e=>{let a=e.target;if(a?.closest("button"))return e.preventDefault()},children:[a&&(0,t.jsxs)("button",{className:"flex lg:hidden small-text mr-2 primary-light",onClick:e=>{s&&r?r(!1):r&&r(!0)},children:[(0,t.jsx)("div",{className:"-mt-0.5",children:(0,t.jsx)(l.A,{})}),(0,t.jsx)("span",{className:"dark:text-white",children:"Menu"})]}),(0,t.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:35,className:"dark:hidden -mt-1.5 -mr-1.5"}),(0,t.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:35,className:"hidden dark:flex -mt-1.5 -mr-1.5"}),(0,t.jsx)("span",{className:"text-slate-800 dark:text-white text-[20px] font-bold hidden sm:flex -mt-[1px]",children:"Datasquirel"})]})}s(82015)},81868:(e,a,s)=>{"use strict";s.d(a,{A:()=>i});var t=s(8732),l=s(82015),r=s.n(l);function i(){let[e,a]=r().useState("Light Mode");return(0,t.jsx)("div",{className:"",id:"theme-selector-wrapper",onClick:()=>{let e=document.getElementById("theme-selector-graphic-wrapper"),s=localStorage.getItem("theme"),t=e?.querySelector("img.sun"),l=e?.querySelector("img.moon");!s||s?.match(/light/)?(document.documentElement.className="dark",localStorage.setItem("theme","dark"),s="dark",t?.classList.add("hidden"),l?.classList.remove("hidden"),e?.firstChild?.classList.add("ml-auto"),a("Dark Mode")):s?.match(/dark/)&&(document.documentElement.className="light",localStorage.setItem("theme","light"),s="light",l?.classList.add("hidden"),t?.classList.remove("hidden"),e?.firstChild?.classList.remove("ml-auto"),a("Light Mode"))},children:(0,t.jsx)("div",{className:"p-1 rounded-full w-12 transition-all",id:"theme-selector-graphic-wrapper",children:(0,t.jsxs)("div",{className:"pointer-events-none transition-all dark:ml-auto",children:[(0,t.jsx)("img",{src:"/images/sun.png",alt:"Sun Icon",width:18,className:"sun dark:hidden"}),(0,t.jsx)("img",{src:"/images/new-moon.png",alt:"Sun Icon",width:18,className:"moon hidden dark:flex"})]})})})}},46169:(e,a,s)=>{"use strict";s.d(a,{A:()=>l});var t=s(13893);let l=s.n(t)()},27550:(e,a,s)=>{"use strict";async function t({links:e}){let a=e||document.querySelectorAll("nav a");if(a&&a.forEach(e=>{e.dataset.currentlink===window.location.pathname?e.classList.add("active"):window.location.pathname.match(RegExp(`${e.dataset.currentlink}\\/.*`))&&!e.dataset.strictlink&&e.classList.add("active")}),window.location.pathname.match(/\/databases\/.*/)){let e=document.querySelectorAll("a");e&&window.location.search.match(/delegated=true/)&&e.forEach((e,a)=>{e?.pathname?.match(/databases/)&&(e.href=e.pathname+window.location.search)})}}s.d(a,{A:()=>t})},1013:(e,a,s)=>{"use strict";s.d(a,{A:()=>p});var t=s(8732),l=s(82015),r=s.n(l),i=s(27912),n=s.n(i);s(27550);var c=s(81868),d=s(50139),o=s(192),m=s(58526);function h({user:e,darkBg:a,transparent:s}){let[l,i]=r().useState(e?.logged_in_status?e:null);return(0,t.jsx)("header",{className:"w-full px-4 md:px-8 flex justify-center gap-4 "+(a?" shadow-slate-900/20 dark-content":" shadow-slate-900/5")+(s?"":" bg-white dark:bg-slate-800 shadow-lg dark:shadow-black/10 z-50")+(e?.logged_in_status?" py-4":" py-6"),style:{zIndex:700},children:(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)("nav",{className:"w-full flex items-center justify-between gap-4 md:gap-10",children