@workflow/web 4.0.1-beta.20 → 4.0.1-beta.21
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/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +2 -2
- package/.next/fallback-build-manifest.json +2 -2
- package/.next/prerender-manifest.json +3 -3
- package/.next/server/app/_global-error.html +2 -2
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page/server-reference-manifest.json +17 -17
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/page/server-reference-manifest.json +32 -17
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/run/[runId]/page/server-reference-manifest.json +32 -17
- package/.next/server/app/run/[runId]/page.js.nft.json +1 -1
- package/.next/server/app/run/[runId]/page_client-reference-manifest.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1365a866._.js +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__1365a866._.js.map +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__2168651f._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__2168651f._.js.map +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__25c4ca9a._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__25c4ca9a._.js.map +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__d416fa5e._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__d416fa5e._.js.map +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__e576a2e1._.js +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__e576a2e1._.js.map +1 -1
- package/.next/server/chunks/ssr/_af28dabd._.js +1 -1
- package/.next/server/chunks/ssr/_af28dabd._.js.map +1 -1
- package/.next/server/chunks/ssr/_bff7cae2._.js +9 -0
- package/.next/server/chunks/ssr/_bff7cae2._.js.map +1 -0
- package/.next/server/chunks/ssr/_c8bf1458._.js +9 -0
- package/.next/server/chunks/ssr/_c8bf1458._.js.map +1 -0
- package/.next/server/chunks/ssr/{node_modules__pnpm_604882ab._.js → node_modules__pnpm_1053b681._.js} +2 -2
- package/.next/server/chunks/ssr/node_modules__pnpm_9ac28e5c._.js +3 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_9ac28e5c._.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_c6ddcd47._.js +1 -1
- package/.next/server/chunks/ssr/node_modules__pnpm_c6ddcd47._.js.map +1 -1
- package/.next/server/chunks/ssr/node_modules__pnpm_ecc06f40._.js +3 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_ecc06f40._.js.map +1 -0
- package/.next/server/chunks/ssr/packages_web_src_app_page_tsx_cd282e82._.js +5 -1
- package/.next/server/chunks/ssr/packages_web_src_app_page_tsx_cd282e82._.js.map +1 -1
- package/.next/server/chunks/ssr/packages_web_src_app_run_[runId]_page_tsx_c7d0b139._.js +6 -6
- package/.next/server/chunks/ssr/packages_web_src_app_run_[runId]_page_tsx_c7d0b139._.js.map +1 -1
- package/.next/server/chunks/ssr/packages_web_src_components_ui_select_tsx_7c5238ef._.js +1 -1
- package/.next/server/chunks/ssr/packages_web_src_components_ui_select_tsx_7c5238ef._.js.map +1 -1
- package/.next/server/pages/500.html +2 -2
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +40 -18
- package/.next/static/chunks/080d73f6a8a7055f.js +1 -0
- package/.next/static/chunks/0bf0e3b66b375058.js +2 -0
- package/.next/static/chunks/1633a4677cb7eacd.js +7 -0
- package/.next/static/chunks/19288057adbbaf16.css +2 -0
- package/.next/static/chunks/7993564ea9cd3862.js +60 -0
- package/.next/static/chunks/826c531268249b18.js +1 -0
- package/.next/static/chunks/915c48af605695f8.js +5 -0
- package/.next/static/chunks/a2fdd31ef7d1ed50.js +154 -0
- package/.next/static/chunks/b39dd1bd2af229c0.css +3 -0
- package/.next/static/chunks/{f860cef1a19defc2.js → c41b2f1bfdc5f91e.js} +1 -1
- package/.next/static/chunks/d3781b000675e89a.js +7 -0
- package/.next/static/chunks/ebaf4c277606b4fc.js +14 -0
- package/.next/trace +1 -1
- package/.next/trace-build +1 -1
- package/package.json +4 -4
- package/.next/server/chunks/ssr/_5587a26a._.js +0 -3
- package/.next/server/chunks/ssr/_5587a26a._.js.map +0 -1
- package/.next/server/chunks/ssr/_905b4948._.js +0 -3
- package/.next/server/chunks/ssr/_905b4948._.js.map +0 -1
- package/.next/static/chunks/0ba5474f4ed4a8c8.js +0 -154
- package/.next/static/chunks/3cf543bacb44cfb5.js +0 -1
- package/.next/static/chunks/65a1beec565c5452.js +0 -1
- package/.next/static/chunks/74dc45834647aebe.css +0 -3
- package/.next/static/chunks/a6a14ee8e38e3e97.js +0 -14
- package/.next/static/chunks/e1532e8c78b14240.js +0 -1
- package/.next/static/chunks/e834043d5d00c377.js +0 -60
- package/.next/static/chunks/ed676821fd9c42fe.js +0 -1
- package/.next/static/chunks/f00878722fec5692.js +0 -2
- /package/.next/server/chunks/ssr/{node_modules__pnpm_604882ab._.js.map → node_modules__pnpm_1053b681._.js.map} +0 -0
- /package/.next/static/{kDel5ryx8YzI2wcHKGqt0 → 1Gd0u_mHFXgTr2DR4OTNR}/_buildManifest.js +0 -0
- /package/.next/static/{kDel5ryx8YzI2wcHKGqt0 → 1Gd0u_mHFXgTr2DR4OTNR}/_clientMiddlewareManifest.json +0 -0
- /package/.next/static/{kDel5ryx8YzI2wcHKGqt0 → 1Gd0u_mHFXgTr2DR4OTNR}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,721969,e=>{"use strict";let t;var a,s=e.i(666426);e.i(169764);var r=e.i(545030),n=e.i(868924),o=e.i(360088),l=e.i(531875),d=e.i(742334),i=e.i(195547),c=e.i(687602),u=e.i(400138),p=e.i(886288);let m=(0,p.default)("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),f=(0,p.default)("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);var x=e.i(857812),h=e.i(414576),g=e.i(686107),b=e.i(806746),v=e.i(456944),j=e.i(961612),y=e.i(652773),N=e.i(178896),w=e.i(873350),k=e.i(676977),S=e.i(571577),A=e.i(68206),C=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let a=g.forwardRef((e,a)=>{let{asChild:r,...n}=e,o=r?A.Slot:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(o,{...n,ref:a})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),I=e.i(448297),E=e.i(25749),D="dismissableLayer.update",T=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),R=g.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:d,onDismiss:i,...c}=e,u=g.useContext(T),[p,m]=g.useState(null),f=p?.ownerDocument??globalThis?.document,[,x]=g.useState({}),h=(0,y.useComposedRefs)(t,e=>m(e)),b=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),j=b.indexOf(v),w=p?b.indexOf(p):-1,k=u.layersWithOutsidePointerEventsDisabled.size>0,S=w>=j,A=function(e,t=globalThis?.document){let a=(0,I.useCallbackRef)(e),s=g.useRef(!1),r=g.useRef(()=>{});return g.useEffect(()=>{let e=e=>{if(e.target&&!s.current){let s=function(){P("dismissableLayer.pointerDownOutside",a,n,{discrete:!0})},n={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",r.current),r.current=s,t.addEventListener("click",r.current,{once:!0})):s()}else t.removeEventListener("click",r.current);s.current=!1},n=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(n),t.removeEventListener("pointerdown",e),t.removeEventListener("click",r.current)}},[t,a]),{onPointerDownCapture:()=>s.current=!0}}(e=>{let t=e.target,a=[...u.branches].some(e=>e.contains(t));S&&!a&&(o?.(e),d?.(e),e.defaultPrevented||i?.())},f),R=function(e,t=globalThis?.document){let a=(0,I.useCallbackRef)(e),s=g.useRef(!1);return g.useEffect(()=>{let e=e=>{e.target&&!s.current&&P("dismissableLayer.focusOutside",a,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,a]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}(e=>{let t=e.target;![...u.branches].some(e=>e.contains(t))&&(l?.(e),d?.(e),e.defaultPrevented||i?.())},f);return(0,E.useEscapeKeydown)(e=>{w===u.layers.size-1&&(n?.(e),!e.defaultPrevented&&i&&(e.preventDefault(),i()))},f),g.useEffect(()=>{if(p)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(a=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),O(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=a)}},[p,f,r,u]),g.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),O())},[p,u]),g.useEffect(()=>{let e=()=>x({});return document.addEventListener(D,e),()=>document.removeEventListener(D,e)},[]),(0,s.jsx)(C.div,{...c,ref:h,style:{pointerEvents:k?S?"auto":"none":void 0,...e.style},onFocusCapture:(0,N.composeEventHandlers)(e.onFocusCapture,R.onFocusCapture),onBlurCapture:(0,N.composeEventHandlers)(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:(0,N.composeEventHandlers)(e.onPointerDownCapture,A.onPointerDownCapture)})});function O(){let e=new CustomEvent(D);document.dispatchEvent(e)}function P(e,t,a,{discrete:s}){let r=a.originalEvent.target,n=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});if(t&&r.addEventListener(e,t,{once:!0}),s)r&&S.flushSync(()=>r.dispatchEvent(n));else r.dispatchEvent(n)}R.displayName="DismissableLayer",g.forwardRef((e,t)=>{let a=g.useContext(T),r=g.useRef(null),n=(0,y.useComposedRefs)(t,r);return g.useEffect(()=>{let e=r.current;if(e)return a.branches.add(e),()=>{a.branches.delete(e)}},[a.branches]),(0,s.jsx)(C.div,{...e,ref:n})}).displayName="DismissableLayerBranch";var L="focusScope.autoFocusOnMount",M="focusScope.autoFocusOnUnmount",F={bubbles:!1,cancelable:!0},_=g.forwardRef((e,t)=>{let{loop:a=!1,trapped:r=!1,onMountAutoFocus:n,onUnmountAutoFocus:o,...l}=e,[d,i]=g.useState(null),c=(0,I.useCallbackRef)(n),u=(0,I.useCallbackRef)(o),p=g.useRef(null),m=(0,y.useComposedRefs)(t,e=>i(e)),f=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let e=function(e){if(f.paused||!d)return;let t=e.target;d.contains(t)?p.current=t:$(p.current,{select:!0})},t=function(e){if(f.paused||!d)return;let t=e.relatedTarget;null!==t&&(d.contains(t)||$(p.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let a=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&$(d)});return d&&a.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),a.disconnect()}}},[r,d,f.paused]),g.useEffect(()=>{if(d){H.add(f);let e=document.activeElement;if(!d.contains(e)){let t=new CustomEvent(L,F);d.addEventListener(L,c),d.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let a=document.activeElement;for(let s of e)if($(s,{select:t}),document.activeElement!==a)return}(W(d).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&$(d))}return()=>{d.removeEventListener(L,c),setTimeout(()=>{let t=new CustomEvent(M,F);d.addEventListener(M,u),d.dispatchEvent(t),t.defaultPrevented||$(e??document.body,{select:!0}),d.removeEventListener(M,u),H.remove(f)},0)}}},[d,c,u,f]);let x=g.useCallback(e=>{if(!a&&!r||f.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,s=document.activeElement;if(t&&s){var n;let t,r=e.currentTarget,[o,l]=[B(t=W(n=r),n),B(t.reverse(),n)];o&&l?e.shiftKey||s!==l?e.shiftKey&&s===o&&(e.preventDefault(),a&&$(l,{select:!0})):(e.preventDefault(),a&&$(o,{select:!0})):s===r&&e.preventDefault()}},[a,r,f.paused]);return(0,s.jsx)(C.div,{tabIndex:-1,...l,ref:m,onKeyDown:x})});function W(e){let t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)t.push(a.currentNode);return t}function B(e,t){for(let a of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(a,{upTo:t}))return a}function $(e,{select:t=!1}={}){if(e&&e.focus){var a;let s=document.activeElement;e.focus({preventScroll:!0}),e!==s&&(a=e)instanceof HTMLInputElement&&"select"in a&&t&&e.select()}}_.displayName="FocusScope";var H=(t=[],{add(e){let a=t[0];e!==a&&a?.pause(),(t=K(t,e)).unshift(e)},remove(e){t=K(t,e),t[0]?.resume()}});function K(e,t){let a=[...e],s=a.indexOf(t);return -1!==s&&a.splice(s,1),a}var z=e.i(664019),G=g.forwardRef((e,t)=>{let{container:a,...r}=e,[n,o]=g.useState(!1);(0,z.useLayoutEffect)(()=>o(!0),[]);let l=a||n&&globalThis?.document?.body;return l?S.default.createPortal((0,s.jsx)(C.div,{...r,ref:t}),l):null});G.displayName="Portal";var V=e.i(224285),U=e.i(648502),q=e.i(891246),J=e.i(73772),Z="Dialog",[Q,Y]=(0,j.createContextScope)(Z),[X,ee]=Q(Z),et=e=>{let{__scopeDialog:t,children:a,open:r,defaultOpen:n,onOpenChange:o,modal:l=!0}=e,d=g.useRef(null),i=g.useRef(null),[c=!1,u]=(0,k.useControllableState)({prop:r,defaultProp:n,onChange:o});return(0,s.jsx)(X,{scope:t,triggerRef:d,contentRef:i,contentId:(0,w.useId)(),titleId:(0,w.useId)(),descriptionId:(0,w.useId)(),open:c,onOpenChange:u,onOpenToggle:g.useCallback(()=>u(e=>!e),[u]),modal:l,children:a})};et.displayName=Z;var ea="DialogTrigger",es=g.forwardRef((e,t)=>{let{__scopeDialog:a,...r}=e,n=ee(ea,a),o=(0,y.useComposedRefs)(t,n.triggerRef);return(0,s.jsx)(C.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":eN(n.open),...r,ref:o,onClick:(0,N.composeEventHandlers)(e.onClick,n.onOpenToggle)})});es.displayName=ea;var er="DialogPortal",[en,eo]=Q(er,{forceMount:void 0}),el=e=>{let{__scopeDialog:t,forceMount:a,children:r,container:n}=e,o=ee(er,t);return(0,s.jsx)(en,{scope:t,forceMount:a,children:g.Children.map(r,e=>(0,s.jsx)(V.Presence,{present:a||o.open,children:(0,s.jsx)(G,{asChild:!0,container:n,children:e})}))})};el.displayName=er;var ed="DialogOverlay",ei=g.forwardRef((e,t)=>{let a=eo(ed,e.__scopeDialog),{forceMount:r=a.forceMount,...n}=e,o=ee(ed,e.__scopeDialog);return o.modal?(0,s.jsx)(V.Presence,{present:r||o.open,children:(0,s.jsx)(ec,{...n,ref:t})}):null});ei.displayName=ed;var ec=g.forwardRef((e,t)=>{let{__scopeDialog:a,...r}=e,n=ee(ed,a);return(0,s.jsx)(q.RemoveScroll,{as:A.Slot,allowPinchZoom:!0,shards:[n.contentRef],children:(0,s.jsx)(C.div,{"data-state":eN(n.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),eu="DialogContent",ep=g.forwardRef((e,t)=>{let a=eo(eu,e.__scopeDialog),{forceMount:r=a.forceMount,...n}=e,o=ee(eu,e.__scopeDialog);return(0,s.jsx)(V.Presence,{present:r||o.open,children:o.modal?(0,s.jsx)(em,{...n,ref:t}):(0,s.jsx)(ef,{...n,ref:t})})});ep.displayName=eu;var em=g.forwardRef((e,t)=>{let a=ee(eu,e.__scopeDialog),r=g.useRef(null),n=(0,y.useComposedRefs)(t,a.contentRef,r);return g.useEffect(()=>{let e=r.current;if(e)return(0,J.hideOthers)(e)},[]),(0,s.jsx)(ex,{...e,ref:n,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,N.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),a.triggerRef.current?.focus()}),onPointerDownOutside:(0,N.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,a=0===t.button&&!0===t.ctrlKey;(2===t.button||a)&&e.preventDefault()}),onFocusOutside:(0,N.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})}),ef=g.forwardRef((e,t)=>{let a=ee(eu,e.__scopeDialog),r=g.useRef(!1),n=g.useRef(!1);return(0,s.jsx)(ex,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||a.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(n.current=!0));let s=t.target;a.triggerRef.current?.contains(s)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&n.current&&t.preventDefault()}})}),ex=g.forwardRef((e,t)=>{let{__scopeDialog:a,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:o,...l}=e,d=ee(eu,a),i=g.useRef(null),c=(0,y.useComposedRefs)(t,i);return(0,U.useFocusGuards)(),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:o,children:(0,s.jsx)(R,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":eN(d.open),...l,ref:c,onDismiss:()=>d.onOpenChange(!1)})}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eA,{titleId:d.titleId}),(0,s.jsx)(eC,{contentRef:i,descriptionId:d.descriptionId})]})]})}),eh="DialogTitle",eg=g.forwardRef((e,t)=>{let{__scopeDialog:a,...r}=e,n=ee(eh,a);return(0,s.jsx)(C.h2,{id:n.titleId,...r,ref:t})});eg.displayName=eh;var eb="DialogDescription",ev=g.forwardRef((e,t)=>{let{__scopeDialog:a,...r}=e,n=ee(eb,a);return(0,s.jsx)(C.p,{id:n.descriptionId,...r,ref:t})});ev.displayName=eb;var ej="DialogClose",ey=g.forwardRef((e,t)=>{let{__scopeDialog:a,...r}=e,n=ee(ej,a);return(0,s.jsx)(C.button,{type:"button",...r,ref:t,onClick:(0,N.composeEventHandlers)(e.onClick,()=>n.onOpenChange(!1))})});function eN(e){return e?"open":"closed"}ey.displayName=ej;var ew="DialogTitleWarning",[ek,eS]=(0,j.createContext)(ew,{contentName:eu,titleName:eh,docsSlug:"dialog"}),eA=({titleId:e})=>{let t=eS(ew),a=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
2
|
+
|
|
3
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4
|
+
|
|
5
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(a))},[a,e]),null},eC=({contentRef:e,descriptionId:t})=>{let a=eS("DialogDescriptionWarning"),s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${a.contentName}}.`;return g.useEffect(()=>{let a=e.current?.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},eI="AlertDialog",[eE,eD]=(0,j.createContextScope)(eI,[Y]),eT=Y(),eR=e=>{let{__scopeAlertDialog:t,...a}=e,r=eT(t);return(0,s.jsx)(et,{...r,...a,modal:!0})};eR.displayName=eI,g.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...r}=e,n=eT(a);return(0,s.jsx)(es,{...n,...r,ref:t})}).displayName="AlertDialogTrigger";var eO=e=>{let{__scopeAlertDialog:t,...a}=e,r=eT(t);return(0,s.jsx)(el,{...r,...a})};eO.displayName="AlertDialogPortal";var eP=g.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...r}=e,n=eT(a);return(0,s.jsx)(ei,{...n,...r,ref:t})});eP.displayName="AlertDialogOverlay";var eL="AlertDialogContent",[eM,eF]=eE(eL),e_=g.forwardRef((e,t)=>{let{__scopeAlertDialog:a,children:r,...n}=e,o=eT(a),l=g.useRef(null),d=(0,y.useComposedRefs)(t,l),i=g.useRef(null);return(0,s.jsx)(ek,{contentName:eL,titleName:eW,docsSlug:"alert-dialog",children:(0,s.jsx)(eM,{scope:a,cancelRef:i,children:(0,s.jsxs)(ep,{role:"alertdialog",...o,...n,ref:d,onOpenAutoFocus:(0,N.composeEventHandlers)(n.onOpenAutoFocus,e=>{e.preventDefault(),i.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,s.jsx)(A.Slottable,{children:r}),(0,s.jsx)(eV,{contentRef:l})]})})})});e_.displayName=eL;var eW="AlertDialogTitle",eB=g.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...r}=e,n=eT(a);return(0,s.jsx)(eg,{...n,...r,ref:t})});eB.displayName=eW;var e$="AlertDialogDescription",eH=g.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...r}=e,n=eT(a);return(0,s.jsx)(ev,{...n,...r,ref:t})});eH.displayName=e$;var eK=g.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...r}=e,n=eT(a);return(0,s.jsx)(ey,{...n,...r,ref:t})});eK.displayName="AlertDialogAction";var ez="AlertDialogCancel",eG=g.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...r}=e,{cancelRef:n}=eF(ez,a),o=eT(a),l=(0,y.useComposedRefs)(t,n);return(0,s.jsx)(ey,{...o,...r,ref:l})});eG.displayName=ez;var eV=({contentRef:e})=>{let t=`\`${eL}\` requires a description for the component to be accessible for screen reader users.
|
|
6
|
+
|
|
7
|
+
You can add a description to the \`${eL}\` by passing a \`${e$}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
8
|
+
|
|
9
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${eL}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
10
|
+
|
|
11
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return g.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},eU=e.i(260218),eq=e.i(949245);function eJ({...e}){return(0,s.jsx)(eR,{"data-slot":"alert-dialog",...e})}function eZ({...e}){return(0,s.jsx)(eO,{"data-slot":"alert-dialog-portal",...e})}function eQ({className:e,...t}){return(0,s.jsx)(eP,{"data-slot":"alert-dialog-overlay",className:(0,eq.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function eY({className:e,...t}){return(0,s.jsxs)(eZ,{children:[(0,s.jsx)(eQ,{}),(0,s.jsx)(e_,{"data-slot":"alert-dialog-content",className:(0,eq.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...t})]})}function eX({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,eq.cn)("flex flex-col gap-2 text-center sm:text-left",e),...t})}function e0({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,eq.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function e1({className:e,...t}){return(0,s.jsx)(eB,{"data-slot":"alert-dialog-title",className:(0,eq.cn)("text-lg font-semibold",e),...t})}function e2({className:e,...t}){return(0,s.jsx)(eH,{"data-slot":"alert-dialog-description",className:(0,eq.cn)("text-muted-foreground text-sm",e),...t})}function e5({className:e,...t}){return(0,s.jsx)(eK,{className:(0,eq.cn)((0,eU.buttonVariants)(),e),...t})}function e3({className:e,...t}){return(0,s.jsx)(eG,{className:(0,eq.cn)((0,eU.buttonVariants)({variant:"outline"}),e),...t})}var e4=e.i(524914);function e6({...e}){return(0,s.jsx)("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function e8({className:e,...t}){return(0,s.jsx)("ol",{"data-slot":"breadcrumb-list",className:(0,eq.cn)("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),...t})}function e9({className:e,...t}){return(0,s.jsx)("li",{"data-slot":"breadcrumb-item",className:(0,eq.cn)("inline-flex items-center gap-1.5",e),...t})}function e7({asChild:e,className:t,...a}){let r=e?A.Slot:"a";return(0,s.jsx)(r,{"data-slot":"breadcrumb-link",className:(0,eq.cn)("hover:text-foreground transition-colors",t),...a})}function te({className:e,...t}){return(0,s.jsx)("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:(0,eq.cn)("text-foreground font-normal",e),...t})}function tt({children:e,className:t,...a}){return(0,s.jsx)("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:(0,eq.cn)("[&>svg]:size-3.5",t),...a,children:e??(0,s.jsx)(e4.ChevronRight,{})})}e.i(495566);var ta=e.i(889840),ts=e.i(638322),tr=e.i(620486);let tn="sleep";function to(e){return e.replace(/\/\/\.\.\//g,"//")}function tl(e){let t=e.split("//");return t.length>=3?t[t.length-1]:null}var td=e.i(479823),ti=e.i(241245);function tc({hasError:e,errorMessage:t}){return(0,s.jsx)("div",{className:"flex items-center gap-2",children:(0,s.jsxs)(ts.Tooltip,{children:[(0,s.jsx)(ts.TooltipTrigger,{asChild:!0,children:(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("div",{className:`w-2 h-2 rounded-full ${e?"bg-red-500":"bg-green-500 animate-pulse"}`}),(0,s.jsx)("span",{className:`text-xs $
|
|
12
|
+
hasError
|
|
13
|
+
? 'text-red-600 dark:text-red-400'
|
|
14
|
+
: 'text-muted-foreground'`,children:e?"Error":"Live"})]})}),(0,s.jsx)(ts.TooltipContent,{children:(0,s.jsx)("p",{children:e?`Error updating data: ${t}`:`Content updates every ${eq.LIVE_UPDATE_INTERVAL_MS/1e3} seconds`})})]})})}var tu=e.i(719402),tp=e.i(451675),tm=e.i(330974),tf=e.i(280998),tx=e.i(259280),th=e.i(356089),tg=e.i(562918),tb=e.i(93698);function tv(e){return"retrying"===e?"running":e}let tj={loopNode:function({data:e,selected:t}){return(0,s.jsxs)("div",{className:`relative ${e.className||""}`,style:{borderWidth:e.nodeStyle?.borderWidth??2,borderRadius:8,padding:12,width:220,borderStyle:"solid",backgroundColor:e.nodeStyle?.backgroundColor,borderColor:e.nodeStyle?.borderColor??"#9ca3af",opacity:e.nodeStyle?.opacity,boxShadow:t?"0 0 0 2px rgba(168, 85, 247, 0.5)":void 0},children:[e.label,(0,s.jsx)(tm.Handle,{type:"target",position:tf.Position.Top,className:"!bg-purple-500"}),(0,s.jsx)(tm.Handle,{type:"source",position:tf.Position.Bottom,className:"!bg-purple-500"}),(0,s.jsx)(tm.Handle,{type:"source",position:tf.Position.Left,id:"loop-out",className:"!bg-purple-500 !-left-1 !w-[6px] !h-[6px] !min-w-0 !min-h-0",style:{top:"30%"}}),(0,s.jsx)(tm.Handle,{type:"target",position:tf.Position.Left,id:"loop-in",className:"!bg-purple-500 !-left-1 !w-[6px] !h-[6px] !min-w-0 !min-h-0",style:{top:"70%"}})]})},parallelGroup:tb.ParallelGroupComponent,executionNode:function({data:e,selected:t}){let a="workflow_start"===e.nodeKind,r="workflow_end"===e.nodeKind;return(0,s.jsxs)("div",{className:`relative ${e.className||""}`,style:{borderWidth:e.nodeStyle?.borderWidth??2,borderRadius:8,padding:12,width:220,borderStyle:"solid",backgroundColor:e.nodeStyle?.backgroundColor,borderColor:e.nodeStyle?.borderColor??"#9ca3af",opacity:e.nodeStyle?.opacity,boxShadow:t?"0 0 0 2px rgba(59, 130, 246, 0.35)":void 0},children:[e.label,!a&&(0,s.jsx)(tm.Handle,{type:"target",position:tf.Position.Top,className:"!bg-muted"}),!r&&(0,s.jsx)(tm.Handle,{type:"source",position:tf.Position.Bottom,className:"!bg-muted"})]})},diamondNode:function({data:e,selected:t}){return(0,s.jsxs)("div",{className:`relative flex items-center justify-center ${e.className||""}`,style:{width:160,height:160},children:[(0,s.jsx)("div",{style:{width:112,height:112,transform:"rotate(45deg)",borderWidth:2,borderStyle:"solid",borderRadius:4,backgroundColor:e.nodeStyle?.backgroundColor,borderColor:e.nodeStyle?.borderColor??"#ef4444",opacity:e.nodeStyle?.opacity,boxShadow:t?"0 0 0 2px rgba(239, 68, 68, 0.5)":void 0}}),(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-auto",style:{fontSize:11,fontWeight:600,padding:40},title:"string"==typeof e.label?e.label:void 0,children:(0,s.jsx)("span",{className:"text-center line-clamp-3 overflow-hidden",children:e.label})}),(0,s.jsx)(tm.Handle,{type:"target",position:tf.Position.Top,className:"!bg-red-500"}),(0,s.jsx)(tm.Handle,{type:"source",position:tf.Position.Bottom,id:"bottom",className:"!bg-red-500"}),(0,s.jsx)(tm.Handle,{type:"source",position:tf.Position.Left,id:"left",className:"!bg-red-500"}),(0,s.jsx)(tm.Handle,{type:"source",position:tf.Position.Right,id:"right",className:"!bg-red-500"})]})}},ty=(0,tb.createEdgeTypes)(tb.executionSelfLoopStyle);function tN(e,t,a){let r=(0,s.jsxs)("div",{className:"flex items-start gap-2 w-full overflow-hidden",children:[(0,s.jsx)("div",{className:"flex-shrink-0",children:(0,tb.getNodeIcon)(e.nodeKind,e.label)}),(0,s.jsx)("span",{className:"text-sm font-medium break-words whitespace-normal leading-tight flex-1 min-w-0",children:e.label})]});if(!a||0===a.length)return r;let n=a[a.length-1],o=a.length,l=o>1;return l||n.duration&&n.duration>0?(0,s.jsxs)("div",{className:"flex flex-col gap-1.5 w-full",children:[r,(0,s.jsxs)("div",{className:"flex flex-wrap gap-1 text-xs",children:[l&&(0,s.jsxs)(tg.Badge,{variant:"outline",className:"text-xs px-1.5 py-0 border-orange-500 text-orange-700 dark:text-orange-300",children:["↻ ",o,"x"]}),n.duration&&n.duration>0&&(0,s.jsxs)(tg.Badge,{variant:"secondary",className:"text-xs px-1.5 py-0 bg-black/10 dark:bg-white/15 border-0",children:["⏱ ",(0,th.formatDuration)(n.duration,!0)]})]})]}):r}let tw={...tb.LAYOUT,VERTICAL_SPACING:320};function tk(e,t){let{nodes:a,groupNodes:s}=(0,tb.calculateEnhancedLayout)(e,tw),r=new Map,n=new Map;for(let e of s)e.id.startsWith("group_")&&n.set(e.id,e.position);for(let e of a){let t=e.metadata?.parallelGroupId?`group_${e.metadata.parallelGroupId}`:null;t&&n.has(t)&&r.set(e.id,t)}let o=[];for(let e of s.filter(e=>e.id.startsWith("group_")))o.push({id:e.id,type:"parallelGroup",position:e.position,style:{...e.style,cursor:"grab",zIndex:-1},data:e.data,selectable:!0,draggable:!0});for(let e of a){let a=t?.nodeExecutions.get(e.id),s=function(e,t){let a=(0,tb.getNodeBackgroundColor)(e);if(!t||0===t.length)return{color:"hsl(var(--card-foreground))",backgroundColor:a,borderColor:"#9ca3af",opacity:.4};let s=t[t.length-1],r="#9ca3af",n=2;switch(s.status){case"completed":r="#22c55e";break;case"failed":r="#ef4444",n=3;break;case"running":r="#3b82f6",n=2;break;case"retrying":r="#f97316";break;case"cancelled":r="#eab308";break;case"pending":r="#9ca3af"}return{color:"hsl(var(--card-foreground))",backgroundColor:a,borderColor:r,borderWidth:n}}(e.data.nodeKind,a),l=t?.currentNode===e.id,d=!!e.metadata?.loopId,i=!!e.metadata?.loopIsAwait,c="conditional"===e.data.nodeKind,u=c?"diamondNode":d?"loopNode":"executionNode",p=r.get(e.id),m=e.position;if(p){let t=n.get(p);t&&(m={x:e.position.x-t.x,y:e.position.y-t.y})}let f=l?"animate-pulse-subtle":"";d?o.push({id:e.id,type:u,position:m,parentId:p,extent:p?"parent":void 0,expandParent:!0,data:{...e.data,label:tN(e.data,e.metadata,a),executions:a,isLoopNode:!0,isAwaitLoop:i,nodeStyle:s,className:f}}):c?o.push({id:e.id,type:u,position:m,parentId:p,extent:p?"parent":void 0,expandParent:!0,data:{...e.data,label:e.data.label,executions:a,nodeStyle:s,className:f}}):o.push({id:e.id,type:u,position:m,parentId:p,extent:p?"parent":void 0,expandParent:!0,data:{...e.data,label:tN(e.data,e.metadata,a),executions:a,nodeStyle:s,className:f},style:{width:220}})}return o}function tS(e,t){let{additionalEdges:a}=(0,tb.calculateEnhancedLayout)(e,tw),r=[...e.edges.map(e=>"loop"===e.type?{...e,id:`loop_back_${e.source}_${e.target}`,isOriginal:!0}:{...e,isOriginal:!0}),...a.map(e=>({...e,isOriginal:!1}))];return(0,tb.consolidateEdges)(r,e.nodes).map(e=>{let a;if("selfLoop"===e.type)return{id:e.id,source:e.source,target:e.target,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle,type:"selfLoop",label:e.label,markerEnd:{type:tf.MarkerType.ArrowClosed,width:12,height:12,color:"#a855f7"}};let r=t?.edgeTraversals.get(e.id);if(!r&&e.isConsolidated&&e.originalEdgeIds)for(let a of e.originalEdgeIds){let e=t?.edgeTraversals.get(a);if(e&&e.traversalCount>0){r=e;break}}let n=r&&r.traversalCount>0,o=!!t,l=r?.timings.length?r.timings.reduce((e,t)=>e+t,0)/r.timings.length:void 0,d="bezier",i=e.label,c=!1;switch(e.type){case"parallel":d="smoothstep",a="4,4",i=void 0;break;case"loop":d="step",a="8,4";break;case"conditional":d="smoothstep",a="8,4",c=!0;break;default:d="bezier"}let u=n?"#22c55e":"#6b7280",p=n?void 0:a,m=c?"#ffffff":"#6b7280",f=c?"#374151":"#f3f4f6",x=c?"#4b5563":"#d1d5db";return{id:e.id,source:e.source,target:e.target,type:d,animated:n&&t?.status==="running",label:r&&r.traversalCount>1?(0,s.jsxs)("div",{className:"flex flex-col items-center gap-0.5",children:[(0,s.jsxs)(tg.Badge,{variant:"secondary",className:"text-xs px-1.5 py-0",children:[r.traversalCount,"×"]}),l&&l>0&&(0,s.jsxs)("span",{className:"text-[10px] text-muted-foreground",children:["~",(0,th.formatDuration)(l,!0)]})]}):i,labelStyle:{fill:m,fontWeight:500,fontSize:"11px"},labelBgStyle:{fill:f,fillOpacity:.95,stroke:x,strokeWidth:1},labelBgPadding:[4,6],labelBgBorderRadius:4,markerEnd:{type:tf.MarkerType.ArrowClosed,width:n?14:10,height:n?14:10,color:u},style:{strokeWidth:n?2.5:1,stroke:u,opacity:o&&!n?.35:1,strokeDasharray:p}}})}function tA({selectedNode:e,env:t,onClose:a}){let{node:r,executions:n,stepId:o,runId:d}=e,i=n[n.length-1],c=n.length>1,{data:u,loading:p}=(0,l.useWorkflowResourceData)(t??{},"step",o??"",{runId:d}),m=u?.input??i?.input,f=u?.output??i?.output,h=u?.error??i?.error;return(0,s.jsxs)("div",{className:"h-full flex flex-col bg-background border-l",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2 px-3 py-2 border-b flex-none",children:[(0,s.jsx)("span",{className:"text-xs font-medium truncate flex-1",title:r.data.label,children:r.data.label}),(0,s.jsxs)("div",{className:"flex items-center gap-2 flex-none",children:[i?.duration!==void 0&&i.duration>0&&(0,s.jsx)("span",{className:"text-[10px] font-mono text-muted-foreground bg-muted px-1.5 py-0.5 rounded",children:(0,th.formatDuration)(i.duration)}),(0,s.jsx)("div",{className:"w-px h-4 bg-border"}),(0,s.jsx)("button",{type:"button",onClick:a,className:"p-1 rounded hover:bg-muted transition-colors","aria-label":"Close panel",children:(0,s.jsx)(tx.X,{className:"h-4 w-4 text-muted-foreground"})})]})]}),(0,s.jsxs)("div",{className:"flex-1 overflow-y-auto p-3 min-h-0",children:[(0,s.jsxs)("div",{className:"flex flex-col divide-y rounded-lg border overflow-hidden mb-3",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between px-2.5 py-1.5",children:[(0,s.jsx)("span",{className:"text-[11px] font-medium text-muted-foreground",children:"type"}),(0,s.jsx)("span",{className:"text-[11px] font-mono",children:r.data.nodeKind})]}),i&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between px-2.5 py-1.5",children:[(0,s.jsx)("span",{className:"text-[11px] font-medium text-muted-foreground",children:"status"}),(0,s.jsx)(tp.StatusBadge,{status:tv(i.status)})]}),void 0!==i.duration&&i.duration>0&&(0,s.jsxs)("div",{className:"flex items-center justify-between px-2.5 py-1.5",children:[(0,s.jsx)("span",{className:"text-[11px] font-medium text-muted-foreground",children:"duration"}),(0,s.jsx)("span",{className:"text-[11px] font-mono",children:(0,th.formatDuration)(i.duration)})]}),c&&(0,s.jsxs)("div",{className:"flex items-center justify-between px-2.5 py-1.5",children:[(0,s.jsx)("span",{className:"text-[11px] font-medium text-muted-foreground",children:"attempts"}),(0,s.jsx)("span",{className:"text-[11px] font-mono",children:n.length})]}),i.startedAt&&(0,s.jsxs)("div",{className:"flex items-center justify-between px-2.5 py-1.5",children:[(0,s.jsx)("span",{className:"text-[11px] font-medium text-muted-foreground",children:"startedAt"}),(0,s.jsx)("span",{className:"text-[11px] font-mono",children:new Date(i.startedAt).toLocaleString()})]}),i.completedAt&&(0,s.jsxs)("div",{className:"flex items-center justify-between px-2.5 py-1.5",children:[(0,s.jsx)("span",{className:"text-[11px] font-medium text-muted-foreground",children:"completedAt"}),(0,s.jsx)("span",{className:"text-[11px] font-mono",children:new Date(i.completedAt).toLocaleString()})]})]})]}),p&&o&&(0,s.jsxs)("div",{className:"flex items-center gap-2 text-xs text-muted-foreground mb-3",children:[(0,s.jsx)(x.Loader2,{className:"h-3 w-3 animate-spin"}),(0,s.jsx)("span",{children:"Loading step data..."})]}),void 0!==m&&(0,s.jsxs)("details",{className:"group mb-3",children:[(0,s.jsxs)("summary",{className:"cursor-pointer rounded-md border px-2.5 py-1.5 text-xs hover:brightness-95 bg-muted/50",children:[(0,s.jsx)("span",{className:"font-medium",children:"Input"}),(0,s.jsxs)("span",{className:"text-muted-foreground ml-1",children:["(",Array.isArray(m)?m.length:1," args)"]})]}),(0,s.jsxs)("div",{className:"relative pl-6 mt-3",children:[(0,s.jsx)("div",{className:"absolute left-3 -top-3 w-px h-3 bg-border"}),(0,s.jsx)("div",{className:"absolute left-3 top-0 w-3 h-3 border-l border-b rounded-bl-lg border-border"}),(0,s.jsx)("pre",{className:"text-[11px] overflow-x-auto rounded-md border p-2.5 bg-muted/30 max-h-64 overflow-y-auto",children:(0,s.jsx)("code",{children:JSON.stringify(m,null,2)})})]})]}),void 0!==f&&(0,s.jsxs)("details",{className:"group mb-3",children:[(0,s.jsx)("summary",{className:"cursor-pointer rounded-md border px-2.5 py-1.5 text-xs hover:brightness-95 bg-muted/50",children:(0,s.jsx)("span",{className:"font-medium",children:"Output"})}),(0,s.jsxs)("div",{className:"relative pl-6 mt-3",children:[(0,s.jsx)("div",{className:"absolute left-3 -top-3 w-px h-3 bg-border"}),(0,s.jsx)("div",{className:"absolute left-3 top-0 w-3 h-3 border-l border-b rounded-bl-lg border-border"}),(0,s.jsx)("pre",{className:"text-[11px] overflow-x-auto rounded-md border p-2.5 bg-muted/30 max-h-64 overflow-y-auto",children:(0,s.jsx)("code",{children:JSON.stringify(f,null,2)})})]})]}),h&&(0,s.jsxs)("details",{className:"group mb-3",open:!0,children:[(0,s.jsx)("summary",{className:"cursor-pointer rounded-md border border-red-300 bg-red-50 dark:bg-red-950/20 px-2.5 py-1.5 text-xs hover:brightness-95",children:(0,s.jsx)("span",{className:"font-medium text-red-600 dark:text-red-400",children:"Error"})}),(0,s.jsxs)("div",{className:"relative pl-6 mt-3",children:[(0,s.jsx)("div",{className:"absolute left-3 -top-3 w-px h-3 bg-red-300"}),(0,s.jsx)("div",{className:"absolute left-3 top-0 w-3 h-3 border-l border-b rounded-bl-lg border-red-300"}),(0,s.jsx)("pre",{className:"text-[11px] overflow-x-auto rounded-md border border-red-200 p-2.5 bg-red-50 dark:bg-red-950/20 text-red-700 dark:text-red-300 whitespace-pre-wrap max-h-64 overflow-y-auto",children:(0,s.jsx)("code",{children:"object"==typeof h?JSON.stringify(h,null,2):String(h)})})]})]}),c&&(0,s.jsxs)("details",{className:"group",children:[(0,s.jsxs)("summary",{className:"cursor-pointer rounded-md border px-2.5 py-1.5 text-xs hover:brightness-95 bg-muted/50",children:[(0,s.jsx)("span",{className:"font-medium",children:"Attempt History"}),(0,s.jsxs)("span",{className:"text-muted-foreground ml-1",children:["(",n.length," attempts)"]})]}),(0,s.jsxs)("div",{className:"relative pl-6 mt-3",children:[(0,s.jsx)("div",{className:"absolute left-3 -top-3 w-px h-3 bg-border"}),(0,s.jsx)("div",{className:"absolute left-3 top-0 w-3 h-3 border-l border-b rounded-bl-lg border-border"}),(0,s.jsx)("div",{className:"flex flex-col divide-y rounded-md border overflow-hidden",children:n.map(e=>(0,s.jsxs)("div",{className:"flex items-center justify-between px-2.5 py-1.5 text-[11px]",children:[(0,s.jsxs)("span",{className:"text-muted-foreground",children:["Attempt ",e.attemptNumber]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(tp.StatusBadge,{status:tv(e.status)}),void 0!==e.duration&&e.duration>0&&(0,s.jsx)("span",{className:"font-mono text-muted-foreground",children:(0,th.formatDuration)(e.duration)})]})]},e.attemptNumber))})]})]})]})]})}function tC({workflow:e,execution:t,env:a,onNodeClick:r}){let[n,o]=(0,g.useState)(null),l=(0,g.useMemo)(()=>tk(e,t),[e,t]),d=(0,g.useMemo)(()=>tS(e,t),[e,t]),[i,c,u]=(0,tm.useNodesState)(l),[p,m,f]=(0,tm.useEdgesState)(d);(0,g.useEffect)(()=>{c(a=>{let s=tk(e,t),r=new Map(a.map(e=>[e.id,e.position]));return s.map(e=>({...e,position:r.get(e.id)??e.position}))}),m(tS(e,t))},[e,t,c,m]);let x=(0,g.useCallback)((a,s)=>{let n=e.nodes.find(e=>e.id===s.id);if(n){let e=s.data.executions||[],a=e[e.length-1];o({nodeId:s.id,node:n,executions:e,stepId:a?.stepId,runId:t?.runId}),r&&e.length>0&&r(s.id,e)}},[e.nodes,t?.runId,r]),h=(0,g.useCallback)(()=>{o(null)},[]);return(0,s.jsxs)("div",{className:"h-full w-full border rounded-lg bg-background relative overflow-hidden flex",children:[(0,s.jsx)("div",{className:"h-full flex-1 min-w-0",style:{width:n?"calc(100% - 320px)":"100%"},children:(0,s.jsxs)(tm.ReactFlow,{nodes:i,edges:p,onNodesChange:u,onEdgesChange:f,onNodeClick:x,nodeTypes:tj,edgeTypes:ty,fitView:!0,minZoom:.1,maxZoom:2,defaultViewport:{x:0,y:0,zoom:1},proOptions:{hideAttribution:!0},children:[(0,s.jsx)(tm.Background,{}),(0,s.jsx)(tm.Controls,{}),(0,s.jsx)(tm.Panel,{position:"top-left",className:"bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 border rounded-lg p-2 text-xs",children:(0,s.jsxs)("div",{className:"space-y-1.5",children:[(0,s.jsx)("div",{className:"font-semibold text-[10px] text-muted-foreground mb-1",children:"Status"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"w-6 h-4 rounded border-2 border-green-500 bg-background"}),(0,s.jsx)("span",{children:"Completed"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"w-6 h-4 rounded border-2 border-red-500 bg-background"}),(0,s.jsx)("span",{children:"Failed"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"w-6 h-4 rounded border-2 border-blue-500 bg-background"}),(0,s.jsx)("span",{children:"Running"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"w-6 h-4 rounded border-2 border-yellow-500 bg-background"}),(0,s.jsx)("span",{children:"Cancelled"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 opacity-50",children:[(0,s.jsx)("div",{className:"w-6 h-4 rounded border-2 border-gray-400 bg-background"}),(0,s.jsx)("span",{children:"Pending"})]})]})}),t&&(0,s.jsxs)(tm.Panel,{position:"top-right",className:"bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 border rounded-lg p-3 text-xs space-y-1.5",children:[(0,s.jsx)("div",{className:"font-semibold text-sm",children:"Execution"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:"Status:"}),(0,s.jsx)(tg.Badge,{variant:"completed"===t.status?"default":"failed"===t.status?"destructive":"cancelled"===t.status?"outline":"secondary",className:"text-xs",children:t.status})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:"Progress:"}),(0,s.jsxs)("span",{className:"font-mono",children:[t.executionPath.length," / ",e.nodes.length]})]})]})]})}),n&&(0,s.jsx)("div",{className:"h-full flex-none",style:{width:320},children:(0,s.jsx)(tA,{selectedNode:n,env:a,onClose:h})})]})}var tI=e.i(708341),tE=e.i(613087);function tD({config:e,run:t,allSteps:a,allEvents:r,env:n}){let{manifest:o,loading:l,error:d}=(0,td.useWorkflowGraphManifest)(e),i=(0,g.useMemo)(()=>o&&t.workflowName?o.workflows[t.workflowName]??null:null,[o,t.workflowName]),u=(0,g.useMemo)(()=>i&&t.runId?function(e,t,a,s){let r,n,o=new Map,l=[];console.log("[Graph Mapper] Mapping run to execution:",{runId:e.runId,workflowName:e.workflowName,graphNodes:s.nodes.length,stepsCount:t.length}),(n=s.nodes.find(e=>"workflow_start"===e.data.nodeKind))&&(l.push(n.id),o.set(n.id,[{nodeId:n.id,attemptNumber:1,status:"completed",startedAt:e.startedAt?new Date(e.startedAt).toISOString():void 0,completedAt:e.startedAt?new Date(e.startedAt).toISOString():void 0}]));let d=[...t].sort((e,t)=>new Date(e.createdAt).getTime()-new Date(t.createdAt).getTime());console.log("[Graph Mapper] Sorted steps:",d.map(e=>({stepId:e.stepId,stepName:e.stepName,attempt:e.attempt,status:e.status,createdAt:e.createdAt})));let{byStepId:i,byFunctionName:c,primitivesByLabel:u,agentNodes:p,toolNodes:m}=function(e){let t=new Map,a=new Map,s=new Map,r=[],n=new Map;for(let o of e){if(o.data.stepId){let e=to(o.data.stepId),s=t.get(e)||[];s.push(o),t.set(e,s);let r=tl(e);if(r){let e=a.get(r)||[];e.push(o),a.set(r,e)}}if("primitive"===o.data.nodeKind){let e=o.data.label,t=s.get(e)||[];t.push(o),s.set(e,t)}if("agent"===o.data.nodeKind&&r.push(o),"tool"===o.data.nodeKind){let e=o.data.label.replace(/ \(tool\)$/,""),t=n.get(e)||[];if(t.push(o),n.set(e,t),o.data.stepId){let e=tl(to(o.data.stepId));if(e){let t=n.get(e)||[];t.includes(o)||(t.push(o),n.set(e,t))}}}}return{byStepId:t,byFunctionName:a,primitivesByLabel:s,agentNodes:r,toolNodes:n}}(s.nodes);console.log("[Graph Mapper] Graph nodes by stepId:",{allGraphNodes:s.nodes.map(e=>({id:e.id,stepId:e.data.stepId,normalizedStepId:e.data.stepId?to(e.data.stepId):void 0,nodeKind:e.data.nodeKind})),nodesByStepId:Array.from(i.entries()).map(([e,t])=>({stepId:e,nodeIds:t.map(e=>e.id)}))});let f=new Map,x=[],h=null,g=null;for(let e=0;e<=d.length;e++){let t=d[e];if(t&&t.stepId===h)x.push(t);else{if(x.length>0&&g){let e=function(e,t,a,s,r,n,o){let l=to(t),d=r.get(l)||0;r.set(l,d+1);let i=a.get(l)||[],c="step-id";if(0===i.length){let e=tl(l);e&&(i=s.get(e)||[],c="function-name")}let u=1===i.length?i[0]:i[d];if(console.log("[Graph Mapper] Processing step group:",{stepName:t,normalizedStepName:l,attempts:e.length,occurrenceIndex:d,totalNodesWithStepId:i.length,selectedNode:u?.id,allNodesWithStepId:i.map(e=>e.id),matchStrategy:c,strategy:1===i.length?"single-node-multiple-invocations":"occurrence-based"}),!u)return;let p=e.map((t,a)=>(function(e,t,a,s){let r;switch(e.status){case"completed":r="completed";break;case"failed":r=a<s-1?"retrying":"failed";break;case"running":r="running";break;case"cancelled":r="cancelled";break;default:r="pending"}let n=e.completedAt&&e.startedAt?new Date(e.completedAt).getTime()-new Date(e.startedAt).getTime():void 0;return{nodeId:t,stepId:e.stepId,attemptNumber:e.attempt,status:r,startedAt:e.startedAt?new Date(e.startedAt).toISOString():void 0,completedAt:e.completedAt?new Date(e.completedAt).toISOString():void 0,duration:n,input:e.input,output:e.output,error:e.error?{message:e.error.message,stack:e.error.stack||""}:void 0}})(t,u.id,a,e.length));if(1===i.length){let e=n.get(u.id)||[];n.set(u.id,[...e,...p])}else n.set(u.id,p);return o.includes(u.id)||o.push(u.id),"running"===p[p.length-1].status?u.id:void 0}(x,g,i,c,f,o,l);e&&(r=e)}t&&(x=[t],h=t.stepId,g=t.stepName)}}let b=function(e,t,a,s){let r,n=new Map,o=new Map;for(let t of e){if(!t.correlationId)continue;let e=o.get(t.correlationId)||[];e.push(t),o.set(t.correlationId,e)}let l=t.get(tn)||[],d=new Set;for(let t of e)"wait_created"===t.eventType&&t.correlationId&&d.add(t.correlationId);for(let e of Array.from(d).sort((e,t)=>{let a=o.get(e)||[],s=o.get(t)||[],r=a.find(e=>"wait_created"===e.eventType)?.createdAt,n=s.find(e=>"wait_created"===e.eventType)?.createdAt;return r&&n?new Date(r).getTime()-new Date(n).getTime():0})){let t=o.get(e)||[],d=t.find(e=>"wait_created"===e.eventType),i=t.find(e=>"wait_completed"===e.eventType);if(!d)continue;let c=n.get(tn)||0;n.set(tn,c+1);let u=1===l.length?l[0]:l[c];if(!u)continue;let p="running";i&&(p="completed");let m=new Date(d.createdAt).toISOString(),f=i?new Date(i.createdAt).toISOString():void 0,x=i?new Date(i.createdAt).getTime()-new Date(d.createdAt).getTime():void 0,h={nodeId:u.id,attemptNumber:1,status:p,startedAt:m,completedAt:f,duration:x},g=a.get(u.id)||[];a.set(u.id,[...g,h]),s.includes(u.id)||s.push(u.id),"running"===p&&(r=u.id)}let i=[...t.get("createHook")||[],...t.get("createWebhook")||[]],c=new Set;for(let t of e)"hook_created"===t.eventType&&t.correlationId&&c.add(t.correlationId);let u=Array.from(c).sort((e,t)=>{let a=o.get(e)||[],s=o.get(t)||[],r=a.find(e=>"hook_created"===e.eventType)?.createdAt,n=s.find(e=>"hook_created"===e.eventType)?.createdAt;return r&&n?new Date(r).getTime()-new Date(n).getTime():0}),p=0;for(let e of u){let t=(o.get(e)||[]).find(e=>"hook_created"===e.eventType);if(!t)continue;let r=1===i.length?i[0]:i[p];if(p++,!r)continue;let n=new Date(t.createdAt).toISOString(),l=new Date(t.createdAt).toISOString(),d={nodeId:r.id,attemptNumber:1,status:"completed",startedAt:n,completedAt:l,duration:0},c=a.get(r.id)||[];a.set(r.id,[...c,d]),s.includes(r.id)||s.push(r.id)}let m=t.get("awaitWebhook")||[],f=new Set;for(let t of e)"hook_received"===t.eventType&&t.correlationId&&f.add(t.correlationId);let x=0;for(let e of u){let t,r,n,l=1===m.length?m[0]:m[x];if(x++,!l)continue;let d=o.get(e)||[],i=d.find(e=>"hook_created"===e.eventType),c=d.find(e=>"hook_received"===e.eventType),u=0;c?(t="completed",r=i?new Date(i.createdAt).toISOString():new Date(c.createdAt).toISOString(),u=new Date(n=new Date(c.createdAt).toISOString()).getTime()-new Date(r).getTime()):i?(t="running",r=new Date(i.createdAt).toISOString()):t="pending";let p={nodeId:l.id,attemptNumber:1,status:t,startedAt:r,completedAt:n,duration:u},f=a.get(l.id)||[];a.set(l.id,[...f,p]),s.includes(l.id)||s.push(l.id)}return r}(a,u,o,l);b&&(r=b),function(e,t,a,s,r,n,o){let l="pending";for(let t of("completed"===e.status?l="completed":"failed"===e.status?l="failed":"running"===e.status&&(l="running"),a)){let a={nodeId:t.id,attemptNumber:1,status:l,startedAt:e.startedAt?new Date(e.startedAt).toISOString():void 0,completedAt:e.completedAt&&("completed"===l||"failed"===l)?new Date(e.completedAt).toISOString():void 0};r.set(t.id,[a]),n.includes(t.id)||n.push(t.id)}for(let e of t){let t,a=tl(e.stepName);if(!a)continue;let o=s.get(a);if(!o||0===o.length)continue;let l=o[0];switch(e.status){case"completed":t="completed";break;case"failed":t="failed";break;case"running":t="running";break;case"cancelled":t="cancelled";break;default:t="pending"}let d=e.completedAt&&e.startedAt?new Date(e.completedAt).getTime()-new Date(e.startedAt).getTime():void 0,i={nodeId:l.id,stepId:e.stepId,attemptNumber:e.attempt,status:t,startedAt:e.startedAt?new Date(e.startedAt).toISOString():void 0,completedAt:e.completedAt?new Date(e.completedAt).toISOString():void 0,duration:d,input:e.input,output:e.output,error:e.error},c=r.get(l.id)||[];r.set(l.id,[...c,i]),n.includes(l.id)||n.push(l.id)}for(let t of o){let a=t.metadata?.isToolsCollection===!0;if("tool"===t.data.nodeKind&&a&&!r.has(t.id)){let a={nodeId:t.id,attemptNumber:1,status:l,startedAt:e.startedAt?new Date(e.startedAt).toISOString():void 0,completedAt:e.completedAt&&("completed"===l||"failed"===l)?new Date(e.completedAt).toISOString():void 0};r.set(t.id,[a]),n.includes(t.id)||n.push(t.id)}}}(e,d,p,m,o,l,s.nodes),function(e,t,a,s){let r=e.nodes.filter(e=>"conditional"===e.data.nodeKind),n=new Map;for(let t of e.nodes){let e=t.metadata?.conditionalId;if(e){let a=n.get(e)||{thenNodes:[],elseNodes:[]};t.metadata?.conditionalBranch==="Then"?a.thenNodes.push(t):t.metadata?.conditionalBranch==="Else"&&a.elseNodes.push(t),n.set(e,a)}}for(let e of r){let r=e.id.match(/^(cond_\d+)_node$/);if(!r)continue;let o=r[1],l=n.get(o);if(!l)continue;let d=l.thenNodes.some(e=>t.has(e.id)),i=l.elseNodes.some(e=>t.has(e.id));if(d||i){let r=[...l.thenNodes,...l.elseNodes];if(!t.has(e.id)){let a;for(let e of r){let s=t.get(e.id);if(s&&s.length>0){let e=s[0];e.startedAt&&(!a||e.startedAt<a)&&(a=e.startedAt)}}let n=s.startedAt?new Date(s.startedAt).toISOString():void 0,o={nodeId:e.id,attemptNumber:1,status:"completed",startedAt:a||n,completedAt:a||n};t.set(e.id,[o])}if(!a.includes(e.id)){let t=r.map(e=>a.indexOf(e.id)).filter(e=>e>=0);if(t.length>0){let s=Math.min(...t);s>=0&&s<a.length?a.splice(s,0,e.id):a.push(e.id)}else a.push(e.id)}}}}(s,o,l,e),function(e,t,a,s){let r,n=t.nodes.find(e=>"workflow_end"===e.data.nodeKind);if(!(!n||a.includes(n.id))){switch(e.status){case"completed":r="completed";break;case"failed":r="failed";break;case"cancelled":r="cancelled";break;case"running":r="running";break;case"paused":r="pending";break;default:return}a.push(n.id),s.set(n.id,[{nodeId:n.id,attemptNumber:1,status:r,startedAt:e.completedAt?new Date(e.completedAt).toISOString():void 0,completedAt:e.completedAt?new Date(e.completedAt).toISOString():void 0}])}}(e,s,l,o);let v=function(e,t,a){let s=new Map,r=new Set(e),n=new Map;for(let e of t.nodes){let t=e.metadata?.parallelGroupId;if(t){let a=n.get(t)||{nodes:[]};a.nodes.push(e),a.method=e.metadata?.parallelMethod,n.set(t,a)}}let o=new Map;for(let[e,t]of n)if("race"===t.method){let s,r;for(let e of t.nodes){let t=a.get(e.id);if(t){for(let a of t)if("completed"===a.status&&a.completedAt){let t=new Date(a.completedAt);(!r||t<r)&&(r=t,s=e.id)}}}s&&o.set(e,s)}let l=e=>{let t=s.get(e.id);t?t.traversalCount++:s.set(e.id,{edgeId:e.id,traversalCount:1,timings:[]})};for(let e of t.edges){let a=t.nodes.find(t=>t.id===e.source),s=t.nodes.find(t=>t.id===e.target);if(!a||!s)continue;let n=r.has(e.source),d=r.has(e.target);if(!n&&!d)continue;if("conditional"===e.type){n&&d&&l(e);continue}let i=a.metadata?.parallelGroupId,c=a.metadata?.parallelMethod;i&&"race"===c?o.get(i)===e.source&&d&&l(e):n&&d?l(e):n&&"parallel"===e.type&&d&&l(e)}return s}(l,s,o),j={runId:e.runId,status:e.status,nodeExecutions:o,edgeTraversals:v,currentNode:r,executionPath:l};return console.log("[Graph Mapper] Mapping complete:",{executionPath:l,nodeExecutionsCount:o.size,nodeExecutions:Array.from(o.entries()).map(([e,t])=>({nodeId:e,executionCount:t.length,latestStatus:t[t.length-1]?.status}))}),j}(t,a||[],r||[],i):null,[i,t,a,r]);return l?(0,s.jsxs)("div",{className:"flex items-center justify-center w-full h-full",children:[(0,s.jsx)(x.Loader2,{className:"h-8 w-8 animate-spin text-muted-foreground"}),(0,s.jsx)("span",{className:"ml-4 text-muted-foreground",children:"Loading workflow graph..."})]}):d?(0,s.jsx)("div",{className:"flex items-center justify-center w-full h-full p-4",children:(0,s.jsxs)(v.Alert,{variant:"destructive",className:"max-w-lg",children:[(0,s.jsx)(c.AlertCircle,{className:"h-4 w-4"}),(0,s.jsx)(v.AlertTitle,{children:"Error Loading Workflow Graph"}),(0,s.jsx)(v.AlertDescription,{children:d.message})]})}):i?(0,s.jsx)(tC,{workflow:i,execution:u||void 0,env:n}):(0,s.jsx)("div",{className:"flex items-center justify-center w-full h-full",children:(0,s.jsxs)(v.Alert,{className:"max-w-lg",children:[(0,s.jsx)(c.AlertCircle,{className:"h-4 w-4"}),(0,s.jsx)(v.AlertTitle,{children:"Workflow Graph Not Found"}),(0,s.jsx)(v.AlertDescription,{children:"Could not find the workflow graph for this run. The workflow may have been deleted or the graph manifest may need to be regenerated."})]})})}function tT({config:e,runId:t,selectedId:a}){let r=(0,n.useRouter)(),p=(0,n.useSearchParams)(),[j,y]=(0,g.useState)(!1),[N,w]=(0,g.useState)(!1),[k,S]=(0,g.useState)(!1),[A,C]=(0,g.useState)(!1),I=(0,g.useMemo)(()=>(0,tr.worldConfigToEnvMap)(e),[e]),E=p.get("tab")||"trace",D=p.get("streamId"),T="1"===p.get("debug"),R=(0,g.useCallback)(e=>{let t=new URLSearchParams(p.toString());for(let[a,s]of Object.entries(e))null===s?t.delete(a):t.set(a,s);r.push(`?${t.toString()}`,{scroll:!1})},[r,p]),O=(0,g.useCallback)(e=>{"trace"===e||"graph"===e?R({tab:e,streamId:null}):R({tab:e})},[R]),P=(0,g.useCallback)(e=>{R({streamId:e})},[R]),L=(0,g.useCallback)(e=>{R({tab:"streams",streamId:e})},[R]),M="local"===e.backend,{run:F,steps:_,hooks:W,events:B,loading:$,auxiliaryDataLoading:H,error:K,update:z}=(0,l.useWorkflowTraceViewerData)(I,t,{live:!0}),G=F??{},{streams:V,loading:U,error:q}=(0,l.useWorkflowStreams)(I,t),J=async()=>{if(!j)try{y(!0),S(!1),await (0,l.cancelRun)(I,t),await z(),b.toast.success("Run cancelled successfully")}catch(e){console.error("Failed to cancel run:",e),b.toast.error("Failed to cancel run",{description:e instanceof Error?e.message:"An unknown error occurred"})}finally{y(!1)}},Z=async()=>{if(!N)try{w(!0),C(!1);let t=await (0,l.recreateRun)(I,G.runId);b.toast.success("New run started successfully",{description:`Run ID: ${t}`}),r.push((0,tr.buildUrlWithConfig)(`/run/${t}`,e))}catch(e){console.error("Failed to re-run workflow:",e),b.toast.error("Failed to start new run",{description:e instanceof Error?e.message:"An unknown error occurred"})}finally{w(!1),C(!1)}};if(K&&!F)return(0,s.jsxs)(v.Alert,{variant:"destructive",className:"m-4",children:[(0,s.jsx)(c.AlertCircle,{className:"h-4 w-4"}),(0,s.jsx)(v.AlertTitle,{children:"Error loading workflow run"}),(0,s.jsx)(v.AlertDescription,{children:K.message})]});let Q=(0,o.parseWorkflowName)(G.workflowName)?.shortName;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eJ,{open:k,onOpenChange:S,children:(0,s.jsxs)(eY,{children:[(0,s.jsxs)(eX,{children:[(0,s.jsx)(e1,{children:"Cancel Workflow Run?"}),(0,s.jsx)(e2,{children:"This will stop the workflow execution immediately, and no further steps will be executed. Partial workflow execution may occur. Are you sure you want to cancel the run?"})]}),(0,s.jsxs)(e0,{children:[(0,s.jsx)(e3,{children:"Keep Running"}),(0,s.jsx)(e5,{onClick:J,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Cancel Run"})]})]})}),(0,s.jsx)(eJ,{open:A,onOpenChange:C,children:(0,s.jsxs)(eY,{children:[(0,s.jsxs)(eX,{children:[(0,s.jsx)(e1,{children:"Replay Run?"}),(0,s.jsx)(e2,{children:"This can potentially re-run code that is meant to only execute once. Are you sure you want to replay the workflow run?"})]}),(0,s.jsxs)(e0,{children:[(0,s.jsx)(e3,{children:"Cancel"}),(0,s.jsx)(e5,{onClick:Z,children:"Replay Run"})]})]})}),(0,s.jsxs)("div",{className:"flex flex-col h-[calc(100vh-97px)]",children:[(0,s.jsxs)("div",{className:"flex-none space-y-4",children:[(0,s.jsx)(e6,{children:(0,s.jsxs)(e8,{children:[(0,s.jsx)(e9,{children:(0,s.jsx)(e7,{asChild:!0,children:(0,s.jsx)(h.default,{href:(0,tr.buildUrlWithConfig)("/",e),children:"Runs"})})}),(0,s.jsx)(tt,{}),(0,s.jsx)(e9,{children:(0,s.jsx)(te,{className:"font-mono text-xs",children:t})})]})}),(0,s.jsxs)("div",{className:"space-y-4 p-6 border rounded-lg",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between",children:[(0,s.jsx)("div",{className:"mb-4",children:(0,s.jsx)("h1",{className:"text-xl font-semibold",children:Q||(0,s.jsx)(tE.Skeleton,{className:"w-[260px] h-[28px]"})})}),(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,s.jsx)(tc,{hasError:!1,errorMessage:""}),(0,s.jsx)(tI.RunActionsButtons,{env:I,runId:t,runStatus:G.status,events:B,eventsLoading:H,loading:$,onRerunClick:()=>{C(!0)},onCancelClick:()=>{S(!0)},callbacks:{onSuccess:z},showDebugActions:T})]})]}),(0,s.jsxs)("div",{className:"flex items-start gap-8",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("div",{className:"text-xs text-muted-foreground",children:"Status"}),G.status?(0,s.jsx)(tp.StatusBadge,{status:G.status,context:G}):(0,s.jsx)(tE.Skeleton,{className:"w-[55px] h-[24px]"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("div",{className:"text-xs text-muted-foreground",children:"Duration"}),(0,s.jsx)("div",{className:"text-xs",children:G.runId?G.startedAt?(()=>{let e=Math.floor(((G.completedAt?new Date(G.completedAt).getTime():Date.now())-new Date(G.startedAt).getTime())/1e3);if(e<60)return`${e}s`;let t=Math.floor(e/60),a=e%60;if(t<60)return a>0?`${t}m ${a}s`:`${t}m`;let s=Math.floor(t/60),r=t%60;return r>0?`${s}h ${r}m`:`${s}h`})():"-":(0,s.jsx)(tE.Skeleton,{className:"w-[60px] h-[20px]"})})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("div",{className:"text-xs text-muted-foreground",children:"Run ID"}),G.runId?(0,s.jsx)(ti.CopyableText,{text:G.runId,children:(0,s.jsx)("div",{className:"text-xs mt-0.5 font-mono",children:G.runId})}):(0,s.jsx)(tE.Skeleton,{className:"w-[280px] h-[20px]"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("div",{className:"text-xs text-muted-foreground",children:"Queued"}),G.createdAt?(0,s.jsx)("div",{className:"text-xs",children:(0,s.jsx)(tu.RelativeTime,{date:G.createdAt})}):(0,s.jsx)(tE.Skeleton,{className:"w-[110px] h-[20px]"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("div",{className:"text-xs text-muted-foreground",children:"Started"}),(0,s.jsx)("div",{className:"text-xs",children:G.runId?G.startedAt?(0,s.jsx)(tu.RelativeTime,{date:G.startedAt}):"-":(0,s.jsx)(tE.Skeleton,{className:"w-[110px] h-[20px]"})})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("div",{className:"text-xs text-muted-foreground",children:"Completed"}),(0,s.jsx)("div",{className:"text-xs",children:G.runId?G.completedAt?(0,s.jsx)(tu.RelativeTime,{date:G.completedAt}):"-":(0,s.jsx)(tE.Skeleton,{className:"w-[110px] h-[20px]"})})]}),null!=G.expiredAt&&(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsxs)(ts.Tooltip,{children:[(0,s.jsx)(ts.TooltipTrigger,{asChild:!0,children:(0,s.jsxs)("div",{className:"text-xs text-muted-foreground cursor-help flex items-center gap-1",children:["Expired",(0,s.jsx)(m,{className:"w-3 h-3"})]})}),(0,s.jsx)(ts.TooltipContent,{children:(0,s.jsx)("p",{children:"The storage data for this run has expired and is no longer available."})})]}),(0,s.jsx)("div",{className:"text-xs",children:(0,s.jsx)(tu.RelativeTime,{date:G.expiredAt})})]})]})]})]}),(0,s.jsxs)("div",{className:"mt-4 flex-1 flex flex-col min-h-0",children:[(0,s.jsxs)(ta.Tabs,{value:E,onValueChange:e=>O(e),className:"flex-1 flex flex-col min-h-0",children:[(0,s.jsxs)(ta.TabsList,{className:"mb-4 flex-none",children:[(0,s.jsxs)(ta.TabsTrigger,{value:"trace",className:"gap-2",children:[(0,s.jsx)(f,{className:"h-4 w-4"}),"Trace"]}),M&&(0,s.jsxs)(ta.TabsTrigger,{value:"graph",className:"gap-2",children:[(0,s.jsx)(u.GitBranch,{className:"h-4 w-4"}),"Graph"]}),(0,s.jsxs)(ta.TabsTrigger,{value:"streams",className:"gap-2",children:[(0,s.jsx)(f,{className:"h-4 w-4"}),"Streams"]})]}),(0,s.jsx)(ta.TabsContent,{value:"trace",className:"mt-0 flex-1 min-h-0",children:(0,s.jsx)("div",{className:"h-full",children:(0,s.jsx)(i.WorkflowTraceViewer,{error:K,steps:_,events:B,hooks:W,env:I,run:G,isLoading:$,onStreamClick:L})})}),(0,s.jsx)(ta.TabsContent,{value:"streams",className:"mt-0 flex-1 min-h-0",children:(0,s.jsxs)("div",{className:"h-full flex gap-4",children:[(0,s.jsxs)("div",{className:"w-64 flex-shrink-0 border rounded-lg overflow-hidden",style:{borderColor:"var(--ds-gray-300)",backgroundColor:"var(--ds-background-100)"},children:[(0,s.jsxs)("div",{className:"px-3 py-2 border-b text-xs font-medium",style:{borderColor:"var(--ds-gray-300)",color:"var(--ds-gray-900)"},children:["Streams (",V.length,")"]}),(0,s.jsx)("div",{className:"overflow-auto max-h-[calc(100vh-400px)]",children:U?(0,s.jsx)("div",{className:"p-4 flex items-center justify-center",children:(0,s.jsx)(x.Loader2,{className:"h-4 w-4 animate-spin text-muted-foreground"})}):q?(0,s.jsx)("div",{className:"p-4 text-xs text-destructive",children:q.message}):0===V.length?(0,s.jsx)("div",{className:"p-4 text-xs",style:{color:"var(--ds-gray-600)"},children:"No streams found for this run"}):V.map(e=>(0,s.jsx)("button",{type:"button",onClick:()=>P(e),className:"w-full text-left px-3 py-2 text-xs font-mono truncate hover:bg-accent transition-colors",style:{backgroundColor:D===e?"var(--ds-gray-200)":"transparent",color:"var(--ds-gray-1000)"},title:e,children:e},e))})]}),(0,s.jsx)("div",{className:"flex-1 min-w-0",children:D?(0,s.jsx)(d.StreamViewer,{env:I,streamId:D}):(0,s.jsx)("div",{className:"h-full flex items-center justify-center rounded-lg border",style:{borderColor:"var(--ds-gray-300)",backgroundColor:"var(--ds-gray-100)"},children:(0,s.jsx)("div",{className:"text-sm",style:{color:"var(--ds-gray-600)"},children:V.length>0?"Select a stream to view its data":"No streams available"})})})]})}),M&&(0,s.jsx)(ta.TabsContent,{value:"graph",className:"mt-0 flex-1 min-h-0",children:(0,s.jsx)("div",{className:"h-full min-h-[500px]",children:(0,s.jsx)(tD,{config:e,run:G,allSteps:_,allEvents:B,env:I})})})]}),H&&(0,s.jsxs)("div",{className:"fixed flex items-center gap-2 left-8 bottom-8 bg-background border rounded-md px-4 py-2 shadow-lg",children:[(0,s.jsx)(x.Loader2,{className:"size-4 animate-spin"}),(0,s.jsx)("span",{className:"text-sm",children:"Fetching data..."})]})]})]})]})}var tR=e.i(480462);function tO(){let e=(0,n.useParams)(),t=(0,tr.useQueryParamConfig)(),[a]=(0,tR.useStepIdState)(),[o]=(0,tR.useEventIdState)(),[l]=(0,tR.useHookIdState)(),d=e.runId;return(0,s.jsx)(r.ErrorBoundary,{title:"Run Detail Error",description:"Failed to load run details. Please try navigating back to the home page.",children:(0,s.jsx)(tT,{config:t,runId:d,selectedId:a||o||l||void 0})})}e.s(["default",()=>tO],721969)}]);
|
package/.next/trace
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"generate-buildid","duration":
|
|
1
|
+
[{"name":"generate-buildid","duration":238,"timestamp":694736546,"id":4,"parentId":1,"tags":{},"startTime":1766868064914,"traceId":"8aeb7b60508eeaec"},{"name":"load-custom-routes","duration":353,"timestamp":694736889,"id":5,"parentId":1,"tags":{},"startTime":1766868064914,"traceId":"8aeb7b60508eeaec"},{"name":"create-dist-dir","duration":231,"timestamp":694737269,"id":6,"parentId":1,"tags":{},"startTime":1766868064915,"traceId":"8aeb7b60508eeaec"},{"name":"clean","duration":273,"timestamp":694737927,"id":7,"parentId":1,"tags":{},"startTime":1766868064915,"traceId":"8aeb7b60508eeaec"},{"name":"create-pages-mapping","duration":244,"timestamp":694791722,"id":8,"parentId":1,"tags":{},"startTime":1766868064969,"traceId":"8aeb7b60508eeaec"},{"name":"collect-app-files","duration":1379,"timestamp":694792026,"id":9,"parentId":1,"tags":{},"startTime":1766868064969,"traceId":"8aeb7b60508eeaec"},{"name":"create-app-mapping","duration":1594,"timestamp":694793432,"id":10,"parentId":1,"tags":{},"startTime":1766868064971,"traceId":"8aeb7b60508eeaec"},{"name":"create-app-layouts","duration":141,"timestamp":694795111,"id":11,"parentId":1,"tags":{},"startTime":1766868064972,"traceId":"8aeb7b60508eeaec"},{"name":"collect-default-files","duration":424,"timestamp":694796069,"id":13,"parentId":1,"tags":{},"startTime":1766868064973,"traceId":"8aeb7b60508eeaec"},{"name":"generate-route-types","duration":11074,"timestamp":694795554,"id":12,"parentId":1,"tags":{},"startTime":1766868064973,"traceId":"8aeb7b60508eeaec"},{"name":"public-dir-conflict-check","duration":80,"timestamp":694806719,"id":14,"parentId":1,"tags":{},"startTime":1766868064984,"traceId":"8aeb7b60508eeaec"},{"name":"generate-routes-manifest","duration":1899,"timestamp":694806857,"id":15,"parentId":1,"tags":{},"startTime":1766868064984,"traceId":"8aeb7b60508eeaec"},{"name":"run-turbopack","duration":18180477,"timestamp":694812021,"id":17,"parentId":1,"tags":{},"startTime":1766868064989,"traceId":"8aeb7b60508eeaec"},{"name":"run-typescript","duration":5251612,"timestamp":713008069,"id":19,"parentId":1,"tags":{},"startTime":1766868083185,"traceId":"8aeb7b60508eeaec"},{"name":"check-static-error-page","duration":2599,"timestamp":718318523,"id":22,"parentId":21,"tags":{},"startTime":1766868088496,"traceId":"8aeb7b60508eeaec"},{"name":"is-page-static","duration":289999,"timestamp":718325639,"id":28,"parentId":24,"tags":{},"startTime":1766868088503,"traceId":"8aeb7b60508eeaec"},{"name":"check-page","duration":295016,"timestamp":718320712,"id":24,"parentId":21,"tags":{"page":"/_global-error"},"startTime":1766868088498,"traceId":"8aeb7b60508eeaec"},{"name":"is-page-static","duration":325486,"timestamp":718326621,"id":30,"parentId":27,"tags":{},"startTime":1766868088504,"traceId":"8aeb7b60508eeaec"},{"name":"check-page","duration":331126,"timestamp":718321048,"id":27,"parentId":21,"tags":{"page":"/favicon.ico"},"startTime":1766868088498,"traceId":"8aeb7b60508eeaec"},{"name":"is-page-static","duration":352786,"timestamp":718326259,"id":29,"parentId":23,"tags":{},"startTime":1766868088504,"traceId":"8aeb7b60508eeaec"},{"name":"check-page","duration":359795,"timestamp":718319655,"id":23,"parentId":21,"tags":{"page":"/_not-found"},"startTime":1766868088497,"traceId":"8aeb7b60508eeaec"},{"name":"is-page-static","duration":417877,"timestamp":718330474,"id":31,"parentId":25,"tags":{},"startTime":1766868088508,"traceId":"8aeb7b60508eeaec"},{"name":"check-page","duration":427523,"timestamp":718320882,"id":25,"parentId":21,"tags":{"page":"/"},"startTime":1766868088498,"traceId":"8aeb7b60508eeaec"},{"name":"is-page-static","duration":418951,"timestamp":718330520,"id":32,"parentId":26,"tags":{},"startTime":1766868088508,"traceId":"8aeb7b60508eeaec"},{"name":"check-page","duration":428533,"timestamp":718320962,"id":26,"parentId":21,"tags":{"page":"/run/[runId]"},"startTime":1766868088498,"traceId":"8aeb7b60508eeaec"},{"name":"static-check","duration":431753,"timestamp":718317764,"id":21,"parentId":1,"tags":{},"startTime":1766868088495,"traceId":"8aeb7b60508eeaec"},{"name":"generate-required-server-files","duration":431,"timestamp":718749653,"id":34,"parentId":1,"tags":{},"startTime":1766868088927,"traceId":"8aeb7b60508eeaec"},{"name":"write-routes-manifest","duration":200,"timestamp":718750407,"id":35,"parentId":1,"tags":{},"startTime":1766868088928,"traceId":"8aeb7b60508eeaec"},{"name":"load-dotenv","duration":31,"timestamp":718758413,"id":38,"parentId":37,"tags":{},"startTime":1766868088936,"traceId":"8aeb7b60508eeaec"},{"name":"run-export-path-map","duration":292,"timestamp":718760025,"id":39,"parentId":37,"tags":{},"startTime":1766868088937,"traceId":"8aeb7b60508eeaec"},{"name":"next-export","duration":623624,"timestamp":718757543,"id":37,"parentId":1,"tags":{},"startTime":1766868088935,"traceId":"8aeb7b60508eeaec"},{"name":"move-exported-app-not-found-","duration":88,"timestamp":719382324,"id":40,"parentId":36,"tags":{},"startTime":1766868089560,"traceId":"8aeb7b60508eeaec"},{"name":"move-exported-app-global-error-","duration":456,"timestamp":719382467,"id":41,"parentId":36,"tags":{},"startTime":1766868089560,"traceId":"8aeb7b60508eeaec"},{"name":"static-generation","duration":630357,"timestamp":718754025,"id":36,"parentId":1,"tags":{},"startTime":1766868088931,"traceId":"8aeb7b60508eeaec"},{"name":"write-routes-manifest","duration":239,"timestamp":719384504,"id":42,"parentId":1,"tags":{},"startTime":1766868089562,"traceId":"8aeb7b60508eeaec"},{"name":"print-tree-view","duration":2163,"timestamp":719388738,"id":43,"parentId":1,"tags":{},"startTime":1766868089566,"traceId":"8aeb7b60508eeaec"},{"name":"telemetry-flush","duration":56726,"timestamp":719390911,"id":44,"parentId":1,"tags":{},"startTime":1766868089568,"traceId":"8aeb7b60508eeaec"},{"name":"next-build","duration":24932570,"timestamp":694515089,"id":1,"tags":{"buildMode":"default","version":"16.0.10","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1766868064692,"traceId":"8aeb7b60508eeaec"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":18180477,"timestamp":694812021,"id":17,"parentId":1,"tags":{},"startTime":1766868064989,"traceId":"8aeb7b60508eeaec"},{"name":"run-typescript","duration":5251612,"timestamp":713008069,"id":19,"parentId":1,"tags":{},"startTime":1766868083185,"traceId":"8aeb7b60508eeaec"},{"name":"static-check","duration":431753,"timestamp":718317764,"id":21,"parentId":1,"tags":{},"startTime":1766868088495,"traceId":"8aeb7b60508eeaec"},{"name":"static-generation","duration":630357,"timestamp":718754025,"id":36,"parentId":1,"tags":{},"startTime":1766868088931,"traceId":"8aeb7b60508eeaec"},{"name":"telemetry-flush","duration":56726,"timestamp":719390911,"id":44,"parentId":1,"tags":{},"startTime":1766868089568,"traceId":"8aeb7b60508eeaec"},{"name":"next-build","duration":24932570,"timestamp":694515089,"id":1,"tags":{"buildMode":"default","version":"16.0.10","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1766868064692,"traceId":"8aeb7b60508eeaec"}]
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workflow/web",
|
|
3
3
|
"description": "Workflow Observability UI",
|
|
4
|
-
"version": "4.0.1-beta.
|
|
4
|
+
"version": "4.0.1-beta.21",
|
|
5
5
|
"private": false,
|
|
6
6
|
"files": [
|
|
7
7
|
".next",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"tailwind-merge": "2.5.5",
|
|
51
51
|
"tailwindcss": "4",
|
|
52
52
|
"typescript": "^5.9.3",
|
|
53
|
-
"@workflow/core": "4.0.1-beta.
|
|
54
|
-
"@workflow/world": "4.0.1-beta.
|
|
55
|
-
"@workflow/web-shared": "4.0.1-beta.
|
|
53
|
+
"@workflow/core": "4.0.1-beta.32",
|
|
54
|
+
"@workflow/world": "4.0.1-beta.11",
|
|
55
|
+
"@workflow/web-shared": "4.0.1-beta.34"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"dev": "next dev --turbopack --port 3456",
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[302260,a=>{"use strict";let b=(0,a.i(622427).default)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["Loader2",()=>b],302260)},139274,a=>{"use strict";let b=(0,a.i(622427).default)("Ellipsis",[["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"}]]);a.s(["MoreHorizontal",()=>b],139274)},725538,a=>{"use strict";var b=a.i(857446),c=a.i(253220),d=a.i(559653),e=a.i(333702),f=a.i(523358),g=a.i(840861),h=a.i(192534),i=a.i(518243),j=a.i(393352),k=a.i(984295),l=a.i(539536),m="rovingFocusGroup.onEntryFocus",n={bubbles:!1,cancelable:!0},o="RovingFocusGroup",[p,q,r]=(0,f.createCollection)(o),[s,t]=(0,e.createContextScope)(o,[r]),[u,v]=s(o),w=c.forwardRef((a,c)=>(0,b.jsx)(p.Provider,{scope:a.__scopeRovingFocusGroup,children:(0,b.jsx)(p.Slot,{scope:a.__scopeRovingFocusGroup,children:(0,b.jsx)(x,{...a,ref:c})})}));w.displayName=o;var x=c.forwardRef((a,e)=>{let{__scopeRovingFocusGroup:f,orientation:h,loop:p=!1,dir:r,currentTabStopId:s,defaultCurrentTabStopId:t,onCurrentTabStopIdChange:v,onEntryFocus:w,preventScrollOnEntryFocus:x=!1,...y}=a,z=c.useRef(null),A=(0,g.useComposedRefs)(e,z),C=(0,l.useDirection)(r),[D,E]=(0,k.useControllableState)({prop:s,defaultProp:t??null,onChange:v,caller:o}),[F,G]=c.useState(!1),H=(0,j.useCallbackRef)(w),I=q(f),J=c.useRef(!1),[K,L]=c.useState(0);return c.useEffect(()=>{let a=z.current;if(a)return a.addEventListener(m,H),()=>a.removeEventListener(m,H)},[H]),(0,b.jsx)(u,{scope:f,orientation:h,dir:C,loop:p,currentTabStopId:D,onItemFocus:c.useCallback(a=>E(a),[E]),onItemShiftTab:c.useCallback(()=>G(!0),[]),onFocusableItemAdd:c.useCallback(()=>L(a=>a+1),[]),onFocusableItemRemove:c.useCallback(()=>L(a=>a-1),[]),children:(0,b.jsx)(i.Primitive.div,{tabIndex:F||0===K?-1:0,"data-orientation":h,...y,ref:A,style:{outline:"none",...a.style},onMouseDown:(0,d.composeEventHandlers)(a.onMouseDown,()=>{J.current=!0}),onFocus:(0,d.composeEventHandlers)(a.onFocus,a=>{let b=!J.current;if(a.target===a.currentTarget&&b&&!F){let b=new CustomEvent(m,n);if(a.currentTarget.dispatchEvent(b),!b.defaultPrevented){let a=I().filter(a=>a.focusable);B([a.find(a=>a.active),a.find(a=>a.id===D),...a].filter(Boolean).map(a=>a.ref.current),x)}}J.current=!1}),onBlur:(0,d.composeEventHandlers)(a.onBlur,()=>G(!1))})})}),y="RovingFocusGroupItem",z=c.forwardRef((a,e)=>{let{__scopeRovingFocusGroup:f,focusable:g=!0,active:j=!1,tabStopId:k,children:l,...m}=a,n=(0,h.useId)(),o=k||n,r=v(y,f),s=r.currentTabStopId===o,t=q(f),{onFocusableItemAdd:u,onFocusableItemRemove:w,currentTabStopId:x}=r;return c.useEffect(()=>{if(g)return u(),()=>w()},[g,u,w]),(0,b.jsx)(p.ItemSlot,{scope:f,id:o,focusable:g,active:j,children:(0,b.jsx)(i.Primitive.span,{tabIndex:s?0:-1,"data-orientation":r.orientation,...m,ref:e,onMouseDown:(0,d.composeEventHandlers)(a.onMouseDown,a=>{g?r.onItemFocus(o):a.preventDefault()}),onFocus:(0,d.composeEventHandlers)(a.onFocus,()=>r.onItemFocus(o)),onKeyDown:(0,d.composeEventHandlers)(a.onKeyDown,a=>{if("Tab"===a.key&&a.shiftKey)return void r.onItemShiftTab();if(a.target!==a.currentTarget)return;let b=function(a,b,c){var d;let e=(d=a.key,"rtl"!==c?d:"ArrowLeft"===d?"ArrowRight":"ArrowRight"===d?"ArrowLeft":d);if(!("vertical"===b&&["ArrowLeft","ArrowRight"].includes(e))&&!("horizontal"===b&&["ArrowUp","ArrowDown"].includes(e)))return A[e]}(a,r.orientation,r.dir);if(void 0!==b){if(a.metaKey||a.ctrlKey||a.altKey||a.shiftKey)return;a.preventDefault();let e=t().filter(a=>a.focusable).map(a=>a.ref.current);if("last"===b)e.reverse();else if("prev"===b||"next"===b){var c,d;"prev"===b&&e.reverse();let f=e.indexOf(a.currentTarget);e=r.loop?(c=e,d=f+1,c.map((a,b)=>c[(d+b)%c.length])):e.slice(f+1)}setTimeout(()=>B(e))}}),children:"function"==typeof l?l({isCurrentTabStop:s,hasTabStop:null!=x}):l})})});z.displayName=y;var A={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function B(a,b=!1){let c=document.activeElement;for(let d of a)if(d===c||(d.focus({preventScroll:b}),document.activeElement!==c))return}var C=a.i(200866),D="Tabs",[E,F]=(0,e.createContextScope)(D,[t]),G=t(),[H,I]=E(D),J=c.forwardRef((a,c)=>{let{__scopeTabs:d,value:e,onValueChange:f,defaultValue:g,orientation:j="horizontal",dir:m,activationMode:n="automatic",...o}=a,p=(0,l.useDirection)(m),[q,r]=(0,k.useControllableState)({prop:e,onChange:f,defaultProp:g??"",caller:D});return(0,b.jsx)(H,{scope:d,baseId:(0,h.useId)(),value:q,onValueChange:r,orientation:j,dir:p,activationMode:n,children:(0,b.jsx)(i.Primitive.div,{dir:p,"data-orientation":j,...o,ref:c})})});J.displayName=D;var K="TabsList",L=c.forwardRef((a,c)=>{let{__scopeTabs:d,loop:e=!0,...f}=a,g=I(K,d),h=G(d);return(0,b.jsx)(w,{asChild:!0,...h,orientation:g.orientation,dir:g.dir,loop:e,children:(0,b.jsx)(i.Primitive.div,{role:"tablist","aria-orientation":g.orientation,...f,ref:c})})});L.displayName=K;var M="TabsTrigger",N=c.forwardRef((a,c)=>{let{__scopeTabs:e,value:f,disabled:g=!1,...h}=a,j=I(M,e),k=G(e),l=Q(j.baseId,f),m=R(j.baseId,f),n=f===j.value;return(0,b.jsx)(z,{asChild:!0,...k,focusable:!g,active:n,children:(0,b.jsx)(i.Primitive.button,{type:"button",role:"tab","aria-selected":n,"aria-controls":m,"data-state":n?"active":"inactive","data-disabled":g?"":void 0,disabled:g,id:l,...h,ref:c,onMouseDown:(0,d.composeEventHandlers)(a.onMouseDown,a=>{g||0!==a.button||!1!==a.ctrlKey?a.preventDefault():j.onValueChange(f)}),onKeyDown:(0,d.composeEventHandlers)(a.onKeyDown,a=>{[" ","Enter"].includes(a.key)&&j.onValueChange(f)}),onFocus:(0,d.composeEventHandlers)(a.onFocus,()=>{let a="manual"!==j.activationMode;n||g||!a||j.onValueChange(f)})})})});N.displayName=M;var O="TabsContent",P=c.forwardRef((a,d)=>{let{__scopeTabs:e,value:f,forceMount:g,children:h,...j}=a,k=I(O,e),l=Q(k.baseId,f),m=R(k.baseId,f),n=f===k.value,o=c.useRef(n);return c.useEffect(()=>{let a=requestAnimationFrame(()=>o.current=!1);return()=>cancelAnimationFrame(a)},[]),(0,b.jsx)(C.Presence,{present:g||n,children:({present:c})=>(0,b.jsx)(i.Primitive.div,{"data-state":n?"active":"inactive","data-orientation":k.orientation,role:"tabpanel","aria-labelledby":l,hidden:!c,id:m,tabIndex:0,...j,ref:d,style:{...a.style,animationDuration:o.current?"0s":void 0},children:c&&h})})});function Q(a,b){return`${a}-trigger-${b}`}function R(a,b){return`${a}-content-${b}`}P.displayName=O;var S=a.i(676653);function T({className:a,...c}){return(0,b.jsx)(J,{"data-slot":"tabs",className:(0,S.cn)("flex flex-col gap-2",a),...c})}function U({className:a,...c}){return(0,b.jsx)(L,{"data-slot":"tabs-list",className:(0,S.cn)("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg border border-input p-[3px]",a),...c})}function V({className:a,...c}){return(0,b.jsx)(N,{"data-slot":"tabs-trigger",className:(0,S.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",a),...c})}function W({className:a,...c}){return(0,b.jsx)(P,{"data-slot":"tabs-content",className:(0,S.cn)("flex-1 outline-none",a),...c})}a.s(["Tabs",()=>T,"TabsContent",()=>W,"TabsList",()=>U,"TabsTrigger",()=>V],725538)},432320,520496,315244,a=>{"use strict";var b,c=a.i(857446),d=a.i(602774);let e=(0,a.i(622427).default)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);a.s(["Copy",()=>e],520496);var f=a.i(253220),g=a.i(393557),h=a.i(676653);function i({text:a,children:b,className:i,overlay:j}){let[k,l]=(0,f.useState)(!1),m=async b=>{b.stopPropagation();try{await navigator.clipboard.writeText(a),l(!0),setTimeout(()=>l(!1),2e3)}catch(a){console.error("Failed to copy text:",a)}};return j?(0,c.jsxs)("span",{className:(0,h.cn)("relative group/copy inline-block",i),children:[b,(0,c.jsxs)(g.Tooltip,{children:[(0,c.jsx)(g.TooltipTrigger,{asChild:!0,children:(0,c.jsx)("button",{type:"button",onClick:m,className:"absolute right-0 top-1/2 -translate-y-1/2 opacity-0 group-hover/copy:opacity-100 transition-opacity bg-background/80 backdrop-blur-sm p-1 rounded","aria-label":"Copy to clipboard",children:k?(0,c.jsx)(d.Check,{className:"h-3 w-3 text-muted-foreground"}):(0,c.jsx)(e,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})}),(0,c.jsx)(g.TooltipContent,{children:(0,c.jsx)("p",{children:k?"Copied!":"Copy to clipboard"})})]})]}):(0,c.jsxs)("div",{className:(0,h.cn)("flex items-center gap-2 group",i),children:[b,(0,c.jsxs)(g.Tooltip,{children:[(0,c.jsx)(g.TooltipTrigger,{asChild:!0,children:(0,c.jsx)("button",{type:"button",onClick:m,className:"opacity-0 group-hover:opacity-100 transition-opacity","aria-label":"Copy to clipboard",children:k?(0,c.jsx)(d.Check,{className:"h-3 w-3 text-green-600"}):(0,c.jsx)(e,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})}),(0,c.jsx)(g.TooltipContent,{children:(0,c.jsx)("p",{children:k?"Copied!":"Copy to clipboard"})})]})]})}a.s(["CopyableText",()=>i],432320);let j=Symbol.for("constructDateFrom");function k(a,b){return"function"==typeof a?a(b):a&&"object"==typeof a&&j in a?a[j](b):a instanceof Date?new a.constructor(b):new Date(b)}let l={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function m(a){return (b={})=>{let c=b.width?String(b.width):a.defaultWidth;return a.formats[c]||a.formats[a.defaultWidth]}}let n={date:m({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:m({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:m({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},o={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function p(a){return(b,c)=>{let d;if("formatting"===(c?.context?String(c.context):"standalone")&&a.formattingValues){let b=a.defaultFormattingWidth||a.defaultWidth,e=c?.width?String(c.width):b;d=a.formattingValues[e]||a.formattingValues[b]}else{let b=a.defaultWidth,e=c?.width?String(c.width):a.defaultWidth;d=a.values[e]||a.values[b]}return d[a.argumentCallback?a.argumentCallback(b):b]}}function q(a){return(b,c={})=>{let d,e=c.width,f=e&&a.matchPatterns[e]||a.matchPatterns[a.defaultMatchWidth],g=b.match(f);if(!g)return null;let h=g[0],i=e&&a.parsePatterns[e]||a.parsePatterns[a.defaultParseWidth],j=Array.isArray(i)?function(a,b){for(let c=0;c<a.length;c++)if(b(a[c]))return c}(i,a=>a.test(h)):function(a,b){for(let c in a)if(Object.prototype.hasOwnProperty.call(a,c)&&b(a[c]))return c}(i,a=>a.test(h));return d=a.valueCallback?a.valueCallback(j):j,{value:d=c.valueCallback?c.valueCallback(d):d,rest:b.slice(h.length)}}}let r={code:"en-US",formatDistance:(a,b,c)=>{let d,e=l[a];if(d="string"==typeof e?e:1===b?e.one:e.other.replace("{{count}}",b.toString()),c?.addSuffix)if(c.comparison&&c.comparison>0)return"in "+d;else return d+" ago";return d},formatLong:n,formatRelative:(a,b,c,d)=>o[a],localize:{ordinalNumber:(a,b)=>{let c=Number(a),d=c%100;if(d>20||d<10)switch(d%10){case 1:return c+"st";case 2:return c+"nd";case 3:return c+"rd"}return c+"th"},era:p({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:p({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:a=>a-1}),month:p({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:p({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:p({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(b={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:a=>parseInt(a,10)},(a,c={})=>{let d=a.match(b.matchPattern);if(!d)return null;let e=d[0],f=a.match(b.parsePattern);if(!f)return null;let g=b.valueCallback?b.valueCallback(f[0]):f[0];return{value:g=c.valueCallback?c.valueCallback(g):g,rest:a.slice(e.length)}}),era:q({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:a=>a+1}),month:q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:q({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:q({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},s={};function t(a,b){return k(b||a,a)}function u(a){let b=t(a),c=new Date(Date.UTC(b.getFullYear(),b.getMonth(),b.getDate(),b.getHours(),b.getMinutes(),b.getSeconds(),b.getMilliseconds()));return c.setUTCFullYear(b.getFullYear()),a-c}function v(a,...b){let c=k.bind(null,a||b.find(a=>"object"==typeof a));return b.map(c)}function w(a,b){let c=t(a,b?.in);return c.setHours(0,0,0,0),c}function x(a,b,c){let[d,e]=v(c?.in,a,b),f=w(d),g=w(e);return Math.round((f-u(f)-(g-u(g)))/864e5)}function y(a,b){let c=b?.weekStartsOn??b?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,d=t(a,b?.in),e=d.getDay();return d.setDate(d.getDate()-(7*(e<c)+e-c)),d.setHours(0,0,0,0),d}function z(a,b){return y(a,{...b,weekStartsOn:1})}function A(a,b){let c=t(a,b?.in),d=c.getFullYear(),e=k(c,0);e.setFullYear(d+1,0,4),e.setHours(0,0,0,0);let f=z(e),g=k(c,0);g.setFullYear(d,0,4),g.setHours(0,0,0,0);let h=z(g);return c.getTime()>=f.getTime()?d+1:c.getTime()>=h.getTime()?d:d-1}function B(a,b){let c=t(a,b?.in),d=c.getFullYear(),e=b?.firstWeekContainsDate??b?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,f=k(b?.in||a,0);f.setFullYear(d+1,0,e),f.setHours(0,0,0,0);let g=y(f,b),h=k(b?.in||a,0);h.setFullYear(d,0,e),h.setHours(0,0,0,0);let i=y(h,b);return+c>=+g?d+1:+c>=+i?d:d-1}function C(a,b){let c=Math.abs(a).toString().padStart(b,"0");return(a<0?"-":"")+c}let D={y(a,b){let c=a.getFullYear(),d=c>0?c:1-c;return C("yy"===b?d%100:d,b.length)},M(a,b){let c=a.getMonth();return"M"===b?String(c+1):C(c+1,2)},d:(a,b)=>C(a.getDate(),b.length),a(a,b){let c=a.getHours()/12>=1?"pm":"am";switch(b){case"a":case"aa":return c.toUpperCase();case"aaa":return c;case"aaaaa":return c[0];default:return"am"===c?"a.m.":"p.m."}},h:(a,b)=>C(a.getHours()%12||12,b.length),H:(a,b)=>C(a.getHours(),b.length),m:(a,b)=>C(a.getMinutes(),b.length),s:(a,b)=>C(a.getSeconds(),b.length),S(a,b){let c=b.length;return C(Math.trunc(a.getMilliseconds()*Math.pow(10,c-3)),b.length)}},E={G:function(a,b,c){let d=+(a.getFullYear()>0);switch(b){case"G":case"GG":case"GGG":return c.era(d,{width:"abbreviated"});case"GGGGG":return c.era(d,{width:"narrow"});default:return c.era(d,{width:"wide"})}},y:function(a,b,c){if("yo"===b){let b=a.getFullYear();return c.ordinalNumber(b>0?b:1-b,{unit:"year"})}return D.y(a,b)},Y:function(a,b,c,d){let e=B(a,d),f=e>0?e:1-e;return"YY"===b?C(f%100,2):"Yo"===b?c.ordinalNumber(f,{unit:"year"}):C(f,b.length)},R:function(a,b){return C(A(a),b.length)},u:function(a,b){return C(a.getFullYear(),b.length)},Q:function(a,b,c){let d=Math.ceil((a.getMonth()+1)/3);switch(b){case"Q":return String(d);case"QQ":return C(d,2);case"Qo":return c.ordinalNumber(d,{unit:"quarter"});case"QQQ":return c.quarter(d,{width:"abbreviated",context:"formatting"});case"QQQQQ":return c.quarter(d,{width:"narrow",context:"formatting"});default:return c.quarter(d,{width:"wide",context:"formatting"})}},q:function(a,b,c){let d=Math.ceil((a.getMonth()+1)/3);switch(b){case"q":return String(d);case"qq":return C(d,2);case"qo":return c.ordinalNumber(d,{unit:"quarter"});case"qqq":return c.quarter(d,{width:"abbreviated",context:"standalone"});case"qqqqq":return c.quarter(d,{width:"narrow",context:"standalone"});default:return c.quarter(d,{width:"wide",context:"standalone"})}},M:function(a,b,c){let d=a.getMonth();switch(b){case"M":case"MM":return D.M(a,b);case"Mo":return c.ordinalNumber(d+1,{unit:"month"});case"MMM":return c.month(d,{width:"abbreviated",context:"formatting"});case"MMMMM":return c.month(d,{width:"narrow",context:"formatting"});default:return c.month(d,{width:"wide",context:"formatting"})}},L:function(a,b,c){let d=a.getMonth();switch(b){case"L":return String(d+1);case"LL":return C(d+1,2);case"Lo":return c.ordinalNumber(d+1,{unit:"month"});case"LLL":return c.month(d,{width:"abbreviated",context:"standalone"});case"LLLLL":return c.month(d,{width:"narrow",context:"standalone"});default:return c.month(d,{width:"wide",context:"standalone"})}},w:function(a,b,c,d){let e,f,g,h,i=Math.round((y(e=t(a,d?.in),d)-(f=d?.firstWeekContainsDate??d?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,g=B(e,d),(h=k(d?.in||e,0)).setFullYear(g,0,f),h.setHours(0,0,0,0),y(h,d)))/6048e5)+1;return"wo"===b?c.ordinalNumber(i,{unit:"week"}):C(i,b.length)},I:function(a,b,c){let d,e,f,g=Math.round((z(d=t(a,void 0))-(e=A(d,void 0),(f=k(d,0)).setFullYear(e,0,4),f.setHours(0,0,0,0),z(f)))/6048e5)+1;return"Io"===b?c.ordinalNumber(g,{unit:"week"}):C(g,b.length)},d:function(a,b,c){return"do"===b?c.ordinalNumber(a.getDate(),{unit:"date"}):D.d(a,b)},D:function(a,b,c){let d,e,f=x(d=t(a,void 0),((e=t(d,void 0)).setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e))+1;return"Do"===b?c.ordinalNumber(f,{unit:"dayOfYear"}):C(f,b.length)},E:function(a,b,c){let d=a.getDay();switch(b){case"E":case"EE":case"EEE":return c.day(d,{width:"abbreviated",context:"formatting"});case"EEEEE":return c.day(d,{width:"narrow",context:"formatting"});case"EEEEEE":return c.day(d,{width:"short",context:"formatting"});default:return c.day(d,{width:"wide",context:"formatting"})}},e:function(a,b,c,d){let e=a.getDay(),f=(e-d.weekStartsOn+8)%7||7;switch(b){case"e":return String(f);case"ee":return C(f,2);case"eo":return c.ordinalNumber(f,{unit:"day"});case"eee":return c.day(e,{width:"abbreviated",context:"formatting"});case"eeeee":return c.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return c.day(e,{width:"short",context:"formatting"});default:return c.day(e,{width:"wide",context:"formatting"})}},c:function(a,b,c,d){let e=a.getDay(),f=(e-d.weekStartsOn+8)%7||7;switch(b){case"c":return String(f);case"cc":return C(f,b.length);case"co":return c.ordinalNumber(f,{unit:"day"});case"ccc":return c.day(e,{width:"abbreviated",context:"standalone"});case"ccccc":return c.day(e,{width:"narrow",context:"standalone"});case"cccccc":return c.day(e,{width:"short",context:"standalone"});default:return c.day(e,{width:"wide",context:"standalone"})}},i:function(a,b,c){let d=a.getDay(),e=0===d?7:d;switch(b){case"i":return String(e);case"ii":return C(e,b.length);case"io":return c.ordinalNumber(e,{unit:"day"});case"iii":return c.day(d,{width:"abbreviated",context:"formatting"});case"iiiii":return c.day(d,{width:"narrow",context:"formatting"});case"iiiiii":return c.day(d,{width:"short",context:"formatting"});default:return c.day(d,{width:"wide",context:"formatting"})}},a:function(a,b,c){let d=a.getHours()/12>=1?"pm":"am";switch(b){case"a":case"aa":return c.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"aaa":return c.dayPeriod(d,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return c.dayPeriod(d,{width:"narrow",context:"formatting"});default:return c.dayPeriod(d,{width:"wide",context:"formatting"})}},b:function(a,b,c){let d,e=a.getHours();switch(d=12===e?"noon":0===e?"midnight":e/12>=1?"pm":"am",b){case"b":case"bb":return c.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"bbb":return c.dayPeriod(d,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return c.dayPeriod(d,{width:"narrow",context:"formatting"});default:return c.dayPeriod(d,{width:"wide",context:"formatting"})}},B:function(a,b,c){let d,e=a.getHours();switch(d=e>=17?"evening":e>=12?"afternoon":e>=4?"morning":"night",b){case"B":case"BB":case"BBB":return c.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"BBBBB":return c.dayPeriod(d,{width:"narrow",context:"formatting"});default:return c.dayPeriod(d,{width:"wide",context:"formatting"})}},h:function(a,b,c){if("ho"===b){let b=a.getHours()%12;return 0===b&&(b=12),c.ordinalNumber(b,{unit:"hour"})}return D.h(a,b)},H:function(a,b,c){return"Ho"===b?c.ordinalNumber(a.getHours(),{unit:"hour"}):D.H(a,b)},K:function(a,b,c){let d=a.getHours()%12;return"Ko"===b?c.ordinalNumber(d,{unit:"hour"}):C(d,b.length)},k:function(a,b,c){let d=a.getHours();return(0===d&&(d=24),"ko"===b)?c.ordinalNumber(d,{unit:"hour"}):C(d,b.length)},m:function(a,b,c){return"mo"===b?c.ordinalNumber(a.getMinutes(),{unit:"minute"}):D.m(a,b)},s:function(a,b,c){return"so"===b?c.ordinalNumber(a.getSeconds(),{unit:"second"}):D.s(a,b)},S:function(a,b){return D.S(a,b)},X:function(a,b,c){let d=a.getTimezoneOffset();if(0===d)return"Z";switch(b){case"X":return G(d);case"XXXX":case"XX":return H(d);default:return H(d,":")}},x:function(a,b,c){let d=a.getTimezoneOffset();switch(b){case"x":return G(d);case"xxxx":case"xx":return H(d);default:return H(d,":")}},O:function(a,b,c){let d=a.getTimezoneOffset();switch(b){case"O":case"OO":case"OOO":return"GMT"+F(d,":");default:return"GMT"+H(d,":")}},z:function(a,b,c){let d=a.getTimezoneOffset();switch(b){case"z":case"zz":case"zzz":return"GMT"+F(d,":");default:return"GMT"+H(d,":")}},t:function(a,b,c){return C(Math.trunc(a/1e3),b.length)},T:function(a,b,c){return C(+a,b.length)}};function F(a,b=""){let c=a>0?"-":"+",d=Math.abs(a),e=Math.trunc(d/60),f=d%60;return 0===f?c+String(e):c+String(e)+b+C(f,2)}function G(a,b){return a%60==0?(a>0?"-":"+")+C(Math.abs(a)/60,2):H(a,b)}function H(a,b=""){let c=Math.abs(a);return(a>0?"-":"+")+C(Math.trunc(c/60),2)+b+C(c%60,2)}let I=(a,b)=>{switch(a){case"P":return b.date({width:"short"});case"PP":return b.date({width:"medium"});case"PPP":return b.date({width:"long"});default:return b.date({width:"full"})}},J=(a,b)=>{switch(a){case"p":return b.time({width:"short"});case"pp":return b.time({width:"medium"});case"ppp":return b.time({width:"long"});default:return b.time({width:"full"})}},K={p:J,P:(a,b)=>{let c,d=a.match(/(P+)(p+)?/)||[],e=d[1],f=d[2];if(!f)return I(a,b);switch(e){case"P":c=b.dateTime({width:"short"});break;case"PP":c=b.dateTime({width:"medium"});break;case"PPP":c=b.dateTime({width:"long"});break;default:c=b.dateTime({width:"full"})}return c.replace("{{date}}",I(e,b)).replace("{{time}}",J(f,b))}},L=/^D+$/,M=/^Y+$/,N=["D","DD","YY","YYYY"],O=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,P=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Q=/^'([^]*?)'?$/,R=/''/g,S=/[a-zA-Z]/;function T({date:a,className:b="",type:d="relative"}){var e,h;let[,i]=(0,f.useState)(Date.now());"string"==typeof a&&(a=new Date(a));let j="relative"===d?function(a,b,c){let d,[e,f]=v(void 0,a,b),g=(void 0)??s.locale??r,h=(void 0)??void 0??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,i=x(e,f);if(isNaN(i))throw RangeError("Invalid time value");d=i<-6?"other":i<-1?"lastWeek":i<0?"yesterday":i<1?"today":i<2?"tomorrow":i<7?"nextWeek":"other";let j=g.formatRelative(d,e,f,{locale:g,weekStartsOn:h});return function(a,b,c){let d=c?.locale??s.locale??r,e=c?.firstWeekContainsDate??c?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,f=c?.weekStartsOn??c?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,g=t(a,c?.in);if(!(g instanceof Date||"object"==typeof g&&"[object Date]"===Object.prototype.toString.call(g))&&"number"!=typeof g||isNaN(+t(g)))throw RangeError("Invalid time value");let h=b.match(P).map(a=>{let b=a[0];return"p"===b||"P"===b?(0,K[b])(a,d.formatLong):a}).join("").match(O).map(a=>{if("''"===a)return{isToken:!1,value:"'"};let b=a[0];if("'"===b){var c;let b;return{isToken:!1,value:(b=(c=a).match(Q))?b[1].replace(R,"'"):c}}if(E[b])return{isToken:!0,value:a};if(b.match(S))throw RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:a}});d.localize.preprocessor&&(h=d.localize.preprocessor(g,h));let i={firstWeekContainsDate:e,weekStartsOn:f,locale:d};return h.map(e=>{if(!e.isToken)return e.value;let f=e.value;return(!c?.useAdditionalWeekYearTokens&&M.test(f)||!c?.useAdditionalDayOfYearTokens&&L.test(f))&&function(a,b,c){var d,e,f;let g,h=(d=a,e=b,f=c,g="Y"===d[0]?"years":"days of the month",`Use \`${d.toLowerCase()}\` instead of \`${d}\` (in \`${e}\`) for formatting ${g} to the input \`${f}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(console.warn(h),N.includes(a))throw RangeError(h)}(f,b,String(a)),(0,E[f[0]])(g,f,d.localize,i)}).join("")}(e,j,{locale:g,weekStartsOn:h})}(new Date(a),new Date):(e=new Date(a),h={addSuffix:!0},function(a,b,c){var d;let e,f,g=c?.locale??s.locale??r,h=(f=t(a)-t(b))<0?-1:f>0?1:f;if(isNaN(h))throw RangeError("Invalid time value");let i=Object.assign({},c,{addSuffix:c?.addSuffix,comparison:h}),[j,k]=v(c?.in,...h>0?[b,a]:[a,b]),l=(d=c?.roundingMethod??"round",a=>{let b=(d?Math[d]:Math.trunc)(a);return 0===b?0:b}),m=k.getTime()-j.getTime(),n=m/6e4,o=(m-(u(k)-u(j)))/6e4,p=c?.unit;if("second"===(e=p||(n<1?"second":n<60?"minute":n<1440?"hour":o<43200?"day":o<525600?"month":"year"))){let a=l(m/1e3);return g.formatDistance("xSeconds",a,i)}if("minute"===e){let a=l(n);return g.formatDistance("xMinutes",a,i)}if("hour"===e){let a=l(n/60);return g.formatDistance("xHours",a,i)}if("day"===e){let a=l(o/1440);return g.formatDistance("xDays",a,i)}if("month"===e){let a=l(o/43200);return 12===a&&"month"!==p?g.formatDistance("xYears",1,i):g.formatDistance("xMonths",a,i)}else{let a=l(o/525600);return g.formatDistance("xYears",a,i)}}(e,k(e,Date.now()),h)),l=new Date(a).toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"});return(0,f.useEffect)(()=>{let a=setInterval(()=>{i(Date.now())},1e3);return()=>clearInterval(a)},[]),(0,c.jsxs)(g.Tooltip,{children:[(0,c.jsx)(g.TooltipTrigger,{asChild:!0,children:(0,c.jsx)("span",{className:`${b} cursor-help border-b border-dotted`,children:j})}),(0,c.jsx)(g.TooltipContent,{children:(0,c.jsx)("p",{children:l})})]})}a.s(["RelativeTime",()=>T],315244)},93354,a=>{"use strict";var b=a.i(857446),c=a.i(602774),d=a.i(520496),e=a.i(253220),f=a.i(397494),g=a.i(393557),h=a.i(676653),i=a.i(16303);function j({status:a,context:c,className:d,durationMs:e}){let f=(0,b.jsxs)("span",{className:(0,h.cn)("flex flex-row gap-2",d),children:[(0,b.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,b.jsx)("span",{className:(0,h.cn)("size-2 rounded-full shrink-0",(()=>{switch(a){case"running":return"bg-blue-500";case"completed":return"bg-emerald-500";case"failed":return"bg-red-500";case"cancelled":return"bg-yellow-500";case"pending":default:return"bg-gray-400";case"paused":return"bg-orange-500"}})())}),(0,b.jsx)("span",{className:"text-muted-foreground text-xs font-medium capitalize",children:a})]}),void 0!==e&&(0,b.jsxs)("span",{className:"text-muted-foreground/70 text-xs",children:["(",(0,i.formatDuration)(e),")"]})]});return"failed"===a&&c?.error?(0,b.jsx)(k,{content:f,error:c.error}):f}function k({content:a,error:h}){let[i,j]=(0,e.useState)(!1),k="string"==typeof h?h:h instanceof Error?h.message:JSON.stringify(h),l=async a=>{a.stopPropagation(),await navigator.clipboard.writeText(k),j(!0),setTimeout(()=>j(!1),2e3)};return(0,b.jsxs)(g.Tooltip,{children:[(0,b.jsx)(g.TooltipTrigger,{asChild:!0,children:(0,b.jsx)("span",{className:"cursor-help",children:a})}),(0,b.jsxs)(g.TooltipContent,{className:"max-w-md p-0",children:[(0,b.jsxs)("div",{className:"flex items-start justify-between gap-2 p-1 border-b",children:[(0,b.jsx)("span",{className:"text-xs font-medium pl-1 pt-1",children:"Error Details"}),(0,b.jsx)(f.Button,{variant:"ghost",size:"icon",className:"h-6 w-6 shrink-0",onClick:l,children:i?(0,b.jsx)(c.Check,{className:"h-2.5 w-2.5 text-muted-foreground"}):(0,b.jsx)(d.Copy,{className:"h-2.5 w-2.5 text-muted-foreground"})})]}),(0,b.jsx)("div",{className:"max-h-48 overflow-auto p-2",children:(0,b.jsx)("p",{className:"text-xs whitespace-pre-wrap break-words font-mono",children:k})})]})]})}a.s(["StatusBadge",()=>j])},630135,67659,a=>{"use strict";var b=a.i(622427);let c=(0,b.default)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);a.s(["RotateCw",()=>c],630135);let d=(0,b.default)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);a.s(["XCircle",()=>d],67659)},303872,a=>{"use strict";var b=a.i(857446);a.i(580551);var c=a.i(158004),d=a.i(721578),e=a.i(302260),f=a.i(630135),g=a.i(67659),h=a.i(139377),i=a.i(253220),j=a.i(95811),k=a.i(794851),l=a.i(393557),m=a.i(397494);function n({env:a,runId:b,runStatus:e,events:f,callbacks:g}){let[h,k]=(0,i.useState)(!1),[l,m]=(0,i.useState)(!1),[n,o]=(0,i.useState)(!1),[p,q]=(0,i.useState)(!1),r=(0,i.useMemo)(()=>(0,c.analyzeEvents)(f),[f]).hasPendingSleeps,s=(0,i.useMemo)(()=>(0,c.shouldShowReenqueueButton)(f,e),[f,e]),t=(0,i.useCallback)(async()=>{if(h)return null;try{k(!0);let c=await (0,d.recreateRun)(a,b);return j.toast.success("New run started",{description:`Run ID: ${c}`}),g?.onSuccess?.(),g?.onNavigateToRun?.(c),c}catch(a){return j.toast.error("Failed to re-run",{description:a instanceof Error?a.message:"Unknown error"}),null}finally{k(!1)}},[a,b,h,g]),u=(0,i.useCallback)(async()=>{if(!l)try{m(!0),await (0,d.reenqueueRun)(a,b),j.toast.success("Run re-enqueued",{description:"The workflow orchestration layer has been re-enqueued."}),g?.onSuccess?.()}catch(a){j.toast.error("Failed to re-enqueue",{description:a instanceof Error?a.message:"Unknown error"})}finally{m(!1)}},[a,b,l,g]),v=(0,i.useCallback)(async()=>{if(!n)try{o(!0);let c=await (0,d.wakeUpRun)(a,b);c.stoppedCount>0?j.toast.success("Run woken up",{description:`Interrupted ${c.stoppedCount} pending sleep${c.stoppedCount>1?"s":""} and woke up the run.`}):j.toast.info("No pending sleeps",{description:"There were no pending sleep calls to interrupt."}),g?.onSuccess?.()}catch(a){j.toast.error("Failed to wake up",{description:a instanceof Error?a.message:"Unknown error"})}finally{o(!1)}},[a,b,n,g]),w=(0,i.useCallback)(async()=>{if(!p){if("pending"!==e&&"running"!==e)return void j.toast.error("Cannot cancel",{description:"Only active runs can be cancelled"});try{q(!0),await (0,d.cancelRun)(a,b),j.toast.success("Run cancelled"),g?.onSuccess?.()}catch(a){j.toast.error("Failed to cancel",{description:a instanceof Error?a.message:"Unknown error"})}finally{q(!1)}}},[a,b,e,p,g]);return{rerunning:h,reenqueuing:l,wakingUp:n,cancelling:p,hasPendingSleeps:r,showReenqueueForStuckWorkflow:s,handleReplay:t,handleReenqueue:u,handleWakeUp:v,handleCancel:w}}function o(){return(0,b.jsxs)(b.Fragment,{children:["Interrupt any current calls to ",(0,b.jsx)("code",{children:"sleep"})," and wake up the run."]})}function p({isStuck:a}){return a?(0,b.jsx)(b.Fragment,{children:"This workflow has no active steps or sleep calls, it maybe be stuck. Re-enqueue the workflow orchestration layer to resume execution."}):(0,b.jsx)(b.Fragment,{children:"Re-enqueue the workflow orchestration layer. This is a no-op, unless the workflow got stuck due to an implementation issue in the World. This is useful for debugging custom Worlds."})}function q({env:a,runId:c,runStatus:d,events:i,eventsLoading:j,callbacks:m,stopPropagation:q=!1,showDebugActions:r=!1}){let{rerunning:s,reenqueuing:t,wakingUp:u,cancelling:v,hasPendingSleeps:w,showReenqueueForStuckWorkflow:x,handleReplay:y,handleReenqueue:z,handleWakeUp:A,handleCancel:B}=n({env:a,runId:c,runStatus:d,events:i,callbacks:m}),C="pending"===d||"running"===d,D=!j&&(r||x);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(k.DropdownMenuItem,{onClick:a=>{q&&a.stopPropagation(),y()},disabled:s,children:[(0,b.jsx)(f.RotateCw,{className:"h-4 w-4 mr-2"}),s?"Replaying...":"Replay Run"]}),j?(0,b.jsxs)(k.DropdownMenuItem,{disabled:!0,children:[(0,b.jsx)(e.Loader2,{className:"h-4 w-4 mr-2 animate-spin"}),"Wake up"]}):D?(0,b.jsxs)(l.Tooltip,{children:[(0,b.jsx)(l.TooltipTrigger,{asChild:!0,children:(0,b.jsxs)(k.DropdownMenuItem,{onClick:a=>{q&&a.stopPropagation(),z()},disabled:t,children:[(0,b.jsx)(h.Zap,{className:"h-4 w-4 mr-2"}),t?"Re-enqueuing...":"Re-enqueue"]})}),(0,b.jsx)(l.TooltipContent,{side:"left",className:"max-w-xs",children:(0,b.jsx)(p,{isStuck:x&&!r})})]}):(0,b.jsxs)(l.Tooltip,{children:[(0,b.jsx)(l.TooltipTrigger,{asChild:!0,children:(0,b.jsxs)(k.DropdownMenuItem,{onClick:a=>{q&&a.stopPropagation(),A()},disabled:!w||u,children:[(0,b.jsx)(h.Zap,{className:"h-4 w-4 mr-2"}),u?"Waking up...":"Wake up"]})}),(0,b.jsx)(l.TooltipContent,{side:"left",className:"max-w-xs",children:w?(0,b.jsx)(o,{}):(0,b.jsx)(b.Fragment,{children:"No pending sleep calls to interrupt."})})]}),(0,b.jsxs)(k.DropdownMenuItem,{onClick:a=>{q&&a.stopPropagation(),B()},disabled:!C||v,children:[(0,b.jsx)(g.XCircle,{className:"h-4 w-4 mr-2"}),v?"Cancelling...":"Cancel"]})]})}function r({env:a,runId:c,runStatus:d,events:i,eventsLoading:j,loading:k,callbacks:q,onCancelClick:r,onRerunClick:s,showDebugActions:t=!1}){let{reenqueuing:u,wakingUp:v,hasPendingSleeps:w,showReenqueueForStuckWorkflow:x,handleReenqueue:y,handleWakeUp:z}=n({env:a,runId:c,runStatus:d,events:i,callbacks:q}),A="pending"===d||"running"===d,B=k?"Loading run data...":A?"Cannot re-run while workflow is still running":"",C=!k&&!u,D=u?"Re-enqueuing workflow...":k?"Loading run data...":"",E=!k&&!v&&w,F=v?"Waking up workflow...":k?"Loading run data...":w?"":"No pending sleep calls to interrupt",G="completed"===d?"Run has already completed":"failed"===d?"Run has already failed":"cancelled"===d?"Run has already been cancelled":"",H=!j&&(t||x);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(l.Tooltip,{children:[(0,b.jsx)(l.TooltipTrigger,{asChild:!0,children:(0,b.jsx)("span",{children:(0,b.jsxs)(m.Button,{variant:"outline",size:"sm",onClick:s,disabled:!(!k&&!A),children:[(0,b.jsx)(f.RotateCw,{className:"h-4 w-4"}),"Replay"]})})}),(0,b.jsx)(l.TooltipContent,{children:B?(0,b.jsx)("p",{children:B}):(0,b.jsx)("p",{children:"This will start a new copy of the current run using the same deployment, environment, and inputs. It will not affect the current run."})})]}),j?(0,b.jsxs)(m.Button,{variant:"outline",size:"sm",disabled:!0,children:[(0,b.jsx)(e.Loader2,{className:"h-4 w-4 animate-spin"}),"Wake up"]}):H?(0,b.jsxs)(l.Tooltip,{children:[(0,b.jsx)(l.TooltipTrigger,{asChild:!0,children:(0,b.jsx)("span",{children:(0,b.jsxs)(m.Button,{variant:"outline",size:"sm",onClick:y,disabled:!C||u,children:[(0,b.jsx)(h.Zap,{className:"h-4 w-4"}),u?"Re-enqueuing...":"Re-enqueue"]})})}),(0,b.jsx)(l.TooltipContent,{className:"max-w-xs",children:D?(0,b.jsx)("p",{children:D}):(0,b.jsx)("p",{children:(0,b.jsx)(p,{isStuck:x&&!t})})})]}):(0,b.jsxs)(l.Tooltip,{children:[(0,b.jsx)(l.TooltipTrigger,{asChild:!0,children:(0,b.jsx)("span",{children:(0,b.jsxs)(m.Button,{variant:"outline",size:"sm",onClick:z,disabled:!E||v,children:[(0,b.jsx)(h.Zap,{className:"h-4 w-4"}),v?"Waking up...":"Wake up"]})})}),(0,b.jsx)(l.TooltipContent,{className:"max-w-xs",children:F?(0,b.jsx)("p",{children:F}):(0,b.jsx)("p",{children:(0,b.jsx)(o,{})})})]}),(0,b.jsxs)(l.Tooltip,{children:[(0,b.jsx)(l.TooltipTrigger,{asChild:!0,children:(0,b.jsx)("span",{children:(0,b.jsxs)(m.Button,{variant:"outline",size:"sm",onClick:r,disabled:!A,children:[(0,b.jsx)(g.XCircle,{className:"h-4 w-4"}),"Cancel"]})})}),(0,b.jsx)(l.TooltipContent,{children:G?(0,b.jsx)("p",{children:G}):(0,b.jsx)("p",{children:"Cancel the workflow run"})})]})]})}a.s(["RunActionsButtons",()=>r,"RunActionsDropdownItems",()=>q])},433105,a=>{"use strict";var b=a.i(857446),c=a.i(676653);function d({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("animate-pulse rounded-md bg-muted",a),...d})}a.s(["Skeleton",()=>d])},47318,a=>{"use strict";var b=a.i(994425);function c(){return(0,b.useQueryState)("sidebar",b.parseAsString)}function d(){return(0,b.useQueryState)("tab",b.parseAsString.withDefault("runs"))}function e(){return(0,b.useQueryState)("hookId",b.parseAsString)}function f(){return(0,b.useQueryState)("stepId",b.parseAsString)}function g(){return(0,b.useQueryState)("eventId",b.parseAsString)}a.s(["useEventIdState",()=>g,"useHookIdState",()=>e,"useSidebarState",()=>c,"useStepIdState",()=>f,"useTabState",()=>d])}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=_5587a26a._.js.map
|