mirror of
https://github.com/LukeHagar/idn-admin-console.git
synced 2025-12-09 20:47:46 +00:00
2 lines
4.4 KiB
JavaScript
2 lines
4.4 KiB
JavaScript
import{s as N,H as Q,e as M,a as R,f as z,T as I,U as X,F as Y,d as k,c as Z,g as B,h as T,V as H,j as c,A as S,i as P,u as w,z as j,D as x,v as p,o as $,x as q,y as V,W as tt,E as C}from"./scheduler.10bc074a.js";import{S as et,i as it}from"./index.7b3d626a.js";import{s as st,m as F,a as U,g as at,b as lt}from"./ProgressBar.svelte_svelte_type_style_lang.ae9fcbec.js";function ct(t){let s,a=`<script nonce="%sveltekit.nonce%">(${st.toString()})();<\/script>`,o,f,i,u,h,g,b,r,_,d,m,v;return{c(){s=new Q(!1),o=M(),f=R(),i=z("div"),u=z("div"),h=I("svg"),g=I("path"),this.h()},l(l){const n=X("svelte-gewkj4",document.head);s=Y(n,!1),o=M(),n.forEach(k),f=Z(l),i=B(l,"DIV",{class:!0,role:!0,"aria-label":!0,"aria-checked":!0,title:!0,tabindex:!0});var L=T(i);u=B(L,"DIV",{class:!0});var D=T(u);h=H(D,"svg",{class:!0,xmlns:!0,viewBox:!0});var y=T(h);g=H(y,"path",{d:!0}),T(g).forEach(k),y.forEach(k),D.forEach(k),L.forEach(k),this.h()},h(){s.a=o,c(g,"d",b=t[1]?t[5].sun:t[5].moon),c(h,"class",r="lightswitch-icon "+t[2]),c(h,"xmlns","http://www.w3.org/2000/svg"),c(h,"viewBox","0 0 512 512"),c(u,"class",_="lightswitch-thumb "+t[3]),c(i,"class",d="lightswitch-track "+t[4]),c(i,"role","switch"),c(i,"aria-label","Light Switch"),c(i,"aria-checked",t[1]),c(i,"title",t[0]),c(i,"tabindex","0")},m(l,n){s.m(a,document.head),S(document.head,o),P(l,f,n),P(l,i,n),S(i,u),S(u,h),S(h,g),m||(v=[w(i,"click",t[6]),w(i,"click",t[19]),w(i,"keydown",ut),w(i,"keydown",t[20]),w(i,"keyup",t[21]),w(i,"keypress",t[22])],m=!0)},p(l,[n]){n&2&&b!==(b=l[1]?l[5].sun:l[5].moon)&&c(g,"d",b),n&4&&r!==(r="lightswitch-icon "+l[2])&&c(h,"class",r),n&8&&_!==(_="lightswitch-thumb "+l[3])&&c(u,"class",_),n&16&&d!==(d="lightswitch-track "+l[4])&&c(i,"class",d),n&2&&c(i,"aria-checked",l[1]),n&1&&c(i,"title",l[0])},i:j,o:j,d(l){l&&(s.d(),k(f),k(i)),k(o),m=!1,x(v)}}}const rt="cursor-pointer",nt="aspect-square scale-[0.8] flex justify-center items-center",ht="w-[70%] aspect-square";function ut(t){["Enter","Space"].includes(t.code)&&(t.preventDefault(),t.currentTarget.click())}function ot(t,s,a){let o,f,i,u,h,g,b,r;p(t,F,e=>a(1,r=e));let{title:_="Toggle light or dark mode."}=s,{bgLight:d="bg-surface-50"}=s,{bgDark:m="bg-surface-900"}=s,{fillLight:v="fill-surface-50"}=s,{fillDark:l="fill-surface-900"}=s,{width:n="w-12"}=s,{height:L="h-6"}=s,{ring:D="ring-[1px] ring-surface-500/30"}=s,{rounded:y="rounded-token"}=s;const E="transition-all duration-[200ms]",A={sun:"M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM352 256c0 53-43 96-96 96s-96-43-96-96s43-96 96-96s96 43 96 96zm32 0c0-70.7-57.3-128-128-128s-128 57.3-128 128s57.3 128 128 128s128-57.3 128-128z",moon:"M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z"};function K(){tt(F,r=!r,r),lt(r),U(r)}$(()=>{"modeCurrent"in localStorage||U(at())});function O(e){C.call(this,t,e)}function W(e){C.call(this,t,e)}function G(e){C.call(this,t,e)}function J(e){C.call(this,t,e)}return t.$$set=e=>{a(24,s=q(q({},s),V(e))),"title"in e&&a(0,_=e.title),"bgLight"in e&&a(7,d=e.bgLight),"bgDark"in e&&a(8,m=e.bgDark),"fillLight"in e&&a(9,v=e.fillLight),"fillDark"in e&&a(10,l=e.fillDark),"width"in e&&a(11,n=e.width),"height"in e&&a(12,L=e.height),"ring"in e&&a(13,D=e.ring),"rounded"in e&&a(14,y=e.rounded)},t.$$.update=()=>{t.$$.dirty&386&&a(18,o=r===!0?d:m),t.$$.dirty&386&&a(17,f=r===!0?m:d),t.$$.dirty&2&&a(16,i=r===!0?"translate-x-[100%]":""),t.$$.dirty&1538&&a(15,u=r===!0?v:l),a(4,h=`${rt} ${E} ${n} ${L} ${D} ${y} ${o} ${s.class??""}`),t.$$.dirty&217088&&a(3,g=`${nt} ${E} ${L} ${y} ${f} ${i}`),t.$$.dirty&32768&&a(2,b=`${ht} ${u}`)},s=V(s),[_,r,b,g,h,A,K,d,m,v,l,n,L,D,y,u,i,f,o,O,W,G,J]}class mt extends et{constructor(s){super(),it(this,s,ot,ct,N,{title:0,bgLight:7,bgDark:8,fillLight:9,fillDark:10,width:11,height:12,ring:13,rounded:14})}}export{mt as L};
|