@alepha/devtools 0.14.2 → 0.14.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/assets/devtools/chunk.B3_W5FaN.js +1 -0
  2. package/assets/devtools/chunk.BBrq-Wwo.js +7 -0
  3. package/assets/devtools/{chunk.Dwb-lFg8.js → chunk.BC4Lys4j.js} +1 -1
  4. package/assets/devtools/chunk.BNC0DJB8.js +1 -0
  5. package/assets/devtools/chunk.BOc4btAA.js +2 -0
  6. package/assets/devtools/chunk.BPjMdorr.js +1 -0
  7. package/assets/devtools/chunk.Bdi_dTor.js +1 -0
  8. package/assets/devtools/{chunk.BA8URMP8.js → chunk.BeYM7pih.js} +1 -1
  9. package/assets/devtools/{chunk.BkQQhCPw.js → chunk.BjjA59Pf.js} +1 -1
  10. package/assets/devtools/{chunk.D6vpaxPE.js → chunk.ByuRJbSC.js} +1 -1
  11. package/assets/devtools/chunk.C1yl87Yo.js +1 -0
  12. package/assets/devtools/{chunk.CSlinMdh.js → chunk.C5K_AIru.js} +1 -1
  13. package/assets/devtools/chunk.C6NWzsJg.js +1 -0
  14. package/assets/devtools/{chunk.CcRPc1V0.js → chunk.CAWWjC4E.js} +1 -1
  15. package/assets/devtools/chunk.CQ8PqHT0.js +1 -0
  16. package/assets/devtools/{chunk.B_-9nxHc.js → chunk.CYVZxO-p.js} +1 -1
  17. package/assets/devtools/{chunk.DRx03mgu.js → chunk.ChDpavl2.js} +1 -1
  18. package/assets/devtools/chunk.DAVfKvCa.js +2 -0
  19. package/assets/devtools/{chunk.QuY3UyEF.js → chunk.DF8tZYh8.js} +1 -1
  20. package/assets/devtools/{chunk.CD3lZA1D.js → chunk.DI-f4xNk.js} +1 -1
  21. package/assets/devtools/{chunk.CMrSghiM.js → chunk.DLDchrhP.js} +1 -1
  22. package/assets/devtools/{chunk.DUP1E40B.js → chunk.DN-SKgAD.js} +1 -1
  23. package/assets/devtools/{chunk.BXj_XO3l.js → chunk.DcaVw31J.js} +1 -1
  24. package/assets/devtools/chunk.Dwv4A_H_.js +1 -0
  25. package/assets/devtools/chunk.DxjqPOcc.js +1 -0
  26. package/assets/devtools/{chunk.C2Epljet.js → chunk.I1TSx4X4.js} +1 -1
  27. package/assets/devtools/chunk.INuuLdYd.js +1 -0
  28. package/assets/devtools/{chunk.C2XzHl1-.js → chunk.PWK2K2kI.js} +1 -1
  29. package/assets/devtools/chunk.UAANdYnt.js +1 -0
  30. package/assets/devtools/chunk.XsVAJU_N.js +9 -0
  31. package/assets/devtools/chunk.iyc5GsVj.js +1 -0
  32. package/assets/devtools/chunk.mJxmm31y.js +1 -0
  33. package/assets/devtools/chunk.ospt8-RN.js +1 -0
  34. package/assets/devtools/entry.DBfTnVUe.js +75 -0
  35. package/assets/devtools/index.html +1 -1
  36. package/dist/index.d.ts +29 -0
  37. package/dist/index.js +15 -0
  38. package/dist/index.js.map +1 -1
  39. package/package.json +9 -9
  40. package/src/__tests__/DevCollectorProvider.spec.ts +7 -0
  41. package/src/api/providers/DevToolsDatabaseProvider.ts +16 -0
  42. package/src/ui/components/DevDashboard.tsx +13 -163
  43. package/src/ui/components/DevLayout.tsx +26 -21
  44. package/src/ui/components/graph/DevDependencyGraph.tsx +123 -104
  45. package/src/ui/components/graph/GraphControls.tsx +31 -25
  46. package/assets/devtools/chunk.3mUAkkKN.js +0 -1
  47. package/assets/devtools/chunk.AVmV_XG3.js +0 -1
  48. package/assets/devtools/chunk.B9Nj9arT.js +0 -1
  49. package/assets/devtools/chunk.BZoA8zmc.js +0 -1
  50. package/assets/devtools/chunk.Bk_AzNdP.js +0 -7
  51. package/assets/devtools/chunk.BlCuAV4r.js +0 -2
  52. package/assets/devtools/chunk.BoKPUi4h.js +0 -2
  53. package/assets/devtools/chunk.CMPoj2S1.js +0 -1
  54. package/assets/devtools/chunk.CNyKXw81.js +0 -9
  55. package/assets/devtools/chunk.CUdeQBl0.js +0 -6
  56. package/assets/devtools/chunk.CqWgHz10.js +0 -1
  57. package/assets/devtools/chunk.DCS6fHH1.js +0 -1
  58. package/assets/devtools/chunk.DIbRzrh1.js +0 -1
  59. package/assets/devtools/chunk.DJdym_tE.js +0 -1
  60. package/assets/devtools/chunk.DhCpNWJE.js +0 -1
  61. package/assets/devtools/chunk.DojDQgy5.js +0 -1
  62. package/assets/devtools/chunk.DqX1betX.js +0 -1
  63. package/assets/devtools/chunk.OgXBCMJY.js +0 -1
  64. package/assets/devtools/chunk.VmKlHUok.js +0 -1
  65. package/assets/devtools/chunk.VyCl7mMj.js +0 -1
  66. package/assets/devtools/chunk.e9ZcH1yi.js +0 -1
  67. package/assets/devtools/entry.r_sixgJG.js +0 -75
