@exulu/frontend 1.9.0 → 1.11.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 +191 -188
- 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 +7 -7
- 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 +3 -3
- 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.js.nft.json +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.js +1 -1
- package/dist/.next/server/app/(application)/evals/cases/page.js.nft.json +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.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 +154 -130
- package/dist/.next/server/chunks/{5084.js → 2587.js} +1 -1
- package/dist/.next/server/chunks/3503.js +1 -1
- package/dist/.next/server/chunks/5485.js +1 -1
- package/dist/.next/server/chunks/5974.js +1 -1
- package/dist/.next/server/chunks/7944.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/1707-06e693c4a709c147.js +2 -0
- package/dist/.next/static/chunks/1707-06e693c4a709c147.js.map +1 -0
- package/dist/.next/static/chunks/{1957-cf44b1d31a9c7d5c.js → 1957-34f17de1e14e45de.js} +1 -1
- package/dist/.next/static/chunks/{1957-cf44b1d31a9c7d5c.js.map → 1957-34f17de1e14e45de.js.map} +1 -1
- package/dist/.next/static/chunks/{2293-48a95904b834eccc.js → 2293-592e22dde70d632b.js} +1 -1
- package/dist/.next/static/chunks/{2293-48a95904b834eccc.js.map → 2293-592e22dde70d632b.js.map} +1 -1
- package/dist/.next/static/chunks/2534-3dd7a9fabfbdb9d8.js +2 -0
- package/dist/.next/static/chunks/2534-3dd7a9fabfbdb9d8.js.map +1 -0
- package/dist/.next/static/chunks/2823-324b1cd8f15ff9c5.js +2 -0
- package/dist/.next/static/chunks/2823-324b1cd8f15ff9c5.js.map +1 -0
- package/dist/.next/static/chunks/3246-1812de142455a0ac.js +2 -0
- package/dist/.next/static/chunks/3246-1812de142455a0ac.js.map +1 -0
- package/dist/.next/static/chunks/3750-d0ae5d73288be8de.js +2 -0
- package/dist/.next/static/chunks/3750-d0ae5d73288be8de.js.map +1 -0
- package/dist/.next/static/chunks/{3832-417a5eeee712a793.js → 3832-0b8edbcc671f4cc0.js} +2 -2
- package/dist/.next/static/chunks/3832-0b8edbcc671f4cc0.js.map +1 -0
- package/dist/.next/static/chunks/{4386-45b79e656a244d8a.js → 4386-21ac377a719ebdfa.js} +1 -1
- package/dist/.next/static/chunks/{4386-45b79e656a244d8a.js.map → 4386-21ac377a719ebdfa.js.map} +1 -1
- package/dist/.next/static/chunks/4612-da512770f949561a.js +2 -0
- package/dist/.next/static/chunks/4612-da512770f949561a.js.map +1 -0
- package/dist/.next/static/chunks/{5825-efd4db1da512bd7f.js → 4760-d5ceb992b68e35ca.js} +2 -2
- package/dist/.next/static/chunks/4760-d5ceb992b68e35ca.js.map +1 -0
- package/dist/.next/static/chunks/{6367-59655a85d75e19be.js → 6367-aa5020cbea5354e2.js} +1 -1
- package/dist/.next/static/chunks/{6367-59655a85d75e19be.js.map → 6367-aa5020cbea5354e2.js.map} +1 -1
- package/dist/.next/static/chunks/6373-3eee0b6c8b8fd459.js +2 -0
- package/dist/.next/static/chunks/6373-3eee0b6c8b8fd459.js.map +1 -0
- package/dist/.next/static/chunks/{8030-9c926ea4dfd3a54e.js → 8030-5d38a3f1a4ad44cb.js} +1 -1
- package/dist/.next/static/chunks/{8030-9c926ea4dfd3a54e.js.map → 8030-5d38a3f1a4ad44cb.js.map} +1 -1
- package/dist/.next/static/chunks/{8293-0e69d89d2dac7111.js → 8293-ba5cd36594e6fde1.js} +3 -3
- package/dist/.next/static/chunks/8293-ba5cd36594e6fde1.js.map +1 -0
- package/dist/.next/static/chunks/9105-143f12397a76a332.js +2 -0
- package/dist/.next/static/chunks/9105-143f12397a76a332.js.map +1 -0
- package/dist/.next/static/chunks/9877-378934ae38c6760c.js +2 -0
- package/dist/.next/static/chunks/9877-378934ae38c6760c.js.map +1 -0
- package/dist/.next/static/chunks/{9953-95900a236271a222.js → 9953-02d5b52553a5c573.js} +2 -2
- package/dist/.next/static/chunks/{9953-95900a236271a222.js.map → 9953-02d5b52553a5c573.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/agents/edit/[id]/{page-e4a4693953329671.js → page-37918149a8e909b0.js} +2 -2
- package/dist/.next/static/chunks/app/(application)/agents/edit/[id]/{page-e4a4693953329671.js.map → page-37918149a8e909b0.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/agents/{page-b77c21a993c55901.js → page-9cff3b35b042d46a.js} +1 -1
- package/dist/.next/static/chunks/app/(application)/agents/{page-b77c21a993c55901.js.map → page-9cff3b35b042d46a.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/chat/[agent]/[session]/page-53a99d8df53380c7.js +2 -0
- package/dist/.next/static/chunks/app/(application)/chat/[agent]/[session]/page-53a99d8df53380c7.js.map +1 -0
- package/dist/.next/static/chunks/app/(application)/chat/{layout-093baa26f89338bc.js → layout-ba702af6bb56baa2.js} +1 -1
- package/dist/.next/static/chunks/app/(application)/chat/{layout-093baa26f89338bc.js.map → layout-ba702af6bb56baa2.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/chat/{page-8a1fcfb68cf9c8c0.js → page-8b00a98d285829b1.js} +1 -1
- package/dist/.next/static/chunks/app/(application)/chat/{page-8a1fcfb68cf9c8c0.js.map → page-8b00a98d285829b1.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/configuration/{page-f315ede6d66922e6.js → page-1e978e117d5086a1.js} +1 -1
- package/dist/.next/static/chunks/app/(application)/configuration/{page-f315ede6d66922e6.js.map → page-1e978e117d5086a1.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/dashboard/{page-4a1956febf5235b6.js → page-c54b4bc8d0ac4ac8.js} +1 -1
- package/dist/.next/static/chunks/app/(application)/dashboard/{page-4a1956febf5235b6.js.map → page-c54b4bc8d0ac4ac8.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/data/[[...query]]/layout-dfdb5c1cdc7ddefc.js +2 -0
- package/dist/.next/static/chunks/app/(application)/data/[[...query]]/layout-dfdb5c1cdc7ddefc.js.map +1 -0
- package/dist/.next/static/chunks/app/(application)/data/[[...query]]/page-faaee5fe82b45966.js +2 -0
- package/dist/.next/static/chunks/app/(application)/data/[[...query]]/page-faaee5fe82b45966.js.map +1 -0
- package/dist/.next/static/chunks/app/(application)/evals/[id]/{page-a7728cf9b0524489.js → page-c956d9892676aa4f.js} +2 -2
- package/dist/.next/static/chunks/app/(application)/evals/[id]/page-c956d9892676aa4f.js.map +1 -0
- package/dist/.next/static/chunks/app/(application)/evals/cases/page-6b4dde82376e9aac.js +2 -0
- package/dist/.next/static/chunks/app/(application)/evals/cases/page-6b4dde82376e9aac.js.map +1 -0
- package/dist/.next/static/chunks/app/(application)/evals/{page-8b38d8d29f275704.js → page-944bfc4f0a001e4c.js} +1 -1
- package/dist/.next/static/chunks/app/(application)/evals/page-944bfc4f0a001e4c.js.map +1 -0
- package/dist/.next/static/chunks/app/(application)/explorer/page-07d67145bb176711.js +2 -0
- package/dist/.next/static/chunks/app/(application)/explorer/page-07d67145bb176711.js.map +1 -0
- package/dist/.next/static/chunks/app/(application)/keys/{page-afe59c91cc347208.js → page-6c0cd9ef20cd1461.js} +2 -2
- package/dist/.next/static/chunks/app/(application)/keys/{page-afe59c91cc347208.js.map → page-6c0cd9ef20cd1461.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/projects/[project]/{page-f04fd5291a1ef7b1.js → page-5e2be54e76b8509c.js} +2 -2
- package/dist/.next/static/chunks/app/(application)/projects/[project]/{page-f04fd5291a1ef7b1.js.map → page-5e2be54e76b8509c.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/projects/{layout-a8e1830ef3faafb9.js → layout-f2e0f42a08c96bb8.js} +1 -1
- package/dist/.next/static/chunks/app/(application)/projects/{layout-a8e1830ef3faafb9.js.map → layout-f2e0f42a08c96bb8.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/prompts/{page-2c500e9898447506.js → page-2c03bbe32800acc3.js} +2 -2
- package/dist/.next/static/chunks/app/(application)/prompts/{page-2c500e9898447506.js.map → page-2c03bbe32800acc3.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/roles/{page-873911198c17d9a7.js → page-b977b5c658004717.js} +1 -1
- package/dist/.next/static/chunks/app/(application)/roles/{page-873911198c17d9a7.js.map → page-b977b5c658004717.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/token/{page-3f74f711f3d04fce.js → page-08596ece49a811b9.js} +2 -2
- package/dist/.next/static/chunks/app/(application)/token/page-08596ece49a811b9.js.map +1 -0
- package/dist/.next/static/chunks/app/(application)/users/{page-0d7f0d7e80cd1436.js → page-49212081be40aeca.js} +2 -2
- package/dist/.next/static/chunks/app/(application)/users/{page-0d7f0d7e80cd1436.js.map → page-49212081be40aeca.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/variables/create/{page-8ebf4e3d4d17443b.js → page-9ce762918374f616.js} +1 -1
- package/dist/.next/static/chunks/app/(application)/variables/create/{page-8ebf4e3d4d17443b.js.map → page-9ce762918374f616.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/variables/edit/[variable_id]/{page-006145e82e054e72.js → page-0e2b7038546d9f7a.js} +1 -1
- package/dist/.next/static/chunks/app/(application)/variables/edit/[variable_id]/{page-006145e82e054e72.js.map → page-0e2b7038546d9f7a.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/variables/{page-51a8aeece444d388.js → page-141d5d3f735454fe.js} +1 -1
- package/dist/.next/static/chunks/app/(application)/variables/{page-51a8aeece444d388.js.map → page-141d5d3f735454fe.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/variables/usage/[variable_id]/{page-8f5cfc9565fd919a.js → page-fb1bb3ea6f7cae47.js} +1 -1
- package/dist/.next/static/chunks/app/(application)/variables/usage/[variable_id]/{page-8f5cfc9565fd919a.js.map → page-fb1bb3ea6f7cae47.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/workflows/{page-e38f9456120dab69.js → page-2b839fdbc55c297b.js} +2 -2
- package/dist/.next/static/chunks/app/(application)/workflows/page-2b839fdbc55c297b.js.map +1 -0
- package/dist/.next/static/chunks/ba12c10f-85ed008ce7746dbe.js +2 -0
- package/dist/.next/static/chunks/ba12c10f-85ed008ce7746dbe.js.map +1 -0
- package/dist/.next/static/css/0f539b50cca35462.css +4 -0
- package/dist/.next/static/css/0f539b50cca35462.css.map +1 -0
- package/dist/.next/static/css/e3f2a16ab7676b05.css.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/dist/.next/static/chunks/1685-939396dad2f8f1e0.js +0 -2
- package/dist/.next/static/chunks/1685-939396dad2f8f1e0.js.map +0 -1
- package/dist/.next/static/chunks/3171-6996819b8863d41f.js +0 -2
- package/dist/.next/static/chunks/3171-6996819b8863d41f.js.map +0 -1
- package/dist/.next/static/chunks/3750-f45c59ef1cc79417.js +0 -2
- package/dist/.next/static/chunks/3750-f45c59ef1cc79417.js.map +0 -1
- package/dist/.next/static/chunks/3832-417a5eeee712a793.js.map +0 -1
- package/dist/.next/static/chunks/4419-b9be79d8cd46a97d.js +0 -2
- package/dist/.next/static/chunks/4419-b9be79d8cd46a97d.js.map +0 -1
- package/dist/.next/static/chunks/5110-098aa924c3108fa4.js +0 -2
- package/dist/.next/static/chunks/5110-098aa924c3108fa4.js.map +0 -1
- package/dist/.next/static/chunks/572-2940a399da1e3a3b.js +0 -2
- package/dist/.next/static/chunks/572-2940a399da1e3a3b.js.map +0 -1
- package/dist/.next/static/chunks/5825-efd4db1da512bd7f.js.map +0 -1
- package/dist/.next/static/chunks/6373-601400fab8a3bb55.js +0 -2
- package/dist/.next/static/chunks/6373-601400fab8a3bb55.js.map +0 -1
- package/dist/.next/static/chunks/8293-0e69d89d2dac7111.js.map +0 -1
- package/dist/.next/static/chunks/9105-dfbce1bad8e3e8dd.js +0 -2
- package/dist/.next/static/chunks/9105-dfbce1bad8e3e8dd.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/chat/[agent]/[session]/page-7edb1c7c850f982c.js +0 -2
- package/dist/.next/static/chunks/app/(application)/chat/[agent]/[session]/page-7edb1c7c850f982c.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/data/[[...query]]/layout-2d47be0ee80dd89d.js +0 -2
- package/dist/.next/static/chunks/app/(application)/data/[[...query]]/layout-2d47be0ee80dd89d.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/data/[[...query]]/page-8d2b3995cacfd832.js +0 -2
- package/dist/.next/static/chunks/app/(application)/data/[[...query]]/page-8d2b3995cacfd832.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/evals/[id]/page-a7728cf9b0524489.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/evals/cases/page-827f50c6d1f150d0.js +0 -2
- package/dist/.next/static/chunks/app/(application)/evals/cases/page-827f50c6d1f150d0.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/evals/page-8b38d8d29f275704.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/explorer/page-1d676c9dfe3ed58b.js +0 -2
- package/dist/.next/static/chunks/app/(application)/explorer/page-1d676c9dfe3ed58b.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/token/page-3f74f711f3d04fce.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/workflows/page-e38f9456120dab69.js.map +0 -1
- package/dist/.next/static/chunks/ba12c10f-aaafcb074f608624.js +0 -2
- package/dist/.next/static/chunks/ba12c10f-aaafcb074f608624.js.map +0 -1
- package/dist/.next/static/css/6f8c5212af8ef284.css +0 -4
- package/dist/.next/static/css/6f8c5212af8ef284.css.map +0 -1
- /package/dist/.next/static/{ls-syPkq9-MWp-VWWDEZJ → exslB-IPXi_veOKFA4L1Z}/_buildManifest.js +0 -0
- /package/dist/.next/static/{ls-syPkq9-MWp-VWWDEZJ → exslB-IPXi_veOKFA4L1Z}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=8286,exports.ids=[8286],exports.modules={18286:(e,s,a)=>{a.d(s,{f:()=>en,Z:()=>er});var i=a(10326),l=a(39167),n=a(18753),t=a(74064),r=a(35047),d=a(17577),c=a(74723),o=a(770),m=a(98091),x=a(90772),h=a(62288),j=a(54432),u=a(31048),p=a(37859);function g({deleteAgent:e,deleteAgentResult:s,agent:a}){let l="delete this agent",[n,t]=(0,d.useState)("");return(0,i.jsxs)(h.Vq,{children:[i.jsx(h.hg,{asChild:!0,children:i.jsx(x.z,{disabled:!a?.id,variant:"destructive",children:i.jsx(m.Z,{className:"size-4"})})}),(0,i.jsxs)(h.cZ,{className:"sm:max-w-[475px]",children:[i.jsx(h.fK,{children:i.jsx(h.$N,{children:"Delete this agent"})}),i.jsx("div",{className:"grid gap-4 py-4",children:(0,i.jsxs)("div",{className:"grid gap-2",children:[(0,i.jsxs)(u._,{htmlFor:"name",children:['Type "',l,'" to confirm']}),i.jsx(j.I,{onChange:e=>{t(e.target.value)},id:"name",autoFocus:!0})]})}),i.jsx(h.cN,{children:(0,i.jsxs)(x.z,{disabled:n!==l||s.loading,onClick:()=>{e({variables:{id:a.id}})},variant:"destructive",type:"submit",children:["Delete ",s.loading&&i.jsx(p.g,{})]})})]})]})}var f=a(42270),v=a(33071),N=a(55632),b=a(8281),y=a(33261),w=a(79210),C=a(87673),z=a(15211),Z=a(567),k=a(34789);function A(){return i.jsx("svg",{width:"19",height:"20",viewBox:"0 0 19 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M3.5 12.5003C2.72343 12.5003 2.33515 12.5003 2.02886 12.3735C1.62048 12.2043 1.29602 11.8798 1.12687 11.4715C1 11.1652 1 10.7769 1 10.0003V4.33366C1 3.40024 1 2.93353 1.18166 2.57701C1.34144 2.2634 1.59641 2.00844 1.91002 1.84865C2.26654 1.66699 2.73325 1.66699 3.66667 1.66699H9.33333C10.1099 1.66699 10.4982 1.66699 10.8045 1.79386C11.2129 1.96302 11.5373 2.28747 11.7065 2.69585C11.8333 3.00214 11.8333 3.39042 11.8333 4.16699M9.5 18.3337H15C15.9334 18.3337 16.4001 18.3337 16.7567 18.152C17.0703 17.9922 17.3252 17.7372 17.485 17.4236C17.6667 17.0671 17.6667 16.6004 17.6667 15.667V10.167C17.6667 9.23357 17.6667 8.76686 17.485 8.41034C17.3252 8.09674 17.0703 7.84177 16.7567 7.68198C16.4001 7.50033 15.9334 7.50033 15 7.50033H9.5C8.56658 7.50033 8.09987 7.50033 7.74335 7.68198C7.42975 7.84177 7.17478 8.09674 7.01499 8.41034C6.83333 8.76686 6.83333 9.23357 6.83333 10.167V15.667C6.83333 16.6004 6.83333 17.0671 7.01499 17.4236C7.17478 17.7372 7.42975 17.9922 7.74335 18.152C8.09987 18.3337 8.56658 18.3337 9.5 18.3337Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}var S=a(34474),F=a(30811),_=a(2454),I=a(47206),D=a(32933),O=a(96230),R=a(71709),M=a(36283),T=a(69145),J=a(49758),P=a(83855),$=a(88307),V=a(94019),G=a(87888),B=a(88378),E=a(18019),q=a(77863),Y=a(15286),L=a(24295),U=a(68232),W=a(7890),K=a(77961),Q=a(14331),X=a(30463),H=a(18615),ee=a(86590),es=a(29429),ea=a(52227),ei=a(36931);let el=["marketing","sales","finance","hr","coding","support","research","knowledge","product"],en=({configItem:e,currentValue:s,variables:a,onVariableSelect:l})=>{let[n,t]=d.useState(!1),r=a.find(e=>e.name===s);return(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsxs)("div",{className:"text-sm",children:[i.jsx("div",{className:"font-medium capitalize",children:e.name}),i.jsx("div",{className:"text-muted-foreground text-xs capitalize",children:e.description})]}),(0,i.jsxs)(F.J2,{open:n,onOpenChange:t,modal:!0,children:[i.jsx(F.xo,{asChild:!0,children:(0,i.jsxs)(x.z,{variant:"outline",role:"combobox","aria-expanded":n,className:"w-full justify-between text-sm",children:[r?r.name:"Select variable...",i.jsx(I.Z,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),i.jsx(F.yk,{className:"w-full p-0",children:(0,i.jsxs)(_.mY,{children:[i.jsx(_.sZ,{placeholder:"Search variables..."}),(0,i.jsxs)(_.e8,{children:[i.jsx(_.rb,{children:"No variables found."}),i.jsx(_.fu,{children:a.map(e=>(0,i.jsxs)(_.di,{onSelect:()=>{l(e.name),console.log("variable",e),t(!1)},children:[i.jsx(D.Z,{className:(0,q.cn)("mr-2 h-4 w-4",s===e.name?"opacity-100":"opacity-0")}),(0,i.jsxs)("div",{className:"flex flex-col",children:[i.jsx("span",{children:e.name}),e.encrypted&&i.jsx("span",{className:"text-xs text-muted-foreground",children:"\uD83D\uDD12 Encrypted"})]})]},e.id))})]})]})}),e.default&&(0,i.jsxs)(v.Zb,{children:[i.jsx(v.Ol,{children:i.jsx(v.ll,{className:"text-md",children:"Default value"})}),i.jsx(v.aY,{children:i.jsx(H.J,{text:e.default,sliceLength:200})})]})]})]})},et=o.Ry({name:o.Z_().min(2,{message:"Agent name must be at least 2 characters."}).max(300,{message:"Agent name must not be longer than 300 characters."}),category:o.Z_().optional(),description:o.Z_().max(1e4,{message:"Agent description must not be longer than 10.000 characters."}).nullable().optional(),instructions:o.Z_().max(4e4,{message:"Agent instructions must not be longer than 40.000 characters."}).nullable().optional(),id:o.Z_().or(o.Rx()).nullable().optional(),active:o.Yj(),providerapikey:o.Z_().nullable().optional(),firewall:o.Ry({enabled:o.O7().optional(),scanners:o.Ry({promptGuard:o.O7().optional(),codeShield:o.O7().optional(),agentAlignment:o.O7().optional(),hiddenAscii:o.O7().optional(),piiDetection:o.O7().optional()}).optional()}).optional()});function er({agent:e,refetch:s}){let a=(0,r.useRouter)(),{user:o}=(0,d.useContext)(z.S),m=(0,d.useContext)(X.E),[h,u]=(0,d.useState)(e.tools?e.tools:[]),[H,er]=(0,d.useState)(!1),[ed,ec]=(0,d.useState)(""),[eo,em]=(0,d.useState)("all"),[ex,eh]=(0,d.useState)(""),[ej,eu]=(0,d.useState)(new Set),[ep,eg]=(0,d.useState)(!1),[ef,ev]=(0,d.useState)(e.providerapikey||""),[eN,eb]=(0,d.useState)(e.firewall?.enabled||!1),[ey,ew]=(0,d.useState)(e.animation_idle||""),[eC,ez]=(0,d.useState)(e.animation_responding||""),[eZ,ek]=(0,d.useState)({rights_mode:e.rights_mode,users:e.RBAC?.users,roles:e.RBAC?.roles}),[eA,eS]=(0,d.useState)({promptGuard:e.firewall?.scanners?.promptGuard||!1,codeShield:e.firewall?.scanners?.codeShield||!1,agentAlignment:e.firewall?.scanners?.agentAlignment||!1,hiddenAscii:e.firewall?.scanners?.hiddenAscii||!1,piiDetection:e.firewall?.scanners?.piiDetection||!1}),{toast:eF}=(0,k.pm)(),e_=(0,d.useMemo)(()=>({search:ex||void 0,category:"all"===eo?void 0:eo,limit:100,page:0}),[ex,eo]),{data:eI,loading:eD}=(0,l.aM)(f.Ul,{variables:e_}),{data:eO}=(0,l.aM)(f.Az,{variables:{page:1,limit:100}}),{data:eR}=(0,l.aM)(f.Tp),eM=eO?.variablesPagination?.items||[],{data:eT,loading:eJ,refetch:eP}=(0,ea.Sh)({page:1,limit:100,filters:[{assigned_agents:{contains:e.id}}]}),e$=eT?.prompt_libraryPagination?.items||[],eV=(0,d.useMemo)(()=>eI?.tools?.items?.filter(s=>s.id!==e.id)||[],[eI?.tools?.items,e.id]),eG=(0,d.useMemo)(()=>eV.reduce((e,s)=>(e[s.category]||(e[s.category]=[]),e[s.category].push(s),e),{}),[eV]),eB=eR?.toolCategories||[],eE=()=>{ec(""),em("all")},eq=e=>{eu(s=>{let a=new Set(s);return a.has(e)?a.delete(e):a.add(e),a})},eY=async()=>{try{await navigator.clipboard.writeText(e.id),eF({title:"Agent ID copied to clipboard"})}catch(e){eF({title:"Failed to copy Agent ID",variant:"destructive"})}},[eL,eU]=(0,n.D)(f.fG,{onCompleted:()=>{a.push("/agents",{scroll:!1})}}),[eW,eK]=(0,n.D)(f.Dt,{refetchQueries:[f.as,"GetAgentById"]}),eQ=(0,c.cI)({resolver:(0,t.F)(et),defaultValues:e??{name:"New agent",instructions:"",steps:[],firewall:{enabled:!1,scanners:{promptGuard:!1,codeShield:!1,agentAlignment:!1,hiddenAscii:!1,piiDetection:!1}}},mode:"onChange"}),[eX]=(0,n.D)(f.fB);return(0,i.jsxs)("div",{className:"h-full flex-col md:flex",children:[i.jsx("div",{className:"container flex flex-col items-start justify-between space-y-2 py-4 sm:flex-row sm:items-center sm:space-y-0 md:h-16",children:(0,i.jsxs)("div",{className:"ml-auto flex w-full space-x-2 sm:justify-end",children:[e?.id&&(0,i.jsxs)(x.z,{onClick:eQ.handleSubmit(async e=>{console.log("data",e),eW({variables:{id:e.id,name:e.name,description:e.description,instructions:e.instructions,category:e.category,active:e.active,providerapikey:ef,animation_idle:ey,animation_responding:eC,rights_mode:eZ.rights_mode,RBAC:{users:eZ.users||[],roles:eZ.roles||[]},firewall:JSON.stringify({enabled:eN,scanners:eA}),tools:JSON.stringify(h)}}),s()},e=>{console.error("form data invalid",e)}),disabled:eK.loading,variant:"secondary",type:"submit",children:["Save ",eK.loading&&i.jsx(p.g,{className:"ml-2"})]}),i.jsx(x.z,{onClick:()=>{a.push("/agents",{scroll:!1})},variant:"secondary",type:"button",children:"Back"}),i.jsx(g,{agent:e,deleteAgent:eL,deleteAgentResult:eU})]})}),i.jsx(b.Z,{}),i.jsx(w.mQ,{defaultValue:"complete",className:"flex-1",children:i.jsx("div",{className:"container py-6",children:i.jsx("div",{className:"grid items-stretch gap-6",children:i.jsx("div",{className:"md:order-1",children:i.jsx("div",{className:"flex flex-col space-y-4",children:i.jsx("div",{className:"h-full",children:i.jsx(N.l0,{...eQ,children:i.jsx("form",{className:"space-y-8",children:(0,i.jsxs)("div",{className:"grid grid-rows-1 grid-flow-col gap-6 lg:grid-cols-2",children:[i.jsx("div",{className:"col",children:i.jsx("div",{className:"flex flex-col space-y-4",children:i.jsx("div",{className:"flex flex-col space-y-2",children:(0,i.jsxs)(v.Zb,{children:[i.jsx(v.Ol,{children:(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[e.image&&i.jsx("div",{className:"w-10 h-10 rounded-full overflow-hidden flex-shrink-0",children:i.jsx("img",{src:e.image,alt:`${e.name} profile`,className:"w-full h-full object-cover"})}),i.jsx(v.ll,{children:"Agent"})]}),(0,i.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,i.jsxs)("span",{children:["ID: ",e.id]}),i.jsx("button",{type:"button",onClick:eY,className:"p-1 hover:bg-muted rounded transition-colors text-muted-foreground",title:"Copy Agent ID",children:i.jsx(A,{})})]})]})}),(0,i.jsxs)(v.aY,{className:"grid gap-4",children:[i.jsx(N.Wi,{control:eQ.control,name:"name",render:({field:e})=>(0,i.jsxs)(N.xJ,{children:[i.jsx(N.lX,{children:"Name"}),i.jsx(N.NI,{children:i.jsx(j.I,{type:"text",className:"resize-none",...e})}),i.jsx(N.zG,{})]})}),(0,i.jsxs)("div",{children:[i.jsx("div",{className:"text-sm font-medium mb-2",children:"Modalities"}),(0,i.jsxs)("p",{className:"text-sm text-muted-foreground mb-2",children:["This agent uses ",i.jsx("b",{children:e.modelName})," from ",i.jsx("b",{children:e.providerName})," and can use the following capabilities:"]}),i.jsx(U.pn,{children:(0,i.jsxs)("div",{className:"flex items-center gap-3 mt-2",children:[i.jsx("div",{className:`p-2 rounded-md ${e.capabilities?.text?"bg-primary text-primary-foreground":"bg-gray-500 text-white"}`,children:i.jsx(O.Z,{className:"h-4 w-4"})}),(0,i.jsxs)(U.u,{children:[i.jsx(U.aJ,{asChild:!0,children:i.jsx("div",{className:`p-2 rounded-md ${e.capabilities?.images?.length?"bg-primary text-primary-foreground":"bg-gray-500 text-white"}`,children:i.jsx(R.Z,{className:"h-4 w-4"})})}),i.jsx(U._v,{children:(0,i.jsxs)("p",{children:["Images: ",e.capabilities?.images?.length?e.capabilities.images.join(", "):"None"]})})]}),(0,i.jsxs)(U.u,{children:[i.jsx(U.aJ,{asChild:!0,children:i.jsx("div",{className:`p-2 rounded-md ${e.capabilities?.files?.length?"bg-primary text-primary-foreground":"bg-gray-500 text-white"}`,children:i.jsx(M.Z,{className:"h-4 w-4"})})}),i.jsx(U._v,{children:(0,i.jsxs)("p",{children:["Files: ",e.capabilities?.files?.length?e.capabilities.files.join(", "):"None"]})})]}),(0,i.jsxs)(U.u,{children:[i.jsx(U.aJ,{asChild:!0,children:i.jsx("div",{className:`p-2 rounded-md ${e.capabilities?.audio?.length?"bg-primary text-primary-foreground":"bg-gray-500 text-white"}`,children:i.jsx(T.Z,{className:"h-4 w-4"})})}),i.jsx(U._v,{children:(0,i.jsxs)("p",{children:["Audio: ",e.capabilities?.audio?.length?e.capabilities.audio.join(", "):"None"]})})]}),(0,i.jsxs)(U.u,{children:[i.jsx(U.aJ,{asChild:!0,children:i.jsx("div",{className:`p-2 rounded-md ${e.capabilities?.video?.length?"bg-primary text-primary-foreground":"bg-gray-500 text-white"}`,children:i.jsx(J.Z,{className:"h-4 w-4"})})}),i.jsx(U._v,{children:(0,i.jsxs)("p",{children:["Video: ",e.capabilities?.video?.length?e.capabilities.video.join(", "):"None"]})})]})]})})]}),i.jsx(N.Wi,{control:eQ.control,name:"category",render:({field:e})=>(e.value||(e.value=""),(0,i.jsxs)(N.xJ,{children:[i.jsx(N.lX,{children:"Category"}),i.jsx(N.NI,{children:(0,i.jsxs)(S.Ph,{onValueChange:s=>{e.onChange(s)},children:[i.jsx(S.i4,{children:i.jsx(S.ki,{className:"capitalize",placeholder:e.value||"Select a category"})}),i.jsx(S.Bw,{children:el.map(e=>i.jsx(S.Ql,{className:"capitalize",value:e,children:e},e))})]})}),i.jsx(N.zG,{})]}))}),i.jsx(N.Wi,{control:eQ.control,name:"description",render:({field:e})=>(e.value||(e.value=""),(0,i.jsxs)(N.xJ,{children:[i.jsx(N.lX,{children:"Description"}),i.jsx(N.NI,{children:i.jsx(C.g,{rows:2,className:"resize-none",...e,value:e.value??""})}),i.jsx(N.zG,{})]}))}),i.jsx(N.Wi,{control:eQ.control,name:"instructions",render:({field:e})=>(e.value||(e.value=""),(0,i.jsxs)(N.xJ,{children:[i.jsx(N.lX,{children:"Instructions"}),i.jsx(N.NI,{children:i.jsx(C.g,{rows:5,className:"resize-none",...e,value:e.value??""})}),i.jsx(N.zG,{})]}))}),(0,i.jsxs)("div",{className:"space-y-2 w-full overflow-x-hidden",children:[(0,i.jsxs)("div",{className:"text-sm",children:[i.jsx("div",{className:"font-medium",children:"Provider API Key"}),i.jsx("div",{className:"text-muted-foreground text-xs",children:"Select a variable containing the API key for the provider"}),e.authenticationInformation&&i.jsx("div",{className:"text-muted-foreground text-xs",children:i.jsx(ei.H,{children:e.authenticationInformation})})]}),(0,i.jsxs)(F.J2,{children:[i.jsx(F.xo,{asChild:!0,children:(0,i.jsxs)(x.z,{variant:"outline",role:"combobox",className:"w-full justify-between text-sm",children:[eM.find(e=>e.name===ef)?.name||"Select variable...",i.jsx(I.Z,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),i.jsx(F.yk,{className:"w-full p-0 z-[9999]",children:(0,i.jsxs)(_.mY,{children:[i.jsx(_.sZ,{placeholder:"Search variables..."}),(0,i.jsxs)(_.e8,{children:[i.jsx(_.rb,{children:"No variables found."}),i.jsx(_.fu,{children:eM.map(e=>(0,i.jsxs)(_.di,{onSelect:()=>{ev(e.name)},children:[i.jsx(D.Z,{className:(0,q.cn)("mr-2 h-4 w-4",ef===e.name?"opacity-100":"opacity-0")}),(0,i.jsxs)("div",{className:"flex flex-col",children:[i.jsx("span",{children:e.name}),e.encrypted&&i.jsx("span",{className:"text-xs text-muted-foreground",children:"\uD83D\uDD12 Encrypted"})]})]},e.id))})]})]})})]})]}),m?.fileUploads?.s3endpoint&&i.jsx(v.Zb,{className:"bg-transparent",children:(0,i.jsxs)(L.zF,{children:[i.jsx(v.Ol,{className:"p-4",children:(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsxs)("div",{className:"flex flex-col",children:[i.jsx("p",{className:"text-base",children:"Custom visualizations"}),i.jsx("p",{className:"text-sm text-muted-foreground mb-0",children:"Upload custom Lottie animations for idle and responding states."})]}),i.jsx(L.wy,{asChild:!0,children:(0,i.jsxs)(x.z,{variant:"ghost",size:"icon",className:"size-8",children:[i.jsx(I.Z,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Toggle"})]})})]})}),i.jsx(L.Fw,{className:"mt-5",children:i.jsx(v.aY,{className:"space-y-4",children:(0,i.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsxs)("div",{children:[i.jsx("div",{className:"text-sm font-medium",children:"Idle Animation"}),i.jsx("div",{className:"text-xs text-muted-foreground",children:"Animation when agent is waiting"})]}),(0,i.jsxs)(K.jF,{s3key:ey,children:[i.jsx(K.ZP,{id:"agent-idle-animation",allowedFileTypes:[".json"],selectionLimit:1,buttonText:"",dependencies:[e.id],onConfirm:e=>{e.length>0&&ew(e[0])}}),ey&&(0,i.jsxs)("div",{className:"mt-2 p-2 border rounded bg-muted/30",children:[i.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:"Preview:"}),i.jsx("div",{className:"w-12 h-12 mx-auto",children:i.jsx(Q.Z,{agent:{...e,animation_idle:ey},status:"ready"})})]})]})]}),(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsxs)("div",{children:[i.jsx("div",{className:"text-sm font-medium",children:"Responding Animation"}),i.jsx("div",{className:"text-xs text-muted-foreground",children:"Animation when agent is responding"})]}),(0,i.jsxs)(K.jF,{s3key:eC,children:[i.jsx(K.ZP,{id:"agent-responding-animation",allowedFileTypes:[".json"],selectionLimit:1,buttonText:"",dependencies:[e.id],onConfirm:e=>{e.length>0&&ez(e[0])}}),eC&&(0,i.jsxs)("div",{className:"mt-2 p-2 border rounded bg-muted/30",children:[i.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:"Preview:"}),i.jsx("div",{className:"w-12 h-12 mx-auto",children:i.jsx(Q.Z,{agent:{...e,animation_responding:eC},status:"streaming"})})]})]})]})]})})})]})}),(0,i.jsxs)(i.Fragment,{children:[i.jsx("div",{className:"text-sm font-medium mb-0",children:" You can test this agent using the Exulu UI without activating the agent if you are a super admin:"}),i.jsx(x.z,{className:"mt-0",onClick:async()=>{console.log("agent",e);let s=await eX({variables:{title:"New session",user:o.id,agent:e.id}});console.log("result",s);let i=s?.data?.agent_sessionsCreateOne?.item?.id;a.push(`/chat/${e.id}/${i}`)},type:"button",variant:"default",children:"Go to chat"})]})]})]})})})}),i.jsx("div",{className:"col",children:(0,i.jsxs)("div",{className:"flex flex-col space-y-4",children:[i.jsx(N.Wi,{control:eQ.control,name:"active",render:({field:e})=>(0,i.jsxs)(N.xJ,{className:"flex flex-row items-center justify-between rounded-lg border p-4",children:[(0,i.jsxs)("div",{className:"space-y-0.5",children:[i.jsx(N.lX,{className:"text-base",children:"Is this agent active?"}),i.jsx(N.pf,{children:"When active this agent will be available via the Exulu UI and API endpoint."})]}),i.jsx(N.NI,{children:i.jsx(y.r,{checked:e.value,onCheckedChange:e.onChange})})]})}),i.jsx(v.Zb,{className:"bg-transparent",children:(0,i.jsxs)(L.zF,{children:[i.jsx(v.Ol,{className:"p-4",children:(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsxs)("div",{className:"flex flex-col",children:[i.jsx("p",{className:"text-base",children:"Access Control"}),i.jsx("p",{className:"text-sm text-muted-foreground mb-0",children:"Control access to this agent."})]}),i.jsx(L.wy,{asChild:!0,children:(0,i.jsxs)(x.z,{variant:"ghost",size:"icon",className:"size-8",children:[i.jsx(I.Z,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Toggle"})]})})]})}),i.jsx(L.Fw,{className:"mt-5",children:i.jsx(v.aY,{className:"space-y-4",children:i.jsx(Y.P,{initialRightsMode:e.rights_mode,initialUsers:e.RBAC?.users,initialRoles:e.RBAC?.roles,onChange:(e,s,a)=>{ek({rights_mode:e,users:s,roles:a})}})})})]})}),i.jsx(v.Zb,{className:"bg-transparent",children:(0,i.jsxs)(L.zF,{children:[i.jsx(v.Ol,{className:"p-4",children:(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsxs)("div",{className:"flex flex-col",children:[i.jsx("p",{className:"text-base",children:"Prompt Templates"}),(0,i.jsxs)("p",{className:"text-sm text-muted-foreground mb-0",children:["Manage prompt templates assigned to this agent (",e$.length,")"]})]}),(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsxs)(x.z,{type:"button",variant:"outline",size:"sm",onClick:()=>eg(!0),children:[i.jsx(P.Z,{className:"h-4 w-4 mr-2"}),"New Prompt"]}),i.jsx(L.wy,{asChild:!0,children:(0,i.jsxs)(x.z,{variant:"ghost",size:"icon",className:"size-8",children:[i.jsx(I.Z,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Toggle"})]})})]})]})}),i.jsx(L.Fw,{className:"mt-5",children:i.jsx(v.aY,{className:"space-y-4",children:eJ?i.jsx("div",{className:"text-sm text-muted-foreground",children:"Loading prompts..."}):0===e$.length?(0,i.jsxs)("div",{className:"text-center py-6 border-2 border-dashed rounded-lg",children:[i.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"No prompts assigned to this agent yet"}),(0,i.jsxs)(x.z,{type:"button",variant:"outline",size:"sm",onClick:()=>eg(!0),children:[i.jsx(P.Z,{className:"h-4 w-4 mr-2"}),"Create First Prompt"]})]}):i.jsx("div",{className:"grid gap-4",children:e$.map(e=>i.jsx(ee.$,{prompt:e,user:o,onUpdate:eP},e.id))})})})]})}),(0,i.jsxs)(v.Zb,{children:[(0,i.jsxs)(v.Ol,{children:[(0,i.jsxs)(v.ll,{className:"flex items-center gap-2",children:["Tools",eD&&i.jsx(p.g,{className:"h-4 w-4"})]}),i.jsx(v.SZ,{children:h.length>0?`${h.length} tool${1===h.length?"":"s"} enabled for this agent`:"No tools enabled for this agent"})]}),i.jsx(v.aY,{children:(0,i.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,i.jsxs)("div",{className:"space-y-3",children:[i.jsx("div",{className:"flex items-center gap-2",children:(0,i.jsxs)("div",{className:"relative flex-1",children:[i.jsx($.Z,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),i.jsx(j.I,{placeholder:"Search tools by name or description...",value:ed,onChange:e=>ec(e.target.value),className:"pl-10 pr-10"}),ed&&i.jsx(x.z,{variant:"ghost",size:"sm",className:"absolute right-1 top-1/2 transform -translate-y-1/2 h-6 w-6 p-0",onClick:()=>ec(""),children:i.jsx(V.Z,{className:"h-3 w-3"})})]})}),(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsxs)(S.Ph,{value:eo,onValueChange:em,children:[i.jsx(S.i4,{className:"w-[200px]",children:i.jsx(S.ki,{placeholder:"Filter by category"})}),(0,i.jsxs)(S.Bw,{children:[i.jsx(S.Ql,{value:"all",children:"All categories"}),eB.map(e=>i.jsx(S.Ql,{value:e,className:"capitalize",children:e},e))]})]}),(ed||"all"!==eo)&&(0,i.jsxs)(x.z,{variant:"outline",onClick:eE,children:[i.jsx(V.Z,{className:"h-4 w-4"}),i.jsx("span",{className:"sr-only",children:"Clear filters"})]}),i.jsx(x.z,{type:"button",variant:"outline",onClick:()=>{eu(new Set)},children:"Expand all"}),i.jsx(x.z,{type:"button",variant:"outline",onClick:()=>{eu(new Set(Object.keys(eG)))},children:"Collapse all"})]}),(0,i.jsxs)("div",{className:"ml-auto text-sm text-muted-foreground",children:[eI?.tools?.total||0," tool",1!==(eI?.tools?.total||0)?"s":"",ex||"all"!==eo?" found":" available","."]})]}),(0,i.jsxs)("div",{className:"space-y-6",children:["all"===eo?Object.entries(eG).map(([e,s])=>{let a=s.filter(e=>h.some(s=>s.id===e.id)).length,l=ej.has(e);return(0,i.jsxs)(L.zF,{open:!l,onOpenChange:()=>eq(e),children:[(0,i.jsxs)("div",{className:"flex items-center justify-between p-3 border rounded-lg bg-muted/30",children:[i.jsx(L.wy,{asChild:!0,children:(0,i.jsxs)(x.z,{variant:"ghost",className:"flex items-center gap-2 p-0 h-auto font-medium",children:[i.jsx(I.Z,{className:"h-4 w-4"}),i.jsx("span",{className:"capitalize",children:e}),(0,i.jsxs)(Z.C,{variant:"secondary",className:"text-xs",children:[a,"/",s.length]})]})}),(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[i.jsx(x.z,{variant:"outline",size:"sm",onClick:()=>{let e=s.filter(e=>!h.some(s=>s.id===e.id)).map(e=>({id:e.id,type:e.type,config:e.config?.map(e=>({name:e.name,variable:""}))||[]}));u([...h,...e])},disabled:a===s.length,children:"Enable All"}),i.jsx(x.z,{variant:"outline",size:"sm",onClick:()=>{let e=s.map(e=>e.id);u(h.filter(s=>!e.includes(s.id)))},disabled:0===a,children:"Disable All"})]})]}),i.jsx(L.Fw,{className:"mt-2",children:i.jsx("div",{className:"space-y-2 pl-4",children:s.map(e=>{let s=h.some(s=>s.id===e.id),a=h.find(s=>s.id===e.id),l=e.config?.length||0,n=a?.config?.filter(e=>e.variable&&""!==e.variable.trim()).length||0,t=s&&l>0&&n<l;return i.jsx("div",{className:"rounded-lg border p-4",children:(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsxs)("div",{className:"flex items-center flex-1",children:[(0,i.jsxs)("div",{className:"flex-1",children:[(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[i.jsx("div",{className:"font-medium",children:e?.name}),(0,i.jsxs)("div",{className:"flex items-center gap-1",children:[l>0&&s&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(Z.C,{variant:"secondary",className:"text-xs",children:[n,"/",l]}),t&&i.jsx(G.Z,{className:"h-4 w-4 text-destructive"})]}),i.jsx(Z.C,{variant:"outline",children:e?.category})]})]}),i.jsx("div",{className:"text-sm text-muted-foreground mt-1 line-clamp-2",children:e?.description})]}),(0,i.jsxs)(W.yo,{open:H===e.id,onOpenChange:()=>{H===e.id?er(!1):er(e.id)},children:[l>0&&!s?i.jsx(W.aM,{asChild:!0,children:i.jsx(x.z,{variant:"ghost",size:"sm",children:i.jsx(B.Z,{className:"h-4 w-4"})})}):i.jsx(x.z,{type:"button",disabled:!0,variant:"ghost",size:"sm",children:i.jsx(B.Z,{className:"h-4 w-4"})}),i.jsx(W.aM,{asChild:!0,children:i.jsx(x.z,{className:"mr-2",variant:"ghost",size:"sm",children:i.jsx(E.Z,{className:"h-4 w-4"})})}),(0,i.jsxs)(W.ue,{className:"w-[400px] sm:w-[540px]",children:[(0,i.jsxs)(W.Tu,{children:[i.jsx(W.bC,{children:e?.name}),i.jsx(W.Ei,{children:e?.description})]}),i.jsx("div",{className:"py-6",children:i.jsx("div",{className:"space-y-4",children:e.config&&e.config.length>0&&(0,i.jsxs)("div",{className:"space-y-4",children:[i.jsx("div",{className:"text-md font-medium",children:"Configuration variables:"}),e.config.map((l,n)=>{let t=a?.config.find(e=>e.name===l.name)?.variable||"";return i.jsx("div",{className:"space-y-2",children:s?i.jsx(en,{configItem:l,currentValue:t,variables:eM,onVariableSelect:s=>{let a=h.map(a=>a.id===e.id?{...a,config:a.config.map(e=>e.name===l.name?{...e,variable:s}:e)}:a);console.log("updated",a),u(a)}}):i.jsx("div",{className:"text-xs text-muted-foreground p-2 bg-muted rounded",children:"Enable this tool to configure"})},n)})]})})})]})]})]}),i.jsx(y.r,{checked:s,onCheckedChange:s=>{let a=[...h];s?(a=[...h,{id:e.id,type:e.type,config:e.config?.map(e=>({name:e.name,variable:""}))||[]}],e.config?.length>0&&er(e.id)):a=h.filter(s=>s.id!==e.id),u(a)}})]})},e?.id)})})})]},e)}):i.jsx("div",{className:"space-y-2",children:eV.map(e=>{let s=h.some(s=>s.id===e.id),a=h.find(s=>s.id===e.id),l=e.config?.length||0,n=a?.config?.filter(e=>e.variable&&""!==e.variable.trim()).length||0,t=s&&l>0&&n<l;return i.jsx("div",{className:"rounded-lg border p-4",children:(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsxs)("div",{className:"flex items-center flex-1",children:[(0,i.jsxs)("div",{className:"flex-1",children:[(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[i.jsx("div",{className:"font-medium",children:e?.name}),(0,i.jsxs)("div",{className:"flex items-center gap-1",children:[l>0&&s&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(Z.C,{variant:"secondary",className:"text-xs",children:[n,"/",l]}),t&&i.jsx(G.Z,{className:"h-4 w-4 text-destructive"})]}),i.jsx(Z.C,{variant:"outline",children:e?.category})]})]}),i.jsx("div",{className:"text-sm text-muted-foreground mt-1 line-clamp-2",children:e?.description})]}),(0,i.jsxs)(W.yo,{open:H===e.id,onOpenChange:()=>{H===e.id?er(!1):er(e.id)},children:[l>0&&!s?i.jsx(W.aM,{asChild:!0,children:i.jsx(x.z,{variant:"ghost",size:"sm",children:i.jsx(B.Z,{className:"h-4 w-4"})})}):i.jsx(x.z,{type:"button",disabled:!0,variant:"ghost",size:"sm",children:i.jsx(B.Z,{className:"h-4 w-4"})}),i.jsx(W.aM,{asChild:!0,children:i.jsx(x.z,{className:"mr-2",variant:"ghost",size:"sm",children:i.jsx(E.Z,{className:"h-4 w-4"})})}),(0,i.jsxs)(W.ue,{className:"w-[400px] sm:w-[540px]",children:[(0,i.jsxs)(W.Tu,{children:[i.jsx(W.bC,{children:e?.name}),i.jsx(W.Ei,{children:e?.description})]}),i.jsx("div",{className:"py-6",children:i.jsx("div",{className:"space-y-4",children:e.config&&e.config.length>0&&(0,i.jsxs)("div",{className:"space-y-4",children:[i.jsx("div",{className:"text-md font-medium",children:"Configuration variables:"}),e.config.map((l,n)=>{let t=a?.config.find(e=>e.name===l.name)?.variable||"";return i.jsx("div",{className:"space-y-2",children:s?i.jsx(en,{configItem:l,currentValue:t,variables:eM,onVariableSelect:s=>{let a=h.map(a=>a.id===e.id?{...a,config:a.config.map(e=>e.name===l.name?{...e,variable:s}:e)}:a);console.log("updated",a),u(a)}}):i.jsx("div",{className:"text-xs text-muted-foreground p-2 bg-muted rounded",children:"Enable this tool to configure"})},n)})]})})})]})]})]}),i.jsx(y.r,{checked:s,onCheckedChange:s=>{let a=[...h];s?(a=[...h,{id:e.id,type:e.type,config:e.config?.map(e=>({name:e.name,variable:""}))||[]}],e.config?.length>0&&er(e.id)):a=h.filter(s=>s.id!==e.id),u(a)}})]})},e?.id)})}),0===eV.length&&(ed||"all"!==eo)&&(0,i.jsxs)("div",{className:"text-center py-8",children:[i.jsx("div",{className:"text-muted-foreground",children:"No tools found matching your criteria."}),i.jsx(x.z,{variant:"outline",size:"sm",className:"mt-2",onClick:eE,children:"Clear filters"})]})]})]})})]})]})})]})})})})})})})})}),i.jsx(es.D,{open:ep,onOpenChange:eg,onSuccess:eP,user:o,defaultAssignedAgents:[e.id]})]})}},18615:(e,s,a)=>{a.d(s,{J:()=>g});var i=a(10326);a(17577);var l=a(62288),n=a(34789),t=a(36931),r=a(90772),d=a(68232),c=a(77863);let o=({className:e,...s})=>i.jsx("div",{className:(0,c.cn)("flex flex-col overflow-hidden rounded-lg border bg-background shadow-sm",e),...s}),m=({className:e,...s})=>i.jsx("div",{className:(0,c.cn)("flex items-center justify-between border-b bg-muted/50 px-4 py-3",e),...s}),x=({className:e,...s})=>i.jsx("div",{className:(0,c.cn)("flex items-center gap-1",e),...s}),h=({tooltip:e,label:s,icon:a,children:l,className:n,size:t="sm",variant:o="ghost",...m})=>{let x=(0,i.jsxs)(r.z,{className:(0,c.cn)("size-8 p-0 text-muted-foreground hover:text-foreground",n),size:t,type:"button",variant:o,...m,children:[a?i.jsx(a,{className:"size-4"}):l,i.jsx("span",{className:"sr-only",children:s||e})]});return e?i.jsx(d.pn,{children:(0,i.jsxs)(d.u,{children:[i.jsx(d.aJ,{asChild:!0,children:x}),i.jsx(d._v,{children:i.jsx("p",{children:e})})]})}):x},j=({className:e,...s})=>i.jsx("div",{className:(0,c.cn)("flex-1 overflow-auto p-4",e),...s});var u=a(18019),p=a(43810);function g({text:e,sliceLength:s}){let{toast:a}=(0,n.pm)();return(0,i.jsxs)(l.Vq,{children:[i.jsx(l.hg,{asChild:!0,children:(0,i.jsxs)("button",{className:"cursor-pointer text-sm text-left w-full hover:bg-accent/50 transition-colors rounded-md p-2 group",children:[(0,i.jsxs)("span",{className:"block",children:[e?.slice(0,s??200),s&&e.length>s?"...":""]}),(0,i.jsxs)("span",{className:"flex items-center gap-1 text-xs text-muted-foreground mt-1 group-hover:text-foreground transition-colors",children:[i.jsx(u.Z,{className:"w-3 h-3"}),"Click to view full text"]})]})}),i.jsx(l.cZ,{className:"sm:max-w-[800px] max-h-[500px] overflow-y-scroll",children:(0,i.jsxs)(o,{children:[i.jsx(m,{children:i.jsx(x,{children:i.jsx(h,{icon:p.Z,label:"Copy",tooltip:"Copy to clipboard",onClick:async()=>{await navigator.clipboard.writeText(e),a({title:"Copied to clipboard"})}})})}),i.jsx(j,{children:i.jsx(t.H,{children:e})})]})})]})}},14331:(e,s,a)=>{a.d(s,{Z:()=>d});var i=a(10326),l=a(19245),n=a(20108),t=a(77961);let r=({agent:e,status:s,className:a})=>{let{data:r}=(0,n.a)({queryKey:["defaultAnimation","idle"],queryFn:async()=>(await fetch("/agent-idle.json")).json(),staleTime:36e5,enabled:!e.animation_idle}),{data:d}=(0,n.a)({queryKey:["defaultAnimation","responding"],queryFn:async()=>(await fetch("/agent-responding.json")).json(),staleTime:36e5,enabled:!e.animation_responding}),{data:c}=(0,n.a)({queryKey:["customAnimation",e.animation_idle],queryFn:async()=>{if(!e.animation_idle)return null;let s=await (0,t.NF)(e.animation_idle);return(await fetch(s)).json()},enabled:!!e.animation_idle,staleTime:3e5}),{data:o}=(0,n.a)({queryKey:["customAnimation",e.animation_responding],queryFn:async()=>{if(!e.animation_responding)return null;let s=await (0,t.NF)(e.animation_responding);return(await fetch(s)).json()},enabled:!!e.animation_responding,staleTime:3e5}),{View:m}=(0,l.kJ)((()=>{switch(s){case"submitted":case"ready":case"error":default:return{animationData:c||r,loop:!0,autoplay:!0};case"streaming":return{animationData:o||d,loop:!0,autoplay:!0}}})());return i.jsx(i.Fragment,{children:i.jsx("div",{className:"",children:i.jsx("div",{className:a,children:m})})})},d=({agent:e,status:s,className:a})=>i.jsx(r,{className:a,agent:e,status:s})},55632:(e,s,a)=>{a.d(s,{NI:()=>p,Wi:()=>m,l0:()=>c,lX:()=>u,pf:()=>g,xJ:()=>j,zG:()=>f});var i=a(10326),l=a(34214),n=a(17577),t=a(74723),r=a(31048),d=a(77863);let c=t.RV,o=n.createContext({}),m=({...e})=>i.jsx(o.Provider,{value:{name:e.name},children:i.jsx(t.Qr,{...e})}),x=()=>{let e=n.useContext(o),s=n.useContext(h),{getFieldState:a,formState:i}=(0,t.Gc)(),l=a(e.name,i);if(!e)throw Error("useFormField should be used within <FormField>");let{id:r}=s;return{id:r,name:e.name,formItemId:`${r}-form-item`,formDescriptionId:`${r}-form-item-description`,formMessageId:`${r}-form-item-message`,...l}},h=n.createContext({}),j=n.forwardRef(({className:e,...s},a)=>{let l=n.useId();return i.jsx(h.Provider,{value:{id:l},children:i.jsx("div",{ref:a,className:(0,d.cn)("space-y-2",e),...s})})});j.displayName="FormItem";let u=n.forwardRef(({className:e,...s},a)=>{let{error:l,formItemId:n}=x();return i.jsx(r._,{ref:a,className:(0,d.cn)(l&&"text-destructive",e),htmlFor:n,...s})});u.displayName="FormLabel";let p=n.forwardRef(({...e},s)=>{let{error:a,formItemId:n,formDescriptionId:t,formMessageId:r}=x();return i.jsx(l.g7,{ref:s,id:n,"aria-describedby":a?`${t} ${r}`:`${t}`,"aria-invalid":!!a,...e})});p.displayName="FormControl";let g=n.forwardRef(({className:e,...s},a)=>{let{formDescriptionId:l}=x();return i.jsx("p",{ref:a,id:l,className:(0,d.cn)("text-sm text-muted-foreground",e),...s})});g.displayName="FormDescription";let f=n.forwardRef(({className:e,children:s,...a},l)=>{let{error:n,formMessageId:t}=x(),r=n?String(n?.message):s;return r?i.jsx("p",{ref:l,id:t,className:(0,d.cn)("text-sm font-medium text-destructive",e),...a,children:r}):null});f.displayName="FormMessage"},37859:(e,s,a)=>{a.d(s,{g:()=>n});var i=a(10326),l=a(77863);let n=({className:e})=>(0,i.jsxs)("svg",{"aria-hidden":"true",role:"status",className:(0,l.cn)("inline w-4 h-4 text-white animate-spin fill-inherit",e),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",className:"fill-inherit opacity-20"}),i.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",className:"fill-inherit"})]})},33261:(e,s,a)=>{a.d(s,{r:()=>r});var i=a(10326),l=a(41959),n=a(17577),t=a(77863);let r=n.forwardRef(({className:e,...s},a)=>i.jsx(l.fC,{className:(0,t.cn)("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...s,ref:a,children:i.jsx(l.bU,{className:(0,t.cn)("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));r.displayName=l.fC.displayName}};
|
|
1
|
+
"use strict";exports.id=8286,exports.ids=[8286],exports.modules={18286:(e,s,a)=>{a.d(s,{f:()=>en,Z:()=>er});var i=a(10326),l=a(39167),n=a(18753),t=a(74064),r=a(35047),d=a(17577),c=a(74723),o=a(770),m=a(98091),x=a(90772),h=a(62288),j=a(54432),u=a(31048),p=a(37859);function g({deleteAgent:e,deleteAgentResult:s,agent:a}){let l="delete this agent",[n,t]=(0,d.useState)("");return(0,i.jsxs)(h.Vq,{children:[i.jsx(h.hg,{asChild:!0,children:i.jsx(x.z,{disabled:!a?.id,variant:"destructive",children:i.jsx(m.Z,{className:"size-4"})})}),(0,i.jsxs)(h.cZ,{className:"sm:max-w-[475px]",children:[i.jsx(h.fK,{children:i.jsx(h.$N,{children:"Delete this agent"})}),i.jsx("div",{className:"grid gap-4 py-4",children:(0,i.jsxs)("div",{className:"grid gap-2",children:[(0,i.jsxs)(u._,{htmlFor:"name",children:['Type "',l,'" to confirm']}),i.jsx(j.I,{onChange:e=>{t(e.target.value)},id:"name",autoFocus:!0})]})}),i.jsx(h.cN,{children:(0,i.jsxs)(x.z,{disabled:n!==l||s.loading,onClick:()=>{e({variables:{id:a.id}})},variant:"destructive",type:"submit",children:["Delete ",s.loading&&i.jsx(p.g,{})]})})]})]})}var f=a(42270),v=a(33071),N=a(55632),b=a(8281),y=a(33261),w=a(79210),C=a(87673),z=a(15211),Z=a(567),k=a(34789);function A(){return i.jsx("svg",{width:"19",height:"20",viewBox:"0 0 19 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M3.5 12.5003C2.72343 12.5003 2.33515 12.5003 2.02886 12.3735C1.62048 12.2043 1.29602 11.8798 1.12687 11.4715C1 11.1652 1 10.7769 1 10.0003V4.33366C1 3.40024 1 2.93353 1.18166 2.57701C1.34144 2.2634 1.59641 2.00844 1.91002 1.84865C2.26654 1.66699 2.73325 1.66699 3.66667 1.66699H9.33333C10.1099 1.66699 10.4982 1.66699 10.8045 1.79386C11.2129 1.96302 11.5373 2.28747 11.7065 2.69585C11.8333 3.00214 11.8333 3.39042 11.8333 4.16699M9.5 18.3337H15C15.9334 18.3337 16.4001 18.3337 16.7567 18.152C17.0703 17.9922 17.3252 17.7372 17.485 17.4236C17.6667 17.0671 17.6667 16.6004 17.6667 15.667V10.167C17.6667 9.23357 17.6667 8.76686 17.485 8.41034C17.3252 8.09674 17.0703 7.84177 16.7567 7.68198C16.4001 7.50033 15.9334 7.50033 15 7.50033H9.5C8.56658 7.50033 8.09987 7.50033 7.74335 7.68198C7.42975 7.84177 7.17478 8.09674 7.01499 8.41034C6.83333 8.76686 6.83333 9.23357 6.83333 10.167V15.667C6.83333 16.6004 6.83333 17.0671 7.01499 17.4236C7.17478 17.7372 7.42975 17.9922 7.74335 18.152C8.09987 18.3337 8.56658 18.3337 9.5 18.3337Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}var S=a(34474),F=a(30811),_=a(2454),I=a(47206),D=a(32933),O=a(96230),R=a(71709),M=a(36283),T=a(69145),J=a(49758),P=a(83855),$=a(88307),V=a(94019),B=a(87888),E=a(88378),G=a(18019),q=a(77863),Y=a(15286),L=a(24295),U=a(68232),W=a(7890),K=a(77961),Q=a(14331),X=a(30463),H=a(18615),ee=a(86590),es=a(29429),ea=a(52227),ei=a(36931);let el=["marketing","sales","finance","hr","coding","support","research","knowledge","product"],en=({configItem:e,currentValue:s,variables:a,onVariableSelect:l})=>{let[n,t]=d.useState(!1),r=a.find(e=>e.name===s);return(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsxs)("div",{className:"text-sm",children:[i.jsx("div",{className:"font-medium capitalize",children:e.name}),i.jsx("div",{className:"text-muted-foreground text-xs capitalize",children:e.description})]}),(0,i.jsxs)(F.J2,{open:n,onOpenChange:t,modal:!0,children:[i.jsx(F.xo,{asChild:!0,children:(0,i.jsxs)(x.z,{variant:"outline",role:"combobox","aria-expanded":n,className:"w-full justify-between text-sm",children:[r?r.name:"Select variable...",i.jsx(I.Z,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),i.jsx(F.yk,{className:"w-full p-0",children:(0,i.jsxs)(_.mY,{children:[i.jsx(_.sZ,{placeholder:"Search variables..."}),(0,i.jsxs)(_.e8,{children:[i.jsx(_.rb,{children:"No variables found."}),i.jsx(_.fu,{children:a.map(e=>(0,i.jsxs)(_.di,{onSelect:()=>{l(e.name),console.log("variable",e),t(!1)},children:[i.jsx(D.Z,{className:(0,q.cn)("mr-2 h-4 w-4",s===e.name?"opacity-100":"opacity-0")}),(0,i.jsxs)("div",{className:"flex flex-col",children:[i.jsx("span",{children:e.name}),e.encrypted&&i.jsx("span",{className:"text-xs text-muted-foreground",children:"\uD83D\uDD12 Encrypted"})]})]},e.id))})]})]})}),e.default&&(0,i.jsxs)(v.Zb,{children:[i.jsx(v.Ol,{children:i.jsx(v.ll,{className:"text-md",children:"Default value"})}),i.jsx(v.aY,{children:i.jsx(H.J,{text:e.default,sliceLength:200})})]})]})]})},et=o.Ry({name:o.Z_().min(2,{message:"Agent name must be at least 2 characters."}).max(300,{message:"Agent name must not be longer than 300 characters."}),category:o.Z_().optional(),description:o.Z_().max(1e4,{message:"Agent description must not be longer than 10.000 characters."}).nullable().optional(),instructions:o.Z_().max(4e4,{message:"Agent instructions must not be longer than 40.000 characters."}).nullable().optional(),id:o.Z_().or(o.Rx()).nullable().optional(),active:o.Yj(),providerapikey:o.Z_().nullable().optional(),firewall:o.Ry({enabled:o.O7().optional(),scanners:o.Ry({promptGuard:o.O7().optional(),codeShield:o.O7().optional(),agentAlignment:o.O7().optional(),hiddenAscii:o.O7().optional(),piiDetection:o.O7().optional()}).optional()}).optional()});function er({agent:e,refetch:s}){let a=(0,r.useRouter)(),{user:o}=(0,d.useContext)(z.S),m=(0,d.useContext)(X.E),[h,u]=(0,d.useState)(e.tools?e.tools:[]),[H,er]=(0,d.useState)(!1),[ed,ec]=(0,d.useState)(""),[eo,em]=(0,d.useState)("all"),[ex,eh]=(0,d.useState)(""),[ej,eu]=(0,d.useState)(new Set),[ep,eg]=(0,d.useState)(!1),[ef,ev]=(0,d.useState)(e.providerapikey||""),[eN,eb]=(0,d.useState)(e.firewall?.enabled||!1),[ey,ew]=(0,d.useState)(e.animation_idle||""),[eC,ez]=(0,d.useState)(e.animation_responding||""),[eZ,ek]=(0,d.useState)({rights_mode:e.rights_mode,users:e.RBAC?.users,roles:e.RBAC?.roles}),[eA,eS]=(0,d.useState)({promptGuard:e.firewall?.scanners?.promptGuard||!1,codeShield:e.firewall?.scanners?.codeShield||!1,agentAlignment:e.firewall?.scanners?.agentAlignment||!1,hiddenAscii:e.firewall?.scanners?.hiddenAscii||!1,piiDetection:e.firewall?.scanners?.piiDetection||!1}),{toast:eF}=(0,k.pm)(),e_=(0,d.useMemo)(()=>({search:ex||void 0,category:"all"===eo?void 0:eo,limit:100,page:0}),[ex,eo]),{data:eI,loading:eD}=(0,l.aM)(f.Ul,{variables:e_}),{data:eO}=(0,l.aM)(f.Az,{variables:{page:1,limit:100}}),{data:eR}=(0,l.aM)(f.Tp),eM=eO?.variablesPagination?.items||[],{data:eT,loading:eJ,refetch:eP}=(0,ea.Sh)({page:1,limit:100,filters:[{assigned_agents:{contains:e.id}}]}),e$=eT?.prompt_libraryPagination?.items||[],eV=(0,d.useMemo)(()=>eI?.tools?.items?.filter(s=>s.id!==e.id)||[],[eI?.tools?.items,e.id]),eB=(0,d.useMemo)(()=>eV.reduce((e,s)=>(e[s.category]||(e[s.category]=[]),e[s.category].push(s),e),{}),[eV]),eE=eR?.toolCategories||[],eG=()=>{ec(""),em("all")},eq=e=>{eu(s=>{let a=new Set(s);return a.has(e)?a.delete(e):a.add(e),a})},eY=async()=>{try{await navigator.clipboard.writeText(e.id),eF({title:"Agent ID copied to clipboard"})}catch(e){eF({title:"Failed to copy Agent ID",variant:"destructive"})}},[eL,eU]=(0,n.D)(f.oF,{onCompleted:()=>{a.push("/agents",{scroll:!1})}}),[eW,eK]=(0,n.D)(f.Dt,{refetchQueries:[f.as,"GetAgentById"]}),eQ=(0,c.cI)({resolver:(0,t.F)(et),defaultValues:e??{name:"New agent",instructions:"",steps:[],firewall:{enabled:!1,scanners:{promptGuard:!1,codeShield:!1,agentAlignment:!1,hiddenAscii:!1,piiDetection:!1}}},mode:"onChange"}),[eX]=(0,n.D)(f.fB);return(0,i.jsxs)("div",{className:"h-full flex-col md:flex",children:[i.jsx("div",{className:"container flex flex-col items-start justify-between space-y-2 py-4 sm:flex-row sm:items-center sm:space-y-0 md:h-16",children:(0,i.jsxs)("div",{className:"ml-auto flex w-full space-x-2 sm:justify-end",children:[e?.id&&(0,i.jsxs)(x.z,{onClick:eQ.handleSubmit(async e=>{console.log("data",e),eW({variables:{id:e.id,name:e.name,description:e.description,instructions:e.instructions,category:e.category,active:e.active,providerapikey:ef,animation_idle:ey,animation_responding:eC,rights_mode:eZ.rights_mode,RBAC:{users:eZ.users||[],roles:eZ.roles||[]},firewall:JSON.stringify({enabled:eN,scanners:eA}),tools:JSON.stringify(h)}}),s()},e=>{console.error("form data invalid",e)}),disabled:eK.loading,variant:"secondary",type:"submit",children:["Save ",eK.loading&&i.jsx(p.g,{className:"ml-2"})]}),i.jsx(x.z,{onClick:()=>{a.push("/agents",{scroll:!1})},variant:"secondary",type:"button",children:"Back"}),i.jsx(g,{agent:e,deleteAgent:eL,deleteAgentResult:eU})]})}),i.jsx(b.Z,{}),i.jsx(w.mQ,{defaultValue:"complete",className:"flex-1",children:i.jsx("div",{className:"container py-6",children:i.jsx("div",{className:"grid items-stretch gap-6",children:i.jsx("div",{className:"md:order-1",children:i.jsx("div",{className:"flex flex-col space-y-4",children:i.jsx("div",{className:"h-full",children:i.jsx(N.l0,{...eQ,children:i.jsx("form",{className:"space-y-8",children:(0,i.jsxs)("div",{className:"grid grid-rows-1 grid-flow-col gap-6 lg:grid-cols-2",children:[i.jsx("div",{className:"col",children:i.jsx("div",{className:"flex flex-col space-y-4",children:i.jsx("div",{className:"flex flex-col space-y-2",children:(0,i.jsxs)(v.Zb,{children:[i.jsx(v.Ol,{children:(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[e.image&&i.jsx("div",{className:"w-10 h-10 rounded-full overflow-hidden flex-shrink-0",children:i.jsx("img",{src:e.image,alt:`${e.name} profile`,className:"w-full h-full object-cover"})}),i.jsx(v.ll,{children:"Agent"})]}),(0,i.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,i.jsxs)("span",{children:["ID: ",e.id]}),i.jsx("button",{type:"button",onClick:eY,className:"p-1 hover:bg-muted rounded transition-colors text-muted-foreground",title:"Copy Agent ID",children:i.jsx(A,{})})]})]})}),(0,i.jsxs)(v.aY,{className:"grid gap-4",children:[i.jsx(N.Wi,{control:eQ.control,name:"name",render:({field:e})=>(0,i.jsxs)(N.xJ,{children:[i.jsx(N.lX,{children:"Name"}),i.jsx(N.NI,{children:i.jsx(j.I,{type:"text",className:"resize-none",...e})}),i.jsx(N.zG,{})]})}),(0,i.jsxs)("div",{children:[i.jsx("div",{className:"text-sm font-medium mb-2",children:"Modalities"}),(0,i.jsxs)("p",{className:"text-sm text-muted-foreground mb-2",children:["This agent uses ",i.jsx("b",{children:e.modelName})," from ",i.jsx("b",{children:e.providerName})," and can use the following capabilities:"]}),i.jsx(U.pn,{children:(0,i.jsxs)("div",{className:"flex items-center gap-3 mt-2",children:[i.jsx("div",{className:`p-2 rounded-md ${e.capabilities?.text?"bg-primary text-primary-foreground":"bg-gray-500 text-white"}`,children:i.jsx(O.Z,{className:"h-4 w-4"})}),(0,i.jsxs)(U.u,{children:[i.jsx(U.aJ,{asChild:!0,children:i.jsx("div",{className:`p-2 rounded-md ${e.capabilities?.images?.length?"bg-primary text-primary-foreground":"bg-gray-500 text-white"}`,children:i.jsx(R.Z,{className:"h-4 w-4"})})}),i.jsx(U._v,{children:(0,i.jsxs)("p",{children:["Images: ",e.capabilities?.images?.length?e.capabilities.images.join(", "):"None"]})})]}),(0,i.jsxs)(U.u,{children:[i.jsx(U.aJ,{asChild:!0,children:i.jsx("div",{className:`p-2 rounded-md ${e.capabilities?.files?.length?"bg-primary text-primary-foreground":"bg-gray-500 text-white"}`,children:i.jsx(M.Z,{className:"h-4 w-4"})})}),i.jsx(U._v,{children:(0,i.jsxs)("p",{children:["Files: ",e.capabilities?.files?.length?e.capabilities.files.join(", "):"None"]})})]}),(0,i.jsxs)(U.u,{children:[i.jsx(U.aJ,{asChild:!0,children:i.jsx("div",{className:`p-2 rounded-md ${e.capabilities?.audio?.length?"bg-primary text-primary-foreground":"bg-gray-500 text-white"}`,children:i.jsx(T.Z,{className:"h-4 w-4"})})}),i.jsx(U._v,{children:(0,i.jsxs)("p",{children:["Audio: ",e.capabilities?.audio?.length?e.capabilities.audio.join(", "):"None"]})})]}),(0,i.jsxs)(U.u,{children:[i.jsx(U.aJ,{asChild:!0,children:i.jsx("div",{className:`p-2 rounded-md ${e.capabilities?.video?.length?"bg-primary text-primary-foreground":"bg-gray-500 text-white"}`,children:i.jsx(J.Z,{className:"h-4 w-4"})})}),i.jsx(U._v,{children:(0,i.jsxs)("p",{children:["Video: ",e.capabilities?.video?.length?e.capabilities.video.join(", "):"None"]})})]})]})})]}),i.jsx(N.Wi,{control:eQ.control,name:"category",render:({field:e})=>(e.value||(e.value=""),(0,i.jsxs)(N.xJ,{children:[i.jsx(N.lX,{children:"Category"}),i.jsx(N.NI,{children:(0,i.jsxs)(S.Ph,{onValueChange:s=>{e.onChange(s)},children:[i.jsx(S.i4,{children:i.jsx(S.ki,{className:"capitalize",placeholder:e.value||"Select a category"})}),i.jsx(S.Bw,{children:el.map(e=>i.jsx(S.Ql,{className:"capitalize",value:e,children:e},e))})]})}),i.jsx(N.zG,{})]}))}),i.jsx(N.Wi,{control:eQ.control,name:"description",render:({field:e})=>(e.value||(e.value=""),(0,i.jsxs)(N.xJ,{children:[i.jsx(N.lX,{children:"Description"}),i.jsx(N.NI,{children:i.jsx(C.g,{rows:2,className:"resize-none",...e,value:e.value??""})}),i.jsx(N.zG,{})]}))}),i.jsx(N.Wi,{control:eQ.control,name:"instructions",render:({field:e})=>(e.value||(e.value=""),(0,i.jsxs)(N.xJ,{children:[i.jsx(N.lX,{children:"Instructions"}),i.jsx(N.NI,{children:i.jsx(C.g,{rows:5,className:"resize-none",...e,value:e.value??""})}),i.jsx(N.zG,{})]}))}),(0,i.jsxs)("div",{className:"space-y-2 w-full overflow-x-hidden",children:[(0,i.jsxs)("div",{className:"text-sm",children:[i.jsx("div",{className:"font-medium",children:"Provider API Key"}),i.jsx("div",{className:"text-muted-foreground text-xs",children:"Select a variable containing the API key for the provider"}),e.authenticationInformation&&i.jsx("div",{className:"text-muted-foreground text-xs",children:i.jsx(ei.H,{children:e.authenticationInformation})})]}),(0,i.jsxs)(F.J2,{children:[i.jsx(F.xo,{asChild:!0,children:(0,i.jsxs)(x.z,{variant:"outline",role:"combobox",className:"w-full justify-between text-sm",children:[eM.find(e=>e.name===ef)?.name||"Select variable...",i.jsx(I.Z,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),i.jsx(F.yk,{className:"w-full p-0 z-[9999]",children:(0,i.jsxs)(_.mY,{children:[i.jsx(_.sZ,{placeholder:"Search variables..."}),(0,i.jsxs)(_.e8,{children:[i.jsx(_.rb,{children:"No variables found."}),i.jsx(_.fu,{children:eM.map(e=>(0,i.jsxs)(_.di,{onSelect:()=>{ev(e.name)},children:[i.jsx(D.Z,{className:(0,q.cn)("mr-2 h-4 w-4",ef===e.name?"opacity-100":"opacity-0")}),(0,i.jsxs)("div",{className:"flex flex-col",children:[i.jsx("span",{children:e.name}),e.encrypted&&i.jsx("span",{className:"text-xs text-muted-foreground",children:"\uD83D\uDD12 Encrypted"})]})]},e.id))})]})]})})]})]}),m?.fileUploads?.s3endpoint&&i.jsx(v.Zb,{className:"bg-transparent",children:(0,i.jsxs)(L.zF,{children:[i.jsx(v.Ol,{className:"p-4",children:(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsxs)("div",{className:"flex flex-col",children:[i.jsx("p",{className:"text-base",children:"Custom visualizations"}),i.jsx("p",{className:"text-sm text-muted-foreground mb-0",children:"Upload custom Lottie animations for idle and responding states."})]}),i.jsx(L.wy,{asChild:!0,children:(0,i.jsxs)(x.z,{variant:"ghost",size:"icon",className:"size-8",children:[i.jsx(I.Z,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Toggle"})]})})]})}),i.jsx(L.Fw,{className:"mt-5",children:i.jsx(v.aY,{className:"space-y-4",children:(0,i.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsxs)("div",{children:[i.jsx("div",{className:"text-sm font-medium",children:"Idle Animation"}),i.jsx("div",{className:"text-xs text-muted-foreground",children:"Animation when agent is waiting"})]}),(0,i.jsxs)(K.jF,{s3key:ey,children:[i.jsx(K.ZP,{id:"agent-idle-animation",allowedFileTypes:[".json"],selectionLimit:1,buttonText:"",dependencies:[e.id],onConfirm:e=>{e.length>0&&ew(e[0])}}),ey&&(0,i.jsxs)("div",{className:"mt-2 p-2 border rounded bg-muted/30",children:[i.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:"Preview:"}),i.jsx("div",{className:"w-12 h-12 mx-auto",children:i.jsx(Q.Z,{agent:{...e,animation_idle:ey},status:"ready"})})]})]})]}),(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsxs)("div",{children:[i.jsx("div",{className:"text-sm font-medium",children:"Responding Animation"}),i.jsx("div",{className:"text-xs text-muted-foreground",children:"Animation when agent is responding"})]}),(0,i.jsxs)(K.jF,{s3key:eC,children:[i.jsx(K.ZP,{id:"agent-responding-animation",allowedFileTypes:[".json"],selectionLimit:1,buttonText:"",dependencies:[e.id],onConfirm:e=>{e.length>0&&ez(e[0])}}),eC&&(0,i.jsxs)("div",{className:"mt-2 p-2 border rounded bg-muted/30",children:[i.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:"Preview:"}),i.jsx("div",{className:"w-12 h-12 mx-auto",children:i.jsx(Q.Z,{agent:{...e,animation_responding:eC},status:"streaming"})})]})]})]})]})})})]})}),(0,i.jsxs)(i.Fragment,{children:[i.jsx("div",{className:"text-sm font-medium mb-0",children:" You can test this agent using the Exulu UI without activating the agent if you are a super admin:"}),i.jsx(x.z,{className:"mt-0",onClick:async()=>{console.log("agent",e);let s=await eX({variables:{title:"New session",user:o.id,agent:e.id}});console.log("result",s);let i=s?.data?.agent_sessionsCreateOne?.item?.id;a.push(`/chat/${e.id}/${i}`)},type:"button",variant:"default",children:"Go to chat"})]})]})]})})})}),i.jsx("div",{className:"col",children:(0,i.jsxs)("div",{className:"flex flex-col space-y-4",children:[i.jsx(N.Wi,{control:eQ.control,name:"active",render:({field:e})=>(0,i.jsxs)(N.xJ,{className:"flex flex-row items-center justify-between rounded-lg border p-4",children:[(0,i.jsxs)("div",{className:"space-y-0.5",children:[i.jsx(N.lX,{className:"text-base",children:"Is this agent active?"}),i.jsx(N.pf,{children:"When active this agent will be available via the Exulu UI and API endpoint."})]}),i.jsx(N.NI,{children:i.jsx(y.r,{checked:e.value,onCheckedChange:e.onChange})})]})}),i.jsx(v.Zb,{className:"bg-transparent",children:(0,i.jsxs)(L.zF,{children:[i.jsx(v.Ol,{className:"p-4",children:(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsxs)("div",{className:"flex flex-col",children:[i.jsx("p",{className:"text-base",children:"Access Control"}),i.jsx("p",{className:"text-sm text-muted-foreground mb-0",children:"Control access to this agent."})]}),i.jsx(L.wy,{asChild:!0,children:(0,i.jsxs)(x.z,{variant:"ghost",size:"icon",className:"size-8",children:[i.jsx(I.Z,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Toggle"})]})})]})}),i.jsx(L.Fw,{className:"mt-5",children:i.jsx(v.aY,{className:"space-y-4",children:i.jsx(Y.P,{initialRightsMode:e.rights_mode,initialUsers:e.RBAC?.users,initialRoles:e.RBAC?.roles,onChange:(e,s,a)=>{ek({rights_mode:e,users:s,roles:a})}})})})]})}),i.jsx(v.Zb,{className:"bg-transparent",children:(0,i.jsxs)(L.zF,{children:[i.jsx(v.Ol,{className:"p-4",children:(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsxs)("div",{className:"flex flex-col",children:[i.jsx("p",{className:"text-base",children:"Prompt Templates"}),(0,i.jsxs)("p",{className:"text-sm text-muted-foreground mb-0",children:["Manage prompt templates assigned to this agent (",e$.length,")"]})]}),(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsxs)(x.z,{type:"button",variant:"outline",size:"sm",onClick:()=>eg(!0),children:[i.jsx(P.Z,{className:"h-4 w-4 mr-2"}),"New Prompt"]}),i.jsx(L.wy,{asChild:!0,children:(0,i.jsxs)(x.z,{variant:"ghost",size:"icon",className:"size-8",children:[i.jsx(I.Z,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Toggle"})]})})]})]})}),i.jsx(L.Fw,{className:"mt-5",children:i.jsx(v.aY,{className:"space-y-4",children:eJ?i.jsx("div",{className:"text-sm text-muted-foreground",children:"Loading prompts..."}):0===e$.length?(0,i.jsxs)("div",{className:"text-center py-6 border-2 border-dashed rounded-lg",children:[i.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"No prompts assigned to this agent yet"}),(0,i.jsxs)(x.z,{type:"button",variant:"outline",size:"sm",onClick:()=>eg(!0),children:[i.jsx(P.Z,{className:"h-4 w-4 mr-2"}),"Create First Prompt"]})]}):i.jsx("div",{className:"grid gap-4",children:e$.map(e=>i.jsx(ee.$,{prompt:e,user:o,onUpdate:eP},e.id))})})})]})}),(0,i.jsxs)(v.Zb,{children:[(0,i.jsxs)(v.Ol,{children:[(0,i.jsxs)(v.ll,{className:"flex items-center gap-2",children:["Tools",eD&&i.jsx(p.g,{className:"h-4 w-4"})]}),i.jsx(v.SZ,{children:h.length>0?`${h.length} tool${1===h.length?"":"s"} enabled for this agent`:"No tools enabled for this agent"})]}),i.jsx(v.aY,{children:(0,i.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,i.jsxs)("div",{className:"space-y-3",children:[i.jsx("div",{className:"flex items-center gap-2",children:(0,i.jsxs)("div",{className:"relative flex-1",children:[i.jsx($.Z,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),i.jsx(j.I,{placeholder:"Search tools by name or description...",value:ed,onChange:e=>ec(e.target.value),className:"pl-10 pr-10"}),ed&&i.jsx(x.z,{variant:"ghost",size:"sm",className:"absolute right-1 top-1/2 transform -translate-y-1/2 h-6 w-6 p-0",onClick:()=>ec(""),children:i.jsx(V.Z,{className:"h-3 w-3"})})]})}),(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsxs)(S.Ph,{value:eo,onValueChange:em,children:[i.jsx(S.i4,{className:"w-[200px]",children:i.jsx(S.ki,{placeholder:"Filter by category"})}),(0,i.jsxs)(S.Bw,{children:[i.jsx(S.Ql,{value:"all",children:"All categories"}),eE.map(e=>i.jsx(S.Ql,{value:e,className:"capitalize",children:e},e))]})]}),(ed||"all"!==eo)&&(0,i.jsxs)(x.z,{variant:"outline",onClick:eG,children:[i.jsx(V.Z,{className:"h-4 w-4"}),i.jsx("span",{className:"sr-only",children:"Clear filters"})]}),i.jsx(x.z,{type:"button",variant:"outline",onClick:()=>{eu(new Set)},children:"Expand all"}),i.jsx(x.z,{type:"button",variant:"outline",onClick:()=>{eu(new Set(Object.keys(eB)))},children:"Collapse all"})]}),(0,i.jsxs)("div",{className:"ml-auto text-sm text-muted-foreground",children:[eI?.tools?.total||0," tool",1!==(eI?.tools?.total||0)?"s":"",ex||"all"!==eo?" found":" available","."]})]}),(0,i.jsxs)("div",{className:"space-y-6",children:["all"===eo?Object.entries(eB).map(([e,s])=>{let a=s.filter(e=>h.some(s=>s.id===e.id)).length,l=ej.has(e);return(0,i.jsxs)(L.zF,{open:!l,onOpenChange:()=>eq(e),children:[(0,i.jsxs)("div",{className:"flex items-center justify-between p-3 border rounded-lg bg-muted/30",children:[i.jsx(L.wy,{asChild:!0,children:(0,i.jsxs)(x.z,{variant:"ghost",className:"flex items-center gap-2 p-0 h-auto font-medium",children:[i.jsx(I.Z,{className:"h-4 w-4"}),i.jsx("span",{className:"capitalize",children:e}),(0,i.jsxs)(Z.C,{variant:"secondary",className:"text-xs",children:[a,"/",s.length]})]})}),(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[i.jsx(x.z,{variant:"outline",size:"sm",onClick:()=>{let e=s.filter(e=>!h.some(s=>s.id===e.id)).map(e=>({id:e.id,type:e.type,config:e.config?.map(e=>({name:e.name,variable:""}))||[]}));u([...h,...e])},disabled:a===s.length,children:"Enable All"}),i.jsx(x.z,{variant:"outline",size:"sm",onClick:()=>{let e=s.map(e=>e.id);u(h.filter(s=>!e.includes(s.id)))},disabled:0===a,children:"Disable All"})]})]}),i.jsx(L.Fw,{className:"mt-2",children:i.jsx("div",{className:"space-y-2 pl-4",children:s.map(e=>{let s=h.some(s=>s.id===e.id),a=h.find(s=>s.id===e.id),l=e.config?.length||0,n=a?.config?.filter(e=>e.variable&&""!==e.variable.trim()).length||0,t=s&&l>0&&n<l;return i.jsx("div",{className:"rounded-lg border p-4",children:(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsxs)("div",{className:"flex items-center flex-1",children:[(0,i.jsxs)("div",{className:"flex-1",children:[(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[i.jsx("div",{className:"font-medium",children:e?.name}),(0,i.jsxs)("div",{className:"flex items-center gap-1",children:[l>0&&s&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(Z.C,{variant:"secondary",className:"text-xs",children:[n,"/",l]}),t&&i.jsx(B.Z,{className:"h-4 w-4 text-destructive"})]}),i.jsx(Z.C,{variant:"outline",children:e?.category})]})]}),i.jsx("div",{className:"text-sm text-muted-foreground mt-1 line-clamp-2",children:e?.description})]}),(0,i.jsxs)(W.yo,{open:H===e.id,onOpenChange:()=>{H===e.id?er(!1):er(e.id)},children:[l>0&&!s?i.jsx(W.aM,{asChild:!0,children:i.jsx(x.z,{variant:"ghost",size:"sm",children:i.jsx(E.Z,{className:"h-4 w-4"})})}):i.jsx(x.z,{type:"button",disabled:!0,variant:"ghost",size:"sm",children:i.jsx(E.Z,{className:"h-4 w-4"})}),i.jsx(W.aM,{asChild:!0,children:i.jsx(x.z,{className:"mr-2",variant:"ghost",size:"sm",children:i.jsx(G.Z,{className:"h-4 w-4"})})}),(0,i.jsxs)(W.ue,{className:"w-[400px] sm:w-[540px]",children:[(0,i.jsxs)(W.Tu,{children:[i.jsx(W.bC,{children:e?.name}),i.jsx(W.Ei,{children:e?.description})]}),i.jsx("div",{className:"py-6",children:i.jsx("div",{className:"space-y-4",children:e.config&&e.config.length>0&&(0,i.jsxs)("div",{className:"space-y-4",children:[i.jsx("div",{className:"text-md font-medium",children:"Configuration variables:"}),e.config.map((l,n)=>{let t=a?.config.find(e=>e.name===l.name)?.variable||"";return i.jsx("div",{className:"space-y-2",children:s?i.jsx(en,{configItem:l,currentValue:t,variables:eM,onVariableSelect:s=>{let a=h.map(a=>a.id===e.id?{...a,config:a.config.map(e=>e.name===l.name?{...e,variable:s}:e)}:a);console.log("updated",a),u(a)}}):i.jsx("div",{className:"text-xs text-muted-foreground p-2 bg-muted rounded",children:"Enable this tool to configure"})},n)})]})})})]})]})]}),i.jsx(y.r,{checked:s,onCheckedChange:s=>{let a=[...h];s?(a=[...h,{id:e.id,type:e.type,config:e.config?.map(e=>({name:e.name,variable:""}))||[]}],e.config?.length>0&&er(e.id)):a=h.filter(s=>s.id!==e.id),u(a)}})]})},e?.id)})})})]},e)}):i.jsx("div",{className:"space-y-2",children:eV.map(e=>{let s=h.some(s=>s.id===e.id),a=h.find(s=>s.id===e.id),l=e.config?.length||0,n=a?.config?.filter(e=>e.variable&&""!==e.variable.trim()).length||0,t=s&&l>0&&n<l;return i.jsx("div",{className:"rounded-lg border p-4",children:(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsxs)("div",{className:"flex items-center flex-1",children:[(0,i.jsxs)("div",{className:"flex-1",children:[(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[i.jsx("div",{className:"font-medium",children:e?.name}),(0,i.jsxs)("div",{className:"flex items-center gap-1",children:[l>0&&s&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(Z.C,{variant:"secondary",className:"text-xs",children:[n,"/",l]}),t&&i.jsx(B.Z,{className:"h-4 w-4 text-destructive"})]}),i.jsx(Z.C,{variant:"outline",children:e?.category})]})]}),i.jsx("div",{className:"text-sm text-muted-foreground mt-1 line-clamp-2",children:e?.description})]}),(0,i.jsxs)(W.yo,{open:H===e.id,onOpenChange:()=>{H===e.id?er(!1):er(e.id)},children:[l>0&&!s?i.jsx(W.aM,{asChild:!0,children:i.jsx(x.z,{variant:"ghost",size:"sm",children:i.jsx(E.Z,{className:"h-4 w-4"})})}):i.jsx(x.z,{type:"button",disabled:!0,variant:"ghost",size:"sm",children:i.jsx(E.Z,{className:"h-4 w-4"})}),i.jsx(W.aM,{asChild:!0,children:i.jsx(x.z,{className:"mr-2",variant:"ghost",size:"sm",children:i.jsx(G.Z,{className:"h-4 w-4"})})}),(0,i.jsxs)(W.ue,{className:"w-[400px] sm:w-[540px]",children:[(0,i.jsxs)(W.Tu,{children:[i.jsx(W.bC,{children:e?.name}),i.jsx(W.Ei,{children:e?.description})]}),i.jsx("div",{className:"py-6",children:i.jsx("div",{className:"space-y-4",children:e.config&&e.config.length>0&&(0,i.jsxs)("div",{className:"space-y-4",children:[i.jsx("div",{className:"text-md font-medium",children:"Configuration variables:"}),e.config.map((l,n)=>{let t=a?.config.find(e=>e.name===l.name)?.variable||"";return i.jsx("div",{className:"space-y-2",children:s?i.jsx(en,{configItem:l,currentValue:t,variables:eM,onVariableSelect:s=>{let a=h.map(a=>a.id===e.id?{...a,config:a.config.map(e=>e.name===l.name?{...e,variable:s}:e)}:a);console.log("updated",a),u(a)}}):i.jsx("div",{className:"text-xs text-muted-foreground p-2 bg-muted rounded",children:"Enable this tool to configure"})},n)})]})})})]})]})]}),i.jsx(y.r,{checked:s,onCheckedChange:s=>{let a=[...h];s?(a=[...h,{id:e.id,type:e.type,config:e.config?.map(e=>({name:e.name,variable:""}))||[]}],e.config?.length>0&&er(e.id)):a=h.filter(s=>s.id!==e.id),u(a)}})]})},e?.id)})}),0===eV.length&&(ed||"all"!==eo)&&(0,i.jsxs)("div",{className:"text-center py-8",children:[i.jsx("div",{className:"text-muted-foreground",children:"No tools found matching your criteria."}),i.jsx(x.z,{variant:"outline",size:"sm",className:"mt-2",onClick:eG,children:"Clear filters"})]})]})]})})]})]})})]})})})})})})})})}),i.jsx(es.D,{open:ep,onOpenChange:eg,onSuccess:eP,user:o,defaultAssignedAgents:[e.id]})]})}},18615:(e,s,a)=>{a.d(s,{J:()=>g});var i=a(10326);a(17577);var l=a(62288),n=a(34789),t=a(36931),r=a(90772),d=a(68232),c=a(77863);let o=({className:e,...s})=>i.jsx("div",{className:(0,c.cn)("flex flex-col overflow-hidden rounded-lg border bg-background shadow-sm",e),...s}),m=({className:e,...s})=>i.jsx("div",{className:(0,c.cn)("flex items-center justify-between border-b bg-muted/50 px-4 py-3",e),...s}),x=({className:e,...s})=>i.jsx("div",{className:(0,c.cn)("flex items-center gap-1",e),...s}),h=({tooltip:e,label:s,icon:a,children:l,className:n,size:t="sm",variant:o="ghost",...m})=>{let x=(0,i.jsxs)(r.z,{className:(0,c.cn)("size-8 p-0 text-muted-foreground hover:text-foreground",n),size:t,type:"button",variant:o,...m,children:[a?i.jsx(a,{className:"size-4"}):l,i.jsx("span",{className:"sr-only",children:s||e})]});return e?i.jsx(d.pn,{children:(0,i.jsxs)(d.u,{children:[i.jsx(d.aJ,{asChild:!0,children:x}),i.jsx(d._v,{children:i.jsx("p",{children:e})})]})}):x},j=({className:e,...s})=>i.jsx("div",{className:(0,c.cn)("flex-1 overflow-auto p-4",e),...s});var u=a(18019),p=a(43810);function g({text:e,sliceLength:s}){let{toast:a}=(0,n.pm)();return(0,i.jsxs)(l.Vq,{children:[i.jsx(l.hg,{asChild:!0,children:(0,i.jsxs)("button",{className:"cursor-pointer text-sm text-left w-full hover:bg-accent/50 transition-colors rounded-md p-2 group",children:[(0,i.jsxs)("span",{className:"block",children:[e?.slice(0,s??200),s&&e.length>s?"...":""]}),(0,i.jsxs)("span",{className:"flex items-center gap-1 text-xs text-muted-foreground mt-1 group-hover:text-foreground transition-colors",children:[i.jsx(u.Z,{className:"w-3 h-3"}),"Click to view full text"]})]})}),i.jsx(l.cZ,{className:"sm:max-w-[800px] max-h-[500px] overflow-y-scroll",children:(0,i.jsxs)(o,{children:[i.jsx(m,{children:i.jsx(x,{children:i.jsx(h,{icon:p.Z,label:"Copy",tooltip:"Copy to clipboard",onClick:async()=>{await navigator.clipboard.writeText(e),a({title:"Copied to clipboard"})}})})}),i.jsx(j,{children:i.jsx(t.H,{children:e})})]})})]})}},14331:(e,s,a)=>{a.d(s,{Z:()=>d});var i=a(10326),l=a(19245),n=a(20108),t=a(77961);let r=({agent:e,status:s,className:a})=>{let{data:r}=(0,n.a)({queryKey:["defaultAnimation","idle"],queryFn:async()=>(await fetch("/agent-idle.json")).json(),staleTime:36e5,enabled:!e.animation_idle}),{data:d}=(0,n.a)({queryKey:["defaultAnimation","responding"],queryFn:async()=>(await fetch("/agent-responding.json")).json(),staleTime:36e5,enabled:!e.animation_responding}),{data:c}=(0,n.a)({queryKey:["customAnimation",e.animation_idle],queryFn:async()=>{if(!e.animation_idle)return null;let s=await (0,t.NF)(e.animation_idle);return(await fetch(s)).json()},enabled:!!e.animation_idle,staleTime:3e5}),{data:o}=(0,n.a)({queryKey:["customAnimation",e.animation_responding],queryFn:async()=>{if(!e.animation_responding)return null;let s=await (0,t.NF)(e.animation_responding);return(await fetch(s)).json()},enabled:!!e.animation_responding,staleTime:3e5}),{View:m}=(0,l.kJ)((()=>{switch(s){case"submitted":case"ready":case"error":default:return{animationData:c||r,loop:!0,autoplay:!0};case"streaming":return{animationData:o||d,loop:!0,autoplay:!0}}})());return i.jsx(i.Fragment,{children:i.jsx("div",{className:"",children:i.jsx("div",{className:a,children:m})})})},d=({agent:e,status:s,className:a})=>i.jsx(r,{className:a,agent:e,status:s})},55632:(e,s,a)=>{a.d(s,{NI:()=>p,Wi:()=>m,l0:()=>c,lX:()=>u,pf:()=>g,xJ:()=>j,zG:()=>f});var i=a(10326),l=a(34214),n=a(17577),t=a(74723),r=a(31048),d=a(77863);let c=t.RV,o=n.createContext({}),m=({...e})=>i.jsx(o.Provider,{value:{name:e.name},children:i.jsx(t.Qr,{...e})}),x=()=>{let e=n.useContext(o),s=n.useContext(h),{getFieldState:a,formState:i}=(0,t.Gc)(),l=a(e.name,i);if(!e)throw Error("useFormField should be used within <FormField>");let{id:r}=s;return{id:r,name:e.name,formItemId:`${r}-form-item`,formDescriptionId:`${r}-form-item-description`,formMessageId:`${r}-form-item-message`,...l}},h=n.createContext({}),j=n.forwardRef(({className:e,...s},a)=>{let l=n.useId();return i.jsx(h.Provider,{value:{id:l},children:i.jsx("div",{ref:a,className:(0,d.cn)("space-y-2",e),...s})})});j.displayName="FormItem";let u=n.forwardRef(({className:e,...s},a)=>{let{error:l,formItemId:n}=x();return i.jsx(r._,{ref:a,className:(0,d.cn)(l&&"text-destructive",e),htmlFor:n,...s})});u.displayName="FormLabel";let p=n.forwardRef(({...e},s)=>{let{error:a,formItemId:n,formDescriptionId:t,formMessageId:r}=x();return i.jsx(l.g7,{ref:s,id:n,"aria-describedby":a?`${t} ${r}`:`${t}`,"aria-invalid":!!a,...e})});p.displayName="FormControl";let g=n.forwardRef(({className:e,...s},a)=>{let{formDescriptionId:l}=x();return i.jsx("p",{ref:a,id:l,className:(0,d.cn)("text-sm text-muted-foreground",e),...s})});g.displayName="FormDescription";let f=n.forwardRef(({className:e,children:s,...a},l)=>{let{error:n,formMessageId:t}=x(),r=n?String(n?.message):s;return r?i.jsx("p",{ref:l,id:t,className:(0,d.cn)("text-sm font-medium text-destructive",e),...a,children:r}):null});f.displayName="FormMessage"},37859:(e,s,a)=>{a.d(s,{g:()=>n});var i=a(10326),l=a(77863);let n=({className:e})=>(0,i.jsxs)("svg",{"aria-hidden":"true",role:"status",className:(0,l.cn)("inline w-4 h-4 text-white animate-spin fill-inherit",e),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",className:"fill-inherit opacity-20"}),i.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",className:"fill-inherit"})]})},33261:(e,s,a)=>{a.d(s,{r:()=>r});var i=a(10326),l=a(41959),n=a(17577),t=a(77863);let r=n.forwardRef(({className:e,...s},a)=>i.jsx(l.fC,{className:(0,t.cn)("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...s,ref:a,children:i.jsx(l.bU,{className:(0,t.cn)("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));r.displayName=l.fC.displayName}};
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"wasm": [],
|
|
18
18
|
"assets": [],
|
|
19
19
|
"env": {
|
|
20
|
-
"__NEXT_BUILD_ID": "
|
|
21
|
-
"NEXT_SERVER_ACTIONS_ENCRYPTION_KEY": "+
|
|
22
|
-
"__NEXT_PREVIEW_MODE_ID": "
|
|
23
|
-
"__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "
|
|
24
|
-
"__NEXT_PREVIEW_MODE_SIGNING_KEY": "
|
|
20
|
+
"__NEXT_BUILD_ID": "exslB-IPXi_veOKFA4L1Z",
|
|
21
|
+
"NEXT_SERVER_ACTIONS_ENCRYPTION_KEY": "svDUL1d3NmRq8tHVhMxzZOa9neMUEZ5r+dhT+A+dENw=",
|
|
22
|
+
"__NEXT_PREVIEW_MODE_ID": "0089ea415c434e1bec8381417ca2ef79",
|
|
23
|
+
"__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "cf6ed18b36e62ca3ce097acd1c1a9766014552c17272c27358419948f5045b5e",
|
|
24
|
+
"__NEXT_PREVIEW_MODE_SIGNING_KEY": "543d9f907199e8756ee2ba111045b044146d184c813246675f8b601fd2b7737e"
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-480cfeb2c2aa3f7e.js"/><script src="/_next/static/chunks/fd9d1056-f20120f69c10766e.js" async=""></script><script src="/_next/static/chunks/2117-7e0e97ffa5867cf9.js" async=""></script><script src="/_next/static/chunks/main-app-da1df2757744a2ea.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><meta name="next-size-adjust"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><script src="/_next/static/chunks/webpack-480cfeb2c2aa3f7e.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:I[12846,[],\"\"]\n3:I[4707,[],\"\"]\n4:I[36423,[],\"\"]\na:I[61060,[],\"\"]\n5:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\n6:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n7:{\"display\":\"inline-block\"}\n8:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nb:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L1\",null,{\"buildId\":\"
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-480cfeb2c2aa3f7e.js"/><script src="/_next/static/chunks/fd9d1056-f20120f69c10766e.js" async=""></script><script src="/_next/static/chunks/2117-7e0e97ffa5867cf9.js" async=""></script><script src="/_next/static/chunks/main-app-da1df2757744a2ea.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><meta name="next-size-adjust"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><script src="/_next/static/chunks/webpack-480cfeb2c2aa3f7e.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:I[12846,[],\"\"]\n3:I[4707,[],\"\"]\n4:I[36423,[],\"\"]\na:I[61060,[],\"\"]\n5:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\n6:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n7:{\"display\":\"inline-block\"}\n8:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nb:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L1\",null,{\"buildId\":\"exslB-IPXi_veOKFA4L1Z\",\"assetPrefix\":\"\",\"urlParts\":[\"\",\"_not-found\"],\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$L2\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null],null],null]},[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[null,[\"$\",\"html\",null,{\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$5\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$6\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$7\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$8\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}]}]}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],\"$L9\"],\"globalErrorComponent\":\"$a\",\"missingSlots\":\"$Wb\"}]\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"2\",{\"name\":\"next-size-adjust\"}]]\n2:null\n"])</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>500: Internal Server Error</title><meta name="next-head-count" content="3"/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-480cfeb2c2aa3f7e.js" defer=""></script><script src="/_next/static/chunks/framework-9317b1ce0f036b87.js" defer=""></script><script src="/_next/static/chunks/main-bf608235d4e99320.js" defer=""></script><script src="/_next/static/chunks/pages/_app-9f5760457b3fbb4c.js" defer=""></script><script src="/_next/static/chunks/pages/_error-daa80f5b4d0fe27d.js" defer=""></script><script src="/_next/static/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>500: Internal Server Error</title><meta name="next-head-count" content="3"/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-480cfeb2c2aa3f7e.js" defer=""></script><script src="/_next/static/chunks/framework-9317b1ce0f036b87.js" defer=""></script><script src="/_next/static/chunks/main-bf608235d4e99320.js" defer=""></script><script src="/_next/static/chunks/pages/_app-9f5760457b3fbb4c.js" defer=""></script><script src="/_next/static/chunks/pages/_error-daa80f5b4d0fe27d.js" defer=""></script><script src="/_next/static/exslB-IPXi_veOKFA4L1Z/_buildManifest.js" defer=""></script><script src="/_next/static/exslB-IPXi_veOKFA4L1Z/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"exslB-IPXi_veOKFA4L1Z","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"node":{},"edge":{},"encryptionKey":"+
|
|
1
|
+
{"node":{},"edge":{},"encryptionKey":"svDUL1d3NmRq8tHVhMxzZOa9neMUEZ5r+dhT+A+dENw="}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1707],{63639:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(39763).Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},40875:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(39763).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},78867:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(39763).Z)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},87769:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(39763).Z)("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]])},42208:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(39763).Z)("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},99397:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(39763).Z)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},73247:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(39763).Z)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},18930:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(39763).Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},12199:function(e,t,n){n.d(t,{D:function(){return s}});var r=n(5853),u=n(79285),o=n(49466),i=n(36628),a=n(59058),c=n(77828),l=n(63251),d=n(59394).Nq?u.useLayoutEffect:u.useEffect;function s(e,t){var n=(0,l.x)(null==t?void 0:t.client);(0,a.Vp)(e,a.n_.Mutation);var s=u.useState({called:!1,loading:!1,client:n}),f=s[0],p=s[1],v=u.useRef({result:f,mutationId:0,isMounted:!0,client:n,mutation:e,options:t});d(function(){Object.assign(v.current,{client:n,options:t,mutation:e})});var h=u.useCallback(function(e){void 0===e&&(e={});var t=v.current,n=t.options,u=t.mutation,a=(0,r.pi)((0,r.pi)({},n),{mutation:u}),l=e.client||v.current.client;v.current.result.loading||a.ignoreResults||!v.current.isMounted||p(v.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:l});var d=++v.current.mutationId,s=(0,o.J)(a,e);return l.mutate(s).then(function(t){var n,r,u=t.data,o=t.errors,a=o&&o.length>0?new c.cA({graphQLErrors:o}):void 0,f=e.onError||(null===(n=v.current.options)||void 0===n?void 0:n.onError);if(a&&f&&f(a,s),d===v.current.mutationId&&!s.ignoreResults){var h={called:!0,loading:!1,data:u,error:a,client:l};v.current.isMounted&&!(0,i.D)(v.current.result,h)&&p(v.current.result=h)}var y=e.onCompleted||(null===(r=v.current.options)||void 0===r?void 0:r.onCompleted);return a||null==y||y(t.data,s),t},function(t){if(d===v.current.mutationId&&v.current.isMounted){var n,r={loading:!1,error:t,data:void 0,called:!0,client:l};(0,i.D)(v.current.result,r)||p(v.current.result=r)}var u=e.onError||(null===(n=v.current.options)||void 0===n?void 0:n.onError);if(u)return u(t,s),{data:void 0,errors:t};throw t})},[]),y=u.useCallback(function(){if(v.current.isMounted){var e={called:!1,loading:!1,client:v.current.client};Object.assign(v.current,{mutationId:0,result:e}),p(e)}},[]);return u.useEffect(function(){var e=v.current;return e.isMounted=!0,function(){e.isMounted=!1}},[]),[h,(0,r.pi)({reset:y},f)]}},9270:function(e,t,n){n.d(t,{fC:function(){return M},z$:function(){return E}});var r=n(2265),u=n(98575),o=n(73966),i=n(6741),a=n(80886),c=n(6718),l=n(90420),d=n(71599),s=n(66840),f=n(57437),p="Checkbox",[v,h]=(0,o.b)(p),[y,k]=v(p);function m(e){let{__scopeCheckbox:t,checked:n,children:u,defaultChecked:o,disabled:i,form:c,name:l,onCheckedChange:d,required:s,value:v="on",internal_do_not_use_render:h}=e,[k,m]=(0,a.T)({prop:n,defaultProp:null!=o&&o,onChange:d,caller:p}),[x,b]=r.useState(null),[M,g]=r.useState(null),E=r.useRef(!1),j=!x||!!c||!!x.closest("form"),w={checked:k,disabled:i,setChecked:m,control:x,setControl:b,name:l,form:c,value:v,hasConsumerStoppedPropagationRef:E,required:s,defaultChecked:!Z(o)&&o,isFormControl:j,bubbleInput:M,setBubbleInput:g};return(0,f.jsx)(y,{scope:t,...w,children:"function"==typeof h?h(w):u})}var x="CheckboxTrigger",b=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,onKeyDown:o,onClick:a,...c}=e,{control:l,value:d,disabled:p,checked:v,required:h,setControl:y,setChecked:m,hasConsumerStoppedPropagationRef:b,isFormControl:M,bubbleInput:g}=k(x,n),E=(0,u.e)(t,y),j=r.useRef(v);return r.useEffect(()=>{let e=null==l?void 0:l.form;if(e){let t=()=>m(j.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[l,m]),(0,f.jsx)(s.WV.button,{type:"button",role:"checkbox","aria-checked":Z(v)?"mixed":v,"aria-required":h,"data-state":C(v),"data-disabled":p?"":void 0,disabled:p,value:d,...c,ref:E,onKeyDown:(0,i.M)(o,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,i.M)(a,e=>{m(e=>!!Z(e)||!e),g&&M&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})})});b.displayName=x;var M=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:u,defaultChecked:o,required:i,disabled:a,value:c,onCheckedChange:l,form:d,...s}=e;return(0,f.jsx)(m,{__scopeCheckbox:n,checked:u,defaultChecked:o,disabled:a,required:i,onCheckedChange:l,name:r,form:d,value:c,internal_do_not_use_render:e=>{let{isFormControl:r}=e;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(b,{...s,ref:t,__scopeCheckbox:n}),r&&(0,f.jsx)(w,{__scopeCheckbox:n})]})}})});M.displayName=p;var g="CheckboxIndicator",E=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...u}=e,o=k(g,n);return(0,f.jsx)(d.z,{present:r||Z(o.checked)||!0===o.checked,children:(0,f.jsx)(s.WV.span,{"data-state":C(o.checked),"data-disabled":o.disabled?"":void 0,...u,ref:t,style:{pointerEvents:"none",...e.style}})})});E.displayName=g;var j="CheckboxBubbleInput",w=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,...o}=e,{control:i,hasConsumerStoppedPropagationRef:a,checked:d,defaultChecked:p,required:v,disabled:h,name:y,value:m,form:x,bubbleInput:b,setBubbleInput:M}=k(j,n),g=(0,u.e)(t,M),E=(0,c.D)(d),w=(0,l.t)(i);r.useEffect(()=>{if(!b)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!a.current;if(E!==d&&e){let n=new Event("click",{bubbles:t});b.indeterminate=Z(d),e.call(b,!Z(d)&&d),b.dispatchEvent(n)}},[b,E,d,a]);let C=r.useRef(!Z(d)&&d);return(0,f.jsx)(s.WV.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=p?p:C.current,required:v,disabled:h,name:y,value:m,form:x,...o,tabIndex:-1,ref:g,style:{...o.style,...w,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function Z(e){return"indeterminate"===e}function C(e){return Z(e)?"indeterminate":e?"checked":"unchecked"}w.displayName=j},6394:function(e,t,n){n.d(t,{f:function(){return a}});var r=n(2265),u=n(66840),o=n(57437),i=r.forwardRef((e,t)=>(0,o.jsx)(u.WV.label,{...e,ref:t,onMouseDown:t=>{var n;t.target.closest("button, input, select, textarea")||(null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));i.displayName="Label";var a=i},6718:function(e,t,n){n.d(t,{D:function(){return u}});var r=n(2265);function u(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}}}]);
|
|
2
|
+
//# sourceMappingURL=1707-06e693c4a709c147.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/chunks/1707-06e693c4a709c147.js","mappings":"mIAaM,IAAAA,EAAgBC,CAAAA,EAAAA,SAAAA,CAAAA,EAAiB,gBAAiB,CACtD,CACE,OACA,CACEC,EAAG,4EACHC,IAAK,Q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A,CAAQ,qCAEb,OAAN1B,CAAAA,EAAAA,EAAM6F,WAAA,GAAN7F,KAAAA,IAAAA,GAAAA,EAAAA,IAAAA,CAAAA,EAAoBkD,GAEhB,CAACA,EAAM6C,gBAAA,EAAoB7C,EAAM8C,MAAA,CAAS,GAAG9C,EAAMC,cAAA,GACzD,IAKNwC,CAAAA,EAAMpC,WAAA,CAxBO,QA4Bb,IAAM0C,EAAON,sECjCb,SAAArB,EAAA3D,CAAA,EACA,IAAAtD,EAAc6I,EAAA5I,MAAY,EAAGqD,MAAAA,EAAAwF,SAAAxF,CAAA,GAC7B,OAASuF,EAAAE,OAAa,MACtB/I,EAAAM,OAAA,CAAAgD,KAAA,GAAAA,IACAtD,EAAAM,OAAA,CAAAwI,QAAA,CAAA9I,EAAAM,OAAA,CAAAgD,KAAA,CACAtD,EAAAM,OAAA,CAAAgD,KAAA,CAAAA,GAEAtD,EAAAM,OAAA,CAAAwI,QAAA,EACG,CAAAxF,EAAA,CACH","sources":["webpack://_N_E/../../../src/icons/alert-triangle.ts","webpack://_N_E/../../../src/icons/chevron-down.ts","webpack://_N_E/../../../src/icons/copy.ts","webpack://_N_E/../../../src/icons/eye-off.ts","webpack://_N_E/../../../src/icons/eye.ts","webpack://_N_E/../../../src/icons/plus.ts","webpack://_N_E/../../../src/icons/search.ts","webpack://_N_E/../../../src/icons/trash-2.ts","webpack://_N_E/./node_modules/@apollo/client/react/hooks/internal/useIsomorphicLayoutEffect.js","webpack://_N_E/./node_modules/@apollo/client/react/hooks/useMutation.js","webpack://_N_E/../src/checkbox.tsx","webpack://_N_E/../src/label.tsx","webpack://_N_E/./node_modules/@radix-ui/react-use-previous/dist/index.mjs"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name AlertTriangle\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/alert-triangle\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst AlertTriangle = createLucideIcon('AlertTriangle', [\n [\n 'path',\n {\n d: 'm21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z',\n key: 'c3ski4',\n },\n ],\n ['path', { d: 'M12 9v4', key: 'juzpu7' }],\n ['path', { d: 'M12 17h.01', key: 'p32p05' }],\n]);\n\nexport default AlertTriangle;\n","import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name ChevronDown\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/chevron-down\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst ChevronDown = createLucideIcon('ChevronDown', [\n ['path', { d: 'm6 9 6 6 6-6', key: 'qrunsl' }],\n]);\n\nexport default ChevronDown;\n","import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Copy\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/copy\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Copy = createLucideIcon('Copy', [\n ['rect', { width: '14', height: '14', x: '8', y: '8', rx: '2', ry: '2', key: '17jyea' }],\n ['path', { d: 'M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2', key: 'zix9uf' }],\n]);\n\nexport default Copy;\n","import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name EyeOff\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/eye-off\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst EyeOff = createLucideIcon('EyeOff', [\n ['path', { d: 'M9.88 9.88a3 3 0 1 0 4.24 4.24', key: '1jxqfv' }],\n [\n 'path',\n {\n d: 'M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68',\n key: '9wicm4',\n },\n ],\n [\n 'path',\n { d: 'M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61', key: '1jreej' },\n ],\n ['line', { x1: '2', x2: '22', y1: '2', y2: '22', key: 'a6p6uj' }],\n]);\n\nexport default EyeOff;\n","import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Eye\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/eye\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Eye = createLucideIcon('Eye', [\n ['path', { d: 'M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z', key: 'rwhkz3' }],\n ['circle', { cx: '12', cy: '12', r: '3', key: '1v7zrd' }],\n]);\n\nexport default Eye;\n","import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Plus\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/plus\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Plus = createLucideIcon('Plus', [\n ['path', { d: 'M5 12h14', key: '1ays0h' }],\n ['path', { d: 'M12 5v14', key: 's699le' }],\n]);\n\nexport default Plus;\n","import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Search\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/search\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Search = createLucideIcon('Search', [\n ['circle', { cx: '11', cy: '11', r: '8', key: '4ej97u' }],\n ['path', { d: 'm21 21-4.3-4.3', key: '1qie3q' }],\n]);\n\nexport default Search;\n","import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Trash2\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/trash-2\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Trash2 = createLucideIcon('Trash2', [\n ['path', { d: 'M3 6h18', key: 'd0wm0j' }],\n ['path', { d: 'M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6', key: '4alrt4' }],\n ['path', { d: 'M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2', key: 'v07s0e' }],\n ['line', { x1: '10', x2: '10', y1: '11', y2: '17', key: '1uufr5' }],\n ['line', { x1: '14', x2: '14', y1: '11', y2: '17', key: 'xtxkd' }],\n]);\n\nexport default Trash2;\n","import * as React from \"rehackt\";\nimport { canUseDOM } from \"../../../utilities/index.js\";\n// use canUseDOM here instead of canUseLayoutEffect because we want to be able\n// to use useLayoutEffect in our jest tests. useLayoutEffect seems to work fine\n// in useSuspenseQuery tests, but to honor the original comment about the\n// warnings for useSyncExternalStore implementation, canUseLayoutEffect is left\n// alone.\nexport var useIsomorphicLayoutEffect = canUseDOM ? React.useLayoutEffect : React.useEffect;\n//# sourceMappingURL=useIsomorphicLayoutEffect.js.map","import { __assign } from \"tslib\";\nimport * as React from \"rehackt\";\nimport { mergeOptions } from \"../../utilities/index.js\";\nimport { equal } from \"@wry/equality\";\nimport { DocumentType, verifyDocumentType } from \"../parser/index.js\";\nimport { ApolloError } from \"../../errors/index.js\";\nimport { useApolloClient } from \"./useApolloClient.js\";\nimport { useIsomorphicLayoutEffect } from \"./internal/useIsomorphicLayoutEffect.js\";\n/**\n *\n *\n * > Refer to the [Mutations](https://www.apollographql.com/docs/react/data/mutations/) section for a more in-depth overview of `useMutation`.\n *\n * @example\n * ```jsx\n * import { gql, useMutation } from '@apollo/client';\n *\n * const ADD_TODO = gql`\n * mutation AddTodo($type: String!) {\n * addTodo(type: $type) {\n * id\n * type\n * }\n * }\n * `;\n *\n * function AddTodo() {\n * let input;\n * const [addTodo, { data }] = useMutation(ADD_TODO);\n *\n * return (\n * <div>\n * <form\n * onSubmit={e => {\n * e.preventDefault();\n * addTodo({ variables: { type: input.value } });\n * input.value = '';\n * }}\n * >\n * <input\n * ref={node => {\n * input = node;\n * }}\n * />\n * <button type=\"submit\">Add Todo</button>\n * </form>\n * </div>\n * );\n * }\n * ```\n * @since 3.0.0\n * @param mutation - A GraphQL mutation document parsed into an AST by `gql`.\n * @param options - Options to control how the mutation is executed.\n * @returns A tuple in the form of `[mutate, result]`\n */\nexport function useMutation(mutation, options) {\n var client = useApolloClient(options === null || options === void 0 ? void 0 : options.client);\n verifyDocumentType(mutation, DocumentType.Mutation);\n var _a = React.useState({\n called: false,\n loading: false,\n client: client,\n }), result = _a[0], setResult = _a[1];\n var ref = React.useRef({\n result: result,\n mutationId: 0,\n isMounted: true,\n client: client,\n mutation: mutation,\n options: options,\n });\n useIsomorphicLayoutEffect(function () {\n Object.assign(ref.current, { client: client, options: options, mutation: mutation });\n });\n var execute = React.useCallback(function (executeOptions) {\n if (executeOptions === void 0) { executeOptions = {}; }\n var _a = ref.current, options = _a.options, mutation = _a.mutation;\n var baseOptions = __assign(__assign({}, options), { mutation: mutation });\n var client = executeOptions.client || ref.current.client;\n if (!ref.current.result.loading &&\n !baseOptions.ignoreResults &&\n ref.current.isMounted) {\n setResult((ref.current.result = {\n loading: true,\n error: void 0,\n data: void 0,\n called: true,\n client: client,\n }));\n }\n var mutationId = ++ref.current.mutationId;\n var clientOptions = mergeOptions(baseOptions, executeOptions);\n return client\n .mutate(clientOptions)\n .then(function (response) {\n var _a, _b;\n var data = response.data, errors = response.errors;\n var error = errors && errors.length > 0 ?\n new ApolloError({ graphQLErrors: errors })\n : void 0;\n var onError = executeOptions.onError || ((_a = ref.current.options) === null || _a === void 0 ? void 0 : _a.onError);\n if (error && onError) {\n onError(error, clientOptions);\n }\n if (mutationId === ref.current.mutationId &&\n !clientOptions.ignoreResults) {\n var result_1 = {\n called: true,\n loading: false,\n data: data,\n error: error,\n client: client,\n };\n if (ref.current.isMounted && !equal(ref.current.result, result_1)) {\n setResult((ref.current.result = result_1));\n }\n }\n var onCompleted = executeOptions.onCompleted || ((_b = ref.current.options) === null || _b === void 0 ? void 0 : _b.onCompleted);\n if (!error) {\n onCompleted === null || onCompleted === void 0 ? void 0 : onCompleted(response.data, clientOptions);\n }\n return response;\n }, function (error) {\n var _a;\n if (mutationId === ref.current.mutationId &&\n ref.current.isMounted) {\n var result_2 = {\n loading: false,\n error: error,\n data: void 0,\n called: true,\n client: client,\n };\n if (!equal(ref.current.result, result_2)) {\n setResult((ref.current.result = result_2));\n }\n }\n var onError = executeOptions.onError || ((_a = ref.current.options) === null || _a === void 0 ? void 0 : _a.onError);\n if (onError) {\n onError(error, clientOptions);\n // TODO(brian): why are we returning this here???\n return { data: void 0, errors: error };\n }\n throw error;\n });\n }, []);\n var reset = React.useCallback(function () {\n if (ref.current.isMounted) {\n var result_3 = {\n called: false,\n loading: false,\n client: ref.current.client,\n };\n Object.assign(ref.current, { mutationId: 0, result: result_3 });\n setResult(result_3);\n }\n }, []);\n React.useEffect(function () {\n var current = ref.current;\n // eslint-disable-next-line react-compiler/react-compiler\n current.isMounted = true;\n return function () {\n current.isMounted = false;\n };\n }, []);\n return [execute, __assign({ reset: reset }, result)];\n}\n//# sourceMappingURL=useMutation.js.map","import * as React from 'react';\nimport { useComposedRefs } from '@radix-ui/react-compose-refs';\nimport { createContextScope } from '@radix-ui/react-context';\nimport { composeEventHandlers } from '@radix-ui/primitive';\nimport { useControllableState } from '@radix-ui/react-use-controllable-state';\nimport { usePrevious } from '@radix-ui/react-use-previous';\nimport { useSize } from '@radix-ui/react-use-size';\nimport { Presence } from '@radix-ui/react-presence';\nimport { Primitive } from '@radix-ui/react-primitive';\n\nimport type { Scope } from '@radix-ui/react-context';\n\nconst CHECKBOX_NAME = 'Checkbox';\n\ntype ScopedProps<P> = P & { __scopeCheckbox?: Scope };\nconst [createCheckboxContext, createCheckboxScope] = createContextScope(CHECKBOX_NAME);\n\ntype CheckedState = boolean | 'indeterminate';\n\ntype CheckboxContextValue<State extends CheckedState | boolean = CheckedState> = {\n checked: State | boolean;\n setChecked: React.Dispatch<React.SetStateAction<State | boolean>>;\n disabled: boolean | undefined;\n control: HTMLButtonElement | null;\n setControl: React.Dispatch<React.SetStateAction<HTMLButtonElement | null>>;\n name: string | undefined;\n form: string | undefined;\n value: string | number | readonly string[];\n hasConsumerStoppedPropagationRef: React.RefObject<boolean>;\n required: boolean | undefined;\n defaultChecked: boolean | undefined;\n isFormControl: boolean;\n bubbleInput: HTMLInputElement | null;\n setBubbleInput: React.Dispatch<React.SetStateAction<HTMLInputElement | null>>;\n};\n\nconst [CheckboxProviderImpl, useCheckboxContext] =\n createCheckboxContext<CheckboxContextValue>(CHECKBOX_NAME);\n\n/* -------------------------------------------------------------------------------------------------\n * CheckboxProvider\n * -----------------------------------------------------------------------------------------------*/\n\ninterface CheckboxProviderProps<State extends CheckedState = CheckedState> {\n checked?: State | boolean;\n defaultChecked?: State | boolean;\n required?: boolean;\n onCheckedChange?(checked: State | boolean): void;\n name?: string;\n form?: string;\n disabled?: boolean;\n value?: string | number | readonly string[];\n children?: React.ReactNode;\n}\n\nfunction CheckboxProvider<State extends CheckedState = CheckedState>(\n props: ScopedProps<CheckboxProviderProps<State>>\n) {\n const {\n __scopeCheckbox,\n checked: checkedProp,\n children,\n defaultChecked,\n disabled,\n form,\n name,\n onCheckedChange,\n required,\n value = 'on',\n // @ts-expect-error\n internal_do_not_use_render,\n } = props;\n\n const [checked, setChecked] = useControllableState({\n prop: checkedProp,\n defaultProp: defaultChecked ?? false,\n onChange: onCheckedChange,\n caller: CHECKBOX_NAME,\n });\n const [control, setControl] = React.useState<HTMLButtonElement | null>(null);\n const [bubbleInput, setBubbleInput] = React.useState<HTMLInputElement | null>(null);\n const hasConsumerStoppedPropagationRef = React.useRef(false);\n const isFormControl = control\n ? !!form || !!control.closest('form')\n : // We set this to true by default so that events bubble to forms without JS (SSR)\n true;\n\n const context: CheckboxContextValue<State> = {\n checked: checked,\n disabled: disabled,\n setChecked: setChecked,\n control: control,\n setControl: setControl,\n name: name,\n form: form,\n value: value,\n hasConsumerStoppedPropagationRef: hasConsumerStoppedPropagationRef,\n required: required,\n defaultChecked: isIndeterminate(defaultChecked) ? false : defaultChecked,\n isFormControl: isFormControl,\n bubbleInput,\n setBubbleInput,\n };\n\n return (\n <CheckboxProviderImpl\n scope={__scopeCheckbox}\n {...(context as unknown as CheckboxContextValue<CheckedState>)}\n >\n {isFunction(internal_do_not_use_render) ? internal_do_not_use_render(context) : children}\n </CheckboxProviderImpl>\n );\n}\n\n/* -------------------------------------------------------------------------------------------------\n * CheckboxTrigger\n * -----------------------------------------------------------------------------------------------*/\n\nconst TRIGGER_NAME = 'CheckboxTrigger';\n\ninterface CheckboxTriggerProps\n extends Omit<\n React.ComponentPropsWithoutRef<typeof Primitive.button>,\n keyof CheckboxProviderProps\n > {\n children?: React.ReactNode;\n}\n\nconst CheckboxTrigger = React.forwardRef<HTMLButtonElement, CheckboxTriggerProps>(\n (\n { __scopeCheckbox, onKeyDown, onClick, ...checkboxProps }: ScopedProps<CheckboxTriggerProps>,\n forwardedRef\n ) => {\n const {\n control,\n value,\n disabled,\n checked,\n required,\n setControl,\n setChecked,\n hasConsumerStoppedPropagationRef,\n isFormControl,\n bubbleInput,\n } = useCheckboxContext(TRIGGER_NAME, __scopeCheckbox);\n const composedRefs = useComposedRefs(forwardedRef, setControl);\n\n const initialCheckedStateRef = React.useRef(checked);\n React.useEffect(() => {\n const form = control?.form;\n if (form) {\n const reset = () => setChecked(initialCheckedStateRef.current);\n form.addEventListener('reset', reset);\n return () => form.removeEventListener('reset', reset);\n }\n }, [control, setChecked]);\n\n return (\n <Primitive.button\n type=\"button\"\n role=\"checkbox\"\n aria-checked={isIndeterminate(checked) ? 'mixed' : checked}\n aria-required={required}\n data-state={getState(checked)}\n data-disabled={disabled ? '' : undefined}\n disabled={disabled}\n value={value}\n {...checkboxProps}\n ref={composedRefs}\n onKeyDown={composeEventHandlers(onKeyDown, (event) => {\n // According to WAI ARIA, Checkboxes don't activate on enter keypress\n if (event.key === 'Enter') event.preventDefault();\n })}\n onClick={composeEventHandlers(onClick, (event) => {\n setChecked((prevChecked) => (isIndeterminate(prevChecked) ? true : !prevChecked));\n if (bubbleInput && isFormControl) {\n hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();\n // if checkbox has a bubble input and is a form control, stop\n // propagation from the button so that we only propagate one click\n // event (from the input). We propagate changes from an input so\n // that native form validation works and form events reflect\n // checkbox updates.\n if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n }\n })}\n />\n );\n }\n);\n\nCheckboxTrigger.displayName = TRIGGER_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * Checkbox\n * -----------------------------------------------------------------------------------------------*/\n\ntype CheckboxElement = React.ComponentRef<typeof Primitive.button>;\ntype PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;\ninterface CheckboxProps extends Omit<PrimitiveButtonProps, 'checked' | 'defaultChecked'> {\n checked?: CheckedState;\n defaultChecked?: CheckedState;\n required?: boolean;\n onCheckedChange?(checked: CheckedState): void;\n}\n\nconst Checkbox = React.forwardRef<CheckboxElement, CheckboxProps>(\n (props: ScopedProps<CheckboxProps>, forwardedRef) => {\n const {\n __scopeCheckbox,\n name,\n checked,\n defaultChecked,\n required,\n disabled,\n value,\n onCheckedChange,\n form,\n ...checkboxProps\n } = props;\n\n return (\n <CheckboxProvider\n __scopeCheckbox={__scopeCheckbox}\n checked={checked}\n defaultChecked={defaultChecked}\n disabled={disabled}\n required={required}\n onCheckedChange={onCheckedChange}\n name={name}\n form={form}\n value={value}\n // @ts-expect-error\n internal_do_not_use_render={({ isFormControl }: CheckboxContextValue) => (\n <>\n <CheckboxTrigger\n {...checkboxProps}\n ref={forwardedRef}\n // @ts-expect-error\n __scopeCheckbox={__scopeCheckbox}\n />\n {isFormControl && (\n <CheckboxBubbleInput\n // @ts-expect-error\n __scopeCheckbox={__scopeCheckbox}\n />\n )}\n </>\n )}\n />\n );\n }\n);\n\nCheckbox.displayName = CHECKBOX_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * CheckboxIndicator\n * -----------------------------------------------------------------------------------------------*/\n\nconst INDICATOR_NAME = 'CheckboxIndicator';\n\ntype CheckboxIndicatorElement = React.ComponentRef<typeof Primitive.span>;\ntype PrimitiveSpanProps = React.ComponentPropsWithoutRef<typeof Primitive.span>;\ninterface CheckboxIndicatorProps extends PrimitiveSpanProps {\n /**\n * Used to force mounting when more control is needed. Useful when\n * controlling animation with React animation libraries.\n */\n forceMount?: true;\n}\n\nconst CheckboxIndicator = React.forwardRef<CheckboxIndicatorElement, CheckboxIndicatorProps>(\n (props: ScopedProps<CheckboxIndicatorProps>, forwardedRef) => {\n const { __scopeCheckbox, forceMount, ...indicatorProps } = props;\n const context = useCheckboxContext(INDICATOR_NAME, __scopeCheckbox);\n return (\n <Presence\n present={forceMount || isIndeterminate(context.checked) || context.checked === true}\n >\n <Primitive.span\n data-state={getState(context.checked)}\n data-disabled={context.disabled ? '' : undefined}\n {...indicatorProps}\n ref={forwardedRef}\n style={{ pointerEvents: 'none', ...props.style }}\n />\n </Presence>\n );\n }\n);\n\nCheckboxIndicator.displayName = INDICATOR_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * CheckboxBubbleInput\n * -----------------------------------------------------------------------------------------------*/\n\nconst BUBBLE_INPUT_NAME = 'CheckboxBubbleInput';\n\ntype InputProps = React.ComponentPropsWithoutRef<typeof Primitive.input>;\ninterface CheckboxBubbleInputProps extends Omit<InputProps, 'checked'> {}\n\nconst CheckboxBubbleInput = React.forwardRef<HTMLInputElement, CheckboxBubbleInputProps>(\n ({ __scopeCheckbox, ...props }: ScopedProps<CheckboxBubbleInputProps>, forwardedRef) => {\n const {\n control,\n hasConsumerStoppedPropagationRef,\n checked,\n defaultChecked,\n required,\n disabled,\n name,\n value,\n form,\n bubbleInput,\n setBubbleInput,\n } = useCheckboxContext(BUBBLE_INPUT_NAME, __scopeCheckbox);\n\n const composedRefs = useComposedRefs(forwardedRef, setBubbleInput);\n const prevChecked = usePrevious(checked);\n const controlSize = useSize(control);\n\n // Bubble checked change to parents (e.g form change event)\n React.useEffect(() => {\n const input = bubbleInput;\n if (!input) return;\n\n const inputProto = window.HTMLInputElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(\n inputProto,\n 'checked'\n ) as PropertyDescriptor;\n const setChecked = descriptor.set;\n\n const bubbles = !hasConsumerStoppedPropagationRef.current;\n if (prevChecked !== checked && setChecked) {\n const event = new Event('click', { bubbles });\n input.indeterminate = isIndeterminate(checked);\n setChecked.call(input, isIndeterminate(checked) ? false : checked);\n input.dispatchEvent(event);\n }\n }, [bubbleInput, prevChecked, checked, hasConsumerStoppedPropagationRef]);\n\n const defaultCheckedRef = React.useRef(isIndeterminate(checked) ? false : checked);\n return (\n <Primitive.input\n type=\"checkbox\"\n aria-hidden\n defaultChecked={defaultChecked ?? defaultCheckedRef.current}\n required={required}\n disabled={disabled}\n name={name}\n value={value}\n form={form}\n {...props}\n tabIndex={-1}\n ref={composedRefs}\n style={{\n ...props.style,\n ...controlSize,\n position: 'absolute',\n pointerEvents: 'none',\n opacity: 0,\n margin: 0,\n // We transform because the input is absolutely positioned but we have\n // rendered it **after** the button. This pulls it back to sit on top\n // of the button.\n transform: 'translateX(-100%)',\n }}\n />\n );\n }\n);\n\nCheckboxBubbleInput.displayName = BUBBLE_INPUT_NAME;\n\n/* ---------------------------------------------------------------------------------------------- */\n\nfunction isFunction(value: unknown): value is (...args: any[]) => any {\n return typeof value === 'function';\n}\n\nfunction isIndeterminate(checked?: CheckedState): checked is 'indeterminate' {\n return checked === 'indeterminate';\n}\n\nfunction getState(checked: CheckedState) {\n return isIndeterminate(checked) ? 'indeterminate' : checked ? 'checked' : 'unchecked';\n}\n\nexport {\n createCheckboxScope,\n //\n Checkbox,\n CheckboxProvider,\n CheckboxTrigger,\n CheckboxIndicator,\n CheckboxBubbleInput,\n //\n Checkbox as Root,\n CheckboxProvider as Provider,\n CheckboxTrigger as Trigger,\n CheckboxIndicator as Indicator,\n CheckboxBubbleInput as BubbleInput,\n};\nexport type {\n CheckboxProps,\n CheckboxProviderProps,\n CheckboxTriggerProps,\n CheckboxIndicatorProps,\n CheckboxBubbleInputProps,\n CheckedState,\n};\n","import * as React from 'react';\nimport { Primitive } from '@radix-ui/react-primitive';\n\n/* -------------------------------------------------------------------------------------------------\n * Label\n * -----------------------------------------------------------------------------------------------*/\n\nconst NAME = 'Label';\n\ntype LabelElement = React.ComponentRef<typeof Primitive.label>;\ntype PrimitiveLabelProps = React.ComponentPropsWithoutRef<typeof Primitive.label>;\ninterface LabelProps extends PrimitiveLabelProps {}\n\nconst Label = React.forwardRef<LabelElement, LabelProps>((props, forwardedRef) => {\n return (\n <Primitive.label\n {...props}\n ref={forwardedRef}\n onMouseDown={(event) => {\n // only prevent text selection if clicking inside the label itself\n const target = event.target as HTMLElement;\n if (target.closest('button, input, select, textarea')) return;\n\n props.onMouseDown?.(event);\n // prevent text selection when double clicking label\n if (!event.defaultPrevented && event.detail > 1) event.preventDefault();\n }}\n />\n );\n});\n\nLabel.displayName = NAME;\n\n/* -----------------------------------------------------------------------------------------------*/\n\nconst Root = Label;\n\nexport {\n Label,\n //\n Root,\n};\nexport type { LabelProps };\n","// packages/react/use-previous/src/use-previous.tsx\nimport * as React from \"react\";\nfunction usePrevious(value) {\n const ref = React.useRef({ value, previous: value });\n return React.useMemo(() => {\n if (ref.current.value !== value) {\n ref.current.previous = ref.current.value;\n ref.current.value = value;\n }\n return ref.current.previous;\n }, [value]);\n}\nexport {\n usePrevious\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["AlertTriangle","createLucideIcon","d","key","ChevronDown","Copy","width","height","x","y","rx","ry","EyeOff","x1","x2","y1","y2","Eye","cx","cy","r","Plus","Search","Trash2","useIsomorphicLayoutEffect","canUse","Nq","rehackt","useLayoutEffect","useEffect","useMutation","mutation","options","client","useApolloClient","parser","Vp","n_","Mutation","_a","useState","called","loading","result","setResult","ref","useRef","mutationId","isMounted","Object","assign","current","execute","useCallback","executeOptions","baseOptions","tslib_es6","pi","ignoreResults","error","data","clientOptions","mergeOptions","J","mutate","then","response","_b","errors","length","client_errors","cA","graphQLErrors","onError","result_1","lib","D","onCompleted","result_2","reset","result_3","CHECKBOX_NAME","createCheckboxContext","createCheckboxScope","createContextScope","CheckboxProviderImpl","useCheckboxContext","CheckboxProvider","props","__scopeCheckbox","checked","checkedProp","children","defaultChecked","disabled","form","name","onCheckedChange","required","value","internal_do_not_use_render","setChecked","useControllableState","prop","defaultProp","onChange","caller","control","setControl","React","bubbleInput","setBubbleInput","hasConsumerStoppedPropagationRef","isFormControl","closest","context","isIndeterminate","jsx","scope","isFunction","TRIGGER_NAME","CheckboxTrigger","param","forwardedRef","onKeyDown","onClick","checkboxProps","composedRefs","useComposedRefs","initialCheckedStateRef","addEventListener","removeEventListener","Primitive","button","type","role","getState","composeEventHandlers","event","preventDefault","prevChecked","isPropagationStopped","stopPropagation","displayName","Checkbox","jsxs","Fragment","CheckboxBubbleInput","INDICATOR_NAME","CheckboxIndicator","forceMount","indicatorProps","Presence","present","span","style","pointerEvents","BUBBLE_INPUT_NAME","usePrevious","controlSize","useSize","descriptor","getOwnPropertyDescriptor","window","HTMLInputElement","prototype","set","bubbles","Event","input","indeterminate","call","dispatchEvent","defaultCheckedRef","tabIndex","position","opacity","margin","transform","Label","label","onMouseDown","target","defaultPrevented","detail","Root","react__WEBPACK_IMPORTED_MODULE_0__","previous","useMemo"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1957],{27699:function(e,s,a){a.d(s,{x:function(){return w}});var t=a(57437),l=a(2265),r=a(12199),n=a(13832),i=a(27689),o=a(26110),d=a(62869),c=a(95186),m=a(76818),u=a(26815),x=a(40875),h=a(88893),v=a(18930),p=a(77992),f=a(94508),b=a(8014),g=a(12339),j=a(35629);function w(e){var s,a,w,N;let{isOpen:y,onClose:C,messages:k,sessionTitle:_,existingWorkflow:E,isReadOnly:D=!1}=e,{user:S}=(0,l.useContext)(n.S),{toast:A}=(0,p.pm)(),[U,z]=(0,l.useState)({rights_mode:(null==E?void 0:E.rights_mode)||"private",users:(null==E?void 0:null===(s=E.RBAC)||void 0===s?void 0:s.users)||[],roles:(null==E?void 0:null===(a=E.RBAC)||void 0===a?void 0:a.roles)||[]}),Z=!!E,[W,B]=(0,l.useState)((null==E?void 0:E.name)||""),[R,V]=(0,l.useState)((null==E?void 0:E.description)||""),[M,P]=(0,l.useState)((null==E?void 0:E.variables)||[]),[F,I]=(0,l.useState)((null==E?void 0:E.steps_json)||[]),[q,O]=(0,l.useState)(!1),[$,H]=(0,l.useState)("setup"),[K,T]=(0,l.useState)(!1),[J,Q]=(0,l.useState)(null),[G,L]=(0,l.useState)(""),[X]=(0,r.D)(i.B_),[Y]=(0,r.D)(i._J);l.useEffect(()=>{if(k.length>0){let e=[];k.forEach((s,a)=>{let t=s.content||(s.parts?s.parts.filter(e=>"text"===e.type).map(e=>e.text).join("\n"):"");"user"===s.role?e.push({id:"step_".concat(a+1),type:"user",content:t,variablesUsed:[]}):"assistant"===s.role?e.push({id:"step_".concat(a+1),type:"assistant",contentExample:t}):"system"===s.role&&s.parts&&s.parts.forEach((s,t)=>{"tool-invocation"===s.type&&s.toolInvocation&&e.push({id:"step_".concat(a+1,"_").concat(t),type:"tool",toolName:s.toolInvocation.toolName})})}),console.log("transformedSteps",e),I(e),B(_||"My Workflow")}},[k,_,F.length]);let ee=(0,l.useCallback)((e,s)=>{if(!e.match(/^[A-Za-z_][A-Za-z0-9_]{1,63}$/))return A({title:"Invalid variable name",description:"Variable name must start with a letter or underscore, contain only letters, numbers, and underscores, and be 2-64 characters long.",variant:"destructive"}),!1;if(M.some(s=>s.name===e))return!0;let a={name:e,type:"string",required:!0,description:s||"Auto-detected variable"};return P(e=>[...e,a]),!0},[M,A]),es=(0,l.useCallback)((e,s)=>{let a=(s.match(/\{([A-Za-z_][A-Za-z0-9_]{1,63})\}/g)||[]).map(e=>e.slice(1,-1));a.forEach(e=>{ee(e)}),I(t=>t.map(t=>t.id===e?{...t,content:s,variablesUsed:a}:t));let t=new Set;F.forEach(a=>{a.id===e?(s.match(/\{([A-Za-z_][A-Za-z0-9_]{1,63})\}/g)||[]).forEach(e=>t.add(e.slice(1,-1))):a.variablesUsed&&a.variablesUsed.forEach(e=>t.add(e))}),P(e=>e.filter(e=>t.has(e.name)))},[F,ee]),ea=(0,l.useCallback)(e=>{P(s=>s.filter(s=>s.name!==e)),I(s=>s.map(s=>{var a,t;return{...s,content:null===(a=s.content)||void 0===a?void 0:a.replace(RegExp("\\{".concat(e,"\\}"),"g"),""),variablesUsed:(null===(t=s.variablesUsed)||void 0===t?void 0:t.filter(s=>s!==e))||[]}}))},[]),et=(0,l.useCallback)((e,s)=>s.match(/^[A-Za-z_][A-Za-z0-9_]{1,63}$/)?M.some(a=>a.name===s&&a.name!==e)?(A({title:"Variable name already exists",description:"A variable with this name already exists.",variant:"destructive"}),!1):(P(a=>a.map(a=>a.name===e?{...a,name:s}:a)),I(a=>a.map(a=>{var t,l;return{...a,content:null===(t=a.content)||void 0===t?void 0:t.replace(RegExp("\\{".concat(e,"\\}"),"g"),"{".concat(s,"}")),variablesUsed:(null===(l=a.variablesUsed)||void 0===l?void 0:l.map(a=>a===e?s:a))||[]}})),!0):(A({title:"Invalid variable name",description:"Variable name must start with a letter or underscore and contain only letters, numbers, and underscores.",variant:"destructive"}),!1),[M,A]),el=(0,l.useMemo)(()=>{var e,s;return!!W.trim()&&0!==F.length&&("users"!==U.rights_mode||(null===(e=U.users)||void 0===e?void 0:e.length)!==0)&&("roles"!==U.rights_mode||(null===(s=U.roles)||void 0===s?void 0:s.length)!==0)&&F.filter(e=>"user"===e.type).every(e=>{let s=e.content||"";return(null==s?void 0:s.replace(/\{[^}]+\}/g,"")).trim().length>0})},[W,F,U]),er=(0,l.useCallback)(async()=>{if(el&&(null==S?void 0:S.id)){O(!0);try{let e=F.map(e=>({id:e.id,type:e.type,..."user"===e.type&&{content:e.content},..."assistant"===e.type&&{contentExample:e.contentExample},..."tool"===e.type&&{toolName:e.toolName}}));Z&&E?(await Y({variables:{id:E.id,name:W.trim(),description:R.trim()||null,rights_mode:U.rights_mode,RBAC:{users:U.users,roles:U.roles},variables:M,steps_json:e}}),A({title:"Workflow updated!",description:'"'.concat(W,'" has been updated successfully.')})):(await X({variables:{name:W.trim(),description:R.trim()||null,owner:S.id,rights_mode:U.rights_mode,RBAC:{users:U.users,roles:U.roles},variables:M,steps_json:e}}),A({title:"Workflow created!",description:'"'.concat(W,'" has been saved as a workflow template.')})),C()}catch(e){console.error("Error saving workflow:",e),A({title:"Error saving workflow",description:"There was an error saving your workflow. Please try again.",variant:"destructive"})}finally{O(!1)}}},[el,null==S?void 0:S.id,W,R,U,M,F,X,Y,A,C,Z,E]);return y?(0,t.jsx)(o.Vq,{open:y,onOpenChange:C,children:(0,t.jsxs)(o.cZ,{className:"max-w-4xl max-h-[92vh] flex flex-col",children:[(0,t.jsxs)(o.fK,{className:"pb-4",children:[(0,t.jsx)(o.$N,{className:"text-lg",children:Z?D?"View Workflow":"Edit Workflow":"Save as Workflow"}),(0,t.jsx)(o.Be,{className:"text-sm",children:Z?D?"View workflow details and configuration.":"Modify this workflow template. Edit your messages and use {variable_name} syntax to create variables.":"Convert this conversation into a reusable workflow template. Edit your messages and use {variable_name} syntax to create variables."})]}),(0,t.jsx)("div",{className:"flex-1 mt-6",children:(0,t.jsxs)(g.mQ,{value:$,onValueChange:H,className:"h-full flex flex-col",children:[(0,t.jsxs)(g.dr,{className:"grid w-full grid-cols-2 mb-6",children:[(0,t.jsx)(g.SP,{value:"setup",className:"data-[state=active]:bg-background",children:"Setup & Permissions"}),(0,t.jsx)(g.SP,{value:"workflow",className:"data-[state=active]:bg-background",children:"Workflow Steps & Variables"})]}),(0,t.jsxs)("div",{className:"flex-1 pb-6",children:[(0,t.jsx)(g.nU,{value:"setup",className:"mt-0 h-full",children:(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(u._,{htmlFor:"workflow-name",className:"text-base font-semibold",children:"Workflow Name *"}),(0,t.jsx)(c.I,{id:"workflow-name",value:W,onChange:e=>B(e.target.value),placeholder:"My Workflow",className:"mt-2 h-11",readOnly:D}),!W.trim()&&(0,t.jsxs)("p",{className:"text-sm text-destructive mt-1 flex items-center",children:[(0,t.jsx)("span",{className:"mr-1",children:"⚠️"}),"Workflow name is required"]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(u._,{htmlFor:"workflow-description",className:"text-base font-semibold",children:"Description"}),(0,t.jsx)(m.g,{id:"workflow-description",value:R,onChange:e=>V(e.target.value),placeholder:"Describe what this workflow does and when to use it...",rows:3,className:"mt-2 resize-none",readOnly:D})]})]}),(0,t.jsxs)("div",{className:"border-t pt-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-base font-semibold mb-1",children:"Sharing & Permissions"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Control who can view and edit this workflow"})]}),(0,t.jsxs)(d.z,{type:"button",variant:"outline",size:"sm",onClick:()=>T(!K),className:"ml-4",children:[K?"Hide Advanced":"Show Advanced",(0,t.jsx)(x.Z,{className:(0,f.cn)("w-4 h-4 ml-1 transition-transform",K&&"rotate-180")})]})]}),K&&(0,t.jsx)(b.P,{initialRightsMode:null==E?void 0:E.rights_mode,initialUsers:null==E?void 0:null===(w=E.RBAC)||void 0===w?void 0:w.users,initialRoles:null==E?void 0:null===(N=E.RBAC)||void 0===N?void 0:N.roles,onChange:(e,s,a)=>{z({rights_mode:e,users:s,roles:a})}}),!K&&(0,t.jsx)("div",{className:"text-sm text-muted-foreground bg-muted/30 p-3 rounded-md",children:"Using default permissions (private to you)"})]})]})}),(0,t.jsx)(g.nU,{value:"workflow",className:"mt-0 h-full",children:(0,t.jsxs)("div",{className:"h-full flex gap-6",children:[(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)("h3",{className:"text-base font-semibold mb-2",children:"Conversation Steps"}),(0,t.jsx)("div",{className:"border rounded-lg p-3 mb-4",children:(0,t.jsxs)("p",{className:"text-sm",children:["\uD83D\uDCA1 ",(0,t.jsx)("strong",{children:"Pro tip:"})," Use ","{variable_name}"," syntax in your messages to create reusable variables. For example you can use ","{company_name}"," to create a variable for the company name so you can reuse this flow template with different companies."]})})]}),(0,t.jsx)("div",{className:"space-y-4 max-h-[500px] overflow-y-auto pr-2",children:F.map((e,s)=>(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"border rounded-lg p-4 bg-card",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[(0,t.jsx)("span",{className:(0,f.cn)("text-sm font-medium px-3 py-1 rounded-full","user"===e.type?"bg-blue-100 text-blue-700":"assistant"===e.type?"bg-green-100 text-green-700":"bg-purple-100 text-purple-700"),children:"user"===e.type?"\uD83D\uDC64 User":"assistant"===e.type?"\uD83E\uDD16 Assistant":"\uD83D\uDD27 ".concat(e.toolName)}),e.variablesUsed&&e.variablesUsed.length>0&&(0,t.jsx)("div",{className:"flex gap-1 flex-wrap",children:e.variablesUsed.map(e=>(0,t.jsx)("span",{className:"text-xs bg-blue-50 text-blue-600 px-2 py-1 rounded font-mono border border-blue-200",children:"{".concat(e,"}")},e))})]}),"user"===e.type?(0,t.jsx)("div",{children:(0,t.jsx)(m.g,{value:e.content||"",onChange:s=>es(e.id,s.target.value),placeholder:"Enter your message...",className:"min-h-[80px] resize-none",rows:3,readOnly:D})}):(0,t.jsx)("div",{className:"bg-muted/50 p-3 rounded-md",children:"assistant"===e.type?(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Example response (will be regenerated):"}),(0,t.jsx)(j.H,{children:e.contentExample})]}):(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"text-xs font-medium text-muted-foreground mb-1",children:["Tool: ",e.toolName]}),(0,t.jsx)("div",{className:"text-sm text-muted-foreground",children:"Parameters will be generated dynamically"})]})})]}),s<F.length-1&&(0,t.jsx)("div",{className:"flex justify-center my-3",children:(0,t.jsx)(x.Z,{className:"w-5 h-5 text-muted-foreground/50"})})]},e.id))})]}),(0,t.jsxs)("div",{className:"w-80",children:[(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsxs)("h3",{className:"text-base font-semibold mb-2",children:["Variables (",M.length,")"]}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Auto-detected from your messages"})]}),M.length>0?(0,t.jsx)("div",{className:"space-y-3 max-h-[500px] overflow-y-auto",children:M.map(e=>(0,t.jsxs)("div",{className:"border rounded-lg p-3 bg-card",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between mb-2",children:[(0,t.jsx)("div",{className:"font-mono text-blue-600 font-medium text-sm",children:"{".concat(e.name,"}")}),!D&&(0,t.jsx)("div",{className:"flex gap-1",children:J===e.name?(0,t.jsx)(c.I,{value:G,onChange:e=>L(e.target.value),className:"h-6 text-xs font-mono w-20",placeholder:"variable_name",autoFocus:!0,onKeyDown:s=>{"Enter"===s.key?(G&&G!==e.name&&et(e.name,G),Q(null),L("")):"Escape"===s.key&&(Q(null),L(""))},onBlur:()=>{G&&G!==e.name&&et(e.name,G),Q(null),L("")}}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.z,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0",onClick:()=>{Q(e.name),L(e.name)},children:(0,t.jsx)(h.Z,{className:"w-3 h-3"})}),(0,t.jsx)(d.z,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0 text-destructive hover:bg-destructive/10",onClick:()=>ea(e.name),children:(0,t.jsx)(v.Z,{className:"w-3 h-3"})})]})})]}),(0,t.jsx)("div",{className:"text-xs text-muted-foreground mb-2",children:e.description}),(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)("span",{className:"text-xs bg-gray-100 text-gray-700 px-1.5 py-0.5 rounded",children:e.type}),e.required&&(0,t.jsx)("span",{className:"text-xs bg-orange-100 text-orange-700 px-1.5 py-0.5 rounded",children:"required"})]})]},e.name))}):(0,t.jsxs)("div",{className:"text-center py-8 text-muted-foreground border-2 border-dashed rounded-lg",children:[(0,t.jsx)("div",{className:"mb-3",children:(0,t.jsx)("span",{className:"text-3xl",children:"\uD83D\uDCDD"})}),(0,t.jsx)("div",{className:"text-sm mb-1 font-medium",children:"No variables yet"}),(0,t.jsxs)("div",{className:"text-xs",children:["Use ","{variable_name}"," syntax in your messages"]})]})]})]})})]})]})}),(0,t.jsx)("div",{className:"border-t p-4 bg-background",children:(0,t.jsxs)(o.cN,{children:[(0,t.jsx)(d.z,{variant:"outline",onClick:C,children:D?"Close":"Cancel"}),!D&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(d.z,{onClick:er,disabled:!el||q,className:(0,f.cn)("min-w-[140px]",!el&&"opacity-50 cursor-not-allowed"),children:q?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-white mr-2"}),Z?"Updating...":"Saving..."]}):Z?"Update Workflow":"Save Workflow"})})]})})]})}):null}},10492:function(e,s,a){a.d(s,{g:function(){return r}});var t=a(57437),l=a(94508);let r=e=>{let{className:s}=e;return(0,t.jsxs)("svg",{"aria-hidden":"true",role:"status",className:(0,l.cn)("inline w-4 h-4 text-white animate-spin fill-inherit",s),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",className:"fill-inherit opacity-20"}),(0,t.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",className:"fill-inherit"})]})}}}]);
|
|
2
|
-
//# sourceMappingURL=1957-
|
|
2
|
+
//# sourceMappingURL=1957-34f17de1e14e45de.js.map
|