@exulu/frontend 1.3.0 → 1.3.1
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 +81 -81
- 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.js +1 -1
- package/dist/.next/server/app/(application)/agents/edit/[id]/page.js.nft.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.js +2 -2
- package/dist/.next/server/app/(application)/agents/page.js.nft.json +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 +2 -2
- package/dist/.next/server/app/(application)/chat/[agent]/[session]/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/chat/[agent]/[session]/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/chat/[agent]/page.js +1 -1
- package/dist/.next/server/app/(application)/chat/[agent]/page.js.nft.json +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.js +1 -1
- package/dist/.next/server/app/(application)/chat/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/chat/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/configuration/page.js +1 -1
- package/dist/.next/server/app/(application)/configuration/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/configuration/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/dashboard/page.js +1 -1
- package/dist/.next/server/app/(application)/dashboard/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/dashboard/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/data/[[...query]]/page.js +1 -1
- package/dist/.next/server/app/(application)/data/[[...query]]/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/data/[[...query]]/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/evals/[id]/page.js +1 -1
- package/dist/.next/server/app/(application)/evals/[id]/page.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/[id]/runs/page.js +1 -1
- package/dist/.next/server/app/(application)/evals/[id]/runs/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/evals/[id]/runs/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.js +1 -1
- package/dist/.next/server/app/(application)/evals/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/evals/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/explorer/page.js +1 -1
- package/dist/.next/server/app/(application)/explorer/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/explorer/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/jobs/page.js +1 -1
- package/dist/.next/server/app/(application)/jobs/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/jobs/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/keys/page.js +1 -1
- package/dist/.next/server/app/(application)/keys/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/keys/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/page.js +1 -1
- package/dist/.next/server/app/(application)/page.js.nft.json +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.js.nft.json +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.js +1 -1
- package/dist/.next/server/app/(application)/projects/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/projects/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/roles/page.js +1 -1
- package/dist/.next/server/app/(application)/roles/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/roles/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/token/page.js +1 -1
- package/dist/.next/server/app/(application)/token/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/token/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/users/page.js +1 -1
- package/dist/.next/server/app/(application)/users/page.js.nft.json +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.js +1 -1
- package/dist/.next/server/app/(application)/variables/create/page.js.nft.json +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.js +1 -1
- package/dist/.next/server/app/(application)/variables/edit/[variable_id]/page.js.nft.json +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.js +1 -1
- package/dist/.next/server/app/(application)/variables/page.js.nft.json +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.js +1 -1
- package/dist/.next/server/app/(application)/variables/usage/[variable_id]/page.js.nft.json +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.js +1 -1
- package/dist/.next/server/app/(application)/workflows/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/workflows/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(authentication)/login/page.js +3 -3
- package/dist/.next/server/app/(authentication)/login/page.js.nft.json +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 +3 -3
- package/dist/.next/server/chunks/1051.js +48 -0
- package/dist/.next/server/chunks/7944.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/{3832-cfd7197465448e35.js → 3832-bfe8bd2edace90f9.js} +2 -2
- package/dist/.next/static/chunks/3832-bfe8bd2edace90f9.js.map +1 -0
- package/dist/.next/static/chunks/app/(application)/agents/page-499ac3bd1044306c.js +2 -0
- package/dist/.next/static/chunks/app/(application)/agents/page-499ac3bd1044306c.js.map +1 -0
- package/dist/.next/static/chunks/app/(application)/chat/[agent]/[session]/page-b600c0b270eedb7f.js +2 -0
- package/dist/.next/static/chunks/app/(application)/chat/[agent]/[session]/page-b600c0b270eedb7f.js.map +1 -0
- package/dist/.next/static/chunks/app/(application)/evals/[id]/page-2238f1fb73d93328.js +2 -0
- package/dist/.next/static/chunks/app/(application)/evals/[id]/page-2238f1fb73d93328.js.map +1 -0
- package/dist/.next/static/chunks/app/(authentication)/layout-0f416e1b9326e03a.js +2 -0
- package/dist/.next/static/chunks/app/(authentication)/layout-0f416e1b9326e03a.js.map +1 -0
- package/dist/.next/static/css/{175d6535ea9efb2c.css → 7b99daf4eb75ddb9.css} +2 -2
- package/dist/.next/static/css/{175d6535ea9efb2c.css.map → 7b99daf4eb75ddb9.css.map} +1 -1
- package/dist/.next/static/css/e3f2a16ab7676b05.css.map +1 -1
- package/package.json +1 -1
- package/dist/.next/server/chunks/7223.js +0 -48
- package/dist/.next/static/chunks/3832-cfd7197465448e35.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/agents/page-4137487b76f09235.js +0 -2
- package/dist/.next/static/chunks/app/(application)/agents/page-4137487b76f09235.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/chat/[agent]/[session]/page-0f729a6df64d730e.js +0 -2
- package/dist/.next/static/chunks/app/(application)/chat/[agent]/[session]/page-0f729a6df64d730e.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/evals/[id]/page-b2de62f11946627f.js +0 -2
- package/dist/.next/static/chunks/app/(application)/evals/[id]/page-b2de62f11946627f.js.map +0 -1
- package/dist/.next/static/chunks/app/(authentication)/layout-2dfa18ea6e6dc5cd.js +0 -2
- package/dist/.next/static/chunks/app/(authentication)/layout-2dfa18ea6e6dc5cd.js.map +0 -1
- /package/dist/.next/static/{_G7TS_eJB-KA5rdSZzdGX → ilyTh3roMkVIbl9q2AwIk}/_buildManifest.js +0 -0
- /package/dist/.next/static/{_G7TS_eJB-KA5rdSZzdGX → ilyTh3roMkVIbl9q2AwIk}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9727],{74083:function(e,s,t){Promise.resolve().then(t.bind(t,831))},831:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return A},dynamic:function(){return P}});var a=t(57437),l=t(2265),r=t(99376),i=t(7211),n=t(12199),c=t(13832),d=t(64972),o=t(32660),h=t(82023),m=t(33276),u=t(15863),x=t(83229),v=t(48736),f=t(45554),p=t(99397),j=t(88893),g=t(32489),N=t(65613),b=t(37099),y=t(62869),k=t(95186),w=t(26815),C=t(76818),Z=t(66070),_=t(35974),S=t(93022),E=t(77992),z=t(27689),R=t(73247),T=t(26110),M=t(19060),q=t(19378);function I(e){var s;let{open:t,onClose:r,onSelect:n,excludeIds:c=[]}=e,[d,o]=(0,l.useState)(""),[h,m]=(0,l.useState)([]),{loading:u,data:x}=(0,i.aM)(z.RV,{variables:{page:1,limit:100,filters:d?[{AND:[{name:{contains:d}},{eval_set_id:{eq:null}}]}]:[{eval_set_id:{eq:null}}]},skip:!t});(0,l.useEffect)(()=>{t||(m([]),o(""))},[t]);let v=((null==x?void 0:null===(s=x.test_casesPagination)||void 0===s?void 0:s.items)||[]).filter(e=>!c.includes(e.id)),f=e=>{m(s=>s.includes(e)?s.filter(s=>s!==e):[...s,e])};return(0,a.jsx)(T.Vq,{open:t,onOpenChange:r,children:(0,a.jsxs)(T.cZ,{className:"max-w-3xl max-h-[80vh] flex flex-col",children:[(0,a.jsxs)(T.fK,{children:[(0,a.jsx)(T.$N,{children:"Add Test Cases"}),(0,a.jsx)(T.Be,{children:"Select test cases to add to this eval set. Already added test cases are hidden."}),(0,a.jsx)(N.bZ,{variant:"destructive",className:"mt-3",children:(0,a.jsxs)(N.X,{children:[(0,a.jsx)("strong",{children:"Note:"})," You can only add test cases that are not already in an eval set. Remove them from another eval set first if you want to add them to a new eval set."]})})]}),(0,a.jsxs)("div",{className:"space-y-4 flex-1 overflow-hidden flex flex-col",children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(R.Z,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),(0,a.jsx)(k.I,{placeholder:"Search test cases by name...",value:d,onChange:e=>o(e.target.value),className:"pl-9"})]}),v.length>0&&(0,a.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,a.jsx)(M.X,{id:"select-all-test-cases",checked:h.length===v.length&&v.length>0,onCheckedChange:()=>{h.length===v.length?m([]):m(v.map(e=>e.id))}}),(0,a.jsxs)(w._,{htmlFor:"select-all-test-cases",className:"text-sm text-muted-foreground",children:["Select all (",h.length," selected)"]})]}),(0,a.jsx)(q.x,{className:"flex-1 border rounded-lg",children:(0,a.jsx)("div",{children:u?Array.from({length:3}).map((e,s)=>(0,a.jsx)(S.O,{className:"h-10 w-full"},s)):0===v.length?(0,a.jsx)("div",{className:"text-center py-12 text-muted-foreground mx-5",children:d?"No test cases found matching your search.":"No test cases available to add."}):v.map(e=>(0,a.jsxs)("div",{onClick:()=>{f(e.id)},className:"flex items-start gap-3 p-3 hover:bg-muted/50",children:[(0,a.jsx)(M.X,{checked:h.includes(e.id),id:"select-test-case-".concat(e.id),onCheckedChange:()=>f(e.id)}),(0,a.jsxs)(w._,{htmlFor:"select-test-case-".concat(e.id),className:"text-sm text-muted-foreground flex flex-col",children:[(0,a.jsx)("span",{children:e.name}),(0,a.jsx)("small",{children:e.description})]})]},e.id))})})]}),(0,a.jsxs)(T.cN,{children:[(0,a.jsx)(y.z,{variant:"outline",onClick:r,children:"Cancel"}),(0,a.jsxs)(y.z,{onClick:()=>{n(h)},disabled:0===h.length,children:["Add ",h.length," Test Case",1!==h.length?"s":""]})]})]})})}var O=t(82534);let P="force-dynamic";function A(){var e,s,t,R;let T=(0,r.useParams)(),M=(0,r.useRouter)(),{user:q}=(0,l.useContext)(c.S),{toast:P}=(0,E.pm)(),A=T.id,[V,D]=(0,l.useState)(""),[F,B]=(0,l.useState)(""),[L,X]=(0,l.useState)([]),[Y,$]=(0,l.useState)(!1),[W,H]=(0,l.useState)(!1),[K,G]=(0,l.useState)(null),[J,Q]=(0,l.useState)(null),U=q.super_admin||(null===(e=q.role)||void 0===e?void 0:e.evals)==="read"||(null===(s=q.role)||void 0===s?void 0:s.evals)==="write",ee=q.super_admin||(null===(t=q.role)||void 0===t?void 0:t.evals)==="write",{loading:es,data:et,refetch:ea}=(0,i.aM)(z.iA,{variables:{id:A},skip:!A,onCompleted:e=>{(null==e?void 0:e.eval_setById)&&(D(e.eval_setById.name),B(e.eval_setById.description||""))}}),{data:el,refetch:er}=(0,i.aM)(z.RV,{variables:{page:1,limit:500,filters:[{eval_set_id:{eq:A}}]}}),[ei,{loading:en}]=(0,n.D)(z.vP,{onCompleted:()=>{P({title:"Eval set updated",description:"The eval set has been successfully updated."}),ea()},onError:e=>{P({title:"Failed to update eval set",description:e.message,variant:"destructive"})}}),ec=e=>{G(e)},[ed,{loading:eo}]=(0,n.D)(z.Mh,{onError:e=>{P({title:"Failed to update test case",description:e.message,variant:"destructive"})}});if(!U)return(0,a.jsx)("div",{className:"flex h-full flex-1 flex-col space-y-8 p-8",children:(0,a.jsxs)(N.bZ,{variant:"destructive",children:[(0,a.jsx)(d.Z,{className:"h-4 w-4"}),(0,a.jsx)(N.X,{children:"You don't have permission to access Eval Sets. Contact your administrator to request access."})]})});if(es)return(0,a.jsxs)("div",{className:"flex h-full flex-1 flex-col space-y-8 p-8",children:[(0,a.jsx)(S.O,{className:"h-8 w-64"}),(0,a.jsx)(S.O,{className:"h-64 w-full"})]});let eh=(null==el?void 0:null===(R=el.test_casesPagination)||void 0===R?void 0:R.items)||[];return(0,a.jsxs)("div",{className:"flex h-full flex-1 flex-col space-y-8 p-8",children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-primary/5 rounded-lg blur-xl"}),(0,a.jsxs)("div",{className:"relative flex items-center justify-between p-6 border rounded-lg bg-card/50 backdrop-blur-sm",children:[(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)(y.z,{variant:"ghost",size:"icon",onClick:()=>M.push("/evals"),children:(0,a.jsx)(o.Z,{className:"h-4 w-4"})}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-primary",children:(0,a.jsx)(h.Z,{className:"h-5 w-5 text-primary-foreground"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-2xl font-bold tracking-tight",children:"Edit Eval Set"}),(0,a.jsx)("p",{className:"text-muted-foreground",children:"Configure test cases for this evaluation set."})]})]})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsxs)(y.z,{variant:"outline",onClick:()=>M.push("/evals/".concat(A,"/runs")),children:[(0,a.jsx)(m.Z,{className:"mr-2 h-4 w-4"}),"View Runs"]}),ee&&(0,a.jsxs)(y.z,{onClick:()=>{if(!V.trim()){P({title:"Validation error",description:"Name is required.",variant:"destructive"});return}if(L.length>500){P({title:"Validation error",description:"Maximum 500 test cases allowed per eval set.",variant:"destructive"});return}ei({variables:{id:A,data:{name:V.trim(),description:F.trim()||null}}})},disabled:en,children:[en?(0,a.jsx)(u.Z,{className:"mr-2 h-4 w-4 animate-spin"}):(0,a.jsx)(x.Z,{className:"mr-2 h-4 w-4"}),"Save Changes"]})]})]})]}),(0,a.jsxs)(Z.Zb,{className:"shadow-lg",children:[(0,a.jsx)(Z.Ol,{className:"border-b bg-accent/50",children:(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-primary/10",children:(0,a.jsx)(v.Z,{className:"h-4 w-4 text-primary"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)(Z.ll,{children:"Basic Information"}),(0,a.jsx)(Z.SZ,{children:"Edit the name and description of this eval set."})]})]})}),(0,a.jsxs)(Z.aY,{className:"space-y-4 pt-6",children:[(0,a.jsxs)("div",{className:"grid gap-2",children:[(0,a.jsx)(w._,{htmlFor:"name",className:"text-sm font-semibold",children:"Name *"}),(0,a.jsx)(k.I,{id:"name",placeholder:"Eval set name",value:V,onChange:e=>D(e.target.value),disabled:!ee})]}),(0,a.jsxs)("div",{className:"grid gap-2",children:[(0,a.jsx)(w._,{htmlFor:"description",className:"text-sm font-semibold",children:"Description"}),(0,a.jsx)(C.g,{id:"description",placeholder:"Describe what this eval set tests...",value:F,onChange:e=>B(e.target.value),disabled:!ee,rows:3})]})]})]}),(0,a.jsxs)(Z.Zb,{className:"shadow-lg",children:[(0,a.jsx)(Z.Ol,{className:"border-b bg-accent/50",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-primary/10",children:(0,a.jsx)(f.Z,{className:"h-4 w-4 text-primary"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)(Z.ll,{children:"Test Cases"}),(0,a.jsxs)(Z.SZ,{children:["Add up to 500 test cases to this eval set."," ",(0,a.jsxs)(_.C,{variant:"secondary",className:"ml-1",children:[eh.length,"/500"]})]})]})]}),ee&&(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsxs)(y.z,{variant:"outline",size:"sm",onClick:()=>H(!0),children:[(0,a.jsx)(p.Z,{className:"mr-2 h-4 w-4"}),"Create New"]}),(0,a.jsxs)(y.z,{variant:"secondary",size:"sm",onClick:()=>$(!0),disabled:L.length>=500,children:[(0,a.jsx)(p.Z,{className:"mr-2 h-4 w-4"}),"Add Existing"]})]})]})}),(0,a.jsx)(Z.aY,{className:"pt-6",children:0===eh.length?(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[(0,a.jsx)("div",{className:"p-4 rounded-full bg-primary/10 mb-4",children:(0,a.jsx)(f.Z,{className:"h-8 w-8 text-primary"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No test cases yet"}),(0,a.jsx)("p",{className:"text-muted-foreground max-w-sm",children:'Click "Create New" or "Add Existing" to start building your evaluation set.'})]}):(0,a.jsx)("div",{className:"space-y-3",children:eh.map(e=>(0,a.jsxs)("div",{className:"group relative flex items-center justify-between p-4 border rounded-lg transition-all hover:shadow-md hover:border-primary/50 hover:scale-[1.01] hover:bg-accent/30",children:[(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:"p-1.5 rounded bg-primary/10",children:(0,a.jsx)(v.Z,{className:"h-3.5 w-3.5 text-primary"})}),(0,a.jsx)("span",{className:"font-semibold",children:e.name})]}),e.description&&(0,a.jsx)("p",{className:"text-sm text-muted-foreground mt-2 ml-8",children:e.description})]}),ee&&(0,a.jsxs)("div",{className:"flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[(0,a.jsxs)(y.z,{variant:"ghost",size:"sm",onClick:()=>{Q(e),H(!0)},className:"hover:bg-primary/10",children:[(0,a.jsx)(j.Z,{className:"mr-1 h-3.5 w-3.5"}),"Edit"]}),(0,a.jsxs)(y.z,{variant:"ghost",size:"sm",onClick:()=>ec(e.id),className:"hover:bg-destructive/10 hover:text-destructive",children:[(0,a.jsx)(g.Z,{className:"mr-1 h-3.5 w-3.5"}),"Remove"]})]})]},e.id))})})]}),(0,a.jsx)(I,{open:Y,onClose:()=>$(!1),onSelect:e=>{let s=Array.from(new Set([...L,...e]));if(s.length>500){P({title:"Too many test cases",description:"Maximum 500 test cases allowed per eval set.",variant:"destructive"});return}for(let e of(console.log("newTestCases",s),s))ed({variables:{id:e,data:{eval_set_id:A}}});er(),$(!1)},excludeIds:L}),(0,a.jsx)(O.F,{open:W,onClose:()=>H(!1),evalSetId:A,onSuccess:()=>{H(!1),er(),ea()},testCase:J}),(0,a.jsx)(b.aR,{open:!!K,onOpenChange:e=>!e&&G(null),children:(0,a.jsxs)(b._T,{children:[(0,a.jsxs)(b.fY,{children:[(0,a.jsx)(b.f$,{children:"Remove test case from eval set?"}),(0,a.jsx)(b.yT,{children:"This will remove the test case from this eval set. The test case itself will not be deleted and can be added back later."})]}),(0,a.jsxs)(b.xo,{children:[(0,a.jsx)(b.le,{children:"Cancel"}),(0,a.jsx)(b.OL,{onClick:()=>{K&&ed({variables:{id:K,data:{eval_set_id:null}},onCompleted:()=>{P({title:"Test case removed",description:"The test case has been removed from this eval set."}),er(),G(null)}})},children:"Remove"})]})]})})]})}},19060:function(e,s,t){"use strict";t.d(s,{X:function(){return c}});var a=t(57437),l=t(9270),r=t(30401),i=t(2265),n=t(94508);let c=i.forwardRef((e,s)=>{let{className:t,...i}=e;return(0,a.jsx)(l.fC,{ref:s,className:(0,n.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",t),...i,children:(0,a.jsx)(l.z$,{className:(0,n.cn)("flex items-center justify-center text-current"),children:(0,a.jsx)(r.Z,{className:"size-4"})})})});c.displayName=l.fC.displayName},45554:function(e,s,t){"use strict";t.d(s,{Z:function(){return a}});let a=(0,t(39763).Z)("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]])},88893:function(e,s,t){"use strict";t.d(s,{Z:function(){return a}});let a=(0,t(39763).Z)("Pen",[["path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z",key:"5qss01"}]])},33276:function(e,s,t){"use strict";t.d(s,{Z:function(){return a}});let a=(0,t(39763).Z)("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]])},83229:function(e,s,t){"use strict";t.d(s,{Z:function(){return a}});let a=(0,t(39763).Z)("Save",[["path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z",key:"1owoqh"}],["polyline",{points:"17 21 17 13 7 13 7 21",key:"1md35c"}],["polyline",{points:"7 3 7 8 15 8",key:"8nz8an"}]])},73247:function(e,s,t){"use strict";t.d(s,{Z:function(){return a}});let a=(0,t(39763).Z)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},9270:function(e,s,t){"use strict";t.d(s,{fC:function(){return b},z$:function(){return k}});var a=t(2265),l=t(98575),r=t(73966),i=t(6741),n=t(80886),c=t(6718),d=t(90420),o=t(71599),h=t(66840),m=t(57437),u="Checkbox",[x,v]=(0,r.b)(u),[f,p]=x(u);function j(e){let{__scopeCheckbox:s,checked:t,children:l,defaultChecked:r,disabled:i,form:c,name:d,onCheckedChange:o,required:h,value:x="on",internal_do_not_use_render:v}=e,[p,j]=(0,n.T)({prop:t,defaultProp:null!=r&&r,onChange:o,caller:u}),[g,N]=a.useState(null),[b,y]=a.useState(null),k=a.useRef(!1),w=!g||!!c||!!g.closest("form"),C={checked:p,disabled:i,setChecked:j,control:g,setControl:N,name:d,form:c,value:x,hasConsumerStoppedPropagationRef:k,required:h,defaultChecked:!Z(r)&&r,isFormControl:w,bubbleInput:b,setBubbleInput:y};return(0,m.jsx)(f,{scope:s,...C,children:"function"==typeof v?v(C):l})}var g="CheckboxTrigger",N=a.forwardRef((e,s)=>{let{__scopeCheckbox:t,onKeyDown:r,onClick:n,...c}=e,{control:d,value:o,disabled:u,checked:x,required:v,setControl:f,setChecked:j,hasConsumerStoppedPropagationRef:N,isFormControl:b,bubbleInput:y}=p(g,t),k=(0,l.e)(s,f),w=a.useRef(x);return a.useEffect(()=>{let e=null==d?void 0:d.form;if(e){let s=()=>j(w.current);return e.addEventListener("reset",s),()=>e.removeEventListener("reset",s)}},[d,j]),(0,m.jsx)(h.WV.button,{type:"button",role:"checkbox","aria-checked":Z(x)?"mixed":x,"aria-required":v,"data-state":_(x),"data-disabled":u?"":void 0,disabled:u,value:o,...c,ref:k,onKeyDown:(0,i.M)(r,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,i.M)(n,e=>{j(e=>!!Z(e)||!e),y&&b&&(N.current=e.isPropagationStopped(),N.current||e.stopPropagation())})})});N.displayName=g;var b=a.forwardRef((e,s)=>{let{__scopeCheckbox:t,name:a,checked:l,defaultChecked:r,required:i,disabled:n,value:c,onCheckedChange:d,form:o,...h}=e;return(0,m.jsx)(j,{__scopeCheckbox:t,checked:l,defaultChecked:r,disabled:n,required:i,onCheckedChange:d,name:a,form:o,value:c,internal_do_not_use_render:e=>{let{isFormControl:a}=e;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(N,{...h,ref:s,__scopeCheckbox:t}),a&&(0,m.jsx)(C,{__scopeCheckbox:t})]})}})});b.displayName=u;var y="CheckboxIndicator",k=a.forwardRef((e,s)=>{let{__scopeCheckbox:t,forceMount:a,...l}=e,r=p(y,t);return(0,m.jsx)(o.z,{present:a||Z(r.checked)||!0===r.checked,children:(0,m.jsx)(h.WV.span,{"data-state":_(r.checked),"data-disabled":r.disabled?"":void 0,...l,ref:s,style:{pointerEvents:"none",...e.style}})})});k.displayName=y;var w="CheckboxBubbleInput",C=a.forwardRef((e,s)=>{let{__scopeCheckbox:t,...r}=e,{control:i,hasConsumerStoppedPropagationRef:n,checked:o,defaultChecked:u,required:x,disabled:v,name:f,value:j,form:g,bubbleInput:N,setBubbleInput:b}=p(w,t),y=(0,l.e)(s,b),k=(0,c.D)(o),C=(0,d.t)(i);a.useEffect(()=>{if(!N)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,s=!n.current;if(k!==o&&e){let t=new Event("click",{bubbles:s});N.indeterminate=Z(o),e.call(N,!Z(o)&&o),N.dispatchEvent(t)}},[N,k,o,n]);let _=a.useRef(!Z(o)&&o);return(0,m.jsx)(h.WV.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=u?u:_.current,required:x,disabled:v,name:f,value:j,form:g,...r,tabIndex:-1,ref:y,style:{...r.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function Z(e){return"indeterminate"===e}function _(e){return Z(e)?"indeterminate":e?"checked":"unchecked"}C.displayName=w}},function(e){e.O(0,[6840,329,8310,3954,9851,7629,7093,6148,847,1942,7648,7823,8068,5799,4567,605,85,4957,7398,1785,3397,1713,9141,6152,3145,428,6373,3832,4205,5978,2971,2117,1744],function(){return e(e.s=74083)}),_N_E=e.O()}]);
|
|
2
|
+
//# sourceMappingURL=page-2238f1fb73d93328.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/chunks/app/(application)/evals/[id]/page-2238f1fb73d93328.js","mappings":"sFAAAA,QAAAC,OAAA,GAAAC,IAAA,CAA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,EAASA,CAACgC,KAAA,CAAV,CACC9B,KAAK,WACL,cAAW,GACXlC,eAAgBA,MAAAA,EAAAA,EAAkBoE,EAAkBvC,OAAA,CACpD3B,SAAAA,EACAvH,SAAAA,EACA5D,KAAAA,EACAmC,MAAAA,EACA+I,KAAAA,EACC,GAAGzB,CAAA,CACJ6F,SAAU,GACV9F,IAAKkD,EACLyB,MAAO,CACL,GAAG1E,EAAM0E,KAAA,CACT,GAAGI,CAAA,CACHgB,SAAU,WACVnB,cAAe,OACfoB,QAAS,EACTC,OAAQ,EAIRC,UAAW,mBACb,GAGN,GAWF,SAASxD,EAAgBzJ,CAAA,EACvB,MAAOA,kBAAAA,CACT,CAEA,SAAS2K,EAAS3K,CAAA,EAChB,OAAOyJ,EAAgBzJ,GAAW,gBAAkBA,EAAU,UAAY,WAC5E,CAdAmL,EAAoB9D,WAAA,CAAcuE","sources":["webpack://_N_E/?c683","webpack://_N_E/./app/(application)/evals/[id]/components/test-case-selection-modal.tsx","webpack://_N_E/./app/(application)/evals/[id]/page.tsx","webpack://_N_E/./components/ui/checkbox.tsx","webpack://_N_E/../../../src/icons/list-checks.ts","webpack://_N_E/../../../src/icons/pen.ts","webpack://_N_E/../../../src/icons/play.ts","webpack://_N_E/../../../src/icons/save.ts","webpack://_N_E/../../../src/icons/search.ts","webpack://_N_E/../src/checkbox.tsx"],"sourcesContent":["import(/* webpackMode: \"eager\" */ \"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/evals/[id]/page.tsx\");\n","\"use client\";\n\nimport { useState, useEffect } from \"react\";\nimport { useQuery } from \"@apollo/client\";\nimport { Search } from \"lucide-react\";\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n} from \"@/components/ui/dialog\";\nimport { Button } from \"@/components/ui/button\";\nimport { Input } from \"@/components/ui/input\";\nimport { Checkbox } from \"@/components/ui/checkbox\";\nimport { ScrollArea } from \"@/components/ui/scroll-area\";\nimport { Badge } from \"@/components/ui/badge\";\nimport { Skeleton } from \"@/components/ui/skeleton\";\nimport { GET_TEST_CASES } from \"@/queries/queries\";\nimport { Label } from \"@/components/ui/label\"\nimport { Alert, AlertDescription } from \"@/components/ui/alert\"\n\ninterface TestCaseSelectionModalProps {\n open: boolean;\n onClose: () => void;\n onSelect: (testCaseIds: string[]) => void;\n excludeIds?: string[];\n}\n\nexport function TestCaseSelectionModal({\n open,\n onClose,\n onSelect,\n excludeIds = [],\n}: TestCaseSelectionModalProps) {\n const [search, setSearch] = useState(\"\");\n const [selectedIds, setSelectedIds] = useState<string[]>([]);\n\n const { loading, data } = useQuery(GET_TEST_CASES, {\n variables: {\n page: 1,\n limit: 100,\n filters: search ? [{ AND: [{ name: { contains: search } }, { eval_set_id: { eq: null } }] }] : [{ eval_set_id: { eq: null } }],\n },\n skip: !open,\n });\n\n useEffect(() => {\n if (!open) {\n setSelectedIds([]);\n setSearch(\"\");\n }\n }, [open]);\n\n const testCases = data?.test_casesPagination?.items || [];\n const availableTestCases = testCases.filter((tc: any) => !excludeIds.includes(tc.id));\n\n const handleToggle = (id: string) => {\n setSelectedIds(prev =>\n prev.includes(id)\n ? prev.filter(x => x !== id)\n : [...prev, id]\n );\n };\n\n const handleSelectAll = () => {\n if (selectedIds.length === availableTestCases.length) {\n setSelectedIds([]);\n } else {\n setSelectedIds(availableTestCases.map((tc: any) => tc.id));\n }\n };\n\n const handleSubmit = () => {\n onSelect(selectedIds);\n };\n\n return (\n <Dialog open={open} onOpenChange={onClose}>\n <DialogContent className=\"max-w-3xl max-h-[80vh] flex flex-col\">\n <DialogHeader>\n <DialogTitle>Add Test Cases</DialogTitle>\n <DialogDescription>\n Select test cases to add to this eval set. Already added test cases are hidden.\n </DialogDescription>\n <Alert variant=\"destructive\" className=\"mt-3\">\n <AlertDescription>\n <strong>Note:</strong> You can only add test cases that are not already in an eval set. Remove them from another eval set first if you want to add them to a new eval set.\n </AlertDescription>\n </Alert>\n </DialogHeader>\n\n <div className=\"space-y-4 flex-1 overflow-hidden flex flex-col\">\n {/* Search */}\n <div className=\"relative\">\n <Search className=\"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground\" />\n <Input\n placeholder=\"Search test cases by name...\"\n value={search}\n onChange={(e) => setSearch(e.target.value)}\n className=\"pl-9\"\n />\n </div>\n\n {/* Select All */}\n {availableTestCases.length > 0 && (\n <div className=\"flex items-center gap-2 px-1\">\n <Checkbox\n id=\"select-all-test-cases\"\n checked={selectedIds.length === availableTestCases.length && availableTestCases.length > 0}\n onCheckedChange={handleSelectAll}\n />\n <Label htmlFor=\"select-all-test-cases\" className=\"text-sm text-muted-foreground\">\n Select all ({selectedIds.length} selected)\n </Label>\n </div>\n )}\n\n {/* Test Cases List */}\n <ScrollArea className=\"flex-1 border rounded-lg\">\n <div>\n {loading ? (\n Array.from({ length: 3 }).map((_, i) => (\n <Skeleton key={i} className=\"h-10 w-full\" />\n ))\n ) : availableTestCases.length === 0 ? (\n <div className=\"text-center py-12 text-muted-foreground mx-5\">\n {search ? \"No test cases found matching your search.\" : \"No test cases available to add.\"}\n </div>\n ) : (\n availableTestCases.map((testCase: any) => (\n <div\n key={testCase.id}\n onClick={() => {\n handleToggle(testCase.id)\n }}\n className=\"flex items-start gap-3 p-3 hover:bg-muted/50\"\n >\n <Checkbox\n checked={selectedIds.includes(testCase.id)}\n id={`select-test-case-${testCase.id}`}\n onCheckedChange={() => handleToggle(testCase.id)}\n />\n <Label htmlFor={`select-test-case-${testCase.id}`} className=\"text-sm text-muted-foreground flex flex-col\">\n <span>{testCase.name}</span>\n <small>{testCase.description}</small>\n </Label>\n </div>\n ))\n )}\n </div>\n </ScrollArea>\n </div>\n\n <DialogFooter>\n <Button variant=\"outline\" onClick={onClose}>\n Cancel\n </Button>\n <Button\n onClick={handleSubmit}\n disabled={selectedIds.length === 0}\n >\n Add {selectedIds.length} Test Case{selectedIds.length !== 1 ? 's' : ''}\n </Button>\n </DialogFooter>\n </DialogContent>\n </Dialog>\n );\n}\n","\"use client\";\n\nimport { useContext, useState } from \"react\";\nimport { useParams, useRouter } from \"next/navigation\";\nimport { useQuery, useMutation } from \"@apollo/client\";\nimport { UserContext } from \"@/app/(application)/authenticated\";\nimport { Brain, ArrowLeft, Plus, Save, Loader2, Play, FileText, ListChecks, Sparkles, Edit2, X } from \"lucide-react\";\nimport { Alert, AlertDescription } from \"@/components/ui/alert\";\nimport { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle } from \"@/components/ui/alert-dialog\";\nimport { Button } from \"@/components/ui/button\";\nimport { Input } from \"@/components/ui/input\";\nimport { Label } from \"@/components/ui/label\";\nimport { Textarea } from \"@/components/ui/textarea\";\nimport { Card, CardContent, CardDescription, CardHeader, CardTitle } from \"@/components/ui/card\";\nimport { Badge } from \"@/components/ui/badge\";\nimport { Skeleton } from \"@/components/ui/skeleton\";\nimport { useToast } from \"@/components/ui/use-toast\";\nimport { GET_EVAL_SET_BY_ID, UPDATE_EVAL_SET, GET_TEST_CASES, UPDATE_TEST_CASE } from \"@/queries/queries\";\nimport { TestCaseSelectionModal } from \"./components/test-case-selection-modal\";\nimport { TestCaseModal } from \"../cases/components/test-case-modal\";\nimport { TestCase } from \"@/types/models/test-case\";\n\nexport const dynamic = \"force-dynamic\";\n\nexport default function EvalSetEditorPage() {\n const params = useParams();\n const router = useRouter();\n const { user } = useContext(UserContext);\n const { toast } = useToast();\n const evalSetId = params.id as string;\n\n const [name, setName] = useState(\"\");\n const [description, setDescription] = useState(\"\");\n const [testCases, setTestCases] = useState<string[]>([]);\n const [showSelectionModal, setShowSelectionModal] = useState(false);\n const [showCreateModal, setShowCreateModal] = useState(false);\n const [testCaseToRemove, setTestCaseToRemove] = useState<string | null>(null);\n const [editingTestCase, setEditingTestCase] = useState<TestCase | null>(null);\n\n // Check if user has evals access\n const hasEvalsAccess = user.super_admin || user.role?.evals === \"read\" || user.role?.evals === \"write\";\n const canWrite = user.super_admin || user.role?.evals === \"write\";\n\n // Fetch eval set\n const { loading: loadingEvalSet, data: evalSetData, refetch } = useQuery(GET_EVAL_SET_BY_ID, {\n variables: { id: evalSetId },\n skip: !evalSetId,\n onCompleted: (data) => {\n if (data?.eval_setById) {\n setName(data.eval_setById.name);\n setDescription(data.eval_setById.description || \"\");\n }\n },\n });\n\n // Fetch test cases details\n const { data: testCasesData, refetch: refetchTestCases } = useQuery(GET_TEST_CASES, {\n variables: {\n page: 1,\n limit: 500,\n filters: [{ eval_set_id: { eq: evalSetId } }],\n }\n });\n\n const [updateEvalSet, { loading: updating }] = useMutation(UPDATE_EVAL_SET, {\n onCompleted: () => {\n toast({\n title: \"Eval set updated\",\n description: \"The eval set has been successfully updated.\",\n });\n refetch();\n },\n onError: (error) => {\n toast({\n title: \"Failed to update eval set\",\n description: error.message,\n variant: \"destructive\",\n });\n },\n });\n\n const handleSave = () => {\n if (!name.trim()) {\n toast({\n title: \"Validation error\",\n description: \"Name is required.\",\n variant: \"destructive\",\n });\n return;\n }\n\n if (testCases.length > 500) {\n toast({\n title: \"Validation error\",\n description: \"Maximum 500 test cases allowed per eval set.\",\n variant: \"destructive\",\n });\n return;\n }\n\n updateEvalSet({\n variables: {\n id: evalSetId,\n data: {\n name: name.trim(),\n description: description.trim() || null,\n },\n },\n });\n };\n\n const handleRemoveTestCase = (testCaseId: string) => {\n setTestCaseToRemove(testCaseId);\n };\n\n const confirmRemoveTestCase = () => {\n if (!testCaseToRemove) return;\n\n updateTestCase({\n variables: {\n id: testCaseToRemove,\n data: { eval_set_id: null },\n },\n onCompleted: () => {\n toast({\n title: \"Test case removed\",\n description: \"The test case has been removed from this eval set.\",\n });\n refetchTestCases();\n setTestCaseToRemove(null);\n },\n });\n };\n\n const [updateTestCase, { loading: updatingTestCase }] = useMutation(UPDATE_TEST_CASE, {\n onError: (error) => {\n toast({\n title: \"Failed to update test case\",\n description: error.message,\n variant: \"destructive\",\n });\n },\n });\n\n const handleAddTestCases = (selectedTestCaseIds: string[]) => {\n // Add new test cases, avoiding duplicates\n const newTestCases = Array.from(new Set([...testCases, ...selectedTestCaseIds]));\n\n if (newTestCases.length > 500) {\n toast({\n title: \"Too many test cases\",\n description: \"Maximum 500 test cases allowed per eval set.\",\n variant: \"destructive\",\n });\n return;\n }\n\n console.log(\"newTestCases\", newTestCases);\n\n for (const testCaseId of newTestCases) {\n updateTestCase({\n variables: {\n id: testCaseId,\n data: { eval_set_id: evalSetId },\n },\n });\n }\n\n refetchTestCases();\n setShowSelectionModal(false);\n };\n\n if (!hasEvalsAccess) {\n return (\n <div className=\"flex h-full flex-1 flex-col space-y-8 p-8\">\n <Alert variant=\"destructive\">\n <Brain className=\"h-4 w-4\" />\n <AlertDescription>\n You don't have permission to access Eval Sets. Contact your administrator to request access.\n </AlertDescription>\n </Alert>\n </div>\n );\n }\n\n if (loadingEvalSet) {\n return (\n <div className=\"flex h-full flex-1 flex-col space-y-8 p-8\">\n <Skeleton className=\"h-8 w-64\" />\n <Skeleton className=\"h-64 w-full\" />\n </div>\n );\n }\n\n const testCasesList = testCasesData?.test_casesPagination?.items || [];\n\n return (\n <div className=\"flex h-full flex-1 flex-col space-y-8 p-8\">\n {/* Header with gradient accent */}\n <div className=\"relative\">\n <div className=\"absolute inset-0 bg-primary/5 rounded-lg blur-xl\" />\n <div className=\"relative flex items-center justify-between p-6 border rounded-lg bg-card/50 backdrop-blur-sm\">\n <div className=\"flex items-center gap-4\">\n <Button\n variant=\"ghost\"\n size=\"icon\"\n onClick={() => router.push(\"/evals\")}\n >\n <ArrowLeft className=\"h-4 w-4\" />\n </Button>\n <div className=\"flex items-center gap-3\">\n <div className=\"p-2 rounded-lg bg-primary\">\n <Sparkles className=\"h-5 w-5 text-primary-foreground\" />\n </div>\n <div>\n <h2 className=\"text-2xl font-bold tracking-tight\">Edit Eval Set</h2>\n <p className=\"text-muted-foreground\">\n Configure test cases for this evaluation set.\n </p>\n </div>\n </div>\n </div>\n <div className=\"flex gap-2\">\n <Button\n variant=\"outline\"\n onClick={() => router.push(`/evals/${evalSetId}/runs`)}\n >\n <Play className=\"mr-2 h-4 w-4\" />\n View Runs\n </Button>\n {canWrite && (\n <Button onClick={handleSave} disabled={updating}>\n {updating ? (\n <Loader2 className=\"mr-2 h-4 w-4 animate-spin\" />\n ) : (\n <Save className=\"mr-2 h-4 w-4\" />\n )}\n Save Changes\n </Button>\n )}\n </div>\n </div>\n </div>\n\n {/* Basic Info */}\n <Card className=\"shadow-lg\">\n <CardHeader className=\"border-b bg-accent/50\">\n <div className=\"flex items-center gap-3\">\n <div className=\"p-2 rounded-lg bg-primary/10\">\n <FileText className=\"h-4 w-4 text-primary\" />\n </div>\n <div>\n <CardTitle>Basic Information</CardTitle>\n <CardDescription>\n Edit the name and description of this eval set.\n </CardDescription>\n </div>\n </div>\n </CardHeader>\n <CardContent className=\"space-y-4 pt-6\">\n <div className=\"grid gap-2\">\n <Label htmlFor=\"name\" className=\"text-sm font-semibold\">Name *</Label>\n <Input\n id=\"name\"\n placeholder=\"Eval set name\"\n value={name}\n onChange={(e) => setName(e.target.value)}\n disabled={!canWrite}\n />\n </div>\n <div className=\"grid gap-2\">\n <Label htmlFor=\"description\" className=\"text-sm font-semibold\">Description</Label>\n <Textarea\n id=\"description\"\n placeholder=\"Describe what this eval set tests...\"\n value={description}\n onChange={(e) => setDescription(e.target.value)}\n disabled={!canWrite}\n rows={3}\n />\n </div>\n </CardContent>\n </Card>\n\n {/* Test Cases */}\n <Card className=\"shadow-lg\">\n <CardHeader className=\"border-b bg-accent/50\">\n <div className=\"flex items-center justify-between\">\n <div className=\"flex items-center gap-3\">\n <div className=\"p-2 rounded-lg bg-primary/10\">\n <ListChecks className=\"h-4 w-4 text-primary\" />\n </div>\n <div>\n <CardTitle>Test Cases</CardTitle>\n <CardDescription>\n Add up to 500 test cases to this eval set.{\" \"}\n <Badge variant=\"secondary\" className=\"ml-1\">\n {testCasesList.length}/500\n </Badge>\n </CardDescription>\n </div>\n </div>\n {canWrite && (\n <div className=\"flex gap-2\">\n <Button\n variant=\"outline\"\n size=\"sm\"\n onClick={() => setShowCreateModal(true)}\n >\n <Plus className=\"mr-2 h-4 w-4\" />\n Create New\n </Button>\n <Button\n variant=\"secondary\"\n size=\"sm\"\n onClick={() => setShowSelectionModal(true)}\n disabled={testCases.length >= 500}\n >\n <Plus className=\"mr-2 h-4 w-4\" />\n Add Existing\n </Button>\n </div>\n )}\n </div>\n </CardHeader>\n <CardContent className=\"pt-6\">\n {testCasesList.length === 0 ? (\n <div className=\"flex flex-col items-center justify-center py-16 text-center\">\n <div className=\"p-4 rounded-full bg-primary/10 mb-4\">\n <ListChecks className=\"h-8 w-8 text-primary\" />\n </div>\n <h3 className=\"text-lg font-semibold mb-2\">No test cases yet</h3>\n <p className=\"text-muted-foreground max-w-sm\">\n Click \"Create New\" or \"Add Existing\" to start building your evaluation set.\n </p>\n </div>\n ) : (\n <div className=\"space-y-3\">\n {testCasesList.map((testCase: any) => (\n <div\n key={testCase.id}\n className=\"group relative flex items-center justify-between p-4 border rounded-lg transition-all hover:shadow-md hover:border-primary/50 hover:scale-[1.01] hover:bg-accent/30\"\n >\n <div className=\"flex-1\">\n <div className=\"flex items-center gap-2\">\n <div className=\"p-1.5 rounded bg-primary/10\">\n <FileText className=\"h-3.5 w-3.5 text-primary\" />\n </div>\n <span className=\"font-semibold\">{testCase.name}</span>\n </div>\n {testCase.description && (\n <p className=\"text-sm text-muted-foreground mt-2 ml-8\">\n {testCase.description}\n </p>\n )}\n </div>\n {canWrite && (\n <div className=\"flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity\">\n <Button\n variant=\"ghost\"\n size=\"sm\"\n onClick={() => {\n setEditingTestCase(testCase);\n setShowCreateModal(true);\n }}\n className=\"hover:bg-primary/10\"\n >\n <Edit2 className=\"mr-1 h-3.5 w-3.5\" />\n Edit\n </Button>\n <Button\n variant=\"ghost\"\n size=\"sm\"\n onClick={() => handleRemoveTestCase(testCase.id)}\n className=\"hover:bg-destructive/10 hover:text-destructive\"\n >\n <X className=\"mr-1 h-3.5 w-3.5\" />\n Remove\n </Button>\n </div>\n )}\n </div>\n ))}\n </div>\n )}\n </CardContent>\n </Card>\n\n {/* Modals */}\n <TestCaseSelectionModal\n open={showSelectionModal}\n onClose={() => setShowSelectionModal(false)}\n onSelect={handleAddTestCases}\n excludeIds={testCases}\n />\n\n <TestCaseModal\n open={showCreateModal}\n onClose={() => setShowCreateModal(false)}\n evalSetId={evalSetId}\n onSuccess={() => {\n setShowCreateModal(false);\n // Refetch to get the new test case in the list\n refetchTestCases();\n refetch();\n }}\n testCase={editingTestCase}\n />\n\n {/* Remove Test Case Confirmation Dialog */}\n <AlertDialog open={!!testCaseToRemove} onOpenChange={(open) => !open && setTestCaseToRemove(null)}>\n <AlertDialogContent>\n <AlertDialogHeader>\n <AlertDialogTitle>Remove test case from eval set?</AlertDialogTitle>\n <AlertDialogDescription>\n This will remove the test case from this eval set. The test case itself will not be deleted and can be added back later.\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel>Cancel</AlertDialogCancel>\n <AlertDialogAction onClick={confirmRemoveTestCase}>Remove</AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n </div>\n );\n}\n","\"use client\";\n\nimport * as CheckboxPrimitive from \"@radix-ui/react-checkbox\";\nimport { Check } from \"lucide-react\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst Checkbox = React.forwardRef<\n React.ElementRef<typeof CheckboxPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n className={cn(\n \"peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground\",\n className,\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator\n className={cn(\"flex items-center justify-center text-current\")}\n >\n <Check className=\"size-4\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n));\nCheckbox.displayName = CheckboxPrimitive.Root.displayName;\n\nexport { Checkbox };\n","import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name ListChecks\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/list-checks\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 ListChecks = createLucideIcon('ListChecks', [\n ['path', { d: 'm3 17 2 2 4-4', key: '1jhpwq' }],\n ['path', { d: 'm3 7 2 2 4-4', key: '1obspn' }],\n ['path', { d: 'M13 6h8', key: '15sg57' }],\n ['path', { d: 'M13 12h8', key: 'h98zly' }],\n ['path', { d: 'M13 18h8', key: 'oe0vm4' }],\n]);\n\nexport default ListChecks;\n","import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Pen\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/pen\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 Pen = createLucideIcon('Pen', [\n ['path', { d: 'M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z', key: '5qss01' }],\n]);\n\nexport default Pen;\n","import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Play\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/play\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 Play = createLucideIcon('Play', [\n ['polygon', { points: '5 3 19 12 5 21 5 3', key: '191637' }],\n]);\n\nexport default Play;\n","import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Save\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/save\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 Save = createLucideIcon('Save', [\n ['path', { d: 'M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z', key: '1owoqh' }],\n ['polyline', { points: '17 21 17 13 7 13 7 21', key: '1md35c' }],\n ['polyline', { points: '7 3 7 8 15 8', key: '8nz8an' }],\n]);\n\nexport default Save;\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 * 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"],"names":["Promise","resolve","then","__webpack_require__","bind","TestCaseSelectionModal","param","data","open","onClose","onSelect","excludeIds","search","setSearch","useState","selectedIds","setSelectedIds","loading","useQuery","GET_TEST_CASES","variables","page","limit","filters","AND","name","contains","eval_set_id","eq","skip","useEffect","availableTestCases","testCases","test_casesPagination","items","filter","includes","tc","id","handleToggle","prev","x","jsx_runtime","jsx","Dialog","onOpenChange","jsxs","DialogContent","className","DialogHeader","DialogTitle","DialogDescription","Alert","variant","AlertDescription","strong","div","Search","Input","placeholder","value","onChange","e","target","length","Checkbox","checked","onCheckedChange","map","Label","htmlFor","ScrollArea","Array","from","_","i","Skeleton","onClick","testCase","concat","span","small","description","DialogFooter","Button","disabled","dynamic","EvalSetEditorPage","user","testCasesData","params","useParams","router","useRouter","useContext","UserContext","toast","useToast","evalSetId","setName","setDescription","setTestCases","showSelectionModal","setShowSelectionModal","showCreateModal","setShowCreateModal","testCaseToRemove","setTestCaseToRemove","editingTestCase","setEditingTestCase","hasEvalsAccess","super_admin","role","evals","canWrite","loadingEvalSet","evalSetData","refetch","GET_EVAL_SET_BY_ID","onCompleted","eval_setById","refetchTestCases","updateEvalSet","updating","useMutation","UPDATE_EVAL_SET","title","onError","error","message","handleRemoveTestCase","testCaseId","updateTestCase","updatingTestCase","UPDATE_TEST_CASE","Brain","testCasesList","size","push","ArrowLeft","Sparkles","h2","p","Play","trim","Loader2","Save","Card","CardHeader","FileText","CardTitle","CardDescription","CardContent","Textarea","rows","ListChecks","Badge","Plus","h3","Edit2","X","newTestCases","Set","selectedTestCaseIds","console","log","TestCaseModal","onSuccess","AlertDialog","AlertDialogContent","AlertDialogHeader","AlertDialogTitle","AlertDialogDescription","AlertDialogFooter","AlertDialogCancel","AlertDialogAction","React","ref","props","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","CheckboxPrimitive","cn","Check","displayName","createLucideIcon","d","key","Pen","points","cx","cy","r","CHECKBOX_NAME","createCheckboxContext","createCheckboxScope","createContextScope","CheckboxProviderImpl","useCheckboxContext","CheckboxProvider","__scopeCheckbox","checkedProp","children","defaultChecked","form","required","internal_do_not_use_render","setChecked","useControllableState","prop","defaultProp","caller","control","setControl","bubbleInput","setBubbleInput","hasConsumerStoppedPropagationRef","isFormControl","closest","context","isIndeterminate","scope","isFunction","TRIGGER_NAME","CheckboxTrigger","forwardedRef","onKeyDown","checkboxProps","composedRefs","useComposedRefs","initialCheckedStateRef","reset","current","addEventListener","removeEventListener","Primitive","button","type","getState","composeEventHandlers","event","preventDefault","prevChecked","isPropagationStopped","stopPropagation","Fragment","CheckboxBubbleInput","INDICATOR_NAME","CheckboxIndicator","forceMount","indicatorProps","Presence","present","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"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6626],{18098:function(e,t,n){Promise.resolve().then(n.bind(n,57614)),Promise.resolve().then(n.t.bind(n,47960,23)),Promise.resolve().then(n.bind(n,44045)),Promise.resolve().then(n.bind(n,21391)),Promise.resolve().then(n.bind(n,82798)),Promise.resolve().then(n.bind(n,59556)),Promise.resolve().then(n.t.bind(n,59127,23)),Promise.resolve().then(n.t.bind(n,78985,23)),Promise.resolve().then(n.t.bind(n,38713,23))},57614:function(e,t,n){"use strict";n.d(t,{TanstackQueryClientProvider:function(){return u}});var r=n(57437),o=n(21623),i=n(29827);let s=new o.S,u=e=>{let{children:t}=e;return(0,r.jsx)(i.aH,{client:s,children:t})}},44045:function(e,t,n){"use strict";n.d(t,{ConfigContextProvider:function(){return i},E:function(){return o}});var r=n(57437);let o=(0,n(2265).createContext)(null);function i(e){let{children:t,config:n}=e;if(console.log("[EXULU] Config: ",n),!n)throw Error("Config not found");return(0,r.jsx)(o.Provider,{value:n,children:t})}},21391:function(e,t,n){"use strict";var r=n(57437),o=n(44045),i=n(2265);t.default=e=>{let{width:t=64,height:n=32,className:s="",alt:u="Logo"}=e,a=(0,i.useContext)(o.E);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("img",{src:(null==a?void 0:a.backend)+"/logo_dark.png",alt:u,width:t,height:n,className:s+"hidden dark:block invert"}),(0,r.jsx)("img",{src:(null==a?void 0:a.backend)+"/logo_light.png",alt:u,width:t,height:n,className:s+"block dark:hidden"})]})}},82798:function(e,t,n){"use strict";n.d(t,{ThemeProvider:function(){return i}});var r=n(57437),o=n(78298);function i(e){let{children:t,...n}=e;return(0,r.jsx)(o.f,{...n,defaultTheme:"dark",children:t})}n(2265)},59556:function(e,t,n){"use strict";n.d(t,{Toaster:function(){return y}});var r=n(57437),o=n(41915),i=n(90535),s=n(32489),u=n(2265),a=n(94508);let l=o.zt,c=u.forwardRef((e,t)=>{let{className:n,...i}=e;return(0,r.jsx)(o.l_,{ref:t,className:(0,a.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",n),...i})});c.displayName=o.l_.displayName;let d=(0,i.j)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),f=u.forwardRef((e,t)=>{let{className:n,variant:i,...s}=e;return(0,r.jsx)(o.fC,{ref:t,className:(0,a.cn)(d({variant:i}),n),...s})});f.displayName=o.fC.displayName,u.forwardRef((e,t)=>{let{className:n,...i}=e;return(0,r.jsx)(o.aU,{ref:t,className:(0,a.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",n),...i})}).displayName=o.aU.displayName;let m=u.forwardRef((e,t)=>{let{className:n,...i}=e;return(0,r.jsx)(o.x8,{ref:t,className:(0,a.cn)("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",n),"toast-close":"",...i,children:(0,r.jsx)(s.Z,{className:"size-4"})})});m.displayName=o.x8.displayName;let v=u.forwardRef((e,t)=>{let{className:n,...i}=e;return(0,r.jsx)(o.Dx,{ref:t,className:(0,a.cn)("text-sm font-semibold",n),...i})});v.displayName=o.Dx.displayName;let p=u.forwardRef((e,t)=>{let{className:n,...i}=e;return(0,r.jsx)(o.dk,{ref:t,className:(0,a.cn)("text-sm opacity-90",n),...i})});p.displayName=o.dk.displayName;var h=n(77992);function y(){let{toasts:e}=(0,h.pm)();return(0,r.jsxs)(l,{children:[e.map(function(e){let{id:t,title:n,description:o,action:i,...s}=e;return(0,r.jsxs)(f,{...s,children:[(0,r.jsxs)("div",{className:"grid gap-1",children:[n&&(0,r.jsx)(v,{children:n}),o&&(0,r.jsx)(p,{children:o})]}),i,(0,r.jsx)(m,{})]},t)}),(0,r.jsx)(c,{})]})}},77992:function(e,t,n){"use strict";n.d(t,{Am:function(){return d},pm:function(){return f}});var r=n(2265);let o=0,i=new Map,s=e=>{if(i.has(e))return;let t=setTimeout(()=>{i.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);i.set(e,t)},u=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:n}=t;return n?s(n):e.toasts.forEach(e=>{s(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||void 0===n?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},a=[],l={toasts:[]};function c(e){l=u(l,e),a.forEach(e=>{e(l)})}function d(e){let{...t}=e,n=(o=(o+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>c({type:"DISMISS_TOAST",toastId:n});return c({type:"ADD_TOAST",toast:{...t,id:n,open:!0,onOpenChange:e=>{e||r()}}}),{id:n,dismiss:r,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:n}})}}function f(){let[e,t]=r.useState(l);return r.useEffect(()=>(a.push(t),()=>{let e=a.indexOf(t);e>-1&&a.splice(e,1)}),[e]),{...e,toast:d,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},94508:function(e,t,n){"use strict";n.d(t,{cn:function(){return i}});var r=n(61994),o=n(53335);function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.m6)((0,r.W)(t))}},39763:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2265),o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),s=(e,t)=>{let n=(0,r.forwardRef)((n,s)=>{let{color:u="currentColor",size:a=24,strokeWidth:l=2,absoluteStrokeWidth:c,className:d="",children:f,...m}=n;return(0,r.createElement)("svg",{ref:s,...o,width:a,height:a,stroke:u,strokeWidth:c?24*Number(l)/Number(a):l,className:["lucide","lucide-".concat(i(e)),d].join(" "),...m},[...t.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(f)?f:[f]])});return n.displayName="".concat(e),n}},32489:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(39763).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},78298:function(e,t,n){"use strict";n.d(t,{F:function(){return l},f:function(){return c}});var r=n(2265);let o=["light","dark"],i="(prefers-color-scheme: dark)",s="undefined"==typeof window,u=(0,r.createContext)(void 0),a={setTheme:e=>{},themes:[]},l=()=>{var e;return null!==(e=(0,r.useContext)(u))&&void 0!==e?e:a},c=e=>(0,r.useContext)(u)?r.createElement(r.Fragment,null,e.children):r.createElement(f,e),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:s=!0,storageKey:a="theme",themes:l=d,defaultTheme:c=n?"system":"light",attribute:f="data-theme",value:y,children:g,nonce:b})=>{let[w,E]=(0,r.useState)(()=>v(a,c)),[x,N]=(0,r.useState)(()=>v(a)),T=y?Object.values(y):l,C=(0,r.useCallback)(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=h());let i=y?y[r]:r,u=t?p():null,a=document.documentElement;if("class"===f?(a.classList.remove(...T),i&&a.classList.add(i)):i?a.setAttribute(f,i):a.removeAttribute(f),s){let e=o.includes(c)?c:null,t=o.includes(r)?r:e;a.style.colorScheme=t}null==u||u()},[]),S=(0,r.useCallback)(e=>{E(e);try{localStorage.setItem(a,e)}catch(e){}},[e]),O=(0,r.useCallback)(t=>{N(h(t)),"system"===w&&n&&!e&&C("system")},[w,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(i);return e.addListener(O),O(e),()=>e.removeListener(O)},[O]),(0,r.useEffect)(()=>{let e=e=>{e.key===a&&S(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[S]),(0,r.useEffect)(()=>{C(null!=e?e:w)},[e,w]);let k=(0,r.useMemo)(()=>({theme:w,setTheme:S,forcedTheme:e,resolvedTheme:"system"===w?x:w,themes:n?[...l,"system"]:l,systemTheme:n?x:void 0}),[w,S,e,x,n,l]);return r.createElement(u.Provider,{value:k},r.createElement(m,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:s,storageKey:a,themes:l,defaultTheme:c,attribute:f,value:y,children:g,attrs:T,nonce:b}),g)},m=(0,r.memo)(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:s,enableColorScheme:u,defaultTheme:a,value:l,attrs:c,nonce:d})=>{let f="system"===a,m="class"===n?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,v=u?o.includes(a)&&a?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${a}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(e,t=!1,r=!0)=>{let i=l?l[e]:e,s=t?e+"|| ''":`'${i}'`,a="";return u&&r&&!t&&o.includes(e)&&(a+=`d.style.colorScheme = '${e}';`),"class"===n?a+=t||i?`c.add(${s})`:"null":i&&(a+=`d[s](n,${s})`),a},h=e?`!function(){${m}${p(e)}}()`:s?`!function(){try{${m}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${i}',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${l?`var x=${JSON.stringify(l)};`:""}${p(l?"x[e]":"e",!0)}}${f?"":"else{"+p(a,!1,!1)+"}"}${v}}catch(e){}}()`:`!function(){try{${m}var e=localStorage.getItem('${t}');if(e){${l?`var x=${JSON.stringify(l)};`:""}${p(l?"x[e]":"e",!0)}}else{${p(a,!1,!1)};}${v}}catch(t){}}();`;return r.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:h}})},()=>!0),v=(e,t)=>{let n;if(!s){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},p=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},h=e=>(e||(e=window.matchMedia(i)),e.matches?"dark":"light")},47960:function(){},6741:function(e,t,n){"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{M:function(){return r}})},98575:function(e,t,n){"use strict";n.d(t,{F:function(){return i},e:function(){return s}});var r=n(2265);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():o(e[t],null)}}}}function s(...e){return r.useCallback(i(...e),e)}},73966:function(e,t,n){"use strict";n.d(t,{b:function(){return s},k:function(){return i}});var r=n(2265),o=n(57437);function i(e,t){let n=r.createContext(t),i=e=>{let{children:t,...i}=e,s=r.useMemo(()=>i,Object.values(i));return(0,o.jsx)(n.Provider,{value:s,children:t})};return i.displayName=e+"Provider",[i,function(o){let i=r.useContext(n);if(i)return i;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function s(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){let s=r.createContext(i),u=n.length;n=[...n,i];let a=t=>{let{scope:n,children:i,...a}=t,l=n?.[e]?.[u]||s,c=r.useMemo(()=>a,Object.values(a));return(0,o.jsx)(l.Provider,{value:c,children:i})};return a.displayName=t+"Provider",[a,function(n,o){let a=o?.[e]?.[u]||s,l=r.useContext(a);if(l)return l;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},22308:function(e,t,n){"use strict";n.d(t,{I0:function(){return g},XB:function(){return m},fC:function(){return y}});var r,o=n(2265),i=n(6741),s=n(66840),u=n(98575),a=n(26606),l=n(91096),c=n(57437),d="dismissableLayer.update",f=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),m=o.forwardRef((e,t)=>{var n,m;let{disableOutsidePointerEvents:v=!1,onEscapeKeyDown:y,onPointerDownOutside:g,onFocusOutside:b,onInteractOutside:w,onDismiss:E,...x}=e,N=o.useContext(f),[T,C]=o.useState(null),S=null!==(m=null==T?void 0:T.ownerDocument)&&void 0!==m?m:null===(n=globalThis)||void 0===n?void 0:n.document,[,O]=o.useState({}),k=(0,u.e)(t,e=>C(e)),j=Array.from(N.layers),[P]=[...N.layersWithOutsidePointerEventsDisabled].slice(-1),$=j.indexOf(P),_=T?j.indexOf(T):-1,A=N.layersWithOutsidePointerEventsDisabled.size>0,L=_>=$,R=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,a.W)(e),i=o.useRef(!1),s=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){h("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",s.current),s.current=t,n.addEventListener("click",s.current,{once:!0})):t()}else n.removeEventListener("click",s.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",s.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...N.branches].some(e=>e.contains(t));!L||n||(null==g||g(e),null==w||w(e),e.defaultPrevented||null==E||E())},S),D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,a.W)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&h("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;[...N.branches].some(e=>e.contains(t))||(null==b||b(e),null==w||w(e),e.defaultPrevented||null==E||E())},S);return(0,l.e)(e=>{_!==N.layers.size-1||(null==y||y(e),!e.defaultPrevented&&E&&(e.preventDefault(),E()))},S),o.useEffect(()=>{if(T)return v&&(0===N.layersWithOutsidePointerEventsDisabled.size&&(r=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),N.layersWithOutsidePointerEventsDisabled.add(T)),N.layers.add(T),p(),()=>{v&&1===N.layersWithOutsidePointerEventsDisabled.size&&(S.body.style.pointerEvents=r)}},[T,S,v,N]),o.useEffect(()=>()=>{T&&(N.layers.delete(T),N.layersWithOutsidePointerEventsDisabled.delete(T),p())},[T,N]),o.useEffect(()=>{let e=()=>O({});return document.addEventListener(d,e),()=>document.removeEventListener(d,e)},[]),(0,c.jsx)(s.WV.div,{...x,ref:k,style:{pointerEvents:A?L?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.M)(e.onFocusCapture,D.onFocusCapture),onBlurCapture:(0,i.M)(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:(0,i.M)(e.onPointerDownCapture,R.onPointerDownCapture)})});m.displayName="DismissableLayer";var v=o.forwardRef((e,t)=>{let n=o.useContext(f),r=o.useRef(null),i=(0,u.e)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,c.jsx)(s.WV.div,{...e,ref:i})});function p(){let e=new CustomEvent(d);document.dispatchEvent(e)}function h(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,s.jH)(i,u):i.dispatchEvent(u)}v.displayName="DismissableLayerBranch";var y=m,g=v},83832:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(2265),o=n(54887),i=n(66840),s=n(61188),u=n(57437),a=r.forwardRef((e,t)=>{var n,a;let{container:l,...c}=e,[d,f]=r.useState(!1);(0,s.b)(()=>f(!0),[]);let m=l||d&&(null===(a=globalThis)||void 0===a?void 0:null===(n=a.document)||void 0===n?void 0:n.body);return m?o.createPortal((0,u.jsx)(i.WV.div,{...c,ref:t}),m):null});a.displayName="Portal"},71599:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(2265),o=n(98575),i=n(61188),s=e=>{var t,n;let s,a;let{present:l,children:c}=e,d=function(e){var t,n;let[o,s]=r.useState(),a=r.useRef(null),l=r.useRef(e),c=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=u(a.current);c.current="mounted"===d?e:"none"},[d]),(0,i.b)(()=>{let t=a.current,n=l.current;if(n!==e){let r=c.current,o=u(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),l.current=e}},[e,f]),(0,i.b)(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=u(a.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!l.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(c.current=u(a.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{a.current=e?getComputedStyle(e):null,s(e)},[])}}(l),f="function"==typeof c?c({present:d.isPresent}):r.Children.only(c),m=(0,o.e)(d.ref,(s=null===(t=Object.getOwnPropertyDescriptor(f.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in s&&s.isReactWarning?f.ref:(s=null===(n=Object.getOwnPropertyDescriptor(f,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in s&&s.isReactWarning?f.props.ref:f.props.ref||f.ref);return"function"==typeof c||d.isPresent?r.cloneElement(f,{ref:m}):null};function u(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},66840:function(e,t,n){"use strict";n.d(t,{WV:function(){return u},jH:function(){return a}});var r=n(2265),o=n(54887),i=n(37053),s=n(57437),u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,i.Z8)(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:o,...i}=e,u=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(u,{...i,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function a(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},37053:function(e,t,n){"use strict";n.d(t,{Z8:function(){return s},g7:function(){return u},sA:function(){return l}});var r=n(2265),o=n(98575),i=n(57437);function s(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){let e,s;let u=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref,a=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==r.Fragment&&(a.ref=t?(0,o.F)(t,u):u),r.cloneElement(n,a)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:o,...s}=e,u=r.Children.toArray(o),a=u.find(c);if(a){let e=a.props.children,o=u.map(t=>t!==a?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...s,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,i.jsx)(t,{...s,ref:n,children:o})});return n.displayName=`${e}.Slot`,n}var u=s("Slot"),a=Symbol("radix.slottable");function l(e){let t=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=a,t}function c(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}},26606:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var r=n(2265);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},80886:function(e,t,n){"use strict";n.d(t,{T:function(){return u}});var r,o=n(2265),i=n(61188),s=(r||(r=n.t(o,2)))[" useInsertionEffect ".trim().toString()]||i.b;function u({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,u,a]=function({defaultProp:e,onChange:t}){let[n,r]=o.useState(e),i=o.useRef(n),u=o.useRef(t);return s(()=>{u.current=t},[t]),o.useEffect(()=>{i.current!==n&&(u.current?.(n),i.current=n)},[n,i]),[n,r,u]}({defaultProp:t,onChange:n}),l=void 0!==e,c=l?e:i;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,r])}return[c,o.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else u(t)},[l,e,u,a])]}Symbol("RADIX:SYNC_STATE")},91096:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=n(2265),o=n(26606);function i(e,t=globalThis?.document){let n=(0,o.W)(e);r.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}},61188:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(2265),o=globalThis?.document?r.useLayoutEffect:()=>{}},95098:function(e,t,n){"use strict";n.d(t,{C2:function(){return s},TX:function(){return u},fC:function(){return a}});var r=n(2265),o=n(66840),i=n(57437),s=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),u=r.forwardRef((e,t)=>(0,i.jsx)(o.WV.span,{...e,ref:t,style:{...s,...e.style}}));u.displayName="VisuallyHidden";var a=u}},function(e){e.O(0,[3587,3277,9851,8068,6111,2971,2117,1744],function(){return e(e.s=18098)}),_N_E=e.O()}]);
|
|
2
|
+
//# sourceMappingURL=layout-0f416e1b9326e03a.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/chunks/app/(authentication)/layout-0f416e1b9326e03a.js","mappings":"sFAAAA,QAAAC,OAAA,GAAAC,IAAA,CAAAC,EAAAC,IAAA,CAAAD,EAAA,QAEAH,QAAAC,OAAA,GAAAC,IAAA,CAAAC,EAAAE,CAAA,CAAAD,IAAA,CAAAD,EAAA,WAEAH,QAAAC,OAAA,GAAAC,IAAA,CAAAC,EAAAC,IAAA,CAAAD,EAAA,QAEAH,QAAAC,OAAA,GAAAC,IAAA,CAAAC,EAAAC,IAAA,CAAAD,EAAA,QAEAH,QAAAC,OAAA,GAAAC,IAAA,CAAAC,EAAAC,IAAA,CAAAD,EAAA,QAEAH,QAAAC,OAAA,GAAAC,IAAA,CAAAC,EAAAC,IAAA,CAAAD,EAAA,QAEAH,QAAAC,OAAA,GAAAC,IAAA,CAAAC,EAAAE,CAAA,CAAAD,IAAA,CAAAD,EAAA,WAEAH,QAAAC,OAAA,GAAAC,IAAA,CAAAC,EAAAE,CAAA,CAAAD,IAAA,CAAAD,EAAA,WAEAH,QAAAC,OAAA,GAAAC,IAAA,CAAAC,EAAAE,CAAA,CAAAD,IAAA,CAAAD,EAAA,8ICZA,IAAMG,EAAc,IAAIC,EAAAA,CAAWA,CAEtBC,EAA8B,OAAC,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AAA,iHCpEA,SAAA7E,EAAA6I,CAAA,CAAAlL,EAAAT,YAAA7F,QAAA,EACA,IAAA+F,EAA0B,GAAA0L,EAAAC,CAAA,EAAcF,GACtC7T,EAAAmD,SAAe,MACjB,IAAA6Q,EAAA,IACA,WAAA9O,EAAAvF,GAAA,EACAyI,EAAAlD,EAEA,EAEA,OADAyD,EAAAnF,gBAAA,WAAAwQ,EAAA,CAA+DC,QAAA,KAC/D,IAAAtL,EAAAlF,mBAAA,WAAAuQ,EAAA,CAA+EC,QAAA,IAC/E,EAAG,CAAA7L,EAAAO,EAAA,CACH,oFCZAuL,EAAAhM,YAAA7F,SAA8CrC,EAAAuM,eAAqB,MACnE,2JCCA4H,EAAAtS,OAAAuS,MAAA,EAEAC,SAAA,WACAC,OAAA,EACAhc,MAAA,EACAC,OAAA,EACAgc,QAAA,EACAC,OAAA,GACAC,SAAA,SACAC,KAAA,mBACAC,WAAA,SACAC,SAAA,QACA,GAEAC,EAAqB7U,EAAAlB,UAAgB,CACrC,CAAA5F,EAAA+O,IAC2B,GAAA/B,EAAAxO,GAAA,EACrBod,EAAAC,EAAS,CAAAC,IAAA,CACf,CACA,GAAA9b,CAAA,CACAO,IAAAwO,EACApF,MAAA,CAAiB,GAAAsR,CAAA,IAAAjb,EAAA2J,KAAA,CACjB,GAIAgS,CAAAA,EAAAjb,WAAA,CAbA,iBAcA,IAAAmS,EAAA8I","sources":["webpack://_N_E/?0969","webpack://_N_E/./app/(application)/query-client.tsx","webpack://_N_E/./components/config-context.tsx","webpack://_N_E/./components/logo.tsx","webpack://_N_E/./components/theme-provider.tsx","webpack://_N_E/./components/ui/toast.tsx","webpack://_N_E/./components/ui/toaster.tsx","webpack://_N_E/./components/ui/use-toast.ts","webpack://_N_E/./lib/utils.ts","webpack://_N_E/../../src/defaultAttributes.ts","webpack://_N_E/../../src/createLucideIcon.ts","webpack://_N_E/../../../src/icons/x.ts","webpack://_N_E/./node_modules/next-themes/dist/index.module.js","webpack://_N_E/./app/globals.css","webpack://_N_E/./node_modules/@radix-ui/primitive/dist/index.mjs","webpack://_N_E/./node_modules/@radix-ui/react-compose-refs/dist/index.mjs","webpack://_N_E/./node_modules/@radix-ui/react-context/dist/index.mjs","webpack://_N_E/../src/dismissable-layer.tsx","webpack://_N_E/../src/portal.tsx","webpack://_N_E/../src/presence.tsx","webpack://_N_E/../src/use-state-machine.tsx","webpack://_N_E/./node_modules/@radix-ui/react-primitive/dist/index.mjs","webpack://_N_E/./node_modules/@radix-ui/react-slot/dist/index.mjs","webpack://_N_E/./node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs","webpack://_N_E/./node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs","webpack://_N_E/./node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs","webpack://_N_E/./node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs","webpack://_N_E/./node_modules/@radix-ui/react-visually-hidden/dist/index.mjs"],"sourcesContent":["import(/* webpackMode: \"eager\", webpackExports: [\"TanstackQueryClientProvider\"] */ \"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/query-client.tsx\");\n;\nimport(/* webpackMode: \"eager\" */ \"/home/runner/work/exulu-frontend/exulu-frontend/app/globals.css\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"ConfigContextProvider\"] */ \"/home/runner/work/exulu-frontend/exulu-frontend/components/config-context.tsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/home/runner/work/exulu-frontend/exulu-frontend/components/logo.tsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"ThemeProvider\"] */ \"/home/runner/work/exulu-frontend/exulu-frontend/components/theme-provider.tsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"Toaster\"] */ \"/home/runner/work/exulu-frontend/exulu-frontend/components/ui/toaster.tsx\");\n;\nimport(/* webpackMode: \"eager\" */ \"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/font/local/target.css?{\\\"path\\\":\\\"lib/fonts.ts\\\",\\\"import\\\":\\\"\\\",\\\"arguments\\\":[{\\\"src\\\":[{\\\"path\\\":\\\"../public/fonts/Inter-Light.woff2\\\",\\\"weight\\\":\\\"300\\\",\\\"style\\\":\\\"normal\\\"},{\\\"path\\\":\\\"../public/fonts/Inter-Regular.woff2\\\",\\\"weight\\\":\\\"400\\\",\\\"style\\\":\\\"normal\\\"},{\\\"path\\\":\\\"../public/fonts/Inter-Bold.woff2\\\",\\\"weight\\\":\\\"700\\\",\\\"style\\\":\\\"normal\\\"}],\\\"variable\\\":\\\"--font-sans\\\",\\\"display\\\":\\\"swap\\\"}],\\\"variableName\\\":\\\"inter\\\"}\");\n;\nimport(/* webpackMode: \"eager\" */ \"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/font/local/target.css?{\\\"path\\\":\\\"lib/fonts.ts\\\",\\\"import\\\":\\\"\\\",\\\"arguments\\\":[{\\\"src\\\":\\\"../public/fonts/JetBrainsMono-Regular.woff2\\\",\\\"variable\\\":\\\"--font-mono\\\",\\\"display\\\":\\\"swap\\\"}],\\\"variableName\\\":\\\"jetbrainsMono\\\"}\");\n;\nimport(/* webpackMode: \"eager\" */ \"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/font/local/target.css?{\\\"path\\\":\\\"lib/fonts.ts\\\",\\\"import\\\":\\\"\\\",\\\"arguments\\\":[{\\\"src\\\":\\\"../public/fonts/Merriweather-Regular.woff2\\\",\\\"variable\\\":\\\"--font-serif\\\",\\\"display\\\":\\\"swap\\\"}],\\\"variableName\\\":\\\"merriweather\\\"}\");\n","\"use client\";\n\nimport { QueryClient, QueryClientProvider } from \"@tanstack/react-query\";\n\nconst queryClient = new QueryClient();\n\nexport const TanstackQueryClientProvider = ({ children }: any) => {\n return (\n <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>\n );\n};\n","\"use client\"\nimport { BackendConfigType } from \"@/util/api\";\nimport { createContext } from \"react\";\n\nexport type ConfigContextType = {\n backend: string;\n google_client_id: string;\n auth_mode: string;\n} & BackendConfigType;\n\nexport const ConfigContext = createContext<ConfigContextType | null>(null);\n\nexport function ConfigContextProvider({ children, config }: {\n children: React.ReactNode;\n config: ConfigContextType;\n}) {\n\n console.log(\"[EXULU] Config: \", config);\n\n if (!config) {\n throw new Error(\"Config not found\");\n }\n\n return (\n <ConfigContext.Provider value={config}>\n {children}\n </ConfigContext.Provider>\n );\n}\n","\"use client\";\n\nimport { ConfigContext } from \"./config-context\";\nimport { useContext } from \"react\";\n\ninterface LogoProps {\n width?: number;\n height?: number;\n className?: string;\n alt?: string;\n}\n\nconst Logo = ({ width = 64, height = 32, className = \"\", alt = \"Logo\" }: LogoProps) => {\n const configContext = useContext(ConfigContext);\n return (\n <>\n <img\n src={configContext?.backend + \"/logo_dark.png\"}\n alt={alt}\n width={width}\n height={height}\n className={className + \"hidden dark:block invert\"}\n />\n <img\n src={configContext?.backend + \"/logo_light.png\"}\n alt={alt}\n width={width}\n height={height}\n className={className + \"block dark:hidden\"}\n />\n </>\n )\n}\n\nexport default Logo;","\"use client\";\n\nimport { ThemeProvider as NextThemesProvider } from \"next-themes\";\nimport { type ThemeProviderProps } from \"next-themes/dist/types\";\nimport * as React from \"react\";\n\nexport function ThemeProvider({ children, ...props }: ThemeProviderProps) {\n return (\n <NextThemesProvider {...props} defaultTheme={\"dark\"}>\n {children}\n </NextThemesProvider>\n );\n}\n","\"use client\";\n\nimport * as ToastPrimitives from \"@radix-ui/react-toast\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { X } from \"lucide-react\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst ToastProvider = ToastPrimitives.Provider;\n\nconst ToastViewport = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Viewport>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Viewport\n ref={ref}\n className={cn(\n \"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]\",\n className,\n )}\n {...props}\n />\n));\nToastViewport.displayName = ToastPrimitives.Viewport.displayName;\n\nconst toastVariants = cva(\n \"group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full\",\n {\n variants: {\n variant: {\n default: \"border bg-background text-foreground\",\n destructive:\n \"destructive group border-destructive bg-destructive text-destructive-foreground\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n },\n);\n\nconst Toast = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Root>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root> &\n VariantProps<typeof toastVariants>\n>(({ className, variant, ...props }, ref) => {\n return (\n <ToastPrimitives.Root\n ref={ref}\n className={cn(toastVariants({ variant }), className)}\n {...props}\n />\n );\n});\nToast.displayName = ToastPrimitives.Root.displayName;\n\nconst ToastAction = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Action>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Action>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Action\n ref={ref}\n className={cn(\n \"inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive\",\n className,\n )}\n {...props}\n />\n));\nToastAction.displayName = ToastPrimitives.Action.displayName;\n\nconst ToastClose = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Close>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Close>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Close\n ref={ref}\n className={cn(\n \"absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600\",\n className,\n )}\n toast-close=\"\"\n {...props}\n >\n <X className=\"size-4\" />\n </ToastPrimitives.Close>\n));\nToastClose.displayName = ToastPrimitives.Close.displayName;\n\nconst ToastTitle = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Title>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Title>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Title\n ref={ref}\n className={cn(\"text-sm font-semibold\", className)}\n {...props}\n />\n));\nToastTitle.displayName = ToastPrimitives.Title.displayName;\n\nconst ToastDescription = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Description>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Description>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Description\n ref={ref}\n className={cn(\"text-sm opacity-90\", className)}\n {...props}\n />\n));\nToastDescription.displayName = ToastPrimitives.Description.displayName;\n\ntype ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;\n\ntype ToastActionElement = React.ReactElement<typeof ToastAction>;\n\nexport {\n type ToastProps,\n type ToastActionElement,\n ToastProvider,\n ToastViewport,\n Toast,\n ToastTitle,\n ToastDescription,\n ToastClose,\n ToastAction,\n};\n","\"use client\";\n\nimport {\n Toast,\n ToastClose,\n ToastDescription,\n ToastProvider,\n ToastTitle,\n ToastViewport,\n} from \"@/components/ui/toast\";\nimport { useToast } from \"@/components/ui/use-toast\";\n\nexport function Toaster() {\n const { toasts } = useToast();\n\n return (\n <ToastProvider>\n {toasts.map(function ({ id, title, description, action, ...props }) {\n return (\n <Toast key={id} {...props}>\n <div className=\"grid gap-1\">\n {title && <ToastTitle>{title}</ToastTitle>}\n {description && (\n <ToastDescription>{description}</ToastDescription>\n )}\n </div>\n {action}\n <ToastClose />\n </Toast>\n );\n })}\n <ToastViewport />\n </ToastProvider>\n );\n}\n","\"use client\";\n\n// Inspired by react-hot-toast library\nimport * as React from \"react\";\n\nimport type { ToastActionElement, ToastProps } from \"@/components/ui/toast\";\n\nconst TOAST_LIMIT = 1;\nconst TOAST_REMOVE_DELAY = 1000000;\n\ntype ToasterToast = ToastProps & {\n id: string;\n title?: React.ReactNode;\n description?: React.ReactNode;\n action?: ToastActionElement;\n};\n\nconst actionTypes = {\n ADD_TOAST: \"ADD_TOAST\",\n UPDATE_TOAST: \"UPDATE_TOAST\",\n DISMISS_TOAST: \"DISMISS_TOAST\",\n REMOVE_TOAST: \"REMOVE_TOAST\",\n} as const;\n\nlet count = 0;\n\nfunction genId() {\n count = (count + 1) % Number.MAX_SAFE_INTEGER;\n return count.toString();\n}\n\ntype ActionType = typeof actionTypes;\n\ntype Action =\n | {\n type: ActionType[\"ADD_TOAST\"];\n toast: ToasterToast;\n }\n | {\n type: ActionType[\"UPDATE_TOAST\"];\n toast: Partial<ToasterToast>;\n }\n | {\n type: ActionType[\"DISMISS_TOAST\"];\n toastId?: ToasterToast[\"id\"];\n }\n | {\n type: ActionType[\"REMOVE_TOAST\"];\n toastId?: ToasterToast[\"id\"];\n };\n\ninterface State {\n toasts: ToasterToast[];\n}\n\nconst toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>();\n\nconst addToRemoveQueue = (toastId: string) => {\n if (toastTimeouts.has(toastId)) {\n return;\n }\n\n const timeout = setTimeout(() => {\n toastTimeouts.delete(toastId);\n dispatch({\n type: \"REMOVE_TOAST\",\n toastId: toastId,\n });\n }, TOAST_REMOVE_DELAY);\n\n toastTimeouts.set(toastId, timeout);\n};\n\nexport const reducer = (state: State, action: Action): State => {\n switch (action.type) {\n case \"ADD_TOAST\":\n return {\n ...state,\n toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),\n };\n\n case \"UPDATE_TOAST\":\n return {\n ...state,\n toasts: state.toasts.map((t) =>\n t.id === action.toast.id ? { ...t, ...action.toast } : t,\n ),\n };\n\n case \"DISMISS_TOAST\": {\n const { toastId } = action;\n\n // ! Side effects ! - This could be extracted into a dismissToast() action,\n // but I'll keep it here for simplicity\n if (toastId) {\n addToRemoveQueue(toastId);\n } else {\n state.toasts.forEach((toast) => {\n addToRemoveQueue(toast.id);\n });\n }\n\n return {\n ...state,\n toasts: state.toasts.map((t) =>\n t.id === toastId || toastId === undefined\n ? {\n ...t,\n open: false,\n }\n : t,\n ),\n };\n }\n case \"REMOVE_TOAST\":\n if (action.toastId === undefined) {\n return {\n ...state,\n toasts: [],\n };\n }\n return {\n ...state,\n toasts: state.toasts.filter((t) => t.id !== action.toastId),\n };\n }\n};\n\nconst listeners: Array<(state: State) => void> = [];\n\nlet memoryState: State = { toasts: [] };\n\nfunction dispatch(action: Action) {\n memoryState = reducer(memoryState, action);\n listeners.forEach((listener) => {\n listener(memoryState);\n });\n}\n\ntype Toast = Omit<ToasterToast, \"id\">;\n\nfunction toast({ ...props }: Toast) {\n const id = genId();\n\n const update = (props: ToasterToast) =>\n dispatch({\n type: \"UPDATE_TOAST\",\n toast: { ...props, id },\n });\n const dismiss = () => dispatch({ type: \"DISMISS_TOAST\", toastId: id });\n\n dispatch({\n type: \"ADD_TOAST\",\n toast: {\n ...props,\n id,\n open: true,\n onOpenChange: (open) => {\n if (!open) dismiss();\n },\n },\n });\n\n return {\n id: id,\n dismiss,\n update,\n };\n}\n\nfunction useToast() {\n const [state, setState] = React.useState<State>(memoryState);\n\n React.useEffect(() => {\n listeners.push(setState);\n return () => {\n const index = listeners.indexOf(setState);\n if (index > -1) {\n listeners.splice(index, 1);\n }\n };\n }, [state]);\n\n return {\n ...state,\n toast,\n dismiss: (toastId?: string) => dispatch({ type: \"DISMISS_TOAST\", toastId }),\n };\n}\n\nexport { useToast, toast };\n","import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport function formatDuration(seconds: number): string {\n if (!seconds) return '0s';\n \n const hours = Math.floor(seconds / 3600);\n const minutes = Math.floor((seconds % 3600) / 60);\n const remainingSeconds = Math.round(seconds % 60);\n\n if (hours > 0) {\n return `${hours}h ${minutes}m`;\n } else if (minutes > 0) {\n return `${minutes}m ${remainingSeconds}s`;\n } else {\n return `${remainingSeconds}s`;\n }\n}","export default {\n xmlns: 'http://www.w3.org/2000/svg',\n width: 24,\n height: 24,\n viewBox: '0 0 24 24',\n fill: 'none',\n stroke: 'currentColor',\n strokeWidth: 2,\n strokeLinecap: 'round',\n strokeLinejoin: 'round',\n};\n","import {\n forwardRef,\n createElement,\n ReactSVG,\n SVGProps,\n ForwardRefExoticComponent,\n RefAttributes,\n} from 'react';\nimport defaultAttributes from './defaultAttributes';\n\nexport type IconNode = [elementName: keyof ReactSVG, attrs: Record<string, string>][];\n\nexport type SVGAttributes = Partial<SVGProps<SVGSVGElement>>;\ntype ComponentAttributes = RefAttributes<SVGSVGElement> & SVGAttributes;\n\nexport interface LucideProps extends ComponentAttributes {\n size?: string | number;\n absoluteStrokeWidth?: boolean;\n}\n\nexport type LucideIcon = ForwardRefExoticComponent<LucideProps>;\n/**\n * Converts string to KebabCase\n * Copied from scripts/helper. If anyone knows how to properly import it here\n * then please fix it.\n *\n * @param {string} string\n * @returns {string} A kebabized string\n */\nexport const toKebabCase = (string: string) =>\n string\n .replace(/([a-z0-9])([A-Z])/g, '$1-$2')\n .toLowerCase()\n .trim();\n\nconst createLucideIcon = (iconName: string, iconNode: IconNode): LucideIcon => {\n const Component = forwardRef<SVGSVGElement, LucideProps>(\n ({ color = 'currentColor', size = 24, strokeWidth = 2, absoluteStrokeWidth, className = '', children, ...rest }, ref) =>{\n\n return createElement(\n 'svg',\n {\n ref,\n ...defaultAttributes,\n width: size,\n height: size,\n stroke: color,\n strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,\n className: ['lucide', `lucide-${toKebabCase(iconName)}`, className].join(' '),\n ...rest,\n },\n [\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...(Array.isArray(children) ? children : [children]),\n ]\n )\n }\n );\n\n Component.displayName = `${iconName}`;\n\n return Component;\n};\n\nexport default createLucideIcon;\n","import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name X\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/x\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 X = createLucideIcon('X', [\n ['path', { d: 'M18 6 6 18', key: '1bl5f8' }],\n ['path', { d: 'm6 6 12 12', key: 'd8bk6v' }],\n]);\n\nexport default X;\n","import e,{useContext as t,Fragment as n,useState as r,useCallback as o,useEffect as a,useMemo as s,memo as l,createContext as m}from\"react\";const c=[\"light\",\"dark\"],i=\"(prefers-color-scheme: dark)\",d=\"undefined\"==typeof window,u=/*#__PURE__*/m(void 0),h={setTheme:e=>{},themes:[]},y=()=>{var e;return null!==(e=t(u))&&void 0!==e?e:h},$=r=>t(u)?/*#__PURE__*/e.createElement(n,null,r.children):/*#__PURE__*/e.createElement(f,r),v=[\"light\",\"dark\"],f=({forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:l=!0,enableColorScheme:m=!0,storageKey:d=\"theme\",themes:h=v,defaultTheme:y=(l?\"system\":\"light\"),attribute:$=\"data-theme\",value:f,children:w,nonce:T})=>{const[E,k]=r(()=>S(d,y)),[C,L]=r(()=>S(d)),x=f?Object.values(f):h,I=o(e=>{let t=e;if(!t)return;\"system\"===e&&l&&(t=p());const r=f?f[t]:t,o=n?b():null,a=document.documentElement;if(\"class\"===$?(a.classList.remove(...x),r&&a.classList.add(r)):r?a.setAttribute($,r):a.removeAttribute($),m){const e=c.includes(y)?y:null,n=c.includes(t)?t:e;a.style.colorScheme=n}null==o||o()},[]),O=o(e=>{k(e);try{localStorage.setItem(d,e)}catch(e){}},[t]),M=o(e=>{const n=p(e);L(n),\"system\"===E&&l&&!t&&I(\"system\")},[E,t]);a(()=>{const e=window.matchMedia(i);return e.addListener(M),M(e),()=>e.removeListener(M)},[M]),a(()=>{const e=e=>{e.key===d&&O(e.newValue||y)};return window.addEventListener(\"storage\",e),()=>window.removeEventListener(\"storage\",e)},[O]),a(()=>{I(null!=t?t:E)},[t,E]);const A=s(()=>({theme:E,setTheme:O,forcedTheme:t,resolvedTheme:\"system\"===E?C:E,themes:l?[...h,\"system\"]:h,systemTheme:l?C:void 0}),[E,O,t,C,l,h]);/*#__PURE__*/return e.createElement(u.Provider,{value:A},/*#__PURE__*/e.createElement(g,{forcedTheme:t,disableTransitionOnChange:n,enableSystem:l,enableColorScheme:m,storageKey:d,themes:h,defaultTheme:y,attribute:$,value:f,children:w,attrs:x,nonce:T}),w)},g=/*#__PURE__*/l(({forcedTheme:t,storageKey:n,attribute:r,enableSystem:o,enableColorScheme:a,defaultTheme:s,value:l,attrs:m,nonce:d})=>{const u=\"system\"===s,h=\"class\"===r?`var d=document.documentElement,c=d.classList;c.remove(${m.map(e=>`'${e}'`).join(\",\")});`:`var d=document.documentElement,n='${r}',s='setAttribute';`,y=a?c.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:\"if(e==='light'||e==='dark')d.style.colorScheme=e\":\"\",$=(e,t=!1,n=!0)=>{const o=l?l[e]:e,s=t?e+\"|| ''\":`'${o}'`;let m=\"\";return a&&n&&!t&&c.includes(e)&&(m+=`d.style.colorScheme = '${e}';`),\"class\"===r?m+=t||o?`c.add(${s})`:\"null\":o&&(m+=`d[s](n,${s})`),m},v=t?`!function(){${h}${$(t)}}()`:o?`!function(){try{${h}var e=localStorage.getItem('${n}');if('system'===e||(!e&&${u})){var t='${i}',m=window.matchMedia(t);if(m.media!==t||m.matches){${$(\"dark\")}}else{${$(\"light\")}}}else if(e){${l?`var x=${JSON.stringify(l)};`:\"\"}${$(l?\"x[e]\":\"e\",!0)}}${u?\"\":\"else{\"+$(s,!1,!1)+\"}\"}${y}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${n}');if(e){${l?`var x=${JSON.stringify(l)};`:\"\"}${$(l?\"x[e]\":\"e\",!0)}}else{${$(s,!1,!1)};}${y}}catch(t){}}();`;/*#__PURE__*/return e.createElement(\"script\",{nonce:d,dangerouslySetInnerHTML:{__html:v}})},()=>!0),S=(e,t)=>{if(d)return;let n;try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t},b=()=>{const e=document.createElement(\"style\");return e.appendChild(document.createTextNode(\"*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}\")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},p=e=>(e||(e=window.matchMedia(i)),e.matches?\"dark\":\"light\");export{$ as ThemeProvider,y as useTheme};\n","// extracted by mini-css-extract-plugin","// packages/core/primitive/src/primitive.tsx\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nexport {\n composeEventHandlers\n};\n//# sourceMappingURL=index.mjs.map\n","// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n","// packages/react/context/src/create-context.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n","import * as React from 'react';\nimport { composeEventHandlers } from '@radix-ui/primitive';\nimport { Primitive, dispatchDiscreteCustomEvent } from '@radix-ui/react-primitive';\nimport { useComposedRefs } from '@radix-ui/react-compose-refs';\nimport { useCallbackRef } from '@radix-ui/react-use-callback-ref';\nimport { useEscapeKeydown } from '@radix-ui/react-use-escape-keydown';\n\n/* -------------------------------------------------------------------------------------------------\n * DismissableLayer\n * -----------------------------------------------------------------------------------------------*/\n\nconst DISMISSABLE_LAYER_NAME = 'DismissableLayer';\nconst CONTEXT_UPDATE = 'dismissableLayer.update';\nconst POINTER_DOWN_OUTSIDE = 'dismissableLayer.pointerDownOutside';\nconst FOCUS_OUTSIDE = 'dismissableLayer.focusOutside';\n\nlet originalBodyPointerEvents: string;\n\nconst DismissableLayerContext = React.createContext({\n layers: new Set<DismissableLayerElement>(),\n layersWithOutsidePointerEventsDisabled: new Set<DismissableLayerElement>(),\n branches: new Set<DismissableLayerBranchElement>(),\n});\n\ntype DismissableLayerElement = React.ComponentRef<typeof Primitive.div>;\ntype PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>;\ninterface DismissableLayerProps extends PrimitiveDivProps {\n /**\n * When `true`, hover/focus/click interactions will be disabled on elements outside\n * the `DismissableLayer`. Users will need to click twice on outside elements to\n * interact with them: once to close the `DismissableLayer`, and again to trigger the element.\n */\n disableOutsidePointerEvents?: boolean;\n /**\n * Event handler called when the escape key is down.\n * Can be prevented.\n */\n onEscapeKeyDown?: (event: KeyboardEvent) => void;\n /**\n * Event handler called when the a `pointerdown` event happens outside of the `DismissableLayer`.\n * Can be prevented.\n */\n onPointerDownOutside?: (event: PointerDownOutsideEvent) => void;\n /**\n * Event handler called when the focus moves outside of the `DismissableLayer`.\n * Can be prevented.\n */\n onFocusOutside?: (event: FocusOutsideEvent) => void;\n /**\n * Event handler called when an interaction happens outside the `DismissableLayer`.\n * Specifically, when a `pointerdown` event happens outside or focus moves outside of it.\n * Can be prevented.\n */\n onInteractOutside?: (event: PointerDownOutsideEvent | FocusOutsideEvent) => void;\n /**\n * Handler called when the `DismissableLayer` should be dismissed\n */\n onDismiss?: () => void;\n}\n\nconst DismissableLayer = React.forwardRef<DismissableLayerElement, DismissableLayerProps>(\n (props, forwardedRef) => {\n const {\n disableOutsidePointerEvents = false,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n ...layerProps\n } = props;\n const context = React.useContext(DismissableLayerContext);\n const [node, setNode] = React.useState<DismissableLayerElement | null>(null);\n const ownerDocument = node?.ownerDocument ?? globalThis?.document;\n const [, force] = React.useState({});\n const composedRefs = useComposedRefs(forwardedRef, (node) => setNode(node));\n const layers = Array.from(context.layers);\n const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1); // prettier-ignore\n const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled!); // prettier-ignore\n const index = node ? layers.indexOf(node) : -1;\n const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;\n const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;\n\n const pointerDownOutside = usePointerDownOutside((event) => {\n const target = event.target as HTMLElement;\n const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));\n if (!isPointerEventsEnabled || isPointerDownOnBranch) return;\n onPointerDownOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n\n const focusOutside = useFocusOutside((event) => {\n const target = event.target as HTMLElement;\n const isFocusInBranch = [...context.branches].some((branch) => branch.contains(target));\n if (isFocusInBranch) return;\n onFocusOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n\n useEscapeKeydown((event) => {\n const isHighestLayer = index === context.layers.size - 1;\n if (!isHighestLayer) return;\n onEscapeKeyDown?.(event);\n if (!event.defaultPrevented && onDismiss) {\n event.preventDefault();\n onDismiss();\n }\n }, ownerDocument);\n\n React.useEffect(() => {\n if (!node) return;\n if (disableOutsidePointerEvents) {\n if (context.layersWithOutsidePointerEventsDisabled.size === 0) {\n originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;\n ownerDocument.body.style.pointerEvents = 'none';\n }\n context.layersWithOutsidePointerEventsDisabled.add(node);\n }\n context.layers.add(node);\n dispatchUpdate();\n return () => {\n if (\n disableOutsidePointerEvents &&\n context.layersWithOutsidePointerEventsDisabled.size === 1\n ) {\n ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;\n }\n };\n }, [node, ownerDocument, disableOutsidePointerEvents, context]);\n\n /**\n * We purposefully prevent combining this effect with the `disableOutsidePointerEvents` effect\n * because a change to `disableOutsidePointerEvents` would remove this layer from the stack\n * and add it to the end again so the layering order wouldn't be _creation order_.\n * We only want them to be removed from context stacks when unmounted.\n */\n React.useEffect(() => {\n return () => {\n if (!node) return;\n context.layers.delete(node);\n context.layersWithOutsidePointerEventsDisabled.delete(node);\n dispatchUpdate();\n };\n }, [node, context]);\n\n React.useEffect(() => {\n const handleUpdate = () => force({});\n document.addEventListener(CONTEXT_UPDATE, handleUpdate);\n return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);\n }, []);\n\n return (\n <Primitive.div\n {...layerProps}\n ref={composedRefs}\n style={{\n pointerEvents: isBodyPointerEventsDisabled\n ? isPointerEventsEnabled\n ? 'auto'\n : 'none'\n : undefined,\n ...props.style,\n }}\n onFocusCapture={composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture)}\n onBlurCapture={composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture)}\n onPointerDownCapture={composeEventHandlers(\n props.onPointerDownCapture,\n pointerDownOutside.onPointerDownCapture\n )}\n />\n );\n }\n);\n\nDismissableLayer.displayName = DISMISSABLE_LAYER_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * DismissableLayerBranch\n * -----------------------------------------------------------------------------------------------*/\n\nconst BRANCH_NAME = 'DismissableLayerBranch';\n\ntype DismissableLayerBranchElement = React.ComponentRef<typeof Primitive.div>;\ninterface DismissableLayerBranchProps extends PrimitiveDivProps {}\n\nconst DismissableLayerBranch = React.forwardRef<\n DismissableLayerBranchElement,\n DismissableLayerBranchProps\n>((props, forwardedRef) => {\n const context = React.useContext(DismissableLayerContext);\n const ref = React.useRef<DismissableLayerBranchElement>(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n context.branches.add(node);\n return () => {\n context.branches.delete(node);\n };\n }\n }, [context.branches]);\n\n return <Primitive.div {...props} ref={composedRefs} />;\n});\n\nDismissableLayerBranch.displayName = BRANCH_NAME;\n\n/* -----------------------------------------------------------------------------------------------*/\n\ntype PointerDownOutsideEvent = CustomEvent<{ originalEvent: PointerEvent }>;\ntype FocusOutsideEvent = CustomEvent<{ originalEvent: FocusEvent }>;\n\n/**\n * Listens for `pointerdown` outside a react subtree. We use `pointerdown` rather than `pointerup`\n * to mimic layer dismissing behaviour present in OS.\n * Returns props to pass to the node we want to check for outside events.\n */\nfunction usePointerDownOutside(\n onPointerDownOutside?: (event: PointerDownOutsideEvent) => void,\n ownerDocument: Document = globalThis?.document\n) {\n const handlePointerDownOutside = useCallbackRef(onPointerDownOutside) as EventListener;\n const isPointerInsideReactTreeRef = React.useRef(false);\n const handleClickRef = React.useRef(() => {});\n\n React.useEffect(() => {\n const handlePointerDown = (event: PointerEvent) => {\n if (event.target && !isPointerInsideReactTreeRef.current) {\n const eventDetail = { originalEvent: event };\n\n function handleAndDispatchPointerDownOutsideEvent() {\n handleAndDispatchCustomEvent(\n POINTER_DOWN_OUTSIDE,\n handlePointerDownOutside,\n eventDetail,\n { discrete: true }\n );\n }\n\n /**\n * On touch devices, we need to wait for a click event because browsers implement\n * a ~350ms delay between the time the user stops touching the display and when the\n * browser executres events. We need to ensure we don't reactivate pointer-events within\n * this timeframe otherwise the browser may execute events that should have been prevented.\n *\n * Additionally, this also lets us deal automatically with cancellations when a click event\n * isn't raised because the page was considered scrolled/drag-scrolled, long-pressed, etc.\n *\n * This is why we also continuously remove the previous listener, because we cannot be\n * certain that it was raised, and therefore cleaned-up.\n */\n if (event.pointerType === 'touch') {\n ownerDocument.removeEventListener('click', handleClickRef.current);\n handleClickRef.current = handleAndDispatchPointerDownOutsideEvent;\n ownerDocument.addEventListener('click', handleClickRef.current, { once: true });\n } else {\n handleAndDispatchPointerDownOutsideEvent();\n }\n } else {\n // We need to remove the event listener in case the outside click has been canceled.\n // See: https://github.com/radix-ui/primitives/issues/2171\n ownerDocument.removeEventListener('click', handleClickRef.current);\n }\n isPointerInsideReactTreeRef.current = false;\n };\n /**\n * if this hook executes in a component that mounts via a `pointerdown` event, the event\n * would bubble up to the document and trigger a `pointerDownOutside` event. We avoid\n * this by delaying the event listener registration on the document.\n * This is not React specific, but rather how the DOM works, ie:\n * ```\n * button.addEventListener('pointerdown', () => {\n * console.log('I will log');\n * document.addEventListener('pointerdown', () => {\n * console.log('I will also log');\n * })\n * });\n */\n const timerId = window.setTimeout(() => {\n ownerDocument.addEventListener('pointerdown', handlePointerDown);\n }, 0);\n return () => {\n window.clearTimeout(timerId);\n ownerDocument.removeEventListener('pointerdown', handlePointerDown);\n ownerDocument.removeEventListener('click', handleClickRef.current);\n };\n }, [ownerDocument, handlePointerDownOutside]);\n\n return {\n // ensures we check React component tree (not just DOM tree)\n onPointerDownCapture: () => (isPointerInsideReactTreeRef.current = true),\n };\n}\n\n/**\n * Listens for when focus happens outside a react subtree.\n * Returns props to pass to the root (node) of the subtree we want to check.\n */\nfunction useFocusOutside(\n onFocusOutside?: (event: FocusOutsideEvent) => void,\n ownerDocument: Document = globalThis?.document\n) {\n const handleFocusOutside = useCallbackRef(onFocusOutside) as EventListener;\n const isFocusInsideReactTreeRef = React.useRef(false);\n\n React.useEffect(() => {\n const handleFocus = (event: FocusEvent) => {\n if (event.target && !isFocusInsideReactTreeRef.current) {\n const eventDetail = { originalEvent: event };\n handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {\n discrete: false,\n });\n }\n };\n ownerDocument.addEventListener('focusin', handleFocus);\n return () => ownerDocument.removeEventListener('focusin', handleFocus);\n }, [ownerDocument, handleFocusOutside]);\n\n return {\n onFocusCapture: () => (isFocusInsideReactTreeRef.current = true),\n onBlurCapture: () => (isFocusInsideReactTreeRef.current = false),\n };\n}\n\nfunction dispatchUpdate() {\n const event = new CustomEvent(CONTEXT_UPDATE);\n document.dispatchEvent(event);\n}\n\nfunction handleAndDispatchCustomEvent<E extends CustomEvent, OriginalEvent extends Event>(\n name: string,\n handler: ((event: E) => void) | undefined,\n detail: { originalEvent: OriginalEvent } & (E extends CustomEvent<infer D> ? D : never),\n { discrete }: { discrete: boolean }\n) {\n const target = detail.originalEvent.target;\n const event = new CustomEvent(name, { bubbles: false, cancelable: true, detail });\n if (handler) target.addEventListener(name, handler as EventListener, { once: true });\n\n if (discrete) {\n dispatchDiscreteCustomEvent(target, event);\n } else {\n target.dispatchEvent(event);\n }\n}\n\nconst Root = DismissableLayer;\nconst Branch = DismissableLayerBranch;\n\nexport {\n DismissableLayer,\n DismissableLayerBranch,\n //\n Root,\n Branch,\n};\nexport type { DismissableLayerProps };\n","import * as React from 'react';\nimport ReactDOM from 'react-dom';\nimport { Primitive } from '@radix-ui/react-primitive';\nimport { useLayoutEffect } from '@radix-ui/react-use-layout-effect';\n\n/* -------------------------------------------------------------------------------------------------\n * Portal\n * -----------------------------------------------------------------------------------------------*/\n\nconst PORTAL_NAME = 'Portal';\n\ntype PortalElement = React.ComponentRef<typeof Primitive.div>;\ntype PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>;\ninterface PortalProps extends PrimitiveDivProps {\n /**\n * An optional container where the portaled content should be appended.\n */\n container?: Element | DocumentFragment | null;\n}\n\nconst Portal = React.forwardRef<PortalElement, PortalProps>((props, forwardedRef) => {\n const { container: containerProp, ...portalProps } = props;\n const [mounted, setMounted] = React.useState(false);\n useLayoutEffect(() => setMounted(true), []);\n const container = containerProp || (mounted && globalThis?.document?.body);\n return container\n ? ReactDOM.createPortal(<Primitive.div {...portalProps} ref={forwardedRef} />, container)\n : null;\n});\n\nPortal.displayName = PORTAL_NAME;\n\n/* -----------------------------------------------------------------------------------------------*/\n\nconst Root = Portal;\n\nexport {\n Portal,\n //\n Root,\n};\nexport type { PortalProps };\n","import * as React from 'react';\nimport { useComposedRefs } from '@radix-ui/react-compose-refs';\nimport { useLayoutEffect } from '@radix-ui/react-use-layout-effect';\nimport { useStateMachine } from './use-state-machine';\n\ninterface PresenceProps {\n children: React.ReactElement | ((props: { present: boolean }) => React.ReactElement);\n present: boolean;\n}\n\nconst Presence: React.FC<PresenceProps> = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n\n const child = (\n typeof children === 'function'\n ? children({ present: presence.isPresent })\n : React.Children.only(children)\n ) as React.ReactElement<{ ref?: React.Ref<HTMLElement> }>;\n\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === 'function';\n return forceMount || presence.isPresent ? React.cloneElement(child, { ref }) : null;\n};\n\nPresence.displayName = 'Presence';\n\n/* -------------------------------------------------------------------------------------------------\n * usePresence\n * -----------------------------------------------------------------------------------------------*/\n\nfunction usePresence(present: boolean) {\n const [node, setNode] = React.useState<HTMLElement>();\n const stylesRef = React.useRef<CSSStyleDeclaration | null>(null);\n const prevPresentRef = React.useRef(present);\n const prevAnimationNameRef = React.useRef<string>('none');\n const initialState = present ? 'mounted' : 'unmounted';\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: 'unmounted',\n ANIMATION_OUT: 'unmountSuspended',\n },\n unmountSuspended: {\n MOUNT: 'mounted',\n ANIMATION_END: 'unmounted',\n },\n unmounted: {\n MOUNT: 'mounted',\n },\n });\n\n React.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === 'mounted' ? currentAnimationName : 'none';\n }, [state]);\n\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n\n if (present) {\n send('MOUNT');\n } else if (currentAnimationName === 'none' || styles?.display === 'none') {\n // If there is no exit animation or the element is hidden, animations won't run\n // so we unmount instantly\n send('UNMOUNT');\n } else {\n /**\n * When `present` changes to `false`, we check changes to animation-name to\n * determine whether an animation has started. We chose this approach (reading\n * computed styles) because there is no `animationrun` event and `animationstart`\n * fires after `animation-delay` has expired which would be too late.\n */\n const isAnimating = prevAnimationName !== currentAnimationName;\n\n if (wasPresent && isAnimating) {\n send('ANIMATION_OUT');\n } else {\n send('UNMOUNT');\n }\n }\n\n prevPresentRef.current = present;\n }\n }, [present, send]);\n\n useLayoutEffect(() => {\n if (node) {\n let timeoutId: number;\n const ownerWindow = node.ownerDocument.defaultView ?? window;\n /**\n * Triggering an ANIMATION_OUT during an ANIMATION_IN will fire an `animationcancel`\n * event for ANIMATION_IN after we have entered `unmountSuspended` state. So, we\n * make sure we only trigger ANIMATION_END for the currently active animation.\n */\n const handleAnimationEnd = (event: AnimationEvent) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node && isCurrentAnimation) {\n // With React 18 concurrency this update is applied a frame after the\n // animation ends, creating a flash of visible content. By setting the\n // animation fill mode to \"forwards\", we force the node to keep the\n // styles of the last keyframe, removing the flash.\n //\n // Previously we flushed the update via ReactDom.flushSync, but with\n // exit animations this resulted in the node being removed from the\n // DOM before the synthetic animationEnd event was dispatched, meaning\n // user-provided event handlers would not be called.\n // https://github.com/radix-ui/primitives/pull/1849\n send('ANIMATION_END');\n if (!prevPresentRef.current) {\n const currentFillMode = node.style.animationFillMode;\n node.style.animationFillMode = 'forwards';\n // Reset the style after the node had time to unmount (for cases\n // where the component chooses not to unmount). Doing this any\n // sooner than `setTimeout` (e.g. with `requestAnimationFrame`)\n // still causes a flash.\n timeoutId = ownerWindow.setTimeout(() => {\n if (node.style.animationFillMode === 'forwards') {\n node.style.animationFillMode = currentFillMode;\n }\n });\n }\n }\n };\n const handleAnimationStart = (event: AnimationEvent) => {\n if (event.target === node) {\n // if animation occurred, store its name as the previous animation.\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener('animationstart', handleAnimationStart);\n node.addEventListener('animationcancel', handleAnimationEnd);\n node.addEventListener('animationend', handleAnimationEnd);\n return () => {\n ownerWindow.clearTimeout(timeoutId);\n node.removeEventListener('animationstart', handleAnimationStart);\n node.removeEventListener('animationcancel', handleAnimationEnd);\n node.removeEventListener('animationend', handleAnimationEnd);\n };\n } else {\n // Transition to the unmounted state if the node is removed prematurely.\n // We avoid doing so during cleanup as the node may change but still exist.\n send('ANIMATION_END');\n }\n }, [node, send]);\n\n return {\n isPresent: ['mounted', 'unmountSuspended'].includes(state),\n ref: React.useCallback((node: HTMLElement) => {\n stylesRef.current = node ? getComputedStyle(node) : null;\n setNode(node);\n }, []),\n };\n}\n\n/* -----------------------------------------------------------------------------------------------*/\n\nfunction getAnimationName(styles: CSSStyleDeclaration | null) {\n return styles?.animationName || 'none';\n}\n\n// Before React 19 accessing `element.props.ref` will throw a warning and suggest using `element.ref`\n// After React 19 accessing `element.ref` does the opposite.\n// https://github.com/facebook/react/pull/28348\n//\n// Access the ref using the method that doesn't yield a warning.\nfunction getElementRef(element: React.ReactElement<{ ref?: React.Ref<unknown> }>) {\n // React <=18 in DEV\n let getter = Object.getOwnPropertyDescriptor(element.props, 'ref')?.get;\n let mayWarn = getter && 'isReactWarning' in getter && getter.isReactWarning;\n if (mayWarn) {\n return (element as any).ref;\n }\n\n // React 19 in DEV\n getter = Object.getOwnPropertyDescriptor(element, 'ref')?.get;\n mayWarn = getter && 'isReactWarning' in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n\n // Not DEV\n return element.props.ref || (element as any).ref;\n}\n\nconst Root = Presence;\n\nexport {\n Presence,\n //\n Root,\n};\nexport type { PresenceProps };\n","import * as React from 'react';\n\ntype Machine<S> = { [k: string]: { [k: string]: S } };\ntype MachineState<T> = keyof T;\ntype MachineEvent<T> = keyof UnionToIntersection<T[keyof T]>;\n\n// 🤯 https://fettblog.eu/typescript-union-to-intersection/\ntype UnionToIntersection<T> = (T extends any ? (x: T) => any : never) extends (x: infer R) => any\n ? R\n : never;\n\nexport function useStateMachine<M>(\n initialState: MachineState<M>,\n machine: M & Machine<MachineState<M>>\n) {\n return React.useReducer((state: MachineState<M>, event: MachineEvent<M>): MachineState<M> => {\n const nextState = (machine[state] as any)[event];\n return nextState ?? state;\n }, initialState);\n}\n","// src/primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"select\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Slot = createSlot(`Primitive.${node}`);\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n","// src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n","// packages/react/use-callback-ref/src/use-callback-ref.tsx\nimport * as React from \"react\";\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => (...args) => callbackRef.current?.(...args), []);\n}\nexport {\n useCallbackRef\n};\n//# sourceMappingURL=index.mjs.map\n","// src/use-controllable-state.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nvar useInsertionEffect = React[\" useInsertionEffect \".trim().toString()] || useLayoutEffect;\nfunction useControllableState({\n prop,\n defaultProp,\n onChange = () => {\n },\n caller\n}) {\n const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState({\n defaultProp,\n onChange\n });\n const isControlled = prop !== void 0;\n const value = isControlled ? prop : uncontrolledProp;\n if (true) {\n const isControlledRef = React.useRef(prop !== void 0);\n React.useEffect(() => {\n const wasControlled = isControlledRef.current;\n if (wasControlled !== isControlled) {\n const from = wasControlled ? \"controlled\" : \"uncontrolled\";\n const to = isControlled ? \"controlled\" : \"uncontrolled\";\n console.warn(\n `${caller} is changing from ${from} to ${to}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`\n );\n }\n isControlledRef.current = isControlled;\n }, [isControlled, caller]);\n }\n const setValue = React.useCallback(\n (nextValue) => {\n if (isControlled) {\n const value2 = isFunction(nextValue) ? nextValue(prop) : nextValue;\n if (value2 !== prop) {\n onChangeRef.current?.(value2);\n }\n } else {\n setUncontrolledProp(nextValue);\n }\n },\n [isControlled, prop, setUncontrolledProp, onChangeRef]\n );\n return [value, setValue];\n}\nfunction useUncontrolledState({\n defaultProp,\n onChange\n}) {\n const [value, setValue] = React.useState(defaultProp);\n const prevValueRef = React.useRef(value);\n const onChangeRef = React.useRef(onChange);\n useInsertionEffect(() => {\n onChangeRef.current = onChange;\n }, [onChange]);\n React.useEffect(() => {\n if (prevValueRef.current !== value) {\n onChangeRef.current?.(value);\n prevValueRef.current = value;\n }\n }, [value, prevValueRef]);\n return [value, setValue, onChangeRef];\n}\nfunction isFunction(value) {\n return typeof value === \"function\";\n}\n\n// src/use-controllable-state-reducer.tsx\nimport * as React2 from \"react\";\nimport { useEffectEvent } from \"@radix-ui/react-use-effect-event\";\nvar SYNC_STATE = Symbol(\"RADIX:SYNC_STATE\");\nfunction useControllableStateReducer(reducer, userArgs, initialArg, init) {\n const { prop: controlledState, defaultProp, onChange: onChangeProp, caller } = userArgs;\n const isControlled = controlledState !== void 0;\n const onChange = useEffectEvent(onChangeProp);\n if (true) {\n const isControlledRef = React2.useRef(controlledState !== void 0);\n React2.useEffect(() => {\n const wasControlled = isControlledRef.current;\n if (wasControlled !== isControlled) {\n const from = wasControlled ? \"controlled\" : \"uncontrolled\";\n const to = isControlled ? \"controlled\" : \"uncontrolled\";\n console.warn(\n `${caller} is changing from ${from} to ${to}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`\n );\n }\n isControlledRef.current = isControlled;\n }, [isControlled, caller]);\n }\n const args = [{ ...initialArg, state: defaultProp }];\n if (init) {\n args.push(init);\n }\n const [internalState, dispatch] = React2.useReducer(\n (state2, action) => {\n if (action.type === SYNC_STATE) {\n return { ...state2, state: action.state };\n }\n const next = reducer(state2, action);\n if (isControlled && !Object.is(next.state, state2.state)) {\n onChange(next.state);\n }\n return next;\n },\n ...args\n );\n const uncontrolledState = internalState.state;\n const prevValueRef = React2.useRef(uncontrolledState);\n React2.useEffect(() => {\n if (prevValueRef.current !== uncontrolledState) {\n prevValueRef.current = uncontrolledState;\n if (!isControlled) {\n onChange(uncontrolledState);\n }\n }\n }, [onChange, uncontrolledState, prevValueRef, isControlled]);\n const state = React2.useMemo(() => {\n const isControlled2 = controlledState !== void 0;\n if (isControlled2) {\n return { ...internalState, state: controlledState };\n }\n return internalState;\n }, [internalState, controlledState]);\n React2.useEffect(() => {\n if (isControlled && !Object.is(controlledState, internalState.state)) {\n dispatch({ type: SYNC_STATE, state: controlledState });\n }\n }, [controlledState, internalState.state, isControlled]);\n return [state, dispatch];\n}\nexport {\n useControllableState,\n useControllableStateReducer\n};\n//# sourceMappingURL=index.mjs.map\n","// packages/react/use-escape-keydown/src/use-escape-keydown.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {\n const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);\n React.useEffect(() => {\n const handleKeyDown = (event) => {\n if (event.key === \"Escape\") {\n onEscapeKeyDown(event);\n }\n };\n ownerDocument.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => ownerDocument.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n }, [onEscapeKeyDown, ownerDocument]);\n}\nexport {\n useEscapeKeydown\n};\n//# sourceMappingURL=index.mjs.map\n","// packages/react/use-layout-effect/src/use-layout-effect.tsx\nimport * as React from \"react\";\nvar useLayoutEffect2 = globalThis?.document ? React.useLayoutEffect : () => {\n};\nexport {\n useLayoutEffect2 as useLayoutEffect\n};\n//# sourceMappingURL=index.mjs.map\n","// src/visually-hidden.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar VISUALLY_HIDDEN_STYLES = Object.freeze({\n // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss\n position: \"absolute\",\n border: 0,\n width: 1,\n height: 1,\n padding: 0,\n margin: -1,\n overflow: \"hidden\",\n clip: \"rect(0, 0, 0, 0)\",\n whiteSpace: \"nowrap\",\n wordWrap: \"normal\"\n});\nvar NAME = \"VisuallyHidden\";\nvar VisuallyHidden = React.forwardRef(\n (props, forwardedRef) => {\n return /* @__PURE__ */ jsx(\n Primitive.span,\n {\n ...props,\n ref: forwardedRef,\n style: { ...VISUALLY_HIDDEN_STYLES, ...props.style }\n }\n );\n }\n);\nVisuallyHidden.displayName = NAME;\nvar Root = VisuallyHidden;\nexport {\n Root,\n VISUALLY_HIDDEN_STYLES,\n VisuallyHidden\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Promise","resolve","then","__webpack_require__","bind","t","queryClient","QueryClient","TanstackQueryClientProvider","children","param","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","QueryClientProvider","client","ConfigContext","createContext","ConfigContextProvider","config","console","log","Provider","value","__webpack_exports__","width","height","className","alt","configContext","useContext","jsxs","Fragment","img","src","backend","ThemeProvider","props","NextThemesProvider","defaultTheme","ToastProvider","ToastPrimitives","ToastViewport","React","ref","jsx_runtime","cn","displayName","toastVariants","cva","variants","variant","default","destructive","defaultVariants","Toast","ToastAction","ToastClose","toast-close","X","ToastTitle","ToastDescription","Toaster","toasts","useToast","map","id","title","description","action","div","count","toastTimeouts","Map","addToRemoveQueue","has","toastId","timeout","setTimeout","delete","dispatch","type","set","reducer","state","toast","slice","forEach","undefined","open","filter","listeners","memoryState","listener","Number","MAX_SAFE_INTEGER","toString","dismiss","onOpenChange","update","setState","push","index","indexOf","splice","_len","arguments","length","inputs","_key","twMerge","clsx","defaultAttributes","xmlns","viewBox","fill","stroke","strokeWidth","strokeLinecap","strokeLinejoin","toKebabCase","string","replace","toLowerCase","trim","createLucideIcon","iconName","iconNode","Component","forwardRef","color","size","absoluteStrokeWidth","rest","createElement","concat","join","tag","attrs","Array","isArray","d","key","c","i","window","u","react__WEBPACK_IMPORTED_MODULE_0__","h","setTheme","e","themes","y","$","r","f","v","forcedTheme","disableTransitionOnChange","n","enableSystem","l","enableColorScheme","m","storageKey","attribute","w","nonce","T","E","k","useState","S","C","L","x","Object","values","I","useCallback","p","o","b","a","document","documentElement","classList","remove","add","setAttribute","removeAttribute","includes","style","colorScheme","O","localStorage","setItem","M","useEffect","matchMedia","addListener","removeListener","newValue","addEventListener","removeEventListener","A","useMemo","theme","resolvedTheme","systemTheme","g","memo","s","JSON","stringify","dangerouslySetInnerHTML","__html","getItem","appendChild","createTextNode","head","getComputedStyle","body","removeChild","matches","composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event","defaultPrevented","setRef","current","composeRefs","refs","hasCleanup","cleanups","cleanup","node","useComposedRefs","createContext2","rootComponentName","defaultContext","Context","context","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__","consumerName","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createScope","scopeContexts","scope","contexts","BaseContext","composeContextScopes","scopes","baseScope","scopeHooks","useScope","createScope2","overrideScopes","nextScopes","reduce","nextScopes2","currentScope","scopeProps","originalBodyPointerEvents","CONTEXT_UPDATE","DismissableLayerContext","layers","Set","layersWithOutsidePointerEventsDisabled","branches","DismissableLayer","forwardedRef","globalThis","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","layerProps","setNode","ownerDocument","force","composedRefs","from","highestLayerWithOutsidePointerEventsDisabled","highestLayerWithOutsidePointerEventsDisabledIndex","isBodyPointerEventsDisabled","isPointerEventsEnabled","pointerDownOutside","usePointerDownOutside","handlePointerDownOutside","useCallbackRef","isPointerInsideReactTreeRef","handleClickRef","handlePointerDown","target","handleAndDispatchPointerDownOutsideEvent","handleAndDispatchCustomEvent","eventDetail","discrete","originalEvent","pointerType","once","timerId","clearTimeout","onPointerDownCapture","isPointerDownOnBranch","some","branch","contains","focusOutside","useFocusOutside","handleFocusOutside","isFocusInsideReactTreeRef","handleFocus","onFocusCapture","onBlurCapture","useEscapeKeydown","preventDefault","pointerEvents","dispatchUpdate","handleUpdate","Primitive","DismissableLayerBranch","CustomEvent","dispatchEvent","name","handler","detail","bubbles","cancelable","dispatchDiscreteCustomEvent","Root","Branch","Portal","container","containerProp","portalProps","mounted","setMounted","useLayoutEffect","ReactDOM","Presence","getter","mayWarn","present","presence","usePresence","initialState","machine","React2","stylesRef","prevPresentRef","prevAnimationNameRef","send","UNMOUNT","ANIMATION_OUT","unmountSuspended","MOUNT","ANIMATION_END","unmounted","nextState","currentAnimationName","getAnimationName","styles","wasPresent","prevAnimationName","display","timeoutId","ownerWindow","defaultView","handleAnimationEnd","isCurrentAnimation","animationName","currentFillMode","animationFillMode","handleAnimationStart","isPresent","child","only","getOwnPropertyDescriptor","element","get","isReactWarning","forceMount","NODES","primitive","Slot","_radix_ui_react_slot__WEBPACK_IMPORTED_MODULE_3__","Z8","Node","asChild","primitiveProps","Comp","Symbol","for","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__","react_dom__WEBPACK_IMPORTED_MODULE_1__","flushSync","createSlot","ownerName","SlotClone","createSlotClone","slotProps","isValidElement","childrenRef","props2","mergeProps","childProps","overrideProps","propName","slotPropValue","childPropValue","test","args","result","Boolean","_radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_2__","F","cloneElement","Children","Slot2","childrenArray","toArray","slottable","find","isSlottable","newElement","newChildren","SLOTTABLE_IDENTIFIER","createSlottable","Slottable2","__radixId","callback","callbackRef","useRef","useInsertionEffect","react__WEBPACK_IMPORTED_MODULE_0___namespace_cache","_radix_ui_react_use_layout_effect__WEBPACK_IMPORTED_MODULE_1__","useControllableState","prop","defaultProp","onChange","caller","uncontrolledProp","setUncontrolledProp","onChangeRef","useUncontrolledState","setValue","prevValueRef","isControlled","isControlledRef","wasControlled","to","warn","value2","isFunction","nextValue","onEscapeKeyDownProp","_radix_ui_react_use_callback_ref__WEBPACK_IMPORTED_MODULE_1__","W","handleKeyDown","capture","useLayoutEffect2","VISUALLY_HIDDEN_STYLES","freeze","position","border","padding","margin","overflow","clip","whiteSpace","wordWrap","VisuallyHidden","_radix_ui_react_primitive__WEBPACK_IMPORTED_MODULE_2__","WV","span"],"sourceRoot":""}
|