Files
intotheeast-com-content/plugins/admin2/app/_app/immutable/chunks/BzsopytP.js
T

2 lines
14 KiB
JavaScript

import"./DsnmJJEf.js";import{i as L,m as b,g as t,j as r,h as m,p as t1,e as e1,f as r1,a as x,b as a1,d as w,r as k,s as o1,t as H,c as T,am as N}from"./krC2xWPP.js";import{s as Z}from"./CddAxf8c.js";import{p as F,i as R}from"./DjsWWzyL.js";import{s as n1}from"./Lvd_r9sp.js";import{s as B}from"./j_DJpx8B.js";import{l as O,q as y,s as W,d as s1,u as c1,b as i1}from"./JyCYNBPC.js";const S1=[{label:"Grav",hue:271,saturation:91},{label:"Blue",hue:221,saturation:83},{label:"Violet",hue:263,saturation:70},{label:"Rose",hue:347,saturation:77},{label:"Orange",hue:25,saturation:95},{label:"Amber",hue:38,saturation:92},{label:"Emerald",hue:160,saturation:84},{label:"Teal",hue:172,saturation:66},{label:"Cyan",hue:192,saturation:91},{label:"Zinc",hue:240,saturation:6}],q=271,I=91;function $(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia("(prefers-color-scheme: dark)").matches}function V(a){return a==="light"||a==="dark"?a:$()?"dark":"light"}function l1(){const a=O();let s=L(b(a?.colorMode??"")),u=L(b(V(t(s)))),g=L(b(a?.accentHue??q)),f=L(b(a?.accentSaturation??I));const h=m(()=>t(u)==="dark");function D(){if(typeof document>"u")return;const e=document.documentElement;t(u)==="dark"?e.classList.add("dark"):e.classList.remove("dark")}function p(){if(typeof document>"u")return;const e=document.documentElement,C=e.classList.contains("dark"),E=C?65:40;e.style.setProperty("--primary",`hsl(${t(g)} ${t(f)}% ${E}%)`),e.style.setProperty("--ring",`hsl(${t(g)} ${t(f)}% ${C?60:50}%)`)}function d(){D(),p()}if(d(),typeof window<"u"&&window.matchMedia)try{window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{t(s)===""&&(r(u,$()?"dark":"light",!0),d())})}catch{}function U(e){r(s,e.effective.colorMode,!0),r(g,e.effective.accentHue,!0),r(f,e.effective.accentSaturation,!0),r(u,V(t(s)),!0),d(),W(e)}return{get colorMode(){return t(u)},get colorModeIntent(){return t(s)},get isDark(){return t(h)},get accentHue(){return t(g)},get accentSaturation(){return t(f)},toggleColorMode(){const e=t(u)==="dark"?"light":"dark";r(s,e,!0),r(u,e,!0),d(),y("colorMode",e)},setColorMode(e){r(s,e,!0),r(u,V(e),!0),d(),y("colorMode",e)},setAccent(e,C){r(g,e,!0),r(f,C,!0),p(),y("accentHue",e),y("accentSaturation",C)},setAccentHue(e){r(g,e,!0),p(),y("accentHue",e)},resetColorModeToSiteDefault(e){const C=e??"";r(s,C,!0),r(u,V(C),!0),d(),y("colorMode",null)},resetAccentToSiteDefault(e,C){r(g,e??q,!0),r(f,C??I,!0),p(),y("accentHue",null),y("accentSaturation",null)},init:U}}const u1=l1();function d1(){const a=O();let s=L(b(a?.branding?.mode??"default")),u=L(b(a?.branding?.text??"Grav")),g=L(b(a?.branding?.logoLight??"")),f=L(b(a?.branding?.logoDark??"")),h=L(b(a?.brandingUrls?.light??"")),D=L(b(a?.brandingUrls?.dark??"")),p=L(!1);function d(c){const i=c.branding??{mode:"default",text:"Grav",logoLight:"",logoDark:""};r(s,i.mode,!0),r(u,i.text,!0),r(g,i.logoLight,!0),r(f,i.logoDark,!0),r(h,c.branding_urls?.light??"",!0),r(D,c.branding_urls?.dark??"",!0),r(p,!0)}function U(c){d(c),W(c)}async function e(c){const i=await i1(c);return d(i),i}async function C(c,i){const z=await c1(c,i);return d(z),z}async function E(c){const i=await s1(c);return d(i),i}return{get mode(){return t(s)},get text(){return t(u)},get logoLight(){return t(g)},get logoDark(){return t(f)},get urlLight(){return t(h)},get urlDark(){return t(D)},get loaded(){return t(p)},init:U,save:e,uploadLogo:C,deleteLogo:E}}const S=d1();var C1=N('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 504 140" fill="currentColor"><path d="M235.83,71.56L227.85,71.56C226.65,71.56 225.65,72.56 225.65,73.76L225.65,89.1L225.5,89.23C220.8,93.19 214.86,95.37 208.78,95.37C194.42,95.37 182.74,83.69 182.74,69.33C182.74,54.97 194.42,43.29 208.78,43.29C214.36,43.29 219.7,45.05 224.22,48.39C225.09,49.05 226.32,48.96 227.08,48.19L232.78,42.49C233.22,42.05 233.45,41.44 233.41,40.81C233.39,40.19 233.09,39.61 232.59,39.21C225.83,33.86 217.39,30.91 208.79,30.91C187.61,30.91 170.37,48.14 170.37,69.31C170.37,90.51 187.61,107.73 208.79,107.73C219.72,107.73 230.19,103.03 237.49,94.83C237.84,94.43 238.04,93.9 238.04,93.36L238.04,73.76C238.04,72.54 237.06,71.56 235.84,71.56M502.8,34.44C502.4,33.84 501.7,33.46 500.96,33.46L492.26,33.46C491.39,33.46 490.6,33.98 490.26,34.78L465.76,91.62L440.86,34.77C440.5,33.97 439.71,33.47 438.84,33.47L430.12,33.47C429.38,33.47 428.68,33.83 428.28,34.45C427.88,35.07 427.8,35.85 428.11,36.55L458.31,105.4C458.65,106.2 459.44,106.72 460.31,106.72L471.31,106.72C472.19,106.72 472.98,106.19 473.33,105.39L502.99,36.52C503.29,35.84 503.21,35.05 502.79,34.42"></path><path d="M388.68,34.77C388.33,33.97 387.54,33.45 386.68,33.45L375.68,33.45C374.8,33.45 374.01,33.98 373.66,34.78L344,103.64C343.7,104.32 343.78,105.11 344.18,105.72C344.58,106.34 345.28,106.72 346.02,106.72L354.72,106.72C355.58,106.72 356.38,106.19 356.72,105.39L381.22,48.53L406.12,105.39C406.48,106.19 407.27,106.71 408.14,106.71L416.86,106.71C417.6,106.71 418.3,106.33 418.7,105.71C419.1,105.09 419.17,104.31 418.87,103.61L388.67,34.76L388.68,34.77ZM309.2,81.52L309.67,81.3C318.35,77.1 323.95,68.2 323.95,58.63C323.95,44.75 312.65,33.45 298.78,33.45L266.9,33.45C265.7,33.45 264.7,34.45 264.7,35.65L264.7,104.51C264.7,105.74 265.7,106.73 266.9,106.73L274.9,106.73C276.1,106.73 277.1,105.73 277.1,104.53L277.1,45.8L298.78,45.8C305.83,45.8 311.58,51.55 311.58,58.6C311.58,64.5 307.58,69.6 301.85,71.02C300.81,71.28 299.78,71.42 298.78,71.42L290.8,71.42C289.97,71.42 289.2,71.88 288.84,72.62C288.46,73.35 288.54,74.24 289.04,74.92L311.64,105.79C312.06,106.37 312.72,106.71 313.42,106.71L323.32,106.71C324.16,106.71 324.92,106.24 325.29,105.51C325.66,104.76 325.59,103.87 325.09,103.21L309.19,81.51L309.2,81.52ZM107.2,80.97C99.94,76.17 95.8,72.12 92.18,64.87C89.71,69.84 83.94,77.24 74.22,83.07C69.36,98.17 46.26,127.07 38.79,122.97C36.57,121.77 36.15,120.17 36.64,118.52C37.18,114.39 45.72,104.9 45.72,104.9C45.72,104.9 45.9,106.9 48.64,111.08C45.04,99.88 54.6,86.05 57.14,81.35C61.12,80.08 61.41,74.95 61.41,74.95C61.67,67.05 58.13,61.32 54.71,57.9C57.17,60.9 57.96,65.44 58.08,69.6L58.08,71.02C57.96,74.45 56.92,79.2 54.7,79.2L54.7,79.23C52.42,79.13 49.6,79.63 47.07,80.41L41.47,81.75C41.47,81.75 44.45,81.62 46.07,83C44.27,85.9 40.29,89.53 35.85,91.58C29.4,94.58 27.55,88.62 30.82,84.74C31.62,83.8 32.44,83 33.2,82.34C32.7,81.84 32.4,81.14 32.32,80.28L32.32,80.26C31.86,78.29 32.12,75.72 34.92,71.64C35.46,70.78 36.12,69.89 36.92,68.99C36.94,68.95 36.96,68.92 36.99,68.89C37.02,68.85 37.06,68.81 37.09,68.77C37.11,68.75 37.13,68.73 37.15,68.71C37.35,68.48 37.57,68.26 37.79,68.04C41.13,64.64 46.39,61.08 54.69,57.89C64.4,43.68 67.94,41 67.94,41C69.01,39.9 70.88,38.55 71.57,38.2C66.52,29.43 65.5,17.05 66.82,13.7C66.72,13.9 66.62,14.08 66.52,14.27C67.02,13.13 67.35,12.77 67.86,12.17C69.24,10.53 73.92,9.67 75.6,13.13C76.5,14.97 76.66,17.36 76.63,19.15C72.93,18.95 69.57,23.19 69.57,23.19C69.57,23.19 72.64,21.73 76.45,21.69C76.45,21.69 77.45,22.59 78.73,24.25C77.03,27.45 74.21,34.27 76.23,41.41C76.58,42.81 77.09,44.03 77.73,45.06C77.75,45.11 77.77,45.16 77.8,45.2C77.85,45.27 77.9,45.33 77.94,45.4C81.31,50.46 87.48,51.06 87.48,51.06C84.58,49.61 82.21,47.3 80.68,44.5C79.86,43 79.38,41.73 79.08,40.73C77.44,34.43 79.85,30.73 81.22,28.26C84.39,23.36 90.17,20.36 96.37,21.08C105.09,22.08 111.34,29.94 110.35,38.65C109.75,43.97 106.57,48.37 102.2,50.77C103.25,53.61 102.13,57.05 102.13,57.05C104.77,60.37 104.89,62.28 104.8,64.05C101.44,63.5 98.18,65.75 98.18,65.75C98.18,65.75 104.66,64.22 108.42,67.57C110.86,70.21 112.5,72.57 113.47,74.34C114.87,76.84 121.33,77.02 120.59,81.54C119.85,86.04 114.91,86.07 107.19,80.97M69.56,0C31.15,0 0,31.15 0,69.57C0,107.99 31.15,139.14 69.57,139.14C107.99,139.14 139.14,107.99 139.14,69.57C139.14,31.15 108,0 69.57,0M73.8,51.7C74.6,50.88 74.6,49.56 73.8,48.75C72.98,47.93 71.66,47.93 70.85,48.75C70.03,49.55 70.03,50.88 70.85,51.69C71.65,52.49 72.98,52.49 73.8,51.69M66.45,53.15C65.63,53.95 65.63,55.28 66.45,56.1C67.25,56.9 68.58,56.9 69.39,56.1C70.19,55.28 70.19,53.96 69.39,53.15C68.57,52.35 67.25,52.35 66.44,53.15"></path><path d="M79.23,54.23C77.96,52.96 75.89,52.96 74.63,54.23L71.91,56.93C70.64,58.23 70.64,60.28 71.91,61.56L74.91,64.53C76.17,65.81 78.23,65.81 79.51,64.53L82.21,61.83C83.49,60.55 83.49,58.48 82.21,57.21L79.23,54.23ZM95.76,41.44C93.61,38.87 97.63,34.19 100.16,36.98C104.8,42.13 97.91,44.02 95.76,41.44M105,44.14C108.45,37.58 103.58,33.74 100.23,30.61C94.87,25.58 89.53,23.41 83.43,30.38C77.33,37.36 81.19,45.45 86.78,49.44C92.36,53.44 101.56,50.69 105,44.14"></path></svg>'),g1=N('<svg xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" viewBox="0 0 504 140" clip-rule="evenodd"><path d="M235.83 71.56h-7.98c-1.2 0-2.2 1-2.2 2.2V89.1l-.15.13c-4.7 3.96-10.64 6.14-16.72 6.14-14.36 0-26.04-11.68-26.04-26.04s11.68-26.04 26.04-26.04c5.58 0 10.92 1.76 15.44 5.1.87.66 2.1.57 2.86-.2l5.7-5.7c.44-.44.67-1.05.63-1.68-.02-.62-.32-1.2-.82-1.6-6.76-5.35-15.2-8.3-23.8-8.3-21.18 0-38.42 17.23-38.42 38.4 0 21.2 17.24 38.42 38.42 38.42 10.93 0 21.4-4.7 28.7-12.9.35-.4.55-.93.55-1.47v-19.6c0-1.22-.98-2.2-2.2-2.2M502.8 34.44c-.4-.6-1.1-.98-1.84-.98h-8.7c-.87 0-1.66.52-2 1.32l-24.5 56.84-24.9-56.85c-.36-.8-1.15-1.3-2.02-1.3h-8.72c-.74 0-1.44.36-1.84.98-.4.62-.48 1.4-.17 2.1l30.2 68.85c.34.8 1.13 1.32 2 1.32h11c.88 0 1.67-.53 2.02-1.33l29.66-68.87c.3-.68.22-1.47-.2-2.1"></path><path d="M388.68 34.77c-.35-.8-1.14-1.32-2-1.32h-11c-.88 0-1.67.53-2.02 1.33L344 103.64c-.3.68-.22 1.47.18 2.08.4.62 1.1 1 1.84 1h8.7c.86 0 1.66-.53 2-1.33l24.5-56.86 24.9 56.86c.36.8 1.15 1.32 2.02 1.32h8.72c.74 0 1.44-.38 1.84-1 .4-.62.47-1.4.17-2.1l-30.2-68.85zM309.2 81.52l.47-.22c8.68-4.2 14.28-13.1 14.28-22.67 0-13.88-11.3-25.18-25.17-25.18H266.9c-1.2 0-2.2 1-2.2 2.2v68.86c0 1.23 1 2.22 2.2 2.22h8c1.2 0 2.2-1 2.2-2.2V45.8h21.68c7.05 0 12.8 5.75 12.8 12.8 0 5.9-4 11-9.73 12.42-1.04.26-2.07.4-3.07.4h-7.98c-.83 0-1.6.46-1.96 1.2-.38.73-.3 1.62.2 2.3l22.6 30.87c.42.58 1.08.92 1.78.92h9.9c.84 0 1.6-.47 1.97-1.2.37-.75.3-1.64-.2-2.3l-15.9-21.7zM107.2 80.97c-7.26-4.8-11.4-8.85-15.02-16.1-2.47 4.97-8.24 12.37-17.96 18.2-4.86 15.1-27.96 44-35.43 39.9-2.22-1.2-2.64-2.8-2.15-4.45.54-4.13 9.08-13.62 9.08-13.62s.18 2 2.92 6.18c-3.6-11.2 5.96-25.03 8.5-29.73 3.98-1.27 4.27-6.4 4.27-6.4.26-7.9-3.28-13.63-6.7-17.05 2.46 3 3.25 7.54 3.37 11.7v.02c0 .47 0 .93 0 1.4-.12 3.43-1.16 8.18-3.38 8.18v.03c-2.28-.1-5.1.4-7.63 1.18l-5.6 1.34s2.98-.13 4.6 1.25c-1.8 2.9-5.78 6.53-10.22 8.58-6.45 3-8.3-2.96-5.03-6.84.8-.94 1.62-1.74 2.38-2.4-.5-.5-.8-1.2-.88-2.06 0 0 0 0 0-.02-.46-1.97-.2-4.54 2.6-8.62.54-.86 1.2-1.75 2-2.65.02-.04.04-.07.07-.1.03-.04.07-.08.1-.12.02-.02.04-.04.06-.06.2-.23.42-.45.64-.67 3.34-3.4 8.6-6.96 16.9-10.15C64.4 43.68 67.94 41 67.94 41c1.07-1.1 2.94-2.45 3.63-2.8-5.05-8.77-6.07-21.15-4.75-24.5-.1.2-.2.38-.3.57.5-1.14.83-1.5 1.34-2.1 1.38-1.64 6.06-2.5 7.74.96.9 1.84 1.06 4.23 1.03 6.02-3.7-.2-7.06 4.04-7.06 4.04s3.07-1.46 6.88-1.5c0 0 1 .9 2.28 2.56-1.7 3.2-4.52 10.02-2.5 17.16.35 1.4.86 2.62 1.5 3.65.02.05.04.1.07.14.05.07.1.13.14.2 3.37 5.06 9.54 5.66 9.54 5.66-2.9-1.45-5.27-3.76-6.8-6.56-.82-1.5-1.3-2.77-1.6-3.77-1.64-6.3.77-10 2.14-12.47 3.17-4.9 8.95-7.9 15.15-7.18 8.72 1 14.97 8.86 13.98 17.57-.6 5.32-3.78 9.72-8.15 12.12 1.05 2.84-.07 6.28-.07 6.28 2.64 3.32 2.76 5.23 2.67 7-3.36-.55-6.62 1.7-6.62 1.7s6.48-1.53 10.24 1.82c2.44 2.64 4.08 5 5.05 6.77 1.4 2.5 7.86 2.68 7.12 7.2-.74 4.5-5.68 4.53-13.4-.57M69.56 0C31.15 0 0 31.15 0 69.57c0 38.42 31.15 69.57 69.57 69.57 38.42 0 69.57-31.15 69.57-69.57C139.14 31.15 108 0 69.57 0M73.8 51.7c.8-.82.8-2.14 0-2.95-.82-.82-2.14-.82-2.95 0-.82.8-.82 2.13 0 2.94.8.8 2.13.8 2.95 0M66.45 53.15c-.82.8-.82 2.13 0 2.95.8.8 2.13.8 2.94 0 .8-.82.8-2.14 0-2.95-.82-.8-2.14-.8-2.95 0"></path><path d="M79.23 54.23c-1.27-1.27-3.34-1.27-4.6 0l-2.72 2.7c-1.27 1.3-1.27 3.35 0 4.63l3 2.97c1.26 1.28 3.32 1.28 4.6 0l2.7-2.7c1.28-1.28 1.28-3.35 0-4.62l-2.97-2.97zM95.76 41.44c-2.15-2.57 1.87-7.25 4.4-4.46 4.64 5.15-2.25 7.04-4.4 4.46m9.24 2.7c3.45-6.56-1.42-10.4-4.77-13.53-5.36-5.03-10.7-7.2-16.8-.23-6.1 6.98-2.24 15.07 3.35 19.06 5.58 4 14.78 1.25 18.22-5.3"></path></svg>'),f1=T('<div class="flex items-center gap-2.5"><!></div>'),h1=T('<span class="text-sm font-semibold tracking-tight text-foreground"> </span>'),v1=T('<div class="flex items-center gap-2.5"><div><span> </span></div> <!></div>'),m1=T('<img alt="Logo"/>'),L1=T("<div><span> </span></div>"),p1=T('<div class="flex items-center gap-2.5"><!></div>');function D1(a,s){t1(s,!0);let u=F(s,"size",3,"sidebar"),g=F(s,"showLabel",3,!1);const f=m(()=>u1.isDark),h=m(()=>u()==="sidebar"),D=m(()=>t(h)?"h-7 w-7":"h-14 w-14"),p=m(()=>t(h)?"rounded-md":"rounded-xl"),d=m(()=>t(h)?"text-xs":"text-xl"),U=m(()=>S.mode==="text"&&S.text?S.text:"Grav"),e=m(()=>t(U).charAt(0).toUpperCase());function C(){return typeof window>"u"?"":window.__GRAV_CONFIG__?.serverUrl??""}function E(o){return o?o.startsWith("http://")||o.startsWith("https://")?o:C()+o:""}const c=m(()=>E(S.urlLight)),i=m(()=>E(S.urlDark)),z=m(()=>t(f)?t(i)||t(c):t(c)||t(i));var j=e1(),J=r1(j);{var K=o=>{var v=f1(),M=w(v);{var A=l=>{var n=C1();let _;H(()=>_=B(n,0,t(h)?"h-7":"h-12",null,_,{"text-foreground":!0})),x(l,n)},G=l=>{var n=g1();H(()=>B(n,0,t(h)?"h-7":"h-12")),x(l,n)};R(M,l=>{t(f)?l(A):l(G,-1)})}k(v),x(o,v)},Q=o=>{var v=v1(),M=w(v),A=w(M),G=w(A,!0);k(A),k(M);var l=o1(M,2);{var n=_=>{var P=h1(),Y=w(P,!0);k(P),H(()=>Z(Y,t(U))),x(_,P)};R(l,_=>{g()&&_(n)})}k(v),H(()=>{B(M,1,`flex ${t(D)??""} shrink-0 items-center justify-center ${t(p)??""} bg-primary text-primary-foreground shadow-sm`),B(A,1,`${t(d)??""} font-bold`),Z(G,t(e))}),x(o,v)},X=o=>{var v=p1(),M=w(v);{var A=l=>{var n=m1();H(()=>{n1(n,"src",t(z)),B(n,1,`${t(h)?"h-7":"h-12"} w-auto`)}),x(l,n)},G=l=>{var n=L1(),_=w(n),P=w(_,!0);k(_),k(n),H(()=>{B(n,1,`flex ${t(D)??""} shrink-0 items-center justify-center ${t(p)??""} bg-primary text-primary-foreground shadow-sm`),B(_,1,`${t(d)??""} font-bold`),Z(P,t(e))}),x(l,n)};R(M,l=>{t(z)?l(A):l(G,-1)})}k(v),x(o,v)};R(J,o=>{S.mode==="default"?o(K):S.mode==="text"?o(Q,1):S.mode==="custom"&&o(X,2)})}x(a,j),a1()}export{S1 as A,D1 as B,S as b,u1 as t};