@@ -1 +1 @@
1
- import{r as h,j as i,B as W,f as oe,b as ae,q as ce,ag as le,s as ie,g as ue,T as A,a4 as de,E as fe,G as he,a9 as pe,aa as me,ab as ye,ah as ve,F as ge,H as xe}from"./entry.r_sixgJG.js";import{f as G}from"./chunk.BlqFPyLh.js";import{u as ke}from"./chunk.CcRPc1V0.js";function Y(e){const r=new Map;return(...n)=>{const t=JSON.stringify(n);if(r.has(t))return r.get(t);const s=e(...n);return r.set(t,s),s}}function L(e,r,n){if(!e||!r)return[];const t=n.indexOf(e),s=n.indexOf(r),c=Math.min(t,s),d=Math.max(t,s);return n.slice(c,d+1)}function H({node:e,getStyles:r,rootIndex:n,controller:t,expandOnClick:s,selectOnClick:c,isSubtree:d,level:p=1,renderNode:g,flatValues:f,allowRangeSelection:m,expandOnSpace:x,checkOnSpace:b}){const u=h.useRef(null),y=(e.children||[]).map(o=>i.jsx(H,{node:o,flatValues:f,getStyles:r,rootIndex:void 0,level:p+1,controller:t,expandOnClick:s,isSubtree:!0,renderNode:g,selectOnClick:c,allowRangeSelection:m,expandOnSpace:x,checkOnSpace:b},o.value)),v=o=>{if(o.nativeEvent.code==="ArrowRight"&&(o.stopPropagation(),o.preventDefault(),t.expandedState[e.value]?o.currentTarget.querySelector("[role=treeitem]")?.focus():t.expand(e.value)),o.nativeEvent.code==="ArrowLeft"&&(o.stopPropagation(),o.preventDefault(),t.expandedState[e.value]&&(e.children||[]).length>0?t.collapse(e.value):d&&G(o.currentTarget,"[role=treeitem]")?.focus()),o.nativeEvent.code==="ArrowDown"||o.nativeEvent.code==="ArrowUp"){const w=G(o.currentTarget,"[data-tree-root]");if(!w)return;o.stopPropagation(),o.preventDefault();const T=Array.from(w.querySelectorAll("[role=treeitem]")),O=T.indexOf(o.currentTarget);if(O===-1)return;const I=o.nativeEvent.code==="ArrowDown"?O+1:O-1;if(T[I]?.focus(),o.shiftKey){const E=T[I];E&&t.setSelectedState(L(t.anchorNode,E.dataset.value,f))}}o.nativeEvent.code==="Space"&&(x&&(o.stopPropagation(),o.preventDefault(),t.toggleExpanded(e.value)),b&&(o.stopPropagation(),o.preventDefault(),t.isNodeChecked(e.value)?t.uncheckNode(e.value):t.checkNode(e.value)))},N=o=>{o.stopPropagation(),m&&o.shiftKey&&t.anchorNode?(t.setSelectedState(L(t.anchorNode,e.value,f)),u.current?.focus()):(s&&t.toggleExpanded(e.value),c&&t.select(e.value),u.current?.focus())},C=t.selectedState.includes(e.value),S={...r("label"),onClick:N,"data-selected":C||void 0,"data-value":e.value,"data-hovered":t.hoveredNode===e.value||void 0};return i.jsxs("li",{...r("node",{style:{"--label-offset":`calc(var(--level-offset) * ${p-1})`}}),role:"treeitem","aria-selected":C,"data-value":e.value,"data-selected":C||void 0,"data-hovered":t.hoveredNode===e.value||void 0,"data-level":p,tabIndex:n===0?0:-1,onKeyDown:v,ref:u,onMouseOver:o=>{o.stopPropagation(),t.setHoveredNode(e.value)},onMouseLeave:o=>{o.stopPropagation(),t.setHoveredNode(null)},children:[typeof g=="function"?g({node:e,level:p,selected:C,tree:t,expanded:t.expandedState[e.value]||!1,hasChildren:Array.isArray(e.children)&&e.children.length>0,elementProps:S}):i.jsx("div",{...S,children:e.label}),t.expandedState[e.value]&&y.length>0&&i.jsx(W,{component:"ul",role:"group",...r("subtree"),"data-level":p,children:y})]})}H.displayName="@mantine/core/TreeNode";function M(e,r,n=[]){const t=[];for(const s of e)if(Array.isArray(s.children)&&s.children.length>0){const c=M(s.children,r,n);if(c.currentTreeChecked.length===s.children.length){const d=c.currentTreeChecked.every(g=>g.checked),p={checked:d,indeterminate:!d,value:s.value,hasChildren:!0};t.push(p),n.push(p)}else if(c.currentTreeChecked.length>0){const d={checked:!1,indeterminate:!0,value:s.value,hasChildren:!0};t.push(d),n.push(d)}}else if(r.includes(s.value)){const c={checked:!0,indeterminate:!1,value:s.value,hasChildren:!1};t.push(c),n.push(c)}return{result:n,currentTreeChecked:t}}function Z(e,r){for(const n of r){if(n.value===e)return n;if(Array.isArray(n.children)){const t=Z(e,n.children);if(t)return t}}return null}function P(e,r,n=[]){const t=Z(e,r);return t?!Array.isArray(t.children)||t.children.length===0?[t.value]:(t.children.forEach(s=>{Array.isArray(s.children)&&s.children.length>0?P(s.value,r,n):n.push(s.value)}),n):n}function X(e){return e.reduce((r,n)=>(Array.isArray(n.children)&&n.children.length>0?r.push(...X(n.children)):r.push(n.value),r),[])}function be(e,r,n){return n.length===0?!1:n.includes(e)?!0:M(r,n).result.some(s=>s.value===e&&s.checked)}const Ne=Y(be);function je(e,r,n){return n.length===0?!1:M(r,n).result.some(s=>s.value===e&&s.indeterminate)}const Ce=Y(je);function _(e,r,n,t={}){return r.forEach(s=>{t[s.value]=s.value in e?e[s.value]:s.value===n,Array.isArray(s.children)&&_(e,s.children,n,t)}),t}function B(e,r){const n=_({},e,[]);return r==="*"?Object.keys(n).reduce((t,s)=>({...t,[s]:!0}),{}):(r.forEach(t=>{n[t]=!0}),n)}function Se(e,r){const n=[];return e.forEach(t=>n.push(...P(t,r))),Array.from(new Set(n))}function Q({initialSelectedState:e=[],initialCheckedState:r=[],initialExpandedState:n={},multiple:t=!1,onNodeCollapse:s,onNodeExpand:c}={}){const[d,p]=h.useState([]),[g,f]=h.useState(n),[m,x]=h.useState(e),[b,u]=h.useState(r),[y,v]=h.useState(null),[N,C]=h.useState(null),S=h.useCallback(a=>{f(l=>_(l,a,m)),u(l=>Se(l,a)),p(a)},[m,b]),o=h.useCallback(a=>{f(l=>{const j={...l,[a]:!l[a]};return j[a]?c?.(a):s?.(a),j})},[s,c]),w=h.useCallback(a=>{f(l=>(l[a]!==!1&&s?.(a),{...l,[a]:!1}))},[s]),T=h.useCallback(a=>{f(l=>(l[a]!==!0&&c?.(a),{...l,[a]:!0}))},[c]),O=h.useCallback(()=>{f(a=>{const l={...a};return Object.keys(l).forEach(j=>{l[j]=!0}),l})},[]),I=h.useCallback(()=>{f(a=>{const l={...a};return Object.keys(l).forEach(j=>{l[j]=!1}),l})},[]),E=h.useCallback(a=>x(l=>t?l.includes(a)?(v(null),l.filter(j=>j!==a)):(v(a),[...l,a]):l.includes(a)?(v(null),[]):(v(a),[a])),[]),V=h.useCallback(a=>{v(a),x(l=>t?l.includes(a)?l:[...l,a]:[a])},[]),$=h.useCallback(a=>{y===a&&v(null),x(l=>l.filter(j=>j!==a))},[]),D=h.useCallback(()=>{x([]),v(null)},[]),R=h.useCallback(a=>{const l=P(a,d);u(j=>Array.from(new Set([...j,...l])))},[d]),F=h.useCallback(a=>{const l=P(a,d);u(j=>j.filter(se=>!l.includes(se)))},[d]),ne=h.useCallback(()=>{u(()=>X(d))},[d]),re=h.useCallback(()=>{u([])},[]);return{multiple:t,expandedState:g,selectedState:m,checkedState:b,anchorNode:y,initialize:S,toggleExpanded:o,collapse:w,expand:T,expandAllNodes:O,collapseAllNodes:I,setExpandedState:f,checkNode:R,uncheckNode:F,checkAllNodes:ne,uncheckAllNodes:re,setCheckedState:u,toggleSelected:E,select:V,deselect:$,clearSelected:D,setSelectedState:x,hoveredNode:N,setHoveredNode:C,getCheckedNodes:()=>M(d,b).result,isNodeChecked:a=>Ne(a,d,b),isNodeIndeterminate:a=>Ce(a,d,b)}}var z={root:"m_f698e191",subtree:"m_75f3ecf",node:"m_f6970eb1",label:"m_dc283425"};function ee(e){return e.reduce((r,n)=>(r.push(n.value),n.children&&r.push(...ee(n.children)),r),[])}const Ae={expandOnClick:!0,allowRangeSelection:!0,expandOnSpace:!0},we=ie((e,{levelOffset:r})=>({root:{"--level-offset":ue(r)}})),q=oe((e,r)=>{const n=ae("Tree",Ae,e),{classNames:t,className:s,style:c,styles:d,unstyled:p,vars:g,data:f,expandOnClick:m,tree:x,renderNode:b,selectOnClick:u,clearSelectionOnOutsideClick:y,allowRangeSelection:v,expandOnSpace:N,levelOffset:C,checkOnSpace:S,attributes:o,...w}=n,T=Q(),O=x||T,I=ce({name:"Tree",classes:z,props:n,className:s,style:c,classNames:t,styles:d,unstyled:p,attributes:o,vars:g,varsResolver:we}),E=ke(()=>y&&O.clearSelected()),V=le(r,E),$=h.useMemo(()=>ee(f),[f]);h.useEffect(()=>{O.initialize(f)},[f]);const D=f.map((R,F)=>i.jsx(H,{node:R,getStyles:I,rootIndex:F,expandOnClick:m,selectOnClick:u,controller:O,renderNode:b,flatValues:$,allowRangeSelection:v,expandOnSpace:N,checkOnSpace:S},R.value));return i.jsx(W,{component:"ul",ref:V,...I("root"),...w,role:"tree","aria-multiselectable":O.multiple,"data-tree-root":!0,children:D})});q.displayName="@mantine/core/Tree";q.classes=z;const U={xs:{icon:14,levelOffset:16},sm:{icon:16,levelOffset:20},md:{icon:18,levelOffset:24},lg:{icon:20,levelOffset:28},xl:{icon:22,levelOffset:32}},k={root:{fontFamily:"var(--mantine-font-family-monospace)"},chevron:{flexShrink:0,color:"var(--mantine-color-dimmed)"},key:{color:"var(--mantine-color-cyan-text)",fontWeight:500},colon:{color:"var(--mantine-color-dimmed)"},string:{color:"var(--mantine-color-teal-text)"},number:{color:"var(--mantine-color-blue-text)"},boolean:{color:"var(--mantine-color-violet-text)"},null:{color:"var(--mantine-color-dimmed)",fontStyle:"italic"},preview:{color:"var(--mantine-color-dimmed)"}},K=e=>e===null?"null":e===void 0?"undefined":Array.isArray(e)?"array":typeof e;function J(e,r=[],n,t=!1,s=10){const c=n!==void 0?[...r,n]:r,d=c.length>0?c.join("."):"root";if(c.length>s)return{value:d,label:n??"",nodeValue:e,nodeKey:n,path:c,isArrayItem:t};const p=K(e);if(p==="object"||p==="array"){const f=(p==="array"?e.map((m,x)=>[String(x),m]):Object.entries(e)).map(([m,x])=>J(x,c,m,p==="array",s)).filter(m=>m!==null);return{value:d,label:n??"",nodeValue:e,nodeKey:n,path:c,isArrayItem:t,children:f.length>0?f:void 0}}return{value:d,label:n??"",nodeValue:e,nodeKey:n,path:c,isArrayItem:t}}function te(e,r,n=0){if(n>=r)return[];const t=[];for(const s of e)s.children&&(t.push(s.value),t.push(...te(s.children,r,n+1)));return t}const Oe=({value:e,iconSize:r})=>{const[n,t]=h.useState(!1),s=h.useCallback(c=>{c.stopPropagation(),navigator.clipboard.writeText(e),t(!0),setTimeout(()=>t(!1),1500)},[e]);return i.jsx(pe,{size:r+4,variant:"transparent",c:n?"green":"dimmed",onClick:s,className:"alepha-json-viewer-copy",children:n?i.jsx(me,{size:r}):i.jsx(ye,{size:r})})},Te=({node:e,expanded:r,hasChildren:n,elementProps:t,size:s,config:c,showQuotes:d,showCopyButton:p,renderValue:g})=>{const{nodeValue:f,nodeKey:m,path:x,isArrayItem:b,isRoot:u}=e,y=K(f),v=y==="object"||y==="array",N=()=>{if(!v)return null;const o=(y==="array"?f:Object.keys(f)).length,w=y==="array"?"item":"key";return r?null:i.jsx(A,{fs:"italic",component:"span",size:s,style:k.preview,children:o===0?y==="array"?"[]":"{}":y==="array"?`[ ${o} ${o===1?w:`${w}s`} ]`:`{ ${o} ${o===1?w:`${w}s`} }`})},C=()=>v?JSON.stringify(f,null,2):String(f??"");return i.jsxs(de,{gap:6,wrap:"nowrap",...t,className:`alepha-json-viewer-row ${t.className||""}`,children:[n?r?i.jsx(fe,{size:c.icon,style:k.chevron}):i.jsx(he,{size:c.icon,style:k.chevron}):i.jsx("span",{style:{width:c.icon,flexShrink:0}}),m!==void 0&&!b&&i.jsxs(A,{component:"span",size:s,children:[i.jsx("span",{style:k.key,children:d?`"${m}"`:m}),i.jsx("span",{style:k.colon,children:":"})]}),m!==void 0&&b&&i.jsxs(A,{component:"span",size:s,children:[i.jsx("span",{style:k.key,children:m}),i.jsx("span",{style:k.colon,children:":"})]}),n?N():v?y==="array"?i.jsx(A,{component:"span",size:s,style:k.preview,children:"[]"}):i.jsx(A,{component:"span",size:s,style:k.preview,children:"{}"}):g(f,m,x),p&&i.jsx(Oe,{value:C(),iconSize:c.icon})]})},Ie=({data:e,defaultExpandedDepth:r=2,maxDepth:n=10,size:t="sm",showQuotes:s=!1,showCopyButton:c=!0,formatValue:d})=>{const p=U[t]||U.sm,g=h.useMemo(()=>{const u=K(e);if(u==="object"||u==="array"){const N=(u==="array"?e.map((S,o)=>[String(o),S]):Object.entries(e)).map(([S,o])=>J(o,[],S,u==="array",n)).filter(S=>S!==null);return[{value:"root",label:"",nodeValue:e,nodeKey:void 0,path:[],isArrayItem:!1,isRoot:!0,children:N.length>0?N:void 0}]}const y=J(e,[],void 0,!1,n);return y?[y]:[]},[e,n]),f=h.useMemo(()=>{if(r===0)return{};if(r===1/0)return B(g,"*");const u=te(g,r+1);return B(g,u)},[g,r]),m=Q({initialExpandedState:f}),x=h.useCallback((u,y,v)=>{const N=d?.(y,u,v);if(N!==void 0)return i.jsx(A,{component:"span",size:t,style:k.string,className:"alepha-json-viewer-value",title:String(u),children:N});const C=K(u);switch(C){case"string":return i.jsxs(A,{style:k.string,component:"span",size:t,className:"alepha-json-viewer-value",title:u,children:['"',u,'"']});case"number":return i.jsx(A,{component:"span",size:t,style:k.number,children:u});case"boolean":return i.jsx(A,{component:"span",size:t,style:k.boolean,children:String(u)});case"null":case"undefined":return i.jsx(A,{component:"span",size:t,style:k.null,children:C});default:return i.jsx(A,{component:"span",size:t,children:String(u)})}},[d,s,t]),b=h.useCallback(({node:u,expanded:y,hasChildren:v,elementProps:N})=>i.jsx(Te,{node:u,expanded:y,hasChildren:v,elementProps:N,size:t,config:p,showQuotes:s,showCopyButton:c,renderValue:x}),[p,x,c,s,t]);return g.length===0?i.jsx(A,{size:t,style:k.null,children:e===null?"null":e===void 0?"undefined":"{}"}):i.jsx(q,{data:g,tree:m,levelOffset:p.levelOffset,expandOnClick:!0,renderNode:b,styles:{root:k.root}})};ve.prototype.json=function(e,r){this.open({size:"lg",title:r?.title||"Json Viewer",...r,content:i.jsx(ge,{bdrs:"md",w:"100%",flex:1,p:"sm",bg:xe.colors.surface,children:i.jsx(Ie,{size:"xs",data:e})})})};export{Ie as J};
1
+ import{r as h,j as i,B as W,f as oe,b as ae,q as ce,ah as le,s as ie,g as ue,T as A,a5 as de,E as fe,G as he,aa as pe,ab as me,ac as ye,ai as ve,F as ge,H as xe}from"./entry.DBfTnVUe.js";import{f as G}from"./chunk.BlqFPyLh.js";import{u as ke}from"./chunk.CAWWjC4E.js";function Y(e){const r=new Map;return(...n)=>{const t=JSON.stringify(n);if(r.has(t))return r.get(t);const s=e(...n);return r.set(t,s),s}}function L(e,r,n){if(!e||!r)return[];const t=n.indexOf(e),s=n.indexOf(r),c=Math.min(t,s),d=Math.max(t,s);return n.slice(c,d+1)}function H({node:e,getStyles:r,rootIndex:n,controller:t,expandOnClick:s,selectOnClick:c,isSubtree:d,level:p=1,renderNode:g,flatValues:f,allowRangeSelection:m,expandOnSpace:x,checkOnSpace:b}){const u=h.useRef(null),y=(e.children||[]).map(o=>i.jsx(H,{node:o,flatValues:f,getStyles:r,rootIndex:void 0,level:p+1,controller:t,expandOnClick:s,isSubtree:!0,renderNode:g,selectOnClick:c,allowRangeSelection:m,expandOnSpace:x,checkOnSpace:b},o.value)),v=o=>{if(o.nativeEvent.code==="ArrowRight"&&(o.stopPropagation(),o.preventDefault(),t.expandedState[e.value]?o.currentTarget.querySelector("[role=treeitem]")?.focus():t.expand(e.value)),o.nativeEvent.code==="ArrowLeft"&&(o.stopPropagation(),o.preventDefault(),t.expandedState[e.value]&&(e.children||[]).length>0?t.collapse(e.value):d&&G(o.currentTarget,"[role=treeitem]")?.focus()),o.nativeEvent.code==="ArrowDown"||o.nativeEvent.code==="ArrowUp"){const w=G(o.currentTarget,"[data-tree-root]");if(!w)return;o.stopPropagation(),o.preventDefault();const T=Array.from(w.querySelectorAll("[role=treeitem]")),O=T.indexOf(o.currentTarget);if(O===-1)return;const I=o.nativeEvent.code==="ArrowDown"?O+1:O-1;if(T[I]?.focus(),o.shiftKey){const E=T[I];E&&t.setSelectedState(L(t.anchorNode,E.dataset.value,f))}}o.nativeEvent.code==="Space"&&(x&&(o.stopPropagation(),o.preventDefault(),t.toggleExpanded(e.value)),b&&(o.stopPropagation(),o.preventDefault(),t.isNodeChecked(e.value)?t.uncheckNode(e.value):t.checkNode(e.value)))},N=o=>{o.stopPropagation(),m&&o.shiftKey&&t.anchorNode?(t.setSelectedState(L(t.anchorNode,e.value,f)),u.current?.focus()):(s&&t.toggleExpanded(e.value),c&&t.select(e.value),u.current?.focus())},C=t.selectedState.includes(e.value),S={...r("label"),onClick:N,"data-selected":C||void 0,"data-value":e.value,"data-hovered":t.hoveredNode===e.value||void 0};return i.jsxs("li",{...r("node",{style:{"--label-offset":`calc(var(--level-offset) * ${p-1})`}}),role:"treeitem","aria-selected":C,"data-value":e.value,"data-selected":C||void 0,"data-hovered":t.hoveredNode===e.value||void 0,"data-level":p,tabIndex:n===0?0:-1,onKeyDown:v,ref:u,onMouseOver:o=>{o.stopPropagation(),t.setHoveredNode(e.value)},onMouseLeave:o=>{o.stopPropagation(),t.setHoveredNode(null)},children:[typeof g=="function"?g({node:e,level:p,selected:C,tree:t,expanded:t.expandedState[e.value]||!1,hasChildren:Array.isArray(e.children)&&e.children.length>0,elementProps:S}):i.jsx("div",{...S,children:e.label}),t.expandedState[e.value]&&y.length>0&&i.jsx(W,{component:"ul",role:"group",...r("subtree"),"data-level":p,children:y})]})}H.displayName="@mantine/core/TreeNode";function M(e,r,n=[]){const t=[];for(const s of e)if(Array.isArray(s.children)&&s.children.length>0){const c=M(s.children,r,n);if(c.currentTreeChecked.length===s.children.length){const d=c.currentTreeChecked.every(g=>g.checked),p={checked:d,indeterminate:!d,value:s.value,hasChildren:!0};t.push(p),n.push(p)}else if(c.currentTreeChecked.length>0){const d={checked:!1,indeterminate:!0,value:s.value,hasChildren:!0};t.push(d),n.push(d)}}else if(r.includes(s.value)){const c={checked:!0,indeterminate:!1,value:s.value,hasChildren:!1};t.push(c),n.push(c)}return{result:n,currentTreeChecked:t}}function Z(e,r){for(const n of r){if(n.value===e)return n;if(Array.isArray(n.children)){const t=Z(e,n.children);if(t)return t}}return null}function P(e,r,n=[]){const t=Z(e,r);return t?!Array.isArray(t.children)||t.children.length===0?[t.value]:(t.children.forEach(s=>{Array.isArray(s.children)&&s.children.length>0?P(s.value,r,n):n.push(s.value)}),n):n}function X(e){return e.reduce((r,n)=>(Array.isArray(n.children)&&n.children.length>0?r.push(...X(n.children)):r.push(n.value),r),[])}function be(e,r,n){return n.length===0?!1:n.includes(e)?!0:M(r,n).result.some(s=>s.value===e&&s.checked)}const Ne=Y(be);function je(e,r,n){return n.length===0?!1:M(r,n).result.some(s=>s.value===e&&s.indeterminate)}const Ce=Y(je);function _(e,r,n,t={}){return r.forEach(s=>{t[s.value]=s.value in e?e[s.value]:s.value===n,Array.isArray(s.children)&&_(e,s.children,n,t)}),t}function B(e,r){const n=_({},e,[]);return r==="*"?Object.keys(n).reduce((t,s)=>({...t,[s]:!0}),{}):(r.forEach(t=>{n[t]=!0}),n)}function Se(e,r){const n=[];return e.forEach(t=>n.push(...P(t,r))),Array.from(new Set(n))}function Q({initialSelectedState:e=[],initialCheckedState:r=[],initialExpandedState:n={},multiple:t=!1,onNodeCollapse:s,onNodeExpand:c}={}){const[d,p]=h.useState([]),[g,f]=h.useState(n),[m,x]=h.useState(e),[b,u]=h.useState(r),[y,v]=h.useState(null),[N,C]=h.useState(null),S=h.useCallback(a=>{f(l=>_(l,a,m)),u(l=>Se(l,a)),p(a)},[m,b]),o=h.useCallback(a=>{f(l=>{const j={...l,[a]:!l[a]};return j[a]?c?.(a):s?.(a),j})},[s,c]),w=h.useCallback(a=>{f(l=>(l[a]!==!1&&s?.(a),{...l,[a]:!1}))},[s]),T=h.useCallback(a=>{f(l=>(l[a]!==!0&&c?.(a),{...l,[a]:!0}))},[c]),O=h.useCallback(()=>{f(a=>{const l={...a};return Object.keys(l).forEach(j=>{l[j]=!0}),l})},[]),I=h.useCallback(()=>{f(a=>{const l={...a};return Object.keys(l).forEach(j=>{l[j]=!1}),l})},[]),E=h.useCallback(a=>x(l=>t?l.includes(a)?(v(null),l.filter(j=>j!==a)):(v(a),[...l,a]):l.includes(a)?(v(null),[]):(v(a),[a])),[]),V=h.useCallback(a=>{v(a),x(l=>t?l.includes(a)?l:[...l,a]:[a])},[]),$=h.useCallback(a=>{y===a&&v(null),x(l=>l.filter(j=>j!==a))},[]),D=h.useCallback(()=>{x([]),v(null)},[]),R=h.useCallback(a=>{const l=P(a,d);u(j=>Array.from(new Set([...j,...l])))},[d]),F=h.useCallback(a=>{const l=P(a,d);u(j=>j.filter(se=>!l.includes(se)))},[d]),ne=h.useCallback(()=>{u(()=>X(d))},[d]),re=h.useCallback(()=>{u([])},[]);return{multiple:t,expandedState:g,selectedState:m,checkedState:b,anchorNode:y,initialize:S,toggleExpanded:o,collapse:w,expand:T,expandAllNodes:O,collapseAllNodes:I,setExpandedState:f,checkNode:R,uncheckNode:F,checkAllNodes:ne,uncheckAllNodes:re,setCheckedState:u,toggleSelected:E,select:V,deselect:$,clearSelected:D,setSelectedState:x,hoveredNode:N,setHoveredNode:C,getCheckedNodes:()=>M(d,b).result,isNodeChecked:a=>Ne(a,d,b),isNodeIndeterminate:a=>Ce(a,d,b)}}var z={root:"m_f698e191",subtree:"m_75f3ecf",node:"m_f6970eb1",label:"m_dc283425"};function ee(e){return e.reduce((r,n)=>(r.push(n.value),n.children&&r.push(...ee(n.children)),r),[])}const Ae={expandOnClick:!0,allowRangeSelection:!0,expandOnSpace:!0},we=ie((e,{levelOffset:r})=>({root:{"--level-offset":ue(r)}})),q=oe((e,r)=>{const n=ae("Tree",Ae,e),{classNames:t,className:s,style:c,styles:d,unstyled:p,vars:g,data:f,expandOnClick:m,tree:x,renderNode:b,selectOnClick:u,clearSelectionOnOutsideClick:y,allowRangeSelection:v,expandOnSpace:N,levelOffset:C,checkOnSpace:S,attributes:o,...w}=n,T=Q(),O=x||T,I=ce({name:"Tree",classes:z,props:n,className:s,style:c,classNames:t,styles:d,unstyled:p,attributes:o,vars:g,varsResolver:we}),E=ke(()=>y&&O.clearSelected()),V=le(r,E),$=h.useMemo(()=>ee(f),[f]);h.useEffect(()=>{O.initialize(f)},[f]);const D=f.map((R,F)=>i.jsx(H,{node:R,getStyles:I,rootIndex:F,expandOnClick:m,selectOnClick:u,controller:O,renderNode:b,flatValues:$,allowRangeSelection:v,expandOnSpace:N,checkOnSpace:S},R.value));return i.jsx(W,{component:"ul",ref:V,...I("root"),...w,role:"tree","aria-multiselectable":O.multiple,"data-tree-root":!0,children:D})});q.displayName="@mantine/core/Tree";q.classes=z;const U={xs:{icon:14,levelOffset:16},sm:{icon:16,levelOffset:20},md:{icon:18,levelOffset:24},lg:{icon:20,levelOffset:28},xl:{icon:22,levelOffset:32}},k={root:{fontFamily:"var(--mantine-font-family-monospace)"},chevron:{flexShrink:0,color:"var(--mantine-color-dimmed)"},key:{color:"var(--mantine-color-cyan-text)",fontWeight:500},colon:{color:"var(--mantine-color-dimmed)"},string:{color:"var(--mantine-color-teal-text)"},number:{color:"var(--mantine-color-blue-text)"},boolean:{color:"var(--mantine-color-violet-text)"},null:{color:"var(--mantine-color-dimmed)",fontStyle:"italic"},preview:{color:"var(--mantine-color-dimmed)"}},K=e=>e===null?"null":e===void 0?"undefined":Array.isArray(e)?"array":typeof e;function J(e,r=[],n,t=!1,s=10){const c=n!==void 0?[...r,n]:r,d=c.length>0?c.join("."):"root";if(c.length>s)return{value:d,label:n??"",nodeValue:e,nodeKey:n,path:c,isArrayItem:t};const p=K(e);if(p==="object"||p==="array"){const f=(p==="array"?e.map((m,x)=>[String(x),m]):Object.entries(e)).map(([m,x])=>J(x,c,m,p==="array",s)).filter(m=>m!==null);return{value:d,label:n??"",nodeValue:e,nodeKey:n,path:c,isArrayItem:t,children:f.length>0?f:void 0}}return{value:d,label:n??"",nodeValue:e,nodeKey:n,path:c,isArrayItem:t}}function te(e,r,n=0){if(n>=r)return[];const t=[];for(const s of e)s.children&&(t.push(s.value),t.push(...te(s.children,r,n+1)));return t}const Oe=({value:e,iconSize:r})=>{const[n,t]=h.useState(!1),s=h.useCallback(c=>{c.stopPropagation(),navigator.clipboard.writeText(e),t(!0),setTimeout(()=>t(!1),1500)},[e]);return i.jsx(pe,{size:r+4,variant:"transparent",c:n?"green":"dimmed",onClick:s,className:"alepha-json-viewer-copy",children:n?i.jsx(me,{size:r}):i.jsx(ye,{size:r})})},Te=({node:e,expanded:r,hasChildren:n,elementProps:t,size:s,config:c,showQuotes:d,showCopyButton:p,renderValue:g})=>{const{nodeValue:f,nodeKey:m,path:x,isArrayItem:b,isRoot:u}=e,y=K(f),v=y==="object"||y==="array",N=()=>{if(!v)return null;const o=(y==="array"?f:Object.keys(f)).length,w=y==="array"?"item":"key";return r?null:i.jsx(A,{fs:"italic",component:"span",size:s,style:k.preview,children:o===0?y==="array"?"[]":"{}":y==="array"?`[ ${o} ${o===1?w:`${w}s`} ]`:`{ ${o} ${o===1?w:`${w}s`} }`})},C=()=>v?JSON.stringify(f,null,2):String(f??"");return i.jsxs(de,{gap:6,wrap:"nowrap",...t,className:`alepha-json-viewer-row ${t.className||""}`,children:[n?r?i.jsx(fe,{size:c.icon,style:k.chevron}):i.jsx(he,{size:c.icon,style:k.chevron}):i.jsx("span",{style:{width:c.icon,flexShrink:0}}),m!==void 0&&!b&&i.jsxs(A,{component:"span",size:s,children:[i.jsx("span",{style:k.key,children:d?`"${m}"`:m}),i.jsx("span",{style:k.colon,children:":"})]}),m!==void 0&&b&&i.jsxs(A,{component:"span",size:s,children:[i.jsx("span",{style:k.key,children:m}),i.jsx("span",{style:k.colon,children:":"})]}),n?N():v?y==="array"?i.jsx(A,{component:"span",size:s,style:k.preview,children:"[]"}):i.jsx(A,{component:"span",size:s,style:k.preview,children:"{}"}):g(f,m,x),p&&i.jsx(Oe,{value:C(),iconSize:c.icon})]})},Ie=({data:e,defaultExpandedDepth:r=2,maxDepth:n=10,size:t="sm",showQuotes:s=!1,showCopyButton:c=!0,formatValue:d})=>{const p=U[t]||U.sm,g=h.useMemo(()=>{const u=K(e);if(u==="object"||u==="array"){const N=(u==="array"?e.map((S,o)=>[String(o),S]):Object.entries(e)).map(([S,o])=>J(o,[],S,u==="array",n)).filter(S=>S!==null);return[{value:"root",label:"",nodeValue:e,nodeKey:void 0,path:[],isArrayItem:!1,isRoot:!0,children:N.length>0?N:void 0}]}const y=J(e,[],void 0,!1,n);return y?[y]:[]},[e,n]),f=h.useMemo(()=>{if(r===0)return{};if(r===1/0)return B(g,"*");const u=te(g,r+1);return B(g,u)},[g,r]),m=Q({initialExpandedState:f}),x=h.useCallback((u,y,v)=>{const N=d?.(y,u,v);if(N!==void 0)return i.jsx(A,{component:"span",size:t,style:k.string,className:"alepha-json-viewer-value",title:String(u),children:N});const C=K(u);switch(C){case"string":return i.jsxs(A,{style:k.string,component:"span",size:t,className:"alepha-json-viewer-value",title:u,children:['"',u,'"']});case"number":return i.jsx(A,{component:"span",size:t,style:k.number,children:u});case"boolean":return i.jsx(A,{component:"span",size:t,style:k.boolean,children:String(u)});case"null":case"undefined":return i.jsx(A,{component:"span",size:t,style:k.null,children:C});default:return i.jsx(A,{component:"span",size:t,children:String(u)})}},[d,s,t]),b=h.useCallback(({node:u,expanded:y,hasChildren:v,elementProps:N})=>i.jsx(Te,{node:u,expanded:y,hasChildren:v,elementProps:N,size:t,config:p,showQuotes:s,showCopyButton:c,renderValue:x}),[p,x,c,s,t]);return g.length===0?i.jsx(A,{size:t,style:k.null,children:e===null?"null":e===void 0?"undefined":"{}"}):i.jsx(q,{data:g,tree:m,levelOffset:p.levelOffset,expandOnClick:!0,renderNode:b,styles:{root:k.root}})};ve.prototype.json=function(e,r){this.open({size:"lg",title:r?.title||"Json Viewer",...r,content:i.jsx(ge,{bdrs:"md",w:"100%",flex:1,p:"sm",bg:xe.colors.surface,children:i.jsx(Ie,{size:"xs",data:e})})})};export{Ie as J};
@@ -0,0 +1 @@
1
+ import{w as t,j as e,F as l,T as s,Y as o}from"./entry.DBfTnVUe.js";import{A as a}from"./chunk.iyc5GsVj.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};
@@ -1 +1 @@
1
- import{r as i}from"./entry.r_sixgJG.js";const f=["mousedown","touchstart"];function g(e,a,s){const r=i.useRef(null),n=a||f;return i.useEffect(()=>{const u=t=>{const{target:o}=t??{};if(Array.isArray(s)){const d=!document.body.contains(o)&&o?.tagName!=="HTML";s.every(c=>!!c&&!t.composedPath().includes(c))&&!d&&e(t)}else r.current&&!r.current.contains(o)&&e(t)};return n.forEach(t=>document.addEventListener(t,u)),()=>{n.forEach(t=>document.removeEventListener(t,u))}},[r,e,s]),r}export{g as u};
1
+ import{r as i}from"./entry.DBfTnVUe.js";const f=["mousedown","touchstart"];function g(e,a,s){const r=i.useRef(null),n=a||f;return i.useEffect(()=>{const u=t=>{const{target:o}=t??{};if(Array.isArray(s)){const d=!document.body.contains(o)&&o?.tagName!=="HTML";s.every(c=>!!c&&!t.composedPath().includes(c))&&!d&&e(t)}else r.current&&!r.current.contains(o)&&e(t)};return n.forEach(t=>document.addEventListener(t,u)),()=>{n.forEach(t=>document.removeEventListener(t,u))}},[r,e,s]),r}export{g as u};
@@ -0,0 +1 @@
1
+ import{w as T,a3 as J,a4 as R,r as u,j as e,F as m,T as o,B as j,H as f,V as z,af as C,z as B,ad as k,ae as D,aa as I,a6 as A,ag as M}from"./entry.DBfTnVUe.js";import{J as w}from"./chunk.C5K_AIru.js";import{d as O}from"./chunk.ChDpavl2.js";import{S as y,B as E}from"./chunk.DLDchrhP.js";import{T as b}from"./chunk.Bdi_dTor.js";import{S as N,I as L,N as F}from"./chunk.XsVAJU_N.js";import{T as $}from"./chunk.DI-f4xNk.js";import"./chunk.BlqFPyLh.js";import"./chunk.CAWWjC4E.js";import"./chunk.BjFrJKj1.js";import"./chunk.BNC0DJB8.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)})},q=({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})]})]})}),G=({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})})]})},K=({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(q,{atom:t})}),e.jsx(b.Panel,{value:"edit",style:{flex:1,overflow:"hidden"},children:e.jsx(G,{atom:t,onSave:x=>n(t,x)})})]})]})},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,{size:"sm",children:"Select an atom to view its details"})]})}),W=()=>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(W,{}):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(K,{atom:r,onSave:v}):e.jsx(Q,{})})]})};export{de as DevAtomsViewer,de as default};
@@ -1 +1 @@
1
- import{w as a}from"./entry.r_sixgJG.js";const e=[["path",{d:"M16.555 3.843l3.602 3.602a2.877 2.877 0 0 1 0 4.069l-2.643 2.643a2.877 2.877 0 0 1 -4.069 0l-.301 -.301l-6.558 6.558a2 2 0 0 1 -1.239 .578l-.175 .008h-1.172a1 1 0 0 1 -.993 -.883l-.007 -.117v-1.172a2 2 0 0 1 .467 -1.284l.119 -.13l.414 -.414h2v-2h2v-2l2.144 -2.144l-.301 -.301a2.877 2.877 0 0 1 0 -4.069l2.643 -2.643a2.877 2.877 0 0 1 4.069 0",key:"svg-0"}],["path",{d:"M15 9h.01",key:"svg-1"}]],o=a("outline","key","Key",e);export{o as I};
1
+ import{w as a}from"./entry.DBfTnVUe.js";const e=[["path",{d:"M16.555 3.843l3.602 3.602a2.877 2.877 0 0 1 0 4.069l-2.643 2.643a2.877 2.877 0 0 1 -4.069 0l-.301 -.301l-6.558 6.558a2 2 0 0 1 -1.239 .578l-.175 .008h-1.172a1 1 0 0 1 -.993 -.883l-.007 -.117v-1.172a2 2 0 0 1 .467 -1.284l.119 -.13l.414 -.414h2v-2h2v-2l2.144 -2.144l-.301 -.301a2.877 2.877 0 0 1 0 -4.069l2.643 -2.643a2.877 2.877 0 0 1 4.069 0",key:"svg-0"}],["path",{d:"M15 9h.01",key:"svg-1"}]],o=a("outline","key","Key",e);export{o as I};
@@ -1 +1 @@
1
- import{aq as t}from"./entry.r_sixgJG.js";const e=t.object({name:t.text(),group:t.text(),method:t.text(),path:t.text(),prefix:t.text(),fullPath:t.text(),description:t.optional(t.text()),summary:t.optional(t.text()),disabled:t.optional(t.boolean()),secure:t.optional(t.boolean()),hide:t.optional(t.boolean()),body:t.optional(t.any()),params:t.optional(t.any()),query:t.optional(t.any()),response:t.optional(t.any()),bodyContentType:t.optional(t.text())}),a=t.object({name:t.text(),description:t.optional(t.text()),schema:t.any(),defaultValue:t.optional(t.any()),currentValue:t.optional(t.any())}),o=t.object({name:t.text(),description:t.optional(t.text()),mimeTypes:t.optional(t.array(t.text())),maxSize:t.optional(t.number()),provider:t.text()}),n=t.object({name:t.text(),ttl:t.optional(t.any()),disabled:t.optional(t.boolean()),provider:t.text()}),r=t.object({name:t.text(),description:t.optional(t.text()),hidden:t.optional(t.boolean())}),i=t.object({name:t.text(),type:t.text(),nullable:t.boolean(),primaryKey:t.boolean(),identity:t.boolean(),createdAt:t.boolean(),updatedAt:t.boolean(),deletedAt:t.boolean(),version:t.boolean(),hasDefault:t.boolean(),ref:t.optional(t.object({entity:t.text(),column:t.text(),onUpdate:t.optional(t.text()),onDelete:t.optional(t.text())}))}),l=t.object({name:t.optional(t.text()),columns:t.array(t.text()),unique:t.boolean()}),c=t.object({name:t.optional(t.text()),columns:t.array(t.text()),foreignEntity:t.text(),foreignColumns:t.array(t.text())}),s=t.object({name:t.optional(t.text()),columns:t.array(t.text()),unique:t.boolean(),hasCheck:t.boolean()}),p=t.object({name:t.text(),provider:t.text(),columns:t.array(i),indexes:t.array(l),foreignKeys:t.array(c),constraints:t.array(s)}),d=t.object({propertyKey:t.text(),schema:t.any(),values:t.record(t.text(),t.any()),serviceName:t.optional(t.text())}),m=t.object({name:t.text(),providers:t.array(t.text())}),y=t.object({name:t.text(),description:t.optional(t.text()),path:t.optional(t.text()),params:t.optional(t.any()),query:t.optional(t.any()),hasComponent:t.boolean(),hasLazy:t.boolean(),hasResolve:t.boolean(),hasChildren:t.boolean(),hasParent:t.boolean(),hasErrorHandler:t.boolean(),static:t.optional(t.boolean()),cache:t.optional(t.any()),client:t.optional(t.any()),animation:t.optional(t.any())}),x=t.object({name:t.text(),module:t.optional(t.text()),dependencies:t.array(t.text()),aliases:t.optional(t.array(t.text()))}),b=t.object({name:t.text(),description:t.optional(t.text()),schema:t.optional(t.any()),provider:t.text()}),h=t.object({name:t.text(),description:t.optional(t.text()),roles:t.optional(t.array(t.any())),type:t.enum(["internal","external"]),settings:t.optional(t.object({accessTokenExpiration:t.optional(t.any()),refreshTokenExpiration:t.optional(t.any()),hasOnCreateSession:t.boolean(),hasOnRefreshSession:t.boolean(),hasOnDeleteSession:t.boolean()}))}),u=t.object({method:t.text(),path:t.text()}),v=t.object({name:t.text(),description:t.optional(t.text()),cron:t.optional(t.text()),interval:t.optional(t.any()),lock:t.optional(t.boolean())}),S=t.object({name:t.text(),description:t.optional(t.text()),schema:t.optional(t.any()),provider:t.text()}),M=t.object({actions:t.array(e),queues:t.array(b),schedulers:t.array(v),topics:t.array(S),buckets:t.array(o),realms:t.array(h),caches:t.array(n),pages:t.array(y),providers:t.array(x),modules:t.array(m),entities:t.array(p),commands:t.array(r),routes:t.array(u),envs:t.array(d),atoms:t.array(a)});export{M as d};
1
+ import{ar as t}from"./entry.DBfTnVUe.js";const e=t.object({name:t.text(),group:t.text(),method:t.text(),path:t.text(),prefix:t.text(),fullPath:t.text(),description:t.optional(t.text()),summary:t.optional(t.text()),disabled:t.optional(t.boolean()),secure:t.optional(t.boolean()),hide:t.optional(t.boolean()),body:t.optional(t.any()),params:t.optional(t.any()),query:t.optional(t.any()),response:t.optional(t.any()),bodyContentType:t.optional(t.text())}),a=t.object({name:t.text(),description:t.optional(t.text()),schema:t.any(),defaultValue:t.optional(t.any()),currentValue:t.optional(t.any())}),o=t.object({name:t.text(),description:t.optional(t.text()),mimeTypes:t.optional(t.array(t.text())),maxSize:t.optional(t.number()),provider:t.text()}),n=t.object({name:t.text(),ttl:t.optional(t.any()),disabled:t.optional(t.boolean()),provider:t.text()}),r=t.object({name:t.text(),description:t.optional(t.text()),hidden:t.optional(t.boolean())}),i=t.object({name:t.text(),type:t.text(),nullable:t.boolean(),primaryKey:t.boolean(),identity:t.boolean(),createdAt:t.boolean(),updatedAt:t.boolean(),deletedAt:t.boolean(),version:t.boolean(),hasDefault:t.boolean(),ref:t.optional(t.object({entity:t.text(),column:t.text(),onUpdate:t.optional(t.text()),onDelete:t.optional(t.text())}))}),l=t.object({name:t.optional(t.text()),columns:t.array(t.text()),unique:t.boolean()}),c=t.object({name:t.optional(t.text()),columns:t.array(t.text()),foreignEntity:t.text(),foreignColumns:t.array(t.text())}),s=t.object({name:t.optional(t.text()),columns:t.array(t.text()),unique:t.boolean(),hasCheck:t.boolean()}),p=t.object({name:t.text(),provider:t.text(),columns:t.array(i),indexes:t.array(l),foreignKeys:t.array(c),constraints:t.array(s)}),d=t.object({propertyKey:t.text(),schema:t.any(),values:t.record(t.text(),t.any()),serviceName:t.optional(t.text())}),m=t.object({name:t.text(),providers:t.array(t.text())}),y=t.object({name:t.text(),description:t.optional(t.text()),path:t.optional(t.text()),params:t.optional(t.any()),query:t.optional(t.any()),hasComponent:t.boolean(),hasLazy:t.boolean(),hasResolve:t.boolean(),hasChildren:t.boolean(),hasParent:t.boolean(),hasErrorHandler:t.boolean(),static:t.optional(t.boolean()),cache:t.optional(t.any()),client:t.optional(t.any()),animation:t.optional(t.any())}),x=t.object({name:t.text(),module:t.optional(t.text()),dependencies:t.array(t.text()),aliases:t.optional(t.array(t.text()))}),b=t.object({name:t.text(),description:t.optional(t.text()),schema:t.optional(t.any()),provider:t.text()}),h=t.object({name:t.text(),description:t.optional(t.text()),roles:t.optional(t.array(t.any())),type:t.enum(["internal","external"]),settings:t.optional(t.object({accessTokenExpiration:t.optional(t.any()),refreshTokenExpiration:t.optional(t.any()),hasOnCreateSession:t.boolean(),hasOnRefreshSession:t.boolean(),hasOnDeleteSession:t.boolean()}))}),u=t.object({method:t.text(),path:t.text()}),v=t.object({name:t.text(),description:t.optional(t.text()),cron:t.optional(t.text()),interval:t.optional(t.any()),lock:t.optional(t.boolean())}),S=t.object({name:t.text(),description:t.optional(t.text()),schema:t.optional(t.any()),provider:t.text()}),M=t.object({actions:t.array(e),queues:t.array(b),schedulers:t.array(v),topics:t.array(S),buckets:t.array(o),realms:t.array(h),caches:t.array(n),pages:t.array(y),providers:t.array(x),modules:t.array(m),entities:t.array(p),commands:t.array(r),routes:t.array(u),envs:t.array(d),atoms:t.array(a)});export{M as d};
@@ -0,0 +1,2 @@
1
+ import{w as z,a3 as C,a4 as k,r as h,j as e,F as x,T as r,B as a,H as p,af as L,z as E,ad as v,S,a9 as V,ae as B,ab as I,ac as M}from"./entry.DBfTnVUe.js";import{d as $}from"./chunk.ChDpavl2.js";import{S as y,B as b}from"./chunk.DLDchrhP.js";import{C as w}from"./chunk.PWK2K2kI.js";import{T as t}from"./chunk.BjjA59Pf.js";import{I as H}from"./chunk.CYVZxO-p.js";const N=[["path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]],O=z("outline","settings","Settings",N),A=s=>{const n=new Map;for(const l of s){const i=l.schema;if(i?.properties)for(const[o,c]of Object.entries(i.properties)){if(n.has(o))continue;const d=c,u=l.values[o];let g=d.type??"unknown",m=d.format;if(d.anyOf){const j=d.anyOf.find(f=>f.type!=="null");j&&(g=j.type??"unknown",m=j.format)}n.set(o,{name:o,value:u,type:g,description:d.description,format:m})}}return Array.from(n.values()).sort((l,i)=>l.name.localeCompare(i.name))},F=({variables:s,selectedVar:n,onSelectVar:l,search:i,onSearchChange:o})=>e.jsxs(y,{gap:0,h:"100%",children:[e.jsx(a,{p:"sm",style:{borderBottom:`1px solid ${p.colors.border}`},children:e.jsx(L,{placeholder:"Search variables...",leftSection:e.jsx(E,{size:14}),size:"xs",value:i,onChange:c=>o(c.target.value)})}),e.jsx(v,{style:{flex:1},children:e.jsxs(a,{children:[e.jsxs(r,{size:"xs",fw:600,c:"dimmed",px:"sm",py:"xs",style:{backgroundColor:p.colors.background,borderBottom:`1px solid ${p.colors.border}`,textTransform:"uppercase",letterSpacing:"0.05em"},children:["Variables (",s.length,")"]}),s.map(c=>{const d=n?.name===c.name;return e.jsxs(x,{align:"center",gap:"xs",px:"sm",py:6,onClick:()=>l(c),style:{cursor:"pointer",backgroundColor:d?"#228be615":void 0,borderLeft:d?"2px solid #228be6":"2px solid transparent",borderBottom:`1px solid ${p.colors.border}`},children:[e.jsx(S,{size:14,opacity:.5}),e.jsx(r,{size:"sm",style:{flex:1},truncate:!0,ff:"monospace",children:c.name})]},c.name)})]})})]}),R=({variable:s})=>{const n=s.value!==void 0&&s.value!=="",l=n?String(s.value):"(not set)",i=s.name.toLowerCase().includes("secret")||s.name.toLowerCase().includes("password")||s.name.toLowerCase().includes("key")||s.name.toLowerCase().includes("token");return e.jsxs(x,{direction:"column",h:"100%",children:[e.jsx(a,{px:"md",py:"sm",style:{borderBottom:`1px solid ${p.colors.border}`,backgroundColor:"#228be608"},children:e.jsxs(x,{align:"center",gap:"sm",children:[e.jsx(S,{size:18,opacity:.7}),e.jsx(r,{size:"md",fw:600,ff:"monospace",children:s.name}),e.jsx(b,{size:"xs",variant:"outline",color:"blue",children:s.format||s.type})]})}),e.jsx(v,{style:{flex:1},p:"md",children:e.jsxs(y,{gap:"lg",children:[s.description&&e.jsxs(a,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Description"}),e.jsx(r,{size:"sm",c:"dimmed",children:s.description})]}),e.jsxs(a,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Current Value"}),e.jsxs(x,{align:"center",gap:"sm",children:[e.jsx(w,{block:!0,style:{flex:1,filter:i&&n?"blur(4px)":void 0,transition:"filter 0.2s"},onMouseEnter:o=>{i&&(o.currentTarget.style.filter="none")},onMouseLeave:o=>{i&&n&&(o.currentTarget.style.filter="blur(4px)")},children:l}),n&&e.jsx(V,{value:String(s.value),children:({copied:o,copy:c})=>e.jsx(B,{label:o?"Copied!":"Copy value",children:e.jsx(a,{onClick:c,style:{cursor:"pointer"},c:o?"teal":"dimmed",children:o?e.jsx(I,{size:16}):e.jsx(M,{size:16})})})})]}),i&&e.jsx(r,{size:"xs",c:"dimmed",mt:"xs",children:"Hover to reveal sensitive value"})]}),e.jsxs(a,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Schema"}),e.jsx(t,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:e.jsxs(t.Tbody,{children:[e.jsxs(t.Tr,{children:[e.jsx(t.Td,{w:120,children:e.jsx(r,{size:"sm",c:"dimmed",children:"Type"})}),e.jsx(t.Td,{children:e.jsx(r,{size:"sm",ff:"monospace",children:s.type})})]}),s.format&&e.jsxs(t.Tr,{children:[e.jsx(t.Td,{children:e.jsx(r,{size:"sm",c:"dimmed",children:"Format"})}),e.jsx(t.Td,{children:e.jsx(r,{size:"sm",ff:"monospace",children:s.format})})]})]})})]}),e.jsxs(a,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Usage"}),e.jsx(w,{block:!0,children:`# Set in .env file or environment
2
+ ${s.name}=${n?s.value:"<value>"}`})]})]})})]})},D=()=>e.jsx(x,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(y,{align:"center",gap:"xs",children:[e.jsx(O,{size:48,opacity:.3}),e.jsx(r,{children:"No environment variables found"}),e.jsx(r,{size:"sm",c:"dimmed",children:"Use $env primitive to define expected environment variables"})]})}),U=({variables:s})=>e.jsx(v,{h:"100%",p:"md",children:e.jsx(y,{gap:"lg",children:e.jsxs(a,{children:[e.jsxs(x,{align:"center",gap:"xs",mb:"sm",children:[e.jsx(H,{size:18,opacity:.7}),e.jsx(r,{size:"md",fw:600,children:"All Environment Variables"}),e.jsxs(b,{size:"sm",variant:"light",children:[s.length," variables"]})]}),e.jsxs(t,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:[e.jsx(t.Thead,{children:e.jsxs(t.Tr,{children:[e.jsx(t.Th,{children:"Name"}),e.jsx(t.Th,{children:"Type"}),e.jsx(t.Th,{children:"Value"})]})}),e.jsx(t.Tbody,{children:s.map(n=>{const l=n.value!==void 0&&n.value!=="",i=n.name.toLowerCase().includes("secret")||n.name.toLowerCase().includes("password")||n.name.toLowerCase().includes("key")||n.name.toLowerCase().includes("token");return e.jsxs(t.Tr,{children:[e.jsx(t.Td,{children:e.jsx(r,{size:"sm",ff:"monospace",fw:500,children:n.name})}),e.jsx(t.Td,{children:e.jsx(b,{size:"xs",variant:"outline",color:"blue",children:n.format||n.type})}),e.jsx(t.Td,{children:l?e.jsxs(r,{size:"sm",ff:"monospace",c:"dimmed",style:{filter:i?"blur(4px)":void 0},children:[String(n.value).slice(0,30),String(n.value).length>30?"...":""]}):e.jsx(r,{size:"sm",c:"dimmed",fs:"italic",children:"(not set)"})})]},n.name)})})]})]})})}),Q=()=>{const s=C(k),[n,l]=h.useState([]),[i,o]=h.useState(!0),[c,d]=h.useState(null),[u,g]=h.useState("");h.useEffect(()=>{s.fetch("/devtools/api/metadata",{schema:{response:$}}).then(f=>{l(f.data.envs),o(!1)})},[]);const m=h.useMemo(()=>A(n),[n]),j=h.useMemo(()=>{if(!u)return m;const f=u.toLowerCase();return m.filter(T=>T.name.toLowerCase().includes(f))},[m,u]);return i?e.jsx(x,{align:"center",justify:"center",h:"100%",children:e.jsx(r,{c:"dimmed",children:"Loading..."})}):m.length===0?e.jsx(D,{}):e.jsxs(x,{h:"100%",style:{overflow:"hidden"},children:[e.jsx(a,{w:280,style:{borderRight:`1px solid ${p.colors.border}`,backgroundColor:p.colors.surface},children:e.jsx(F,{variables:j,selectedVar:c,onSelectVar:d,search:u,onSearchChange:g})}),e.jsx(a,{style:{flex:1,overflow:"hidden"},children:c?e.jsx(R,{variable:c}):e.jsx(U,{variables:m})})]})};export{Q as DevEnvExplorer,Q as default};
@@ -1 +1 @@
1
- import{w as a}from"./entry.r_sixgJG.js";const o=[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]],e=a("outline","lock","Lock",o);export{e as I};
1
+ import{w as a}from"./entry.DBfTnVUe.js";const o=[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]],e=a("outline","lock","Lock",o);export{e as I};
@@ -1 +1 @@
1
- import{r as c,ao as y,b9 as I,ba as j,f as B,b as N,j as P,a3 as W}from"./entry.r_sixgJG.js";import{g as M}from"./chunk.uyVen0u2.js";var $=c.useLayoutEffect,G=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},O=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"},Y=function(e){Object.keys(H).forEach(function(r){e.style.setProperty(r,H[r],"important")})},T=Y,o=null,C=function(e,r){var t=e.scrollHeight;return r.sizingStyle.boxSizing==="border-box"?t+r.borderSize:t-r.paddingSize};function q(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=G(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=O(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=q(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};
1
+ import{r as c,ao as y,ba as I,bb as j,f as B,b as N,j as P,a2 as W}from"./entry.DBfTnVUe.js";import{g as M}from"./chunk.uyVen0u2.js";var $=c.useLayoutEffect,G=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},O=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"},Y=function(e){Object.keys(H).forEach(function(r){e.style.setProperty(r,H[r],"important")})},T=Y,o=null,C=function(e,r){var t=e.scrollHeight;return r.sizingStyle.boxSizing==="border-box"?t+r.borderSize:t-r.paddingSize};function q(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=G(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=O(l,r),L=c.useRef(0),x=c.useRef(),p=function(){var u=l.current,z=t&&x.current?x.current:J(u);if(z){x.current=z;var w=q(z,u.value||u.placeholder||"x",d,i),b=w[0],k=w[1];L.current!==b&&(L.current=b,u.style.setProperty("height",b+"px","important"),f(b,{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};
@@ -1 +1 @@
1
- import{p as q,b as v,q as y,j as g,B as f,s as h,v as z,a1 as E,t as u,f as F,g as T}from"./entry.r_sixgJG.js";var x={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const V=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:E(e),"--badge-bg":s||t?d.background:void 0,"--badge-color":s||t?d.color:void 0,"--badge-bd":s||t?d.border:void 0,"--badge-dot-color":t==="dot"?z(s,a):void 0}}}),S=q((a,e)=>{const s=v("Badge",null,a),{classNames:o,className:t,style:r,styles:l,unstyled:c,vars:d,radius:B,color:R,gradient:N,leftSection:i,rightSection:n,children:m,variant:p,fullWidth:_,autoContrast:D,circle:C,mod:w,attributes:P,...$}=s,b=y({name:"Badge",props:s,classes:x,className:t,style:r,classNames:o,styles:l,unstyled:c,attributes:P,vars:d,varsResolver:V});return g.jsxs(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 W={gap:"md",align:"stretch",justify:"flex-start"},A=h((a,{gap:e,align:s,justify:o})=>({root:{"--stack-gap":T(e),"--stack-align":s,"--stack-justify":o}})),k=F((a,e)=>{const s=v("Stack",W,a),{classNames:o,className:t,style:r,styles:l,unstyled:c,vars:d,align:B,justify:R,gap:N,variant:i,attributes:n,...m}=s,p=y({name:"Stack",props:s,classes:j,className:t,style:r,classNames:o,styles:l,unstyled:c,attributes:n,vars:d,varsResolver:A});return g.jsx(f,{ref:e,...p("root"),variant:i,...m})});k.classes=j;k.displayName="@mantine/core/Stack";export{S as B,k as S};
1
+ import{p as q,b as v,q as y,j as g,B as f,s as h,v as z,a0 as E,t as u,f as F,g as T}from"./entry.DBfTnVUe.js";var x={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const V=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:E(e),"--badge-bg":s||t?d.background:void 0,"--badge-color":s||t?d.color:void 0,"--badge-bd":s||t?d.border:void 0,"--badge-dot-color":t==="dot"?z(s,a):void 0}}}),S=q((a,e)=>{const s=v("Badge",null,a),{classNames:o,className:t,style:r,styles:l,unstyled:c,vars:d,radius:B,color:R,gradient:N,leftSection:i,rightSection:n,children:m,variant:p,fullWidth:_,autoContrast:D,circle:C,mod:w,attributes:P,...$}=s,b=y({name:"Badge",props:s,classes:x,className:t,style:r,classNames:o,styles:l,unstyled:c,attributes:P,vars:d,varsResolver:V});return g.jsxs(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 W={gap:"md",align:"stretch",justify:"flex-start"},A=h((a,{gap:e,align:s,justify:o})=>({root:{"--stack-gap":T(e),"--stack-align":s,"--stack-justify":o}})),k=F((a,e)=>{const s=v("Stack",W,a),{classNames:o,className:t,style:r,styles:l,unstyled:c,vars:d,align:B,justify:R,gap:N,variant:i,attributes:n,...m}=s,p=y({name:"Stack",props:s,classes:j,className:t,style:r,classNames:o,styles:l,unstyled:c,attributes:n,vars:d,varsResolver:A});return g.jsx(f,{ref:e,...p("root"),variant:i,...m})});k.classes=j;k.displayName="@mantine/core/Stack";export{S as B,k as S};
@@ -1 +1 @@
1
- import{f as p,b as y,q as b,j as g,B as x,s as R,a1 as T,t as f}from"./entry.r_sixgJG.js";var c={root:"m_7341320d"};const I=R((e,{size:a,radius:t,variant:s,gradient:i,color:o,autoContrast:l})=>{const r=e.variantColorResolver({color:o||e.primaryColor,theme:e,gradient:i,variant:s||"filled",autoContrast:l});return{root:{"--ti-size":f(a,"ti-size"),"--ti-radius":t===void 0?void 0:T(t),"--ti-bg":o||s?r.background:void 0,"--ti-color":o||s?r.color:void 0,"--ti-bd":o||s?r.border:void 0}}}),n=p((e,a)=>{const t=y("ThemeIcon",null,e),{classNames:s,className:i,style:o,styles:l,unstyled:r,vars:d,autoContrast:h,attributes:m,...u}=t,v=b({name:"ThemeIcon",classes:c,props:t,className:i,style:o,classNames:s,styles:l,unstyled:r,attributes:m,vars:d,varsResolver:I});return g.jsx(x,{ref:a,...v("root"),...u})});n.classes=c;n.displayName="@mantine/core/ThemeIcon";export{n as T};
1
+ import{f as p,b as y,q as b,j as g,B as x,s as R,a0 as T,t as f}from"./entry.DBfTnVUe.js";var c={root:"m_7341320d"};const I=R((e,{size:a,radius:t,variant:s,gradient:i,color:o,autoContrast:l})=>{const r=e.variantColorResolver({color:o||e.primaryColor,theme:e,gradient:i,variant:s||"filled",autoContrast:l});return{root:{"--ti-size":f(a,"ti-size"),"--ti-radius":t===void 0?void 0:T(t),"--ti-bg":o||s?r.background:void 0,"--ti-color":o||s?r.color:void 0,"--ti-bd":o||s?r.border:void 0}}}),n=p((e,a)=>{const t=y("ThemeIcon",null,e),{classNames:s,className:i,style:o,styles:l,unstyled:r,vars:d,autoContrast:h,attributes:m,...u}=t,v=b({name:"ThemeIcon",classes:c,props:t,className:i,style:o,classNames:s,styles:l,unstyled:r,attributes:m,vars:d,varsResolver:I});return g.jsx(x,{ref:a,...v("root"),...u})});n.classes=c;n.displayName="@mantine/core/ThemeIcon";export{n as T};
@@ -1 +1 @@
1
- import{j as e,F as o,L as n,T as s}from"./entry.r_sixgJG.js";import{T as r}from"./chunk.DUP1E40B.js";const t=()=>e.jsxs(o,{direction:"column",gap:"xl",w:"100%",p:"xl",children:[e.jsxs(o,{align:"center",gap:"sm",children:[e.jsx(r,{size:32,variant:"light",color:"orange",children:e.jsx(n,{size:20})}),e.jsx(s,{size:"xl",fw:600,children:"Queue Monitor"})]}),e.jsx(s,{c:"dimmed",children:"Background job queues - coming soon"})]});export{t as DevQueueMonitor,t as default};
1
+ import{j as e,F as o,L as n,T as s}from"./entry.DBfTnVUe.js";import{T as r}from"./chunk.DN-SKgAD.js";const t=()=>e.jsxs(o,{direction:"column",gap:"xl",w:"100%",p:"xl",children:[e.jsxs(o,{align:"center",gap:"sm",children:[e.jsx(r,{size:32,variant:"light",color:"orange",children:e.jsx(n,{size:20})}),e.jsx(s,{size:"xl",fw:600,children:"Queue Monitor"})]}),e.jsx(s,{c:"dimmed",children:"Background job queues - coming soon"})]});export{t as DevQueueMonitor,t as default};
@@ -0,0 +1 @@
1
+ import{r as m,f as E,b as A,q as se,s as re,j as i,B as L,v as ee,t as oe,c as Eo,aC as me,b8 as jo,b9 as Ue,ah as ge,bc as Po,_ as fe,$ as te,aJ as Ke,e as Ce,ay as Ro,U as To,a0 as we,b7 as qe,ak as We,al as Ze,aH as $o,ad as Vo,d as Mo,ax as zo,a2 as Je,w as ye}from"./entry.DBfTnVUe.js";import{I as Bo,a as Fo,b as Lo}from"./chunk.BNC0DJB8.js";import{P as he}from"./chunk.mJxmm31y.js";function Go(e){const o=m.useRef(void 0);return m.useEffect(()=>{o.current=e},[e]),o.current}function be(e,o=document){const t=o.querySelector(e);if(t)return t;const s=o.querySelectorAll("*");for(let r=0;r<s.length;r+=1){const a=s[r];if(a.shadowRoot){const n=be(e,a.shadowRoot);if(n)return n}}return null}function U(e,o=document){const t=[],s=o.querySelectorAll(e);t.push(...Array.from(s));const r=o.querySelectorAll("*");for(let a=0;a<r.length;a+=1){const n=r[a];if(n.shadowRoot){const l=U(e,n.shadowRoot);t.push(...l)}}return t}function K(e){if(!e)return document;const o=e.getRootNode();return o instanceof ShadowRoot||o instanceof Document?o:document}function Qe(e){return typeof e=="string"?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:typeof e=="number"?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map(o=>Qe(o))}:e}function Ho(e){return e?e.map(o=>Qe(o)):[]}function Xe(e){return e.reduce((o,t)=>"group"in t?{...o,...Xe(t.items)}:(o[t.value]=t,o),{})}var P={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2",optionsDropdownCheckPlaceholder:"m_a530ee0a"};const Ko={error:null},Uo=re((e,{size:o,color:t})=>({chevron:{"--combobox-chevron-size":oe(o,"combobox-chevron-size"),"--combobox-chevron-color":t?ee(t,e):void 0}})),ke=E((e,o)=>{const t=A("ComboboxChevron",Ko,e),{size:s,error:r,style:a,className:n,classNames:l,styles:c,unstyled:d,vars:p,mod:u,...b}=t,x=se({name:"ComboboxChevron",classes:P,props:t,style:a,className:n,classNames:l,styles:c,unstyled:d,vars:p,varsResolver:Uo,rootSelector:"chevron"});return i.jsx(L,{component:"svg",...b,...x("chevron"),size:s,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:r},u],ref:o,children:i.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});ke.classes=P;ke.displayName="@mantine/core/ComboboxChevron";const[qo,M]=Eo("Combobox component was not found in tree"),Ye=m.forwardRef(({size:e,onMouseDown:o,onClick:t,onClear:s,...r},a)=>i.jsx(me.ClearButton,{ref:a,tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:n=>{n.preventDefault(),o?.(n)},onClick:n=>{s(),t?.(n)}}));Ye.displayName="@mantine/core/ComboboxClearButton";const Se=E((e,o)=>{const{classNames:t,styles:s,className:r,style:a,hidden:n,...l}=A("ComboboxDropdown",null,e),c=M();return i.jsx(he.Dropdown,{...l,ref:o,role:"presentation","data-hidden":n||void 0,...c.getStyles("dropdown",{className:r,style:a,classNames:t,styles:s})})});Se.classes=P;Se.displayName="@mantine/core/ComboboxDropdown";const Wo={refProp:"ref"},eo=E((e,o)=>{const{children:t,refProp:s}=A("ComboboxDropdownTarget",Wo,e);if(M(),!jo(t))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return i.jsx(he.Target,{ref:o,refProp:s,children:t})});eo.displayName="@mantine/core/ComboboxDropdownTarget";const Oe=E((e,o)=>{const{classNames:t,className:s,style:r,styles:a,vars:n,...l}=A("ComboboxEmpty",null,e),c=M();return i.jsx(L,{ref:o,...c.getStyles("empty",{className:s,classNames:t,styles:a,style:r}),...l})});Oe.classes=P;Oe.displayName="@mantine/core/ComboboxEmpty";function De({onKeyDown:e,withKeyboardNavigation:o,withAriaAttributes:t,withExpandedAttribute:s,targetType:r,autoComplete:a}){const n=M(),[l,c]=m.useState(null),d=u=>{if(e?.(u),!n.readOnly&&o){if(u.nativeEvent.isComposing)return;if(u.nativeEvent.code==="ArrowDown"&&(u.preventDefault(),n.store.dropdownOpened?c(n.store.selectNextOption()):(n.store.openDropdown("keyboard"),c(n.store.selectActiveOption()),n.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),u.nativeEvent.code==="ArrowUp"&&(u.preventDefault(),n.store.dropdownOpened?c(n.store.selectPreviousOption()):(n.store.openDropdown("keyboard"),c(n.store.selectActiveOption()),n.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),u.nativeEvent.code==="Enter"||u.nativeEvent.code==="NumpadEnter"){if(u.nativeEvent.keyCode===229)return;const b=n.store.getSelectedOptionIndex();n.store.dropdownOpened&&b!==-1?(u.preventDefault(),n.store.clickSelectedOption()):r==="button"&&(u.preventDefault(),n.store.openDropdown("keyboard"))}u.key==="Escape"&&n.store.closeDropdown("keyboard"),u.nativeEvent.code==="Space"&&r==="button"&&(u.preventDefault(),n.store.toggleDropdown("keyboard"))}};return{...t?{"aria-haspopup":"listbox","aria-expanded":s?!!(n.store.listId&&n.store.dropdownOpened):void 0,"aria-controls":n.store.dropdownOpened&&n.store.listId?n.store.listId:void 0,"aria-activedescendant":n.store.dropdownOpened&&l||void 0,autoComplete:a,"data-expanded":n.store.dropdownOpened||void 0,"data-mantine-stop-propagation":n.store.dropdownOpened||void 0}:{},onKeyDown:d}}const Zo={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},oo=E((e,o)=>{const{children:t,refProp:s,withKeyboardNavigation:r,withAriaAttributes:a,withExpandedAttribute:n,targetType:l,autoComplete:c,...d}=A("ComboboxEventsTarget",Zo,e),p=Ue(t);if(!p)throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=M(),b=De({targetType:l,withAriaAttributes:a,withKeyboardNavigation:r,withExpandedAttribute:n,onKeyDown:p.props.onKeyDown,autoComplete:c});return m.cloneElement(p,{...b,...d,[s]:ge(o,u.store.targetRef,Po(p))})});oo.displayName="@mantine/core/ComboboxEventsTarget";const _e=E((e,o)=>{const{classNames:t,className:s,style:r,styles:a,vars:n,...l}=A("ComboboxFooter",null,e),c=M();return i.jsx(L,{ref:o,...c.getStyles("footer",{className:s,classNames:t,style:r,styles:a}),...l,onMouseDown:d=>{d.preventDefault()}})});_e.classes=P;_e.displayName="@mantine/core/ComboboxFooter";const Ne=E((e,o)=>{const{classNames:t,className:s,style:r,styles:a,vars:n,children:l,label:c,id:d,...p}=A("ComboboxGroup",null,e),u=M(),b=fe(d);return i.jsxs(L,{ref:o,role:"group","aria-labelledby":c?b:void 0,...u.getStyles("group",{className:s,classNames:t,style:r,styles:a}),...p,children:[c&&i.jsx("div",{id:b,...u.getStyles("groupLabel",{classNames:t,styles:a}),children:c}),l]})});Ne.classes=P;Ne.displayName="@mantine/core/ComboboxGroup";const Ie=E((e,o)=>{const{classNames:t,className:s,style:r,styles:a,vars:n,...l}=A("ComboboxHeader",null,e),c=M();return i.jsx(L,{ref:o,...c.getStyles("header",{className:s,classNames:t,style:r,styles:a}),...l,onMouseDown:d=>{d.preventDefault()}})});Ie.classes=P;Ie.displayName="@mantine/core/ComboboxHeader";function to({value:e,valuesDivider:o=",",...t}){return i.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(o):e||"",...t})}to.displayName="@mantine/core/ComboboxHiddenInput";const Ae=E((e,o)=>{const t=A("ComboboxOption",null,e),{classNames:s,className:r,style:a,styles:n,vars:l,onClick:c,id:d,active:p,onMouseDown:u,onMouseOver:b,disabled:x,selected:k,mod:g,...w}=t,S=M(),D=m.useId(),_=d||D;return i.jsx(L,{...S.getStyles("option",{className:r,classNames:s,styles:n,style:a}),...w,ref:o,id:_,mod:["combobox-option",{"combobox-active":p,"combobox-disabled":x,"combobox-selected":k},g],role:"option",onClick:h=>{x?h.preventDefault():(S.onOptionSubmit?.(t.value,t),c?.(h))},onMouseDown:h=>{h.preventDefault(),u?.(h)},onMouseOver:h=>{S.resetSelectionOnOptionHover&&S.store.resetSelectedOption(),b?.(h)}})});Ae.classes=P;Ae.displayName="@mantine/core/ComboboxOption";const Ee=E((e,o)=>{const t=A("ComboboxOptions",null,e),{classNames:s,className:r,style:a,styles:n,id:l,onMouseDown:c,labelledBy:d,...p}=t,u=M(),b=fe(l);return m.useEffect(()=>{u.store.setListId(b)},[b]),i.jsx(L,{ref:o,...u.getStyles("options",{className:r,style:a,classNames:s,styles:n}),...p,id:b,role:"listbox","aria-labelledby":d,onMouseDown:x=>{x.preventDefault(),c?.(x)}})});Ee.classes=P;Ee.displayName="@mantine/core/ComboboxOptions";const Jo={withAriaAttributes:!0,withKeyboardNavigation:!0},je=E((e,o)=>{const t=A("ComboboxSearch",Jo,e),{classNames:s,styles:r,unstyled:a,vars:n,withAriaAttributes:l,onKeyDown:c,withKeyboardNavigation:d,size:p,...u}=t,b=M(),x=b.getStyles("search"),k=De({targetType:"input",withAriaAttributes:l,withKeyboardNavigation:d,withExpandedAttribute:!1,onKeyDown:c,autoComplete:"off"});return i.jsx(me,{ref:ge(o,b.store.searchRef),classNames:[{input:x.className},s],styles:[{input:x.style},r],size:p||b.size,...k,...u,__staticSelector:"Combobox"})});je.classes=P;je.displayName="@mantine/core/ComboboxSearch";const Qo={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},no=E((e,o)=>{const{children:t,refProp:s,withKeyboardNavigation:r,withAriaAttributes:a,withExpandedAttribute:n,targetType:l,autoComplete:c,...d}=A("ComboboxTarget",Qo,e),p=Ue(t);if(!p)throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=M(),b=De({targetType:l,withAriaAttributes:a,withKeyboardNavigation:r,withExpandedAttribute:n,onKeyDown:p.props.onKeyDown,autoComplete:c}),x=m.cloneElement(p,{...b,...d});return i.jsx(he.Target,{ref:ge(o,u.store.targetRef),children:x})});no.displayName="@mantine/core/ComboboxTarget";function Xo(e,o,t){for(let s=e-1;s>=0;s-=1)if(!o[s].hasAttribute("data-combobox-disabled"))return s;if(t){for(let s=o.length-1;s>-1;s-=1)if(!o[s].hasAttribute("data-combobox-disabled"))return s}return e}function Yo(e,o,t){for(let s=e+1;s<o.length;s+=1)if(!o[s].hasAttribute("data-combobox-disabled"))return s;if(t){for(let s=0;s<o.length;s+=1)if(!o[s].hasAttribute("data-combobox-disabled"))return s}return e}function et(e){for(let o=0;o<e.length;o+=1)if(!e[o].hasAttribute("data-combobox-disabled"))return o;return-1}function so({defaultOpened:e,opened:o,onOpenedChange:t,onDropdownClose:s,onDropdownOpen:r,loop:a=!0,scrollBehavior:n="instant"}={}){const[l,c]=te({value:o,defaultValue:e,finalValue:!1,onChange:t}),d=m.useRef(null),p=m.useRef(-1),u=m.useRef(null),b=m.useRef(null),x=m.useRef(-1),k=m.useRef(-1),g=m.useRef(-1),w=m.useCallback((f="unknown")=>{l||(c(!0),r?.(f))},[c,r,l]),S=m.useCallback((f="unknown")=>{l&&(c(!1),s?.(f))},[c,s,l]),D=m.useCallback((f="unknown")=>{l?S(f):w(f)},[S,w,l]),_=m.useCallback(()=>{const f=K(b.current),O=be(`#${d.current} [data-combobox-selected]`,f);O?.removeAttribute("data-combobox-selected"),O?.removeAttribute("aria-selected")},[]),h=m.useCallback(f=>{const O=K(b.current),B=be(`#${d.current}`,O),N=B?U("[data-combobox-option]",B):null;if(!N)return null;const I=f>=N.length?0:f<0?N.length-1:f;return p.current=I,N?.[I]&&!N[I].hasAttribute("data-combobox-disabled")?(_(),N[I].setAttribute("data-combobox-selected","true"),N[I].setAttribute("aria-selected","true"),N[I].scrollIntoView({block:"nearest",behavior:n}),N[I].id):null},[n,_]),C=m.useCallback(()=>{const f=K(b.current),O=be(`#${d.current} [data-combobox-active]`,f);if(O){const N=U(`#${d.current} [data-combobox-option]`,f).findIndex(I=>I===O);return h(N)}return h(0)},[h]),j=m.useCallback(()=>{const f=K(b.current),O=U(`#${d.current} [data-combobox-option]`,f);return h(Yo(p.current,O,a))},[h,a]),R=m.useCallback(()=>{const f=K(b.current),O=U(`#${d.current} [data-combobox-option]`,f);return h(Xo(p.current,O,a))},[h,a]),ce=m.useCallback(()=>{const f=K(b.current),O=U(`#${d.current} [data-combobox-option]`,f);return h(et(O))},[h]),J=m.useCallback((f="selected",O)=>{g.current=window.setTimeout(()=>{const B=K(b.current),N=U(`#${d.current} [data-combobox-option]`,B),I=N.findIndex(Y=>Y.hasAttribute(`data-combobox-${f}`));p.current=I,O?.scrollIntoView&&N[I]?.scrollIntoView({block:"nearest",behavior:n})},0)},[]),le=m.useCallback(()=>{p.current=-1,_()},[_]),q=m.useCallback(()=>{const f=K(b.current);U(`#${d.current} [data-combobox-option]`,f)?.[p.current]?.click()},[]),z=m.useCallback(f=>{d.current=f},[]),Q=m.useCallback(()=>{x.current=window.setTimeout(()=>u.current?.focus(),0)},[]),H=m.useCallback(()=>{k.current=window.setTimeout(()=>b.current?.focus(),0)},[]),X=m.useCallback(()=>p.current,[]);return m.useEffect(()=>()=>{window.clearTimeout(x.current),window.clearTimeout(k.current),window.clearTimeout(g.current)},[]),{dropdownOpened:l,openDropdown:w,closeDropdown:S,toggleDropdown:D,selectedOptionIndex:p.current,getSelectedOptionIndex:X,selectOption:h,selectFirstOption:ce,selectActiveOption:C,selectNextOption:j,selectPreviousOption:R,resetSelectedOption:le,updateSelectedOptionIndex:J,listId:d.current,setListId:z,clickSelectedOption:q,searchRef:u,focusSearchInput:Q,targetRef:b,focusTarget:H}}const ot={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},tt=re((e,{size:o,dropdownPadding:t})=>({options:{"--combobox-option-fz":Ke(o),"--combobox-option-padding":oe(o,"combobox-option-padding")},dropdown:{"--combobox-padding":t===void 0?void 0:Ce(t),"--combobox-option-fz":Ke(o),"--combobox-option-padding":oe(o,"combobox-option-padding")}}));function v(e){const o=A("Combobox",ot,e),{classNames:t,styles:s,unstyled:r,children:a,store:n,vars:l,onOptionSubmit:c,onClose:d,size:p,dropdownPadding:u,resetSelectionOnOptionHover:b,__staticSelector:x,readOnly:k,attributes:g,...w}=o,S=so(),D=n||S,_=se({name:x||"Combobox",classes:P,props:o,classNames:t,styles:s,unstyled:r,attributes:g,vars:l,varsResolver:tt}),h=()=>{d?.(),D.closeDropdown()};return i.jsx(qo,{value:{getStyles:_,store:D,onOptionSubmit:c,size:p,resetSelectionOnOptionHover:b,readOnly:k},children:i.jsx(he,{opened:D.dropdownOpened,preventPositionChangeWhenVisible:!1,...w,onChange:C=>!C&&h(),withRoles:!1,unstyled:r,children:a})})}const nt=e=>e;v.extend=nt;v.classes=P;v.displayName="@mantine/core/Combobox";v.Target=no;v.Dropdown=Se;v.Options=Ee;v.Option=Ae;v.Search=je;v.Empty=Oe;v.Chevron=ke;v.Footer=_e;v.Header=Ie;v.EventsTarget=oo;v.DropdownTarget=eo;v.Group=Ne;v.ClearButton=Ye;v.HiddenInput=to;const ro=m.createContext(null),st=ro.Provider,ao=()=>m.useContext(ro),[rt,at]=Ro();var co={card:"m_26775b0a"};const ct={withBorder:!0},lt=re((e,{radius:o})=>({card:{"--card-radius":we(o)}})),Pe=E((e,o)=>{const t=A("CheckboxCard",ct,e),{classNames:s,className:r,style:a,styles:n,unstyled:l,vars:c,checked:d,mod:p,withBorder:u,value:b,onClick:x,defaultChecked:k,onChange:g,attributes:w,...S}=t,D=se({name:"CheckboxCard",classes:co,props:t,className:r,style:a,classNames:s,styles:n,unstyled:l,attributes:w,vars:c,varsResolver:lt,rootSelector:"card"}),_=ao(),h=typeof d=="boolean"?d:_?_.value.includes(b||""):void 0,[C,j]=te({value:h,defaultValue:k,finalValue:!1,onChange:g});return i.jsx(rt,{value:{checked:C},children:i.jsx(To,{ref:o,mod:[{"with-border":u,checked:C},p],...D("card"),...S,role:"checkbox","aria-checked":C,onClick:R=>{x?.(R),_?.onChange(b||""),j(!C)}})})});Pe.displayName="@mantine/core/CheckboxCard";Pe.classes=co;const Re=E((e,o)=>{const{value:t,defaultValue:s,onChange:r,size:a,wrapperProps:n,children:l,readOnly:c,disabled:d,...p}=A("CheckboxGroup",null,e),[u,b]=te({value:t,defaultValue:s,finalValue:[],onChange:r}),x=k=>{const g=typeof k=="string"?k:k.currentTarget.value;!c&&b(u.includes(g)?u.filter(w=>w!==g):[...u,g])};return i.jsx(st,{value:{value:u,onChange:x,size:a,disabled:d},children:i.jsx(me.Wrapper,{size:a,ref:o,...n,...p,labelElement:"div",__staticSelector:"CheckboxGroup",children:i.jsx(Bo,{role:"group",children:l})})})});Re.classes=me.Wrapper.classes;Re.displayName="@mantine/core/CheckboxGroup";function lo({size:e,style:o,...t}){const s=e!==void 0?{width:Ce(e),height:Ce(e),...o}:o;return i.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:s,"aria-hidden":!0,...t,children:i.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function io({indeterminate:e,...o}){return e?i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6","aria-hidden":!0,...o,children:i.jsx("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})}):i.jsx(lo,{...o})}var uo={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};const it={icon:io,variant:"filled"},dt=re((e,{radius:o,color:t,size:s,iconColor:r,variant:a,autoContrast:n})=>{const l=qe({color:t||e.primaryColor,theme:e}),c=l.isThemeColor&&l.shade===void 0?`var(--mantine-color-${l.color}-outline)`:l.color;return{indicator:{"--checkbox-size":oe(s,"checkbox-size"),"--checkbox-radius":o===void 0?void 0:we(o),"--checkbox-color":a==="outline"?c:ee(t,e),"--checkbox-icon-color":r?ee(r,e):Ze(n,e)?We({color:t,theme:e,autoContrast:n}):void 0}}}),Te=E((e,o)=>{const t=A("CheckboxIndicator",it,e),{classNames:s,className:r,style:a,styles:n,unstyled:l,vars:c,icon:d,indeterminate:p,radius:u,color:b,iconColor:x,autoContrast:k,checked:g,mod:w,variant:S,disabled:D,attributes:_,...h}=t,C=se({name:"CheckboxIndicator",classes:uo,props:t,className:r,style:a,classNames:s,styles:n,unstyled:l,attributes:_,vars:c,varsResolver:dt,rootSelector:"indicator"}),j=at(),R=typeof g=="boolean"||typeof p=="boolean"?g||p:j?.checked||!1;return i.jsx(L,{ref:o,...C("indicator",{variant:S}),variant:S,mod:[{checked:R,disabled:D},w],...h,children:i.jsx(d,{indeterminate:p,...C("icon")})})});Te.displayName="@mantine/core/CheckboxIndicator";Te.classes=uo;var po={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","input--outline":"m_215c4542"};const ut={labelPosition:"right",icon:io,variant:"filled"},pt=re((e,{radius:o,color:t,size:s,iconColor:r,variant:a,autoContrast:n})=>{const l=qe({color:t||e.primaryColor,theme:e}),c=l.isThemeColor&&l.shade===void 0?`var(--mantine-color-${l.color}-outline)`:l.color;return{root:{"--checkbox-size":oe(s,"checkbox-size"),"--checkbox-radius":o===void 0?void 0:we(o),"--checkbox-color":a==="outline"?c:ee(t,e),"--checkbox-icon-color":r?ee(r,e):Ze(n,e)?We({color:t,theme:e,autoContrast:n}):void 0}}}),ae=E((e,o)=>{const t=A("Checkbox",ut,e),{classNames:s,className:r,style:a,styles:n,unstyled:l,vars:c,color:d,label:p,id:u,size:b,radius:x,wrapperProps:k,checked:g,labelPosition:w,description:S,error:D,disabled:_,variant:h,indeterminate:C,icon:j,rootRef:R,iconColor:ce,onChange:J,autoContrast:le,mod:q,attributes:z,...Q}=t,H=ao(),X=b||H?.size,f=se({name:"Checkbox",props:t,classes:po,className:r,style:a,classNames:s,styles:n,unstyled:l,attributes:z,vars:c,varsResolver:pt}),{styleProps:O,rest:B}=$o(Q),N=fe(u),I={checked:H?.value.includes(B.value)??g,onChange:ie=>{H?.onChange(ie),J?.(ie)},disabled:H?.disabled??_},Y=m.useRef(null),F=o||Y;return m.useEffect(()=>{F&&"current"in F&&F.current&&(F.current.indeterminate=C||!1,C?F.current.setAttribute("data-indeterminate","true"):F.current.removeAttribute("data-indeterminate"))},[C,F]),i.jsx(Fo,{...f("root"),__staticSelector:"Checkbox",__stylesApiProps:t,id:N,size:X,labelPosition:w,label:p,description:S,error:D,disabled:I.disabled,classNames:s,styles:n,unstyled:l,"data-checked":I.checked||g||void 0,variant:h,ref:R,mod:q,...O,...k,children:i.jsxs(L,{...f("inner"),mod:{"data-label-position":w},children:[i.jsx(L,{component:"input",id:N,ref:F,mod:{error:!!D},...f("input",{focusable:!0,variant:h}),...B,...I,type:"checkbox"}),i.jsx(j,{indeterminate:C,...f("icon")})]})})});ae.classes={...po,...Lo};ae.displayName="@mantine/core/Checkbox";ae.Group=Re;ae.Indicator=Te;ae.Card=Pe;function ne(e){return"group"in e}function bo({options:e,search:o,limit:t}){const s=o.trim().toLowerCase(),r=[];for(let a=0;a<e.length;a+=1){const n=e[a];if(r.length===t)return r;ne(n)&&r.push({group:n.group,items:bo({options:n.items,search:o,limit:t-r.length})}),ne(n)||n.label.toLowerCase().includes(s)&&r.push(n)}return r}function bt(e){if(e.length===0)return!0;for(const o of e)if(!("group"in o)||o.items.length>0)return!1;return!0}function mo(e,o=new Set){if(Array.isArray(e))for(const t of e)if(ne(t))mo(t.items,o);else{if(typeof t.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(typeof t.value!="string")throw new Error(`[@mantine/core] Option value must be a string, other data formats are not supported, got ${typeof t.value}`);if(o.has(t.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${t.value}" was provided more than once`);o.add(t.value)}}function mt(e,o){return Array.isArray(e)?e.includes(o):e===o}function fo({data:e,withCheckIcon:o,withAlignedLabels:t,value:s,checkIconPosition:r,unstyled:a,renderOption:n}){if(!ne(e)){const c=mt(s,e.value),d=o&&(c?i.jsx(lo,{className:P.optionsDropdownCheckIcon}):t?i.jsx("div",{className:P.optionsDropdownCheckPlaceholder}):null),p=i.jsxs(i.Fragment,{children:[r==="left"&&d,i.jsx("span",{children:e.label}),r==="right"&&d]});return i.jsx(v.Option,{value:e.value,disabled:e.disabled,className:Mo({[P.optionsDropdownOption]:!a}),"data-reverse":r==="right"||void 0,"data-checked":c||void 0,"aria-selected":c,active:c,children:typeof n=="function"?n({option:e,checked:c}):p})}const l=e.items.map(c=>i.jsx(fo,{data:c,value:s,unstyled:a,withCheckIcon:o,withAlignedLabels:t,checkIconPosition:r,renderOption:n},c.value));return i.jsx(v.Group,{label:e.group,children:l})}function ft({data:e,hidden:o,hiddenWhenEmpty:t,filter:s,search:r,limit:a,maxDropdownHeight:n,withScrollArea:l=!0,filterOptions:c=!0,withCheckIcon:d=!1,withAlignedLabels:p=!1,value:u,checkIconPosition:b,nothingFoundMessage:x,unstyled:k,labelId:g,renderOption:w,scrollAreaProps:S,"aria-label":D}){mo(e);const h=typeof r=="string"?(s||bo)({options:e,search:c?r:"",limit:a??1/0}):e,C=bt(h),j=h.map(R=>i.jsx(fo,{data:R,withCheckIcon:d,withAlignedLabels:p,value:u,checkIconPosition:b,unstyled:k,renderOption:w},ne(R)?R.group:R.value));return i.jsx(v.Dropdown,{hidden:o||t&&C,"data-composed":!0,children:i.jsxs(v.Options,{labelledBy:g,"aria-label":D,children:[l?i.jsx(Vo.Autosize,{mah:n??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...S,children:j}):j,C&&x&&i.jsx(v.Empty,{children:x})]})})}const ht={withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},ho=E((e,o)=>{const t=A("Select",ht,e),{classNames:s,styles:r,unstyled:a,vars:n,dropdownOpened:l,defaultDropdownOpened:c,onDropdownClose:d,onDropdownOpen:p,onFocus:u,onBlur:b,onClick:x,onChange:k,data:g,value:w,defaultValue:S,selectFirstOptionOnChange:D,onOptionSubmit:_,comboboxProps:h,readOnly:C,disabled:j,filter:R,limit:ce,withScrollArea:J,maxDropdownHeight:le,size:q,searchable:z,rightSection:Q,checkIconPosition:H,withCheckIcon:X,withAlignedLabels:f,nothingFoundMessage:O,name:B,form:N,searchValue:I,defaultSearchValue:Y,onSearchChange:F,allowDeselect:ie,error:$e,rightSectionPointerEvents:xo,id:vo,clearable:Co,clearButtonProps:go,hiddenInputProps:wo,renderOption:yo,onClear:ko,autoComplete:So,scrollAreaProps:Oo,__defaultRightSection:gt,__clearSection:wt,__clearable:yt,chevronColor:Do,autoSelectOnBlur:Ve,attributes:Me,...de}=t,xe=m.useMemo(()=>Ho(g),[g]),ue=m.useRef({}),$=m.useMemo(()=>Xe(xe),[xe]),ze=fe(vo),[y,Be,Fe]=te({value:w,defaultValue:S,finalValue:null,onChange:k}),G=typeof y=="string"?y in $?$[y]:ue.current[y]:void 0,Le=Go(G),[pe,_o,No]=te({value:I,defaultValue:Y,finalValue:G?G.label:"",onChange:F}),V=so({opened:l,defaultOpened:c,onDropdownOpen:()=>{p?.(),V.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{d?.(),setTimeout(V.resetSelectedOption,0)}}),W=T=>{_o(T),V.resetSelectedOption()},{resolvedClassNames:Ge,resolvedStyles:He}=zo({props:t,styles:r,classNames:s});m.useEffect(()=>{D&&V.selectFirstOption()},[D,pe]),m.useEffect(()=>{w===null&&W(""),typeof w=="string"&&G&&(Le?.value!==G.value||Le?.label!==G.label)&&W(G.label)},[w,G]),m.useEffect(()=>{!Fe&&!No&&W(typeof y=="string"?y in $?$[y]?.label:ue.current[y]?.label||"":"")},[$,y]),m.useEffect(()=>{y&&y in $&&(ue.current[y]=$[y])},[$,y]);const Io=i.jsx(v.ClearButton,{...go,onClear:()=>{Be(null,null),W(""),ko?.()}}),Ao=Co&&!!y&&!j&&!C;return i.jsxs(i.Fragment,{children:[i.jsxs(v,{store:V,__staticSelector:"Select",classNames:Ge,styles:He,unstyled:a,readOnly:C,size:q,attributes:Me,keepMounted:Ve,onOptionSubmit:T=>{_?.(T);const Z=ie&&$[T].value===y?null:$[T],ve=Z?Z.value:null;ve!==y&&Be(ve,Z),!Fe&&W(typeof ve=="string"&&Z?.label||""),V.closeDropdown()},...h,children:[i.jsx(v.Target,{targetType:z?"input":"button",autoComplete:So,children:i.jsx(Je,{id:ze,ref:o,__defaultRightSection:i.jsx(v.Chevron,{size:q,error:$e,unstyled:a,color:Do}),__clearSection:Io,__clearable:Ao,rightSection:Q,rightSectionPointerEvents:xo||"none",...de,size:q,__staticSelector:"Select",disabled:j,readOnly:C||!z,value:pe,onChange:T=>{W(T.currentTarget.value),V.openDropdown(),D&&V.selectFirstOption()},onFocus:T=>{z&&V.openDropdown(),u?.(T)},onBlur:T=>{Ve&&V.clickSelectedOption(),z&&V.closeDropdown();const Z=typeof y=="string"&&(y in $?$[y]:ue.current[y]);W(Z&&Z.label||""),b?.(T)},onClick:T=>{z?V.openDropdown():V.toggleDropdown(),x?.(T)},classNames:Ge,styles:He,unstyled:a,pointer:!z,error:$e,attributes:Me})}),i.jsx(ft,{data:xe,hidden:C||j,filter:R,search:pe,limit:ce,hiddenWhenEmpty:!O,withScrollArea:J,maxDropdownHeight:le,filterOptions:!!z&&G?.label!==pe,value:y,checkIconPosition:H,withCheckIcon:X,withAlignedLabels:f,nothingFoundMessage:O,unstyled:a,labelId:de.label?`${ze}-label`:void 0,"aria-label":de.label?void 0:de["aria-label"],renderOption:yo,scrollAreaProps:Oo})]}),i.jsx(v.HiddenInput,{value:y,name:B,form:N,disabled:j,...wo})]})});ho.classes={...Je.classes,...v.classes};ho.displayName="@mantine/core/Select";const xt=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 13l-6 6",key:"svg-1"}],["path",{d:"M6 13l6 6",key:"svg-2"}]],Dt=ye("outline","arrow-down","ArrowDown",xt);const vt=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]],_t=ye("outline","arrow-up","ArrowUp",vt);const Ct=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]],Nt=ye("outline","plus","Plus",Ct);export{ae as C,Dt as I,ft as O,ho as S,_t as a,Nt as b,Xe as c,v as d,lo as e,Ho as g,ne as i,so as u};
@@ -0,0 +1 @@
1
+ import{r,bv as E,f as F,b as W,q as L,ah as B,j as $,B as k,s as M,i as oe,bw as j,$ as ae,_ as ie,ak as ue,aJ as le,t as ce,v as de,a0 as fe}from"./entry.DBfTnVUe.js";import{g as me}from"./chunk.uyVen0u2.js";function ve(t,e){if(t===e||Number.isNaN(t)&&Number.isNaN(e))return!0;if(!(t instanceof Object)||!(e instanceof Object))return!1;const n=Object.keys(t),{length:o}=n;if(o!==Object.keys(e).length)return!1;for(let a=0;a<o;a+=1){const i=n[a];if(!(i in e)||t[i]!==e[i]&&!(Number.isNaN(t[i])&&Number.isNaN(e[i])))return!1}return!0}function he(t,e){if(!t||!e)return!1;if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0;n<t.length;n+=1)if(!ve(t[n],e[n]))return!1;return!0}function be(t){const e=r.useRef([]),n=r.useRef(0);return he(e.current,t)||(e.current=t,n.current+=1),[n.current]}function ge(t,e){r.useEffect(t,be(e))}function pe(t,e,n={autoInvoke:!1}){const o=r.useRef(null),a=r.useCallback((...m)=>{o.current||(o.current=window.setTimeout(()=>{t(m),o.current=null},e))},[e]),i=r.useCallback(()=>{o.current&&(window.clearTimeout(o.current),o.current=null)},[]);return r.useEffect(()=>(n.autoInvoke&&a(),i),[i,a]),{start:a,clear:i}}function ye(t,e,n){const o=r.useRef(null),a=r.useRef(null);return r.useEffect(()=>{const i=typeof n=="function"?n():n;return(i||a.current)&&(o.current=new MutationObserver(t),o.current.observe(i||a.current,e)),()=>{o.current?.disconnect()}},[t,e]),a}function Re(){const[t,e]=r.useState(!1);return r.useEffect(()=>e(!0),[]),t}function we(t,e){if(!e||!t)return!1;let n=e.parentNode;for(;n!=null;){if(n===t)return!0;n=n.parentNode}return!1}function Se({target:t,parent:e,ref:n,displayAfterTransitionEnd:o}){const a=r.useRef(-1),[i,m]=r.useState(!1),[w,S]=r.useState(typeof o=="boolean"?o:!1),l=()=>{if(!t||!e||!n.current)return;const u=t.getBoundingClientRect(),c=e.getBoundingClientRect(),f=window.getComputedStyle(t),h=window.getComputedStyle(e),p=E(f.borderTopWidth)+E(h.borderTopWidth),y=E(f.borderLeftWidth)+E(h.borderLeftWidth),b={top:u.top-c.top-p,left:u.left-c.left-y,width:u.width,height:u.height};n.current.style.transform=`translateY(${b.top}px) translateX(${b.left}px)`,n.current.style.width=`${b.width}px`,n.current.style.height=`${b.height}px`},d=()=>{window.clearTimeout(a.current),n.current&&(n.current.style.transitionDuration="0ms"),l(),a.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration="")},30)},g=r.useRef(null),v=r.useRef(null);return r.useEffect(()=>{if(l(),t)return g.current=new ResizeObserver(d),g.current.observe(t),e&&(v.current=new ResizeObserver(d),v.current.observe(e)),()=>{g.current?.disconnect(),v.current?.disconnect()}},[e,t]),r.useEffect(()=>{if(e){const u=c=>{we(c.target,e)&&(d(),S(!1))};return e.addEventListener("transitionend",u),()=>{e.removeEventListener("transitionend",u)}}},[e]),pe(()=>{me()!=="test"&&m(!0)},20,{autoInvoke:!0}),ye(u=>{u.forEach(c=>{c.type==="attributes"&&c.attributeName==="dir"&&d()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:i,hidden:w}}var P={root:"m_96b553a6"};const Ce=M((t,{transitionDuration:e})=>({root:{"--transition-duration":typeof e=="number"?`${e}ms`:e}})),_=F((t,e)=>{const n=W("FloatingIndicator",null,t),{classNames:o,className:a,style:i,styles:m,unstyled:w,vars:S,target:l,parent:d,transitionDuration:g,mod:v,displayAfterTransitionEnd:u,attributes:c,...f}=n,h=L({name:"FloatingIndicator",classes:P,props:n,className:a,style:i,classNames:o,styles:m,unstyled:w,attributes:c,vars:S,varsResolver:Ce}),p=r.useRef(null),{initialized:y,hidden:b}=Se({target:l,parent:d,ref:p,displayAfterTransitionEnd:u}),N=B(e,p);return!l||!d?null:$.jsx(k,{ref:N,mod:[{initialized:y,hidden:b},v],...h("root"),...f})});_.displayName="@mantine/core/FloatingIndicator";_.classes=P;var A={root:"m_cf365364",indicator:"m_9e182ccd",label:"m_1738fcb2",input:"m_1714d588",control:"m_69686b9b",innerLabel:"m_78882f40"};const Ne={withItemsBorders:!0},Ee=M((t,{radius:e,color:n,transitionDuration:o,size:a,transitionTimingFunction:i})=>({root:{"--sc-radius":e===void 0?void 0:fe(e),"--sc-color":n?de(n,t):void 0,"--sc-shadow":n?void 0:"var(--mantine-shadow-xs)","--sc-transition-duration":o===void 0?void 0:`${o}ms`,"--sc-transition-timing-function":i,"--sc-padding":ce(a,"sc-padding"),"--sc-font-size":le(a)}})),q=F((t,e)=>{const n=W("SegmentedControl",Ne,t),{classNames:o,className:a,style:i,styles:m,unstyled:w,vars:S,data:l,value:d,defaultValue:g,onChange:v,size:u,name:c,disabled:f,readOnly:h,fullWidth:p,orientation:y,radius:b,color:N,transitionDuration:$e,transitionTimingFunction:ke,variant:D,autoContrast:H,withItemsBorders:J,mod:K,attributes:U,...X}=n,R=L({name:"SegmentedControl",props:n,classes:A,className:a,style:i,classNames:o,styles:m,unstyled:w,attributes:U,vars:S,varsResolver:Ee}),z=oe(),O=l.map(s=>typeof s=="string"?{label:s,value:s}:s),Y=Re(),[G,Q]=r.useState(j()),[Z,V]=r.useState(null),[x,ee]=r.useState({}),te=(s,T)=>{x[T]=s,ee(x)},[C,ne]=ae({value:d,defaultValue:g,finalValue:Array.isArray(l)?O.find(s=>!s.disabled)?.value??l[0]?.value??null:null,onChange:v}),I=ie(c),se=O.map(s=>r.createElement(k,{...R("control"),mod:{active:C===s.value,orientation:y},key:s.value},r.createElement("input",{...R("input"),disabled:f||s.disabled,type:"radio",name:I,value:s.value,id:`${I}-${s.value}`,checked:C===s.value,onChange:()=>!h&&ne(s.value),"data-focus-ring":z.focusRing,key:`${s.value}-input`}),r.createElement(k,{component:"label",...R("label"),mod:{active:C===s.value&&!(f||s.disabled),disabled:f||s.disabled,"read-only":h},htmlFor:`${I}-${s.value}`,ref:T=>te(T,s.value),__vars:{"--sc-label-color":N!==void 0?ue({color:N,theme:z,autoContrast:H}):void 0},key:`${s.value}-label`},$.jsx("span",{...R("innerLabel"),children:s.label})))),re=B(e,s=>V(s));return ge(()=>{Q(j())},[l.length]),l.length===0?null:$.jsxs(k,{...R("root"),variant:D,size:u,ref:re,mod:[{"full-width":p,orientation:y,initialized:Y,"with-items-borders":J},K],...X,role:"radiogroup","data-disabled":f,children:[typeof C=="string"&&$.jsx(_,{target:x[C],parent:Z,component:"span",transitionDuration:"var(--sc-transition-duration)",...R("indicator")},G),se]})});q.classes=A;q.displayName="@mantine/core/SegmentedControl";export{q as S};
@@ -1 +1 @@
1
- import{j as o,e as n}from"./entry.r_sixgJG.js";function i({style:r,size:e=16,...l}){return o.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...r,width:n(e),height:n(e),display:"block"},...l,children:o.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}i.displayName="@mantine/core/AccordionChevron";export{i as A};
1
+ import{j as o,e as n}from"./entry.DBfTnVUe.js";function i({style:r,size:e=16,...l}){return o.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...r,width:n(e),height:n(e),display:"block"},...l,children:o.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}i.displayName="@mantine/core/AccordionChevron";export{i as A};
@@ -0,0 +1 @@
1
+ import{a3 as B,a4 as L,r as c,j as e,F as t,T as r,B as x,H as a,af as T,z as C,ad as S,P as v,ae as w,a6 as P,aa as A}from"./entry.DBfTnVUe.js";import{d as E}from"./chunk.ChDpavl2.js";import{S as g,B as u}from"./chunk.DLDchrhP.js";import{I as M}from"./chunk.BeYM7pih.js";import{T as j}from"./chunk.Bdi_dTor.js";import{T as n}from"./chunk.BjjA59Pf.js";import{a as O,I}from"./chunk.ByuRJbSC.js";import{I as R}from"./chunk.CYVZxO-p.js";import"./chunk.BlqFPyLh.js";const z={memory:"#69db7c",redis:"#ff6b6b",default:"#495057"},$=s=>z[s]??z.default,D=s=>s?typeof s=="number"?s<60?`${s}s`:s<3600?`${Math.floor(s/60)}m`:s<86400?`${Math.floor(s/3600)}h`:`${Math.floor(s/86400)}d`:String(s):"No TTL",K=({caches:s,selectedCache:l,onSelectCache:p,search:f,onSearchChange:b})=>{const h=c.useMemo(()=>{const i={};for(const o of s){const d=o.provider||"default";i[d]||(i[d]=[]),i[d].push(o)}return i},[s]),y=Object.keys(h).sort();return e.jsxs(g,{gap:0,h:"100%",children:[e.jsx(x,{p:"sm",style:{borderBottom:`1px solid ${a.colors.border}`},children:e.jsx(T,{placeholder:"Search caches...",leftSection:e.jsx(C,{size:14}),size:"xs",value:f,onChange:i=>b(i.target.value)})}),e.jsx(S,{style:{flex:1},children:y.map(i=>e.jsxs(x,{children:[e.jsx(r,{size:"xs",fw:600,c:"dimmed",px:"sm",py:"xs",style:{backgroundColor:a.colors.background,borderBottom:`1px solid ${a.colors.border}`,textTransform:"uppercase",letterSpacing:"0.05em"},children:i}),h[i].map(o=>{const d=l?.name===o.name,m=$(o.provider);return e.jsxs(t,{align:"center",gap:"xs",px:"sm",py:6,onClick:()=>p(o),style:{cursor:"pointer",backgroundColor:d?`${m}15`:void 0,borderLeft:d?`2px solid ${m}`:"2px solid transparent",borderBottom:`1px solid ${a.colors.border}`,opacity:o.disabled?.5:1},children:[e.jsx(v,{size:14,opacity:.5}),e.jsx(r,{size:"sm",style:{flex:1},truncate:!0,children:o.name}),o.disabled&&e.jsx(u,{size:"xs",variant:"light",color:"gray",children:"off"})]},o.name)})]},i))})]})},N=({cache:s})=>e.jsx(S,{h:"100%",p:"md",children:e.jsxs(g,{gap:"lg",children:[e.jsxs(x,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Configuration"}),e.jsx(n,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:e.jsxs(n.Tbody,{children:[e.jsxs(n.Tr,{children:[e.jsx(n.Td,{w:150,children:e.jsx(r,{size:"sm",c:"dimmed",children:"Name"})}),e.jsx(n.Td,{children:e.jsx(r,{size:"sm",ff:"monospace",children:s.name})})]}),e.jsxs(n.Tr,{children:[e.jsx(n.Td,{children:e.jsx(r,{size:"sm",c:"dimmed",children:"Provider"})}),e.jsx(n.Td,{children:e.jsx(u,{size:"xs",variant:"light",color:s.provider==="redis"?"red":"green",children:s.provider})})]}),e.jsxs(n.Tr,{children:[e.jsx(n.Td,{children:e.jsx(r,{size:"sm",c:"dimmed",children:"TTL"})}),e.jsx(n.Td,{children:e.jsxs(t,{align:"center",gap:"xs",children:[e.jsx(O,{size:14,opacity:.5}),e.jsx(r,{size:"sm",ff:"monospace",children:D(s.ttl)})]})})]}),e.jsxs(n.Tr,{children:[e.jsx(n.Td,{children:e.jsx(r,{size:"sm",c:"dimmed",children:"Status"})}),e.jsx(n.Td,{children:e.jsx(u,{size:"xs",variant:"light",color:s.disabled?"gray":"green",children:s.disabled?"Disabled":"Enabled"})})]})]})})]}),e.jsxs(x,{children:[e.jsx(r,{size:"sm",fw:600,mb:"xs",children:"Actions"}),e.jsx(t,{gap:"sm",children:e.jsx(w,{label:"Clear all cached entries (coming soon)",children:e.jsx(P,{size:"xs",variant:"light",color:"red",leftSection:e.jsx(I,{size:14}),disabled:!0,children:"Clear All"})})})]})]})}),F=({cache:s})=>{const[l,p]=c.useState("");return e.jsxs(t,{direction:"column",h:"100%",children:[e.jsx(x,{p:"sm",style:{borderBottom:`1px solid ${a.colors.border}`},children:e.jsxs(t,{gap:"sm",align:"center",children:[e.jsx(T,{placeholder:"Filter by pattern...",leftSection:e.jsx(C,{size:14}),size:"xs",value:l,onChange:f=>p(f.target.value),style:{flex:1}}),e.jsx(w,{label:"Invalidate matching keys (coming soon)",children:e.jsx(A,{size:"sm",variant:"light",color:"orange",disabled:!0,children:e.jsx(I,{size:14})})})]})}),e.jsx(t,{align:"center",justify:"center",style:{flex:1},c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(R,{size:48,opacity:.3}),e.jsx(r,{size:"sm",children:"Key browser coming soon"}),e.jsxs(r,{size:"xs",c:"dimmed",children:["Browse and manage cached keys for ",s.name]})]})})]})},H=({cache:s})=>{const l=$(s.provider);return e.jsxs(t,{direction:"column",h:"100%",children:[e.jsx(x,{px:"md",py:"sm",style:{borderBottom:`1px solid ${a.colors.border}`,backgroundColor:`${l}08`},children:e.jsxs(t,{align:"center",gap:"sm",children:[e.jsx(v,{size:18,opacity:.7}),e.jsx(r,{size:"md",fw:600,children:s.name}),e.jsx(u,{size:"xs",variant:"light",color:s.provider==="redis"?"red":"green",children:s.provider}),s.disabled&&e.jsx(u,{size:"xs",variant:"light",color:"gray",children:"disabled"})]})}),e.jsxs(j,{defaultValue:"config",style:{flex:1,display:"flex",flexDirection:"column"},children:[e.jsxs(j.List,{px:"md",children:[e.jsx(j.Tab,{value:"config",children:"Config"}),e.jsx(j.Tab,{value:"keys",children:"Keys"})]}),e.jsx(j.Panel,{value:"config",style:{flex:1,overflow:"hidden"},children:e.jsx(N,{cache:s})}),e.jsx(j.Panel,{value:"keys",style:{flex:1,overflow:"hidden"},children:e.jsx(F,{cache:s})})]})]})},V=()=>e.jsx(t,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(v,{size:48,opacity:.3}),e.jsx(r,{size:"sm",children:"Select a cache to view its configuration"})]})}),_=()=>e.jsx(t,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(M,{size:48,opacity:.3}),e.jsx(r,{children:"No caches found"}),e.jsx(r,{size:"sm",c:"dimmed",children:"Add caches using $cache primitive to see them here"})]})}),ee=()=>{const s=B(L),[l,p]=c.useState([]),[f,b]=c.useState(!0),[h,y]=c.useState(null),[i,o]=c.useState("");c.useEffect(()=>{s.fetch("/devtools/api/metadata",{schema:{response:E}}).then(m=>{p(m.data.caches),b(!1)})},[]);const d=c.useMemo(()=>{if(!i)return l;const m=i.toLowerCase();return l.filter(k=>k.name.toLowerCase().includes(m))},[l,i]);return f?e.jsx(t,{align:"center",justify:"center",h:"100%",children:e.jsx(r,{c:"dimmed",children:"Loading..."})}):l.length===0?e.jsx(_,{}):e.jsxs(t,{h:"100%",style:{overflow:"hidden"},children:[e.jsx(x,{w:240,style:{borderRight:`1px solid ${a.colors.border}`,backgroundColor:a.colors.surface},children:e.jsx(K,{caches:d,selectedCache:h,onSelectCache:y,search:i,onSearchChange:o})}),e.jsx(x,{style:{flex:1,overflow:"hidden"},children:h?e.jsx(H,{cache:h}):e.jsx(V,{})})]})};export{ee as DevCacheInspector,ee as default};
@@ -1 +1 @@
1
- import{f as b,b as x,q as f,j as g,B as j,s as N,v as R}from"./entry.r_sixgJG.js";var a={root:"m_b183c0a2"};const h=N((e,{color:s})=>({root:{"--code-bg":s?R(s,e):void 0}})),r=b((e,s)=>{const o=x("Code",null,e),{classNames:c,className:l,style:n,styles:m,unstyled:d,vars:p,color:B,block:t,variant:i,mod:v,attributes:u,...y}=o,C=f({name:"Code",props:o,classes:a,className:l,style:n,classNames:c,styles:m,unstyled:d,attributes:u,vars:p,varsResolver:h});return g.jsx(j,{component:t?"pre":"code",variant:i,ref:s,mod:[{block:t},v],...C("root"),...y,dir:"ltr"})});r.classes=a;r.displayName="@mantine/core/Code";export{r as C};
1
+ import{f as b,b as x,q as f,j as g,B as j,s as N,v as R}from"./entry.DBfTnVUe.js";var a={root:"m_b183c0a2"};const h=N((e,{color:s})=>({root:{"--code-bg":s?R(s,e):void 0}})),r=b((e,s)=>{const o=x("Code",null,e),{classNames:c,className:l,style:n,styles:m,unstyled:d,vars:p,color:B,block:t,variant:i,mod:v,attributes:u,...y}=o,C=f({name:"Code",props:o,classes:a,className:l,style:n,classNames:c,styles:m,unstyled:d,attributes:u,vars:p,varsResolver:h});return g.jsx(j,{component:t?"pre":"code",variant:i,ref:s,mod:[{block:t},v],...C("root"),...y,dir:"ltr"})});r.classes=a;r.displayName="@mantine/core/Code";export{r as C};
@@ -0,0 +1 @@
1
+ import{av as Me,r as x,aM as De,x as je,a3 as ke,b5 as Ie,b6 as Ae,A as z,aK as te,p as H,b as M,j as r,T as Pe,d as Te,c as Ne,f as B,B as se,ah as K,ay as Ee,i as q,aj as re,b7 as ie,U as ae,b8 as Le,_ as Fe,b9 as Re,q as _e,$ as Oe,ax as Be,a1 as Ke,a$ as Ve,H as $e,F as ne,ae as ze,a6 as L,G as He,ab as qe}from"./entry.DBfTnVUe.js";import{T as ce}from"./chunk.DN-SKgAD.js";import{f as Ue,c as le}from"./chunk.BlqFPyLh.js";import{P as F,u as de}from"./chunk.mJxmm31y.js";import{A as Ge}from"./chunk.I1TSx4X4.js";const ue=(n,o=["loading","dirty","error"])=>{const t=Me(),s=o,[a,i]=x.useState(!1),[e,c]=x.useState(!1),[l,u]=x.useState(void 0),[m,y]=x.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"),v=s.includes("dirty"),b=s.includes("loading");return x.useEffect(()=>{const C=[];return(d||w||v)&&C.push(t.events.on("form:change",p=>{p.id===h.id&&((!f||p.path===f)&&(v&&i(!0),d&&u(void 0)),w&&y(h.currentValues))})),w&&C.push(t.events.on("form:reset",p=>{p.id===h.id&&y(p.values)})),b&&C.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||v)&&C.push(t.events.on("form:submit:success",p=>{p.id===h.id&&(w&&y(p.values),v&&i(!1))})),d&&C.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 C)p()}},[]),{dirty:a,loading:e,error:l,values:m}},pt=()=>(je("alepha.react.i18n.lang"),ke(Ie)),We=n=>{Ae();const o=z(),[t,s]=x.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.go(i)}finally{s(!1)}}}}}};function S(n,o){return t=>{n?.(t),o?.(t)}}function Je(n,o){return n in o?te(o[n]):te(n)}function vt(n,o){const t=n.map(s=>({value:s,px:Je(s,o)}));return t.sort((s,a)=>s.px-a.px),t}function Qe(n,o,t){return t?Array.from(Ue(t,o)?.querySelectorAll(n)||[]).findIndex(s=>s===t):null}function Xe(n=!1,o={}){const[t,s]=x.useState(n),a=x.useCallback(()=>{s(c=>c||(o.onOpen?.(),!0))},[o.onOpen]),i=x.useCallback(()=>{s(c=>c&&(o.onClose?.(),!1))},[o.onClose]),e=x.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=x.useRef(-1),i=x.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 x.useEffect(()=>e,[]),{openDropdown:c,closeDropdown:l}}var he={root:"m_849cf0da"};const Ye={underline:"hover"},U=H((n,o)=>{const{underline:t,className:s,unstyled:a,mod:i,...e}=M("Anchor",Ye,n);return r.jsx(Pe,{component:"a",ref:o,className:Te({[he.root]:!a},s),...e,mod:[{underline:t},i],__staticSelector:"Anchor",unstyled:a})});U.classes=he;U.displayName="@mantine/core/Anchor";const[Ze,k]=Ne("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,...y}=M("MenuDropdown",null,n),h=x.useRef(null),f=k(),w=S(u,b=>{(b.key==="ArrowUp"||b.key==="ArrowDown")&&(b.preventDefault(),h.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),d=S(c,()=>(f.trigger==="hover"||f.trigger==="click-hover")&&f.openDropdown()),v=S(l,()=>(f.trigger==="hover"||f.trigger==="click-hover")&&f.closeDropdown());return r.jsxs(F.Dropdown,{...y,onMouseEnter:d,onMouseLeave:v,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[et,V]=Ee(),J=H((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,color:c,closeMenuOnClick:l,leftSection:u,rightSection:m,children:y,disabled:h,"data-disabled":f,...w}=M("MenuItem",null,n),d=k(),v=V(),b=q(),{dir:C}=re(),p=x.useRef(null),D=w,A=S(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,_=S(D.onKeyDown,T=>{T.key==="ArrowLeft"&&v&&(v.close(),v.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:C,orientation:"vertical",onKeyDown:_}),__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}),y&&r.jsx("div",{...d.getStyles("itemLabel",{styles:i,classNames:t}),children:y}),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,...y}=M("MenuSubDropdown",null,n),h=x.useRef(null),f=k(),w=V(),d=S(c,w?.open),v=S(l,w?.close);return r.jsx(F.Dropdown,{...y,onMouseEnter:d,onMouseLeave:v,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=H((n,o)=>{const{classNames:t,className:s,style:a,styles:i,vars:e,color:c,leftSection:l,rightSection:u,children:m,disabled:y,"data-disabled":h,closeMenuOnClick:f,...w}=M("MenuSubItem",null,n),d=k(),v=V(),b=q(),{dir:C}=re(),p=x.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=S(D.onKeyDown,E=>{E.key==="ArrowRight"&&(v?.open(),v?.focusFirstItem()),E.key==="ArrowLeft"&&v?.parentContext&&(v.parentContext.close(),v.parentContext.focusParentItem())}),_=S(D.onClick,()=>{!h&&f&&d.closeDropdownImmediately()}),T=S(D.onMouseEnter,v?.open),N=S(D.onMouseLeave,v?.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:y,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":y||h||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:T,onMouseLeave:N,onClick:_,onKeyDown:le({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:d.loop,dir:C,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(!Le(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 tt={offset:0,position:"right-start",transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function R(n){const{children:o,closeDelay:t,openDelay:s,...a}=M("MenuSub",tt,n),i=Fe(),[e,{open:c,close:l}]=Xe(!1),u=V(),{openDropdown:m,closeDropdown:y}=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(et,{value:{opened:e,close:y,open:m,focusFirstItem:h,focusParentItem:f,parentContext:u},children:r.jsx(F,{opened:e,withinPortal:!1,withArrow:!1,id:i,...a,children:o})})}R.extend=n=>n;R.displayName="@mantine/core/MenuSub";R.Target=fe;R.Dropdown=X;R.Item=Y;const nt={refProp:"ref"},pe=x.forwardRef((n,o)=>{const{children:t,refProp:s,...a}=M("MenuTarget",nt,n),i=Re(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=S(c.onClick,()=>{e.trigger==="click"?e.toggleDropdown():e.trigger==="click-hover"&&(e.setOpenedViaClick(!0),e.opened||e.openDropdown())}),u=S(c.onMouseEnter,()=>(e.trigger==="hover"||e.trigger==="click-hover")&&e.openDropdown()),m=S(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:x.cloneElement(i,{onClick:l,onMouseEnter:u,onMouseLeave:m,"data-expanded":e.opened?!0:void 0})})});pe.displayName="@mantine/core/MenuTarget";const ot={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function g(n){const o=M("Menu",ot,n),{children:t,onOpen:s,onClose:a,opened:i,defaultOpened:e,trapFocus:c,onChange:l,closeOnItemClick:u,loop:m,closeOnEscape:y,trigger:h,openDelay:f,closeDelay:w,classNames:d,styles:v,unstyled:b,variant:C,vars:p,menuItemTabIndex:D,keepMounted:A,withInitialFocusPlaceholder:j,attributes:P,..._}=o,T=_e({name:"Menu",classes:I,props:o,classNames:d,styles:v,unstyled:b,attributes:P}),[N,E]=Oe({value:i,defaultValue:e,finalValue:!1,onChange:l}),[ge,Z]=x.useState(!1),O=()=>{E(!1),Z(!1),N&&a?.()},$=()=>{E(!0),!N&&s?.()},ee=()=>{N?O():$()},{openDropdown:xe,closeDropdown:ye}=me({open:$,close:O,closeDelay:w,openDelay:f}),we=Ce=>Qe("[data-menu-item]","[data-menu-dropdown]",Ce),{resolvedClassNames:be,resolvedStyles:Se}=Be({classNames:d,styles:v,props:o});return r.jsx(Ze,{value:{getStyles:T,opened:N,toggleDropdown:ee,getItemIndex:we,openedViaClick:ge,setOpenedViaClick:Z,closeOnItemClick:u,closeDropdown:h==="click"?O:ye,openDropdown:h==="click"?$:xe,closeDropdownImmediately:O,loop:m,trigger:h,unstyled:b,menuItemTabIndex:D,withInitialFocusPlaceholder:j},children:r.jsx(F,{returnFocus:!0,..._,opened:N,onChange:ee,defaultOpened:e,trapFocus:A?!1:c,closeOnEscape:y,__staticSelector:"Menu",classNames:be,styles:Se,unstyled:b,variant:C,keepMounted:A,children:t})})}g.extend=n=>n;g.withProps=Ke(g);g.classes=I;g.displayName="@mantine/core/Menu";g.Item=J;g.Label=Q;g.Dropdown=W;g.Target=pe;g.Divider=G;g.Sub=R;const ve=n=>{const{item:o,index:t}=n,s=z(),a=de({handler:async e=>{await o.onClick?.()}},[o.onClick]);if(o.type==="divider")return r.jsx(g.Divider,{},t);if(o.type==="label")return r.jsx(g.Label,{children:o.label},t);if(o.children&&o.children.length>0)return r.jsxs(g,{trigger:"hover",position:"right-start",offset:2,children:[r.jsx(g.Target,{children:r.jsx(g.Item,{leftSection:o.icon,rightSection:r.jsx(He,{size:14}),children:o.label})}),r.jsx(g.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(g.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=q(),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=x.Children.only(u),e.px??="xs")}if(t.leftSection&&!t.children&&(e.px??="xs"),t.textVisibleFrom){const{children:u,textVisibleFrom:m,leftSection:y,...h}=e;return r.jsxs(r.Fragment,{children:[r.jsx(ne,{w:"100%",visibleFrom:m,children:r.jsx(oe,{flex:1,...h,leftSection:y,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:y})})]})}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(g,{position:a.position||"bottom-start",width:a.width||200,shadow:a.shadow||"md",trigger:a.on==="hover"?"hover":"click",...a.menuProps,children:[r.jsx(g.Target,{...a.targetProps,children:l}),r.jsx(g.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,...i}=n,e=z(),{isPending:c,isActive:l}=We(o?{href:n.href,...o}:{href:n.href}),u=e.anchor(n.href,a),m=i.className||"";return l&&o!==!1&&t&&(i.className=`${m} ${t}`.trim()),n.anchorProps?r.jsx(U,{component:"a",...u,...n.anchorProps,children:n.children}):r.jsx(L,{component:"a",loading:c,...i,...u,variant:l&&o!==!1?s??"filled":i.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,Xe as b,S as c,ue as d,Je as g,pt as u};
@@ -0,0 +1,9 @@
1
+ import{ao as me,r as F,j as G,f as _e,b as Ae,q as We,ax as ut,$ as Te,aD as st,U as Me,a2 as Ze,ah as lt,d as ct,aw as Ne,s as He,t as ge,aC as Xe,aH as ft,_ as dt,B as je,v as vt,a0 as mt,w as gt}from"./entry.DBfTnVUe.js";import{n as Oe}from"./chunk.BjFrJKj1.js";import{I as ht,a as pt,b as St}from"./chunk.BNC0DJB8.js";function qe(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]]);return r}var Se;(function(e){e.event="event",e.props="prop"})(Se||(Se={}));function ie(){}function bt(e){var t,r=void 0;return function(){for(var a=[],n=arguments.length;n--;)a[n]=arguments[n];return t&&a.length===t.length&&a.every(function(i,l){return i===t[l]})||(t=a,r=e.apply(void 0,a)),r}}function be(e){return!!(e||"").match(/\d/)}function he(e){return e==null}function wt(e){return typeof e=="number"&&isNaN(e)}function Je(e){return he(e)||wt(e)||typeof e=="number"&&!isFinite(e)}function Qe(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function xt(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}function Nt(e,t,r){var a=xt(r),n=e.search(/[1-9]/);return n=n===-1?e.length:n,e.substring(0,n)+e.substring(n,e.length).replace(a,"$1"+t)}function yt(e){var t=F.useRef(e);t.current=e;var r=F.useRef(function(){for(var a=[],n=arguments.length;n--;)a[n]=arguments[n];return t.current.apply(t,a)});return r.current}function Pe(e,t){t===void 0&&(t=!0);var r=e[0]==="-",a=r&&t;e=e.replace("-","");var n=e.split("."),i=n[0],l=n[1]||"";return{beforeDecimal:i,afterDecimal:l,hasNegation:r,addNegation:a}}function Vt(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var r=e.split("."),a=r[0].replace(/^0+/,"")||"0",n=r[1]||"";return(t?"-":"")+a+(n?"."+n:"")}function Ye(e,t,r){for(var a="",n=r?"0":"",i=0;i<=t-1;i++)a+=e[i]||n;return a}function Le(e,t){return Array(t+1).join(e)}function et(e){var t=e+"",r=t[0]==="-"?"-":"";r&&(t=t.substring(1));var a=t.split(/[eE]/g),n=a[0],i=a[1];if(i=Number(i),!i)return r+n;n=n.replace(".","");var l=1+i,b=n.length;return l<0?n="0."+Le("0",Math.abs(l))+n:l>=b?n=n+Le("0",l-b):n=(n.substring(0,l)||"0")+"."+n.substring(l),r+n}function Ge(e,t,r){if(["","-"].indexOf(e)!==-1)return e;var a=(e.indexOf(".")!==-1||r)&&t,n=Pe(e),i=n.beforeDecimal,l=n.afterDecimal,b=n.hasNegation,w=parseFloat("0."+(l||"0")),x=l.length<=t?"0."+l:w.toFixed(t),N=x.split("."),g=i;i&&Number(N[0])&&(g=i.split("").reverse().reduce(function(D,C,m){return D.length>m?(Number(D[0])+Number(C)).toString()+D.substring(1,D.length):C+D},N[0]));var d=Ye(N[1]||"",t,r),h=b?"-":"",f=a?".":"";return""+h+g+f+d}function ce(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var tt=bt(function(e,t){for(var r=0,a=0,n=e.length,i=t.length;e[r]===t[r]&&r<n;)r++;for(;e[n-1-a]===t[i-1-a]&&i-a>r&&n-a>r;)a++;return{from:{start:r,end:n-a},to:{start:r,end:i-a}}}),Dt=function(e,t){var r=Math.min(e.selectionStart,t);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:t}}};function Ct(e,t,r){return Math.min(Math.max(e,t),r)}function Ce(e){return Math.max(e.selectionStart,e.selectionEnd)}function It(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function Rt(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Et(e){var t=e.currentValue,r=e.formattedValue,a=e.currentValueIndex,n=e.formattedValueIndex;return t[a]===r[n]}function _t(e,t,r,a,n,i,l){l===void 0&&(l=Et);var b=n.findIndex(function(Z){return Z}),w=e.slice(0,b);!t&&!r.startsWith(w)&&(t=w,r=w+r,a=a+w.length);for(var x=r.length,N=e.length,g={},d=new Array(x),h=0;h<x;h++){d[h]=-1;for(var f=0,D=N;f<D;f++){var C=l({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:h,formattedValueIndex:f});if(C&&g[f]!==!0){d[h]=f,g[f]=!0;break}}}for(var m=a;m<x&&(d[m]===-1||!i(r[m]));)m++;var k=m===x||d[m]===-1?N:d[m];for(m=a-1;m>0&&d[m]===-1;)m--;var M=m===-1||d[m]===-1?0:d[m]+1;return M>k?k:a-M<k-a?M:k}function $e(e,t,r,a){var n=e.length;if(t=Ct(t,0,n),a==="left"){for(;t>=0&&!r[t];)t--;t===-1&&(t=r.indexOf(!0))}else{for(;t<=n&&!r[t];)t++;t>n&&(t=r.lastIndexOf(!0))}return t===-1&&(t=n),t}function At(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),r=0,a=t.length;r<a;r++)t[r]=!!(be(e[r])||be(e[r-1]));return t}function rt(e,t,r,a,n,i){i===void 0&&(i=ie);var l=yt(function(f,D){var C,m;return Je(f)?(m="",C=""):typeof f=="number"||D?(m=typeof f=="number"?et(f):f,C=a(m)):(m=n(f,void 0),C=a(m)),{formattedValue:C,numAsString:m}}),b=F.useState(function(){return l(he(e)?t:e,r)}),w=b[0],x=b[1],N=function(f,D){f.formattedValue!==w.formattedValue&&x({formattedValue:f.formattedValue,numAsString:f.value}),i(f,D)},g=e,d=r;he(e)&&(g=w.numAsString,d=!0);var h=l(g,d);return F.useMemo(function(){x(h)},[h.formattedValue]),[w,N]}function Tt(e){return e.replace(/[^0-9]/g,"")}function Pt(e){return e}function Bt(e){var t=e.type;t===void 0&&(t="text");var r=e.displayType;r===void 0&&(r="input");var a=e.customInput,n=e.renderText,i=e.getInputRef,l=e.format;l===void 0&&(l=Pt);var b=e.removeFormatting;b===void 0&&(b=Tt);var w=e.defaultValue,x=e.valueIsNumericString,N=e.onValueChange,g=e.isAllowed,d=e.onChange;d===void 0&&(d=ie);var h=e.onKeyDown;h===void 0&&(h=ie);var f=e.onMouseUp;f===void 0&&(f=ie);var D=e.onFocus;D===void 0&&(D=ie);var C=e.onBlur;C===void 0&&(C=ie);var m=e.value,k=e.getCaretBoundary;k===void 0&&(k=At);var M=e.isValidInputCharacter;M===void 0&&(M=be);var Z=e.isCharacterSame,j=qe(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),J=rt(m,w,!!x,l,b,N),K=J[0],I=K.formattedValue,O=K.numAsString,$=J[1],U=F.useRef(),H=F.useRef({formattedValue:I,numAsString:O}),z=function(o,s){H.current={formattedValue:o.formattedValue,numAsString:o.value},$(o,s)},Q=F.useState(!1),q=Q[0],v=Q[1],c=F.useRef(null),R=F.useRef({setCaretTimeout:null,focusTimeout:null});F.useEffect(function(){return v(!0),function(){clearTimeout(R.current.setCaretTimeout),clearTimeout(R.current.focusTimeout)}},[]);var T=l,P=function(o,s){var p=parseFloat(s);return{formattedValue:o,value:s,floatValue:isNaN(p)?void 0:p}},y=function(o,s,p){o.selectionStart===0&&o.selectionEnd===o.value.length||(ce(o,s),R.current.setCaretTimeout=setTimeout(function(){o.value===p&&o.selectionStart!==s&&ce(o,s)},0))},B=function(o,s,p){return $e(o,s,k(o),p)},Y=function(o,s,p){var _=k(s),L=_t(s,I,o,p,_,M,Z);return L=$e(s,L,_),L},X=function(o){var s=o.formattedValue;s===void 0&&(s="");var p=o.input,_=o.source,L=o.event,E=o.numAsString,V;if(p){var W=o.inputValue||p.value,ee=Ce(p);p.value=s,V=Y(W,s,ee),V!==void 0&&y(p,V,s)}s!==I&&z(P(s,E),{event:L,source:_})};F.useEffect(function(){var o=H.current,s=o.formattedValue,p=o.numAsString;(I!==s||O!==p)&&z(P(I,O),{event:void 0,source:Se.props})},[I,O]);var oe=c.current?Ce(c.current):void 0,fe=typeof window<"u"?F.useLayoutEffect:F.useEffect;fe(function(){var o=c.current;if(I!==H.current.formattedValue&&o){var s=Y(H.current.formattedValue,I,oe);o.value=I,y(o,s,I)}},[I]);var A=function(o,s,p){var _=s.target,L=U.current?Dt(U.current,_.selectionEnd):tt(I,o),E=Object.assign(Object.assign({},L),{lastValue:I}),V=b(o,E),W=T(V);if(V=b(W,void 0),g&&!g(P(W,V))){var ee=s.target,u=Ce(ee),S=Y(o,I,u);return ee.value=I,y(ee,S,I),!1}return X({formattedValue:W,numAsString:V,inputValue:o,event:s,source:p,input:s.target}),!0},ae=function(o,s){s===void 0&&(s=0);var p=o.selectionStart,_=o.selectionEnd;U.current={selectionStart:p,selectionEnd:_+s}},we=function(o){var s=o.target,p=s.value,_=A(p,o,Se.event);_&&d(o),U.current=void 0},te=function(o){var s=o.target,p=o.key,_=s.selectionStart,L=s.selectionEnd,E=s.value;E===void 0&&(E="");var V;p==="ArrowLeft"||p==="Backspace"?V=Math.max(_-1,0):p==="ArrowRight"?V=Math.min(_+1,E.length):p==="Delete"&&(V=_);var W=0;p==="Delete"&&_===L&&(W=1);var ee=p==="ArrowLeft"||p==="ArrowRight";if(V===void 0||_!==L&&!ee){h(o),ae(s,W);return}var u=V;if(ee){var S=p==="ArrowLeft"?"left":"right";u=B(E,V,S),u!==V&&o.preventDefault()}else p==="Delete"&&!M(E[V])?u=B(E,V,"right"):p==="Backspace"&&!M(E[V])&&(u=B(E,V,"left"));u!==V&&y(s,u,E),h(o),ae(s,W)},ue=function(o){var s=o.target,p=function(){var _=s.selectionStart,L=s.selectionEnd,E=s.value;if(E===void 0&&(E=""),_===L){var V=B(E,_);V!==_&&y(s,V,E)}};p(),requestAnimationFrame(function(){p()}),f(o),ae(s)},pe=function(o){o.persist&&o.persist();var s=o.target,p=o.currentTarget;c.current=s,R.current.focusTimeout=setTimeout(function(){var _=s.selectionStart,L=s.selectionEnd,E=s.value;E===void 0&&(E="");var V=B(E,_);V!==_&&!(_===0&&L===E.length)&&y(s,V,E),D(Object.assign(Object.assign({},o),{currentTarget:p}))},0)},Ve=function(o){c.current=null,clearTimeout(R.current.focusTimeout),clearTimeout(R.current.setCaretTimeout),C(o)},se=q&&It()?"numeric":void 0,de=Object.assign({inputMode:se},j,{type:t,value:I,onChange:we,onKeyDown:te,onMouseUp:ue,onFocus:pe,onBlur:Ve});if(r==="text")return n?me.createElement(me.Fragment,null,n(I,j)||null):me.createElement("span",Object.assign({},j,{ref:i}),I);if(a){var ve=a;return me.createElement(ve,Object.assign({},de,{ref:i}))}return me.createElement("input",Object.assign({},de,{ref:i}))}function Ke(e,t){var r=t.decimalScale,a=t.fixedDecimalScale,n=t.prefix;n===void 0&&(n="");var i=t.suffix;i===void 0&&(i="");var l=t.allowNegative,b=t.thousandsGroupStyle;if(b===void 0&&(b="thousand"),e===""||e==="-")return e;var w=ye(t),x=w.thousandSeparator,N=w.decimalSeparator,g=r!==0&&e.indexOf(".")!==-1||r&&a,d=Pe(e,l),h=d.beforeDecimal,f=d.afterDecimal,D=d.addNegation;return r!==void 0&&(f=Ye(f,r,!!a)),x&&(h=Nt(h,x,b)),n&&(h=n+h),i&&(f=f+i),D&&(h="-"+h),e=h+(g&&N||"")+f,e}function ye(e){var t=e.decimalSeparator;t===void 0&&(t=".");var r=e.thousandSeparator,a=e.allowedDecimalSeparators;return r===!0&&(r=","),a||(a=[t,"."]),{decimalSeparator:t,thousandSeparator:r,allowedDecimalSeparators:a}}function kt(e,t){e===void 0&&(e="");var r=new RegExp("(-)"),a=new RegExp("(-)(.)*(-)"),n=r.test(e),i=a.test(e);return e=e.replace(/-/g,""),n&&!i&&t&&(e="-"+e),e}function Ft(e,t){return new RegExp("(^-)|[0-9]|"+Qe(e),"g")}function Mt(e,t,r){return e===""?!0:!t?.match(/\d/)&&!r?.match(/\d/)&&typeof e=="string"&&!isNaN(Number(e))}function jt(e,t,r){var a;t===void 0&&(t=Rt(e));var n=r.allowNegative,i=r.prefix;i===void 0&&(i="");var l=r.suffix;l===void 0&&(l="");var b=r.decimalScale,w=t.from,x=t.to,N=x.start,g=x.end,d=ye(r),h=d.allowedDecimalSeparators,f=d.decimalSeparator,D=e[g]===f;if(be(e)&&(e===i||e===l)&&t.lastValue==="")return e;if(g-N===1&&h.indexOf(e[N])!==-1){var C=b===0?"":f;e=e.substring(0,N)+C+e.substring(N+1,e.length)}var m=function(c,R,T){var P=!1,y=!1;i.startsWith("-")?P=!1:c.startsWith("--")?(P=!1,y=!0):l.startsWith("-")&&c.length===l.length?P=!1:c[0]==="-"&&(P=!0);var B=P?1:0;return y&&(B=2),B&&(c=c.substring(B),R-=B,T-=B),{value:c,start:R,end:T,hasNegation:P}},k=m(e,N,g),M=k.hasNegation;a=k,e=a.value,N=a.start,g=a.end;var Z=m(t.lastValue,w.start,w.end),j=Z.start,J=Z.end,K=Z.value,I=e.substring(N,g);e.length&&K.length&&(j>K.length-l.length||J<i.length)&&!(I&&l.startsWith(I))&&(e=K);var O=0;e.startsWith(i)?O+=i.length:N<i.length&&(O=N),e=e.substring(O),g-=O;var $=e.length,U=e.length-l.length;e.endsWith(l)?$=U:(g>U||g>e.length-l.length)&&($=g),e=e.substring(0,$),e=kt(M?"-"+e:e,n),e=(e.match(Ft(f))||[]).join("");var H=e.indexOf(f);e=e.replace(new RegExp(Qe(f),"g"),function(c,R){return R===H?".":""});var z=Pe(e,n),Q=z.beforeDecimal,q=z.afterDecimal,v=z.addNegation;return x.end-x.start<w.end-w.start&&Q===""&&D&&!parseFloat(q)&&(e=v?"-":""),e}function Ot(e,t){var r=t.prefix;r===void 0&&(r="");var a=t.suffix;a===void 0&&(a="");var n=Array.from({length:e.length+1}).map(function(){return!0}),i=e[0]==="-";n.fill(!1,0,r.length+(i?1:0));var l=e.length;return n.fill(!1,l-a.length+1,l+1),n}function Lt(e){var t=ye(e),r=t.thousandSeparator,a=t.decimalSeparator,n=e.prefix;n===void 0&&(n="");var i=e.allowNegative;if(i===void 0&&(i=!0),r===a)throw new Error(`
2
+ Decimal separator can't be same as thousand separator.
3
+ thousandSeparator: `+r+` (thousandSeparator = {true} is same as thousandSeparator = ",")
4
+ decimalSeparator: `+a+` (default value for decimalSeparator is .)
5
+ `);return n.startsWith("-")&&i&&(console.error(`
6
+ Prefix can't start with '-' when allowNegative is true.
7
+ prefix: `+n+`
8
+ allowNegative: `+i+`
9
+ `),i=!1),Object.assign(Object.assign({},e),{allowNegative:i})}function Gt(e){e=Lt(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,r=e.allowNegative,a=e.allowLeadingZeros,n=e.onKeyDown;n===void 0&&(n=ie);var i=e.onBlur;i===void 0&&(i=ie);var l=e.thousandSeparator,b=e.decimalScale,w=e.fixedDecimalScale,x=e.prefix;x===void 0&&(x="");var N=e.defaultValue,g=e.value,d=e.valueIsNumericString,h=e.onValueChange,f=qe(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),D=ye(e),C=D.decimalSeparator,m=D.allowedDecimalSeparators,k=function(v){return Ke(v,e)},M=function(v,c){return jt(v,c,e)},Z=he(g)?N:g,j=d??Mt(Z,x,t);he(g)?he(N)||(j=j||typeof N=="number"):j=j||typeof g=="number";var J=function(v){return Je(v)?v:(typeof v=="number"&&(v=et(v)),j&&typeof b=="number"?Ge(v,b,!!w):v)},K=rt(J(g),J(N),!!j,k,M,h),I=K[0],O=I.numAsString,$=I.formattedValue,U=K[1],H=function(v){var c=v.target,R=v.key,T=c.selectionStart,P=c.selectionEnd,y=c.value;if(y===void 0&&(y=""),(R==="Backspace"||R==="Delete")&&P<x.length){v.preventDefault();return}if(T!==P){n(v);return}R==="Backspace"&&y[0]==="-"&&T===x.length+1&&r&&ce(c,1),b&&w&&(R==="Backspace"&&y[T-1]===C?(ce(c,T-1),v.preventDefault()):R==="Delete"&&y[T]===C&&v.preventDefault()),m?.includes(R)&&y[T]===C&&ce(c,T+1);var B=l===!0?",":l;R==="Backspace"&&y[T-1]===B&&ce(c,T-1),R==="Delete"&&y[T]===B&&ce(c,T+1),n(v)},z=function(v){var c=O;if(c.match(/\d/g)||(c=""),a||(c=Vt(c)),w&&b&&(c=Ge(c,b,w)),c!==O){var R=Ke(c,e);U({formattedValue:R,value:c,floatValue:parseFloat(c)},{event:v,source:Se.event})}i(v)},Q=function(v){return v===C?!0:be(v)},q=function(v){var c=v.currentValue,R=v.lastValue,T=v.formattedValue,P=v.currentValueIndex,y=v.formattedValueIndex,B=c[P],Y=T[y],X=tt(R,c),oe=X.to,fe=function(A){return M(A).indexOf(".")+x.length};return g===0&&w&&b&&c[oe.start]===C&&fe(c)<P&&fe(T)>y?!1:P>=oe.start&&P<oe.end&&m&&m.includes(B)&&Y===C?!0:B===Y};return Object.assign(Object.assign({},f),{value:$,valueIsNumericString:!1,isValidInputCharacter:Q,isCharacterSame:q,onValueChange:U,format:k,removeFormatting:M,getCaretBoundary:function(v){return Ot(v,e)},onKeyDown:H,onBlur:z})}function $t(e){var t=Gt(e);return me.createElement(Bt,Object.assign({},t))}function Ue({direction:e,style:t,...r}){return G.jsx("svg",{style:{width:"var(--ni-chevron-size)",height:"var(--ni-chevron-size)",transform:e==="up"?"rotate(180deg)":void 0,...t},viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:G.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}var Re={root:"m_e2f5cd4e",controls:"m_95e17d22",control:"m_80b4b171"};const Kt=/^(0\.0*|-0(\.0*)?)$/,Ut=/^-?0\d+(\.\d+)?\.?$/,zt=/\.\d*0$/,at=/^-?\d+\.$/;function Ee(e){return typeof e=="string"&&e!==""&&!Number.isNaN(Number(e))}function Ie(e){return typeof e=="number"?e<Number.MAX_SAFE_INTEGER:e===""||Ee(e)&&Number(e)<Number.MAX_SAFE_INTEGER}function Wt(e){return e.toString().replace(".","").length}function Zt(e,t){return(typeof e=="number"?e<Number.MAX_SAFE_INTEGER:!Number.isNaN(Number(e)))&&!Number.isNaN(e)&&Wt(t)<14&&t!==""}function ze(e,t,r){if(e===void 0)return!0;const a=t===void 0||e>=t,n=r===void 0||e<=r;return a&&n}const Ht={step:1,clampBehavior:"blur",allowDecimal:!0,allowNegative:!0,withKeyboardEvents:!0,allowLeadingZeros:!0,trimLeadingZeroesOnBlur:!0,startValue:0,allowedDecimalSeparators:[".",","]},Xt=He((e,{size:t})=>({controls:{"--ni-chevron-size":ge(t,"ni-chevron-size")}}));function qt(e,t,r){const a=e.toString(),n=at.test(a),i=a.replace(/^0+(?=\d)/,""),l=parseFloat(i);if(Number.isNaN(l))return i;if(l>Number.MAX_SAFE_INTEGER)return t!==void 0?t:i;const b=Ne(l,r,t);return n?`${b.toString().replace(/^0+(?=\d)/,"")}.`:b}const nt=_e((e,t)=>{const r=Ae("NumberInput",Ht,e),{className:a,classNames:n,styles:i,unstyled:l,vars:b,onChange:w,onValueChange:x,value:N,defaultValue:g,max:d,min:h,step:f,hideControls:D,rightSection:C,isAllowed:m,clampBehavior:k,onBlur:M,allowDecimal:Z,decimalScale:j,onKeyDown:J,onKeyDownCapture:K,handlersRef:I,startValue:O,disabled:$,rightSectionPointerEvents:U,allowNegative:H,readOnly:z,size:Q,rightSectionWidth:q,stepHoldInterval:v,stepHoldDelay:c,allowLeadingZeros:R,withKeyboardEvents:T,trimLeadingZeroesOnBlur:P,allowedDecimalSeparators:y,attributes:B,...Y}=r,X=We({name:"NumberInput",classes:Re,props:r,classNames:n,styles:i,unstyled:l,attributes:B,vars:b,varsResolver:Xt}),{resolvedClassNames:oe,resolvedStyles:fe}=ut({classNames:n,styles:i,props:r}),[A,ae]=Te({value:N,defaultValue:g,finalValue:"",onChange:w}),we=c!==void 0&&v!==void 0,te=F.useRef(null),ue=F.useRef(null),pe=F.useRef(0),Ve=(u,S)=>{S.source==="event"&&ae(Zt(u.floatValue,u.value)&&!Kt.test(u.value)&&!(R&&Ut.test(u.value))&&!zt.test(u.value)&&!at.test(u.value)?u.floatValue:u.value),x?.(u,S)},se=u=>{const S=String(u).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return S?Math.max(0,(S[1]?S[1].length:0)-(S[2]?+S[2]:0)):0},de=u=>{te.current&&typeof u<"u"&&te.current.setSelectionRange(u,u)},ve=F.useRef(Oe);ve.current=()=>{if(!Ie(A))return;let u;const S=se(A),De=se(f),xe=Math.max(S,De),re=10**xe;if(!Ee(A)&&(typeof A!="number"||Number.isNaN(A)))u=Ne(O,h,d);else if(d!==void 0){const le=(Math.round(Number(A)*re)+Math.round(f*re))/re;u=le<=d?le:d}else u=(Math.round(Number(A)*re)+Math.round(f*re))/re;const ne=u.toFixed(xe);ae(parseFloat(ne)),x?.({floatValue:parseFloat(ne),formattedValue:ne,value:ne},{source:"increment"}),setTimeout(()=>de(te.current?.value.length),0)};const o=F.useRef(Oe);o.current=()=>{if(!Ie(A))return;let u;const S=h!==void 0?h:H?Number.MIN_SAFE_INTEGER:0,De=se(A),xe=se(f),re=Math.max(De,xe),ne=10**re;if(!Ee(A)&&typeof A!="number"||Number.isNaN(A))u=Ne(O,S,d);else{const Fe=(Math.round(Number(A)*ne)-Math.round(f*ne))/ne;u=S!==void 0&&Fe<S?S:Fe}const le=u.toFixed(re);ae(parseFloat(le)),x?.({floatValue:parseFloat(le),formattedValue:le,value:le},{source:"decrement"}),setTimeout(()=>de(te.current?.value.length),0)};const s=u=>{J?.(u),!(z||!T)&&(u.key==="ArrowUp"&&(u.preventDefault(),ve.current?.()),u.key==="ArrowDown"&&(u.preventDefault(),o.current?.()))},p=u=>{if(K?.(u),u.key==="Backspace"){const S=te.current;S&&S.selectionStart===0&&S.selectionStart===S.selectionEnd&&(u.preventDefault(),window.setTimeout(()=>de(0),0))}},_=u=>{let S=A;k==="blur"&&typeof S=="number"&&(S=Ne(S,h,d)),P&&typeof S=="string"&&se(S)<15&&(S=qt(S,d,h)),A!==S&&ae(S),M?.(u)};st(I,{increment:ve.current,decrement:o.current});const L=u=>{u?ve.current?.():o.current?.(),pe.current+=1},E=u=>{if(L(u),we){const S=typeof v=="number"?v:v(pe.current);ue.current=window.setTimeout(()=>E(u),S)}},V=(u,S)=>{u.preventDefault(),te.current?.focus(),L(S),we&&(ue.current=window.setTimeout(()=>E(S),c))},W=()=>{ue.current&&window.clearTimeout(ue.current),ue.current=null,pe.current=0},ee=G.jsxs("div",{...X("controls"),children:[G.jsx(Me,{...X("control"),tabIndex:-1,"aria-hidden":!0,disabled:$||typeof A=="number"&&d!==void 0&&A>=d,mod:{direction:"up"},onMouseDown:u=>u.preventDefault(),onPointerDown:u=>{V(u,!0)},onPointerUp:W,onPointerLeave:W,children:G.jsx(Ue,{direction:"up"})}),G.jsx(Me,{...X("control"),tabIndex:-1,"aria-hidden":!0,disabled:$||typeof A=="number"&&h!==void 0&&A<=h,mod:{direction:"down"},onMouseDown:u=>u.preventDefault(),onPointerDown:u=>{V(u,!1)},onPointerUp:W,onPointerLeave:W,children:G.jsx(Ue,{direction:"down"})})]});return G.jsx(Ze,{component:$t,allowNegative:H,className:ct(Re.root,a),size:Q,inputMode:"decimal",...Y,readOnly:z,disabled:$,value:A,getInputRef:lt(t,te),onValueChange:Ve,rightSection:D||z||!Ie(A)?C:C||ee,classNames:oe,styles:fe,unstyled:l,__staticSelector:"NumberInput",decimalScale:Z?j:0,onKeyDown:s,onKeyDownCapture:p,rightSectionPointerEvents:U??($?"none":void 0),rightSectionWidth:q??`var(--ni-right-section-width-${Q||"sm"})`,allowLeadingZeros:R,allowedDecimalSeparators:y,onBlur:_,attributes:B,isAllowed:u=>k==="strict"?m?m(u)&&ze(u.floatValue,h,d):ze(u.floatValue,h,d):m?m(u):!0})});nt.classes={...Ze.classes,...Re};nt.displayName="@mantine/core/NumberInput";const it=F.createContext(null),Jt=it.Provider,Qt=()=>F.useContext(it),Be=_e((e,t)=>{const{value:r,defaultValue:a,onChange:n,size:i,wrapperProps:l,children:b,readOnly:w,disabled:x,...N}=Ae("SwitchGroup",null,e),[g,d]=Te({value:r,defaultValue:a,finalValue:[],onChange:n}),h=f=>{const D=f.currentTarget.value;!w&&d(g.includes(D)?g.filter(C=>C!==D):[...g,D])};return G.jsx(Jt,{value:{value:g,onChange:h,size:i,disabled:x},children:G.jsx(Xe.Wrapper,{size:i,ref:t,...l,...N,labelElement:"div",__staticSelector:"SwitchGroup",children:G.jsx(ht,{role:"group",children:b})})})});Be.classes=Xe.Wrapper.classes;Be.displayName="@mantine/core/SwitchGroup";var ot={root:"m_5f93f3bb",input:"m_926b4011",track:"m_9307d992",thumb:"m_93039a1d",trackLabel:"m_8277e082"};const Yt={labelPosition:"right",withThumbIndicator:!0},er=He((e,{radius:t,color:r,size:a})=>({root:{"--switch-radius":t===void 0?void 0:mt(t),"--switch-height":ge(a,"switch-height"),"--switch-width":ge(a,"switch-width"),"--switch-thumb-size":ge(a,"switch-thumb-size"),"--switch-label-font-size":ge(a,"switch-label-font-size"),"--switch-track-label-padding":ge(a,"switch-track-label-padding"),"--switch-color":r?vt(r,e):void 0}})),ke=_e((e,t)=>{const r=Ae("Switch",Yt,e),{classNames:a,className:n,style:i,styles:l,unstyled:b,vars:w,color:x,label:N,offLabel:g,onLabel:d,id:h,size:f,radius:D,wrapperProps:C,thumbIcon:m,checked:k,defaultChecked:M,onChange:Z,labelPosition:j,description:J,error:K,disabled:I,variant:O,rootRef:$,mod:U,withThumbIndicator:H,attributes:z,...Q}=r,q=Qt(),v=f||q?.size,c=We({name:"Switch",props:r,classes:ot,className:n,style:i,classNames:a,styles:l,unstyled:b,attributes:z,vars:w,varsResolver:er}),{styleProps:R,rest:T}=ft(Q),P=dt(h),y={checked:q?.value.includes(T.value)??k,onChange:X=>{q?.onChange(X),Z?.(X)},disabled:q?.disabled??I},[B,Y]=Te({value:y.checked??k,defaultValue:M,finalValue:!1});return G.jsxs(pt,{...c("root"),__staticSelector:"Switch",__stylesApiProps:r,id:P,size:v,labelPosition:j,label:N,description:J,error:K,disabled:y.disabled,bodyElement:"label",labelElement:"span",classNames:a,styles:l,unstyled:b,"data-checked":y.checked,variant:O,ref:$,mod:U,...R,...C,children:[G.jsx("input",{...T,...y,checked:B,"data-checked":y.checked,onChange:X=>{y.onChange?.(X),Y(X.currentTarget.checked)},id:P,ref:t,type:"checkbox",role:"switch",...c("input")}),G.jsxs(je,{"aria-hidden":"true",component:"span",mod:{error:K,"label-position":j,"without-labels":!d&&!g},...c("track"),children:[G.jsx(je,{component:"span",mod:{"reduce-motion":!0,"with-thumb-indicator":H&&!m},...c("thumb"),children:m}),G.jsx("span",{...c("trackLabel"),children:B?d:g})]})]})});ke.classes={...ot,...St};ke.displayName="@mantine/core/Switch";ke.Group=Be;const tr=[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]],ir=gt("outline","refresh","Refresh",tr);export{ir as I,nt as N,ke as S};
@@ -0,0 +1 @@
1
+ import{f as w,b as I,q as N,_ as S,j as e,B as k,aq as q,s as z,a0 as $}from"./entry.DBfTnVUe.js";var x={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const E=z((t,{radius:l,color:o,variant:a,autoContrast:d})=>{const r=t.variantColorResolver({color:o||t.primaryColor,theme:t,variant:a||"light",autoContrast:d});return{root:{"--alert-radius":l===void 0?void 0:$(l),"--alert-bg":o||a?r.background:void 0,"--alert-color":r.color,"--alert-bd":o||a?r.border:void 0}}}),j=w((t,l)=>{const o=I("Alert",null,t),{classNames:a,className:d,style:r,styles:f,unstyled:b,vars:h,radius:L,color:P,title:i,children:n,id:_,icon:u,withCloseButton:m,onClose:g,closeButtonLabel:B,variant:c,autoContrast:V,role:C,attributes:A,...R}=o,s=N({name:"Alert",classes:x,props:o,className:d,style:r,classNames:a,styles:f,unstyled:b,attributes:A,vars:h,varsResolver:E}),v=S(_),p=i&&`${v}-title`||void 0,y=`${v}-body`;return e.jsx(k,{id:v,...s("root",{variant:c}),variant:c,ref:l,role:C||"alert",...R,"aria-describedby":n?y:void 0,"aria-labelledby":i?p:void 0,children:e.jsxs("div",{...s("wrapper"),children:[u&&e.jsx("div",{...s("icon"),children:u}),e.jsxs("div",{...s("body"),children:[i&&e.jsx("div",{...s("title"),"data-with-close-button":m||void 0,children:e.jsx("span",{id:p,...s("label"),children:i})}),n&&e.jsx("div",{id:y,...s("message"),"data-variant":c,children:n})]}),m&&e.jsx(q,{...s("closeButton"),onClick:g,variant:"transparent",size:16,iconSize:16,"aria-label":B,unstyled:b})]})})});j.classes=x;j.displayName="@mantine/core/Alert";export{j as A};
@@ -0,0 +1 @@
1
+ import{av as Me,a3 as $e,b1 as Ae,r as i,c as Ke,f as k,b as E,bd as We,ah as Z,j as b,be as G,aL as J,bf as He,B as j,bg as Ue,e as Xe,b9 as Ye,bc as qe,d as Be,bh as Q,$ as Le,bi as Ze,bj as X,az as Y,n as Ge,bk as Je,bl as Qe,bm as er,bn as q,bo as B,bp as L,bq as rr,br as tr,o as or,q as ee,ax as nr,aj as sr,_ as ar,bs as ir,bt as lr,s as re,bu as cr,a0 as dr,t as ur,v as fr}from"./entry.DBfTnVUe.js";import{n as pr}from"./chunk.BjFrJKj1.js";import{u as wr}from"./chunk.CAWWjC4E.js";function Sr(e,n){const o=Me(),t=$e(Ae),[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 I=k((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(He,{active:r.trapFocus&&r.opened,innerRef:y,children:b.jsxs(j,{...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:Xe(r.width),...r.referenceHidden?{display:"none"}:null},r.resolvedStyles.dropdown,d?.dropdown,l]}),children:[u,b.jsx(Ue,{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})})]})})})})});I.classes=oe;I.displayName="@mantine/core/PopoverDropdown";const mr={refProp:"ref",popupType:"dialog"},ne=k((e,n)=>{const{children:o,refProp:t,popupType:l,...p}=E("PopoverTarget",mr,e),u=Ye(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,qe(u),n),d=s.withRoles?{"aria-haspopup":l,"aria-expanded":s.opened,"aria-controls":s.getDropdownId(),id:s.getTargetId()}:{},c=u.props;return i.cloneElement(u,{...a,...d,...s.targetProps,className:Be(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.shift&&l.push(er(typeof t.shift=="boolean"?{limiter:q(),padding:5}:{limiter:q(),padding:5,...t.shift})),t.flip&&l.push(typeof t.flip=="boolean"?B():B(t.flip)),t.inline&&l.push(typeof t.inline=="boolean"?L():L(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:X});return i.useEffect(()=>{if(!(!a.refs.reference.current||!a.refs.floating.current)&&o)return X(a.refs.reference.current,a.refs.floating.current,a.update)},[o,a.update]),Y(()=>{e.onPositionChange?.(a.placement),e.positionRef.current=a.placement},[a.placement,e.preventPositionChangeWhenVisible]),Y(()=>{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:or("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:N,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:_,withRoles:he,disabled:V,returnFocus:be,variant:ye,keepMounted:M,vars:Pe,floatingStrategy:$,withOverlay:xe,overlayProps:T,hideDetached:Re,attributes:Ce,preventPositionChangeWhenVisible:z,...Ee}=n,A=ee({name:_,props:n,classes:oe,classNames:P,styles:g,unstyled:x,attributes:Ce,rootSelector:"dropdown",vars:Pe,varsResolver:xr}),{resolvedStyles:De}=nr({classNames:P,styles:g,props:n}),[Oe,K]=i.useState(a??F??!1),W=i.useRef(t),H=i.useRef(null),[Se,Te]=i.useState(null),[ze,je]=i.useState(null),{dir:ke}=sr(),Ie=Q(),U=ar(me),f=yr({middlewares:r,width:c,position:ir(ke,t),offset:typeof l=="number"?l+(m?w/2:0):l,arrowRef:H,arrowOffset:y,onPositionChange:p,positionDependencies:u,opened:a,defaultOpened:F,onChange:pe,onOpen:fe,onClose:ue,onDismiss:S,strategy:$,dropdownVisible:Oe,setDropdownVisible:K,positionRef:W,disabled:V,preventPositionChangeWhenVisible:z,keepMounted:M});wr(()=>{C&&(f.onClose(),S?.())},ce,[Se,ze]);const Ne=i.useCallback(R=>{Te(R),f.floating.refs.setReference(R)},[f.floating.refs.setReference]),Fe=i.useCallback(R=>{je(R),f.floating.refs.setFloating(R)},[f.floating.refs.setFloating]),_e=i.useCallback(()=>{s?.onExited?.(),v?.(),K(!1),z||(W.current=t)},[s?.onExited,v,z,t]),Ve=i.useCallback(()=>{s?.onEntered?.(),d?.()},[s?.onEntered,d]);return b.jsxs(vr,{value:{returnFocus:be,disabled:V,controlled:f.controlled,reference:Ne,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:H,transitionProps:{...s,onExited:_e,onEntered:Ve},width:c,withArrow:m,arrowSize:w,arrowOffset:y,arrowRadius:h,arrowPosition:O,placement:f.floating.placement,trapFocus:de,withinPortal:N,portalProps:ie,zIndex:we,radius:ge,shadow:ve,closeOnEscape:le,onDismiss:S,onClose:f.onClose,onToggle:f.onToggle,getTargetId:()=>`${U}-target`,getDropdownId:()=>`${U}-dropdown`,withRoles:he,targetProps:Ee,__staticSelector:_,classNames:P,styles:g,unstyled:x,variant:ye,keepMounted:M,getStyles:A,resolvedStyles:De,floatingStrategy:$,referenceHidden:Re&&Ie!=="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:N,children:b.jsx(lr,{...T,...A("overlay",{className:T?.className,style:[R,T?.style]})})})})]})}D.Target=ne;D.Dropdown=I;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=k((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(j,{ref:n,mod:[{orientation:d,"with-label":!!c},m],...h("root"),...y,role:"separator",children:c&&b.jsx(j,{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};
@@ -0,0 +1 @@
1
+ import{w as C,a3 as O,a4 as R,r as x,j as e,F as m,T as i,B as c,H as j,af as D,z as B,ad as z,O as S,E as F,G as _,ae as v,a6 as $,aa as I}from"./entry.DBfTnVUe.js";import{J as w}from"./chunk.C5K_AIru.js";import{d as A}from"./chunk.ChDpavl2.js";import{S as f,B as T}from"./chunk.DLDchrhP.js";import{I as H}from"./chunk.BeYM7pih.js";import{T as g}from"./chunk.Bdi_dTor.js";import{I as J}from"./chunk.BC4Lys4j.js";import{I as V,a as G}from"./chunk.ByuRJbSC.js";import{T as q}from"./chunk.DI-f4xNk.js";import"./chunk.BlqFPyLh.js";import"./chunk.CAWWjC4E.js";import"./chunk.uyVen0u2.js";const K=[["path",{d:"M5 19l2.757 -7.351a1 1 0 0 1 .936 -.649h12.307a1 1 0 0 1 .986 1.164l-.996 5.211a2 2 0 0 1 -1.964 1.625h-14.026a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v2",key:"svg-0"}]],Q=C("outline","folder-open","FolderOpen",K);const U=[["path",{d:"M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2",key:"svg-0"}]],W=C("outline","folder","Folder",U);const X=[["path",{d:"M10 14l11 -11",key:"svg-0"}],["path",{d:"M21 3l-6.5 18a.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5",key:"svg-1"}]],L=C("outline","send","Send",X),M={memory:"#69db7c",redis:"#ff6b6b",default:"#495057"},E=s=>M[s]??M.default,Y=s=>{const o={name:"",fullPath:"",children:new Map};for(const p of s){const a=p.name.split(/[./]/);let l=o;for(let n=0;n<a.length;n++){const r=a[n],d=a.slice(0,n+1).join("/");l.children.has(r)||l.children.set(r,{name:r,fullPath:d,children:new Map}),l=l.children.get(r)}l.topic=p}return o},N=({node:s,depth:o,selectedTopic:p,onSelectTopic:a,expandedNodes:l,onToggleExpand:n})=>{const r=s.children.size>0,d=l.has(s.fullPath),b=s.topic&&p?.name===s.topic.name,t=s.topic?E(s.topic.provider):"#495057",u=()=>{s.topic&&a(s.topic),r&&n(s.fullPath)};return e.jsxs(c,{children:[e.jsxs(m,{align:"center",gap:4,px:"sm",py:4,onClick:u,style:{cursor:"pointer",paddingLeft:o*16+8,backgroundColor:b?`${t}15`:void 0,borderLeft:b?`2px solid ${t}`:"2px solid transparent",borderBottom:`1px solid ${j.colors.border}`},children:[r?d?e.jsx(F,{size:12,opacity:.5}):e.jsx(_,{size:12,opacity:.5}):e.jsx(c,{w:12}),r?d?e.jsx(Q,{size:14,opacity:.5}):e.jsx(W,{size:14,opacity:.5}):e.jsx(S,{size:14,opacity:.5}),e.jsx(i,{size:"sm",style:{flex:1},truncate:!0,fw:s.topic?500:400,children:s.name}),s.topic&&e.jsx(T,{size:"xs",variant:"light",color:s.topic.provider==="redis"?"red":"green",children:s.topic.provider})]}),r&&d&&e.jsx(c,{children:Array.from(s.children.values()).sort((h,y)=>{const P=h.children.size>0,k=y.children.size>0;return P&&!k?-1:!P&&k?1:h.name.localeCompare(y.name)}).map(h=>e.jsx(N,{node:h,depth:o+1,selectedTopic:p,onSelectTopic:a,expandedNodes:l,onToggleExpand:n},h.fullPath))})]})},Z=({topics:s,selectedTopic:o,onSelectTopic:p,search:a,onSearchChange:l})=>{const[n,r]=x.useState(new Set),d=x.useMemo(()=>Y(s),[s]);x.useEffect(()=>{const t=new Set,u=h=>{h.fullPath&&t.add(h.fullPath);for(const y of h.children.values())u(y)};u(d),r(t)},[d]);const b=x.useCallback(t=>{r(u=>{const h=new Set(u);return h.has(t)?h.delete(t):h.add(t),h})},[]);return e.jsxs(f,{gap:0,h:"100%",children:[e.jsx(c,{p:"sm",style:{borderBottom:`1px solid ${j.colors.border}`},children:e.jsx(D,{placeholder:"Search topics...",leftSection:e.jsx(B,{size:14}),size:"xs",value:a,onChange:t=>l(t.target.value)})}),e.jsx(z,{style:{flex:1},children:Array.from(d.children.values()).sort((t,u)=>t.name.localeCompare(u.name)).map(t=>e.jsx(N,{node:t,depth:0,selectedTopic:o,onSelectTopic:p,expandedNodes:n,onToggleExpand:b},t.fullPath))})]})},ee=({topic:s})=>e.jsx(z,{h:"100%",p:"md",children:e.jsxs(f,{gap:"lg",children:[e.jsxs(c,{children:[e.jsx(i,{size:"sm",fw:600,mb:"xs",children:"Topic Info"}),e.jsxs(f,{gap:"xs",children:[e.jsxs(m,{gap:"sm",children:[e.jsx(i,{size:"sm",c:"dimmed",w:100,children:"Name"}),e.jsx(i,{size:"sm",ff:"monospace",children:s.name})]}),e.jsxs(m,{gap:"sm",children:[e.jsx(i,{size:"sm",c:"dimmed",w:100,children:"Provider"}),e.jsx(T,{size:"xs",variant:"light",color:s.provider==="redis"?"red":"green",children:s.provider})]}),s.description&&e.jsxs(m,{gap:"sm",children:[e.jsx(i,{size:"sm",c:"dimmed",w:100,children:"Description"}),e.jsx(i,{size:"sm",children:s.description})]})]})]}),s.schema&&e.jsxs(c,{children:[e.jsx(i,{size:"sm",fw:600,mb:"xs",children:"Message Schema"}),e.jsx(c,{p:"sm",style:{border:`1px solid ${j.colors.border}`,borderRadius:8,backgroundColor:j.colors.surface},children:e.jsx(w,{data:s.schema,maxDepth:5,size:"xs"})})]})]})}),se=({topic:s})=>{const[o,p]=x.useState([]),[a,l]=x.useState(!1),n=x.useCallback(()=>{const r=s.schema?{example:"data",topic:s.name,timestamp:new Date().toISOString()}:{message:`Hello from ${s.name}`};p(d=>[{id:Math.random().toString(36).slice(2),timestamp:new Date,payload:r},...d.slice(0,49)])},[s]);return e.jsxs(m,{direction:"column",h:"100%",children:[e.jsx(c,{p:"sm",style:{borderBottom:`1px solid ${j.colors.border}`},children:e.jsxs(m,{gap:"sm",align:"center",justify:"space-between",children:[e.jsxs(m,{gap:"sm",align:"center",children:[e.jsx(v,{label:a?"Stop listening (coming soon)":"Start listening (coming soon)",children:e.jsx($,{size:"xs",variant:"light",color:a?"red":"green",leftSection:e.jsx(J,{size:14}),onClick:()=>l(!a),disabled:!0,children:a?"Stop":"Listen"})}),e.jsxs(i,{size:"xs",c:"dimmed",children:[o.length," messages"]})]}),e.jsxs(m,{gap:"sm",children:[e.jsx(v,{label:"Add fake message (for demo)",children:e.jsx(I,{size:"sm",variant:"light",onClick:n,children:e.jsx(L,{size:14})})}),e.jsx(v,{label:"Clear messages",children:e.jsx(I,{size:"sm",variant:"light",color:"gray",onClick:()=>p([]),children:e.jsx(V,{size:14})})})]})]})}),o.length===0?e.jsx(m,{align:"center",justify:"center",style:{flex:1},c:"dimmed",children:e.jsxs(f,{align:"center",gap:"xs",children:[e.jsx(S,{size:48,opacity:.3}),e.jsx(i,{size:"sm",children:"No messages yet"}),e.jsx(i,{size:"xs",c:"dimmed",children:"Click the send icon to add a fake message for demo"})]})}):e.jsx(z,{style:{flex:1},children:e.jsx(f,{gap:0,children:o.map(r=>e.jsxs(c,{p:"sm",style:{borderBottom:`1px solid ${j.colors.border}`},children:[e.jsxs(m,{align:"center",gap:"xs",mb:"xs",children:[e.jsx(G,{size:12,opacity:.5}),e.jsx(i,{size:"xs",c:"dimmed",children:r.timestamp.toLocaleTimeString()})]}),e.jsx(c,{p:"xs",style:{backgroundColor:j.colors.surface,borderRadius:4},children:e.jsx(w,{data:r.payload,maxDepth:3,size:"xs"})})]},r.id))})})]})},re=({topic:s})=>{const[o,p]=x.useState(JSON.stringify({message:"Hello",timestamp:new Date().toISOString()},null,2)),[a,l]=x.useState(null),n=()=>{try{JSON.parse(o),l(null),alert(`Message would be published to "${s.name}" (coming soon)`)}catch{l("Invalid JSON")}};return e.jsx(z,{h:"100%",p:"md",children:e.jsxs(f,{gap:"md",children:[e.jsxs(c,{children:[e.jsx(i,{size:"sm",fw:600,mb:"xs",children:"Publish Message"}),e.jsx(i,{size:"xs",c:"dimmed",mb:"sm",children:"Send a test message to this topic (coming soon)"})]}),e.jsxs(c,{children:[e.jsx(i,{size:"sm",c:"dimmed",mb:"xs",children:"Payload (JSON)"}),e.jsx(q,{value:o,onChange:r=>p(r.target.value),minRows:8,maxRows:15,autosize:!0,ff:"monospace",size:"xs",error:a,styles:{input:{backgroundColor:j.colors.surface}}})]}),e.jsx(v,{label:"Publish message (coming soon)",children:e.jsx($,{size:"sm",variant:"light",leftSection:e.jsx(L,{size:16}),onClick:n,disabled:!0,children:"Publish"})}),s.schema&&e.jsxs(c,{children:[e.jsx(i,{size:"sm",c:"dimmed",mb:"xs",children:"Expected Schema"}),e.jsx(c,{p:"sm",style:{border:`1px solid ${j.colors.border}`,borderRadius:8,backgroundColor:j.colors.surface},children:e.jsx(w,{data:s.schema,maxDepth:3,size:"xs"})})]})]})})},ie=({topic:s})=>{const o=E(s.provider);return e.jsxs(m,{direction:"column",h:"100%",children:[e.jsxs(c,{px:"md",py:"sm",style:{borderBottom:`1px solid ${j.colors.border}`,backgroundColor:`${o}08`},children:[e.jsxs(m,{align:"center",gap:"sm",children:[e.jsx(S,{size:18,opacity:.7}),e.jsx(i,{size:"md",fw:600,ff:"monospace",children:s.name}),e.jsx(T,{size:"xs",variant:"light",color:s.provider==="redis"?"red":"green",children:s.provider})]}),s.description&&e.jsx(i,{size:"xs",c:"dimmed",mt:4,children:s.description})]}),e.jsxs(g,{defaultValue:"schema",style:{flex:1,display:"flex",flexDirection:"column"},children:[e.jsxs(g.List,{px:"md",children:[e.jsx(g.Tab,{value:"schema",children:"Schema"}),e.jsx(g.Tab,{value:"messages",children:"Messages"}),e.jsx(g.Tab,{value:"publish",children:"Publish"})]}),e.jsx(g.Panel,{value:"schema",style:{flex:1,overflow:"hidden"},children:e.jsx(ee,{topic:s})}),e.jsx(g.Panel,{value:"messages",style:{flex:1,overflow:"hidden"},children:e.jsx(se,{topic:s})}),e.jsx(g.Panel,{value:"publish",style:{flex:1,overflow:"hidden"},children:e.jsx(re,{topic:s})})]})]})},oe=()=>e.jsx(m,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(f,{align:"center",gap:"xs",children:[e.jsx(S,{size:48,opacity:.3}),e.jsx(i,{size:"sm",children:"Select a topic to view details"})]})}),te=()=>e.jsx(m,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(f,{align:"center",gap:"xs",children:[e.jsx(H,{size:48,opacity:.3}),e.jsx(i,{children:"No topics found"}),e.jsx(i,{size:"sm",c:"dimmed",children:"Add topics using $topic primitive to see them here"})]})}),fe=()=>{const s=O(R),[o,p]=x.useState([]),[a,l]=x.useState(!0),[n,r]=x.useState(null),[d,b]=x.useState("");x.useEffect(()=>{s.fetch("/devtools/api/metadata",{schema:{response:A}}).then(u=>{p(u.data.topics),l(!1)})},[]);const t=x.useMemo(()=>{if(!d)return o;const u=d.toLowerCase();return o.filter(h=>h.name.toLowerCase().includes(u))},[o,d]);return a?e.jsx(m,{align:"center",justify:"center",h:"100%",children:e.jsx(i,{c:"dimmed",children:"Loading..."})}):o.length===0?e.jsx(te,{}):e.jsxs(m,{h:"100%",style:{overflow:"hidden"},children:[e.jsx(c,{w:280,style:{borderRight:`1px solid ${j.colors.border}`,backgroundColor:j.colors.surface},children:e.jsx(Z,{topics:t,selectedTopic:n,onSelectTopic:r,search:d,onSearchChange:b})}),e.jsx(c,{style:{flex:1,overflow:"hidden"},children:n?e.jsx(ie,{topic:n}):e.jsx(oe,{})})]})};export{fe as DevTopicsViewer,fe as default};