@alepha/devtools 0.15.5 → 0.16.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.
- package/assets/devtools/actions.html +1 -1
- package/assets/devtools/actions.html.br +0 -0
- package/assets/devtools/actions.html.gz +0 -0
- package/assets/devtools/atoms.html +1 -1
- package/assets/devtools/atoms.html.br +0 -0
- package/assets/devtools/atoms.html.gz +0 -0
- package/assets/devtools/caches.html +1 -1
- package/assets/devtools/caches.html.br +0 -0
- package/assets/devtools/caches.html.gz +0 -0
- package/assets/devtools/{chunk.DB50RmbI.js → chunk.1h5GuATm.js} +1 -1
- package/assets/devtools/chunk.1h5GuATm.js.br +0 -0
- package/assets/devtools/chunk.1h5GuATm.js.gz +0 -0
- package/assets/devtools/{chunk.ByNKWOOW.js → chunk.3PgxxOdM.js} +1 -1
- package/assets/devtools/chunk.3PgxxOdM.js.br +0 -0
- package/assets/devtools/chunk.3PgxxOdM.js.gz +0 -0
- package/assets/devtools/{chunk.9UE-TDmM.js → chunk.A_W3H6Aa.js} +1 -1
- package/assets/devtools/chunk.A_W3H6Aa.js.br +0 -0
- package/assets/devtools/chunk.A_W3H6Aa.js.gz +0 -0
- package/assets/devtools/{chunk.C39_Jg92.js → chunk.B5tL0VjH.js} +1 -1
- package/assets/devtools/chunk.B5tL0VjH.js.br +0 -0
- package/assets/devtools/chunk.B5tL0VjH.js.gz +0 -0
- package/assets/devtools/{chunk.DQ4jfyFm.js → chunk.B8p_Szro.js} +1 -1
- package/assets/devtools/chunk.B8p_Szro.js.br +0 -0
- package/assets/devtools/chunk.B8p_Szro.js.gz +0 -0
- package/assets/devtools/{chunk.DTrbqH0C.js → chunk.BANy8c2v.js} +1 -1
- package/assets/devtools/chunk.BANy8c2v.js.br +0 -0
- package/assets/devtools/chunk.BANy8c2v.js.gz +0 -0
- package/assets/devtools/{chunk.Bb0FAZMv.js → chunk.BKph0hv1.js} +1 -1
- package/assets/devtools/chunk.BKph0hv1.js.br +0 -0
- package/assets/devtools/chunk.BKph0hv1.js.gz +0 -0
- package/assets/devtools/{chunk.C5vcO6ci.js → chunk.BUs1kuwE.js} +1 -1
- package/assets/devtools/chunk.BUs1kuwE.js.br +0 -0
- package/assets/devtools/chunk.BUs1kuwE.js.gz +0 -0
- package/assets/devtools/{chunk.CEMGNgR8.js → chunk.BVIEr21R.js} +1 -1
- package/assets/devtools/chunk.BVIEr21R.js.br +0 -0
- package/assets/devtools/chunk.BVIEr21R.js.gz +0 -0
- package/assets/devtools/{chunk.DYu2Kn_0.js → chunk.Bb3re2d8.js} +1 -1
- package/assets/devtools/chunk.Bb3re2d8.js.br +2 -0
- package/assets/devtools/chunk.Bb3re2d8.js.gz +0 -0
- package/assets/devtools/{chunk.D8Zx2d84.js → chunk.BkXzz14p.js} +1 -1
- package/assets/devtools/chunk.BkXzz14p.js.br +0 -0
- package/assets/devtools/chunk.BkXzz14p.js.gz +0 -0
- package/assets/devtools/{chunk.D9k-tvPV.js → chunk.BymZ9jU5.js} +1 -1
- package/assets/devtools/chunk.BymZ9jU5.js.br +0 -0
- package/assets/devtools/chunk.BymZ9jU5.js.gz +0 -0
- package/assets/devtools/{chunk.PvdrSA5J.js → chunk.C0BD3Ujz.js} +1 -1
- package/assets/devtools/chunk.C0BD3Ujz.js.br +0 -0
- package/assets/devtools/chunk.C0BD3Ujz.js.gz +0 -0
- package/assets/devtools/{chunk.DnocEn4r.js → chunk.C63rzhbT.js} +1 -1
- package/assets/devtools/chunk.C63rzhbT.js.br +0 -0
- package/assets/devtools/chunk.C63rzhbT.js.gz +0 -0
- package/assets/devtools/{chunk.B_3Bwa5b.js → chunk.CJrYVzjN.js} +1 -1
- package/assets/devtools/chunk.CJrYVzjN.js.br +0 -0
- package/assets/devtools/chunk.CJrYVzjN.js.gz +0 -0
- package/assets/devtools/{chunk.BJnTQtYx.js → chunk.CPGX3Xpx.js} +1 -1
- package/assets/devtools/chunk.CPGX3Xpx.js.br +1 -0
- package/assets/devtools/chunk.CPGX3Xpx.js.gz +0 -0
- package/assets/devtools/{chunk.BxbQjapd.js → chunk.Cf-3skUw.js} +1 -1
- package/assets/devtools/chunk.Cf-3skUw.js.br +0 -0
- package/assets/devtools/chunk.Cf-3skUw.js.gz +0 -0
- package/assets/devtools/{chunk.DAXSdsjw.js → chunk.D7JLxcoJ.js} +1 -1
- package/assets/devtools/chunk.D7JLxcoJ.js.br +0 -0
- package/assets/devtools/chunk.D7JLxcoJ.js.gz +0 -0
- package/assets/devtools/{chunk.CxlIm93S.js → chunk.D7e5mBY4.js} +1 -1
- package/assets/devtools/chunk.D7e5mBY4.js.br +0 -0
- package/assets/devtools/chunk.D7e5mBY4.js.gz +0 -0
- package/assets/devtools/{chunk.Bq3jHJWW.js → chunk.DClU9Z1_.js} +1 -1
- package/assets/devtools/chunk.DClU9Z1_.js.br +0 -0
- package/assets/devtools/chunk.DClU9Z1_.js.gz +0 -0
- package/assets/devtools/{chunk.U5tHwlLn.js → chunk.DE_M8b3Z.js} +1 -1
- package/assets/devtools/chunk.DE_M8b3Z.js.br +0 -0
- package/assets/devtools/chunk.DE_M8b3Z.js.gz +0 -0
- package/assets/devtools/{chunk.Dyhfd98M.js → chunk.DWASJDBE.js} +1 -1
- package/assets/devtools/chunk.DWASJDBE.js.br +0 -0
- package/assets/devtools/chunk.DWASJDBE.js.gz +0 -0
- package/assets/devtools/{chunk.DtqQCeAj.js → chunk.DfzRLqwW.js} +1 -1
- package/assets/devtools/chunk.DfzRLqwW.js.br +0 -0
- package/assets/devtools/chunk.DfzRLqwW.js.gz +0 -0
- package/assets/devtools/{chunk.CMs831K8.js → chunk.Dww1YQtc.js} +1 -1
- package/assets/devtools/chunk.Dww1YQtc.js.br +0 -0
- package/assets/devtools/chunk.Dww1YQtc.js.gz +0 -0
- package/assets/devtools/{chunk.BZ-MON9S.js → chunk.HFLdduaf.js} +1 -1
- package/assets/devtools/chunk.HFLdduaf.js.br +0 -0
- package/assets/devtools/chunk.HFLdduaf.js.gz +0 -0
- package/assets/devtools/{chunk.CVSnwZVj.js → chunk.J-htqECs.js} +1 -1
- package/assets/devtools/chunk.J-htqECs.js.br +2 -0
- package/assets/devtools/chunk.J-htqECs.js.gz +0 -0
- package/assets/devtools/{chunk.SkQJX15J.js → chunk.JjTGVewZ.js} +1 -1
- package/assets/devtools/chunk.JjTGVewZ.js.br +0 -0
- package/assets/devtools/chunk.JjTGVewZ.js.gz +0 -0
- package/assets/devtools/{chunk.Dzb_dhg1.js → chunk.OV_89czZ.js} +1 -1
- package/assets/devtools/chunk.OV_89czZ.js.br +0 -0
- package/assets/devtools/chunk.OV_89czZ.js.gz +0 -0
- package/assets/devtools/{chunk.l29gR4Ri.js → chunk.YFkMUqFM.js} +1 -1
- package/assets/devtools/chunk.YFkMUqFM.js.br +0 -0
- package/assets/devtools/chunk.YFkMUqFM.js.gz +0 -0
- package/assets/devtools/{chunk.DS3W-YAa.js → chunk._KdUFIrt.js} +1 -1
- package/assets/devtools/chunk._KdUFIrt.js.br +0 -0
- package/assets/devtools/chunk._KdUFIrt.js.gz +0 -0
- package/assets/devtools/{chunk.BHxnE1kV.js → chunk.pjP6xqG8.js} +1 -1
- package/assets/devtools/chunk.pjP6xqG8.js.br +0 -0
- package/assets/devtools/chunk.pjP6xqG8.js.gz +0 -0
- package/assets/devtools/{chunk.By_Dci-t.js → chunk.uTFtY0ae.js} +1 -1
- package/assets/devtools/chunk.uTFtY0ae.js.br +0 -0
- package/assets/devtools/chunk.uTFtY0ae.js.gz +0 -0
- package/assets/devtools/{chunk.DtreVhNu.js → chunk.vHjNjQS8.js} +1 -1
- package/assets/devtools/chunk.vHjNjQS8.js.br +0 -0
- package/assets/devtools/chunk.vHjNjQS8.js.gz +0 -0
- package/assets/devtools/db.html +1 -1
- package/assets/devtools/db.html.br +0 -0
- package/assets/devtools/db.html.gz +0 -0
- package/assets/devtools/{entry.ETzhI2TP.js → entry.DhzNl8q_.js} +21 -21
- package/assets/devtools/entry.DhzNl8q_.js.br +0 -0
- package/assets/devtools/entry.DhzNl8q_.js.gz +0 -0
- package/assets/devtools/env.html +1 -1
- package/assets/devtools/env.html.br +0 -0
- package/assets/devtools/env.html.gz +0 -0
- package/assets/devtools/graph.html +1 -1
- package/assets/devtools/graph.html.br +0 -0
- package/assets/devtools/graph.html.gz +0 -0
- package/assets/devtools/index.html +1 -1
- package/assets/devtools/index.html.br +0 -0
- package/assets/devtools/index.html.gz +0 -0
- package/assets/devtools/logs.html +1 -1
- package/assets/devtools/logs.html.br +0 -0
- package/assets/devtools/logs.html.gz +0 -0
- package/assets/devtools/queues.html +1 -1
- package/assets/devtools/queues.html.br +0 -0
- package/assets/devtools/queues.html.gz +0 -0
- package/assets/devtools/topics.html +1 -1
- package/assets/devtools/topics.html.br +0 -0
- package/assets/devtools/topics.html.gz +0 -0
- package/package.json +7 -7
- package/assets/devtools/chunk.9UE-TDmM.js.br +0 -0
- package/assets/devtools/chunk.9UE-TDmM.js.gz +0 -0
- package/assets/devtools/chunk.BHxnE1kV.js.br +0 -0
- package/assets/devtools/chunk.BHxnE1kV.js.gz +0 -0
- package/assets/devtools/chunk.BJnTQtYx.js.br +0 -2
- package/assets/devtools/chunk.BJnTQtYx.js.gz +0 -0
- package/assets/devtools/chunk.BZ-MON9S.js.br +0 -0
- package/assets/devtools/chunk.BZ-MON9S.js.gz +0 -0
- package/assets/devtools/chunk.B_3Bwa5b.js.br +0 -0
- package/assets/devtools/chunk.B_3Bwa5b.js.gz +0 -0
- package/assets/devtools/chunk.Bb0FAZMv.js.br +0 -0
- package/assets/devtools/chunk.Bb0FAZMv.js.gz +0 -0
- package/assets/devtools/chunk.Bq3jHJWW.js.br +0 -0
- package/assets/devtools/chunk.Bq3jHJWW.js.gz +0 -0
- package/assets/devtools/chunk.BxbQjapd.js.br +0 -0
- package/assets/devtools/chunk.BxbQjapd.js.gz +0 -0
- package/assets/devtools/chunk.ByNKWOOW.js.br +0 -0
- package/assets/devtools/chunk.ByNKWOOW.js.gz +0 -0
- package/assets/devtools/chunk.By_Dci-t.js.br +0 -0
- package/assets/devtools/chunk.By_Dci-t.js.gz +0 -0
- package/assets/devtools/chunk.C39_Jg92.js.br +0 -0
- package/assets/devtools/chunk.C39_Jg92.js.gz +0 -0
- package/assets/devtools/chunk.C5vcO6ci.js.br +0 -0
- package/assets/devtools/chunk.C5vcO6ci.js.gz +0 -0
- package/assets/devtools/chunk.CEMGNgR8.js.br +0 -0
- package/assets/devtools/chunk.CEMGNgR8.js.gz +0 -0
- package/assets/devtools/chunk.CMs831K8.js.br +0 -0
- package/assets/devtools/chunk.CMs831K8.js.gz +0 -0
- package/assets/devtools/chunk.CVSnwZVj.js.br +0 -0
- package/assets/devtools/chunk.CVSnwZVj.js.gz +0 -0
- package/assets/devtools/chunk.CxlIm93S.js.br +0 -0
- package/assets/devtools/chunk.CxlIm93S.js.gz +0 -0
- package/assets/devtools/chunk.D8Zx2d84.js.br +0 -0
- package/assets/devtools/chunk.D8Zx2d84.js.gz +0 -0
- package/assets/devtools/chunk.D9k-tvPV.js.br +0 -0
- package/assets/devtools/chunk.D9k-tvPV.js.gz +0 -0
- package/assets/devtools/chunk.DAXSdsjw.js.br +0 -0
- package/assets/devtools/chunk.DAXSdsjw.js.gz +0 -0
- package/assets/devtools/chunk.DB50RmbI.js.br +0 -0
- package/assets/devtools/chunk.DB50RmbI.js.gz +0 -0
- package/assets/devtools/chunk.DQ4jfyFm.js.br +0 -0
- package/assets/devtools/chunk.DQ4jfyFm.js.gz +0 -0
- package/assets/devtools/chunk.DS3W-YAa.js.br +0 -0
- package/assets/devtools/chunk.DS3W-YAa.js.gz +0 -0
- package/assets/devtools/chunk.DTrbqH0C.js.br +0 -0
- package/assets/devtools/chunk.DTrbqH0C.js.gz +0 -0
- package/assets/devtools/chunk.DYu2Kn_0.js.br +0 -0
- package/assets/devtools/chunk.DYu2Kn_0.js.gz +0 -0
- package/assets/devtools/chunk.DnocEn4r.js.br +0 -0
- package/assets/devtools/chunk.DnocEn4r.js.gz +0 -0
- package/assets/devtools/chunk.DtqQCeAj.js.br +0 -1
- package/assets/devtools/chunk.DtqQCeAj.js.gz +0 -0
- package/assets/devtools/chunk.DtreVhNu.js.br +0 -0
- package/assets/devtools/chunk.DtreVhNu.js.gz +0 -0
- package/assets/devtools/chunk.Dyhfd98M.js.br +0 -0
- package/assets/devtools/chunk.Dyhfd98M.js.gz +0 -0
- package/assets/devtools/chunk.Dzb_dhg1.js.br +0 -0
- package/assets/devtools/chunk.Dzb_dhg1.js.gz +0 -0
- package/assets/devtools/chunk.PvdrSA5J.js.br +0 -0
- package/assets/devtools/chunk.PvdrSA5J.js.gz +0 -0
- package/assets/devtools/chunk.SkQJX15J.js.br +0 -0
- package/assets/devtools/chunk.SkQJX15J.js.gz +0 -0
- package/assets/devtools/chunk.U5tHwlLn.js.br +0 -0
- package/assets/devtools/chunk.U5tHwlLn.js.gz +0 -0
- package/assets/devtools/chunk.l29gR4Ri.js.br +0 -0
- package/assets/devtools/chunk.l29gR4Ri.js.gz +0 -0
- package/assets/devtools/entry.ETzhI2TP.js.br +0 -0
- package/assets/devtools/entry.ETzhI2TP.js.gz +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head><meta charset="UTF-8">
|
|
4
4
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
5
5
|
<link rel="stylesheet" href="/devtools/asset.BJSLFcNT.css" crossorigin="">
|
|
6
|
-
<script type="module" crossorigin="" src="/devtools/entry.
|
|
6
|
+
<script type="module" crossorigin="" src="/devtools/entry.DhzNl8q_.js"></script>
|
|
7
7
|
</head>
|
|
8
8
|
<body>
|
|
9
9
|
<div id="root"><script data-mantine-script="true">try {
|
|
Binary file
|
|
Binary file
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head><meta charset="UTF-8">
|
|
4
4
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
5
5
|
<link rel="stylesheet" href="/devtools/asset.BJSLFcNT.css" crossorigin="">
|
|
6
|
-
<script type="module" crossorigin="" src="/devtools/entry.
|
|
6
|
+
<script type="module" crossorigin="" src="/devtools/entry.DhzNl8q_.js"></script>
|
|
7
7
|
</head>
|
|
8
8
|
<body>
|
|
9
9
|
<div id="root"><script data-mantine-script="true">try {
|
|
Binary file
|
|
Binary file
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head><meta charset="UTF-8">
|
|
4
4
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
5
5
|
<link rel="stylesheet" href="/devtools/asset.BJSLFcNT.css" crossorigin="">
|
|
6
|
-
<script type="module" crossorigin="" src="/devtools/entry.
|
|
6
|
+
<script type="module" crossorigin="" src="/devtools/entry.DhzNl8q_.js"></script>
|
|
7
7
|
</head>
|
|
8
8
|
<body>
|
|
9
9
|
<div id="root"><script data-mantine-script="true">try {
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as T,a5 as J,a6 as R,r as u,j as e,F as m,T as o,B as j,N as f,Z as z,ah as C,E as B,af as k,ag as D,ac as I,a8 as A,ai as M}from"./entry.
|
|
1
|
+
import{y as T,a5 as J,a6 as R,r as u,j as e,F as m,T as o,B as j,N as f,Z as z,ah as C,E as B,af as k,ag as D,ac as I,a8 as A,ai as M}from"./entry.DhzNl8q_.js";import{J as w}from"./chunk.DClU9Z1_.js";import{d as O}from"./chunk.J-htqECs.js";import{S as y,B as E}from"./chunk.BVIEr21R.js";import{T as b}from"./chunk.OV_89czZ.js";import{S as N,I as L,N as F}from"./chunk.CJrYVzjN.js";import{T as $}from"./chunk.BKph0hv1.js";import"./chunk.BlqFPyLh.js";import"./chunk.C63rzhbT.js";import"./chunk.BjFrJKj1.js";import"./chunk.Dww1YQtc.js";import"./chunk.uyVen0u2.js";const _=[["path",{d:"M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2",key:"svg-0"}],["path",{d:"M10 14a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M14 4l0 4l-6 0l0 -4",key:"svg-2"}]],P=T("outline","device-floppy","DeviceFloppy",_);const H=[["path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1",key:"svg-0"}],["path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415",key:"svg-1"}],["path",{d:"M16 5l3 3",key:"svg-2"}]],U=T("outline","edit","Edit",H),X=({atoms:t,selectedAtom:n,onSelectAtom:i,search:x,onSearchChange:l})=>e.jsxs(y,{gap:0,h:"100%",children:[e.jsx(j,{p:"sm",style:{borderBottom:`1px solid ${f.colors.border}`},children:e.jsx(C,{placeholder:"Search atoms...",leftSection:e.jsx(B,{size:14}),size:"xs",value:x,onChange:r=>l(r.target.value)})}),e.jsx(k,{style:{flex:1},children:e.jsxs(j,{children:[e.jsxs(o,{size:"xs",fw:600,c:"dimmed",px:"sm",py:"xs",style:{backgroundColor:f.colors.background,borderBottom:`1px solid ${f.colors.border}`,textTransform:"uppercase",letterSpacing:"0.05em"},children:["Atoms (",t.length,")"]}),t.map(r=>{const h=n?.name===r.name,s=r.currentValue!==void 0;return e.jsxs(m,{align:"center",gap:"xs",px:"sm",py:6,onClick:()=>i(r),style:{cursor:"pointer",backgroundColor:h?"#228be615":void 0,borderLeft:h?"2px solid #228be6":"2px solid transparent",borderBottom:`1px solid ${f.colors.border}`},children:[e.jsx(z,{size:14,opacity:.5}),e.jsx(o,{size:"sm",style:{flex:1},truncate:!0,children:r.name}),s&&e.jsx(E,{size:"xs",variant:"light",color:"green",children:"set"})]},r.name)})]})})]}),V=({schema:t,value:n,onChange:i,path:x=""})=>{if(!t)return null;let l=t;if(t.anyOf){const s=t.anyOf.find(c=>c.type!=="null");s&&(l=s)}const r=l.type,h=l.format;if(r==="object"&&l.properties)return e.jsx(y,{gap:"sm",children:Object.entries(l.properties).map(([s,c])=>e.jsxs(j,{children:[e.jsxs(o,{size:"sm",fw:500,mb:4,children:[c.title||s,c.description&&e.jsx(o,{span:!0,size:"xs",c:"dimmed",ml:"xs",children:c.description})]}),e.jsx(V,{schema:c,value:n?.[s],onChange:d=>i({...n,[s]:d}),path:x?`${x}.${s}`:s})]},s))});if(r==="array"){const s=n??[];return e.jsxs(y,{gap:"xs",children:[s.map((c,d)=>e.jsxs(m,{gap:"xs",align:"center",children:[e.jsx(j,{style:{flex:1},children:e.jsx(V,{schema:l.items,value:c,onChange:g=>{const v=[...s];v[d]=g,i(v)},path:`${x}[${d}]`})}),e.jsx(I,{size:"sm",variant:"light",color:"red",onClick:()=>{const g=s.filter((v,p)=>p!==d);i(g)},children:e.jsx(M,{size:14})})]},d)),e.jsx(A,{size:"xs",variant:"light",onClick:()=>i([...s,void 0]),children:"Add item"})]})}return r==="boolean"?e.jsx(N,{checked:n??!1,onChange:s=>i(s.currentTarget.checked)}):r==="number"||r==="integer"?e.jsx(F,{size:"sm",value:n??"",onChange:s=>i(s===""?void 0:s),allowDecimal:r==="number"}):l.enum?e.jsxs("select",{value:n??"",onChange:s=>i(s.target.value||void 0),style:{padding:"6px 10px",borderRadius:4,border:`1px solid ${f.colors.border}`,backgroundColor:f.colors.surface,width:"100%"},children:[e.jsx("option",{value:"",children:"Select..."}),l.enum.map(s=>e.jsx("option",{value:s,children:s},s))]}):h==="date"||h==="date-time"?e.jsx(C,{size:"sm",type:h==="date"?"date":"datetime-local",value:n??"",onChange:s=>i(s.target.value||void 0)}):h==="textarea"||l.multiline?e.jsx($,{size:"sm",value:n??"",onChange:s=>i(s.target.value||void 0),autosize:!0,minRows:2,maxRows:6}):e.jsx(C,{size:"sm",value:n??"",onChange:s=>i(s.target.value||void 0)})},Z=({atom:t})=>e.jsx(k,{h:"100%",p:"md",children:e.jsxs(y,{gap:"lg",children:[t.description&&e.jsxs(j,{children:[e.jsx(o,{size:"sm",fw:600,mb:"xs",children:"Description"}),e.jsx(o,{size:"sm",c:"dimmed",children:t.description})]}),e.jsxs(j,{children:[e.jsx(o,{size:"sm",fw:600,mb:"xs",children:"Current Value"}),t.currentValue!==void 0?e.jsx(w,{data:t.currentValue,maxDepth:3}):e.jsx(o,{size:"sm",c:"dimmed",fs:"italic",children:"(not set - using default)"})]}),e.jsxs(j,{children:[e.jsx(o,{size:"sm",fw:600,mb:"xs",children:"Default Value"}),t.defaultValue!==void 0?e.jsx(w,{data:t.defaultValue,maxDepth:3}):e.jsx(o,{size:"sm",c:"dimmed",fs:"italic",children:"(no default)"})]}),e.jsxs(j,{children:[e.jsx(o,{size:"sm",fw:600,mb:"xs",children:"Schema"}),e.jsx(w,{data:t.schema,maxDepth:2})]})]})}),q=({atom:t,onSave:n})=>{const[i,x]=u.useState(t.currentValue??t.defaultValue),[l,r]=u.useState(!1),[h,s]=u.useState(""),[c,d]=u.useState(null);u.useEffect(()=>{const a=t.currentValue??t.defaultValue;x(a),s(JSON.stringify(a,null,2)),d(null)},[t]);const g=a=>{s(a);try{const S=JSON.parse(a);x(S),d(null)}catch{d("Invalid JSON")}},v=()=>{n(i)},p=()=>{const a=t.defaultValue;x(a),s(JSON.stringify(a,null,2)),d(null)};return e.jsxs(m,{direction:"column",h:"100%",children:[e.jsx(j,{p:"sm",style:{borderBottom:`1px solid ${f.colors.border}`},children:e.jsxs(m,{align:"center",justify:"space-between",children:[e.jsx(m,{gap:"xs",align:"center",children:e.jsx(N,{size:"xs",label:"JSON mode",checked:l,onChange:a=>r(a.currentTarget.checked)})}),e.jsxs(m,{gap:"xs",children:[e.jsx(D,{label:"Reset to default",children:e.jsx(I,{size:"sm",variant:"light",color:"gray",onClick:p,children:e.jsx(L,{size:14})})}),e.jsx(A,{size:"xs",leftSection:e.jsx(P,{size:14}),onClick:v,disabled:l&&!!c,children:"Save"})]})]})}),e.jsx(k,{style:{flex:1},p:"md",children:l?e.jsxs(y,{gap:"xs",children:[e.jsx($,{value:h,onChange:a=>g(a.target.value),autosize:!0,minRows:10,maxRows:20,error:c,styles:{input:{fontFamily:"monospace"}}}),c&&e.jsx(o,{size:"xs",c:"red",children:c})]}):e.jsx(V,{schema:t.schema,value:i,onChange:x})})]})},G=({atom:t,onSave:n})=>{const i=t.currentValue!==void 0;return e.jsxs(m,{direction:"column",h:"100%",children:[e.jsx(j,{px:"md",py:"sm",style:{borderBottom:`1px solid ${f.colors.border}`,backgroundColor:"#228be608"},children:e.jsxs(m,{align:"center",gap:"sm",children:[e.jsx(z,{size:18,opacity:.7}),e.jsx(o,{size:"md",fw:600,children:t.name}),e.jsx(E,{size:"xs",variant:"light",color:i?"green":"gray",children:i?"has value":"default"})]})}),e.jsxs(b,{defaultValue:"info",style:{flex:1,display:"flex",flexDirection:"column"},children:[e.jsxs(b.List,{px:"md",children:[e.jsx(b.Tab,{value:"info",children:"Info"}),e.jsx(b.Tab,{value:"edit",leftSection:e.jsx(U,{size:14}),children:"Edit"})]}),e.jsx(b.Panel,{value:"info",style:{flex:1,overflow:"hidden"},children:e.jsx(Z,{atom:t})}),e.jsx(b.Panel,{value:"edit",style:{flex:1,overflow:"hidden"},children:e.jsx(q,{atom:t,onSave:x=>n(t,x)})})]})]})},K=()=>e.jsx(m,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(y,{align:"center",gap:"xs",children:[e.jsx(z,{size:48,opacity:.3}),e.jsx(o,{size:"sm",children:"Select an atom to view its details"})]})}),Q=()=>e.jsx(m,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(y,{align:"center",gap:"xs",children:[e.jsx(z,{size:48,opacity:.3}),e.jsx(o,{children:"No atoms found"}),e.jsx(o,{size:"sm",c:"dimmed",children:"Use $atom primitive to define state atoms"})]})}),de=()=>{const t=J(R),[n,i]=u.useState([]),[x,l]=u.useState(!0),[r,h]=u.useState(null),[s,c]=u.useState(""),d=u.useCallback(()=>{t.fetch("/devtools/api/metadata",{schema:{response:O}}).then(p=>{if(i(p.data.atoms),l(!1),r){const a=p.data.atoms.find(S=>S.name===r.name);a&&h(a)}})},[r?.name]);u.useEffect(()=>{d()},[]);const g=u.useMemo(()=>{if(!s)return n;const p=s.toLowerCase();return n.filter(a=>a.name.toLowerCase().includes(p))},[n,s]),v=u.useCallback(async(p,a)=>{try{await t.fetch("/devtools/api/atoms",{method:"POST",body:JSON.stringify({name:p.name,value:a})}),d()}catch(S){console.error("Failed to save atom:",S)}},[d]);return x?e.jsx(m,{align:"center",justify:"center",h:"100%",children:e.jsx(o,{c:"dimmed",children:"Loading..."})}):n.length===0?e.jsx(Q,{}):e.jsxs(m,{h:"100%",style:{overflow:"hidden"},children:[e.jsx(j,{w:260,style:{borderRight:`1px solid ${f.colors.border}`,backgroundColor:f.colors.surface},children:e.jsx(X,{atoms:g,selectedAtom:r,onSelectAtom:h,search:s,onSearchChange:c})}),e.jsx(j,{style:{flex:1,overflow:"hidden"},children:r?e.jsx(G,{atom:r,onSave:v}):e.jsx(K,{})})]})};export{de as DevAtomsViewer,de as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as M,f as w,d as B,j as a,B as N,o as P,af as Q,t as $,g as C,w as x,h as O}from"./entry.
|
|
1
|
+
import{c as M,f as w,d as B,j as a,B as N,o as P,af as Q,t as $,g as C,w as x,h as O}from"./entry.DhzNl8q_.js";const[X,Y]=M("Table component was not found in the tree");var f={table:"m_b23fa0ef",th:"m_4e7aa4f3",tr:"m_4e7aa4fd",td:"m_4e7aa4ef",tbody:"m_b2404537",thead:"m_b242d975",caption:"m_9e5a3ac7",scrollContainer:"m_a100c15",scrollContainerInner:"m_62259741"};function Z(e,r){if(!r)return;const t={};return r.columnBorder&&e.withColumnBorders&&(t["data-with-column-border"]=!0),r.rowBorder&&e.withRowBorders&&(t["data-with-row-border"]=!0),r.striped&&e.striped&&(t["data-striped"]=e.striped),r.highlightOnHover&&e.highlightOnHover&&(t["data-hover"]=!0),r.captionSide&&e.captionSide&&(t["data-side"]=e.captionSide),r.stickyHeader&&e.stickyHeader&&(t["data-sticky"]=!0),t}function b(e,r){const t=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,o=w((l,i)=>{const n=B(t,{},l),{classNames:c,className:d,style:m,styles:u,...h}=n,p=Y();return a.jsx(N,{component:e,ref:i,...Z(p,r),...p.getStyles(e,{className:d,classNames:c,style:m,styles:u,props:n}),...h})});return o.displayName=`@mantine/core/${t}`,o.classes=f,o}const j=b("th",{columnBorder:!0}),A=b("td",{columnBorder:!0}),v=b("tr",{rowBorder:!0,striped:!0,highlightOnHover:!0}),D=b("thead",{stickyHeader:!0}),z=b("tbody"),E=b("tfoot"),I=b("caption",{captionSide:!0});function R({data:e}){return a.jsxs(a.Fragment,{children:[e.caption&&a.jsx(I,{children:e.caption}),e.head&&a.jsx(D,{children:a.jsx(v,{children:e.head.map((r,t)=>a.jsx(j,{children:r},t))})}),e.body&&a.jsx(z,{children:e.body.map((r,t)=>a.jsx(v,{children:r.map((o,l)=>a.jsx(A,{children:o},l))},t))}),e.foot&&a.jsx(E,{children:a.jsx(v,{children:e.foot.map((r,t)=>a.jsx(j,{children:r},t))})})]})}R.displayName="@mantine/core/TableDataRenderer";const ee={type:"scrollarea"},te=$((e,{minWidth:r,maxHeight:t,type:o})=>({scrollContainer:{"--table-min-width":C(r),"--table-max-height":C(t),"--table-overflow":o==="native"?"auto":void 0}})),H=w((e,r)=>{const t=B("TableScrollContainer",ee,e),{classNames:o,className:l,style:i,styles:n,unstyled:c,vars:d,children:m,minWidth:u,maxHeight:h,type:p,scrollAreaProps:g,attributes:T,...S}=t,y=P({name:"TableScrollContainer",classes:f,props:t,className:l,style:i,classNames:o,styles:n,unstyled:c,attributes:T,vars:d,varsResolver:te,rootSelector:"scrollContainer"});return a.jsx(N,{component:p==="scrollarea"?Q:"div",...p==="scrollarea"?h?{offsetScrollbars:"xy",...g}:{offsetScrollbars:"x",...g}:{},ref:r,...y("scrollContainer"),...S,children:a.jsx("div",{...y("scrollContainerInner"),children:m})})});H.classes=f;H.displayName="@mantine/core/TableScrollContainer";const re={withRowBorders:!0,verticalSpacing:7},ae=$((e,{layout:r,captionSide:t,horizontalSpacing:o,verticalSpacing:l,borderColor:i,stripedColor:n,highlightOnHoverColor:c,striped:d,highlightOnHover:m,stickyHeaderOffset:u,stickyHeader:h})=>({table:{"--table-layout":r,"--table-caption-side":t,"--table-horizontal-spacing":O(o),"--table-vertical-spacing":O(l),"--table-border-color":i?x(i,e):void 0,"--table-striped-color":d&&n?x(n,e):void 0,"--table-highlight-on-hover-color":m&&c?x(c,e):void 0,"--table-sticky-header-offset":h?C(u):void 0}})),s=w((e,r)=>{const t=B("Table",re,e),{classNames:o,className:l,style:i,styles:n,unstyled:c,vars:d,horizontalSpacing:m,verticalSpacing:u,captionSide:h,stripedColor:p,highlightOnHoverColor:g,striped:T,highlightOnHover:S,withColumnBorders:y,withRowBorders:F,withTableBorder:U,borderColor:oe,layout:se,variant:V,data:_,children:W,stickyHeader:q,stickyHeaderOffset:le,mod:G,tabularNums:J,attributes:K,...L}=t,k=P({name:"Table",props:t,className:l,style:i,classes:f,classNames:o,styles:n,unstyled:c,attributes:K,rootSelector:"table",vars:d,varsResolver:ae});return a.jsx(X,{value:{getStyles:k,stickyHeader:q,striped:T===!0?"odd":T||void 0,highlightOnHover:S,withColumnBorders:y,withRowBorders:F,captionSide:h||"bottom"},children:a.jsx(N,{component:"table",variant:V,ref:r,mod:[{"data-with-table-border":U,"data-tabular-nums":J},G],...k("table"),...L,children:W||!!_&&a.jsx(R,{data:_})})})});s.classes=f;s.displayName="@mantine/core/Table";s.Td=A;s.Th=j;s.Tr=v;s.Thead=D;s.Tbody=z;s.Tfoot=E;s.Caption=I;s.ScrollContainer=H;s.DataRenderer=R;export{s as T};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ax as Me,r as y,aO as De,A as je,a5 as ke,b7 as Ie,aM as te,p as z,d as M,j as r,T as Ae,e as Pe,c as Te,f as B,B as se,aj as K,aA as Ne,l as H,al as re,b8 as ie,U as ae,b9 as Ee,q as Le,ba as Fe,o as Oe,a2 as Re,az as _e,a3 as Be,bb as Ke,z as q,b1 as Ve,N as $e,F as ne,ag as ze,a8 as L,L as He,ad as qe}from"./entry.ETzhI2TP.js";import{T as ce}from"./chunk.DtqQCeAj.js";import{f as Ue,c as le}from"./chunk.BlqFPyLh.js";import{P as F,u as de}from"./chunk.C5vcO6ci.js";import{A as Ge}from"./chunk.BZ-MON9S.js";const ue=(n,o=["loading","dirty","error"])=>{const t=Me(),s=o,[a,i]=y.useState(!1),[e,c]=y.useState(!1),[l,u]=y.useState(void 0),[m,v]=y.useState(void 0),h="form"in n?n.form:n,f="path"in n?n.path:void 0,w=s.includes("values"),d=s.includes("error"),g=s.includes("dirty"),b=s.includes("loading");return y.useEffect(()=>{const S=[];return(d||w||g)&&S.push(t.events.on("form:change",p=>{p.id===h.id&&((!f||p.path===f)&&(g&&i(!0),d&&u(void 0)),w&&v(h.currentValues))})),w&&S.push(t.events.on("form:reset",p=>{p.id===h.id&&v(p.values)})),b&&S.push(t.events.on("form:submit:begin",p=>{p.id===h.id&&c(!0)}),t.events.on("form:submit:end",p=>{p.id===h.id&&c(!1)})),(w||g)&&S.push(t.events.on("form:submit:success",p=>{p.id===h.id&&(w&&v(p.values),g&&i(!1))})),d&&S.push(t.events.on("form:submit:error",p=>{p.id===h.id&&(!f||p.error instanceof De&&p.error.value.path===f)&&u(p.error)})),()=>{for(const p of S)p()}},[]),{dirty:a,loading:e,error:l,values:m}},pt=()=>(je("alepha.react.i18n.lang"),ke(Ie));function C(n,o){return t=>{n?.(t),o?.(t)}}function We(n,o){return n in o?te(o[n]):te(n)}function vt(n,o){const t=n.map(s=>({value:s,px:We(s,o)}));return t.sort((s,a)=>s.px-a.px),t}function Je(n,o,t){return t?Array.from(Ue(t,o)?.querySelectorAll(n)||[]).findIndex(s=>s===t):null}function Qe(n=!1,o={}){const[t,s]=y.useState(n),a=y.useCallback(()=>{s(c=>c||(o.onOpen?.(),!0))},[o.onOpen]),i=y.useCallback(()=>{s(c=>c&&(o.onClose?.(),!1))},[o.onClose]),e=y.useCallback(()=>{t?i():a()},[i,a,t]);return[t,{open:a,close:i,toggle:e}]}function me({open:n,close:o,openDelay:t,closeDelay:s}){const a=y.useRef(-1),i=y.useRef(-1),e=()=>{window.clearTimeout(a.current),window.clearTimeout(i.current)},c=()=>{e(),t===0||t===void 0?n():a.current=window.setTimeout(n,t)},l=()=>{e(),s===0||s===void 0?o():i.current=window.setTimeout(o,s)};return y.useEffect(()=>e,[]),{openDropdown:c,closeDropdown:l}}var he={root:"m_849cf0da"};const Xe={underline:"hover"},U=z((n,o)=>{const{underline:t,className:s,unstyled:a,mod:i,...e}=M("Anchor",Xe,n);return r.jsx(Ae,{component:"a",ref:o,className:Pe({[he.root]:!a},s),...e,mod:[{underline:t},i],__staticSelector:"Anchor",unstyled:a})});U.classes=he;U.displayName="@mantine/core/Anchor";const[Ye,k]=Te("Menu component was not found in the tree");var I={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const G=B((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,...c}=M("MenuDivider",null,n),l=k();return r.jsx(se,{ref:o,...l.getStyles("divider",{className:s,style:a,styles:i,classNames:t}),...c})});G.classes=I;G.displayName="@mantine/core/MenuDivider";const W=B((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,onMouseEnter:c,onMouseLeave:l,onKeyDown:u,children:m,...v}=M("MenuDropdown",null,n),h=y.useRef(null),f=k(),w=C(u,b=>{(b.key==="ArrowUp"||b.key==="ArrowDown")&&(b.preventDefault(),h.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),d=C(c,()=>(f.trigger==="hover"||f.trigger==="click-hover")&&f.openDropdown()),g=C(l,()=>(f.trigger==="hover"||f.trigger==="click-hover")&&f.closeDropdown());return r.jsxs(F.Dropdown,{...v,onMouseEnter:d,onMouseLeave:g,role:"menu","aria-orientation":"vertical",ref:K(o,h),...f.getStyles("dropdown",{className:s,style:a,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:w,children:[f.withInitialFocusPlaceholder&&r.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),m]})});W.classes=I;W.displayName="@mantine/core/MenuDropdown";const[Ze,V]=Ne(),J=z((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,color:c,closeMenuOnClick:l,leftSection:u,rightSection:m,children:v,disabled:h,"data-disabled":f,...w}=M("MenuItem",null,n),d=k(),g=V(),b=H(),{dir:S}=re(),p=y.useRef(null),D=w,A=C(D.onClick,()=>{f||(typeof l=="boolean"?l&&d.closeDropdownImmediately():d.closeOnItemClick&&d.closeDropdownImmediately())}),j=c?b.variantColorResolver({color:c,theme:b,variant:"light"}):void 0,P=c?ie({color:c,theme:b}):null,R=C(D.onKeyDown,T=>{T.key==="ArrowLeft"&&g&&(g.close(),g.focusParentItem())});return r.jsxs(ae,{onMouseDown:T=>T.preventDefault(),...w,unstyled:d.unstyled,tabIndex:d.menuItemTabIndex,...d.getStyles("item",{className:s,style:a,styles:i,classNames:t}),ref:K(p,o),role:"menuitem",disabled:h,"data-menu-item":!0,"data-disabled":h||f||void 0,"data-mantine-stop-propagation":!0,onClick:A,onKeyDown:le({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:d.loop,dir:S,orientation:"vertical",onKeyDown:R}),__vars:{"--menu-item-color":P?.isThemeColor&&P?.shade===void 0?`var(--mantine-color-${P.color}-6)`:j?.color,"--menu-item-hover":j?.hover},children:[u&&r.jsx("div",{...d.getStyles("itemSection",{styles:i,classNames:t}),"data-position":"left",children:u}),v&&r.jsx("div",{...d.getStyles("itemLabel",{styles:i,classNames:t}),children:v}),m&&r.jsx("div",{...d.getStyles("itemSection",{styles:i,classNames:t}),"data-position":"right",children:m})]})});J.classes=I;J.displayName="@mantine/core/MenuItem";const Q=B((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,...c}=M("MenuLabel",null,n),l=k();return r.jsx(se,{ref:o,...l.getStyles("label",{className:s,style:a,styles:i,classNames:t}),...c})});Q.classes=I;Q.displayName="@mantine/core/MenuLabel";const X=B((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,onMouseEnter:c,onMouseLeave:l,onKeyDown:u,children:m,...v}=M("MenuSubDropdown",null,n),h=y.useRef(null),f=k(),w=V(),d=C(c,w?.open),g=C(l,w?.close);return r.jsx(F.Dropdown,{...v,onMouseEnter:d,onMouseLeave:g,role:"menu","aria-orientation":"vertical",ref:K(o,h),...f.getStyles("dropdown",{className:s,style:a,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:m})});X.classes=I;X.displayName="@mantine/core/MenuSubDropdown";const Y=z((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,color:c,leftSection:l,rightSection:u,children:m,disabled:v,"data-disabled":h,closeMenuOnClick:f,...w}=M("MenuSubItem",null,n),d=k(),g=V(),b=H(),{dir:S}=re(),p=y.useRef(null),D=w,A=c?b.variantColorResolver({color:c,theme:b,variant:"light"}):void 0,j=c?ie({color:c,theme:b}):null,P=C(D.onKeyDown,E=>{E.key==="ArrowRight"&&(g?.open(),g?.focusFirstItem()),E.key==="ArrowLeft"&&g?.parentContext&&(g.parentContext.close(),g.parentContext.focusParentItem())}),R=C(D.onClick,()=>{!h&&f&&d.closeDropdownImmediately()}),T=C(D.onMouseEnter,g?.open),N=C(D.onMouseLeave,g?.close);return r.jsxs(ae,{onMouseDown:E=>E.preventDefault(),...w,unstyled:d.unstyled,tabIndex:d.menuItemTabIndex,...d.getStyles("item",{className:s,style:a,styles:i,classNames:t}),ref:K(p,o),role:"menuitem",disabled:v,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":v||h||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:T,onMouseLeave:N,onClick:R,onKeyDown:le({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:d.loop,dir:S,orientation:"vertical",onKeyDown:P}),__vars:{"--menu-item-color":j?.isThemeColor&&j?.shade===void 0?`var(--mantine-color-${j.color}-6)`:A?.color,"--menu-item-hover":A?.hover},children:[l&&r.jsx("div",{...d.getStyles("itemSection",{styles:i,classNames:t}),"data-position":"left",children:l}),m&&r.jsx("div",{...d.getStyles("itemLabel",{styles:i,classNames:t}),children:m}),r.jsx("div",{...d.getStyles("itemSection",{styles:i,classNames:t}),"data-position":"right",children:u||r.jsx(Ge,{...d.getStyles("chevron"),size:14})})]})});Y.classes=I;Y.displayName="@mantine/core/MenuSubItem";function fe({children:n,refProp:o}){if(!Ee(n))throw new Error("Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return k(),r.jsx(F.Target,{refProp:o,popupType:"menu",children:n})}fe.displayName="@mantine/core/MenuSubTarget";const et={offset:0,position:"right-start",transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function O(n){const{children:o,closeDelay:t,openDelay:s,...a}=M("MenuSub",et,n),i=Le(),[e,{open:c,close:l}]=Qe(!1),u=V(),{openDropdown:m,closeDropdown:v}=me({open:c,close:l,closeDelay:t,openDelay:s}),h=()=>window.setTimeout(()=>{document.getElementById(`${i}-dropdown`)?.querySelectorAll("[data-menu-item]:not([data-disabled])")[0]?.focus()},16),f=()=>window.setTimeout(()=>{document.getElementById(`${i}-target`)?.focus()},16);return r.jsx(Ze,{value:{opened:e,close:v,open:m,focusFirstItem:h,focusParentItem:f,parentContext:u},children:r.jsx(F,{opened:e,withinPortal:!1,withArrow:!1,id:i,...a,children:o})})}O.extend=n=>n;O.displayName="@mantine/core/MenuSub";O.Target=fe;O.Dropdown=X;O.Item=Y;const tt={refProp:"ref"},pe=y.forwardRef((n,o)=>{const{children:t,refProp:s,...a}=M("MenuTarget",tt,n),i=Fe(t);if(!i)throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const e=k(),c=i.props,l=C(c.onClick,()=>{e.trigger==="click"?e.toggleDropdown():e.trigger==="click-hover"&&(e.setOpenedViaClick(!0),e.opened||e.openDropdown())}),u=C(c.onMouseEnter,()=>(e.trigger==="hover"||e.trigger==="click-hover")&&e.openDropdown()),m=C(c.onMouseLeave,()=>{(e.trigger==="hover"||e.trigger==="click-hover"&&!e.openedViaClick)&&e.closeDropdown()});return r.jsx(F.Target,{refProp:s,popupType:"menu",ref:o,...a,children:y.cloneElement(i,{onClick:l,onMouseEnter:u,onMouseLeave:m,"data-expanded":e.opened?!0:void 0})})});pe.displayName="@mantine/core/MenuTarget";const nt={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function x(n){const o=M("Menu",nt,n),{children:t,onOpen:s,onClose:a,opened:i,defaultOpened:e,trapFocus:c,onChange:l,closeOnItemClick:u,loop:m,closeOnEscape:v,trigger:h,openDelay:f,closeDelay:w,classNames:d,styles:g,unstyled:b,variant:S,vars:p,menuItemTabIndex:D,keepMounted:A,withInitialFocusPlaceholder:j,attributes:P,...R}=o,T=Oe({name:"Menu",classes:I,props:o,classNames:d,styles:g,unstyled:b,attributes:P}),[N,E]=Re({value:i,defaultValue:e,finalValue:!1,onChange:l}),[ge,Z]=y.useState(!1),_=()=>{E(!1),Z(!1),N&&a?.()},$=()=>{E(!0),!N&&s?.()},ee=()=>{N?_():$()},{openDropdown:xe,closeDropdown:ye}=me({open:$,close:_,closeDelay:w,openDelay:f}),we=Se=>Je("[data-menu-item]","[data-menu-dropdown]",Se),{resolvedClassNames:be,resolvedStyles:Ce}=_e({classNames:d,styles:g,props:o});return r.jsx(Ye,{value:{getStyles:T,opened:N,toggleDropdown:ee,getItemIndex:we,openedViaClick:ge,setOpenedViaClick:Z,closeOnItemClick:u,closeDropdown:h==="click"?_:ye,openDropdown:h==="click"?$:xe,closeDropdownImmediately:_,loop:m,trigger:h,unstyled:b,menuItemTabIndex:D,withInitialFocusPlaceholder:j},children:r.jsx(F,{returnFocus:!0,...R,opened:N,onChange:ee,defaultOpened:e,trapFocus:A?!1:c,closeOnEscape:v,__staticSelector:"Menu",classNames:be,styles:Ce,unstyled:b,variant:S,keepMounted:A,children:t})})}x.extend=n=>n;x.withProps=Be(x);x.classes=I;x.displayName="@mantine/core/Menu";x.Item=J;x.Label=Q;x.Dropdown=W;x.Target=pe;x.Divider=G;x.Sub=O;const ot=n=>{Ke();const o=q(),[t,s]=y.useState(!1),a=typeof n=="string"?{href:n}:{...n,href:n.href},i=a.href,e=o.isActive(i,a);return{isPending:t,isActive:e,anchorProps:{href:o.base(i),onClick:async c=>{if(c?.stopPropagation(),c?.preventDefault(),!e&&!t){s(!0);try{await o.push(i)}finally{s(!1)}}}}}},ve=n=>{const{item:o,index:t}=n,s=q(),a=de({handler:async e=>{await o.onClick?.()}},[o.onClick]);if(o.type==="divider")return r.jsx(x.Divider,{},t);if(o.type==="label")return r.jsx(x.Label,{children:o.label},t);if(o.children&&o.children.length>0)return r.jsxs(x,{trigger:"hover",position:"right-start",offset:2,children:[r.jsx(x.Target,{children:r.jsx(x.Item,{leftSection:o.icon,rightSection:r.jsx(He,{size:14}),children:o.label})}),r.jsx(x.Dropdown,{children:o.children.map((e,c)=>r.jsx(ve,{item:e,index:c},c))})]},t);const i={};return n.item.onClick?i.onClick=a.run:n.item.href&&Object.assign(i,s.anchor(n.item.href)),r.jsx(x.Item,{leftSection:o.icon,onClick:o.onClick,color:o.color,rightSection:o.active?r.jsx(ce,{size:"xs",variant:"transparent",children:r.jsx(qe,{})}):void 0,...i,children:o.label},t)},oe=n=>{const o=H(),t={...n},{tooltip:s,menu:a,icon:i,...e}=t;if(t.variant==="subtle"&&(e.c??="var(--mantine-color-text)",e.color??="gray"),t.intent&&(t.intent==="none"?(e.c??="var(--mantine-color-text)",e.color??="gray"):t.intent==="primary"?(e.c??="white",e.color??=o.primaryColor):t.intent==="success"?(e.c??="white",e.color??="green"):t.intent==="danger"?(e.c??="white",e.color??="red"):t.intent==="warning"?(e.c??="var(--mantine-color-text)",e.color??="yellow"):t.intent==="info"&&(e.c??="white",e.color??="blue")),t.icon){const u=Ve(t.icon)?r.jsx(t.icon,{size:$e.sizes.icon.md}):r.jsx(ce,{w:24,variant:"transparent",size:"sm",c:"var(--mantine-color-text)",...t.themeIconProps,children:t.icon});t.children?e.leftSection=u:(e.children=y.Children.only(u),e.px??="xs")}if(t.leftSection&&!t.children&&(e.px??="xs"),t.textVisibleFrom){const{children:u,textVisibleFrom:m,leftSection:v,...h}=e;return r.jsxs(r.Fragment,{children:[r.jsx(ne,{w:"100%",visibleFrom:m,children:r.jsx(oe,{flex:1,...h,leftSection:v,tooltip:s,menu:a,children:u})}),r.jsx(ne,{w:"100%",hiddenFrom:m,children:r.jsx(oe,{px:"xs",...h,tooltip:s,menu:a,children:v})})]})}let l="href"in e&&e.href?e.href.startsWith("http")||e.target?r.jsx(lt,{...e,href:e.href,children:e.children}):r.jsx(ct,{...e,href:e.href,children:e.children}):(delete e.classNameActive,delete e.variantActive,"action"in e&&e.action?r.jsx(it,{...e,action:e.action,children:e.children}):"onClick"in e&&e.onClick?r.jsx(at,{...e,onClick:e.onClick,children:e.children}):"form"in e&&e.form?e.type==="reset"?r.jsx(rt,{...e,form:e.form,children:e.children}):r.jsx(st,{...e,form:e.form,children:e.children}):r.jsx(L,{...e,children:e.children}));if(a&&(l=r.jsxs(x,{position:a.position||"bottom-start",width:a.width||200,shadow:a.shadow||"md",trigger:a.on==="hover"?"hover":"click",...a.menuProps,children:[r.jsx(x.Target,{...a.targetProps,children:l}),r.jsx(x.Dropdown,{children:a.items.map((u,m)=>r.jsx(ve,{item:u,index:m},m))})]})),s){const u={openDelay:1e3},m=typeof s=="string"||typeof s=="number"?{...u,label:s,children:l}:{...u,...s,children:l};return r.jsx(ze,{...m})}return l},st=n=>{const{form:o,...t}=n,s=ue(o);return r.jsx(L,{...t,loading:s.loading,disabled:s.loading,type:"submit",children:n.children})},rt=n=>{const{form:o,...t}=n,s=ue(o);return r.jsx(L,{...t,disabled:s.loading,type:"reset",children:n.children})},it=n=>{const{action:o,...t}=n;return r.jsx(L,{...t,disabled:o.loading||n.disabled,loading:o.loading,onClick:()=>o.run(),children:n.children})},at=n=>{const o=de({handler:async t=>{await n.onClick(t)}},[n.onClick]);return r.jsx(L,{...n,disabled:o.loading||n.disabled,loading:o.loading,onClick:o.run,children:n.children})},ct=n=>{const{active:o,classNameActive:t,variantActive:s,routerGoOptions:a,onClick:i,...e}=n,c=q(),{isPending:l,isActive:u}=ot(o?{href:n.href,...o}:{href:n.href}),m=c.anchor(n.href,a),v=f=>{i?.(f),m.onClick?.(f)},h=e.className||"";return u&&o!==!1&&t&&(e.className=`${h} ${t}`.trim()),n.anchorProps?r.jsx(U,{component:"a",...m,...n.anchorProps,onClick:v,children:n.children}):r.jsx(L,{component:"a",loading:l,...e,...m,onClick:v,variant:u&&o!==!1?s??"filled":e.variant??"subtle",children:n.children})},lt=n=>{const{active:o,classNameActive:t,variantActive:s,routerGoOptions:a,target:i,...e}=n;return r.jsx(L,{component:"a",target:i,...e,children:n.children})};export{oe as A,vt as a,U as b,C as c,Qe as d,ue as e,We as g,pt as u};
|
|
1
|
+
import{ax as Me,r as y,aO as De,A as je,a5 as ke,b7 as Ie,aM as te,p as z,d as M,j as r,T as Ae,e as Pe,c as Te,f as B,B as se,aj as K,aA as Ne,l as H,al as re,b8 as ie,U as ae,b9 as Ee,q as Le,ba as Fe,o as Oe,a2 as Re,az as _e,a3 as Be,bb as Ke,z as q,b1 as Ve,N as $e,F as ne,ag as ze,a8 as L,L as He,ad as qe}from"./entry.DhzNl8q_.js";import{T as ce}from"./chunk.DfzRLqwW.js";import{f as Ue,c as le}from"./chunk.BlqFPyLh.js";import{P as F,u as de}from"./chunk.BUs1kuwE.js";import{A as Ge}from"./chunk.HFLdduaf.js";const ue=(n,o=["loading","dirty","error"])=>{const t=Me(),s=o,[a,i]=y.useState(!1),[e,c]=y.useState(!1),[l,u]=y.useState(void 0),[m,v]=y.useState(void 0),h="form"in n?n.form:n,f="path"in n?n.path:void 0,w=s.includes("values"),d=s.includes("error"),g=s.includes("dirty"),b=s.includes("loading");return y.useEffect(()=>{const S=[];return(d||w||g)&&S.push(t.events.on("form:change",p=>{p.id===h.id&&((!f||p.path===f)&&(g&&i(!0),d&&u(void 0)),w&&v(h.currentValues))})),w&&S.push(t.events.on("form:reset",p=>{p.id===h.id&&v(p.values)})),b&&S.push(t.events.on("form:submit:begin",p=>{p.id===h.id&&c(!0)}),t.events.on("form:submit:end",p=>{p.id===h.id&&c(!1)})),(w||g)&&S.push(t.events.on("form:submit:success",p=>{p.id===h.id&&(w&&v(p.values),g&&i(!1))})),d&&S.push(t.events.on("form:submit:error",p=>{p.id===h.id&&(!f||p.error instanceof De&&p.error.value.path===f)&&u(p.error)})),()=>{for(const p of S)p()}},[]),{dirty:a,loading:e,error:l,values:m}},pt=()=>(je("alepha.react.i18n.lang"),ke(Ie));function C(n,o){return t=>{n?.(t),o?.(t)}}function We(n,o){return n in o?te(o[n]):te(n)}function vt(n,o){const t=n.map(s=>({value:s,px:We(s,o)}));return t.sort((s,a)=>s.px-a.px),t}function Je(n,o,t){return t?Array.from(Ue(t,o)?.querySelectorAll(n)||[]).findIndex(s=>s===t):null}function Qe(n=!1,o={}){const[t,s]=y.useState(n),a=y.useCallback(()=>{s(c=>c||(o.onOpen?.(),!0))},[o.onOpen]),i=y.useCallback(()=>{s(c=>c&&(o.onClose?.(),!1))},[o.onClose]),e=y.useCallback(()=>{t?i():a()},[i,a,t]);return[t,{open:a,close:i,toggle:e}]}function me({open:n,close:o,openDelay:t,closeDelay:s}){const a=y.useRef(-1),i=y.useRef(-1),e=()=>{window.clearTimeout(a.current),window.clearTimeout(i.current)},c=()=>{e(),t===0||t===void 0?n():a.current=window.setTimeout(n,t)},l=()=>{e(),s===0||s===void 0?o():i.current=window.setTimeout(o,s)};return y.useEffect(()=>e,[]),{openDropdown:c,closeDropdown:l}}var he={root:"m_849cf0da"};const Xe={underline:"hover"},U=z((n,o)=>{const{underline:t,className:s,unstyled:a,mod:i,...e}=M("Anchor",Xe,n);return r.jsx(Ae,{component:"a",ref:o,className:Pe({[he.root]:!a},s),...e,mod:[{underline:t},i],__staticSelector:"Anchor",unstyled:a})});U.classes=he;U.displayName="@mantine/core/Anchor";const[Ye,k]=Te("Menu component was not found in the tree");var I={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const G=B((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,...c}=M("MenuDivider",null,n),l=k();return r.jsx(se,{ref:o,...l.getStyles("divider",{className:s,style:a,styles:i,classNames:t}),...c})});G.classes=I;G.displayName="@mantine/core/MenuDivider";const W=B((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,onMouseEnter:c,onMouseLeave:l,onKeyDown:u,children:m,...v}=M("MenuDropdown",null,n),h=y.useRef(null),f=k(),w=C(u,b=>{(b.key==="ArrowUp"||b.key==="ArrowDown")&&(b.preventDefault(),h.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),d=C(c,()=>(f.trigger==="hover"||f.trigger==="click-hover")&&f.openDropdown()),g=C(l,()=>(f.trigger==="hover"||f.trigger==="click-hover")&&f.closeDropdown());return r.jsxs(F.Dropdown,{...v,onMouseEnter:d,onMouseLeave:g,role:"menu","aria-orientation":"vertical",ref:K(o,h),...f.getStyles("dropdown",{className:s,style:a,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:w,children:[f.withInitialFocusPlaceholder&&r.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),m]})});W.classes=I;W.displayName="@mantine/core/MenuDropdown";const[Ze,V]=Ne(),J=z((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,color:c,closeMenuOnClick:l,leftSection:u,rightSection:m,children:v,disabled:h,"data-disabled":f,...w}=M("MenuItem",null,n),d=k(),g=V(),b=H(),{dir:S}=re(),p=y.useRef(null),D=w,A=C(D.onClick,()=>{f||(typeof l=="boolean"?l&&d.closeDropdownImmediately():d.closeOnItemClick&&d.closeDropdownImmediately())}),j=c?b.variantColorResolver({color:c,theme:b,variant:"light"}):void 0,P=c?ie({color:c,theme:b}):null,R=C(D.onKeyDown,T=>{T.key==="ArrowLeft"&&g&&(g.close(),g.focusParentItem())});return r.jsxs(ae,{onMouseDown:T=>T.preventDefault(),...w,unstyled:d.unstyled,tabIndex:d.menuItemTabIndex,...d.getStyles("item",{className:s,style:a,styles:i,classNames:t}),ref:K(p,o),role:"menuitem",disabled:h,"data-menu-item":!0,"data-disabled":h||f||void 0,"data-mantine-stop-propagation":!0,onClick:A,onKeyDown:le({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:d.loop,dir:S,orientation:"vertical",onKeyDown:R}),__vars:{"--menu-item-color":P?.isThemeColor&&P?.shade===void 0?`var(--mantine-color-${P.color}-6)`:j?.color,"--menu-item-hover":j?.hover},children:[u&&r.jsx("div",{...d.getStyles("itemSection",{styles:i,classNames:t}),"data-position":"left",children:u}),v&&r.jsx("div",{...d.getStyles("itemLabel",{styles:i,classNames:t}),children:v}),m&&r.jsx("div",{...d.getStyles("itemSection",{styles:i,classNames:t}),"data-position":"right",children:m})]})});J.classes=I;J.displayName="@mantine/core/MenuItem";const Q=B((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,...c}=M("MenuLabel",null,n),l=k();return r.jsx(se,{ref:o,...l.getStyles("label",{className:s,style:a,styles:i,classNames:t}),...c})});Q.classes=I;Q.displayName="@mantine/core/MenuLabel";const X=B((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,onMouseEnter:c,onMouseLeave:l,onKeyDown:u,children:m,...v}=M("MenuSubDropdown",null,n),h=y.useRef(null),f=k(),w=V(),d=C(c,w?.open),g=C(l,w?.close);return r.jsx(F.Dropdown,{...v,onMouseEnter:d,onMouseLeave:g,role:"menu","aria-orientation":"vertical",ref:K(o,h),...f.getStyles("dropdown",{className:s,style:a,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:m})});X.classes=I;X.displayName="@mantine/core/MenuSubDropdown";const Y=z((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,color:c,leftSection:l,rightSection:u,children:m,disabled:v,"data-disabled":h,closeMenuOnClick:f,...w}=M("MenuSubItem",null,n),d=k(),g=V(),b=H(),{dir:S}=re(),p=y.useRef(null),D=w,A=c?b.variantColorResolver({color:c,theme:b,variant:"light"}):void 0,j=c?ie({color:c,theme:b}):null,P=C(D.onKeyDown,E=>{E.key==="ArrowRight"&&(g?.open(),g?.focusFirstItem()),E.key==="ArrowLeft"&&g?.parentContext&&(g.parentContext.close(),g.parentContext.focusParentItem())}),R=C(D.onClick,()=>{!h&&f&&d.closeDropdownImmediately()}),T=C(D.onMouseEnter,g?.open),N=C(D.onMouseLeave,g?.close);return r.jsxs(ae,{onMouseDown:E=>E.preventDefault(),...w,unstyled:d.unstyled,tabIndex:d.menuItemTabIndex,...d.getStyles("item",{className:s,style:a,styles:i,classNames:t}),ref:K(p,o),role:"menuitem",disabled:v,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":v||h||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:T,onMouseLeave:N,onClick:R,onKeyDown:le({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:d.loop,dir:S,orientation:"vertical",onKeyDown:P}),__vars:{"--menu-item-color":j?.isThemeColor&&j?.shade===void 0?`var(--mantine-color-${j.color}-6)`:A?.color,"--menu-item-hover":A?.hover},children:[l&&r.jsx("div",{...d.getStyles("itemSection",{styles:i,classNames:t}),"data-position":"left",children:l}),m&&r.jsx("div",{...d.getStyles("itemLabel",{styles:i,classNames:t}),children:m}),r.jsx("div",{...d.getStyles("itemSection",{styles:i,classNames:t}),"data-position":"right",children:u||r.jsx(Ge,{...d.getStyles("chevron"),size:14})})]})});Y.classes=I;Y.displayName="@mantine/core/MenuSubItem";function fe({children:n,refProp:o}){if(!Ee(n))throw new Error("Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return k(),r.jsx(F.Target,{refProp:o,popupType:"menu",children:n})}fe.displayName="@mantine/core/MenuSubTarget";const et={offset:0,position:"right-start",transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function O(n){const{children:o,closeDelay:t,openDelay:s,...a}=M("MenuSub",et,n),i=Le(),[e,{open:c,close:l}]=Qe(!1),u=V(),{openDropdown:m,closeDropdown:v}=me({open:c,close:l,closeDelay:t,openDelay:s}),h=()=>window.setTimeout(()=>{document.getElementById(`${i}-dropdown`)?.querySelectorAll("[data-menu-item]:not([data-disabled])")[0]?.focus()},16),f=()=>window.setTimeout(()=>{document.getElementById(`${i}-target`)?.focus()},16);return r.jsx(Ze,{value:{opened:e,close:v,open:m,focusFirstItem:h,focusParentItem:f,parentContext:u},children:r.jsx(F,{opened:e,withinPortal:!1,withArrow:!1,id:i,...a,children:o})})}O.extend=n=>n;O.displayName="@mantine/core/MenuSub";O.Target=fe;O.Dropdown=X;O.Item=Y;const tt={refProp:"ref"},pe=y.forwardRef((n,o)=>{const{children:t,refProp:s,...a}=M("MenuTarget",tt,n),i=Fe(t);if(!i)throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const e=k(),c=i.props,l=C(c.onClick,()=>{e.trigger==="click"?e.toggleDropdown():e.trigger==="click-hover"&&(e.setOpenedViaClick(!0),e.opened||e.openDropdown())}),u=C(c.onMouseEnter,()=>(e.trigger==="hover"||e.trigger==="click-hover")&&e.openDropdown()),m=C(c.onMouseLeave,()=>{(e.trigger==="hover"||e.trigger==="click-hover"&&!e.openedViaClick)&&e.closeDropdown()});return r.jsx(F.Target,{refProp:s,popupType:"menu",ref:o,...a,children:y.cloneElement(i,{onClick:l,onMouseEnter:u,onMouseLeave:m,"data-expanded":e.opened?!0:void 0})})});pe.displayName="@mantine/core/MenuTarget";const nt={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function x(n){const o=M("Menu",nt,n),{children:t,onOpen:s,onClose:a,opened:i,defaultOpened:e,trapFocus:c,onChange:l,closeOnItemClick:u,loop:m,closeOnEscape:v,trigger:h,openDelay:f,closeDelay:w,classNames:d,styles:g,unstyled:b,variant:S,vars:p,menuItemTabIndex:D,keepMounted:A,withInitialFocusPlaceholder:j,attributes:P,...R}=o,T=Oe({name:"Menu",classes:I,props:o,classNames:d,styles:g,unstyled:b,attributes:P}),[N,E]=Re({value:i,defaultValue:e,finalValue:!1,onChange:l}),[ge,Z]=y.useState(!1),_=()=>{E(!1),Z(!1),N&&a?.()},$=()=>{E(!0),!N&&s?.()},ee=()=>{N?_():$()},{openDropdown:xe,closeDropdown:ye}=me({open:$,close:_,closeDelay:w,openDelay:f}),we=Se=>Je("[data-menu-item]","[data-menu-dropdown]",Se),{resolvedClassNames:be,resolvedStyles:Ce}=_e({classNames:d,styles:g,props:o});return r.jsx(Ye,{value:{getStyles:T,opened:N,toggleDropdown:ee,getItemIndex:we,openedViaClick:ge,setOpenedViaClick:Z,closeOnItemClick:u,closeDropdown:h==="click"?_:ye,openDropdown:h==="click"?$:xe,closeDropdownImmediately:_,loop:m,trigger:h,unstyled:b,menuItemTabIndex:D,withInitialFocusPlaceholder:j},children:r.jsx(F,{returnFocus:!0,...R,opened:N,onChange:ee,defaultOpened:e,trapFocus:A?!1:c,closeOnEscape:v,__staticSelector:"Menu",classNames:be,styles:Ce,unstyled:b,variant:S,keepMounted:A,children:t})})}x.extend=n=>n;x.withProps=Be(x);x.classes=I;x.displayName="@mantine/core/Menu";x.Item=J;x.Label=Q;x.Dropdown=W;x.Target=pe;x.Divider=G;x.Sub=O;const ot=n=>{Ke();const o=q(),[t,s]=y.useState(!1),a=typeof n=="string"?{href:n}:{...n,href:n.href},i=a.href,e=o.isActive(i,a);return{isPending:t,isActive:e,anchorProps:{href:o.base(i),onClick:async c=>{if(c?.stopPropagation(),c?.preventDefault(),!e&&!t){s(!0);try{await o.push(i)}finally{s(!1)}}}}}},ve=n=>{const{item:o,index:t}=n,s=q(),a=de({handler:async e=>{await o.onClick?.()}},[o.onClick]);if(o.type==="divider")return r.jsx(x.Divider,{},t);if(o.type==="label")return r.jsx(x.Label,{children:o.label},t);if(o.children&&o.children.length>0)return r.jsxs(x,{trigger:"hover",position:"right-start",offset:2,children:[r.jsx(x.Target,{children:r.jsx(x.Item,{leftSection:o.icon,rightSection:r.jsx(He,{size:14}),children:o.label})}),r.jsx(x.Dropdown,{children:o.children.map((e,c)=>r.jsx(ve,{item:e,index:c},c))})]},t);const i={};return n.item.onClick?i.onClick=a.run:n.item.href&&Object.assign(i,s.anchor(n.item.href)),r.jsx(x.Item,{leftSection:o.icon,onClick:o.onClick,color:o.color,rightSection:o.active?r.jsx(ce,{size:"xs",variant:"transparent",children:r.jsx(qe,{})}):void 0,...i,children:o.label},t)},oe=n=>{const o=H(),t={...n},{tooltip:s,menu:a,icon:i,...e}=t;if(t.variant==="subtle"&&(e.c??="var(--mantine-color-text)",e.color??="gray"),t.intent&&(t.intent==="none"?(e.c??="var(--mantine-color-text)",e.color??="gray"):t.intent==="primary"?(e.c??="white",e.color??=o.primaryColor):t.intent==="success"?(e.c??="white",e.color??="green"):t.intent==="danger"?(e.c??="white",e.color??="red"):t.intent==="warning"?(e.c??="var(--mantine-color-text)",e.color??="yellow"):t.intent==="info"&&(e.c??="white",e.color??="blue")),t.icon){const u=Ve(t.icon)?r.jsx(t.icon,{size:$e.sizes.icon.md}):r.jsx(ce,{w:24,variant:"transparent",size:"sm",c:"var(--mantine-color-text)",...t.themeIconProps,children:t.icon});t.children?e.leftSection=u:(e.children=y.Children.only(u),e.px??="xs")}if(t.leftSection&&!t.children&&(e.px??="xs"),t.textVisibleFrom){const{children:u,textVisibleFrom:m,leftSection:v,...h}=e;return r.jsxs(r.Fragment,{children:[r.jsx(ne,{w:"100%",visibleFrom:m,children:r.jsx(oe,{flex:1,...h,leftSection:v,tooltip:s,menu:a,children:u})}),r.jsx(ne,{w:"100%",hiddenFrom:m,children:r.jsx(oe,{px:"xs",...h,tooltip:s,menu:a,children:v})})]})}let l="href"in e&&e.href?e.href.startsWith("http")||e.target?r.jsx(lt,{...e,href:e.href,children:e.children}):r.jsx(ct,{...e,href:e.href,children:e.children}):(delete e.classNameActive,delete e.variantActive,"action"in e&&e.action?r.jsx(it,{...e,action:e.action,children:e.children}):"onClick"in e&&e.onClick?r.jsx(at,{...e,onClick:e.onClick,children:e.children}):"form"in e&&e.form?e.type==="reset"?r.jsx(rt,{...e,form:e.form,children:e.children}):r.jsx(st,{...e,form:e.form,children:e.children}):r.jsx(L,{...e,children:e.children}));if(a&&(l=r.jsxs(x,{position:a.position||"bottom-start",width:a.width||200,shadow:a.shadow||"md",trigger:a.on==="hover"?"hover":"click",...a.menuProps,children:[r.jsx(x.Target,{...a.targetProps,children:l}),r.jsx(x.Dropdown,{children:a.items.map((u,m)=>r.jsx(ve,{item:u,index:m},m))})]})),s){const u={openDelay:1e3},m=typeof s=="string"||typeof s=="number"?{...u,label:s,children:l}:{...u,...s,children:l};return r.jsx(ze,{...m})}return l},st=n=>{const{form:o,...t}=n,s=ue(o);return r.jsx(L,{...t,loading:s.loading,disabled:s.loading,type:"submit",children:n.children})},rt=n=>{const{form:o,...t}=n,s=ue(o);return r.jsx(L,{...t,disabled:s.loading,type:"reset",children:n.children})},it=n=>{const{action:o,...t}=n;return r.jsx(L,{...t,disabled:o.loading||n.disabled,loading:o.loading,onClick:()=>o.run(),children:n.children})},at=n=>{const o=de({handler:async t=>{await n.onClick(t)}},[n.onClick]);return r.jsx(L,{...n,disabled:o.loading||n.disabled,loading:o.loading,onClick:o.run,children:n.children})},ct=n=>{const{active:o,classNameActive:t,variantActive:s,routerGoOptions:a,onClick:i,...e}=n,c=q(),{isPending:l,isActive:u}=ot(o?{href:n.href,...o}:{href:n.href}),m=c.anchor(n.href,a),v=f=>{i?.(f),m.onClick?.(f)},h=e.className||"";return u&&o!==!1&&t&&(e.className=`${h} ${t}`.trim()),n.anchorProps?r.jsx(U,{component:"a",...m,...n.anchorProps,onClick:v,children:n.children}):r.jsx(L,{component:"a",loading:l,...e,...m,onClick:v,variant:u&&o!==!1?s??"filled":e.variant??"subtle",children:n.children})},lt=n=>{const{active:o,classNameActive:t,variantActive:s,routerGoOptions:a,target:i,...e}=n;return r.jsx(L,{component:"a",target:i,...e,children:n.children})};export{oe as A,vt as a,U as b,C as c,Qe as d,ue as e,We as g,pt as u};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as Ue,r as f,a as Pe,M as Ye,b as Ge,c as Ze,f as P,d as z,j as r,B as I,e as se,R as ne,g,k as B,h as Je,i as we,l as Me,m as et,I as tt,p as ye,n as st,o as H,q as nt,s as ot,t as D,U as rt,v as oe,w as at,x as it,y as T,z as O,A as re,C as ae,D as ke,E as Ce,F as m,T as ie,G as lt,H as U,J as Re,K as ct,L as dt,N as F,O as Ie,P as ut,Q as ht,S as pt,V as ft,W as mt,X as bt,Y as gt,Z as vt,_ as xt,$ as jt}from"./entry.ETzhI2TP.js";import{g as Ee,a as Ne,A as S,u as wt,b as kt}from"./chunk.9UE-TDmM.js";import{n as Ct}from"./chunk.BjFrJKj1.js";import{D as It}from"./chunk.C5vcO6ci.js";import"./chunk.DtqQCeAj.js";import"./chunk.BlqFPyLh.js";import"./chunk.BZ-MON9S.js";import"./chunk.DnocEn4r.js";function Nt(e,t){return Ue("(prefers-color-scheme: dark)",e==="dark",t)?"dark":"light"}function ze(e){return/(Macintosh)|(MacIntel)|(MacPPC)|(Mac68K)/i.test(e)}function zt(e){return/(iPhone)|(iPad)|(iPod)/i.test(e)}function At(e){return/(Win32)|(Win64)|(Windows)|(WinCE)/i.test(e)}function St(e){return/Android/i.test(e)}function Pt(e){return/Linux/i.test(e)}function yt(e){return/CrOS/i.test(e)}function Ae(){if(typeof window>"u")return"undetermined";const{userAgent:e}=window.navigator;return zt(e)||ze(e)&&"ontouchend"in document?"ios":ze(e)?"macos":At(e)?"windows":St(e)?"android":Pt(e)?"linux":yt(e)?"chromeos":"undetermined"}function Rt(e={getValueInEffect:!0}){const[t,n]=f.useState(e.getValueInEffect?"undetermined":Ae());return Pe(()=>{e.getValueInEffect&&n(Ae)},[]),t}function Se(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(o=>o.remove())}function Et({keepTransitions:e}={}){const t=f.useRef(Ct),n=f.useRef(-1),o=f.useContext(Ye),d=Ge(),l=f.useRef(d?.());if(!o)throw new Error("[@mantine/core] MantineProvider was not found in tree");const i=u=>{o.setColorScheme(u),t.current=e?()=>{}:Se(l.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},c=()=>{o.clearColorScheme(),t.current=e?()=>{}:Se(l.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},h=Nt("light",{getInitialValueInEffect:!1}),s=o.colorScheme==="auto"?h:o.colorScheme,a=f.useCallback(()=>i(s==="light"?"dark":"light"),[i,s]);return f.useEffect(()=>()=>{t.current?.(),window.clearTimeout(n.current)},[]),{colorScheme:o.colorScheme,setColorScheme:i,clearColorScheme:c,toggleColorScheme:a}}const[_t,W]=Ze("AppShell was not found in tree");var E={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const le=P((e,t)=>{const{classNames:n,className:o,style:d,styles:l,unstyled:i,vars:c,withBorder:h,zIndex:s,mod:a,...u}=z("AppShellAside",null,e),p=W();return p.disabled?null:r.jsx(I,{component:"aside",ref:t,mod:[{"with-border":h??p.withBorder},a],...p.getStyles("aside",{className:se({[ne.classNames.zeroRight]:p.offsetScrollbars},o),classNames:n,styles:l,style:d}),...u,__vars:{"--app-shell-aside-z-index":`calc(${s??p.zIndex} + 1)`}})});le.classes=E;le.displayName="@mantine/core/AppShellAside";const ce=P((e,t)=>{const{classNames:n,className:o,style:d,styles:l,unstyled:i,vars:c,withBorder:h,zIndex:s,mod:a,...u}=z("AppShellFooter",null,e),p=W();return p.disabled?null:r.jsx(I,{component:"footer",ref:t,mod:[{"with-border":h??p.withBorder},a],...p.getStyles("footer",{className:se({[ne.classNames.zeroRight]:p.offsetScrollbars},o),classNames:n,styles:l,style:d}),...u,__vars:{"--app-shell-footer-z-index":(s??p.zIndex)?.toString()}})});ce.classes=E;ce.displayName="@mantine/core/AppShellFooter";const de=P((e,t)=>{const{classNames:n,className:o,style:d,styles:l,unstyled:i,vars:c,withBorder:h,zIndex:s,mod:a,...u}=z("AppShellHeader",null,e),p=W();return p.disabled?null:r.jsx(I,{component:"header",ref:t,mod:[{"with-border":h??p.withBorder},a],...p.getStyles("header",{className:se({[ne.classNames.zeroRight]:p.offsetScrollbars},o),classNames:n,styles:l,style:d}),...u,__vars:{"--app-shell-header-z-index":(s??p.zIndex)?.toString()}})});de.classes=E;de.displayName="@mantine/core/AppShellHeader";const ue=P((e,t)=>{const{classNames:n,className:o,style:d,styles:l,vars:i,...c}=z("AppShellMain",null,e),h=W();return r.jsx(I,{component:"main",ref:t,...h.getStyles("main",{className:o,style:d,classNames:n,styles:l}),...c})});ue.classes=E;ue.displayName="@mantine/core/AppShellMain";function X(e){return typeof e=="object"?e.base:e}function q(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 K(e){return!(typeof e!="object"||e===null||Object.keys(e).length===1&&"base"in e)}function Bt({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,aside:o,theme:d,mode:l}){const i=o?.width,c="translateX(var(--app-shell-aside-width))",h="translateX(calc(var(--app-shell-aside-width) * -1))";if(o?.breakpoint&&!o?.collapsed?.mobile&&(n[o?.breakpoint]=n[o?.breakpoint]||{},l==="fixed"?(n[o?.breakpoint]["--app-shell-aside-width"]="100%",n[o?.breakpoint]["--app-shell-aside-offset"]="0px"):(n[o?.breakpoint]["--app-shell-aside-width"]="0px",n[o?.breakpoint]["--app-shell-aside-offset"]="0px")),q(i)){const s=g(X(i));e["--app-shell-aside-width"]=s,e["--app-shell-aside-offset"]=s}if(K(i)&&(typeof i.base<"u"&&(e["--app-shell-aside-width"]=g(i.base),e["--app-shell-aside-offset"]=g(i.base)),B(i).forEach(s=>{s!=="base"&&(t[s]=t[s]||{},t[s]["--app-shell-aside-width"]=g(i[s]),t[s]["--app-shell-aside-offset"]=g(i[s]))})),o?.breakpoint&&l==="static"&&(t[o.breakpoint]=t[o.breakpoint]||{},t[o.breakpoint]["--app-shell-aside-position"]="sticky",t[o.breakpoint]["--app-shell-aside-grid-row"]="2",t[o.breakpoint]["--app-shell-aside-grid-column"]="3",t[o.breakpoint]["--app-shell-main-column-end"]="3"),o?.collapsed?.desktop){const s=o.breakpoint;t[s]=t[s]||{},t[s]["--app-shell-aside-transform"]=c,t[s]["--app-shell-aside-transform-rtl"]=h,l==="fixed"?t[s]["--app-shell-aside-offset"]="0px !important":(t[s]["--app-shell-aside-width"]="0px",t[s]["--app-shell-aside-display"]="none",t[s]["--app-shell-main-column-end"]="-1"),t[s]["--app-shell-aside-scroll-locked-visibility"]="hidden"}if(o?.collapsed?.mobile){const s=Ee(o.breakpoint,d.breakpoints)-.1;n[s]=n[s]||{},l==="fixed"?(n[s]["--app-shell-aside-width"]="100%",n[s]["--app-shell-aside-offset"]="0px"):n[s]["--app-shell-aside-width"]="0px",n[s]["--app-shell-aside-transform"]=c,n[s]["--app-shell-aside-transform-rtl"]=h,n[s]["--app-shell-aside-scroll-locked-visibility"]="hidden"}}function Tt({baseStyles:e,minMediaStyles:t,footer:n,mode:o}){const d=n?.height,l="translateY(var(--app-shell-footer-height))",i=o==="static"?!0:n?.offset??!0;if(o==="static"&&n&&(e["--app-shell-footer-position"]="sticky",e["--app-shell-footer-grid-column"]="1 / -1",e["--app-shell-footer-grid-row"]="3"),q(d)){const c=g(X(d));e["--app-shell-footer-height"]=c,i&&(e["--app-shell-footer-offset"]=c)}K(d)&&(typeof d.base<"u"&&(e["--app-shell-footer-height"]=g(d.base),i&&(e["--app-shell-footer-offset"]=g(d.base))),B(d).forEach(c=>{c!=="base"&&(t[c]=t[c]||{},t[c]["--app-shell-footer-height"]=g(d[c]),i&&(t[c]["--app-shell-footer-offset"]=g(d[c])))})),n?.collapsed&&(e["--app-shell-footer-transform"]=l,o==="fixed"&&(e["--app-shell-footer-offset"]="0px !important"))}function Lt({baseStyles:e,minMediaStyles:t,header:n,mode:o}){const d=n?.height,l="translateY(calc(var(--app-shell-header-height) * -1))",i=o==="static"?!0:n?.offset??!0;if(o==="static"&&n&&(e["--app-shell-header-position"]="sticky",e["--app-shell-header-grid-column"]="1 / -1",e["--app-shell-header-grid-row"]="1"),q(d)){const c=g(X(d));e["--app-shell-header-height"]=c,i&&(e["--app-shell-header-offset"]=c)}K(d)&&(typeof d.base<"u"&&(e["--app-shell-header-height"]=g(d.base),i&&(e["--app-shell-header-offset"]=g(d.base))),B(d).forEach(c=>{c!=="base"&&(t[c]=t[c]||{},t[c]["--app-shell-header-height"]=g(d[c]),i&&(t[c]["--app-shell-header-offset"]=g(d[c])))})),n?.collapsed&&(e["--app-shell-header-transform"]=l,o==="fixed"&&(e["--app-shell-header-offset"]="0px !important"))}function Wt({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,navbar:o,theme:d,mode:l}){const i=o?.width,c="translateX(calc(var(--app-shell-navbar-width) * -1))",h="translateX(var(--app-shell-navbar-width))";if(o?.breakpoint&&!o?.collapsed?.mobile&&(n[o?.breakpoint]=n[o?.breakpoint]||{},n[o?.breakpoint]["--app-shell-navbar-offset"]="0px",n[o?.breakpoint]["--app-shell-navbar-width"]="100%",l==="static"&&(n[o?.breakpoint]["--app-shell-navbar-grid-width"]="0px")),q(i)){const s=g(X(i));e["--app-shell-navbar-width"]=s,e["--app-shell-navbar-offset"]=s,l==="static"&&(e["--app-shell-navbar-grid-width"]=s)}if(K(i)&&(typeof i.base<"u"&&(e["--app-shell-navbar-width"]=g(i.base),e["--app-shell-navbar-offset"]=g(i.base),l==="static"&&(e["--app-shell-navbar-grid-width"]=g(i.base))),B(i).forEach(s=>{s!=="base"&&(t[s]=t[s]||{},t[s]["--app-shell-navbar-width"]=g(i[s]),t[s]["--app-shell-navbar-offset"]=g(i[s]),l==="static"&&(t[s]["--app-shell-navbar-grid-width"]=g(i[s])))})),o?.breakpoint&&l==="static"&&(t[o.breakpoint]=t[o.breakpoint]||{},t[o.breakpoint]["--app-shell-navbar-position"]="sticky",t[o.breakpoint]["--app-shell-navbar-grid-row"]="2",t[o.breakpoint]["--app-shell-navbar-grid-column"]="1",t[o.breakpoint]["--app-shell-main-column-start"]="2"),o?.collapsed?.desktop){const s=o.breakpoint;t[s]=t[s]||{},t[s]["--app-shell-navbar-transform"]=c,t[s]["--app-shell-navbar-transform-rtl"]=h,l==="fixed"?t[s]["--app-shell-navbar-offset"]="0px !important":(t[s]["--app-shell-navbar-width"]="0px",t[s]["--app-shell-navbar-display"]="none",t[s]["--app-shell-main-column-start"]="1")}if(o?.collapsed?.mobile){const s=Ee(o.breakpoint,d.breakpoints)-.1;n[s]=n[s]||{},n[s]["--app-shell-navbar-width"]="100%",n[s]["--app-shell-navbar-offset"]="0px",l==="static"&&(n[s]["--app-shell-navbar-grid-width"]="0px"),n[s]["--app-shell-navbar-transform"]=c,n[s]["--app-shell-navbar-transform-rtl"]=h}}function te(e){return Number(e)===0?"0px":Je(e)}function Vt({padding:e,baseStyles:t,minMediaStyles:n}){q(e)&&(t["--app-shell-padding"]=te(X(e))),K(e)&&(e.base&&(t["--app-shell-padding"]=te(e.base)),B(e).forEach(o=>{o!=="base"&&(n[o]=n[o]||{},n[o]["--app-shell-padding"]=te(e[o]))}))}function $t({navbar:e,header:t,footer:n,aside:o,padding:d,theme:l,mode:i}){const c={},h={},s={};i==="static"&&(s["--app-shell-main-grid-column"]="1 / -1",s["--app-shell-main-grid-row"]="2"),Wt({baseStyles:s,minMediaStyles:c,maxMediaStyles:h,navbar:e,theme:l,mode:i}),Bt({baseStyles:s,minMediaStyles:c,maxMediaStyles:h,aside:o,theme:l,mode:i}),Lt({baseStyles:s,minMediaStyles:c,header:t,mode:i}),Tt({baseStyles:s,minMediaStyles:c,footer:n,mode:i}),Vt({baseStyles:s,minMediaStyles:c,padding:d});const a=Ne(B(c),l.breakpoints).map(b=>({query:`(min-width: ${we(b.px)})`,styles:c[b.value]})),u=Ne(B(h),l.breakpoints).map(b=>({query:`(max-width: ${we(b.px)})`,styles:h[b.value]})),p=[...a,...u];return{baseStyles:s,media:p}}function Ft({navbar:e,header:t,aside:n,footer:o,padding:d,mode:l,selector:i}){const c=Me(),h=et(),{media:s,baseStyles:a}=$t({navbar:e,header:t,footer:o,aside:n,padding:d,theme:c,mode:l});return r.jsx(tt,{media:s,styles:a,selector:i||h.cssVariablesSelector})}const he=P((e,t)=>{const{classNames:n,className:o,style:d,styles:l,unstyled:i,vars:c,withBorder:h,zIndex:s,mod:a,...u}=z("AppShellNavbar",null,e),p=W();return p.disabled?null:r.jsx(I,{component:"nav",ref:t,mod:[{"with-border":h??p.withBorder},a],...p.getStyles("navbar",{className:o,classNames:n,styles:l,style:d}),...u,__vars:{"--app-shell-navbar-z-index":`calc(${s??p.zIndex} + 1)`}})});he.classes=E;he.displayName="@mantine/core/AppShellNavbar";const pe=ye((e,t)=>{const{classNames:n,className:o,style:d,styles:l,vars:i,grow:c,mod:h,...s}=z("AppShellSection",null,e),a=W();return r.jsx(I,{ref:t,mod:[{grow:c},h],...a.getStyles("section",{className:o,style:d,classNames:n,styles:l}),...s})});pe.classes=E;pe.displayName="@mantine/core/AppShellSection";function Ht({transitionDuration:e,disabled:t}){const[n,o]=f.useState(!0),d=f.useRef(-1),l=f.useRef(-1);return st("resize",()=>{o(!0),clearTimeout(d.current),d.current=window.setTimeout(()=>f.startTransition(()=>{o(!1)}),200)}),Pe(()=>{o(!0),clearTimeout(l.current),l.current=window.setTimeout(()=>f.startTransition(()=>{o(!1)}),e||0)},[t,e]),n}const Dt={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:ot("app"),mode:"fixed"},Ot=D((e,{transitionDuration:t,transitionTimingFunction:n})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":n}})),C=P((e,t)=>{const n=z("AppShell",Dt,e),{classNames:o,className:d,style:l,styles:i,unstyled:c,vars:h,navbar:s,withBorder:a,padding:u,transitionDuration:p,transitionTimingFunction:b,header:v,zIndex:x,layout:k,disabled:w,aside:N,footer:j,offsetScrollbars:y=!0,mode:R,mod:Q,attributes:G,id:Z,...J}=n,V=H({name:"AppShell",classes:E,props:n,className:d,style:l,classNames:o,styles:i,unstyled:c,attributes:G,vars:h,varsResolver:Ot}),L=Ht({disabled:w,transitionDuration:p}),$=nt(Z);return r.jsxs(_t,{value:{getStyles:V,withBorder:a,zIndex:x,disabled:w,offsetScrollbars:y,mode:R},children:[r.jsx(Ft,{navbar:s,header:v,aside:N,footer:j,padding:u,mode:R,selector:R==="static"?`#${$}`:void 0}),r.jsx(I,{ref:t,...V("root"),mod:[{resizing:L,layout:k,disabled:w,mode:R},Q],id:$,...J})]})});C.classes=E;C.displayName="@mantine/core/AppShell";C.Navbar=he;C.Header=de;C.Main=ue;C.Aside=le;C.Footer=ce;C.Section=pe;var _e={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const Xt=D((e,{color:t,size:n,lineSize:o,transitionDuration:d,transitionTimingFunction:l})=>({root:{"--burger-color":t?at(t,e):void 0,"--burger-size":oe(n,"burger-size"),"--burger-line-size":o?g(o):void 0,"--burger-transition-duration":d===void 0?void 0:`${d}ms`,"--burger-transition-timing-function":l}})),fe=P((e,t)=>{const n=z("Burger",null,e),{classNames:o,className:d,style:l,styles:i,unstyled:c,vars:h,opened:s,children:a,transitionDuration:u,transitionTimingFunction:p,lineSize:b,attributes:v,...x}=n,k=H({name:"Burger",classes:_e,props:n,className:d,style:l,classNames:o,styles:i,unstyled:c,attributes:v,vars:h,varsResolver:Xt});return r.jsxs(rt,{...k("root"),ref:t,...x,children:[r.jsx(I,{mod:["reduce-motion",{opened:s}],...k("burger")}),a]})});fe.classes=_e;fe.displayName="@mantine/core/Burger";var Be={root:"m_7485cace"};const qt=D((e,{size:t,fluid:n})=>({root:{"--container-size":n?void 0:oe(t,"container-size")}})),Y=P((e,t)=>{const n=z("Container",null,e),{classNames:o,className:d,style:l,styles:i,unstyled:c,vars:h,fluid:s,mod:a,attributes:u,strategy:p,...b}=n,v=H({name:"Container",classes:Be,props:n,className:d,style:l,classNames:o,styles:i,unstyled:c,attributes:u,vars:h,varsResolver:qt});return r.jsx(I,{ref:t,mod:[{fluid:s,strategy:p||"block"},a],...v("root"),...b})});Y.classes=Be;Y.displayName="@mantine/core/Container";var Te={root:"m_9e117634"};const Kt=D((e,{radius:t,fit:n})=>({root:{"--image-radius":t===void 0?void 0:it(t),"--image-object-fit":n}})),me=ye((e,t)=>{const n=z("Image",null,e),{classNames:o,className:d,style:l,styles:i,unstyled:c,vars:h,onError:s,src:a,radius:u,fit:p,fallbackSrc:b,mod:v,attributes:x,...k}=n,[w,N]=f.useState(!a);f.useEffect(()=>N(!a),[a]);const j=H({name:"Image",classes:Te,props:n,className:d,style:l,classNames:o,styles:i,unstyled:c,attributes:x,vars:h,varsResolver:Kt});return w&&b?r.jsx(I,{component:"img",ref:t,src:b,...j("root"),onError:s,mod:["fallback",v],...k}):r.jsx(I,{component:"img",ref:t,...j("root"),src:a,onError:y=>{s?.(y),N(!0)},mod:v,...k})});me.classes=Te;me.displayName="@mantine/core/Image";var Le={root:"m_dc6f14e2"};const Qt=D((e,{size:t})=>({root:{"--kbd-fz":oe(t,"kbd-fz")}})),be=P((e,t)=>{const n=z("Kbd",null,e),{classNames:o,className:d,style:l,styles:i,unstyled:c,vars:h,attributes:s,...a}=n,u=H({name:"Kbd",classes:Le,props:n,className:d,style:l,classNames:o,styles:i,unstyled:c,attributes:s,vars:h,varsResolver:Qt});return r.jsx(I,{component:"kbd",ref:t,...u("root"),...a})});be.classes=Le;be.displayName="@mantine/core/Kbd";const Ut=[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l6 6",key:"svg-1"}],["path",{d:"M5 12l6 -6",key:"svg-2"}]],Yt=T("outline","arrow-left","ArrowLeft",Ut);const Gt=[["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"}]],Zt=T("outline","language","Language",Gt);const Jt=[["path",{d:"M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",key:"svg-0"}],["path",{d:"M9 4v16",key:"svg-1"}],["path",{d:"M15 10l-2 2l2 2",key:"svg-2"}]],Mt=T("outline","layout-sidebar-left-collapse","LayoutSidebarLeftCollapse",Jt);const es=[["path",{d:"M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",key:"svg-0"}],["path",{d:"M15 4v16",key:"svg-1"}],["path",{d:"M9 10l2 2l-2 2",key:"svg-2"}]],ts=T("outline","layout-sidebar-right-collapse","LayoutSidebarRightCollapse",es);const ss=[["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.454l0 .008",key:"svg-0"}]],ns=T("outline","moon","Moon",ss);const os=[["path",{d:"M12 3c7.2 0 9 1.8 9 9c0 7.2 -1.8 9 -9 9c-7.2 0 -9 -1.8 -9 -9c0 -7.2 1.8 -9 9 -9",key:"svg-0"}]],rs=T("outline","square-rounded","SquareRounded",os);const as=[["path",{d:"M8 12a4 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"}]],is=T("outline","sun","Sun",as),ls=e=>{const t=O();return f.createElement("a",{...e,...t.anchor(e.href)},e.children)},cs=e=>{const[t,n]=re(ae);return r.jsx(fe,{opened:t.opened,onClick:()=>n({...t,opened:!t.opened}),hiddenFrom:"sm",size:"sm",...e})},We=e=>{const{setColorScheme:t}=Et(),n=()=>{const o=document.documentElement.getAttribute("data-mantine-color-scheme")??"light";t(o==="dark"?"light":"dark")};return r.jsx(S,{onClick:n,variant:e.variant??"subtle",size:e.size??"sm","aria-label":"Toggle color scheme",px:"xs",icon:r.jsxs(r.Fragment,{children:[r.jsx(is,{className:"alepha-light-hidden"}),r.jsx(ns,{className:"alepha-dark-hidden"})]}),...e})},ds=e=>{const t=wt();return r.jsx(S,{variant:"default",icon:Zt,menu:{items:t.languages.map(n=>({label:t.tr(n),onClick:()=>t.setLang(n),active:t.lang===n}))},...e})},ge=e=>{const t=Rt(),o=t==="macos"||t==="ios"?"⌘":"Ctrl";return e.collapsed?r.jsx(S,{variant:"subtle",onClick:ke.open,radius:"md",icon:r.jsx(Ce,{size:16}),tooltip:{label:"Search",position:"right"},...e.actionProps}):r.jsx(S,{variant:"default",onClick:ke.open,justify:"space-between",rightSection:r.jsxs(be,{visibleFrom:"sm",size:"sm",children:[r.jsx(lt,{children:o}),"+K"]}),radius:"md",...e.actionProps,children:r.jsxs(m,{align:"center",gap:"xs",children:[r.jsx(Ce,{size:16,color:"gray"}),r.jsx(m,{visibleFrom:"sm",miw:192,children:r.jsx(ie,{size:"xs",c:"dimmed",children:"Search..."})})]})})},us=e=>{const[t,n]=re(ae);return r.jsx(S,{icon:t.collapsed?r.jsx(ts,{}):r.jsx(Mt,{}),visibleFrom:"sm",variant:"subtle",size:"md",onClick:()=>{const o=t.collapsed;n({...t,collapsed:!t.collapsed,width:o?t.defaultWidth:t.width})},tooltip:{position:"right",label:t.collapsed?"Show sidebar":"Hide sidebar"},...e})},hs=e=>{const{items:t=[]}=e,n=O(),o=(a,u)=>{if(a.can&&!a.can())return null;if("type"in a){if(a.type==="burger")return r.jsx(cs,{},u);if(a.type==="dark")return r.jsx(We,{...a.props},u);if(a.type==="search")return r.jsx(ge,{...a.props},u);if(a.type==="lang")return r.jsx(ds,{...a.props},u);if(a.type==="spacer")return r.jsx(m,{w:16},u);if(a.type==="divider")return r.jsx(It,{orientation:"vertical"},u);if(a.type==="logo")return d(a,u);if(a.type==="back")return l(a,u)}return"element"in a?a.element:null},d=(a,u)=>{const{src:p,text:b,icon:v,href:x,height:k=32,width:w,fontWeight:N=700,fontSize:j="lg"}=a.props??{},y=p?r.jsx(me,{src:p,h:k,w,fit:"contain"}):v?typeof v=="function"?(()=>{const R=v;return r.jsx(R,{})})():v:b?r.jsx(ie,{fw:N,size:j,children:b}):null;return x?r.jsx(kt,{component:ls,href:x,underline:"never",c:"inherit",children:y},u):r.jsx(m,{children:y},u)},l=(a,u)=>{const{label:p="Back",iconOnly:b=!0,href:v,icon:x}=a.props??{},w=(()=>{if(!x)return r.jsx(Yt,{size:18});if(typeof x=="function"){const j=x;return r.jsx(j,{size:18})}return x})(),N=()=>{v?n.push(v):n.back()};return b?r.jsx(S,{icon:w,variant:"subtle",color:"gray",onClick:N,tooltip:{label:p,position:"bottom"}},u):r.jsx(S,{leftSection:w,variant:"subtle",color:"gray",onClick:N,children:p},u)},i=t.filter(a=>a.position==="left"),c=t.filter(a=>a.position==="center"),h=t.filter(a=>a.position==="right"),s=r.jsxs(m,{h:"100%",align:"center",px:e.container?0:"md",justify:"space-between",...e.flexProps,children:[r.jsx(m,{flex:1,children:i.map((a,u)=>r.jsx(m,{ml:u===0?0:"md",align:"center",children:o(a,u)},u))}),r.jsx(m,{children:c.map((a,u)=>r.jsx(m,{mx:"md",align:"center",children:o(a,u)},u))}),r.jsx(m,{flex:1,align:"center",justify:"end",children:h.map((a,u)=>r.jsx(m,{ml:u===0?0:"md",align:"center",children:o(a,u)},u))})]});if(e.container){const a=typeof e.container=="boolean"?{}:e.container;return r.jsx(Y,{h:"100%",...a,children:s})}return s},ps=e=>{const t=O(),{onItemClick:n}=e,o=s=>r.jsx(m,{h:1,bg:"var(--alepha-border)",my:"xs",mx:e.collapsed?0:"sm"},s),d=(s,a)=>{if("type"in s){if(s.type==="spacer")return e.collapsed?null:r.jsx(m,{h:16},a);if(s.type==="divider")return o(a);if(s.type==="search")return r.jsx(m,{mb:"xs",children:r.jsx(ge,{collapsed:e.collapsed})},a);if(s.type==="toggle")return r.jsx(us,{},a);if(s.type==="section")return e.collapsed?o(a):r.jsxs(m,{mt:"md",align:"center",gap:"xs",children:[U(s.icon),r.jsx(ie,{size:"xs",c:"dimmed",tt:"uppercase",fw:"bold",children:s.label})]},a)}return"element"in s?r.jsx(m,{children:s.element},a):s.can&&!s.can()?null:e.collapsed?r.jsx(fs,{item:s,level:0,onItemClick:n,theme:e.theme??{}},a):r.jsx(Ve,{item:s,level:0,onItemClick:n,theme:e.theme??{}},a)},l=()=>{if(e.items)return e.items;if(e.autoPopulateMenu){const s=t.concretePages.filter(a=>!a.can||a.can()).map(a=>({label:a.label??a.name,icon:U(a.icon),href:t.path(a.name)}));if(typeof e.autoPopulateMenu=="object"&&e.autoPopulateMenu.startsWith){const a=e.autoPopulateMenu.startsWith;return s.filter(u=>u.href?.startsWith(a))}return s}return[]},i="md",c=e.items?e.gap??2:"xs",h=f.useMemo(()=>l(),[e.items,e.autoPopulateMenu]);return r.jsxs(m,{flex:1,py:i,direction:"column",className:"alepha-sidebar-scroll",...e.flexProps,children:[r.jsx(m,{gap:c,px:i,direction:"column",children:h.filter(s=>s.position==="top").map((s,a)=>d(s,a))}),r.jsx(m,{gap:c,px:i,direction:"column",flex:1,className:"alepha-sidebar-scroll",children:h.filter(s=>!s.position).map((s,a)=>d(s,a))}),r.jsx(m,{gap:c,px:i,direction:"column",children:h.filter(s=>s.position==="bottom").map((s,a)=>d(s,a))})]})},Ve=e=>{const{item:t,level:n}=e,o=2,d=O(),l=f.useCallback(s=>{if(!s.children)return!1;for(const a of s.children)if(a.href&&d.isActive(a.href)||l(a))return!0;return!1},[]),[i,c]=f.useState(l(t));if(Re({"react:transition:end":()=>{l(t)&&c(!0)}},[]),n>o)return null;const h=s=>{e.item.target||s.preventDefault(),t.children&&t.children.length>0?c(!i):(e.onItemClick?.(t),t.onClick?.())};return r.jsxs(m,{direction:"column",ps:n===0?0:32,pos:"relative",children:[r.jsx(S,{w:"100%",justify:"space-between",href:e.item.href,target:e.item.target,size:e.item.theme?.size??e.theme.button?.size??(n===0?"sm":"xs"),tooltip:t.description,c:"var(--mantine-color-text)",color:"gray",variant:"subtle",variantActive:"default",radius:e.item.theme?.radius??e.theme.button?.radius??"md",onClick:h,leftSection:r.jsxs(m,{w:"100%",align:"center",gap:"sm",children:[U(t.icon),r.jsx(m,{direction:"column",children:r.jsx(m,{children:t.label})})]}),rightSection:t.children?r.jsx(m,{children:i?r.jsx(ct,{size:14}):r.jsx(dt,{size:14})}):e.item.rightSection,...e.item.actionProps}),t.children&&i&&r.jsxs(m,{direction:"column","data-parent-level":n,children:[r.jsx(m,{style:{position:"absolute",width:1,background:"linear-gradient(to bottom, transparent, var(--alepha-border), transparent)",top:48,left:20+32*n,bottom:16}}),t.children.filter(s=>!s.can||s.can()).map((s,a)=>r.jsx(Ve,{item:s,level:n+1,onItemClick:e.onItemClick,theme:e.theme},a))]})]})},fs=e=>{const{item:t,level:n}=e,o=()=>{e.onItemClick?.(t),t.onClick?.()};return r.jsx(S,{size:e.item.theme?.size??e.theme.button?.size??(n===0?"sm":"xs"),variant:"subtle",variantActive:"default",tooltip:{label:t.label,position:"right"},radius:e.item.theme?.radius??e.theme.button?.radius??"md",onClick:o,icon:U(t.icon)??r.jsx(rs,{}),href:e.item.href,target:e.item.target,...e.item.actionProps})},ms=e=>{const t=O(),[n,o]=re(ae),{opened:d,collapsed:l}=n;f.useEffect(()=>{e.sidebarProps?.collapsed!==void 0&&o({...n,collapsed:e.sidebarProps.collapsed})},[]);const[i,c]=f.useState(!1),[h,s]=f.useState(!1),[a,u]=f.useState({offset:0,opacity:1}),p=f.useRef(null),{collapsedWidth:b,collapseThreshold:v,maxWidth:x,hoverDelay:k,defaultWidth:w}=n,N=f.useCallback(A=>{e.sidebarResizable&&(A.preventDefault(),l?(o({...n,collapsed:!1,width:w}),c(!0),p.current={startX:A.clientX,startWidth:w}):(c(!0),p.current={startX:A.clientX,startWidth:n.width}))},[e.sidebarResizable,l,n,o,w]);f.useEffect(()=>{if(!i)return;const A=qe=>{if(!p.current)return;const Ke=qe.clientX-p.current.startX,ee=p.current.startWidth+Ke,Qe=Math.min(Math.max(ee,b),x);if(ee<v){const je=Math.max(0,(v-ee)/v);u({offset:-je*b,opacity:1-je*.7}),o({...n,width:v,collapsed:!1})}else u({offset:0,opacity:1}),o({...n,width:Qe,collapsed:!1})},xe=()=>{a.offset<0&&o({...n,collapsed:!0}),u({offset:0,opacity:1}),c(!1),p.current=null};return document.addEventListener("mousemove",A),document.addEventListener("mouseup",xe),()=>{document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",xe)}},[i,n,o,b,x,v,a.offset]);const j=f.useRef(null),y=f.useCallback(()=>{l&&(j.current=setTimeout(()=>{s(!0)},k))},[l,k]),R=f.useCallback(()=>{j.current&&(clearTimeout(j.current),j.current=null),s(!1)},[]);f.useEffect(()=>{l&&(s(!1),j.current&&(clearTimeout(j.current),j.current=null))},[l]);const Q=()=>{if(e.noSidebarWhen?.paths){for(const A of e.noSidebarWhen.paths)if(t.isActive(A,{startWith:!0}))return!1}return!0},[G,Z]=f.useState(Q());Re({"react:transition:end":()=>{Z(Q())},"react:transition:begin":()=>{o({...n,opened:!1})}},[n]);const J=[{position:"left",type:"burger"}],V={...e.appBarProps};V.container??=e.container;const L=G&&e.sidebarProps!==void 0,$=L||e.appBarProps||e.header,$e=$?60:0,Fe=e.footer?24:0,ve=Math.max(n.width,b),_=l&&h,M=l&&!h,He=f.useCallback(A=>{_&&s(!1),e.sidebarProps?.onItemClick?.(A)},[_,e.sidebarProps?.onItemClick]),De=Math.max(w,b),Oe=L?M||_?b:ve:0,Xe=e.sidebarResizable&&!l;return r.jsxs(C,{w:"100%",flex:1,padding:"md",header:$?{height:60}:void 0,navbar:L?{width:M||_?{base:b}:{base:ve},breakpoint:"sm",collapsed:{mobile:!d}}:void 0,footer:e.footer?{height:24}:void 0,...e.appShellProps,children:[r.jsx(C.Header,{bg:F.colors.surface,...e.appShellHeaderProps,children:e.header??r.jsx(hs,{items:J,...V})}),L&&r.jsxs(C.Navbar,{bg:F.colors.surface,className:"alepha-sidebar-navbar","data-resizing":i,"data-hover-expanded":_,onMouseEnter:y,onMouseLeave:R,style:{transform:a.offset?`translateX(${a.offset}px)`:void 0,opacity:a.opacity,..._&&{width:De,zIndex:200,boxShadow:"var(--mantine-shadow-xl)"}},...e.appShellNavbarProps,children:[r.jsx(ps,{...e.sidebarProps??{},collapsed:M,onItemClick:He}),(Xe||_)&&r.jsx(m,{pos:"absolute",right:-6,top:0,bottom:0,w:12,style:{cursor:"col-resize",userSelect:"none"},onMouseDown:N})]}),r.jsx(C.Main,{pl:Oe,pt:$e,pb:Fe,pr:0,display:"flex",flex:1,style:{flexDirection:"column"},className:"alepha-sidebar-main","data-resizing":i,...e.appShellMainProps,children:e.container?r.jsx(Y,{w:"100%",flex:1,display:"flex",style:{flexDirection:"column"},...typeof e.container=="boolean"?{}:e.container,children:e.children??r.jsx(Ie,{})}):e.children??r.jsx(Ie,{})}),e.footer&&r.jsx(C.Footer,{bg:F.colors.surface,...e.appShellFooterProps,children:e.footer})]})},Is=()=>r.jsx(ms,{appShellHeaderProps:{bg:F.colors.background},appShellNavbarProps:{bg:F.colors.background},sidebarResizable:!0,sidebarProps:{items:[{label:"Dashboard",icon:r.jsx(ut,{}),href:"/"},{type:"divider"},{label:"Actions",icon:r.jsx(ht,{}),href:"/actions"},{label:"Queues",icon:r.jsx(pt,{}),href:"/queues"},{label:"Topics",icon:r.jsx(ft,{}),href:"/topics"},{label:"Caches",icon:r.jsx(mt,{}),href:"/caches"},{label:"DB Studio",icon:r.jsx(bt,{}),href:"/db"},{type:"divider"},{label:"Environment",icon:r.jsx(gt,{}),href:"/env"},{label:"Atoms",icon:r.jsx(vt,{}),href:"/atoms"},{type:"divider"},{label:"Graph",icon:r.jsx(xt,{}),href:"/graph"},{label:"Logs",icon:r.jsx(jt,{}),href:"/logs"}]},appBarProps:{items:[{position:"left",type:"burger"},{position:"left",element:r.jsx(m,{h:"60px",w:"78px",style:{marginLeft:"-32px",borderRight:"1px solid var(--mantine-color-default-border)"}})},{position:"left",element:r.jsx(ge,{actionProps:{variant:"outline",bd:"1px solid var(--mantine-color-default-border)"}})},{position:"right",element:r.jsx(We,{})}]}});export{Is as DevLayout,Is as default};
|
|
1
|
+
import{u as Ue,r as f,a as Pe,M as Ye,b as Ge,c as Ze,f as P,d as z,j as r,B as I,e as se,R as ne,g,k as B,h as Je,i as we,l as Me,m as et,I as tt,p as ye,n as st,o as H,q as nt,s as ot,t as D,U as rt,v as oe,w as at,x as it,y as T,z as O,A as re,C as ae,D as ke,E as Ce,F as m,T as ie,G as lt,H as U,J as Re,K as ct,L as dt,N as F,O as Ie,P as ut,Q as ht,S as pt,V as ft,W as mt,X as bt,Y as gt,Z as vt,_ as xt,$ as jt}from"./entry.DhzNl8q_.js";import{g as Ee,a as Ne,A as S,u as wt,b as kt}from"./chunk.A_W3H6Aa.js";import{n as Ct}from"./chunk.BjFrJKj1.js";import{D as It}from"./chunk.BUs1kuwE.js";import"./chunk.DfzRLqwW.js";import"./chunk.BlqFPyLh.js";import"./chunk.HFLdduaf.js";import"./chunk.C63rzhbT.js";function Nt(e,t){return Ue("(prefers-color-scheme: dark)",e==="dark",t)?"dark":"light"}function ze(e){return/(Macintosh)|(MacIntel)|(MacPPC)|(Mac68K)/i.test(e)}function zt(e){return/(iPhone)|(iPad)|(iPod)/i.test(e)}function At(e){return/(Win32)|(Win64)|(Windows)|(WinCE)/i.test(e)}function St(e){return/Android/i.test(e)}function Pt(e){return/Linux/i.test(e)}function yt(e){return/CrOS/i.test(e)}function Ae(){if(typeof window>"u")return"undetermined";const{userAgent:e}=window.navigator;return zt(e)||ze(e)&&"ontouchend"in document?"ios":ze(e)?"macos":At(e)?"windows":St(e)?"android":Pt(e)?"linux":yt(e)?"chromeos":"undetermined"}function Rt(e={getValueInEffect:!0}){const[t,n]=f.useState(e.getValueInEffect?"undetermined":Ae());return Pe(()=>{e.getValueInEffect&&n(Ae)},[]),t}function Se(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(o=>o.remove())}function Et({keepTransitions:e}={}){const t=f.useRef(Ct),n=f.useRef(-1),o=f.useContext(Ye),d=Ge(),l=f.useRef(d?.());if(!o)throw new Error("[@mantine/core] MantineProvider was not found in tree");const i=u=>{o.setColorScheme(u),t.current=e?()=>{}:Se(l.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},c=()=>{o.clearColorScheme(),t.current=e?()=>{}:Se(l.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},h=Nt("light",{getInitialValueInEffect:!1}),s=o.colorScheme==="auto"?h:o.colorScheme,a=f.useCallback(()=>i(s==="light"?"dark":"light"),[i,s]);return f.useEffect(()=>()=>{t.current?.(),window.clearTimeout(n.current)},[]),{colorScheme:o.colorScheme,setColorScheme:i,clearColorScheme:c,toggleColorScheme:a}}const[_t,W]=Ze("AppShell was not found in tree");var E={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const le=P((e,t)=>{const{classNames:n,className:o,style:d,styles:l,unstyled:i,vars:c,withBorder:h,zIndex:s,mod:a,...u}=z("AppShellAside",null,e),p=W();return p.disabled?null:r.jsx(I,{component:"aside",ref:t,mod:[{"with-border":h??p.withBorder},a],...p.getStyles("aside",{className:se({[ne.classNames.zeroRight]:p.offsetScrollbars},o),classNames:n,styles:l,style:d}),...u,__vars:{"--app-shell-aside-z-index":`calc(${s??p.zIndex} + 1)`}})});le.classes=E;le.displayName="@mantine/core/AppShellAside";const ce=P((e,t)=>{const{classNames:n,className:o,style:d,styles:l,unstyled:i,vars:c,withBorder:h,zIndex:s,mod:a,...u}=z("AppShellFooter",null,e),p=W();return p.disabled?null:r.jsx(I,{component:"footer",ref:t,mod:[{"with-border":h??p.withBorder},a],...p.getStyles("footer",{className:se({[ne.classNames.zeroRight]:p.offsetScrollbars},o),classNames:n,styles:l,style:d}),...u,__vars:{"--app-shell-footer-z-index":(s??p.zIndex)?.toString()}})});ce.classes=E;ce.displayName="@mantine/core/AppShellFooter";const de=P((e,t)=>{const{classNames:n,className:o,style:d,styles:l,unstyled:i,vars:c,withBorder:h,zIndex:s,mod:a,...u}=z("AppShellHeader",null,e),p=W();return p.disabled?null:r.jsx(I,{component:"header",ref:t,mod:[{"with-border":h??p.withBorder},a],...p.getStyles("header",{className:se({[ne.classNames.zeroRight]:p.offsetScrollbars},o),classNames:n,styles:l,style:d}),...u,__vars:{"--app-shell-header-z-index":(s??p.zIndex)?.toString()}})});de.classes=E;de.displayName="@mantine/core/AppShellHeader";const ue=P((e,t)=>{const{classNames:n,className:o,style:d,styles:l,vars:i,...c}=z("AppShellMain",null,e),h=W();return r.jsx(I,{component:"main",ref:t,...h.getStyles("main",{className:o,style:d,classNames:n,styles:l}),...c})});ue.classes=E;ue.displayName="@mantine/core/AppShellMain";function X(e){return typeof e=="object"?e.base:e}function q(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 K(e){return!(typeof e!="object"||e===null||Object.keys(e).length===1&&"base"in e)}function Bt({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,aside:o,theme:d,mode:l}){const i=o?.width,c="translateX(var(--app-shell-aside-width))",h="translateX(calc(var(--app-shell-aside-width) * -1))";if(o?.breakpoint&&!o?.collapsed?.mobile&&(n[o?.breakpoint]=n[o?.breakpoint]||{},l==="fixed"?(n[o?.breakpoint]["--app-shell-aside-width"]="100%",n[o?.breakpoint]["--app-shell-aside-offset"]="0px"):(n[o?.breakpoint]["--app-shell-aside-width"]="0px",n[o?.breakpoint]["--app-shell-aside-offset"]="0px")),q(i)){const s=g(X(i));e["--app-shell-aside-width"]=s,e["--app-shell-aside-offset"]=s}if(K(i)&&(typeof i.base<"u"&&(e["--app-shell-aside-width"]=g(i.base),e["--app-shell-aside-offset"]=g(i.base)),B(i).forEach(s=>{s!=="base"&&(t[s]=t[s]||{},t[s]["--app-shell-aside-width"]=g(i[s]),t[s]["--app-shell-aside-offset"]=g(i[s]))})),o?.breakpoint&&l==="static"&&(t[o.breakpoint]=t[o.breakpoint]||{},t[o.breakpoint]["--app-shell-aside-position"]="sticky",t[o.breakpoint]["--app-shell-aside-grid-row"]="2",t[o.breakpoint]["--app-shell-aside-grid-column"]="3",t[o.breakpoint]["--app-shell-main-column-end"]="3"),o?.collapsed?.desktop){const s=o.breakpoint;t[s]=t[s]||{},t[s]["--app-shell-aside-transform"]=c,t[s]["--app-shell-aside-transform-rtl"]=h,l==="fixed"?t[s]["--app-shell-aside-offset"]="0px !important":(t[s]["--app-shell-aside-width"]="0px",t[s]["--app-shell-aside-display"]="none",t[s]["--app-shell-main-column-end"]="-1"),t[s]["--app-shell-aside-scroll-locked-visibility"]="hidden"}if(o?.collapsed?.mobile){const s=Ee(o.breakpoint,d.breakpoints)-.1;n[s]=n[s]||{},l==="fixed"?(n[s]["--app-shell-aside-width"]="100%",n[s]["--app-shell-aside-offset"]="0px"):n[s]["--app-shell-aside-width"]="0px",n[s]["--app-shell-aside-transform"]=c,n[s]["--app-shell-aside-transform-rtl"]=h,n[s]["--app-shell-aside-scroll-locked-visibility"]="hidden"}}function Tt({baseStyles:e,minMediaStyles:t,footer:n,mode:o}){const d=n?.height,l="translateY(var(--app-shell-footer-height))",i=o==="static"?!0:n?.offset??!0;if(o==="static"&&n&&(e["--app-shell-footer-position"]="sticky",e["--app-shell-footer-grid-column"]="1 / -1",e["--app-shell-footer-grid-row"]="3"),q(d)){const c=g(X(d));e["--app-shell-footer-height"]=c,i&&(e["--app-shell-footer-offset"]=c)}K(d)&&(typeof d.base<"u"&&(e["--app-shell-footer-height"]=g(d.base),i&&(e["--app-shell-footer-offset"]=g(d.base))),B(d).forEach(c=>{c!=="base"&&(t[c]=t[c]||{},t[c]["--app-shell-footer-height"]=g(d[c]),i&&(t[c]["--app-shell-footer-offset"]=g(d[c])))})),n?.collapsed&&(e["--app-shell-footer-transform"]=l,o==="fixed"&&(e["--app-shell-footer-offset"]="0px !important"))}function Lt({baseStyles:e,minMediaStyles:t,header:n,mode:o}){const d=n?.height,l="translateY(calc(var(--app-shell-header-height) * -1))",i=o==="static"?!0:n?.offset??!0;if(o==="static"&&n&&(e["--app-shell-header-position"]="sticky",e["--app-shell-header-grid-column"]="1 / -1",e["--app-shell-header-grid-row"]="1"),q(d)){const c=g(X(d));e["--app-shell-header-height"]=c,i&&(e["--app-shell-header-offset"]=c)}K(d)&&(typeof d.base<"u"&&(e["--app-shell-header-height"]=g(d.base),i&&(e["--app-shell-header-offset"]=g(d.base))),B(d).forEach(c=>{c!=="base"&&(t[c]=t[c]||{},t[c]["--app-shell-header-height"]=g(d[c]),i&&(t[c]["--app-shell-header-offset"]=g(d[c])))})),n?.collapsed&&(e["--app-shell-header-transform"]=l,o==="fixed"&&(e["--app-shell-header-offset"]="0px !important"))}function Wt({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,navbar:o,theme:d,mode:l}){const i=o?.width,c="translateX(calc(var(--app-shell-navbar-width) * -1))",h="translateX(var(--app-shell-navbar-width))";if(o?.breakpoint&&!o?.collapsed?.mobile&&(n[o?.breakpoint]=n[o?.breakpoint]||{},n[o?.breakpoint]["--app-shell-navbar-offset"]="0px",n[o?.breakpoint]["--app-shell-navbar-width"]="100%",l==="static"&&(n[o?.breakpoint]["--app-shell-navbar-grid-width"]="0px")),q(i)){const s=g(X(i));e["--app-shell-navbar-width"]=s,e["--app-shell-navbar-offset"]=s,l==="static"&&(e["--app-shell-navbar-grid-width"]=s)}if(K(i)&&(typeof i.base<"u"&&(e["--app-shell-navbar-width"]=g(i.base),e["--app-shell-navbar-offset"]=g(i.base),l==="static"&&(e["--app-shell-navbar-grid-width"]=g(i.base))),B(i).forEach(s=>{s!=="base"&&(t[s]=t[s]||{},t[s]["--app-shell-navbar-width"]=g(i[s]),t[s]["--app-shell-navbar-offset"]=g(i[s]),l==="static"&&(t[s]["--app-shell-navbar-grid-width"]=g(i[s])))})),o?.breakpoint&&l==="static"&&(t[o.breakpoint]=t[o.breakpoint]||{},t[o.breakpoint]["--app-shell-navbar-position"]="sticky",t[o.breakpoint]["--app-shell-navbar-grid-row"]="2",t[o.breakpoint]["--app-shell-navbar-grid-column"]="1",t[o.breakpoint]["--app-shell-main-column-start"]="2"),o?.collapsed?.desktop){const s=o.breakpoint;t[s]=t[s]||{},t[s]["--app-shell-navbar-transform"]=c,t[s]["--app-shell-navbar-transform-rtl"]=h,l==="fixed"?t[s]["--app-shell-navbar-offset"]="0px !important":(t[s]["--app-shell-navbar-width"]="0px",t[s]["--app-shell-navbar-display"]="none",t[s]["--app-shell-main-column-start"]="1")}if(o?.collapsed?.mobile){const s=Ee(o.breakpoint,d.breakpoints)-.1;n[s]=n[s]||{},n[s]["--app-shell-navbar-width"]="100%",n[s]["--app-shell-navbar-offset"]="0px",l==="static"&&(n[s]["--app-shell-navbar-grid-width"]="0px"),n[s]["--app-shell-navbar-transform"]=c,n[s]["--app-shell-navbar-transform-rtl"]=h}}function te(e){return Number(e)===0?"0px":Je(e)}function Vt({padding:e,baseStyles:t,minMediaStyles:n}){q(e)&&(t["--app-shell-padding"]=te(X(e))),K(e)&&(e.base&&(t["--app-shell-padding"]=te(e.base)),B(e).forEach(o=>{o!=="base"&&(n[o]=n[o]||{},n[o]["--app-shell-padding"]=te(e[o]))}))}function $t({navbar:e,header:t,footer:n,aside:o,padding:d,theme:l,mode:i}){const c={},h={},s={};i==="static"&&(s["--app-shell-main-grid-column"]="1 / -1",s["--app-shell-main-grid-row"]="2"),Wt({baseStyles:s,minMediaStyles:c,maxMediaStyles:h,navbar:e,theme:l,mode:i}),Bt({baseStyles:s,minMediaStyles:c,maxMediaStyles:h,aside:o,theme:l,mode:i}),Lt({baseStyles:s,minMediaStyles:c,header:t,mode:i}),Tt({baseStyles:s,minMediaStyles:c,footer:n,mode:i}),Vt({baseStyles:s,minMediaStyles:c,padding:d});const a=Ne(B(c),l.breakpoints).map(b=>({query:`(min-width: ${we(b.px)})`,styles:c[b.value]})),u=Ne(B(h),l.breakpoints).map(b=>({query:`(max-width: ${we(b.px)})`,styles:h[b.value]})),p=[...a,...u];return{baseStyles:s,media:p}}function Ft({navbar:e,header:t,aside:n,footer:o,padding:d,mode:l,selector:i}){const c=Me(),h=et(),{media:s,baseStyles:a}=$t({navbar:e,header:t,footer:o,aside:n,padding:d,theme:c,mode:l});return r.jsx(tt,{media:s,styles:a,selector:i||h.cssVariablesSelector})}const he=P((e,t)=>{const{classNames:n,className:o,style:d,styles:l,unstyled:i,vars:c,withBorder:h,zIndex:s,mod:a,...u}=z("AppShellNavbar",null,e),p=W();return p.disabled?null:r.jsx(I,{component:"nav",ref:t,mod:[{"with-border":h??p.withBorder},a],...p.getStyles("navbar",{className:o,classNames:n,styles:l,style:d}),...u,__vars:{"--app-shell-navbar-z-index":`calc(${s??p.zIndex} + 1)`}})});he.classes=E;he.displayName="@mantine/core/AppShellNavbar";const pe=ye((e,t)=>{const{classNames:n,className:o,style:d,styles:l,vars:i,grow:c,mod:h,...s}=z("AppShellSection",null,e),a=W();return r.jsx(I,{ref:t,mod:[{grow:c},h],...a.getStyles("section",{className:o,style:d,classNames:n,styles:l}),...s})});pe.classes=E;pe.displayName="@mantine/core/AppShellSection";function Ht({transitionDuration:e,disabled:t}){const[n,o]=f.useState(!0),d=f.useRef(-1),l=f.useRef(-1);return st("resize",()=>{o(!0),clearTimeout(d.current),d.current=window.setTimeout(()=>f.startTransition(()=>{o(!1)}),200)}),Pe(()=>{o(!0),clearTimeout(l.current),l.current=window.setTimeout(()=>f.startTransition(()=>{o(!1)}),e||0)},[t,e]),n}const Dt={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:ot("app"),mode:"fixed"},Ot=D((e,{transitionDuration:t,transitionTimingFunction:n})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":n}})),C=P((e,t)=>{const n=z("AppShell",Dt,e),{classNames:o,className:d,style:l,styles:i,unstyled:c,vars:h,navbar:s,withBorder:a,padding:u,transitionDuration:p,transitionTimingFunction:b,header:v,zIndex:x,layout:k,disabled:w,aside:N,footer:j,offsetScrollbars:y=!0,mode:R,mod:Q,attributes:G,id:Z,...J}=n,V=H({name:"AppShell",classes:E,props:n,className:d,style:l,classNames:o,styles:i,unstyled:c,attributes:G,vars:h,varsResolver:Ot}),L=Ht({disabled:w,transitionDuration:p}),$=nt(Z);return r.jsxs(_t,{value:{getStyles:V,withBorder:a,zIndex:x,disabled:w,offsetScrollbars:y,mode:R},children:[r.jsx(Ft,{navbar:s,header:v,aside:N,footer:j,padding:u,mode:R,selector:R==="static"?`#${$}`:void 0}),r.jsx(I,{ref:t,...V("root"),mod:[{resizing:L,layout:k,disabled:w,mode:R},Q],id:$,...J})]})});C.classes=E;C.displayName="@mantine/core/AppShell";C.Navbar=he;C.Header=de;C.Main=ue;C.Aside=le;C.Footer=ce;C.Section=pe;var _e={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const Xt=D((e,{color:t,size:n,lineSize:o,transitionDuration:d,transitionTimingFunction:l})=>({root:{"--burger-color":t?at(t,e):void 0,"--burger-size":oe(n,"burger-size"),"--burger-line-size":o?g(o):void 0,"--burger-transition-duration":d===void 0?void 0:`${d}ms`,"--burger-transition-timing-function":l}})),fe=P((e,t)=>{const n=z("Burger",null,e),{classNames:o,className:d,style:l,styles:i,unstyled:c,vars:h,opened:s,children:a,transitionDuration:u,transitionTimingFunction:p,lineSize:b,attributes:v,...x}=n,k=H({name:"Burger",classes:_e,props:n,className:d,style:l,classNames:o,styles:i,unstyled:c,attributes:v,vars:h,varsResolver:Xt});return r.jsxs(rt,{...k("root"),ref:t,...x,children:[r.jsx(I,{mod:["reduce-motion",{opened:s}],...k("burger")}),a]})});fe.classes=_e;fe.displayName="@mantine/core/Burger";var Be={root:"m_7485cace"};const qt=D((e,{size:t,fluid:n})=>({root:{"--container-size":n?void 0:oe(t,"container-size")}})),Y=P((e,t)=>{const n=z("Container",null,e),{classNames:o,className:d,style:l,styles:i,unstyled:c,vars:h,fluid:s,mod:a,attributes:u,strategy:p,...b}=n,v=H({name:"Container",classes:Be,props:n,className:d,style:l,classNames:o,styles:i,unstyled:c,attributes:u,vars:h,varsResolver:qt});return r.jsx(I,{ref:t,mod:[{fluid:s,strategy:p||"block"},a],...v("root"),...b})});Y.classes=Be;Y.displayName="@mantine/core/Container";var Te={root:"m_9e117634"};const Kt=D((e,{radius:t,fit:n})=>({root:{"--image-radius":t===void 0?void 0:it(t),"--image-object-fit":n}})),me=ye((e,t)=>{const n=z("Image",null,e),{classNames:o,className:d,style:l,styles:i,unstyled:c,vars:h,onError:s,src:a,radius:u,fit:p,fallbackSrc:b,mod:v,attributes:x,...k}=n,[w,N]=f.useState(!a);f.useEffect(()=>N(!a),[a]);const j=H({name:"Image",classes:Te,props:n,className:d,style:l,classNames:o,styles:i,unstyled:c,attributes:x,vars:h,varsResolver:Kt});return w&&b?r.jsx(I,{component:"img",ref:t,src:b,...j("root"),onError:s,mod:["fallback",v],...k}):r.jsx(I,{component:"img",ref:t,...j("root"),src:a,onError:y=>{s?.(y),N(!0)},mod:v,...k})});me.classes=Te;me.displayName="@mantine/core/Image";var Le={root:"m_dc6f14e2"};const Qt=D((e,{size:t})=>({root:{"--kbd-fz":oe(t,"kbd-fz")}})),be=P((e,t)=>{const n=z("Kbd",null,e),{classNames:o,className:d,style:l,styles:i,unstyled:c,vars:h,attributes:s,...a}=n,u=H({name:"Kbd",classes:Le,props:n,className:d,style:l,classNames:o,styles:i,unstyled:c,attributes:s,vars:h,varsResolver:Qt});return r.jsx(I,{component:"kbd",ref:t,...u("root"),...a})});be.classes=Le;be.displayName="@mantine/core/Kbd";const Ut=[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l6 6",key:"svg-1"}],["path",{d:"M5 12l6 -6",key:"svg-2"}]],Yt=T("outline","arrow-left","ArrowLeft",Ut);const Gt=[["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"}]],Zt=T("outline","language","Language",Gt);const Jt=[["path",{d:"M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",key:"svg-0"}],["path",{d:"M9 4v16",key:"svg-1"}],["path",{d:"M15 10l-2 2l2 2",key:"svg-2"}]],Mt=T("outline","layout-sidebar-left-collapse","LayoutSidebarLeftCollapse",Jt);const es=[["path",{d:"M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",key:"svg-0"}],["path",{d:"M15 4v16",key:"svg-1"}],["path",{d:"M9 10l2 2l-2 2",key:"svg-2"}]],ts=T("outline","layout-sidebar-right-collapse","LayoutSidebarRightCollapse",es);const ss=[["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.454l0 .008",key:"svg-0"}]],ns=T("outline","moon","Moon",ss);const os=[["path",{d:"M12 3c7.2 0 9 1.8 9 9c0 7.2 -1.8 9 -9 9c-7.2 0 -9 -1.8 -9 -9c0 -7.2 1.8 -9 9 -9",key:"svg-0"}]],rs=T("outline","square-rounded","SquareRounded",os);const as=[["path",{d:"M8 12a4 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"}]],is=T("outline","sun","Sun",as),ls=e=>{const t=O();return f.createElement("a",{...e,...t.anchor(e.href)},e.children)},cs=e=>{const[t,n]=re(ae);return r.jsx(fe,{opened:t.opened,onClick:()=>n({...t,opened:!t.opened}),hiddenFrom:"sm",size:"sm",...e})},We=e=>{const{setColorScheme:t}=Et(),n=()=>{const o=document.documentElement.getAttribute("data-mantine-color-scheme")??"light";t(o==="dark"?"light":"dark")};return r.jsx(S,{onClick:n,variant:e.variant??"subtle",size:e.size??"sm","aria-label":"Toggle color scheme",px:"xs",icon:r.jsxs(r.Fragment,{children:[r.jsx(is,{className:"alepha-light-hidden"}),r.jsx(ns,{className:"alepha-dark-hidden"})]}),...e})},ds=e=>{const t=wt();return r.jsx(S,{variant:"default",icon:Zt,menu:{items:t.languages.map(n=>({label:t.tr(n),onClick:()=>t.setLang(n),active:t.lang===n}))},...e})},ge=e=>{const t=Rt(),o=t==="macos"||t==="ios"?"⌘":"Ctrl";return e.collapsed?r.jsx(S,{variant:"subtle",onClick:ke.open,radius:"md",icon:r.jsx(Ce,{size:16}),tooltip:{label:"Search",position:"right"},...e.actionProps}):r.jsx(S,{variant:"default",onClick:ke.open,justify:"space-between",rightSection:r.jsxs(be,{visibleFrom:"sm",size:"sm",children:[r.jsx(lt,{children:o}),"+K"]}),radius:"md",...e.actionProps,children:r.jsxs(m,{align:"center",gap:"xs",children:[r.jsx(Ce,{size:16,color:"gray"}),r.jsx(m,{visibleFrom:"sm",miw:192,children:r.jsx(ie,{size:"xs",c:"dimmed",children:"Search..."})})]})})},us=e=>{const[t,n]=re(ae);return r.jsx(S,{icon:t.collapsed?r.jsx(ts,{}):r.jsx(Mt,{}),visibleFrom:"sm",variant:"subtle",size:"md",onClick:()=>{const o=t.collapsed;n({...t,collapsed:!t.collapsed,width:o?t.defaultWidth:t.width})},tooltip:{position:"right",label:t.collapsed?"Show sidebar":"Hide sidebar"},...e})},hs=e=>{const{items:t=[]}=e,n=O(),o=(a,u)=>{if(a.can&&!a.can())return null;if("type"in a){if(a.type==="burger")return r.jsx(cs,{},u);if(a.type==="dark")return r.jsx(We,{...a.props},u);if(a.type==="search")return r.jsx(ge,{...a.props},u);if(a.type==="lang")return r.jsx(ds,{...a.props},u);if(a.type==="spacer")return r.jsx(m,{w:16},u);if(a.type==="divider")return r.jsx(It,{orientation:"vertical"},u);if(a.type==="logo")return d(a,u);if(a.type==="back")return l(a,u)}return"element"in a?a.element:null},d=(a,u)=>{const{src:p,text:b,icon:v,href:x,height:k=32,width:w,fontWeight:N=700,fontSize:j="lg"}=a.props??{},y=p?r.jsx(me,{src:p,h:k,w,fit:"contain"}):v?typeof v=="function"?(()=>{const R=v;return r.jsx(R,{})})():v:b?r.jsx(ie,{fw:N,size:j,children:b}):null;return x?r.jsx(kt,{component:ls,href:x,underline:"never",c:"inherit",children:y},u):r.jsx(m,{children:y},u)},l=(a,u)=>{const{label:p="Back",iconOnly:b=!0,href:v,icon:x}=a.props??{},w=(()=>{if(!x)return r.jsx(Yt,{size:18});if(typeof x=="function"){const j=x;return r.jsx(j,{size:18})}return x})(),N=()=>{v?n.push(v):n.back()};return b?r.jsx(S,{icon:w,variant:"subtle",color:"gray",onClick:N,tooltip:{label:p,position:"bottom"}},u):r.jsx(S,{leftSection:w,variant:"subtle",color:"gray",onClick:N,children:p},u)},i=t.filter(a=>a.position==="left"),c=t.filter(a=>a.position==="center"),h=t.filter(a=>a.position==="right"),s=r.jsxs(m,{h:"100%",align:"center",px:e.container?0:"md",justify:"space-between",...e.flexProps,children:[r.jsx(m,{flex:1,children:i.map((a,u)=>r.jsx(m,{ml:u===0?0:"md",align:"center",children:o(a,u)},u))}),r.jsx(m,{children:c.map((a,u)=>r.jsx(m,{mx:"md",align:"center",children:o(a,u)},u))}),r.jsx(m,{flex:1,align:"center",justify:"end",children:h.map((a,u)=>r.jsx(m,{ml:u===0?0:"md",align:"center",children:o(a,u)},u))})]});if(e.container){const a=typeof e.container=="boolean"?{}:e.container;return r.jsx(Y,{h:"100%",...a,children:s})}return s},ps=e=>{const t=O(),{onItemClick:n}=e,o=s=>r.jsx(m,{h:1,bg:"var(--alepha-border)",my:"xs",mx:e.collapsed?0:"sm"},s),d=(s,a)=>{if("type"in s){if(s.type==="spacer")return e.collapsed?null:r.jsx(m,{h:16},a);if(s.type==="divider")return o(a);if(s.type==="search")return r.jsx(m,{mb:"xs",children:r.jsx(ge,{collapsed:e.collapsed})},a);if(s.type==="toggle")return r.jsx(us,{},a);if(s.type==="section")return e.collapsed?o(a):r.jsxs(m,{mt:"md",align:"center",gap:"xs",children:[U(s.icon),r.jsx(ie,{size:"xs",c:"dimmed",tt:"uppercase",fw:"bold",children:s.label})]},a)}return"element"in s?r.jsx(m,{children:s.element},a):s.can&&!s.can()||s.children&&s.children.length>0&&!s.children.some(p=>!p.can||p.can())?null:e.collapsed?r.jsx(fs,{item:s,level:0,onItemClick:n,theme:e.theme??{}},a):r.jsx(Ve,{item:s,level:0,onItemClick:n,theme:e.theme??{}},a)},l=()=>{if(e.items)return e.items;if(e.autoPopulateMenu){const s=t.concretePages.filter(a=>!a.can||a.can()).map(a=>({label:a.label??a.name,icon:U(a.icon),href:t.path(a.name)}));if(typeof e.autoPopulateMenu=="object"&&e.autoPopulateMenu.startsWith){const a=e.autoPopulateMenu.startsWith;return s.filter(u=>u.href?.startsWith(a))}return s}return[]},i="md",c=e.items?e.gap??2:"xs",h=f.useMemo(()=>l(),[e.items,e.autoPopulateMenu]);return r.jsxs(m,{flex:1,py:i,direction:"column",className:"alepha-sidebar-scroll",...e.flexProps,children:[r.jsx(m,{gap:c,px:i,direction:"column",children:h.filter(s=>s.position==="top").map((s,a)=>d(s,a))}),r.jsx(m,{gap:c,px:i,direction:"column",flex:1,className:"alepha-sidebar-scroll",children:h.filter(s=>!s.position).map((s,a)=>d(s,a))}),r.jsx(m,{gap:c,px:i,direction:"column",children:h.filter(s=>s.position==="bottom").map((s,a)=>d(s,a))})]})},Ve=e=>{const{item:t,level:n}=e,o=2,d=O(),l=f.useCallback(s=>{if(!s.children)return!1;for(const a of s.children)if(a.href&&d.isActive(a.href)||l(a))return!0;return!1},[]),[i,c]=f.useState(l(t));if(Re({"react:transition:end":()=>{l(t)&&c(!0)}},[]),n>o)return null;const h=s=>{e.item.target||s.preventDefault(),t.children&&t.children.length>0?c(!i):(e.onItemClick?.(t),t.onClick?.())};return r.jsxs(m,{direction:"column",ps:n===0?0:32,pos:"relative",children:[r.jsx(S,{w:"100%",justify:"space-between",href:e.item.href,target:e.item.target,size:e.item.theme?.size??e.theme.button?.size??(n===0?"sm":"xs"),tooltip:t.description,c:"var(--mantine-color-text)",color:"gray",variant:"subtle",variantActive:"default",radius:e.item.theme?.radius??e.theme.button?.radius??"md",onClick:h,leftSection:r.jsxs(m,{w:"100%",align:"center",gap:"sm",children:[U(t.icon),r.jsx(m,{direction:"column",children:r.jsx(m,{children:t.label})})]}),rightSection:t.children?r.jsx(m,{children:i?r.jsx(ct,{size:14}):r.jsx(dt,{size:14})}):e.item.rightSection,...e.item.actionProps}),t.children&&i&&r.jsxs(m,{direction:"column","data-parent-level":n,children:[r.jsx(m,{style:{position:"absolute",width:1,background:"linear-gradient(to bottom, transparent, var(--alepha-border), transparent)",top:48,left:20+32*n,bottom:16}}),t.children.filter(s=>!s.can||s.can()).map((s,a)=>r.jsx(Ve,{item:s,level:n+1,onItemClick:e.onItemClick,theme:e.theme},a))]})]})},fs=e=>{const{item:t,level:n}=e,o=()=>{e.onItemClick?.(t),t.onClick?.()};return r.jsx(S,{size:e.item.theme?.size??e.theme.button?.size??(n===0?"sm":"xs"),variant:"subtle",variantActive:"default",tooltip:{label:t.label,position:"right"},radius:e.item.theme?.radius??e.theme.button?.radius??"md",onClick:o,icon:U(t.icon)??r.jsx(rs,{}),href:e.item.href,target:e.item.target,...e.item.actionProps})},ms=e=>{const t=O(),[n,o]=re(ae),{opened:d,collapsed:l}=n;f.useEffect(()=>{e.sidebarProps?.collapsed!==void 0&&o({...n,collapsed:e.sidebarProps.collapsed})},[]);const[i,c]=f.useState(!1),[h,s]=f.useState(!1),[a,u]=f.useState({offset:0,opacity:1}),p=f.useRef(null),{collapsedWidth:b,collapseThreshold:v,maxWidth:x,hoverDelay:k,defaultWidth:w}=n,N=f.useCallback(A=>{e.sidebarResizable&&(A.preventDefault(),l?(o({...n,collapsed:!1,width:w}),c(!0),p.current={startX:A.clientX,startWidth:w}):(c(!0),p.current={startX:A.clientX,startWidth:n.width}))},[e.sidebarResizable,l,n,o,w]);f.useEffect(()=>{if(!i)return;const A=qe=>{if(!p.current)return;const Ke=qe.clientX-p.current.startX,ee=p.current.startWidth+Ke,Qe=Math.min(Math.max(ee,b),x);if(ee<v){const je=Math.max(0,(v-ee)/v);u({offset:-je*b,opacity:1-je*.7}),o({...n,width:v,collapsed:!1})}else u({offset:0,opacity:1}),o({...n,width:Qe,collapsed:!1})},xe=()=>{a.offset<0&&o({...n,collapsed:!0}),u({offset:0,opacity:1}),c(!1),p.current=null};return document.addEventListener("mousemove",A),document.addEventListener("mouseup",xe),()=>{document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",xe)}},[i,n,o,b,x,v,a.offset]);const j=f.useRef(null),y=f.useCallback(()=>{l&&(j.current=setTimeout(()=>{s(!0)},k))},[l,k]),R=f.useCallback(()=>{j.current&&(clearTimeout(j.current),j.current=null),s(!1)},[]);f.useEffect(()=>{l&&(s(!1),j.current&&(clearTimeout(j.current),j.current=null))},[l]);const Q=()=>{if(e.noSidebarWhen?.paths){for(const A of e.noSidebarWhen.paths)if(t.isActive(A,{startWith:!0}))return!1}return!0},[G,Z]=f.useState(Q());Re({"react:transition:end":()=>{Z(Q())},"react:transition:begin":()=>{o({...n,opened:!1})}},[n]);const J=[{position:"left",type:"burger"}],V={...e.appBarProps};V.container??=e.container;const L=G&&e.sidebarProps!==void 0,$=L||e.appBarProps||e.header,$e=$?60:0,Fe=e.footer?24:0,ve=Math.max(n.width,b),_=l&&h,M=l&&!h,He=f.useCallback(A=>{_&&s(!1),e.sidebarProps?.onItemClick?.(A)},[_,e.sidebarProps?.onItemClick]),De=Math.max(w,b),Oe=L?M||_?b:ve:0,Xe=e.sidebarResizable&&!l;return r.jsxs(C,{w:"100%",flex:1,padding:"md",header:$?{height:60}:void 0,navbar:L?{width:M||_?{base:b}:{base:ve},breakpoint:"sm",collapsed:{mobile:!d}}:void 0,footer:e.footer?{height:24}:void 0,...e.appShellProps,children:[r.jsx(C.Header,{bg:F.colors.surface,...e.appShellHeaderProps,children:e.header??r.jsx(hs,{items:J,...V})}),L&&r.jsxs(C.Navbar,{bg:F.colors.surface,className:"alepha-sidebar-navbar","data-resizing":i,"data-hover-expanded":_,onMouseEnter:y,onMouseLeave:R,style:{transform:a.offset?`translateX(${a.offset}px)`:void 0,opacity:a.opacity,..._&&{width:De,zIndex:200,boxShadow:"var(--mantine-shadow-xl)"}},...e.appShellNavbarProps,children:[r.jsx(ps,{...e.sidebarProps??{},collapsed:M,onItemClick:He}),(Xe||_)&&r.jsx(m,{pos:"absolute",right:-6,top:0,bottom:0,w:12,style:{cursor:"col-resize",userSelect:"none"},onMouseDown:N})]}),r.jsx(C.Main,{pl:Oe,pt:$e,pb:Fe,pr:0,display:"flex",flex:1,style:{flexDirection:"column"},className:"alepha-sidebar-main","data-resizing":i,...e.appShellMainProps,children:e.container?r.jsx(Y,{w:"100%",flex:1,display:"flex",style:{flexDirection:"column"},...typeof e.container=="boolean"?{}:e.container,children:e.children??r.jsx(Ie,{})}):e.children??r.jsx(Ie,{})}),e.footer&&r.jsx(C.Footer,{bg:F.colors.surface,...e.appShellFooterProps,children:e.footer})]})},Is=()=>r.jsx(ms,{appShellHeaderProps:{bg:F.colors.background},appShellNavbarProps:{bg:F.colors.background},sidebarResizable:!0,sidebarProps:{items:[{label:"Dashboard",icon:r.jsx(ut,{}),href:"/"},{type:"divider"},{label:"Actions",icon:r.jsx(ht,{}),href:"/actions"},{label:"Queues",icon:r.jsx(pt,{}),href:"/queues"},{label:"Topics",icon:r.jsx(ft,{}),href:"/topics"},{label:"Caches",icon:r.jsx(mt,{}),href:"/caches"},{label:"DB Studio",icon:r.jsx(bt,{}),href:"/db"},{type:"divider"},{label:"Environment",icon:r.jsx(gt,{}),href:"/env"},{label:"Atoms",icon:r.jsx(vt,{}),href:"/atoms"},{type:"divider"},{label:"Graph",icon:r.jsx(xt,{}),href:"/graph"},{label:"Logs",icon:r.jsx(jt,{}),href:"/logs"}]},appBarProps:{items:[{position:"left",type:"burger"},{position:"left",element:r.jsx(m,{h:"60px",w:"78px",style:{marginLeft:"-32px",borderRight:"1px solid var(--mantine-color-default-border)"}})},{position:"left",element:r.jsx(ge,{actionProps:{variant:"outline",bd:"1px solid var(--mantine-color-default-border)"}})},{position:"right",element:r.jsx(We,{})}]}});export{Is as DevLayout,Is as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as t,j as e,F as l,T as s,a0 as o}from"./entry.
|
|
1
|
+
import{y as t,j as e,F as l,T as s,a0 as o}from"./entry.DhzNl8q_.js";import{A as a}from"./chunk.BymZ9jU5.js";const n=[["path",{d:"M3 21h4l13 -13a1.5 1.5 0 0 0 -4 -4l-13 13v4",key:"svg-0"}],["path",{d:"M14.5 5.5l4 4",key:"svg-1"}],["path",{d:"M12 8l-5 -5l-4 4l5 5",key:"svg-2"}],["path",{d:"M7 8l-1.5 1.5",key:"svg-3"}],["path",{d:"M16 12l5 5l-4 4l-5 -5",key:"svg-4"}],["path",{d:"M16 17l-1.5 1.5",key:"svg-5"}]],r=t("outline","tools","Tools",n),d=()=>e.jsxs(l,{direction:"column",align:"center",justify:"center",flex:1,w:"100%",gap:"xl",children:[e.jsx(l,{direction:"column",align:"center",gap:4,mb:"md",children:e.jsxs(l,{align:"center",gap:"sm",children:[e.jsx(r,{size:40,stroke:1.5,opacity:.8}),e.jsx(s,{size:"2rem",fw:300,style:{letterSpacing:"-0.02em"},children:"Alepha DevTools"})]})}),e.jsx(a,{icon:e.jsx(o,{}),title:"Work In Progress",color:"blue",variant:"light",maw:500,children:"DevTools is still in active development. New features and improvements are being added regularly. Use the navigation to explore available tools."})]});export{d as DevDashboard,d as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as a}from"./entry.
|
|
1
|
+
import{y as a}from"./entry.DhzNl8q_.js";const e=[["path",{d:"M7 4v16l13 -8l-13 -8",key:"svg-0"}]],l=a("outline","player-play","PlayerPlay",e);export{l as I};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,aq as y,bc as I,bd as j,f as B,d as N,j as P,a4 as W}from"./entry.
|
|
1
|
+
import{r as c,aq as y,bc as I,bd as j,f as B,d as N,j as P,a4 as W}from"./entry.DhzNl8q_.js";import{g as M}from"./chunk.uyVen0u2.js";var $=c.useLayoutEffect,q=function(e){var r=y.useRef(e);return $(function(){r.current=e}),r},E=function(e,r){if(typeof e=="function"){e(r);return}e.current=r},G=function(e,r){var t=y.useRef();return y.useCallback(function(i){e.current=i,t.current&&E(t.current,null),t.current=r,r&&E(r,i)},[r])},H={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},O=function(e){Object.keys(H).forEach(function(r){e.style.setProperty(r,H[r],"important")})},T=O,o=null,C=function(e,r){var t=e.scrollHeight;return r.sizingStyle.boxSizing==="border-box"?t+r.borderSize:t-r.paddingSize};function Y(n,e,r,t){r===void 0&&(r=1),t===void 0&&(t=1/0),o||(o=document.createElement("textarea"),o.setAttribute("tabindex","-1"),o.setAttribute("aria-hidden","true"),T(o)),o.parentNode===null&&document.body.appendChild(o);var i=n.paddingSize,d=n.borderSize,a=n.sizingStyle,h=a.boxSizing;Object.keys(a).forEach(function(l){var m=l;o.style[m]=a[m]}),T(o),o.value=e;var s=C(o,n);o.value=e,s=C(o,n),o.value="x";var f=o.scrollHeight-i,g=f*r;h==="border-box"&&(g=g+i+d),s=Math.max(g,s);var v=f*t;return h==="border-box"&&(v=v+i+d),s=Math.min(v,s),[s,f]}var F=function(){},U=function(e,r){return e.reduce(function(t,i){return t[i]=r[i],t},{})},X=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],Z=!!document.documentElement.currentStyle,D=function(e){var r=window.getComputedStyle(e);if(r===null)return null;var t=U(X,r),i=t.boxSizing;if(i==="")return null;Z&&i==="border-box"&&(t.width=parseFloat(t.width)+parseFloat(t.borderRightWidth)+parseFloat(t.borderLeftWidth)+parseFloat(t.paddingRight)+parseFloat(t.paddingLeft)+"px");var d=parseFloat(t.paddingBottom)+parseFloat(t.paddingTop),a=parseFloat(t.borderBottomWidth)+parseFloat(t.borderTopWidth);return{sizingStyle:t,paddingSize:d,borderSize:a}},J=D;function R(n,e,r){var t=q(r);c.useLayoutEffect(function(){var i=function(a){return t.current(a)};if(n)return n.addEventListener(e,i),function(){return n.removeEventListener(e,i)}},[])}var K=function(e,r){R(document.body,"reset",function(t){e.current.form===t.target&&r(t)})},Q=function(e){R(window,"resize",e)},V=function(e){R(document.fonts,"loadingdone",e)},ee=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],te=function(e,r){var t=e.cacheMeasurements,i=e.maxRows,d=e.minRows,a=e.onChange,h=a===void 0?F:a,s=e.onHeightChange,f=s===void 0?F:s,g=I(e,ee),v=g.value!==void 0,l=c.useRef(null),m=G(l,r),L=c.useRef(0),b=c.useRef(),p=function(){var u=l.current,z=t&&b.current?b.current:J(u);if(z){b.current=z;var w=Y(z,u.value||u.placeholder||"x",d,i),x=w[0],k=w[1];L.current!==x&&(L.current=x,u.style.setProperty("height",x+"px","important"),f(x,{rowHeight:k}))}},A=function(u){v||p(),h(u)};return c.useLayoutEffect(p),K(l,function(){if(!v){var S=l.current.value;requestAnimationFrame(function(){var u=l.current;u&&S!==u.value&&p()})}}),Q(p),V(p),c.createElement("textarea",j({},g,{onChange:A,ref:m}))},re=c.forwardRef(te);const ne={size:"sm"},_=B((n,e)=>{const{autosize:r,maxRows:t,minRows:i,__staticSelector:d,resize:a,...h}=N("Textarea",ne,n),s=r&&M()!=="test",f=s?{maxRows:t,minRows:i}:{};return P.jsx(W,{component:s?re:"textarea",ref:e,...h,__staticSelector:d||"Textarea",multiline:!0,"data-no-overflow":r&&t===void 0||void 0,__vars:{"--input-resize":a},...f})});_.classes=W.classes;_.displayName="@mantine/core/Textarea";export{_ as T};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ax as Me,a5 as Ae,b3 as $e,r as i,c as Ke,f as j,d as E,bf as We,aj as Z,j as b,bg as G,aN as J,bh as Be,B as N,bi as He,g as Ue,ba as Xe,be as Ye,e as qe,bj as Q,a2 as Le,bk as Ze,bl as U,aB as X,a as Ge,bm as Je,bn as Qe,bo as Y,bp as er,bq as q,br as rr,bs as tr,bt as L,o as ee,az as or,al as nr,q as sr,bu as ar,bv as ir,s as lr,t as re,bw as cr,x as dr,v as ur,w as fr}from"./entry.ETzhI2TP.js";import{n as pr}from"./chunk.BjFrJKj1.js";import{u as wr}from"./chunk.DnocEn4r.js";function Sr(e,n){const o=Me(),t=Ae($e),[l,p]=i.useState(!1),[u,a]=i.useState(),[s,v]=i.useState(),d=i.useRef(!1),c=i.useRef(void 0),r=i.useRef(void 0),m=i.useRef(!0),w=i.useRef(void 0);i.useEffect(()=>()=>{m.current=!1,c.current&&(t.clearTimeout(c.current),c.current=void 0),w.current&&(t.clearInterval(w.current),w.current=void 0),r.current&&(r.current.abort(),r.current=void 0)},[]);const y=i.useCallback(async(...x)=>{if(d.current)return;r.current&&r.current.abort();const P=new AbortController;r.current=P,d.current=!0,p(!0),a(void 0),await o.events.emit("react:action:begin",{type:"custom",id:e.id});try{const g=await e.handler(...x,{signal:P.signal});return v(g),!m.current||P.signal.aborted?void 0:(await o.events.emit("react:action:success",{type:"custom",id:e.id}),e.onSuccess&&await e.onSuccess(g),g)}catch(g){if(g instanceof Error&&g.name==="AbortError"||!m.current)return;const C=g;if(a(C),await o.events.emit("react:action:error",{type:"custom",id:e.id,error:C}),e.onError)await e.onError(C);else throw C}finally{d.current=!1,p(!1),await o.events.emit("react:action:end",{type:"custom",id:e.id}),r.current===P&&(r.current=void 0)}},[...n,e.id,e.onError,e.onSuccess]),h=i.useCallback(async(...x)=>e.debounce?(c.current&&t.clearTimeout(c.current),new Promise(P=>{c.current=t.createTimeout(async()=>{const g=await y(...x);P(g)},e.debounce??0)})):y(...x),[y,e.debounce]),O=i.useCallback(()=>{c.current&&(t.clearTimeout(c.current),c.current=void 0),r.current&&(r.current.abort(),r.current=void 0),m.current&&(d.current=!1,p(!1))},[]);return i.useEffect(()=>{e.runOnInit&&h()},n),i.useEffect(()=>{if(e.runEvery)return w.current=t.createInterval(()=>h(),e.runEvery,!0),()=>{w.current&&(t.clearInterval(w.current),w.current=void 0)}},[h,e.runEvery]),{run:h,loading:l,error:u,cancel:O,result:s}}function gr(e,n={active:!0}){return typeof e!="function"||!n.active?n.onKeyDown||pr:o=>{o.key==="Escape"&&(e(o),n.onTrigger?.())}}const[vr,te]=Ke("Popover component was not found in the tree");var oe={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const k=j((e,n)=>{const o=E("PopoverDropdown",null,e),{className:t,style:l,vars:p,children:u,onKeyDownCapture:a,variant:s,classNames:v,styles:d,...c}=o,r=te(),m=We({opened:r.opened,shouldReturnFocus:r.returnFocus}),w=r.withRoles?{"aria-labelledby":r.getTargetId(),id:r.getDropdownId(),role:"dialog",tabIndex:-1}:{},y=Z(n,r.floating);return r.disabled?null:b.jsx(G,{...r.portalProps,withinPortal:r.withinPortal,children:b.jsx(J,{mounted:r.opened,...r.transitionProps,transition:r.transitionProps?.transition||"fade",duration:r.transitionProps?.duration??150,keepMounted:r.keepMounted,exitDuration:typeof r.transitionProps?.exitDuration=="number"?r.transitionProps.exitDuration:r.transitionProps?.duration,children:h=>b.jsx(Be,{active:r.trapFocus&&r.opened,innerRef:y,children:b.jsxs(N,{...w,...c,variant:s,onKeyDownCapture:gr(()=>{r.onClose?.(),r.onDismiss?.()},{active:r.closeOnEscape,onTrigger:m,onKeyDown:a}),"data-position":r.placement,"data-fixed":r.floatingStrategy==="fixed"||void 0,...r.getStyles("dropdown",{className:t,props:o,classNames:v,styles:d,style:[{...h,zIndex:r.zIndex,top:r.y??0,left:r.x??0,width:r.width==="target"?void 0:Ue(r.width),...r.referenceHidden?{display:"none"}:null},r.resolvedStyles.dropdown,d?.dropdown,l]}),children:[u,b.jsx(He,{ref:r.arrowRef,arrowX:r.arrowX,arrowY:r.arrowY,visible:r.withArrow,position:r.placement,arrowSize:r.arrowSize,arrowRadius:r.arrowRadius,arrowOffset:r.arrowOffset,arrowPosition:r.arrowPosition,...r.getStyles("arrow",{props:o,classNames:v,styles:d})})]})})})})});k.classes=oe;k.displayName="@mantine/core/PopoverDropdown";const mr={refProp:"ref",popupType:"dialog"},ne=j((e,n)=>{const{children:o,refProp:t,popupType:l,...p}=E("PopoverTarget",mr,e),u=Xe(o);if(!u)throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const a=p,s=te(),v=Z(s.reference,Ye(u),n),d=s.withRoles?{"aria-haspopup":l,"aria-expanded":s.opened,"aria-controls":s.opened?s.getDropdownId():void 0,id:s.getTargetId()}:{},c=u.props;return i.cloneElement(u,{...a,...d,...s.targetProps,className:qe(s.targetProps.className,a.className,c.className),[t]:v,...s.controlled?null:{onClick:()=>{s.onToggle(),c.onClick?.()}}})});ne.displayName="@mantine/core/PopoverTarget";function hr(e){if(e===void 0)return{shift:!0,flip:!0};const n={...e};return e.shift===void 0&&(n.shift=!0),e.flip===void 0&&(n.flip=!0),n}function br(e,n,o){const t=hr(e.middlewares),l=[Je(e.offset),Qe()];return e.dropdownVisible&&o!=="test"&&e.preventPositionChangeWhenVisible&&(t.flip=!1),t.flip&&l.push(typeof t.flip=="boolean"?Y():Y(t.flip)),t.shift&&l.push(er(typeof t.shift=="boolean"?{limiter:L(),padding:5}:{limiter:L(),padding:5,...t.shift})),t.inline&&l.push(typeof t.inline=="boolean"?q():q(t.inline)),l.push(rr({element:e.arrowRef,padding:e.arrowOffset})),(t.size||e.width==="target")&&l.push(tr({...typeof t.size=="boolean"?{}:t.size,apply({rects:p,availableWidth:u,availableHeight:a,...s}){const d=n().refs.floating.current?.style??{};t.size&&(typeof t.size=="object"&&t.size.apply?t.size.apply({rects:p,availableWidth:u,availableHeight:a,...s}):Object.assign(d,{maxWidth:`${u}px`,maxHeight:`${a}px`})),e.width==="target"&&Object.assign(d,{width:`${p.reference.width}px`})}})),l}function yr(e){const n=Q(),[o,t]=Le({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),l=i.useRef(o),p=()=>{o&&!e.disabled&&t(!1)},u=()=>{e.disabled||t(!o)},a=Ze({strategy:e.strategy,placement:e.preventPositionChangeWhenVisible?e.positionRef.current:e.position,middleware:br(e,()=>a,n),whileElementsMounted:e.keepMounted?void 0:U});return i.useEffect(()=>{if(!(!a.refs.reference.current||!a.refs.floating.current)&&o)return U(a.refs.reference.current,a.refs.floating.current,a.update)},[o,a.update]),X(()=>{e.onPositionChange?.(a.placement),e.positionRef.current=a.placement},[a.placement,e.preventPositionChangeWhenVisible]),X(()=>{o!==l.current&&(o?e.onOpen?.():e.onClose?.()),l.current=o},[o,e.onClose,e.onOpen]),Ge(()=>{let s=-1;return o&&(s=window.setTimeout(()=>e.setDropdownVisible(!0),4)),()=>{window.clearTimeout(s)}},[o,e.position]),{floating:a,controlled:typeof e.opened=="boolean",opened:o,onClose:p,onToggle:u}}const Pr={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:lr("popover"),__staticSelector:"Popover",width:"max-content"},xr=re((e,{radius:n,shadow:o})=>({dropdown:{"--popover-radius":n===void 0?void 0:dr(n),"--popover-shadow":cr(o)}}));function D(e){const n=E("Popover",Pr,e),{children:o,position:t,offset:l,onPositionChange:p,positionDependencies:u,opened:a,transitionProps:s,onExitTransitionEnd:v,onEnterTransitionEnd:d,width:c,middlewares:r,withArrow:m,arrowSize:w,arrowOffset:y,arrowRadius:h,arrowPosition:O,unstyled:x,classNames:P,styles:g,closeOnClickOutside:C,withinPortal:I,portalProps:ie,closeOnEscape:le,clickOutsideEvents:ce,trapFocus:de,onClose:ue,onDismiss:S,onOpen:fe,onChange:pe,zIndex:we,radius:ge,shadow:ve,id:me,defaultOpened:F,__staticSelector:V,withRoles:he,disabled:_,returnFocus:be,variant:ye,keepMounted:M,vars:Pe,floatingStrategy:A,withOverlay:xe,overlayProps:T,hideDetached:Re,attributes:Ce,preventPositionChangeWhenVisible:z,...Ee}=n,$=ee({name:V,props:n,classes:oe,classNames:P,styles:g,unstyled:x,attributes:Ce,rootSelector:"dropdown",vars:Pe,varsResolver:xr}),{resolvedStyles:De}=or({classNames:P,styles:g,props:n}),[Oe,K]=i.useState(a??F??!1),W=i.useRef(t),B=i.useRef(null),[Se,Te]=i.useState(null),[ze,Ne]=i.useState(null),{dir:je}=nr(),ke=Q(),H=sr(me),f=yr({middlewares:r,width:c,position:ar(je,t),offset:typeof l=="number"?l+(m?w/2:0):l,arrowRef:B,arrowOffset:y,onPositionChange:p,positionDependencies:u,opened:a,defaultOpened:F,onChange:pe,onOpen:fe,onClose:ue,onDismiss:S,strategy:A,dropdownVisible:Oe,setDropdownVisible:K,positionRef:W,disabled:_,preventPositionChangeWhenVisible:z,keepMounted:M});wr(()=>{C&&(f.onClose(),S?.())},ce,[Se,ze]);const Ie=i.useCallback(R=>{Te(R),f.floating.refs.setReference(R)},[f.floating.refs.setReference]),Fe=i.useCallback(R=>{Ne(R),f.floating.refs.setFloating(R)},[f.floating.refs.setFloating]),Ve=i.useCallback(()=>{s?.onExited?.(),v?.(),K(!1),z||(W.current=t)},[s?.onExited,v,z,t]),_e=i.useCallback(()=>{s?.onEntered?.(),d?.()},[s?.onEntered,d]);return b.jsxs(vr,{value:{returnFocus:be,disabled:_,controlled:f.controlled,reference:Ie,floating:Fe,x:f.floating.x,y:f.floating.y,arrowX:f.floating?.middlewareData?.arrow?.x,arrowY:f.floating?.middlewareData?.arrow?.y,opened:f.opened,arrowRef:B,transitionProps:{...s,onExited:Ve,onEntered:_e},width:c,withArrow:m,arrowSize:w,arrowOffset:y,arrowRadius:h,arrowPosition:O,placement:f.floating.placement,trapFocus:de,withinPortal:I,portalProps:ie,zIndex:we,radius:ge,shadow:ve,closeOnEscape:le,onDismiss:S,onClose:f.onClose,onToggle:f.onToggle,getTargetId:()=>`${H}-target`,getDropdownId:()=>`${H}-dropdown`,withRoles:he,targetProps:Ee,__staticSelector:V,classNames:P,styles:g,unstyled:x,variant:ye,keepMounted:M,getStyles:$,resolvedStyles:De,floatingStrategy:A,referenceHidden:Re&&ke!=="test"?f.floating.middlewareData.hide?.referenceHidden:!1},children:[o,xe&&b.jsx(J,{transition:"fade",mounted:f.opened,duration:s?.duration||250,exitDuration:s?.exitDuration||250,children:R=>b.jsx(G,{withinPortal:I,children:b.jsx(ir,{...T,...$("overlay",{className:T?.className,style:[R,T?.style]})})})})]})}D.Target=ne;D.Dropdown=k;D.displayName="@mantine/core/Popover";D.extend=e=>e;var se={root:"m_3eebeb36",label:"m_9e365f20"};const Rr={orientation:"horizontal"},Cr=re((e,{color:n,variant:o,size:t})=>({root:{"--divider-color":n?fr(n,e):void 0,"--divider-border-style":o,"--divider-size":ur(t,"divider-size")}})),ae=j((e,n)=>{const o=E("Divider",Rr,e),{classNames:t,className:l,style:p,styles:u,unstyled:a,vars:s,color:v,orientation:d,label:c,labelPosition:r,mod:m,attributes:w,...y}=o,h=ee({name:"Divider",classes:se,props:o,className:l,style:p,classNames:t,styles:u,unstyled:a,attributes:w,vars:s,varsResolver:Cr});return b.jsx(N,{ref:n,mod:[{orientation:d,"with-label":!!c},m],...h("root"),...y,role:"separator",children:c&&b.jsx(N,{component:"span",mod:{position:r},...h("label"),children:c})})});ae.classes=se;ae.displayName="@mantine/core/Divider";export{ae as D,D as P,Sr as u};
|
|
1
|
+
import{ax as Me,a5 as Ae,b3 as $e,r as i,c as Ke,f as j,d as E,bf as We,aj as Z,j as b,bg as G,aN as J,bh as Be,B as N,bi as He,g as Ue,ba as Xe,be as Ye,e as qe,bj as Q,a2 as Le,bk as Ze,bl as U,aB as X,a as Ge,bm as Je,bn as Qe,bo as Y,bp as er,bq as q,br as rr,bs as tr,bt as L,o as ee,az as or,al as nr,q as sr,bu as ar,bv as ir,s as lr,t as re,bw as cr,x as dr,v as ur,w as fr}from"./entry.DhzNl8q_.js";import{n as pr}from"./chunk.BjFrJKj1.js";import{u as wr}from"./chunk.C63rzhbT.js";function Sr(e,n){const o=Me(),t=Ae($e),[l,p]=i.useState(!1),[u,a]=i.useState(),[s,v]=i.useState(),d=i.useRef(!1),c=i.useRef(void 0),r=i.useRef(void 0),m=i.useRef(!0),w=i.useRef(void 0);i.useEffect(()=>()=>{m.current=!1,c.current&&(t.clearTimeout(c.current),c.current=void 0),w.current&&(t.clearInterval(w.current),w.current=void 0),r.current&&(r.current.abort(),r.current=void 0)},[]);const y=i.useCallback(async(...x)=>{if(d.current)return;r.current&&r.current.abort();const P=new AbortController;r.current=P,d.current=!0,p(!0),a(void 0),await o.events.emit("react:action:begin",{type:"custom",id:e.id});try{const g=await e.handler(...x,{signal:P.signal});return v(g),!m.current||P.signal.aborted?void 0:(await o.events.emit("react:action:success",{type:"custom",id:e.id}),e.onSuccess&&await e.onSuccess(g),g)}catch(g){if(g instanceof Error&&g.name==="AbortError"||!m.current)return;const C=g;if(a(C),await o.events.emit("react:action:error",{type:"custom",id:e.id,error:C}),e.onError)await e.onError(C);else throw C}finally{d.current=!1,p(!1),await o.events.emit("react:action:end",{type:"custom",id:e.id}),r.current===P&&(r.current=void 0)}},[...n,e.id,e.onError,e.onSuccess]),h=i.useCallback(async(...x)=>e.debounce?(c.current&&t.clearTimeout(c.current),new Promise(P=>{c.current=t.createTimeout(async()=>{const g=await y(...x);P(g)},e.debounce??0)})):y(...x),[y,e.debounce]),O=i.useCallback(()=>{c.current&&(t.clearTimeout(c.current),c.current=void 0),r.current&&(r.current.abort(),r.current=void 0),m.current&&(d.current=!1,p(!1))},[]);return i.useEffect(()=>{e.runOnInit&&h()},n),i.useEffect(()=>{if(e.runEvery)return w.current=t.createInterval(()=>h(),e.runEvery,!0),()=>{w.current&&(t.clearInterval(w.current),w.current=void 0)}},[h,e.runEvery]),{run:h,loading:l,error:u,cancel:O,result:s}}function gr(e,n={active:!0}){return typeof e!="function"||!n.active?n.onKeyDown||pr:o=>{o.key==="Escape"&&(e(o),n.onTrigger?.())}}const[vr,te]=Ke("Popover component was not found in the tree");var oe={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const k=j((e,n)=>{const o=E("PopoverDropdown",null,e),{className:t,style:l,vars:p,children:u,onKeyDownCapture:a,variant:s,classNames:v,styles:d,...c}=o,r=te(),m=We({opened:r.opened,shouldReturnFocus:r.returnFocus}),w=r.withRoles?{"aria-labelledby":r.getTargetId(),id:r.getDropdownId(),role:"dialog",tabIndex:-1}:{},y=Z(n,r.floating);return r.disabled?null:b.jsx(G,{...r.portalProps,withinPortal:r.withinPortal,children:b.jsx(J,{mounted:r.opened,...r.transitionProps,transition:r.transitionProps?.transition||"fade",duration:r.transitionProps?.duration??150,keepMounted:r.keepMounted,exitDuration:typeof r.transitionProps?.exitDuration=="number"?r.transitionProps.exitDuration:r.transitionProps?.duration,children:h=>b.jsx(Be,{active:r.trapFocus&&r.opened,innerRef:y,children:b.jsxs(N,{...w,...c,variant:s,onKeyDownCapture:gr(()=>{r.onClose?.(),r.onDismiss?.()},{active:r.closeOnEscape,onTrigger:m,onKeyDown:a}),"data-position":r.placement,"data-fixed":r.floatingStrategy==="fixed"||void 0,...r.getStyles("dropdown",{className:t,props:o,classNames:v,styles:d,style:[{...h,zIndex:r.zIndex,top:r.y??0,left:r.x??0,width:r.width==="target"?void 0:Ue(r.width),...r.referenceHidden?{display:"none"}:null},r.resolvedStyles.dropdown,d?.dropdown,l]}),children:[u,b.jsx(He,{ref:r.arrowRef,arrowX:r.arrowX,arrowY:r.arrowY,visible:r.withArrow,position:r.placement,arrowSize:r.arrowSize,arrowRadius:r.arrowRadius,arrowOffset:r.arrowOffset,arrowPosition:r.arrowPosition,...r.getStyles("arrow",{props:o,classNames:v,styles:d})})]})})})})});k.classes=oe;k.displayName="@mantine/core/PopoverDropdown";const mr={refProp:"ref",popupType:"dialog"},ne=j((e,n)=>{const{children:o,refProp:t,popupType:l,...p}=E("PopoverTarget",mr,e),u=Xe(o);if(!u)throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const a=p,s=te(),v=Z(s.reference,Ye(u),n),d=s.withRoles?{"aria-haspopup":l,"aria-expanded":s.opened,"aria-controls":s.opened?s.getDropdownId():void 0,id:s.getTargetId()}:{},c=u.props;return i.cloneElement(u,{...a,...d,...s.targetProps,className:qe(s.targetProps.className,a.className,c.className),[t]:v,...s.controlled?null:{onClick:()=>{s.onToggle(),c.onClick?.()}}})});ne.displayName="@mantine/core/PopoverTarget";function hr(e){if(e===void 0)return{shift:!0,flip:!0};const n={...e};return e.shift===void 0&&(n.shift=!0),e.flip===void 0&&(n.flip=!0),n}function br(e,n,o){const t=hr(e.middlewares),l=[Je(e.offset),Qe()];return e.dropdownVisible&&o!=="test"&&e.preventPositionChangeWhenVisible&&(t.flip=!1),t.flip&&l.push(typeof t.flip=="boolean"?Y():Y(t.flip)),t.shift&&l.push(er(typeof t.shift=="boolean"?{limiter:L(),padding:5}:{limiter:L(),padding:5,...t.shift})),t.inline&&l.push(typeof t.inline=="boolean"?q():q(t.inline)),l.push(rr({element:e.arrowRef,padding:e.arrowOffset})),(t.size||e.width==="target")&&l.push(tr({...typeof t.size=="boolean"?{}:t.size,apply({rects:p,availableWidth:u,availableHeight:a,...s}){const d=n().refs.floating.current?.style??{};t.size&&(typeof t.size=="object"&&t.size.apply?t.size.apply({rects:p,availableWidth:u,availableHeight:a,...s}):Object.assign(d,{maxWidth:`${u}px`,maxHeight:`${a}px`})),e.width==="target"&&Object.assign(d,{width:`${p.reference.width}px`})}})),l}function yr(e){const n=Q(),[o,t]=Le({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),l=i.useRef(o),p=()=>{o&&!e.disabled&&t(!1)},u=()=>{e.disabled||t(!o)},a=Ze({strategy:e.strategy,placement:e.preventPositionChangeWhenVisible?e.positionRef.current:e.position,middleware:br(e,()=>a,n),whileElementsMounted:e.keepMounted?void 0:U});return i.useEffect(()=>{if(!(!a.refs.reference.current||!a.refs.floating.current)&&o)return U(a.refs.reference.current,a.refs.floating.current,a.update)},[o,a.update]),X(()=>{e.onPositionChange?.(a.placement),e.positionRef.current=a.placement},[a.placement,e.preventPositionChangeWhenVisible]),X(()=>{o!==l.current&&(o?e.onOpen?.():e.onClose?.()),l.current=o},[o,e.onClose,e.onOpen]),Ge(()=>{let s=-1;return o&&(s=window.setTimeout(()=>e.setDropdownVisible(!0),4)),()=>{window.clearTimeout(s)}},[o,e.position]),{floating:a,controlled:typeof e.opened=="boolean",opened:o,onClose:p,onToggle:u}}const Pr={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:lr("popover"),__staticSelector:"Popover",width:"max-content"},xr=re((e,{radius:n,shadow:o})=>({dropdown:{"--popover-radius":n===void 0?void 0:dr(n),"--popover-shadow":cr(o)}}));function D(e){const n=E("Popover",Pr,e),{children:o,position:t,offset:l,onPositionChange:p,positionDependencies:u,opened:a,transitionProps:s,onExitTransitionEnd:v,onEnterTransitionEnd:d,width:c,middlewares:r,withArrow:m,arrowSize:w,arrowOffset:y,arrowRadius:h,arrowPosition:O,unstyled:x,classNames:P,styles:g,closeOnClickOutside:C,withinPortal:I,portalProps:ie,closeOnEscape:le,clickOutsideEvents:ce,trapFocus:de,onClose:ue,onDismiss:S,onOpen:fe,onChange:pe,zIndex:we,radius:ge,shadow:ve,id:me,defaultOpened:F,__staticSelector:V,withRoles:he,disabled:_,returnFocus:be,variant:ye,keepMounted:M,vars:Pe,floatingStrategy:A,withOverlay:xe,overlayProps:T,hideDetached:Re,attributes:Ce,preventPositionChangeWhenVisible:z,...Ee}=n,$=ee({name:V,props:n,classes:oe,classNames:P,styles:g,unstyled:x,attributes:Ce,rootSelector:"dropdown",vars:Pe,varsResolver:xr}),{resolvedStyles:De}=or({classNames:P,styles:g,props:n}),[Oe,K]=i.useState(a??F??!1),W=i.useRef(t),B=i.useRef(null),[Se,Te]=i.useState(null),[ze,Ne]=i.useState(null),{dir:je}=nr(),ke=Q(),H=sr(me),f=yr({middlewares:r,width:c,position:ar(je,t),offset:typeof l=="number"?l+(m?w/2:0):l,arrowRef:B,arrowOffset:y,onPositionChange:p,positionDependencies:u,opened:a,defaultOpened:F,onChange:pe,onOpen:fe,onClose:ue,onDismiss:S,strategy:A,dropdownVisible:Oe,setDropdownVisible:K,positionRef:W,disabled:_,preventPositionChangeWhenVisible:z,keepMounted:M});wr(()=>{C&&(f.onClose(),S?.())},ce,[Se,ze]);const Ie=i.useCallback(R=>{Te(R),f.floating.refs.setReference(R)},[f.floating.refs.setReference]),Fe=i.useCallback(R=>{Ne(R),f.floating.refs.setFloating(R)},[f.floating.refs.setFloating]),Ve=i.useCallback(()=>{s?.onExited?.(),v?.(),K(!1),z||(W.current=t)},[s?.onExited,v,z,t]),_e=i.useCallback(()=>{s?.onEntered?.(),d?.()},[s?.onEntered,d]);return b.jsxs(vr,{value:{returnFocus:be,disabled:_,controlled:f.controlled,reference:Ie,floating:Fe,x:f.floating.x,y:f.floating.y,arrowX:f.floating?.middlewareData?.arrow?.x,arrowY:f.floating?.middlewareData?.arrow?.y,opened:f.opened,arrowRef:B,transitionProps:{...s,onExited:Ve,onEntered:_e},width:c,withArrow:m,arrowSize:w,arrowOffset:y,arrowRadius:h,arrowPosition:O,placement:f.floating.placement,trapFocus:de,withinPortal:I,portalProps:ie,zIndex:we,radius:ge,shadow:ve,closeOnEscape:le,onDismiss:S,onClose:f.onClose,onToggle:f.onToggle,getTargetId:()=>`${H}-target`,getDropdownId:()=>`${H}-dropdown`,withRoles:he,targetProps:Ee,__staticSelector:V,classNames:P,styles:g,unstyled:x,variant:ye,keepMounted:M,getStyles:$,resolvedStyles:De,floatingStrategy:A,referenceHidden:Re&&ke!=="test"?f.floating.middlewareData.hide?.referenceHidden:!1},children:[o,xe&&b.jsx(J,{transition:"fade",mounted:f.opened,duration:s?.duration||250,exitDuration:s?.exitDuration||250,children:R=>b.jsx(G,{withinPortal:I,children:b.jsx(ir,{...T,...$("overlay",{className:T?.className,style:[R,T?.style]})})})})]})}D.Target=ne;D.Dropdown=k;D.displayName="@mantine/core/Popover";D.extend=e=>e;var se={root:"m_3eebeb36",label:"m_9e365f20"};const Rr={orientation:"horizontal"},Cr=re((e,{color:n,variant:o,size:t})=>({root:{"--divider-color":n?fr(n,e):void 0,"--divider-border-style":o,"--divider-size":ur(t,"divider-size")}})),ae=j((e,n)=>{const o=E("Divider",Rr,e),{classNames:t,className:l,style:p,styles:u,unstyled:a,vars:s,color:v,orientation:d,label:c,labelPosition:r,mod:m,attributes:w,...y}=o,h=ee({name:"Divider",classes:se,props:o,className:l,style:p,classNames:t,styles:u,unstyled:a,attributes:w,vars:s,varsResolver:Cr});return b.jsx(N,{ref:n,mod:[{orientation:d,"with-label":!!c},m],...h("root"),...y,role:"separator",children:c&&b.jsx(N,{component:"span",mod:{position:r},...h("label"),children:c})})});ae.classes=se;ae.displayName="@mantine/core/Divider";export{ae as D,D as P,Sr as u};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as z,d as v,o as y,j as g,B as f,t as h,w as E,x as F,v as u,f as T,h as V}from"./entry.
|
|
1
|
+
import{p as z,d as v,o as y,j as g,B as f,t as h,w as E,x as F,v as u,f as T,h as V}from"./entry.DhzNl8q_.js";var x={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const W=h((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:F(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"?E(s,a):void 0}}}),S=z((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:W});return g.jsxs(f,{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 q={gap:"md",align:"stretch",justify:"flex-start"},A=h((a,{gap:e,align:s,justify:o})=>({root:{"--stack-gap":V(e),"--stack-align":s,"--stack-justify":o}})),k=T((a,e)=>{const s=v("Stack",q,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(f,{ref:e,...p("root"),variant:i,...m})});k.classes=j;k.displayName="@mantine/core/Stack";export{S as B,k as S};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as x,d as b,o as f,j as g,B as j,t as N,w as R}from"./entry.
|
|
1
|
+
import{f as x,d as b,o as f,j as g,B as j,t as N,w as R}from"./entry.DhzNl8q_.js";var a={root:"m_b183c0a2"};const h=N((e,{color:s})=>({root:{"--code-bg":s?R(s,e):void 0}})),r=x((e,s)=>{const o=b("Code",null,e),{classNames:c,className:l,style:n,styles:d,unstyled:m,vars:p,color:B,block:t,variant:i,mod:u,attributes:v,...y}=o,C=f({name:"Code",props:o,classes:a,className:l,style:n,classNames:c,styles:d,unstyled:m,attributes:v,vars:p,varsResolver:h});return g.jsx(j,{component:t?"pre":"code",variant:i,ref:s,mod:[{block:t},u],...C("root"),...y,dir:"ltr"})});r.classes=a;r.displayName="@mantine/core/Code";export{r as C};
|
|
Binary file
|