@exulu/frontend 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.next/BUILD_ID +1 -1
- package/dist/.next/app-build-manifest.json +120 -120
- package/dist/.next/app-path-routes-manifest.json +1 -1
- package/dist/.next/build-manifest.json +2 -2
- package/dist/.next/prerender-manifest.json +1 -1
- package/dist/.next/server/app/(application)/agents/edit/[id]/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/agents/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/chat/[agent]/[session]/page.js +1 -1
- package/dist/.next/server/app/(application)/chat/[agent]/[session]/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/chat/[agent]/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/chat/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/configuration/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/dashboard/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/data/[[...query]]/page.js +1 -1
- package/dist/.next/server/app/(application)/data/[[...query]]/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/evals/[id]/page.js +1 -1
- package/dist/.next/server/app/(application)/evals/[id]/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/evals/cases/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/evals/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/explorer/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/keys/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/projects/[project]/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/projects/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/prompts/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/roles/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/token/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/users/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/variables/create/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/variables/edit/[variable_id]/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/variables/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/variables/usage/[variable_id]/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/workflows/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(authentication)/login/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/_not-found.html +1 -1
- package/dist/.next/server/app/_not-found.rsc +1 -1
- package/dist/.next/server/app-paths-manifest.json +7 -7
- package/dist/.next/server/chunks/2270.js +5 -0
- package/dist/.next/server/chunks/2948.js +1 -1
- package/dist/.next/server/chunks/7471.js +1 -1
- package/dist/.next/server/chunks/7958.js +1 -1
- package/dist/.next/server/chunks/8286.js +1 -1
- package/dist/.next/server/middleware-manifest.json +5 -5
- package/dist/.next/server/pages/404.html +1 -1
- package/dist/.next/server/pages/500.html +1 -1
- package/dist/.next/server/server-reference-manifest.json +1 -1
- package/dist/.next/static/chunks/{6373-1e2ef7e1f5217052.js → 6373-7908bd5269f95aa3.js} +2 -2
- package/dist/.next/static/chunks/6373-7908bd5269f95aa3.js.map +1 -0
- package/dist/.next/static/chunks/{9953-abcb3d5ff5512285.js → 9953-dfb5fc0e5b74ec09.js} +2 -2
- package/dist/.next/static/chunks/9953-dfb5fc0e5b74ec09.js.map +1 -0
- package/dist/.next/static/chunks/app/(application)/chat/[agent]/[session]/{page-f1f7f053f0aec4f9.js → page-57021bb06089261a.js} +1 -1
- package/dist/.next/static/chunks/app/(application)/chat/[agent]/[session]/{page-f1f7f053f0aec4f9.js.map → page-57021bb06089261a.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/data/[[...query]]/{page-640f50c121655487.js → page-841b2ed48010048e.js} +2 -2
- package/dist/.next/static/chunks/app/(application)/data/[[...query]]/page-841b2ed48010048e.js.map +1 -0
- package/dist/.next/static/css/e3f2a16ab7676b05.css.map +1 -1
- package/package.json +1 -1
- package/dist/.next/static/chunks/6373-1e2ef7e1f5217052.js.map +0 -1
- package/dist/.next/static/chunks/9953-abcb3d5ff5512285.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/data/[[...query]]/page-640f50c121655487.js.map +0 -1
- /package/dist/.next/static/{2bzL2j5_MmcbjxQ21egBB → J23NmkaMjAJYnE0jX_kO0}/_buildManifest.js +0 -0
- /package/dist/.next/static/{2bzL2j5_MmcbjxQ21egBB → J23NmkaMjAJYnE0jX_kO0}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=2948,exports.ids=[2948],exports.modules={51602:(e,s,t)=>{t.d(s,{d:()=>x,f:()=>h});var r=t(10326),a=t(90772),l=t(77863),n=t(32933),i=t(43810),o=t(17577),d=t(54390),c=t(35057),m=t(48818);let u=(0,o.createContext)({code:""}),x=({code:e,language:s,showLineNumbers:t=!1,className:a,children:n,...i})=>r.jsx(u.Provider,{value:{code:e},children:r.jsx("div",{className:(0,l.cn)("relative w-full overflow-hidden rounded-md border bg-background text-foreground",a),...i,children:(0,r.jsxs)("div",{className:"relative",children:[r.jsx(d.Z,{className:"overflow-hidden dark:hidden",codeTagProps:{className:"font-mono text-sm"},customStyle:{margin:0,padding:"1rem",fontSize:"0.875rem",background:"hsl(var(--background))",color:"hsl(var(--foreground))"},language:s,lineNumberStyle:{color:"hsl(var(--muted-foreground))",paddingRight:"1rem",minWidth:"2.5rem"},showLineNumbers:t,style:c.Z,children:e}),r.jsx(d.Z,{className:"hidden overflow-hidden dark:block",codeTagProps:{className:"font-mono text-sm"},customStyle:{margin:0,padding:"1rem",fontSize:"0.875rem",background:"hsl(var(--background))",color:"hsl(var(--foreground))"},language:s,lineNumberStyle:{color:"hsl(var(--muted-foreground))",paddingRight:"1rem",minWidth:"2.5rem"},showLineNumbers:t,style:m.Z,children:e}),n&&r.jsx("div",{className:"absolute top-2 right-2 flex items-center gap-2",children:n})]})})}),h=({onCopy:e,onError:s,timeout:t=2e3,children:d,className:c,...m})=>{let[x,h]=(0,o.useState)(!1),{code:p}=(0,o.useContext)(u),g=async()=>{s?.(Error("Clipboard API not available"))},f=x?n.Z:i.Z;return r.jsx(a.z,{className:(0,l.cn)("shrink-0",c),onClick:g,size:"icon",variant:"ghost",...m,children:d??r.jsx(f,{size:14})})}},5354:(e,s,t)=>{t.d(s,{iG:()=>i,ri:()=>n});var r=t(10326);t(90772);var a=t(77863);t(17577);var l=t(30778);let n=({className:e,...s})=>r.jsx(l.h,{className:(0,a.cn)("relative flex-1 overflow-y-auto",e),initial:"smooth",resize:"smooth",role:"log",...s}),i=({className:e,...s})=>r.jsx(l.h.Content,{className:(0,a.cn)("p-4",e),...s})},36931:(e,s,t)=>{t.d(s,{H:()=>x});var r=t(10326),a=t(77863),l=t(17577),n=t(16476),i=t(79283),o=t(70285),d=t(7833),c=t(51602);t(32289);let m=(0,t(39499).Z)(n.UG),u={ol:({node:e,children:s,className:t,...l})=>r.jsx("ol",{className:(0,a.cn)("ml-4 list-outside list-decimal",t),...l,children:s}),li:({node:e,children:s,className:t,...l})=>r.jsx("li",{className:(0,a.cn)("py-1",t),...l,children:s}),ul:({node:e,children:s,className:t,...l})=>r.jsx("ul",{className:(0,a.cn)("ml-4 list-outside list-disc",t),...l,children:s}),hr:({node:e,className:s,...t})=>r.jsx("hr",{className:(0,a.cn)("my-6 border-border",s),...t}),strong:({node:e,children:s,className:t,...l})=>r.jsx("span",{className:(0,a.cn)("font-semibold",t),...l,children:s}),a:({node:e,children:s,className:t,...l})=>r.jsx("a",{className:(0,a.cn)("font-medium text-primary underline",t),rel:"noreferrer",target:"_blank",...l,children:s}),h1:({node:e,children:s,className:t,...l})=>r.jsx("h1",{className:(0,a.cn)("mt-6 mb-2 font-semibold text-3xl",t),...l,children:s}),h2:({node:e,children:s,className:t,...l})=>r.jsx("h2",{className:(0,a.cn)("mt-6 mb-2 font-semibold text-2xl",t),...l,children:s}),h3:({node:e,children:s,className:t,...l})=>r.jsx("h3",{className:(0,a.cn)("mt-6 mb-2 font-semibold text-xl",t),...l,children:s}),h4:({node:e,children:s,className:t,...l})=>r.jsx("h4",{className:(0,a.cn)("mt-6 mb-2 font-semibold text-lg",t),...l,children:s}),h5:({node:e,children:s,className:t,...l})=>r.jsx("h5",{className:(0,a.cn)("mt-6 mb-2 font-semibold text-base",t),...l,children:s}),h6:({node:e,children:s,className:t,...l})=>r.jsx("h6",{className:(0,a.cn)("mt-6 mb-2 font-semibold text-sm",t),...l,children:s}),table:({node:e,children:s,className:t,...l})=>r.jsx("div",{className:"my-4 overflow-x-auto",children:r.jsx("table",{className:(0,a.cn)("w-full border-collapse border border-border",t),...l,children:s})}),thead:({node:e,children:s,className:t,...l})=>r.jsx("thead",{className:(0,a.cn)("bg-muted/50",t),...l,children:s}),tbody:({node:e,children:s,className:t,...l})=>r.jsx("tbody",{className:(0,a.cn)("divide-y divide-border",t),...l,children:s}),tr:({node:e,children:s,className:t,...l})=>r.jsx("tr",{className:(0,a.cn)("border-border border-b",t),...l,children:s}),th:({node:e,children:s,className:t,...l})=>r.jsx("th",{className:(0,a.cn)("px-4 py-2 text-left font-semibold text-sm",t),...l,children:s}),td:({node:e,children:s,className:t,...l})=>r.jsx("td",{className:(0,a.cn)("px-4 py-2 text-sm",t),...l,children:s}),blockquote:({node:e,children:s,className:t,...l})=>r.jsx("blockquote",{className:(0,a.cn)("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),...l,children:s}),code:({node:e,className:s,...t})=>e?.position?.start.line!==e?.position?.end.line?r.jsx("code",{className:s,...t}):r.jsx("code",{className:(0,a.cn)("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",s),...t}),pre:({node:e,className:s,children:t})=>{let n="javascript";"string"==typeof e?.properties?.className&&(n=e.properties.className.replace("language-",""));let i="";return(0,l.isValidElement)(t)&&t.props&&"string"==typeof t.props.children?i=t.props.children:"string"==typeof t&&(i=t),r.jsx(c.d,{className:(0,a.cn)("my-4 h-auto",s),code:i,language:n,children:r.jsx(c.f,{onCopy:()=>console.log("Copied code to clipboard"),onError:()=>console.error("Failed to copy code to clipboard")})})}},x=(0,l.memo)(({className:e,options:s,children:t,allowedImagePrefixes:l,allowedLinkPrefixes:n,defaultOrigin:c,parseIncompleteMarkdown:x=!0,...h})=>{let p="string"==typeof t&&x?function(e){if(!e||"string"!=typeof e)return e;let s=e,t=s.match(/(!?\[)([^\]]*?)$/);if(t){let e=s.lastIndexOf(t[1]);s=s.substring(0,e)}if(s.match(/(\*\*)([^*]*?)$/)&&(s.match(/\*\*/g)||[]).length%2==1&&(s=`${s}**`),s.match(/(__)([^_]*?)$/)&&(s.match(/__/g)||[]).length%2==1&&(s=`${s}__`),s.match(/(\*)([^*]*?)$/)&&s.split("").reduce((e,t,r)=>{if("*"===t){let t=s[r-1],a=s[r+1];if("*"!==t&&"*"!==a)return e+1}return e},0)%2==1&&(s=`${s}*`),s.match(/(_)([^_]*?)$/)&&s.split("").reduce((e,t,r)=>{if("_"===t){let t=s[r-1],a=s[r+1];if("_"!==t&&"_"!==a)return e+1}return e},0)%2==1&&(s=`${s}_`),s.match(/(`)([^`]*?)$/)&&(s.includes("```"),(s.match(/```[\s\S]*?```/g)||[]).length,(s.match(/```/g)||[]).length%2!=1)){let e=0;for(let t=0;t<s.length;t++)if("`"===s[t]){let r="```"===s.substring(t,t+3),a=t>0&&"```"===s.substring(t-1,t+2),l=t>1&&"```"===s.substring(t-2,t+1);!(r||a||l)&&e++}e%2==1&&(s=`${s}\``)}return s.match(/(~~)([^~]*?)$/)&&(s.match(/~~/g)||[]).length%2==1&&(s=`${s}~~`),s}(t):t;return r.jsx("div",{className:(0,a.cn)("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),...h,children:r.jsx(m,{allowedImagePrefixes:l??["*"],allowedLinkPrefixes:n??["*"],components:u,defaultOrigin:c,rehypePlugins:[i.Z],remarkPlugins:[o.Z,d.Z],...s,children:p})})},(e,s)=>e.children===s.children);x.displayName="Response"},87599:(e,s,t)=>{t.d(s,{K:()=>M});var r=t(10326);t(28758);var a=t(77863);let l=({className:e,from:s,...t})=>r.jsx("div",{className:(0,a.cn)("group flex w-full items-end justify-end gap-2 py-4","user"===s?"is-user flex-row-reverse justify-end":"is-assistant flex-row-reverse justify-end","[&>div]:max-w-[80%]",e),...t}),n=({children:e,className:s,...t})=>r.jsx("div",{className:(0,a.cn)("flex flex-col gap-2 overflow-hidden rounded-lg py-3 text-foreground text-sm","group-[.is-user]:bg-secondary group-[.is-user]:text-primary-foreground group-[.is-user]:px-4","group-[.is-assistant]:bg-transparent group-[.is-assistant]:text-foreground",s),...t,children:r.jsx("div",{className:"is-user:dark",children:e})});var i=t(90772),o=t(68232);let d=({className:e,children:s,...t})=>r.jsx("div",{className:(0,a.cn)("flex items-center gap-1",e),...t,children:s}),c=({tooltip:e,children:s,label:t,className:l,variant:n="ghost",size:d="sm",...c})=>{let m=(0,r.jsxs)(i.z,{className:(0,a.cn)("size-9 p-1.5 text-muted-foreground hover:text-foreground",l),size:d,type:"button",variant:n,...c,children:[s,r.jsx("span",{className:"sr-only",children:t||e})]});return e?r.jsx(o.pn,{children:(0,r.jsxs)(o.u,{children:[r.jsx(o.aJ,{asChild:!0,children:m}),r.jsx(o._v,{children:r.jsx("p",{children:e})})]})}):m};var m=t(36931),u=t(52067),x=t(24295),h=t(98360),p=t(941),g=t(17577);let f=(0,g.createContext)(null),j=()=>{let e=(0,g.useContext)(f);if(!e)throw Error("Reasoning components must be used within Reasoning");return e},b=(0,g.memo)(({className:e,isStreaming:s=!1,open:t,defaultOpen:l=!1,onOpenChange:n,duration:i,children:o,...d})=>{let[c,m]=(0,u.T)({prop:t,defaultProp:l,onChange:n}),[h,p]=(0,u.T)({prop:i,defaultProp:0}),[j,b]=(0,g.useState)(!1),[N,y]=(0,g.useState)(null);return(0,g.useEffect)(()=>{s?null===N&&y(Date.now()):null!==N&&(p(Math.round((Date.now()-N)/1e3)),y(null))},[s,N,p]),(0,g.useEffect)(()=>{if(s&&!c)m(!0);else if(!s&&c&&!l&&!j){let e=setTimeout(()=>{m(!1),b(!0)},1e3);return()=>clearTimeout(e)}},[s,c,l,m,j]),r.jsx(f.Provider,{value:{isStreaming:s,isOpen:c,setIsOpen:m,duration:h},children:r.jsx(x.zF,{className:(0,a.cn)("not-prose mb-4",e),onOpenChange:e=>{m(e)},open:c,...d,children:o})})}),N=(0,g.memo)(({className:e,title:s="Reasoning",children:t,...l})=>{let{isStreaming:n,isOpen:i,duration:o}=j();return r.jsx(x.wy,{className:(0,a.cn)("flex items-center gap-2 text-muted-foreground text-sm",e),...l,children:t??(0,r.jsxs)(r.Fragment,{children:[r.jsx(h.Z,{className:"size-4"}),n||0===o?r.jsx("p",{children:"Thinking..."}):(0,r.jsxs)("p",{children:["Thought for ",o," seconds"]}),r.jsx(p.Z,{className:(0,a.cn)("size-4 text-muted-foreground transition-transform",i?"rotate-180":"rotate-0")})]})})}),y=(0,g.memo)(({className:e,children:s,...t})=>r.jsx(x.Fw,{className:(0,a.cn)("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-popover-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...t,children:r.jsx(m.H,{className:"grid gap-2",children:s})}));b.displayName="Reasoning",N.displayName="ReasoningTrigger",y.displayName="ReasoningContent";var v=t(71876);let w=({className:e,...s})=>r.jsx(x.zF,{className:(0,a.cn)("not-prose mb-4 text-primary text-xs",e),...s}),k=({className:e,count:s,children:t,...a})=>r.jsx(x.wy,{className:"flex items-center gap-2",...a,children:t??(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("p",{className:"font-medium",children:["Used ",s," sources"]}),r.jsx(p.Z,{className:"h-4 w-4"})]})}),C=({className:e,...s})=>r.jsx(x.Fw,{className:(0,a.cn)("mt-3 flex w-fit flex-col gap-2","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...s}),$=({href:e,title:s,children:t,...a})=>r.jsx("a",{className:"flex items-center gap-2",href:e,rel:"noreferrer",target:"_blank",...a,children:t??(0,r.jsxs)(r.Fragment,{children:[r.jsx(v.Z,{className:"h-4 w-4"}),r.jsx("span",{className:"block font-medium",children:s})]})});var _=t(91468),z=t(43810),Z=t(46226),T=t(34789),F=t(53982),P=t(75290),S=t(2179),R=t(91470);let I={pending:{icon:F.Z,label:"Pending",className:"text-muted-foreground"},in_progress:{icon:P.Z,label:"In Progress",className:"text-blue-500 animate-spin"},completed:{icon:S.Z,label:"Completed",className:"text-green-500"},cancelled:{icon:R.Z,label:"Cancelled",className:"text-red-500"}},E={high:{label:"High",className:"bg-red-500/10 text-red-500 border-red-500/20"},medium:{label:"Medium",className:"bg-yellow-500/10 text-yellow-500 border-yellow-500/20"},low:{label:"Low",className:"bg-blue-500/10 text-blue-500 border-blue-500/20"}},L=({todos:e,showPriority:s=!1,state:t,className:l,...n})=>{if("string"==typeof e&&(e=JSON.parse(e)),!e||0===e.length)return null;let i=e.filter(e=>"completed"===e.status).length,o=e.length;return(0,r.jsxs)("div",{className:(0,a.cn)("my-2 space-y-1","input-streaming"===t&&"opacity-70",l),...n,children:[e.map((t,l)=>{let n=I[t.status].icon,i=I[t.status].className;E[t.priority].className;let o="in_progress"===t.status&&l===e.findIndex(e=>"in_progress"===e.status);return(0,r.jsxs)("div",{className:(0,a.cn)("flex items-start gap-2 py-0.5","cancelled"===t.status&&"opacity-50"),children:[r.jsx("div",{className:"flex-shrink-0 pt-0.5",children:r.jsx(n,{className:(0,a.cn)("size-3.5",i)})}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[r.jsx("span",{className:(0,a.cn)("text-sm","completed"===t.status&&"text-muted-foreground line-through","cancelled"===t.status&&"text-muted-foreground line-through","in_progress"===t.status&&o&&"font-medium"),children:t.content}),s&&"high"===t.priority&&r.jsx("span",{className:"ml-2 text-red-500 text-xs",children:"(!)"})]})]},t.id)}),o>1&&(0,r.jsxs)("div",{className:"flex items-center gap-2 pt-1 text-muted-foreground text-xs",children:[r.jsx("div",{className:"h-1 flex-1 overflow-hidden rounded-full bg-secondary",children:r.jsx("div",{className:"h-full bg-primary transition-all duration-300",style:{width:`${i/o*100}%`}})}),(0,r.jsxs)("span",{className:"whitespace-nowrap",children:[i,"/",o]})]}),"output-error"===t&&(0,r.jsxs)("div",{className:"flex items-center gap-1 pt-1 text-red-500 text-xs",children:[r.jsx(R.Z,{className:"size-3"}),r.jsx("span",{children:"Error updating tasks"})]})]})};function M({messages:e,status:s="idle",className:t,showActions:i=!0,onRegenerate:o,onAddToolResult:u,UntypedToolPartComponent:x,addToContext:h,writeAccess:p=!0,config:g}){let{toast:f}=(0,T.pm)();return r.jsx(r.Fragment,{children:e?.map((j,v)=>{let T=j.metadata;return e.length,r.jsx(l,{className:a.cn("assistant"===j.role&&(g?.customAssistantClassnames?g?.customAssistantClassnames:""),0===v&&(g?.marginTopFirstMessage?g?.marginTopFirstMessage:"mt-12"),t),from:j.role,children:r.jsxs(n,{children:[j.parts.map((e,t)=>{if("step-start"===e.type)return null;if("text"===e.type)return r.jsx("div",{children:r.jsx(m.H,{className:"chat-response-container",children:e.text})},`${j.id}-${t}`);if("tool-askForConfirmation"===e.type&&u){let s=e.toolCallId;switch(e.state){case"input-streaming":return r.jsx("div",{children:"Loading confirmation request..."},s);case"input-available":return r.jsxs("div",{children:[e.input.message,r.jsxs("div",{children:[r.jsx("button",{onClick:()=>u({tool:"askForConfirmation",toolCallId:s,output:"Yes, confirmed"}),children:"Yes"}),r.jsx("button",{onClick:()=>u({tool:"askForConfirmation",toolCallId:s,output:"No, denied"}),children:"No"})]})]},s);case"output-available":return r.jsxs("div",{children:["Tool call allowed: ",e.output]},s);case"output-error":return r.jsxs("div",{children:["Error: ",e.errorText]},s)}}if(e.type?.toLowerCase()==="tool-todo_write"||e.type?.toLowerCase()==="tool-todo_read"){let s=e.output;if(!s?.result)return null;let t=e.state;return r.jsx(L,{todos:s.result,showPriority:!0,state:t})}if((e.type.startsWith("tool-")||"dynamic-tool"===e.type)&&x&&h){let s=e.toolCallId;return r.jsx(x,{untypedToolPart:e,callId:s,addToContext:h},s)}return"file"===e.type&&e.mediaType?.startsWith("image/")?r.jsx(Z.default,{src:e.url,width:300,height:300,alt:"Generated image"},`${j.id}-${t}`):"source-url"===e.type?r.jsxs(w,{children:[r.jsx(k,{count:j.parts.filter(e=>"source-url"===e.type).length}),r.jsx(C,{children:j.parts.map((e,s)=>{if("source-url"===e.type)return r.jsx($,{href:e.url,title:e.title},`${j.id}-${s}`)})},`${j.id}`)]},`${j.id}-${t}`):"reasoning"===e.type?r.jsxs(b,{className:"w-full",isStreaming:"streaming"===s,children:[r.jsx(N,{}),r.jsx(y,{children:e.text})]},`${j.id}-${t}`):null}),i&&"assistant"===j.role&&r.jsxs(d,{className:"mt-2",children:[o&&r.jsx(c,{onClick:()=>o(),label:"Retry",disabled:!p,children:r.jsx(_.Z,{className:"size-3"})}),r.jsx(c,{onClick:()=>{navigator.clipboard.writeText(j.parts.map(e=>e?.text||"").join("\n")),f({title:"Copied message",description:"The message was copied to your clipboard."})},label:"Copy",children:r.jsx(z.Z,{className:"size-3"})}),T?.totalTokens&&r.jsxs("small",{className:"text-muted-foreground",children:[Intl.NumberFormat("en-US").format(T?.totalTokens)," tokens"]})]})]})},j.id)})})}},24295:(e,s,t)=>{t.d(s,{Fw:()=>n,wy:()=>l,zF:()=>a});var r=t(35663);let a=r.fC,l=r.wy,n=r.Fw},79210:(e,s,t)=>{t.d(s,{SP:()=>d,dr:()=>o,mQ:()=>i,nU:()=>c});var r=t(10326),a=t(28407),l=t(17577),n=t(77863);let i=a.fC,o=l.forwardRef(({className:e,...s},t)=>r.jsx(a.aV,{ref:t,className:(0,n.cn)("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...s}));o.displayName=a.aV.displayName;let d=l.forwardRef(({className:e,...s},t)=>r.jsx(a.xz,{ref:t,className:(0,n.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...s}));d.displayName=a.xz.displayName;let c=l.forwardRef(({className:e,...s},t)=>r.jsx(a.VY,{ref:t,className:(0,n.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...s}));c.displayName=a.VY.displayName}};
|
|
1
|
+
"use strict";exports.id=2948,exports.ids=[2948],exports.modules={51602:(e,s,t)=>{t.d(s,{d:()=>x,f:()=>h});var r=t(10326),a=t(90772),l=t(77863),n=t(32933),i=t(43810),o=t(17577),d=t(54390),c=t(35057),m=t(48818);let u=(0,o.createContext)({code:""}),x=({code:e,language:s,showLineNumbers:t=!1,className:a,children:n,...i})=>r.jsx(u.Provider,{value:{code:e},children:r.jsx("div",{className:(0,l.cn)("relative w-full overflow-hidden rounded-md border bg-background text-foreground",a),...i,children:(0,r.jsxs)("div",{className:"relative",children:[r.jsx(d.Z,{className:"overflow-hidden dark:hidden",codeTagProps:{className:"font-mono text-sm"},customStyle:{margin:0,padding:"1rem",fontSize:"0.875rem",background:"hsl(var(--background))",color:"hsl(var(--foreground))"},language:s,lineNumberStyle:{color:"hsl(var(--muted-foreground))",paddingRight:"1rem",minWidth:"2.5rem"},showLineNumbers:t,style:c.Z,children:e}),r.jsx(d.Z,{className:"hidden overflow-hidden dark:block",codeTagProps:{className:"font-mono text-sm"},customStyle:{margin:0,padding:"1rem",fontSize:"0.875rem",background:"hsl(var(--background))",color:"hsl(var(--foreground))"},language:s,lineNumberStyle:{color:"hsl(var(--muted-foreground))",paddingRight:"1rem",minWidth:"2.5rem"},showLineNumbers:t,style:m.Z,children:e}),n&&r.jsx("div",{className:"absolute top-2 right-2 flex items-center gap-2",children:n})]})})}),h=({onCopy:e,onError:s,timeout:t=2e3,children:d,className:c,...m})=>{let[x,h]=(0,o.useState)(!1),{code:p}=(0,o.useContext)(u),g=async()=>{s?.(Error("Clipboard API not available"))},f=x?n.Z:i.Z;return r.jsx(a.z,{className:(0,l.cn)("shrink-0",c),onClick:g,size:"icon",variant:"ghost",...m,children:d??r.jsx(f,{size:14})})}},15728:(e,s,t)=>{t.d(s,{iG:()=>i,ri:()=>n});var r=t(10326);t(90772);var a=t(77863);t(17577);var l=t(30778);let n=({className:e,...s})=>r.jsx(l.h,{className:(0,a.cn)("relative flex-1 overflow-y-auto",e),initial:"smooth",resize:"smooth",role:"log",...s}),i=({className:e,...s})=>r.jsx(l.h.Content,{className:(0,a.cn)("p-4",e),...s})},36931:(e,s,t)=>{t.d(s,{H:()=>x});var r=t(10326),a=t(77863),l=t(17577),n=t(16476),i=t(79283),o=t(70285),d=t(7833),c=t(51602);t(32289);let m=(0,t(39499).Z)(n.UG),u={ol:({node:e,children:s,className:t,...l})=>r.jsx("ol",{className:(0,a.cn)("ml-4 list-outside list-decimal",t),...l,children:s}),li:({node:e,children:s,className:t,...l})=>r.jsx("li",{className:(0,a.cn)("py-1",t),...l,children:s}),ul:({node:e,children:s,className:t,...l})=>r.jsx("ul",{className:(0,a.cn)("ml-4 list-outside list-disc",t),...l,children:s}),hr:({node:e,className:s,...t})=>r.jsx("hr",{className:(0,a.cn)("my-6 border-border",s),...t}),strong:({node:e,children:s,className:t,...l})=>r.jsx("span",{className:(0,a.cn)("font-semibold",t),...l,children:s}),a:({node:e,children:s,className:t,...l})=>r.jsx("a",{className:(0,a.cn)("font-medium text-primary underline",t),rel:"noreferrer",target:"_blank",...l,children:s}),h1:({node:e,children:s,className:t,...l})=>r.jsx("h1",{className:(0,a.cn)("mt-6 mb-2 font-semibold text-3xl",t),...l,children:s}),h2:({node:e,children:s,className:t,...l})=>r.jsx("h2",{className:(0,a.cn)("mt-6 mb-2 font-semibold text-2xl",t),...l,children:s}),h3:({node:e,children:s,className:t,...l})=>r.jsx("h3",{className:(0,a.cn)("mt-6 mb-2 font-semibold text-xl",t),...l,children:s}),h4:({node:e,children:s,className:t,...l})=>r.jsx("h4",{className:(0,a.cn)("mt-6 mb-2 font-semibold text-lg",t),...l,children:s}),h5:({node:e,children:s,className:t,...l})=>r.jsx("h5",{className:(0,a.cn)("mt-6 mb-2 font-semibold text-base",t),...l,children:s}),h6:({node:e,children:s,className:t,...l})=>r.jsx("h6",{className:(0,a.cn)("mt-6 mb-2 font-semibold text-sm",t),...l,children:s}),table:({node:e,children:s,className:t,...l})=>r.jsx("div",{className:"my-4 overflow-x-auto",children:r.jsx("table",{className:(0,a.cn)("w-full border-collapse border border-border",t),...l,children:s})}),thead:({node:e,children:s,className:t,...l})=>r.jsx("thead",{className:(0,a.cn)("bg-muted/50",t),...l,children:s}),tbody:({node:e,children:s,className:t,...l})=>r.jsx("tbody",{className:(0,a.cn)("divide-y divide-border",t),...l,children:s}),tr:({node:e,children:s,className:t,...l})=>r.jsx("tr",{className:(0,a.cn)("border-border border-b",t),...l,children:s}),th:({node:e,children:s,className:t,...l})=>r.jsx("th",{className:(0,a.cn)("px-4 py-2 text-left font-semibold text-sm",t),...l,children:s}),td:({node:e,children:s,className:t,...l})=>r.jsx("td",{className:(0,a.cn)("px-4 py-2 text-sm",t),...l,children:s}),blockquote:({node:e,children:s,className:t,...l})=>r.jsx("blockquote",{className:(0,a.cn)("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),...l,children:s}),code:({node:e,className:s,...t})=>e?.position?.start.line!==e?.position?.end.line?r.jsx("code",{className:s,...t}):r.jsx("code",{className:(0,a.cn)("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",s),...t}),pre:({node:e,className:s,children:t})=>{let n="javascript";"string"==typeof e?.properties?.className&&(n=e.properties.className.replace("language-",""));let i="";return(0,l.isValidElement)(t)&&t.props&&"string"==typeof t.props.children?i=t.props.children:"string"==typeof t&&(i=t),r.jsx(c.d,{className:(0,a.cn)("my-4 h-auto",s),code:i,language:n,children:r.jsx(c.f,{onCopy:()=>console.log("Copied code to clipboard"),onError:()=>console.error("Failed to copy code to clipboard")})})}},x=(0,l.memo)(({className:e,options:s,children:t,allowedImagePrefixes:l,allowedLinkPrefixes:n,defaultOrigin:c,parseIncompleteMarkdown:x=!0,...h})=>{let p="string"==typeof t&&x?function(e){if(!e||"string"!=typeof e)return e;let s=e,t=s.match(/(!?\[)([^\]]*?)$/);if(t){let e=s.lastIndexOf(t[1]);s=s.substring(0,e)}if(s.match(/(\*\*)([^*]*?)$/)&&(s.match(/\*\*/g)||[]).length%2==1&&(s=`${s}**`),s.match(/(__)([^_]*?)$/)&&(s.match(/__/g)||[]).length%2==1&&(s=`${s}__`),s.match(/(\*)([^*]*?)$/)&&s.split("").reduce((e,t,r)=>{if("*"===t){let t=s[r-1],a=s[r+1];if("*"!==t&&"*"!==a)return e+1}return e},0)%2==1&&(s=`${s}*`),s.match(/(_)([^_]*?)$/)&&s.split("").reduce((e,t,r)=>{if("_"===t){let t=s[r-1],a=s[r+1];if("_"!==t&&"_"!==a)return e+1}return e},0)%2==1&&(s=`${s}_`),s.match(/(`)([^`]*?)$/)&&(s.includes("```"),(s.match(/```[\s\S]*?```/g)||[]).length,(s.match(/```/g)||[]).length%2!=1)){let e=0;for(let t=0;t<s.length;t++)if("`"===s[t]){let r="```"===s.substring(t,t+3),a=t>0&&"```"===s.substring(t-1,t+2),l=t>1&&"```"===s.substring(t-2,t+1);!(r||a||l)&&e++}e%2==1&&(s=`${s}\``)}return s.match(/(~~)([^~]*?)$/)&&(s.match(/~~/g)||[]).length%2==1&&(s=`${s}~~`),s}(t):t;return r.jsx("div",{className:(0,a.cn)("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),...h,children:r.jsx(m,{allowedImagePrefixes:l??["*"],allowedLinkPrefixes:n??["*"],components:u,defaultOrigin:c,rehypePlugins:[i.Z],remarkPlugins:[o.Z,d.Z],...s,children:p})})},(e,s)=>e.children===s.children);x.displayName="Response"},87599:(e,s,t)=>{t.d(s,{K:()=>M});var r=t(10326);t(28758);var a=t(77863);let l=({className:e,from:s,...t})=>r.jsx("div",{className:(0,a.cn)("group flex w-full items-end justify-end gap-2 py-4","user"===s?"is-user flex-row-reverse justify-end":"is-assistant flex-row-reverse justify-end","[&>div]:max-w-[80%]",e),...t}),n=({children:e,className:s,...t})=>r.jsx("div",{className:(0,a.cn)("flex flex-col gap-2 overflow-hidden rounded-lg py-3 text-foreground text-sm","group-[.is-user]:bg-secondary group-[.is-user]:text-primary-foreground group-[.is-user]:px-4","group-[.is-assistant]:bg-transparent group-[.is-assistant]:text-foreground",s),...t,children:r.jsx("div",{className:"is-user:dark",children:e})});var i=t(90772),o=t(68232);let d=({className:e,children:s,...t})=>r.jsx("div",{className:(0,a.cn)("flex items-center gap-1",e),...t,children:s}),c=({tooltip:e,children:s,label:t,className:l,variant:n="ghost",size:d="sm",...c})=>{let m=(0,r.jsxs)(i.z,{className:(0,a.cn)("size-9 p-1.5 text-muted-foreground hover:text-foreground",l),size:d,type:"button",variant:n,...c,children:[s,r.jsx("span",{className:"sr-only",children:t||e})]});return e?r.jsx(o.pn,{children:(0,r.jsxs)(o.u,{children:[r.jsx(o.aJ,{asChild:!0,children:m}),r.jsx(o._v,{children:r.jsx("p",{children:e})})]})}):m};var m=t(36931),u=t(52067),x=t(24295),h=t(98360),p=t(941),g=t(17577);let f=(0,g.createContext)(null),j=()=>{let e=(0,g.useContext)(f);if(!e)throw Error("Reasoning components must be used within Reasoning");return e},b=(0,g.memo)(({className:e,isStreaming:s=!1,open:t,defaultOpen:l=!1,onOpenChange:n,duration:i,children:o,...d})=>{let[c,m]=(0,u.T)({prop:t,defaultProp:l,onChange:n}),[h,p]=(0,u.T)({prop:i,defaultProp:0}),[j,b]=(0,g.useState)(!1),[N,y]=(0,g.useState)(null);return(0,g.useEffect)(()=>{s?null===N&&y(Date.now()):null!==N&&(p(Math.round((Date.now()-N)/1e3)),y(null))},[s,N,p]),(0,g.useEffect)(()=>{if(s&&!c)m(!0);else if(!s&&c&&!l&&!j){let e=setTimeout(()=>{m(!1),b(!0)},1e3);return()=>clearTimeout(e)}},[s,c,l,m,j]),r.jsx(f.Provider,{value:{isStreaming:s,isOpen:c,setIsOpen:m,duration:h},children:r.jsx(x.zF,{className:(0,a.cn)("not-prose mb-4",e),onOpenChange:e=>{m(e)},open:c,...d,children:o})})}),N=(0,g.memo)(({className:e,title:s="Reasoning",children:t,...l})=>{let{isStreaming:n,isOpen:i,duration:o}=j();return r.jsx(x.wy,{className:(0,a.cn)("flex items-center gap-2 text-muted-foreground text-sm",e),...l,children:t??(0,r.jsxs)(r.Fragment,{children:[r.jsx(h.Z,{className:"size-4"}),n||0===o?r.jsx("p",{children:"Thinking..."}):(0,r.jsxs)("p",{children:["Thought for ",o," seconds"]}),r.jsx(p.Z,{className:(0,a.cn)("size-4 text-muted-foreground transition-transform",i?"rotate-180":"rotate-0")})]})})}),y=(0,g.memo)(({className:e,children:s,...t})=>r.jsx(x.Fw,{className:(0,a.cn)("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-popover-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...t,children:r.jsx(m.H,{className:"grid gap-2",children:s})}));b.displayName="Reasoning",N.displayName="ReasoningTrigger",y.displayName="ReasoningContent";var v=t(71876);let w=({className:e,...s})=>r.jsx(x.zF,{className:(0,a.cn)("not-prose mb-4 text-primary text-xs",e),...s}),k=({className:e,count:s,children:t,...a})=>r.jsx(x.wy,{className:"flex items-center gap-2",...a,children:t??(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("p",{className:"font-medium",children:["Used ",s," sources"]}),r.jsx(p.Z,{className:"h-4 w-4"})]})}),C=({className:e,...s})=>r.jsx(x.Fw,{className:(0,a.cn)("mt-3 flex w-fit flex-col gap-2","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...s}),$=({href:e,title:s,children:t,...a})=>r.jsx("a",{className:"flex items-center gap-2",href:e,rel:"noreferrer",target:"_blank",...a,children:t??(0,r.jsxs)(r.Fragment,{children:[r.jsx(v.Z,{className:"h-4 w-4"}),r.jsx("span",{className:"block font-medium",children:s})]})});var _=t(91468),z=t(43810),Z=t(46226),T=t(34789),F=t(53982),P=t(75290),S=t(2179),R=t(91470);let I={pending:{icon:F.Z,label:"Pending",className:"text-muted-foreground"},in_progress:{icon:P.Z,label:"In Progress",className:"text-blue-500 animate-spin"},completed:{icon:S.Z,label:"Completed",className:"text-green-500"},cancelled:{icon:R.Z,label:"Cancelled",className:"text-red-500"}},E={high:{label:"High",className:"bg-red-500/10 text-red-500 border-red-500/20"},medium:{label:"Medium",className:"bg-yellow-500/10 text-yellow-500 border-yellow-500/20"},low:{label:"Low",className:"bg-blue-500/10 text-blue-500 border-blue-500/20"}},L=({todos:e,showPriority:s=!1,state:t,className:l,...n})=>{if("string"==typeof e&&(e=JSON.parse(e)),!e||0===e.length)return null;let i=e.filter(e=>"completed"===e.status).length,o=e.length;return(0,r.jsxs)("div",{className:(0,a.cn)("my-2 space-y-1","input-streaming"===t&&"opacity-70",l),...n,children:[e.map((t,l)=>{let n=I[t.status].icon,i=I[t.status].className;E[t.priority].className;let o="in_progress"===t.status&&l===e.findIndex(e=>"in_progress"===e.status);return(0,r.jsxs)("div",{className:(0,a.cn)("flex items-start gap-2 py-0.5","cancelled"===t.status&&"opacity-50"),children:[r.jsx("div",{className:"flex-shrink-0 pt-0.5",children:r.jsx(n,{className:(0,a.cn)("size-3.5",i)})}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[r.jsx("span",{className:(0,a.cn)("text-sm","completed"===t.status&&"text-muted-foreground line-through","cancelled"===t.status&&"text-muted-foreground line-through","in_progress"===t.status&&o&&"font-medium"),children:t.content}),s&&"high"===t.priority&&r.jsx("span",{className:"ml-2 text-red-500 text-xs",children:"(!)"})]})]},t.id)}),o>1&&(0,r.jsxs)("div",{className:"flex items-center gap-2 pt-1 text-muted-foreground text-xs",children:[r.jsx("div",{className:"h-1 flex-1 overflow-hidden rounded-full bg-secondary",children:r.jsx("div",{className:"h-full bg-primary transition-all duration-300",style:{width:`${i/o*100}%`}})}),(0,r.jsxs)("span",{className:"whitespace-nowrap",children:[i,"/",o]})]}),"output-error"===t&&(0,r.jsxs)("div",{className:"flex items-center gap-1 pt-1 text-red-500 text-xs",children:[r.jsx(R.Z,{className:"size-3"}),r.jsx("span",{children:"Error updating tasks"})]})]})};function M({messages:e,status:s="idle",className:t,showActions:i=!0,onRegenerate:o,onAddToolResult:u,UntypedToolPartComponent:x,addToContext:h,writeAccess:p=!0,config:g}){let{toast:f}=(0,T.pm)();return r.jsx(r.Fragment,{children:e?.map((j,v)=>{let T=j.metadata;return e.length,r.jsx(l,{className:a.cn("assistant"===j.role&&(g?.customAssistantClassnames?g?.customAssistantClassnames:""),0===v&&(g?.marginTopFirstMessage?g?.marginTopFirstMessage:"mt-12"),t),from:j.role,children:r.jsxs(n,{children:[j.parts.map((e,t)=>{if("step-start"===e.type)return null;if("text"===e.type)return r.jsx("div",{children:r.jsx(m.H,{className:"chat-response-container",children:e.text})},`${j.id}-${t}`);if("tool-askForConfirmation"===e.type&&u){let s=e.toolCallId;switch(e.state){case"input-streaming":return r.jsx("div",{children:"Loading confirmation request..."},s);case"input-available":return r.jsxs("div",{children:[e.input.message,r.jsxs("div",{children:[r.jsx("button",{onClick:()=>u({tool:"askForConfirmation",toolCallId:s,output:"Yes, confirmed"}),children:"Yes"}),r.jsx("button",{onClick:()=>u({tool:"askForConfirmation",toolCallId:s,output:"No, denied"}),children:"No"})]})]},s);case"output-available":return r.jsxs("div",{children:["Tool call allowed: ",e.output]},s);case"output-error":return r.jsxs("div",{children:["Error: ",e.errorText]},s)}}if(e.type?.toLowerCase()==="tool-todo_write"||e.type?.toLowerCase()==="tool-todo_read"){let s=e.output;if(!s?.result)return null;let t=e.state;return r.jsx(L,{todos:s.result,showPriority:!0,state:t})}if((e.type.startsWith("tool-")||"dynamic-tool"===e.type)&&x&&h){let s=e.toolCallId;return r.jsx(x,{untypedToolPart:e,callId:s,addToContext:h},s)}return"file"===e.type&&e.mediaType?.startsWith("image/")?r.jsx(Z.default,{src:e.url,width:300,height:300,alt:"Generated image"},`${j.id}-${t}`):"source-url"===e.type?r.jsxs(w,{children:[r.jsx(k,{count:j.parts.filter(e=>"source-url"===e.type).length}),r.jsx(C,{children:j.parts.map((e,s)=>{if("source-url"===e.type)return r.jsx($,{href:e.url,title:e.title},`${j.id}-${s}`)})},`${j.id}`)]},`${j.id}-${t}`):"reasoning"===e.type?r.jsxs(b,{className:"w-full",isStreaming:"streaming"===s,children:[r.jsx(N,{}),r.jsx(y,{children:e.text})]},`${j.id}-${t}`):null}),i&&"assistant"===j.role&&r.jsxs(d,{className:"mt-2",children:[o&&r.jsx(c,{onClick:()=>o(),label:"Retry",disabled:!p,children:r.jsx(_.Z,{className:"size-3"})}),r.jsx(c,{onClick:()=>{navigator.clipboard.writeText(j.parts.map(e=>e?.text||"").join("\n")),f({title:"Copied message",description:"The message was copied to your clipboard."})},label:"Copy",children:r.jsx(z.Z,{className:"size-3"})}),T?.totalTokens&&r.jsxs("small",{className:"text-muted-foreground",children:[Intl.NumberFormat("en-US").format(T?.totalTokens)," tokens"]})]})]})},j.id)})})}},24295:(e,s,t)=>{t.d(s,{Fw:()=>n,wy:()=>l,zF:()=>a});var r=t(35663);let a=r.fC,l=r.wy,n=r.Fw},79210:(e,s,t)=>{t.d(s,{SP:()=>d,dr:()=>o,mQ:()=>i,nU:()=>c});var r=t(10326),a=t(28407),l=t(17577),n=t(77863);let i=a.fC,o=l.forwardRef(({className:e,...s},t)=>r.jsx(a.aV,{ref:t,className:(0,n.cn)("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...s}));o.displayName=a.aV.displayName;let d=l.forwardRef(({className:e,...s},t)=>r.jsx(a.xz,{ref:t,className:(0,n.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...s}));d.displayName=a.xz.displayName;let c=l.forwardRef(({className:e,...s},t)=>r.jsx(a.VY,{ref:t,className:(0,n.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...s}));c.displayName=a.VY.displayName}};
|