Files
cirux/.next/static/chunks/app/layout-c90a34c135304d53.js
T
2026-06-03 15:08:40 -05:00

1 line
4.1 KiB
JavaScript

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{4104:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_3eb911",variable:"__variable_3eb911"}},5379:(e,t,r)=>{"use strict";r.d(t,{D:()=>m,N:()=>c});var a=r(12115),s=(e,t,r,a,s,n,l,o)=>{let i=document.documentElement,m=["light","dark"];function c(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,a=r&&n?s.map(e=>n[e]||e):s;r?(i.classList.remove(...a),i.classList.add(n&&n[t]?n[t]:t)):i.setAttribute(e,t)}),r=t,o&&m.includes(r)&&(i.style.colorScheme=r)}if(a)c(a);else try{let e=localStorage.getItem(t)||r,a=l&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(a)}catch(e){}},n=["light","dark"],l="(prefers-color-scheme: dark)",o=a.createContext(void 0),i={setTheme:e=>{},themes:[]},m=()=>{var e;return null!=(e=a.useContext(o))?e:i},c=e=>a.useContext(o)?a.createElement(a.Fragment,null,e.children):a.createElement(u,{...e}),d=["light","dark"],u=e=>{let{forcedTheme:t,disableTransitionOnChange:r=!1,enableSystem:s=!0,enableColorScheme:i=!0,storageKey:m="theme",themes:c=d,defaultTheme:u=s?"system":"light",attribute:p="data-theme",value:v,children:g,nonce:S,scriptProps:k}=e,[_,E]=a.useState(()=>b(m,u)),[T,w]=a.useState(()=>"system"===_?f():_),C=v?Object.values(v):c,N=a.useCallback(e=>{let t=e;if(!t)return;"system"===e&&s&&(t=f());let a=v?v[t]:t,l=r?y(S):null,o=document.documentElement,m=e=>{"class"===e?(o.classList.remove(...C),a&&o.classList.add(a)):e.startsWith("data-")&&(a?o.setAttribute(e,a):o.removeAttribute(e))};if(Array.isArray(p)?p.forEach(m):m(p),i){let e=n.includes(u)?u:null,r=n.includes(t)?t:e;o.style.colorScheme=r}null==l||l()},[S]),L=a.useCallback(e=>{let t="function"==typeof e?e(_):e;E(t);try{localStorage.setItem(m,t)}catch(e){}},[_]),P=a.useCallback(e=>{w(f(e)),"system"===_&&s&&!t&&N("system")},[_,t]);a.useEffect(()=>{let e=window.matchMedia(l);return e.addListener(P),P(e),()=>e.removeListener(P)},[P]),a.useEffect(()=>{let e=e=>{e.key===m&&(e.newValue?E(e.newValue):L(u))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[L]),a.useEffect(()=>{N(null!=t?t:_)},[t,_]);let A=a.useMemo(()=>({theme:_,setTheme:L,forcedTheme:t,resolvedTheme:"system"===_?T:_,themes:s?[...c,"system"]:c,systemTheme:s?T:void 0}),[_,L,t,T,s,c]);return a.createElement(o.Provider,{value:A},a.createElement(h,{forcedTheme:t,storageKey:m,attribute:p,enableSystem:s,enableColorScheme:i,defaultTheme:u,value:v,themes:c,nonce:S,scriptProps:k}),g)},h=a.memo(e=>{let{forcedTheme:t,storageKey:r,attribute:n,enableSystem:l,enableColorScheme:o,defaultTheme:i,value:m,themes:c,nonce:d,scriptProps:u}=e,h=JSON.stringify([n,r,i,t,c,m,l,o]).slice(1,-1);return a.createElement("script",{...u,suppressHydrationWarning:!0,nonce:"",dangerouslySetInnerHTML:{__html:"(".concat(s.toString(),")(").concat(h,")")}})}),b=(e,t)=>{let r;try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t},y=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},f=e=>(e||(e=window.matchMedia(l)),e.matches?"dark":"light")},13673:()=>{},19460:e=>{e.exports={style:{fontFamily:"'Space Grotesk', 'Space Grotesk Fallback'",fontStyle:"normal"},className:"__className_49a339",variable:"__variable_49a339"}},39664:(e,t,r)=>{"use strict";r.d(t,{ThemeWrapper:()=>n});var a=r(95155),s=r(5379);function n(e){let{children:t}=e;return(0,a.jsx)(s.N,{attribute:"class",defaultTheme:"light",enableSystem:!1,disableTransitionOnChange:!0,children:t})}},74343:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,19460,23)),Promise.resolve().then(r.t.bind(r,4104,23)),Promise.resolve().then(r.bind(r,18720)),Promise.resolve().then(r.t.bind(r,13673,23)),Promise.resolve().then(r.bind(r,39664))}},e=>{e.O(0,[7372,8720,8441,1255,7358],()=>e(e.s=74343)),_N_E=e.O()}]);