@alepha/devtools 0.13.8 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/assets/devtools/{chunk.Cw2RCl4F.js → chunk.4uk7i9-q.js} +1 -1
  2. package/assets/devtools/{chunk.17gtbQUO.js → chunk.69EpOqBb.js} +1 -1
  3. package/assets/devtools/{chunk.BULoWCgJ.js → chunk.Ahe7TOrT.js} +1 -1
  4. package/assets/devtools/{chunk.CyQeq1kA.js → chunk.BOmhpMQZ.js} +1 -1
  5. package/assets/devtools/{chunk.BmJ7-uBd.js → chunk.BPR3Fzfi.js} +1 -1
  6. package/assets/devtools/{chunk.Ct58VlQl.js → chunk.BY1cUJeA.js} +1 -1
  7. package/assets/devtools/{chunk.DooL4OcT.js → chunk.BiZFFFTD.js} +1 -1
  8. package/assets/devtools/{chunk.DJJIo7HU.js → chunk.Bmb3xtb6.js} +1 -1
  9. package/assets/devtools/{chunk.DHWcJNNS.js → chunk.BumKuBFW.js} +1 -1
  10. package/assets/devtools/{chunk.CHRbA_gU.js → chunk.BzgsKQoC.js} +1 -1
  11. package/assets/devtools/{chunk.1mem8WHh.js → chunk.C2hdXZn7.js} +1 -1
  12. package/assets/devtools/{chunk.OlMI8g2F.js → chunk.CKmrGczh.js} +1 -1
  13. package/assets/devtools/{chunk.DR0SHXXd.js → chunk.CLi65HO4.js} +1 -1
  14. package/assets/devtools/{chunk.DEUHUxKv.js → chunk.CUTV1O_R.js} +1 -1
  15. package/assets/devtools/{chunk.CBGZOsrp.js → chunk.CaPSIJzT.js} +1 -1
  16. package/assets/devtools/{chunk.DJOi4_So.js → chunk.ChHWktn9.js} +1 -1
  17. package/assets/devtools/{chunk.DGW-W4Kc.js → chunk.ChW-mtOy.js} +1 -1
  18. package/assets/devtools/{chunk.fpKvkQeU.js → chunk.CkWIENRP.js} +1 -1
  19. package/assets/devtools/{chunk.CzbujtK7.js → chunk.CvqDfxXu.js} +1 -1
  20. package/assets/devtools/{chunk.Pj_uCbSv.js → chunk.CyVfOtMH.js} +1 -1
  21. package/assets/devtools/{chunk.IVvrfXp1.js → chunk.D4LcKiGJ.js} +1 -1
  22. package/assets/devtools/{chunk.DinJSUfH.js → chunk.D4_B6m39.js} +1 -1
  23. package/assets/devtools/{chunk.B0aYes_4.js → chunk.D7T7GuJQ.js} +1 -1
  24. package/assets/devtools/{chunk.YXYL4YAO.js → chunk.DD8gLmva.js} +1 -1
  25. package/assets/devtools/{chunk.RTodzvo0.js → chunk.DFYPFYhv.js} +1 -1
  26. package/assets/devtools/{chunk.Dry2LXOT.js → chunk.DUAYORVN.js} +1 -1
  27. package/assets/devtools/{chunk.BYrPfJRg.js → chunk.DXpU07Gr.js} +1 -1
  28. package/assets/devtools/{chunk.DIfRZc20.js → chunk.DknkYaMA.js} +1 -1
  29. package/assets/devtools/{chunk.DA9XnVAa.js → chunk.K3IQQCLu.js} +1 -1
  30. package/assets/devtools/{chunk.qDx9cjbN.js → chunk.KBmIO7L9.js} +1 -1
  31. package/assets/devtools/{chunk.BzE7YYkj.js → chunk.RI-cVyH7.js} +1 -1
  32. package/assets/devtools/{chunk.rJToME5k.js → chunk.humlEV7p.js} +1 -1
  33. package/assets/devtools/{chunk.C49FcqzR.js → chunk.iXAb6asG.js} +1 -1
  34. package/assets/devtools/{chunk.rohGhT-A.js → chunk.qynByvMI.js} +1 -1
  35. package/assets/devtools/entry.Bkwg306k.js +75 -0
  36. package/assets/devtools/index.html +1 -1
  37. package/dist/index.d.ts +31 -28
  38. package/package.json +6 -6
  39. package/assets/devtools/entry.BY4L2Uc6.js +0 -75
