ccdash
Version:
Claude Code Dashboard - A comprehensive monitoring dashboard for Claude Code
1 lines • 21.7 kB
JavaScript
;exports.id=483,exports.ids=[483],exports.modules={483:(e,s,a)=>{a.d(s,{Y:()=>Q});var t=a(687),i=a(3210),l=a(5814),n=a.n(l),r=a(474),d=a(4934),o=a(6134),c=a(4224),m=a(1860),f=a(6241);let x=o.bL,u=o.l9;o.bm;let h=o.ZL,p=i.forwardRef(({className:e,...s},a)=>(0,t.jsx)(o.hJ,{className:(0,f.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...s,ref:a}));p.displayName=o.hJ.displayName;let g=(0,c.F)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),j=i.forwardRef(({side:e="right",className:s,children:a,...i},l)=>(0,t.jsxs)(h,{children:[(0,t.jsx)(p,{}),(0,t.jsxs)(o.UC,{ref:l,className:(0,f.cn)(g({side:e}),s),...i,children:[a,(0,t.jsxs)(o.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,t.jsx)(m.A,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));j.displayName=o.UC.displayName;let N=({className:e,...s})=>(0,t.jsx)("div",{className:(0,f.cn)("flex flex-col space-y-2 text-center sm:text-left",e),...s});N.displayName="SheetHeader";let b=i.forwardRef(({className:e,...s},a)=>(0,t.jsx)(o.hE,{ref:a,className:(0,f.cn)("text-lg font-semibold text-foreground",e),...s}));b.displayName=o.hE.displayName;let y=i.forwardRef(({className:e,...s},a)=>(0,t.jsx)(o.VY,{ref:a,className:(0,f.cn)("text-sm text-muted-foreground",e),...s}));y.displayName=o.VY.displayName;var v=a(3931),w=a(4952),L=a(3964),C=a(5822);let k=v.bL,z=v.l9;v.YJ,v.ZL,v.Pb,v.z6,i.forwardRef(({className:e,inset:s,children:a,...i},l)=>(0,t.jsxs)(v.ZP,{ref:l,className:(0,f.cn)("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",s&&"pl-8",e),...i,children:[a,(0,t.jsx)(w.A,{className:"ml-auto"})]})).displayName=v.ZP.displayName,i.forwardRef(({className:e,...s},a)=>(0,t.jsx)(v.G5,{ref:a,className:(0,f.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...s})).displayName=v.G5.displayName;let A=i.forwardRef(({className:e,sideOffset:s=4,...a},i)=>(0,t.jsx)(v.ZL,{children:(0,t.jsx)(v.UC,{ref:i,sideOffset:s,className:(0,f.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));A.displayName=v.UC.displayName;let R=i.forwardRef(({className:e,inset:s,...a},i)=>(0,t.jsx)(v.q7,{ref:i,className:(0,f.cn)("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",s&&"pl-8",e),...a}));R.displayName=v.q7.displayName,i.forwardRef(({className:e,children:s,checked:a,...i},l)=>(0,t.jsxs)(v.H_,{ref:l,className:(0,f.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...i,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(v.VF,{children:(0,t.jsx)(L.A,{className:"h-4 w-4"})})}),s]})).displayName=v.H_.displayName,i.forwardRef(({className:e,children:s,...a},i)=>(0,t.jsxs)(v.hN,{ref:i,className:(0,f.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(v.VF,{children:(0,t.jsx)(C.A,{className:"h-2 w-2 fill-current"})})}),s]})).displayName=v.hN.displayName,i.forwardRef(({className:e,inset:s,...a},i)=>(0,t.jsx)(v.JU,{ref:i,className:(0,f.cn)("px-2 py-1.5 text-sm font-semibold",s&&"pl-8",e),...a})).displayName=v.JU.displayName,i.forwardRef(({className:e,...s},a)=>(0,t.jsx)(v.wv,{ref:a,className:(0,f.cn)("-mx-1 my-1 h-px bg-muted",e),...s})).displayName=v.wv.displayName;var S=a(7499);function J({currentLanguage:e,onLanguageChange:s}){let[a,l]=(0,i.useState)("ja"),n=e=>{l(e),s?.(e)},r=[{code:"ja",name:"日本語",flag:"\uD83C\uDDEF\uD83C\uDDF5"},{code:"en",name:"English",flag:"\uD83C\uDDFA\uD83C\uDDF8"}],o=r.find(e=>e.code===a);return(0,t.jsxs)(k,{children:[(0,t.jsx)(z,{asChild:!0,children:(0,t.jsxs)(d.$,{variant:"outline",size:"sm",className:"gap-2",children:[(0,t.jsx)(S.A,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:o?.flag}),(0,t.jsx)("span",{className:"hidden sm:inline",children:o?.name})]})}),(0,t.jsx)(A,{align:"end",children:r.map(e=>(0,t.jsxs)(R,{onClick:()=>n(e.code),className:"flex items-center justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{children:e.flag}),(0,t.jsx)("span",{children:e.name})]}),a===e.code&&(0,t.jsx)(L.A,{className:"w-4 h-4"})]},e.code))})]})}a(4354);var F=a(4027);let _=o.bL,U=o.l9,P=o.ZL;o.bm;let T=i.forwardRef(({className:e,...s},a)=>(0,t.jsx)(o.hJ,{ref:a,className:(0,f.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...s}));T.displayName=o.hJ.displayName;let M=i.forwardRef(({className:e,children:s,...a},i)=>(0,t.jsxs)(P,{children:[(0,t.jsx)(T,{}),(0,t.jsxs)(o.UC,{ref:i,className:(0,f.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[s,(0,t.jsxs)(o.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,t.jsx)(m.A,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));M.displayName=o.UC.displayName;let E=({className:e,...s})=>(0,t.jsx)("div",{className:(0,f.cn)("flex flex-col space-y-1.5 text-center sm:text-left",e),...s});E.displayName="DialogHeader";let V=i.forwardRef(({className:e,...s},a)=>(0,t.jsx)(o.hE,{ref:a,className:(0,f.cn)("text-lg font-semibold leading-none tracking-tight",e),...s}));V.displayName=o.hE.displayName;let $=i.forwardRef(({className:e,...s},a)=>(0,t.jsx)(o.VY,{ref:a,className:(0,f.cn)("text-sm text-muted-foreground",e),...s}));$.displayName=o.VY.displayName;var q=a(3974),Y=a(9390),Z=a(8988),D=a(4783),I=a(329);function G({onSettingsChange:e}){let{t:s}=(0,I.s)(),[a,l]=(0,i.useState)(()=>(0,D.mt)()),[n,r]=(0,i.useState)(!1),[o,c]=(0,i.useState)(!1),m=(e,s)=>{let t="costLimit"===e?parseFloat(s):parseInt(s);!isNaN(t)&&(l({...a,fixedLimits:{...a.fixedLimits,[e]:t}}),c(!0))},f=e=>{l({...a,fixedLimits:{...D.F0[e]}}),c(!0)};return(0,t.jsxs)(_,{open:n,onOpenChange:r,children:[(0,t.jsx)(U,{asChild:!0,children:(0,t.jsxs)(d.$,{variant:"outline",size:"sm",children:[(0,t.jsx)(F.A,{className:"w-4 h-4 mr-2"}),s("common.settings")]})}),(0,t.jsxs)(M,{className:"sm:max-w-[500px] max-h-[80vh] overflow-y-auto",children:[(0,t.jsxs)(E,{children:[(0,t.jsx)(V,{children:s("settings.title")}),(0,t.jsx)($,{children:s("settings.description")})]}),(0,t.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,t.jsxs)("div",{className:"grid grid-cols-4 items-center gap-4",children:[(0,t.jsx)(Y.J,{htmlFor:"usage-mode",className:"text-right",children:s("settings.usageMode")}),(0,t.jsxs)(q.l6,{value:a.usageMode,onValueChange:e=>{l({...a,usageMode:e}),c(!0)},children:[(0,t.jsx)(q.bq,{className:"col-span-3",children:(0,t.jsx)(q.yv,{placeholder:s("settings.usageModePlaceholder")})}),(0,t.jsxs)(q.gC,{children:[(0,t.jsx)(q.eb,{value:"p90_prediction",children:s("settings.p90Prediction")}),(0,t.jsx)(q.eb,{value:"fixed_limits",children:s("settings.fixedLimits")})]})]})]}),"fixed_limits"===a.usageMode&&(0,t.jsxs)("div",{className:"space-y-3 p-3 border rounded-lg bg-gray-50",children:[(0,t.jsxs)("div",{className:"flex justify-between items-center",children:[(0,t.jsx)(Y.J,{className:"text-sm font-medium",children:s("settings.fixedLimitsConfig")}),(0,t.jsxs)(q.l6,{onValueChange:e=>f(e),children:[(0,t.jsx)(q.bq,{className:"w-32",children:(0,t.jsx)(q.yv,{placeholder:s("settings.preset")})}),(0,t.jsxs)(q.gC,{children:[(0,t.jsx)(q.eb,{value:"Pro",children:"Pro"}),(0,t.jsx)(q.eb,{value:"Max5",children:"Max5"}),(0,t.jsx)(q.eb,{value:"Max20",children:"Max20"}),(0,t.jsx)(q.eb,{value:"Custom",children:"Custom"})]})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-3 gap-3",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(Y.J,{htmlFor:"token-limit",className:"text-xs",children:s("settings.tokenLimit")}),(0,t.jsx)(Z.p,{id:"token-limit",type:"number",value:a.fixedLimits.tokenLimit,onChange:e=>m("tokenLimit",e.target.value),min:"1000",max:"1000000"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(Y.J,{htmlFor:"message-limit",className:"text-xs",children:s("settings.messageLimit")}),(0,t.jsx)(Z.p,{id:"message-limit",type:"number",value:a.fixedLimits.messageLimit,onChange:e=>m("messageLimit",e.target.value),min:"10",max:"10000"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)(Y.J,{htmlFor:"cost-limit",className:"text-xs",children:[s("settings.costLimit")," ($)"]}),(0,t.jsx)(Z.p,{id:"cost-limit",type:"number",step:"0.1",value:a.fixedLimits.costLimit,onChange:e=>m("costLimit",e.target.value),min:"1",max:"1000"})]})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-4 items-center gap-4",children:[(0,t.jsx)(Y.J,{htmlFor:"timezone",className:"text-right",children:s("settings.timezone")}),(0,t.jsxs)(q.l6,{value:a.timezone,onValueChange:e=>{l({...a,timezone:e}),c(!0)},children:[(0,t.jsx)(q.bq,{className:"col-span-3",children:(0,t.jsx)(q.yv,{placeholder:s("settings.timezonePlaceholder")})}),(0,t.jsx)(q.gC,{children:D.xJ.map(e=>(0,t.jsx)(q.eb,{value:e.value,children:e.label},e.value))})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-4 items-center gap-4",children:[(0,t.jsx)(Y.J,{htmlFor:"refresh-interval",className:"text-right",children:s("settings.refreshInterval")}),(0,t.jsxs)(q.l6,{value:a.autoRefreshInterval.toString(),onValueChange:e=>{l({...a,autoRefreshInterval:parseInt(e)}),c(!0)},children:[(0,t.jsx)(q.bq,{className:"col-span-3",children:(0,t.jsx)(q.yv,{placeholder:s("settings.refreshPlaceholder")})}),(0,t.jsx)(q.gC,{children:D.LT.map(e=>(0,t.jsx)(q.eb,{value:e.value.toString(),children:e.label},e.value))})]})]})]}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)(d.$,{variant:"outline",onClick:()=>{l((0,D.mt)()),c(!1),r(!1)},children:s("settings.cancel")}),(0,t.jsx)(d.$,{onClick:()=>{(0,D.DZ)(a),c(!1),r(!1),e?.(a)},disabled:!o,children:s("settings.save")})]})]})]})}var H=a(7368),O=a(3053),B=a(2157),K=a(8122),W=a(2941);function Q({onSettingsChange:e}){let{t:s,language:a,changeLanguage:l}=(0,I.s)(),{sync:o}=(0,O.G_)(),[c,m]=(0,i.useState)(!1),[f,h]=(0,i.useState)(!1),p=async()=>{h(!0);try{await o(),window.location.reload()}catch{}finally{h(!1)}};return(0,t.jsx)("header",{className:"sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:(0,t.jsxs)("div",{className:"container mx-auto max-w-7xl flex h-16 items-center px-6",children:[(0,t.jsx)("div",{className:"mr-6 flex items-center space-x-2",children:(0,t.jsxs)(n(),{href:"/",className:"flex items-center space-x-2",children:[(0,t.jsx)("div",{className:"flex h-8 w-8 items-center justify-center bg-transparent",children:(0,t.jsx)(r.default,{src:"/favicon.ico",alt:"CCDash",width:32,height:32,className:"h-8 w-8"})}),(0,t.jsx)("div",{className:"hidden font-bold sm:inline-block",children:s("header.title")})]})}),(0,t.jsxs)("div",{className:"flex flex-1 items-center justify-end space-x-2",children:[(0,t.jsxs)("div",{className:"hidden items-center space-x-2 sm:flex",children:[(0,t.jsx)(H.TD,{showFullStatus:!1}),(0,t.jsx)(d.$,{variant:"ghost",size:"sm",asChild:!0,children:(0,t.jsxs)(n(),{href:"https://github.com/satoshi03/ccdash",target:"_blank",rel:"noopener noreferrer",children:[(0,t.jsx)(B.A,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"GitHub"})]})}),(0,t.jsxs)(d.$,{onClick:p,disabled:f,variant:"outline",size:"sm",children:[(0,t.jsx)(K.A,{className:`h-4 w-4 mr-2 ${f?"animate-spin":""}`}),s("common.refresh")]}),(0,t.jsx)(J,{currentLanguage:a,onLanguageChange:l}),(0,t.jsx)(G,{onSettingsChange:e})]}),(0,t.jsxs)(x,{open:c,onOpenChange:m,children:[(0,t.jsx)(u,{asChild:!0,className:"md:hidden",children:(0,t.jsxs)(d.$,{variant:"ghost",size:"sm",className:"ml-2 px-0 text-base hover:bg-transparent focus-visible:bg-transparent focus-visible:ring-0 focus-visible:ring-offset-0",children:[(0,t.jsx)(W.A,{className:"h-6 w-6"}),(0,t.jsx)("span",{className:"sr-only",children:"Toggle Menu"})]})}),(0,t.jsxs)(j,{side:"right",className:"pr-0",children:[(0,t.jsxs)(N,{children:[(0,t.jsxs)(b,{className:"flex items-center space-x-2",children:[(0,t.jsx)(r.default,{src:"/favicon.ico",alt:"CCDash",width:20,height:20,className:"h-5 w-5"}),(0,t.jsx)("span",{children:s("header.title")})]}),(0,t.jsx)(y,{children:s("header.subtitle")})]}),(0,t.jsx)("div",{className:"my-4 h-px bg-border"}),(0,t.jsxs)("div",{className:"flex flex-col space-y-3",children:[(0,t.jsx)("div",{className:"flex justify-start",children:(0,t.jsx)(H.TD,{showFullStatus:!0})}),(0,t.jsx)(d.$,{variant:"ghost",size:"sm",asChild:!0,className:"justify-start",children:(0,t.jsxs)(n(),{href:"https://github.com/satoshi03/ccdash",target:"_blank",rel:"noopener noreferrer",children:[(0,t.jsx)(B.A,{className:"h-4 w-4 mr-2"}),"GitHub"]})}),(0,t.jsxs)(d.$,{onClick:p,disabled:f,variant:"outline",size:"sm",className:"justify-start",children:[(0,t.jsx)(K.A,{className:`h-4 w-4 mr-2 ${f?"animate-spin":""}`}),s("common.refresh")]}),(0,t.jsx)(J,{currentLanguage:a,onLanguageChange:l}),(0,t.jsx)(G,{onSettingsChange:e})]})]})]})]})]})})}},3053:(e,s,a)=>{a.d(s,{AR:()=>l,BI:()=>d,G_:()=>r,te:()=>n});var t=a(3210),i=a(9556);function l(){let[e,s]=(0,t.useState)(null),[a,l]=(0,t.useState)(!0),[n,r]=(0,t.useState)(null);return{data:e,loading:a,error:n,refetch:async()=>{try{l(!0),r(null);let e=await i.F.tokenUsage.getCurrent();s(e)}catch(e){r(e instanceof Error?e.message:"Unknown error")}finally{l(!1)}}}}function n(){let[e,s]=(0,t.useState)([]),[a,l]=(0,t.useState)(!0),[n,r]=(0,t.useState)(null);return{data:e,loading:a,error:n,refetch:async()=>{try{l(!0),r(null);let e=await i.F.sessions.getAll();s(e.sessions)}catch(e){r(e instanceof Error?e.message:"Unknown error")}finally{l(!1)}}}}function r(){let[e,s]=(0,t.useState)(!1),[a,l]=(0,t.useState)(null);return{sync:async()=>{try{return s(!0),l(null),await i.F.sync.logs(),!0}catch(e){return l(e instanceof Error?e.message:"Unknown error"),!1}finally{s(!1)}},loading:e,error:a}}function d(){let[e,s]=(0,t.useState)(null),[a,l]=(0,t.useState)(!0),[n,r]=(0,t.useState)(null);return{data:e,loading:a,error:n,refetch:async()=>{try{l(!0),r(null);let e=await i.F.predictions.getP90();s(e)}catch(e){r(e instanceof Error?e.message:"Unknown error")}finally{l(!1)}}}}},3974:(e,s,a)=>{a.d(s,{bq:()=>f,eb:()=>p,gC:()=>h,l6:()=>c,yv:()=>m});var t=a(687),i=a(3210),l=a(5945),n=a(5891),r=a(3589),d=a(3964),o=a(6241);let c=l.bL;l.YJ;let m=l.WT,f=i.forwardRef(({className:e,children:s,...a},i)=>(0,t.jsxs)(l.l9,{ref:i,className:(0,o.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...a,children:[s,(0,t.jsx)(l.In,{asChild:!0,children:(0,t.jsx)(n.A,{className:"h-4 w-4 opacity-50"})})]}));f.displayName=l.l9.displayName;let x=i.forwardRef(({className:e,...s},a)=>(0,t.jsx)(l.PP,{ref:a,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",e),...s,children:(0,t.jsx)(r.A,{className:"h-4 w-4"})}));x.displayName=l.PP.displayName;let u=i.forwardRef(({className:e,...s},a)=>(0,t.jsx)(l.wn,{ref:a,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",e),...s,children:(0,t.jsx)(n.A,{className:"h-4 w-4"})}));u.displayName=l.wn.displayName;let h=i.forwardRef(({className:e,children:s,position:a="popper",...i},n)=>(0,t.jsx)(l.ZL,{children:(0,t.jsxs)(l.UC,{ref:n,className:(0,o.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===a&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,...i,children:[(0,t.jsx)(x,{}),(0,t.jsx)(l.LM,{className:(0,o.cn)("p-1","popper"===a&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,t.jsx)(u,{})]})}));h.displayName=l.UC.displayName,i.forwardRef(({className:e,...s},a)=>(0,t.jsx)(l.JU,{ref:a,className:(0,o.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...s})).displayName=l.JU.displayName;let p=i.forwardRef(({className:e,children:s,...a},i)=>(0,t.jsxs)(l.q7,{ref:i,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(l.VF,{children:(0,t.jsx)(d.A,{className:"h-4 w-4"})})}),(0,t.jsx)(l.p4,{children:s})]}));p.displayName=l.q7.displayName,i.forwardRef(({className:e,...s},a)=>(0,t.jsx)(l.wv,{ref:a,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",e),...s})).displayName=l.wv.displayName},4783:(e,s,a)=>{a.d(s,{DZ:()=>d,F0:()=>i,LT:()=>n,mt:()=>r,xJ:()=>l});let t={timezone:"Asia/Tokyo",autoRefreshInterval:60,usageMode:"p90_prediction",fixedLimits:{tokenLimit:19e3,messageLimit:250,costLimit:18}},i={Pro:{tokenLimit:19e3,messageLimit:250,costLimit:18},Max5:{tokenLimit:88e3,messageLimit:1e3,costLimit:35},Max20:{tokenLimit:22e4,messageLimit:2e3,costLimit:140},Custom:{tokenLimit:44e3,messageLimit:250,costLimit:50}},l=[{value:"Asia/Tokyo",label:"Asia/Tokyo (JST)"},{value:"America/New_York",label:"America/New_York (EST)"},{value:"America/Los_Angeles",label:"America/Los_Angeles (PST)"},{value:"Europe/London",label:"Europe/London (GMT)"},{value:"UTC",label:"UTC"}],n=[{value:30,label:"30秒"},{value:60,label:"1分"},{value:300,label:"5分"},{value:600,label:"10分"},{value:1800,label:"30分"},{value:3600,label:"1時間"}];function r(){return t}function d(e){}},7368:(e,s,a)=>{a.d(s,{TD:()=>i.AuthStatus,kJ:()=>t.ApiKeyAuth});var t=a(6743);a(7836);var i=a(3849)},9390:(e,s,a)=>{a.d(s,{J:()=>o});var t=a(687),i=a(3210),l=a(8148),n=a(4224),r=a(6241);let d=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),o=i.forwardRef(({className:e,...s},a)=>(0,t.jsx)(l.b,{ref:a,className:(0,r.cn)(d(),e),...s}));o.displayName=l.b.displayName}};