@pg-boss/dashboard 1.1.0 → 1.1.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/README.md +25 -173
- package/build/client/assets/MenuTrigger-CEHCnGow.js +1 -0
- package/build/client/assets/{_index-Bcg_-XSd.js → _index-9fLquIe1.js} +1 -1
- package/build/client/assets/{badge-Cd8v3tl3.js → badge-B5ZugmiV.js} +1 -1
- package/build/client/assets/{button-BaXUPm8v.js → button-Djse56Dx.js} +1 -1
- package/build/client/assets/{chevron-down-xu6Uceu-.js → chevron-down-B4tDL9Ah.js} +1 -1
- package/build/client/assets/chunk-LFPYN7LY-Cj1DJmJR.js +26 -0
- package/build/client/assets/{createLucideIcon-BXGwbdrh.js → createLucideIcon-B0YqJFaz.js} +1 -1
- package/build/client/assets/db-link-DmvfwdX4.js +1 -0
- package/build/client/assets/dialog-CQzw3QVH.js +1 -0
- package/build/client/assets/{entry.client-COnaNoy-.js → entry.client-Szv-xmaE.js} +4 -4
- package/build/client/assets/{error-card-DmoxS3Ao.js → error-card-CXoOCvsg.js} +1 -1
- package/build/client/assets/{filter-select-mMC79WOR.js → filter-select-DXyBBVm8.js} +1 -1
- package/build/client/assets/{index-DhMkYPMa.js → index-x2yWco1W.js} +1 -1
- package/build/client/assets/{jobs-DtmTCs8I.js → jobs-CM6xcK-O.js} +1 -1
- package/build/client/assets/manifest-acaa4b8e.js +1 -0
- package/build/client/assets/{pagination-NfhvsUbp.js → pagination-C4yyCmBA.js} +1 -1
- package/build/client/assets/{queues._index-Cw1B49mg.js → queues._index-Dn3ieC5d.js} +1 -1
- package/build/client/assets/{queues._name-D0cG_qDX.js → queues._name-GrviLLx2.js} +1 -1
- package/build/client/assets/{queues._name.jobs._jobId-uJ3dfM3J.js → queues._name.jobs._jobId-s_wYs79w.js} +1 -1
- package/build/client/assets/{queues.create-BGXDhJ3m.js → queues.create-Ch3Mqw52.js} +1 -1
- package/build/client/assets/root-Bpb4WtY4.css +1 -0
- package/build/client/assets/{root-NWrBrGvr.js → root-D0qqtdF7.js} +1 -1
- package/build/client/assets/{schedules-DzgBEayh.js → schedules-DwnuuhxF.js} +1 -1
- package/build/client/assets/{schedules._name._key-i42S9kw2.js → schedules._name._key-DJn-u3Cm.js} +1 -1
- package/build/client/assets/{schedules.new-Dt78KptL.js → schedules.new-CQuE2Uhz.js} +1 -1
- package/build/client/assets/{send-0eWgiWNl.js → send-DVfuC6NR.js} +1 -1
- package/build/client/assets/{table-CTo0I5HG.js → table-CtSLyG7m.js} +1 -1
- package/build/client/assets/useOpenInteractionType-Ss_6xZdw.js +12 -0
- package/build/client/assets/{warnings-BhQM6lFV.js → warnings-DqRQYomb.js} +1 -1
- package/build/server/assets/server-build.js +305 -39
- package/package.json +15 -15
- package/build/client/assets/MenuTrigger-SThQHnlb.js +0 -1
- package/build/client/assets/chunk-JZWAC4HX-DC8i-F7r.js +0 -26
- package/build/client/assets/db-link-CtPnIrIr.js +0 -1
- package/build/client/assets/dialog-Bl8T588f.js +0 -1
- package/build/client/assets/manifest-25954681.js +0 -1
- package/build/client/assets/root-DJRlbyb5.css +0 -1
- package/build/client/assets/useOpenInteractionType-C_L8nZ_l.js +0 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as r}from"./chunk-
|
|
1
|
+
import{p as r}from"./chunk-LFPYN7LY-Cj1DJmJR.js";import{D as s}from"./db-link-DmvfwdX4.js";import{C as i,c as n}from"./button-Djse56Dx.js";function c({title:t,message:a="Please check your database connection and try again.",backTo:e}){return r.jsx("div",{className:"p-6",children:r.jsx(i,{children:r.jsxs(n,{className:"py-8 text-center",children:[r.jsx("p",{className:"text-red-600 dark:text-red-400 font-medium",children:t}),r.jsx("p",{className:"text-gray-500 dark:text-gray-400 text-sm mt-1",children:a}),e&&r.jsx(s,{to:e.href,className:"inline-block mt-4 text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300",children:e.label})]})})})}export{c as E};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e}from"./chunk-
|
|
1
|
+
import{p as e}from"./chunk-LFPYN7LY-Cj1DJmJR.js";import{c as l}from"./db-link-DmvfwdX4.js";function u({value:a,options:t,onChange:o,className:s}){return e.jsx("select",{value:a??"",onChange:r=>o(r.target.value||null),className:l("px-3 py-2 text-sm rounded-lg shadow-sm","bg-white border border-gray-300 text-gray-900","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:ring-offset-2","dark:focus:ring-offset-gray-900",s),children:t.map(r=>e.jsx("option",{value:r.value??"",children:r.label},r.label))})}export{u as F};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as O}from"./chunk-
|
|
1
|
+
import{r as O}from"./chunk-LFPYN7LY-Cj1DJmJR.js";var y={exports:{}},n={};var l;function S(){if(l)return n;l=1;var u=O();function g(e){var r="https://react.dev/errors/"+e;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)r+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var i={d:{f:a,r:function(){throw Error(g(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},m=Symbol.for("react.portal");function v(e,r,t){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:c==null?null:""+c,children:e,containerInfo:r,implementation:t}}var f=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,r){if(e==="font")return"";if(typeof r=="string")return r==="use-credentials"?r:""}return n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,n.createPortal=function(e,r){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)throw Error(g(299));return v(e,r,null,t)},n.flushSync=function(e){var r=f.T,t=i.p;try{if(f.T=null,i.p=2,e)return e()}finally{f.T=r,i.p=t,i.d.f()}},n.preconnect=function(e,r){typeof e=="string"&&(r?(r=r.crossOrigin,r=typeof r=="string"?r==="use-credentials"?r:"":void 0):r=null,i.d.C(e,r))},n.prefetchDNS=function(e){typeof e=="string"&&i.d.D(e)},n.preinit=function(e,r){if(typeof e=="string"&&r&&typeof r.as=="string"){var t=r.as,c=d(t,r.crossOrigin),s=typeof r.integrity=="string"?r.integrity:void 0,o=typeof r.fetchPriority=="string"?r.fetchPriority:void 0;t==="style"?i.d.S(e,typeof r.precedence=="string"?r.precedence:void 0,{crossOrigin:c,integrity:s,fetchPriority:o}):t==="script"&&i.d.X(e,{crossOrigin:c,integrity:s,fetchPriority:o,nonce:typeof r.nonce=="string"?r.nonce:void 0})}},n.preinitModule=function(e,r){if(typeof e=="string")if(typeof r=="object"&&r!==null){if(r.as==null||r.as==="script"){var t=d(r.as,r.crossOrigin);i.d.M(e,{crossOrigin:t,integrity:typeof r.integrity=="string"?r.integrity:void 0,nonce:typeof r.nonce=="string"?r.nonce:void 0})}}else r==null&&i.d.M(e)},n.preload=function(e,r){if(typeof e=="string"&&typeof r=="object"&&r!==null&&typeof r.as=="string"){var t=r.as,c=d(t,r.crossOrigin);i.d.L(e,t,{crossOrigin:c,integrity:typeof r.integrity=="string"?r.integrity:void 0,nonce:typeof r.nonce=="string"?r.nonce:void 0,type:typeof r.type=="string"?r.type:void 0,fetchPriority:typeof r.fetchPriority=="string"?r.fetchPriority:void 0,referrerPolicy:typeof r.referrerPolicy=="string"?r.referrerPolicy:void 0,imageSrcSet:typeof r.imageSrcSet=="string"?r.imageSrcSet:void 0,imageSizes:typeof r.imageSizes=="string"?r.imageSizes:void 0,media:typeof r.media=="string"?r.media:void 0})}},n.preloadModule=function(e,r){if(typeof e=="string")if(r){var t=d(r.as,r.crossOrigin);i.d.m(e,{as:typeof r.as=="string"&&r.as!=="script"?r.as:void 0,crossOrigin:t,integrity:typeof r.integrity=="string"?r.integrity:void 0})}else i.d.m(e)},n.requestFormReset=function(e){i.d.r(e)},n.unstable_batchedUpdates=function(e,r){return e(r)},n.useFormState=function(e,r,t){return f.H.useFormState(e,r,t)},n.useFormStatus=function(){return f.H.useHostTransitionStatus()},n.version="19.2.4",n}var _;function R(){if(_)return y.exports;_=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(g){console.error(g)}}return u(),y.exports=S(),y.exports}var T=R();export{T as a,R as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as f,B as C,t as P,p as e}from"./chunk-
|
|
1
|
+
import{A as f,B as C,t as P,p as e}from"./chunk-LFPYN7LY-Cj1DJmJR.js";import{D as c,J as N,d as T,e as b}from"./db-link-DmvfwdX4.js";import{B as S,C as B,a as w,b as k,c as v}from"./button-Djse56Dx.js";import{B as E}from"./badge-B5ZugmiV.js";import{T as J,a as R,b as i,c as t,d as A,e as s}from"./table-CtSLyG7m.js";import{P as D}from"./pagination-C4yyCmBA.js";import{F}from"./filter-select-DXyBBVm8.js";import{E as O}from"./error-card-CXoOCvsg.js";const Q=C(function(){return e.jsx(O,{title:"Failed to load jobs"})}),V=f(function({loaderData:m}){const{recentJobs:l,page:h,stateFilter:j,hasNextPage:p,hasPrevPage:g}=m,[d,o]=P(),y=(a,r)=>{const n=new URLSearchParams(d);r?n.set(a,r):n.delete(a),n.delete("page"),o(n)},u=a=>{const r=new URLSearchParams(d);r.set("page",a.toString()),o(r)};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:"Jobs"}),e.jsx("p",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400",children:"Recently created jobs across all queues"})]}),e.jsx(c,{to:"/send",children:e.jsx(S,{variant:"primary",size:"md",children:"Send Job"})})]}),e.jsxs(B,{children:[e.jsxs(w,{className:"flex flex-row items-center justify-between",children:[e.jsx(k,{children:"Jobs"}),e.jsx(F,{value:j,options:N,onChange:a=>y("state",a)})]}),e.jsx(v,{className:"p-0",children:e.jsxs(J,{children:[e.jsx(R,{children:e.jsxs(i,{children:[e.jsx(t,{children:"ID"}),e.jsx(t,{children:"Queue"}),e.jsx(t,{children:"State"}),e.jsx(t,{children:"Retries"}),e.jsx(t,{children:"Created"})]})}),e.jsx(A,{children:l.length===0?e.jsx(i,{children:e.jsx(s,{className:"text-center text-gray-500 dark:text-gray-400 py-8",colSpan:5,children:"No jobs found"})}):l.map(a=>e.jsxs(i,{children:[e.jsx(s,{children:e.jsxs(c,{to:`/queues/${encodeURIComponent(a.name)}/jobs/${a.id}`,className:"font-mono text-xs text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300",children:[a.id.slice(0,8),"..."]})}),e.jsx(s,{className:"text-gray-700 dark:text-gray-300",children:a.name}),e.jsx(s,{children:e.jsx(E,{variant:T[a.state],size:"sm",children:a.state})}),e.jsxs(s,{className:"text-gray-700 dark:text-gray-300",children:[a.retryCount," / ",a.retryLimit]}),e.jsx(s,{className:"text-gray-500 dark:text-gray-400",children:b(new Date(a.createdOn))})]},a.id))})]})}),e.jsx(D,{page:h,totalPages:null,hasNextPage:p,hasPrevPage:g,onPageChange:u})]})]})});export{Q as ErrorBoundary,V as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
window.__reactRouterManifest={"entry":{"module":"/assets/entry.client-Szv-xmaE.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/index-x2yWco1W.js"],"css":[]},"routes":{"root":{"id":"root","path":"","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/root-D0qqtdF7.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/index-x2yWco1W.js","/assets/db-link-DmvfwdX4.js","/assets/createLucideIcon-B0YqJFaz.js","/assets/MenuTrigger-CEHCnGow.js","/assets/useOpenInteractionType-Ss_6xZdw.js"],"css":["/assets/root-Bpb4WtY4.css"]},"routes/_index":{"id":"routes/_index","parentId":"root","index":true,"hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/_index-9fLquIe1.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/db-link-DmvfwdX4.js","/assets/button-Djse56Dx.js","/assets/badge-B5ZugmiV.js","/assets/table-CtSLyG7m.js","/assets/error-card-CXoOCvsg.js"],"css":[]},"routes/jobs":{"id":"routes/jobs","parentId":"root","path":"jobs","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/jobs-CM6xcK-O.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/db-link-DmvfwdX4.js","/assets/button-Djse56Dx.js","/assets/badge-B5ZugmiV.js","/assets/table-CtSLyG7m.js","/assets/pagination-C4yyCmBA.js","/assets/filter-select-DXyBBVm8.js","/assets/error-card-CXoOCvsg.js"],"css":[]},"routes/queues._index":{"id":"routes/queues._index","parentId":"root","path":"queues","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/queues._index-Dn3ieC5d.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/db-link-DmvfwdX4.js","/assets/button-Djse56Dx.js","/assets/badge-B5ZugmiV.js","/assets/filter-select-DXyBBVm8.js","/assets/table-CtSLyG7m.js"],"css":[]},"routes/queues.create":{"id":"routes/queues.create","parentId":"root","path":"queues/create","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/queues.create-Ch3Mqw52.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/db-link-DmvfwdX4.js","/assets/button-Djse56Dx.js","/assets/chevron-down-B4tDL9Ah.js","/assets/error-card-CXoOCvsg.js","/assets/createLucideIcon-B0YqJFaz.js"],"css":[]},"routes/queues.$name":{"id":"routes/queues.$name","parentId":"root","path":"queues/:name","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/queues._name-GrviLLx2.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/db-link-DmvfwdX4.js","/assets/button-Djse56Dx.js","/assets/badge-B5ZugmiV.js","/assets/table-CtSLyG7m.js","/assets/pagination-C4yyCmBA.js","/assets/filter-select-DXyBBVm8.js","/assets/dialog-CQzw3QVH.js","/assets/error-card-CXoOCvsg.js","/assets/chevron-down-B4tDL9Ah.js","/assets/createLucideIcon-B0YqJFaz.js","/assets/MenuTrigger-CEHCnGow.js","/assets/useOpenInteractionType-Ss_6xZdw.js","/assets/index-x2yWco1W.js"],"css":[]},"routes/queues.$name.jobs.$jobId":{"id":"routes/queues.$name.jobs.$jobId","parentId":"root","path":"queues/:name/jobs/:jobId","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/queues._name.jobs._jobId-s_wYs79w.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/db-link-DmvfwdX4.js","/assets/button-Djse56Dx.js","/assets/badge-B5ZugmiV.js","/assets/dialog-CQzw3QVH.js","/assets/error-card-CXoOCvsg.js","/assets/createLucideIcon-B0YqJFaz.js","/assets/useOpenInteractionType-Ss_6xZdw.js","/assets/index-x2yWco1W.js"],"css":[]},"routes/schedules":{"id":"routes/schedules","parentId":"root","path":"schedules","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/schedules-DwnuuhxF.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/db-link-DmvfwdX4.js","/assets/button-Djse56Dx.js","/assets/table-CtSLyG7m.js","/assets/pagination-C4yyCmBA.js","/assets/error-card-CXoOCvsg.js"],"css":[]},"routes/schedules.$name.$key":{"id":"routes/schedules.$name.$key","parentId":"root","path":"schedules/:name/:key","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/schedules._name._key-DJn-u3Cm.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/db-link-DmvfwdX4.js","/assets/button-Djse56Dx.js","/assets/dialog-CQzw3QVH.js","/assets/error-card-CXoOCvsg.js","/assets/createLucideIcon-B0YqJFaz.js","/assets/useOpenInteractionType-Ss_6xZdw.js","/assets/index-x2yWco1W.js"],"css":[]},"routes/schedules.new":{"id":"routes/schedules.new","parentId":"root","path":"schedules/new","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/schedules.new-CQuE2Uhz.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/db-link-DmvfwdX4.js","/assets/button-Djse56Dx.js","/assets/error-card-CXoOCvsg.js"],"css":[]},"routes/send":{"id":"routes/send","parentId":"root","path":"send","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/send-DVfuC6NR.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/db-link-DmvfwdX4.js","/assets/button-Djse56Dx.js","/assets/error-card-CXoOCvsg.js"],"css":[]},"routes/warnings":{"id":"routes/warnings","parentId":"root","path":"warnings","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/warnings-DqRQYomb.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/button-Djse56Dx.js","/assets/badge-B5ZugmiV.js","/assets/table-CtSLyG7m.js","/assets/pagination-C4yyCmBA.js","/assets/filter-select-DXyBBVm8.js","/assets/error-card-CXoOCvsg.js","/assets/db-link-DmvfwdX4.js"],"css":[]}},"url":"/assets/manifest-acaa4b8e.js","version":"acaa4b8e"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as r}from"./chunk-
|
|
1
|
+
import{p as r}from"./chunk-LFPYN7LY-Cj1DJmJR.js";import{B as l}from"./button-Djse56Dx.js";import{c as o}from"./db-link-DmvfwdX4.js";function m({page:i,totalPages:s,hasNextPage:e,hasPrevPage:t,onPageChange:n}){return!t&&!e?null:r.jsxs("div",{className:o("flex items-center justify-between px-6 py-4 border-t","border-gray-200 dark:border-gray-800"),children:[r.jsxs("div",{className:"text-sm text-gray-500 dark:text-gray-400",children:["Page ",i,s!=null&&` of ${s}`]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsx(l,{variant:"outline",size:"sm",onClick:()=>n(i-1),disabled:!t,children:"Previous"}),r.jsx(l,{variant:"outline",size:"sm",onClick:()=>n(i+1),disabled:!e,children:"Next"})]})]})}export{m as P};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as Q,B as T,t as E,a as C,p as e}from"./chunk-
|
|
1
|
+
import{A as Q,B as T,t as E,a as C,p as e}from"./chunk-LFPYN7LY-Cj1DJmJR.js";import{D as x,c as S}from"./db-link-DmvfwdX4.js";import{B as y,C as P,c as w}from"./button-Djse56Dx.js";import{B as i}from"./badge-B5ZugmiV.js";import{F as R}from"./filter-select-DXyBBVm8.js";import{T as D,a as F,b as u,c as s,d as U,e as a}from"./table-CtSLyG7m.js";const G=T(function(){return e.jsx("div",{className:"p-6",children:e.jsx(P,{children:e.jsxs(w,{className:"py-8 text-center",children:[e.jsx("p",{className:"text-red-600 dark:text-red-400 font-medium",children:"Failed to load queues"}),e.jsx("p",{className:"text-gray-500 dark:text-gray-400 text-sm mt-1",children:"Please check your database connection and try again."}),e.jsx(x,{to:"/",className:"inline-block mt-4 text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300",children:"Back to Dashboard"})]})})})}),J=Q(function({loaderData:L}){const{queues:j,totalCount:f,page:h,totalPages:k,hasNextPage:B,hasPrevPage:z,filter:o,search:n}=L,[m,c]=E(),[g,d]=C.useState(n);C.useEffect(()=>{d(n)},[n]);const v=r=>{const t=new URLSearchParams(m);t.set("page",r.toString()),c(t)},p=r=>{const t=new URLSearchParams(m);r.trim()?t.set("search",r.trim()):t.delete("search"),t.delete("page"),c(t)},N=r=>{const t=new URLSearchParams(m);r==="all"?t.delete("filter"):t.set("filter",r),t.delete("page"),c(t)},A=()=>{c({}),d("")},b=o!=="all"||n,I={all:"All Queues",attention:"Needing Attention",partitioned:"Partitioned"};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:"Queues"}),e.jsxs("p",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400",children:[f.toLocaleString()," queue",f!==1?"s":""," ",b?"found":"configured"]})]}),e.jsx(x,{to:"/queues/create",children:e.jsx(y,{variant:"primary",size:"md",children:"Create Queue"})})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[e.jsx("div",{className:"flex-1",children:e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"text",placeholder:"Search queues by name...",value:g,onChange:r=>d(r.target.value),onKeyDown:r=>{r.key==="Enter"&&p(g)},className:S("w-full px-4 py-2 pl-10 rounded-lg border shadow-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-500","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-400","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-primary-600","dark:focus:ring-primary-500 dark:focus:border-primary-500")}),e.jsx(H,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 text-gray-400"}),g&&e.jsx("button",{onClick:()=>{d(""),p("")},className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 cursor-pointer",children:e.jsx(M,{className:"h-5 w-5"})})]})}),e.jsx(R,{value:o,options:[{value:"all",label:"All Queues"},{value:"attention",label:"Needing Attention"},{value:"partitioned",label:"Partitioned"}],onChange:r=>N(r)})]}),b&&e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Active filters:"}),o!=="all"&&e.jsxs(i,{variant:"primary",size:"sm",children:[I[o],e.jsx("button",{onClick:()=>N("all"),className:"ml-1 hover:text-primary-700 cursor-pointer",children:"×"})]}),n&&e.jsxs(i,{variant:"primary",size:"sm",children:["Search: ",n,e.jsx("button",{onClick:()=>p(""),className:"ml-1 hover:text-primary-700 cursor-pointer",children:"×"})]}),e.jsx("button",{onClick:A,className:"text-sm text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300 cursor-pointer",children:"Clear all"})]}),e.jsxs(P,{children:[e.jsx(w,{className:"p-0",children:e.jsxs(D,{children:[e.jsx(F,{children:e.jsxs(u,{children:[e.jsx(s,{children:"Name"}),e.jsx(s,{children:"Policy"}),e.jsx(s,{children:"Storage"}),e.jsx(s,{className:"text-right",children:"Queued"}),e.jsx(s,{className:"text-right",children:"Active"}),e.jsx(s,{className:"text-right",children:"Deferred"}),e.jsx(s,{className:"text-right",children:"Total"}),e.jsx(s,{children:"Dead Letter"}),e.jsx(s,{children:"Status"})]})}),e.jsx(U,{children:j.length===0?e.jsx(u,{children:e.jsx(a,{className:"text-center text-gray-500 dark:text-gray-400 py-8",colSpan:9,children:"No queues found"})}):j.map(r=>{const t=(r.warningQueueSize??0)>0&&r.queuedCount>(r.warningQueueSize??0);return e.jsxs(u,{children:[e.jsx(a,{children:e.jsx(x,{to:`/queues/${encodeURIComponent(r.name)}`,className:"font-medium text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300",children:r.name})}),e.jsx(a,{children:e.jsx(i,{variant:"gray",size:"sm",children:r.policy})}),e.jsx(a,{className:"text-gray-700 dark:text-gray-300",children:r.partition?"Partitioned":"Shared"}),e.jsx(a,{className:"text-right text-gray-700 dark:text-gray-300",children:r.queuedCount.toLocaleString()}),e.jsx(a,{className:"text-right text-gray-700 dark:text-gray-300",children:r.activeCount.toLocaleString()}),e.jsx(a,{className:"text-right text-gray-700 dark:text-gray-300",children:r.deferredCount.toLocaleString()}),e.jsx(a,{className:"text-right text-gray-700 dark:text-gray-300",children:r.totalCount.toLocaleString()}),e.jsx(a,{children:r.deadLetter?e.jsx(x,{to:`/queues/${encodeURIComponent(r.deadLetter)}`,className:"text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300",children:r.deadLetter}):e.jsx("span",{className:"text-gray-400 dark:text-gray-500",children:"—"})}),e.jsx(a,{children:t?e.jsx(i,{variant:"error",size:"sm",dot:!0,children:"Backlogged"}):r.activeCount>0?e.jsx(i,{variant:"success",size:"sm",dot:!0,children:"Processing"}):e.jsx(i,{variant:"gray",size:"sm",dot:!0,children:"Idle"})})]},r.name)})})]})}),k>1&&e.jsxs("div",{className:S("flex items-center justify-between px-6 py-4 border-t","border-gray-200 dark:border-gray-800"),children:[e.jsxs("div",{className:"text-sm text-gray-500 dark:text-gray-400",children:["Page ",h," of ",k]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(y,{variant:"outline",size:"sm",onClick:()=>v(h-1),disabled:!z,children:"Previous"}),e.jsx(y,{variant:"outline",size:"sm",onClick:()=>v(h+1),disabled:!B,children:"Next"})]})]})]})]})});function H({className:l}){return e.jsx("svg",{className:l,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})})}function M({className:l}){return e.jsx("svg",{className:l,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"})})}export{G as ErrorBoundary,J as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as I,B as J,t as q,a as B,p as e,H as F}from"./chunk-JZWAC4HX-DC8i-F7r.js";import{D as $,c,e as N,J as _,d as z}from"./db-link-CtPnIrIr.js";import{B as P,C as L,c as M,a as H,b as Q}from"./button-BaXUPm8v.js";import{B as R}from"./badge-Cd8v3tl3.js";import{T as U,a as V,b as T,c as h,d as W,e as d}from"./table-CTo0I5HG.js";import{P as G}from"./pagination-NfhvsUbp.js";import{F as K}from"./filter-select-mMC79WOR.js";import{D as X,a as Y,b as Z,c as ee,d as ae,e as re}from"./dialog-Bl8T588f.js";import{E as te}from"./error-card-DmoxS3Ao.js";import{C as se}from"./chevron-down-xu6Uceu-.js";import{c as E}from"./createLucideIcon-BXGwbdrh.js";import{M as ie,a as ne,b as le,c as oe,d as de,e as v}from"./MenuTrigger-SThQHnlb.js";import"./useOpenInteractionType-C_L8nZ_l.js";import"./index-DhMkYPMa.js";const ce=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],xe=E("chevron-right",ce);const me=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],ge=E("ellipsis",me),Re=J(function(){return e.jsx(te,{title:"Failed to load queue",backTo:{href:"/queues",label:"Back to Queues"}})}),Te=I(function({loaderData:n}){const{queue:a,jobs:t,totalCount:s,page:x,totalPages:m,stateFilter:C,hasNextPage:u,hasPrevPage:p}=n,[j,f]=q(),[y,w]=B.useState(!1),D=(l,o)=>{const g=new URLSearchParams(j);o?g.set(l,o):g.delete(l),g.delete("page"),f(g)},b=l=>{const o=new URLSearchParams(j);o.set("page",l.toString()),f(o)};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:a.name}),e.jsxs("div",{className:"mt-2 flex items-center gap-3",children:[e.jsx(R,{variant:"gray",children:a.policy}),a.partition&&e.jsx(R,{variant:"primary",children:"Partitioned"})]})]}),e.jsx($,{to:`/send?queue=${encodeURIComponent(a.name)}`,children:e.jsx(P,{variant:"primary",size:"md",children:"Send Job"})})]}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4",children:[e.jsx(k,{label:"Queued",value:a.queuedCount,variant:"gray"}),e.jsx(k,{label:"Active",value:a.activeCount,variant:"gray"}),e.jsx(k,{label:"Deferred",value:a.deferredCount,variant:"gray"}),e.jsx(k,{label:"Total",value:a.totalCount,variant:"gray"})]}),e.jsxs(L,{children:[e.jsxs("button",{onClick:()=>w(!y),className:c("w-full flex items-center justify-between px-6 py-4","text-left hover:bg-gray-50 dark:hover:bg-gray-800/50","transition-colors cursor-pointer"),children:[e.jsx("h3",{className:"text-base font-semibold text-gray-900 dark:text-gray-100",children:"Configuration"}),y?e.jsx(se,{className:"h-5 w-5 text-gray-500 dark:text-gray-400"}):e.jsx(xe,{className:"h-5 w-5 text-gray-500 dark:text-gray-400"})]}),y&&e.jsx(M,{className:"border-t border-gray-200 dark:border-gray-800",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-x-6 gap-y-4",children:[e.jsx(i,{label:"Policy",value:a.policy||"—"}),e.jsx(i,{label:"Storage",value:a.partition?"Partitioned":"Shared"}),e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"Dead Letter"}),e.jsx("dd",{className:"mt-1 text-sm text-gray-900 dark:text-gray-100",children:a.deadLetter?e.jsx($,{to:`/queues/${a.deadLetter}`,className:"text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300",children:a.deadLetter}):"—"})]}),e.jsx(i,{label:"Warning Threshold",value:a.warningQueueSize||"—"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-x-6 gap-y-4",children:[e.jsx(i,{label:"Retry Limit",value:a.retryLimit??0}),e.jsx(i,{label:"Retry Delay",value:a.retryDelay?`${a.retryDelay}ms`:"—"}),e.jsx(i,{label:"Retry Delay Max",value:a.retryDelayMax?`${a.retryDelayMax}ms`:"—"}),e.jsx(i,{label:"Retry Backoff",value:a.retryBackoff?"Enabled":"Disabled"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-x-6 gap-y-4",children:[e.jsx(i,{label:"Expiration",value:S(a.expireInSeconds)}),e.jsx(i,{label:"Retention",value:S(a.retentionSeconds)}),e.jsx(i,{label:"Deletion",value:S(a.deleteAfterSeconds)})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-x-6 gap-y-4",children:[e.jsx(i,{label:"Created",value:a.createdOn?N(new Date(a.createdOn)):"—"}),e.jsx(i,{label:"Last monitored",value:a.monitorOn?N(new Date(a.monitorOn)):"—"}),e.jsx(i,{label:"Last maintained",value:a.maintainOn?N(new Date(a.maintainOn)):"—"})]})]})})]}),e.jsxs(L,{children:[e.jsxs(H,{className:"flex flex-row items-center justify-between",children:[e.jsxs(Q,{children:["Jobs",s!==null&&` (${s.toLocaleString()})`]}),e.jsx(K,{value:C,options:_,onChange:l=>D("state",l)})]}),e.jsx(M,{className:"p-0",children:e.jsxs(U,{children:[e.jsx(V,{children:e.jsxs(T,{children:[e.jsx(h,{children:"ID"}),e.jsx(h,{children:"State"}),e.jsx(h,{children:"Priority"}),e.jsx(h,{children:"Retries"}),e.jsx(h,{children:"Created"}),e.jsx(h,{children:"Actions"})]})}),e.jsx(W,{children:t.length===0?e.jsx(T,{children:e.jsx(d,{className:"text-center text-gray-500 dark:text-gray-400 py-8",colSpan:6,children:"No jobs found"})}):t.map(l=>e.jsx(he,{job:l,queueName:a.name},l.id))})]})}),e.jsx(G,{page:x,totalPages:m,hasNextPage:u,hasPrevPage:p,onPageChange:b})]})]})});function he({job:r,queueName:n}){const a=F(),t=a.state!=="idle",[s,x]=B.useState(null),m=a.data,C=m&&!m.success&&m.affected===0,u=o=>{a.submit({jobId:r.id,intent:o},{method:"post"})},p=(o,g,O,A)=>{x({open:!0,title:g,description:O,confirmLabel:A,intent:o})},j=()=>{s&&(u(s.intent),x(null))},f=r.state==="created"||r.state==="retry"||r.state==="active",y=r.state==="failed",w=r.state==="cancelled",D=r.state!=="active",b=c("flex w-full items-center px-3 py-2 text-sm cursor-pointer","outline-none transition-colors rounded-sm","text-gray-700 data-highlighted:bg-gray-100 data-highlighted:text-gray-900","dark:text-gray-300 dark:data-highlighted:bg-gray-800 dark:data-highlighted:text-gray-100"),l=c("flex w-full items-center px-3 py-2 text-sm cursor-pointer","outline-none transition-colors rounded-sm","text-red-600 data-highlighted:bg-red-50 data-highlighted:text-red-700","dark:text-red-400 dark:data-highlighted:bg-red-950 dark:data-highlighted:text-red-300");return e.jsxs(e.Fragment,{children:[e.jsxs(T,{children:[e.jsx(d,{children:e.jsxs($,{to:`/queues/${n}/jobs/${r.id}`,className:"font-mono text-xs text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300",children:[r.id.slice(0,8),"..."]})}),e.jsx(d,{children:e.jsx(ue,{state:r.state})}),e.jsx(d,{className:"text-gray-700 dark:text-gray-300",children:r.priority}),e.jsxs(d,{className:"text-gray-700 dark:text-gray-300",children:[r.retryCount," / ",r.retryLimit]}),e.jsx(d,{className:"text-gray-500 dark:text-gray-400",children:N(new Date(r.createdOn))}),e.jsx(d,{children:e.jsxs("div",{className:"flex items-center gap-2",children:[C&&e.jsx("span",{className:"text-xs text-amber-600 dark:text-amber-400",title:m.message,children:"Failed"}),e.jsxs(ie,{children:[e.jsx(ne,{className:c("inline-flex items-center justify-center rounded-md p-1.5","text-gray-500 hover:text-gray-900 hover:bg-gray-100","dark:text-gray-400 dark:hover:text-gray-100 dark:hover:bg-gray-800","focus:outline-none focus:ring-2 focus:ring-primary-500","transition-colors disabled:opacity-50"),disabled:t,"aria-label":"Job actions",children:e.jsx(ge,{className:"h-4 w-4"})}),e.jsx(le,{children:e.jsx(oe,{children:e.jsxs(de,{className:c("min-w-[10rem] rounded-md border p-1 shadow-md z-50","bg-white border-gray-200","dark:bg-gray-900 dark:border-gray-800","animate-in fade-in-0 zoom-in-95"),children:[y&&e.jsx(v,{className:b,onClick:()=>u("retry"),children:"Retry"}),w&&e.jsx(v,{className:b,onClick:()=>u("resume"),children:"Resume"}),f&&e.jsx(v,{className:l,onClick:()=>p("cancel","Cancel Job",`Are you sure you want to cancel job ${r.id.slice(0,8)}...? This will stop the job from being processed.`,"Cancel Job"),children:"Cancel"}),D&&e.jsx(v,{className:l,onClick:()=>p("delete","Delete Job",`Are you sure you want to delete job ${r.id.slice(0,8)}...? This action cannot be undone.`,"Delete"),children:"Delete"})]})})})]})]})})]}),e.jsx(X,{open:s?.open??!1,onOpenChange:o=>!o&&x(null),children:e.jsxs(Y,{hideCloseButton:!0,className:"w-[28rem] max-w-[calc(100vw-2rem)]",children:[e.jsxs(Z,{children:[e.jsx(ee,{children:s?.title}),e.jsx(ae,{className:"mt-2",children:s?.description})]}),e.jsxs(re,{className:"mt-6 flex justify-end gap-3",children:[e.jsx(P,{variant:"outline",size:"sm",className:"cursor-pointer",onClick:()=>x(null),children:"Cancel"}),e.jsx(P,{variant:"danger",size:"sm",className:"cursor-pointer",onClick:j,children:s?.confirmLabel})]})]})})]})}function ue({state:r}){return e.jsx(R,{variant:z[r],size:"sm",children:r})}function k({label:r,value:n,variant:a}){const t={primary:"text-primary-600 dark:text-primary-400",success:"text-green-600 dark:text-green-400",warning:"text-amber-600 dark:text-amber-400",gray:"text-gray-600 dark:text-gray-400"};return e.jsxs("div",{className:c("rounded-lg border p-4","bg-white border-gray-200","dark:bg-gray-900 dark:border-gray-800"),children:[e.jsx("p",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:r}),e.jsx("p",{className:c("text-2xl font-semibold",t[a]),children:n.toLocaleString()})]})}function i({label:r,value:n}){return e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:r}),e.jsx("dd",{className:"mt-1 text-sm text-gray-900 dark:text-gray-100",children:n?.toString()||"—"})]})}function S(r){if(!r)return"—";if(r<60)return`${r} seconds`;if(r<3600){const t=Math.floor(r/60);return`${t} ${t===1?"minute":"minutes"}`}if(r<86400){const t=Math.floor(r/3600),s=Math.floor(r%3600/60);return s===0?`${t} ${t===1?"hour":"hours"}`:`${t} ${t===1?"hour":"hours"} ${s} ${s===1?"minute":"minutes"}`}const n=Math.floor(r/86400),a=Math.floor(r%86400/3600);return a===0?`${n} ${n===1?"day":"days"}`:`${n} ${n===1?"day":"days"} ${a} ${a===1?"hour":"hours"}`}export{Re as ErrorBoundary,Te as default};
|
|
1
|
+
import{A as I,B as J,t as q,a as B,p as e,H as F}from"./chunk-LFPYN7LY-Cj1DJmJR.js";import{D as $,c,e as N,J as _,d as z}from"./db-link-DmvfwdX4.js";import{B as P,C as L,c as M,a as H,b as Q}from"./button-Djse56Dx.js";import{B as R}from"./badge-B5ZugmiV.js";import{T as U,a as V,b as T,c as h,d as W,e as d}from"./table-CtSLyG7m.js";import{P as G}from"./pagination-C4yyCmBA.js";import{F as K}from"./filter-select-DXyBBVm8.js";import{D as X,a as Y,b as Z,c as ee,d as ae,e as re}from"./dialog-CQzw3QVH.js";import{E as te}from"./error-card-CXoOCvsg.js";import{C as se}from"./chevron-down-B4tDL9Ah.js";import{c as E}from"./createLucideIcon-B0YqJFaz.js";import{M as ie,a as ne,b as le,c as oe,d as de,e as v}from"./MenuTrigger-CEHCnGow.js";import"./useOpenInteractionType-Ss_6xZdw.js";import"./index-x2yWco1W.js";const ce=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],xe=E("chevron-right",ce);const me=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],ge=E("ellipsis",me),Re=J(function(){return e.jsx(te,{title:"Failed to load queue",backTo:{href:"/queues",label:"Back to Queues"}})}),Te=I(function({loaderData:n}){const{queue:a,jobs:t,totalCount:s,page:x,totalPages:m,stateFilter:C,hasNextPage:u,hasPrevPage:p}=n,[j,f]=q(),[y,w]=B.useState(!1),D=(l,o)=>{const g=new URLSearchParams(j);o?g.set(l,o):g.delete(l),g.delete("page"),f(g)},b=l=>{const o=new URLSearchParams(j);o.set("page",l.toString()),f(o)};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:a.name}),e.jsxs("div",{className:"mt-2 flex items-center gap-3",children:[e.jsx(R,{variant:"gray",children:a.policy}),a.partition&&e.jsx(R,{variant:"primary",children:"Partitioned"})]})]}),e.jsx($,{to:`/send?queue=${encodeURIComponent(a.name)}`,children:e.jsx(P,{variant:"primary",size:"md",children:"Send Job"})})]}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4",children:[e.jsx(k,{label:"Queued",value:a.queuedCount,variant:"gray"}),e.jsx(k,{label:"Active",value:a.activeCount,variant:"gray"}),e.jsx(k,{label:"Deferred",value:a.deferredCount,variant:"gray"}),e.jsx(k,{label:"Total",value:a.totalCount,variant:"gray"})]}),e.jsxs(L,{children:[e.jsxs("button",{onClick:()=>w(!y),className:c("w-full flex items-center justify-between px-6 py-4","text-left hover:bg-gray-50 dark:hover:bg-gray-800/50","transition-colors cursor-pointer"),children:[e.jsx("h3",{className:"text-base font-semibold text-gray-900 dark:text-gray-100",children:"Configuration"}),y?e.jsx(se,{className:"h-5 w-5 text-gray-500 dark:text-gray-400"}):e.jsx(xe,{className:"h-5 w-5 text-gray-500 dark:text-gray-400"})]}),y&&e.jsx(M,{className:"border-t border-gray-200 dark:border-gray-800",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-x-6 gap-y-4",children:[e.jsx(i,{label:"Policy",value:a.policy||"—"}),e.jsx(i,{label:"Storage",value:a.partition?"Partitioned":"Shared"}),e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"Dead Letter"}),e.jsx("dd",{className:"mt-1 text-sm text-gray-900 dark:text-gray-100",children:a.deadLetter?e.jsx($,{to:`/queues/${a.deadLetter}`,className:"text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300",children:a.deadLetter}):"—"})]}),e.jsx(i,{label:"Warning Threshold",value:a.warningQueueSize||"—"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-x-6 gap-y-4",children:[e.jsx(i,{label:"Retry Limit",value:a.retryLimit??0}),e.jsx(i,{label:"Retry Delay",value:a.retryDelay?`${a.retryDelay}ms`:"—"}),e.jsx(i,{label:"Retry Delay Max",value:a.retryDelayMax?`${a.retryDelayMax}ms`:"—"}),e.jsx(i,{label:"Retry Backoff",value:a.retryBackoff?"Enabled":"Disabled"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-x-6 gap-y-4",children:[e.jsx(i,{label:"Expiration",value:S(a.expireInSeconds)}),e.jsx(i,{label:"Retention",value:S(a.retentionSeconds)}),e.jsx(i,{label:"Deletion",value:S(a.deleteAfterSeconds)})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-x-6 gap-y-4",children:[e.jsx(i,{label:"Created",value:a.createdOn?N(new Date(a.createdOn)):"—"}),e.jsx(i,{label:"Last monitored",value:a.monitorOn?N(new Date(a.monitorOn)):"—"}),e.jsx(i,{label:"Last maintained",value:a.maintainOn?N(new Date(a.maintainOn)):"—"})]})]})})]}),e.jsxs(L,{children:[e.jsxs(H,{className:"flex flex-row items-center justify-between",children:[e.jsxs(Q,{children:["Jobs",s!==null&&` (${s.toLocaleString()})`]}),e.jsx(K,{value:C,options:_,onChange:l=>D("state",l)})]}),e.jsx(M,{className:"p-0",children:e.jsxs(U,{children:[e.jsx(V,{children:e.jsxs(T,{children:[e.jsx(h,{children:"ID"}),e.jsx(h,{children:"State"}),e.jsx(h,{children:"Priority"}),e.jsx(h,{children:"Retries"}),e.jsx(h,{children:"Created"}),e.jsx(h,{children:"Actions"})]})}),e.jsx(W,{children:t.length===0?e.jsx(T,{children:e.jsx(d,{className:"text-center text-gray-500 dark:text-gray-400 py-8",colSpan:6,children:"No jobs found"})}):t.map(l=>e.jsx(he,{job:l,queueName:a.name},l.id))})]})}),e.jsx(G,{page:x,totalPages:m,hasNextPage:u,hasPrevPage:p,onPageChange:b})]})]})});function he({job:r,queueName:n}){const a=F(),t=a.state!=="idle",[s,x]=B.useState(null),m=a.data,C=m&&!m.success&&m.affected===0,u=o=>{a.submit({jobId:r.id,intent:o},{method:"post"})},p=(o,g,O,A)=>{x({open:!0,title:g,description:O,confirmLabel:A,intent:o})},j=()=>{s&&(u(s.intent),x(null))},f=r.state==="created"||r.state==="retry"||r.state==="active",y=r.state==="failed",w=r.state==="cancelled",D=r.state!=="active",b=c("flex w-full items-center px-3 py-2 text-sm cursor-pointer","outline-none transition-colors rounded-sm","text-gray-700 data-highlighted:bg-gray-100 data-highlighted:text-gray-900","dark:text-gray-300 dark:data-highlighted:bg-gray-800 dark:data-highlighted:text-gray-100"),l=c("flex w-full items-center px-3 py-2 text-sm cursor-pointer","outline-none transition-colors rounded-sm","text-red-600 data-highlighted:bg-red-50 data-highlighted:text-red-700","dark:text-red-400 dark:data-highlighted:bg-red-950 dark:data-highlighted:text-red-300");return e.jsxs(e.Fragment,{children:[e.jsxs(T,{children:[e.jsx(d,{children:e.jsxs($,{to:`/queues/${n}/jobs/${r.id}`,className:"font-mono text-xs text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300",children:[r.id.slice(0,8),"..."]})}),e.jsx(d,{children:e.jsx(ue,{state:r.state})}),e.jsx(d,{className:"text-gray-700 dark:text-gray-300",children:r.priority}),e.jsxs(d,{className:"text-gray-700 dark:text-gray-300",children:[r.retryCount," / ",r.retryLimit]}),e.jsx(d,{className:"text-gray-500 dark:text-gray-400",children:N(new Date(r.createdOn))}),e.jsx(d,{children:e.jsxs("div",{className:"flex items-center gap-2",children:[C&&e.jsx("span",{className:"text-xs text-amber-600 dark:text-amber-400",title:m.message,children:"Failed"}),e.jsxs(ie,{children:[e.jsx(ne,{className:c("inline-flex items-center justify-center rounded-md p-1.5","text-gray-500 hover:text-gray-900 hover:bg-gray-100","dark:text-gray-400 dark:hover:text-gray-100 dark:hover:bg-gray-800","focus:outline-none focus:ring-2 focus:ring-primary-500","transition-colors disabled:opacity-50"),disabled:t,"aria-label":"Job actions",children:e.jsx(ge,{className:"h-4 w-4"})}),e.jsx(le,{children:e.jsx(oe,{children:e.jsxs(de,{className:c("min-w-[10rem] rounded-md border p-1 shadow-md z-50","bg-white border-gray-200","dark:bg-gray-900 dark:border-gray-800","animate-in fade-in-0 zoom-in-95"),children:[y&&e.jsx(v,{className:b,onClick:()=>u("retry"),children:"Retry"}),w&&e.jsx(v,{className:b,onClick:()=>u("resume"),children:"Resume"}),f&&e.jsx(v,{className:l,onClick:()=>p("cancel","Cancel Job",`Are you sure you want to cancel job ${r.id.slice(0,8)}...? This will stop the job from being processed.`,"Cancel Job"),children:"Cancel"}),D&&e.jsx(v,{className:l,onClick:()=>p("delete","Delete Job",`Are you sure you want to delete job ${r.id.slice(0,8)}...? This action cannot be undone.`,"Delete"),children:"Delete"})]})})})]})]})})]}),e.jsx(X,{open:s?.open??!1,onOpenChange:o=>!o&&x(null),children:e.jsxs(Y,{hideCloseButton:!0,className:"w-[28rem] max-w-[calc(100vw-2rem)]",children:[e.jsxs(Z,{children:[e.jsx(ee,{children:s?.title}),e.jsx(ae,{className:"mt-2",children:s?.description})]}),e.jsxs(re,{className:"mt-6 flex justify-end gap-3",children:[e.jsx(P,{variant:"outline",size:"sm",className:"cursor-pointer",onClick:()=>x(null),children:"Cancel"}),e.jsx(P,{variant:"danger",size:"sm",className:"cursor-pointer",onClick:j,children:s?.confirmLabel})]})]})})]})}function ue({state:r}){return e.jsx(R,{variant:z[r],size:"sm",children:r})}function k({label:r,value:n,variant:a}){const t={primary:"text-primary-600 dark:text-primary-400",success:"text-green-600 dark:text-green-400",warning:"text-amber-600 dark:text-amber-400",gray:"text-gray-600 dark:text-gray-400"};return e.jsxs("div",{className:c("rounded-lg border p-4","bg-white border-gray-200","dark:bg-gray-900 dark:border-gray-800"),children:[e.jsx("p",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:r}),e.jsx("p",{className:c("text-2xl font-semibold",t[a]),children:n.toLocaleString()})]})}function i({label:r,value:n}){return e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:r}),e.jsx("dd",{className:"mt-1 text-sm text-gray-900 dark:text-gray-100",children:n?.toString()||"—"})]})}function S(r){if(!r)return"—";if(r<60)return`${r} seconds`;if(r<3600){const t=Math.floor(r/60);return`${t} ${t===1?"minute":"minutes"}`}if(r<86400){const t=Math.floor(r/3600),s=Math.floor(r%3600/60);return s===0?`${t} ${t===1?"hour":"hours"}`:`${t} ${t===1?"hour":"hours"} ${s} ${s===1?"minute":"minutes"}`}const n=Math.floor(r/86400),a=Math.floor(r%86400/3600);return a===0?`${n} ${n===1?"day":"days"}`:`${n} ${n===1?"day":"days"} ${a} ${a===1?"hour":"hours"}`}export{Re as ErrorBoundary,Te as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as j,p as e,A as k,B as N,H as C}from"./chunk-
|
|
1
|
+
import{a as j,p as e,A as k,B as N,H as C}from"./chunk-LFPYN7LY-Cj1DJmJR.js";import{D as p,c as y,e as m}from"./db-link-DmvfwdX4.js";import{B as x,C as D,a as w,b as B,c as L}from"./button-Djse56Dx.js";import{B as I}from"./badge-B5ZugmiV.js";import{D as O,a as T,b as R,c as E,d as S,e as A}from"./dialog-CQzw3QVH.js";import{E as J}from"./error-card-CXoOCvsg.js";import{c as b}from"./createLucideIcon-B0YqJFaz.js";import"./useOpenInteractionType-Ss_6xZdw.js";import"./index-x2yWco1W.js";const $=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],z=b("check",$);const _=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],q=b("copy",_);function h({title:o,description:d,confirmLabel:t,confirmVariant:n="primary",triggerVariant:c="ghost",trigger:r,onConfirm:g,disabled:u}){const[s,i]=j.useState(!1),l=()=>{g(),i(!1)};return e.jsxs(O,{open:s,onOpenChange:i,children:[e.jsx(x,{variant:c,size:"sm",disabled:u,onClick:()=>i(!0),className:"cursor-pointer",children:r}),e.jsxs(T,{hideCloseButton:!0,className:"w-[28rem] max-w-[calc(100vw-2rem)]",children:[e.jsxs(R,{children:[e.jsx(E,{children:o}),e.jsx(S,{className:"mt-2",children:d})]}),e.jsxs(A,{className:"mt-6 flex justify-end gap-3",children:[e.jsx(x,{variant:"outline",size:"sm",className:"cursor-pointer",onClick:()=>i(!1),children:"Cancel"}),e.jsx(x,{variant:n==="danger"?"danger":"primary",size:"sm",className:"cursor-pointer",onClick:l,children:t})]})]})]})}const W=N(function(){return e.jsx(J,{title:"Failed to load job",backTo:{href:"/queues",label:"Back to Queues"}})}),X=k(function({loaderData:d}){const{job:t,queueName:n}=d,c=C(),r=c.state!=="idle",[g,u]=j.useState(!1),s=c.data,i=s&&!s.success&&s.affected===0,l=v=>{c.submit({intent:v},{method:"post"})},f=async()=>{await navigator.clipboard.writeText(t.id),u(!0),setTimeout(()=>u(!1),2e3)};return e.jsxs("div",{className:"space-y-6",children:[e.jsx("div",{children:e.jsxs("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:["Job Details - ",n]})}),e.jsxs(D,{children:[e.jsxs(w,{className:"flex flex-row items-center justify-between",children:[e.jsx(B,{children:"Details"}),e.jsxs("div",{className:"flex items-center gap-2",children:[i&&e.jsx("span",{className:"text-xs text-amber-600 dark:text-amber-400",title:s.message,children:"Action failed"}),t.state==="failed"&&e.jsx(x,{variant:"outline",size:"sm",disabled:r,onClick:()=>l("retry"),children:"Retry"}),t.state==="cancelled"&&e.jsx(x,{variant:"outline",size:"sm",disabled:r,onClick:()=>l("resume"),children:"Resume"}),(t.state==="created"||t.state==="retry"||t.state==="active")&&e.jsx(h,{title:"Cancel Job",description:`Are you sure you want to cancel job ${t.id.slice(0,8)}...? This will prevent the job from being processed.`,confirmLabel:"Cancel Job",confirmVariant:"danger",triggerVariant:"outline",trigger:"Cancel",onConfirm:()=>l("cancel"),disabled:r}),t.state!=="active"&&e.jsx(h,{title:"Delete Job",description:`Are you sure you want to delete job ${t.id.slice(0,8)}...? This action cannot be undone.`,confirmLabel:"Delete",confirmVariant:"danger",triggerVariant:"danger",trigger:"Delete",onConfirm:()=>l("delete"),disabled:r})]})]}),e.jsxs(L,{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"Queue"}),e.jsxs("dd",{className:"mt-1 text-sm text-gray-900 dark:text-gray-100 flex items-center gap-2",children:[e.jsx(p,{to:`/queues/${encodeURIComponent(n)}`,className:"text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300",children:n}),t.policy&&e.jsx(I,{variant:"gray",size:"sm",children:t.policy})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Job ID"}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("code",{className:"text-sm font-mono break-all text-gray-900 dark:text-gray-100",children:t.id}),e.jsx("button",{onClick:f,className:y("p-1 rounded-md transition-colors cursor-pointer flex-shrink-0","text-gray-500 hover:text-gray-900 hover:bg-gray-100","dark:text-gray-400 dark:hover:text-gray-100 dark:hover:bg-gray-800"),title:g?"Copied!":"Copy to clipboard",children:g?e.jsx(z,{className:"h-4 w-4 text-green-600 dark:text-green-400"}):e.jsx(q,{className:"h-4 w-4"})})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"State"}),e.jsx("div",{className:"text-sm text-gray-900 dark:text-gray-100",children:t.state})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Data"}),e.jsx("pre",{className:y("text-sm px-3 py-2 rounded border font-mono overflow-auto max-h-32","bg-gray-50 border-gray-200","dark:bg-gray-800 dark:border-gray-700 dark:text-gray-100"),children:t.data?JSON.stringify(t.data,null,2):"null"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Output"}),e.jsx("pre",{className:y("text-sm px-3 py-2 rounded border font-mono overflow-auto max-h-32","bg-gray-50 border-gray-200","dark:bg-gray-800 dark:border-gray-700 dark:text-gray-100"),children:t.output!==void 0&&t.output!==null?JSON.stringify(t.output,null,2):"—"})]})]}),e.jsx("div",{children:e.jsxs("div",{className:"space-y-6",children:[e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-x-6 gap-y-4",children:e.jsx(a,{label:"Priority",value:t.priority})}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-x-6 gap-y-4",children:[e.jsx(a,{label:"Retry Count",value:t.retryCount}),e.jsx(a,{label:"Retry Limit",value:t.retryLimit}),e.jsx(a,{label:"Retry Delay",value:t.retryDelay?`${t.retryDelay}ms`:"—"}),e.jsx(a,{label:"Retry Backoff",value:t.retryBackoff?"Enabled":"Disabled"})]}),(t.singletonKey||t.groupId||t.groupTier||t.deadLetter)&&e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-x-6 gap-y-4",children:[t.singletonKey&&e.jsx(a,{label:"Singleton Key",value:t.singletonKey}),t.groupId&&e.jsx(a,{label:"Group ID",value:t.groupId}),t.groupTier&&e.jsx(a,{label:"Group Tier",value:t.groupTier}),t.deadLetter&&e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"Dead Letter"}),e.jsx("dd",{className:"mt-1 text-sm text-gray-900 dark:text-gray-100",children:e.jsx(p,{to:`/queues/${t.deadLetter}`,className:"text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300",children:t.deadLetter})})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-x-6 gap-y-4",children:[e.jsx(a,{label:"Created",value:m(new Date(t.createdOn))}),e.jsx(a,{label:"Start After",value:t.startAfter?m(new Date(t.startAfter)):"—"}),e.jsx(a,{label:"Started",value:t.startedOn?m(new Date(t.startedOn)):"—"}),e.jsx(a,{label:"Completed",value:t.completedOn?m(new Date(t.completedOn)):"—"}),e.jsx(a,{label:"Keep Until",value:t.keepUntil?m(new Date(t.keepUntil)):"—"})]})]})})]})]})]})});function a({label:o,value:d}){return e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:o}),e.jsx("dd",{className:"mt-1 text-sm text-gray-900 dark:text-gray-100",children:d?.toString()||"—"})]})}export{W as ErrorBoundary,X as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as d,p as e,A as z,B as R,D as A,x as O,G as P}from"./chunk-JZWAC4HX-DC8i-F7r.js";import{c as a,D as M}from"./db-link-CtPnIrIr.js";import{B as j,C as T,a as V,b as _,c as U}from"./button-BaXUPm8v.js";import{C as G}from"./chevron-down-xu6Uceu-.js";import{E as H}from"./error-card-DmoxS3Ao.js";import"./createLucideIcon-BXGwbdrh.js";const F=d.forwardRef(({className:l,label:c,id:y,...u},x)=>{const s=y||`checkbox-${Math.random().toString(36).substr(2,9)}`;return e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"checkbox",id:s,ref:x,className:a("h-4 w-4 rounded border-gray-300 text-primary-600","focus:ring-2 focus:ring-primary-600 focus:ring-offset-0","dark:border-gray-700 dark:bg-gray-900","dark:checked:bg-primary-600 dark:checked:border-primary-600","cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",l),...u}),c&&e.jsx("label",{htmlFor:s,className:"text-sm text-gray-700 dark:text-gray-300 cursor-pointer select-none",children:c})]})});F.displayName="Checkbox";function C({value:l,onValueChange:c,children:y,className:u}){const[x,s]=d.useState(!1),g=d.useRef(null);d.useEffect(()=>{const t=o=>{g.current&&!g.current.contains(o.target)&&s(!1)};return x&&document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[x]);const n=[],m=t=>{if(Array.isArray(t))t.forEach(m);else if(t&&typeof t=="object"&&"props"in t){const o=t;o.type===i?n.push({value:o.props.value,label:o.props.children}):o.props?.children&&m(o.props.children)}};m(y);const b=n.find(t=>t.value===l);return e.jsxs("div",{ref:g,className:a("relative",u),children:[e.jsxs("button",{type:"button",onClick:()=>s(!x),className:a("flex items-center justify-between w-full px-3 py-2 text-sm rounded-lg shadow-sm","bg-white border border-gray-300 text-gray-900","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100","hover:bg-gray-50 dark:hover:bg-gray-800","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent","cursor-pointer"),children:[e.jsx("span",{className:"truncate text-left",children:b?.label||"Select..."}),e.jsx(G,{className:"h-4 w-4 opacity-50 ml-2 shrink-0"})]}),x&&n.length>0&&e.jsx("div",{className:"absolute z-10 w-full mt-1 bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded-md shadow-lg max-h-60 overflow-auto",children:n.map(t=>e.jsx("button",{type:"button",onClick:()=>{c(t.value),s(!1)},className:a("w-full text-left px-3 py-2 text-sm","hover:bg-gray-100 dark:hover:bg-gray-800","text-gray-900 dark:text-gray-100","cursor-pointer",t.value===l&&"bg-gray-50 dark:bg-gray-800"),children:t.label},t.value))})]})}function i({value:l,children:c}){return null}const D=({children:l})=>null,L=({children:l}={})=>null,E=({children:l})=>e.jsx(e.Fragment,{children:l}),Z=R(function(){return e.jsx(H,{title:"Failed to load queue creation page",backTo:{href:"/queues",label:"Back to Queues"}})}),ee=z(function({loaderData:c}){const{queues:y}=c,u=A(),s=O().state==="submitting",[g,n]=d.useState(!1),[m,b]=d.useState("standard"),[t,o]=d.useState("shared"),[v,B]=d.useState(!1),[N,w]=d.useState(""),[f,q]=d.useState(""),[Q,h]=d.useState(!1),S=y.filter(r=>r.name.toLowerCase().includes(N.toLowerCase())),I=r=>{q(r),w(r),h(!1),n(!0)},k=P(({currentLocation:r,nextLocation:p})=>g&&!s&&r.pathname!==p.pathname);return d.useEffect(()=>{const r=p=>{g&&!s&&(p.preventDefault(),p.returnValue="")};return window.addEventListener("beforeunload",r),()=>window.removeEventListener("beforeunload",r)},[g,s]),e.jsxs("div",{className:"space-y-6",children:[k.state==="blocked"&&e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",children:e.jsxs("div",{className:"bg-white dark:bg-gray-900 rounded-lg shadow-lg p-6 max-w-md mx-4",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100 mb-2",children:"Unsaved Changes"}),e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-6",children:"You have unsaved changes. Are you sure you want to leave this page?"}),e.jsxs("div",{className:"flex gap-3 justify-end",children:[e.jsx(j,{type:"button",variant:"outline",size:"sm",onClick:()=>k.reset(),children:"Stay"}),e.jsx(j,{type:"button",variant:"danger",size:"sm",onClick:()=>k.proceed(),children:"Leave"})]})]})}),e.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:"Create Queue"}),e.jsxs(T,{children:[e.jsx(V,{children:e.jsx(_,{children:"Queue Configuration"})}),e.jsx(U,{children:e.jsxs("form",{method:"post",className:"space-y-5",onChange:()=>n(!0),onSubmit:()=>n(!1),children:[u&&"error"in u&&e.jsx("div",{className:a("rounded-lg border px-4 py-3 text-sm","bg-red-50 border-red-200 text-red-700","dark:bg-red-950 dark:border-red-800 dark:text-red-400"),children:u.error}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"queueName",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:["Queue Name ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx("input",{type:"text",id:"queueName",name:"queueName",required:!0,placeholder:"my-queue",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"policy",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Policy"}),e.jsxs(C,{value:m,onValueChange:r=>{b(r),n(!0)},children:[e.jsx(D,{children:e.jsx(L,{})}),e.jsxs(E,{children:[e.jsx(i,{value:"standard",children:"Standard"}),e.jsx(i,{value:"short",children:"Short"}),e.jsx(i,{value:"singleton",children:"Singleton"}),e.jsx(i,{value:"stately",children:"Stately"}),e.jsx(i,{value:"exclusive",children:"Exclusive"}),e.jsx(i,{value:"key_strict_fifo",children:"Key Strict FIFO"})]})]}),e.jsx("input",{type:"hidden",name:"policy",value:m}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Standard supports all features. Other policies restrict job queuing behavior."})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"storage",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Storage"}),e.jsxs(C,{value:t,onValueChange:r=>{o(r),n(!0)},children:[e.jsx(D,{children:e.jsx(L,{})}),e.jsxs(E,{children:[e.jsx(i,{value:"shared",children:"Shared"}),e.jsx(i,{value:"partitioned",children:"Partitioned"})]})]}),e.jsx("input",{type:"hidden",name:"partition",value:t==="partitioned"?"true":"false"}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Partitioned creates a dedicated table for this queue"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"deadLetterSearch",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Dead Letter Queue"}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"text",id:"deadLetterSearch",value:N,onChange:r=>{w(r.target.value),h(!0)},onFocus:()=>h(!0),onBlur:()=>setTimeout(()=>h(!1),200),placeholder:"Search for a queue...",autoComplete:"off",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")}),e.jsx("input",{type:"hidden",name:"deadLetter",value:f}),Q&&S.length>0&&e.jsx("div",{className:"absolute z-10 w-full mt-1 bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded-md shadow-lg max-h-60 overflow-auto",children:S.map(r=>e.jsx("button",{type:"button",onClick:()=>I(r.name),className:"w-full text-left px-3 py-2 hover:bg-gray-100 dark:hover:bg-gray-800 text-gray-900 dark:text-gray-100 cursor-pointer text-sm",children:r.name},r.name))})]}),f&&e.jsxs("p",{className:"mt-1 text-xs text-green-600 dark:text-green-400",children:["Selected: ",f]}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Failed jobs will be moved to this queue after all retries"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"warningQueueSize",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Warning Queue Size"}),e.jsx("input",{type:"number",id:"warningQueueSize",name:"warningQueueSize",min:"1",placeholder:"Optional",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Emit warning when queue size exceeds this value"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"retryLimit",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Retry Limit"}),e.jsx("input",{type:"number",id:"retryLimit",name:"retryLimit",min:"0",placeholder:"2",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"retryDelay",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Retry Delay (seconds)"}),e.jsx("input",{type:"number",id:"retryDelay",name:"retryDelay",min:"0",placeholder:"0",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Retry Backoff"}),e.jsx("div",{className:"py-2 pb-6",children:e.jsx(F,{id:"retryBackoff",name:"retryBackoff",value:"true",checked:v,onChange:r=>{B(r.target.checked),n(!0)},label:"Enable Exponential Backoff"})})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"retryDelayMax",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Max Retry Delay (seconds)"}),e.jsx("input",{type:"number",id:"retryDelayMax",name:"retryDelayMax",min:"1",placeholder:"No limit",disabled:!v,className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent","disabled:opacity-50 disabled:cursor-not-allowed")}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Only used with exponential backoff"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"expireInSeconds",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Expire In Seconds"}),e.jsx("input",{type:"number",id:"expireInSeconds",name:"expireInSeconds",min:"1",placeholder:"900",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Default: 15 minutes (900 seconds)"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"retentionSeconds",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Retention Seconds"}),e.jsx("input",{type:"number",id:"retentionSeconds",name:"retentionSeconds",min:"1",placeholder:"1209600",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Default: 14 days (1209600 seconds)"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"deleteAfterSeconds",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Delete After Seconds"}),e.jsx("input",{type:"number",id:"deleteAfterSeconds",name:"deleteAfterSeconds",min:"0",placeholder:"604800",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Default: 7 days (604800 seconds). Set to 0 to never delete."})]})]}),e.jsxs("div",{className:"flex items-center gap-3 pt-2",children:[e.jsx(j,{type:"submit",disabled:s,children:s?"Creating...":"Create Queue"}),e.jsx(M,{to:"/queues",className:"text-sm text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300",children:"Cancel"})]})]})})]})]})});export{Z as ErrorBoundary,ee as default};
|
|
1
|
+
import{a as d,p as e,A as z,B as R,D as A,x as O,G as P}from"./chunk-LFPYN7LY-Cj1DJmJR.js";import{c as a,D as M}from"./db-link-DmvfwdX4.js";import{B as j,C as T,a as V,b as _,c as U}from"./button-Djse56Dx.js";import{C as G}from"./chevron-down-B4tDL9Ah.js";import{E as H}from"./error-card-CXoOCvsg.js";import"./createLucideIcon-B0YqJFaz.js";const F=d.forwardRef(({className:l,label:c,id:y,...u},x)=>{const s=y||`checkbox-${Math.random().toString(36).substr(2,9)}`;return e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"checkbox",id:s,ref:x,className:a("h-4 w-4 rounded border-gray-300 text-primary-600","focus:ring-2 focus:ring-primary-600 focus:ring-offset-0","dark:border-gray-700 dark:bg-gray-900","dark:checked:bg-primary-600 dark:checked:border-primary-600","cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",l),...u}),c&&e.jsx("label",{htmlFor:s,className:"text-sm text-gray-700 dark:text-gray-300 cursor-pointer select-none",children:c})]})});F.displayName="Checkbox";function C({value:l,onValueChange:c,children:y,className:u}){const[x,s]=d.useState(!1),g=d.useRef(null);d.useEffect(()=>{const t=o=>{g.current&&!g.current.contains(o.target)&&s(!1)};return x&&document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[x]);const n=[],m=t=>{if(Array.isArray(t))t.forEach(m);else if(t&&typeof t=="object"&&"props"in t){const o=t;o.type===i?n.push({value:o.props.value,label:o.props.children}):o.props?.children&&m(o.props.children)}};m(y);const b=n.find(t=>t.value===l);return e.jsxs("div",{ref:g,className:a("relative",u),children:[e.jsxs("button",{type:"button",onClick:()=>s(!x),className:a("flex items-center justify-between w-full px-3 py-2 text-sm rounded-lg shadow-sm","bg-white border border-gray-300 text-gray-900","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100","hover:bg-gray-50 dark:hover:bg-gray-800","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent","cursor-pointer"),children:[e.jsx("span",{className:"truncate text-left",children:b?.label||"Select..."}),e.jsx(G,{className:"h-4 w-4 opacity-50 ml-2 shrink-0"})]}),x&&n.length>0&&e.jsx("div",{className:"absolute z-10 w-full mt-1 bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded-md shadow-lg max-h-60 overflow-auto",children:n.map(t=>e.jsx("button",{type:"button",onClick:()=>{c(t.value),s(!1)},className:a("w-full text-left px-3 py-2 text-sm","hover:bg-gray-100 dark:hover:bg-gray-800","text-gray-900 dark:text-gray-100","cursor-pointer",t.value===l&&"bg-gray-50 dark:bg-gray-800"),children:t.label},t.value))})]})}function i({value:l,children:c}){return null}const D=({children:l})=>null,L=({children:l}={})=>null,E=({children:l})=>e.jsx(e.Fragment,{children:l}),Z=R(function(){return e.jsx(H,{title:"Failed to load queue creation page",backTo:{href:"/queues",label:"Back to Queues"}})}),ee=z(function({loaderData:c}){const{queues:y}=c,u=A(),s=O().state==="submitting",[g,n]=d.useState(!1),[m,b]=d.useState("standard"),[t,o]=d.useState("shared"),[v,B]=d.useState(!1),[N,w]=d.useState(""),[f,q]=d.useState(""),[Q,h]=d.useState(!1),S=y.filter(r=>r.name.toLowerCase().includes(N.toLowerCase())),I=r=>{q(r),w(r),h(!1),n(!0)},k=P(({currentLocation:r,nextLocation:p})=>g&&!s&&r.pathname!==p.pathname);return d.useEffect(()=>{const r=p=>{g&&!s&&(p.preventDefault(),p.returnValue="")};return window.addEventListener("beforeunload",r),()=>window.removeEventListener("beforeunload",r)},[g,s]),e.jsxs("div",{className:"space-y-6",children:[k.state==="blocked"&&e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",children:e.jsxs("div",{className:"bg-white dark:bg-gray-900 rounded-lg shadow-lg p-6 max-w-md mx-4",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100 mb-2",children:"Unsaved Changes"}),e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-6",children:"You have unsaved changes. Are you sure you want to leave this page?"}),e.jsxs("div",{className:"flex gap-3 justify-end",children:[e.jsx(j,{type:"button",variant:"outline",size:"sm",onClick:()=>k.reset(),children:"Stay"}),e.jsx(j,{type:"button",variant:"danger",size:"sm",onClick:()=>k.proceed(),children:"Leave"})]})]})}),e.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:"Create Queue"}),e.jsxs(T,{children:[e.jsx(V,{children:e.jsx(_,{children:"Queue Configuration"})}),e.jsx(U,{children:e.jsxs("form",{method:"post",className:"space-y-5",onChange:()=>n(!0),onSubmit:()=>n(!1),children:[u&&"error"in u&&e.jsx("div",{className:a("rounded-lg border px-4 py-3 text-sm","bg-red-50 border-red-200 text-red-700","dark:bg-red-950 dark:border-red-800 dark:text-red-400"),children:u.error}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"queueName",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:["Queue Name ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx("input",{type:"text",id:"queueName",name:"queueName",required:!0,placeholder:"my-queue",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"policy",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Policy"}),e.jsxs(C,{value:m,onValueChange:r=>{b(r),n(!0)},children:[e.jsx(D,{children:e.jsx(L,{})}),e.jsxs(E,{children:[e.jsx(i,{value:"standard",children:"Standard"}),e.jsx(i,{value:"short",children:"Short"}),e.jsx(i,{value:"singleton",children:"Singleton"}),e.jsx(i,{value:"stately",children:"Stately"}),e.jsx(i,{value:"exclusive",children:"Exclusive"}),e.jsx(i,{value:"key_strict_fifo",children:"Key Strict FIFO"})]})]}),e.jsx("input",{type:"hidden",name:"policy",value:m}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Standard supports all features. Other policies restrict job queuing behavior."})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"storage",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Storage"}),e.jsxs(C,{value:t,onValueChange:r=>{o(r),n(!0)},children:[e.jsx(D,{children:e.jsx(L,{})}),e.jsxs(E,{children:[e.jsx(i,{value:"shared",children:"Shared"}),e.jsx(i,{value:"partitioned",children:"Partitioned"})]})]}),e.jsx("input",{type:"hidden",name:"partition",value:t==="partitioned"?"true":"false"}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Partitioned creates a dedicated table for this queue"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"deadLetterSearch",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Dead Letter Queue"}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"text",id:"deadLetterSearch",value:N,onChange:r=>{w(r.target.value),h(!0)},onFocus:()=>h(!0),onBlur:()=>setTimeout(()=>h(!1),200),placeholder:"Search for a queue...",autoComplete:"off",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")}),e.jsx("input",{type:"hidden",name:"deadLetter",value:f}),Q&&S.length>0&&e.jsx("div",{className:"absolute z-10 w-full mt-1 bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded-md shadow-lg max-h-60 overflow-auto",children:S.map(r=>e.jsx("button",{type:"button",onClick:()=>I(r.name),className:"w-full text-left px-3 py-2 hover:bg-gray-100 dark:hover:bg-gray-800 text-gray-900 dark:text-gray-100 cursor-pointer text-sm",children:r.name},r.name))})]}),f&&e.jsxs("p",{className:"mt-1 text-xs text-green-600 dark:text-green-400",children:["Selected: ",f]}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Failed jobs will be moved to this queue after all retries"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"warningQueueSize",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Warning Queue Size"}),e.jsx("input",{type:"number",id:"warningQueueSize",name:"warningQueueSize",min:"1",placeholder:"Optional",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Emit warning when queue size exceeds this value"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"retryLimit",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Retry Limit"}),e.jsx("input",{type:"number",id:"retryLimit",name:"retryLimit",min:"0",placeholder:"2",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"retryDelay",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Retry Delay (seconds)"}),e.jsx("input",{type:"number",id:"retryDelay",name:"retryDelay",min:"0",placeholder:"0",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Retry Backoff"}),e.jsx("div",{className:"py-2 pb-6",children:e.jsx(F,{id:"retryBackoff",name:"retryBackoff",value:"true",checked:v,onChange:r=>{B(r.target.checked),n(!0)},label:"Enable Exponential Backoff"})})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"retryDelayMax",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Max Retry Delay (seconds)"}),e.jsx("input",{type:"number",id:"retryDelayMax",name:"retryDelayMax",min:"1",placeholder:"No limit",disabled:!v,className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent","disabled:opacity-50 disabled:cursor-not-allowed")}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Only used with exponential backoff"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"expireInSeconds",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Expire In Seconds"}),e.jsx("input",{type:"number",id:"expireInSeconds",name:"expireInSeconds",min:"1",placeholder:"900",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Default: 15 minutes (900 seconds)"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"retentionSeconds",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Retention Seconds"}),e.jsx("input",{type:"number",id:"retentionSeconds",name:"retentionSeconds",min:"1",placeholder:"1209600",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Default: 14 days (1209600 seconds)"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"deleteAfterSeconds",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Delete After Seconds"}),e.jsx("input",{type:"number",id:"deleteAfterSeconds",name:"deleteAfterSeconds",min:"0",placeholder:"604800",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Default: 7 days (604800 seconds). Set to 0 to never delete."})]})]}),e.jsxs("div",{className:"flex items-center gap-3 pt-2",children:[e.jsx(j,{type:"submit",disabled:s,children:s?"Creating...":"Create Queue"}),e.jsx(M,{to:"/queues",className:"text-sm text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300",children:"Cancel"})]})]})})]})]})});export{Z as ErrorBoundary,ee as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-space-x-reverse:0}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-red-950:oklch(25.8% .092 26.042);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-green-50:oklch(98.2% .018 155.826);--color-green-300:oklch(87.1% .15 154.449);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-950:oklch(26.6% .065 152.934);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-900:oklch(37.8% .077 168.94);--color-emerald-950:oklch(26.2% .051 172.552);--color-teal-50:oklch(98.4% .014 180.72);--color-teal-100:oklch(95.3% .051 180.801);--color-teal-200:oklch(91% .096 180.426);--color-teal-300:oklch(85.5% .138 181.071);--color-teal-400:oklch(77.7% .152 181.912);--color-teal-500:oklch(70.4% .14 182.503);--color-teal-600:oklch(60% .118 184.704);--color-teal-700:oklch(51.1% .096 186.391);--color-teal-800:oklch(43.7% .078 188.216);--color-teal-900:oklch(38.6% .063 188.416);--color-teal-950:oklch(27.7% .046 192.524);--color-cyan-50:oklch(98.4% .019 200.873);--color-cyan-100:oklch(95.6% .045 203.388);--color-cyan-200:oklch(91.7% .08 205.041);--color-cyan-300:oklch(86.5% .127 207.078);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-500:oklch(71.5% .143 215.221);--color-cyan-600:oklch(60.9% .126 221.723);--color-cyan-700:oklch(52% .105 223.128);--color-cyan-800:oklch(45% .085 224.283);--color-cyan-900:oklch(39.8% .07 227.392);--color-cyan-950:oklch(30.2% .056 229.695);--color-sky-50:oklch(97.7% .013 236.62);--color-sky-100:oklch(95.1% .026 236.824);--color-sky-200:oklch(90.1% .058 230.902);--color-sky-300:oklch(82.8% .111 230.318);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-sky-600:oklch(58.8% .158 241.966);--color-sky-700:oklch(50% .134 242.749);--color-sky-800:oklch(44.3% .11 240.79);--color-sky-900:oklch(39.1% .09 240.876);--color-sky-950:oklch(29.3% .066 243.157);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-50:oklch(96.2% .018 272.314);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-200:oklch(87% .065 274.039);--color-indigo-300:oklch(78.5% .115 274.713);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-700:oklch(45.7% .24 277.023);--color-indigo-800:oklch(39.8% .195 277.366);--color-indigo-900:oklch(35.9% .144 278.697);--color-indigo-950:oklch(25.7% .09 281.288);--color-violet-50:oklch(96.9% .016 293.756);--color-violet-100:oklch(94.3% .029 294.588);--color-violet-200:oklch(89.4% .057 293.283);--color-violet-300:oklch(81.1% .111 293.571);--color-violet-400:oklch(70.2% .183 293.541);--color-violet-500:oklch(60.6% .25 292.717);--color-violet-600:oklch(54.1% .281 293.009);--color-violet-700:oklch(49.1% .27 292.581);--color-violet-800:oklch(43.2% .232 292.759);--color-violet-900:oklch(38% .189 293.745);--color-violet-950:oklch(28.3% .141 291.089);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-200:oklch(90.2% .063 306.703);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-purple-950:oklch(29.1% .149 302.717);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-gray-950:oklch(13% .028 261.692);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-md:28rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wider:.05em;--tracking-widest:.1em;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-primary-500:var(--primary-500);--color-sidebar:white;--color-sidebar-foreground:var(--color-gray-900);--color-sidebar-accent:var(--color-gray-100);--color-sidebar-accent-foreground:var(--color-gray-900);--color-sidebar-border:var(--color-gray-100);--color-sidebar-ring:var(--color-primary-500)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing) * 0)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.top-0{top:calc(var(--spacing) * 0)}.top-1\.5{top:calc(var(--spacing) * 1.5)}.top-1\/2{top:50%}.top-4{top:calc(var(--spacing) * 4)}.top-\[50\%\]{top:50%}.right-0{right:calc(var(--spacing) * 0)}.right-1{right:calc(var(--spacing) * 1)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.left-0{left:calc(var(--spacing) * 0)}.left-2{left:calc(var(--spacing) * 2)}.left-3{left:calc(var(--spacing) * 3)}.left-\[50\%\]{left:50%}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.z-\[100\]{z-index:100}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.mx-3\.5{margin-inline:calc(var(--spacing) * 3.5)}.mx-4{margin-inline:calc(var(--spacing) * 4)}.my-1{margin-block:calc(var(--spacing) * 1)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-4{margin-left:calc(var(--spacing) * 4)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.aspect-square{aspect-ratio:1}.h-1{height:calc(var(--spacing) * 1)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-12{height:calc(var(--spacing) * 12)}.h-full{height:100%}.h-px{height:1px}.max-h-32{max-height:calc(var(--spacing) * 32)}.max-h-60{max-height:calc(var(--spacing) * 60)}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-\[50vh\]{min-height:50vh}.min-h-screen{min-height:100vh}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-\[--sidebar-width-icon\]{width:--sidebar-width-icon}.w-\[--sidebar-width-mobile\]{width:--sidebar-width-mobile}.w-\[--sidebar-width\]{width:--sidebar-width}.w-\[28rem\]{width:28rem}.w-full{width:100%}.max-w-\[calc\(100vw-2rem\)\]{max-width:calc(100vw - 2rem)}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-\[8rem\]{min-width:8rem}.min-w-\[10rem\]{min-width:10rem}.min-w-full{min-width:100%}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-px{--tw-translate-x:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-180{rotate:180deg}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-y-4{row-gap:calc(var(--spacing) * 4)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-gray-200>:not(:last-child)){border-color:var(--color-gray-200)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-red-200{border-color:var(--color-red-200)}.border-sidebar-border{border-color:var(--color-sidebar-border)}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black) 50%,transparent)}}.bg-blue-500{background-color:var(--color-blue-500)}.bg-cyan-500{background-color:var(--color-cyan-500)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-gray-900\/50{background-color:#10182880}@supports (color:color-mix(in lab,red,red)){.bg-gray-900\/50{background-color:color-mix(in oklab,var(--color-gray-900) 50%,transparent)}}.bg-green-50{background-color:var(--color-green-50)}.bg-green-500{background-color:var(--color-green-500)}.bg-indigo-500{background-color:var(--color-indigo-500)}.bg-primary-50{background-color:var(--primary-50)}.bg-primary-500{background-color:var(--primary-500)}.bg-primary-600{background-color:var(--primary-600)}.bg-purple-500{background-color:var(--color-purple-500)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-600{background-color:var(--color-red-600)}.bg-sidebar{background-color:var(--color-sidebar)}.bg-sidebar-accent{background-color:var(--color-sidebar-accent)}.bg-sky-500{background-color:var(--color-sky-500)}.bg-teal-500{background-color:var(--color-teal-500)}.bg-violet-500{background-color:var(--color-violet-500)}.bg-white{background-color:var(--color-white)}.fill-current{fill:currentColor}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-10{padding-left:calc(var(--spacing) * 10)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.text-amber-500{color:var(--color-amber-500)}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-primary-600{color:var(--primary-600)}.text-primary-700{color:var(--primary-700)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-red-800{color:var(--color-red-800)}.text-sidebar-accent-foreground{color:var(--color-sidebar-accent-foreground)}.text-sidebar-foreground{color:var(--color-sidebar-foreground)}.text-sidebar-foreground\/50{color:#10182880}@supports (color:color-mix(in lab,red,red)){.text-sidebar-foreground\/50{color:color-mix(in oklab,var(--color-sidebar-foreground) 50%,transparent)}}.text-sidebar-foreground\/70{color:#101828b3}@supports (color:color-mix(in lab,red,red)){.text-sidebar-foreground\/70{color:color-mix(in oklab,var(--color-sidebar-foreground) 70%,transparent)}}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.placeholder-gray-400::placeholder{color:var(--color-gray-400)}.placeholder-gray-500::placeholder{color:var(--color-gray-500)}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-border)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-gray-500\/10{--tw-ring-color:#6a72821a}@supports (color:color-mix(in lab,red,red)){.ring-gray-500\/10{--tw-ring-color:color-mix(in oklab, var(--color-gray-500) 10%, transparent)}}.ring-gray-900{--tw-ring-color:var(--color-gray-900)}.ring-green-600\/10{--tw-ring-color:#00a5441a}@supports (color:color-mix(in lab,red,red)){.ring-green-600\/10{--tw-ring-color:color-mix(in oklab, var(--color-green-600) 10%, transparent)}}.ring-primary-600\/10{--tw-ring-color:var(--primary-600)}@supports (color:color-mix(in lab,red,red)){.ring-primary-600\/10{--tw-ring-color:color-mix(in oklab, var(--primary-600) 10%, transparent)}}.ring-red-600\/10{--tw-ring-color:#e400141a}@supports (color:color-mix(in lab,red,red)){.ring-red-600\/10{--tw-ring-color:color-mix(in oklab, var(--color-red-600) 10%, transparent)}}.ring-sidebar-ring{--tw-ring-color:var(--color-sidebar-ring)}.ring-offset-2{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.ring-offset-white{--tw-ring-offset-color:var(--color-white)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition-\[padding\]{transition-property:padding;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\,padding\]{transition-property:width,height,padding;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-linear{--tw-ease:linear;transition-timing-function:linear}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.ring-inset{--tw-ring-inset:inset}.group-focus-within\/menu-item\:opacity-100:is(:where(.group\/menu-item):focus-within *){opacity:1}@media(hover:hover){.group-hover\/menu-item\:opacity-100:is(:where(.group\/menu-item):hover *){opacity:1}}.group-has-\[\[data-sidebar\=menu-action\]\]\/menu-item\:pr-8:is(:where(.group\/menu-item):has([data-sidebar=menu-action]) *){padding-right:calc(var(--spacing) * 8)}.group-data-\[state\=collapsed\]\:hidden:is(:where(.group)[data-state=collapsed] *){display:none}.group-data-\[state\=collapsed\]\:\!h-8:is(:where(.group)[data-state=collapsed] *){height:calc(var(--spacing) * 8)!important}.group-data-\[state\=collapsed\]\:justify-center:is(:where(.group)[data-state=collapsed] *){justify-content:center}@media(hover:hover){.peer-hover\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button):hover~*){color:var(--color-sidebar-accent-foreground)}}.peer-data-\[active\=true\]\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button)[data-active=true]~*){color:var(--color-sidebar-accent-foreground)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-inset-2:after{content:var(--tw-content);inset:calc(var(--spacing) * -2)}@media(hover:hover){.hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:border-gray-300:hover{border-color:var(--color-gray-300)}.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-primary-100:hover{background-color:var(--primary-100)}.hover\:bg-primary-700:hover{background-color:var(--primary-700)}.hover\:bg-red-700:hover{background-color:var(--color-red-700)}.hover\:bg-sidebar-accent:hover{background-color:var(--color-sidebar-accent)}.hover\:text-gray-600:hover{color:var(--color-gray-600)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:text-gray-900:hover{color:var(--color-gray-900)}.hover\:text-primary-700:hover{color:var(--primary-700)}.hover\:text-sidebar-accent-foreground:hover{color:var(--color-sidebar-accent-foreground)}.hover\:text-sidebar-foreground:hover{color:var(--color-sidebar-foreground)}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-accent)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\:border-primary-600:focus{border-color:var(--primary-600)}.focus\:border-transparent:focus{border-color:#0000}.focus\:bg-gray-100:focus{background-color:var(--color-gray-100)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-primary-500:focus{--tw-ring-color:var(--primary-500)}.focus\:ring-primary-600:focus{--tw-ring-color:var(--primary-600)}.focus\:ring-red-600:focus{--tw-ring-color:var(--color-red-600)}.focus\:ring-offset-0:focus{--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:bg-sidebar-accent:active{background-color:var(--color-sidebar-accent)}.active\:text-sidebar-accent-foreground:active{color:var(--color-sidebar-accent-foreground)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.has-\[\[data-variant\=inset\]\]\:bg-sidebar:has([data-variant=inset]){background-color:var(--color-sidebar)}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.data-disabled\:pointer-events-none[data-disabled]{pointer-events:none}.data-disabled\:opacity-50[data-disabled]{opacity:.5}.data-highlighted\:bg-gray-100[data-highlighted]{background-color:var(--color-gray-100)}.data-highlighted\:bg-red-50[data-highlighted]{background-color:var(--color-red-50)}.data-highlighted\:text-gray-900[data-highlighted]{color:var(--color-gray-900)}.data-highlighted\:text-red-700[data-highlighted]{color:var(--color-red-700)}.data-open\:bg-gray-100[data-open]{background-color:var(--color-gray-100)}.data-\[active\=true\]\:bg-sidebar-accent[data-active=true]{background-color:var(--color-sidebar-accent)}.data-\[active\=true\]\:text-sidebar-accent-foreground[data-active=true]{color:var(--color-sidebar-accent-foreground)}.data-\[state\=open\]\:opacity-100[data-state=open]{opacity:1}@media(min-width:40rem){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}:where(.sm\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}.sm\:text-left{text-align:left}}@media(min-width:48rem){.md\:flex{display:flex}.md\:hidden{display:none}.md\:table-cell{display:table-cell}.md\:pl-12{padding-left:calc(var(--spacing) * 12)}.md\:pl-32{padding-left:calc(var(--spacing) * 32)}.md\:opacity-0{opacity:0}}.after\:md\:hidden:after{content:var(--tw-content)}@media(min-width:48rem){.after\:md\:hidden:after{display:none}}@media(min-width:64rem){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:px-8{padding-inline:calc(var(--spacing) * 8)}.lg\:pb-8{padding-bottom:calc(var(--spacing) * 8)}}:where(.dark\:divide-gray-800:where(.dark,.dark *)>:not(:last-child)){border-color:var(--color-gray-800)}.dark\:border:where(.dark,.dark *){border-style:var(--tw-border-style);border-width:1px}.dark\:border-gray-700:where(.dark,.dark *){border-color:var(--color-gray-700)}.dark\:border-gray-800:where(.dark,.dark *){border-color:var(--color-gray-800)}.dark\:border-red-800:where(.dark,.dark *){border-color:var(--color-red-800)}.dark\:bg-black:where(.dark,.dark *){background-color:var(--color-black)}.dark\:bg-gray-700:where(.dark,.dark *){background-color:var(--color-gray-700)}.dark\:bg-gray-800:where(.dark,.dark *){background-color:var(--color-gray-800)}.dark\:bg-gray-900:where(.dark,.dark *){background-color:var(--color-gray-900)}.dark\:bg-gray-950:where(.dark,.dark *){background-color:var(--color-gray-950)}.dark\:bg-green-950:where(.dark,.dark *){background-color:var(--color-green-950)}.dark\:bg-primary-400:where(.dark,.dark *){background-color:var(--primary-400)}.dark\:bg-primary-950:where(.dark,.dark *){background-color:var(--primary-950)}.dark\:bg-red-950:where(.dark,.dark *){background-color:var(--color-red-950)}.dark\:text-amber-300:where(.dark,.dark *){color:var(--color-amber-300)}.dark\:text-amber-400:where(.dark,.dark *){color:var(--color-amber-400)}.dark\:text-gray-100:where(.dark,.dark *){color:var(--color-gray-100)}.dark\:text-gray-300:where(.dark,.dark *){color:var(--color-gray-300)}.dark\:text-gray-400:where(.dark,.dark *){color:var(--color-gray-400)}.dark\:text-gray-500:where(.dark,.dark *){color:var(--color-gray-500)}.dark\:text-green-300:where(.dark,.dark *){color:var(--color-green-300)}.dark\:text-green-400:where(.dark,.dark *){color:var(--color-green-400)}.dark\:text-primary-300:where(.dark,.dark *){color:var(--primary-300)}.dark\:text-primary-400:where(.dark,.dark *){color:var(--primary-400)}.dark\:text-red-200:where(.dark,.dark *){color:var(--color-red-200)}.dark\:text-red-300:where(.dark,.dark *){color:var(--color-red-300)}.dark\:text-red-400:where(.dark,.dark *){color:var(--color-red-400)}.dark\:placeholder-gray-400:where(.dark,.dark *)::placeholder{color:var(--color-gray-400)}.dark\:placeholder-gray-500:where(.dark,.dark *)::placeholder{color:var(--color-gray-500)}.dark\:ring-gray-500\/20:where(.dark,.dark *){--tw-ring-color:#6a728233}@supports (color:color-mix(in lab,red,red)){.dark\:ring-gray-500\/20:where(.dark,.dark *){--tw-ring-color:color-mix(in oklab, var(--color-gray-500) 20%, transparent)}}.dark\:ring-green-400\/20:where(.dark,.dark *){--tw-ring-color:#05df7233}@supports (color:color-mix(in lab,red,red)){.dark\:ring-green-400\/20:where(.dark,.dark *){--tw-ring-color:color-mix(in oklab, var(--color-green-400) 20%, transparent)}}.dark\:ring-primary-400\/20:where(.dark,.dark *){--tw-ring-color:var(--primary-400)}@supports (color:color-mix(in lab,red,red)){.dark\:ring-primary-400\/20:where(.dark,.dark *){--tw-ring-color:color-mix(in oklab, var(--primary-400) 20%, transparent)}}.dark\:ring-red-400\/20:where(.dark,.dark *){--tw-ring-color:#ff656833}@supports (color:color-mix(in lab,red,red)){.dark\:ring-red-400\/20:where(.dark,.dark *){--tw-ring-color:color-mix(in oklab, var(--color-red-400) 20%, transparent)}}.dark\:ring-white:where(.dark,.dark *){--tw-ring-color:var(--color-white)}.dark\:ring-offset-gray-900:where(.dark,.dark *){--tw-ring-offset-color:var(--color-gray-900)}.dark\:checked\:border-primary-600:where(.dark,.dark *):checked{border-color:var(--primary-600)}.dark\:checked\:bg-primary-600:where(.dark,.dark *):checked{background-color:var(--primary-600)}@media(hover:hover){.dark\:hover\:border-gray-700:where(.dark,.dark *):hover{border-color:var(--color-gray-700)}.dark\:hover\:bg-gray-800:where(.dark,.dark *):hover{background-color:var(--color-gray-800)}.dark\:hover\:bg-gray-800\/50:where(.dark,.dark *):hover{background-color:#1e293980}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-gray-800\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-gray-800) 50%,transparent)}}.dark\:hover\:bg-gray-900:where(.dark,.dark *):hover{background-color:var(--color-gray-900)}.dark\:hover\:bg-primary-900:where(.dark,.dark *):hover{background-color:var(--primary-900)}.dark\:hover\:text-gray-100:where(.dark,.dark *):hover{color:var(--color-gray-100)}.dark\:hover\:text-gray-300:where(.dark,.dark *):hover{color:var(--color-gray-300)}.dark\:hover\:text-primary-300:where(.dark,.dark *):hover{color:var(--primary-300)}}.dark\:focus\:border-primary-500:where(.dark,.dark *):focus{border-color:var(--primary-500)}.dark\:focus\:bg-gray-800:where(.dark,.dark *):focus{background-color:var(--color-gray-800)}.dark\:focus\:ring-primary-500:where(.dark,.dark *):focus{--tw-ring-color:var(--primary-500)}.dark\:focus\:ring-offset-gray-900:where(.dark,.dark *):focus{--tw-ring-offset-color:var(--color-gray-900)}.dark\:data-highlighted\:bg-gray-800:where(.dark,.dark *)[data-highlighted]{background-color:var(--color-gray-800)}.dark\:data-highlighted\:bg-red-950:where(.dark,.dark *)[data-highlighted]{background-color:var(--color-red-950)}.dark\:data-highlighted\:text-gray-100:where(.dark,.dark *)[data-highlighted]{color:var(--color-gray-100)}.dark\:data-highlighted\:text-red-300:where(.dark,.dark *)[data-highlighted]{color:var(--color-red-300)}.dark\:data-open\:bg-gray-800:where(.dark,.dark *)[data-open]{background-color:var(--color-gray-800)}.\[\&\>span\:last-child\]\:truncate>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.\[\&\>svg\]\:size-4>svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:text-sidebar-accent-foreground>svg{color:var(--color-sidebar-accent-foreground)}}:root{--primary-50:var(--color-violet-50);--primary-100:var(--color-violet-100);--primary-200:var(--color-violet-200);--primary-300:var(--color-violet-300);--primary-400:var(--color-violet-400);--primary-500:var(--color-violet-500);--primary-600:var(--color-violet-600);--primary-700:var(--color-violet-700);--primary-800:var(--color-violet-800);--primary-900:var(--color-violet-900);--primary-950:var(--color-violet-950)}[data-color-theme=emerald]{--primary-50:var(--color-emerald-50);--primary-100:var(--color-emerald-100);--primary-200:var(--color-emerald-200);--primary-300:var(--color-emerald-300);--primary-400:var(--color-emerald-400);--primary-500:var(--color-emerald-500);--primary-600:var(--color-emerald-600);--primary-700:var(--color-emerald-700);--primary-800:var(--color-emerald-800);--primary-900:var(--color-emerald-900);--primary-950:var(--color-emerald-950)}[data-color-theme=teal]{--primary-50:var(--color-teal-50);--primary-100:var(--color-teal-100);--primary-200:var(--color-teal-200);--primary-300:var(--color-teal-300);--primary-400:var(--color-teal-400);--primary-500:var(--color-teal-500);--primary-600:var(--color-teal-600);--primary-700:var(--color-teal-700);--primary-800:var(--color-teal-800);--primary-900:var(--color-teal-900);--primary-950:var(--color-teal-950)}[data-color-theme=cyan]{--primary-50:var(--color-cyan-50);--primary-100:var(--color-cyan-100);--primary-200:var(--color-cyan-200);--primary-300:var(--color-cyan-300);--primary-400:var(--color-cyan-400);--primary-500:var(--color-cyan-500);--primary-600:var(--color-cyan-600);--primary-700:var(--color-cyan-700);--primary-800:var(--color-cyan-800);--primary-900:var(--color-cyan-900);--primary-950:var(--color-cyan-950)}[data-color-theme=sky]{--primary-50:var(--color-sky-50);--primary-100:var(--color-sky-100);--primary-200:var(--color-sky-200);--primary-300:var(--color-sky-300);--primary-400:var(--color-sky-400);--primary-500:var(--color-sky-500);--primary-600:var(--color-sky-600);--primary-700:var(--color-sky-700);--primary-800:var(--color-sky-800);--primary-900:var(--color-sky-900);--primary-950:var(--color-sky-950)}[data-color-theme=blue]{--primary-50:var(--color-blue-50);--primary-100:var(--color-blue-100);--primary-200:var(--color-blue-200);--primary-300:var(--color-blue-300);--primary-400:var(--color-blue-400);--primary-500:var(--color-blue-500);--primary-600:var(--color-blue-600);--primary-700:var(--color-blue-700);--primary-800:var(--color-blue-800);--primary-900:var(--color-blue-900);--primary-950:var(--color-blue-950)}[data-color-theme=indigo]{--primary-50:var(--color-indigo-50);--primary-100:var(--color-indigo-100);--primary-200:var(--color-indigo-200);--primary-300:var(--color-indigo-300);--primary-400:var(--color-indigo-400);--primary-500:var(--color-indigo-500);--primary-600:var(--color-indigo-600);--primary-700:var(--color-indigo-700);--primary-800:var(--color-indigo-800);--primary-900:var(--color-indigo-900);--primary-950:var(--color-indigo-950)}[data-color-theme=violet]{--primary-50:var(--color-violet-50);--primary-100:var(--color-violet-100);--primary-200:var(--color-violet-200);--primary-300:var(--color-violet-300);--primary-400:var(--color-violet-400);--primary-500:var(--color-violet-500);--primary-600:var(--color-violet-600);--primary-700:var(--color-violet-700);--primary-800:var(--color-violet-800);--primary-900:var(--color-violet-900);--primary-950:var(--color-violet-950)}[data-color-theme=purple]{--primary-50:var(--color-purple-50);--primary-100:var(--color-purple-100);--primary-200:var(--color-purple-200);--primary-300:var(--color-purple-300);--primary-400:var(--color-purple-400);--primary-500:var(--color-purple-500);--primary-600:var(--color-purple-600);--primary-700:var(--color-purple-700);--primary-800:var(--color-purple-800);--primary-900:var(--color-purple-900);--primary-950:var(--color-purple-950)}.dark{--color-sidebar:#000;--color-sidebar-foreground:var(--color-gray-300);--color-sidebar-accent:var(--color-gray-900);--color-sidebar-accent-foreground:var(--color-gray-100);--color-sidebar-border:var(--color-gray-950);--color-sidebar-ring:var(--color-gray-600)}body{font-family:var(--font-sans);background-color:var(--color-background);color:var(--color-foreground)}@keyframes loading-bar{0%{width:0%;margin-left:0%}50%{width:30%;margin-left:40%}to{width:0%;margin-left:100%}}.animate-loading-bar{animation:1s ease-in-out infinite loading-bar}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}
|