@@ -1,2 +1,2 @@
1
- import{w as T,Y as C,Z as k,r as h,j as e,F as x,T as r,B as a,H as p,ae as L,z as E,ac as v,S as z,a8 as V,ad as B,aa as I,ab as M}from"./entry.BY4L2Uc6.js";import{d as $}from"./chunk.Cw2RCl4F.js";import{S as y,B as b}from"./chunk.Dry2LXOT.js";import{C as w}from"./chunk.CyQeq1kA.js";import{T as t}from"./chunk.DJJIo7HU.js";import{I as H}from"./chunk.Ct58VlQl.js";const N=[["path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]],O=T("outline","settings","Settings",N),A=s=>{const n=new Map;for(const l of s){const i=l.schema;if(i?.properties)for(const[o,c]of Object.entries(i.properties)){if(n.has(o))continue;const d=c,u=l.values[o];let g=d.type??"unknown",m=d.format;if(d.anyOf){const j=d.anyOf.find(f=>f.type!=="null");j&&(g=j.type??"unknown",m=j.format)}n.set(o,{name:o,value:u,type:g,description:d.description,format:m})}}return Array.from(n.values()).sort((l,i)=>l.name.localeCompare(i.name))},F=({variables:s,selectedVar:n,onSelectVar:l,search:i,onSearchChange:o})=>e.jsxs(y,{gap:0,h:"100%",children:[e.jsx(a,{p:"sm",style:{borderBottom:`1px solid ${p.colors.border}`},children:e.jsx(L,{placeholder:"Search variables...",leftSection:e.jsx(E,{size:14}),size:"xs",value:i,onChange:c=>o(c.target.value)})}),e.jsx(v,{style:{flex:1},children:e.jsxs(a,{children:[e.jsxs(r,{size:"xs",fw:600,c:"dimmed",px:"sm",py:"xs",style:{backgroundColor:p.colors.background,borderBottom:`1px solid ${p.colors.border}`,textTransform:"uppercase",letterSpacing:"0.05em"},children:["Variables (",s.length,")"]}),s.map(c=>{const d=n?.name===c.name;return e.jsxs(x,{align:"center",gap:"xs",px:"sm",py:6,onClick:()=>l(c),style:{cursor:"pointer",backgroundColor:d?"#228be615":void 0,borderLeft:d?"2px solid #228be6":"2px solid transparent",borderBottom:`1px solid ${p.colors.border}`},children:[e.jsx(z,{size:14,opacity:.5}),e.jsx(r,{size:"sm",style:{flex:1},truncate:!0,ff:"monospace",children:c.name})]},c.name)})]})})]}),R=({variable:s})=>{const n=s.value!==void 0&&s.value!=="",l=n?String(s.value):"(not set)",i=s.name.toLowerCase().includes("secret")||s.name.toLowerCase().includes("password")||s.name.toLowerCase().includes("key")||s.name.toLowerCase().includes("token");return e.jsxs(x,{direction:"column",h:"100%",children:[e.jsx(a,{px:"md",py:"sm",style:{borderBottom:`1px solid ${p.colors.border}`,backgroundColor:"#228be608"},children:e.jsxs(x,{align:"center",gap:"sm",children:[e.jsx(z,{size:18,opacity:.7}),e.jsx(r,{size:"md",fw:600,ff:"monospace",children:s.name}),e.jsx(b,{size:"xs",variant:"outline",color:"blue",children:s.format||s.type})]})}),e.jsx(v,{style:{flex:1},p:"md",children:e.jsxs(y,{gap:"lg",children:[s.description&&e.jsxs(a,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Description"}),e.jsx(r,{size:"sm",c:"dimmed",children:s.description})]}),e.jsxs(a,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Current Value"}),e.jsxs(x,{align:"center",gap:"sm",children:[e.jsx(w,{block:!0,style:{flex:1,filter:i&&n?"blur(4px)":void 0,transition:"filter 0.2s"},onMouseEnter:o=>{i&&(o.currentTarget.style.filter="none")},onMouseLeave:o=>{i&&n&&(o.currentTarget.style.filter="blur(4px)")},children:l}),n&&e.jsx(V,{value:String(s.value),children:({copied:o,copy:c})=>e.jsx(B,{label:o?"Copied!":"Copy value",children:e.jsx(a,{onClick:c,style:{cursor:"pointer"},c:o?"teal":"dimmed",children:o?e.jsx(I,{size:16}):e.jsx(M,{size:16})})})})]}),i&&e.jsx(r,{size:"xs",c:"dimmed",mt:"xs",children:"Hover to reveal sensitive value"})]}),e.jsxs(a,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Schema"}),e.jsx(t,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:e.jsxs(t.Tbody,{children:[e.jsxs(t.Tr,{children:[e.jsx(t.Td,{w:120,children:e.jsx(r,{size:"sm",c:"dimmed",children:"Type"})}),e.jsx(t.Td,{children:e.jsx(r,{size:"sm",ff:"monospace",children:s.type})})]}),s.format&&e.jsxs(t.Tr,{children:[e.jsx(t.Td,{children:e.jsx(r,{size:"sm",c:"dimmed",children:"Format"})}),e.jsx(t.Td,{children:e.jsx(r,{size:"sm",ff:"monospace",children:s.format})})]})]})})]}),e.jsxs(a,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Usage"}),e.jsx(w,{block:!0,children:`# Set in .env file or environment
1
+ import{w as T,Y as C,Z as k,r as h,j as e,F as x,T as r,B as a,H as p,ae as L,z as E,ac as v,S as z,a8 as V,ad as B,aa as I,ab as M}from"./entry.Bkwg306k.js";import{d as $}from"./chunk.4uk7i9-q.js";import{S as y,B as b}from"./chunk.DUAYORVN.js";import{C as w}from"./chunk.BOmhpMQZ.js";import{T as t}from"./chunk.Bmb3xtb6.js";import{I as H}from"./chunk.BY1cUJeA.js";const N=[["path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]],O=T("outline","settings","Settings",N),A=s=>{const n=new Map;for(const l of s){const i=l.schema;if(i?.properties)for(const[o,c]of Object.entries(i.properties)){if(n.has(o))continue;const d=c,u=l.values[o];let g=d.type??"unknown",m=d.format;if(d.anyOf){const j=d.anyOf.find(f=>f.type!=="null");j&&(g=j.type??"unknown",m=j.format)}n.set(o,{name:o,value:u,type:g,description:d.description,format:m})}}return Array.from(n.values()).sort((l,i)=>l.name.localeCompare(i.name))},F=({variables:s,selectedVar:n,onSelectVar:l,search:i,onSearchChange:o})=>e.jsxs(y,{gap:0,h:"100%",children:[e.jsx(a,{p:"sm",style:{borderBottom:`1px solid ${p.colors.border}`},children:e.jsx(L,{placeholder:"Search variables...",leftSection:e.jsx(E,{size:14}),size:"xs",value:i,onChange:c=>o(c.target.value)})}),e.jsx(v,{style:{flex:1},children:e.jsxs(a,{children:[e.jsxs(r,{size:"xs",fw:600,c:"dimmed",px:"sm",py:"xs",style:{backgroundColor:p.colors.background,borderBottom:`1px solid ${p.colors.border}`,textTransform:"uppercase",letterSpacing:"0.05em"},children:["Variables (",s.length,")"]}),s.map(c=>{const d=n?.name===c.name;return e.jsxs(x,{align:"center",gap:"xs",px:"sm",py:6,onClick:()=>l(c),style:{cursor:"pointer",backgroundColor:d?"#228be615":void 0,borderLeft:d?"2px solid #228be6":"2px solid transparent",borderBottom:`1px solid ${p.colors.border}`},children:[e.jsx(z,{size:14,opacity:.5}),e.jsx(r,{size:"sm",style:{flex:1},truncate:!0,ff:"monospace",children:c.name})]},c.name)})]})})]}),R=({variable:s})=>{const n=s.value!==void 0&&s.value!=="",l=n?String(s.value):"(not set)",i=s.name.toLowerCase().includes("secret")||s.name.toLowerCase().includes("password")||s.name.toLowerCase().includes("key")||s.name.toLowerCase().includes("token");return e.jsxs(x,{direction:"column",h:"100%",children:[e.jsx(a,{px:"md",py:"sm",style:{borderBottom:`1px solid ${p.colors.border}`,backgroundColor:"#228be608"},children:e.jsxs(x,{align:"center",gap:"sm",children:[e.jsx(z,{size:18,opacity:.7}),e.jsx(r,{size:"md",fw:600,ff:"monospace",children:s.name}),e.jsx(b,{size:"xs",variant:"outline",color:"blue",children:s.format||s.type})]})}),e.jsx(v,{style:{flex:1},p:"md",children:e.jsxs(y,{gap:"lg",children:[s.description&&e.jsxs(a,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Description"}),e.jsx(r,{size:"sm",c:"dimmed",children:s.description})]}),e.jsxs(a,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Current Value"}),e.jsxs(x,{align:"center",gap:"sm",children:[e.jsx(w,{block:!0,style:{flex:1,filter:i&&n?"blur(4px)":void 0,transition:"filter 0.2s"},onMouseEnter:o=>{i&&(o.currentTarget.style.filter="none")},onMouseLeave:o=>{i&&n&&(o.currentTarget.style.filter="blur(4px)")},children:l}),n&&e.jsx(V,{value:String(s.value),children:({copied:o,copy:c})=>e.jsx(B,{label:o?"Copied!":"Copy value",children:e.jsx(a,{onClick:c,style:{cursor:"pointer"},c:o?"teal":"dimmed",children:o?e.jsx(I,{size:16}):e.jsx(M,{size:16})})})})]}),i&&e.jsx(r,{size:"xs",c:"dimmed",mt:"xs",children:"Hover to reveal sensitive value"})]}),e.jsxs(a,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Schema"}),e.jsx(t,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:e.jsxs(t.Tbody,{children:[e.jsxs(t.Tr,{children:[e.jsx(t.Td,{w:120,children:e.jsx(r,{size:"sm",c:"dimmed",children:"Type"})}),e.jsx(t.Td,{children:e.jsx(r,{size:"sm",ff:"monospace",children:s.type})})]}),s.format&&e.jsxs(t.Tr,{children:[e.jsx(t.Td,{children:e.jsx(r,{size:"sm",c:"dimmed",children:"Format"})}),e.jsx(t.Td,{children:e.jsx(r,{size:"sm",ff:"monospace",children:s.format})})]})]})})]}),e.jsxs(a,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Usage"}),e.jsx(w,{block:!0,children:`# Set in .env file or environment
2
2
  ${s.name}=${n?s.value:"<value>"}`})]})]})})]})},D=()=>e.jsx(x,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(y,{align:"center",gap:"xs",children:[e.jsx(O,{size:48,opacity:.3}),e.jsx(r,{children:"No environment variables found"}),e.jsx(r,{size:"sm",c:"dimmed",children:"Use $env primitive to define expected environment variables"})]})}),U=({variables:s})=>e.jsx(v,{h:"100%",p:"md",children:e.jsx(y,{gap:"lg",children:e.jsxs(a,{children:[e.jsxs(x,{align:"center",gap:"xs",mb:"sm",children:[e.jsx(H,{size:18,opacity:.7}),e.jsx(r,{size:"md",fw:600,children:"All Environment Variables"}),e.jsxs(b,{size:"sm",variant:"light",children:[s.length," variables"]})]}),e.jsxs(t,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:[e.jsx(t.Thead,{children:e.jsxs(t.Tr,{children:[e.jsx(t.Th,{children:"Name"}),e.jsx(t.Th,{children:"Type"}),e.jsx(t.Th,{children:"Value"})]})}),e.jsx(t.Tbody,{children:s.map(n=>{const l=n.value!==void 0&&n.value!=="",i=n.name.toLowerCase().includes("secret")||n.name.toLowerCase().includes("password")||n.name.toLowerCase().includes("key")||n.name.toLowerCase().includes("token");return e.jsxs(t.Tr,{children:[e.jsx(t.Td,{children:e.jsx(r,{size:"sm",ff:"monospace",fw:500,children:n.name})}),e.jsx(t.Td,{children:e.jsx(b,{size:"xs",variant:"outline",color:"blue",children:n.format||n.type})}),e.jsx(t.Td,{children:l?e.jsxs(r,{size:"sm",ff:"monospace",c:"dimmed",style:{filter:i?"blur(4px)":void 0},children:[String(n.value).slice(0,30),String(n.value).length>30?"...":""]}):e.jsx(r,{size:"sm",c:"dimmed",fs:"italic",children:"(not set)"})})]},n.name)})})]})]})})}),G=()=>{const s=C(k),[n,l]=h.useState([]),[i,o]=h.useState(!0),[c,d]=h.useState(null),[u,g]=h.useState("");h.useEffect(()=>{s.fetch("/devtools/api/metadata",{schema:{response:$}}).then(f=>{l(f.data.envs),o(!1)})},[]);const m=h.useMemo(()=>A(n),[n]),j=h.useMemo(()=>{if(!u)return m;const f=u.toLowerCase();return m.filter(S=>S.name.toLowerCase().includes(f))},[m,u]);return i?e.jsx(x,{align:"center",justify:"center",h:"100%",children:e.jsx(r,{c:"dimmed",children:"Loading..."})}):m.length===0?e.jsx(D,{}):e.jsxs(x,{h:"100%",style:{overflow:"hidden"},children:[e.jsx(a,{w:280,style:{borderRight:`1px solid ${p.colors.border}`,backgroundColor:p.colors.surface},children:e.jsx(F,{variables:j,selectedVar:c,onSelectVar:d,search:u,onSearchChange:g})}),e.jsx(a,{style:{flex:1,overflow:"hidden"},children:c?e.jsx(R,{variable:c}):e.jsx(U,{variables:m})})]})};export{G as DevEnvExplorer,G as default};
@@ -1,2 +1,2 @@
1
- import{c as W,f as B,b as N,j as e,U as xe,B as w,_ as fe,$ as ve,a0 as Q,q as je,s as ge,a1 as ye,e as be,a2 as Se,r as f,a3 as Ce,T as b,Y as X,Z as Y,a4 as A,a5 as Ie,a6 as Z,a7 as ze,a8 as ee,a9 as se,aa as te,ab as oe,ac as re,ad as Ae,G as we,H as G,F as J,K as Pe,ae as Te,z as Ne}from"./entry.BY4L2Uc6.js";import{d as Ee}from"./chunk.Cw2RCl4F.js";import{B as k,S as O}from"./chunk.Dry2LXOT.js";import{C as U}from"./chunk.CyQeq1kA.js";import{T as Re}from"./chunk.DHWcJNNS.js";import{I as _e}from"./chunk.DIfRZc20.js";import{g as V,T as z}from"./chunk.rJToME5k.js";import{A as ne}from"./chunk.DinJSUfH.js";import{c as Oe}from"./chunk.BlqFPyLh.js";import{I as Be}from"./chunk.BYrPfJRg.js";import{I as ke}from"./chunk.DA9XnVAa.js";import{S as Le}from"./chunk.BmJ7-uBd.js";import"./chunk.uyVen0u2.js";const[Je,$]=W("Accordion component was not found in the tree"),[Ue,ae]=W("Accordion.Item component was not found in the tree");var E={root:"m_9bdbb667",panel:"m_df78851f",content:"m_4ba554d4",itemTitle:"m_8fa820a0",control:"m_4ba585b8","control--default":"m_6939a5e9","control--contained":"m_4271d21b",label:"m_df3ffa0f",chevron:"m_3f35ae96",icon:"m_9bd771fe",item:"m_9bd7b098","item--default":"m_fe19b709","item--contained":"m_1f921b3b","item--filled":"m_2cdf939a","item--separated":"m_9f59b069"};const D=B((s,o)=>{const{classNames:t,className:d,style:x,styles:l,vars:g,chevron:c,icon:m,onClick:u,onKeyDown:n,children:r,disabled:i,mod:h,...p}=N("AccordionControl",null,s),{value:y}=ae(),a=$(),S=a.isItemActive(y),R=typeof a.order=="number",T=`h${a.order}`,v=e.jsxs(xe,{...p,...a.getStyles("control",{className:d,classNames:t,style:x,styles:l,variant:a.variant}),unstyled:a.unstyled,mod:["accordion-control",{active:S,"chevron-position":a.chevronPosition,disabled:i},h],ref:o,onClick:P=>{u?.(P),a.onChange(y)},type:"button",disabled:i,"aria-expanded":S,"aria-controls":a.getRegionId(y),id:a.getControlId(y),onKeyDown:Oe({siblingSelector:"[data-accordion-control]",parentSelector:"[data-accordion]",activateOnFocus:!1,loop:a.loop,orientation:"vertical",onKeyDown:n}),children:[e.jsx(w,{component:"span",mod:{rotate:!a.disableChevronRotation&&S,position:a.chevronPosition},...a.getStyles("chevron",{classNames:t,styles:l}),children:c||a.chevron}),e.jsx("span",{...a.getStyles("label",{classNames:t,styles:l}),children:r}),m&&e.jsx(w,{component:"span",mod:{"chevron-position":a.chevronPosition},...a.getStyles("icon",{classNames:t,styles:l}),children:m})]});return R?e.jsx(T,{...a.getStyles("itemTitle",{classNames:t,styles:l}),children:v}):v});D.displayName="@mantine/core/AccordionControl";D.classes=E;const M=B((s,o)=>{const{classNames:t,className:d,style:x,styles:l,vars:g,value:c,mod:m,...u}=N("AccordionItem",null,s),n=$();return e.jsx(Ue,{value:{value:c},children:e.jsx(w,{ref:o,mod:[{active:n.isItemActive(c)},m],...n.getStyles("item",{className:d,classNames:t,styles:l,style:x,variant:n.variant}),...u})})});M.displayName="@mantine/core/AccordionItem";M.classes=E;const F=B((s,o)=>{const{classNames:t,className:d,style:x,styles:l,vars:g,children:c,...m}=N("AccordionPanel",null,s),{value:u}=ae(),n=$();return e.jsx(fe,{ref:o,...n.getStyles("panel",{className:d,classNames:t,style:x,styles:l}),...m,in:n.isItemActive(u),transitionDuration:n.transitionDuration??200,role:"region",id:n.getRegionId(u),"aria-labelledby":n.getControlId(u),children:e.jsx("div",{...n.getStyles("content",{classNames:t,styles:l}),children:c})})});F.displayName="@mantine/core/AccordionPanel";F.classes=E;const $e={multiple:!1,disableChevronRotation:!1,chevronPosition:"right",variant:"default",chevronSize:"auto",chevronIconSize:16},De=ge((s,{transitionDuration:o,chevronSize:t,radius:d})=>({root:{"--accordion-transition-duration":o===void 0?void 0:`${o}ms`,"--accordion-chevron-size":t===void 0?void 0:be(t),"--accordion-radius":d===void 0?void 0:ye(d)}}));function j(s){const o=N("Accordion",$e,s),{classNames:t,className:d,style:x,styles:l,unstyled:g,vars:c,children:m,multiple:u,value:n,defaultValue:r,onChange:i,id:h,loop:p,transitionDuration:y,disableChevronRotation:a,chevronPosition:S,chevronSize:R,order:T,chevron:v,variant:P,radius:Qe,chevronIconSize:le,attributes:ie,...ce}=o,L=ve(h),[C,de]=Q({value:n,defaultValue:r,finalValue:u?[]:null,onChange:i}),ue=I=>Array.isArray(C)?C.includes(I):I===C,me=I=>{const he=Array.isArray(C)?C.includes(I)?C.filter(pe=>pe!==I):[...C,I]:I===C?null:I;de(he)},q=je({name:"Accordion",classes:E,props:o,className:d,style:x,classNames:t,styles:l,unstyled:g,attributes:ie,vars:c,varsResolver:De});return e.jsx(Je,{value:{isItemActive:ue,onChange:me,getControlId:V(`${L}-control`,"Accordion.Item component was rendered with invalid value or without value"),getRegionId:V(`${L}-panel`,"Accordion.Item component was rendered with invalid value or without value"),chevron:v===null?null:v||e.jsx(ne,{size:le}),transitionDuration:y,disableChevronRotation:a,chevronPosition:S,order:T,loop:p,getStyles:q,variant:P,unstyled:g},children:e.jsx(w,{...q("root"),id:L,...ce,variant:P,"data-accordion":!0,children:m})})}const Me=s=>s;j.extend=Me;j.withProps=Se(j);j.classes=E;j.displayName="@mantine/core/Accordion";j.Item=M;j.Panel=F;j.Control=D;j.Chevron=ne;function K(s,o){if(typeof s=="string"&&s.trim().length===0)return!0;try{return o(s),!0}catch{return!1}}const Fe={serialize:JSON.stringify,deserialize:JSON.parse,size:"sm"},H=B((s,o)=>{const{value:t,defaultValue:d,onChange:x,formatOnBlur:l,validationError:g,serialize:c,deserialize:m,onFocus:u,onBlur:n,readOnly:r,error:i,...h}=N("JsonInput",Fe,s),[p,y]=Q({value:t,defaultValue:d,finalValue:"",onChange:x}),[a,S]=f.useState(K(p,m)),R=v=>{u?.(v),S(!0)},T=v=>{typeof n=="function"&&n(v);const P=K(v.currentTarget.value,m);l&&!r&&P&&v.currentTarget.value.trim()!==""&&y(c(m(v.currentTarget.value),null,2)),S(P)};return e.jsx(Re,{value:p,onChange:v=>y(v.currentTarget.value),onFocus:R,onBlur:T,ref:o,readOnly:r,...h,autoComplete:"off",__staticSelector:"JsonInput",error:a?i:g||!0,"data-monospace":!0})});H.classes=Ce.classes;H.displayName="@mantine/core/JsonInput";const He=(s,o)=>{const t=[`curl -X ${s.method.toUpperCase()}`];return t.push(` '${window.location.origin}${s.fullPath}'`),s.body,t.join(` \\
1
+ import{c as W,f as B,b as N,j as e,U as xe,B as w,_ as fe,$ as ve,a0 as Q,q as je,s as ge,a1 as ye,e as be,a2 as Se,r as f,a3 as Ce,T as b,Y as X,Z as Y,a4 as A,a5 as Ie,a6 as Z,a7 as ze,a8 as ee,a9 as se,aa as te,ab as oe,ac as re,ad as Ae,G as we,H as G,F as J,K as Pe,ae as Te,z as Ne}from"./entry.Bkwg306k.js";import{d as Ee}from"./chunk.4uk7i9-q.js";import{B as k,S as O}from"./chunk.DUAYORVN.js";import{C as U}from"./chunk.BOmhpMQZ.js";import{T as Re}from"./chunk.BumKuBFW.js";import{I as _e}from"./chunk.DknkYaMA.js";import{g as V,T as z}from"./chunk.humlEV7p.js";import{A as ne}from"./chunk.D4_B6m39.js";import{c as Oe}from"./chunk.BlqFPyLh.js";import{I as Be}from"./chunk.DXpU07Gr.js";import{I as ke}from"./chunk.K3IQQCLu.js";import{S as Le}from"./chunk.BPR3Fzfi.js";import"./chunk.uyVen0u2.js";const[Je,$]=W("Accordion component was not found in the tree"),[Ue,ae]=W("Accordion.Item component was not found in the tree");var E={root:"m_9bdbb667",panel:"m_df78851f",content:"m_4ba554d4",itemTitle:"m_8fa820a0",control:"m_4ba585b8","control--default":"m_6939a5e9","control--contained":"m_4271d21b",label:"m_df3ffa0f",chevron:"m_3f35ae96",icon:"m_9bd771fe",item:"m_9bd7b098","item--default":"m_fe19b709","item--contained":"m_1f921b3b","item--filled":"m_2cdf939a","item--separated":"m_9f59b069"};const D=B((s,o)=>{const{classNames:t,className:d,style:x,styles:l,vars:g,chevron:c,icon:m,onClick:u,onKeyDown:n,children:r,disabled:i,mod:h,...p}=N("AccordionControl",null,s),{value:y}=ae(),a=$(),S=a.isItemActive(y),R=typeof a.order=="number",T=`h${a.order}`,v=e.jsxs(xe,{...p,...a.getStyles("control",{className:d,classNames:t,style:x,styles:l,variant:a.variant}),unstyled:a.unstyled,mod:["accordion-control",{active:S,"chevron-position":a.chevronPosition,disabled:i},h],ref:o,onClick:P=>{u?.(P),a.onChange(y)},type:"button",disabled:i,"aria-expanded":S,"aria-controls":a.getRegionId(y),id:a.getControlId(y),onKeyDown:Oe({siblingSelector:"[data-accordion-control]",parentSelector:"[data-accordion]",activateOnFocus:!1,loop:a.loop,orientation:"vertical",onKeyDown:n}),children:[e.jsx(w,{component:"span",mod:{rotate:!a.disableChevronRotation&&S,position:a.chevronPosition},...a.getStyles("chevron",{classNames:t,styles:l}),children:c||a.chevron}),e.jsx("span",{...a.getStyles("label",{classNames:t,styles:l}),children:r}),m&&e.jsx(w,{component:"span",mod:{"chevron-position":a.chevronPosition},...a.getStyles("icon",{classNames:t,styles:l}),children:m})]});return R?e.jsx(T,{...a.getStyles("itemTitle",{classNames:t,styles:l}),children:v}):v});D.displayName="@mantine/core/AccordionControl";D.classes=E;const M=B((s,o)=>{const{classNames:t,className:d,style:x,styles:l,vars:g,value:c,mod:m,...u}=N("AccordionItem",null,s),n=$();return e.jsx(Ue,{value:{value:c},children:e.jsx(w,{ref:o,mod:[{active:n.isItemActive(c)},m],...n.getStyles("item",{className:d,classNames:t,styles:l,style:x,variant:n.variant}),...u})})});M.displayName="@mantine/core/AccordionItem";M.classes=E;const F=B((s,o)=>{const{classNames:t,className:d,style:x,styles:l,vars:g,children:c,...m}=N("AccordionPanel",null,s),{value:u}=ae(),n=$();return e.jsx(fe,{ref:o,...n.getStyles("panel",{className:d,classNames:t,style:x,styles:l}),...m,in:n.isItemActive(u),transitionDuration:n.transitionDuration??200,role:"region",id:n.getRegionId(u),"aria-labelledby":n.getControlId(u),children:e.jsx("div",{...n.getStyles("content",{classNames:t,styles:l}),children:c})})});F.displayName="@mantine/core/AccordionPanel";F.classes=E;const $e={multiple:!1,disableChevronRotation:!1,chevronPosition:"right",variant:"default",chevronSize:"auto",chevronIconSize:16},De=ge((s,{transitionDuration:o,chevronSize:t,radius:d})=>({root:{"--accordion-transition-duration":o===void 0?void 0:`${o}ms`,"--accordion-chevron-size":t===void 0?void 0:be(t),"--accordion-radius":d===void 0?void 0:ye(d)}}));function j(s){const o=N("Accordion",$e,s),{classNames:t,className:d,style:x,styles:l,unstyled:g,vars:c,children:m,multiple:u,value:n,defaultValue:r,onChange:i,id:h,loop:p,transitionDuration:y,disableChevronRotation:a,chevronPosition:S,chevronSize:R,order:T,chevron:v,variant:P,radius:Qe,chevronIconSize:le,attributes:ie,...ce}=o,L=ve(h),[C,de]=Q({value:n,defaultValue:r,finalValue:u?[]:null,onChange:i}),ue=I=>Array.isArray(C)?C.includes(I):I===C,me=I=>{const he=Array.isArray(C)?C.includes(I)?C.filter(pe=>pe!==I):[...C,I]:I===C?null:I;de(he)},q=je({name:"Accordion",classes:E,props:o,className:d,style:x,classNames:t,styles:l,unstyled:g,attributes:ie,vars:c,varsResolver:De});return e.jsx(Je,{value:{isItemActive:ue,onChange:me,getControlId:V(`${L}-control`,"Accordion.Item component was rendered with invalid value or without value"),getRegionId:V(`${L}-panel`,"Accordion.Item component was rendered with invalid value or without value"),chevron:v===null?null:v||e.jsx(ne,{size:le}),transitionDuration:y,disableChevronRotation:a,chevronPosition:S,order:T,loop:p,getStyles:q,variant:P,unstyled:g},children:e.jsx(w,{...q("root"),id:L,...ce,variant:P,"data-accordion":!0,children:m})})}const Me=s=>s;j.extend=Me;j.withProps=Se(j);j.classes=E;j.displayName="@mantine/core/Accordion";j.Item=M;j.Panel=F;j.Control=D;j.Chevron=ne;function K(s,o){if(typeof s=="string"&&s.trim().length===0)return!0;try{return o(s),!0}catch{return!1}}const Fe={serialize:JSON.stringify,deserialize:JSON.parse,size:"sm"},H=B((s,o)=>{const{value:t,defaultValue:d,onChange:x,formatOnBlur:l,validationError:g,serialize:c,deserialize:m,onFocus:u,onBlur:n,readOnly:r,error:i,...h}=N("JsonInput",Fe,s),[p,y]=Q({value:t,defaultValue:d,finalValue:"",onChange:x}),[a,S]=f.useState(K(p,m)),R=v=>{u?.(v),S(!0)},T=v=>{typeof n=="function"&&n(v);const P=K(v.currentTarget.value,m);l&&!r&&P&&v.currentTarget.value.trim()!==""&&y(c(m(v.currentTarget.value),null,2)),S(P)};return e.jsx(Re,{value:p,onChange:v=>y(v.currentTarget.value),onFocus:R,onBlur:T,ref:o,readOnly:r,...h,autoComplete:"off",__staticSelector:"JsonInput",error:a?i:g||!0,"data-monospace":!0})});H.classes=Ce.classes;H.displayName="@mantine/core/JsonInput";const He=(s,o)=>{const t=[`curl -X ${s.method.toUpperCase()}`];return t.push(` '${window.location.origin}${s.fullPath}'`),s.body,t.join(` \\
2
2
  `)},qe={GET:"teal",POST:"blue",PUT:"orange",PATCH:"yellow",DELETE:"red"},Ge=({method:s})=>e.jsx(k,{variant:"light",color:qe[s.toUpperCase()]||"gray",size:"sm",radius:"sm",w:60,children:s.toUpperCase()}),_=({schema:s,label:o})=>s?e.jsxs(w,{children:[e.jsx(b,{size:"xs",fw:500,c:"dimmed",mb:4,children:o}),e.jsx(U,{block:!0,style:{fontSize:11,maxHeight:200,overflow:"auto"},children:JSON.stringify(s,null,2)})]}):null,Ve=({action:s})=>{const o=X(Y),[t,d]=f.useState("{}"),[x,l]=f.useState(null),[g,c]=f.useState(!1),[m,u]=f.useState(null),[n,r]=f.useState(null),i=f.useCallback(async()=>{c(!0),r(null),l(null);const h=performance.now();try{let p;if(s.body&&t)try{p=JSON.parse(t)}catch{r("Invalid JSON body"),c(!1);return}const y=await o.fetch(s.fullPath,{method:s.method.toUpperCase(),body:p?JSON.stringify(p):void 0,headers:p?{"Content-Type":"application/json"}:void 0});u(Math.round(performance.now()-h)),l(JSON.stringify(y.data,null,2))}catch(p){u(Math.round(performance.now()-h)),r(p instanceof Error?p.message:"Request failed")}finally{c(!1)}},[o,s,t]);return e.jsxs(O,{gap:"md",children:[s.body&&e.jsx(H,{label:"Request Body",placeholder:'{"key": "value"}',value:t,onChange:d,minRows:4,maxRows:10,autosize:!0,formatOnBlur:!0,validationError:"Invalid JSON"}),e.jsxs(A,{children:[e.jsx(Ie,{leftSection:g?e.jsx(Z,{size:14}):e.jsx(_e,{size:14}),onClick:i,disabled:g,size:"sm",children:"Execute"}),m!==null&&e.jsxs(b,{size:"xs",c:"dimmed",children:[m,"ms"]})]}),n&&e.jsx(ze,{p:"sm",bg:"var(--mantine-color-red-light)",children:e.jsx(b,{size:"sm",c:"red",children:n})}),x&&e.jsxs(w,{children:[e.jsxs(A,{justify:"space-between",mb:4,children:[e.jsx(b,{size:"xs",fw:500,c:"dimmed",children:"Response"}),e.jsx(ee,{value:x,children:({copied:h,copy:p})=>e.jsx(se,{size:"xs",variant:"subtle",onClick:p,children:h?e.jsx(te,{size:12}):e.jsx(oe,{size:12})})})]}),e.jsx(re,{h:200,children:e.jsx(U,{block:!0,style:{fontSize:11},children:x})})]})]})},Ke=({action:s})=>{const o=f.useMemo(()=>He(s),[s]);return e.jsxs(j.Item,{value:s.fullPath,opacity:s.disabled?.5:1,children:[e.jsx(j.Control,{children:e.jsxs(A,{gap:"sm",wrap:"nowrap",children:[e.jsx(Ge,{method:s.method}),e.jsx(b,{size:"sm",ff:"monospace",style:{wordBreak:"break-all"},children:s.fullPath}),s.secure&&e.jsx(Ae,{label:"Requires authentication",children:e.jsx(Be,{size:14,opacity:.5})}),s.disabled&&e.jsx(k,{size:"xs",variant:"light",color:"gray",children:"disabled"})]})}),e.jsx(j.Panel,{children:e.jsxs(O,{gap:"md",children:[(s.description||s.summary)&&e.jsx(b,{size:"sm",c:"dimmed",children:s.description||s.summary}),e.jsxs(z,{defaultValue:"schema",variant:"outline",children:[e.jsxs(z.List,{children:[e.jsx(z.Tab,{value:"schema",size:"xs",children:"Schema"}),e.jsx(z.Tab,{value:"try",size:"xs",children:"Try It"}),e.jsx(z.Tab,{value:"curl",size:"xs",leftSection:e.jsx(ke,{size:12}),children:"cURL"})]}),e.jsx(z.Panel,{value:"schema",pt:"md",children:e.jsxs(O,{gap:"md",children:[e.jsxs(A,{gap:"xl",align:"flex-start",children:[e.jsx(_,{schema:s.params,label:"Path Parameters"}),e.jsx(_,{schema:s.query,label:"Query Parameters"})]}),e.jsx(_,{schema:s.body,label:"Request Body"}),e.jsx(_,{schema:s.response,label:"Response"}),!s.params&&!s.query&&!s.body&&!s.response&&e.jsx(b,{size:"sm",c:"dimmed",children:"No schema defined"})]})}),e.jsx(z.Panel,{value:"try",pt:"md",children:e.jsx(Ve,{action:s})}),e.jsx(z.Panel,{value:"curl",pt:"md",children:e.jsxs(w,{pos:"relative",children:[e.jsx(ee,{value:o,children:({copied:t,copy:d})=>e.jsx(se,{size:"sm",variant:"subtle",onClick:d,pos:"absolute",top:8,right:8,children:t?e.jsx(te,{size:14}):e.jsx(oe,{size:14})})}),e.jsx(U,{block:!0,style:{fontSize:11},children:o})]})})]})]})})]})},We=({group:s,actions:o})=>e.jsxs(w,{children:[e.jsxs(A,{gap:"xs",mb:"xs",children:[e.jsx(we,{size:14,opacity:.5}),e.jsx(b,{size:"xs",fw:600,tt:"uppercase",c:"dimmed",children:s}),e.jsx(k,{variant:"light",color:"gray",size:"xs",children:o.length})]}),e.jsx(j,{variant:"separated",styles:{item:{backgroundColor:G.colors.surface,border:`1px solid ${G.colors.border}`}},children:o.map(t=>e.jsx(Ke,{action:t},t.fullPath))})]}),ds=()=>{const s=X(Y),[o,t]=f.useState([]),[d,x]=f.useState(!0),[l,g]=f.useState(""),[c,m]=f.useState("all");f.useEffect(()=>{s.fetch("/devtools/api/metadata",{schema:{response:Ee}}).then(r=>{t(r.data.actions),x(!1)})},[]);const u=f.useMemo(()=>o.filter(r=>{if(r.hide||c!=="all"&&r.method.toUpperCase()!==c)return!1;if(l){const i=l.toLowerCase();return r.fullPath.toLowerCase().includes(i)||r.name.toLowerCase().includes(i)||r.group.toLowerCase().includes(i)||r.description?.toLowerCase().includes(i)}return!0}),[o,l,c]),n=f.useMemo(()=>{const r={};for(const i of u){const h=i.group||"Other";r[h]||(r[h]=[]),r[h].push(i)}return Object.entries(r).sort(([i],[h])=>i.localeCompare(h))},[u]);return d?e.jsx(J,{align:"center",justify:"center",h:"100%",children:e.jsx(Z,{size:"sm"})}):e.jsxs(J,{direction:"column",gap:"md",w:"100%",h:"100%",p:"xl",children:[e.jsx(A,{justify:"space-between",wrap:"nowrap",children:e.jsxs(A,{gap:"sm",children:[e.jsx(Pe,{size:24,opacity:.7}),e.jsx(b,{size:"lg",fw:500,children:"Actions"}),e.jsx(k,{variant:"light",color:"gray",size:"sm",children:u.length})]})}),e.jsxs(A,{gap:"sm",children:[e.jsx(Te,{placeholder:"Search actions...",leftSection:e.jsx(Ne,{size:14}),value:l,onChange:r=>g(r.currentTarget.value),style:{flex:1},size:"sm"}),e.jsx(Le,{size:"xs",value:c,onChange:m,data:[{label:"All",value:"all"},{label:"GET",value:"GET"},{label:"POST",value:"POST"},{label:"PUT",value:"PUT"},{label:"DELETE",value:"DELETE"}]})]}),e.jsx(re,{flex:1,offsetScrollbars:!0,children:n.length===0?e.jsx(J,{align:"center",justify:"center",h:200,children:e.jsx(b,{c:"dimmed",children:"No actions found"})}):e.jsx(O,{gap:"md",children:n.map(([r,i])=>e.jsx(We,{group:r,actions:i},r))})})]})};export{ds as DevActionsExplorer,ds as default};
@@ -1 +1 @@
1
- import{p as q,b as v,q as y,s as f,j as g,B as h,v as z,a1 as E,t as u,f as F,g as T}from"./entry.BY4L2Uc6.js";var x={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const V=f((a,{radius:e,color:s,gradient:o,variant:t,size:r,autoContrast:l,circle:c})=>{const d=a.variantColorResolver({color:s||a.primaryColor,theme:a,gradient:o,variant:t||"filled",autoContrast:l});return{root:{"--badge-height":u(r,"badge-height"),"--badge-padding-x":u(r,"badge-padding-x"),"--badge-fz":u(r,"badge-fz"),"--badge-radius":c||e===void 0?void 0:E(e),"--badge-bg":s||t?d.background:void 0,"--badge-color":s||t?d.color:void 0,"--badge-bd":s||t?d.border:void 0,"--badge-dot-color":t==="dot"?z(s,a):void 0}}}),S=q((a,e)=>{const s=v("Badge",null,a),{classNames:o,className:t,style:r,styles:l,unstyled:c,vars:d,radius:B,color:R,gradient:N,leftSection:i,rightSection:n,children:m,variant:p,fullWidth:_,autoContrast:D,circle:C,mod:w,attributes:P,...$}=s,b=y({name:"Badge",props:s,classes:x,className:t,style:r,classNames:o,styles:l,unstyled:c,attributes:P,vars:d,varsResolver:V});return g.jsxs(h,{variant:p,mod:[{block:_,circle:C,"with-right-section":!!n,"with-left-section":!!i},w],...b("root",{variant:p}),ref:e,...$,children:[i&&g.jsx("span",{...b("section"),"data-position":"left",children:i}),g.jsx("span",{...b("label"),children:m}),n&&g.jsx("span",{...b("section"),"data-position":"right",children:n})]})});S.classes=x;S.displayName="@mantine/core/Badge";var j={root:"m_6d731127"};const W={gap:"md",align:"stretch",justify:"flex-start"},A=f((a,{gap:e,align:s,justify:o})=>({root:{"--stack-gap":T(e),"--stack-align":s,"--stack-justify":o}})),k=F((a,e)=>{const s=v("Stack",W,a),{classNames:o,className:t,style:r,styles:l,unstyled:c,vars:d,align:B,justify:R,gap:N,variant:i,attributes:n,...m}=s,p=y({name:"Stack",props:s,classes:j,className:t,style:r,classNames:o,styles:l,unstyled:c,attributes:n,vars:d,varsResolver:A});return g.jsx(h,{ref:e,...p("root"),variant:i,...m})});k.classes=j;k.displayName="@mantine/core/Stack";export{S as B,k as S};
1
+ import{p as q,b as v,q as y,s as f,j as g,B as h,v as z,a1 as E,t as u,f as F,g as T}from"./entry.Bkwg306k.js";var x={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const V=f((a,{radius:e,color:s,gradient:o,variant:t,size:r,autoContrast:l,circle:c})=>{const d=a.variantColorResolver({color:s||a.primaryColor,theme:a,gradient:o,variant:t||"filled",autoContrast:l});return{root:{"--badge-height":u(r,"badge-height"),"--badge-padding-x":u(r,"badge-padding-x"),"--badge-fz":u(r,"badge-fz"),"--badge-radius":c||e===void 0?void 0:E(e),"--badge-bg":s||t?d.background:void 0,"--badge-color":s||t?d.color:void 0,"--badge-bd":s||t?d.border:void 0,"--badge-dot-color":t==="dot"?z(s,a):void 0}}}),S=q((a,e)=>{const s=v("Badge",null,a),{classNames:o,className:t,style:r,styles:l,unstyled:c,vars:d,radius:B,color:R,gradient:N,leftSection:i,rightSection:n,children:m,variant:p,fullWidth:_,autoContrast:D,circle:C,mod:w,attributes:P,...$}=s,b=y({name:"Badge",props:s,classes:x,className:t,style:r,classNames:o,styles:l,unstyled:c,attributes:P,vars:d,varsResolver:V});return g.jsxs(h,{variant:p,mod:[{block:_,circle:C,"with-right-section":!!n,"with-left-section":!!i},w],...b("root",{variant:p}),ref:e,...$,children:[i&&g.jsx("span",{...b("section"),"data-position":"left",children:i}),g.jsx("span",{...b("label"),children:m}),n&&g.jsx("span",{...b("section"),"data-position":"right",children:n})]})});S.classes=x;S.displayName="@mantine/core/Badge";var j={root:"m_6d731127"};const W={gap:"md",align:"stretch",justify:"flex-start"},A=f((a,{gap:e,align:s,justify:o})=>({root:{"--stack-gap":T(e),"--stack-align":s,"--stack-justify":o}})),k=F((a,e)=>{const s=v("Stack",W,a),{classNames:o,className:t,style:r,styles:l,unstyled:c,vars:d,align:B,justify:R,gap:N,variant:i,attributes:n,...m}=s,p=y({name:"Stack",props:s,classes:j,className:t,style:r,classNames:o,styles:l,unstyled:c,attributes:n,vars:d,varsResolver:A});return g.jsx(h,{ref:e,...p("root"),variant:i,...m})});k.classes=j;k.displayName="@mantine/core/Stack";export{S as B,k as S};
@@ -1 +1 @@
1
- import{w as a}from"./entry.BY4L2Uc6.js";const o=[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]],e=a("outline","lock","Lock",o);export{e as I};
1
+ import{w as a}from"./entry.Bkwg306k.js";const o=[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]],e=a("outline","lock","Lock",o);export{e as I};
@@ -1 +1 @@
1
- import{w as a}from"./entry.BY4L2Uc6.js";const e=[["path",{d:"M7 4v16l13 -8z",key:"svg-0"}]],t=a("outline","player-play","PlayerPlay",e);export{t as I};
1
+ import{w as a}from"./entry.Bkwg306k.js";const e=[["path",{d:"M7 4v16l13 -8z",key:"svg-0"}]],t=a("outline","player-play","PlayerPlay",e);export{t as I};
@@ -1 +1 @@
1
- import{w as e}from"./entry.BY4L2Uc6.js";const o=[["path",{d:"M5 7l5 5l-5 5",key:"svg-0"}],["path",{d:"M12 19l7 0",key:"svg-1"}]],n=e("outline","terminal","Terminal",o);export{n as I};
1
+ import{w as e}from"./entry.Bkwg306k.js";const o=[["path",{d:"M5 7l5 5l-5 5",key:"svg-0"}],["path",{d:"M12 19l7 0",key:"svg-1"}]],n=e("outline","terminal","Terminal",o);export{n as I};
@@ -1 +1 @@
1
- import{r as W,q as C,j as e,B as o,t as R,aI as q,aB as x,aF as w}from"./entry.BY4L2Uc6.js";var u={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};const N=u,D=W.forwardRef(({__staticSelector:t,__stylesApiProps:l,className:s,classNames:f,styles:I,unstyled:_,children:h,label:i,description:d,id:p,disabled:b,error:n,size:r,labelPosition:j="left",bodyElement:c="div",labelElement:m="label",variant:v,style:y,vars:E,mod:F,attributes:S,...g},B)=>{const a=C({name:t,props:l,className:s,style:y,classes:u,classNames:f,styles:I,unstyled:_,attributes:S});return e.jsx(o,{...a("root"),ref:B,__vars:{"--label-fz":q(r),"--label-lh":R(r,"label-lh")},mod:[{"label-position":j},F],variant:v,size:r,...g,children:e.jsxs(o,{component:c,htmlFor:c==="label"?p:void 0,...a("body"),children:[h,e.jsxs("div",{...a("labelWrapper"),"data-disabled":b||void 0,children:[i&&e.jsx(o,{component:m,htmlFor:m==="label"?p:void 0,...a("label"),"data-disabled":b||void 0,children:i}),d&&e.jsx(x.Description,{size:r,__inheritStyles:!1,...a("description"),children:d}),n&&typeof n!="boolean"&&e.jsx(x.Error,{size:r,__inheritStyles:!1,...a("error"),children:n})]})]})})});D.displayName="@mantine/core/InlineInput";function k({children:t,role:l}){const s=w();return s?e.jsx("div",{role:l,"aria-labelledby":s.labelId,"aria-describedby":s.describedBy,children:t}):e.jsx(e.Fragment,{children:t})}export{k as I,D as a,N as b};
1
+ import{r as W,q as C,j as e,B as o,t as R,aI as q,aB as x,aF as w}from"./entry.Bkwg306k.js";var u={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};const N=u,D=W.forwardRef(({__staticSelector:t,__stylesApiProps:l,className:s,classNames:f,styles:I,unstyled:_,children:h,label:i,description:d,id:p,disabled:b,error:n,size:r,labelPosition:j="left",bodyElement:c="div",labelElement:m="label",variant:v,style:y,vars:E,mod:F,attributes:S,...g},B)=>{const a=C({name:t,props:l,className:s,style:y,classes:u,classNames:f,styles:I,unstyled:_,attributes:S});return e.jsx(o,{...a("root"),ref:B,__vars:{"--label-fz":q(r),"--label-lh":R(r,"label-lh")},mod:[{"label-position":j},F],variant:v,size:r,...g,children:e.jsxs(o,{component:c,htmlFor:c==="label"?p:void 0,...a("body"),children:[h,e.jsxs("div",{...a("labelWrapper"),"data-disabled":b||void 0,children:[i&&e.jsx(o,{component:m,htmlFor:m==="label"?p:void 0,...a("label"),"data-disabled":b||void 0,children:i}),d&&e.jsx(x.Description,{size:r,__inheritStyles:!1,...a("description"),children:d}),n&&typeof n!="boolean"&&e.jsx(x.Error,{size:r,__inheritStyles:!1,...a("error"),children:n})]})]})})});D.displayName="@mantine/core/InlineInput";function k({children:t,role:l}){const s=w();return s?e.jsx("div",{role:l,"aria-labelledby":s.labelId,"aria-describedby":s.describedBy,children:t}):e.jsx(e.Fragment,{children:t})}export{k as I,D as a,N as b};
@@ -1,4 +1,4 @@
1
- import{w as l,Y as m,Z as h,r,j as e,F as a,T as o,K as p,Q as u,L as g,O as x,P as v,S as k,V as j,H as i,B as b}from"./entry.BY4L2Uc6.js";import{d as y}from"./chunk.Cw2RCl4F.js";import{I as z}from"./chunk.BYrPfJRg.js";import{I as f}from"./chunk.DA9XnVAa.js";import{I}from"./chunk.DEUHUxKv.js";import{I as M}from"./chunk.DGW-W4Kc.js";import{S}from"./chunk.DooL4OcT.js";import"./chunk.17gtbQUO.js";const C=[["path",{d:"M12 7m-8 0a8 4 0 1 0 16 0a8 4 0 1 0 -16 0",key:"svg-0"}],["path",{d:"M4 7c0 .664 .088 1.324 .263 1.965l2.737 10.035c.5 1.5 2.239 2 5 2s4.5 -.5 5 -2c.333 -1 1.246 -4.345 2.737 -10.035a7.45 7.45 0 0 0 .263 -1.965",key:"svg-1"}]],E=l("outline","bucket","Bucket",C);const _=[["path",{d:"M4 5m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M16 3l0 4",key:"svg-1"}],["path",{d:"M8 3l0 4",key:"svg-2"}],["path",{d:"M4 11l16 0",key:"svg-3"}],["path",{d:"M8 15h2v2h-2z",key:"svg-4"}]],A=l("outline","calendar-event","CalendarEvent",_);const T=[["path",{d:"M7 16.5l-5 -3l5 -3l5 3v5.5l-5 3z",key:"svg-0"}],["path",{d:"M2 13.5v5.5l5 3",key:"svg-1"}],["path",{d:"M7 16.545l5 -3.03",key:"svg-2"}],["path",{d:"M17 16.5l-5 -3l5 -3l5 3v5.5l-5 3z",key:"svg-3"}],["path",{d:"M12 19l5 3",key:"svg-4"}],["path",{d:"M17 16.5l5 -3",key:"svg-5"}],["path",{d:"M12 13.5v-5.5l-5 -3l5 -3l5 3v5.5",key:"svg-6"}],["path",{d:"M7 5.03v5.455",key:"svg-7"}],["path",{d:"M12 8l5 -3",key:"svg-8"}]],w=l("outline","packages","Packages",T),B=({label:n,count:s,icon:c})=>e.jsxs(a,{direction:"column",align:"center",justify:"center",p:"xl",style:{borderRadius:12,border:`1px solid ${i.colors.border}`,cursor:"pointer",transition:"all 0.2s ease"},bg:i.colors.surface,className:"devtools-card",children:[e.jsx(b,{opacity:.5,mb:"md",children:c}),e.jsxs(o,{size:"sm",c:"dimmed",children:[e.jsx(o,{span:!0,fw:600,size:"lg",c:"var(--mantine-color-text)",children:s})," ",n]})]}),H=()=>{const n=m(h),[s,c]=r.useState(null);if(r.useEffect(()=>{n.fetch("/devtools/api/metadata",{schema:{response:y}}).then(t=>c(t.data))},[]),!s)return e.jsx(a,{align:"center",justify:"center",h:"100%",children:e.jsx(o,{c:"dimmed",children:"Loading..."})});const d=[{label:"actions",count:s.actions.length,icon:e.jsx(p,{size:48,stroke:1.2})},{label:"entities",count:s.entities.length,icon:e.jsx(u,{size:48,stroke:1.2})},{label:"queues",count:s.queues.length,icon:e.jsx(g,{size:48,stroke:1.2})},{label:"schedulers",count:s.schedulers.length,icon:e.jsx(A,{size:48,stroke:1.2})},{label:"topics",count:s.topics.length,icon:e.jsx(x,{size:48,stroke:1.2})},{label:"buckets",count:s.buckets.length,icon:e.jsx(E,{size:48,stroke:1.2})},{label:"realms",count:s.realms.length,icon:e.jsx(z,{size:48,stroke:1.2})},{label:"caches",count:s.caches.length,icon:e.jsx(v,{size:48,stroke:1.2})},{label:"commands",count:s.commands.length,icon:e.jsx(f,{size:48,stroke:1.2})},{label:"env schemas",count:s.envs.length,icon:e.jsx(k,{size:48,stroke:1.2})},{label:"atoms",count:s.atoms.length,icon:e.jsx(j,{size:48,stroke:1.2})},{label:"modules",count:s.modules.length,icon:e.jsx(w,{size:48,stroke:1.2})},{label:"services",count:s.providers.length,icon:e.jsx(I,{size:48,stroke:1.2})}].filter(t=>t.count>0);return e.jsxs(a,{direction:"column",align:"center",justify:"center",flex:1,w:"100%",gap:"xl",children:[e.jsx("style",{children:`
1
+ import{w as l,Y as m,Z as h,r,j as e,F as a,T as o,K as p,Q as u,L as g,O as x,P as v,S as k,V as j,H as i,B as b}from"./entry.Bkwg306k.js";import{d as y}from"./chunk.4uk7i9-q.js";import{I as z}from"./chunk.DXpU07Gr.js";import{I as f}from"./chunk.K3IQQCLu.js";import{I}from"./chunk.CUTV1O_R.js";import{I as M}from"./chunk.ChW-mtOy.js";import{S}from"./chunk.BiZFFFTD.js";import"./chunk.69EpOqBb.js";const C=[["path",{d:"M12 7m-8 0a8 4 0 1 0 16 0a8 4 0 1 0 -16 0",key:"svg-0"}],["path",{d:"M4 7c0 .664 .088 1.324 .263 1.965l2.737 10.035c.5 1.5 2.239 2 5 2s4.5 -.5 5 -2c.333 -1 1.246 -4.345 2.737 -10.035a7.45 7.45 0 0 0 .263 -1.965",key:"svg-1"}]],E=l("outline","bucket","Bucket",C);const _=[["path",{d:"M4 5m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M16 3l0 4",key:"svg-1"}],["path",{d:"M8 3l0 4",key:"svg-2"}],["path",{d:"M4 11l16 0",key:"svg-3"}],["path",{d:"M8 15h2v2h-2z",key:"svg-4"}]],A=l("outline","calendar-event","CalendarEvent",_);const T=[["path",{d:"M7 16.5l-5 -3l5 -3l5 3v5.5l-5 3z",key:"svg-0"}],["path",{d:"M2 13.5v5.5l5 3",key:"svg-1"}],["path",{d:"M7 16.545l5 -3.03",key:"svg-2"}],["path",{d:"M17 16.5l-5 -3l5 -3l5 3v5.5l-5 3z",key:"svg-3"}],["path",{d:"M12 19l5 3",key:"svg-4"}],["path",{d:"M17 16.5l5 -3",key:"svg-5"}],["path",{d:"M12 13.5v-5.5l-5 -3l5 -3l5 3v5.5",key:"svg-6"}],["path",{d:"M7 5.03v5.455",key:"svg-7"}],["path",{d:"M12 8l5 -3",key:"svg-8"}]],w=l("outline","packages","Packages",T),B=({label:n,count:s,icon:c})=>e.jsxs(a,{direction:"column",align:"center",justify:"center",p:"xl",style:{borderRadius:12,border:`1px solid ${i.colors.border}`,cursor:"pointer",transition:"all 0.2s ease"},bg:i.colors.surface,className:"devtools-card",children:[e.jsx(b,{opacity:.5,mb:"md",children:c}),e.jsxs(o,{size:"sm",c:"dimmed",children:[e.jsx(o,{span:!0,fw:600,size:"lg",c:"var(--mantine-color-text)",children:s})," ",n]})]}),H=()=>{const n=m(h),[s,c]=r.useState(null);if(r.useEffect(()=>{n.fetch("/devtools/api/metadata",{schema:{response:y}}).then(t=>c(t.data))},[]),!s)return e.jsx(a,{align:"center",justify:"center",h:"100%",children:e.jsx(o,{c:"dimmed",children:"Loading..."})});const d=[{label:"actions",count:s.actions.length,icon:e.jsx(p,{size:48,stroke:1.2})},{label:"entities",count:s.entities.length,icon:e.jsx(u,{size:48,stroke:1.2})},{label:"queues",count:s.queues.length,icon:e.jsx(g,{size:48,stroke:1.2})},{label:"schedulers",count:s.schedulers.length,icon:e.jsx(A,{size:48,stroke:1.2})},{label:"topics",count:s.topics.length,icon:e.jsx(x,{size:48,stroke:1.2})},{label:"buckets",count:s.buckets.length,icon:e.jsx(E,{size:48,stroke:1.2})},{label:"realms",count:s.realms.length,icon:e.jsx(z,{size:48,stroke:1.2})},{label:"caches",count:s.caches.length,icon:e.jsx(v,{size:48,stroke:1.2})},{label:"commands",count:s.commands.length,icon:e.jsx(f,{size:48,stroke:1.2})},{label:"env schemas",count:s.envs.length,icon:e.jsx(k,{size:48,stroke:1.2})},{label:"atoms",count:s.atoms.length,icon:e.jsx(j,{size:48,stroke:1.2})},{label:"modules",count:s.modules.length,icon:e.jsx(w,{size:48,stroke:1.2})},{label:"services",count:s.providers.length,icon:e.jsx(I,{size:48,stroke:1.2})}].filter(t=>t.count>0);return e.jsxs(a,{direction:"column",align:"center",justify:"center",flex:1,w:"100%",gap:"xl",children:[e.jsx("style",{children:`
2
2
  .devtools-card:hover {
3
3
  border-color: var(--mantine-color-dimmed);
4
4
  transform: translateY(-2px);
@@ -1 +1 @@
1
- import{c as q,f as w,b as C,j as u,B as k,i as F,ah as H,U as G,v as z,$ as J,a0 as Q,q as X,s as Y,ai as Z,a1 as tt,aj as et}from"./entry.BY4L2Uc6.js";import{c as at}from"./chunk.BlqFPyLh.js";function E(s,o){return a=>{if(typeof a!="string"||a.trim().length===0)throw new Error(o);return`${s}-${a}`}}const[st,K]=q("Tabs component was not found in the tree");var g={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",tab:"m_4ec4dce6",panel:"m_b0c91715",tabSection:"m_fc420b1f",tabLabel:"m_42bbd1ae","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const D=w((s,o)=>{const a=C("TabsList",null,s),{children:l,className:c,grow:r,justify:i,classNames:n,styles:m,style:v,mod:d,...b}=a,e=K();return u.jsx(k,{...b,...e.getStyles("list",{className:c,style:v,classNames:n,styles:m,props:a,variant:e.variant}),ref:o,role:"tablist",variant:e.variant,mod:[{grow:r,orientation:e.orientation,placement:e.orientation==="vertical"&&e.placement,inverted:e.inverted},d],"aria-orientation":e.orientation,__vars:{"--tabs-justify":i},children:l})});D.classes=g;D.displayName="@mantine/core/TabsList";const M=w((s,o)=>{const a=C("TabsPanel",null,s),{children:l,className:c,value:r,classNames:i,styles:n,style:m,mod:v,keepMounted:d,...b}=a,e=K(),p=e.value===r,y=e.keepMounted||d||p?l:null;return u.jsx(k,{...e.getStyles("panel",{className:c,classNames:i,styles:n,style:[m,p?void 0:{display:"none"}],props:a}),ref:o,mod:[{orientation:e.orientation},v],role:"tabpanel",id:e.getPanelId(r),"aria-labelledby":e.getTabId(r),...b,children:y})});M.classes=g;M.displayName="@mantine/core/TabsPanel";const V=w((s,o)=>{const a=C("TabsTab",null,s),{className:l,children:c,rightSection:r,leftSection:i,value:n,onClick:m,onKeyDown:v,disabled:d,color:b,style:e,classNames:p,styles:y,vars:N,mod:x,tabIndex:S,...P}=a,I=F(),{dir:_}=H(),t=K(),T=n===t.value,L=R=>{t.onChange(t.allowTabDeactivation&&n===t.value?null:n),m?.(R)},h={classNames:p,styles:y,props:a};return u.jsxs(G,{...t.getStyles("tab",{className:l,style:e,variant:t.variant,...h}),disabled:d,unstyled:t.unstyled,variant:t.variant,mod:[{active:T,disabled:d,orientation:t.orientation,inverted:t.inverted,placement:t.orientation==="vertical"&&t.placement},x],ref:o,role:"tab",id:t.getTabId(n),"aria-selected":T,tabIndex:S!==void 0?S:T||t.value===null?0:-1,"aria-controls":t.getPanelId(n),onClick:L,__vars:{"--tabs-color":b?z(b,I):void 0},onKeyDown:at({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:t.activateTabWithKeyboard,loop:t.loop,orientation:t.orientation||"horizontal",dir:_,onKeyDown:v}),...P,children:[i&&u.jsx("span",{...t.getStyles("tabSection",h),"data-position":"left",children:i}),c&&u.jsx("span",{...t.getStyles("tabLabel",h),children:c}),r&&u.jsx("span",{...t.getStyles("tabSection",h),"data-position":"right",children:r})]})});V.classes=g;V.displayName="@mantine/core/TabsTab";const U="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",nt={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},ot=Y((s,{radius:o,color:a,autoContrast:l})=>({root:{"--tabs-radius":tt(o),"--tabs-color":z(a,s),"--tabs-text-color":et(l,s)?Z({color:a,theme:s,autoContrast:l}):void 0}})),f=w((s,o)=>{const a=C("Tabs",nt,s),{defaultValue:l,value:c,onChange:r,orientation:i,children:n,loop:m,id:v,activateTabWithKeyboard:d,allowTabDeactivation:b,variant:e,color:p,radius:y,inverted:N,placement:x,keepMounted:S,classNames:P,styles:I,unstyled:_,className:t,style:T,vars:L,autoContrast:h,mod:R,attributes:A,...B}=a,j=J(v),[W,O]=Q({value:c,defaultValue:l,finalValue:null,onChange:r}),$=X({name:"Tabs",props:a,classes:g,className:t,style:T,classNames:P,styles:I,unstyled:_,attributes:A,vars:L,varsResolver:ot});return u.jsx(st,{value:{placement:x,value:W,orientation:i,id:j,loop:m,activateTabWithKeyboard:d,getTabId:E(`${j}-tab`,U),getPanelId:E(`${j}-panel`,U),onChange:O,allowTabDeactivation:b,variant:e,color:p,radius:y,inverted:N,keepMounted:S,unstyled:_,getStyles:$},children:u.jsx(k,{ref:o,id:j,variant:e,mod:[{orientation:i,inverted:i==="horizontal"&&N,placement:i==="vertical"&&x},R],...$("root"),...B,children:n})})});f.classes=g;f.displayName="@mantine/core/Tabs";f.Tab=V;f.Panel=M;f.List=D;export{f as T,E as g};
1
+ import{c as q,f as w,b as C,j as u,B as k,i as F,ah as H,U as G,v as z,$ as J,a0 as Q,q as X,s as Y,ai as Z,a1 as tt,aj as et}from"./entry.Bkwg306k.js";import{c as at}from"./chunk.BlqFPyLh.js";function E(s,o){return a=>{if(typeof a!="string"||a.trim().length===0)throw new Error(o);return`${s}-${a}`}}const[st,K]=q("Tabs component was not found in the tree");var g={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",tab:"m_4ec4dce6",panel:"m_b0c91715",tabSection:"m_fc420b1f",tabLabel:"m_42bbd1ae","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const D=w((s,o)=>{const a=C("TabsList",null,s),{children:l,className:c,grow:r,justify:i,classNames:n,styles:m,style:v,mod:d,...b}=a,e=K();return u.jsx(k,{...b,...e.getStyles("list",{className:c,style:v,classNames:n,styles:m,props:a,variant:e.variant}),ref:o,role:"tablist",variant:e.variant,mod:[{grow:r,orientation:e.orientation,placement:e.orientation==="vertical"&&e.placement,inverted:e.inverted},d],"aria-orientation":e.orientation,__vars:{"--tabs-justify":i},children:l})});D.classes=g;D.displayName="@mantine/core/TabsList";const M=w((s,o)=>{const a=C("TabsPanel",null,s),{children:l,className:c,value:r,classNames:i,styles:n,style:m,mod:v,keepMounted:d,...b}=a,e=K(),p=e.value===r,y=e.keepMounted||d||p?l:null;return u.jsx(k,{...e.getStyles("panel",{className:c,classNames:i,styles:n,style:[m,p?void 0:{display:"none"}],props:a}),ref:o,mod:[{orientation:e.orientation},v],role:"tabpanel",id:e.getPanelId(r),"aria-labelledby":e.getTabId(r),...b,children:y})});M.classes=g;M.displayName="@mantine/core/TabsPanel";const V=w((s,o)=>{const a=C("TabsTab",null,s),{className:l,children:c,rightSection:r,leftSection:i,value:n,onClick:m,onKeyDown:v,disabled:d,color:b,style:e,classNames:p,styles:y,vars:N,mod:x,tabIndex:S,...P}=a,I=F(),{dir:_}=H(),t=K(),T=n===t.value,L=R=>{t.onChange(t.allowTabDeactivation&&n===t.value?null:n),m?.(R)},h={classNames:p,styles:y,props:a};return u.jsxs(G,{...t.getStyles("tab",{className:l,style:e,variant:t.variant,...h}),disabled:d,unstyled:t.unstyled,variant:t.variant,mod:[{active:T,disabled:d,orientation:t.orientation,inverted:t.inverted,placement:t.orientation==="vertical"&&t.placement},x],ref:o,role:"tab",id:t.getTabId(n),"aria-selected":T,tabIndex:S!==void 0?S:T||t.value===null?0:-1,"aria-controls":t.getPanelId(n),onClick:L,__vars:{"--tabs-color":b?z(b,I):void 0},onKeyDown:at({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:t.activateTabWithKeyboard,loop:t.loop,orientation:t.orientation||"horizontal",dir:_,onKeyDown:v}),...P,children:[i&&u.jsx("span",{...t.getStyles("tabSection",h),"data-position":"left",children:i}),c&&u.jsx("span",{...t.getStyles("tabLabel",h),children:c}),r&&u.jsx("span",{...t.getStyles("tabSection",h),"data-position":"right",children:r})]})});V.classes=g;V.displayName="@mantine/core/TabsTab";const U="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",nt={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},ot=Y((s,{radius:o,color:a,autoContrast:l})=>({root:{"--tabs-radius":tt(o),"--tabs-color":z(a,s),"--tabs-text-color":et(l,s)?Z({color:a,theme:s,autoContrast:l}):void 0}})),f=w((s,o)=>{const a=C("Tabs",nt,s),{defaultValue:l,value:c,onChange:r,orientation:i,children:n,loop:m,id:v,activateTabWithKeyboard:d,allowTabDeactivation:b,variant:e,color:p,radius:y,inverted:N,placement:x,keepMounted:S,classNames:P,styles:I,unstyled:_,className:t,style:T,vars:L,autoContrast:h,mod:R,attributes:A,...B}=a,j=J(v),[W,O]=Q({value:c,defaultValue:l,finalValue:null,onChange:r}),$=X({name:"Tabs",props:a,classes:g,className:t,style:T,classNames:P,styles:I,unstyled:_,attributes:A,vars:L,varsResolver:ot});return u.jsx(st,{value:{placement:x,value:W,orientation:i,id:j,loop:m,activateTabWithKeyboard:d,getTabId:E(`${j}-tab`,U),getPanelId:E(`${j}-panel`,U),onChange:O,allowTabDeactivation:b,variant:e,color:p,radius:y,inverted:N,keepMounted:S,unstyled:_,getStyles:$},children:u.jsx(k,{ref:o,id:j,variant:e,mod:[{orientation:i,inverted:i==="horizontal"&&N,placement:i==="vertical"&&x},R],...$("root"),...B,children:n})})});f.classes=g;f.displayName="@mantine/core/Tabs";f.Tab=V;f.Panel=M;f.List=D;export{f as T,E as g};
@@ -1 +1 @@
1
- import{w as a}from"./entry.BY4L2Uc6.js";const o=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 7v5l3 3",key:"svg-1"}]],e=a("outline","clock","Clock",o);const t=[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]],c=a("outline","trash","Trash",t);export{c as I,e as a};
1
+ import{w as a}from"./entry.Bkwg306k.js";const o=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 7v5l3 3",key:"svg-1"}]],e=a("outline","clock","Clock",o);const t=[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]],c=a("outline","trash","Trash",t);export{c as I,e as a};
@@ -1 +1 @@
1
- import{u as we,r as b,M as Ne,a as Ie,c as Ae,f as S,b as v,j as n,B as x,d as H,R as $,e as m,k as N,g as Ce,h as te,i as ze,l as ke,I as ye,p as Be,m as Pe,n as Re,o as Te,q as W,s as O,U as _e,t as ne,v as Ve,w as A,x as T,F as f,y as Ee,z as Fe,T as q,A as _,C as k,D as ae,E as Le,G as De,H as j,N as le,J as He,K as $e,L as We,O as Oe,P as qe,Q as Ke,S as Xe,V as Qe,W as Ge,X as Ue}from"./entry.BY4L2Uc6.js";import{A as I,u as Ye}from"./chunk.DR0SHXXd.js";import{n as Je}from"./chunk.BjFrJKj1.js";import{S as Me}from"./chunk.BmJ7-uBd.js";import{D as Ze}from"./chunk.fpKvkQeU.js";import{g as ie,a as se}from"./chunk.17gtbQUO.js";import{I as et}from"./chunk.DGW-W4Kc.js";import"./chunk.OlMI8g2F.js";import"./chunk.BlqFPyLh.js";import"./chunk.DinJSUfH.js";import"./chunk.uyVen0u2.js";function ce(e,t){return we("(prefers-color-scheme: dark)",e==="dark",t)?"dark":"light"}function oe(e){const t=document.createElement("style");return t.setAttribute("data-mantine-styles","inline"),t.innerHTML="*, *::before, *::after {transition: none !important;}",t.setAttribute("data-mantine-disable-transition","true"),e&&t.setAttribute("nonce",e),document.head.appendChild(t),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(s=>s.remove())}function de({keepTransitions:e}={}){const t=b.useRef(Je),o=b.useRef(-1),s=b.useContext(Ne),d=Ie(),l=b.useRef(d?.());if(!s)throw new Error("[@mantine/core] MantineProvider was not found in tree");const a=p=>{s.setColorScheme(p),t.current=e?()=>{}:oe(l.current),window.clearTimeout(o.current),o.current=window.setTimeout(()=>{t.current?.()},10)},c=()=>{s.clearColorScheme(),t.current=e?()=>{}:oe(l.current),window.clearTimeout(o.current),o.current=window.setTimeout(()=>{t.current?.()},10)},r=ce("light",{getInitialValueInEffect:!1}),h=s.colorScheme==="auto"?r:s.colorScheme,i=b.useCallback(()=>a(h==="light"?"dark":"light"),[a,h]);return b.useEffect(()=>()=>{t.current?.(),window.clearTimeout(o.current)},[]),{colorScheme:s.colorScheme,setColorScheme:a,clearColorScheme:c,toggleColorScheme:i}}function tt(e,t={getInitialValueInEffect:!0}){const o=ce(e,t),{colorScheme:s}=de();return s==="auto"?o:s}const[st,C]=Ae("AppShell was not found in tree");var w={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const K=S((e,t)=>{const{classNames:o,className:s,style:d,styles:l,unstyled:a,vars:c,withBorder:r,zIndex:h,mod:i,...p}=v("AppShellAside",null,e),u=C();return u.disabled?null:n.jsx(x,{component:"aside",ref:t,mod:[{"with-border":r??u.withBorder},i],...u.getStyles("aside",{className:H({[$.classNames.zeroRight]:u.offsetScrollbars},s),classNames:o,styles:l,style:d}),...p,__vars:{"--app-shell-aside-z-index":`calc(${h??u.zIndex} + 1)`}})});K.classes=w;K.displayName="@mantine/core/AppShellAside";const X=S((e,t)=>{const{classNames:o,className:s,style:d,styles:l,unstyled:a,vars:c,withBorder:r,zIndex:h,mod:i,...p}=v("AppShellFooter",null,e),u=C();return u.disabled?null:n.jsx(x,{component:"footer",ref:t,mod:[{"with-border":r??u.withBorder},i],...u.getStyles("footer",{className:H({[$.classNames.zeroRight]:u.offsetScrollbars},s),classNames:o,styles:l,style:d}),...p,__vars:{"--app-shell-footer-z-index":(h??u.zIndex)?.toString()}})});X.classes=w;X.displayName="@mantine/core/AppShellFooter";const Q=S((e,t)=>{const{classNames:o,className:s,style:d,styles:l,unstyled:a,vars:c,withBorder:r,zIndex:h,mod:i,...p}=v("AppShellHeader",null,e),u=C();return u.disabled?null:n.jsx(x,{component:"header",ref:t,mod:[{"with-border":r??u.withBorder},i],...u.getStyles("header",{className:H({[$.classNames.zeroRight]:u.offsetScrollbars},s),classNames:o,styles:l,style:d}),...p,__vars:{"--app-shell-header-z-index":(h??u.zIndex)?.toString()}})});Q.classes=w;Q.displayName="@mantine/core/AppShellHeader";const G=S((e,t)=>{const{classNames:o,className:s,style:d,styles:l,vars:a,...c}=v("AppShellMain",null,e),r=C();return n.jsx(x,{component:"main",ref:t,...r.getStyles("main",{className:s,style:d,classNames:o,styles:l}),...c})});G.classes=w;G.displayName="@mantine/core/AppShellMain";function y(e){return typeof e=="object"?e.base:e}function B(e){const t=typeof e=="object"&&e!==null&&typeof e.base<"u"&&Object.keys(e).length===1;return typeof e=="number"||typeof e=="string"||t}function P(e){return!(typeof e!="object"||e===null||Object.keys(e).length===1&&"base"in e)}function ot({baseStyles:e,minMediaStyles:t,maxMediaStyles:o,aside:s,theme:d}){const l=s?.width,a="translateX(var(--app-shell-aside-width))",c="translateX(calc(var(--app-shell-aside-width) * -1))";if(s?.breakpoint&&!s?.collapsed?.mobile&&(o[s?.breakpoint]=o[s?.breakpoint]||{},o[s?.breakpoint]["--app-shell-aside-width"]="100%",o[s?.breakpoint]["--app-shell-aside-offset"]="0px"),B(l)){const r=m(y(l));e["--app-shell-aside-width"]=r,e["--app-shell-aside-offset"]=r}if(P(l)&&(typeof l.base<"u"&&(e["--app-shell-aside-width"]=m(l.base),e["--app-shell-aside-offset"]=m(l.base)),N(l).forEach(r=>{r!=="base"&&(t[r]=t[r]||{},t[r]["--app-shell-aside-width"]=m(l[r]),t[r]["--app-shell-aside-offset"]=m(l[r]))})),s?.collapsed?.desktop){const r=s.breakpoint;t[r]=t[r]||{},t[r]["--app-shell-aside-transform"]=a,t[r]["--app-shell-aside-transform-rtl"]=c,t[r]["--app-shell-aside-offset"]="0px !important",t[r]["--app-shell-aside-scroll-locked-visibility"]="hidden"}if(s?.collapsed?.mobile){const r=ie(s.breakpoint,d.breakpoints)-.1;o[r]=o[r]||{},o[r]["--app-shell-aside-width"]="100%",o[r]["--app-shell-aside-offset"]="0px",o[r]["--app-shell-aside-transform"]=a,o[r]["--app-shell-aside-transform-rtl"]=c,o[r]["--app-shell-aside-scroll-locked-visibility"]="hidden"}}function rt({baseStyles:e,minMediaStyles:t,footer:o}){const s=o?.height,d="translateY(var(--app-shell-footer-height))",l=o?.offset??!0;if(B(s)){const a=m(y(s));e["--app-shell-footer-height"]=a,l&&(e["--app-shell-footer-offset"]=a)}P(s)&&(typeof s.base<"u"&&(e["--app-shell-footer-height"]=m(s.base),l&&(e["--app-shell-footer-offset"]=m(s.base))),N(s).forEach(a=>{a!=="base"&&(t[a]=t[a]||{},t[a]["--app-shell-footer-height"]=m(s[a]),l&&(t[a]["--app-shell-footer-offset"]=m(s[a])))})),o?.collapsed&&(e["--app-shell-footer-transform"]=d,e["--app-shell-footer-offset"]="0px !important")}function nt({baseStyles:e,minMediaStyles:t,header:o}){const s=o?.height,d="translateY(calc(var(--app-shell-header-height) * -1))",l=o?.offset??!0;if(B(s)){const a=m(y(s));e["--app-shell-header-height"]=a,l&&(e["--app-shell-header-offset"]=a)}P(s)&&(typeof s.base<"u"&&(e["--app-shell-header-height"]=m(s.base),l&&(e["--app-shell-header-offset"]=m(s.base))),N(s).forEach(a=>{a!=="base"&&(t[a]=t[a]||{},t[a]["--app-shell-header-height"]=m(s[a]),l&&(t[a]["--app-shell-header-offset"]=m(s[a])))})),o?.collapsed&&(e["--app-shell-header-transform"]=d,e["--app-shell-header-offset"]="0px !important")}function at({baseStyles:e,minMediaStyles:t,maxMediaStyles:o,navbar:s,theme:d}){const l=s?.width,a="translateX(calc(var(--app-shell-navbar-width) * -1))",c="translateX(var(--app-shell-navbar-width))";if(s?.breakpoint&&!s?.collapsed?.mobile&&(o[s?.breakpoint]=o[s?.breakpoint]||{},o[s?.breakpoint]["--app-shell-navbar-width"]="100%",o[s?.breakpoint]["--app-shell-navbar-offset"]="0px"),B(l)){const r=m(y(l));e["--app-shell-navbar-width"]=r,e["--app-shell-navbar-offset"]=r}if(P(l)&&(typeof l.base<"u"&&(e["--app-shell-navbar-width"]=m(l.base),e["--app-shell-navbar-offset"]=m(l.base)),N(l).forEach(r=>{r!=="base"&&(t[r]=t[r]||{},t[r]["--app-shell-navbar-width"]=m(l[r]),t[r]["--app-shell-navbar-offset"]=m(l[r]))})),s?.collapsed?.desktop){const r=s.breakpoint;t[r]=t[r]||{},t[r]["--app-shell-navbar-transform"]=a,t[r]["--app-shell-navbar-transform-rtl"]=c,t[r]["--app-shell-navbar-offset"]="0px !important"}if(s?.collapsed?.mobile){const r=ie(s.breakpoint,d.breakpoints)-.1;o[r]=o[r]||{},o[r]["--app-shell-navbar-width"]="100%",o[r]["--app-shell-navbar-offset"]="0px",o[r]["--app-shell-navbar-transform"]=a,o[r]["--app-shell-navbar-transform-rtl"]=c}}function L(e){return Number(e)===0?"0px":Ce(e)}function lt({padding:e,baseStyles:t,minMediaStyles:o}){B(e)&&(t["--app-shell-padding"]=L(y(e))),P(e)&&(e.base&&(t["--app-shell-padding"]=L(e.base)),N(e).forEach(s=>{s!=="base"&&(o[s]=o[s]||{},o[s]["--app-shell-padding"]=L(e[s]))}))}function it({navbar:e,header:t,footer:o,aside:s,padding:d,theme:l}){const a={},c={},r={};at({baseStyles:r,minMediaStyles:a,maxMediaStyles:c,navbar:e,theme:l}),ot({baseStyles:r,minMediaStyles:a,maxMediaStyles:c,aside:s,theme:l}),nt({baseStyles:r,minMediaStyles:a,header:t}),rt({baseStyles:r,minMediaStyles:a,footer:o}),lt({baseStyles:r,minMediaStyles:a,padding:d});const h=se(N(a),l.breakpoints).map(u=>({query:`(min-width: ${te(u.px)})`,styles:a[u.value]})),i=se(N(c),l.breakpoints).map(u=>({query:`(max-width: ${te(u.px)})`,styles:c[u.value]})),p=[...h,...i];return{baseStyles:r,media:p}}function ct({navbar:e,header:t,aside:o,footer:s,padding:d}){const l=ze(),a=ke(),{media:c,baseStyles:r}=it({navbar:e,header:t,footer:s,aside:o,padding:d,theme:l});return n.jsx(ye,{media:c,styles:r,selector:a.cssVariablesSelector})}const U=S((e,t)=>{const{classNames:o,className:s,style:d,styles:l,unstyled:a,vars:c,withBorder:r,zIndex:h,mod:i,...p}=v("AppShellNavbar",null,e),u=C();return u.disabled?null:n.jsx(x,{component:"nav",ref:t,mod:[{"with-border":r??u.withBorder},i],...u.getStyles("navbar",{className:s,classNames:o,styles:l,style:d}),...p,__vars:{"--app-shell-navbar-z-index":`calc(${h??u.zIndex} + 1)`}})});U.classes=w;U.displayName="@mantine/core/AppShellNavbar";const Y=Be((e,t)=>{const{classNames:o,className:s,style:d,styles:l,vars:a,grow:c,mod:r,...h}=v("AppShellSection",null,e),i=C();return n.jsx(x,{ref:t,mod:[{grow:c},r],...i.getStyles("section",{className:s,style:d,classNames:o,styles:l}),...h})});Y.classes=w;Y.displayName="@mantine/core/AppShellSection";function dt({transitionDuration:e,disabled:t}){const[o,s]=b.useState(!0),d=b.useRef(-1),l=b.useRef(-1);return Pe("resize",()=>{s(!0),clearTimeout(d.current),d.current=window.setTimeout(()=>b.startTransition(()=>{s(!1)}),200)}),Re(()=>{s(!0),clearTimeout(l.current),l.current=window.setTimeout(()=>b.startTransition(()=>{s(!1)}),e||0)},[t,e]),o}const ht={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:Te("app")},pt=O((e,{transitionDuration:t,transitionTimingFunction:o})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":o}})),g=S((e,t)=>{const o=v("AppShell",ht,e),{classNames:s,className:d,style:l,styles:a,unstyled:c,vars:r,navbar:h,withBorder:i,padding:p,transitionDuration:u,transitionTimingFunction:V,header:z,zIndex:E,layout:R,disabled:F,aside:me,footer:be,offsetScrollbars:ge=!0,mod:ve,attributes:xe,...je}=o,ee=W({name:"AppShell",classes:w,props:o,className:d,style:l,classNames:s,styles:a,unstyled:c,attributes:xe,vars:r,varsResolver:pt}),Se=dt({disabled:F,transitionDuration:u});return n.jsxs(st,{value:{getStyles:ee,withBorder:i,zIndex:E,disabled:F,offsetScrollbars:ge},children:[n.jsx(ct,{navbar:h,header:z,aside:me,footer:be,padding:p}),n.jsx(x,{ref:t,...ee("root"),mod:[{resizing:Se,layout:R,disabled:F},ve],...je})]})});g.classes=w;g.displayName="@mantine/core/AppShell";g.Navbar=U;g.Header=Q;g.Main=G;g.Aside=K;g.Footer=X;g.Section=Y;var he={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const ut=O((e,{color:t,size:o,lineSize:s,transitionDuration:d,transitionTimingFunction:l})=>({root:{"--burger-color":t?Ve(t,e):void 0,"--burger-size":ne(o,"burger-size"),"--burger-line-size":s?m(s):void 0,"--burger-transition-duration":d===void 0?void 0:`${d}ms`,"--burger-transition-timing-function":l}})),J=S((e,t)=>{const o=v("Burger",null,e),{classNames:s,className:d,style:l,styles:a,unstyled:c,vars:r,opened:h,children:i,transitionDuration:p,transitionTimingFunction:u,lineSize:V,attributes:z,...E}=o,R=W({name:"Burger",classes:he,props:o,className:d,style:l,classNames:s,styles:a,unstyled:c,attributes:z,vars:r,varsResolver:ut});return n.jsxs(_e,{...R("root"),ref:t,...E,children:[n.jsx(x,{mod:["reduce-motion",{opened:h}],...R("burger")}),i]})});J.classes=he;J.displayName="@mantine/core/Burger";var pe={root:"m_dc6f14e2"};const ft=O((e,{size:t})=>({root:{"--kbd-fz":ne(t,"kbd-fz")}})),M=S((e,t)=>{const o=v("Kbd",null,e),{classNames:s,className:d,style:l,styles:a,unstyled:c,vars:r,attributes:h,...i}=o,p=W({name:"Kbd",classes:pe,props:o,className:d,style:l,classNames:s,styles:a,unstyled:c,attributes:h,vars:r,varsResolver:ft});return n.jsx(x,{component:"kbd",ref:t,...p("root"),...i})});M.classes=pe;M.displayName="@mantine/core/Kbd";const mt=[["path",{d:"M9 6.371c0 4.418 -2.239 6.629 -5 6.629",key:"svg-0"}],["path",{d:"M4 6.371h7",key:"svg-1"}],["path",{d:"M5 9c0 2.144 2.252 3.908 6 4",key:"svg-2"}],["path",{d:"M12 20l4 -9l4 9",key:"svg-3"}],["path",{d:"M19.1 18h-6.2",key:"svg-4"}],["path",{d:"M6.694 3l.793 .582",key:"svg-5"}]],bt=A("outline","language","Language",mt);const gt=[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M9 4v16",key:"svg-1"}],["path",{d:"M15 10l-2 2l2 2",key:"svg-2"}]],vt=A("outline","layout-sidebar-left-collapse","LayoutSidebarLeftCollapse",gt);const xt=[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M15 4v16",key:"svg-1"}],["path",{d:"M9 10l2 2l-2 2",key:"svg-2"}]],jt=A("outline","layout-sidebar-right-collapse","LayoutSidebarRightCollapse",xt);const St=[["path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z",key:"svg-0"}]],re=A("outline","moon","Moon",St);const wt=[["path",{d:"M12 3c7.2 0 9 1.8 9 9s-1.8 9 -9 9s-9 -1.8 -9 -9s1.8 -9 9 -9z",key:"svg-0"}]],Nt=A("outline","square-rounded","SquareRounded",wt);const It=[["path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7",key:"svg-1"}]],D=A("outline","sun","Sun",It),At=e=>{const[t,o]=T("alepha.ui.sidebar.opened");return n.jsx(J,{opened:t,onClick:()=>o(!t),hiddenFrom:"sm",size:"sm",...e})},ue=e=>{const{setColorScheme:t}=de(),o=tt("light"),[s,d]=b.useState("default"),l=e.mode??"minimal";b.useEffect(()=>{d(o)},[o]);const a=()=>{t(o==="dark"?"light":"dark")};return l==="segmented"?n.jsx(Me,{value:s,onChange:c=>t(c),data:[{value:"light",label:n.jsx(f,{h:20,align:"center",justify:"center",children:n.jsx(D,{size:16})})},{value:"dark",label:n.jsx(f,{h:20,align:"center",justify:"center",children:n.jsx(re,{size:16})})}],w:e.fullWidth?"100%":void 0,...e.segmentedProps}):n.jsx(I,{onClick:a,variant:e.variant??"subtle",size:e.size??"sm","aria-label":"Toggle color scheme",px:"xs",fullWidth:e.fullWidth??!1,icon:s==="dark"?D:s==="light"?re:D,...e.actionProps})},Ct=e=>{const t=Ye();return n.jsx(I,{variant:"default",icon:bt,menu:{items:t.languages.map(o=>({label:t.tr(o),onClick:()=>t.setLang(o),active:t.lang===o}))},...e.actionProps})},Z=e=>n.jsx(I,{variant:"default",onClick:Ee.open,justify:"space-between",rightSection:n.jsx(M,{visibleFrom:"sm",size:"sm",children:"⌘+K"}),radius:"md",...e.actionProps,children:n.jsxs(f,{align:"center",gap:"xs",children:[n.jsx(Fe,{size:16,color:"gray"}),n.jsx(f,{visibleFrom:"sm",miw:192,children:n.jsx(q,{size:"xs",c:"dimmed",children:"Search..."})})]})}),zt=e=>{const{items:t=[]}=e,o=(a,c)=>{if("type"in a){if(a.type==="burger")return n.jsx(At,{},c);if(a.type==="dark")return n.jsx(ue,{...a.props},c);if(a.type==="search")return n.jsx(Z,{...a.props},c);if(a.type==="lang")return n.jsx(Ct,{...a.props},c);if(a.type==="spacer")return n.jsx(f,{w:16},c);if(a.type==="divider")return n.jsx(Ze,{orientation:"vertical"},c)}return"element"in a?a.element:null},s=t.filter(a=>a.position==="left"),d=t.filter(a=>a.position==="center"),l=t.filter(a=>a.position==="right");return n.jsxs(f,{h:"100%",align:"center",px:"md",justify:"space-between",...e.flexProps,children:[n.jsx(f,{flex:1,children:s.map((a,c)=>n.jsx(f,{ml:c===0?0:"md",align:"center",children:o(a,c)},c))}),n.jsx(f,{children:d.map((a,c)=>n.jsx(f,{mx:"md",align:"center",children:o(a,c)},c))}),n.jsx(f,{flex:1,align:"center",justify:"end",children:l.map((a,c)=>n.jsx(f,{ml:c===0?0:"md",align:"center",children:o(a,c)},c))})]})},kt=()=>{const[e,t]=T("alepha.ui.sidebar.collapsed");return n.jsx(f,{children:n.jsx(I,{icon:e?n.jsx(jt,{}):n.jsx(vt,{}),variant:"subtle",size:"md",onClick:()=>t(!e),tooltip:{position:"right",label:e?"Show sidebar":"Hide sidebar"}})})},yt=e=>{const t=_(),{top:o=[],bottom:s=[],onItemClick:d}=e,l=(i,p)=>{if("type"in i){if(i.type==="spacer")return n.jsx(f,{h:16},p);if(i.type==="divider")return n.jsx(f,{h:1,bg:"var(--alepha-border)",my:"md",mx:"sm"},p);if(i.type==="search")return n.jsx(Z,{collapsed:e.collapsed},p);if(i.type==="toggle")return n.jsx(kt,{},p);if(i.type==="section")return e.collapsed?void 0:n.jsxs(f,{mt:"md",mb:"xs",align:"center",gap:"xs",children:[k(i.icon),n.jsx(q,{size:"xs",c:"dimmed",tt:"uppercase",fw:"bold",children:i.label},p)]},p)}return"element"in i?n.jsx(f,{children:i.element},p):i.can&&!i.can()?null:e.collapsed?n.jsx(Bt,{item:i,level:0,onItemClick:d,theme:e.theme??{}},p):n.jsx(fe,{item:i,level:0,onItemClick:d,theme:e.theme??{}},p)},a=()=>{if(e.menu)return e.menu;if(e.autoPopulateMenu){const i=t.concretePages.map(p=>({label:p.label??p.name,description:p.description?.slice(0,32),icon:k(p.icon),href:t.path(p.name)}));if(typeof e.autoPopulateMenu=="object"&&e.autoPopulateMenu.startsWith){const p=e.autoPopulateMenu.startsWith;return i.filter(u=>u.href?.startsWith(p))}}return[]},c="md",r=e.menu?e.gap:"xs",h=b.useMemo(()=>a(),[]);return n.jsxs(f,{flex:1,py:c,direction:"column",className:"overflow-auto",...e.flexProps,children:[n.jsxs(f,{gap:r,px:c,direction:"column",children:[o.map((i,p)=>l(i,p)),h.filter(i=>i.position==="top").map((i,p)=>l(i,p+o.length))]}),n.jsx(f,{gap:r,px:c,direction:"column",flex:1,className:"overflow-auto",children:h.filter(i=>!i.position).map((i,p)=>l(i,p))}),n.jsxs(f,{gap:r,px:c,direction:"column",children:[s.map((i,p)=>l(i,p)),h.filter(i=>i.position==="bottom").map((i,p)=>l(i,p+s.length))]})]})},fe=e=>{const{item:t,level:o}=e,s=2,d=_(),l=b.useCallback(h=>{if(!h.children)return!1;for(const i of h.children)if(i.href&&d.isActive(i.href)||l(i))return!0;return!1},[]),[a,c]=b.useState(l(t));if(ae({"react:transition:end":()=>{l(t)&&c(!0)}},[]),o>s)return null;const r=h=>{e.item.target||h.preventDefault(),t.children&&t.children.length>0?c(!a):(e.onItemClick?.(t),t.onClick?.())};return n.jsxs(f,{direction:"column",ps:o===0?0:32,pos:"relative",children:[n.jsx(I,{w:"100%",justify:"space-between",href:e.item.href,target:e.item.target,size:e.item.theme?.size??e.theme.button?.size??(o===0?"sm":"xs"),c:"var(--mantine-color-text)",color:"gray",variant:"subtle",variantActive:"default",radius:e.item.theme?.radius??e.theme.button?.radius??"md",onClick:r,leftSection:n.jsxs(f,{w:"100%",align:"center",gap:"sm",children:[k(t.icon),n.jsxs(f,{direction:"column",children:[n.jsx(f,{children:t.label}),t.description&&n.jsx(q,{size:"xs",c:"dimmed",children:t.description})]})]}),rightSection:t.children?n.jsx(f,{children:a?n.jsx(Le,{size:14}):n.jsx(De,{size:14})}):e.item.rightSection,...e.item.actionProps}),t.children&&a&&n.jsxs(f,{direction:"column","data-parent-level":o,children:[n.jsx(f,{style:{position:"absolute",width:1,background:"linear-gradient(to bottom, transparent, var(--alepha-border), transparent)",top:48,left:20+32*o,bottom:16}}),t.children.filter(h=>!h.can||h.can()).map((h,i)=>n.jsx(fe,{item:h,level:o+1,onItemClick:e.onItemClick,theme:e.theme},i))]})]})},Bt=e=>{const{item:t,level:o}=e,s=_(),d=b.useCallback(r=>{if(!r.children)return!1;for(const h of r.children)if(h.href&&s.isActive(h.href)||d(h))return!0;return!1},[]),[l,a]=b.useState(d(t)),c=r=>{e.item.target||r.preventDefault(),t.children&&t.children.length>0?a(!l):(e.onItemClick?.(t),t.onClick?.())};return n.jsx(I,{size:e.item.theme?.size??e.theme.button?.size??(o===0?"sm":"xs"),variant:"subtle",variantActive:"default",tooltip:t.children?void 0:{label:t.label,position:"right"},radius:e.item.theme?.radius??e.theme.button?.radius??"md",onClick:c,icon:k(t.icon)??n.jsx(Nt,{}),href:e.item.href,target:e.item.target,menu:t.children?{position:"right",on:"hover",items:t.children.filter(r=>!r.can||r.can()).map(r=>({label:r.label,href:r.href,icon:k(r.icon),children:r.children?.filter(h=>!h.can||h.can())}))}:void 0,...e.item.actionProps})},Pt=e=>{const t=_(),[o,s]=T("alepha.ui.sidebar.opened"),[d]=T("alepha.ui.sidebar.collapsed",e.sidebarProps?.collapsed),l=()=>{if(e.noSidebarWhen?.paths){for(const z of e.noSidebarWhen.paths)if(t.isActive(z,{startWith:!0}))return!1}return!0},[a,c]=b.useState(l());ae({"react:transition:end":()=>{c(l())},"react:transition:begin":()=>{s(!1)}},[]);const r=[{position:"left",type:"burger"}],h=a&&e.sidebarProps!==void 0,i=h||e.appBarProps||e.header,p=i?60:0,u=e.footer?24:0,V=h?d?78:300:0;return n.jsxs(g,{w:"100%",flex:1,padding:"md",header:i?{height:60}:void 0,navbar:h?{width:d?{base:78}:{base:300},breakpoint:"sm",collapsed:{mobile:!o}}:void 0,footer:e.footer?{height:24}:void 0,...e.appShellProps,children:[n.jsx(g.Header,{bg:j.colors.surface,...e.appShellHeaderProps,children:e.header??n.jsx(zt,{items:r,...e.appBarProps})}),h&&n.jsx(g.Navbar,{bg:j.colors.surface,...e.appShellNavbarProps,children:n.jsx(yt,{collapsed:d,...e.sidebarProps??{}})}),n.jsx(g.Main,{pl:V,pt:p,pb:u,pr:0,display:"flex",flex:1,style:{flexDirection:"column"},...e.appShellMainProps,children:e.children??n.jsx(le,{})}),e.footer&&n.jsx(g.Footer,{bg:j.colors.surface,...e.appShellFooterProps,children:e.footer})]})},Ot=()=>n.jsx(Pt,{appShellProps:{withBorder:!1,bg:j.colors.background},appShellNavbarProps:{bg:j.colors.transparent},appShellHeaderProps:{bg:j.colors.transparent,style:{backdropFilter:"blur(10px)"}},sidebarProps:{gap:"xs",collapsed:!0,menu:[{label:"Dashboard",icon:n.jsx(He,{}),href:"/"},{type:"divider"},{label:"Actions",icon:n.jsx($e,{}),href:"/actions"},{label:"Queues",icon:n.jsx(We,{}),href:"/queues"},{label:"Topics",icon:n.jsx(Oe,{}),href:"/topics"},{label:"Caches",icon:n.jsx(qe,{}),href:"/caches"},{label:"DB Studio",icon:n.jsx(Ke,{}),href:"/db"},{type:"divider"},{label:"Environment",icon:n.jsx(Xe,{}),href:"/env"},{label:"Atoms",icon:n.jsx(Qe,{}),href:"/atoms"},{type:"divider"},{label:"Graph",icon:n.jsx(Ge,{}),href:"/graph"},{label:"Logs",icon:n.jsx(Ue,{}),href:"/logs"}]},appBarProps:{items:[{position:"left",type:"burger"},{position:"left",element:n.jsx(I,{intent:"none",icon:et,href:"/",active:!1,children:"Devtools"})},{position:"center",element:n.jsx(Z,{})},{position:"right",element:n.jsx(ue,{})}]},children:n.jsx(f,{className:"overflow-auto",w:"100%",flex:1,direction:"column",bd:`1px solid ${j.colors.border}`,bg:j.colors.elevated,ml:-16,mr:-16,mt:-16,style:{borderTopLeftRadius:16},children:n.jsx(le,{})})});export{Ot as DevLayout,Ot as default};
1
+ import{u as we,r as b,M as Ne,a as Ie,c as Ae,f as S,b as v,j as n,B as x,d as H,R as $,e as m,k as N,g as Ce,h as te,i as ze,l as ke,I as ye,p as Be,m as Pe,n as Re,o as Te,q as W,s as O,U as _e,t as ne,v as Ve,w as A,x as T,F as f,y as Ee,z as Fe,T as q,A as _,C as k,D as ae,E as Le,G as De,H as j,N as le,J as He,K as $e,L as We,O as Oe,P as qe,Q as Ke,S as Xe,V as Qe,W as Ge,X as Ue}from"./entry.Bkwg306k.js";import{A as I,u as Ye}from"./chunk.CLi65HO4.js";import{n as Je}from"./chunk.BjFrJKj1.js";import{S as Me}from"./chunk.BPR3Fzfi.js";import{D as Ze}from"./chunk.CkWIENRP.js";import{g as ie,a as se}from"./chunk.69EpOqBb.js";import{I as et}from"./chunk.ChW-mtOy.js";import"./chunk.CKmrGczh.js";import"./chunk.BlqFPyLh.js";import"./chunk.D4_B6m39.js";import"./chunk.uyVen0u2.js";function ce(e,t){return we("(prefers-color-scheme: dark)",e==="dark",t)?"dark":"light"}function oe(e){const t=document.createElement("style");return t.setAttribute("data-mantine-styles","inline"),t.innerHTML="*, *::before, *::after {transition: none !important;}",t.setAttribute("data-mantine-disable-transition","true"),e&&t.setAttribute("nonce",e),document.head.appendChild(t),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(s=>s.remove())}function de({keepTransitions:e}={}){const t=b.useRef(Je),o=b.useRef(-1),s=b.useContext(Ne),d=Ie(),l=b.useRef(d?.());if(!s)throw new Error("[@mantine/core] MantineProvider was not found in tree");const a=p=>{s.setColorScheme(p),t.current=e?()=>{}:oe(l.current),window.clearTimeout(o.current),o.current=window.setTimeout(()=>{t.current?.()},10)},c=()=>{s.clearColorScheme(),t.current=e?()=>{}:oe(l.current),window.clearTimeout(o.current),o.current=window.setTimeout(()=>{t.current?.()},10)},r=ce("light",{getInitialValueInEffect:!1}),h=s.colorScheme==="auto"?r:s.colorScheme,i=b.useCallback(()=>a(h==="light"?"dark":"light"),[a,h]);return b.useEffect(()=>()=>{t.current?.(),window.clearTimeout(o.current)},[]),{colorScheme:s.colorScheme,setColorScheme:a,clearColorScheme:c,toggleColorScheme:i}}function tt(e,t={getInitialValueInEffect:!0}){const o=ce(e,t),{colorScheme:s}=de();return s==="auto"?o:s}const[st,C]=Ae("AppShell was not found in tree");var w={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const K=S((e,t)=>{const{classNames:o,className:s,style:d,styles:l,unstyled:a,vars:c,withBorder:r,zIndex:h,mod:i,...p}=v("AppShellAside",null,e),u=C();return u.disabled?null:n.jsx(x,{component:"aside",ref:t,mod:[{"with-border":r??u.withBorder},i],...u.getStyles("aside",{className:H({[$.classNames.zeroRight]:u.offsetScrollbars},s),classNames:o,styles:l,style:d}),...p,__vars:{"--app-shell-aside-z-index":`calc(${h??u.zIndex} + 1)`}})});K.classes=w;K.displayName="@mantine/core/AppShellAside";const X=S((e,t)=>{const{classNames:o,className:s,style:d,styles:l,unstyled:a,vars:c,withBorder:r,zIndex:h,mod:i,...p}=v("AppShellFooter",null,e),u=C();return u.disabled?null:n.jsx(x,{component:"footer",ref:t,mod:[{"with-border":r??u.withBorder},i],...u.getStyles("footer",{className:H({[$.classNames.zeroRight]:u.offsetScrollbars},s),classNames:o,styles:l,style:d}),...p,__vars:{"--app-shell-footer-z-index":(h??u.zIndex)?.toString()}})});X.classes=w;X.displayName="@mantine/core/AppShellFooter";const Q=S((e,t)=>{const{classNames:o,className:s,style:d,styles:l,unstyled:a,vars:c,withBorder:r,zIndex:h,mod:i,...p}=v("AppShellHeader",null,e),u=C();return u.disabled?null:n.jsx(x,{component:"header",ref:t,mod:[{"with-border":r??u.withBorder},i],...u.getStyles("header",{className:H({[$.classNames.zeroRight]:u.offsetScrollbars},s),classNames:o,styles:l,style:d}),...p,__vars:{"--app-shell-header-z-index":(h??u.zIndex)?.toString()}})});Q.classes=w;Q.displayName="@mantine/core/AppShellHeader";const G=S((e,t)=>{const{classNames:o,className:s,style:d,styles:l,vars:a,...c}=v("AppShellMain",null,e),r=C();return n.jsx(x,{component:"main",ref:t,...r.getStyles("main",{className:s,style:d,classNames:o,styles:l}),...c})});G.classes=w;G.displayName="@mantine/core/AppShellMain";function y(e){return typeof e=="object"?e.base:e}function B(e){const t=typeof e=="object"&&e!==null&&typeof e.base<"u"&&Object.keys(e).length===1;return typeof e=="number"||typeof e=="string"||t}function P(e){return!(typeof e!="object"||e===null||Object.keys(e).length===1&&"base"in e)}function ot({baseStyles:e,minMediaStyles:t,maxMediaStyles:o,aside:s,theme:d}){const l=s?.width,a="translateX(var(--app-shell-aside-width))",c="translateX(calc(var(--app-shell-aside-width) * -1))";if(s?.breakpoint&&!s?.collapsed?.mobile&&(o[s?.breakpoint]=o[s?.breakpoint]||{},o[s?.breakpoint]["--app-shell-aside-width"]="100%",o[s?.breakpoint]["--app-shell-aside-offset"]="0px"),B(l)){const r=m(y(l));e["--app-shell-aside-width"]=r,e["--app-shell-aside-offset"]=r}if(P(l)&&(typeof l.base<"u"&&(e["--app-shell-aside-width"]=m(l.base),e["--app-shell-aside-offset"]=m(l.base)),N(l).forEach(r=>{r!=="base"&&(t[r]=t[r]||{},t[r]["--app-shell-aside-width"]=m(l[r]),t[r]["--app-shell-aside-offset"]=m(l[r]))})),s?.collapsed?.desktop){const r=s.breakpoint;t[r]=t[r]||{},t[r]["--app-shell-aside-transform"]=a,t[r]["--app-shell-aside-transform-rtl"]=c,t[r]["--app-shell-aside-offset"]="0px !important",t[r]["--app-shell-aside-scroll-locked-visibility"]="hidden"}if(s?.collapsed?.mobile){const r=ie(s.breakpoint,d.breakpoints)-.1;o[r]=o[r]||{},o[r]["--app-shell-aside-width"]="100%",o[r]["--app-shell-aside-offset"]="0px",o[r]["--app-shell-aside-transform"]=a,o[r]["--app-shell-aside-transform-rtl"]=c,o[r]["--app-shell-aside-scroll-locked-visibility"]="hidden"}}function rt({baseStyles:e,minMediaStyles:t,footer:o}){const s=o?.height,d="translateY(var(--app-shell-footer-height))",l=o?.offset??!0;if(B(s)){const a=m(y(s));e["--app-shell-footer-height"]=a,l&&(e["--app-shell-footer-offset"]=a)}P(s)&&(typeof s.base<"u"&&(e["--app-shell-footer-height"]=m(s.base),l&&(e["--app-shell-footer-offset"]=m(s.base))),N(s).forEach(a=>{a!=="base"&&(t[a]=t[a]||{},t[a]["--app-shell-footer-height"]=m(s[a]),l&&(t[a]["--app-shell-footer-offset"]=m(s[a])))})),o?.collapsed&&(e["--app-shell-footer-transform"]=d,e["--app-shell-footer-offset"]="0px !important")}function nt({baseStyles:e,minMediaStyles:t,header:o}){const s=o?.height,d="translateY(calc(var(--app-shell-header-height) * -1))",l=o?.offset??!0;if(B(s)){const a=m(y(s));e["--app-shell-header-height"]=a,l&&(e["--app-shell-header-offset"]=a)}P(s)&&(typeof s.base<"u"&&(e["--app-shell-header-height"]=m(s.base),l&&(e["--app-shell-header-offset"]=m(s.base))),N(s).forEach(a=>{a!=="base"&&(t[a]=t[a]||{},t[a]["--app-shell-header-height"]=m(s[a]),l&&(t[a]["--app-shell-header-offset"]=m(s[a])))})),o?.collapsed&&(e["--app-shell-header-transform"]=d,e["--app-shell-header-offset"]="0px !important")}function at({baseStyles:e,minMediaStyles:t,maxMediaStyles:o,navbar:s,theme:d}){const l=s?.width,a="translateX(calc(var(--app-shell-navbar-width) * -1))",c="translateX(var(--app-shell-navbar-width))";if(s?.breakpoint&&!s?.collapsed?.mobile&&(o[s?.breakpoint]=o[s?.breakpoint]||{},o[s?.breakpoint]["--app-shell-navbar-width"]="100%",o[s?.breakpoint]["--app-shell-navbar-offset"]="0px"),B(l)){const r=m(y(l));e["--app-shell-navbar-width"]=r,e["--app-shell-navbar-offset"]=r}if(P(l)&&(typeof l.base<"u"&&(e["--app-shell-navbar-width"]=m(l.base),e["--app-shell-navbar-offset"]=m(l.base)),N(l).forEach(r=>{r!=="base"&&(t[r]=t[r]||{},t[r]["--app-shell-navbar-width"]=m(l[r]),t[r]["--app-shell-navbar-offset"]=m(l[r]))})),s?.collapsed?.desktop){const r=s.breakpoint;t[r]=t[r]||{},t[r]["--app-shell-navbar-transform"]=a,t[r]["--app-shell-navbar-transform-rtl"]=c,t[r]["--app-shell-navbar-offset"]="0px !important"}if(s?.collapsed?.mobile){const r=ie(s.breakpoint,d.breakpoints)-.1;o[r]=o[r]||{},o[r]["--app-shell-navbar-width"]="100%",o[r]["--app-shell-navbar-offset"]="0px",o[r]["--app-shell-navbar-transform"]=a,o[r]["--app-shell-navbar-transform-rtl"]=c}}function L(e){return Number(e)===0?"0px":Ce(e)}function lt({padding:e,baseStyles:t,minMediaStyles:o}){B(e)&&(t["--app-shell-padding"]=L(y(e))),P(e)&&(e.base&&(t["--app-shell-padding"]=L(e.base)),N(e).forEach(s=>{s!=="base"&&(o[s]=o[s]||{},o[s]["--app-shell-padding"]=L(e[s]))}))}function it({navbar:e,header:t,footer:o,aside:s,padding:d,theme:l}){const a={},c={},r={};at({baseStyles:r,minMediaStyles:a,maxMediaStyles:c,navbar:e,theme:l}),ot({baseStyles:r,minMediaStyles:a,maxMediaStyles:c,aside:s,theme:l}),nt({baseStyles:r,minMediaStyles:a,header:t}),rt({baseStyles:r,minMediaStyles:a,footer:o}),lt({baseStyles:r,minMediaStyles:a,padding:d});const h=se(N(a),l.breakpoints).map(u=>({query:`(min-width: ${te(u.px)})`,styles:a[u.value]})),i=se(N(c),l.breakpoints).map(u=>({query:`(max-width: ${te(u.px)})`,styles:c[u.value]})),p=[...h,...i];return{baseStyles:r,media:p}}function ct({navbar:e,header:t,aside:o,footer:s,padding:d}){const l=ze(),a=ke(),{media:c,baseStyles:r}=it({navbar:e,header:t,footer:s,aside:o,padding:d,theme:l});return n.jsx(ye,{media:c,styles:r,selector:a.cssVariablesSelector})}const U=S((e,t)=>{const{classNames:o,className:s,style:d,styles:l,unstyled:a,vars:c,withBorder:r,zIndex:h,mod:i,...p}=v("AppShellNavbar",null,e),u=C();return u.disabled?null:n.jsx(x,{component:"nav",ref:t,mod:[{"with-border":r??u.withBorder},i],...u.getStyles("navbar",{className:s,classNames:o,styles:l,style:d}),...p,__vars:{"--app-shell-navbar-z-index":`calc(${h??u.zIndex} + 1)`}})});U.classes=w;U.displayName="@mantine/core/AppShellNavbar";const Y=Be((e,t)=>{const{classNames:o,className:s,style:d,styles:l,vars:a,grow:c,mod:r,...h}=v("AppShellSection",null,e),i=C();return n.jsx(x,{ref:t,mod:[{grow:c},r],...i.getStyles("section",{className:s,style:d,classNames:o,styles:l}),...h})});Y.classes=w;Y.displayName="@mantine/core/AppShellSection";function dt({transitionDuration:e,disabled:t}){const[o,s]=b.useState(!0),d=b.useRef(-1),l=b.useRef(-1);return Pe("resize",()=>{s(!0),clearTimeout(d.current),d.current=window.setTimeout(()=>b.startTransition(()=>{s(!1)}),200)}),Re(()=>{s(!0),clearTimeout(l.current),l.current=window.setTimeout(()=>b.startTransition(()=>{s(!1)}),e||0)},[t,e]),o}const ht={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:Te("app")},pt=O((e,{transitionDuration:t,transitionTimingFunction:o})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":o}})),g=S((e,t)=>{const o=v("AppShell",ht,e),{classNames:s,className:d,style:l,styles:a,unstyled:c,vars:r,navbar:h,withBorder:i,padding:p,transitionDuration:u,transitionTimingFunction:V,header:z,zIndex:E,layout:R,disabled:F,aside:me,footer:be,offsetScrollbars:ge=!0,mod:ve,attributes:xe,...je}=o,ee=W({name:"AppShell",classes:w,props:o,className:d,style:l,classNames:s,styles:a,unstyled:c,attributes:xe,vars:r,varsResolver:pt}),Se=dt({disabled:F,transitionDuration:u});return n.jsxs(st,{value:{getStyles:ee,withBorder:i,zIndex:E,disabled:F,offsetScrollbars:ge},children:[n.jsx(ct,{navbar:h,header:z,aside:me,footer:be,padding:p}),n.jsx(x,{ref:t,...ee("root"),mod:[{resizing:Se,layout:R,disabled:F},ve],...je})]})});g.classes=w;g.displayName="@mantine/core/AppShell";g.Navbar=U;g.Header=Q;g.Main=G;g.Aside=K;g.Footer=X;g.Section=Y;var he={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const ut=O((e,{color:t,size:o,lineSize:s,transitionDuration:d,transitionTimingFunction:l})=>({root:{"--burger-color":t?Ve(t,e):void 0,"--burger-size":ne(o,"burger-size"),"--burger-line-size":s?m(s):void 0,"--burger-transition-duration":d===void 0?void 0:`${d}ms`,"--burger-transition-timing-function":l}})),J=S((e,t)=>{const o=v("Burger",null,e),{classNames:s,className:d,style:l,styles:a,unstyled:c,vars:r,opened:h,children:i,transitionDuration:p,transitionTimingFunction:u,lineSize:V,attributes:z,...E}=o,R=W({name:"Burger",classes:he,props:o,className:d,style:l,classNames:s,styles:a,unstyled:c,attributes:z,vars:r,varsResolver:ut});return n.jsxs(_e,{...R("root"),ref:t,...E,children:[n.jsx(x,{mod:["reduce-motion",{opened:h}],...R("burger")}),i]})});J.classes=he;J.displayName="@mantine/core/Burger";var pe={root:"m_dc6f14e2"};const ft=O((e,{size:t})=>({root:{"--kbd-fz":ne(t,"kbd-fz")}})),M=S((e,t)=>{const o=v("Kbd",null,e),{classNames:s,className:d,style:l,styles:a,unstyled:c,vars:r,attributes:h,...i}=o,p=W({name:"Kbd",classes:pe,props:o,className:d,style:l,classNames:s,styles:a,unstyled:c,attributes:h,vars:r,varsResolver:ft});return n.jsx(x,{component:"kbd",ref:t,...p("root"),...i})});M.classes=pe;M.displayName="@mantine/core/Kbd";const mt=[["path",{d:"M9 6.371c0 4.418 -2.239 6.629 -5 6.629",key:"svg-0"}],["path",{d:"M4 6.371h7",key:"svg-1"}],["path",{d:"M5 9c0 2.144 2.252 3.908 6 4",key:"svg-2"}],["path",{d:"M12 20l4 -9l4 9",key:"svg-3"}],["path",{d:"M19.1 18h-6.2",key:"svg-4"}],["path",{d:"M6.694 3l.793 .582",key:"svg-5"}]],bt=A("outline","language","Language",mt);const gt=[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M9 4v16",key:"svg-1"}],["path",{d:"M15 10l-2 2l2 2",key:"svg-2"}]],vt=A("outline","layout-sidebar-left-collapse","LayoutSidebarLeftCollapse",gt);const xt=[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M15 4v16",key:"svg-1"}],["path",{d:"M9 10l2 2l-2 2",key:"svg-2"}]],jt=A("outline","layout-sidebar-right-collapse","LayoutSidebarRightCollapse",xt);const St=[["path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z",key:"svg-0"}]],re=A("outline","moon","Moon",St);const wt=[["path",{d:"M12 3c7.2 0 9 1.8 9 9s-1.8 9 -9 9s-9 -1.8 -9 -9s1.8 -9 9 -9z",key:"svg-0"}]],Nt=A("outline","square-rounded","SquareRounded",wt);const It=[["path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7",key:"svg-1"}]],D=A("outline","sun","Sun",It),At=e=>{const[t,o]=T("alepha.ui.sidebar.opened");return n.jsx(J,{opened:t,onClick:()=>o(!t),hiddenFrom:"sm",size:"sm",...e})},ue=e=>{const{setColorScheme:t}=de(),o=tt("light"),[s,d]=b.useState("default"),l=e.mode??"minimal";b.useEffect(()=>{d(o)},[o]);const a=()=>{t(o==="dark"?"light":"dark")};return l==="segmented"?n.jsx(Me,{value:s,onChange:c=>t(c),data:[{value:"light",label:n.jsx(f,{h:20,align:"center",justify:"center",children:n.jsx(D,{size:16})})},{value:"dark",label:n.jsx(f,{h:20,align:"center",justify:"center",children:n.jsx(re,{size:16})})}],w:e.fullWidth?"100%":void 0,...e.segmentedProps}):n.jsx(I,{onClick:a,variant:e.variant??"subtle",size:e.size??"sm","aria-label":"Toggle color scheme",px:"xs",fullWidth:e.fullWidth??!1,icon:s==="dark"?D:s==="light"?re:D,...e.actionProps})},Ct=e=>{const t=Ye();return n.jsx(I,{variant:"default",icon:bt,menu:{items:t.languages.map(o=>({label:t.tr(o),onClick:()=>t.setLang(o),active:t.lang===o}))},...e.actionProps})},Z=e=>n.jsx(I,{variant:"default",onClick:Ee.open,justify:"space-between",rightSection:n.jsx(M,{visibleFrom:"sm",size:"sm",children:"⌘+K"}),radius:"md",...e.actionProps,children:n.jsxs(f,{align:"center",gap:"xs",children:[n.jsx(Fe,{size:16,color:"gray"}),n.jsx(f,{visibleFrom:"sm",miw:192,children:n.jsx(q,{size:"xs",c:"dimmed",children:"Search..."})})]})}),zt=e=>{const{items:t=[]}=e,o=(a,c)=>{if("type"in a){if(a.type==="burger")return n.jsx(At,{},c);if(a.type==="dark")return n.jsx(ue,{...a.props},c);if(a.type==="search")return n.jsx(Z,{...a.props},c);if(a.type==="lang")return n.jsx(Ct,{...a.props},c);if(a.type==="spacer")return n.jsx(f,{w:16},c);if(a.type==="divider")return n.jsx(Ze,{orientation:"vertical"},c)}return"element"in a?a.element:null},s=t.filter(a=>a.position==="left"),d=t.filter(a=>a.position==="center"),l=t.filter(a=>a.position==="right");return n.jsxs(f,{h:"100%",align:"center",px:"md",justify:"space-between",...e.flexProps,children:[n.jsx(f,{flex:1,children:s.map((a,c)=>n.jsx(f,{ml:c===0?0:"md",align:"center",children:o(a,c)},c))}),n.jsx(f,{children:d.map((a,c)=>n.jsx(f,{mx:"md",align:"center",children:o(a,c)},c))}),n.jsx(f,{flex:1,align:"center",justify:"end",children:l.map((a,c)=>n.jsx(f,{ml:c===0?0:"md",align:"center",children:o(a,c)},c))})]})},kt=()=>{const[e,t]=T("alepha.ui.sidebar.collapsed");return n.jsx(f,{children:n.jsx(I,{icon:e?n.jsx(jt,{}):n.jsx(vt,{}),variant:"subtle",size:"md",onClick:()=>t(!e),tooltip:{position:"right",label:e?"Show sidebar":"Hide sidebar"}})})},yt=e=>{const t=_(),{top:o=[],bottom:s=[],onItemClick:d}=e,l=(i,p)=>{if("type"in i){if(i.type==="spacer")return n.jsx(f,{h:16},p);if(i.type==="divider")return n.jsx(f,{h:1,bg:"var(--alepha-border)",my:"md",mx:"sm"},p);if(i.type==="search")return n.jsx(Z,{collapsed:e.collapsed},p);if(i.type==="toggle")return n.jsx(kt,{},p);if(i.type==="section")return e.collapsed?void 0:n.jsxs(f,{mt:"md",mb:"xs",align:"center",gap:"xs",children:[k(i.icon),n.jsx(q,{size:"xs",c:"dimmed",tt:"uppercase",fw:"bold",children:i.label},p)]},p)}return"element"in i?n.jsx(f,{children:i.element},p):i.can&&!i.can()?null:e.collapsed?n.jsx(Bt,{item:i,level:0,onItemClick:d,theme:e.theme??{}},p):n.jsx(fe,{item:i,level:0,onItemClick:d,theme:e.theme??{}},p)},a=()=>{if(e.menu)return e.menu;if(e.autoPopulateMenu){const i=t.concretePages.map(p=>({label:p.label??p.name,description:p.description?.slice(0,32),icon:k(p.icon),href:t.path(p.name)}));if(typeof e.autoPopulateMenu=="object"&&e.autoPopulateMenu.startsWith){const p=e.autoPopulateMenu.startsWith;return i.filter(u=>u.href?.startsWith(p))}}return[]},c="md",r=e.menu?e.gap:"xs",h=b.useMemo(()=>a(),[]);return n.jsxs(f,{flex:1,py:c,direction:"column",className:"overflow-auto",...e.flexProps,children:[n.jsxs(f,{gap:r,px:c,direction:"column",children:[o.map((i,p)=>l(i,p)),h.filter(i=>i.position==="top").map((i,p)=>l(i,p+o.length))]}),n.jsx(f,{gap:r,px:c,direction:"column",flex:1,className:"overflow-auto",children:h.filter(i=>!i.position).map((i,p)=>l(i,p))}),n.jsxs(f,{gap:r,px:c,direction:"column",children:[s.map((i,p)=>l(i,p)),h.filter(i=>i.position==="bottom").map((i,p)=>l(i,p+s.length))]})]})},fe=e=>{const{item:t,level:o}=e,s=2,d=_(),l=b.useCallback(h=>{if(!h.children)return!1;for(const i of h.children)if(i.href&&d.isActive(i.href)||l(i))return!0;return!1},[]),[a,c]=b.useState(l(t));if(ae({"react:transition:end":()=>{l(t)&&c(!0)}},[]),o>s)return null;const r=h=>{e.item.target||h.preventDefault(),t.children&&t.children.length>0?c(!a):(e.onItemClick?.(t),t.onClick?.())};return n.jsxs(f,{direction:"column",ps:o===0?0:32,pos:"relative",children:[n.jsx(I,{w:"100%",justify:"space-between",href:e.item.href,target:e.item.target,size:e.item.theme?.size??e.theme.button?.size??(o===0?"sm":"xs"),c:"var(--mantine-color-text)",color:"gray",variant:"subtle",variantActive:"default",radius:e.item.theme?.radius??e.theme.button?.radius??"md",onClick:r,leftSection:n.jsxs(f,{w:"100%",align:"center",gap:"sm",children:[k(t.icon),n.jsxs(f,{direction:"column",children:[n.jsx(f,{children:t.label}),t.description&&n.jsx(q,{size:"xs",c:"dimmed",children:t.description})]})]}),rightSection:t.children?n.jsx(f,{children:a?n.jsx(Le,{size:14}):n.jsx(De,{size:14})}):e.item.rightSection,...e.item.actionProps}),t.children&&a&&n.jsxs(f,{direction:"column","data-parent-level":o,children:[n.jsx(f,{style:{position:"absolute",width:1,background:"linear-gradient(to bottom, transparent, var(--alepha-border), transparent)",top:48,left:20+32*o,bottom:16}}),t.children.filter(h=>!h.can||h.can()).map((h,i)=>n.jsx(fe,{item:h,level:o+1,onItemClick:e.onItemClick,theme:e.theme},i))]})]})},Bt=e=>{const{item:t,level:o}=e,s=_(),d=b.useCallback(r=>{if(!r.children)return!1;for(const h of r.children)if(h.href&&s.isActive(h.href)||d(h))return!0;return!1},[]),[l,a]=b.useState(d(t)),c=r=>{e.item.target||r.preventDefault(),t.children&&t.children.length>0?a(!l):(e.onItemClick?.(t),t.onClick?.())};return n.jsx(I,{size:e.item.theme?.size??e.theme.button?.size??(o===0?"sm":"xs"),variant:"subtle",variantActive:"default",tooltip:t.children?void 0:{label:t.label,position:"right"},radius:e.item.theme?.radius??e.theme.button?.radius??"md",onClick:c,icon:k(t.icon)??n.jsx(Nt,{}),href:e.item.href,target:e.item.target,menu:t.children?{position:"right",on:"hover",items:t.children.filter(r=>!r.can||r.can()).map(r=>({label:r.label,href:r.href,icon:k(r.icon),children:r.children?.filter(h=>!h.can||h.can())}))}:void 0,...e.item.actionProps})},Pt=e=>{const t=_(),[o,s]=T("alepha.ui.sidebar.opened"),[d]=T("alepha.ui.sidebar.collapsed",e.sidebarProps?.collapsed),l=()=>{if(e.noSidebarWhen?.paths){for(const z of e.noSidebarWhen.paths)if(t.isActive(z,{startWith:!0}))return!1}return!0},[a,c]=b.useState(l());ae({"react:transition:end":()=>{c(l())},"react:transition:begin":()=>{s(!1)}},[]);const r=[{position:"left",type:"burger"}],h=a&&e.sidebarProps!==void 0,i=h||e.appBarProps||e.header,p=i?60:0,u=e.footer?24:0,V=h?d?78:300:0;return n.jsxs(g,{w:"100%",flex:1,padding:"md",header:i?{height:60}:void 0,navbar:h?{width:d?{base:78}:{base:300},breakpoint:"sm",collapsed:{mobile:!o}}:void 0,footer:e.footer?{height:24}:void 0,...e.appShellProps,children:[n.jsx(g.Header,{bg:j.colors.surface,...e.appShellHeaderProps,children:e.header??n.jsx(zt,{items:r,...e.appBarProps})}),h&&n.jsx(g.Navbar,{bg:j.colors.surface,...e.appShellNavbarProps,children:n.jsx(yt,{collapsed:d,...e.sidebarProps??{}})}),n.jsx(g.Main,{pl:V,pt:p,pb:u,pr:0,display:"flex",flex:1,style:{flexDirection:"column"},...e.appShellMainProps,children:e.children??n.jsx(le,{})}),e.footer&&n.jsx(g.Footer,{bg:j.colors.surface,...e.appShellFooterProps,children:e.footer})]})},Ot=()=>n.jsx(Pt,{appShellProps:{withBorder:!1,bg:j.colors.background},appShellNavbarProps:{bg:j.colors.transparent},appShellHeaderProps:{bg:j.colors.transparent,style:{backdropFilter:"blur(10px)"}},sidebarProps:{gap:"xs",collapsed:!0,menu:[{label:"Dashboard",icon:n.jsx(He,{}),href:"/"},{type:"divider"},{label:"Actions",icon:n.jsx($e,{}),href:"/actions"},{label:"Queues",icon:n.jsx(We,{}),href:"/queues"},{label:"Topics",icon:n.jsx(Oe,{}),href:"/topics"},{label:"Caches",icon:n.jsx(qe,{}),href:"/caches"},{label:"DB Studio",icon:n.jsx(Ke,{}),href:"/db"},{type:"divider"},{label:"Environment",icon:n.jsx(Xe,{}),href:"/env"},{label:"Atoms",icon:n.jsx(Qe,{}),href:"/atoms"},{type:"divider"},{label:"Graph",icon:n.jsx(Ge,{}),href:"/graph"},{label:"Logs",icon:n.jsx(Ue,{}),href:"/logs"}]},appBarProps:{items:[{position:"left",type:"burger"},{position:"left",element:n.jsx(I,{intent:"none",icon:et,href:"/",active:!1,children:"Devtools"})},{position:"center",element:n.jsx(Z,{})},{position:"right",element:n.jsx(ue,{})}]},children:n.jsx(f,{className:"overflow-auto",w:"100%",flex:1,direction:"column",bd:`1px solid ${j.colors.border}`,bg:j.colors.elevated,ml:-16,mr:-16,mt:-16,style:{borderTopLeftRadius:16},children:n.jsx(le,{})})});export{Ot as DevLayout,Ot as default};