@omniviewdev/ui 0.1.9 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AppTheme-BakZ7ezV.cjs +1 -0
- package/dist/AppTheme-wAxlNjgN.js +291 -0
- package/dist/{CodeBlock-CIyG0DbW.cjs → CodeBlock-DTB_WsXQ.cjs} +1 -1
- package/dist/{CodeBlock-B1iQO7zU.js → CodeBlock-DV6CPG00.js} +1 -1
- package/dist/CopyButton-3fq1UAiv.cjs +1 -0
- package/dist/CopyButton-DWVcqdPe.js +78 -0
- package/dist/{ErrorState-CnIR-1xa.cjs → ErrorState-Cwwem5yh.cjs} +1 -1
- package/dist/{ErrorState-CexYrMpy.js → ErrorState-DNOrahZX.js} +1 -1
- package/dist/Select-BqA47TdK.cjs +1 -0
- package/dist/Select-D61fKI8Y.js +276 -0
- package/dist/{Tooltip-BEVuYuZ3.js → Tooltip-CZMOcjX7.js} +10 -10
- package/dist/Tooltip-oUFp4gNV.cjs +1 -0
- package/dist/buttons/IconButton.d.ts +1 -4
- package/dist/buttons.cjs +1 -1
- package/dist/buttons.js +2 -2
- package/dist/charts.cjs +1 -1
- package/dist/charts.js +2 -2
- package/dist/domain.cjs +1 -1
- package/dist/domain.js +3 -3
- package/dist/editors/index.d.ts +1 -1
- package/dist/editors/themes.d.ts +13 -0
- package/dist/editors.cjs +26 -26
- package/dist/editors.js +3860 -3791
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/inputs.cjs +1 -1
- package/dist/inputs.js +1 -1
- package/dist/overlays.cjs +1 -1
- package/dist/overlays.js +1 -1
- package/dist/theme/AppTheme.d.ts +11 -2
- package/dist/theme/customizations/dataDisplay.d.ts +11 -0
- package/dist/theme/customizations/feedback.d.ts +6 -0
- package/dist/theme/customizations/inputs.d.ts +7 -0
- package/dist/theme/customizations/navigation.d.ts +7 -0
- package/dist/theme/index.d.ts +10 -5
- package/dist/theme/registry/init.d.ts +1 -0
- package/dist/theme/registry/registry.d.ts +9 -0
- package/dist/theme/registry/types.d.ts +19 -0
- package/dist/theme/registry/variants/default/index.d.ts +2 -0
- package/dist/theme/registry/variants/solarized/index.d.ts +2 -0
- package/dist/theme/registry/variants/solarized/palettes.d.ts +147 -0
- package/dist/theme.cjs +1 -1
- package/dist/theme.js +1250 -1275
- package/dist/tokens.css +116 -0
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/package.json +1 -1
- package/dist/CopyButton-CACe3RCF.cjs +0 -1
- package/dist/CopyButton-DPBgL0K8.js +0 -77
- package/dist/Select-CnRBSc5w.cjs +0 -1
- package/dist/Select-DTUF31OP.js +0 -206
- package/dist/Tooltip-44-P5KfQ.cjs +0 -1
package/dist/feedback.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),V=require("@mui/material/Alert"),A=require("@mui/material/IconButton"),X=require("@mui/icons-material/Close"),I=require("@mui/material/styles"),O=require("./StatusDot-CYyJxjJK.cjs"),G=require("./StatusPill-C7yn7dSA.cjs"),R=require("./ErrorState-CnIR-1xa.cjs"),J=require("./Skeleton-CfdQWLQM.cjs"),h=require("react"),a=require("@mui/material/Box"),m=require("@mui/material/Tooltip"),k=require("./types.cjs"),M=require("@mui/material/LinearProgress"),S=require("@mui/material/Typography"),P=require("@mui/material/Button"),j=require("@mui/material/CircularProgress"),b=require("react-icons/lu"),K={solid:"filled",soft:"standard",outline:"outlined"},Q={xs:{padding:"0px 6px",fontSize:"var(--ov-text-xs)",iconSize:16,borderRadius:6,closeSize:"small"},sm:{padding:"2px 8px",fontSize:"var(--ov-text-sm)",iconSize:18,borderRadius:8,closeSize:"small"},md:{padding:"6px 12px",fontSize:"var(--ov-text-sm)",iconSize:20,borderRadius:10,closeSize:"small"},lg:{padding:"8px 16px",fontSize:"var(--ov-text-md)",iconSize:22,borderRadius:10,closeSize:"medium"},xl:{padding:"12px 16px",fontSize:"var(--ov-text-md)",iconSize:24,borderRadius:12,closeSize:"medium"}},U={success:{light:{bg:"hsl(120, 80%, 98%)",fg:"hsl(120, 87%, 6%)",border:"hsl(120, 61%, 77%)",icon:"hsl(120, 44%, 53%)"},dark:{bg:"hsl(120, 84%, 10%)",fg:"hsl(120, 75%, 94%)",border:"hsl(120, 75%, 16%)",icon:"hsl(120, 44%, 53%)"}},warning:{light:{bg:"hsl(45, 100%, 97%)",fg:"hsl(45, 93%, 12%)",border:"hsl(45, 90%, 65%)",icon:"hsl(45, 90%, 40%)"},dark:{bg:"hsl(45, 95%, 16%)",fg:"hsl(45, 92%, 90%)",border:"hsl(45, 94%, 20%)",icon:"hsl(45, 90%, 40%)"}},error:{light:{bg:"hsl(0, 100%, 97%)",fg:"hsl(0, 93%, 6%)",border:"hsl(0, 90%, 65%)",icon:"hsl(0, 90%, 40%)"},dark:{bg:"hsl(0, 95%, 12%)",fg:"hsl(0, 92%, 90%)",border:"hsl(0, 94%, 18%)",icon:"hsl(0, 90%, 40%)"}},danger:{light:{bg:"hsl(0, 100%, 97%)",fg:"hsl(0, 93%, 6%)",border:"hsl(0, 90%, 65%)",icon:"hsl(0, 90%, 40%)"},dark:{bg:"hsl(0, 95%, 12%)",fg:"hsl(0, 92%, 90%)",border:"hsl(0, 94%, 18%)",icon:"hsl(0, 90%, 40%)"}},info:{light:{bg:"hsl(210, 100%, 95%)",fg:"hsl(210, 100%, 21%)",border:"hsl(210, 100%, 65%)",icon:"hsl(210, 98%, 42%)"},dark:{bg:"hsl(210, 100%, 16%)",fg:"hsl(210, 100%, 92%)",border:"hsl(210, 100%, 35%)",icon:"hsl(210, 98%, 55%)"}},primary:{light:{bg:"hsl(210, 100%, 95%)",fg:"hsl(210, 100%, 21%)",border:"hsl(210, 100%, 80%)",icon:"hsl(210, 98%, 48%)"},dark:{bg:"hsl(210, 100%, 16%)",fg:"hsl(210, 100%, 92%)",border:"hsl(210, 100%, 35%)",icon:"hsl(210, 98%, 55%)"}},secondary:{light:{bg:"hsl(270, 100%, 97%)",fg:"hsl(270, 70%, 42%)",border:"hsl(270, 80%, 80%)",icon:"hsl(270, 70%, 50%)"},dark:{bg:"hsl(270, 80%, 16%)",fg:"hsl(270, 92%, 90%)",border:"hsl(270, 75%, 25%)",icon:"hsl(270, 70%, 65%)"}},accent:{light:{bg:"hsl(270, 100%, 97%)",fg:"hsl(270, 70%, 42%)",border:"hsl(270, 80%, 80%)",icon:"hsl(270, 70%, 50%)"},dark:{bg:"hsl(270, 80%, 16%)",fg:"hsl(270, 92%, 90%)",border:"hsl(270, 75%, 25%)",icon:"hsl(270, 70%, 65%)"}},neutral:{light:{bg:"hsl(220, 35%, 97%)",fg:"hsl(220, 20%, 42%)",border:"hsl(220, 20%, 88%)",icon:"hsl(220, 20%, 65%)"},dark:{bg:"hsl(220, 30%, 6%)",fg:"hsl(220, 30%, 94%)",border:"hsl(220, 20%, 25%)",icon:"hsl(220, 20%, 80%)"}},muted:{light:{bg:"hsl(220, 35%, 97%)",fg:"hsl(220, 20%, 42%)",border:"hsl(220, 20%, 88%)",icon:"hsl(220, 20%, 65%)"},dark:{bg:"hsl(220, 30%, 6%)",fg:"hsl(220, 30%, 94%)",border:"hsl(220, 20%, 25%)",icon:"hsl(220, 20%, 80%)"}}};function w(t,r){return r==="outline"?{bg:"transparent",fg:t.fg,border:`1px solid ${I.alpha(t.border,.7)}`,icon:t.icon}:r==="solid"?{bg:t.icon,fg:"#fff",border:"none",icon:"#fff"}:{bg:t.bg,fg:t.fg,border:`1px solid ${I.alpha(t.border,.5)}`,icon:t.icon}}function B({children:t,color:r="info",emphasis:o="soft",dismissible:n=!1,onDismiss:i,actions:l,icon:s,startAdornment:c,size:d="md",sx:x}){const f=K[o]||"standard",u=Q[d],v={success:"success",info:"info",warning:"warning",error:"error",danger:"error",primary:"info",secondary:"info",accent:"info",neutral:"info",muted:"info"}[r]??"info";return e.jsx(V,{severity:v,variant:f,icon:s===!1?!1:s??c,action:e.jsxs(e.Fragment,{children:[l,n&&e.jsx(A,{size:u.closeSize,color:"inherit",onClick:i,"aria-label":"Dismiss",children:e.jsx(X,{fontSize:"small"})})]}),sx:H=>{const C=U[r],z=w(C.light,o),y=w(C.dark,o),$=o==="soft"?I.alpha(y.bg,.3):y.bg;return{padding:u.padding,fontSize:u.fontSize,borderRadius:`${u.borderRadius}px`,alignItems:"center",backgroundColor:z.bg,color:z.fg,border:z.border,"& .MuiAlert-icon":{fontSize:u.iconSize,mr:d==="xs"?.5:1,py:0,color:z.icon},"& .MuiAlert-message":{py:0,overflow:"hidden"},"& .MuiAlert-action":{py:0,alignItems:"center"},...H.applyStyles("dark",{backgroundColor:$,color:y.fg,border:y.border,"& .MuiAlert-icon":{color:y.icon}}),...typeof x=="object"&&x!==null?x:{}}},children:t})}B.displayName="Alert";function q({children:t,height:r=24,sx:o}){const n=h.Children.toArray(t),i=n.filter(s=>h.isValidElement(s)?s.props.align!=="right":!0),l=n.filter(s=>h.isValidElement(s)?s.props.align==="right":!1);return e.jsxs(a,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",height:r,px:1,bgcolor:"var(--ov-bg-surface)",borderTop:"1px solid var(--ov-border-default)",fontSize:"var(--ov-text-xs)",...typeof o=="object"&&!Array.isArray(o)?o:{}},children:[e.jsx(a,{sx:{display:"flex",alignItems:"center",gap:0},children:i}),e.jsx(a,{sx:{display:"flex",alignItems:"center",gap:0},children:l})]})}q.displayName="StatusBar";function N({children:t,icon:r,onClick:o,tooltip:n,color:i,separator:l=!1,sx:s}){const c=e.jsxs(a,{onClick:o,sx:{display:"inline-flex",alignItems:"center",gap:.5,px:.75,height:20,fontSize:"var(--ov-text-xs)",color:i?k.toCssColor(i):"var(--ov-fg-default)",cursor:o?"pointer":"default",borderRadius:"3px",whiteSpace:"nowrap",...l&&{borderRight:"1px solid var(--ov-border-muted)",pr:1,mr:.25},...o&&{"&:hover":{bgcolor:"var(--ov-state-hover)"}},...typeof s=="object"&&!Array.isArray(s)?s:{}},children:[r&&e.jsx(a,{component:"span",sx:{display:"inline-flex",fontSize:"0.75rem"},children:r}),t]});return n?e.jsx(m,{title:n,children:c}):c}N.displayName="StatusBarItem";const Y={xs:2,sm:4,md:6,lg:8,xl:10};function T({value:t,indeterminate:r=!1,color:o="primary",size:n="sm",label:i,showValue:l=!1,sx:s}){const c=k.toCssColor(o),d=Y[n];return e.jsxs(a,{sx:{display:"flex",flexDirection:"column",gap:.5,...typeof s=="object"&&!Array.isArray(s)?s:{}},children:[(i||l)&&e.jsxs(a,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[i&&e.jsx(S,{sx:{fontSize:"var(--ov-text-xs)",color:"var(--ov-fg-muted)"},children:i}),l&&!r&&t!==void 0&&e.jsxs(S,{sx:{fontSize:"var(--ov-text-xs)",color:"var(--ov-fg-muted)"},children:[Math.round(t),"%"]})]}),e.jsx(M,{variant:r?"indeterminate":"determinate",value:r?void 0:t,sx:{height:d,borderRadius:d/2,bgcolor:"var(--ov-bg-surface-inset)","& .MuiLinearProgress-bar":{bgcolor:c,borderRadius:d/2}}})]})}T.displayName="ProgressBar";const Z={connected:"var(--ov-success-default)",connecting:"var(--ov-warning-default)",disconnected:"var(--ov-fg-faint)",error:"var(--ov-danger-default)"},_={connected:"Connected",connecting:"Connecting",disconnected:"Disconnected",error:"Error"},ee={xs:6,sm:8,md:10,lg:12,xl:14};function L({status:t,label:r,size:o="sm",showLabel:n=!0,sx:i}){const l=Z[t],s=ee[o],c=r??_[t];return e.jsxs(a,{sx:{display:"inline-flex",alignItems:"center",gap:.75,...typeof i=="object"&&!Array.isArray(i)?i:{}},children:[e.jsx(a,{sx:{width:s,height:s,borderRadius:"50%",bgcolor:l,flexShrink:0,...t==="connecting"&&{animation:"ov-conn-pulse 1.5s ease-in-out infinite","@keyframes ov-conn-pulse":{"0%, 100%":{opacity:1},"50%":{opacity:.3}}}}}),n&&e.jsx(S,{sx:{fontSize:o==="xs"?"var(--ov-text-xs)":"var(--ov-text-sm)",color:"var(--ov-fg-default)",lineHeight:1},children:c})]})}L.displayName="ConnectionIndicator";const te={xs:12,sm:14,md:16,lg:18,xl:20};function E({running:t,onStart:r,onStop:o,loading:n=!1,size:i="sm",label:l,sx:s}){const c=k.toMuiSize(i),d=te[i],x=()=>{t?o():r()},f=n?e.jsx(j,{size:d,color:"inherit"}):t?e.jsx(b.LuSquare,{size:d}):e.jsx(b.LuPlay,{size:d});return e.jsx(P,{size:c,variant:"contained",onClick:x,disabled:n,startIcon:f,sx:{bgcolor:t?"var(--ov-danger-default)":"var(--ov-success-default)",color:"#fff",textTransform:"none","&:hover":{bgcolor:t?"var(--ov-danger-default)":"var(--ov-success-default)",filter:"brightness(0.9)"},...typeof s=="object"&&!Array.isArray(s)?s:{}},children:l??(t?"Stop":"Run")})}E.displayName="RunButton";const D=h.createContext(null);function re(){const t=h.useContext(D);if(!t)throw new Error("useNotificationStack must be used within a NotificationStackProvider");return t}const oe={info:e.jsx(b.LuInfo,{size:16}),success:e.jsx(b.LuCircleCheck,{size:16}),warning:e.jsx(b.LuTriangleAlert,{size:16}),error:e.jsx(b.LuCircleAlert,{size:16})},ne={info:"var(--ov-info-default)",success:"var(--ov-success-default)",warning:"var(--ov-warning-default)",error:"var(--ov-danger-default)"};function ie({notification:t,onDismiss:r}){const{id:o,severity:n,title:i,message:l,actions:s,timeout:c}=t,d=h.useRef(void 0);h.useEffect(()=>{const f=c??8e3;return f>0&&(d.current=setTimeout(()=>r(o),f)),()=>{d.current&&clearTimeout(d.current)}},[o,c,r]);const x=ne[n];return e.jsxs(a,{sx:{display:"flex",gap:1,minWidth:320,maxWidth:420,bgcolor:"var(--ov-bg-surface)",border:"1px solid var(--ov-border-default)",borderLeft:`3px solid ${x}`,borderRadius:"6px",boxShadow:"0 4px 16px rgba(0,0,0,0.25)",p:1.5,animation:"ov-notif-slide-in 0.2s ease-out","@keyframes ov-notif-slide-in":{from:{opacity:0,transform:"translateX(40px)"},to:{opacity:1,transform:"translateX(0)"}}},children:[e.jsx(a,{sx:{color:x,pt:"2px",flexShrink:0},children:oe[n]}),e.jsxs(a,{sx:{flex:1,minWidth:0},children:[e.jsx(S,{sx:{fontSize:"0.8125rem",fontWeight:600,color:"var(--ov-fg-base)",lineHeight:1.4},children:i}),l&&e.jsx(S,{sx:{fontSize:"0.75rem",color:"var(--ov-fg-muted)",lineHeight:1.4,mt:.25},children:l}),s&&s.length>0&&e.jsx(a,{sx:{display:"flex",gap:.5,mt:1},children:s.map(f=>e.jsx(P,{size:"small",variant:"text",onClick:()=>{f.onClick(),r(o)},sx:{textTransform:"none",fontSize:"0.6875rem",fontWeight:600,color:"var(--ov-accent-fg)",minWidth:"auto",px:1,py:.25},children:f.label},f.label))})]}),e.jsx(A,{size:"small",onClick:()=>r(o),sx:{alignSelf:"flex-start",p:"2px",color:"var(--ov-fg-faint)","&:hover":{color:"var(--ov-fg-default)"}},children:e.jsx(b.LuX,{size:14})})]})}let se=0;function W({children:t,maxVisible:r=5,position:o="bottom-right",sx:n}){const[i,l]=h.useState([]),s=h.useCallback(u=>{const p=`notif-${++se}`;return l(v=>[...v,{...u,id:p}]),p},[]),c=h.useCallback(u=>{l(p=>p.filter(v=>v.id!==u))},[]),d=h.useCallback(()=>{l([])},[]),x={"bottom-right":{bottom:32,right:12},"bottom-left":{bottom:32,left:12},"top-right":{top:12,right:12},"top-left":{top:12,left:12}},f=i.slice(-r);return e.jsxs(D.Provider,{value:{push:s,dismiss:c,dismissAll:d},children:[t,f.length>0&&e.jsx(a,{sx:{position:"fixed",zIndex:9998,display:"flex",flexDirection:o.startsWith("bottom")?"column-reverse":"column",gap:.75,...x[o],...typeof n=="object"&&!Array.isArray(n)?n:{}},children:f.map(u=>e.jsx(ie,{notification:u,onDismiss:c},u.id))})]})}W.displayName="NotificationStackProvider";function ae({label:t,bgColor:r,color:o,icon:n,onClick:i,tooltip:l}){const s=e.jsxs(a,{onClick:i,sx:{display:"inline-flex",alignItems:"center",gap:"4px",px:"6px",height:"100%",fontSize:"0.625rem",fontWeight:700,letterSpacing:"0.04em",textTransform:"uppercase",bgcolor:r??"transparent",color:o??"#fff",cursor:i?"pointer":"default",whiteSpace:"nowrap","&:hover":i?{filter:"brightness(1.15)"}:{}},children:[n&&e.jsx(a,{sx:{display:"flex",fontSize:"0.625rem"},children:n}),t]});return l?e.jsx(m,{title:l,children:s}):s}function le({color:t,pulse:r,tooltip:o,onClick:n}){const i=e.jsx(a,{onClick:n,sx:{width:8,height:8,borderRadius:"50%",bgcolor:t,flexShrink:0,cursor:n?"pointer":"default","&:hover":n?{filter:"brightness(1.3)"}:{},...r&&{animation:"ov-footer-pulse 1.5s ease-in-out infinite","@keyframes ov-footer-pulse":{"0%, 100%":{opacity:1},"50%":{opacity:.3}}}}});return o?e.jsx(m,{title:o,children:i}):i}function ce({children:t,icon:r,onClick:o,tooltip:n}){const i=e.jsxs(a,{onClick:o,sx:{display:"inline-flex",alignItems:"center",gap:"3px",px:"6px",fontSize:"0.6875rem",color:"var(--ov-fg-default)",cursor:o?"pointer":"default",borderRadius:"2px",whiteSpace:"nowrap","&:hover":o?{bgcolor:"rgba(255,255,255,0.08)"}:{}},children:[r&&e.jsx(a,{sx:{display:"flex",fontSize:"0.6875rem"},children:r}),t]});return n?e.jsx(m,{title:n,children:i}):i}function de({label:t,tooltip:r}){const o=e.jsxs(a,{sx:{display:"inline-flex",alignItems:"center",gap:"4px",px:"6px",fontSize:"0.6875rem",color:"var(--ov-fg-default)"},children:[e.jsx(j,{size:10,thickness:5,sx:{color:"var(--ov-fg-muted)"}}),t&&e.jsx("span",{children:t})]});return r?e.jsx(m,{title:r,children:o}):o}function fe({value:t,width:r=80,color:o="var(--ov-accent)",label:n,showValue:i=!1,tooltip:l}){const s=t===void 0,c=e.jsxs(a,{sx:{display:"inline-flex",alignItems:"center",gap:"4px",px:"6px",fontSize:"0.625rem",color:"var(--ov-fg-default)"},children:[n&&e.jsx(a,{component:"span",sx:{whiteSpace:"nowrap",color:"var(--ov-fg-muted)"},children:n}),e.jsx(M,{variant:s?"indeterminate":"determinate",value:s?void 0:t,sx:{width:r,height:3,borderRadius:1.5,bgcolor:"rgba(255,255,255,0.1)","& .MuiLinearProgress-bar":{bgcolor:o,borderRadius:1.5}}}),i&&!s&&t!==void 0&&e.jsxs(a,{component:"span",sx:{whiteSpace:"nowrap",color:"var(--ov-fg-muted)"},children:[Math.round(t),"%"]})]});return l?e.jsx(m,{title:l,children:c}):c}function ue({color:t}){return e.jsx(a,{sx:{width:"1px",height:"60%",bgcolor:t??"var(--ov-border-default)",flexShrink:0,mx:"2px"}})}function xe({icon:t,label:r,onClick:o,tooltip:n,color:i}){const l=e.jsxs(a,{component:"button",onClick:o,sx:{all:"unset",display:"inline-flex",alignItems:"center",gap:"3px",px:"5px",height:"100%",fontSize:"0.625rem",fontWeight:500,color:i??"var(--ov-fg-default)",cursor:"pointer",borderRadius:"2px",whiteSpace:"nowrap","&:hover":{bgcolor:"rgba(255,255,255,0.1)"},"&:active":{bgcolor:"rgba(255,255,255,0.15)"}},children:[t&&e.jsx(a,{sx:{display:"flex",fontSize:"0.625rem"},children:t}),r]});return n?e.jsx(m,{title:n,children:l}):l}function ge({count:t,icon:r,maxCount:o=99,onClick:n,tooltip:i,color:l}){const s=t>o?`${o}+`:String(t),c=e.jsxs(a,{onClick:n,sx:{display:"inline-flex",alignItems:"center",gap:"3px",px:"5px",height:"100%",fontSize:"0.625rem",fontWeight:600,color:"var(--ov-fg-default)",cursor:n?"pointer":"default","&:hover":n?{bgcolor:"rgba(255,255,255,0.08)"}:{}},children:[r&&e.jsx(a,{sx:{display:"flex",fontSize:"0.625rem"},children:r}),t>0&&e.jsx(a,{component:"span",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:14,height:14,borderRadius:"7px",bgcolor:l??"var(--ov-accent)",color:"#fff",fontSize:"0.5625rem",fontWeight:700,lineHeight:1,px:"3px"},children:s})]});return i?e.jsx(m,{title:i,children:c}):c}function he({time:t,icon:r,running:o,tooltip:n}){const i=e.jsxs(a,{sx:{display:"inline-flex",alignItems:"center",gap:"3px",px:"6px",fontSize:"0.625rem",fontFamily:"var(--ov-font-mono)",fontFeatureSettings:'"tnum"',color:"var(--ov-fg-muted)",whiteSpace:"nowrap",...o&&{animation:"ov-footer-timer-blink 2s step-end infinite","@keyframes ov-footer-timer-blink":{"0%, 100%":{opacity:1},"50%":{opacity:.6}}}},children:[r&&e.jsx(a,{sx:{display:"flex",fontSize:"0.625rem"},children:r}),t]});return n?e.jsx(m,{title:n,children:i}):i}function pe({value:t,size:r=12,color:o,tooltip:n}){const i=t===void 0,l=e.jsx(a,{sx:{display:"inline-flex",alignItems:"center",px:"4px"},children:e.jsx(j,{variant:i?"indeterminate":"determinate",value:i?void 0:t,size:r,thickness:5,sx:{color:o??"var(--ov-accent)",...i&&{animationDuration:"1s"}}})});return n?e.jsx(m,{title:n,children:l}):l}function g({left:t,right:r,height:o=22,sx:n}){return e.jsxs(a,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",height:o,bgcolor:"var(--ov-bg-surface)",borderTop:"1px solid var(--ov-border-default)",fontFamily:"var(--ov-font-ui)",overflow:"hidden",flexShrink:0,...typeof n=="object"&&!Array.isArray(n)?n:{}},children:[e.jsx(a,{sx:{display:"flex",alignItems:"center",height:"100%",gap:.25},children:t}),e.jsx(a,{sx:{display:"flex",alignItems:"center",height:"100%",gap:.25},children:r})]})}g.displayName="IDEStatusFooter";g.Chip=ae;g.Dot=le;g.Text=ce;g.Spinner=de;g.Progress=fe;g.Circular=pe;g.Separator=ue;g.Button=xe;g.Badge=ge;g.Timer=he;const me={xs:20,sm:32,md:48,lg:64,xl:80},ve={xs:5,sm:4.5,md:4,lg:3.5,xl:3},be={xs:"0.5rem",sm:"0.625rem",md:"0.8125rem",lg:"1rem",xl:"1.25rem"};function F({value:t,size:r="md",color:o="primary",thickness:n,showValue:i=!1,label:l,caption:s,trackColor:c,sx:d}){const x=me[r],f=n??ve[r],u=k.toCssColor(o),p=t===void 0,v=l??(i&&!p?`${Math.round(t)}%`:null);return e.jsxs(a,{sx:{display:"inline-flex",flexDirection:"column",alignItems:"center",gap:.5,...typeof d=="object"&&!Array.isArray(d)?d:{}},children:[e.jsxs(a,{sx:{position:"relative",display:"inline-flex"},children:[e.jsx(j,{variant:"determinate",value:100,size:x,thickness:f,sx:{color:c??"var(--ov-bg-surface-inset)",position:"absolute"}}),e.jsx(j,{variant:p?"indeterminate":"determinate",value:p?void 0:t,size:x,thickness:f,sx:{color:u,...p&&{animationDuration:"1.2s"}}}),v&&e.jsx(a,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(S,{sx:{fontSize:be[r],fontWeight:600,color:"var(--ov-fg-default)",lineHeight:1,fontFeatureSettings:'"tnum"'},children:v})})]}),s&&e.jsx(S,{sx:{fontSize:r==="xs"?"0.5rem":"var(--ov-text-xs)",color:"var(--ov-fg-muted)",textAlign:"center",lineHeight:1.3},children:s})]})}F.displayName="ProgressRing";exports.StatusDot=O.StatusDot;exports.StatusPill=G.StatusPill;exports.EmptyState=R.EmptyState;exports.ErrorState=R.ErrorState;exports.Skeleton=J.Skeleton;exports.Alert=B;exports.ConnectionIndicator=L;exports.IDEStatusFooter=g;exports.NotificationStackProvider=W;exports.ProgressBar=T;exports.ProgressRing=F;exports.RunButton=E;exports.StatusBar=q;exports.StatusBarItem=N;exports.useNotificationStack=re;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),V=require("@mui/material/Alert"),A=require("@mui/material/IconButton"),X=require("@mui/icons-material/Close"),I=require("@mui/material/styles"),O=require("./StatusDot-CYyJxjJK.cjs"),G=require("./StatusPill-C7yn7dSA.cjs"),R=require("./ErrorState-Cwwem5yh.cjs"),J=require("./Skeleton-CfdQWLQM.cjs"),h=require("react"),a=require("@mui/material/Box"),m=require("@mui/material/Tooltip"),k=require("./types.cjs"),M=require("@mui/material/LinearProgress"),S=require("@mui/material/Typography"),P=require("@mui/material/Button"),j=require("@mui/material/CircularProgress"),b=require("react-icons/lu"),K={solid:"filled",soft:"standard",outline:"outlined"},Q={xs:{padding:"0px 6px",fontSize:"var(--ov-text-xs)",iconSize:16,borderRadius:6,closeSize:"small"},sm:{padding:"2px 8px",fontSize:"var(--ov-text-sm)",iconSize:18,borderRadius:8,closeSize:"small"},md:{padding:"6px 12px",fontSize:"var(--ov-text-sm)",iconSize:20,borderRadius:10,closeSize:"small"},lg:{padding:"8px 16px",fontSize:"var(--ov-text-md)",iconSize:22,borderRadius:10,closeSize:"medium"},xl:{padding:"12px 16px",fontSize:"var(--ov-text-md)",iconSize:24,borderRadius:12,closeSize:"medium"}},U={success:{light:{bg:"hsl(120, 80%, 98%)",fg:"hsl(120, 87%, 6%)",border:"hsl(120, 61%, 77%)",icon:"hsl(120, 44%, 53%)"},dark:{bg:"hsl(120, 84%, 10%)",fg:"hsl(120, 75%, 94%)",border:"hsl(120, 75%, 16%)",icon:"hsl(120, 44%, 53%)"}},warning:{light:{bg:"hsl(45, 100%, 97%)",fg:"hsl(45, 93%, 12%)",border:"hsl(45, 90%, 65%)",icon:"hsl(45, 90%, 40%)"},dark:{bg:"hsl(45, 95%, 16%)",fg:"hsl(45, 92%, 90%)",border:"hsl(45, 94%, 20%)",icon:"hsl(45, 90%, 40%)"}},error:{light:{bg:"hsl(0, 100%, 97%)",fg:"hsl(0, 93%, 6%)",border:"hsl(0, 90%, 65%)",icon:"hsl(0, 90%, 40%)"},dark:{bg:"hsl(0, 95%, 12%)",fg:"hsl(0, 92%, 90%)",border:"hsl(0, 94%, 18%)",icon:"hsl(0, 90%, 40%)"}},danger:{light:{bg:"hsl(0, 100%, 97%)",fg:"hsl(0, 93%, 6%)",border:"hsl(0, 90%, 65%)",icon:"hsl(0, 90%, 40%)"},dark:{bg:"hsl(0, 95%, 12%)",fg:"hsl(0, 92%, 90%)",border:"hsl(0, 94%, 18%)",icon:"hsl(0, 90%, 40%)"}},info:{light:{bg:"hsl(210, 100%, 95%)",fg:"hsl(210, 100%, 21%)",border:"hsl(210, 100%, 65%)",icon:"hsl(210, 98%, 42%)"},dark:{bg:"hsl(210, 100%, 16%)",fg:"hsl(210, 100%, 92%)",border:"hsl(210, 100%, 35%)",icon:"hsl(210, 98%, 55%)"}},primary:{light:{bg:"hsl(210, 100%, 95%)",fg:"hsl(210, 100%, 21%)",border:"hsl(210, 100%, 80%)",icon:"hsl(210, 98%, 48%)"},dark:{bg:"hsl(210, 100%, 16%)",fg:"hsl(210, 100%, 92%)",border:"hsl(210, 100%, 35%)",icon:"hsl(210, 98%, 55%)"}},secondary:{light:{bg:"hsl(270, 100%, 97%)",fg:"hsl(270, 70%, 42%)",border:"hsl(270, 80%, 80%)",icon:"hsl(270, 70%, 50%)"},dark:{bg:"hsl(270, 80%, 16%)",fg:"hsl(270, 92%, 90%)",border:"hsl(270, 75%, 25%)",icon:"hsl(270, 70%, 65%)"}},accent:{light:{bg:"hsl(270, 100%, 97%)",fg:"hsl(270, 70%, 42%)",border:"hsl(270, 80%, 80%)",icon:"hsl(270, 70%, 50%)"},dark:{bg:"hsl(270, 80%, 16%)",fg:"hsl(270, 92%, 90%)",border:"hsl(270, 75%, 25%)",icon:"hsl(270, 70%, 65%)"}},neutral:{light:{bg:"hsl(220, 35%, 97%)",fg:"hsl(220, 20%, 42%)",border:"hsl(220, 20%, 88%)",icon:"hsl(220, 20%, 65%)"},dark:{bg:"hsl(220, 30%, 6%)",fg:"hsl(220, 30%, 94%)",border:"hsl(220, 20%, 25%)",icon:"hsl(220, 20%, 80%)"}},muted:{light:{bg:"hsl(220, 35%, 97%)",fg:"hsl(220, 20%, 42%)",border:"hsl(220, 20%, 88%)",icon:"hsl(220, 20%, 65%)"},dark:{bg:"hsl(220, 30%, 6%)",fg:"hsl(220, 30%, 94%)",border:"hsl(220, 20%, 25%)",icon:"hsl(220, 20%, 80%)"}}};function w(t,r){return r==="outline"?{bg:"transparent",fg:t.fg,border:`1px solid ${I.alpha(t.border,.7)}`,icon:t.icon}:r==="solid"?{bg:t.icon,fg:"#fff",border:"none",icon:"#fff"}:{bg:t.bg,fg:t.fg,border:`1px solid ${I.alpha(t.border,.5)}`,icon:t.icon}}function B({children:t,color:r="info",emphasis:o="soft",dismissible:n=!1,onDismiss:i,actions:l,icon:s,startAdornment:c,size:d="md",sx:x}){const f=K[o]||"standard",u=Q[d],v={success:"success",info:"info",warning:"warning",error:"error",danger:"error",primary:"info",secondary:"info",accent:"info",neutral:"info",muted:"info"}[r]??"info";return e.jsx(V,{severity:v,variant:f,icon:s===!1?!1:s??c,action:e.jsxs(e.Fragment,{children:[l,n&&e.jsx(A,{size:u.closeSize,color:"inherit",onClick:i,"aria-label":"Dismiss",children:e.jsx(X,{fontSize:"small"})})]}),sx:H=>{const C=U[r],z=w(C.light,o),y=w(C.dark,o),$=o==="soft"?I.alpha(y.bg,.3):y.bg;return{padding:u.padding,fontSize:u.fontSize,borderRadius:`${u.borderRadius}px`,alignItems:"center",backgroundColor:z.bg,color:z.fg,border:z.border,"& .MuiAlert-icon":{fontSize:u.iconSize,mr:d==="xs"?.5:1,py:0,color:z.icon},"& .MuiAlert-message":{py:0,overflow:"hidden"},"& .MuiAlert-action":{py:0,alignItems:"center"},...H.applyStyles("dark",{backgroundColor:$,color:y.fg,border:y.border,"& .MuiAlert-icon":{color:y.icon}}),...typeof x=="object"&&x!==null?x:{}}},children:t})}B.displayName="Alert";function q({children:t,height:r=24,sx:o}){const n=h.Children.toArray(t),i=n.filter(s=>h.isValidElement(s)?s.props.align!=="right":!0),l=n.filter(s=>h.isValidElement(s)?s.props.align==="right":!1);return e.jsxs(a,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",height:r,px:1,bgcolor:"var(--ov-bg-surface)",borderTop:"1px solid var(--ov-border-default)",fontSize:"var(--ov-text-xs)",...typeof o=="object"&&!Array.isArray(o)?o:{}},children:[e.jsx(a,{sx:{display:"flex",alignItems:"center",gap:0},children:i}),e.jsx(a,{sx:{display:"flex",alignItems:"center",gap:0},children:l})]})}q.displayName="StatusBar";function N({children:t,icon:r,onClick:o,tooltip:n,color:i,separator:l=!1,sx:s}){const c=e.jsxs(a,{onClick:o,sx:{display:"inline-flex",alignItems:"center",gap:.5,px:.75,height:20,fontSize:"var(--ov-text-xs)",color:i?k.toCssColor(i):"var(--ov-fg-default)",cursor:o?"pointer":"default",borderRadius:"3px",whiteSpace:"nowrap",...l&&{borderRight:"1px solid var(--ov-border-muted)",pr:1,mr:.25},...o&&{"&:hover":{bgcolor:"var(--ov-state-hover)"}},...typeof s=="object"&&!Array.isArray(s)?s:{}},children:[r&&e.jsx(a,{component:"span",sx:{display:"inline-flex",fontSize:"0.75rem"},children:r}),t]});return n?e.jsx(m,{title:n,children:c}):c}N.displayName="StatusBarItem";const Y={xs:2,sm:4,md:6,lg:8,xl:10};function T({value:t,indeterminate:r=!1,color:o="primary",size:n="sm",label:i,showValue:l=!1,sx:s}){const c=k.toCssColor(o),d=Y[n];return e.jsxs(a,{sx:{display:"flex",flexDirection:"column",gap:.5,...typeof s=="object"&&!Array.isArray(s)?s:{}},children:[(i||l)&&e.jsxs(a,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[i&&e.jsx(S,{sx:{fontSize:"var(--ov-text-xs)",color:"var(--ov-fg-muted)"},children:i}),l&&!r&&t!==void 0&&e.jsxs(S,{sx:{fontSize:"var(--ov-text-xs)",color:"var(--ov-fg-muted)"},children:[Math.round(t),"%"]})]}),e.jsx(M,{variant:r?"indeterminate":"determinate",value:r?void 0:t,sx:{height:d,borderRadius:d/2,bgcolor:"var(--ov-bg-surface-inset)","& .MuiLinearProgress-bar":{bgcolor:c,borderRadius:d/2}}})]})}T.displayName="ProgressBar";const Z={connected:"var(--ov-success-default)",connecting:"var(--ov-warning-default)",disconnected:"var(--ov-fg-faint)",error:"var(--ov-danger-default)"},_={connected:"Connected",connecting:"Connecting",disconnected:"Disconnected",error:"Error"},ee={xs:6,sm:8,md:10,lg:12,xl:14};function L({status:t,label:r,size:o="sm",showLabel:n=!0,sx:i}){const l=Z[t],s=ee[o],c=r??_[t];return e.jsxs(a,{sx:{display:"inline-flex",alignItems:"center",gap:.75,...typeof i=="object"&&!Array.isArray(i)?i:{}},children:[e.jsx(a,{sx:{width:s,height:s,borderRadius:"50%",bgcolor:l,flexShrink:0,...t==="connecting"&&{animation:"ov-conn-pulse 1.5s ease-in-out infinite","@keyframes ov-conn-pulse":{"0%, 100%":{opacity:1},"50%":{opacity:.3}}}}}),n&&e.jsx(S,{sx:{fontSize:o==="xs"?"var(--ov-text-xs)":"var(--ov-text-sm)",color:"var(--ov-fg-default)",lineHeight:1},children:c})]})}L.displayName="ConnectionIndicator";const te={xs:12,sm:14,md:16,lg:18,xl:20};function E({running:t,onStart:r,onStop:o,loading:n=!1,size:i="sm",label:l,sx:s}){const c=k.toMuiSize(i),d=te[i],x=()=>{t?o():r()},f=n?e.jsx(j,{size:d,color:"inherit"}):t?e.jsx(b.LuSquare,{size:d}):e.jsx(b.LuPlay,{size:d});return e.jsx(P,{size:c,variant:"contained",onClick:x,disabled:n,startIcon:f,sx:{bgcolor:t?"var(--ov-danger-default)":"var(--ov-success-default)",color:"#fff",textTransform:"none","&:hover":{bgcolor:t?"var(--ov-danger-default)":"var(--ov-success-default)",filter:"brightness(0.9)"},...typeof s=="object"&&!Array.isArray(s)?s:{}},children:l??(t?"Stop":"Run")})}E.displayName="RunButton";const D=h.createContext(null);function re(){const t=h.useContext(D);if(!t)throw new Error("useNotificationStack must be used within a NotificationStackProvider");return t}const oe={info:e.jsx(b.LuInfo,{size:16}),success:e.jsx(b.LuCircleCheck,{size:16}),warning:e.jsx(b.LuTriangleAlert,{size:16}),error:e.jsx(b.LuCircleAlert,{size:16})},ne={info:"var(--ov-info-default)",success:"var(--ov-success-default)",warning:"var(--ov-warning-default)",error:"var(--ov-danger-default)"};function ie({notification:t,onDismiss:r}){const{id:o,severity:n,title:i,message:l,actions:s,timeout:c}=t,d=h.useRef(void 0);h.useEffect(()=>{const f=c??8e3;return f>0&&(d.current=setTimeout(()=>r(o),f)),()=>{d.current&&clearTimeout(d.current)}},[o,c,r]);const x=ne[n];return e.jsxs(a,{sx:{display:"flex",gap:1,minWidth:320,maxWidth:420,bgcolor:"var(--ov-bg-surface)",border:"1px solid var(--ov-border-default)",borderLeft:`3px solid ${x}`,borderRadius:"6px",boxShadow:"0 4px 16px rgba(0,0,0,0.25)",p:1.5,animation:"ov-notif-slide-in 0.2s ease-out","@keyframes ov-notif-slide-in":{from:{opacity:0,transform:"translateX(40px)"},to:{opacity:1,transform:"translateX(0)"}}},children:[e.jsx(a,{sx:{color:x,pt:"2px",flexShrink:0},children:oe[n]}),e.jsxs(a,{sx:{flex:1,minWidth:0},children:[e.jsx(S,{sx:{fontSize:"0.8125rem",fontWeight:600,color:"var(--ov-fg-base)",lineHeight:1.4},children:i}),l&&e.jsx(S,{sx:{fontSize:"0.75rem",color:"var(--ov-fg-muted)",lineHeight:1.4,mt:.25},children:l}),s&&s.length>0&&e.jsx(a,{sx:{display:"flex",gap:.5,mt:1},children:s.map(f=>e.jsx(P,{size:"small",variant:"text",onClick:()=>{f.onClick(),r(o)},sx:{textTransform:"none",fontSize:"0.6875rem",fontWeight:600,color:"var(--ov-accent-fg)",minWidth:"auto",px:1,py:.25},children:f.label},f.label))})]}),e.jsx(A,{size:"small",onClick:()=>r(o),sx:{alignSelf:"flex-start",p:"2px",color:"var(--ov-fg-faint)","&:hover":{color:"var(--ov-fg-default)"}},children:e.jsx(b.LuX,{size:14})})]})}let se=0;function W({children:t,maxVisible:r=5,position:o="bottom-right",sx:n}){const[i,l]=h.useState([]),s=h.useCallback(u=>{const p=`notif-${++se}`;return l(v=>[...v,{...u,id:p}]),p},[]),c=h.useCallback(u=>{l(p=>p.filter(v=>v.id!==u))},[]),d=h.useCallback(()=>{l([])},[]),x={"bottom-right":{bottom:32,right:12},"bottom-left":{bottom:32,left:12},"top-right":{top:12,right:12},"top-left":{top:12,left:12}},f=i.slice(-r);return e.jsxs(D.Provider,{value:{push:s,dismiss:c,dismissAll:d},children:[t,f.length>0&&e.jsx(a,{sx:{position:"fixed",zIndex:9998,display:"flex",flexDirection:o.startsWith("bottom")?"column-reverse":"column",gap:.75,...x[o],...typeof n=="object"&&!Array.isArray(n)?n:{}},children:f.map(u=>e.jsx(ie,{notification:u,onDismiss:c},u.id))})]})}W.displayName="NotificationStackProvider";function ae({label:t,bgColor:r,color:o,icon:n,onClick:i,tooltip:l}){const s=e.jsxs(a,{onClick:i,sx:{display:"inline-flex",alignItems:"center",gap:"4px",px:"6px",height:"100%",fontSize:"0.625rem",fontWeight:700,letterSpacing:"0.04em",textTransform:"uppercase",bgcolor:r??"transparent",color:o??"#fff",cursor:i?"pointer":"default",whiteSpace:"nowrap","&:hover":i?{filter:"brightness(1.15)"}:{}},children:[n&&e.jsx(a,{sx:{display:"flex",fontSize:"0.625rem"},children:n}),t]});return l?e.jsx(m,{title:l,children:s}):s}function le({color:t,pulse:r,tooltip:o,onClick:n}){const i=e.jsx(a,{onClick:n,sx:{width:8,height:8,borderRadius:"50%",bgcolor:t,flexShrink:0,cursor:n?"pointer":"default","&:hover":n?{filter:"brightness(1.3)"}:{},...r&&{animation:"ov-footer-pulse 1.5s ease-in-out infinite","@keyframes ov-footer-pulse":{"0%, 100%":{opacity:1},"50%":{opacity:.3}}}}});return o?e.jsx(m,{title:o,children:i}):i}function ce({children:t,icon:r,onClick:o,tooltip:n}){const i=e.jsxs(a,{onClick:o,sx:{display:"inline-flex",alignItems:"center",gap:"3px",px:"6px",fontSize:"0.6875rem",color:"var(--ov-fg-default)",cursor:o?"pointer":"default",borderRadius:"2px",whiteSpace:"nowrap","&:hover":o?{bgcolor:"rgba(255,255,255,0.08)"}:{}},children:[r&&e.jsx(a,{sx:{display:"flex",fontSize:"0.6875rem"},children:r}),t]});return n?e.jsx(m,{title:n,children:i}):i}function de({label:t,tooltip:r}){const o=e.jsxs(a,{sx:{display:"inline-flex",alignItems:"center",gap:"4px",px:"6px",fontSize:"0.6875rem",color:"var(--ov-fg-default)"},children:[e.jsx(j,{size:10,thickness:5,sx:{color:"var(--ov-fg-muted)"}}),t&&e.jsx("span",{children:t})]});return r?e.jsx(m,{title:r,children:o}):o}function fe({value:t,width:r=80,color:o="var(--ov-accent)",label:n,showValue:i=!1,tooltip:l}){const s=t===void 0,c=e.jsxs(a,{sx:{display:"inline-flex",alignItems:"center",gap:"4px",px:"6px",fontSize:"0.625rem",color:"var(--ov-fg-default)"},children:[n&&e.jsx(a,{component:"span",sx:{whiteSpace:"nowrap",color:"var(--ov-fg-muted)"},children:n}),e.jsx(M,{variant:s?"indeterminate":"determinate",value:s?void 0:t,sx:{width:r,height:3,borderRadius:1.5,bgcolor:"rgba(255,255,255,0.1)","& .MuiLinearProgress-bar":{bgcolor:o,borderRadius:1.5}}}),i&&!s&&t!==void 0&&e.jsxs(a,{component:"span",sx:{whiteSpace:"nowrap",color:"var(--ov-fg-muted)"},children:[Math.round(t),"%"]})]});return l?e.jsx(m,{title:l,children:c}):c}function ue({color:t}){return e.jsx(a,{sx:{width:"1px",height:"60%",bgcolor:t??"var(--ov-border-default)",flexShrink:0,mx:"2px"}})}function xe({icon:t,label:r,onClick:o,tooltip:n,color:i}){const l=e.jsxs(a,{component:"button",onClick:o,sx:{all:"unset",display:"inline-flex",alignItems:"center",gap:"3px",px:"5px",height:"100%",fontSize:"0.625rem",fontWeight:500,color:i??"var(--ov-fg-default)",cursor:"pointer",borderRadius:"2px",whiteSpace:"nowrap","&:hover":{bgcolor:"rgba(255,255,255,0.1)"},"&:active":{bgcolor:"rgba(255,255,255,0.15)"}},children:[t&&e.jsx(a,{sx:{display:"flex",fontSize:"0.625rem"},children:t}),r]});return n?e.jsx(m,{title:n,children:l}):l}function ge({count:t,icon:r,maxCount:o=99,onClick:n,tooltip:i,color:l}){const s=t>o?`${o}+`:String(t),c=e.jsxs(a,{onClick:n,sx:{display:"inline-flex",alignItems:"center",gap:"3px",px:"5px",height:"100%",fontSize:"0.625rem",fontWeight:600,color:"var(--ov-fg-default)",cursor:n?"pointer":"default","&:hover":n?{bgcolor:"rgba(255,255,255,0.08)"}:{}},children:[r&&e.jsx(a,{sx:{display:"flex",fontSize:"0.625rem"},children:r}),t>0&&e.jsx(a,{component:"span",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:14,height:14,borderRadius:"7px",bgcolor:l??"var(--ov-accent)",color:"#fff",fontSize:"0.5625rem",fontWeight:700,lineHeight:1,px:"3px"},children:s})]});return i?e.jsx(m,{title:i,children:c}):c}function he({time:t,icon:r,running:o,tooltip:n}){const i=e.jsxs(a,{sx:{display:"inline-flex",alignItems:"center",gap:"3px",px:"6px",fontSize:"0.625rem",fontFamily:"var(--ov-font-mono)",fontFeatureSettings:'"tnum"',color:"var(--ov-fg-muted)",whiteSpace:"nowrap",...o&&{animation:"ov-footer-timer-blink 2s step-end infinite","@keyframes ov-footer-timer-blink":{"0%, 100%":{opacity:1},"50%":{opacity:.6}}}},children:[r&&e.jsx(a,{sx:{display:"flex",fontSize:"0.625rem"},children:r}),t]});return n?e.jsx(m,{title:n,children:i}):i}function pe({value:t,size:r=12,color:o,tooltip:n}){const i=t===void 0,l=e.jsx(a,{sx:{display:"inline-flex",alignItems:"center",px:"4px"},children:e.jsx(j,{variant:i?"indeterminate":"determinate",value:i?void 0:t,size:r,thickness:5,sx:{color:o??"var(--ov-accent)",...i&&{animationDuration:"1s"}}})});return n?e.jsx(m,{title:n,children:l}):l}function g({left:t,right:r,height:o=22,sx:n}){return e.jsxs(a,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",height:o,bgcolor:"var(--ov-bg-surface)",borderTop:"1px solid var(--ov-border-default)",fontFamily:"var(--ov-font-ui)",overflow:"hidden",flexShrink:0,...typeof n=="object"&&!Array.isArray(n)?n:{}},children:[e.jsx(a,{sx:{display:"flex",alignItems:"center",height:"100%",gap:.25},children:t}),e.jsx(a,{sx:{display:"flex",alignItems:"center",height:"100%",gap:.25},children:r})]})}g.displayName="IDEStatusFooter";g.Chip=ae;g.Dot=le;g.Text=ce;g.Spinner=de;g.Progress=fe;g.Circular=pe;g.Separator=ue;g.Button=xe;g.Badge=ge;g.Timer=he;const me={xs:20,sm:32,md:48,lg:64,xl:80},ve={xs:5,sm:4.5,md:4,lg:3.5,xl:3},be={xs:"0.5rem",sm:"0.625rem",md:"0.8125rem",lg:"1rem",xl:"1.25rem"};function F({value:t,size:r="md",color:o="primary",thickness:n,showValue:i=!1,label:l,caption:s,trackColor:c,sx:d}){const x=me[r],f=n??ve[r],u=k.toCssColor(o),p=t===void 0,v=l??(i&&!p?`${Math.round(t)}%`:null);return e.jsxs(a,{sx:{display:"inline-flex",flexDirection:"column",alignItems:"center",gap:.5,...typeof d=="object"&&!Array.isArray(d)?d:{}},children:[e.jsxs(a,{sx:{position:"relative",display:"inline-flex"},children:[e.jsx(j,{variant:"determinate",value:100,size:x,thickness:f,sx:{color:c??"var(--ov-bg-surface-inset)",position:"absolute"}}),e.jsx(j,{variant:p?"indeterminate":"determinate",value:p?void 0:t,size:x,thickness:f,sx:{color:u,...p&&{animationDuration:"1.2s"}}}),v&&e.jsx(a,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(S,{sx:{fontSize:be[r],fontWeight:600,color:"var(--ov-fg-default)",lineHeight:1,fontFeatureSettings:'"tnum"'},children:v})})]}),s&&e.jsx(S,{sx:{fontSize:r==="xs"?"0.5rem":"var(--ov-text-xs)",color:"var(--ov-fg-muted)",textAlign:"center",lineHeight:1.3},children:s})]})}F.displayName="ProgressRing";exports.StatusDot=O.StatusDot;exports.StatusPill=G.StatusPill;exports.EmptyState=R.EmptyState;exports.ErrorState=R.ErrorState;exports.Skeleton=J.Skeleton;exports.Alert=B;exports.ConnectionIndicator=L;exports.IDEStatusFooter=g;exports.NotificationStackProvider=W;exports.ProgressBar=T;exports.ProgressRing=F;exports.RunButton=E;exports.StatusBar=q;exports.StatusBarItem=N;exports.useNotificationStack=re;
|
package/dist/feedback.js
CHANGED
|
@@ -5,7 +5,7 @@ import E from "@mui/icons-material/Close";
|
|
|
5
5
|
import { alpha as w } from "@mui/material/styles";
|
|
6
6
|
import { S as Je } from "./StatusDot-CncykBAY.js";
|
|
7
7
|
import { S as Oe } from "./StatusPill-C1NaiCzd.js";
|
|
8
|
-
import { E as Ue, a as Ye } from "./ErrorState-
|
|
8
|
+
import { E as Ue, a as Ye } from "./ErrorState-DNOrahZX.js";
|
|
9
9
|
import { S as er } from "./Skeleton-BUYyXUiC.js";
|
|
10
10
|
import k, { useState as D, useCallback as I, createContext as F, useRef as H, useEffect as $, useContext as V } from "react";
|
|
11
11
|
import a from "@mui/material/Box";
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),f=require("@mui/material/Stack"),j=require("@mui/material/Card"),b=require("@mui/material/Chip"),M=require("@mui/material/Avatar"),I=require("@mui/material/Divider"),u=require("@mui/material/Typography"),d=require("@mui/material/Box"),y=require("./Icon-CKdIOrjZ.cjs"),h=require("react"),C=require("@mui/material/Grid"),D=require("@mui/material/Accordion"),W=require("@mui/material/AccordionDetails"),R=require("@mui/material/AccordionSummary"),Ie=require("@mui/icons-material/ExpandMore"),g=require("react-icons/lu"),w=require("./types.cjs"),ze=require("./Text-Mk6Uyg1w.cjs"),P=require("@mui/material/LinearProgress"),A=require("@mui/material/CircularProgress"),Le=require("@mui/material/List"),O=require("@mui/material/ListSubheader"),z=require("@mui/material/ListItem"),B=require("@mui/material/ListItemButton"),L=require("@mui/material/ListItemIcon"),N=require("@mui/material/ListItemText"),Me=require("./CopyButton-CACe3RCF.cjs"),Ee=require("@mui/material/Tooltip"),Ae=require("@mui/material/TextField"),$=require("./HotkeyHint-DrTOTrIM.cjs"),ke=require("@mui/material/Badge"),S=require("react-icons/si"),Be=require("@mui/icons-material/Search"),Ne=require("@mui/material/ButtonBase"),qe=require("./StatusDot-CYyJxjJK.cjs"),H=({title:r,titleDecorator:n,icon:t,children:o,variant:i,emphasis:s,noPadding:a=!1,onClick:l,sx:x})=>{const p=i??(s?{outline:"outlined",solid:"elevation",soft:"elevation",ghost:"outlined"}[s]??"outlined":"outlined");return r?e.jsxs(j,{variant:p,onClick:l,sx:{p:0,gap:0,...x},children:[e.jsxs(f,{direction:"row",spacing:1,sx:{px:1.5,py:1},alignItems:"center",justifyContent:"space-between",children:[e.jsxs(f,{direction:"row",alignItems:"center",spacing:1,children:[t&&(typeof t=="string"?t.startsWith("http")?e.jsx(M,{src:t,sx:{height:16,width:16,borderRadius:"4px"}}):e.jsx(y.Icon,{name:t,size:14}):t),e.jsx(u,{variant:"subtitle2",children:r})]}),n&&(typeof n=="string"||typeof n=="number"?e.jsx(b,{sx:{borderRadius:"4px"},size:"small",color:"primary",variant:"outlined",label:n}):n)]}),e.jsx(I,{}),e.jsx(d,{sx:{p:a?0:1.5},children:o})]}):e.jsx(j,{variant:p,onClick:l,sx:{p:a?0:1.5,gap:0,...x},children:o})};H.displayName="Card";const Fe=r=>{switch(r){case"sm":return 12;case"md":return 14;case"lg":return 16;default:return 14}},Te=r=>{switch(r){case"sm":return .5;case"md":return 1;case"lg":return 2;default:return 1}},De=r=>{switch(r){case"sm":return 12;case"md":return 14;case"lg":return 16;default:return 14}},G=({title:r,titleSize:n="md",icon:t,data:o,endAdornment:i,showUndefined:s=!1})=>e.jsxs(j,{variant:"outlined",sx:{p:0,gap:0,bgcolor:"var(--ov-bg-surface-raised)"},children:[r&&e.jsxs(d,{sx:{px:1.5,py:1,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",bgcolor:"var(--ov-bg-surface)",borderBottom:"1px solid var(--ov-border-default)"},children:[e.jsxs(f,{direction:"row",spacing:Te(n),alignItems:"center",children:[t&&(typeof t=="string"?t.startsWith("http")?e.jsx(M,{src:t,sx:{height:16,width:16,borderRadius:"4px"}}):e.jsx(y.Icon,{name:t,size:De(n)}):t),e.jsx(u,{sx:{fontSize:Fe(n)},variant:"subtitle2",children:r})]}),i]}),e.jsx(d,{sx:{px:1.5,py:1},children:e.jsx(C,{container:!0,spacing:1,children:o.map(a=>{if(a.value||s)return e.jsxs(h.Fragment,{children:[e.jsx(C,{size:a.ratio?.[0]??5,children:e.jsxs(f,{direction:"row",spacing:1,alignItems:"center",children:[a.icon&&(typeof a.icon=="string"?a.icon.startsWith("http")?e.jsx(M,{src:a.icon,sx:{width:24,height:24}}):e.jsx(y.Icon,{name:a.icon,size:14}):a.icon),e.jsx(u,{variant:"caption",children:a.key})]})}),e.jsx(C,{size:a.ratio?.[1]??7,children:e.jsxs(f,{direction:"row",spacing:1,alignItems:"center",justifyContent:"space-between",children:[e.jsx(u,{variant:"caption",noWrap:!0,sx:{color:"var(--ov-fg-default)"},children:a.used?`${a.used} / ${a.value}`:a.value}),a.endAdornment]})})]},a.key)})})})]});G.displayName="DetailsCard";const K=({title:r,kvs:n,defaultExpanded:t})=>e.jsxs(D,{disabled:!Object.keys(n).length,defaultExpanded:t,disableGutters:!0,sx:{"&:before":{display:"none"}},children:[e.jsx(R,{expandIcon:e.jsx(Ie,{}),children:e.jsxs(f,{direction:"row",gap:1,alignItems:"center",children:[e.jsx(u,{variant:"subtitle2",children:r}),e.jsx(b,{size:"small",variant:"outlined",color:"primary",label:Object.keys(n).length,sx:{borderRadius:"4px"}})]})}),e.jsx(W,{children:e.jsx(C,{container:!0,spacing:.25,children:Object.entries(n).map(([o,i])=>e.jsxs(h.Fragment,{children:[e.jsx(C,{size:6,children:e.jsx(u,{variant:"caption",sx:{fontWeight:400},children:o})}),e.jsx(C,{size:6,children:e.jsx(u,{variant:"caption",sx:{fontWeight:600},children:i})})]},o))})})]});K.displayName="KVCard";function We(r){switch(r){case"outline":case"ghost":return"outlined";default:return"filled"}}function Re(r,n){if(r==="soft"){const t=w.toCssColor(n);return{bgcolor:`color-mix(in srgb, ${t} 18%, transparent)`,color:t,border:"1px solid",borderColor:`color-mix(in srgb, ${t} 30%, transparent)`,fontWeight:600,"& .MuiChip-label":{color:t},"& .MuiChip-icon":{color:t},"& .MuiChip-deleteIcon":{color:t,opacity:.7,"&:hover":{opacity:1}}}}if(r==="ghost")return{borderColor:"transparent",bgcolor:"transparent"}}function Pe(r){if(r==="xs")return{height:20,fontSize:"0.6875rem","& .MuiChip-label":{px:"6px"},"& .MuiChip-icon":{fontSize:"0.75rem",flexShrink:0}};if(r==="xl")return{height:40,fontSize:"1rem","& .MuiChip-label":{px:"16px"}}}const Oe={soft:"soft",outlined:"outline",solid:"solid",plain:"ghost",filled:"solid"};function k({label:r,children:n,color:t="neutral",emphasis:o,variant:i,size:s="sm",shape:a,textTransform:l,icon:x,startAdornment:c,endAdornment:p,deletable:m=!1,onDelete:v,onClick:he,disabled:ge=!1,sx:ve}){const E=o??(i?Oe[i]??"soft":"soft"),me=r??n,je=x??c,be=E==="soft"?"filled":We(E),ye=Re(E,t),Se=Pe(s),Ce=a?{borderRadius:w.toBorderRadius(a)}:void 0,we=l?{"& .MuiChip-label":{textTransform:l}}:void 0;return e.jsx(b,{label:me,color:w.toMuiColor(t),variant:be,size:w.toMuiSize(s),icon:je,onDelete:m||v?v??void 0:void 0,onClick:he,disabled:ge,sx:{...ye,...Se,...Ce,...we,...ve}})}k.displayName="Chip";const $e={sm:{minHeight:28,headerPy:"4px",headerPx:1,fontSize:12,iconSize:14,chevronSize:14},md:{minHeight:32,headerPy:"6px",headerPx:1.25,fontSize:13,iconSize:16,chevronSize:16},lg:{minHeight:38,headerPy:"10px",headerPx:1.5,fontSize:14,iconSize:18,chevronSize:18}};function V(r){switch(r){case"bordered":return{borderRadius:"6px",border:"1px solid var(--ov-border-default)"};case"plain":return{};case"flush":return{}}}function He(r,n){return n===0?!1:r!=="flush"}function _({section:r,size:n,monospace:t,expanded:o,onExpandedChange:i}){const s=$e[n],a=o!==void 0||r.expanded!==void 0,l=o??r.expanded,x=(m,v)=>{i?.(v),r.onExpandedChange?.(v)},c={disableGutters:!0,disabled:r.disabled,onChange:x,sx:{boxShadow:"none",background:"transparent !important","&:before":{display:"none"},"&.Mui-expanded":{margin:0}}};a?c.expanded=l:c.defaultExpanded=r.defaultExpanded;const p=()=>r.icon?typeof r.icon=="string"?e.jsx(d,{sx:{display:"flex",alignItems:"center",mr:.75,color:"var(--ov-fg-muted)"},children:e.jsx(y.Icon,{name:r.icon,size:s.iconSize})}):e.jsx(d,{sx:{display:"flex",alignItems:"center",mr:.75,color:"var(--ov-fg-muted)"},children:r.icon}):null;return e.jsxs(D,{...c,children:[e.jsxs(R,{expandIcon:null,sx:{minHeight:s.minHeight,py:s.headerPy,px:s.headerPx,"&:hover":{bgcolor:"var(--ov-state-hover)"},"&.Mui-expanded":{minHeight:s.minHeight},"& .MuiAccordionSummary-content":{margin:0,display:"flex",alignItems:"center",gap:0,"&.Mui-expanded":{margin:0}}},children:[e.jsx(Ge,{size:s.chevronSize}),p(),e.jsx(ze.Text,{size:n==="lg"?"md":n,weight:"semibold",inline:!0,sx:{color:"var(--ov-fg-base)",...t&&{fontFamily:"var(--ov-font-mono)",fontSize:s.fontSize},...!t&&{fontSize:s.fontSize},lineHeight:1},children:r.title}),r.count!==void 0&&e.jsx(d,{sx:{ml:.75},children:e.jsx(k,{size:"xs",color:"neutral",emphasis:"soft",label:r.count})}),e.jsx(d,{sx:{flex:1}}),r.endDecorator&&e.jsx(d,{sx:{display:"flex",alignItems:"center",ml:1},onClick:m=>m.stopPropagation(),children:r.endDecorator})]}),e.jsx(W,{sx:{p:0},children:r.children})]})}function Ge({size:r}){return e.jsxs(d,{sx:{display:"flex",alignItems:"center",mr:.75,color:"var(--ov-fg-muted)"},children:[e.jsx(d,{component:"span",sx:{display:"flex",".MuiAccordionSummary-root.Mui-expanded &":{display:"none"}},children:e.jsx(g.LuChevronRight,{size:r})}),e.jsx(d,{component:"span",sx:{display:"none",".MuiAccordionSummary-root.Mui-expanded &":{display:"flex"}},children:e.jsx(g.LuChevronDown,{size:r})})]})}function Ke(){return e.jsx(d,{sx:{height:"1px",bgcolor:"var(--ov-border-default)"}})}function U({sections:r,variant:n="bordered",size:t="md",monospace:o=!1,exclusive:i=!1,sx:s}){const[a,l]=h.useState(()=>{if(!i)return null;const c=r.findIndex(p=>p.defaultExpanded||p.expanded);return c>=0?c:null}),x=h.useCallback(c=>p=>{i&&l(p?c:null)},[i]);return r.length===0?e.jsx(e.Fragment,{}):e.jsx(d,{sx:{flexGrow:0,...V(n),...typeof s=="object"&&!Array.isArray(s)?s:{}},children:r.map((c,p)=>{const m=c.key??(typeof c.title=="string"?c.title:String(p)),v=i?{expanded:a===p,onExpandedChange:x(p)}:{};return e.jsxs(h.Fragment,{children:[He(n,p)&&e.jsx(Ke,{}),e.jsx(_,{section:c,size:t,monospace:o,...v})]},m)})})}U.displayName="ExpandableSections";function Y({variant:r="bordered",size:n="md",monospace:t=!1,...o}){return e.jsx(d,{sx:{...V(r)},children:e.jsx(_,{section:o,size:n,monospace:t})})}Y.displayName="ExpandableSection";const Ve={NONE:"",BYTES:"B",KB:"KB",MB:"MB",GB:"GB",PERCENTAGE:"%",MILLISECONDS:"ms",SECONDS:"s",COUNT:"",OPS_PER_SEC:"ops/s",BYTES_PER_SEC:"B/s",MILLICORES:"m",CORES:"cores"};function q(r,n){const t=Ve[n]??n;return n==="BYTES"||n==="bytes"?r>=1024*1024*1024?`${(r/(1024*1024*1024)).toFixed(1)} GB`:r>=1024*1024?`${(r/(1024*1024)).toFixed(1)} MB`:r>=1024?`${(r/1024).toFixed(1)} KB`:`${r} B`:n==="MILLICORES"||n==="millicores"?r>=1e3?`${(r/1e3).toFixed(2)} cores`:`${Math.round(r)}${t}`:Number.isInteger(r)?`${r}${t?` ${t}`:""}`:`${r.toFixed(2)}${t?` ${t}`:""}`}const _e=({metric:r})=>{const n=r.capacity!=null&&r.capacity>0,t=n?Math.min(r.value/r.capacity*100,100):null,o=()=>t==null?"primary":t>=90?"error":t>=70?"warning":"primary";return e.jsxs(d,{sx:{minWidth:0,flex:1},children:[e.jsxs(f,{direction:"row",spacing:.5,alignItems:"center",sx:{mb:.25},children:[r.icon&&e.jsx(y.Icon,{name:r.icon,style:{fontSize:14,opacity:.7}}),e.jsx(u,{variant:"caption",sx:{fontWeight:500,opacity:.8,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r.name})]}),e.jsx(u,{variant:"body2",sx:{fontWeight:600,fontVariantNumeric:"tabular-nums"},children:q(r.value,r.unit)}),n&&e.jsxs(d,{sx:{mt:.5},children:[e.jsx(P,{variant:"determinate",value:t,color:o(),sx:{height:4,borderRadius:2}}),e.jsxs(u,{variant:"caption",sx:{opacity:.6,fontSize:"0.65rem"},children:[t.toFixed(0),"% of ",q(r.capacity,r.unit)]})]})]})},Ue=({providers:r,isLoading:n=!1,error:t,sx:o})=>n&&r.length===0?e.jsx(d,{sx:{display:"flex",justifyContent:"center",py:2,...o},children:e.jsx(A,{size:20})}):t?e.jsx(d,{sx:{px:1,py:.5,...o},children:e.jsx(u,{variant:"caption",color:"error",children:t})}):r.length===0?null:e.jsx(f,{spacing:1.5,sx:o,children:r.map(i=>e.jsxs(d,{children:[r.length>1&&e.jsxs(f,{direction:"row",spacing:.5,alignItems:"center",sx:{mb:.75},children:[i.providerIcon&&e.jsx(y.Icon,{name:i.providerIcon,style:{fontSize:14}}),e.jsx(b,{label:i.providerName,size:"small",variant:"outlined",sx:{height:20,fontSize:"0.7rem"}})]}),e.jsx(f,{direction:"row",spacing:1.5,sx:{flexWrap:"wrap","& > *":{minWidth:100}},children:i.metrics.map(s=>e.jsx(_e,{metric:s},s.metricID))})]},i.providerID))}),Ye={xs:!0,sm:!0,md:!1,lg:!1,xl:!1};function J({children:r,size:n="md",subheader:t,dense:o,disablePadding:i=!1,sx:s}){return e.jsx(Le,{dense:o??Ye[n],disablePadding:i,subheader:t?e.jsx(O,{children:t}):void 0,sx:s,children:r})}J.displayName="List";function Q({sx:r}){return e.jsx(I,{component:"li",sx:r})}Q.displayName="ListDivider";function X({children:r,primary:n,secondary:t,icon:o,action:i,selected:s=!1,disabled:a=!1,onClick:l,sx:x}){return r&&!n?l?e.jsx(z,{disablePadding:!0,secondaryAction:i,sx:x,children:e.jsxs(B,{selected:s,disabled:a,onClick:l,children:[o&&e.jsx(L,{children:o}),r]})}):e.jsxs(z,{secondaryAction:i,sx:x,children:[o&&e.jsx(L,{children:o}),r]}):l?e.jsx(z,{disablePadding:!0,secondaryAction:i,sx:x,children:e.jsxs(B,{selected:s,disabled:a,onClick:l,children:[o&&e.jsx(L,{children:o}),e.jsx(N,{primary:n,secondary:t}),r]})}):e.jsxs(z,{secondaryAction:i,sx:x,children:[o&&e.jsx(L,{children:o}),e.jsx(N,{primary:n,secondary:t}),r]})}X.displayName="ListItem";function Z({ratio:r="1/1",children:n,sx:t}){return e.jsx(d,{sx:{position:"relative",width:"100%",aspectRatio:typeof r=="number"?String(r):r,overflow:"hidden","& > *":{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"cover"},...t},children:n})}Z.displayName="AspectRatio";function ee({value:r,truncate:n=!0,maxWidth:t,sx:o,variant:i="mono"}){const[s,a]=h.useState(!1);return e.jsxs(d,{onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),sx:{display:"inline-flex",alignItems:"center",gap:.5,maxWidth:t,minWidth:0,...o},children:[i==="mono"?e.jsx(u,{variant:"body2",sx:{fontSize:"0.8125rem",color:"var(--ov-fg-default)",fontFamily:"var(--ov-font-mono)",...n&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},children:r}):e.jsx("span",{style:{...n?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}},children:r}),e.jsx("span",{onClick:l=>l.stopPropagation(),style:{display:"inline-flex",alignItems:"center",visibility:s?"visible":"hidden",flexShrink:0},children:e.jsx(Me.CopyButton,{value:r,size:"xs"})})]})}ee.displayName="ClipboardText";function re({children:r,maxWidth:n,copyOnClick:t=!1,sx:o}){const i=h.useRef(null),[s,a]=h.useState(!1);h.useEffect(()=>{const c=i.current;c&&a(c.scrollWidth>c.clientWidth)},[r]);const l=()=>{t&&navigator.clipboard.writeText(r).catch(()=>{})},x=e.jsx(d,{ref:i,onClick:l,sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:n,fontSize:"0.8125rem",color:"var(--ov-fg-default)",cursor:t?"pointer":void 0,...o},children:r});return s?e.jsx(Ee,{title:r,arrow:!0,children:x}):x}re.displayName="OverflowText";const F={xs:"0.6875rem",sm:"0.8125rem",md:"0.875rem",lg:"1rem",xl:"1.125rem"};function te({value:r,onSave:n,placeholder:t="Click to edit",size:o="sm",sx:i}){const[s,a]=h.useState(!1),[l,x]=h.useState(r),c=h.useRef(null);h.useEffect(()=>{s&&c.current&&(c.current.focus(),c.current.select())},[s]);const p=()=>{a(!1),l!==r&&n(l)},m=()=>{a(!1),x(r)};return s?e.jsx(d,{sx:i,children:e.jsx(Ae,{inputRef:c,value:l,onChange:v=>x(v.target.value),onBlur:p,onKeyDown:v=>{v.key==="Enter"&&p(),v.key==="Escape"&&m()},variant:"outlined",size:"small",fullWidth:!0,slotProps:{input:{sx:{fontSize:F[o],py:.25,px:.5}}}})}):e.jsx(d,{onClick:()=>{x(r),a(!0)},sx:{cursor:"pointer",borderRadius:"4px",px:.5,py:.25,"&:hover":{bgcolor:"var(--ov-state-hover)"},...i},children:e.jsx(u,{variant:"body2",sx:{fontSize:F[o],color:r?"var(--ov-fg-default)":"var(--ov-fg-faint)"},children:r||t})})}te.displayName="InlineEdit";function ne({count:r,dot:n=!1,color:t="primary",max:o=99,invisible:i,anchorOrigin:s,children:a,sx:l}){return e.jsx(ke,{badgeContent:n?void 0:r,variant:n?"dot":"standard",color:w.toMuiColor(t),max:o,invisible:i,anchorOrigin:s,sx:l,children:a})}ne.displayName="Badge";const Je={xs:24,sm:32,md:40,lg:48,xl:64},Qe={xs:"0.625rem",sm:"0.75rem",md:"0.875rem",lg:"1rem",xl:"1.25rem"},T=["#e57373","#f06292","#ba68c8","#9575cd","#7986cb","#64b5f6","#4fc3f7","#4dd0e1","#4db6ac","#81c784","#aed581","#dce775","#fff176","#ffd54f","#ffb74d","#ff8a65"];function Xe(r){let n=0;for(let t=0;t<r.length;t++)n=r.charCodeAt(t)+((n<<5)-n),n|=0;return Math.abs(n)}function Ze(r){const n=r.trim().split(/\s+/);return n.length>=2?(n[0][0]+n[1][0]).toUpperCase():r.slice(0,2).toUpperCase()}function er(r){return T[Xe(r)%T.length]}const rr={xs:4,sm:6,md:8,lg:10,xl:12};function ie({src:r,name:n,size:t="md",variant:o="rounded",children:i,sx:s}){const a=Je[t],l=n?er(n):void 0,x=n?Ze(n):void 0,c=i??(r?void 0:x);return e.jsx(M,{src:r,alt:n,variant:o==="circular"?"circular":"rounded",sx:{width:a,height:a,fontSize:Qe[t],fontWeight:600,bgcolor:r?void 0:l,...o==="rounded"?{borderRadius:`${rr[t]}px`}:{},...s},children:c})}ie.displayName="Avatar";const tr={xs:12,sm:14,md:16,lg:20,xl:24};function nr(r,n){if(n.toLowerCase().startsWith("dockerfile"))return{icon:S.SiDocker,color:"var(--ov-info-default)"};switch(r){case".go":return{icon:S.SiGo,color:"#00ADD8"};case".ts":case".tsx":return{icon:S.SiTypescript,color:"#3178C6"};case".js":case".jsx":case".mjs":case".cjs":return{icon:S.SiJavascript,color:"#F7DF1E"};case".py":return{icon:S.SiPython,color:"#3776AB"};case".rs":return{icon:S.SiRust,color:"#DEA584"};case".yaml":case".yml":return{icon:g.LuFileCode,color:"var(--ov-info-default)"};case".json":return{icon:g.LuBraces,color:"#F5C518"};case".md":case".mdx":case".txt":case".log":return{icon:g.LuFileText,color:"var(--ov-fg-muted)"};case".html":case".htm":case".xml":case".svg":return{icon:g.LuFileCode,color:"#E44D26"};case".css":case".scss":case".less":return{icon:g.LuFileCode,color:"#264DE4"};case".png":case".jpg":case".jpeg":case".gif":case".webp":case".ico":return{icon:g.LuFileImage,color:"var(--ov-success-default)"};case".toml":case".ini":case".env":case".cfg":return{icon:g.LuFileCode,color:"var(--ov-fg-muted)"};case".sh":case".bash":case".zsh":return{icon:g.LuFileCode,color:"var(--ov-success-default)"};case".proto":return{icon:g.LuFileCode,color:"var(--ov-warning-default)"};case".sql":return{icon:g.LuFileCode,color:"#336791"};case".jsonc":return{icon:g.LuBraces,color:"#F5C518"};default:return{icon:g.LuFile,color:"var(--ov-fg-muted)"}}}function oe({filename:r,size:n="sm",sx:t}){const o=tr[n],i=r.lastIndexOf("."),s=i>=0?r.slice(i).toLowerCase():"",a=r.split("/").pop()??r,{icon:l,color:x}=nr(s,a);return e.jsx(d,{component:"span",sx:{display:"inline-flex",color:x,flexShrink:0,...typeof t=="object"&&!Array.isArray(t)?t:{}},children:e.jsx(l,{size:o})})}oe.displayName="FileIcon";function se({items:r,maxVisible:n=3,renderItem:t,sx:o}){const[i,s]=h.useState(!1),a=i?r:r.slice(0,n),l=r.length-n;return e.jsxs(d,{sx:{display:"flex",alignItems:"center",gap:.5,flexWrap:"wrap",...typeof o=="object"&&!Array.isArray(o)?o:{}},children:[a.map((x,c)=>t?t(x,c):e.jsx(d,{component:"span",children:x},c)),!i&&l>0&&e.jsx(b,{label:`+${l} more`,size:"small",onClick:()=>s(!0),sx:{fontSize:"var(--ov-text-xs)",height:20,cursor:"pointer",bgcolor:"var(--ov-bg-surface-inset)",color:"var(--ov-fg-muted)","&:hover":{bgcolor:"var(--ov-state-hover)"}}}),i&&l>0&&e.jsx(b,{label:"Show less",size:"small",onClick:()=>s(!1),sx:{fontSize:"var(--ov-text-xs)",height:20,cursor:"pointer",bgcolor:"var(--ov-bg-surface-inset)",color:"var(--ov-fg-muted)","&:hover":{bgcolor:"var(--ov-state-hover)"}}})]})}se.displayName="TruncatedList";function ae({query:r,suggestions:n,onSuggestionClick:t,sx:o}){return e.jsxs(d,{sx:{display:"flex",flexDirection:"column",alignItems:"center",py:4,gap:1.5,...typeof o=="object"&&!Array.isArray(o)?o:{}},children:[e.jsx(Be,{sx:{fontSize:32,color:"var(--ov-fg-faint)"}}),e.jsxs(u,{sx:{fontSize:"var(--ov-text-sm)",color:"var(--ov-fg-muted)"},children:["No results for “",r,"”"]}),n&&n.length>0&&e.jsxs(d,{sx:{display:"flex",gap:.75,flexWrap:"wrap",justifyContent:"center",mt:.5},children:[e.jsx(u,{sx:{fontSize:"var(--ov-text-xs)",color:"var(--ov-fg-faint)",width:"100%",textAlign:"center"},children:"Try:"}),n.map(i=>e.jsx(b,{label:i,size:"small",onClick:t?()=>t(i):void 0,sx:{fontSize:"var(--ov-text-xs)",cursor:t?"pointer":"default",bgcolor:"var(--ov-bg-surface-inset)",color:"var(--ov-fg-muted)"}},i))]})]})}ae.displayName="EmptySearch";function le({active:r,children:n,label:t,blur:o=!1,sx:i}){return e.jsxs(d,{sx:{position:"relative",...typeof i=="object"&&!Array.isArray(i)?i:{}},children:[n,r&&e.jsxs(d,{sx:{position:"absolute",inset:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:1.5,bgcolor:"rgba(0, 0, 0, 0.3)",zIndex:10,borderRadius:"inherit",...o&&{backdropFilter:"blur(3px)"}},children:[e.jsx(A,{size:28,sx:{color:"var(--ov-accent-fg)"}}),t&&e.jsx(u,{sx:{fontSize:"var(--ov-text-sm)",color:"#fff",fontWeight:500},children:t})]})]})}le.displayName="LoadingOverlay";function ce({shortcut:r}){const n=r.split("+").map(t=>t.trim());return e.jsx($.HotkeyHint,{keys:n})}ce.displayName="Kbd";function de({value:r,label:n,description:t,icon:o,trend:i,color:s="primary",sx:a}){const l=i?i.value>0?"up":i.value<0?"down":"flat":void 0,x=l==="up"?"var(--ov-success-default)":l==="down"?"var(--ov-danger-default)":"var(--ov-fg-muted)",c=l==="up"?"↑":l==="down"?"↓":"→";return e.jsxs(j,{variant:"outlined",sx:{p:2,display:"flex",flexDirection:"column",gap:.5,...a},children:[e.jsxs(f,{direction:"row",justifyContent:"space-between",alignItems:"flex-start",children:[e.jsxs(d,{children:[e.jsx(u,{sx:{fontSize:"var(--ov-text-2xl)",fontWeight:700,lineHeight:1.2,color:`var(${w.toCssColor(s)})`},children:r}),e.jsx(u,{variant:"body2",sx:{color:"var(--ov-fg-muted)",fontWeight:500,mt:.25},children:n})]}),o&&e.jsx(d,{sx:{color:"var(--ov-fg-faint)",fontSize:24,display:"flex"},children:o})]}),(i||t)&&e.jsxs(f,{direction:"row",alignItems:"center",spacing:1,sx:{mt:.5},children:[i&&e.jsxs(u,{variant:"caption",sx:{color:x,fontWeight:600},children:[c," ",Math.abs(i.value),"%",i.label?` ${i.label}`:""]}),t&&e.jsx(u,{variant:"caption",sx:{color:"var(--ov-fg-faint)"},children:t})]})]})}de.displayName="StatCard";function xe({media:r,mediaHeight:n=140,title:t,description:o,meta:i,actions:s,onClick:a,sx:l}){return e.jsxs(j,{variant:"outlined",onClick:a,sx:{p:0,cursor:a?"pointer":void 0,transition:"border-color 0.15s, box-shadow 0.15s","&:hover":a?{borderColor:"var(--ov-border-focus)",boxShadow:"0 2px 8px rgba(0,0,0,0.08)"}:void 0,...l},children:[typeof r=="string"?e.jsx(d,{sx:{height:n,width:"100%",backgroundImage:`url(${r})`,backgroundSize:"cover",backgroundPosition:"center",borderBottom:"1px solid var(--ov-border-default)"}}):e.jsx(d,{sx:{height:n,width:"100%",display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"var(--ov-bg-surface)",borderBottom:"1px solid var(--ov-border-default)",color:"var(--ov-fg-faint)",fontSize:40},children:r}),e.jsxs(d,{sx:{px:1.5,py:1.25},children:[e.jsx(u,{variant:"subtitle2",sx:{mb:.25},children:t}),o&&e.jsx(u,{variant:"body2",sx:{color:"var(--ov-fg-muted)",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:o}),i&&e.jsx(u,{variant:"caption",component:"div",sx:{color:"var(--ov-fg-faint)",mt:.5},children:i})]}),s&&e.jsx(f,{direction:"row",spacing:1,sx:{px:1.5,py:1,borderTop:"1px solid var(--ov-border-default)"},children:s})]})}xe.displayName="MediaCard";function ue({icon:r,title:n,description:t,primaryAction:o,secondaryAction:i,direction:s="vertical",sx:a}){const l=s==="horizontal";return e.jsxs(j,{variant:"outlined",sx:{p:2,display:"flex",flexDirection:l?"row":"column",alignItems:l?"center":"flex-start",gap:l?2:1,...a},children:[r&&e.jsx(d,{sx:{fontSize:32,color:"var(--ov-fg-muted)",display:"flex",flexShrink:0},children:r}),e.jsxs(d,{sx:{flex:1,minWidth:0},children:[e.jsx(u,{variant:"subtitle2",sx:{mb:.25},children:n}),t&&e.jsx(u,{variant:"body2",sx:{color:"var(--ov-fg-muted)"},children:t})]}),(o||i)&&e.jsxs(f,{direction:"row",spacing:1,sx:{mt:l?0:1,flexShrink:0},children:[o,i]})]})}ue.displayName="ActionCard";function fe({title:r,icon:n,headerAction:t,items:o,maxVisible:i=5,emptyMessage:s="No items",sx:a}){const x=i*40;return e.jsxs(j,{variant:"outlined",sx:{p:0,...a},children:[e.jsxs(f,{direction:"row",spacing:1,sx:{px:1.5,py:1},alignItems:"center",justifyContent:"space-between",children:[e.jsxs(f,{direction:"row",alignItems:"center",spacing:1,children:[n&&e.jsx(d,{sx:{display:"flex",color:"var(--ov-fg-muted)",fontSize:16},children:n}),e.jsx(u,{variant:"subtitle2",children:r})]}),t]}),e.jsx(I,{}),o.length===0?e.jsx(d,{sx:{px:1.5,py:2,textAlign:"center"},children:e.jsx(u,{variant:"body2",sx:{color:"var(--ov-fg-faint)"},children:s})}):e.jsx(d,{sx:{maxHeight:x,overflowY:"auto"},children:o.map((c,p)=>{const m=e.jsxs(f,{direction:"row",alignItems:"center",spacing:1,sx:{px:1.5,height:40,width:"100%",borderBottom:p<o.length-1?"1px solid var(--ov-border-default)":void 0,"&:hover":c.onClick?{bgcolor:"var(--ov-bg-surface-hover)"}:void 0,transition:"background-color 0.1s"},children:[c.icon&&e.jsx(d,{sx:{display:"flex",color:"var(--ov-fg-muted)",fontSize:16,flexShrink:0},children:c.icon}),e.jsxs(d,{sx:{flex:1,minWidth:0},children:[e.jsx(u,{variant:"body2",noWrap:!0,children:c.label}),c.secondary&&e.jsx(u,{variant:"caption",noWrap:!0,sx:{color:"var(--ov-fg-faint)"},children:c.secondary})]}),c.trailing&&e.jsx(d,{sx:{flexShrink:0,display:"flex",alignItems:"center"},children:c.trailing})]});return c.onClick?e.jsx(Ne,{onClick:c.onClick,sx:{display:"block",width:"100%",textAlign:"left"},children:m},c.key):e.jsx(h.Fragment,{children:m},c.key)})})]})}fe.displayName="ListCard";function pe({title:r,icon:n,status:t,statusLabel:o,description:i,metadata:s,headerAction:a,sx:l}){return e.jsxs(j,{variant:"outlined",sx:{p:0,...l},children:[e.jsxs(f,{direction:"row",spacing:1,sx:{px:1.5,py:1},alignItems:"center",justifyContent:"space-between",children:[e.jsxs(f,{direction:"row",alignItems:"center",spacing:1,children:[n&&e.jsx(d,{sx:{display:"flex",color:"var(--ov-fg-muted)",fontSize:16},children:n}),e.jsx(u,{variant:"subtitle2",children:r})]}),a]}),e.jsx(I,{}),e.jsxs(d,{sx:{px:1.5,py:1.25},children:[e.jsxs(f,{direction:"row",alignItems:"center",spacing:1,children:[e.jsx(qe.StatusDot,{status:t,pulse:t==="pending"}),e.jsx(u,{variant:"body2",sx:{fontWeight:600,textTransform:"capitalize"},children:o??t})]}),i&&e.jsx(u,{variant:"body2",sx:{color:"var(--ov-fg-muted)",mt:.5},children:i})]}),s&&s.length>0&&e.jsxs(e.Fragment,{children:[e.jsx(I,{}),e.jsx(d,{sx:{px:1.5,py:1},children:s.map((x,c)=>e.jsxs(f,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{py:.5,borderBottom:c<s.length-1?"1px solid var(--ov-border-default)":void 0},children:[e.jsx(u,{variant:"caption",sx:{color:"var(--ov-fg-muted)"},children:x.label}),e.jsx(u,{variant:"caption",sx:{color:"var(--ov-fg-default)",fontWeight:500},children:x.value})]},x.label))})]})]})}pe.displayName="StatusCard";exports.Divider=I;exports.Icon=y.Icon;exports.LinearProgress=P;exports.CircularProgress=A;exports.ListSubheader=O;exports.HotkeyHint=$.HotkeyHint;exports.ActionCard=ue;exports.AspectRatio=Z;exports.Avatar=ie;exports.Badge=ne;exports.Card=H;exports.Chip=k;exports.ClipboardText=ee;exports.DetailsCard=G;exports.EmptySearch=ae;exports.ExpandableSection=Y;exports.ExpandableSections=U;exports.FileIcon=oe;exports.InlineEdit=te;exports.KVCard=K;exports.Kbd=ce;exports.List=J;exports.ListCard=fe;exports.ListDivider=Q;exports.ListItem=X;exports.LoadingOverlay=le;exports.MediaCard=xe;exports.MetricsSection=Ue;exports.OverflowText=re;exports.StatCard=de;exports.StatusCard=pe;exports.TruncatedList=se;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),f=require("@mui/material/Stack"),j=require("@mui/material/Card"),b=require("@mui/material/Chip"),M=require("@mui/material/Avatar"),I=require("@mui/material/Divider"),u=require("@mui/material/Typography"),d=require("@mui/material/Box"),y=require("./Icon-CKdIOrjZ.cjs"),h=require("react"),C=require("@mui/material/Grid"),D=require("@mui/material/Accordion"),W=require("@mui/material/AccordionDetails"),R=require("@mui/material/AccordionSummary"),Ie=require("@mui/icons-material/ExpandMore"),g=require("react-icons/lu"),w=require("./types.cjs"),ze=require("./Text-Mk6Uyg1w.cjs"),P=require("@mui/material/LinearProgress"),A=require("@mui/material/CircularProgress"),Le=require("@mui/material/List"),O=require("@mui/material/ListSubheader"),z=require("@mui/material/ListItem"),B=require("@mui/material/ListItemButton"),L=require("@mui/material/ListItemIcon"),N=require("@mui/material/ListItemText"),Me=require("./CopyButton-3fq1UAiv.cjs"),Ee=require("@mui/material/Tooltip"),Ae=require("@mui/material/TextField"),$=require("./HotkeyHint-DrTOTrIM.cjs"),ke=require("@mui/material/Badge"),S=require("react-icons/si"),Be=require("@mui/icons-material/Search"),Ne=require("@mui/material/ButtonBase"),qe=require("./StatusDot-CYyJxjJK.cjs"),H=({title:r,titleDecorator:n,icon:t,children:o,variant:i,emphasis:s,noPadding:a=!1,onClick:l,sx:x})=>{const p=i??(s?{outline:"outlined",solid:"elevation",soft:"elevation",ghost:"outlined"}[s]??"outlined":"outlined");return r?e.jsxs(j,{variant:p,onClick:l,sx:{p:0,gap:0,...x},children:[e.jsxs(f,{direction:"row",spacing:1,sx:{px:1.5,py:1},alignItems:"center",justifyContent:"space-between",children:[e.jsxs(f,{direction:"row",alignItems:"center",spacing:1,children:[t&&(typeof t=="string"?t.startsWith("http")?e.jsx(M,{src:t,sx:{height:16,width:16,borderRadius:"4px"}}):e.jsx(y.Icon,{name:t,size:14}):t),e.jsx(u,{variant:"subtitle2",children:r})]}),n&&(typeof n=="string"||typeof n=="number"?e.jsx(b,{sx:{borderRadius:"4px"},size:"small",color:"primary",variant:"outlined",label:n}):n)]}),e.jsx(I,{}),e.jsx(d,{sx:{p:a?0:1.5},children:o})]}):e.jsx(j,{variant:p,onClick:l,sx:{p:a?0:1.5,gap:0,...x},children:o})};H.displayName="Card";const Fe=r=>{switch(r){case"sm":return 12;case"md":return 14;case"lg":return 16;default:return 14}},Te=r=>{switch(r){case"sm":return .5;case"md":return 1;case"lg":return 2;default:return 1}},De=r=>{switch(r){case"sm":return 12;case"md":return 14;case"lg":return 16;default:return 14}},G=({title:r,titleSize:n="md",icon:t,data:o,endAdornment:i,showUndefined:s=!1})=>e.jsxs(j,{variant:"outlined",sx:{p:0,gap:0,bgcolor:"var(--ov-bg-surface-raised)"},children:[r&&e.jsxs(d,{sx:{px:1.5,py:1,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",bgcolor:"var(--ov-bg-surface)",borderBottom:"1px solid var(--ov-border-default)"},children:[e.jsxs(f,{direction:"row",spacing:Te(n),alignItems:"center",children:[t&&(typeof t=="string"?t.startsWith("http")?e.jsx(M,{src:t,sx:{height:16,width:16,borderRadius:"4px"}}):e.jsx(y.Icon,{name:t,size:De(n)}):t),e.jsx(u,{sx:{fontSize:Fe(n)},variant:"subtitle2",children:r})]}),i]}),e.jsx(d,{sx:{px:1.5,py:1},children:e.jsx(C,{container:!0,spacing:1,children:o.map(a=>{if(a.value||s)return e.jsxs(h.Fragment,{children:[e.jsx(C,{size:a.ratio?.[0]??5,children:e.jsxs(f,{direction:"row",spacing:1,alignItems:"center",children:[a.icon&&(typeof a.icon=="string"?a.icon.startsWith("http")?e.jsx(M,{src:a.icon,sx:{width:24,height:24}}):e.jsx(y.Icon,{name:a.icon,size:14}):a.icon),e.jsx(u,{variant:"caption",children:a.key})]})}),e.jsx(C,{size:a.ratio?.[1]??7,children:e.jsxs(f,{direction:"row",spacing:1,alignItems:"center",justifyContent:"space-between",children:[e.jsx(u,{variant:"caption",noWrap:!0,sx:{color:"var(--ov-fg-default)"},children:a.used?`${a.used} / ${a.value}`:a.value}),a.endAdornment]})})]},a.key)})})})]});G.displayName="DetailsCard";const K=({title:r,kvs:n,defaultExpanded:t})=>e.jsxs(D,{disabled:!Object.keys(n).length,defaultExpanded:t,disableGutters:!0,sx:{"&:before":{display:"none"}},children:[e.jsx(R,{expandIcon:e.jsx(Ie,{}),children:e.jsxs(f,{direction:"row",gap:1,alignItems:"center",children:[e.jsx(u,{variant:"subtitle2",children:r}),e.jsx(b,{size:"small",variant:"outlined",color:"primary",label:Object.keys(n).length,sx:{borderRadius:"4px"}})]})}),e.jsx(W,{children:e.jsx(C,{container:!0,spacing:.25,children:Object.entries(n).map(([o,i])=>e.jsxs(h.Fragment,{children:[e.jsx(C,{size:6,children:e.jsx(u,{variant:"caption",sx:{fontWeight:400},children:o})}),e.jsx(C,{size:6,children:e.jsx(u,{variant:"caption",sx:{fontWeight:600},children:i})})]},o))})})]});K.displayName="KVCard";function We(r){switch(r){case"outline":case"ghost":return"outlined";default:return"filled"}}function Re(r,n){if(r==="soft"){const t=w.toCssColor(n);return{bgcolor:`color-mix(in srgb, ${t} 18%, transparent)`,color:t,border:"1px solid",borderColor:`color-mix(in srgb, ${t} 30%, transparent)`,fontWeight:600,"& .MuiChip-label":{color:t},"& .MuiChip-icon":{color:t},"& .MuiChip-deleteIcon":{color:t,opacity:.7,"&:hover":{opacity:1}}}}if(r==="ghost")return{borderColor:"transparent",bgcolor:"transparent"}}function Pe(r){if(r==="xs")return{height:20,fontSize:"0.6875rem","& .MuiChip-label":{px:"6px"},"& .MuiChip-icon":{fontSize:"0.75rem",flexShrink:0}};if(r==="xl")return{height:40,fontSize:"1rem","& .MuiChip-label":{px:"16px"}}}const Oe={soft:"soft",outlined:"outline",solid:"solid",plain:"ghost",filled:"solid"};function k({label:r,children:n,color:t="neutral",emphasis:o,variant:i,size:s="sm",shape:a,textTransform:l,icon:x,startAdornment:c,endAdornment:p,deletable:m=!1,onDelete:v,onClick:he,disabled:ge=!1,sx:ve}){const E=o??(i?Oe[i]??"soft":"soft"),me=r??n,je=x??c,be=E==="soft"?"filled":We(E),ye=Re(E,t),Se=Pe(s),Ce=a?{borderRadius:w.toBorderRadius(a)}:void 0,we=l?{"& .MuiChip-label":{textTransform:l}}:void 0;return e.jsx(b,{label:me,color:w.toMuiColor(t),variant:be,size:w.toMuiSize(s),icon:je,onDelete:m||v?v??void 0:void 0,onClick:he,disabled:ge,sx:{...ye,...Se,...Ce,...we,...ve}})}k.displayName="Chip";const $e={sm:{minHeight:28,headerPy:"4px",headerPx:1,fontSize:12,iconSize:14,chevronSize:14},md:{minHeight:32,headerPy:"6px",headerPx:1.25,fontSize:13,iconSize:16,chevronSize:16},lg:{minHeight:38,headerPy:"10px",headerPx:1.5,fontSize:14,iconSize:18,chevronSize:18}};function V(r){switch(r){case"bordered":return{borderRadius:"6px",border:"1px solid var(--ov-border-default)"};case"plain":return{};case"flush":return{}}}function He(r,n){return n===0?!1:r!=="flush"}function _({section:r,size:n,monospace:t,expanded:o,onExpandedChange:i}){const s=$e[n],a=o!==void 0||r.expanded!==void 0,l=o??r.expanded,x=(m,v)=>{i?.(v),r.onExpandedChange?.(v)},c={disableGutters:!0,disabled:r.disabled,onChange:x,sx:{boxShadow:"none",background:"transparent !important","&:before":{display:"none"},"&.Mui-expanded":{margin:0}}};a?c.expanded=l:c.defaultExpanded=r.defaultExpanded;const p=()=>r.icon?typeof r.icon=="string"?e.jsx(d,{sx:{display:"flex",alignItems:"center",mr:.75,color:"var(--ov-fg-muted)"},children:e.jsx(y.Icon,{name:r.icon,size:s.iconSize})}):e.jsx(d,{sx:{display:"flex",alignItems:"center",mr:.75,color:"var(--ov-fg-muted)"},children:r.icon}):null;return e.jsxs(D,{...c,children:[e.jsxs(R,{expandIcon:null,sx:{minHeight:s.minHeight,py:s.headerPy,px:s.headerPx,"&:hover":{bgcolor:"var(--ov-state-hover)"},"&.Mui-expanded":{minHeight:s.minHeight},"& .MuiAccordionSummary-content":{margin:0,display:"flex",alignItems:"center",gap:0,"&.Mui-expanded":{margin:0}}},children:[e.jsx(Ge,{size:s.chevronSize}),p(),e.jsx(ze.Text,{size:n==="lg"?"md":n,weight:"semibold",inline:!0,sx:{color:"var(--ov-fg-base)",...t&&{fontFamily:"var(--ov-font-mono)",fontSize:s.fontSize},...!t&&{fontSize:s.fontSize},lineHeight:1},children:r.title}),r.count!==void 0&&e.jsx(d,{sx:{ml:.75},children:e.jsx(k,{size:"xs",color:"neutral",emphasis:"soft",label:r.count})}),e.jsx(d,{sx:{flex:1}}),r.endDecorator&&e.jsx(d,{sx:{display:"flex",alignItems:"center",ml:1},onClick:m=>m.stopPropagation(),children:r.endDecorator})]}),e.jsx(W,{sx:{p:0},children:r.children})]})}function Ge({size:r}){return e.jsxs(d,{sx:{display:"flex",alignItems:"center",mr:.75,color:"var(--ov-fg-muted)"},children:[e.jsx(d,{component:"span",sx:{display:"flex",".MuiAccordionSummary-root.Mui-expanded &":{display:"none"}},children:e.jsx(g.LuChevronRight,{size:r})}),e.jsx(d,{component:"span",sx:{display:"none",".MuiAccordionSummary-root.Mui-expanded &":{display:"flex"}},children:e.jsx(g.LuChevronDown,{size:r})})]})}function Ke(){return e.jsx(d,{sx:{height:"1px",bgcolor:"var(--ov-border-default)"}})}function U({sections:r,variant:n="bordered",size:t="md",monospace:o=!1,exclusive:i=!1,sx:s}){const[a,l]=h.useState(()=>{if(!i)return null;const c=r.findIndex(p=>p.defaultExpanded||p.expanded);return c>=0?c:null}),x=h.useCallback(c=>p=>{i&&l(p?c:null)},[i]);return r.length===0?e.jsx(e.Fragment,{}):e.jsx(d,{sx:{flexGrow:0,...V(n),...typeof s=="object"&&!Array.isArray(s)?s:{}},children:r.map((c,p)=>{const m=c.key??(typeof c.title=="string"?c.title:String(p)),v=i?{expanded:a===p,onExpandedChange:x(p)}:{};return e.jsxs(h.Fragment,{children:[He(n,p)&&e.jsx(Ke,{}),e.jsx(_,{section:c,size:t,monospace:o,...v})]},m)})})}U.displayName="ExpandableSections";function Y({variant:r="bordered",size:n="md",monospace:t=!1,...o}){return e.jsx(d,{sx:{...V(r)},children:e.jsx(_,{section:o,size:n,monospace:t})})}Y.displayName="ExpandableSection";const Ve={NONE:"",BYTES:"B",KB:"KB",MB:"MB",GB:"GB",PERCENTAGE:"%",MILLISECONDS:"ms",SECONDS:"s",COUNT:"",OPS_PER_SEC:"ops/s",BYTES_PER_SEC:"B/s",MILLICORES:"m",CORES:"cores"};function q(r,n){const t=Ve[n]??n;return n==="BYTES"||n==="bytes"?r>=1024*1024*1024?`${(r/(1024*1024*1024)).toFixed(1)} GB`:r>=1024*1024?`${(r/(1024*1024)).toFixed(1)} MB`:r>=1024?`${(r/1024).toFixed(1)} KB`:`${r} B`:n==="MILLICORES"||n==="millicores"?r>=1e3?`${(r/1e3).toFixed(2)} cores`:`${Math.round(r)}${t}`:Number.isInteger(r)?`${r}${t?` ${t}`:""}`:`${r.toFixed(2)}${t?` ${t}`:""}`}const _e=({metric:r})=>{const n=r.capacity!=null&&r.capacity>0,t=n?Math.min(r.value/r.capacity*100,100):null,o=()=>t==null?"primary":t>=90?"error":t>=70?"warning":"primary";return e.jsxs(d,{sx:{minWidth:0,flex:1},children:[e.jsxs(f,{direction:"row",spacing:.5,alignItems:"center",sx:{mb:.25},children:[r.icon&&e.jsx(y.Icon,{name:r.icon,style:{fontSize:14,opacity:.7}}),e.jsx(u,{variant:"caption",sx:{fontWeight:500,opacity:.8,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r.name})]}),e.jsx(u,{variant:"body2",sx:{fontWeight:600,fontVariantNumeric:"tabular-nums"},children:q(r.value,r.unit)}),n&&e.jsxs(d,{sx:{mt:.5},children:[e.jsx(P,{variant:"determinate",value:t,color:o(),sx:{height:4,borderRadius:2}}),e.jsxs(u,{variant:"caption",sx:{opacity:.6,fontSize:"0.65rem"},children:[t.toFixed(0),"% of ",q(r.capacity,r.unit)]})]})]})},Ue=({providers:r,isLoading:n=!1,error:t,sx:o})=>n&&r.length===0?e.jsx(d,{sx:{display:"flex",justifyContent:"center",py:2,...o},children:e.jsx(A,{size:20})}):t?e.jsx(d,{sx:{px:1,py:.5,...o},children:e.jsx(u,{variant:"caption",color:"error",children:t})}):r.length===0?null:e.jsx(f,{spacing:1.5,sx:o,children:r.map(i=>e.jsxs(d,{children:[r.length>1&&e.jsxs(f,{direction:"row",spacing:.5,alignItems:"center",sx:{mb:.75},children:[i.providerIcon&&e.jsx(y.Icon,{name:i.providerIcon,style:{fontSize:14}}),e.jsx(b,{label:i.providerName,size:"small",variant:"outlined",sx:{height:20,fontSize:"0.7rem"}})]}),e.jsx(f,{direction:"row",spacing:1.5,sx:{flexWrap:"wrap","& > *":{minWidth:100}},children:i.metrics.map(s=>e.jsx(_e,{metric:s},s.metricID))})]},i.providerID))}),Ye={xs:!0,sm:!0,md:!1,lg:!1,xl:!1};function J({children:r,size:n="md",subheader:t,dense:o,disablePadding:i=!1,sx:s}){return e.jsx(Le,{dense:o??Ye[n],disablePadding:i,subheader:t?e.jsx(O,{children:t}):void 0,sx:s,children:r})}J.displayName="List";function Q({sx:r}){return e.jsx(I,{component:"li",sx:r})}Q.displayName="ListDivider";function X({children:r,primary:n,secondary:t,icon:o,action:i,selected:s=!1,disabled:a=!1,onClick:l,sx:x}){return r&&!n?l?e.jsx(z,{disablePadding:!0,secondaryAction:i,sx:x,children:e.jsxs(B,{selected:s,disabled:a,onClick:l,children:[o&&e.jsx(L,{children:o}),r]})}):e.jsxs(z,{secondaryAction:i,sx:x,children:[o&&e.jsx(L,{children:o}),r]}):l?e.jsx(z,{disablePadding:!0,secondaryAction:i,sx:x,children:e.jsxs(B,{selected:s,disabled:a,onClick:l,children:[o&&e.jsx(L,{children:o}),e.jsx(N,{primary:n,secondary:t}),r]})}):e.jsxs(z,{secondaryAction:i,sx:x,children:[o&&e.jsx(L,{children:o}),e.jsx(N,{primary:n,secondary:t}),r]})}X.displayName="ListItem";function Z({ratio:r="1/1",children:n,sx:t}){return e.jsx(d,{sx:{position:"relative",width:"100%",aspectRatio:typeof r=="number"?String(r):r,overflow:"hidden","& > *":{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"cover"},...t},children:n})}Z.displayName="AspectRatio";function ee({value:r,truncate:n=!0,maxWidth:t,sx:o,variant:i="mono"}){const[s,a]=h.useState(!1);return e.jsxs(d,{onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),sx:{display:"inline-flex",alignItems:"center",gap:.5,maxWidth:t,minWidth:0,...o},children:[i==="mono"?e.jsx(u,{variant:"body2",sx:{fontSize:"0.8125rem",color:"var(--ov-fg-default)",fontFamily:"var(--ov-font-mono)",...n&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},children:r}):e.jsx("span",{style:{...n?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}},children:r}),e.jsx("span",{onClick:l=>l.stopPropagation(),style:{display:"inline-flex",alignItems:"center",visibility:s?"visible":"hidden",flexShrink:0},children:e.jsx(Me.CopyButton,{value:r,size:"xs"})})]})}ee.displayName="ClipboardText";function re({children:r,maxWidth:n,copyOnClick:t=!1,sx:o}){const i=h.useRef(null),[s,a]=h.useState(!1);h.useEffect(()=>{const c=i.current;c&&a(c.scrollWidth>c.clientWidth)},[r]);const l=()=>{t&&navigator.clipboard.writeText(r).catch(()=>{})},x=e.jsx(d,{ref:i,onClick:l,sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:n,fontSize:"0.8125rem",color:"var(--ov-fg-default)",cursor:t?"pointer":void 0,...o},children:r});return s?e.jsx(Ee,{title:r,arrow:!0,children:x}):x}re.displayName="OverflowText";const F={xs:"0.6875rem",sm:"0.8125rem",md:"0.875rem",lg:"1rem",xl:"1.125rem"};function te({value:r,onSave:n,placeholder:t="Click to edit",size:o="sm",sx:i}){const[s,a]=h.useState(!1),[l,x]=h.useState(r),c=h.useRef(null);h.useEffect(()=>{s&&c.current&&(c.current.focus(),c.current.select())},[s]);const p=()=>{a(!1),l!==r&&n(l)},m=()=>{a(!1),x(r)};return s?e.jsx(d,{sx:i,children:e.jsx(Ae,{inputRef:c,value:l,onChange:v=>x(v.target.value),onBlur:p,onKeyDown:v=>{v.key==="Enter"&&p(),v.key==="Escape"&&m()},variant:"outlined",size:"small",fullWidth:!0,slotProps:{input:{sx:{fontSize:F[o],py:.25,px:.5}}}})}):e.jsx(d,{onClick:()=>{x(r),a(!0)},sx:{cursor:"pointer",borderRadius:"4px",px:.5,py:.25,"&:hover":{bgcolor:"var(--ov-state-hover)"},...i},children:e.jsx(u,{variant:"body2",sx:{fontSize:F[o],color:r?"var(--ov-fg-default)":"var(--ov-fg-faint)"},children:r||t})})}te.displayName="InlineEdit";function ne({count:r,dot:n=!1,color:t="primary",max:o=99,invisible:i,anchorOrigin:s,children:a,sx:l}){return e.jsx(ke,{badgeContent:n?void 0:r,variant:n?"dot":"standard",color:w.toMuiColor(t),max:o,invisible:i,anchorOrigin:s,sx:l,children:a})}ne.displayName="Badge";const Je={xs:24,sm:32,md:40,lg:48,xl:64},Qe={xs:"0.625rem",sm:"0.75rem",md:"0.875rem",lg:"1rem",xl:"1.25rem"},T=["#e57373","#f06292","#ba68c8","#9575cd","#7986cb","#64b5f6","#4fc3f7","#4dd0e1","#4db6ac","#81c784","#aed581","#dce775","#fff176","#ffd54f","#ffb74d","#ff8a65"];function Xe(r){let n=0;for(let t=0;t<r.length;t++)n=r.charCodeAt(t)+((n<<5)-n),n|=0;return Math.abs(n)}function Ze(r){const n=r.trim().split(/\s+/);return n.length>=2?(n[0][0]+n[1][0]).toUpperCase():r.slice(0,2).toUpperCase()}function er(r){return T[Xe(r)%T.length]}const rr={xs:4,sm:6,md:8,lg:10,xl:12};function ie({src:r,name:n,size:t="md",variant:o="rounded",children:i,sx:s}){const a=Je[t],l=n?er(n):void 0,x=n?Ze(n):void 0,c=i??(r?void 0:x);return e.jsx(M,{src:r,alt:n,variant:o==="circular"?"circular":"rounded",sx:{width:a,height:a,fontSize:Qe[t],fontWeight:600,bgcolor:r?void 0:l,...o==="rounded"?{borderRadius:`${rr[t]}px`}:{},...s},children:c})}ie.displayName="Avatar";const tr={xs:12,sm:14,md:16,lg:20,xl:24};function nr(r,n){if(n.toLowerCase().startsWith("dockerfile"))return{icon:S.SiDocker,color:"var(--ov-info-default)"};switch(r){case".go":return{icon:S.SiGo,color:"#00ADD8"};case".ts":case".tsx":return{icon:S.SiTypescript,color:"#3178C6"};case".js":case".jsx":case".mjs":case".cjs":return{icon:S.SiJavascript,color:"#F7DF1E"};case".py":return{icon:S.SiPython,color:"#3776AB"};case".rs":return{icon:S.SiRust,color:"#DEA584"};case".yaml":case".yml":return{icon:g.LuFileCode,color:"var(--ov-info-default)"};case".json":return{icon:g.LuBraces,color:"#F5C518"};case".md":case".mdx":case".txt":case".log":return{icon:g.LuFileText,color:"var(--ov-fg-muted)"};case".html":case".htm":case".xml":case".svg":return{icon:g.LuFileCode,color:"#E44D26"};case".css":case".scss":case".less":return{icon:g.LuFileCode,color:"#264DE4"};case".png":case".jpg":case".jpeg":case".gif":case".webp":case".ico":return{icon:g.LuFileImage,color:"var(--ov-success-default)"};case".toml":case".ini":case".env":case".cfg":return{icon:g.LuFileCode,color:"var(--ov-fg-muted)"};case".sh":case".bash":case".zsh":return{icon:g.LuFileCode,color:"var(--ov-success-default)"};case".proto":return{icon:g.LuFileCode,color:"var(--ov-warning-default)"};case".sql":return{icon:g.LuFileCode,color:"#336791"};case".jsonc":return{icon:g.LuBraces,color:"#F5C518"};default:return{icon:g.LuFile,color:"var(--ov-fg-muted)"}}}function oe({filename:r,size:n="sm",sx:t}){const o=tr[n],i=r.lastIndexOf("."),s=i>=0?r.slice(i).toLowerCase():"",a=r.split("/").pop()??r,{icon:l,color:x}=nr(s,a);return e.jsx(d,{component:"span",sx:{display:"inline-flex",color:x,flexShrink:0,...typeof t=="object"&&!Array.isArray(t)?t:{}},children:e.jsx(l,{size:o})})}oe.displayName="FileIcon";function se({items:r,maxVisible:n=3,renderItem:t,sx:o}){const[i,s]=h.useState(!1),a=i?r:r.slice(0,n),l=r.length-n;return e.jsxs(d,{sx:{display:"flex",alignItems:"center",gap:.5,flexWrap:"wrap",...typeof o=="object"&&!Array.isArray(o)?o:{}},children:[a.map((x,c)=>t?t(x,c):e.jsx(d,{component:"span",children:x},c)),!i&&l>0&&e.jsx(b,{label:`+${l} more`,size:"small",onClick:()=>s(!0),sx:{fontSize:"var(--ov-text-xs)",height:20,cursor:"pointer",bgcolor:"var(--ov-bg-surface-inset)",color:"var(--ov-fg-muted)","&:hover":{bgcolor:"var(--ov-state-hover)"}}}),i&&l>0&&e.jsx(b,{label:"Show less",size:"small",onClick:()=>s(!1),sx:{fontSize:"var(--ov-text-xs)",height:20,cursor:"pointer",bgcolor:"var(--ov-bg-surface-inset)",color:"var(--ov-fg-muted)","&:hover":{bgcolor:"var(--ov-state-hover)"}}})]})}se.displayName="TruncatedList";function ae({query:r,suggestions:n,onSuggestionClick:t,sx:o}){return e.jsxs(d,{sx:{display:"flex",flexDirection:"column",alignItems:"center",py:4,gap:1.5,...typeof o=="object"&&!Array.isArray(o)?o:{}},children:[e.jsx(Be,{sx:{fontSize:32,color:"var(--ov-fg-faint)"}}),e.jsxs(u,{sx:{fontSize:"var(--ov-text-sm)",color:"var(--ov-fg-muted)"},children:["No results for “",r,"”"]}),n&&n.length>0&&e.jsxs(d,{sx:{display:"flex",gap:.75,flexWrap:"wrap",justifyContent:"center",mt:.5},children:[e.jsx(u,{sx:{fontSize:"var(--ov-text-xs)",color:"var(--ov-fg-faint)",width:"100%",textAlign:"center"},children:"Try:"}),n.map(i=>e.jsx(b,{label:i,size:"small",onClick:t?()=>t(i):void 0,sx:{fontSize:"var(--ov-text-xs)",cursor:t?"pointer":"default",bgcolor:"var(--ov-bg-surface-inset)",color:"var(--ov-fg-muted)"}},i))]})]})}ae.displayName="EmptySearch";function le({active:r,children:n,label:t,blur:o=!1,sx:i}){return e.jsxs(d,{sx:{position:"relative",...typeof i=="object"&&!Array.isArray(i)?i:{}},children:[n,r&&e.jsxs(d,{sx:{position:"absolute",inset:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:1.5,bgcolor:"rgba(0, 0, 0, 0.3)",zIndex:10,borderRadius:"inherit",...o&&{backdropFilter:"blur(3px)"}},children:[e.jsx(A,{size:28,sx:{color:"var(--ov-accent-fg)"}}),t&&e.jsx(u,{sx:{fontSize:"var(--ov-text-sm)",color:"#fff",fontWeight:500},children:t})]})]})}le.displayName="LoadingOverlay";function ce({shortcut:r}){const n=r.split("+").map(t=>t.trim());return e.jsx($.HotkeyHint,{keys:n})}ce.displayName="Kbd";function de({value:r,label:n,description:t,icon:o,trend:i,color:s="primary",sx:a}){const l=i?i.value>0?"up":i.value<0?"down":"flat":void 0,x=l==="up"?"var(--ov-success-default)":l==="down"?"var(--ov-danger-default)":"var(--ov-fg-muted)",c=l==="up"?"↑":l==="down"?"↓":"→";return e.jsxs(j,{variant:"outlined",sx:{p:2,display:"flex",flexDirection:"column",gap:.5,...a},children:[e.jsxs(f,{direction:"row",justifyContent:"space-between",alignItems:"flex-start",children:[e.jsxs(d,{children:[e.jsx(u,{sx:{fontSize:"var(--ov-text-2xl)",fontWeight:700,lineHeight:1.2,color:`var(${w.toCssColor(s)})`},children:r}),e.jsx(u,{variant:"body2",sx:{color:"var(--ov-fg-muted)",fontWeight:500,mt:.25},children:n})]}),o&&e.jsx(d,{sx:{color:"var(--ov-fg-faint)",fontSize:24,display:"flex"},children:o})]}),(i||t)&&e.jsxs(f,{direction:"row",alignItems:"center",spacing:1,sx:{mt:.5},children:[i&&e.jsxs(u,{variant:"caption",sx:{color:x,fontWeight:600},children:[c," ",Math.abs(i.value),"%",i.label?` ${i.label}`:""]}),t&&e.jsx(u,{variant:"caption",sx:{color:"var(--ov-fg-faint)"},children:t})]})]})}de.displayName="StatCard";function xe({media:r,mediaHeight:n=140,title:t,description:o,meta:i,actions:s,onClick:a,sx:l}){return e.jsxs(j,{variant:"outlined",onClick:a,sx:{p:0,cursor:a?"pointer":void 0,transition:"border-color 0.15s, box-shadow 0.15s","&:hover":a?{borderColor:"var(--ov-border-focus)",boxShadow:"0 2px 8px rgba(0,0,0,0.08)"}:void 0,...l},children:[typeof r=="string"?e.jsx(d,{sx:{height:n,width:"100%",backgroundImage:`url(${r})`,backgroundSize:"cover",backgroundPosition:"center",borderBottom:"1px solid var(--ov-border-default)"}}):e.jsx(d,{sx:{height:n,width:"100%",display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"var(--ov-bg-surface)",borderBottom:"1px solid var(--ov-border-default)",color:"var(--ov-fg-faint)",fontSize:40},children:r}),e.jsxs(d,{sx:{px:1.5,py:1.25},children:[e.jsx(u,{variant:"subtitle2",sx:{mb:.25},children:t}),o&&e.jsx(u,{variant:"body2",sx:{color:"var(--ov-fg-muted)",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:o}),i&&e.jsx(u,{variant:"caption",component:"div",sx:{color:"var(--ov-fg-faint)",mt:.5},children:i})]}),s&&e.jsx(f,{direction:"row",spacing:1,sx:{px:1.5,py:1,borderTop:"1px solid var(--ov-border-default)"},children:s})]})}xe.displayName="MediaCard";function ue({icon:r,title:n,description:t,primaryAction:o,secondaryAction:i,direction:s="vertical",sx:a}){const l=s==="horizontal";return e.jsxs(j,{variant:"outlined",sx:{p:2,display:"flex",flexDirection:l?"row":"column",alignItems:l?"center":"flex-start",gap:l?2:1,...a},children:[r&&e.jsx(d,{sx:{fontSize:32,color:"var(--ov-fg-muted)",display:"flex",flexShrink:0},children:r}),e.jsxs(d,{sx:{flex:1,minWidth:0},children:[e.jsx(u,{variant:"subtitle2",sx:{mb:.25},children:n}),t&&e.jsx(u,{variant:"body2",sx:{color:"var(--ov-fg-muted)"},children:t})]}),(o||i)&&e.jsxs(f,{direction:"row",spacing:1,sx:{mt:l?0:1,flexShrink:0},children:[o,i]})]})}ue.displayName="ActionCard";function fe({title:r,icon:n,headerAction:t,items:o,maxVisible:i=5,emptyMessage:s="No items",sx:a}){const x=i*40;return e.jsxs(j,{variant:"outlined",sx:{p:0,...a},children:[e.jsxs(f,{direction:"row",spacing:1,sx:{px:1.5,py:1},alignItems:"center",justifyContent:"space-between",children:[e.jsxs(f,{direction:"row",alignItems:"center",spacing:1,children:[n&&e.jsx(d,{sx:{display:"flex",color:"var(--ov-fg-muted)",fontSize:16},children:n}),e.jsx(u,{variant:"subtitle2",children:r})]}),t]}),e.jsx(I,{}),o.length===0?e.jsx(d,{sx:{px:1.5,py:2,textAlign:"center"},children:e.jsx(u,{variant:"body2",sx:{color:"var(--ov-fg-faint)"},children:s})}):e.jsx(d,{sx:{maxHeight:x,overflowY:"auto"},children:o.map((c,p)=>{const m=e.jsxs(f,{direction:"row",alignItems:"center",spacing:1,sx:{px:1.5,height:40,width:"100%",borderBottom:p<o.length-1?"1px solid var(--ov-border-default)":void 0,"&:hover":c.onClick?{bgcolor:"var(--ov-bg-surface-hover)"}:void 0,transition:"background-color 0.1s"},children:[c.icon&&e.jsx(d,{sx:{display:"flex",color:"var(--ov-fg-muted)",fontSize:16,flexShrink:0},children:c.icon}),e.jsxs(d,{sx:{flex:1,minWidth:0},children:[e.jsx(u,{variant:"body2",noWrap:!0,children:c.label}),c.secondary&&e.jsx(u,{variant:"caption",noWrap:!0,sx:{color:"var(--ov-fg-faint)"},children:c.secondary})]}),c.trailing&&e.jsx(d,{sx:{flexShrink:0,display:"flex",alignItems:"center"},children:c.trailing})]});return c.onClick?e.jsx(Ne,{onClick:c.onClick,sx:{display:"block",width:"100%",textAlign:"left"},children:m},c.key):e.jsx(h.Fragment,{children:m},c.key)})})]})}fe.displayName="ListCard";function pe({title:r,icon:n,status:t,statusLabel:o,description:i,metadata:s,headerAction:a,sx:l}){return e.jsxs(j,{variant:"outlined",sx:{p:0,...l},children:[e.jsxs(f,{direction:"row",spacing:1,sx:{px:1.5,py:1},alignItems:"center",justifyContent:"space-between",children:[e.jsxs(f,{direction:"row",alignItems:"center",spacing:1,children:[n&&e.jsx(d,{sx:{display:"flex",color:"var(--ov-fg-muted)",fontSize:16},children:n}),e.jsx(u,{variant:"subtitle2",children:r})]}),a]}),e.jsx(I,{}),e.jsxs(d,{sx:{px:1.5,py:1.25},children:[e.jsxs(f,{direction:"row",alignItems:"center",spacing:1,children:[e.jsx(qe.StatusDot,{status:t,pulse:t==="pending"}),e.jsx(u,{variant:"body2",sx:{fontWeight:600,textTransform:"capitalize"},children:o??t})]}),i&&e.jsx(u,{variant:"body2",sx:{color:"var(--ov-fg-muted)",mt:.5},children:i})]}),s&&s.length>0&&e.jsxs(e.Fragment,{children:[e.jsx(I,{}),e.jsx(d,{sx:{px:1.5,py:1},children:s.map((x,c)=>e.jsxs(f,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{py:.5,borderBottom:c<s.length-1?"1px solid var(--ov-border-default)":void 0},children:[e.jsx(u,{variant:"caption",sx:{color:"var(--ov-fg-muted)"},children:x.label}),e.jsx(u,{variant:"caption",sx:{color:"var(--ov-fg-default)",fontWeight:500},children:x.value})]},x.label))})]})]})}pe.displayName="StatusCard";exports.Divider=I;exports.Icon=y.Icon;exports.LinearProgress=P;exports.CircularProgress=A;exports.ListSubheader=O;exports.HotkeyHint=$.HotkeyHint;exports.ActionCard=ue;exports.AspectRatio=Z;exports.Avatar=ie;exports.Badge=ne;exports.Card=H;exports.Chip=k;exports.ClipboardText=ee;exports.DetailsCard=G;exports.EmptySearch=ae;exports.ExpandableSection=Y;exports.ExpandableSections=U;exports.FileIcon=oe;exports.InlineEdit=te;exports.KVCard=K;exports.Kbd=ce;exports.List=J;exports.ListCard=fe;exports.ListDivider=Q;exports.ListItem=X;exports.LoadingOverlay=le;exports.MediaCard=xe;exports.MetricsSection=Ue;exports.OverflowText=re;exports.StatCard=de;exports.StatusCard=pe;exports.TruncatedList=se;
|
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ import z from "@mui/material/ListItem";
|
|
|
28
28
|
import k from "@mui/material/ListItemButton";
|
|
29
29
|
import M from "@mui/material/ListItemIcon";
|
|
30
30
|
import B from "@mui/material/ListItemText";
|
|
31
|
-
import { C as ge } from "./CopyButton-
|
|
31
|
+
import { C as ge } from "./CopyButton-DWVcqdPe.js";
|
|
32
32
|
import ve from "@mui/material/Tooltip";
|
|
33
33
|
import be from "@mui/material/TextField";
|
|
34
34
|
import { H as ye } from "./HotkeyHint-6SOi-MaU.js";
|
package/dist/inputs.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),ue=require("react"),hs=require("@mui/material/OutlinedInput"),on=require("@mui/material/InputAdornment"),kt=require("@mui/material/IconButton"),ea=require("@mui/icons-material/Search"),ta=require("@mui/icons-material/Close"),na=require("./SearchInput-CFBBNdI2.cjs"),Et=require("@mui/material/TextField"),je=require("./types.cjs"),We=require("@mui/material/Box"),st=require("@mui/material/Typography"),oa=require("./Select-CnRBSc5w.cjs"),ra=require("@mui/material/Autocomplete"),sa=require("@mui/material/CircularProgress"),ia=require("@mui/material/Checkbox"),Do=require("@mui/material/FormControlLabel"),aa=require("@mui/material/RadioGroup"),la=require("@mui/material/Radio"),kn=require("@mui/material/FormControl"),ca=require("@mui/material/FormLabel"),ys=require("@mui/material/FormHelperText"),ua=require("@mui/material/Switch"),da=require("@mui/material/Slider"),bs=require("@mui/material/Chip"),gs=require("@mui/material/Popper"),xs=require("@mui/material/Paper"),To=require("@mui/material/MenuItem"),fa=require("@mui/material/ClickAwayListener"),Ge=require("@mui/material/Button"),pa=require("@mui/icons-material/Add"),ma=require("@mui/icons-material/Delete"),ko=require("@mui/material/Divider"),ha=require("@mui/material/Collapse"),ya=require("@mui/icons-material/ExpandMore"),ba=require("@mui/material/Popover"),h=require("./_commonjsHelpers-D3HyQheV.cjs"),j=require("@mui/material/styles"),yr=require("date-fns/addDays"),ga=require("date-fns/addSeconds"),xa=require("date-fns/addMinutes"),va=require("date-fns/addHours"),Sa=require("date-fns/addWeeks"),Pa=require("date-fns/addMonths"),Ca=require("date-fns/addYears"),br=require("date-fns/endOfDay"),wa=require("date-fns/endOfWeek"),gr=require("date-fns/endOfYear"),to=require("date-fns/format"),Da=require("date-fns/getDate"),Ta=require("date-fns/getDaysInMonth"),ka=require("date-fns/getHours"),Ea=require("date-fns/getMinutes"),Oa=require("date-fns/getMonth"),Ma=require("date-fns/getSeconds"),Ra=require("date-fns/getMilliseconds"),Ia=require("date-fns/getWeek"),Va=require("date-fns/getYear"),no=require("date-fns/isAfter"),oo=require("date-fns/isBefore"),_a=require("date-fns/isEqual"),Na=require("date-fns/isSameDay"),Fa=require("date-fns/isSameYear"),ja=require("date-fns/isSameMonth"),Aa=require("date-fns/isSameHour"),La=require("date-fns/isValid"),$a=require("date-fns/parse"),Ba=require("date-fns/setDate"),Wa=require("date-fns/setHours"),qa=require("date-fns/setMinutes"),Ha=require("date-fns/setMonth"),za=require("date-fns/setSeconds"),Ya=require("date-fns/setMilliseconds"),Ua=require("date-fns/setYear"),Ka=require("date-fns/startOfDay"),Ga=require("date-fns/startOfMonth"),Qa=require("date-fns/endOfMonth"),Xa=require("date-fns/startOfWeek"),Za=require("date-fns/startOfYear"),Ja=require("date-fns/isWithinInterval"),el=require("date-fns/locale/en-US"),vs=require("@mui/material/useMediaQuery"),xr=require("@mui/material/Tab"),vr=require("@mui/material/Tabs"),gt=require("@mui/material/utils"),En=require("@mui/material/Fade"),fn=require("react-dom"),tl=require("@mui/material/ButtonBase"),nl=require("@mui/material/DialogActions"),ol=require("@mui/material/List"),rl=require("@mui/material/ListItem"),Ss=require("@mui/material/MenuList"),bt=require("@mui/material/version"),sl=require("@mui/material/InputLabel"),il=require("@mui/material/Grow"),al=require("@mui/material/Unstable_TrapFocus"),ll=require("@mui/material/DialogContent"),ro=require("@mui/material/Dialog");function cl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const g=cl(ue);function ul({value:e,onChange:t,debounce:o=500,placeholder:r="Search",...s}){const[i,a]=ue.useState(e),l=()=>{t("")};return ue.useEffect(()=>{a(e)},[e]),ue.useEffect(()=>{const c=setTimeout(()=>{t(i)},o);return()=>{clearTimeout(c)}},[i]),y.jsx(hs,{...s,value:i,size:"small",placeholder:r,type:"text",autoComplete:"off",onChange:c=>{a(c.target.value)},startAdornment:y.jsx(on,{position:"start",children:y.jsx(ea,{fontSize:"small"})}),endAdornment:i?y.jsx(on,{position:"end",children:y.jsx(kt,{size:"small",onClick:l,edge:"end",children:y.jsx(ta,{fontSize:"small"})})}):void 0,sx:{flexGrow:1,maxWidth:500,minWidth:300,minHeight:36},inputProps:{autoCorrect:"off",autoComplete:"off"}})}function Ps({value:e="",onChange:t,size:o="md",color:r="neutral",readOnly:s=!1,monospace:i=!1,debounced:a=!1,debounceMs:l=300,label:c,helperText:u,error:d,placeholder:m,fullWidth:p,startAdornment:b,endAdornment:v,disabled:f,type:x,variant:P="outlined",autoFocus:C,autoComplete:w,onKeyDown:T,onBlur:S,onFocus:_,name:V,id:B,inputProps:M,sx:N}){const[R,D]=ue.useState(e),I=ue.useRef(null);ue.useEffect(()=>{D(e)},[e]);const A=ue.useCallback(q=>{const E=q.target.value;a?(D(E),I.current&&clearTimeout(I.current),I.current=setTimeout(()=>t?.(E),l)):(D(E),t?.(E))},[a,l,t]);ue.useEffect(()=>()=>{I.current&&clearTimeout(I.current)},[]);const L=je.toMuiInputSize(o),$=je.toMuiColor(r),F=typeof d=="string"?!!d:d,se=typeof d=="string"?d:void 0;return y.jsx(Et,{value:R,onChange:A,size:L,color:$==="default"||$==="inherit"?void 0:$,variant:P,label:c,helperText:se??u,error:F,placeholder:m,fullWidth:p,disabled:f,type:x,autoFocus:C,autoComplete:w,onKeyDown:T,onBlur:S,onFocus:_,name:V,id:B,slotProps:{input:{readOnly:s,startAdornment:b?y.jsx(on,{position:"start",children:b}):void 0,endAdornment:v?y.jsx(on,{position:"end",children:v}):void 0,sx:i?{fontFamily:"var(--ov-font-mono)"}:void 0},htmlInput:M},style:{"--ov-input-height":je.INPUT_HEIGHTS[o]},sx:N})}Ps.displayName="TextField";function Cs({value:e,onChange:t,size:o="md",color:r="neutral",autosize:s=!1,maxLength:i,showCount:a=!1,rows:l=3,minRows:c,maxRows:u=8,label:d,helperText:m,error:p,placeholder:b,fullWidth:v,disabled:f,sx:x}){const P=je.toMuiInputSize(o),C=je.toMuiColor(r),w=typeof p=="string"?!!p:p,T=typeof p=="string"?p:void 0,S=a&&i?`${e.length} / ${i}`:a?`${e.length}`:void 0;return y.jsxs(We,{sx:x,children:[y.jsx(Et,{value:e,onChange:_=>{const V=i?_.target.value.slice(0,i):_.target.value;t(V)},size:P,color:C==="default"||C==="inherit"?void 0:C,label:d,helperText:T??m,error:w,placeholder:b,fullWidth:v,disabled:f,multiline:!0,minRows:c??l,maxRows:s?u:l,style:{"--ov-input-height":je.INPUT_HEIGHTS[o]},slotProps:{htmlInput:{maxLength:i}}}),S&&y.jsx(st,{variant:"caption",sx:{display:"block",textAlign:"right",mt:.25,color:"var(--ov-fg-faint)",fontSize:"var(--ov-text-xs)"},children:S})]})}Cs.displayName="TextArea";function ws({options:e,value:t,onChange:o,size:r="md",color:s="neutral",creatable:i=!1,loading:a=!1,groupBy:l,renderOption:c,label:u,helperText:d,placeholder:m,error:p,multiple:b=!1,fullWidth:v,disabled:f,sx:x}){const P=je.toMuiInputSize(r),C=je.toMuiColor(s),w=typeof p=="string"?!!p:p,T=typeof p=="string"?p:void 0;return y.jsx(ra,{options:e,value:t,onChange:(S,_)=>o(_),getOptionLabel:S=>typeof S=="string"?S:S.label,isOptionEqualToValue:(S,_)=>S.value===_.value,multiple:b,freeSolo:i,loading:a,disabled:f,groupBy:l,size:P,fullWidth:v,renderOption:c?(S,_)=>ue.createElement("li",{...S,key:_.value},c(_)):void 0,renderInput:S=>y.jsx(Et,{...S,label:u,placeholder:m,helperText:T??d,error:w,color:C==="default"||C==="inherit"?void 0:C,slotProps:{input:{...S.InputProps,endAdornment:y.jsxs(y.Fragment,{children:[a&&y.jsx(sa,{color:"inherit",size:16}),S.InputProps.endAdornment]})}}}),style:{"--ov-input-height":je.INPUT_HEIGHTS[r]},sx:x})}ws.displayName="Autocomplete";function Ds({checked:e,onChange:t,size:o="sm",color:r="primary",indeterminate:s=!1,label:i,disabled:a,sx:l}){const c=je.toMuiSize(o),u=je.toMuiColor(r),d=y.jsx(ia,{checked:e,onChange:(m,p)=>t(p),size:c,color:u==="default"||u==="inherit"?"primary":u,indeterminate:s,disabled:a});return i?y.jsx(Do,{control:d,label:i,disabled:a,sx:{"& .MuiFormControlLabel-label":{fontSize:o==="xs"||o==="sm"?"var(--ov-text-sm)":void 0},...typeof l=="object"&&!Array.isArray(l)?l:{}}}):y.jsx("span",{style:void 0,children:d})}Ds.displayName="Checkbox";function Ts({options:e,value:t,onChange:o,size:r="sm",color:s="primary",layout:i="column",label:a,sx:l}){const c=je.toMuiSize(r),u=je.toMuiColor(s);return y.jsxs(kn,{sx:l,children:[a&&y.jsx(ca,{sx:{fontSize:"var(--ov-text-sm)",fontWeight:500,mb:.5},children:a}),y.jsx(aa,{value:t,onChange:(d,m)=>o(m),row:i==="row",children:e.map(d=>y.jsx(Do,{value:d.value,disabled:d.disabled,control:y.jsx(la,{size:c,color:u==="default"||u==="inherit"?"primary":u}),label:d.description?y.jsxs("span",{children:[y.jsx("span",{children:d.label}),y.jsx(ys,{sx:{m:0,mt:-.25},children:d.description})]}):d.label,sx:{"& .MuiFormControlLabel-label":{fontSize:r==="xs"||r==="sm"?"var(--ov-text-sm)":void 0}}},d.value))})]})}Ts.displayName="RadioGroup";const dl={xs:{width:32,height:18,thumb:14,translate:14},sm:{width:36,height:20,thumb:16,translate:16},md:{width:44,height:24,thumb:20,translate:20},lg:{width:52,height:28,thumb:24,translate:24},xl:{width:60,height:32,thumb:28,translate:28}};function ks({checked:e,onChange:t,size:o="md",color:r="primary",label:s,labelPlacement:i="end",disabled:a,sx:l}){const c=je.toMuiColor(r),u=dl[o],d=o!=="md"?{width:u.width,height:u.height,"& .MuiSwitch-switchBase.Mui-checked":{transform:`translateX(${u.translate}px)`},"& .MuiSwitch-thumb":{width:u.thumb,height:u.thumb}}:{},m=y.jsx(ua,{checked:e,onChange:(p,b)=>t(b),color:c==="default"||c==="inherit"?"primary":c,disabled:a,sx:d});return s?y.jsx(Do,{control:m,label:s,labelPlacement:i,disabled:a,sx:{"& .MuiFormControlLabel-label":{fontSize:o==="xs"||o==="sm"?"var(--ov-text-sm)":void 0},...typeof l=="object"&&!Array.isArray(l)?l:{}}}):m}ks.displayName="Switch";function Es({value:e,onChange:t,size:o="sm",color:r="primary",marks:s,showValue:i=!1,min:a=0,max:l=100,step:c=1,disabled:u,sx:d}){const m=je.toMuiSize(o),p=je.toMuiColor(r);return y.jsx(da,{value:e,onChange:(b,v)=>t(v),size:m,color:p==="default"||p==="inherit"?"primary":p,marks:s,valueLabelDisplay:i?"auto":"off",min:a,max:l,step:c,disabled:u,sx:d})}Es.displayName="Slider";function Os({value:e,onChange:t,suggestions:o,maxTags:r,creatable:s=!0,size:i="sm",placeholder:a="Add tag...",sx:l}){const[c,u]=ue.useState(""),[d,m]=ue.useState(!1),p=ue.useRef(null),b=ue.useRef(null),v=je.toMuiSize(i),f=ue.useCallback(w=>{const T=w.trim();T&&(e.includes(T)||r&&e.length>=r||!s&&o&&!o.includes(T)||(t([...e,T]),u(""),m(!1)))},[e,t,r,s,o]),x=ue.useCallback(w=>{t(e.filter(T=>T!==w))},[e,t]),P=w=>{w.key==="Enter"||w.key===","?(w.preventDefault(),f(c)):w.key==="Backspace"&&!c&&e.length>0&&x(e[e.length-1])},C=o?.filter(w=>w.toLowerCase().includes(c.toLowerCase())&&!e.includes(w));return y.jsx(fa,{onClickAway:()=>m(!1),children:y.jsxs(We,{ref:b,sx:l,children:[y.jsxs(We,{sx:{display:"flex",flexWrap:"wrap",gap:.5,alignItems:"center",border:"1px solid var(--ov-border-default)",borderRadius:"var(--ov-radius-md, 6px)",padding:"4px 8px",bgcolor:"var(--ov-bg-surface)",minHeight:v==="small"?36:40,"&:focus-within":{borderColor:"var(--ov-accent)"}},children:[e.map(w=>y.jsx(bs,{label:w,size:"small",onDelete:()=>x(w),sx:{fontSize:"var(--ov-text-xs)"}},w)),y.jsx(hs,{inputRef:p,value:c,onChange:w=>{u(w.target.value),o&&m(!0)},onKeyDown:P,onFocus:()=>{o&&c&&m(!0)},placeholder:e.length===0?a:"",size:"small",sx:{flex:1,minWidth:80,height:"auto",backgroundColor:"transparent !important","& fieldset":{border:"none"},"& input":{p:"2px 0",fontSize:"var(--ov-text-sm)"}}})]}),d&&C&&C.length>0&&y.jsx(gs,{open:!0,anchorEl:b.current,placement:"bottom-start",style:{zIndex:1300,width:b.current?.clientWidth},children:y.jsx(xs,{sx:{mt:.5,maxHeight:200,overflow:"auto",border:"1px solid var(--ov-border-default)"},children:C.map(w=>y.jsx(To,{onClick:()=>f(w),sx:{fontSize:"var(--ov-text-sm)"},children:w},w))})})]})})}Os.displayName="TagInput";let fl=0;function gn(){return`kv-${fl++}`}function pl(e){return Object.entries(e).map(([t,o])=>({id:gn(),key:t,value:o}))}function ml(e){const t={};for(const o of e)o.key&&(t[o.key]=o.value);return t}function Ms({value:e,onChange:t,addLabel:o="Add",readOnly:r=!1,validateKey:s,validateValue:i,size:a="sm",sx:l}){const[c,u]=ue.useState(()=>{const f=pl(e);return f.length>0?f:[{id:gn(),key:"",value:""}]}),d=je.toMuiSize(a),m=ue.useCallback(f=>{u(f),t(ml(f))},[t]),p=(f,x,P)=>{m(c.map(C=>C.id===f?{...C,[x]:P}:C))},b=f=>{const x=c.filter(P=>P.id!==f);m(x.length>0?x:[{id:gn(),key:"",value:""}])},v=()=>{m([...c,{id:gn(),key:"",value:""}])};return y.jsxs(We,{sx:l,children:[c.map(f=>{const x=s?s(f.key):void 0,P=i?i(f.value):void 0;return y.jsxs(We,{sx:{display:"flex",gap:1,mb:1,alignItems:"center"},children:[y.jsx(Et,{value:f.key,onChange:C=>p(f.id,"key",C.target.value),size:d,placeholder:"Key",error:!!x,helperText:x,disabled:r,sx:{flex:1}}),y.jsx(Et,{value:f.value,onChange:C=>p(f.id,"value",C.target.value),size:d,placeholder:"Value",error:!!P,helperText:P,disabled:r,sx:{flex:1}}),!r&&y.jsx(kt,{size:"small",onClick:()=>b(f.id),sx:{color:"var(--ov-fg-faint)","&:hover":{color:"var(--ov-danger-default)"}},children:y.jsx(ma,{fontSize:"small"})})]},f.id)}),!r&&y.jsx(Ge,{size:d,onClick:v,startIcon:y.jsx(pa,{}),sx:{color:"var(--ov-fg-muted)",textTransform:"none",fontWeight:500,fontSize:"var(--ov-text-sm)"},children:o})]})}Ms.displayName="KeyValueEditor";function Rs({label:e,required:t=!1,error:o,helperText:r,children:s,layout:i="vertical",sx:a}){const l=i==="horizontal";return y.jsxs(We,{sx:{mb:2,...l&&{display:"grid",gridTemplateColumns:"1fr 2fr",gap:2,alignItems:"start"},...typeof a=="object"&&!Array.isArray(a)?a:{}},children:[y.jsxs(st,{component:"label",variant:"body2",sx:{fontWeight:500,color:"var(--ov-fg-default)",fontSize:"var(--ov-text-sm)",mb:l?0:.5,pt:l?1:0,display:"block"},children:[e,t&&y.jsx(We,{component:"span",sx:{color:"var(--ov-danger-default)",ml:.25},children:"*"})]}),y.jsxs(We,{children:[s,(o||r)&&y.jsx(st,{variant:"caption",sx:{display:"block",mt:.5,fontSize:"var(--ov-text-xs)",color:o?"var(--ov-danger-default)":"var(--ov-fg-faint)"},children:typeof o=="string"?o:r})]})]})}Rs.displayName="FormField";function Is({title:e,description:t,collapsible:o=!1,defaultCollapsed:r=!1,children:s,sx:i}){const[a,l]=ue.useState(r);return y.jsxs(We,{sx:{mb:3,...typeof i=="object"&&!Array.isArray(i)?i:{}},children:[y.jsx(ko,{sx:{mb:2}}),y.jsxs(We,{sx:{display:"flex",alignItems:"center",gap:1,mb:t?.5:1.5,cursor:o?"pointer":void 0},onClick:o?()=>l(c=>!c):void 0,children:[y.jsx(st,{variant:"subtitle1",sx:{fontWeight:600,color:"var(--ov-fg-base)",fontSize:"var(--ov-text-base)"},children:e}),o&&y.jsx(kt,{size:"small",sx:{transform:a?"rotate(-90deg)":"rotate(0deg)",transition:"transform 200ms"},children:y.jsx(ya,{fontSize:"small"})})]}),t&&y.jsx(st,{variant:"body2",sx:{color:"var(--ov-fg-muted)",mb:1.5,maxWidth:600,lineHeight:1.5},children:t}),o?y.jsx(ha,{in:!a,children:s}):s]})}Is.displayName="FormSection";const hl=["#ef4444","#f97316","#eab308","#22c55e","#14b8a6","#3b82f6","#6366f1","#8b5cf6","#ec4899","#f43f5e","#0ea5e9","#06b6d4","#10b981","#84cc16","#a3e635","#fbbf24","#fb923c","#f87171","#a78bfa","#c084fc"];function Vs({value:e,onChange:t,presets:o=hl,allowCustom:r=!0,sx:s}){const[i,a]=ue.useState(e);return y.jsxs(We,{sx:{display:"flex",flexDirection:"column",gap:1,...s},children:[y.jsx(We,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 28px)",gap:"6px"},children:o.map(l=>y.jsx(We,{onClick:()=>{t(l),a(l)},sx:{width:28,height:28,borderRadius:"4px",bgcolor:l,cursor:"pointer",border:e===l?"2px solid var(--ov-fg-base)":"2px solid transparent","&:hover":{transform:"scale(1.1)"},transition:"transform 0.1s, border 0.1s"}},l))}),r&&y.jsxs(We,{sx:{display:"flex",alignItems:"center",gap:1},children:[y.jsx(We,{sx:{width:28,height:28,borderRadius:"4px",bgcolor:i,border:"1px solid var(--ov-border-default)",flexShrink:0}}),y.jsx(Et,{value:i,onChange:l=>{a(l.target.value),/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(l.target.value)&&t(l.target.value)},size:"small",placeholder:"#000000",slotProps:{input:{sx:{fontFamily:"var(--ov-font-mono)",fontSize:"0.8125rem"}}},sx:{flex:1,maxWidth:120}})]})]})}Vs.displayName="ColorPicker";var pn={exports:{}},mn={exports:{}},xe={};var Sr;function yl(){if(Sr)return xe;Sr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function w(S){if(typeof S=="object"&&S!==null){var _=S.$$typeof;switch(_){case t:switch(S=S.type,S){case c:case u:case r:case i:case s:case m:return S;default:switch(S=S&&S.$$typeof,S){case l:case d:case v:case b:case a:return S;default:return _}}case o:return _}}}function T(S){return w(S)===u}return xe.AsyncMode=c,xe.ConcurrentMode=u,xe.ContextConsumer=l,xe.ContextProvider=a,xe.Element=t,xe.ForwardRef=d,xe.Fragment=r,xe.Lazy=v,xe.Memo=b,xe.Portal=o,xe.Profiler=i,xe.StrictMode=s,xe.Suspense=m,xe.isAsyncMode=function(S){return T(S)||w(S)===c},xe.isConcurrentMode=T,xe.isContextConsumer=function(S){return w(S)===l},xe.isContextProvider=function(S){return w(S)===a},xe.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},xe.isForwardRef=function(S){return w(S)===d},xe.isFragment=function(S){return w(S)===r},xe.isLazy=function(S){return w(S)===v},xe.isMemo=function(S){return w(S)===b},xe.isPortal=function(S){return w(S)===o},xe.isProfiler=function(S){return w(S)===i},xe.isStrictMode=function(S){return w(S)===s},xe.isSuspense=function(S){return w(S)===m},xe.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===u||S===i||S===s||S===m||S===p||typeof S=="object"&&S!==null&&(S.$$typeof===v||S.$$typeof===b||S.$$typeof===a||S.$$typeof===l||S.$$typeof===d||S.$$typeof===x||S.$$typeof===P||S.$$typeof===C||S.$$typeof===f)},xe.typeOf=w,xe}var ve={};var Pr;function bl(){return Pr||(Pr=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function w(k){return typeof k=="string"||typeof k=="function"||k===r||k===u||k===i||k===s||k===m||k===p||typeof k=="object"&&k!==null&&(k.$$typeof===v||k.$$typeof===b||k.$$typeof===a||k.$$typeof===l||k.$$typeof===d||k.$$typeof===x||k.$$typeof===P||k.$$typeof===C||k.$$typeof===f)}function T(k){if(typeof k=="object"&&k!==null){var ae=k.$$typeof;switch(ae){case t:var ne=k.type;switch(ne){case c:case u:case r:case i:case s:case m:return ne;default:var ce=ne&&ne.$$typeof;switch(ce){case l:case d:case v:case b:case a:return ce;default:return ae}}case o:return ae}}}var S=c,_=u,V=l,B=a,M=t,N=d,R=r,D=v,I=b,A=o,L=i,$=s,F=m,se=!1;function q(k){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),E(k)||T(k)===c}function E(k){return T(k)===u}function O(k){return T(k)===l}function H(k){return T(k)===a}function ee(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function Y(k){return T(k)===d}function Q(k){return T(k)===r}function X(k){return T(k)===v}function Z(k){return T(k)===b}function re(k){return T(k)===o}function te(k){return T(k)===i}function z(k){return T(k)===s}function U(k){return T(k)===m}ve.AsyncMode=S,ve.ConcurrentMode=_,ve.ContextConsumer=V,ve.ContextProvider=B,ve.Element=M,ve.ForwardRef=N,ve.Fragment=R,ve.Lazy=D,ve.Memo=I,ve.Portal=A,ve.Profiler=L,ve.StrictMode=$,ve.Suspense=F,ve.isAsyncMode=q,ve.isConcurrentMode=E,ve.isContextConsumer=O,ve.isContextProvider=H,ve.isElement=ee,ve.isForwardRef=Y,ve.isFragment=Q,ve.isLazy=X,ve.isMemo=Z,ve.isPortal=re,ve.isProfiler=te,ve.isStrictMode=z,ve.isSuspense=U,ve.isValidElementType=w,ve.typeOf=T})()),ve}var Cr;function _s(){return Cr||(Cr=1,process.env.NODE_ENV==="production"?mn.exports=yl():mn.exports=bl()),mn.exports}var so,wr;function gl(){if(wr)return so;wr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return so=s()?Object.assign:function(i,a){for(var l,c=r(i),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var m in l)t.call(l,m)&&(c[m]=l[m]);if(e){u=e(l);for(var p=0;p<u.length;p++)o.call(l,u[p])&&(c[u[p]]=l[u[p]])}}return c},so}var io,Dr;function Eo(){if(Dr)return io;Dr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return io=e,io}var ao,Tr;function Ns(){return Tr||(Tr=1,ao=Function.call.bind(Object.prototype.hasOwnProperty)),ao}var lo,kr;function xl(){if(kr)return lo;kr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Eo(),o={},r=Ns();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function s(i,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(r(i,d)){var m;try{if(typeof i[d]!="function"){var p=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}m=i[d](a,d,c,l,null,t)}catch(v){m=v}if(m&&!(m instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in o)){o[m.message]=!0;var b=u?u():"";e("Failed "+l+" type: "+m.message+(b??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(o={})},lo=s,lo}var co,Er;function vl(){if(Er)return co;Er=1;var e=_s(),t=gl(),o=Eo(),r=Ns(),s=xl(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return co=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function m(E){var O=E&&(u&&E[u]||E[d]);if(typeof O=="function")return O}var p="<<anonymous>>",b={array:P("array"),bigint:P("bigint"),bool:P("boolean"),func:P("function"),number:P("number"),object:P("object"),string:P("string"),symbol:P("symbol"),any:C(),arrayOf:w,element:T(),elementType:S(),instanceOf:_,node:N(),objectOf:B,oneOf:V,oneOfType:M,shape:D,exact:I};function v(E,O){return E===O?E!==0||1/E===1/O:E!==E&&O!==O}function f(E,O){this.message=E,this.data=O&&typeof O=="object"?O:{},this.stack=""}f.prototype=Error.prototype;function x(E){if(process.env.NODE_ENV!=="production")var O={},H=0;function ee(Q,X,Z,re,te,z,U){if(re=re||p,z=z||Z,U!==o){if(c){var k=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw k.name="Invariant Violation",k}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ae=re+":"+Z;!O[ae]&&H<3&&(i("You are manually calling a React.PropTypes validation function for the `"+z+"` prop on `"+re+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),O[ae]=!0,H++)}}return X[Z]==null?Q?X[Z]===null?new f("The "+te+" `"+z+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new f("The "+te+" `"+z+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:E(X,Z,re,te,z)}var Y=ee.bind(null,!1);return Y.isRequired=ee.bind(null,!0),Y}function P(E){function O(H,ee,Y,Q,X,Z){var re=H[ee],te=$(re);if(te!==E){var z=F(re);return new f("Invalid "+Q+" `"+X+"` of type "+("`"+z+"` supplied to `"+Y+"`, expected ")+("`"+E+"`."),{expectedType:E})}return null}return x(O)}function C(){return x(a)}function w(E){function O(H,ee,Y,Q,X){if(typeof E!="function")return new f("Property `"+X+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var Z=H[ee];if(!Array.isArray(Z)){var re=$(Z);return new f("Invalid "+Q+" `"+X+"` of type "+("`"+re+"` supplied to `"+Y+"`, expected an array."))}for(var te=0;te<Z.length;te++){var z=E(Z,te,Y,Q,X+"["+te+"]",o);if(z instanceof Error)return z}return null}return x(O)}function T(){function E(O,H,ee,Y,Q){var X=O[H];if(!l(X)){var Z=$(X);return new f("Invalid "+Y+" `"+Q+"` of type "+("`"+Z+"` supplied to `"+ee+"`, expected a single ReactElement."))}return null}return x(E)}function S(){function E(O,H,ee,Y,Q){var X=O[H];if(!e.isValidElementType(X)){var Z=$(X);return new f("Invalid "+Y+" `"+Q+"` of type "+("`"+Z+"` supplied to `"+ee+"`, expected a single ReactElement type."))}return null}return x(E)}function _(E){function O(H,ee,Y,Q,X){if(!(H[ee]instanceof E)){var Z=E.name||p,re=q(H[ee]);return new f("Invalid "+Q+" `"+X+"` of type "+("`"+re+"` supplied to `"+Y+"`, expected ")+("instance of `"+Z+"`."))}return null}return x(O)}function V(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function O(H,ee,Y,Q,X){for(var Z=H[ee],re=0;re<E.length;re++)if(v(Z,E[re]))return null;var te=JSON.stringify(E,function(U,k){var ae=F(k);return ae==="symbol"?String(k):k});return new f("Invalid "+Q+" `"+X+"` of value `"+String(Z)+"` "+("supplied to `"+Y+"`, expected one of "+te+"."))}return x(O)}function B(E){function O(H,ee,Y,Q,X){if(typeof E!="function")return new f("Property `"+X+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var Z=H[ee],re=$(Z);if(re!=="object")return new f("Invalid "+Q+" `"+X+"` of type "+("`"+re+"` supplied to `"+Y+"`, expected an object."));for(var te in Z)if(r(Z,te)){var z=E(Z,te,Y,Q,X+"."+te,o);if(z instanceof Error)return z}return null}return x(O)}function M(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var O=0;O<E.length;O++){var H=E[O];if(typeof H!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+se(H)+" at index "+O+"."),a}function ee(Y,Q,X,Z,re){for(var te=[],z=0;z<E.length;z++){var U=E[z],k=U(Y,Q,X,Z,re,o);if(k==null)return null;k.data&&r(k.data,"expectedType")&&te.push(k.data.expectedType)}var ae=te.length>0?", expected one of type ["+te.join(", ")+"]":"";return new f("Invalid "+Z+" `"+re+"` supplied to "+("`"+X+"`"+ae+"."))}return x(ee)}function N(){function E(O,H,ee,Y,Q){return A(O[H])?null:new f("Invalid "+Y+" `"+Q+"` supplied to "+("`"+ee+"`, expected a ReactNode."))}return x(E)}function R(E,O,H,ee,Y){return new f((E||"React class")+": "+O+" type `"+H+"."+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function D(E){function O(H,ee,Y,Q,X){var Z=H[ee],re=$(Z);if(re!=="object")return new f("Invalid "+Q+" `"+X+"` of type `"+re+"` "+("supplied to `"+Y+"`, expected `object`."));for(var te in E){var z=E[te];if(typeof z!="function")return R(Y,Q,X,te,F(z));var U=z(Z,te,Y,Q,X+"."+te,o);if(U)return U}return null}return x(O)}function I(E){function O(H,ee,Y,Q,X){var Z=H[ee],re=$(Z);if(re!=="object")return new f("Invalid "+Q+" `"+X+"` of type `"+re+"` "+("supplied to `"+Y+"`, expected `object`."));var te=t({},H[ee],E);for(var z in te){var U=E[z];if(r(E,z)&&typeof U!="function")return R(Y,Q,X,z,F(U));if(!U)return new f("Invalid "+Q+" `"+X+"` key `"+z+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(H[ee],null," ")+`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),ue=require("react"),hs=require("@mui/material/OutlinedInput"),on=require("@mui/material/InputAdornment"),kt=require("@mui/material/IconButton"),ea=require("@mui/icons-material/Search"),ta=require("@mui/icons-material/Close"),na=require("./SearchInput-CFBBNdI2.cjs"),Et=require("@mui/material/TextField"),je=require("./types.cjs"),We=require("@mui/material/Box"),st=require("@mui/material/Typography"),oa=require("./Select-BqA47TdK.cjs"),ra=require("@mui/material/Autocomplete"),sa=require("@mui/material/CircularProgress"),ia=require("@mui/material/Checkbox"),Do=require("@mui/material/FormControlLabel"),aa=require("@mui/material/RadioGroup"),la=require("@mui/material/Radio"),kn=require("@mui/material/FormControl"),ca=require("@mui/material/FormLabel"),ys=require("@mui/material/FormHelperText"),ua=require("@mui/material/Switch"),da=require("@mui/material/Slider"),bs=require("@mui/material/Chip"),gs=require("@mui/material/Popper"),xs=require("@mui/material/Paper"),To=require("@mui/material/MenuItem"),fa=require("@mui/material/ClickAwayListener"),Ge=require("@mui/material/Button"),pa=require("@mui/icons-material/Add"),ma=require("@mui/icons-material/Delete"),ko=require("@mui/material/Divider"),ha=require("@mui/material/Collapse"),ya=require("@mui/icons-material/ExpandMore"),ba=require("@mui/material/Popover"),h=require("./_commonjsHelpers-D3HyQheV.cjs"),j=require("@mui/material/styles"),yr=require("date-fns/addDays"),ga=require("date-fns/addSeconds"),xa=require("date-fns/addMinutes"),va=require("date-fns/addHours"),Sa=require("date-fns/addWeeks"),Pa=require("date-fns/addMonths"),Ca=require("date-fns/addYears"),br=require("date-fns/endOfDay"),wa=require("date-fns/endOfWeek"),gr=require("date-fns/endOfYear"),to=require("date-fns/format"),Da=require("date-fns/getDate"),Ta=require("date-fns/getDaysInMonth"),ka=require("date-fns/getHours"),Ea=require("date-fns/getMinutes"),Oa=require("date-fns/getMonth"),Ma=require("date-fns/getSeconds"),Ra=require("date-fns/getMilliseconds"),Ia=require("date-fns/getWeek"),Va=require("date-fns/getYear"),no=require("date-fns/isAfter"),oo=require("date-fns/isBefore"),_a=require("date-fns/isEqual"),Na=require("date-fns/isSameDay"),Fa=require("date-fns/isSameYear"),ja=require("date-fns/isSameMonth"),Aa=require("date-fns/isSameHour"),La=require("date-fns/isValid"),$a=require("date-fns/parse"),Ba=require("date-fns/setDate"),Wa=require("date-fns/setHours"),qa=require("date-fns/setMinutes"),Ha=require("date-fns/setMonth"),za=require("date-fns/setSeconds"),Ya=require("date-fns/setMilliseconds"),Ua=require("date-fns/setYear"),Ka=require("date-fns/startOfDay"),Ga=require("date-fns/startOfMonth"),Qa=require("date-fns/endOfMonth"),Xa=require("date-fns/startOfWeek"),Za=require("date-fns/startOfYear"),Ja=require("date-fns/isWithinInterval"),el=require("date-fns/locale/en-US"),vs=require("@mui/material/useMediaQuery"),xr=require("@mui/material/Tab"),vr=require("@mui/material/Tabs"),gt=require("@mui/material/utils"),En=require("@mui/material/Fade"),fn=require("react-dom"),tl=require("@mui/material/ButtonBase"),nl=require("@mui/material/DialogActions"),ol=require("@mui/material/List"),rl=require("@mui/material/ListItem"),Ss=require("@mui/material/MenuList"),bt=require("@mui/material/version"),sl=require("@mui/material/InputLabel"),il=require("@mui/material/Grow"),al=require("@mui/material/Unstable_TrapFocus"),ll=require("@mui/material/DialogContent"),ro=require("@mui/material/Dialog");function cl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const g=cl(ue);function ul({value:e,onChange:t,debounce:o=500,placeholder:r="Search",...s}){const[i,a]=ue.useState(e),l=()=>{t("")};return ue.useEffect(()=>{a(e)},[e]),ue.useEffect(()=>{const c=setTimeout(()=>{t(i)},o);return()=>{clearTimeout(c)}},[i]),y.jsx(hs,{...s,value:i,size:"small",placeholder:r,type:"text",autoComplete:"off",onChange:c=>{a(c.target.value)},startAdornment:y.jsx(on,{position:"start",children:y.jsx(ea,{fontSize:"small"})}),endAdornment:i?y.jsx(on,{position:"end",children:y.jsx(kt,{size:"small",onClick:l,edge:"end",children:y.jsx(ta,{fontSize:"small"})})}):void 0,sx:{flexGrow:1,maxWidth:500,minWidth:300,minHeight:36},inputProps:{autoCorrect:"off",autoComplete:"off"}})}function Ps({value:e="",onChange:t,size:o="md",color:r="neutral",readOnly:s=!1,monospace:i=!1,debounced:a=!1,debounceMs:l=300,label:c,helperText:u,error:d,placeholder:m,fullWidth:p,startAdornment:b,endAdornment:v,disabled:f,type:x,variant:P="outlined",autoFocus:C,autoComplete:w,onKeyDown:T,onBlur:S,onFocus:_,name:V,id:B,inputProps:M,sx:N}){const[R,D]=ue.useState(e),I=ue.useRef(null);ue.useEffect(()=>{D(e)},[e]);const A=ue.useCallback(q=>{const E=q.target.value;a?(D(E),I.current&&clearTimeout(I.current),I.current=setTimeout(()=>t?.(E),l)):(D(E),t?.(E))},[a,l,t]);ue.useEffect(()=>()=>{I.current&&clearTimeout(I.current)},[]);const L=je.toMuiInputSize(o),$=je.toMuiColor(r),F=typeof d=="string"?!!d:d,se=typeof d=="string"?d:void 0;return y.jsx(Et,{value:R,onChange:A,size:L,color:$==="default"||$==="inherit"?void 0:$,variant:P,label:c,helperText:se??u,error:F,placeholder:m,fullWidth:p,disabled:f,type:x,autoFocus:C,autoComplete:w,onKeyDown:T,onBlur:S,onFocus:_,name:V,id:B,slotProps:{input:{readOnly:s,startAdornment:b?y.jsx(on,{position:"start",children:b}):void 0,endAdornment:v?y.jsx(on,{position:"end",children:v}):void 0,sx:i?{fontFamily:"var(--ov-font-mono)"}:void 0},htmlInput:M},style:{"--ov-input-height":je.INPUT_HEIGHTS[o]},sx:N})}Ps.displayName="TextField";function Cs({value:e,onChange:t,size:o="md",color:r="neutral",autosize:s=!1,maxLength:i,showCount:a=!1,rows:l=3,minRows:c,maxRows:u=8,label:d,helperText:m,error:p,placeholder:b,fullWidth:v,disabled:f,sx:x}){const P=je.toMuiInputSize(o),C=je.toMuiColor(r),w=typeof p=="string"?!!p:p,T=typeof p=="string"?p:void 0,S=a&&i?`${e.length} / ${i}`:a?`${e.length}`:void 0;return y.jsxs(We,{sx:x,children:[y.jsx(Et,{value:e,onChange:_=>{const V=i?_.target.value.slice(0,i):_.target.value;t(V)},size:P,color:C==="default"||C==="inherit"?void 0:C,label:d,helperText:T??m,error:w,placeholder:b,fullWidth:v,disabled:f,multiline:!0,minRows:c??l,maxRows:s?u:l,style:{"--ov-input-height":je.INPUT_HEIGHTS[o]},slotProps:{htmlInput:{maxLength:i}}}),S&&y.jsx(st,{variant:"caption",sx:{display:"block",textAlign:"right",mt:.25,color:"var(--ov-fg-faint)",fontSize:"var(--ov-text-xs)"},children:S})]})}Cs.displayName="TextArea";function ws({options:e,value:t,onChange:o,size:r="md",color:s="neutral",creatable:i=!1,loading:a=!1,groupBy:l,renderOption:c,label:u,helperText:d,placeholder:m,error:p,multiple:b=!1,fullWidth:v,disabled:f,sx:x}){const P=je.toMuiInputSize(r),C=je.toMuiColor(s),w=typeof p=="string"?!!p:p,T=typeof p=="string"?p:void 0;return y.jsx(ra,{options:e,value:t,onChange:(S,_)=>o(_),getOptionLabel:S=>typeof S=="string"?S:S.label,isOptionEqualToValue:(S,_)=>S.value===_.value,multiple:b,freeSolo:i,loading:a,disabled:f,groupBy:l,size:P,fullWidth:v,renderOption:c?(S,_)=>ue.createElement("li",{...S,key:_.value},c(_)):void 0,renderInput:S=>y.jsx(Et,{...S,label:u,placeholder:m,helperText:T??d,error:w,color:C==="default"||C==="inherit"?void 0:C,slotProps:{input:{...S.InputProps,endAdornment:y.jsxs(y.Fragment,{children:[a&&y.jsx(sa,{color:"inherit",size:16}),S.InputProps.endAdornment]})}}}),style:{"--ov-input-height":je.INPUT_HEIGHTS[r]},sx:x})}ws.displayName="Autocomplete";function Ds({checked:e,onChange:t,size:o="sm",color:r="primary",indeterminate:s=!1,label:i,disabled:a,sx:l}){const c=je.toMuiSize(o),u=je.toMuiColor(r),d=y.jsx(ia,{checked:e,onChange:(m,p)=>t(p),size:c,color:u==="default"||u==="inherit"?"primary":u,indeterminate:s,disabled:a});return i?y.jsx(Do,{control:d,label:i,disabled:a,sx:{"& .MuiFormControlLabel-label":{fontSize:o==="xs"||o==="sm"?"var(--ov-text-sm)":void 0},...typeof l=="object"&&!Array.isArray(l)?l:{}}}):y.jsx("span",{style:void 0,children:d})}Ds.displayName="Checkbox";function Ts({options:e,value:t,onChange:o,size:r="sm",color:s="primary",layout:i="column",label:a,sx:l}){const c=je.toMuiSize(r),u=je.toMuiColor(s);return y.jsxs(kn,{sx:l,children:[a&&y.jsx(ca,{sx:{fontSize:"var(--ov-text-sm)",fontWeight:500,mb:.5},children:a}),y.jsx(aa,{value:t,onChange:(d,m)=>o(m),row:i==="row",children:e.map(d=>y.jsx(Do,{value:d.value,disabled:d.disabled,control:y.jsx(la,{size:c,color:u==="default"||u==="inherit"?"primary":u}),label:d.description?y.jsxs("span",{children:[y.jsx("span",{children:d.label}),y.jsx(ys,{sx:{m:0,mt:-.25},children:d.description})]}):d.label,sx:{"& .MuiFormControlLabel-label":{fontSize:r==="xs"||r==="sm"?"var(--ov-text-sm)":void 0}}},d.value))})]})}Ts.displayName="RadioGroup";const dl={xs:{width:32,height:18,thumb:14,translate:14},sm:{width:36,height:20,thumb:16,translate:16},md:{width:44,height:24,thumb:20,translate:20},lg:{width:52,height:28,thumb:24,translate:24},xl:{width:60,height:32,thumb:28,translate:28}};function ks({checked:e,onChange:t,size:o="md",color:r="primary",label:s,labelPlacement:i="end",disabled:a,sx:l}){const c=je.toMuiColor(r),u=dl[o],d=o!=="md"?{width:u.width,height:u.height,"& .MuiSwitch-switchBase.Mui-checked":{transform:`translateX(${u.translate}px)`},"& .MuiSwitch-thumb":{width:u.thumb,height:u.thumb}}:{},m=y.jsx(ua,{checked:e,onChange:(p,b)=>t(b),color:c==="default"||c==="inherit"?"primary":c,disabled:a,sx:d});return s?y.jsx(Do,{control:m,label:s,labelPlacement:i,disabled:a,sx:{"& .MuiFormControlLabel-label":{fontSize:o==="xs"||o==="sm"?"var(--ov-text-sm)":void 0},...typeof l=="object"&&!Array.isArray(l)?l:{}}}):m}ks.displayName="Switch";function Es({value:e,onChange:t,size:o="sm",color:r="primary",marks:s,showValue:i=!1,min:a=0,max:l=100,step:c=1,disabled:u,sx:d}){const m=je.toMuiSize(o),p=je.toMuiColor(r);return y.jsx(da,{value:e,onChange:(b,v)=>t(v),size:m,color:p==="default"||p==="inherit"?"primary":p,marks:s,valueLabelDisplay:i?"auto":"off",min:a,max:l,step:c,disabled:u,sx:d})}Es.displayName="Slider";function Os({value:e,onChange:t,suggestions:o,maxTags:r,creatable:s=!0,size:i="sm",placeholder:a="Add tag...",sx:l}){const[c,u]=ue.useState(""),[d,m]=ue.useState(!1),p=ue.useRef(null),b=ue.useRef(null),v=je.toMuiSize(i),f=ue.useCallback(w=>{const T=w.trim();T&&(e.includes(T)||r&&e.length>=r||!s&&o&&!o.includes(T)||(t([...e,T]),u(""),m(!1)))},[e,t,r,s,o]),x=ue.useCallback(w=>{t(e.filter(T=>T!==w))},[e,t]),P=w=>{w.key==="Enter"||w.key===","?(w.preventDefault(),f(c)):w.key==="Backspace"&&!c&&e.length>0&&x(e[e.length-1])},C=o?.filter(w=>w.toLowerCase().includes(c.toLowerCase())&&!e.includes(w));return y.jsx(fa,{onClickAway:()=>m(!1),children:y.jsxs(We,{ref:b,sx:l,children:[y.jsxs(We,{sx:{display:"flex",flexWrap:"wrap",gap:.5,alignItems:"center",border:"1px solid var(--ov-border-default)",borderRadius:"var(--ov-radius-md, 6px)",padding:"4px 8px",bgcolor:"var(--ov-bg-surface)",minHeight:v==="small"?36:40,"&:focus-within":{borderColor:"var(--ov-accent)"}},children:[e.map(w=>y.jsx(bs,{label:w,size:"small",onDelete:()=>x(w),sx:{fontSize:"var(--ov-text-xs)"}},w)),y.jsx(hs,{inputRef:p,value:c,onChange:w=>{u(w.target.value),o&&m(!0)},onKeyDown:P,onFocus:()=>{o&&c&&m(!0)},placeholder:e.length===0?a:"",size:"small",sx:{flex:1,minWidth:80,height:"auto",backgroundColor:"transparent !important","& fieldset":{border:"none"},"& input":{p:"2px 0",fontSize:"var(--ov-text-sm)"}}})]}),d&&C&&C.length>0&&y.jsx(gs,{open:!0,anchorEl:b.current,placement:"bottom-start",style:{zIndex:1300,width:b.current?.clientWidth},children:y.jsx(xs,{sx:{mt:.5,maxHeight:200,overflow:"auto",border:"1px solid var(--ov-border-default)"},children:C.map(w=>y.jsx(To,{onClick:()=>f(w),sx:{fontSize:"var(--ov-text-sm)"},children:w},w))})})]})})}Os.displayName="TagInput";let fl=0;function gn(){return`kv-${fl++}`}function pl(e){return Object.entries(e).map(([t,o])=>({id:gn(),key:t,value:o}))}function ml(e){const t={};for(const o of e)o.key&&(t[o.key]=o.value);return t}function Ms({value:e,onChange:t,addLabel:o="Add",readOnly:r=!1,validateKey:s,validateValue:i,size:a="sm",sx:l}){const[c,u]=ue.useState(()=>{const f=pl(e);return f.length>0?f:[{id:gn(),key:"",value:""}]}),d=je.toMuiSize(a),m=ue.useCallback(f=>{u(f),t(ml(f))},[t]),p=(f,x,P)=>{m(c.map(C=>C.id===f?{...C,[x]:P}:C))},b=f=>{const x=c.filter(P=>P.id!==f);m(x.length>0?x:[{id:gn(),key:"",value:""}])},v=()=>{m([...c,{id:gn(),key:"",value:""}])};return y.jsxs(We,{sx:l,children:[c.map(f=>{const x=s?s(f.key):void 0,P=i?i(f.value):void 0;return y.jsxs(We,{sx:{display:"flex",gap:1,mb:1,alignItems:"center"},children:[y.jsx(Et,{value:f.key,onChange:C=>p(f.id,"key",C.target.value),size:d,placeholder:"Key",error:!!x,helperText:x,disabled:r,sx:{flex:1}}),y.jsx(Et,{value:f.value,onChange:C=>p(f.id,"value",C.target.value),size:d,placeholder:"Value",error:!!P,helperText:P,disabled:r,sx:{flex:1}}),!r&&y.jsx(kt,{size:"small",onClick:()=>b(f.id),sx:{color:"var(--ov-fg-faint)","&:hover":{color:"var(--ov-danger-default)"}},children:y.jsx(ma,{fontSize:"small"})})]},f.id)}),!r&&y.jsx(Ge,{size:d,onClick:v,startIcon:y.jsx(pa,{}),sx:{color:"var(--ov-fg-muted)",textTransform:"none",fontWeight:500,fontSize:"var(--ov-text-sm)"},children:o})]})}Ms.displayName="KeyValueEditor";function Rs({label:e,required:t=!1,error:o,helperText:r,children:s,layout:i="vertical",sx:a}){const l=i==="horizontal";return y.jsxs(We,{sx:{mb:2,...l&&{display:"grid",gridTemplateColumns:"1fr 2fr",gap:2,alignItems:"start"},...typeof a=="object"&&!Array.isArray(a)?a:{}},children:[y.jsxs(st,{component:"label",variant:"body2",sx:{fontWeight:500,color:"var(--ov-fg-default)",fontSize:"var(--ov-text-sm)",mb:l?0:.5,pt:l?1:0,display:"block"},children:[e,t&&y.jsx(We,{component:"span",sx:{color:"var(--ov-danger-default)",ml:.25},children:"*"})]}),y.jsxs(We,{children:[s,(o||r)&&y.jsx(st,{variant:"caption",sx:{display:"block",mt:.5,fontSize:"var(--ov-text-xs)",color:o?"var(--ov-danger-default)":"var(--ov-fg-faint)"},children:typeof o=="string"?o:r})]})]})}Rs.displayName="FormField";function Is({title:e,description:t,collapsible:o=!1,defaultCollapsed:r=!1,children:s,sx:i}){const[a,l]=ue.useState(r);return y.jsxs(We,{sx:{mb:3,...typeof i=="object"&&!Array.isArray(i)?i:{}},children:[y.jsx(ko,{sx:{mb:2}}),y.jsxs(We,{sx:{display:"flex",alignItems:"center",gap:1,mb:t?.5:1.5,cursor:o?"pointer":void 0},onClick:o?()=>l(c=>!c):void 0,children:[y.jsx(st,{variant:"subtitle1",sx:{fontWeight:600,color:"var(--ov-fg-base)",fontSize:"var(--ov-text-base)"},children:e}),o&&y.jsx(kt,{size:"small",sx:{transform:a?"rotate(-90deg)":"rotate(0deg)",transition:"transform 200ms"},children:y.jsx(ya,{fontSize:"small"})})]}),t&&y.jsx(st,{variant:"body2",sx:{color:"var(--ov-fg-muted)",mb:1.5,maxWidth:600,lineHeight:1.5},children:t}),o?y.jsx(ha,{in:!a,children:s}):s]})}Is.displayName="FormSection";const hl=["#ef4444","#f97316","#eab308","#22c55e","#14b8a6","#3b82f6","#6366f1","#8b5cf6","#ec4899","#f43f5e","#0ea5e9","#06b6d4","#10b981","#84cc16","#a3e635","#fbbf24","#fb923c","#f87171","#a78bfa","#c084fc"];function Vs({value:e,onChange:t,presets:o=hl,allowCustom:r=!0,sx:s}){const[i,a]=ue.useState(e);return y.jsxs(We,{sx:{display:"flex",flexDirection:"column",gap:1,...s},children:[y.jsx(We,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 28px)",gap:"6px"},children:o.map(l=>y.jsx(We,{onClick:()=>{t(l),a(l)},sx:{width:28,height:28,borderRadius:"4px",bgcolor:l,cursor:"pointer",border:e===l?"2px solid var(--ov-fg-base)":"2px solid transparent","&:hover":{transform:"scale(1.1)"},transition:"transform 0.1s, border 0.1s"}},l))}),r&&y.jsxs(We,{sx:{display:"flex",alignItems:"center",gap:1},children:[y.jsx(We,{sx:{width:28,height:28,borderRadius:"4px",bgcolor:i,border:"1px solid var(--ov-border-default)",flexShrink:0}}),y.jsx(Et,{value:i,onChange:l=>{a(l.target.value),/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(l.target.value)&&t(l.target.value)},size:"small",placeholder:"#000000",slotProps:{input:{sx:{fontFamily:"var(--ov-font-mono)",fontSize:"0.8125rem"}}},sx:{flex:1,maxWidth:120}})]})]})}Vs.displayName="ColorPicker";var pn={exports:{}},mn={exports:{}},xe={};var Sr;function yl(){if(Sr)return xe;Sr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function w(S){if(typeof S=="object"&&S!==null){var _=S.$$typeof;switch(_){case t:switch(S=S.type,S){case c:case u:case r:case i:case s:case m:return S;default:switch(S=S&&S.$$typeof,S){case l:case d:case v:case b:case a:return S;default:return _}}case o:return _}}}function T(S){return w(S)===u}return xe.AsyncMode=c,xe.ConcurrentMode=u,xe.ContextConsumer=l,xe.ContextProvider=a,xe.Element=t,xe.ForwardRef=d,xe.Fragment=r,xe.Lazy=v,xe.Memo=b,xe.Portal=o,xe.Profiler=i,xe.StrictMode=s,xe.Suspense=m,xe.isAsyncMode=function(S){return T(S)||w(S)===c},xe.isConcurrentMode=T,xe.isContextConsumer=function(S){return w(S)===l},xe.isContextProvider=function(S){return w(S)===a},xe.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},xe.isForwardRef=function(S){return w(S)===d},xe.isFragment=function(S){return w(S)===r},xe.isLazy=function(S){return w(S)===v},xe.isMemo=function(S){return w(S)===b},xe.isPortal=function(S){return w(S)===o},xe.isProfiler=function(S){return w(S)===i},xe.isStrictMode=function(S){return w(S)===s},xe.isSuspense=function(S){return w(S)===m},xe.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===u||S===i||S===s||S===m||S===p||typeof S=="object"&&S!==null&&(S.$$typeof===v||S.$$typeof===b||S.$$typeof===a||S.$$typeof===l||S.$$typeof===d||S.$$typeof===x||S.$$typeof===P||S.$$typeof===C||S.$$typeof===f)},xe.typeOf=w,xe}var ve={};var Pr;function bl(){return Pr||(Pr=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function w(k){return typeof k=="string"||typeof k=="function"||k===r||k===u||k===i||k===s||k===m||k===p||typeof k=="object"&&k!==null&&(k.$$typeof===v||k.$$typeof===b||k.$$typeof===a||k.$$typeof===l||k.$$typeof===d||k.$$typeof===x||k.$$typeof===P||k.$$typeof===C||k.$$typeof===f)}function T(k){if(typeof k=="object"&&k!==null){var ae=k.$$typeof;switch(ae){case t:var ne=k.type;switch(ne){case c:case u:case r:case i:case s:case m:return ne;default:var ce=ne&&ne.$$typeof;switch(ce){case l:case d:case v:case b:case a:return ce;default:return ae}}case o:return ae}}}var S=c,_=u,V=l,B=a,M=t,N=d,R=r,D=v,I=b,A=o,L=i,$=s,F=m,se=!1;function q(k){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),E(k)||T(k)===c}function E(k){return T(k)===u}function O(k){return T(k)===l}function H(k){return T(k)===a}function ee(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function Y(k){return T(k)===d}function Q(k){return T(k)===r}function X(k){return T(k)===v}function Z(k){return T(k)===b}function re(k){return T(k)===o}function te(k){return T(k)===i}function z(k){return T(k)===s}function U(k){return T(k)===m}ve.AsyncMode=S,ve.ConcurrentMode=_,ve.ContextConsumer=V,ve.ContextProvider=B,ve.Element=M,ve.ForwardRef=N,ve.Fragment=R,ve.Lazy=D,ve.Memo=I,ve.Portal=A,ve.Profiler=L,ve.StrictMode=$,ve.Suspense=F,ve.isAsyncMode=q,ve.isConcurrentMode=E,ve.isContextConsumer=O,ve.isContextProvider=H,ve.isElement=ee,ve.isForwardRef=Y,ve.isFragment=Q,ve.isLazy=X,ve.isMemo=Z,ve.isPortal=re,ve.isProfiler=te,ve.isStrictMode=z,ve.isSuspense=U,ve.isValidElementType=w,ve.typeOf=T})()),ve}var Cr;function _s(){return Cr||(Cr=1,process.env.NODE_ENV==="production"?mn.exports=yl():mn.exports=bl()),mn.exports}var so,wr;function gl(){if(wr)return so;wr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return so=s()?Object.assign:function(i,a){for(var l,c=r(i),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var m in l)t.call(l,m)&&(c[m]=l[m]);if(e){u=e(l);for(var p=0;p<u.length;p++)o.call(l,u[p])&&(c[u[p]]=l[u[p]])}}return c},so}var io,Dr;function Eo(){if(Dr)return io;Dr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return io=e,io}var ao,Tr;function Ns(){return Tr||(Tr=1,ao=Function.call.bind(Object.prototype.hasOwnProperty)),ao}var lo,kr;function xl(){if(kr)return lo;kr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Eo(),o={},r=Ns();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function s(i,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(r(i,d)){var m;try{if(typeof i[d]!="function"){var p=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}m=i[d](a,d,c,l,null,t)}catch(v){m=v}if(m&&!(m instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in o)){o[m.message]=!0;var b=u?u():"";e("Failed "+l+" type: "+m.message+(b??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(o={})},lo=s,lo}var co,Er;function vl(){if(Er)return co;Er=1;var e=_s(),t=gl(),o=Eo(),r=Ns(),s=xl(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return co=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function m(E){var O=E&&(u&&E[u]||E[d]);if(typeof O=="function")return O}var p="<<anonymous>>",b={array:P("array"),bigint:P("bigint"),bool:P("boolean"),func:P("function"),number:P("number"),object:P("object"),string:P("string"),symbol:P("symbol"),any:C(),arrayOf:w,element:T(),elementType:S(),instanceOf:_,node:N(),objectOf:B,oneOf:V,oneOfType:M,shape:D,exact:I};function v(E,O){return E===O?E!==0||1/E===1/O:E!==E&&O!==O}function f(E,O){this.message=E,this.data=O&&typeof O=="object"?O:{},this.stack=""}f.prototype=Error.prototype;function x(E){if(process.env.NODE_ENV!=="production")var O={},H=0;function ee(Q,X,Z,re,te,z,U){if(re=re||p,z=z||Z,U!==o){if(c){var k=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw k.name="Invariant Violation",k}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ae=re+":"+Z;!O[ae]&&H<3&&(i("You are manually calling a React.PropTypes validation function for the `"+z+"` prop on `"+re+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),O[ae]=!0,H++)}}return X[Z]==null?Q?X[Z]===null?new f("The "+te+" `"+z+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new f("The "+te+" `"+z+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:E(X,Z,re,te,z)}var Y=ee.bind(null,!1);return Y.isRequired=ee.bind(null,!0),Y}function P(E){function O(H,ee,Y,Q,X,Z){var re=H[ee],te=$(re);if(te!==E){var z=F(re);return new f("Invalid "+Q+" `"+X+"` of type "+("`"+z+"` supplied to `"+Y+"`, expected ")+("`"+E+"`."),{expectedType:E})}return null}return x(O)}function C(){return x(a)}function w(E){function O(H,ee,Y,Q,X){if(typeof E!="function")return new f("Property `"+X+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var Z=H[ee];if(!Array.isArray(Z)){var re=$(Z);return new f("Invalid "+Q+" `"+X+"` of type "+("`"+re+"` supplied to `"+Y+"`, expected an array."))}for(var te=0;te<Z.length;te++){var z=E(Z,te,Y,Q,X+"["+te+"]",o);if(z instanceof Error)return z}return null}return x(O)}function T(){function E(O,H,ee,Y,Q){var X=O[H];if(!l(X)){var Z=$(X);return new f("Invalid "+Y+" `"+Q+"` of type "+("`"+Z+"` supplied to `"+ee+"`, expected a single ReactElement."))}return null}return x(E)}function S(){function E(O,H,ee,Y,Q){var X=O[H];if(!e.isValidElementType(X)){var Z=$(X);return new f("Invalid "+Y+" `"+Q+"` of type "+("`"+Z+"` supplied to `"+ee+"`, expected a single ReactElement type."))}return null}return x(E)}function _(E){function O(H,ee,Y,Q,X){if(!(H[ee]instanceof E)){var Z=E.name||p,re=q(H[ee]);return new f("Invalid "+Q+" `"+X+"` of type "+("`"+re+"` supplied to `"+Y+"`, expected ")+("instance of `"+Z+"`."))}return null}return x(O)}function V(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function O(H,ee,Y,Q,X){for(var Z=H[ee],re=0;re<E.length;re++)if(v(Z,E[re]))return null;var te=JSON.stringify(E,function(U,k){var ae=F(k);return ae==="symbol"?String(k):k});return new f("Invalid "+Q+" `"+X+"` of value `"+String(Z)+"` "+("supplied to `"+Y+"`, expected one of "+te+"."))}return x(O)}function B(E){function O(H,ee,Y,Q,X){if(typeof E!="function")return new f("Property `"+X+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var Z=H[ee],re=$(Z);if(re!=="object")return new f("Invalid "+Q+" `"+X+"` of type "+("`"+re+"` supplied to `"+Y+"`, expected an object."));for(var te in Z)if(r(Z,te)){var z=E(Z,te,Y,Q,X+"."+te,o);if(z instanceof Error)return z}return null}return x(O)}function M(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var O=0;O<E.length;O++){var H=E[O];if(typeof H!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+se(H)+" at index "+O+"."),a}function ee(Y,Q,X,Z,re){for(var te=[],z=0;z<E.length;z++){var U=E[z],k=U(Y,Q,X,Z,re,o);if(k==null)return null;k.data&&r(k.data,"expectedType")&&te.push(k.data.expectedType)}var ae=te.length>0?", expected one of type ["+te.join(", ")+"]":"";return new f("Invalid "+Z+" `"+re+"` supplied to "+("`"+X+"`"+ae+"."))}return x(ee)}function N(){function E(O,H,ee,Y,Q){return A(O[H])?null:new f("Invalid "+Y+" `"+Q+"` supplied to "+("`"+ee+"`, expected a ReactNode."))}return x(E)}function R(E,O,H,ee,Y){return new f((E||"React class")+": "+O+" type `"+H+"."+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function D(E){function O(H,ee,Y,Q,X){var Z=H[ee],re=$(Z);if(re!=="object")return new f("Invalid "+Q+" `"+X+"` of type `"+re+"` "+("supplied to `"+Y+"`, expected `object`."));for(var te in E){var z=E[te];if(typeof z!="function")return R(Y,Q,X,te,F(z));var U=z(Z,te,Y,Q,X+"."+te,o);if(U)return U}return null}return x(O)}function I(E){function O(H,ee,Y,Q,X){var Z=H[ee],re=$(Z);if(re!=="object")return new f("Invalid "+Q+" `"+X+"` of type `"+re+"` "+("supplied to `"+Y+"`, expected `object`."));var te=t({},H[ee],E);for(var z in te){var U=E[z];if(r(E,z)&&typeof U!="function")return R(Y,Q,X,z,F(U));if(!U)return new f("Invalid "+Q+" `"+X+"` key `"+z+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(H[ee],null," ")+`
|
|
2
2
|
Valid keys: `+JSON.stringify(Object.keys(E),null," "));var k=U(Z,z,Y,Q,X+"."+z,o);if(k)return k}return null}return x(O)}function A(E){switch(typeof E){case"number":case"string":case"undefined":return!0;case"boolean":return!E;case"object":if(Array.isArray(E))return E.every(A);if(E===null||l(E))return!0;var O=m(E);if(O){var H=O.call(E),ee;if(O!==E.entries){for(;!(ee=H.next()).done;)if(!A(ee.value))return!1}else for(;!(ee=H.next()).done;){var Y=ee.value;if(Y&&!A(Y[1]))return!1}}else return!1;return!0;default:return!1}}function L(E,O){return E==="symbol"?!0:O?O["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&O instanceof Symbol:!1}function $(E){var O=typeof E;return Array.isArray(E)?"array":E instanceof RegExp?"object":L(O,E)?"symbol":O}function F(E){if(typeof E>"u"||E===null)return""+E;var O=$(E);if(O==="object"){if(E instanceof Date)return"date";if(E instanceof RegExp)return"regexp"}return O}function se(E){var O=F(E);switch(O){case"array":case"object":return"an "+O;case"boolean":case"date":case"regexp":return"a "+O;default:return O}}function q(E){return!E.constructor||!E.constructor.name?p:E.constructor.name}return b.checkPropTypes=s,b.resetWarningCache=s.resetWarningCache,b.PropTypes=b,b},co}var uo,Or;function Sl(){if(Or)return uo;Or=1;var e=Eo();function t(){}function o(){}return o.resetWarningCache=t,uo=function(){function r(a,l,c,u,d,m){if(m!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}r.isRequired=r;function s(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:s,element:r,elementType:r,instanceOf:s,node:r,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:o,resetWarningCache:t};return i.PropTypes=i,i},uo}var Mr;function Pl(){if(Mr)return pn.exports;if(Mr=1,process.env.NODE_ENV!=="production"){var e=_s(),t=!0;pn.exports=vl()(e.isElement,t)}else pn.exports=Sl()();return pn.exports}var Cl=Pl();const n=h.getDefaultExportFromCjs(Cl),wl=["localeText"],xn=g.createContext(null);process.env.NODE_ENV!=="production"&&(xn.displayName="PickerAdapterContext");const On=function(t){const{localeText:o}=t,r=h._objectWithoutPropertiesLoose(t,wl),{adapter:s,localeText:i}=g.useContext(xn)??{adapter:void 0,localeText:void 0},a=j.useThemeProps({props:r,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:m,localeText:p}=a,b=g.useMemo(()=>h._extends({},p,i,o),[p,i,o]),v=g.useMemo(()=>{if(!c)return s||null;const P=new c({locale:m,formats:u,instance:d});if(!P.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/quickstart/#installation"].join(`
|
|
3
3
|
`));return P},[c,m,u,d,s]),f=g.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),x=g.useMemo(()=>({utils:v,adapter:v,defaultDates:f,localeText:b}),[f,v,b]);return y.jsx(xn.Provider,{value:x,children:l})};process.env.NODE_ENV!=="production"&&(On.displayName="LocalizationProvider");process.env.NODE_ENV!=="production"&&(On.propTypes={adapterLocale:n.any,children:n.node,dateAdapter:n.func,dateFormats:n.shape({dayOfMonth:n.string,dayOfMonthFull:n.string,fullDate:n.string,fullTime12h:n.string,fullTime24h:n.string,hours12h:n.string,hours24h:n.string,keyboardDate:n.string,keyboardDateTime12h:n.string,keyboardDateTime24h:n.string,meridiem:n.string,minutes:n.string,month:n.string,monthShort:n.string,normalDate:n.string,normalDateWithWeekday:n.string,seconds:n.string,shortDate:n.string,weekday:n.string,weekdayShort:n.string,year:n.string}),dateLibInstance:n.any,localeText:n.object});const Dl={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},Tl={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",dayOfMonthFull:"do",weekday:"EEEE",weekdayShort:"EEEEEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class kl{isMUIAdapter=!0;isTimezoneCompatible=!1;formatTokenMap=Dl;escapedCharacters={start:"'",end:"'"};constructor(t){const{locale:o,formats:r,longFormatters:s,lib:i}=t;this.locale=o,this.formats=h._extends({},Tl,r),this.longFormatters=s,this.lib=i||"date-fns"}date=t=>typeof t>"u"?new Date:t===null?null:new Date(t);getInvalidDate=()=>new Date("Invalid Date");getTimezone=()=>"default";setTimezone=t=>t;toJsDate=t=>t;getCurrentLocaleCode=()=>this.locale.code;is12HourCycleInCurrentLocale=()=>/a/.test(this.locale.formatLong.time({width:"short"}));expandFormat=t=>{const o=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return t.match(o).map(r=>{const s=r[0];if(s==="p"||s==="P"){const i=this.longFormatters[s];return i(r,this.locale.formatLong)}return r}).join("")};formatNumber=t=>t;getDayOfWeek=t=>t.getDay()+1}class El extends kl{constructor({locale:t,formats:o}={}){if(process.env.NODE_ENV!=="production"){if(typeof yr.addDays!="function")throw new Error(["MUI: The `date-fns` package v2.x is not compatible with this adapter.","Please, install v3.x or v4.x of the package or use the `AdapterDateFnsV2` instead."].join(`
|
|
4
4
|
`));if(!to.longFormatters)throw new Error("MUI: The minimum supported `date-fns` package version compatible with this adapter is `3.2.x`.")}super({locale:t??el.enUS,formats:o,longFormatters:to.longFormatters})}parse=(t,o)=>t===""?null:$a.parse(t,o,new Date,{locale:this.locale});isValid=t=>t==null?!1:La.isValid(t);format=(t,o)=>this.formatByString(t,this.formats[o]);formatByString=(t,o)=>to.format(t,o,{locale:this.locale});isEqual=(t,o)=>t===null&&o===null?!0:t===null||o===null?!1:_a.isEqual(t,o);isSameYear=(t,o)=>Fa.isSameYear(t,o);isSameMonth=(t,o)=>ja.isSameMonth(t,o);isSameDay=(t,o)=>Na.isSameDay(t,o);isSameHour=(t,o)=>Aa.isSameHour(t,o);isAfter=(t,o)=>no.isAfter(t,o);isAfterYear=(t,o)=>no.isAfter(t,gr.endOfYear(o));isAfterDay=(t,o)=>no.isAfter(t,br.endOfDay(o));isBefore=(t,o)=>oo.isBefore(t,o);isBeforeYear=(t,o)=>oo.isBefore(t,this.startOfYear(o));isBeforeDay=(t,o)=>oo.isBefore(t,this.startOfDay(o));isWithinRange=(t,[o,r])=>Ja.isWithinInterval(t,{start:o,end:r});startOfYear=t=>Za.startOfYear(t);startOfMonth=t=>Ga.startOfMonth(t);startOfWeek=t=>Xa.startOfWeek(t,{locale:this.locale});startOfDay=t=>Ka.startOfDay(t);endOfYear=t=>gr.endOfYear(t);endOfMonth=t=>Qa.endOfMonth(t);endOfWeek=t=>wa.endOfWeek(t,{locale:this.locale});endOfDay=t=>br.endOfDay(t);addYears=(t,o)=>Ca.addYears(t,o);addMonths=(t,o)=>Pa.addMonths(t,o);addWeeks=(t,o)=>Sa.addWeeks(t,o);addDays=(t,o)=>yr.addDays(t,o);addHours=(t,o)=>va.addHours(t,o);addMinutes=(t,o)=>xa.addMinutes(t,o);addSeconds=(t,o)=>ga.addSeconds(t,o);getYear=t=>Va.getYear(t);getMonth=t=>Oa.getMonth(t);getDate=t=>Da.getDate(t);getHours=t=>ka.getHours(t);getMinutes=t=>Ea.getMinutes(t);getSeconds=t=>Ma.getSeconds(t);getMilliseconds=t=>Ra.getMilliseconds(t);setYear=(t,o)=>Ua.setYear(t,o);setMonth=(t,o)=>Ha.setMonth(t,o);setDate=(t,o)=>Ba.setDate(t,o);setHours=(t,o)=>Wa.setHours(t,o);setMinutes=(t,o)=>qa.setMinutes(t,o);setSeconds=(t,o)=>za.setSeconds(t,o);setMilliseconds=(t,o)=>Ya.setMilliseconds(t,o);getDaysInMonth=t=>Ta.getDaysInMonth(t);getWeekArray=t=>{const o=this.startOfWeek(this.startOfMonth(t)),r=this.endOfWeek(this.endOfMonth(t));let s=0,i=o;const a=[];for(;this.isBefore(i,r);){const l=Math.floor(s/7);a[l]=a[l]||[],a[l].push(i),i=this.addDays(i,1),s+=1}return a};getWeekNumber=t=>Ia.getWeek(t,{locale:this.locale});getYearRange=([t,o])=>{const r=this.startOfYear(t),s=this.endOfYear(o),i=[];let a=r;for(;this.isBefore(a,s);)i.push(a),a=this.addYears(a,1);return i}}const ht=n.oneOfType([n.func,n.object]);function rt(e,t,o){return typeof e=="function"?e(t,o):e}const ut=(e,t)=>e.length!==t.length?!1:t.every(o=>e.includes(o)),Ol=({openTo:e,defaultOpenTo:t,views:o,defaultViews:r})=>{const s=o??r;let i;if(e!=null)i=e;else if(s.includes(t))i=t;else if(s.length>0)i=s[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:s,openTo:i}},vn=(e,t,o)=>{let r=t;return r=e.setHours(r,e.getHours(o)),r=e.setMinutes(r,e.getMinutes(o)),r=e.setSeconds(r,e.getSeconds(o)),r=e.setMilliseconds(r,e.getMilliseconds(o)),r},rn=({date:e,disableFuture:t,disablePast:o,maxDate:r,minDate:s,isDateDisabled:i,adapter:a,timezone:l})=>{const c=vn(a,a.date(void 0,l),e);o&&a.isBefore(s,c)&&(s=c),t&&a.isAfter(r,c)&&(r=c);let u=e,d=e;for(a.isBefore(e,s)&&(u=s,d=null),a.isAfter(e,r)&&(d&&(d=r),u=null);u||d;){if(u&&a.isAfter(u,r)&&(u=null),d&&a.isBefore(d,s)&&(d=null),u){if(!i(u))return u;u=a.addDays(u,1)}if(d){if(!i(d))return d;d=a.addDays(d,-1)}}return null},Ml=(e,t)=>e.isValid(t)?t:null,Sn=(e,t,o)=>t==null||!e.isValid(t)?o:t,Rl=(e,t,o)=>!e.isValid(t)&&t!=null&&!e.isValid(o)&&o!=null?!0:e.isEqual(t,o),Oo=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const s=r[r.length-1];r.push(e.addMonths(s,1))}return r},Mo=(e,t,o)=>o==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),Jt=(e,t)=>{const o=e.setHours(e.date(),t==="am"?2:14);return e.format(o,"meridiem")},Fs=["year","month","day"],Wt=e=>Fs.includes(e),Rr=(e,{format:t,views:o},r)=>{if(t!=null)return t;const s=e.formats;return ut(o,["year"])?s.year:ut(o,["month"])?s.month:ut(o,["day"])?s.dayOfMonth:ut(o,["month","year"])?`${s.month} ${s.year}`:ut(o,["day","month"])?`${s.month} ${s.dayOfMonth}`:s.keyboardDate},Il=(e,t)=>{const o=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(o,r))},js=["hours","minutes","seconds"],Vl=["hours","minutes","seconds","meridiem"],sn=e=>js.includes(e),Ft=e=>Vl.includes(e),_l=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,yo=(e,t,o)=>o&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Nl=(e,t,o,r)=>{const s=yo(r.getHours(e),t,o);return r.setHours(e,s)},Ir=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Mn=(e,t)=>(o,r)=>e?t.isAfter(o,r):Ir(o,t)>Ir(r,t),Vr=(e,{format:t,views:o,ampm:r})=>{if(t!=null)return t;const s=e.formats;return ut(o,["hours"])?r?`${s.hours12h} ${s.meridiem}`:s.hours24h:ut(o,["minutes"])?s.minutes:ut(o,["seconds"])?s.seconds:ut(o,["minutes","seconds"])?`${s.minutes}:${s.seconds}`:ut(o,["hours","minutes","seconds"])?r?`${s.hours12h}:${s.minutes}:${s.seconds} ${s.meridiem}`:`${s.hours24h}:${s.minutes}:${s.seconds}`:r?`${s.hours12h}:${s.minutes} ${s.meridiem}`:`${s.hours24h}:${s.minutes}`},ot={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Fl=e=>Math.max(...e.map(t=>ot[t.type]??1)),Kt=(e,t,o)=>{if(t===ot.year)return e.startOfYear(o);if(t===ot.month)return e.startOfMonth(o);if(t===ot.day)return e.startOfDay(o);let r=o;return t<ot.minutes&&(r=e.setMinutes(r,0)),t<ot.seconds&&(r=e.setSeconds(r,0)),t<ot.milliseconds&&(r=e.setMilliseconds(r,0)),r},jl=({props:e,adapter:t,granularity:o,timezone:r,getTodayDate:s})=>{let i=s?s():Kt(t,o,Mo(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=Kt(t,o,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=Kt(t,o,e.maxDate));const a=Mn(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=Kt(t,o,e.disableIgnoringDatePartForTimeValidation?e.minTime:vn(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=Kt(t,o,e.disableIgnoringDatePartForTimeValidation?e.maxTime:vn(t,i,e.maxTime))),i},Ro=(e,t)=>{const o=e.formatTokenMap[t];if(o==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
|
package/dist/inputs.js
CHANGED
|
@@ -11,7 +11,7 @@ import It from "@mui/material/TextField";
|
|
|
11
11
|
import { INPUT_HEIGHTS as Vo, toMuiInputSize as No, toMuiColor as Nt, toMuiSize as mn } from "./types.js";
|
|
12
12
|
import We from "@mui/material/Box";
|
|
13
13
|
import at from "@mui/material/Typography";
|
|
14
|
-
import { S as dy } from "./Select-
|
|
14
|
+
import { S as dy } from "./Select-D61fKI8Y.js";
|
|
15
15
|
import ia from "@mui/material/Autocomplete";
|
|
16
16
|
import aa from "@mui/material/CircularProgress";
|
|
17
17
|
import la from "@mui/material/Checkbox";
|