mastra 1.40.3-alpha.4 → 1.40.3-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/factory/assets/AlertDialog.es-Rg-H7EnF.js +1 -0
- package/dist/factory/assets/BoardConfigPage-Cr6Ra8We.js +1 -0
- package/dist/factory/assets/BoardIntakePage-B54DDLC5.js +1 -0
- package/dist/factory/assets/Breadcrumb.es-CKCI3tup.js +1 -0
- package/dist/factory/assets/ChatHeaderSidebarTrigger-mtBYROhr.js +1 -0
- package/dist/factory/assets/ChatPageLayout-7VdmSwV2.js +1 -0
- package/dist/factory/assets/CompositeRoot-BrygrnvW.js +1 -0
- package/dist/factory/assets/EmptyState-IMGHVwoU-DXFO08zt.js +1 -0
- package/dist/factory/assets/{FactorySkillPage-BUNsjTZP.js → FactorySkillPage-DZTFDW0-.js} +3 -3
- package/dist/factory/assets/Field.es-DHZ-9qma.js +1 -0
- package/dist/factory/assets/GoogleIcon.es-CgZBdPwh.js +1 -0
- package/dist/factory/assets/HrefLink-DkNJBJtp.js +1 -0
- package/dist/factory/assets/IconArrowDown.es-BkL10ZrR.js +1 -0
- package/dist/factory/assets/IconArrowRotateClockwise.es-BcQNYkaq.js +1 -0
- package/dist/factory/assets/IconArrowRotateCounterClockwise.es-mQeFJ69W.js +1 -0
- package/dist/factory/assets/IconArrowSplitUp.es-D-sYhilw.js +1 -0
- package/dist/factory/assets/IconArrowUp.es-7nbeX70P.js +1 -0
- package/dist/factory/assets/IconArrowsRepeatRightLeft.es-BE00UkUQ.js +1 -0
- package/dist/factory/assets/IconBuildings.es-ILVho8A6.js +1 -0
- package/dist/factory/assets/{Txt-5efBsb2p-BN6jrWou.js → IconChevronRightMedium.es-ETbnXMk8.js} +1 -1
- package/dist/factory/assets/IconCircleCheck.es-BgK5o4eD.js +1 -0
- package/dist/factory/assets/IconCircleDashed.es-Da4Pxk5L.js +1 -0
- package/dist/factory/assets/IconClock-CYlMQsMB.css +1 -0
- package/dist/factory/assets/IconClock.es-DlAabv8B.js +1 -0
- package/dist/factory/assets/IconCodeBrackets.es-8VzCVCl1.js +1 -0
- package/dist/factory/assets/IconCodeTree.es-BKZBKmLg.js +1 -0
- package/dist/factory/assets/IconEyeSlash.es-B_evuvX0.js +1 -0
- package/dist/factory/assets/IconFileBend.es-DGHPpbRO.js +1 -0
- package/dist/factory/assets/IconHashtag.es-D30s2VDk.js +1 -0
- package/dist/factory/assets/IconLock.es-ClES7xwW.js +1 -0
- package/dist/factory/assets/IconPlugin1.es-4FCElNKj.js +1 -0
- package/dist/factory/assets/IconTarget.es-vG08S5YA.js +1 -0
- package/dist/factory/assets/Input-BUZ-jnqE.js +1 -0
- package/dist/factory/assets/InputNumber.es-8hO5YQMf.js +1 -0
- package/dist/factory/assets/KnowledgePage-m6BHdsAT.js +13 -0
- package/dist/factory/assets/{MarkdownRenderer-zGEV5K_s-BRxE9LN2.js → MarkdownRenderer-By9XK05q-CxHEaxV5.js} +1 -1
- package/dist/factory/assets/NewBoardPage-D2pH8RRY.js +2 -0
- package/dist/factory/assets/NewPage-Bl0F9okN.js +1 -0
- package/dist/factory/assets/OnboardingPage-9Z7_uGSg.js +1 -0
- package/dist/factory/assets/RadioGroup-BLrZAwSh.js +1 -0
- package/dist/factory/assets/RootGuards-BZ_pfW2K.js +1 -0
- package/dist/factory/assets/RulesPage-BDsBRtuA.js +1 -0
- package/dist/factory/assets/SessionLayout-j-AMOw0I.js +4 -0
- package/dist/factory/assets/SessionPage-BrLtHqni.js +1 -0
- package/dist/factory/assets/SettingsHrefLink-DqxoteN4.js +1 -0
- package/dist/factory/assets/SettingsPage-BquT44s5.js +3 -0
- package/dist/factory/assets/Sidebar-zeEMJHoc-Cp0LKo-n.js +1 -0
- package/dist/factory/assets/SignInPage-H2Vx89yq.js +1 -0
- package/dist/factory/assets/SkillBadges-Cp5_yMjO.js +1 -0
- package/dist/factory/assets/SlackConnectionPage-CIJU7y7i.js +1 -0
- package/dist/factory/assets/{StackedDiffs-aOCmUt0S.js → StackedDiffs-MIb1__wk.js} +1 -1
- package/dist/factory/assets/TabsRoot-DcVywXPZ.js +1 -0
- package/dist/factory/assets/boardViews-Dd2NN2MG.js +1 -0
- package/dist/factory/assets/buttons-group-DA_wORqQ-pL6Cywsn.js +1 -0
- package/dist/factory/assets/code-block-somfQ1kL-D3qgRcOy.js +4 -0
- package/dist/factory/assets/code-editor-BLzt8hly-D15pz_na.js +1 -0
- package/dist/factory/assets/copy-button-C3L1ZoAD-GwioHrvT.js +1 -0
- package/dist/factory/assets/createLucideIcon-CfDI1zbj.js +1 -0
- package/dist/factory/assets/done-sound.es-Nxwz9QoV.js +1 -0
- package/dist/factory/assets/esm-DjkVODAY.js +3 -0
- package/dist/factory/assets/highlight-B5yoRWjq-BF8vnsDR.js +3 -0
- package/dist/factory/assets/index-CVDL7ZJz.css +1 -0
- package/dist/factory/assets/index-Uu3iQVaN.js +131 -0
- package/dist/factory/assets/index.module-BcNBcKix.js +1 -0
- package/dist/factory/assets/input-DqReKX0A-Di5bISel.js +3 -0
- package/dist/factory/assets/input-group-BXqgO3Q2-De5e_WR9.js +1 -0
- package/dist/factory/assets/integration-icon-CGw0bkxw-D7TAlIER.js +1 -0
- package/dist/factory/assets/{onboardingFlow-CDUoL8NA.js → onboardingFlow-Dm4xmmUV.js} +1 -1
- package/dist/factory/assets/popup-anchor.es-BZFuBiYF.js +1 -0
- package/dist/factory/assets/provider-credential-DVI65Be5.js +1 -0
- package/dist/factory/assets/relative-time.es-DiIHgsBj.js +1 -0
- package/dist/factory/assets/relativeTime-BMyrWP76.js +1 -0
- package/dist/factory/assets/remarkKnowledgeLinks.es-BLDvlSql.js +1 -0
- package/dist/factory/assets/settingsSections-rQ9VqtBb.js +1 -0
- package/dist/factory/assets/use-clock.es-mOw2EjvR.js +1 -0
- package/dist/factory/assets/use-isomorphic-layout-effect.es-CUPTGBzE.js +1 -0
- package/dist/factory/assets/use-measured-auto-height.es-B0NttlKW.js +1 -0
- package/dist/factory/assets/use-providers-xnyC8ePn.js +1 -0
- package/dist/factory/assets/use-voice-settings-DnxgzyCW.js +1 -0
- package/dist/factory/assets/useBoardConfigRoute-DPjCgrHQ.js +1 -0
- package/dist/factory/assets/useDocumentVisible-CKIVJiwq.js +1 -0
- package/dist/factory/assets/useDraftModelGuards-BT8ATU-l.js +29 -0
- package/dist/factory/assets/useFactories-BSnLX5pf.js +85 -0
- package/dist/factory/assets/useGlobalSearchControls-DALH9Rx1.js +1 -0
- package/dist/factory/assets/useLinearData-C2hbv473.js +1 -0
- package/dist/factory/assets/useRouteSessionId-B19eYDwZ.js +1 -0
- package/dist/factory/assets/useSessionCard-Bwu6ADRJ.js +1 -0
- package/dist/factory/assets/useSessionRepository-yC1buCos.js +1 -0
- package/dist/factory/assets/useSessionRows-DqWZeKoh.js +1 -0
- package/dist/factory/assets/useThreadWorkspacePath-DMOuMkkk.js +1 -0
- package/dist/factory/assets/workspaces-CVrdhM16.js +2 -0
- package/dist/factory/index.html +47 -49
- package/dist/index.js +1 -1
- package/dist/studio/assets/{index-RZimjWoN.js → index-CCRo4nfX.js} +2 -2
- package/dist/studio/assets/{main-D2k1Lgv0.js → main-D6h21Ff2.js} +281 -281
- package/dist/studio/assets/style-DRIWMskI.css +2 -0
- package/dist/studio/index.html +2 -2
- package/package.json +4 -4
- package/dist/factory/assets/AlertDialog.es-BIs8pbN8.js +0 -1
- package/dist/factory/assets/BoardConfigPage-ChTmD-vN.js +0 -1
- package/dist/factory/assets/BoardIntakePage-CDKtJLV4.js +0 -1
- package/dist/factory/assets/Breadcrumb.es-DXVGX5mZ.js +0 -1
- package/dist/factory/assets/ChatHeaderSidebarTrigger-Dn3j2ZQr.js +0 -1
- package/dist/factory/assets/CompositeRoot-BwQ-6roq.js +0 -1
- package/dist/factory/assets/EmptyState-IMGHVwoU-qHL_pIuP.js +0 -1
- package/dist/factory/assets/Field.es-CB1lcxIL.js +0 -1
- package/dist/factory/assets/GoogleIcon.es-BE2JxjRS.js +0 -1
- package/dist/factory/assets/IconArrowDown.es-Bc_IqLrT.js +0 -1
- package/dist/factory/assets/IconArrowRotateClockwise.es-LPdiZ78-.js +0 -1
- package/dist/factory/assets/IconArrowRotateCounterClockwise.es-B0i0T1UQ.js +0 -1
- package/dist/factory/assets/IconArrowSplitUp.es-BHHAKnih.js +0 -1
- package/dist/factory/assets/IconArrowUp.es-BBl49WyB.js +0 -1
- package/dist/factory/assets/IconArrowsRepeatRightLeft.es-Cumnx1DY.js +0 -1
- package/dist/factory/assets/IconBuildings.es-D-WiEbmf.js +0 -1
- package/dist/factory/assets/IconCircleCheck.es-CeTm1PsV.js +0 -1
- package/dist/factory/assets/IconCircleDashed.es-erYnuFEs.js +0 -1
- package/dist/factory/assets/IconClipboard2.es-BY9wy8v_.js +0 -1
- package/dist/factory/assets/IconCodeBrackets.es-DT8cmfmF.js +0 -1
- package/dist/factory/assets/IconCodeTree.es-D2_q4OxH.js +0 -1
- package/dist/factory/assets/IconEyeSlash.es-Cfxk1T8b.js +0 -1
- package/dist/factory/assets/IconFileBend.es-BvebL9hY.js +0 -1
- package/dist/factory/assets/IconHashtag.es-DPM_pIw3.js +0 -1
- package/dist/factory/assets/IconLock.es-BbsrWsxq.js +0 -1
- package/dist/factory/assets/IconPlugin1.es-C8Nw8V96.js +0 -1
- package/dist/factory/assets/IconScript.es-DGZpZQKN.js +0 -1
- package/dist/factory/assets/IconTarget.es-FtUSnbEu.js +0 -1
- package/dist/factory/assets/Input-3JowAxUa.js +0 -1
- package/dist/factory/assets/InputNumber.es-B7bxhFki.js +0 -1
- package/dist/factory/assets/KnowledgePage-vES9bxJ-.js +0 -13
- package/dist/factory/assets/NewBoardPage-b3uIzHxT.js +0 -2
- package/dist/factory/assets/NewPage-BiUfv2E6.js +0 -1
- package/dist/factory/assets/OnboardingPage-DVQjLe5x.js +0 -1
- package/dist/factory/assets/RootGuards-DlAPLtyA.js +0 -1
- package/dist/factory/assets/RulesPage-DD2Y85bl.js +0 -1
- package/dist/factory/assets/SessionLayout-Bc2vMaEk.js +0 -4
- package/dist/factory/assets/SessionPage-j9TNFeJ-.js +0 -1
- package/dist/factory/assets/SettingsHrefLink-CFI6ewKs.js +0 -1
- package/dist/factory/assets/SettingsPage-Bd57CotZ.js +0 -3
- package/dist/factory/assets/Sidebar-zeEMJHoc-CXkAjZMj.js +0 -1
- package/dist/factory/assets/SignInPage-MAn3r-fV.js +0 -1
- package/dist/factory/assets/SkillBadges-T_vfe-Ea.js +0 -1
- package/dist/factory/assets/SlackConnectionPage-D9nw-Hqw.js +0 -1
- package/dist/factory/assets/TabsRoot-9BlIPIxq.js +0 -1
- package/dist/factory/assets/actors-B1kUHGKl.js +0 -1
- package/dist/factory/assets/boardViews-BBGAzP0e.js +0 -1
- package/dist/factory/assets/buttons-group-DA_wORqQ-CMCCZ2IB.js +0 -1
- package/dist/factory/assets/code-block-ftl_9xy4-D7fhudij.js +0 -4
- package/dist/factory/assets/code-editor-BLzt8hly-v5IywSCd.js +0 -1
- package/dist/factory/assets/copy-button-C3L1ZoAD-C-IH5ayd.js +0 -1
- package/dist/factory/assets/createLucideIcon-GAS45occ.js +0 -1
- package/dist/factory/assets/done-sound.es-Cn5ZBXuP.js +0 -1
- package/dist/factory/assets/esm-avftdO5B.js +0 -3
- package/dist/factory/assets/highlight-B5yoRWjq-CnlmfT1J.js +0 -3
- package/dist/factory/assets/index-DPlrRVWZ.css +0 -1
- package/dist/factory/assets/index-ZjJSm9fd.js +0 -161
- package/dist/factory/assets/index.module-CU6jsT9p.js +0 -1
- package/dist/factory/assets/input-DqReKX0A-CFAZ4-vT.js +0 -3
- package/dist/factory/assets/input-group-BXqgO3Q2-CIPGH95F.js +0 -1
- package/dist/factory/assets/integration-icon-CGw0bkxw--xKTCe36.js +0 -1
- package/dist/factory/assets/provider-credential-CRM2iEXu.js +0 -1
- package/dist/factory/assets/relative-time.es-CVDkgXAH.js +0 -1
- package/dist/factory/assets/relativeTime-BsMJn4PU.js +0 -1
- package/dist/factory/assets/remarkKnowledgeLinks.es-BvKw5Ada.js +0 -1
- package/dist/factory/assets/settingsSections-DhzhOMNs.js +0 -1
- package/dist/factory/assets/use-clock.es-CHQcmGGj.js +0 -1
- package/dist/factory/assets/use-isomorphic-layout-effect.es-DRr3xmXf.js +0 -1
- package/dist/factory/assets/use-measured-auto-height.es-ByrW8k0u.js +0 -1
- package/dist/factory/assets/use-providers-HzQlORAF.js +0 -1
- package/dist/factory/assets/use-voice-settings-DIaNhL7r.js +0 -1
- package/dist/factory/assets/useBoardCatalog-DsMGvDdR.js +0 -1
- package/dist/factory/assets/useBoardConfigRoute-BkVs0jO4.js +0 -1
- package/dist/factory/assets/useDocumentVisible-CZn9Oz0D.js +0 -1
- package/dist/factory/assets/useDraftModelGuards-vrJadkHk.js +0 -29
- package/dist/factory/assets/useFactories-BjGegjnL.js +0 -55
- package/dist/factory/assets/useFactoryDecisions-DOTWNbku.js +0 -1
- package/dist/factory/assets/useGlobalSearchControls-BjFzVJWw.js +0 -1
- package/dist/factory/assets/useInfiniteQuery-CRV63ADO.js +0 -1
- package/dist/factory/assets/useIntakeRoutes-BKFjYHNP.js +0 -1
- package/dist/factory/assets/useLinearData-CkqR0qlA.js +0 -1
- package/dist/factory/assets/useRouteSessionId-CS1QH0dw.js +0 -1
- package/dist/factory/assets/useSessionCard-CitDK4HX.js +0 -1
- package/dist/factory/assets/useSessionRepository-Bcs7aQS-.js +0 -1
- package/dist/factory/assets/useSessionRows-C4DWRCgT.js +0 -1
- package/dist/factory/assets/useThreadWorkspacePath-DwZzecgR.js +0 -1
- package/dist/factory/assets/useWorkItems-E-bb5zXa.js +0 -1
- package/dist/factory/assets/workspaces-6LePgWpq.js +0 -2
- package/dist/studio/assets/style-B5WrZKmU.css +0 -2
- /package/dist/factory/assets/{MarkdownRenderer-zGEV5K_s-C04mQel5.css → MarkdownRenderer-By9XK05q-C04mQel5.css} +0 -0
- /package/dist/factory/assets/{code-block-ftl_9xy4-BQpfUmVC.css → code-block-somfQ1kL-BQpfUmVC.css} +0 -0
package/dist/docs/SKILL.md
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{At as e,Et as t,Ft as n,It as r,Lt as i,Mt as a,Nt as o,Ot as s,Pt as c,Rt as l,jt as u,kt as d,xi as f}from"./useFactories-BSnLX5pf.js";import{D as p,w as m}from"./IconChevronRightMedium.es-ETbnXMk8.js";var h=p();function g(e){return(0,h.jsx)(t,{...e,modal:!0,disablePointerDismissal:!0})}function _({size:e=`sm`,...t}){return(0,h.jsx)(u,{"data-slot":`alert-dialog-content`,size:e,showCloseButton:!1,...t,role:`alertdialog`})}function v({children:t,loading:n,...r}){return(0,h.jsx)(e,{render:(0,h.jsx)(f,{variant:`primary`,size:`md`,loading:n,className:m(i,l.md),children:t}),...r})}g.Trigger=r,g.Content=_,g.Header=c,g.Footer=o,g.Body=s,g.Title=n,g.Description=a,g.Action=v,g.Cancel=d;export{g as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{n as t,t as n}from"./SettingsHrefLink-DqxoteN4.js";import{t as r}from"./AlertDialog.es-Rg-H7EnF.js";import{c as i,l as a,o}from"./TabsRoot-DcVywXPZ.js";import{$i as s,Li as c,Mr as l,Ni as u,Tr as d,Tt as f,Y as p,Zn as m,_i as h,ea as g,ec as _,kr as v,na as y,on as b,ot as x,rc as S,tc as C,wr as ee,wt as w,xi as T}from"./useFactories-BSnLX5pf.js";import{t as E}from"./IconArrowRotateCounterClockwise.es-mQeFJ69W.js";import{S as te,c as ne,y as D}from"./boardViews-Dd2NN2MG.js";import{D as O,O as k,a as re,d as A,n as j,s as M,t as ie,w as N}from"./IconChevronRightMedium.es-ETbnXMk8.js";import{A as ae,B as P,C as F,D as I,F as L,G as oe,H as se,I as R,L as z,M as B,O as V,P as ce,R as le,S as ue,T as de,U as fe,W as pe,_ as me,a as he,b as ge,d as _e,g as ve,h as ye,i as be,j as xe,k as Se,m as Ce,n as we,o as Te,p as Ee,r as De,s as Oe,t as ke,w as Ae,x as je,y as Me,z as Ne}from"./useBoardConfigRoute-DPjCgrHQ.js";import{n as Pe,t as H}from"./IconLock.es-ClES7xwW.js";import{s as Fe}from"./highlight-B5yoRWjq-BF8vnsDR.js";import{b as U,g as Ie,v as Le,x as W,y as Re}from"./useLinearData-C2hbv473.js";import{t as ze}from"./password-manager-autofill.es-Cs1VH0JI.js";import{n as Be,t as Ve}from"./IconArrowSplitUp.es-D-sYhilw.js";import{$r as He,Ar as Ue,Cr as We,Dn as Ge,Dr as Ke,Er as qe,Fr as Je,Gi as Ye,Gr as Xe,Ji as Ze,Jn as Qe,Ki as $e,Kn as et,Mn as tt,Nn as nt,Qr as G,Sr as rt,Tr as it,Un as at,Vn as ot,Wn as st,Xr as ct,Yi as lt,_a as ut,_r as dt,br as ft,dr as pt,ei as mt,er as ht,fr as gt,gr as _t,hr as vt,ia as yt,ii as bt,ir as xt,jn as St,jr as Ct,kr as wt,lr as Tt,ma as K,mr as Et,na as Dt,nr as Ot,pr as kt,qi as At,qn as jt,ra as Mt,ri as Nt,ta as Pt,ti as Ft,ur as It,vr as Lt,wr as Rt,xr as zt,ya as Bt,yr as Vt,zn as Ht,zr as Ut}from"./index-Uu3iQVaN.js";import{t as Wt}from"./IconTarget.es-vG08S5YA.js";import{i as q,t as Gt}from"./EmptyState-IMGHVwoU-DXFO08zt.js";import{a as Kt,n as qt}from"./SkillBadges-Cp5_yMjO.js";import{l as Jt,r as Yt,t as Xt,u as Zt}from"./HrefLink-DkNJBJtp.js";import{Dt as Qt,Et as $t,Tt as en,bn as tn,kn as nn,kt as rn}from"./useSessionRows-DqWZeKoh.js";import{a as an,r as on,t as sn}from"./Field.es-DHZ-9qma.js";import{t as cn}from"./input-DqReKX0A-Di5bISel.js";import{t as ln}from"./code-editor-BLzt8hly-D15pz_na.js";import{a as un,n as dn}from"./input-group-BXqgO3Q2-De5e_WR9.js";import{a as fn,i as pn,n as mn,r as hn,t as gn}from"./InputNumber.es-8hO5YQMf.js";import{n as _n}from"./IconClock.es-DlAabv8B.js";import{a as vn}from"./RadioGroup-BLrZAwSh.js";import{a as yn,c as bn,l as xn}from"./settingsSections-rQ9VqtBb.js";var J=O();function Sn({hold:e,stale:t,error:n,saving:r,onSave:i,onDiscard:a,onReload:o}){return(0,J.jsxs)(`div`,{className:`flex w-full max-w-130 flex-col items-center gap-2`,children:[t&&(0,J.jsx)(w,{variant:`warning`,title:`Someone else changed this board`,action:(0,J.jsx)(w.Button,{onClick:o,children:`Reload`}),className:`w-full bg-card shadow-overlay`,children:(0,J.jsx)(w.Message,{children:`Reload to see their version. Your unsaved changes will be lost.`})}),n&&!t&&(0,J.jsx)(w,{variant:`destructive`,role:`alert`,className:`w-full bg-card shadow-overlay`,children:(0,J.jsxs)(w.Message,{children:[`The board was not saved. `,n]})}),(0,J.jsx)(R,{label:e??`Unsaved changes`,held:e!==void 0,saveLabel:`Save`,saving:r,onSave:i,onDiscard:a})]})}function Cn({boardName:e,open:t,onStay:n,onLeave:i}){return(0,J.jsx)(r,{open:t,onOpenChange:e=>!e&&n(),children:(0,J.jsxs)(r.Content,{children:[(0,J.jsxs)(r.Header,{children:[(0,J.jsxs)(r.Title,{children:[`Discard changes to `,e,`?`]}),(0,J.jsx)(r.Description,{children:`Your unsaved changes to this board will be lost.`})]}),(0,J.jsxs)(r.Footer,{children:[(0,J.jsx)(r.Cancel,{children:`Keep editing`}),(0,J.jsx)(T,{variant:`destructive`,size:`md`,onClick:i,children:`Discard`})]})]})})}var Y=e(k(),1);function wn({boardName:e,resettable:t,deletable:n,busy:i,disabled:o,onReset:s,onDelete:c}){let[l,u]=(0,Y.useState)();return!t&&!n?null:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(a,{children:[(0,J.jsx)(a.Trigger,{variant:`ghost`,size:`icon-sm`,tooltip:`Board actions`,"aria-label":`Board actions`,disabled:o||i,children:i?(0,J.jsx)(S,{size:`sm`}):(0,J.jsx)(le,{})}),(0,J.jsxs)(a.Content,{align:`start`,children:[t&&(0,J.jsxs)(a.Item,{onClick:()=>u(`reset`),children:[(0,J.jsx)(E,{}),`Reset to default`]}),n&&(0,J.jsxs)(a.Item,{variant:`destructive`,onClick:()=>u(`delete`),children:[(0,J.jsx)(te,{}),`Delete board`]})]})]}),(0,J.jsx)(r,{open:l===`reset`,onOpenChange:e=>!e&&u(void 0),children:(0,J.jsxs)(r.Content,{children:[(0,J.jsxs)(r.Header,{children:[(0,J.jsxs)(r.Title,{children:[`Reset `,e,` to default?`]}),(0,J.jsx)(r.Description,{children:`Every change made to this board's name and phases is replaced with Factory's version.`})]}),(0,J.jsxs)(r.Footer,{children:[(0,J.jsx)(r.Cancel,{children:`Cancel`}),(0,J.jsx)(r.Action,{onClick:s,children:`Reset`})]})]})}),(0,J.jsx)(r,{open:l===`delete`,onOpenChange:e=>!e&&u(void 0),children:(0,J.jsxs)(r.Content,{children:[(0,J.jsxs)(r.Header,{children:[(0,J.jsxs)(r.Title,{children:[`Delete `,e,`?`]}),(0,J.jsx)(r.Description,{children:`The board and its phases are removed from this project. A board that still has cards can’t be deleted.`})]}),(0,J.jsxs)(r.Footer,{children:[(0,J.jsx)(r.Cancel,{children:`Cancel`}),(0,J.jsx)(r.Action,{onClick:c,children:`Delete`})]})]})})]})}function Tn({resetError:e,deleteError:t}){return(0,J.jsxs)(J.Fragment,{children:[e!==void 0&&(0,J.jsx)(w,{variant:`destructive`,role:`alert`,children:(0,J.jsxs)(w.Message,{children:[`The board was not reset. `,e]})}),t!==void 0&&(0,J.jsx)(w,{variant:`destructive`,role:`alert`,children:(0,J.jsxs)(w.Message,{children:[`The board was not deleted. `,t]})})]})}var En=`mb-10 flex max-w-2xl flex-col gap-1`;function Dn({name:e,description:n,readOnly:r,manageable:i,editable:a,problems:o,rulesFailed:s,actions:c,errors:l,onChange:u}){return(0,J.jsxs)(`header`,{className:En,children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsx)(j,{as:`h1`,variant:`display`,tone:`ink`,className:`min-w-0`,children:(0,J.jsx)(t,{value:e,label:`Board name`,required:!0,readOnly:r,variant:`display`,tone:`ink`,onChange:e=>u({name:e})})}),i&&(0,J.jsx)(wn,{...c})]}),(n||!r)&&(0,J.jsx)(j,{as:`p`,variant:`body`,tone:`muted`,children:(0,J.jsx)(t,{value:n??``,label:`Board description`,placeholder:`Add a description`,multiline:!0,readOnly:r,variant:`body`,tone:`muted`,className:`w-[calc(100%+--spacing(3))] placeholder:text-subtle-foreground`,onChange:e=>u({description:e||null})})}),(!i||o.length>0||s||l.resetError!==void 0||l.deleteError!==void 0)&&(0,J.jsxs)(`div`,{className:`mt-3 flex flex-col gap-2`,children:[!i&&(0,J.jsx)(w,{variant:`note`,icon:(0,J.jsx)(H,{}),children:(0,J.jsx)(w.Message,{children:a?`Only organization admins can change this board.`:`This board is defined in code, so it can’t be changed here.`})}),o.length>0&&(0,J.jsx)(w,{variant:`warning`,title:`This board has problems`,children:(0,J.jsx)(w.Message,{children:o.join(` `)})}),s&&(0,J.jsx)(w,{variant:`warning`,children:(0,J.jsx)(w.Message,{children:`Rules didn’t load, so the map doesn’t show them.`})}),(0,J.jsx)(Tn,{...l})]})]})}var On=`duration-normal ease-out-custom transition-opacity motion-reduce:transition-none group-data-dragging/flow:opacity-0`,kn=`relative mb-8 flex w-89.5 flex-col gap-1 rounded-2xl px-3.25 pt-2.75 pb-3 max-sm:w-full`;function An({sentence:e,reorderHref:t,linked:n,LinkComponent:r}){return(0,J.jsxs)(`section`,{"data-intake-start":``,"aria-labelledby":`canvas-intake`,className:N(_,kn),children:[(0,J.jsxs)(`div`,{className:`flex min-h-5.5 items-center gap-2`,children:[(0,J.jsx)(Fe,{className:`size-icon-sm shrink-0 text-muted-foreground`,"aria-hidden":!0}),(0,J.jsx)(j,{as:`h2`,id:`canvas-intake`,variant:`card-title-strong`,tone:`ink`,className:`min-w-0 flex-1 truncate`,children:`New issues and pull requests`}),(0,J.jsxs)(r,{href:t,className:N(`flex shrink-0 items-center gap-1 rounded-sm text-caption text-muted-foreground hover:text-foreground`,M),children:[`Reorder`,(0,J.jsx)(Re,{className:`size-icon-xs`,"aria-hidden":!0})]})]}),e!==void 0&&(0,J.jsx)(j,{variant:`caption`,tone:`muted`,className:`pl-6 text-pretty`,children:e}),n&&(0,J.jsx)(B,{className:N(`absolute -bottom-1.25 left-3.75`,On)})]})}function jn({linked:e}){return(0,J.jsx)(`span`,{"aria-hidden":!0,"data-intake-branch":e?``:void 0,className:N(`-mr-1 flex min-w-2.5 flex-1 items-center justify-end max-sm:hidden`,On,!e&&`opacity-0`),children:(0,J.jsx)(B,{})})}function Mn({flow:e}){let[t,n]=(0,Y.useState)();return(0,Y.useLayoutEffect)(()=>{let t=e.current;if(!t)return;let r=()=>{let e=Nn(t);n(t=>t?.join()===e?.join()?t:e)};r();let i=new ResizeObserver(r);i.observe(t);for(let e of t.querySelectorAll(`[data-rules-in]`))i.observe(e);return()=>i.disconnect()}),t?(0,J.jsx)(`svg`,{"aria-hidden":!0,className:N(ae,`pointer-events-none absolute inset-0 size-full overflow-visible`,On),children:t.map(e=>(0,J.jsx)(`path`,{d:e},e))}):null}function Nn(e){let t=e.querySelector(`[data-intake-start] [data-port]`),n=[...e.querySelectorAll(`[data-intake-branch] [data-port]`)].filter(e=>e instanceof HTMLElement);if(!(t instanceof HTMLElement)||n.length===0)return;let r=L(t,e),i=r.left+t.offsetWidth/2,a=r.top+t.offsetHeight,o=n.map(t=>{let n=L(t,e);return{y:n.top+t.offsetHeight/2,to:n.left}}),s=Math.max(...o.map(e=>e.y));return o.map(e=>ce([...e.y===s?[{x:i,y:a}]:[],{x:i,y:e.y},{x:e.to,y:e.y}]))}var Pn=A(`IconArrowDownRight`,()=>(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`path`,{d:`M18 9V18H9`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,J.jsx)(`path`,{d:`M6.25 6.25L17 17`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),3);function Fn({rule:e,stray:t=!1,LinkComponent:n}){let{emphasis:r}=e,i=t?`into a phase this board doesn’t have`:`here`;return(0,J.jsx)(F,{title:void 0,lines:[`“${e.name}” on ${e.boardName} moves cards ${i}.`,...e.conditions,...e.enabled?[]:[`Off, skipped`]],children:(0,J.jsxs)(n,{"data-join":``,"data-dimmed":r===`dimmed`||void 0,href:e.href,"aria-label":e.enabled?e.boardName:`${e.boardName}, off`,className:N(Ae,`border border-border bg-transparent text-body-sm transition-opacity`,e.enabled?`text-foreground`:`text-muted-foreground opacity-50`,r===`dimmed`&&`opacity-35`,r===`selected`&&`ring-foreground ring-2`),children:[(0,J.jsx)(Pn,{className:`size-icon-xs shrink-0`,"aria-hidden":!0}),(0,J.jsx)(`span`,{className:`truncate`,children:e.boardName}),!e.enabled&&(0,J.jsx)(`span`,{className:`shrink-0 text-caption`,children:`Off`})]})})}var In=`hover:bg-fill -mx-1.5 min-w-0 flex-1 rounded-md bg-transparent px-1.5 outline-none`;function Ln({boardId:e,takenKeys:t,linked:n,keyFromName:r,keyProblem:i,onAdd:a,onCancel:o}){let[s,c]=(0,Y.useState)(``),[l,u]=(0,Y.useState)(),d=(0,Y.useRef)(!1),f=l??r(s),p=l===void 0&&s.trim()===``?void 0:i(f,t),m=s.trim()!==``&&p===void 0,h=e=>{d.current||(d.current=!0,e())};return(0,J.jsxs)(`form`,{"aria-label":`New phase`,onKeyDown:e=>{e.nativeEvent.isComposing||(e.key===`Enter`?(e.preventDefault(),m&&h(()=>a({key:f,name:s.trim()},!0))):e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),h(o)))},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||(s.trim()===``?h(o):m&&h(()=>a({key:f,name:s.trim()},!1)))},className:N(_,`relative flex w-75 flex-col gap-1.75 rounded-2xl px-3.25 pt-2.75 pb-3 max-sm:w-full`,`has-focus-visible:[--surface-rim:var(--border-focus)]`),children:[(0,J.jsx)(B,{className:N(Se,`-top-1.25`)}),(0,J.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,J.jsx)(U,{stage:f,kind:W(e,`resting`),decorative:!0}),(0,J.jsx)(`input`,{"aria-label":`New phase name`,value:s,placeholder:`Phase name`,autoFocus:!0,...ze,onChange:e=>c(e.currentTarget.value),className:N(In,`text-card-title-strong text-foreground placeholder:text-muted-foreground`)})]}),(0,J.jsxs)(`label`,{className:`flex min-w-0 items-center gap-2 text-caption text-muted-foreground`,children:[`Key`,(0,J.jsx)(`input`,{"aria-label":`New phase key`,value:f,...ze,onChange:e=>u(e.currentTarget.value),className:N(In,`font-mono text-caption text-foreground`)})]}),p?(0,J.jsx)(`span`,{role:`alert`,className:`text-caption text-destructive-foreground`,children:p}):(0,J.jsx)(`span`,{className:`text-caption text-muted-foreground`,children:`Enter adds it. The key can’t change once added.`}),n&&(0,J.jsx)(B,{className:N(`absolute left-1/2 -translate-x-1/2 max-sm:left-5`,`-bottom-1.25`)})]})}var Rn=`relative flex w-75 flex-col gap-1.75 rounded-2xl px-3.25 pt-2.75 pb-3 max-sm:w-full`;function zn({boardId:e,phase:t,phases:n,next:r,automatic:i,work:a,total:o,href:s,emphasis:c,problem:l,unreached:u,start:d,movable:f,moves:p,LinkComponent:m}){let h=o===void 0?void 0:o.toLocaleString(),g=t.kind===`terminal`,v=c===`selected`,y=(0,Y.useRef)(null);return(0,Y.useEffect)(()=>{v&&y.current?.scrollIntoView({block:`nearest`,behavior:`smooth`})},[v]),(0,J.jsxs)(`article`,{ref:y,"aria-label":t.name,className:N(_,C,`group/node scroll-mt-20 scroll-mb-40`,Rn,`transition-[opacity,box-shadow] duration-normal ease-out-custom motion-reduce:transition-none`,`group-data-dragging/row:shadow-overlay has-focus-visible:[--surface-rim:var(--border-focus)]`,c===`selected`&&`ring-foreground ring-2`,c===`dimmed`&&`opacity-35`,l&&c!==`selected`&&`ring-1 ring-warning-indicator`),children:[(0,J.jsxs)(`div`,{"data-inlet-at":``,className:`flex min-w-0 items-center gap-2`,children:[(0,J.jsx)(U,{stage:t.key,kind:W(e,t.kind),decorative:!0}),(0,J.jsx)(m,{href:s,"aria-current":c===`selected`?`true`:void 0,"aria-description":f?`Alt+Up or Alt+Down moves this phase.`:void 0,className:N(`truncate rounded-sm text-card-title-strong text-foreground`,`after:absolute after:inset-0 after:rounded-2xl`,M),children:t.name}),l&&(0,J.jsx)(z,{className:`size-icon-xs shrink-0 text-warning-indicator`,"aria-label":`This phase has problems`}),!g&&h!==void 0&&(0,J.jsx)(`span`,{className:`ml-auto shrink-0 text-caption text-muted-foreground tabular-nums`,children:h})]}),g&&h!==void 0&&(0,J.jsx)(`span`,{className:`text-caption text-muted-foreground tabular-nums`,children:h}),d&&(0,J.jsx)(`span`,{className:`text-caption text-muted-foreground`,children:`New cards start here`}),(0,J.jsx)(Bn,{kind:t.kind,work:a}),u&&(0,J.jsxs)(`span`,{className:`flex items-center gap-1.5 text-caption text-muted-foreground`,children:[(0,J.jsx)(z,{className:`size-icon-xs shrink-0 text-warning-indicator`,"aria-hidden":!0}),`No rule or move leads here`]}),(r.length>0||p)&&(0,J.jsxs)(`div`,{className:`flex gap-2 border-t border-border pt-2.5`,children:[p?(0,J.jsx)(Hn,{boardId:e,phase:t,phases:n,next:r,shown:c===`selected`,...p}):(0,J.jsx)(Ve,{className:`mt-1.25 size-icon-xs shrink-0 text-muted-foreground`,"aria-hidden":!0}),(0,J.jsx)(`ul`,{"aria-label":`Moves to`,className:`flex min-w-0 flex-wrap gap-1.5`,children:r.map(t=>{let r=n.find(e=>e.key===t);return(0,J.jsxs)(`li`,{className:`flex h-6 min-w-0 items-center gap-1 rounded-lg bg-background px-1.5`,children:[r&&(0,J.jsx)(U,{stage:t,kind:W(e,r.kind),decorative:!0}),(0,J.jsx)(`span`,{className:`truncate text-body-sm text-foreground`,children:r?.name??t}),i.has(t)&&(0,J.jsx)(Ne,{className:`size-icon-xs shrink-0 text-muted-foreground`,"aria-label":`on its own`})]},t)})})]})]})}function Bn({kind:e,work:t}){if(e===`resting`)return(0,J.jsx)(X,{icon:Pe,label:`Waits for someone`});if(e!==`working`||!t)return null;let{goal:n,tools:r}=t;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(X,{icon:Bt,label:t.skill??`No skill`,broken:t.skillProblem!==void 0,detailIcon:t.autoStart?Ne:Pe,detail:t.autoStart?`On its own`:`By hand`}),t.skillProblem&&(0,J.jsxs)(`span`,{className:`flex items-center gap-1.5 text-caption text-destructive-foreground`,children:[(0,J.jsx)(z,{className:`size-icon-xs shrink-0`,"aria-hidden":!0}),t.skillProblem]}),t.exit&&(0,J.jsx)(X,{icon:yt,label:t.exit.id,detail:t.exit.approval}),n&&(0,J.jsx)(X,{icon:Wt,label:`Goal`,detail:n.maxRuns===void 0?void 0:`Pauses after ${n.maxRuns} runs`}),r&&(0,J.jsx)(X,{icon:Ie,label:r})]})}function X({icon:e,label:t,broken:n=!1,detail:r,detailIcon:i}){return(0,J.jsxs)(`div`,{className:`flex min-w-0 items-start gap-1.5`,children:[(0,J.jsx)(e,{className:`mt-0.75 size-icon-xs shrink-0 text-muted-foreground`}),(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-wrap items-center justify-between gap-x-3`,children:[(0,J.jsx)(`span`,{className:N(`min-w-0 truncate text-body-sm`,n?`text-destructive-foreground`:`text-foreground`),children:t}),r&&(0,J.jsxs)(`span`,{className:`flex max-w-full min-w-0 items-center gap-1 text-caption text-muted-foreground`,children:[i&&(0,J.jsx)(i,{className:`size-icon-xs shrink-0`}),(0,J.jsx)(`span`,{className:`line-clamp-2`,children:r})]})]})]})}var Vn=`col-start-1 row-start-1 size-icon-xs duration-normal ease-out-custom transition-opacity motion-reduce:transition-none`;function Hn({boardId:e,phase:t,phases:n,next:r,shown:i,required:o,onChange:s}){let c=e=>s(r.includes(e)?r.filter(t=>t!==e):n.filter(t=>t.key===e||r.includes(t.key)).map(e=>e.key));return(0,J.jsxs)(a,{children:[(0,J.jsx)(a.Trigger,{render:(0,J.jsxs)(`button`,{type:`button`,"aria-label":`Change moves from ${t.name}`,className:N(`group/moves relative z-10 -mx-1.25 grid size-6 shrink-0 place-items-center rounded-full text-muted-foreground hover:bg-fill-hover hover:text-foreground`,`data-popup-open:bg-fill-hover data-popup-open:text-foreground`,M),children:[(0,J.jsx)(Ve,{className:N(Vn,i?`opacity-0`:`group-hover/node:opacity-0 group-focus-visible/moves:opacity-0 group-data-popup-open/moves:opacity-0`)}),(0,J.jsx)(K,{className:N(Vn,!i&&`opacity-0 group-hover/node:opacity-100 group-focus-visible/moves:opacity-100 group-data-popup-open/moves:opacity-100`)})]})}),(0,J.jsxs)(a.Content,{align:`start`,className:`w-56`,children:[(0,J.jsx)(a.Label,{children:`Cards can move to`}),n.filter(e=>e.key!==t.key).map(t=>{let n=r.includes(t.key)&&o.has(t.key);return(0,J.jsxs)(a.CheckboxItem,{checked:r.includes(t.key),disabled:n,onCheckedChange:()=>c(t.key),children:[(0,J.jsx)(U,{stage:t.key,kind:W(e,t.kind),decorative:!0}),(0,J.jsx)(`span`,{className:`truncate`,children:t.name}),n&&(0,J.jsx)(H,{className:`ml-auto size-icon-xs`,"aria-label":`Factory makes this move`})]},t.key)})]})]})}var Un=5,Wn=`border-muted-foreground/35 border-l-2`,Gn=`mr-4 w-89.5 shrink-0 max-sm:mr-0 max-sm:w-full`,Kn=`w-30 shrink-0 max-sm:hidden`,qn=`border-border-strong text-caption text-muted-foreground hover:text-foreground flex items-center gap-1 rounded-full border border-dashed focus-visible:opacity-100`;function Jn(e,t){if(e)return`card`;if(t)return`entry`}function Yn({boardId:e,model:t,totals:n,selectedPhase:r,selectedRule:i,problems:a,rulesEditable:o,edit:s,intake:c,LinkComponent:l}){let u=t.rows.map(e=>e.phase),d=fe(),[f,p]=(0,Y.useState)(),m=e=>t.sessions.find(t=>e>=t.from&&e<=t.to),[h,g]=(0,Y.useState)(``),_=V({min:1,max:u.length-1,onDrop:(e,t)=>{s?.onReorder(e,t),g(`${u[e]?.name} moved to position ${t+1} of ${u.length}.`)}}),v=(0,Y.useRef)(null),{asked:y}=c,b=y&&t.rows.some(e=>e.lines.some(e=>e.opened&&!e.movesCardsOnly)),x=s!==void 0&&f===void 0,S=u.at(-1);return(0,J.jsxs)(`div`,{ref:v,"data-dragging":_.drag?``:void 0,className:`group/flow relative flex flex-col`,children:[(0,J.jsx)(An,{sentence:c.sentence,reorderHref:c.reorderHref,linked:b,LinkComponent:l}),!d&&(0,J.jsx)(Mn,{flow:v}),(0,J.jsx)(`ol`,{"aria-label":`Phases`,className:`flex flex-col`,children:t.rows.map((t,c)=>{let{phase:h}=t,g=m(c),v=u[c-1],S=u[c+1],C=_.drag?.from===c,ee=_.rowMotion(c),w=x&&c>0&&u.length>2,T=S!==void 0||f===c;return(0,J.jsxs)(`li`,{"data-dragging":C||void 0,style:ee.style,onPointerDown:w?e=>_.onPointerDown(e,c):void 0,onKeyDown:w?e=>_.onKeyDown(e,c):void 0,className:N(`group/row relative flex flex-col`,ee.className),children:[v&&(0,J.jsxs)(`div`,{"aria-hidden":!0,className:`flex h-8 gap-4`,children:[(0,J.jsx)(`span`,{className:N(`mr-4 w-89.5 shrink-0 max-sm:mr-0 max-sm:w-full`,`flex items-center justify-end text-caption text-muted-foreground max-sm:order-last max-sm:w-auto`),children:h.kind===`terminal`&&v.kind!==`terminal`&&`Cards are finished here`}),(0,J.jsx)(`span`,{className:`flex w-75 shrink-0 justify-center max-sm:w-10`,children:(0,J.jsx)(`span`,{className:`bg-canvas-link w-px`})}),(0,J.jsx)(`span`,{className:N(`w-30 shrink-0 max-sm:hidden`,g&&g.from<c&&Wn)})]}),(0,J.jsxs)(`div`,{className:`group/phase relative flex gap-4 max-sm:flex-col max-sm:gap-2`,children:[(0,J.jsx)(Zn,{row:t,selectedPhase:r,selectedRule:i,rulesEditable:o,asked:y,linkedFrom:Jn(v,b),LinkComponent:l}),(0,J.jsxs)(`div`,{"data-grip":w?``:void 0,className:`flex flex-col items-center max-sm:items-stretch`,children:[(0,J.jsxs)(`div`,{"data-inlet-card":``,className:`relative`,children:[(v||b)&&(0,J.jsx)(B,{className:N(`absolute left-1/2 -translate-x-1/2 max-sm:left-5`,`-top-1.25`,!v&&`sm:hidden`)}),(0,J.jsx)(zn,{boardId:e,phase:h,phases:u,next:t.next,automatic:t.automatic,work:t.work,total:n.get(h.key),href:t.href,emphasis:t.emphasis,problem:a.has(h.key),unreached:t.unreached,start:t.start,movable:w,moves:s&&{required:s.required(h.key),onChange:e=>s.onMoves(h.key,e)},LinkComponent:l}),T&&(0,J.jsx)(B,{className:N(`absolute left-1/2 -translate-x-1/2 max-sm:left-5`,`-bottom-1.25`)})]}),T&&(0,J.jsxs)(`span`,{className:`group/gap relative flex flex-1 justify-center self-stretch`,children:[(0,J.jsx)(`span`,{className:`bg-canvas-link w-px`}),x&&(0,J.jsx)(`span`,{className:`absolute inset-x-0 top-0 -bottom-8 z-10 flex items-center justify-center max-sm:hidden pointer-coarse:hidden`,children:(0,J.jsx)(Xn,{after:h,onClick:()=>p(c),className:`opacity-0 group-hover/gap:opacity-100`})})]})]}),(0,J.jsx)(`div`,{className:N(Kn,`pl-2.5 text-caption text-muted-foreground`,g&&Wn),children:g?.from===c&&g.label}),!d&&(0,J.jsx)(xe,{})]}),s&&f===c&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{"aria-hidden":!0,className:`flex h-8 gap-4`,children:[(0,J.jsx)(`span`,{className:N(`mr-4 w-89.5 shrink-0 max-sm:mr-0 max-sm:w-full`,`max-sm:hidden`)}),(0,J.jsx)(`span`,{className:`flex w-75 shrink-0 justify-center max-sm:w-10`,children:(0,J.jsx)(`span`,{className:`bg-canvas-link w-px`})}),(0,J.jsx)(`span`,{className:N(`w-30 shrink-0 max-sm:hidden`,S&&g&&g.to>c&&Wn)})]}),(0,J.jsxs)(`div`,{className:`flex gap-4`,children:[(0,J.jsx)(`span`,{className:N(`mr-4 w-89.5 shrink-0 max-sm:mr-0 max-sm:w-full`,`max-sm:hidden`)}),(0,J.jsx)(Ln,{boardId:e,takenKeys:u.map(e=>e.key),linked:S!==void 0,keyFromName:s.keyFromName,keyProblem:s.keyProblem,onAdd:(e,t)=>{p(void 0),s.onAdd(e,c+1,t)},onCancel:()=>p(void 0)}),(0,J.jsx)(`span`,{className:N(`w-30 shrink-0 max-sm:hidden`,S&&g&&g.to>c&&Wn)})]})]})]},h.key)})}),x&&S&&(0,J.jsxs)(`div`,{className:`flex gap-4 pt-3`,children:[(0,J.jsx)(`span`,{className:N(`mr-4 w-89.5 shrink-0 max-sm:mr-0 max-sm:w-full`,`max-sm:hidden`)}),(0,J.jsx)(`span`,{className:`flex w-75 shrink-0 justify-center max-sm:w-auto max-sm:justify-start`,children:(0,J.jsx)(Xn,{after:S,onClick:()=>p(u.length-1),className:`opacity-0 group-hover/flow:opacity-100 pointer-coarse:opacity-100`})})]}),(0,J.jsx)(`span`,{role:`status`,className:`sr-only`,children:h})]})}function Xn({after:e,onClick:t,className:n}){return(0,J.jsxs)(`button`,{type:`button`,"aria-label":`Add a phase after ${e.name}`,onClick:t,className:N(qn,`z-10 h-5 bg-card px-2 transition-opacity group-data-dragging/flow:invisible`,M,n),children:[(0,J.jsx)(K,{className:`size-icon-xs`,"aria-hidden":!0}),`Phase`]})}function Zn({row:e,selectedPhase:t,selectedRule:n,rulesEditable:r,asked:i,linkedFrom:a,LinkComponent:o}){let[s,c]=(0,Y.useState)(!1),l=e.lines.slice(Un),u=s||l.some(e=>e.ruleId===n),d=u?e.lines:e.lines.slice(0,Un),f=t===e.phase.key,p=t=>e.lines.some(e=>e.event===t&&!e.movesCardsOnly);return(0,J.jsxs)(`div`,{"data-rules-in":``,className:N(Gn,`relative flex flex-col items-end gap-1.5 pt-2 pl-7 max-sm:items-start max-sm:pt-0 max-sm:pl-10`),children:[a&&(0,J.jsx)(`span`,{"aria-hidden":!0,className:N(`bg-canvas-link w-px`,`absolute -bottom-2 left-5 -translate-x-1/2 sm:hidden`,a===`entry`?`-top-8`:`top-0`)}),d.map((e,t)=>{let n=e.emphasis,r=d[t-1]?.event!==e.event,a=r&&e.opened;return(0,J.jsxs)(`div`,{className:N(`flex max-w-full min-w-0 flex-wrap items-center justify-end gap-x-2.5 gap-y-1 max-sm:justify-start`,a&&`w-full`),children:[a&&(0,J.jsx)(jn,{linked:i&&p(e.event)}),r&&(0,J.jsx)(I,{trigger:e.trigger,dimmed:n===`dimmed`}),(0,J.jsx)(de,{line:e,LinkComponent:o})]},`${e.event}:${e.ruleId}`)}),l.length>0&&!u&&(0,J.jsxs)(`button`,{type:`button`,"data-join":``,onClick:()=>c(!0),className:N(`h-6.5 rounded-full border border-border px-2.5 text-caption text-muted-foreground hover:text-foreground`,`focus-visible:outline-1 focus-visible:outline-solid focus-visible:outline-border-focus focus-visible:outline-offset-0`),children:[`+`,l.length,` more`]}),e.incoming.map(e=>(0,J.jsx)(Fn,{rule:e,LinkComponent:o},e.ruleId)),r&&(0,J.jsxs)(o,{href:e.newRuleHref,"aria-label":`Add a rule into ${e.phase.name}`,className:N(qn,`h-6.5 px-2.5`,f?`opacity-100`:`opacity-0 group-has-[[data-rules-in]:hover,[data-inlet-card]:hover]/phase:opacity-100 pointer-coarse:opacity-100`,`focus-visible:outline-1 focus-visible:outline-solid focus-visible:outline-border-focus focus-visible:outline-offset-0`),children:[(0,J.jsx)(K,{className:`size-icon-xs`,"aria-hidden":!0}),`Rule`]})]})}var Z=`motion-reduce:before:animate-none`,Qn=3;function $n(){return(0,J.jsxs)(`div`,{"aria-hidden":!0,className:En,children:[(0,J.jsx)(q,{line:`text-display`,className:N(`h-5 w-40`,Z)}),(0,J.jsx)(q,{line:`text-body`,className:N(`w-72 max-w-full`,Z)})]})}function er(){return(0,J.jsxs)(`div`,{role:`status`,"aria-label":`Loading board`,className:`flex flex-col`,children:[(0,J.jsxs)(`div`,{"aria-hidden":!0,className:N(_,kn),children:[(0,J.jsxs)(`div`,{className:`flex min-h-5.5 items-center gap-2`,children:[(0,J.jsx)(Fe,{className:`size-icon-sm shrink-0 text-muted-foreground`}),(0,J.jsx)(q,{line:`text-card-title-strong`,className:N(`w-44`,Z)})]}),(0,J.jsx)(`span`,{className:`pl-6`,children:(0,J.jsx)(q,{line:`text-caption`,className:N(`w-56 max-w-full`,Z)})})]}),(0,J.jsx)(`ol`,{"aria-hidden":!0,className:`flex flex-col`,children:Array.from({length:Qn},(e,t)=>(0,J.jsxs)(`li`,{className:`flex flex-col`,children:[t>0&&(0,J.jsxs)(`div`,{className:`flex h-8 gap-4`,children:[(0,J.jsx)(`span`,{className:N(`mr-4 w-89.5 shrink-0 max-sm:mr-0 max-sm:w-full`,`max-sm:order-last max-sm:w-auto`)}),(0,J.jsx)(`span`,{className:`flex w-75 shrink-0 justify-center max-sm:w-10`,children:(0,J.jsx)(`span`,{className:`bg-canvas-link w-px`})}),(0,J.jsx)(`span`,{className:`w-30 shrink-0 max-sm:hidden`})]}),(0,J.jsxs)(`div`,{className:`flex gap-4 max-sm:flex-col`,children:[(0,J.jsx)(`span`,{className:N(Gn,`max-sm:hidden`)}),(0,J.jsxs)(`div`,{className:N(_,Rn),children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsx)(o,{className:N(`size-4 shrink-0 rounded-full`,Z)}),(0,J.jsx)(q,{line:`text-card-title-strong`,className:N(`w-24`,Z)})]}),(0,J.jsx)(q,{line:`text-body-sm`,className:N(`w-40`,Z)})]}),(0,J.jsx)(`span`,{className:Kn})]})]},t))})]})}function tr({leaving:e,stray:t,strayIncoming:n,LinkComponent:r}){return(0,J.jsxs)(J.Fragment,{children:[e.length>0&&(0,J.jsxs)(`section`,{"aria-labelledby":`canvas-leaving`,className:`flex flex-col gap-4`,children:[(0,J.jsx)(j,{as:`h2`,id:`canvas-leaving`,variant:`body-sm`,tone:`muted`,children:`To other boards`}),(0,J.jsx)(`ul`,{className:`flex flex-col gap-3`,children:e.map(e=>{let{line:t,stage:n}=e,i=t.emphasis===`dimmed`;return(0,J.jsxs)(`li`,{className:`flex flex-wrap items-center gap-2.5`,children:[(0,J.jsx)(I,{trigger:t.trigger,dimmed:i}),(0,J.jsx)(de,{line:t,LinkComponent:r}),(0,J.jsxs)(r,{href:e.href,className:N(`bg-card hover:bg-card active:bg-card shadow-raised [--field:var(--field-on-surface)] [--field-disabled:var(--field-on-surface)] [--field-hover:var(--field-hover-on-surface)] [--field-open:var(--field-open-on-surface)]`,`state-layer`,`flex min-w-36 flex-col gap-0.5 rounded-2xl px-3.25 py-2.5 transition-opacity`,i&&`opacity-35`,`focus-visible:outline-1 focus-visible:outline-solid focus-visible:outline-border-focus focus-visible:outline-offset-0`),children:[(0,J.jsxs)(`span`,{className:`flex items-center gap-2 text-card-title-strong text-foreground`,children:[n&&(0,J.jsx)(U,{stage:n.key,kind:W(n.boardId,n.kind),decorative:!0}),e.phaseName??`A removed phase`]}),(0,J.jsxs)(`span`,{className:`flex items-center gap-1 text-caption text-muted-foreground`,children:[(0,J.jsx)(Re,{className:`size-icon-xs`,"aria-hidden":!0}),e.boardName]})]})]},`${t.event}:${t.ruleId}`)})})]}),t.length+n.length>0&&(0,J.jsxs)(`section`,{"aria-labelledby":`canvas-stray`,className:`flex flex-col gap-4`,children:[(0,J.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,J.jsx)(j,{as:`h2`,id:`canvas-stray`,variant:`body-sm`,tone:`muted`,children:`Into a removed phase`}),(0,J.jsx)(j,{as:`p`,variant:`caption`,tone:`muted`,children:`These rules name a phase this board doesn’t have, so they can’t move cards. Open one to pick another phase.`})]}),(0,J.jsxs)(`ul`,{className:`flex flex-col items-start gap-1.5`,children:[t.map(e=>(0,J.jsxs)(`li`,{className:`flex flex-wrap items-center gap-2.5`,children:[(0,J.jsx)(I,{trigger:e.trigger,dimmed:e.emphasis===`dimmed`}),(0,J.jsx)(de,{line:e,LinkComponent:r})]},`${e.event}:${e.ruleId}`)),n.map(e=>(0,J.jsx)(`li`,{children:(0,J.jsx)(Fn,{rule:e,stray:!0,LinkComponent:r})},e.ruleId))]})]})]})}function Q({icon:e,title:t,children:n}){return(0,J.jsxs)(`section`,{"aria-label":t,className:`group/step grid grid-cols-[var(--spacing-icon-md)_minmax(0,1fr)] gap-x-2 gap-y-2.5 px-1`,children:[(0,J.jsx)(`span`,{"aria-hidden":!0,className:`grid h-4 place-items-center text-foreground [&_svg]:size-3.25`,children:e}),(0,J.jsx)(j,{as:`h3`,variant:`column`,tone:`ink`,className:`font-semibold`,children:t}),(0,J.jsx)(`span`,{"aria-hidden":!0,className:`-mt-1.5 -mb-3 w-px justify-self-center bg-border-strong group-last-of-type/step:hidden`}),(0,J.jsx)(`div`,{className:`col-start-2 flex min-w-0 flex-col gap-2.5`,children:n})]})}function $({label:e,children:t,className:n}){return(0,J.jsxs)(`div`,{className:N(`flex min-h-5 min-w-0 items-center justify-between gap-1.5`,n),children:[(0,J.jsx)(j,{as:`span`,variant:`caption`,tone:`muted`,className:`min-w-0 truncate`,children:e}),t]})}function nr({length:e,max:t}){return(0,J.jsxs)(j,{as:`span`,variant:`caption`,tone:e>t?void 0:`muted`,className:N(`tabular-nums`,e>t&&`text-warning-foreground`),children:[e.toLocaleString(`en-US`),` / `,t]})}function rr({boardTitle:e,boardHref:t,LinkComponent:n}){return(0,J.jsxs)(se,{label:`Phase not found`,children:[(0,J.jsxs)(j,{variant:`body-sm`,tone:`ink`,role:`alert`,children:[e,` has no such phase.`]}),(0,J.jsx)(n,{href:t,className:`text-body-sm text-muted-foreground hover:text-foreground`,children:`Back to the board`})]})}var ir={resting:{label:`Resting`,meaning:`No agent works here. Cards wait for a person or an event to move them.`},working:{label:`Working`,meaning:`An agent works on each card here, following the steps below.`},terminal:{label:`Terminal`,meaning:`Cards are finished here. Their agent sessions stop.`}},ar=[`resting`,`working`,`terminal`];function or({phase:e,boardId:n,total:r,readOnly:a,kindLocked:o,onName:c,onDescription:l,onKind:u,onClose:d}){let f=ir[e.kind],p=e.description??``;return(0,J.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,J.jsxs)(`div`,{className:`flex min-h-7 min-w-0 items-center gap-2 pl-1`,children:[(0,J.jsx)(`span`,{className:`grid size-icon-md shrink-0 place-items-center`,children:(0,J.jsx)(U,{stage:e.key,kind:W(n,e.kind),decorative:!0})}),(0,J.jsx)(j,{as:`h2`,variant:`card-title-strong`,className:`min-w-0 truncate`,children:(0,J.jsx)(t,{value:e.name,label:`Phase name`,required:!0,readOnly:a,variant:`card-title-strong`,tone:`ink`,onChange:c})}),a||o?(0,J.jsxs)(s,{children:[(0,J.jsx)(y,{render:(0,J.jsx)(`span`,{role:`img`,tabIndex:0,"aria-label":`${f.label}. ${o?`${f.meaning} This phase keeps its kind.`:f.meaning}`,className:N(`inline-flex shrink-0 rounded-sm`,M),children:(0,J.jsx)(i,{size:`sm`,icon:o?(0,J.jsx)(H,{}):void 0,children:f.label})})}),(0,J.jsx)(g,{side:`bottom`,className:`max-w-72`,children:o?`${f.meaning} The first phase and phases Factory's code declares keep their kind.`:f.meaning})]}):(0,J.jsxs)(en,{value:e.kind,onValueChange:t=>{let n=ar.find(e=>e===t);n&&n!==e.kind&&u(n)},children:[(0,J.jsx)(rn,{size:`sm`,variant:`ghost`,"aria-label":`Phase kind`,className:`w-auto shrink-0`,children:f.label}),(0,J.jsx)($t,{children:ar.map(e=>(0,J.jsx)(Qt,{value:e,children:(0,J.jsxs)(`span`,{className:`flex max-w-56 flex-col gap-0.5`,children:[(0,J.jsx)(j,{as:`span`,variant:`label`,children:ir[e].label}),(0,J.jsx)(j,{as:`span`,variant:`caption`,tone:`muted`,children:ir[e].meaning})]})},e))})]}),(0,J.jsx)(j,{as:`span`,variant:`caption`,tone:`muted`,className:`ml-auto shrink-0 tabular-nums`,children:r===void 0?null:(0,J.jsxs)(J.Fragment,{children:[r,(0,J.jsxs)(`span`,{className:`sr-only`,children:[` `,r===1?`card`:`cards`]})]})}),(0,J.jsx)(T,{size:`icon-sm`,variant:`ghost`,tooltip:`Close ${e.name}`,onClick:d,children:(0,J.jsx)(b,{})})]}),(p||!a)&&(0,J.jsx)(`div`,{className:`pl-7.5`,children:(0,J.jsx)(t,{value:p,label:`Phase description`,placeholder:`Add a description`,multiline:!0,readOnly:a,variant:`caption`,tone:`muted`,className:`w-full`,onChange:e=>l(e||null)})})]})}var sr=`Factory's code makes this move`;function cr({phase:e,phases:t,next:n,required:r,boardId:i,disabled:a,onChange:o}){let c=t.filter(t=>t.key!==e.key&&n.includes(t.key)),l=e=>o(n.includes(e)?n.filter(t=>t!==e):t.filter(t=>t.key===e||n.includes(t.key)).map(e=>e.key));return(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.25`,children:[c.length===0&&(0,J.jsx)(j,{as:`p`,variant:`caption`,tone:`muted`,children:`Cards stay here; no move is allowed.`}),c.length>0&&(0,J.jsx)(`ul`,{"aria-label":`Allowed moves from ${e.name}`,className:`contents`,children:c.map(e=>{let t=r.includes(e.key),n=(0,J.jsxs)(`span`,{tabIndex:t?0:void 0,className:`inline-flex h-6 max-w-full min-w-0 items-center gap-1.25 rounded-xl bg-fill pr-2 pl-1.5 text-foreground`,children:[(0,J.jsx)(lr,{phase:e,boardId:i}),(0,J.jsx)(j,{as:`span`,variant:`caption`,className:`truncate`,children:e.name}),t&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(H,{"aria-hidden":!0,className:`size-icon-xs shrink-0 text-muted-foreground`}),(0,J.jsx)(`span`,{className:`sr-only`,children:`(locked)`})]})]});return(0,J.jsx)(`li`,{className:`min-w-0`,children:t?(0,J.jsxs)(s,{children:[(0,J.jsx)(y,{render:n}),(0,J.jsx)(g,{children:sr})]}):n},e.key)})}),!a&&(0,J.jsxs)(At,{children:[(0,J.jsx)(lt,{size:`icon-sm`,variant:`ghost`,tooltip:`Change moves from ${e.name}`,children:(0,J.jsx)(K,{})}),(0,J.jsxs)(Ze,{align:`start`,className:`w-72 p-1.5`,children:[(0,J.jsxs)(j,{as:`p`,variant:`caption`,tone:`muted`,className:`px-2 pt-0.5 pb-1.5`,children:[e.name,` can move cards to`]}),(0,J.jsx)(`ul`,{"aria-label":`Moves from ${e.name}`,className:`flex flex-col gap-0.5`,children:t.map(t=>{if(t.key===e.key)return(0,J.jsxs)(`li`,{className:`flex h-7.5 items-center gap-2 px-2`,children:[(0,J.jsx)(lr,{phase:t,boardId:i}),(0,J.jsx)(j,{as:`span`,variant:`body-sm`,tone:`muted`,className:`truncate`,children:t.name}),(0,J.jsx)(j,{as:`span`,variant:`caption`,tone:`muted`,className:`ml-auto shrink-0`,children:`this phase`})]},t.key);let a=n.includes(t.key),o=a&&r.includes(t.key);return(0,J.jsx)(`li`,{children:(0,J.jsxs)(`button`,{type:`button`,"aria-pressed":a,"aria-label":o?`${t.name} (locked)`:void 0,"aria-disabled":o||void 0,title:o?sr:void 0,onClick:o?void 0:()=>l(t.key),className:N(tn,`w-full`,o&&`cursor-default`),children:[(0,J.jsx)(lr,{phase:t,boardId:i}),(0,J.jsx)(j,{as:`span`,variant:`body-sm`,tone:a?`ink`:`muted`,className:`truncate`,children:t.name}),(0,J.jsx)(`span`,{"aria-hidden":!0,className:`ml-auto grid shrink-0 place-items-center text-muted-foreground`,children:o?(0,J.jsx)(H,{className:`size-icon-sm`}):a?(0,J.jsx)(nn,{className:`size-icon-sm`}):(0,J.jsx)(K,{className:`size-icon-sm`})})]})},t.key)})}),(0,J.jsx)(j,{as:`p`,variant:`caption`,tone:`muted`,className:`px-2 pt-1.5`,children:`Waits for the board's Save.`})]})]})]})}function lr({phase:e,boardId:t}){return(0,J.jsx)(U,{stage:e.key,kind:W(t,e.kind),decorative:!0})}function ur({phase:e,phases:t,next:n,info:r,disabled:i,onChange:a}){let o=e.outcomes?.length?e.outcomes:void 0,{defaults:s,problems:c,added:l,exitToolPick:u,max:d}=r,f=e=>t.find(t=>t.key===e)?.name??e;if(n.length===0)return(0,J.jsx)(j,{as:`p`,variant:`caption`,tone:`muted`,children:`Allow a move first; each outcome goes to one of them.`});let p=e.exitTool?.id;if(!o)return(0,J.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,J.jsx)(`ul`,{"aria-label":`${e.name} outcomes`,className:`flex flex-col gap-1`,children:s.map(e=>(0,J.jsx)(`li`,{children:(0,J.jsxs)(j,{as:`span`,variant:`caption`,tone:`muted`,children:[(0,J.jsx)(`code`,{children:e.key}),` moves the card to `,f(e.to)]})},e.key))}),p&&(0,J.jsx)(dr,{exitTool:p,picked:u,phases:t}),(0,J.jsx)(j,{as:`p`,variant:`caption`,tone:`muted`,children:`The agent may report any allowed move by the key of the phase it goes to. Customize them to describe each one, or to offer fewer moves than people have.`}),!i&&(0,J.jsx)(`div`,{children:(0,J.jsx)(T,{size:`sm`,variant:`ghost`,onClick:()=>a(s.slice(0,d)),children:`Customize outcomes`})})]});let m=(e,t)=>a(o.map((n,r)=>r===e?{...n,...t}:n));return(0,J.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,J.jsx)(j,{as:`p`,variant:`caption`,tone:`muted`,children:`The agent reports one by its key when its work is done; the description tells it when, and shows in the card's history.`}),(0,J.jsx)(`ul`,{"aria-label":`${e.name} outcomes`,className:`flex flex-col gap-1.5`,children:o.map((t,r)=>{let s=c[r]??{},l=`outcome ${t.key||r+1}`;return(0,J.jsxs)(`li`,{className:`flex flex-col gap-1.5 rounded-2xl bg-fill-subtle p-2`,children:[(0,J.jsxs)(`div`,{className:`flex items-start gap-1.5`,children:[(0,J.jsxs)(sn,{invalid:!!s.key,disabled:i,className:`min-w-0 flex-1`,children:[(0,J.jsx)(cn,{size:`sm`,"aria-label":`${e.name} outcome ${r+1} key`,value:t.key,placeholder:`Key, e.g. review`,disabled:i,onChange:e=>m(r,{key:e.target.value.trim()})}),s.key&&(0,J.jsx)(on,{children:s.key})]}),(0,J.jsx)(ut,{"aria-hidden":!0,className:`mt-2 size-icon-xs shrink-0 text-muted-foreground`}),(0,J.jsxs)(en,{value:t.to,disabled:i,onValueChange:e=>m(r,{to:String(e)}),children:[(0,J.jsx)(rn,{size:`sm`,"aria-label":`${e.name} ${l} goes to`,className:`w-24 shrink-0`,children:(0,J.jsx)(`span`,{className:`truncate`,children:f(t.to)})}),(0,J.jsx)($t,{children:n.map(e=>(0,J.jsx)(Qt,{value:e,children:f(e)},e))})]}),!i&&(0,J.jsx)(T,{size:`icon-sm`,variant:`ghost`,tooltip:`Remove ${l}`,onClick:()=>{let e=o.filter((e,t)=>t!==r);a(e.length>0?e:null)},children:(0,J.jsx)(te,{})})]}),(0,J.jsxs)(sn,{invalid:!!s.label,disabled:i,children:[(0,J.jsx)(cn,{size:`sm`,"aria-label":`${e.name} outcome ${r+1} label`,value:t.label,placeholder:`Description, e.g. Change request opened`,disabled:i,onChange:e=>m(r,{label:e.target.value})}),s.label&&(0,J.jsx)(on,{children:s.label})]})]},r)})}),p&&(0,J.jsx)(dr,{exitTool:p,picked:u,phases:t}),!i&&(0,J.jsxs)(`div`,{className:`flex flex-wrap gap-1`,children:[l&&o.length<d&&(0,J.jsx)(T,{size:`sm`,variant:`ghost`,icon:(0,J.jsx)(K,{}),onClick:()=>a([...o,l]),children:`Add outcome`}),(0,J.jsx)(T,{size:`sm`,variant:`ghost`,onClick:()=>a(null),children:`Use one per move`})]})]})}function dr({exitTool:e,picked:t,phases:n}){if(!t)return(0,J.jsx)(w,{variant:`warning`,children:(0,J.jsxs)(w.Message,{children:[`When `,(0,J.jsx)(`code`,{children:e}),` succeeds, no outcome is picked, so the card waits for the agent to report one. Key an outcome `,(0,J.jsx)(`code`,{children:`advance`}),` to choose where its success moves the card.`]})});let r=n.find(e=>e.key===t.to)?.name??t.to;return(0,J.jsxs)(j,{as:`p`,variant:`caption`,tone:`muted`,children:[`When `,(0,J.jsx)(`code`,{children:e}),` succeeds, it reports `,(0,J.jsx)(`code`,{children:t.key}),`, moving the card to `,r,`.`]})}var fr=(e,t)=>e.runner?.context||t;function pr({phase:e,phases:t,boardId:n,defaultSession:r,phaseTools:i,disabled:a,onRunner:o,onTools:s,onBack:c}){let l=e.runner?.instructions??``,u=e.runner?.goal,d=u?.objective??``,f=e.tools??[],p=fr(e,r),h=t.filter(t=>t.key!==e.key&&t.kind===`working`&&fr(t,r)===p).map(e=>e.name);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:`flex min-h-7 min-w-0 items-center gap-2`,children:[(0,J.jsx)(T,{size:`icon-sm`,variant:`ghost`,tooltip:`Back to ${e.name}`,onClick:c,children:(0,J.jsx)(m,{})}),(0,J.jsx)(U,{stage:e.key,kind:W(n,e.kind),decorative:!0}),(0,J.jsx)(j,{as:`h2`,variant:`card-title-strong`,className:`min-w-0 truncate`,children:e.name}),(0,J.jsx)(j,{as:`span`,variant:`caption`,tone:`muted`,className:`shrink-0`,children:`Agent runs`})]}),(0,J.jsx)(mr,{title:`Instructions`,label:`${e.name} instructions`,value:l,max:Pt,placeholder:`Added to the agent's prompt when the phase starts.`,disabled:a,onChange:e=>o({instructions:e})}),(0,J.jsx)(mr,{title:`Goal`,label:`${e.name} goal`,value:d,max:Dt,placeholder:`The agent keeps working until a judge finds this met. Leave empty for a single run.`,disabled:a,onChange:e=>o({goal:e.trim()?{...u,objective:e}:void 0}),children:u&&(0,J.jsxs)(sn,{invalid:!Mt(u.maxRuns),disabled:a,children:[(0,J.jsxs)(`div`,{className:`flex items-center justify-between gap-1.5`,children:[(0,J.jsx)(an,{size:`smaller`,info:`After this many runs without meeting the goal, the card waits for a person. From 1 to 50; leave empty for Factory's default.`,children:`Pause goal after`}),(0,J.jsx)(gn,{className:`w-32`,min:1,max:50,allowOutOfRange:!0,value:u.maxRuns??null,disabled:a,onValueChange:e=>{let{maxRuns:t,...n}=u;o({goal:e===null?n:{...n,maxRuns:e}})},children:(0,J.jsxs)(hn,{size:`sm`,children:[(0,J.jsx)(fn,{placeholder:`Default`}),(0,J.jsxs)(dn,{align:`inline-end`,variant:`flush`,children:[(0,J.jsx)(un,{className:`mr-1`,children:`runs`}),(0,J.jsx)(mn,{}),(0,J.jsx)(pn,{})]})]})})]}),!Mt(u.maxRuns)&&(0,J.jsxs)(on,{children:[`Use a whole number from 1 to `,50,`.`]})]})}),(0,J.jsxs)(`div`,{className:`flex flex-col gap-2 px-1`,children:[(0,J.jsx)($,{label:`Session`,children:(0,J.jsx)(cn,{size:`sm`,className:`w-28`,"aria-label":`${e.name} session`,value:e.runner?.context??``,placeholder:r,disabled:a,onChange:e=>o({context:e.target.value})})}),(0,J.jsxs)(j,{as:`p`,variant:`caption`,tone:`muted`,className:`flex items-center gap-1.5`,children:[(0,J.jsx)($e,{"aria-hidden":!0,className:`size-icon-xs shrink-0`}),h.length>0?`Shared with ${h.join(`, `)}, one per card`:`One per card`]})]}),(0,J.jsxs)(`div`,{role:`group`,"aria-label":`Factory tools`,className:`flex flex-col gap-2.5 px-1`,children:[(0,J.jsx)(j,{as:`span`,variant:`caption`,tone:`muted`,children:`Factory tools`}),i.map(t=>(0,J.jsxs)(`div`,{className:`flex items-center justify-between gap-1.5`,children:[(0,J.jsx)(j,{as:`span`,variant:`caption`,children:t.label}),(0,J.jsx)(_n,{"aria-label":`${e.name}: ${t.label}`,checked:f.includes(t.id),disabled:a,onCheckedChange:e=>{let n=i.map(({id:e})=>e).filter(n=>n===t.id?e:f.includes(n));s(n.length>0?n:null)}})]},t.id))]})]})}function mr({title:e,label:t,value:n,max:r,placeholder:i,disabled:a,onChange:o,children:s}){let l=n.length>r;return(0,J.jsxs)(`div`,{className:`flex flex-col gap-2 px-1`,children:[(0,J.jsxs)(sn,{invalid:l,disabled:a,children:[(0,J.jsxs)(`div`,{className:`flex items-center justify-between gap-1.5`,children:[(0,J.jsx)(an,{size:`smaller`,children:e}),(0,J.jsx)(nr,{length:n.length,max:r})]}),(0,J.jsx)(ln,{"aria-label":t,value:n,placeholder:i,editable:!a,onChange:o,language:`markdown`,font:`body`,variant:`inline`,lineNumbers:!1,showCopyButton:!1,className:N(c,u,`rounded-xl px-2 py-1.5`,a&&`bg-field-disabled`),"data-base-ui-swipe-ignore":``}),l&&(0,J.jsx)(on,{children:`Too long to save.`})]}),s]})}var hr=`__none__`;function gr({phaseName:e,skillName:t,skills:n,skillsEditable:r,skillHref:a,skillsHref:o,newSkillHref:s,badges:c,disabled:l,LinkComponent:u,onChange:d}){let p=t?n?.find(e=>e.name===t):void 0,m=t!==void 0&&n!==void 0&&p===void 0,h=(n??[]).map(e=>e.name);t&&!h.includes(t)&&h.push(t);let g=[{value:hr,label:`No skill`},...h.map(e=>({value:e,label:e}))],_=p!==void 0&&c.length>0;return(0,J.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,J.jsx)($,{label:`Skill`,children:(0,J.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1`,children:[(0,J.jsx)(Be,{options:g,value:t??hr,variant:`ghost`,size:`sm`,align:`end`,searchPlaceholder:`Search skills`,emptyText:`No skill matches`,"aria-label":`${e} skill`,disabled:l,className:`min-w-0`,onValueChange:e=>d(e===hr||e===``?void 0:e)}),p&&(0,J.jsx)(T,{size:`icon-sm`,variant:`ghost`,tooltip:`${r?`Edit`:`View`} ${p.name}`,render:(0,J.jsx)(u,{href:a}),children:r?(0,J.jsx)(vn,{}):(0,J.jsx)(f,{})})]})}),(m||p?.error||_)&&(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1`,children:[m&&(0,J.jsx)(i,{variant:`destructive`,size:`sm`,children:`Not found`}),p?.error&&(0,J.jsx)(i,{variant:`destructive`,size:`sm`,children:`Failed to load`}),p&&c.map(e=>(0,J.jsx)(i,{children:e},e))]}),(0,J.jsx)(_r,{skill:p,missing:m,skillName:t,phaseName:e}),(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1`,children:[(0,J.jsx)(T,{size:`sm`,variant:`ghost`,render:(0,J.jsx)(u,{href:o}),children:`All skills`}),r&&(0,J.jsx)(T,{size:`sm`,variant:`ghost`,icon:(0,J.jsx)(K,{}),render:(0,J.jsx)(u,{href:s}),children:`New skill`})]})]})}function _r({skill:e,missing:t,skillName:n,phaseName:r}){return e?.error?(0,J.jsxs)(j,{as:`p`,variant:`caption`,role:`alert`,className:`text-destructive-foreground`,children:[`Agents can't load this skill: `,e.error]}):t?(0,J.jsxs)(j,{as:`p`,variant:`caption`,role:`alert`,className:`text-destructive-foreground`,children:[`This factory has no `,n,` skill, so cards entering `,r,` fail to start.`]}):e?.description?(0,J.jsx)(j,{as:`p`,variant:`caption`,tone:`muted`,className:`line-clamp-2`,children:e.description}):null}function vr({phase:e,phases:t,nextPhases:n,requiredNextPhases:r,kindLocked:i,skills:a,skillsEditable:o,skillHref:s,skillsHref:c,newSkillHref:l,skillBadges:u,outcomes:d,defaultSession:f,phaseTools:p,boardId:m,disabled:h,total:g,autoStartConditions:_,autoStartProblem:v,autoApproveConditions:y,autoApproveProblem:b,LinkComponent:x,onName:S,onDescription:C,onKind:ee,onAutoStart:w,onRunner:E,onTools:ne,onExitTool:D,onAutoApprove:O,onNextPhases:k,onOutcomes:A,onUnfinished:M,onRemove:N,onClose:ae}){let[P,F]=(0,Y.useState)(!1),I=e.kind===`working`,L=e.exitTool?.id??``,oe=e.runner?.instructions??``,R=e.runner?.goal;if(I&&P)return(0,J.jsx)(se,{label:`${e.name} agent runs`,children:(0,J.jsx)(pr,{phase:e,phases:t,boardId:m,defaultSession:f,phaseTools:p,disabled:h,onRunner:E,onTools:ne,onBack:()=>F(!1)})});let z=[oe.length>1e3&&(0,J.jsx)($,{label:`Instructions`,children:(0,J.jsx)(nr,{length:oe.length,max:1e3})},`instructions`),(R?.objective.length??0)>2e3&&(0,J.jsx)($,{label:`Goal`,children:(0,J.jsx)(nr,{length:R?.objective.length??0,max:2e3})},`goal`),!Mt(R?.maxRuns)&&(0,J.jsx)($,{label:`Pause goal after`,children:(0,J.jsxs)(j,{as:`span`,variant:`caption`,className:`text-warning-foreground`,children:[R?.maxRuns,` runs`]})},`runs`)].filter(Boolean);return(0,J.jsxs)(se,{label:e.name,children:[(0,J.jsx)(or,{phase:e,boardId:m,total:g,readOnly:h,kindLocked:i,onName:S,onDescription:C,onKind:e=>{M(`autoStartWhen`,!1),M(`autoApproveWhen`,!1),ee(e)},onClose:ae}),I&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(Q,{icon:(0,J.jsx)(Le,{}),title:`Starts`,children:[(0,J.jsx)($,{label:`Start on its own`,children:(0,J.jsx)(_n,{"aria-label":`${e.name}: start on its own`,checked:e.autoStart??!1,disabled:h,onCheckedChange:e=>{w(e),e||M(`autoStartWhen`,!1)}})}),e.autoStart&&(0,J.jsx)(yr,{rule:e.autoStartWhen,problem:v,disabled:h,children:_},`${e.key}.autoStartWhen`)]}),(0,J.jsxs)(Q,{icon:(0,J.jsx)(Bt,{}),title:`Agent runs`,children:[(0,J.jsx)(gr,{phaseName:e.name,skillName:e.runner?.skill,skills:a,skillsEditable:o,skillHref:s,skillsHref:c,newSkillHref:l,badges:u,disabled:h,LinkComponent:x,onChange:e=>E({skill:e})}),(0,J.jsxs)(`button`,{type:`button`,onClick:()=>F(!0),className:`flex min-h-6 items-center justify-between gap-1.5 text-left text-muted-foreground hover:text-foreground`,children:[(0,J.jsx)(j,{as:`span`,variant:`caption`,children:`Instructions, goal, session, tools`}),z.length>0&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(re,{"aria-hidden":!0,className:`ml-auto size-icon-xs text-warning-foreground`}),(0,J.jsx)(`span`,{className:`sr-only`,children:`(can't save)`})]}),(0,J.jsx)(ie,{"aria-hidden":!0,className:`size-icon-xs shrink-0`})]}),z]}),(0,J.jsxs)(Q,{icon:(0,J.jsx)(yt,{}),title:`Ends`,children:[(0,J.jsx)($,{label:`Exit tool`,children:(0,J.jsx)(cn,{size:`sm`,className:`w-32`,"aria-label":`${e.name} exit tool`,value:L,placeholder:`None`,disabled:h,onChange:e=>{let t=e.target.value.trim();D(t),t||M(`autoApproveWhen`,!1)}})}),L!==``&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)($,{label:`Approve on its own`,children:(0,J.jsx)(_n,{"aria-label":`${e.name}: approve ${L} on its own`,checked:e.exitTool?.autoApprove??!1,disabled:h,onCheckedChange:e=>{O(e),e||M(`autoApproveWhen`,!1)}})}),e.exitTool?.autoApprove&&(0,J.jsx)(yr,{rule:e.exitTool.autoApproveWhen,problem:b,disabled:h,children:y},`${e.key}.autoApproveWhen`)]})]})]}),(0,J.jsx)(Q,{icon:(0,J.jsx)(Ye,{}),title:`Allowed moves`,children:(0,J.jsx)(cr,{phase:e,phases:t,next:n,required:r,boardId:m,disabled:h,onChange:k})}),I&&(0,J.jsx)(Q,{icon:(0,J.jsx)(Wt,{}),title:`Outcomes`,children:(0,J.jsx)(ur,{phase:e,phases:t,next:n,info:d,disabled:h,onChange:A})}),N&&(0,J.jsx)(`div`,{children:(0,J.jsxs)(T,{size:`sm`,variant:`ghost`,icon:(0,J.jsx)(te,{}),onClick:N,children:[`Remove `,e.name]})})]})}function yr({rule:e,problem:t,disabled:n,children:r}){return n&&!e?.conditions.length?null:(0,J.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,J.jsx)(j,{as:`span`,variant:`caption`,tone:`muted`,children:`Only when`}),r,t&&(0,J.jsx)(j,{as:`p`,variant:`caption`,role:`alert`,className:`text-destructive-foreground`,children:t})]})}var br=(0,Y.createContext)(void 0);function xr(e,t,n){return`${e}:${t}:${n.revision??`code`}`}function Sr({children:e}){let t=(0,Y.useState)(void 0);return(0,J.jsx)(br.Provider,{value:t,children:e})}function Cr(e,t,n){let r=(0,Y.useContext)(br);if(!r)throw Error(`useBoardDraft must be used inside BoardDraftProvider`);let[i,a]=r,o=st(e,t),s=xr(e,t,n),c=i?.key===s?i:{key:s,draft:dt(n)},l=e=>a(t=>e(t?.key===s?t:{key:s,draft:dt(n)}));return{draft:c.draft,locked:o,setDraft:e=>l(t=>({...t,draft:e(t.draft)})),discard:()=>a(void 0)}}var wr=D(new URLSearchParams,!0);function Tr(e,t){let n=Yt(e),r=Ht(e),i=Oe(e),a=_e(e),o=je(e),s=x(e,Ge({board:t,sort:ne,search:``,filters:wr,windows:{},item:void 0})),c=new Map((o.data?.boards??[]).flatMap(e=>e.rules.map(e=>[e.routeId,e.filed]))),l=new Map((a.data?.skipped??[]).map(e=>[e.routeId,e])),u=new Map((s.data?.phases??[]).map(e=>[e.phase,e.total]));return{boards:n.data??[],installed:n.data?.find(e=>e.id===t),rules:r.data?.intakeRoutes,rulesFailed:r.isError,rulesEditable:r.data?.canEdit??!1,order:i.data,filed:c,skips:l,totals:u}}function Er(e){let[t,n]=(0,Y.useState)({page:e,fields:[]});return t.page!==e&&n({page:e,fields:[]}),{fields:t.page===e?t.fields:[],mark:(t,r)=>n(n=>{let i=(n.page===e?n.fields:[]).filter(e=>e!==t);return{page:e,fields:r?[...i,t]:i}})}}function Dr({factoryId:e,boardId:t,boards:n,onDeleted:r}){let i=l();return{reset:jt(e,t),remove:et(e,t,()=>{r();let a=Zt(n).find(e=>e.id!==t);i(a?Jt(e,a.id):`/factories/${e}`,{replace:!0})})}}function Or({board:e,draft:t,readOnly:n,manageable:r,locked:i,writes:a,rulesFailed:o,onChange:s}){let{reset:c,remove:l}=a;return(0,J.jsx)(Dn,{name:t.name,description:t.description,readOnly:n,manageable:r,editable:e.editable,problems:e.problems,rulesFailed:o,actions:{boardName:e.name,resettable:e.source!==`stored`,deletable:e.source!==`builtin`,busy:c.isPending||l.isPending,disabled:i,onReset:()=>c.mutate(e.revision??0),onDelete:()=>l.mutate(e.revision??0)},errors:{resetError:c.error?.reasons,deleteError:l.error?.reasons},onChange:s})}function kr({phase:e,phases:t,requiredNextPhases:r,kindLocked:i,skills:a,skillsEditable:o,factoryId:s,boardId:c,disabled:l,total:u,unfinished:d,onChange:f,onUnfinished:p,onRemove:m,onClose:h}){let g=he(s),_=e.exitTool?.id??``,v=e.runner?.skill,y=v?a?.find(e=>e.name===v):void 0,b=e.outcomes?.length?e.outcomes:void 0,x=vt(e,t),S=t=>{let n={...e.runner,...t},r=Object.fromEntries(Object.entries(n).filter(([,e])=>e!=null&&e!==``));f({...e,runner:Object.keys(r).length>0?r:null})},C={"source.repository":g};return(0,J.jsx)(vr,{phase:e,phases:t,nextPhases:Rt(e,t),requiredNextPhases:r,kindLocked:i,skills:a,skillsEditable:o,skillHref:v?xn(s,v):void 0,skillsHref:bn(s,`skills`),newSkillHref:yn(s),skillBadges:y?qt(y):[],outcomes:{defaults:x,problems:b?it(b):[],added:b?We(e,t,b):void 0,exitToolPick:Lt(b??x,t),max:20},defaultSession:pt,phaseTools:gt,boardId:c,disabled:l,total:u,autoStartConditions:(0,J.jsx)(be,{label:`Only when`,rule:e.autoStartWhen,facts:Je,options:C,disabled:l,emptyHint:`Leave empty to start every card on its own.`,onChange:(t,n)=>{p(`autoStartWhen`,n),n||f({...e,autoStartWhen:t})}}),autoStartProblem:d.includes(`autoStartWhen`)?void 0:Et(e.autoStartWhen),autoApproveConditions:(0,J.jsx)(be,{label:`Only when`,rule:e.exitTool?.autoApproveWhen,facts:Je,options:C,disabled:l,emptyHint:`Leave empty to approve for every card.`,onChange:(t,n)=>{p(`autoApproveWhen`,n),n||f({...e,exitTool:{...e.exitTool,id:_,autoApprove:!0,autoApproveWhen:t??void 0}})}}),autoApproveProblem:d.includes(`autoApproveWhen`)?void 0:Et(e.exitTool?.autoApproveWhen),LinkComponent:n,onName:t=>f({...e,name:t}),onDescription:t=>f({...e,description:t}),onKind:n=>f(Ue(e,n,t)),onAutoStart:t=>f(wt(e,t)),onRunner:S,onTools:t=>f({...e,tools:t}),onExitTool:t=>f({...e,exitTool:t?{...e.exitTool,id:t}:null}),onAutoApprove:t=>f({...e,exitTool:{...e.exitTool,id:_,autoApprove:t,autoApproveWhen:t?e.exitTool?.autoApproveWhen:void 0}}),onNextPhases:t=>f(Ct(e,t)),onOutcomes:t=>f({...e,outcomes:t}),onUnfinished:p,onRemove:m,onClose:h})}function Ar({factoryId:e,boardId:t,focus:n,phase:r,phasePage:i,phases:a,boardTitle:o,codeBehaviour:s,skills:c,disabled:l,totals:u,onFocus:d,onClose:f,onChange:p,unfinished:m,onUnfinished:h,onRemove:g}){if(n&&`rule`in n)return(0,J.jsx)(De,{factoryId:e,boardId:t,focus:{rule:n.rule},backTo:n.test,onFocus:d,onClose:f},n.rule);if(n&&`newRule`in n){let{on:r,into:i,board:a}=n.newRule;return(0,J.jsx)(De,{factoryId:e,boardId:t,focus:n,onFocus:d,onClose:f},`new:${r??``}:${i??``}:${a??``}`)}if(n){let{test:r}=n;return(0,J.jsx)(we,{factoryId:e,boardId:t,subject:r,onEditRule:e=>d({rule:e,test:r}),onClose:f})}if(r){let n=!l&&kt(a,r.key,s);return(0,J.jsx)(kr,{phase:r,phases:a,requiredNextPhases:s?.[r.key]?.requiredNextPhases??[],kindLocked:zt(a,r.key,s),skills:c?.skills,skillsEditable:c?.canEdit??!1,factoryId:e,boardId:t,disabled:l,total:u.get(r.key),unfinished:m,onChange:p,onUnfinished:h,onRemove:n?()=>g(r.key):void 0,onClose:f},i)}return(0,J.jsx)(rr,{boardTitle:o,boardHref:G(e,t),LinkComponent:Xt})}function jr(e,t,n){let r=Ut(e,n);return r?r.parts.map((e,t)=>t===0?e:`${r.join} ${e.charAt(0).toLowerCase()}${e.slice(1)}`):[t]}function Mr(e,t,n,r,i){return{ruleId:e.rule.id,name:e.rule.name,enabled:e.rule.enabled,event:e.event,trigger:xt(e.event),opened:Ot(e.event),rank:e.rank,of:e.of,label:e.label,conditions:jr(e.rule.when,ht(e.event),nt(i)),filed:e.filed,skipsOutsiders:e.skipsOutsiders,movesCardsOnly:e.movesCardsOnly,notes:Me(e),place:r.note(e),href:t,emphasis:n,onPeek:t=>r.onPeek(t?e.event:void 0)}}function Nr(e,t,n,r){let i=t.find(t=>t.id===e.target.boardKey);return{ruleId:e.id,name:e.name,enabled:e.enabled,conditions:jr(e.when,`Every card`,nt(i)),boardName:i?St(i):e.target.boardKey,href:n,emphasis:r}}function Pr({factoryId:e,boardId:t,boards:n,leaving:r,stray:i,strayIncoming:a,emphasis:o,outside:s,lanes:c}){let l=n.find(e=>e.id===t),u=n=>Mr(n,G(e,t,void 0,{rule:n.rule.id}),o(n),c,l),d=r.map(t=>{let r=t.rule.target.moveToBoardKey??t.rule.target.boardKey,i=n.find(e=>e.id===r),a=t.rule.target.phaseKey??i?.initialPhase,o=i?.phases.find(e=>e.id===a);return{line:u(t),href:G(e,r,a??void 0),stage:a&&i?{key:a,boardId:r,kind:o?.kind??`resting`}:void 0,phaseName:tt(i,t.rule.target.phaseKey),boardName:i?St(i):r}});return(0,J.jsx)(tr,{leaving:d,stray:i.map(u),strayIncoming:a.map(t=>Nr(t,n,G(e,t.target.boardKey,void 0,{rule:t.id}),s(t.id))),LinkComponent:Xt})}function Fr(e,t){if(!e||t===void 0)return;let n=t.find(t=>t.name===e);return n?n.error===void 0?void 0:`Skill failed to load`:`Skill not found`}function Ir({factoryId:e,boardId:t,model:n,boards:r,totals:i,emphasis:a,lanes:o,selectedPhase:s,selectedRule:c,problems:l,rulesEditable:u,edit:d,order:f,skills:p}){let m=n.rows.map(e=>e.phase),h=r.find(e=>e.id===t),g={rows:n.rows.map(n=>{let{phase:i}=n;return{phase:i,lines:n.lines.map(n=>Mr(n,G(e,t,void 0,{rule:n.rule.id}),a.line(n,i.key),o,h)),incoming:n.incoming.map(t=>Nr(t,r,G(e,t.target.boardKey,void 0,{rule:t.id}),a.outside(t.id))),unreached:n.unreached,start:n.start,emphasis:a.node(i.key),next:Rt(i,m).filter(e=>e!==i.key),automatic:ve(i,m),work:i.kind===`working`?{skill:i.runner?.skill,skillProblem:Fr(i.runner?.skill,p),autoStart:!!i.autoStart,exit:i.exitTool?{id:i.exitTool.id,approval:Tt(i.exitTool)}:void 0,goal:i.runner?.goal,tools:(i.tools??[]).map(It).join(`, `)}:void 0,href:G(e,t,i.key),newRuleHref:G(e,t,void 0,{newRule:{into:i.key}})}}),sessions:ge(m)};return(0,J.jsx)(Yn,{boardId:t,model:g,totals:i,selectedPhase:s,selectedRule:c,problems:l,rulesEditable:u,edit:d&&{...d,keyFromName:Vt,keyProblem:ft},intake:{sentence:f&&ye(f.boards,f.evaluator,t),reorderHref:He(e,t,{anchor:ct}),asked:f!==void 0&&(f.evaluator===`route-list`||f.boards.some(e=>e.boardKey===t))},LinkComponent:Xt})}function Lr(e,t){if(e.name.trim()===``)return`Name the board to save.`;if(t.length!==0)return`Fix ${t.map(e=>e.name||e.key).join(`, `)} to save.`}function Rr({factoryId:e,boardId:t,phaseKey:n,response:r,onReload:i}){let{board:a,canEdit:o=!1}=r,{draft:s,locked:c,setDraft:u,discard:f}=Cr(e,t,a),m=Tr(e,t),g=Kt(e),[_]=d(),y=Ft(_),b=l(),x=h(),S=Qe(e,t),C=Dr({factoryId:e,boardId:t,boards:m.boards,onDeleted:f}),w=fe(),[T,E]=(0,Y.useState)(0),[te,ne]=(0,Y.useState)(),D=!o||!a.editable,O=D||c,k=n?s.phases.find(e=>e.key===n):void 0,re=s.name||a.name,A=(n,r)=>void b(G(e,t,n,r)),j=k&&`${k.key}:${a.revision??`code`}:${T}:${w?`phone`:`wide`}`,M=Er(j),ie=!D&&(_t(s,a)||M.fields.length>0),N=s.phases.filter(e=>qe(e)||e===k&&M.fields.length>0),ae=Lr(s,N),F=S.error?.code===`revision_mismatch`,I=v(({nextLocation:n})=>{let r=x.getQueryData(p.boardCatalog(e))?.boards.some(e=>e.id===t);if(!ie||r===!1)return!1;let i=mt(n.pathname);return i?.factoryId!==e||i.boardId!==t||i.intake===!0});ee(e=>{ie&&e.preventDefault()});let L=()=>{f(),E(e=>e+1)},se=e=>u(t=>({...t,phases:t.phases.map(t=>t.key===e.key?e:t)})),R=Ee({boardKey:t,phases:s.phases,rules:m.rules,flow:m.installed?.flow,filed:m.filed,skips:m.skips}),z=y&&`rule`in y?y.rule:void 0,B=y?void 0:k?.key,V=y&&`test`in y?y.test:void 0,ce=ue(e,z?void 0:V),le=Ce(R,s.phases,{phase:B,rule:z,test:ce.data&&{boardKey:t,result:ce.data},lane:te}),de=e=>{let n=e.rule.target.moveToBoardKey;if(n&&n!==t){let e=m.boards.find(e=>e.id===n);return e?St(e):n}let r=e.rule.target.phaseKey??s.phases[0]?.key;return s.phases.find(e=>e.key===r)?.name??`a removed phase`},he={note:e=>me(e,R.lines,de),onPeek:ne};return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(P,{label:`${re} settings`,tabs:(0,J.jsx)(Te,{factoryId:e,boardId:t,active:`settings`}),header:(0,J.jsx)(Or,{board:a,draft:s,readOnly:O,manageable:!D,locked:c,writes:C,rulesFailed:m.rulesFailed,onChange:e=>u(t=>({...t,...e}))}),panel:y||n?{content:(0,J.jsx)(Ar,{factoryId:e,boardId:t,focus:y,phase:k,phasePage:j,phases:s.phases,boardTitle:re,codeBehaviour:a.codeBehaviour,skills:g.data,disabled:O,totals:m.totals,onFocus:e=>A(void 0,e),onClose:()=>A(),onChange:se,unfinished:M.fields,onUnfinished:M.mark,onRemove:e=>{u(t=>({...t,phases:Ke(t.phases,e)})),A()}}),onClose:()=>A()}:void 0,bar:(0,J.jsxs)(J.Fragment,{children:[ie&&(0,J.jsx)(Sn,{hold:ae,stale:F,error:S.error?.reasons,saving:S.isPending,onSave:()=>S.mutate({name:s.name,description:s.description,phases:s.phases,expectedRevision:a.revision??0}),onDiscard:L,onReload:i}),(0,J.jsx)(pe,{children:(0,J.jsx)(oe,{defaultValue:V,onTest:e=>A(void 0,{test:e})},V)})]}),children:(0,J.jsxs)(`div`,{className:`flex flex-col gap-14`,children:[(0,J.jsx)(Ir,{factoryId:e,boardId:t,model:R,boards:m.boards,totals:m.totals,emphasis:le,lanes:he,selectedPhase:B,selectedRule:z,problems:new Set(N.map(e=>e.key)),rulesEditable:m.rulesEditable,order:m.order,skills:g.data?.skills,edit:O?void 0:{required:e=>new Set(a.codeBehaviour?.[e]?.requiredNextPhases),onMoves:(e,t)=>u(n=>({...n,phases:n.phases.map(n=>n.key===e?Ct(n,t):n)})),onReorder:(e,t)=>u(n=>({...n,phases:rt(n.phases,e,t)})),onAdd:(e,t,n)=>{u(n=>({...n,phases:[...n.phases.slice(0,t),{...e,kind:`resting`,nextPhases:[]},...n.phases.slice(t)]})),n&&A(e.key)}}}),(0,J.jsx)(Pr,{factoryId:e,boardId:t,boards:m.boards,leaving:R.leaving,stray:R.stray,strayIncoming:R.strayIncoming,emphasis:e=>le.line(e),outside:le.outside,lanes:he})]})}),(0,J.jsx)(Cn,{boardName:a.name,open:I.state===`blocked`,onStay:()=>I.reset?.(),onLeave:()=>{f(),I.proceed?.()}})]})}function zr(){return(0,J.jsx)(Sr,{children:(0,J.jsx)(bt,{variant:`page`,body:`fixed`,children:(0,J.jsx)(Br,{})})})}function Br(){let e=Xe(),t=ke(),n=t?.boardId??``,r=at(e.id,n);return r.isPending?(0,J.jsx)(P,{label:`Board settings`,tabs:(0,J.jsx)(Te,{factoryId:e.id,boardId:n,active:`settings`}),header:(0,J.jsx)($n,{}),children:(0,J.jsx)(er,{})}):r.isError&&r.error instanceof ot&&r.error.code===`board_not_found`?(0,J.jsx)(Vr,{factoryId:e.id,boardId:n,children:(0,J.jsx)(Gt,{variant:`fill`,titleSlot:(0,J.jsx)(`span`,{role:`alert`,children:`Board unavailable: this board is not installed.`})})}):r.isError?(0,J.jsx)(Vr,{factoryId:e.id,boardId:n,children:(0,J.jsx)(Nt,{title:`Couldn’t load this board`,error:r.error,onRetry:()=>void r.refetch(),retrying:r.isFetching})}):(0,J.jsx)(Rr,{factoryId:e.id,boardId:n,phaseKey:t?.phaseKey,response:r.data,onReload:()=>void r.refetch()},`${n}:${r.data.board.revision??`code`}`)}function Vr({factoryId:e,boardId:t,children:n}){return(0,J.jsx)(P,{label:`Board settings`,tabs:(0,J.jsx)(Te,{factoryId:e,boardId:t,active:`settings`}),status:n})}export{zr as BoardConfigPage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{$r as t,Bn as n,Gr as r,Ln as i,Mn as a,Qr as o,Xi as s,Xr as c,Yn as l,Zr as u,dn as d,gn as f,hn as p,ii as m,ir as h,ma as g,nr as _,ti as ee,zn as v}from"./index-Uu3iQVaN.js";import{D as y,O as b,a as x,d as S,n as C,s as w,w as T}from"./IconChevronRightMedium.es-ETbnXMk8.js";import{A as te,B as E,E as ne,G as re,I as ie,N as D,O as ae,V as oe,W as se,c as ce,d as le,f as ue,l as de,n as fe,o as pe,r as O,s as me,t as he,u as k,v as A,x as j,y as M}from"./useBoardConfigRoute-DPjCgrHQ.js";import{$s as N,Ar as P,Mr as F,Qi as I,Tr as L,d as R,ec as z,wt as B,xi as V}from"./useFactories-BSnLX5pf.js";import{t as ge}from"./IconArrowDown.es-BkL10ZrR.js";import{t as _e}from"./IconArrowUp.es-7nbeX70P.js";import{t as H}from"./IconCircleDashed.es-Da4Pxk5L.js";import{b as ve,y as U}from"./useLinearData-C2hbv473.js";import{r as W,t as G}from"./HrefLink-DkNJBJtp.js";import{An as K}from"./useSessionRows-DqWZeKoh.js";import{t as q}from"./integration-icon-CGw0bkxw-D7TAlIER.js";import{c as ye}from"./settingsSections-rQ9VqtBb.js";var J=y();function be({onAdd:e}){return(0,J.jsx)(`li`,{children:(0,J.jsxs)(`button`,{type:`button`,onClick:e,className:T(`flex h-5.5 items-center gap-1.5 rounded-md pr-1.5 text-foreground hover:bg-fill-hover`,w),children:[(0,J.jsx)(g,{className:`size-icon-xs`,"aria-hidden":!0}),(0,J.jsx)(C,{as:`span`,variant:`caption`,children:`Rule`})]})})}function xe({stats:e}){return(0,J.jsxs)(`li`,{className:`flex h-5.5 items-center justify-between gap-1.5`,children:[(0,J.jsxs)(C,{as:`span`,variant:`caption`,tone:`muted`,children:[`Last `,e.sampled,` items`]}),(0,J.jsxs)(C,{as:`span`,variant:`caption`,tone:`muted`,children:[e.takes===0?`None land here`:`${e.takes} land here`,`,`,` `,e.lost===0?`none lost to earlier boards`:`${e.lost} lost to earlier boards`]})]})}function Se({boards:e,movable:t,onMove:n,renderBoard:r}){let i=ae({min:0,max:e.length-1,onDrop:n});return(0,J.jsx)(`ol`,{"aria-label":`Boards in intake order`,className:`flex flex-col`,children:e.map((e,n)=>{let a=i.rowMotion(n);return(0,J.jsxs)(`li`,{style:a.style,onPointerDown:t?e=>i.onPointerDown(e,n):void 0,onKeyDown:t?e=>i.onKeyDown(e,n):void 0,className:T(`relative flex flex-col`,a.className),children:[n>0&&(0,J.jsx)(D,{}),r(e,{index:n,dragging:i.drag?.from===n})]},e)})})}function Ce({order:e,changed:t}){let{compared:n,differing:r,notRouted:i}=e.comparison,a=[];if(e.origin===`derived`&&a.push(`Worked out from the old route list until someone saves an order.`),n>0){let e=i>0?`, ${i} of them Not routed`:``;a.push(r===0?`The last ${n} cards land on the same boards as with the old route list.`:`Of the last ${n} cards, ${r} would land on another board than with the old route list${e}.`)}return e.evaluator===`route-list`&&a.push(`Intake still files cards by the old route list.`),t&&a.push(`Not saved yet. The comparison is for the saved order.`),a.length===0?null:(0,J.jsx)(oe,{className:`-mt-3`,children:(0,J.jsx)(B,{variant:`info`,className:`mt-3`,children:(0,J.jsx)(`span`,{className:`flex flex-col gap-1`,children:a.map(e=>(0,J.jsx)(`span`,{children:e},e))})})})}function we({earlier:e,later:t,onMove:n}){return(0,J.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,J.jsx)(V,{size:`icon-sm`,variant:`ghost`,tooltip:`Check earlier`,disabled:!e,onClick:()=>n(-1),children:(0,J.jsx)(_e,{})}),(0,J.jsx)(V,{size:`icon-sm`,variant:`ghost`,tooltip:`Check later`,disabled:!t,onClick:()=>n(1),children:(0,J.jsx)(ge,{})})]})}function Te({phase:e}){return(0,J.jsxs)(`li`,{className:`flex h-5.5 items-center gap-1.5 rounded-md border border-dashed border-border-strong px-1.5`,children:[(0,J.jsx)(H,{className:`size-icon-xs shrink-0 text-muted-foreground`,"aria-hidden":!0}),(0,J.jsx)(C,{as:`span`,variant:`caption`,tone:`ink`,className:`flex-1`,children:`New rule`}),(0,J.jsx)(C,{as:`span`,variant:`caption`,tone:`muted`,children:e??`Pick a phase`})]})}var Ee=S(`IconChevronTopMedium`,()=>(0,J.jsx)(`path`,{d:`M6 14.5L12 8.5L18 14.5`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})),Y=e(b(),1);function De({id:e,defaultOpen:t,count:n,pending:r,error:i,hasMore:a,loadingMore:o,onLoadMore:s,children:c}){let[l,u]=(0,Y.useState)(t),d=n>0||a;return(0,J.jsxs)(`section`,{id:e,"aria-label":`Not routed`,className:T(z,`flex scroll-mt-4 flex-col gap-1.75 rounded-2xl px-3.25 pt-2.75 pb-3`),children:[(0,J.jsxs)(`header`,{className:`flex min-h-5.5 items-center gap-2`,children:[(0,J.jsx)(H,{className:`size-icon-sm shrink-0 text-muted-foreground`,"aria-hidden":!0}),(0,J.jsx)(C,{as:`h2`,variant:`card-title-strong`,tone:`ink`,children:`Not routed`}),(0,J.jsx)(C,{as:`span`,variant:`caption`,tone:`muted`,className:`min-w-0 flex-1 truncate`,children:Oe({pending:r,error:i,hasMore:a},n)}),d&&(0,J.jsx)(V,{size:`icon-sm`,variant:`ghost`,"aria-expanded":l,tooltip:l?`Hide items not routed`:`Show items not routed`,onClick:()=>u(!l),children:l?(0,J.jsx)(Ee,{}):(0,J.jsx)(I,{})})]}),!d&&!r&&!i&&(0,J.jsx)(C,{as:`p`,variant:`caption`,tone:`muted`,children:`A new issue or pull request ends up here when no board’s rules take it.`}),l&&d&&(0,J.jsxs)(`ul`,{"aria-label":`Items not routed`,className:`flex flex-col`,children:[c,a&&(0,J.jsx)(`li`,{className:`flex justify-center border-t border-border pt-2`,children:(0,J.jsx)(V,{size:`sm`,variant:`ghost`,onClick:s,loading:o,children:`Load more`})})]})]})}function Oe(e,t){return e.pending?`Loading…`:e.error?`Items not routed didn’t load.`:e.hasMore?t>0?`${t}+ waiting`:`More waiting`:t===0?`Every new issue and pull request found a board.`:`${t} waiting`}function ke({item:e,icon:t,source:n,routing:r,onWhy:i,onRouteAgain:a}){return(0,J.jsxs)(`li`,{className:`flex items-center gap-2 border-t border-border py-2`,children:[t,(0,J.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,J.jsx)(C,{as:`span`,variant:`body-sm`,tone:`ink`,className:`truncate`,children:e.url?(0,J.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noreferrer`,className:`hover:underline`,children:e.title}):e.title}),(0,J.jsxs)(C,{as:`span`,variant:`caption`,tone:`muted`,className:`flex min-w-0 gap-1.5`,children:[n&&(0,J.jsx)(`span`,{className:`truncate`,children:n}),(0,J.jsx)(`span`,{className:`truncate`,children:e.reason??`No board’s rules match it.`}),(0,J.jsx)(`time`,{dateTime:e.decidedAt,className:`shrink-0`,children:new Date(e.decidedAt).toLocaleString(void 0,{dateStyle:`medium`,timeStyle:`short`})})]})]}),(0,J.jsx)(V,{size:`sm`,variant:`ghost`,onClick:i,children:`Why?`}),a&&(0,J.jsx)(V,{size:`sm`,variant:`ghost`,tooltip:`Change a board’s rules, then route it again.`,onClick:a,loading:r,children:`Route again`})]})}function Ae({name:e,current:t,dragging:n,header:r,children:i}){return(0,J.jsxs)(`article`,{"aria-label":e,"aria-current":t?`true`:void 0,className:T(`group/card flex flex-col gap-1.75 rounded-2xl px-3.25 pt-2.75 pb-3`,`transition-shadow duration-normal ease-out-custom motion-reduce:transition-none`,n?N:z,t&&`outline -outline-offset-1 outline-foreground`),children:[r,(0,J.jsx)(`hr`,{className:`border-border`}),i]})}function je({name:e,current:t,place:n,grip:r,dragging:i,routingHref:a,rulesHref:o,LinkComponent:c,children:l}){return(0,J.jsxs)(`header`,{className:`flex min-h-5.5 items-center gap-2`,children:[(0,J.jsxs)(`span`,{"data-grip":r?``:void 0,className:T(`relative flex h-4 min-w-4 shrink-0 items-center justify-center`,r&&`cursor-grab touch-none active:cursor-grabbing`),children:[(0,J.jsx)(C,{as:`span`,variant:`meta`,tone:`muted`,className:T(`flex h-4 min-w-4 items-center justify-center rounded-lg bg-background px-1.25 font-semibold tabular-nums`,r&&`group-hover/card:invisible`,i&&`invisible`),children:n}),r&&(0,J.jsx)(s,{"aria-hidden":!0,className:T(`absolute size-icon-xs text-muted-foreground`,i?`visible`:`invisible group-hover/card:visible`)})]}),(0,J.jsx)(Me,{name:e,current:t,href:a,LinkComponent:c}),(0,J.jsx)(`span`,{className:`flex-1`}),l,(0,J.jsxs)(c,{href:o,"aria-label":`All rules on ${e}`,className:T(`flex items-center gap-1 rounded-sm text-caption text-muted-foreground hover:text-foreground`,w),children:[`All rules`,(0,J.jsx)(U,{className:`size-icon-xs`,"aria-hidden":!0})]})]})}function Me({name:e,current:t,href:n,LinkComponent:r}){return t?(0,J.jsx)(C,{as:`h2`,variant:`card-title-strong`,tone:`ink`,className:`min-w-0 truncate`,children:e}):(0,J.jsx)(r,{href:n,className:`min-w-0 truncate hover:underline`,children:(0,J.jsx)(C,{as:`h2`,variant:`card-title-strong`,tone:`ink`,className:`truncate`,children:e})})}function Ne({name:e,lanes:t,last:n,children:r}){return(0,J.jsxs)(`ul`,{"aria-label":`${e} rules for new items`,className:`flex flex-col gap-0.5`,children:[t&&t.map(e=>e.rules.length===0?(0,J.jsxs)(`li`,{className:`flex h-5.5 items-center gap-1.5`,children:[e.icon,(0,J.jsx)(C,{as:`span`,variant:`caption`,tone:`muted`,children:n?`No rules, ends Not routed`:`No rules, goes to the next board`})]},e.event):e.rules),r]})}function Pe({label:e,icon:t,rank:n,skipped:r,stage:i,phase:a,filed:o,notes:s,onOpen:c}){return(0,J.jsxs)(`li`,{className:`flex flex-col`,children:[(0,J.jsxs)(`button`,{type:`button`,onClick:c,className:T(`-mx-1 flex h-5.5 items-center gap-1.5 rounded-md px-1 text-left hover:bg-fill-hover`,w,r&&`opacity-50`),children:[t,n,(0,J.jsx)(C,{as:`span`,variant:`caption`,tone:`ink`,className:`min-w-0 flex-1 truncate`,children:e}),(0,J.jsxs)(`span`,{className:`flex min-w-0 shrink-0 items-center gap-1.25`,children:[i&&(0,J.jsx)(ve,{stage:i.key,kind:i.kind,decorative:!0}),(0,J.jsx)(C,{as:`span`,variant:`caption`,tone:`muted`,className:`truncate`,children:a})]}),(0,J.jsx)(C,{as:`span`,variant:`caption`,tone:`muted`,className:`w-7.5 shrink-0 text-right tabular-nums`,children:o})]}),s.map(e=>(0,J.jsxs)(C,{as:`span`,variant:`caption`,tone:`muted`,className:`flex items-center gap-1.5 pl-4.5`,children:[e.tone===`warning`&&(0,J.jsx)(x,{className:`size-icon-xs shrink-0 text-warning-indicator`,"aria-hidden":!0}),e.text]},e.text))]})}function Fe({total:e,where:t,canEdit:n,moving:r,onMove:i}){let[a,o]=(0,Y.useState)(!1);if(a||e===0)return null;let s=e===1?`1 untouched card now belongs`:`${e} untouched cards now belong`;return(0,J.jsxs)(B,{variant:`info`,title:`Rules changed`,actionPlacement:`end`,action:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(V,{size:`sm`,variant:`ghost`,onClick:()=>o(!0),children:`Not now`}),n&&(0,J.jsx)(V,{size:`sm`,variant:`primary`,onClick:i,loading:r,children:`Move them`})]}),children:[s,` on `,t,`.`]})}function Ie(e,t){let n=(t.x-e.x)/2;return`M${e.x} ${e.y}C${e.x+n} ${e.y} ${t.x-n} ${t.y} ${t.x} ${t.y}`}var X=e=>{let t=e.getBoundingClientRect();return t.top+t.height/2};function Le(){let e=(0,Y.useRef)(null),[t,n]=(0,Y.useState)();return(0,Y.useLayoutEffect)(()=>{let t=e.current,r=t?.parentElement;if(!t||!r)return;let i=()=>{let e=t.getScreenCTM()?.inverse(),i=r.querySelector(`[data-link-order]`),a=i?.querySelector(`header`),o=a?.parentElement;if(!e||!i||!a||!o)return n(void 0);let s=(t,n)=>{let r=new DOMPoint(t,n).matrixTransform(e);return{x:Math.round(r.x),y:Math.round(r.y)}},c=s(0,X(a)).y-s(0,o.getBoundingClientRect().top).y,l=i.getBoundingClientRect(),u=s(l.left,l.top);n({order:{x:u.x,y:u.y+c},sources:[...r.querySelectorAll(`[data-link-source]`)].map(e=>s(e.getBoundingClientRect().right,X(e.firstElementChild??e)))})};i();let a=new ResizeObserver(i);for(let e of r.children)e!==t&&a.observe(e);return()=>a.disconnect()},[]),(0,J.jsxs)(`svg`,{ref:e,"aria-hidden":!0,className:T(te,`pointer-events-none absolute inset-0 size-full overflow-visible max-sm:hidden`),children:[t?.sources.map(e=>(0,J.jsx)(`path`,{d:Ie(e,t.order)},`${e.x},${e.y}`)),t&&[...t.sources,t.order].map(e=>(0,J.jsx)(`circle`,{cx:e.x,cy:e.y,r:4.5,className:`fill-card`},`${e.x},${e.y}`))]})}function Re({lanes:e,routeList:t,intakeHref:n,LinkComponent:r}){return(0,J.jsxs)(`section`,{"aria-label":`Sources`,className:`flex w-63 shrink-0 flex-col gap-3 max-sm:w-full`,children:[(0,J.jsxs)(`div`,{className:`flex h-5 items-center justify-between`,children:[(0,J.jsx)(C,{as:`h2`,variant:`column`,tone:`muted`,children:`Sources`}),(0,J.jsxs)(r,{href:n,className:`flex items-center gap-1 text-muted-foreground hover:text-foreground`,children:[(0,J.jsx)(C,{as:`span`,variant:`caption`,children:`Work Intake`}),(0,J.jsx)(U,{className:`size-icon-xs`,"aria-hidden":!0})]})]}),(0,J.jsx)(`ul`,{className:`flex flex-col gap-3`,children:e.map(e=>(0,J.jsxs)(`li`,{"data-link-source":!0,"aria-label":e.label,className:T(z,`flex h-17 flex-col gap-1.75 rounded-2xl px-3.25 pt-2.75 pb-3`),children:[(0,J.jsxs)(`div`,{className:`flex min-h-5.5 items-center gap-2`,children:[e.icon,(0,J.jsx)(C,{as:`span`,variant:`card-title-strong`,tone:`ink`,className:`flex-1`,children:e.label}),e.filed!==void 0&&(0,J.jsx)(C,{as:`span`,variant:`caption`,tone:`muted`,className:`tabular-nums`,children:e.filed})]}),(0,J.jsxs)(`div`,{className:`flex items-center gap-3`,children:[e.sources.map(e=>(0,J.jsxs)(`span`,{className:`flex items-center gap-1.25`,children:[e.icon,(0,J.jsx)(C,{as:`span`,variant:`caption`,tone:`muted`,children:e.name})]},e.key)),e.sources.length===0&&(0,J.jsx)(C,{as:`span`,variant:`caption`,tone:`muted`,children:`No source connected`})]})]},e.event))}),!t&&(0,J.jsxs)(`div`,{className:`flex flex-col gap-2.5 px-3.25 pt-2`,children:[(0,J.jsx)(C,{as:`p`,variant:`caption`,tone:`muted`,children:`A new issue or pull request is offered to the boards in this order. The first rule that matches keeps it.`}),(0,J.jsx)(C,{as:`p`,variant:`caption`,tone:`muted`,children:`After that, only its board’s card rules apply.`})]})]})}function ze({factoryId:e,onWhy:t}){let n=ce(e),r=de(e),i=W(e),a=P(),o=new Map((i.data??[]).map(e=>[e.id,e.name])),s=n.data?.pages??[],c=s.flatMap(e=>e.notRouted),l=s[0]?.canEdit??!1,d=e=>r.mutate(e.id,{onSuccess:t=>K.success(`Filing “${e.title}” on ${o.get(t.boardKey)??t.boardKey}.`),onError:e=>K.error(e.message)});return(0,J.jsx)(De,{id:u,defaultOpen:a.hash===`#${u}`,count:c.length,pending:n.isPending,error:n.isError,hasMore:n.hasNextPage,loadingMore:n.isFetchingNextPage,onLoadMore:()=>void n.fetchNextPage(),children:c.map(e=>{let{provider:n,source:i}=Be(e.sourceKey);return(0,J.jsx)(ke,{item:e,icon:n&&(0,J.jsx)(q,{provider:n,className:`size-icon-xs`}),source:i,routing:r.isPending&&r.variables===e.id,onWhy:()=>t(e.id),onRouteAgain:l?()=>d(e):void 0},e.id)})})}function Be(e){if(!e)return{};let t=e.indexOf(`:`),n=e.slice(0,t);return t<0||!f(n)?{source:e}:{provider:n,source:e.slice(t+1)}}var Z=l.filter(_);function Q({event:e,className:t}){let{icon:n}=h(e);return(0,J.jsx)(n,{className:T(`text-muted-foreground size-icon-xs shrink-0`,t),"aria-hidden":!0})}function Ve({line:e,board:t,onOpen:n}){let{rule:r}=e,i=r.target.phaseKey??t?.initialPhase;return(0,J.jsx)(Pe,{label:e.label,icon:(0,J.jsx)(Q,{event:e.event}),rank:e.of>1&&(0,J.jsx)(ne,{line:e}),skipped:!r.enabled||e.hiddenBy!==void 0||e.movesCardsOnly,stage:t&&i?{key:i,kind:d(t,i)}:void 0,phase:t?a(t,r.target.phaseKey)??i:r.target.phaseKey,filed:e.filed,notes:M(e),onOpen:()=>n(r.id)})}function $({name:e,lines:t,board:n,last:r,onOpenRule:i,children:a}){let o=t&&Z.map(e=>({event:e,icon:(0,J.jsx)(Q,{event:e}),rules:t.filter(t=>t.event===e).map(t=>(0,J.jsx)(Ve,{line:t,board:n,onOpen:i},`${e}:${t.rule.id}`))}));return(0,J.jsx)(Ne,{name:e,lanes:o,last:r,children:a})}function He({factoryId:e,canEdit:t,boardNames:r}){let a=n(e),o=i(e),s=new Set(a.data?.moves.map(e=>e.toBoard)),[c]=s,l=s.size===1&&c?r.get(c)??c:`other boards`;return(0,J.jsx)(Fe,{total:a.data?.total??0,where:l,canEdit:t,moving:o.isPending,onMove:()=>o.mutate(void 0,{onSuccess:({moved:e,skipped:t})=>{let n=t>0?` ${t} changed meanwhile and stayed.`:``;K.success(`Moved ${e===1?`1 card`:`${e} cards`}.${n}`)},onError:e=>K.error(e.message)})})}function Ue({factoryId:e,boardId:t,focus:n,onFocus:r}){return`newRule`in n?(0,J.jsx)(O,{factoryId:e,boardId:t,focus:n,onFocus:r,onClose:()=>r()},`new`):`rule`in n?(0,J.jsx)(O,{factoryId:e,boardId:t,focus:{rule:n.rule},backTo:n.test,onFocus:r,onClose:()=>r()},n.rule):(0,J.jsx)(fe,{factoryId:e,boardId:t,subject:n.test,onEditRule:e=>r({rule:e,test:n.test}),onClose:()=>r()},n.test)}var We=[`github`,`gitlab`];function Ge({factoryId:e,repositories:t,filed:n,routeList:r}){let i=R(),a=new Set(t.map(e=>e.provider??`github`));for(let t of i.data??[])t.factoryProjectId===e&&f(t.integrationId)&&a.add(t.integrationId);let o=Z.map(e=>({event:e,label:h(e).label,icon:(0,J.jsx)(Q,{event:e,className:`text-foreground size-icon-sm`}),filed:n&&(n.get(e)??0),sources:[...a].filter(t=>e!==`pull_request.opened`||We.includes(t)).map(e=>({key:e,name:p[e],icon:(0,J.jsx)(q,{provider:e,className:`size-icon-xs`})}))}));return(0,J.jsx)(Re,{lanes:o,routeList:r,intakeHref:ye(e,`intake`),LinkComponent:G})}function Ke(e){let t=me(e),n=k(e),[r,i]=(0,Y.useState)(),a=t.data?.boards.map(e=>e.boardKey)??[],o=r&&qe(r,a)?r:void 0,s=o??a,c=(t.data?.canEdit??!1)&&s.length>1;return{query:t,saved:a,shown:s,changed:o!==void 0&&o.some((e,t)=>e!==a[t]),sortable:c,movable:c&&!n.isPending,saving:n.isPending,move:(e,t)=>{let n=[...s],[r]=n.splice(e,1);r!==void 0&&(n.splice(t,0,r),i(n))},save:()=>n.mutate(s,{onSuccess:()=>{i(void 0),K.success(`Intake order saved.`)},onError:e=>K.error(e.message)}),discard:()=>i(void 0)}}function qe(e,t){let n=new Set(t);return e.length===t.length&&e.every(e=>n.has(e))}function Je(e,t){let n=v(e).data?.intakeRoutes,r=j(e).data,i=le(e).data?.skipped,a=r&&new Map(r.boards.flatMap(e=>e.rules.map(e=>[e.routeId,e.filed]))),o=new Map((i??[]).map(e=>[e.routeId,e])),s=n&&new Map(t.map(e=>[e,A(ue(n,e),{filed:a,skips:o}).filter(e=>_(e.event))]));return{lines:s,filedByEvent:a&&Ye(s?.values()??[])}}function Ye(e){let t=new Map;for(let n of e)for(let e of n)t.set(e.event,(t.get(e.event)??0)+(e.filed??0));return t}function Xe({factoryId:e,boardId:n,repositories:r}){let i=F(),[s]=L(),l=ee(s),u=r=>i(t(e,n,{focus:r})),d=Ke(e),f=v(e),p=j(e).data,m=W(e).data??[],{lines:h,filedByEvent:g}=Je(e,d.shown),_=d.query.data,y=f.data?.canEdit??!1,b=new Map(_?.boards.map(e=>[e.boardKey,e.name])),x=Ze(p,n),S=l&&`newRule`in l?l.newRule:void 0,w=S&&(S.board??n),T=l&&`test`in l?l.test:void 0;return(0,J.jsx)(E,{label:`Routing`,tabs:(0,J.jsx)(pe,{factoryId:e,boardId:n,active:`routing`}),panel:l?{content:(0,J.jsx)(Ue,{factoryId:e,boardId:n,focus:l,onFocus:u}),onClose:()=>u()}:void 0,bar:(0,J.jsxs)(J.Fragment,{children:[_?.canEdit&&d.changed&&(0,J.jsx)(ie,{label:`Order not saved`,saveLabel:`Save order`,saving:d.saving,onSave:d.save,onDiscard:d.discard}),(0,J.jsx)(se,{children:(0,J.jsx)(re,{defaultValue:T,onTest:e=>u({test:e})},T)})]}),children:(0,J.jsxs)(`div`,{className:`relative mx-auto flex w-max items-start gap-16 max-sm:w-full max-sm:flex-col max-sm:gap-10`,children:[(0,J.jsx)(Ge,{factoryId:e,repositories:r,filed:g,routeList:_?.evaluator===`route-list`}),(0,J.jsxs)(`section`,{id:c,"aria-label":`Intake order`,className:`flex w-115 shrink-0 scroll-mt-4 flex-col gap-3 max-sm:w-full`,children:[(0,J.jsx)(C,{as:`h2`,variant:`column`,tone:`muted`,className:`flex h-5 items-center`,children:`Intake order`}),d.query.isError&&(0,J.jsx)(B,{variant:`destructive`,children:`The intake order didn’t load.`}),f.isError&&(0,J.jsx)(B,{variant:`warning`,children:`Rules didn’t load.`}),(0,J.jsx)(He,{factoryId:e,canEdit:y,boardNames:b}),_&&(0,J.jsx)(Ce,{order:_,changed:d.changed}),_&&!d.saved.includes(n)&&(0,J.jsx)(B,{variant:`info`,children:`Not in the intake order: new issues and pull requests never reach this board.`}),(0,J.jsxs)(`div`,{"data-link-order":!0,className:`flex flex-col`,children:[(0,J.jsx)(Se,{boards:d.shown,movable:d.movable,onMove:d.move,renderBoard:(r,{index:i,dragging:s})=>{let c=r===n,l=b.get(r)??r,f=m.find(e=>e.id===r);return(0,J.jsx)(Ae,{name:l,current:c,dragging:s,header:(0,J.jsx)(je,{name:l,current:c,place:i+1,grip:d.movable,dragging:s,routingHref:t(e,r),rulesHref:o(e,r),LinkComponent:G,children:d.sortable&&(0,J.jsx)(we,{earlier:d.movable&&i>0,later:d.movable&&i<d.shown.length-1,onMove:e=>d.move(i,i+e)})}),children:(0,J.jsxs)($,{name:l,lines:h?.get(r),board:f,last:i===d.shown.length-1,onOpenRule:e=>u({rule:e}),children:[S&&w===r&&(0,J.jsx)(Te,{phase:S.into&&a(f,S.into)}),c&&x&&(0,J.jsx)(xe,{stats:x}),c&&y&&w!==r&&(0,J.jsx)(be,{onAdd:()=>u({newRule:{board:r}})})]})})}}),d.shown.length>0&&(0,J.jsx)(D,{}),(0,J.jsx)(ze,{factoryId:e,onWhy:e=>u({test:e})})]})]}),(0,J.jsx)(Le,{})]})})}function Ze(e,t){let n=e?.boards.find(e=>e.boardKey===t);if(e&&n)return{sampled:e.sampled,takes:n.takes.length,lost:n.lostTo.reduce((e,t)=>e+t.keys.length,0)}}function Qe(){let e=r(),t=he()?.boardId??``;return(0,J.jsx)(m,{variant:`page`,body:`fixed`,children:(0,J.jsx)(Xe,{factoryId:e.id,boardId:t,repositories:e.repositories},e.id)})}export{Qe as BoardIntakePage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{Wi as t,Xi as n,Xn as r,Yn as i}from"./useFactories-BSnLX5pf.js";import{D as a,O as o,o as s,w as c}from"./IconChevronRightMedium.es-ETbnXMk8.js";import{o as l}from"./TabsRoot-DcVywXPZ.js";import{t as u}from"./popup-anchor.es-BZFuBiYF.js";var d=e(o(),1),f=a(),p=e=>(0,f.jsx)(`svg`,{width:`19.125`,height:`18`,viewBox:`-1.0625 -1 19.125 18`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,f.jsx)(`path`,{d:`M5.25684 12.6387L10.4003 3.36133H11.7432L6.5997 12.6387H5.25684Z`,fill:`currentColor`})}),m=({children:e,label:t,className:n,listClassName:r})=>(0,f.jsx)(`nav`,{"aria-label":t,className:n,children:(0,f.jsx)(`ol`,{className:c(`flex items-center gap-0.5`,r),children:e})}),h=e=>(0,f.jsx)(l,{className:`h-3 w-24`,...e}),g=({className:e,as:a,to:o,href:l,isCurrent:m,action:g,switcher:_,icon:v,isLoading:y,children:b,...x})=>{let S=a||`span`,C=!(!_||!m&&(o||l)),w=d.useRef(null);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(`li`,{ref:w,className:c(`group flex h-control-sm min-w-0 items-center`,m?`shrink`:`shrink-0`,C&&`relative rounded-full has-[[data-slot=crumb-switcher]_[data-popup-open]]:bg-fill-subtle has-[[data-slot=crumb-switcher]_button:enabled]:hover:bg-fill-subtle has-[[data-slot=crumb-switcher]_button:enabled]:active:bg-fill`),children:[(0,f.jsxs)(S,{"aria-current":m?`page`:void 0,className:c(`inline-flex min-w-0 items-center gap-2 overflow-hidden rounded-full px-[.9em]`,t.sm,s,m?`max-w-xs cursor-default text-foreground`:C?c(r,`max-w-48`):c(i,`max-w-48 cursor-pointer hover:bg-fill-subtle active:bg-fill`),e),to:o,href:l,...x,children:[v&&(0,f.jsx)(n,{className:c(`ml-[-.3em] shrink-0 opacity-50 group-hover:opacity-100`,`transition-opacity duration-normal ease-out-custom`),children:v}),y?(0,f.jsx)(h,{}):(0,f.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:b})]}),_&&(0,f.jsx)(`span`,{"data-slot":`crumb-switcher`,className:c(`-ml-1 flex h-control-sm shrink-0 items-center`,C&&`[&_button]:bg-transparent! [&_button:enabled]:after:absolute [&_button:enabled]:after:inset-0 [&_button:enabled]:after:rounded-full`),children:(0,f.jsx)(u,{value:w,children:_})}),g&&(0,f.jsx)(`span`,{className:`-ml-1 flex h-control-sm shrink-0 items-center`,children:g})]}),!m&&(0,f.jsx)(`li`,{role:`separator`,className:`flex h-full items-center`,children:(0,f.jsx)(n,{className:`text-subtle-foreground`,children:(0,f.jsx)(p,{})})})]})};export{g as n,m as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,n as t}from"./Sidebar-zeEMJHoc-Cp0LKo-n.js";import{D as n,w as r}from"./IconChevronRightMedium.es-ETbnXMk8.js";var i=n();function a({className:n}){let{isMobile:a,desktopState:o}=e();return!a&&o===`collapsed`?(0,i.jsx)(t.Trigger,{className:r(`shrink-0`,n)}):null}export{a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as e,E as t,d as n,n as r,w as i}from"./IconChevronRightMedium.es-ETbnXMk8.js";import{ec as a}from"./useFactories-BSnLX5pf.js";import{C as o}from"./useThreadWorkspacePath-DMOuMkkk.js";import{ii as s,ni as c,oi as l}from"./index-Uu3iQVaN.js";var u=e(),d=n(`IconScript`,()=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`path`,{d:`M7 20H5.5C4.39543 20 3.5 19.1046 3.5 18V17C3.5 16.4477 3.94772 16 4.5 16H12.5C13.0523 16 13.5 16.4477 13.5 17V18.25C13.5 19.2165 14.2835 20 15.25 20C16.2165 20 17 19.2165 17 18.25V5.75C17 4.7835 17.7835 4 18.75 4C19.7165 4 20.5 4.7835 20.5 5.75V8C20.5 8.55228 20.0523 9 19.5 9H17.5`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,u.jsx)(`path`,{d:`M19 4H8C6.89543 4 6 4.89543 6 6V16`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,u.jsx)(`path`,{d:`M15 20H6`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,u.jsx)(`path`,{d:`M9.5 8.5H10L11 8L12 8.5H13.5`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,u.jsx)(`path`,{d:`M9.5 12H10L11 11.5L12 12H13.5`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})]})),f=i(a,`pointer-events-auto flex w-fit min-w-0 items-center gap-0.5 rounded-full p-0.5 empty:hidden`),p=`flex flex-col gap-3 p-1.5 pb-3`;function m(e,t){let n=t-e;if(!Number.isFinite(n)||n<6e4)return`<1m`;let r=Math.floor(n/6e4);if(r<60)return`${r}m`;let i=Math.floor(r/60);if(i<24)return r%60==0?`${i}h`:`${i}h ${r%60}m`;let a=Math.floor(i/24);return i%24==0?`${a}d`:`${a}d ${i%24}h`}var h=`flex min-h-0 w-full min-w-0 grow flex-col divide-y divide-border overflow-y-auto`,g=8,_=Number.parseFloat(t[`header-default`])+g,v={"--chat-header-top":`${g}px`,"--chat-header-room":`${_}px`};function y({title:e,titleMenu:t,headerCenter:n,headerActions:a,dockActions:d,children:p}){let m=c({breadcrumbs:e?(0,u.jsxs)(`div`,{className:`h-control-sm flex min-w-0 items-center gap-0.5`,children:[(0,u.jsx)(r,{as:`h1`,variant:`label`,tone:`ink`,className:`min-w-0 truncate px-3`,children:e}),t]}):void 0,triggerClassName:`size-control-sm rounded-full [&>svg]:size-icon-md`}),h=!!(m.breadcrumbs||a),g=a&&d?d(a):void 0;return(0,u.jsxs)(`div`,{className:`relative flex h-full min-h-0 flex-col`,style:h?v:void 0,children:[h?(0,u.jsx)(`div`,{className:`[container-type:size] pointer-events-none absolute inset-0 z-20`,children:(0,u.jsxs)(`div`,{"data-slot":`chat-page-header`,className:i(`grid items-center gap-x-2 ps-3 pt-(--chat-header-top)`,o.header,n?`grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)]`:`grid-cols-[minmax(0,1fr)_auto]`),children:[(0,u.jsxs)(l,{border:!1,className:i(`grid grid-cols-subgrid px-0`,g?`col-[1/-2]`:`col-span-full`),children:[(0,u.jsx)(`div`,{className:`flex min-w-0 items-center`,children:m.breadcrumbs&&(0,u.jsx)(`div`,{className:f,children:m.breadcrumbs})}),n?(0,u.jsx)(`div`,{className:`flex items-center`,children:n}):null,g?null:(0,u.jsx)(`div`,{className:`flex min-w-0 justify-end`,children:a&&(0,u.jsx)(`div`,{className:i(f,`shrink-0`),children:a})})]}),g]})}):null,(0,u.jsx)(s,{variant:`page`,body:`fixed`,children:p})]})}export{p as a,h as i,m as n,d as o,f as r,y as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{D as t,O as n,b as r,p as i,v as a,y as o}from"./IconChevronRightMedium.es-ETbnXMk8.js";import{sn as s,un as c}from"./useSessionRows-DqWZeKoh.js";import{An as l,Fn as u,Ln as d,Mn as f,Nn as p,Rn as m,co as h,do as g,ho as _,jn as v,ki as y,kn as b,mo as x,qs as S,sa as C,uo as w,wo as T,ws as E}from"./useFactories-BSnLX5pf.js";var D=e(n(),1),O=`data-composite-item-active`;function k(e){let{loopFocus:t=!0,orientation:n=`both`,grid:r,onLoop:i,direction:c,highlightedIndex:u,onHighlightedIndexChange:y,rootRef:C,enableHomeAndEndKeys:O=!1,stopEventPropagation:k,disabledIndices:M,modifierKeys:N=o}=e,[P,F]=D.useState(0),I=r!=null,L=D.useRef(null),R=a(L,C),z=D.useRef([]),B=D.useRef(!1),V=D.useRef(null),H=u??P,U=T((e,t=!1)=>{if(V.current=z.current[e]??null,(y??F)(e),t){let t=z.current[e];m(L.current,t,c,n)}}),W=T(e=>{if(e.size===0)return;if(B.current){let e=z.current,t=e.indexOf(V.current);if(t===-1){let t=e[H];!t||_(e,H,M)?U(A(e,M)):V.current=t}else t!==H&&U(t);return}B.current=!0;let t=Array.from(e.keys()),r=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,i=r?e.get(r)?.index??-1:-1;if(i!==-1)U(i);else if(_(t,H,M)){let e=h(t,{disabledIndices:M});x(t,e)||U(e)}m(L.current,r,c,n)});S(()=>{if(M==null||u!=null||!B.current)return;let e=z.current;if(_(e,H,M)){let t=h(e,{disabledIndices:M});x(e,t)||U(t)}},[M,u,H,z,U]);let G=T((e,t,n)=>i?i(e,t,n,z):n),K=T(e=>{let a=e.key===`Home`||e.key===`End`;if(!p.has(e.key)||!O&&a||j(e,N)||!L.current)return;let o=c===`rtl`,u=o?l:v,m=o?v:l,_=n===`vertical`?b:u,y=n===`vertical`?f:m,S=E(e.nativeEvent);if(S!=null&&d(S)&&!s(S)){let t=S.selectionStart,n=S.selectionEnd,r=S.value;if(t==null||e.shiftKey||t!==n||e.key!==y&&t<r.length||e.key!==_&&t>0)return}let C=H,T=g(z,M),D=w(z,M);r!=null&&(C=r({disabledIndices:M,elementsRef:z,event:e,highlightedIndex:H,loopFocus:t,maxIndex:D,minIndex:T,onLoop:G,orientation:n,rtl:o}));let A=n!==`vertical`&&e.key===u||n!==`horizontal`&&e.key===`ArrowDown`,P=n!==`vertical`&&e.key===m||n!==`horizontal`&&e.key===`ArrowUp`;O&&(e.key===`Home`?C=T:e.key===`End`&&(C=D)),C===H&&(A||P)&&(t&&C===D&&A?(C=T,i&&(C=i(e,H,C,z))):t&&C===T&&P?(C=D,i&&(C=i(e,H,C,z))):C=h(z.current,{startingIndex:C,decrement:P,disabledIndices:M})),C!==H&&!x(z.current,C)&&(k&&e.stopPropagation(),(I||a||A||P)&&e.preventDefault(),U(C,!0),queueMicrotask(()=>{z.current[C]?.focus()}))});return{props:{ref:R,onFocus(e){let t=L.current,n=E(e.nativeEvent);t&&n!=null&&d(n)&&n.setSelectionRange(0,n.value.length)},onKeyDown:K},highlightedIndex:H,onHighlightedIndexChange:U,elementsRef:z,onMapChange:W,relayKeyboardEvent:K}}function A(e,t){let n=-1;for(let r=0;r<e.length;r+=1){let i=e[r];if(i&&!_(e,r,t)){if(i.hasAttribute(`data-composite-item-active`))return r;n===-1&&(n=r)}}return Math.max(n,0)}function j(e,t){for(let n of u)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}var M=t();function N(e){let{render:t,className:n,style:a,refs:s=o,props:l=o,state:u=r,stateAttributesMapping:d,highlightedIndex:f,onHighlightedIndexChange:p,orientation:m,grid:h,loopFocus:g,onLoop:_,enableHomeAndEndKeys:v,onMapChange:b,stopEventPropagation:x=!0,rootRef:S,disabledIndices:w,modifierKeys:T,highlightItemOnHover:E=!1,tag:O=`div`,...A}=e,{props:j,highlightedIndex:N,onHighlightedIndexChange:P,elementsRef:F,onMapChange:I,relayKeyboardEvent:L}=k({grid:h,loopFocus:g,onLoop:_,orientation:m,highlightedIndex:f,onHighlightedIndexChange:p,rootRef:S,stopEventPropagation:x,enableHomeAndEndKeys:v,direction:C(),disabledIndices:w,modifierKeys:T}),R=i(O,e,{state:u,ref:s,props:[j,...l,A],stateAttributesMapping:d}),z=D.useMemo(()=>({highlightedIndex:N,onHighlightedIndexChange:P,highlightItemOnHover:E,relayKeyboardEvent:L}),[N,P,E,L]);return(0,M.jsx)(y.Provider,{value:z,children:(0,M.jsx)(c,{elementsRef:F,onMapChange:e=>{b?.(e),I(e)},children:R})})}export{O as n,N as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{D as t,O as n,d as r,n as i,w as a}from"./IconChevronRightMedium.es-ETbnXMk8.js";import{o,s}from"./TabsRoot-DcVywXPZ.js";var c=t();function l({line:e=`text-body-sm`,className:t}){return(0,c.jsxs)(`span`,{className:a(`flex items-center`,e),children:[(0,c.jsx)(`span`,{"aria-hidden":!0,children:``}),(0,c.jsx)(o,{className:a(`h-3.5`,t)})]})}var u=r(`IconCircleBanSign`,()=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(`path`,{d:`M21 12C21 16.9706 16.9706 21 12 21C9.51472 21 7.26472 19.9926 5.63604 18.364C4.00736 16.7353 3 14.4853 3 12C3 7.02944 7.02944 3 12 3C14.4853 3 16.7353 4.00736 18.364 5.63604C19.9926 7.26472 21 9.51472 21 12Z`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`square`}),(0,c.jsx)(`path`,{d:`M18 6L6 18`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`square`})]})),d=e(n(),1),f={default:(0,c.jsx)(u,{}),error:(0,c.jsx)(s,{})},p={default:`text-muted-foreground`,error:`text-destructive-foreground`};function m({tone:e=`default`,iconSlot:t=f[e],titleSlot:n,descriptionSlot:r,actionSlot:o,statusSlot:s,className:l,as:u=`h3`,variant:d=`inline`,layout:m=`stacked`}){let h=m===`split`,g=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(u,{className:a(`text-foreground`,h?`text-heading`:`text-subheading`),children:n}),r&&(0,c.jsx)(i,{variant:h?`body`:`caption`,tone:`muted`,className:`mt-1.5 max-w-md wrap-anywhere`,children:r}),o&&(0,c.jsx)(`div`,{className:a(`max-w-full`,h?`mt-6`:`mt-4`),children:o}),s&&(0,c.jsx)(i,{as:`p`,variant:`caption`,tone:`muted`,className:`mt-2 flex max-w-full items-center gap-2`,children:s})]}),_=(0,c.jsx)(`div`,{"data-slot":`empty-state`,"data-tone":e,"data-layout":m,className:a(`group/empty-state flex max-w-full px-4 py-6`,h?`@container w-full justify-center`:`flex-col items-center justify-center text-center`,`transition-opacity duration-normal ease-out-custom`,l),children:h?(0,c.jsxs)(`div`,{className:`flex flex-col-reverse items-center gap-6 text-center @2xl:flex-row @2xl:gap-12 @2xl:text-left`,children:[(0,c.jsx)(`div`,{className:`flex w-80 max-w-full flex-col items-center @2xl:items-start`,children:g}),t&&(0,c.jsx)(`div`,{"data-slot":`empty-state-art-slot`,className:a(`flex h-60 w-52 max-w-full shrink-0 items-center justify-center [&_svg]:max-h-full [&_svg]:max-w-full`,p[e]),children:t})]}):(0,c.jsxs)(c.Fragment,{children:[t&&(0,c.jsx)(`div`,{className:a(`mb-3 max-w-full [&>svg]:size-icon-lg`,p[e]),children:t}),g]})});return d===`fill`?(0,c.jsx)(`div`,{"data-slot":`empty-state-fill`,className:`flex h-full items-center-safe justify-center-safe`,children:_}):_}function h({id:e}){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(`rect`,{opacity:`0.5`,x:`0.746`,width:`207.574`,height:`40.288`,rx:`20.144`,transform:`matrix(0.849 -0.528 0.849 0.528 11.612 77.745)`,className:`fill-background`,stroke:`currentColor`,strokeWidth:`0.878`}),(0,c.jsxs)(`g`,{className:`motion-safe:transition-[translate,rotate] motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:-translate-y-1.5`,children:[(0,c.jsx)(`rect`,{x:`0.746`,width:`207.574`,height:`40.288`,rx:`20.144`,transform:`matrix(0.849 -0.528 0.849 0.528 11.612 69.479)`,className:`fill-background`,stroke:`currentColor`,strokeWidth:`0.878`}),(0,c.jsx)(`mask`,{id:`${e}-0`,fill:`white`,children:(0,c.jsx)(`path`,{d:`M41.33 61a4.6 4.6 0 0 1 4.41 0l1.88 1.17.68-1.6c.45-1.03 2.16-1.64 3.82-1.37 1.67.28 2.65 1.34 2.2 2.38l-.68 1.6 2.57-.43c1.66-.28 3.37.33 3.81 1.37.45 1.03-.54 2.1-2.2 2.37l-2.56.43 1.87 1.17c1.22.75 1.22 1.98 0 2.74-1.22.75-3.19.75-4.4 0l-1.88-1.17-.7 1.6c-.44 1.03-2.15 1.64-3.81 1.37-1.66-.28-2.65-1.34-2.2-2.38l.68-1.6-2.56.43c-1.67.28-3.38-.33-3.82-1.37-.45-1.03.54-2.1 2.2-2.37l2.57-.43-1.88-1.17c-1.22-.75-1.22-1.98 0-2.74`})}),(0,c.jsx)(`path`,{d:`m41.33 61-.74-.46zm4.41 0 .75-.46zm1.88 1.17-.75.46 1.3.8.47-1.1zm.68-1.6-1.02-.16zm3.82-1.37.28-.63zm2.2 2.38 1.03.17zm-.68 1.6L52.62 63l-.47 1.1 1.76-.3zm2.57-.43.27.63zm3.81 1.37 1.02-.17zm-2.2 2.37.27.64zm-2.56.43-.28-.64-1.76.3 1.29.8zm1.87 3.9.75.47zm-6.28-1.16.74-.46-1.3-.8-.46 1.1zm-.7 1.6 1.03.16zm-3.81 1.37-.27.63zm-2.2-2.38 1.01.17zm.68-1.6 1.02.18.47-1.1-1.76.3zm-2.56.43.27.64zm-3.82-1.37-1.02.17zm2.2-2.37.28.63zm2.57-.43.27.63 1.76-.29-1.29-.8zm-1.88-1.17-.74.47zm0-2.74.75.47c.8-.5 2.11-.5 2.92 0l.74-.47.75-.46a6.1 6.1 0 0 0-5.9 0zm4.41 0-.74.47 1.87 1.16.75-.46.74-.47-1.87-1.16zm1.88 1.17 1.02.17.68-1.6-1.02-.16-1.02-.17L46.6 62zm.68-1.6 1.02.18c.3-.69 1.43-1.1 2.53-.91l.27-.64.28-.63c-2.23-.37-4.52.45-5.12 1.84zm3.82-1.37-.27.64c1.1.18 1.75.89 1.46 1.57l1.02.17 1.02.17c.6-1.39-.73-2.8-2.95-3.18zm2.2 2.38-1.01-.17-.69 1.6 1.02.16 1.02.17.69-1.6zm-.68 1.6.27.63 2.57-.43-.27-.63-.28-.64-2.56.43zm2.57-.43.27.63c1.1-.18 2.23.22 2.53.9l1.01-.16 1.02-.17c-.6-1.39-2.88-2.2-5.1-1.84zm3.81 1.37-1.01.17c.3.68-.36 1.39-1.46 1.57l.27.63.27.64c2.23-.38 3.55-1.8 2.95-3.18zm-2.2 2.37-.27-.63-2.57.42.28.64.27.63 2.56-.42zm-2.56.43-.75.46 1.88 1.17.74-.46.75-.47L56 66.45zm1.87 1.17-.74.46c.8.5.8 1.31 0 1.81l.74.47.75.46c1.63-1.01 1.63-2.66 0-3.67zm0 2.74-.74-.47c-.8.5-2.12.5-2.92 0l-.75.47-.74.46a6.1 6.1 0 0 0 5.9 0zm-4.4 0 .74-.47-1.88-1.16-.74.46-.75.46 1.88 1.17zm-1.88-1.17-1.02-.17-.69 1.6 1.02.17 1.02.16.68-1.59zm-.7 1.6-1.01-.17c-.3.68-1.43 1.09-2.53.9l-.27.64-.27.63c2.22.37 4.51-.45 5.1-1.84zm-3.81 1.37.27-.64c-1.1-.18-1.75-.88-1.46-1.57l-1.02-.17-1.01-.17c-.6 1.39.72 2.8 2.95 3.18zm-2.2-2.38 1.01.17.69-1.6-1.02-.16-1.02-.17-.68 1.6zm.68-1.6-.27-.63-2.57.43.28.63.27.64 2.56-.43zm-2.56.43-.27-.63c-1.1.18-2.24-.22-2.53-.9l-1.02.16-1.02.17c.6 1.39 2.88 2.2 5.11 1.84zm-3.82-1.37 1.02-.17c-.3-.68.36-1.38 1.46-1.57l-.28-.63-.27-.64c-2.23.38-3.55 1.8-2.95 3.18zm2.2-2.37.28.63 2.56-.43-.27-.63-.28-.63-2.56.42zm2.57-.43.74-.46-1.87-1.17-.75.46-.74.47 1.87 1.16zm-1.88-1.17.75-.46c-.8-.5-.8-1.31 0-1.81l-.75-.47-.74-.46c-1.63 1.01-1.63 2.65 0 3.67z`,fill:`currentColor`,mask:`url(#${e}-0)`}),(0,c.jsx)(`mask`,{id:`${e}-1`,fill:`white`,children:(0,c.jsx)(`path`,{d:`M60.83 48.88a4.6 4.6 0 0 1 4.4 0l1.88 1.17.7-1.6c.44-1.03 2.15-1.65 3.81-1.37s2.65 1.34 2.2 2.38l-.68 1.59 2.56-.43c1.67-.27 3.38.34 3.82 1.37.45 1.04-.54 2.1-2.2 2.38l-2.57.43 1.88 1.16c1.22.76 1.22 1.99 0 2.74s-3.2.76-4.41 0l-1.88-1.16-.68 1.6c-.45 1.03-2.16 1.64-3.82 1.36-1.67-.27-2.65-1.34-2.2-2.37l.68-1.6-2.56.43c-1.67.28-3.38-.34-3.82-1.37-.45-1.03.54-2.1 2.2-2.37l2.56-.43-1.87-1.17c-1.22-.76-1.22-1.98 0-2.74`})}),(0,c.jsx)(`path`,{d:`m60.83 48.88-.75-.46zm4.4 0 .75-.46zm1.88 1.17-.74.46 1.29.8.47-1.1zm.7-1.6-1.03-.17zm3.81-1.37.27-.63zm2.2 2.38 1.02.17zm-.68 1.59-1.02-.17-.47 1.1 1.76-.3zm2.56-.43.28.64zM79.52 52l1.02-.17zm-2.2 2.38.27.63zm-2.57.43-.27-.64-1.77.3 1.3.8zm1.88 3.9.75.47zm-6.29-1.16.75-.47-1.3-.8-.47 1.1zm-.68 1.6 1.01.16zm-3.82 1.36-.28.64zm-2.2-2.37 1.01.17zm.68-1.6 1.02.17.47-1.1-1.77.3zm-2.56.43.27.64zm-3.82-1.37-1.02.17zm2.2-2.37.27.63zm2.56-.43.28.63 1.76-.3-1.29-.8zm-1.87-1.17-.75.47zm0-2.74.74.46c.81-.5 2.12-.5 2.92 0l.75-.46.74-.46a6.1 6.1 0 0 0-5.9 0zm4.4 0-.74.46 1.88 1.17.74-.46.75-.47-1.88-1.16zm1.88 1.17 1.02.17.69-1.6-1.02-.17-1.02-.17-.68 1.6zm.7-1.6 1.01.17c.3-.68 1.43-1.09 2.53-.9l.27-.64.27-.63c-2.22-.37-4.51.45-5.1 1.83zm3.81-1.37-.27.64c1.1.18 1.75.88 1.46 1.57l1.02.17 1.01.17c.6-1.39-.72-2.81-2.95-3.18zm2.2 2.38-1.01-.17-.69 1.59 1.02.17 1.02.17.68-1.6zm-.68 1.59.27.63 2.57-.42-.28-.64-.27-.63-2.56.43zm2.56-.43.28.64c1.1-.19 2.23.22 2.52.9l1.02-.17 1.02-.17c-.6-1.38-2.88-2.2-5.11-1.83zM79.52 52l-1.02.17c.3.69-.36 1.4-1.46 1.58l.28.63.27.63c2.23-.37 3.55-1.8 2.95-3.18zm-2.2 2.38-.28-.63-2.56.42.27.64.28.63 2.56-.43zm-2.57.43-.74.46 1.87 1.17.75-.47.75-.46-1.88-1.17zm1.88 1.16-.75.47c.81.5.81 1.31 0 1.81l.75.46.75.47c1.63-1.02 1.63-2.66 0-3.67zm0 2.74-.75-.46c-.8.5-2.1.5-2.91 0l-.75.46-.75.47a6.1 6.1 0 0 0 5.9 0zm-4.41 0 .75-.46-1.88-1.17-.75.47-.74.46 1.87 1.17zm-1.88-1.16-1.02-.17-.68 1.6 1.02.16 1.01.17.7-1.6zm-.68 1.6-1.02-.18c-.3.69-1.43 1.1-2.53.91l-.27.63-.28.64c2.23.37 4.52-.45 5.11-1.84zm-3.82 1.36.27-.63c-1.1-.18-1.75-.89-1.46-1.57l-1.02-.17-1.02-.17c-.6 1.38.73 2.8 2.95 3.18zm-2.2-2.37 1.01.17.69-1.6-1.02-.17-1.02-.16-.69 1.59zm.68-1.6-.28-.63-2.56.43.28.63.27.64 2.56-.43zm-2.56.43-.28-.63c-1.1.18-2.23-.22-2.53-.9l-1.01.16-1.02.17c.6 1.38 2.88 2.2 5.1 1.84zm-3.82-1.37 1.01-.17c-.29-.68.36-1.39 1.46-1.57l-.27-.63-.27-.64c-2.23.37-3.55 1.8-2.95 3.18zm2.2-2.37.27.63 2.57-.43-.28-.63-.27-.63-2.56.42zm2.56-.43.75-.47-1.88-1.16-.74.46-.75.47 1.88 1.16zm-1.87-1.17.74-.46c-.8-.5-.8-1.32 0-1.82l-.74-.46-.75-.46c-1.63 1-1.63 2.65 0 3.67z`,fill:`currentColor`,mask:`url(#${e}-1)`}),(0,c.jsx)(`mask`,{id:`${e}-2`,fill:`white`,children:(0,c.jsx)(`path`,{d:`M80.33 36.76a4.6 4.6 0 0 1 4.4 0l1.88 1.16.69-1.6c.44-1.02 2.15-1.64 3.82-1.36 1.66.28 2.65 1.34 2.2 2.37l-.68 1.6 2.56-.43c1.66-.28 3.37.34 3.82 1.37.44 1.04-.54 2.1-2.2 2.38l-2.57.42 1.88 1.17c1.22.76 1.22 1.98 0 2.74s-3.2.76-4.41 0l-1.88-1.17-.69 1.6c-.44 1.03-2.15 1.65-3.82 1.37-1.66-.28-2.65-1.34-2.2-2.37l.68-1.6-2.56.43c-1.66.28-3.37-.34-3.82-1.37-.44-1.04.54-2.1 2.2-2.38l2.57-.43-1.87-1.16c-1.22-.76-1.22-1.99 0-2.74`})}),(0,c.jsx)(`path`,{d:`m80.33 36.76-.75-.47zm4.4 0 .75-.47zm1.88 1.16-.74.47 1.29.8.47-1.1zm.69-1.6-1.02-.16zm3.82-1.36.27-.64zm2.2 2.37 1.02.17zm-.68 1.6-1.02-.17-.48 1.1 1.77-.3zm2.56-.43.27.63zm3.82 1.37 1.02-.17zm-2.2 2.38.27.63zm-2.57.42-.27-.63-1.77.3 1.3.8zm1.88 3.91.74.47zm-6.29-1.17.75-.46-1.3-.8-.47 1.1zm-.69 1.6 1.02.17zm-3.82 1.37-.27.63zm-2.2-2.37 1.02.16zm.68-1.6 1.02.17.47-1.1-1.76.3zm-2.56.43.28.63zm-3.82-1.37-1.02.17zm2.2-2.38.28.64zm2.57-.43.27.64 1.77-.3-1.3-.8zm-1.87-1.16-.75.46zm0-2.74.74.46c.8-.5 2.11-.5 2.92 0l.75-.46.74-.47a6.1 6.1 0 0 0-5.9 0zm4.4 0-.74.46 1.88 1.17.74-.47.75-.46-1.88-1.17zm1.88 1.16 1.02.17.69-1.6-1.02-.16-1.02-.17-.69 1.6zm.69-1.6 1.02.18c.3-.69 1.42-1.1 2.52-.9l.28-.64.27-.64c-2.23-.37-4.51.46-5.11 1.84zm3.82-1.36-.28.63c1.1.19 1.76.89 1.46 1.57l1.02.17 1.02.17c.6-1.38-.72-2.8-2.95-3.18zm2.2 2.37-1.02-.17-.68 1.6 1.02.17 1.01.17.7-1.6zm-.68 1.6.27.63 2.56-.43-.27-.63-.27-.63-2.57.42zm2.56-.43.27.63c1.1-.18 2.24.23 2.53.91l1.02-.17 1.02-.17c-.6-1.38-2.89-2.2-5.11-1.83zm3.82 1.37-1.02.17c.3.69-.36 1.39-1.46 1.57l.27.64.28.63c2.22-.37 3.54-1.8 2.95-3.18zm-2.2 2.38-.28-.64-2.56.43.27.63.27.64 2.57-.43zm-2.57.42-.75.47 1.88 1.16.75-.46.74-.46L95 42.2zm1.88 1.17-.75.46c.8.5.8 1.32 0 1.82l.75.46.74.47c1.63-1.02 1.63-2.66 0-3.67zm0 2.74-.75-.46c-.8.5-2.11.5-2.92 0l-.74.46-.75.47a6.1 6.1 0 0 0 5.9 0zm-4.41 0 .74-.46-1.87-1.17-.75.46-.75.47 1.88 1.17zm-1.88-1.17-1.02-.17-.69 1.6 1.02.17 1.02.17.69-1.6zm-.69 1.6-1.02-.17c-.29.68-1.42 1.09-2.52.9l-.28.64-.27.63c2.23.37 4.52-.45 5.11-1.83zm-3.82 1.37.28-.63c-1.1-.19-1.76-.9-1.46-1.58l-1.02-.16-1.02-.17c-.6 1.38.73 2.8 2.95 3.17zm-2.2-2.37 1.02.16.68-1.59-1.02-.17-1.02-.17-.68 1.6zm.68-1.6-.27-.63-2.56.43.27.63.28.63 2.56-.42zm-2.56.43-.27-.63c-1.1.18-2.23-.23-2.53-.91l-1.02.17-1.02.17c.6 1.38 2.89 2.2 5.12 1.83zm-3.82-1.37 1.02-.17c-.3-.69.36-1.4 1.46-1.57l-.27-.64-.28-.63c-2.22.37-3.54 1.8-2.95 3.18zm2.2-2.38.28.64 2.56-.43-.27-.64-.27-.63-2.57.43zm2.57-.43.75-.46-1.88-1.17-.74.47-.75.46 1.88 1.17zm-1.87-1.16.74-.47c-.8-.5-.8-1.3 0-1.81l-.74-.46-.75-.47c-1.63 1.02-1.63 2.66 0 3.67z`,fill:`currentColor`,mask:`url(#${e}-2)`}),(0,c.jsx)(`mask`,{id:`${e}-3`,fill:`white`,children:(0,c.jsx)(`path`,{d:`M99.82 24.63a4.6 4.6 0 0 1 4.41 0l1.88 1.17.69-1.6c.44-1.03 2.15-1.64 3.81-1.36s2.66 1.34 2.21 2.37l-.69 1.6 2.57-.43c1.66-.28 3.37.33 3.82 1.37.44 1.03-.55 2.1-2.2 2.37l-2.57.43 1.87 1.17c1.22.75 1.22 1.98 0 2.74-1.21.76-3.19.76-4.4 0l-1.88-1.17-.69 1.6c-.45 1.03-2.16 1.64-3.82 1.37-1.66-.28-2.65-1.34-2.2-2.38l.68-1.6-2.56.44c-1.66.27-3.37-.34-3.82-1.38s.54-2.1 2.2-2.37l2.57-.43-1.88-1.16c-1.22-.76-1.22-1.99 0-2.75`})}),(0,c.jsx)(`path`,{d:`m99.82 24.63-.74-.46zm4.41 0 .75-.46zm1.88 1.17-.75.46 1.3.8.47-1.1zm.69-1.6 1.01.18zm3.81-1.36.28-.64zm2.21 2.37 1.02.17zm-.69 1.6-1.02-.18-.47 1.1 1.77-.3zm2.57-.43.27.63zm3.82 1.37 1.02-.17zm-2.2 2.37.26.64zm-2.57.43-.28-.63-1.76.29 1.3.8zm1.87 3.9.75.47zm-6.28-1.16.74-.46-1.29-.8-.47 1.1zm-.69 1.6 1.02.17zm-3.82 1.37-.27.63zm-2.2-2.38 1.02.17zm.68-1.6 1.02.18.47-1.1-1.76.3zm-2.56.44.27.63zm-3.82-1.38-1.02.17zm2.2-2.37.28.63zm2.57-.43.27.64 1.77-.3-1.3-.8zm-1.88-1.16-.74.46zm0-2.75.75.47c.8-.5 2.11-.5 2.92 0l.74-.47.75-.46a6.1 6.1 0 0 0-5.9 0zm4.41 0-.74.47 1.87 1.16.75-.46.74-.46-1.87-1.17zm1.88 1.17 1.02.17.68-1.6-1.02-.16-1.01-.17-.69 1.59zm.69-1.6 1.01.18c.3-.69 1.43-1.1 2.53-.91l.27-.63.28-.64c-2.23-.37-4.52.45-5.11 1.84zm3.81-1.36-.27.63c1.1.18 1.76.89 1.46 1.57l1.02.17 1.02.17c.6-1.38-.73-2.8-2.95-3.18zm2.21 2.37-1.02-.17-.69 1.6 1.02.16 1.02.17.69-1.59zm-.69 1.6.28.63 2.56-.43-.27-.63-.28-.64-2.56.43zm2.57-.43.27.63c1.1-.18 2.23.22 2.53.9l1.02-.16 1.02-.17c-.6-1.39-2.89-2.2-5.12-1.84zm3.82 1.37-1.02.17c.3.68-.36 1.39-1.46 1.57l.27.63.27.64c2.23-.37 3.55-1.8 2.96-3.18zm-2.2 2.37-.28-.63-2.57.43.28.63.27.63 2.56-.42zm-2.57.43L113 31l1.88 1.17.74-.46.75-.47-1.88-1.16zm1.87 1.17-.74.46c.8.5.8 1.31 0 1.81l.74.47.75.46c1.63-1.01 1.63-2.65 0-3.67zm0 2.74-.74-.47c-.8.5-2.11.5-2.92 0l-.75.47-.74.46a6.1 6.1 0 0 0 5.9 0zm-4.4 0 .74-.47-1.88-1.16-.74.46-.75.47 1.88 1.16zm-1.88-1.17-1.02-.17-.69 1.6 1.02.17 1.02.17.69-1.6zm-.69 1.6-1.02-.17c-.3.68-1.42 1.09-2.53.9l-.27.64-.27.63c2.22.37 4.51-.45 5.1-1.83zm-3.82 1.37.27-.64c-1.1-.18-1.75-.88-1.45-1.57l-1.02-.17-1.02-.17c-.6 1.39.72 2.81 2.95 3.18zm-2.2-2.38 1.02.17.68-1.6-1.02-.16-1.02-.17-.68 1.6zm.68-1.6-.27-.62-2.56.42.27.64.27.63 2.56-.43zm-2.56.44-.27-.64c-1.1.19-2.24-.22-2.53-.9l-1.02.16-1.02.17c.6 1.39 2.89 2.21 5.11 1.84zm-3.82-1.38 1.02-.17c-.3-.68.36-1.38 1.46-1.57l-.28-.63-.27-.63c-2.22.37-3.54 1.79-2.95 3.17zm2.2-2.37.28.63 2.56-.42-.27-.64-.28-.63-2.56.43zm2.57-.43.74-.46-1.87-1.17-.75.47-.74.46 1.87 1.17zm-1.88-1.16.75-.47c-.8-.5-.8-1.31 0-1.81l-.75-.47-.74-.46c-1.63 1.01-1.63 2.66 0 3.67z`,fill:`currentColor`,mask:`url(#${e}-3)`}),(0,c.jsx)(`mask`,{id:`${e}-4`,fill:`white`,children:(0,c.jsx)(`path`,{d:`M119.32 12.51a4.6 4.6 0 0 1 4.41 0l1.88 1.17.68-1.6c.45-1.03 2.16-1.64 3.82-1.37 1.67.28 2.65 1.34 2.2 2.38l-.68 1.6 2.56-.44c1.67-.27 3.38.34 3.82 1.37.45 1.04-.54 2.1-2.2 2.38l-2.56.43 1.87 1.16c1.22.76 1.22 1.99 0 2.75-1.22.75-3.2.75-4.4 0l-1.88-1.17-.7 1.6c-.44 1.03-2.15 1.64-3.81 1.36s-2.65-1.34-2.2-2.37l.68-1.6-2.56.43c-1.67.28-3.38-.33-3.82-1.37-.45-1.03.54-2.1 2.2-2.37l2.57-.43-1.88-1.17c-1.22-.75-1.22-1.98 0-2.74`})}),(0,c.jsx)(`path`,{d:`m119.32 12.51-.75-.46zm4.41 0 .75-.46zm1.88 1.17-.75.46 1.3.8.47-1.1zm.68-1.6 1.02.17zm3.82-1.37.28-.63zm2.2 2.38 1.03.17zm-.68 1.6-1.02-.18-.47 1.1 1.76-.3zm2.56-.44.28.64zm3.82 1.37 1.02-.16zm-2.2 2.38.27.63zm-2.56.43-.28-.64-1.76.3 1.29.8zm1.87 3.9.75.47zm-6.28-1.16.74-.47-1.3-.8-.46 1.1zm-.7 1.6 1.03.16zm-3.81 1.36-.27.64zm-2.2-2.37 1.01.17zm.68-1.6 1.02.17.47-1.1-1.76.3zm-2.56.43.27.64zm-3.82-1.37-1.02.17zm2.2-2.37.28.63zm2.57-.43.27.63 1.76-.3-1.29-.8zm-1.88-1.17-.75.47zm0-2.74.75.46c.8-.5 2.1-.5 2.91 0l.75-.46.75-.46a6.1 6.1 0 0 0-5.9 0zm4.41 0-.75.46 1.88 1.17.75-.46.74-.47-1.87-1.16zm1.88 1.17 1.02.17.68-1.6-1.02-.17-1.02-.17-.68 1.6zm.68-1.6 1.02.17c.3-.68 1.43-1.09 2.53-.9l.27-.64.28-.63c-2.23-.37-4.52.45-5.12 1.83zm3.82-1.37-.27.64c1.1.18 1.75.88 1.46 1.57l1.02.17 1.02.17c.6-1.39-.73-2.81-2.95-3.18zm2.2 2.38-1.01-.17-.69 1.6 1.02.16 1.02.17.69-1.6zm-.68 1.6.27.62 2.57-.42-.28-.64-.27-.63-2.56.43zm2.56-.44.28.64c1.1-.19 2.23.22 2.53.9l1.01-.17 1.02-.16c-.6-1.39-2.88-2.21-5.1-1.84zm3.82 1.37-1.01.17c.3.69-.36 1.4-1.47 1.58l.28.63.27.63c2.23-.37 3.55-1.8 2.95-3.17zm-2.2 2.38-.27-.63-2.57.42.28.64.27.63 2.56-.43zm-2.56.43-.75.46 1.88 1.17.74-.47.75-.46-1.88-1.17zm1.87 1.16-.74.47c.8.5.8 1.31 0 1.81l.74.47.75.46c1.63-1.01 1.63-2.66 0-3.67zm0 2.75-.74-.47c-.81.5-2.12.5-2.92 0l-.75.47-.74.46a6.1 6.1 0 0 0 5.9 0zm-4.4 0 .74-.47-1.88-1.17-.75.47-.74.46 1.88 1.17zm-1.88-1.17-1.02-.17-.7 1.6 1.03.16 1.02.17.68-1.6zm-.7 1.6-1.01-.18c-.3.69-1.43 1.1-2.53.91l-.27.63-.27.64c2.22.37 4.51-.45 5.1-1.84zm-3.81 1.36.27-.63c-1.1-.18-1.75-.89-1.46-1.57l-1.02-.17-1.02-.17c-.6 1.38.73 2.8 2.96 3.18zm-2.2-2.37 1.01.17.69-1.6-1.02-.16-1.02-.17-.69 1.59zm.68-1.6-.27-.63-2.57.43.28.63.27.64 2.56-.43zm-2.56.43-.28-.63c-1.1.18-2.23-.22-2.52-.9l-1.02.16-1.02.17c.6 1.39 2.89 2.2 5.11 1.84zm-3.82-1.37 1.02-.17c-.3-.68.36-1.39 1.46-1.57l-.28-.63-.27-.64c-2.22.37-3.55 1.8-2.95 3.18zm2.2-2.37.28.63 2.56-.43-.27-.63-.28-.63-2.56.42zm2.57-.43.74-.46-1.87-1.17-.75.46-.75.47 1.88 1.16zm-1.88-1.17.75-.46c-.81-.5-.81-1.31 0-1.82l-.75-.46-.75-.46c-1.63 1.01-1.63 2.65 0 3.67z`,fill:`currentColor`,mask:`url(#${e}-4)`})]})]})}function g({id:e}){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(`rect`,{width:`48.964`,height:`48.964`,rx:`13.091`,transform:`matrix(0.85 0.527 -0.85 0.527 59.888 76.317)`,className:`fill-background`}),(0,c.jsx)(`rect`,{x:`0`,y:`0.627`,width:`47.773`,height:`47.773`,rx:`12.496`,transform:`matrix(0.85 0.527 -0.85 0.527 60.421 76.614)`,stroke:`currentColor`,strokeOpacity:`0.5`,strokeWidth:`1.19`}),(0,c.jsx)(`rect`,{x:`0`,y:`0.627`,width:`47.773`,height:`47.773`,rx:`12.496`,transform:`matrix(0.85 0.527 -0.85 0.527 60.421 70.969)`,className:`fill-background`,stroke:`currentColor`,strokeWidth:`1.19`}),(0,c.jsx)(`circle`,{cx:`4.866`,cy:`4.866`,r:`4.27`,transform:`matrix(0.85 0.527 -0.85 0.527 60.084 103.266)`,stroke:`currentColor`,strokeWidth:`1.19`}),(0,c.jsxs)(`g`,{className:`motion-safe:transition-[translate,rotate] motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:-translate-y-0.5`,children:[(0,c.jsx)(`rect`,{width:`48.964`,height:`48.964`,rx:`13.091`,transform:`matrix(0.85 0.527 -0.85 0.527 59.888 59.189)`,className:`fill-background`}),(0,c.jsx)(`rect`,{x:`0`,y:`0.627`,width:`47.773`,height:`47.773`,rx:`12.496`,transform:`matrix(0.85 0.527 -0.85 0.527 60.421 59.486)`,stroke:`currentColor`,strokeOpacity:`0.5`,strokeWidth:`1.19`}),(0,c.jsx)(`rect`,{x:`0`,y:`0.627`,width:`47.773`,height:`47.773`,rx:`12.496`,transform:`matrix(0.85 0.527 -0.85 0.527 60.421 53.84)`,className:`fill-background`,stroke:`currentColor`,strokeWidth:`1.19`}),(0,c.jsx)(`circle`,{cx:`4.866`,cy:`4.866`,r:`4.27`,transform:`matrix(0.85 0.527 -0.85 0.527 60.084 86.137)`,stroke:`currentColor`,strokeWidth:`1.19`})]}),(0,c.jsxs)(`g`,{className:`motion-safe:transition-[translate,rotate] motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:-translate-y-1`,children:[(0,c.jsx)(`rect`,{width:`48.964`,height:`48.964`,rx:`13.091`,transform:`matrix(0.85 0.527 -0.85 0.527 59.888 43.424)`,className:`fill-background`}),(0,c.jsx)(`rect`,{x:`0`,y:`0.627`,width:`47.773`,height:`47.773`,rx:`12.496`,transform:`matrix(0.85 0.527 -0.85 0.527 60.421 43.721)`,stroke:`currentColor`,strokeOpacity:`0.5`,strokeWidth:`1.19`}),(0,c.jsx)(`rect`,{x:`0`,y:`0.627`,width:`47.773`,height:`47.773`,rx:`12.496`,transform:`matrix(0.85 0.527 -0.85 0.527 60.421 38.075)`,className:`fill-background`,stroke:`currentColor`,strokeWidth:`1.19`}),(0,c.jsx)(`circle`,{cx:`4.866`,cy:`4.866`,r:`4.27`,transform:`matrix(0.85 0.527 -0.85 0.527 60.084 70.372)`,stroke:`currentColor`,strokeWidth:`1.19`})]}),(0,c.jsxs)(`g`,{className:`motion-safe:transition-[translate,rotate] motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:-translate-y-1.5`,children:[(0,c.jsx)(`rect`,{width:`48.964`,height:`48.964`,rx:`13.091`,transform:`matrix(0.85 0.527 -0.85 0.527 59.888 28.191)`,className:`fill-background`}),(0,c.jsx)(`rect`,{x:`0`,y:`0.627`,width:`47.773`,height:`47.773`,rx:`12.496`,transform:`matrix(0.85 0.527 -0.85 0.527 60.421 28.488)`,stroke:`currentColor`,strokeOpacity:`0.5`,strokeWidth:`1.19`}),(0,c.jsx)(`rect`,{x:`0`,y:`0.627`,width:`47.773`,height:`47.773`,rx:`12.496`,transform:`matrix(0.85 0.527 -0.85 0.527 60.421 22.843)`,className:`fill-background`,stroke:`currentColor`,strokeWidth:`1.19`}),(0,c.jsx)(`circle`,{cx:`4.866`,cy:`4.866`,r:`4.27`,transform:`matrix(0.85 0.527 -0.85 0.527 60.084 55.14)`,stroke:`currentColor`,strokeWidth:`1.19`})]}),(0,c.jsx)(`rect`,{x:`21.281`,y:`65.614`,width:`78.576`,height:`61.442`,fill:`url(#${e}-0)`}),(0,c.jsx)(`defs`,{children:(0,c.jsxs)(`linearGradient`,{id:`${e}-0`,x1:`60.569`,y1:`65.614`,x2:`60.569`,y2:`127.055`,gradientUnits:`userSpaceOnUse`,children:[(0,c.jsx)(`stop`,{style:{stopColor:`var(--color-background)`},stopOpacity:`0`}),(0,c.jsx)(`stop`,{offset:`1`,style:{stopColor:`var(--color-background)`}})]})})]})}function _(){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(`path`,{d:`M89.01 73.87c-9.15 5.6-21.58 7.97-33.49 7.11-2.34-.17-4.01-1.47-3.74-2.9.28-1.43 2.4-2.46 4.74-2.3 9.43.69 19.23-1.19 26.45-5.61 5.26-3.22 8.31-7.29 9.16-11.49 1.16-5.8-1.89-11.85-9.16-16.3-12.52-7.68-32.83-7.68-45.35 0-7.23 4.42-10.29 10.43-9.18 16.2l.02.11c.17 1.4-1.47 2.63-3.75 2.8-2.35.17-4.47-.86-4.74-2.3a15 15 0 0 1-.27-3.53c.25-6.16 4.2-12.28 11.88-16.98 15.86-9.72 41.57-9.72 57.43 0 7.76 4.75 11.73 10.96 11.89 17.2.17 6.5-3.8 13.03-11.89 17.99`,className:`fill-background`}),(0,c.jsx)(`path`,{d:`M92.13 58.68c-.85 4.2-3.9 8.27-9.16 11.49-7.22 4.42-17.02 6.3-26.45 5.62-2.34-.17-4.46.86-4.74 2.3-.27 1.42 1.4 2.72 3.74 2.9 11.91.85 24.34-1.52 33.49-7.12 8.1-4.96 12.06-11.5 11.89-18-.16-6.23-4.13-12.44-11.89-17.2-15.86-9.71-41.57-9.71-57.43 0-7.67 4.7-11.63 10.83-11.88 16.99q-.07 1.77.27 3.54c.27 1.43 2.4 2.46 4.74 2.29 2.28-.17 3.92-1.4 3.75-2.8q0-.05-.02-.1c-1.1-5.78 1.95-11.79 9.18-16.22 12.52-7.67 32.83-7.67 45.35 0 7.27 4.46 10.32 10.51 9.16 16.31m-40.35 19.4v4.83c-.27 1.43 1.4 2.73 3.74 2.9 11.91.86 24.34-1.51 33.49-7.12 7.75-4.75 11.72-10.94 11.89-17.17v-5.65M28.44 58.6v4.82c.28 1.44-1.4 2.74-3.73 2.9-2.35.17-4.47-.85-4.74-2.29l-.27-.98v-7.38m8.76 3.03c.84-4.2 3.9-8.26 9.16-11.49 12.52-7.67 32.83-7.67 45.35 0 5.26 3.22 8.31 7.29 9.16 11.48`,stroke:`currentColor`,strokeOpacity:`0.5`,strokeWidth:`0.756`,strokeLinecap:`round`}),(0,c.jsxs)(`g`,{className:`motion-safe:transition-[translate,rotate] motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:-translate-y-1.5`,children:[(0,c.jsx)(`path`,{d:`M74.1 56.26c-6.01 3.68-14.9 4.55-22.26 2.59-1.74-.47-3.82-.36-5.16.47L1.74 86.85a6.3 6.3 0 0 1-6.04 0c-.8-.49-1.22-1.13-1.25-1.78-.03-.69.4-1.39 1.25-1.91l44.94-27.54c1.34-.82 1.52-2.1.77-3.17-3.2-4.5-1.8-9.95 4.23-13.64 7.86-4.82 20.6-4.82 28.47 0 3.75 2.3 5.71 5.29 5.88 8.3.18 3.3-1.78 6.63-5.88 9.15`,className:`fill-background`}),(0,c.jsx)(`path`,{d:`M-5.55 85.07c.03.65.45 1.3 1.25 1.78a6.3 6.3 0 0 0 6.04 0l44.94-27.53c1.34-.83 3.42-.94 5.16-.47 7.36 1.96 16.25 1.1 22.27-2.6 4.1-2.51 6.06-5.84 5.88-9.14-.17-3.01-2.13-6-5.88-8.3-7.87-4.82-20.61-4.82-28.47 0-6.02 3.69-7.43 9.13-4.23 13.64.75 1.07.57 2.35-.77 3.17L-4.3 83.16c-.86.52-1.28 1.22-1.25 1.91M80 47.11l.23 14.27c-.07 3.1-2.03 6.2-5.9 8.57-6.02 3.69-14.9 4.55-22.26 2.59-1.74-.46-3.82-.35-5.16.47L1.96 100.55a6.3 6.3 0 0 1-6.04 0c-.78-.48-1.2-1.1-1.25-1.73l-.22-13.75`,stroke:`currentColor`,strokeWidth:`0.756`,strokeLinecap:`round`})]})]})}var v={"--hover-shift":`10.18px -5.09px`};function y(){return(0,c.jsxs)(`g`,{strokeWidth:`0.9`,children:[(0,c.jsx)(`path`,{d:`m55.24 41.9.64-1.6 1.83-1.37 11.87-5.94 2.73-.91 3.21-.32 3.22.32 2.72.91 16.97 8.49 1.83 1.36.63 1.61v15.59l-.63 1.6-1.83 1.37-11.88 5.94-2.72.91-3.21.32-3.22-.32-2.72-.91-16.97-8.49-1.83-1.36-.64-1.61Z`,className:`fill-background`,stroke:`currentColor`,strokeOpacity:`0.7`}),(0,c.jsx)(`path`,{d:`m98.97 44.45-.49 1.24-1.4 1.05-11.88 5.94-2.1.7-2.48.25-2.48-.25-2.11-.7-16.97-8.49-1.4-1.05-.5-1.24`,stroke:`currentColor`,strokeOpacity:`0.35`}),(0,c.jsx)(`path`,{d:`m73.57 61.64-.02-.37-.07-.38-.11-.39-.15-.38-.19-.37-.23-.34-.25-.32-.27-.27-.28-.22-.29-.18-.3-.12-.28-.06-.27.01-.25.06-.22.12-.19.18-.16.23-.11.27-.07.32-.02.34.02.37.07.39.11.38.16.39.19.36.22.35.25.31.27.27.28.23.3.17.29.12.28.06h.27l.25-.06.23-.13.19-.17.15-.23.11-.28.07-.31zm-11.03-5.51-.02-.37-.07-.39-.11-.38-.15-.39-.2-.36-.22-.35-.25-.31-.27-.27-.28-.23-.3-.17-.29-.12-.28-.06h-.27l-.25.06-.23.13-.19.17-.15.23-.11.28-.07.31-.02.35.02.37.07.38.11.39.15.38.19.37.23.34.25.32.27.27.28.22.29.18.3.12.28.05h.27l.25-.06.22-.12.2-.18.15-.23.11-.27.07-.32z`,stroke:`currentColor`,strokeLinecap:`round`}),(0,c.jsxs)(`g`,{className:`motion-safe:transition-[translate,transform] motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:[translate:var(--hover-shift)]`,style:v,children:[(0,c.jsx)(`path`,{d:`m50.81 68.69.14-.34.39-.29 9.33-4.67.59-.19.69-.07.69.07.58.19.39.29.14.35v3.12l-.14.34-.39.29-9.33 4.67-.59.19-.69.07-.68-.07-.59-.19-.39-.29-.14-.35Z`,className:`fill-background`,stroke:`currentColor`}),(0,c.jsx)(`path`,{d:`m63.15 64.03-.09.23-.26.19-9.34 4.67-.39.13-.46.04-.46-.04-.38-.13-.26-.2-.1-.23`,stroke:`currentColor`,strokeOpacity:`0.35`}),(0,c.jsx)(`path`,{d:`m39.78 63.18.14-.35.39-.29 9.33-4.66.59-.2.69-.07.69.07.58.2.39.29.14.34v3.12l-.14.34-.39.3-9.33 4.66-.59.2-.69.07-.69-.07-.58-.2-.39-.29-.14-.34Z`,className:`fill-background`,stroke:`currentColor`}),(0,c.jsx)(`path`,{d:`m52.12 58.51-.09.23-.26.2-9.34 4.66-.39.13-.46.05-.46-.05-.39-.13-.26-.19-.09-.23`,stroke:`currentColor`,strokeOpacity:`0.35`}),(0,c.jsx)(`path`,{d:`m19.11 65.2.55-1.38 1.56-1.17 10.18-5.09 2.34-.78 2.75-.28 2.76.28 2.33.78 11.88 5.94 1.56 1.17.55 1.37v13.51l-.55 1.38-1.56 1.17-10.18 5.09-2.34.78-2.75.27-2.76-.27-2.33-.78-11.88-5.94-1.56-1.17-.55-1.37Z`,className:`fill-background`,stroke:`currentColor`,strokeOpacity:`0.7`}),(0,c.jsx)(`path`,{d:`m53.89 66.04-.42 1.06-1.2.9-10.18 5.09-1.79.59-2.11.21-2.11-.21-1.79-.59-11.88-5.94-1.2-.9-.42-1.05`,stroke:`currentColor`,strokeOpacity:`0.35`}),(0,c.jsx)(`path`,{d:`m-111.53 145.23.32-.8.91-.68L21.22 77.99l1.36-.46 1.61-.16 1.61.16 1.36.46.91.68.32.8v6.24l-.32.8-.91.68-131.52 65.76-1.37.46-1.6.16-1.61-.16-1.36-.46-.91-.68-.32-.8Z`,className:`fill-background`,stroke:`currentColor`,strokeOpacity:`0.7`}),(0,c.jsx)(`path`,{d:`m27.43 79.47-.25.62-.7.53-131.52 65.76-1.05.35-1.24.12-1.24-.12-1.05-.35-.71-.53-.24-.62`,stroke:`currentColor`,strokeOpacity:`0.35`})]})]})}function b(){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(`rect`,{opacity:`0.5`,x:`0.678`,width:`31.838`,height:`31.838`,rx:`8.354`,transform:`matrix(0.852 -0.523 0.852 0.523 27.797 59.49)`,stroke:`currentColor`,strokeWidth:`0.796`}),(0,c.jsx)(`rect`,{opacity:`0.5`,x:`0.678`,width:`31.838`,height:`31.838`,rx:`8.354`,transform:`matrix(0.852 -0.523 0.852 0.523 58.569 78.359)`,stroke:`currentColor`,strokeWidth:`0.796`}),(0,c.jsx)(`rect`,{opacity:`0.5`,x:`0.678`,width:`31.838`,height:`31.838`,rx:`8.354`,transform:`matrix(0.852 -0.523 0.852 0.523 89.16 59.6)`,stroke:`currentColor`,strokeWidth:`0.796`}),(0,c.jsx)(`rect`,{opacity:`0.5`,x:`0.678`,width:`90.654`,height:`91.138`,rx:`13.128`,transform:`matrix(0.852 -0.523 0.852 0.523 8.195 59.148)`,stroke:`currentColor`,strokeWidth:`0.796`,strokeDasharray:`1.59 1.59`}),(0,c.jsx)(`rect`,{opacity:`0.5`,x:`0.678`,width:`13.926`,height:`13.926`,rx:`5.967`,transform:`matrix(0.852 -0.523 0.852 0.523 58.36 40.75)`,stroke:`currentColor`,strokeWidth:`0.796`}),(0,c.jsx)(`rect`,{opacity:`0.5`,x:`0.678`,width:`13.926`,height:`13.926`,rx:`5.967`,transform:`matrix(0.852 -0.523 0.852 0.523 73.34 31.564)`,stroke:`currentColor`,strokeWidth:`0.796`}),(0,c.jsx)(`rect`,{opacity:`0.5`,x:`0.678`,width:`13.926`,height:`13.926`,rx:`5.967`,transform:`matrix(0.852 -0.523 0.852 0.523 73.468 50.014)`,stroke:`currentColor`,strokeWidth:`0.796`}),(0,c.jsx)(`rect`,{opacity:`0.5`,x:`0.678`,width:`13.926`,height:`13.926`,rx:`5.967`,transform:`matrix(0.852 -0.523 0.852 0.523 88.448 40.828)`,stroke:`currentColor`,strokeWidth:`0.796`}),(0,c.jsxs)(`g`,{className:`motion-safe:transition-[translate,rotate] motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:-translate-y-1`,children:[(0,c.jsx)(`rect`,{x:`0.678`,width:`31.838`,height:`31.838`,rx:`8.354`,transform:`matrix(0.852 -0.523 0.852 0.523 27.797 54.023)`,className:`fill-background`,stroke:`currentColor`,strokeWidth:`0.796`}),(0,c.jsx)(`rect`,{x:`0.678`,width:`31.838`,height:`31.838`,rx:`8.354`,transform:`matrix(0.852 -0.523 0.852 0.523 58.569 72.892)`,className:`fill-background`,stroke:`currentColor`,strokeWidth:`0.796`}),(0,c.jsx)(`rect`,{x:`0.678`,width:`31.838`,height:`31.838`,rx:`8.354`,transform:`matrix(0.852 -0.523 0.852 0.523 89.16 54.133)`,className:`fill-background`,stroke:`currentColor`,strokeWidth:`0.796`})]}),(0,c.jsxs)(`g`,{className:`motion-safe:transition-[translate,rotate] motion-safe:delay-75 motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:-translate-y-2`,children:[(0,c.jsx)(`rect`,{x:`0.678`,width:`13.926`,height:`13.926`,rx:`5.967`,transform:`matrix(0.852 -0.523 0.852 0.523 58.359 35.283)`,className:`fill-background`,stroke:`currentColor`,strokeWidth:`0.796`}),(0,c.jsx)(`rect`,{x:`0.678`,width:`13.926`,height:`13.926`,rx:`5.967`,transform:`matrix(0.852 -0.523 0.852 0.523 73.34 26.097)`,className:`fill-background`,stroke:`currentColor`,strokeWidth:`0.796`}),(0,c.jsx)(`rect`,{x:`0.678`,width:`13.926`,height:`13.926`,rx:`5.967`,transform:`matrix(0.852 -0.523 0.852 0.523 73.468 44.547)`,className:`fill-background`,stroke:`currentColor`,strokeWidth:`0.796`}),(0,c.jsx)(`rect`,{x:`0.678`,width:`13.926`,height:`13.926`,rx:`5.967`,transform:`matrix(0.852 -0.523 0.852 0.523 88.448 35.361)`,className:`fill-background`,stroke:`currentColor`,strokeWidth:`0.796`})]})]})}var x={"--hover-shift":`0px -10.61px`};function S({id:e}){return(0,c.jsxs)(`g`,{strokeWidth:`0.9`,children:[(0,c.jsx)(`path`,{d:`m33.93 46.9.66-1.68 1.9-1.41 7.42-3.72 2.84-.95 3.35-.33 3.35.33 2.84.95L83.51 53.7l1.9 1.42.66 1.68v36.37l-.66 1.68-1.9 1.42-7.42 3.71-2.84.95-3.35.33-3.35-.33-2.84-.95-27.22-13.61-1.9-1.42-.66-1.68Z`,className:`fill-background`,stroke:`currentColor`,strokeOpacity:`0.7`}),(0,c.jsx)(`path`,{d:`m83.62 56.8-.48 1.2-1.36 1.03-7.43 3.71-2.04.68-2.41.24-2.41-.24-2.05-.68-27.22-13.61-1.36-1.03-.48-1.2`,stroke:`currentColor`,strokeOpacity:`0.35`}),(0,c.jsx)(`path`,{d:`m51.96 47.83-.63.26-.7.22-.76.16-.8.09-.83.04-.82-.04-.8-.09-.76-.16-.7-.22-.63-.26-.53-.32-.43-.35-.32-.38-.19-.4-.07-.41.07-.41.19-.4.32-.38.43-.35.53-.32.63-.26.7-.22.76-.16.8-.09.82-.03.83.03.8.09.76.16.7.22.63.26.53.32.43.35.32.38.19.4.06.41-.06.41-.19.4-.32.38-.43.35zm23.51 11.75-.63.27-.7.22-.76.15-.8.1-.82.03-.83-.03-.8-.1-.76-.15-.7-.22-.63-.27-.53-.31-.43-.35-.32-.38-.19-.4-.06-.41.06-.41.19-.4.32-.39.43-.35.53-.31.63-.27.7-.21.76-.16.8-.1.83-.03.82.03.8.1.76.16.7.21.63.27.53.31.43.35.32.39.19.4.07.41-.07.41-.19.4-.32.38-.43.35z`,stroke:`currentColor`,strokeOpacity:`0.7`,strokeLinecap:`round`}),(0,c.jsx)(`path`,{d:`m53.32 73.56-.04-.63-.12-.66-.19-.67-.27-.66-.32-.63-.39-.6-.43-.54-.47-.47-.49-.39-.5-.3-.5-.2-.49-.1h-.47l-.43.11-.38.21-.33.31-.27.39-.19.48-.12.54-.04.6.04.63.12.66.19.67.27.66.33.63.38.6.43.53.47.47.49.39.5.3.5.21.49.1h.47l.43-.11.39-.21.32-.31.27-.39.19-.48.12-.54zm-3.22 2.03v6.97`,stroke:`currentColor`,strokeLinecap:`round`}),(0,c.jsxs)(`mask`,{id:`${e}-shackle`,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`120`,height:`120`,children:[(0,c.jsx)(`rect`,{width:`120`,height:`120`,fill:`white`}),(0,c.jsx)(`path`,{d:`M43.24 45.97h10v60h-10Z`,fill:`black`}),(0,c.jsx)(`path`,{d:`M66.76 57.73h10v60h-10Z`,fill:`black`})]}),(0,c.jsx)(`g`,{mask:`url(#${e}-shackle)`,children:(0,c.jsxs)(`g`,{className:`motion-safe:transition-[translate,transform] motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:[translate:var(--hover-shift)]`,style:x,children:[(0,c.jsx)(`path`,{d:`M50.64 61.13v-30.3l.04-.97.09-.9.14-.83.2-.77.25-.7.29-.62.32-.55.35-.47.38-.39.4-.33.42-.27.44-.2.48-.16.52-.09.56-.04.6.03.65.1.69.18.72.25.75.34.76.42.78.5.78.59.78.65.77.73.74.8.73.86.69.91.66.97.62 1 .57 1.04.52 1.07.47 1.09.41 1.11.35 1.1.28 1.1.23 1.09.16 1.07.09 1.03.04 1.02v30.29h4.8V42.55l-.05-1.28-.12-1.31-.2-1.33-.27-1.34-.35-1.34-.43-1.34-.49-1.32-.56-1.3-.62-1.28-.68-1.25-.74-1.2-.79-1.16-.84-1.11-.89-1.05-.93-.99-.96-.92-1-.84-1.03-.77-1.06-.68-1.08-.59-1.09-.5-1.12-.39-1.12-.29-1.13-.17-1.13-.06-1.11.07-1.1.21-1.05.33-1 .47-.94.59-.86.71-.77.81-.67.9-.58.97-.48 1.05-.4 1.1-.3 1.16-.21 1.2-.12 1.23-.05 1.26v30.33Z`,className:`fill-background`,stroke:`currentColor`,strokeOpacity:`0.7`}),(0,c.jsx)(`path`,{d:`M47.4 61.13V30.81l.04-1.16.12-1.13.19-1.08.27-1.03.34-.97.42-.91.5-.84.57-.76.64-.67.7-.58.77-.49.83-.38.86-.28.91-.17.94-.06.95.05.98.15.98.25.98.35.99.44.97.54.97.62.95.71.92.78.9.86.87.92.84.99.79 1.05.75 1.1.7 1.14.65 1.18.58 1.21.53 1.23.47 1.25.4 1.26.33 1.26.26 1.26.18 1.25.12 1.22.04 1.19v30.32`,stroke:`currentColor`,strokeOpacity:`0.35`})]})})]})}function C(){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(`g`,{opacity:`0.5`,children:[(0,c.jsx)(`circle`,{cx:`6.187`,cy:`6.187`,r:`5.687`,transform:`matrix(0.85 -0.528 0.85 0.528 17.024 60.568)`,className:`fill-background`,stroke:`currentColor`}),(0,c.jsx)(`rect`,{x:`0.85`,width:`164.731`,height:`11.373`,rx:`5.687`,transform:`matrix(0.85 -0.528 0.85 0.528 31.419 52.158)`,className:`fill-background`,stroke:`currentColor`}),(0,c.jsx)(`circle`,{cx:`6.187`,cy:`6.187`,r:`5.687`,transform:`matrix(0.85 -0.528 0.85 0.528 33.543 70.825)`,className:`fill-background`,stroke:`currentColor`}),(0,c.jsx)(`rect`,{x:`0.85`,width:`164.731`,height:`11.373`,rx:`5.687`,transform:`matrix(0.85 -0.528 0.85 0.528 47.938 62.415)`,className:`fill-background`,stroke:`currentColor`}),(0,c.jsx)(`circle`,{cx:`6.187`,cy:`6.187`,r:`5.687`,transform:`matrix(0.85 -0.528 0.85 0.528 50.063 81.083)`,className:`fill-background`,stroke:`currentColor`}),(0,c.jsx)(`rect`,{x:`0.85`,width:`164.731`,height:`11.373`,rx:`5.687`,transform:`matrix(0.85 -0.528 0.85 0.528 64.458 72.673)`,className:`fill-background`,stroke:`currentColor`}),(0,c.jsx)(`circle`,{cx:`6.187`,cy:`6.187`,r:`5.687`,transform:`matrix(0.85 -0.528 0.85 0.528 66.582 91.34)`,className:`fill-background`,stroke:`currentColor`}),(0,c.jsx)(`rect`,{x:`0.85`,width:`164.731`,height:`11.373`,rx:`5.687`,transform:`matrix(0.85 -0.528 0.85 0.528 80.977 82.93)`,className:`fill-background`,stroke:`currentColor`})]}),(0,c.jsxs)(`g`,{className:`motion-safe:transition-[translate,rotate] motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:-translate-y-1`,children:[(0,c.jsx)(`circle`,{cx:`6.187`,cy:`6.187`,r:`5.687`,transform:`matrix(0.85 -0.528 0.85 0.528 17.368 55.615)`,className:`fill-background`,stroke:`currentColor`}),(0,c.jsx)(`rect`,{x:`0.85`,width:`164.731`,height:`11.373`,rx:`5.687`,transform:`matrix(0.85 -0.528 0.85 0.528 31.764 47.205)`,className:`fill-background`,stroke:`currentColor`})]}),(0,c.jsxs)(`g`,{className:`motion-safe:transition-[translate,rotate] motion-safe:delay-75 motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:-translate-y-1`,children:[(0,c.jsx)(`circle`,{cx:`6.187`,cy:`6.187`,r:`5.687`,transform:`matrix(0.85 -0.528 0.85 0.528 33.888 65.873)`,className:`fill-background`,stroke:`currentColor`}),(0,c.jsx)(`rect`,{x:`0.85`,width:`164.731`,height:`11.373`,rx:`5.687`,transform:`matrix(0.85 -0.528 0.85 0.528 48.283 57.462)`,className:`fill-background`,stroke:`currentColor`})]}),(0,c.jsxs)(`g`,{className:`motion-safe:transition-[translate,rotate] motion-safe:delay-150 motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:-translate-y-1`,children:[(0,c.jsx)(`circle`,{cx:`6.187`,cy:`6.187`,r:`5.687`,transform:`matrix(0.85 -0.528 0.85 0.528 50.407 76.13)`,className:`fill-background`,stroke:`currentColor`}),(0,c.jsx)(`rect`,{x:`0.85`,width:`164.731`,height:`11.373`,rx:`5.687`,transform:`matrix(0.85 -0.528 0.85 0.528 64.802 67.72)`,className:`fill-background`,stroke:`currentColor`})]}),(0,c.jsxs)(`g`,{className:`motion-safe:transition-[translate,rotate] motion-safe:delay-200 motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:-translate-y-1`,children:[(0,c.jsx)(`circle`,{cx:`6.187`,cy:`6.187`,r:`5.687`,transform:`matrix(0.85 -0.528 0.85 0.528 66.926 86.388)`,className:`fill-background`,stroke:`currentColor`}),(0,c.jsx)(`rect`,{x:`0.85`,width:`164.731`,height:`11.373`,rx:`5.687`,transform:`matrix(0.85 -0.528 0.85 0.528 81.322 77.977)`,className:`fill-background`,stroke:`currentColor`})]})]})}function w(){return(0,c.jsxs)(`g`,{strokeWidth:`0.9`,children:[(0,c.jsx)(`path`,{d:`m39.75 69.57.08-.88.23-.87.38-.87.53-.84.68-.81.81-.79.95-.74 1.08-.7 1.19-.65 1.3-.6 1.41-.54 1.48-.47 1.57-.41 1.63-.34 1.69-.27 1.72-.19 1.76-.11 1.76-.04 1.76.04 1.76.11 1.72.19 1.69.27 1.63.34 1.57.41 1.48.47 1.41.54 1.3.6 1.19.65 1.08.7.95.74.81.79.68.81.53.84.38.87.23.87.08.88v7.15l-.08.88-.23.88-.38.86-.53.84-.68.82-.81.78-.95.75-1.08.7-1.19.65-1.3.6-1.41.53-1.48.48-1.57.41-1.63.33-1.69.27-1.72.19-1.76.12-1.76.03-1.76-.03-1.76-.12-1.72-.19-1.69-.27-1.63-.33-1.56-.41-1.49-.48-1.41-.53-1.3-.6-1.19-.65-1.08-.7-.95-.75-.81-.78-.68-.82-.53-.84-.38-.86-.23-.88-.08-.88Z`,className:`fill-background`,stroke:`currentColor`,strokeOpacity:`0.7`}),(0,c.jsx)(`path`,{d:`m78 69.57-.07.79-.2.78-.34.76-.48.75-.6.73-.72.69-.85.67-.95.62-1.06.58-1.16.53-1.25.48-1.32.42-1.39.36-1.45.3-1.5.24-1.53.17-1.56.1-1.57.03-1.57-.03-1.56-.1-1.53-.17-1.5-.24-1.45-.3-1.39-.36-1.32-.42-1.25-.48-1.16-.53-1.06-.58-.95-.62-.85-.67-.72-.69-.6-.73-.48-.75-.34-.76-.2-.78-.07-.79`,stroke:`currentColor`,strokeOpacity:`0.35`}),(0,c.jsx)(`path`,{d:`m52.52 62.64.5-.46.61-.42.71-.38.8-.33.87-.28.94-.22.99-.17 1.02-.09 1.04-.04 1.04.04 1.02.09.99.17.94.22.87.28.8.33.71.38.61.42.5.46v-11.7l-.5-.45-.61-.42-.71-.38-.8-.33-.87-.28-.94-.23-.99-.16-1.02-.09-1.04-.04-1.04.04-1.02.09-.99.16-.94.23-.87.28-.8.33-.71.38-.61.42-.5.45z`,stroke:`currentColor`,strokeOpacity:`0.35`}),(0,c.jsx)(`path`,{d:`M60 69.57v-7.66`,stroke:`currentColor`,strokeOpacity:`0.7`,strokeLinecap:`round`}),(0,c.jsx)(`path`,{d:`m63.9 58.53-.07.76-.23.74-.36.67-.48.59-.59.49-.68.36-.73.22-.76.07-.76-.07-.73-.22-.68-.36-.59-.49-.48-.59-.36-.67-.23-.74-.07-.76.07-.76.23-.73.36-.67.48-.59.59-.49.68-.36.73-.22.76-.08.76.08.73.22.68.36.59.49.48.59.36.67.23.73Z`,className:`fill-background`,stroke:`currentColor`}),(0,c.jsxs)(`g`,{className:`opacity-0 motion-safe:transition-opacity motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:opacity-100`,children:[(0,c.jsx)(`path`,{d:`M39 58.53h-6`,stroke:`currentColor`,strokeLinecap:`round`}),(0,c.jsx)(`path`,{d:`m42.8 46.49-4.92-3.44`,stroke:`currentColor`,strokeLinecap:`round`}),(0,c.jsx)(`path`,{d:`m52.82 38.8-2.05-5.64`,stroke:`currentColor`,strokeLinecap:`round`}),(0,c.jsx)(`path`,{d:`m67.18 38.8 2.05-5.64`,stroke:`currentColor`,strokeLinecap:`round`}),(0,c.jsx)(`path`,{d:`m77.2 46.49 4.92-3.44`,stroke:`currentColor`,strokeLinecap:`round`}),(0,c.jsx)(`path`,{d:`M81 58.53h6`,stroke:`currentColor`,strokeLinecap:`round`})]}),(0,c.jsx)(`path`,{d:`m46.5 52.04.12-1.53.05-.58.34-1.49.15-.56.56-1.4.23-.53.76-1.27.3-.49.39-.47.89-1.06.43-.42 1.01-.86.45-.35.51-.33 1.01-.58.49-.26.53-.25.57-.21.6-.2.74-.21.52-.14.54-.11.56-.09.58-.06.58-.04.59-.01.59.01.58.04.58.06.56.09.54.11.53.14.73.21.6.2.57.21.53.25.49.26 1.01.58.51.33.45.35 1.01.86.43.42.89 1.06.39.47.3.49.76 1.27.23.53.56 1.4.15.56.34 1.49.05.58.12 1.53v17.53l-.05.59-.16.59-.25.57-.35.56-.45.55-.55.52-.63.5-.72.46-.79.44-.87.4-.94.35-.99.32-1.04.27-1.09.23-1.13.17-1.15.13-1.16.08-1.18.02-1.18-.02-1.16-.08-1.15-.13-1.13-.17-1.09-.23-1.04-.27-.99-.32-.94-.35-.87-.4-.79-.44-.72-.46-.63-.5-.55-.52-.45-.55-.35-.56-.25-.57-.16-.59-.05-.59Z`,stroke:`currentColor`,strokeOpacity:`0.7`})]})}var T={"--hover-shift":`0px -8.79px`};function E({id:e}){return(0,c.jsxs)(`g`,{strokeWidth:`0.9`,children:[(0,c.jsx)(`path`,{d:`m27.72 60.18.66-1.66 1.89-1.41 14.35-7.18 2.82-.94 3.33-.34 3.33.34 2.82.94 32.81 16.4 1.89 1.41.66 1.67v17.58l-.66 1.66-1.89 1.42-14.35 7.17-2.82.95-3.33.33-3.33-.33-2.82-.95-32.81-16.4-1.89-1.41-.66-1.67Z`,className:`fill-background`,stroke:`currentColor`,strokeOpacity:`0.7`}),(0,c.jsx)(`path`,{d:`m89.96 69.41-.48 1.22-1.39 1.03-14.35 7.18-2.07.69-2.44.25-2.44-.25-2.07-.69-32.81-16.4-1.39-1.04-.48-1.22`,stroke:`currentColor`,strokeOpacity:`0.35`}),(0,c.jsx)(`path`,{d:`m74.35 70.95-.65.22-.78.07-.78-.07-.66-.22-23.78-11.9-.44-.33-.16-.38.16-.39.44-.33.65-.22.78-.08.78.08.66.22 23.78 11.89.44.33.16.39-.16.39z`,stroke:`currentColor`,strokeOpacity:`0.35`}),(0,c.jsx)(`path`,{d:`m62.46 90.66-.02-.29-.05-.29-.09-.3-.11-.29-.15-.29-.17-.26-.19-.24-.21-.21-.22-.18-.22-.13-.23-.09-.22-.05-.21.01-.19.04-.17.1-.15.13-.11.18-.09.21-.05.24-.02.27.02.28.05.3.09.3.11.29.15.28.17.27.19.24.21.21.22.17.23.14.22.09.22.04h.21l.19-.05.17-.09.15-.14.11-.17.09-.22.05-.24z`,stroke:`currentColor`,strokeOpacity:`0.7`,strokeLinecap:`round`}),(0,c.jsx)(`mask`,{id:`${e}-slip`,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`120`,height:`120`,children:(0,c.jsx)(`path`,{d:`m46.26-42.12 2.87-1.44 26.66 13.33V70.23l-2.87 1.43-26.66-13.32Z`,fill:`white`})}),(0,c.jsx)(`g`,{mask:`url(#${e}-slip)`,children:(0,c.jsx)(`g`,{className:`motion-safe:transition-[translate,transform] motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:[translate:var(--hover-shift)]`,style:T,children:(0,c.jsx)(`path`,{d:`m50.77 70.46 20.51 10.25V31.74l-1.71 1.9-1.71-3.61-1.71 1.91-1.71-3.62-1.71 1.91-1.7-3.62-1.71 1.91-1.71-3.62-1.71 1.91-1.71-3.62-1.71 1.91-1.71-3.62Z`,className:`fill-background`,stroke:`currentColor`,strokeLinejoin:`round`})})})]})}var D={"--hover-shift":`0px 16.89px`};function O({id:e}){return(0,c.jsxs)(`g`,{strokeWidth:`0.9`,children:[(0,c.jsx)(`path`,{d:`m29.79 49.69.68-1.72 1.95-1.46 12.73-6.37 2.92-.97 3.44-.35 3.45.35 2.92.97 29.7 14.85 1.95 1.46.68 1.72v23.39l-.68 1.72-1.95 1.46-12.73 6.36-2.92.98-3.44.34-3.45-.34-2.92-.98-29.7-14.85-1.95-1.46-.68-1.72Z`,className:`fill-background`,stroke:`currentColor`,strokeOpacity:`0.7`}),(0,c.jsx)(`path`,{d:`m87.81 58.17-.5 1.27-1.43 1.07-12.73 6.36-2.14.72-2.52.25-2.53-.25-2.14-.72-29.7-14.85-1.43-1.07-.5-1.26`,stroke:`currentColor`,strokeOpacity:`0.35`}),(0,c.jsx)(`path`,{d:`m74.32 61.09-.68.23-.81.08-.8-.08-.68-.23-25.67-12.83-.45-.34-.16-.41.16-.4.45-.34.68-.23.81-.08.8.08.68.23 25.67 12.84.45.34.16.4-.16.4z`,stroke:`currentColor`,strokeOpacity:`0.35`}),(0,c.jsx)(`mask`,{id:`${e}-letter`,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`120`,height:`120`,children:(0,c.jsx)(`path`,{d:`m44.2-56.41 2.97-1.48L75.8-43.57V60.35l-2.97 1.48L44.2 47.51Z`,fill:`white`})}),(0,c.jsx)(`g`,{mask:`url(#${e}-letter)`,children:(0,c.jsxs)(`g`,{className:`motion-safe:transition-[translate,transform] motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:[translate:var(--hover-shift)]`,style:D,children:[(0,c.jsx)(`path`,{d:`m47.8 29.14.05-.38.12-.32.21-.22 1.06-.53.26-.11.31-.01.33.11 20.78 10.4.33.22.31.31.26.38.21.42.12.44.05.42v35.86l-.05.38-.12.31-.21.22-1.06.53-.26.12h-.31l-.33-.11-20.78-10.39-.33-.22-.31-.31-.26-.38-.21-.42-.12-.44-.05-.43Z`,className:`fill-background`,stroke:`currentColor`,strokeOpacity:`0.7`}),(0,c.jsx)(`path`,{d:`m70.18 40.59-.02-.18-.05-.18-.08-.18-.11-.16-.13-.13-.14-.09-20.36-10.18-.14-.05h-.13l-.11.05-.08.1-.05.13-.02.15v35.34l.02.18.05.18.08.18.11.15.13.13.14.09 20.36 10.19.14.04h.13l.11-.05.08-.09.05-.13.02-.16Z`,stroke:`currentColor`,strokeOpacity:`0.35`}),(0,c.jsx)(`path`,{d:`M49.39 30.32 59.47 43.8l10.08-3.4`,stroke:`currentColor`,strokeLinecap:`round`})]})})]})}function k(){return(0,c.jsxs)(`g`,{strokeWidth:`0.9`,children:[(0,c.jsxs)(`g`,{className:`motion-safe:group-hover/empty-state:animate-[empty-state-swing_1.6s_ease-in-out]`,style:{transformBox:`view-box`,transformOrigin:`60.06px 12.63px`},children:[(0,c.jsx)(`path`,{d:`m56.1 44.75 2.48-20.74 1.48-11.38m3.96 36.08L61.55 25.5l-1.49-12.87`,stroke:`currentColor`,strokeOpacity:`0.7`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,c.jsx)(`path`,{d:`m39.89 37.49.17-1.48.49-1.22.79-.86 3.09-1.54 1.03-.46h1.19l1.28.43 27.23 13.61 1.28.85 1.19 1.2 1.03 1.48.78 1.65.5 1.71.17 1.65v48.5l-.17 1.48-.5 1.22-.78.86-3.1 1.54-1.02.46h-1.19l-1.29-.43-27.22-13.61-1.28-.85-1.19-1.2L41.34 91l-.79-1.65-.49-1.71-.17-1.65Z`,className:`fill-background`,stroke:`currentColor`,strokeOpacity:`0.7`}),(0,c.jsx)(`path`,{d:`m75.28 55.19-.11-1.08-.32-1.11-.51-1.07-.67-.96-.77-.78-.84-.55-27.22-13.61-.83-.28h-.78l-.66.29-.52.57-.32.78-.11.97v48.5l.11 1.07.32 1.11.52 1.07.66.96.78.79.83.55 27.22 13.61.84.28.77-.01.67-.29.51-.56.32-.79.11-.96Z`,stroke:`currentColor`,strokeOpacity:`0.35`}),(0,c.jsx)(`path`,{d:`m63.4 50.01-.09-.63-.27-.63-.4-.52-.48-.36-7.42-3.71-.47-.12-.4.13-.27.35-.1.54.1.62.27.63.4.53.47.35 7.42 3.71.48.13.4-.13.27-.36z`,stroke:`currentColor`,strokeOpacity:`0.7`}),(0,c.jsx)(`path`,{d:`m60.93 60.89-.24-1.56-.67-1.57-1-1.32-1.19-.88-8.66-4.33-1.18-.31-1.01.32-.67.9-.23 1.33v10.61l.23 1.57.67 1.56 1.01 1.32 1.18.88 8.66 4.33 1.19.31 1-.32.67-.89.24-1.34Zm-4.7.68-.04-.53-.1-.56-.16-.57-.22-.56-.28-.53-.33-.5-.36-.46-.4-.4-.41-.33-.43-.25-.42-.17-.42-.09h-.39l-.37.1-.32.17-.28.26-.22.34-.17.4-.1.46-.03.5.03.54.1.56.17.56.22.56.28.54.32.5.37.46.39.39.42.33.42.26.43.17.41.08h.4l.36-.09.33-.18.28-.26.22-.33.16-.4.1-.46z`,stroke:`currentColor`,strokeLinecap:`round`}),(0,c.jsx)(`path`,{d:`m46.08 75.44 24.75 12.38m-24.75-6.31 17.32 8.66m-17.32-2.6 21.03 10.52`,stroke:`currentColor`,strokeOpacity:`0.7`,strokeLinecap:`round`})]}),(0,c.jsx)(`circle`,{cx:`60.06`,cy:`12.63`,r:`1.2`,className:`fill-background`,stroke:`currentColor`})]})}var A={"--hover-transform":`matrix(-0.766, -0.3214, 1.2856, -0.766, 0, 0)`,transformOrigin:`60px 54.46px`,transformBox:`view-box`};function j(){return(0,c.jsxs)(`g`,{strokeWidth:`0.9`,children:[(0,c.jsx)(`path`,{d:`m18.4 54.46.2-2.04.6-2.02.99-1.98 1.38-1.92 1.74-1.85 2.1-1.75 2.43-1.64 2.74-1.51 3.03-1.37 3.28-1.21 3.5-1.05 3.69-.88 3.84-.68 3.96-.5 4.04-.3 4.08-.1 4.08.1 4.04.3 3.96.5 3.84.68 3.69.88 3.5 1.05 3.28 1.21 3.03 1.37 2.74 1.51 2.43 1.64 2.1 1.75 1.74 1.85 1.38 1.92.99 1.98.6 2.02.2 2.04v11.09l-.2 2.03-.6 2.02-.99 1.98-1.38 1.92-1.74 1.85-2.1 1.75-2.43 1.64-2.74 1.51-3.03 1.37-3.28 1.22-3.5 1.05-3.69.87-3.84.69-3.96.5-4.04.29-4.08.11-4.08-.11-4.04-.29-3.96-.5-3.84-.69-3.69-.87-3.5-1.05-3.28-1.22-3.03-1.37-2.74-1.51-2.43-1.64-2.1-1.75-1.74-1.85-1.38-1.92-.99-1.98-.6-2.02-.2-2.03Z`,className:`fill-background`,stroke:`currentColor`,strokeOpacity:`0.7`}),(0,c.jsx)(`path`,{d:`m99.2 54.46-.19 1.92-.56 1.9-.94 1.87-1.29 1.81-1.65 1.74-1.98 1.65-2.29 1.54-2.58 1.43-2.85 1.29-3.09 1.15-3.3.99-3.48.82-3.62.65-3.73.46-3.81.29-3.84.09-3.84-.09-3.81-.29-3.73-.46-3.62-.65-3.48-.82-3.3-.99-3.09-1.15-2.85-1.29-2.58-1.43-2.29-1.54-1.98-1.65-1.65-1.74-1.29-1.81-.94-1.87-.56-1.9-.19-1.92`,stroke:`currentColor`,strokeOpacity:`0.35`}),(0,c.jsx)(`path`,{d:`M32 54.46h-5.6m8.65-6.36-4.99-1.27m13.48-3.7-3.29-2.26m15.37-.24-.88-2.76m13.91 3.28 1.73-2.67m9.42 6.08 3.96-1.98m2.87 7.55 5.33-.86m-4.3 7.38 5.53.44`,stroke:`currentColor`,strokeOpacity:`0.7`,strokeLinecap:`round`}),(0,c.jsx)(`path`,{d:`m79.42 61.51 7.76 2.82m-16.28.82 4.35 4.28M60 66.46v4.8`,stroke:`currentColor`,strokeWidth:`1.4`,strokeLinecap:`round`}),(0,c.jsx)(`g`,{className:`motion-safe:transition-[translate,transform] motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:[transform:var(--hover-transform)]`,style:A,children:(0,c.jsx)(`path`,{d:`m60 54.46 8.76 12.03`,stroke:`currentColor`,strokeLinecap:`round`})}),(0,c.jsx)(`path`,{d:`m55.2 51 .16-.63.48-.57.77-.5.99-.38 1.16-.24L60 48.6l1.24.08 1.16.24.99.38.77.5.48.57.16.63v3.46l-.16.62-.48.58-.77.5-.99.38-1.16.24-1.24.08-1.24-.08-1.16-.24-.99-.38-.77-.5-.48-.58-.16-.62Z`,className:`fill-background`,stroke:`currentColor`,strokeOpacity:`0.7`}),(0,c.jsx)(`path`,{d:`m63.52 51-.12.45-.35.43-.56.36-.73.28-.85.18-.91.06-.91-.06-.85-.18-.73-.28-.56-.36-.35-.43-.12-.45`,stroke:`currentColor`,strokeOpacity:`0.35`})]})}function M(){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(`circle`,{opacity:`0.5`,cx:`64.739`,cy:`64.739`,r:`64.1`,transform:`matrix(0.85 -0.527 0.85 0.527 -5.498 58.982)`,stroke:`currentColor`,strokeWidth:`1.279`,strokeDasharray:`2.56 2.56`}),(0,c.jsx)(`path`,{opacity:`0.5`,d:`m49.78 92.95.54.34 1.1-.68-.55-.34-.54-.34-1.1.68zm3.28-2.04.55.34 2.19-1.36-.55-.34-.54-.33-2.19 1.36zm4.38-2.71.55.33 2.19-1.36-.55-.33-.54-.34-2.2 1.36zm4.38-2.72.54.33 2.2-1.35-.55-.34-.54-.34-2.2 1.36zm4.38-2.72.54.34 2.2-1.36-.55-.34-.54-.34-2.2 1.36zm4.38-2.72.54.34 2.2-1.36-.55-.34-.54-.33-2.2 1.36zm4.38-2.71.54.33 2.2-1.36-.55-.33-.54-.34-2.2 1.36zm4.38-2.72.54.33 2.2-1.35-.55-.34-.54-.34-2.2 1.36zm4.38-2.72.54.34 2.2-1.36-.55-.34-.54-.34-2.2 1.36zm4.38-2.72.54.34 2.2-1.36-.55-.34-.54-.33-2.2 1.36zm4.38-2.71.54.33 2.2-1.36-.55-.33-.55-.34-2.19 1.36zm4.38-2.72.54.33 2.19-1.35-.54-.34-.55-.34-2.19 1.36zm4.38-2.72.54.34 2.19-1.36-.54-.34-.55-.34-2.19 1.36zm4.38-2.72.54.34 2.19-1.36-.54-.34-.55-.33-2.19 1.36zM110 55.6l.54.33 2.19-1.36-.54-.33-.55-.34-2.19 1.36zm4.38-2.72.54.33 2.19-1.35-.55-.34-.54-.34-2.19 1.36zm4.38-2.72.54.34 2.19-1.36-.55-.34-.54-.34-2.19 1.36zm4.37-2.72.55.34 2.19-1.36-.55-.34-.54-.33-2.19 1.36zm4.38-2.71.55.33 2.19-1.36-.55-.33-.54-.34-2.19 1.36zM131.9 42l.55.33 2.19-1.35-.55-.34-.54-.34-2.19 1.36zm4.38-2.72.55.34 2.19-1.36-.55-.34-.54-.34-2.19 1.36zm4.38-2.72.55.34 2.19-1.36-.55-.34-.54-.33-2.2 1.36zm4.38-2.71.54.33 2.2-1.36-.55-.33-.54-.34-2.2 1.36zm4.38-2.72.54.33 2.2-1.35-.55-.34-.54-.34-2.2 1.36zm4.38-2.72.54.34 2.2-1.36-.55-.34-.54-.34-2.2 1.36zm4.38-2.72.54.34 1.1-.68-.55-.34-.54-.33-1.1.68z`,fill:`currentColor`}),(0,c.jsx)(`path`,{opacity:`0.5`,d:`m29.82 70.36.54.34 1-.62-.55-.33-.54-.34-1 .62zm2.98-1.85.55.34 1.99-1.24-.55-.33-.54-.34-1.99 1.23zm3.98-2.47.55.34 1.98-1.24-.54-.33-.54-.34-2 1.24zm3.98-2.47.54.34 1-.62-.54-.33-.55-.34-1 .62zm19.8-12.28.55.33 1.1-.69-.54-.33-.54-.34-1.11.69zm3.34-2.07.54.33 2.23-1.38-.55-.34-.54-.33-2.22 1.38zm4.45-2.77.54.34 2.23-1.38-.55-.34-.54-.33-2.22 1.38zm4.45-2.76.54.34 2.23-1.38-.55-.34-.54-.33-2.22 1.38zm4.45-2.76.54.34 2.23-1.38-.55-.34-.54-.34-2.22 1.38zm4.45-2.76.54.34 2.23-1.38-.55-.34-.54-.34-2.22 1.38zm4.45-2.76.54.34 2.23-1.38-.55-.34-.54-.34-2.22 1.38zm4.45-2.76.54.34 2.23-1.39-.55-.33-.54-.34-2.22 1.38zm4.45-2.76.54.33 2.23-1.38-.54-.33-.55-.34-2.22 1.38zm4.45-2.76.54.33 2.23-1.38-.55-.34-.54-.33-2.22 1.38zm4.45-2.77.54.34 2.23-1.38-.55-.34-.54-.33-2.22 1.38zm4.45-2.76.54.34 2.23-1.38-.55-.34-.54-.33-2.22 1.38zm4.45-2.76.54.34 2.23-1.38-.55-.34-.54-.34-2.22 1.38zm4.45-2.76.54.34 2.23-1.38-.54-.34-.55-.34-2.22 1.38zm4.45-2.76.54.34 1.12-.7-.55-.33-.54-.34-1.11.7z`,fill:`currentColor`}),(0,c.jsx)(`path`,{opacity:`0.5`,d:`m86.18 105.34.54.33 1.11-.69-.54-.33-.55-.34-1.1.69zm3.32-2.07.55.34 2.21-1.37-.54-.34-.54-.34-2.22 1.38zm4.43-2.75.55.34 2.21-1.37-.54-.34-.54-.34-2.22 1.38zm4.43-2.74.55.33 2.21-1.37-.54-.34-.54-.34-2.22 1.38zm4.44-2.75.54.33 2.21-1.37-.54-.34-.54-.34-2.22 1.38zm4.43-2.75.54.33 2.22-1.37-.55-.34-.54-.34-2.22 1.38zm4.43-2.75.54.33 2.22-1.37-.55-.34-.54-.33-2.22 1.37zm4.43-2.75.54.34 2.22-1.38-.55-.34-.54-.33-2.22 1.37zm4.43-2.75.54.34 2.22-1.38-.55-.34-.54-.33-2.22 1.37zm4.43-2.75.54.34 2.22-1.38-.55-.33-.54-.34-2.21 1.37zm4.43-2.75.54.34 2.22-1.38-.54-.33-.55-.34-2.21 1.37zm4.43-2.75.54.34 2.22-1.38-.54-.33-.55-.34-2.21 1.37zm4.43-2.75.54.34 2.22-1.38-.54-.33-.55-.34-2.21 1.37zm4.43-2.75.55.34 2.21-1.37-.54-.34-.55-.34-2.21 1.38zm4.43-2.75.55.34 2.21-1.37-.54-.34-.55-.34-2.21 1.38zm4.43-2.75.55.34 2.21-1.37-.54-.34-.54-.34-2.22 1.38zm4.43-2.75.55.34 2.21-1.37-.54-.34-.55-.34-2.21 1.38zm4.43-2.74.55.33 2.21-1.37-.54-.34-.54-.34-2.22 1.38zm4.44-2.75.54.33 2.21-1.37-.54-.34-.54-.34-2.22 1.38zm4.42-2.75.55.33 2.21-1.37-.54-.34-.54-.33-2.22 1.37zm4.44-2.75.54.34 2.21-1.38-.54-.34-.54-.33-2.22 1.37zm4.43-2.75.54.34 1.1-.7-.54-.33-.54-.34-1.1.7z`,fill:`currentColor`}),(0,c.jsx)(`path`,{opacity:`0.5`,d:`m159.26 92.95.55-.34-1.1-.68-.54.34-.54.34 1.1.68zm-3.28-2.04.54-.33-2.19-1.36-.54.33-.54.34 2.19 1.36zm-4.38-2.71.54-.34-2.18-1.36-.55.34-.54.33 2.19 1.36zm-4.38-2.72.54-.34-2.19-1.36-.54.34-.54.34 2.19 1.35zm-4.38-2.72.54-.34-2.18-1.36-.55.34-.54.34 2.19 1.36zm-4.38-2.72.55-.33-2.2-1.36-.54.33-.54.34 2.19 1.36zm-4.38-2.71.55-.34-2.2-1.36-.54.34-.54.33 2.19 1.36zm-4.38-2.72.55-.34-2.2-1.36-.54.34-.54.34 2.19 1.35zm-4.38-2.72.55-.34-2.2-1.36-.54.34-.54.34 2.2 1.36zm-4.37-2.72.54-.33-2.2-1.36-.54.33-.54.34 2.2 1.36zm-4.39-2.71.55-.34-2.2-1.36-.53.34-.55.33 2.2 1.36zm-4.37-2.72.54-.34-2.2-1.36-.53.34-.55.34 2.2 1.35zm-4.38-2.72.54-.34-2.19-1.36-.54.34-.55.34 2.2 1.36zm-4.38-2.72.54-.33-2.19-1.36-.54.33-.55.34 2.2 1.36zm-4.38-2.71.54-.34-2.19-1.36-.54.34-.55.33 2.2 1.36zm-4.38-2.72.54-.34-2.19-1.36-.54.34-.55.34 2.2 1.35zm-4.38-2.72.54-.34-2.19-1.36-.54.34-.54.34 2.19 1.36zm-4.38-2.72.54-.33-2.19-1.36-.54.33-.54.34 2.19 1.36zm-4.38-2.71.54-.34-2.19-1.36-.54.34-.54.33 2.19 1.36zM77.15 42l.54-.34-2.19-1.36-.54.34-.54.34 2.19 1.35zm-4.38-2.72.54-.34-2.19-1.36-.54.34-.54.34 2.19 1.36zm-4.38-2.72.54-.33-2.19-1.36-.54.33-.54.34 2.19 1.36zm-4.38-2.71.54-.34-2.19-1.36-.54.34-.54.33 2.19 1.36zm-4.38-2.72.55-.34-2.2-1.36-.54.34-.54.34 2.19 1.35zm-4.38-2.72.55-.34-2.2-1.36-.54.34-.54.34 2.19 1.36zm-4.38-2.72.55-.33-1.1-.68-.54.33-.55.34 1.1.68z`,fill:`currentColor`}),(0,c.jsx)(`path`,{opacity:`0.5`,d:`m58.13 63.97-.62.28 1.04.86.61-.29.61-.29-1.03-.85zm3.14 2.54-.6.3 2.17 1.67.6-.3.58-.3-2.15-1.67zm4.37 3.3-.58.31 2.26 1.62.58-.31.57-.32-2.25-1.6zm4.56 3.2-.57.33L72 74.9l.56-.33.56-.33q-1.2-.78-2.34-1.56zm4.74 3.1-.55.34 1.22.76.54-.34.55-.33-1.21-.76zm1.21.76-.54.34 1.13.7.54-.35.53-.33-1.11-.7zm3.4 2.06-.54.34 2.3 1.34.53-.35.52-.35q-1.15-.65-2.29-1.33zm4.63 2.65-.52.36 2.38 1.3.5-.37.5-.36q-1.17-.63-2.35-1.29zm4.77 2.56-.5.37 2.45 1.24.49-.37.48-.37q-1.22-.6-2.43-1.24zm4.9 2.46-.46.37 2.51 1.2.46-.38.47-.39q-1.26-.58-2.5-1.18zm5.05 2.35-.45.38 2.58 1.14.44-.39.44-.4q-1.27-.55-2.56-1.12zm5.18 2.23-.43.4q1.32.56 2.65 1.08l.42-.4.41-.4-2.62-1.07zm5.3 2.12-.4.4q1.37.52 2.72 1.01l.4-.4.38-.42q-1.35-.48-2.69-1zm5.45 1.98-.37.41q1.39.49 2.78.94l.36-.42.36-.42q-1.37-.45-2.75-.93zm5.57 1.83-.34.42q1.43.45 2.85.86l.33-.43.33-.43-2.82-.85zm5.7 1.67-.3.43q1.46.4 2.92.78l.29-.44.3-.44q-1.45-.37-2.9-.77zm5.84 1.48-.27.45q1.5.36 2.99.67l.25-.45.25-.45q-1.47-.3-2.95-.66zm5.96 1.29-.23.45 1.52.29.22-.46.22-.46-1.5-.28zm-93.33-50.9.68-.22-.67-.8-.69.21-.68.22.68.81zm-1.98-2.44.7-.2-1.24-1.65-.7.2-.7.2q.6.82 1.25 1.66zm-2.42-3.32.7-.18q-.57-.84-1.1-1.68l-.72.18-.71.17q.54.85 1.12 1.7zM38 41.51l.72-.17-.97-1.7-.73.15-.72.15q.45.86.97 1.73zm-1.87-3.46.74-.14-.41-.86-.74.13-.74.13q.2.44.42.88zm21.99 25.92-.62.28 1.04.86.61-.29.61-.29-1.03-.85zm3.14 2.54-.6.3 2.17 1.67.6-.3.58-.3-2.15-1.67zm4.37 3.3-.58.31 2.26 1.62.58-.31.57-.32-2.25-1.6zm4.56 3.2-.57.33L72 74.9l.56-.33.56-.33q-1.2-.78-2.34-1.56zm4.74 3.1-.55.34 1.22.76.54-.34.55-.33-1.21-.76zm1.21.76-.54.34 1.13.7.54-.35.53-.33-1.11-.7zm3.4 2.06-.54.34 2.3 1.34.53-.35.52-.35q-1.15-.65-2.29-1.33zm4.63 2.65-.52.36 2.38 1.3.5-.37.5-.36q-1.17-.63-2.35-1.29zm4.77 2.56-.5.37 2.45 1.24.49-.37.48-.37q-1.22-.6-2.43-1.24zm4.9 2.46-.46.37 2.51 1.2.46-.38.47-.39q-1.26-.58-2.5-1.18zm5.05 2.35-.45.38 2.58 1.14.44-.39.44-.4q-1.27-.55-2.56-1.12zm5.18 2.23-.43.4q1.32.56 2.65 1.08l.42-.4.41-.4-2.62-1.07zm5.3 2.12-.4.4q1.37.52 2.72 1.01l.4-.4.38-.42q-1.35-.48-2.69-1zm5.45 1.98-.37.41q1.39.49 2.78.94l.36-.42.36-.42q-1.37-.45-2.75-.93zm5.57 1.83-.34.42q1.43.45 2.85.86l.33-.43.33-.43-2.82-.85zm5.7 1.67-.3.43q1.46.4 2.92.78l.29-.44.3-.44q-1.45-.37-2.9-.77zm5.84 1.48-.27.45q1.5.36 2.99.67l.25-.45.25-.45q-1.47-.3-2.95-.66zm5.96 1.29-.23.45 1.52.29.22-.46.22-.46-1.5-.28zm-93.33-50.9.68-.22-.67-.8-.69.21-.68.22.68.81zm-1.98-2.44.7-.2-1.24-1.65-.7.2-.7.2q.6.82 1.25 1.66zm-2.42-3.32.7-.18q-.57-.84-1.1-1.68l-.72.18-.71.17q.54.85 1.12 1.7zM38 41.51l.72-.17-.97-1.7-.73.15-.72.15q.45.86.97 1.73zm-1.87-3.46.74-.14-.41-.86-.74.13-.74.13q.2.44.42.88z`,fill:`currentColor`}),(0,c.jsx)(`path`,{opacity:`0.5`,d:`m175.08 79.7-.74.13-.45-.93.73-.14.73-.14.47.94zm-1.44-2.8-.73.16q-.51-.9-1.07-1.83l.72-.17.72-.17q.57.93 1.08 1.86zm-2.24-3.66-.71.18q-.6-.89-1.23-1.79l.7-.19.7-.2 1.25 1.82zm-2.55-3.58-.7.2q-.66-.87-1.37-1.74l.69-.22.69-.21q.71.9 1.38 1.77zm-2.83-3.5-.68.23q-.72-.85-1.5-1.71l.68-.23.67-.24 1.51 1.73zm-3.07-3.41-.66.24q-.8-.84-1.62-1.67l.66-.25.65-.25q.84.84 1.63 1.68zm-3.3-3.34-.65.26-1.72-1.63.64-.27.64-.26q.9.83 1.74 1.64zm-3.5-3.25-.64.27-1.81-1.59.62-.28.62-.28 1.83 1.6zm-3.7-3.17-.62.28-1.9-1.55.6-.29.6-.3 1.93 1.57zm-3.88-3.1-.6.3q-.97-.75-1.99-1.5l.59-.3.59-.31q1.02.75 2 1.52zm-4.04-3-.58.32q-1.03-.74-2.08-1.47l.58-.32.57-.31 2.09 1.47zm-4.2-2.92-.57.33q-1.05-.72-2.15-1.42l.56-.33.56-.33q1.1.7 2.16 1.43zm-4.36-2.83-.54.34-1.11-.7.54-.33.55-.34 1.11.7zm-1.1-.7-.55.34-1.13-.7.54-.33.54-.34 1.14.7zm-3.43-2.07-.53.35-2.31-1.35.52-.35.52-.35 2.33 1.36zm-4.68-2.67-.51.35-2.39-1.3.5-.36.5-.36 2.41 1.31zm-4.83-2.59-.49.37-2.45-1.25.48-.37.48-.37q1.24.61 2.48 1.26zm-4.96-2.47-.47.37-2.52-1.2.46-.37.46-.39 2.55 1.2zm-5.1-2.37-.45.38-2.59-1.13.44-.4.44-.39 2.61 1.15zM106.64 26l-.43.4-2.65-1.07.4-.4.42-.4q1.35.52 2.69 1.08zm-5.37-2.12-.4.4-2.72-1 .38-.41.39-.42 2.75 1.02zm-5.5-2-.38.43-2.79-.94.36-.42.36-.42q1.4.46 2.81.94zm-5.65-1.83-.34.43q-1.43-.45-2.85-.85l.32-.44.33-.43 2.88.86zm-5.77-1.67-.3.44q-1.47-.4-2.93-.76l.3-.45.28-.44q1.47.37 2.96.77zm-5.9-1.48-.27.45q-1.5-.36-2.98-.66l.24-.45.25-.46q1.5.32 3.02.67zm-6.04-1.27-.22.46q-.75-.15-1.51-.28l.2-.46.22-.46 1.54.28zM175.08 79.7l-.74.13-.45-.93.73-.14.73-.14.47.94zm-1.44-2.8-.73.16q-.51-.9-1.07-1.83l.72-.17.72-.17q.57.93 1.08 1.86zm-2.24-3.66-.71.18q-.6-.89-1.23-1.79l.7-.19.7-.2 1.25 1.82zm-2.55-3.58-.7.2q-.66-.87-1.37-1.74l.69-.22.69-.21q.71.9 1.38 1.77zm-2.83-3.5-.68.23q-.72-.85-1.5-1.71l.68-.23.67-.24 1.51 1.73zm-3.07-3.41-.66.24q-.8-.84-1.62-1.67l.66-.25.65-.25q.84.84 1.63 1.68zm-3.3-3.34-.65.26-1.72-1.63.64-.27.64-.26q.9.83 1.74 1.64zm-3.5-3.25-.64.27-1.81-1.59.62-.28.62-.28 1.83 1.6zm-3.7-3.17-.62.28-1.9-1.55.6-.29.6-.3 1.93 1.57zm-3.88-3.1-.6.3q-.97-.75-1.99-1.5l.59-.3.59-.31q1.02.75 2 1.52zm-4.04-3-.58.32q-1.03-.74-2.08-1.47l.58-.32.57-.31 2.09 1.47zm-4.2-2.92-.57.33q-1.05-.72-2.15-1.42l.56-.33.56-.33q1.1.7 2.16 1.43zm-4.36-2.83-.54.34-1.11-.7.54-.33.55-.34 1.11.7zm-1.1-.7-.55.34-1.13-.7.54-.33.54-.34 1.14.7zm-3.43-2.07-.53.35-2.31-1.35.52-.35.52-.35 2.33 1.36zm-4.68-2.67-.51.35-2.39-1.3.5-.36.5-.36 2.41 1.31zm-4.83-2.59-.49.37-2.45-1.25.48-.37.48-.37q1.24.61 2.48 1.26zm-4.96-2.47-.47.37-2.52-1.2.46-.37.46-.39 2.55 1.2zm-5.1-2.37-.45.38-2.59-1.13.44-.4.44-.39 2.61 1.15zM106.64 26l-.43.4-2.65-1.07.4-.4.42-.4q1.35.52 2.69 1.08zm-5.37-2.12-.4.4-2.72-1 .38-.41.39-.42 2.75 1.02zm-5.5-2-.38.43-2.79-.94.36-.42.36-.42q1.4.46 2.81.94zm-5.65-1.83-.34.43q-1.43-.45-2.85-.85l.32-.44.33-.43 2.88.86zm-5.77-1.67-.3.44q-1.47-.4-2.93-.76l.3-.45.28-.44q1.47.37 2.96.77zm-5.9-1.48-.27.45q-1.5-.36-2.98-.66l.24-.45.25-.46q1.5.32 3.02.67zm-6.04-1.27-.22.46q-.75-.15-1.51-.28l.2-.46.22-.46 1.54.28z`,fill:`currentColor`}),(0,c.jsx)(`circle`,{opacity:`0.5`,cx:`6.541`,cy:`6.541`,r:`5.902`,transform:`matrix(0.85 -0.527 0.85 0.527 40.037 56.563)`,stroke:`currentColor`,strokeWidth:`1.279`}),(0,c.jsx)(`g`,{className:`motion-safe:transition-[translate,rotate] motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:-translate-y-1.5`,children:(0,c.jsx)(`circle`,{cx:`6.541`,cy:`6.541`,r:`6.541`,transform:`matrix(0.85 -0.527 0.85 0.527 40.037 51.256)`,fill:`currentColor`})}),(0,c.jsx)(`circle`,{opacity:`0.5`,cx:`11.154`,cy:`11.154`,r:`11.154`,transform:`matrix(0.85 -0.527 0.85 0.527 32.198 57.308)`,stroke:`currentColor`,strokeWidth:`1.279`,strokeDasharray:`2.56 2.56`})]})}var N={"--hover-shift":`8.91px -4.45px`};function P({id:e}){return(0,c.jsxs)(`g`,{strokeWidth:`0.9`,children:[(0,c.jsx)(`path`,{d:`m36.08 33.55.45-1.15 1.3-.97 15.28-7.64 1.94-.65 2.3-.22 2.3.22 1.94.65 25.46 12.73 1.3.98.46 1.14v47.81l-.46 1.15-1.3.97-15.28 7.64-1.94.65-2.3.22-2.29-.22-1.95-.65-25.46-12.73-1.3-.97-.45-1.15Z`,className:`fill-background`,stroke:`currentColor`,strokeOpacity:`0.7`}),(0,c.jsx)(`path`,{d:`m87.13 38.64-.33.83-.94.7-15.27 7.64-1.4.47-1.66.16-1.65-.16-1.4-.47-25.46-12.73-.93-.7-.33-.83`,stroke:`currentColor`,strokeOpacity:`0.35`}),(0,c.jsx)(`path`,{d:`m61.42 84.78-.09-.65-.28-.64-.41-.55-.49-.36-19.18-9.59-.48-.12-.42.13-.27.37-.1.55v4.36l.1.65.27.64.42.54.48.37 19.18 9.58.49.13.41-.13.28-.37.09-.55Zm0-9.36-.09-.64-.28-.65-.41-.54-.49-.36-19.18-9.59-.48-.12-.42.13-.27.36-.1.55v4.37l.1.64.27.65.42.54.48.36 19.18 9.59.49.13.41-.14.28-.36.09-.55Zm0-9.35-.09-.64-.28-.65-.41-.54-.49-.36-19.18-9.59-.48-.13-.42.13-.27.37-.1.55v4.36l.1.65.27.64.42.55.48.36 19.18 9.59.49.12.41-.13.28-.37.09-.54Zm0-9.35-.09-.65-.28-.64-.41-.55-.49-.36-19.18-9.59-.48-.12-.42.13-.27.37-.1.55v4.36l.1.65.27.64.42.54.48.37L60.15 62l.49.13.41-.13.28-.37.09-.55Z`,stroke:`currentColor`,strokeOpacity:`0.35`}),(0,c.jsx)(`mask`,{id:`${e}-slot-0`,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`120`,height:`120`,children:(0,c.jsx)(`path`,{d:`M17.64 83.39 39.7 72.36l21.72 10.86v7.48l-22.06 11.03-21.72-10.86Z`,fill:`white`})}),(0,c.jsxs)(`g`,{mask:`url(#${e}-slot-0)`,children:[(0,c.jsx)(`path`,{d:`m40.1 73.96.18-.46.52-.39 8.06-4.03.78-.26.92-.09.92.09.78.26 16.97 8.48.52.39.18.46v6.24l-.18.46-.52.38-8.06 4.04-.78.26-.92.09-.92-.09-.78-.26-16.97-8.49-.52-.39-.18-.46Z`,className:`fill-background`,stroke:`currentColor`,strokeOpacity:`0.7`}),(0,c.jsx)(`path`,{d:`m68.97 78.41-.11.28-.31.23-8.06 4.03-.47.16-.55.05-.55-.05-.47-.16-16.97-8.48-.31-.24-.11-.27`,stroke:`currentColor`,strokeOpacity:`0.35`}),(0,c.jsx)(`path`,{d:`m54.8 84.92 2.55 1.28`,stroke:`currentColor`,strokeOpacity:`0.7`,strokeLinecap:`round`})]}),(0,c.jsx)(`mask`,{id:`${e}-slot-1`,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`120`,height:`120`,children:(0,c.jsx)(`path`,{d:`M17.64 74.03 39.7 63l21.72 10.86v7.49L39.36 92.38 17.64 81.52Z`,fill:`white`})}),(0,c.jsxs)(`g`,{mask:`url(#${e}-slot-1)`,children:[(0,c.jsx)(`path`,{d:`m40.1 64.6.18-.46.52-.39 8.06-4.03.78-.26.92-.09.92.09.78.26 16.97 8.49.52.39.18.46v6.23l-.18.46-.52.39-8.06 4.03-.78.26-.92.09-.92-.09-.78-.26-16.97-8.48-.52-.39-.18-.46Z`,className:`fill-background`,stroke:`currentColor`,strokeOpacity:`0.7`}),(0,c.jsx)(`path`,{d:`m68.97 69.06-.11.27-.31.24-8.06 4.03-.47.15-.55.06-.55-.06-.47-.15-16.97-8.49-.31-.23-.11-.28`,stroke:`currentColor`,strokeOpacity:`0.35`}),(0,c.jsx)(`path`,{d:`m54.8 75.57 2.55 1.27`,stroke:`currentColor`,strokeOpacity:`0.7`,strokeLinecap:`round`})]}),(0,c.jsx)(`mask`,{id:`${e}-slot-2`,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`120`,height:`120`,children:(0,c.jsx)(`path`,{d:`M17.64 64.68 39.7 53.65l21.72 10.86v7.48L39.36 83.02 17.64 72.16Z`,fill:`white`})}),(0,c.jsx)(`g`,{mask:`url(#${e}-slot-2)`,children:(0,c.jsxs)(`g`,{className:`motion-safe:transition-[translate,transform] motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:[translate:var(--hover-shift)]`,style:N,children:[(0,c.jsx)(`path`,{d:`m31.19 59.7.18-.45.52-.39 16.97-8.49.78-.26.92-.09.92.09.78.26 16.97 8.49.52.39.18.45v6.24l-.18.46-.52.39-16.97 8.48-.78.26-.92.1-.92-.1-.78-.26-16.97-8.48-.52-.39-.18-.46Z`,className:`fill-background`,stroke:`currentColor`}),(0,c.jsx)(`path`,{d:`m68.97 59.7-.11.28-.31.23-16.97 8.49-.47.16-.55.05-.55-.05-.47-.16-16.97-8.49-.31-.23-.11-.28`,stroke:`currentColor`,strokeOpacity:`0.35`}),(0,c.jsx)(`path`,{d:`m45.89 70.67 2.55 1.27`,stroke:`currentColor`,strokeLinecap:`round`})]})}),(0,c.jsx)(`mask`,{id:`${e}-slot-3`,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`120`,height:`120`,children:(0,c.jsx)(`path`,{d:`M17.64 55.33 39.7 44.3l21.72 10.86v7.48L39.36 73.67 17.64 62.81Z`,fill:`white`})}),(0,c.jsxs)(`g`,{mask:`url(#${e}-slot-3)`,children:[(0,c.jsx)(`path`,{d:`m40.1 45.9.18-.46.52-.39 8.06-4.03.78-.26.92-.09.92.09.78.26 16.97 8.48.52.39.18.46v6.24l-.18.46-.52.39-8.06 4.03-.78.26-.92.09-.92-.09-.78-.26-16.97-8.49-.52-.39-.18-.46Z`,className:`fill-background`,stroke:`currentColor`,strokeOpacity:`0.7`}),(0,c.jsx)(`path`,{d:`m68.97 50.35-.11.28-.31.23-8.06 4.03-.47.16-.55.05-.55-.05-.47-.16-16.97-8.48-.31-.24-.11-.27`,stroke:`currentColor`,strokeOpacity:`0.35`}),(0,c.jsx)(`path`,{d:`m54.8 56.86 2.55 1.28`,stroke:`currentColor`,strokeOpacity:`0.7`,strokeLinecap:`round`})]})]})}function F(){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(`rect`,{opacity:`0.5`,x:`0.967`,width:`57.956`,height:`4.684`,rx:`2.342`,transform:`matrix(0.85 -0.526 0.85 0.526 37.495 79.553)`,stroke:`currentColor`,strokeWidth:`1.137`}),(0,c.jsx)(`g`,{className:`motion-safe:transition-[translate,rotate] motion-safe:delay-100 motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:-translate-y-1`,children:(0,c.jsx)(`rect`,{x:`0.967`,width:`57.956`,height:`4.684`,rx:`2.342`,transform:`matrix(0.85 -0.526 0.85 0.526 37.495 76.562)`,className:`fill-background`,stroke:`currentColor`,strokeWidth:`1.137`})}),(0,c.jsx)(`rect`,{opacity:`0.5`,x:`0.967`,width:`57.956`,height:`4.684`,rx:`2.342`,transform:`matrix(0.85 -0.526 0.85 0.526 31.396 41.34)`,stroke:`currentColor`,strokeWidth:`1.137`}),(0,c.jsx)(`g`,{className:`motion-safe:transition-[translate,rotate] motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:-translate-y-1`,children:(0,c.jsx)(`rect`,{x:`0.967`,width:`57.956`,height:`4.684`,rx:`2.342`,transform:`matrix(0.85 -0.526 0.85 0.526 31.396 38.348)`,className:`fill-background`,stroke:`currentColor`,strokeWidth:`1.137`})}),(0,c.jsx)(`rect`,{opacity:`0.5`,x:`0.967`,width:`61.708`,height:`4.684`,rx:`2.342`,transform:`matrix(0.85 -0.526 0.85 0.526 45.751 84.663)`,stroke:`currentColor`,strokeWidth:`1.137`}),(0,c.jsx)(`g`,{className:`motion-safe:transition-[translate,rotate] motion-safe:delay-100 motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:-translate-y-1`,children:(0,c.jsx)(`rect`,{x:`0.967`,width:`61.708`,height:`4.684`,rx:`2.342`,transform:`matrix(0.85 -0.526 0.85 0.526 45.751 81.671)`,className:`fill-background`,stroke:`currentColor`,strokeWidth:`1.137`})}),(0,c.jsx)(`rect`,{opacity:`0.5`,x:`0.967`,width:`45.001`,height:`4.684`,rx:`2.342`,transform:`matrix(0.85 -0.526 0.85 0.526 39.651 46.449)`,stroke:`currentColor`,strokeWidth:`1.137`}),(0,c.jsx)(`g`,{className:`motion-safe:transition-[translate,rotate] motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:-translate-y-1`,children:(0,c.jsx)(`rect`,{x:`0.967`,width:`45.001`,height:`4.684`,rx:`2.342`,transform:`matrix(0.85 -0.526 0.85 0.526 39.651 43.458)`,className:`fill-background`,stroke:`currentColor`,strokeWidth:`1.137`})}),(0,c.jsx)(`rect`,{opacity:`0.5`,x:`0.967`,width:`42.675`,height:`4.684`,rx:`2.342`,transform:`matrix(0.85 -0.526 0.85 0.526 54.006 89.772)`,stroke:`currentColor`,strokeWidth:`1.137`}),(0,c.jsx)(`g`,{className:`motion-safe:transition-[translate,rotate] motion-safe:delay-100 motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:-translate-y-1`,children:(0,c.jsx)(`rect`,{x:`0.967`,width:`42.675`,height:`4.684`,rx:`2.342`,transform:`matrix(0.85 -0.526 0.85 0.526 54.006 86.78)`,className:`fill-background`,stroke:`currentColor`,strokeWidth:`1.137`})}),(0,c.jsx)(`path`,{opacity:`0.5`,d:`m33.8 74.6 53.7-33.24c3.75-2.32 9.83-2.32 13.58 0l18.15 11.23c3.75 2.32 3.75 6.08 0 8.4l-53.1 32.87-.02.16-.78 8.5L33.8 83c-3.75-2.32-3.75-6.08 0-8.4`,stroke:`currentColor`,strokeWidth:`1.137`}),(0,c.jsx)(`path`,{opacity:`0.5`,d:`m81.03 4.1-53.7 33.23c-3.75 2.32-3.75 6.08 0 8.4l10.38 6.43c3.75 2.32 9.83 2.32 13.58 0l53.1-32.86.27-.01 13.72-.49L94.61 4.1c-3.75-2.33-9.83-2.33-13.58 0`,stroke:`currentColor`,strokeWidth:`1.137`})]})}function I(){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(`rect`,{x:`0.851`,width:`162.776`,height:`11.227`,rx:`5.614`,transform:`matrix(0.851 -0.526 0.851 0.526 22.605 54.892)`,stroke:`currentColor`,strokeOpacity:`0.5`}),(0,c.jsx)(`g`,{className:`motion-safe:transition-[translate,rotate] motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:-translate-y-1`,children:(0,c.jsx)(`rect`,{x:`0.851`,width:`162.776`,height:`11.227`,rx:`5.614`,transform:`matrix(0.851 -0.526 0.851 0.526 22.605 49.849)`,className:`fill-background`,stroke:`currentColor`})}),(0,c.jsx)(`rect`,{x:`0.851`,width:`162.776`,height:`11.227`,rx:`5.614`,transform:`matrix(0.851 -0.526 0.851 0.526 56.12 54.384)`,stroke:`currentColor`,strokeOpacity:`0.5`}),(0,c.jsx)(`g`,{className:`motion-safe:transition-[translate,rotate] motion-safe:delay-75 motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:-translate-y-1`,children:(0,c.jsx)(`rect`,{x:`0.851`,width:`162.776`,height:`11.227`,rx:`5.614`,transform:`matrix(0.851 -0.526 0.851 0.526 56.12 49.343)`,className:`fill-background`,stroke:`currentColor`})}),(0,c.jsx)(`rect`,{x:`0.851`,width:`162.776`,height:`11.227`,rx:`5.614`,transform:`matrix(0.851 -0.526 0.851 0.526 72.466 64.482)`,stroke:`currentColor`,strokeOpacity:`0.5`}),(0,c.jsx)(`g`,{className:`motion-safe:transition-[translate,rotate] motion-safe:delay-150 motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:-translate-y-1`,children:(0,c.jsx)(`rect`,{x:`0.851`,width:`162.776`,height:`11.227`,rx:`5.614`,transform:`matrix(0.851 -0.526 0.851 0.526 72.466 59.44)`,className:`fill-background`,stroke:`currentColor`})}),(0,c.jsx)(`rect`,{x:`0.851`,width:`162.776`,height:`11.227`,rx:`5.614`,transform:`matrix(0.851 -0.526 0.851 0.526 88.813 74.579)`,stroke:`currentColor`,strokeOpacity:`0.5`}),(0,c.jsx)(`g`,{className:`motion-safe:transition-[translate,rotate] motion-safe:delay-200 motion-safe:duration-slow motion-safe:ease-out-custom motion-safe:group-hover/empty-state:-translate-y-1`,children:(0,c.jsx)(`rect`,{x:`0.851`,width:`162.776`,height:`11.227`,rx:`5.614`,transform:`matrix(0.851 -0.526 0.851 0.526 88.813 69.538)`,className:`fill-background`,stroke:`currentColor`})}),(0,c.jsx)(`path`,{opacity:`0.75`,d:`M18.56 60.66a4.5 4.5 0 0 1 4.35 0l11.24 6.94a6.2 6.2 0 0 0 5.95 0l12.17-7.52a4.5 4.5 0 0 1 4.35 0c1.2.74 1.2 1.95 0 2.69l-12.17 7.52c-1.64 1.01-1.64 2.66 0 3.67l5.57 3.44a6.2 6.2 0 0 0 5.96 0l12.17-7.51a4.5 4.5 0 0 1 4.35 0c1.2.74 1.2 1.94 0 2.68L60.33 80.1c-1.65 1.02-1.65 2.67 0 3.68l3.49 2.16c3.31 2.04 8.68 2.04 12 0l9.14-5.66a4.5 4.5 0 0 1 4.35 0c1.2.75 1.2 1.95 0 2.7l-9.15 5.64c-5.71 3.53-14.98 3.53-20.7 0l-40.9-25.26c-1.2-.75-1.2-1.95 0-2.7`,stroke:`currentColor`,strokeLinecap:`round`})]})}var L={traces:I,logs:C,"api-keys":h,environments:b,requests:M,databases:g,threads:F,deploys:_,"no-charges":E,"no-alerts":w,"no-destinations":O,disconnected:y,locked:S,"rate-limited":j,"server-error":P,"not-a-member":k};function R({name:e}){let t=(0,d.useId)().replace(/[^\w-]/g,``),n=L[e];return(0,c.jsx)(`div`,{className:`mb-5 w-30 max-w-full text-foreground group-data-[tone=error]/empty-state:text-destructive-indicator`,children:(0,c.jsxs)(`svg`,{viewBox:`0 0 120 120`,fill:`none`,"aria-hidden":`true`,"data-illustration":e,className:`block aspect-square h-auto w-full`,children:[(0,c.jsx)(`mask`,{id:`${t}-frame`,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`120`,height:`120`,children:(0,c.jsx)(`circle`,{cx:`60`,cy:`60`,r:`60`,fill:`white`})}),(0,c.jsx)(`g`,{mask:`url(#${t}-frame)`,children:(0,c.jsx)(n,{id:t})}),(0,c.jsx)(`circle`,{cx:`60`,cy:`60`,r:`60`,fill:`url(#${t}-glow)`,fillOpacity:`0.09`}),(0,c.jsx)(`defs`,{children:(0,c.jsxs)(`linearGradient`,{id:`${t}-glow`,x1:`60`,y1:`0`,x2:`60`,y2:`120`,gradientUnits:`userSpaceOnUse`,children:[(0,c.jsx)(`stop`,{stopColor:`currentColor`}),(0,c.jsx)(`stop`,{offset:`1`,stopColor:`currentColor`,stopOpacity:`0.4`})]})})]})})}export{l as i,R as n,u as r,m as t};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{
|
|
2
|
-
`)}\n---\n\n${r.trim()}\n`}function Oe({value:e,required:t,readOnly:n,onChange:r}){return(0,H.jsx)(E,{as:`p`,variant:`body`,tone:`muted`,children:(0,H.jsx)(T,{value:e,label:`Description`,placeholder:`Describe when agents should use it`,multiline:!0,required:t,readOnly:n,variant:`body`,tone:`muted`,className:`zoom-safe-text w-full`,onChange:r})})}var ke=e(
|
|
3
|
-
`}].map((e,t)=>({label:e.label,detail:e.markdown,type:`keyword`,boost:-t,apply:(t,n,r,i)=>{let a=r-1;t.dispatch({changes:{from:a,to:i,insert:e.insert},selection:{anchor:a+(e.caret??e.insert.length)},scrollIntoView:!0,userEvent:`input.complete`})}}));function gt(e){if(e.state.readOnly)return null;let t=e.matchBefore(/\/\w*$/);if(!t)return null;let n=e.state.doc.lineAt(t.from);return e.state.sliceDoc(n.from,t.from).trim()!==``||J(e.state,t.from)?null:{from:t.from+1,options:ht,validFor:/^\w*$/}}var _t=A.data.of({autocomplete:gt}),vt={bold:(0,H.jsx)(Ee,{}),italic:(0,H.jsx)(Te,{}),code:(0,H.jsx)(se,{}),link:(0,H.jsx)(
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{Gr as t,Ki as n,fa as r,ii as i,pa as a,ri as o}from"./index-Uu3iQVaN.js";import{$s as s,Ar as c,Li as l,Mr as u,Ni as d,Nr as f,br as p,ic as m,io as h,kr as g,wr as _,wt as v,xi as y}from"./useFactories-BSnLX5pf.js";import{i as b,t as x}from"./EmptyState-IMGHVwoU-DXFO08zt.js";import{a as S,i as C,r as w,t as ee}from"./SkillBadges-Cp5_yMjO.js";import{n as T,t as te}from"./SettingsHrefLink-DqxoteN4.js";import{D as ne,O as re,n as E,w as D}from"./IconChevronRightMedium.es-ETbnXMk8.js";import{t as O}from"./AlertDialog.es-Rg-H7EnF.js";import{o as ie}from"./highlight-B5yoRWjq-BF8vnsDR.js";import{t as ae}from"./MarkdownRenderer-By9XK05q-CxHEaxV5.js";import{i as oe}from"./TabsRoot-DcVywXPZ.js";import{t as se}from"./IconCodeBrackets.es-8VzCVCl1.js";import{a as ce,i as le,n as ue,o as de,r as fe,t as pe}from"./esm-DjkVODAY.js";import{t as me}from"./createLucideIcon-CfDI1zbj.js";import{a as k,i as he}from"./dist-6WNNvkM4.js";import{n as ge,r as A}from"./dist-BOiJM1fT.js";import{F as j,L as _e,M,N,R as ve,X as ye,dt as be,it as xe,j as Se,mt as P,ut as F,vt as Ce,yt as I}from"./dist-Sr6WSEaV.js";import{c as L,l as we}from"./settingsSections-rQ9VqtBb.js";var R={name:`italic`,size:24,node:[[`line`,{x1:`19`,x2:`10`,y1:`4`,y2:`4`,key:`15jd3p`}],[`line`,{x1:`14`,x2:`5`,y1:`20`,y2:`20`,key:`bu0au3`}],[`line`,{x1:`15`,x2:`9`,y1:`4`,y2:`20`,key:`uljnxc`}]]};R.node;var Te=me(R),z={name:`letter-b`,size:24,node:[[`path`,{d:`M6 12h9a4 4 0 010 8H7a1 1 0 01-1-1V5a1 1 0 011-1h7a4 4 0 010 8`,key:`n8tvfh`}]],aliases:[`bold`]};z.node;var Ee=me(z),B=e(re(),1);function V(e){let t=(0,B.useRef)(!1),n=()=>e&&!t.current,r=g(({currentLocation:e,nextLocation:t})=>n()&&e.pathname!==t.pathname);return _(e=>{n()&&e.preventDefault()}),{blocker:r,leave:e=>{t.current=!0,e()}}}var H=ne();function U({blocker:e,title:t,description:n}){return(0,H.jsx)(O,{open:e.state===`blocked`,onOpenChange:t=>!t&&e.reset?.(),children:(0,H.jsxs)(O.Content,{children:[(0,H.jsxs)(O.Header,{children:[(0,H.jsx)(O.Title,{children:t}),(0,H.jsx)(O.Description,{children:n})]}),(0,H.jsxs)(O.Footer,{children:[(0,H.jsx)(O.Cancel,{children:`Keep editing`}),(0,H.jsx)(y,{variant:`destructive`,size:`md`,onClick:()=>e.proceed?.(),children:`Discard`})]})]})})}function De({notices:e,status:t,children:n}){return(0,H.jsxs)(`div`,{className:`rounded-card bg-card shadow-overlay dark:bg-muted sticky bottom-4 z-10 flex flex-col gap-3 p-3`,children:[e,(0,H.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,H.jsx)(E,{variant:`body-sm`,tone:`muted`,className:`min-w-0 flex-1`,role:`status`,children:t}),n]})]})}function W({name:e,description:t,frontmatter:n,instructions:r}){return`---\n${[`name: ${JSON.stringify(e)}`,`description: ${JSON.stringify(t)}`,...Object.entries(n??{}).map(([e,t])=>`${e}: ${JSON.stringify(t)}`)].join(`
|
|
2
|
+
`)}\n---\n\n${r.trim()}\n`}function Oe({value:e,required:t,readOnly:n,onChange:r}){return(0,H.jsx)(E,{as:`p`,variant:`body`,tone:`muted`,children:(0,H.jsx)(T,{value:e,label:`Description`,placeholder:`Describe when agents should use it`,multiline:!0,required:t,readOnly:n,variant:`body`,tone:`muted`,className:`zoom-safe-text w-full`,onChange:r})})}var ke=e(h(),1),Ae=class extends ve{eq(){return!0}toDOM(){let e=document.createElement(`span`);return e.className=`cm-md-bullet`,e.textContent=`•`,e}},je=N.replace({}),Me=N.replace({widget:new Ae}),Ne=new Map,Pe=e=>{let t=Ne.get(e);return t||(t=N.line({class:e}),Ne.set(e,t)),t},Fe={EmphasisMark:[`Emphasis`,`StrongEmphasis`],StrikethroughMark:[`Strikethrough`],CodeMark:[`InlineCode`]},Ie=(e,t)=>e.some(e=>e.from<=t.to&&e.to>=t.from),Le=e=>e.length-e.trimStart().length;function Re(e,t,n){let r=e.doc.lineAt(t.from);if(t.from===n.from)return{from:t.from,to:t.to+Le(e.sliceDoc(t.to,r.to))};let i=e.sliceDoc(r.from,t.from);return{from:t.from-(i.length-i.trimEnd().length),to:t.to}}function ze(e){let{state:t}=e,n=e.hasFocus?t.selection.ranges:[],r=[],i=new Map,a=(e,t)=>{let n=i.get(e)??new Set;n.add(t),i.set(e,n)},o=(e,n,r)=>{let i=t.doc.lineAt(Math.max(e.from,n.from)),o=t.doc.lineAt(Math.min(e.to,n.to));for(let e=i.number;e<=o.number;e++)a(t.doc.line(e).from,r)},s=(e,t,i=je)=>{Ie(n,t)||r.push(i.range(e.from,e.to))};for(let i of e.visibleRanges)M(t).iterate({from:i.from,to:i.to,enter:e=>{let{name:c}=e;if(c===`FencedCode`)return o(e,i,`cm-md-fence-line`),e.from>=i.from&&a(t.doc.lineAt(e.from).from,`cm-md-fence-start`),e.to<=i.to&&a(t.doc.lineAt(e.to).from,`cm-md-fence-end`),!1;if(c===`Blockquote`){o(e,i,`cm-md-quote-line`);return}let l=e.node;if(c===`Link`){let[n,r]=l.getChildren(`LinkMark`);n&&r&&l.getChild(`URL`)&&t.doc.lineAt(r.from).to>=e.to&&(s(n,e),s({from:r.from,to:e.to},e));return}let u=t.doc.lineAt(e.from);if(c===`HorizontalRule`){Ie(n,u)||(r.push(je.range(e.from,e.to)),a(u.from,`cm-md-rule-line`));return}let d=l.parent;if(d){if(c===`HeaderMark`&&d.name.startsWith(`ATXHeading`))s(Re(t,l,d),u);else if(c===`QuoteMark`){let n=Math.min(1,Le(t.sliceDoc(e.to,u.to)));s({from:e.from,to:e.to+n},u)}else c===`ListMark`&&d.parent?.name===`BulletList`?s(e,u,Me):Fe[c]?.includes(d.name)&&s(e,d)}}});for(let[e,t]of i)r.push(Pe([...t].join(` `)).range(e));return N.set(r,!0)}var Be=_e.fromClass(class{decorations;constructor(e){this.decorations=ze(e)}update(e){let t=M(e.startState)!==M(e.state);(e.docChanged||e.selectionSet||e.focusChanged||e.viewportChanged||t)&&(this.decorations=ze(e.view))}},{decorations:e=>e.decorations}),G={node:`StrongEmphasis`,marker:`**`},K={node:`Emphasis`,marker:`*`},Ve={node:`InlineCode`,marker:"`"},He=/^https?:\/\/\S+$/,Ue=/^\s*(?:(?:[-*+]|\d+[.)])\s+(?:\[[ xX]\]\s+)?|>\s?|#{1,6}\s+)*/,We=/^(?:FencedCode|CodeBlock)$/,Ge=/^(?:Paragraph|ATXHeading\d|SetextHeading\d|Task|TableCell)$/,Ke=[1,-1],qe=G.marker.length+K.marker.length;function q(e,t,n){let r=M(e);for(let e of Ke)for(let i=r.resolveInner(t.from,e);i;i=i.parent)if(i.name===n&&i.from<=t.from&&i.to>=t.to)return i;return null}function Je(e,t){for(let n=e;n;n=n.parent)if(t.test(n.name))return n;return null}var J=(e,t)=>Ke.some(n=>Je(M(e).resolveInner(t,n),We)!==null),Ye=(e,t)=>{let n=M(e).resolveInner(t.from,1);if(n.name===`HeaderMark`)return!1;let r=Je(n,Ge);return r!==null&&t.to<=r.to};function Xe(e,t){let n=[];for(let r=t.from;r<=t.to;){let i=e.doc.lineAt(r),a=i.from+(Ue.exec(i.text)?.[0].length??0),o=Math.max(t.from,a),s=Math.min(t.to,i.to),c=e.sliceDoc(o,s),l=o+c.length-c.trimStart().length,u=s-(c.length-c.trimEnd().length),d={from:l,to:u};l<u&&Ye(e,d)&&n.push(d),r=i.to+1}return n}function Ze(e,t,n){let r=q(e,{from:t,to:t},n.node);return!r?.firstChild||!r.lastChild?null:t>=r.firstChild.to&&t<=r.lastChild.from?r:null}function Qe(e,t,n){if(t.empty)return!!Ze(e,t.from,n);let r=Xe(e,t);return r.length>0&&r.every(t=>q(e,t,n.node))}var Y=e=>e.firstChild&&e.lastChild?[{from:e.from,to:e.firstChild.to},{from:e.lastChild.from,to:e.to}]:[];function $e(e,t,n){let r=[];return M(e).iterate({from:t.from,to:t.to,enter:e=>{e.name===n&&e.to>t.from&&e.from<t.to&&r.push(e.node)}}),r}function X(e,t,n){let r=e.changes(t),i=r.mapPos(n.from,1),a=Math.max(i,r.mapPos(n.to,-1));return{changes:r,range:n.anchor===n.from?F.range(i,a):F.range(a,i)}}function et(e,t,n){let r=e.doc.lineAt(t),i=t-r.from,a=0;for(;r.text.charAt(i-a-1)===n;)a++;let o=0;for(;r.text.charAt(i+o)===n;)o++;return{before:a,after:o}}function tt(e,t,n,r){let i=t.from;if(J(e,i))return{range:t};let a=r?Ze(e,i,n):null;if(a?.lastChild&&i===a.lastChild.from)return{range:F.cursor(a.to)};if(a)return X(e,Y(a),t);let{marker:o}=n,{before:s,after:c}=et(e,i,o.charAt(0));return s===c&&(s===o.length||s===qe)?{changes:{from:i-o.length,to:i+o.length},range:F.cursor(i-o.length)}:{changes:{from:i,insert:o+o},range:F.cursor(i+o.length)}}function nt(e,t,n,r){let i=[];for(let a of Xe(e,t)){if(r){let t=q(e,a,n.node);t&&i.push(...Y(t));continue}let t=$e(e,a,n.node),o=Math.min(a.from,...t.map(e=>e.from)),s=Math.max(a.to,...t.map(e=>e.to));i.push(...t.flatMap(Y),{from:o,insert:n.marker},{from:s,insert:n.marker})}return X(e,i,t)}var Z=(e,t)=>e.selection.ranges.every(n=>Qe(e,n,t)),Q=e=>({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=Z(t,e),i=t.changeByRange(n=>n.empty?tt(t,n,e,r):nt(t,n,e,r));return n(t.update(i,{scrollIntoView:!0,userEvent:`input.format`})),!0},rt=(e,t)=>{let n=q(e,t,`Link`);return n?.getChild(`URL`)?n:null},it=e=>e.selection.ranges.every(t=>rt(e,t));function at(e,t,n){if(n){let n=rt(e,t),[r,i]=n?.getChildren(`LinkMark`)??[];return!n||!r||!i?{range:t}:X(e,[{from:n.from,to:r.to},{from:i.from,to:n.to}],t)}if(J(e,t.from)||e.doc.lineAt(t.from).number!==e.doc.lineAt(t.to).number)return{range:t};let r=e.sliceDoc(t.from,t.to);return He.test(r)?{changes:{from:t.from,to:t.to,insert:`[](${r})`},range:F.cursor(t.from+1)}:t.empty?{changes:{from:t.from,insert:`[]()`},range:F.cursor(t.from+1)}:{changes:[{from:t.from,insert:`[`},{from:t.to,insert:`]()`}],range:F.cursor(t.to+3)}}var ot=[{id:`bold`,label:`Bold`,key:`b`,run:Q(G),isActive:e=>Z(e,G)},{id:`italic`,label:`Italic`,key:`i`,run:Q(K),isActive:e=>Z(e,K)},{id:`code`,label:`Code`,key:`e`,run:Q(Ve),isActive:e=>Z(e,Ve)},{id:`link`,label:`Link`,key:`k`,run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=it(e);return t(e.update(e.changeByRange(t=>at(e,t,n)),{scrollIntoView:!0,userEvent:`input.format`})),!0},isActive:it}],st=P.high(ye.of(ot.map(e=>({key:`Mod-${e.key}`,run:e.run})))),ct=he([...ie,{tag:k.heading1,class:`cm-md-heading cm-md-h1`},{tag:k.heading2,class:`cm-md-heading cm-md-h2`},{tag:k.heading3,class:`cm-md-heading cm-md-h3`},{tag:[k.heading4,k.heading5,k.heading6],class:`cm-md-heading`},{tag:k.strong,class:`cm-md-strong`},{tag:k.emphasis,class:`cm-md-emphasis`},{tag:k.strikethrough,class:`cm-md-strike`},{tag:k.link,class:`cm-md-link`},{tag:k.url,class:`cm-md-url`},{tag:k.monospace,class:`cm-md-code`},{tag:k.quote,class:`cm-md-quote`},{tag:[k.processingInstruction,k.contentSeparator,k.labelName],class:`cm-md-mark`}]),lt=j.theme({"&.cm-editor":{fontSize:`var(--text-body)`},".cm-content":{lineHeight:`var(--markdown-leading)`},".cm-placeholder":{color:`var(--placeholder)`},".cm-md-link.cm-md-url, .cm-md-link.cm-md-mark":{color:`var(--placeholder)`,textDecoration:`none`},".cm-md-mark":{color:`var(--placeholder)`},".cm-md-bullet":{color:`var(--muted-foreground)`},".cm-line.cm-md-quote-line":{borderLeft:`var(--markdown-quote-rule)`,paddingLeft:`var(--markdown-quote-inset)`},".cm-line.cm-md-fence-line":{backgroundColor:`var(--fill)`,padding:`0 0.75em`,fontFamily:`var(--font-mono)`,fontSize:`0.875em`},".cm-line.cm-md-fence-start":{borderTopLeftRadius:`6px`,borderTopRightRadius:`6px`,paddingTop:`0.25em`},".cm-line.cm-md-fence-end":{borderBottomLeftRadius:`6px`,borderBottomRightRadius:`6px`,paddingBottom:`0.25em`},".cm-md-fence-line .cm-md-code":{backgroundColor:`transparent`,padding:`0`,fontSize:`inherit`},".cm-line.cm-md-rule-line":{background:`linear-gradient(var(--border), var(--border)) no-repeat center / 100% 1px`},"&.cm-editor .cm-tooltip.cm-tooltip-autocomplete > ul":{maxHeight:`none`,padding:`4px`,fontFamily:`var(--font-body)`},"&.cm-editor .cm-tooltip.cm-tooltip-autocomplete > ul > li":{display:`flex`,alignItems:`baseline`,borderRadius:`4px`,padding:`4px 8px`,lineHeight:`1.5`},"&.cm-editor .cm-completionDetail":{fontFamily:`var(--font-mono)`,fontStyle:`normal`}}),ut=[j.editorAttributes.of({class:`mastra-markdown-editor`}),Se(ct),lt],dt=Ce.define(),ft=I.define({create:()=>!1,update:(e,t)=>t.effects.reduce((e,t)=>t.is(dt)?t.value:e,e)}),pt=j.theme({".cm-tooltip.cm-md-toolbar":{border:`none`,backgroundColor:`transparent`}});function mt(){let e=null,t=new Set,n=n=>{e=n;for(let e of t)e()},r=e=>{let t=document.createElement(`div`);return t.className=`cm-md-toolbar`,{dom:t,offset:{x:0,y:6},mount:()=>n({host:t,view:e,state:e.state}),update:r=>{(r.docChanged||r.selectionSet)&&n({host:t,view:e,state:r.state})},destroy:()=>n(null)}},i=(e,t)=>{let{from:n,to:i,empty:a}=e.selection.main;return a||e.readOnly||!e.field(ft)?null:t?.pos===n&&t.end===i?t:{pos:n,end:i,above:!0,arrow:!1,create:r}},a=I.define({create:e=>i(e,null),update:(e,t)=>i(t.state,e),provide:e=>xe.from(e)});return{extension:[ft,j.focusChangeEffect.of((e,t)=>dt.of(t)),a,pt],subscribe:e=>(t.add(e),()=>t.delete(e)),getSnapshot:()=>e}}var ht=[{label:`Heading 1`,markdown:`#`,insert:`# `},{label:`Heading 2`,markdown:`##`,insert:`## `},{label:`Heading 3`,markdown:`###`,insert:`### `},{label:`Bulleted list`,markdown:`-`,insert:`- `},{label:`Numbered list`,markdown:`1.`,insert:`1. `},{label:`Quote`,markdown:`>`,insert:`> `},{label:`Code block`,markdown:"```",insert:"```\n\n```",caret:4},{label:`Divider`,markdown:`***`,insert:`***
|
|
3
|
+
`}].map((e,t)=>({label:e.label,detail:e.markdown,type:`keyword`,boost:-t,apply:(t,n,r,i)=>{let a=r-1;t.dispatch({changes:{from:a,to:i,insert:e.insert},selection:{anchor:a+(e.caret??e.insert.length)},scrollIntoView:!0,userEvent:`input.complete`})}}));function gt(e){if(e.state.readOnly)return null;let t=e.matchBefore(/\/\w*$/);if(!t)return null;let n=e.state.doc.lineAt(t.from);return e.state.sliceDoc(n.from,t.from).trim()!==``||J(e.state,t.from)?null:{from:t.from+1,options:ht,validFor:/^\w*$/}}var _t=A.data.of({autocomplete:gt}),vt={bold:(0,H.jsx)(Ee,{}),italic:(0,H.jsx)(Te,{}),code:(0,H.jsx)(se,{}),link:(0,H.jsx)(n,{})},yt=e=>e.preventDefault();function bt({toolbar:e}){let t=(0,B.useSyncExternalStore)(e.subscribe,e.getSnapshot,()=>null),n=a();if(!t)return null;let{host:i,view:o,state:c}=t;return(0,ke.createPortal)((0,H.jsx)(`div`,{role:`toolbar`,"aria-label":`Formatting`,className:D(s,`flex items-center gap-0.5 rounded-full p-1`),children:ot.map(e=>{let t=e.isActive(c),i=r(e.key,n),a=e.key.toUpperCase();return(0,H.jsx)(y,{type:`button`,size:`icon-sm`,variant:t?`subtle`:`ghost`,"aria-label":e.label,"aria-pressed":t,"aria-keyshortcuts":n?`Meta+${a}`:`Control+${a}`,tooltip:(0,H.jsx)(oe,{label:e.label,shortcut:i}),tabIndex:-1,onMouseDown:yt,onClick:()=>e.run(o),children:vt[e.id]},e.id)})}),i)}var xt=m(`relative transition-colors duration-normal ease-out-custom`,{variants:{variant:{default:D(l,`rounded-md px-3 py-2`,d),inline:``}},defaultVariants:{variant:`default`}}),St={lineNumbers:!1,foldGutter:!1,highlightActiveLine:!1,highlightActiveLineGutter:!1,highlightSelectionMatches:!1,bracketMatching:!1,closeBrackets:!1},Ct=[...le,ce,j.lineWrapping,ge({base:A,codeLanguages:ue}),ut,Be,st,_t],wt=[be.readOnly.of(!0),P.highest(j.domEventHandlers({paste:()=>!0}))],Tt=(0,B.forwardRef)(function({value:e,onChange:t,placeholder:n,editable:r=!0,autoFocus:i,variant:a,className:o,id:s,"aria-label":c,"aria-labelledby":l,"aria-describedby":u,"aria-invalid":d,...f},p){let{contentAttributes:m}=de({id:s,"aria-label":c,"aria-labelledby":l,"aria-describedby":u,"aria-invalid":d},`Markdown editor`),[h]=(0,B.useState)(mt),g=(0,B.useMemo)(()=>[...Ct,m,h.extension,...r?[]:[wt]],[m,h,r]);return(0,H.jsxs)(`div`,{className:D(xt({variant:a}),o),...f,children:[(0,H.jsx)(pe,{ref:p,value:e,theme:fe(`body`),extensions:g,onChange:t,editable:r,placeholder:n,autoFocus:i,basicSetup:St}),(0,H.jsx)(bt,{toolbar:h})]})});function Et({value:e,readOnly:t,onChange:n}){return t&&e?(0,H.jsx)(ae,{children:e}):t?(0,H.jsx)(E,{variant:`body`,tone:`muted`,children:`No instructions`}):(0,H.jsx)(Tt,{"aria-label":`Instructions`,value:e,placeholder:`Write the instructions agents follow`,onChange:n,variant:`inline`})}var Dt=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,Ot=64;function kt(e){if(!(e===``||Dt.test(e)&&e.length<=Ot))return`Use up to ${Ot} lowercase letters, digits, and single hyphens, such as release-notes.`}function At(e,t){if(e===``)return`Name the skill to create it.`;if(kt(e))return`Fix the name to create it.`;if(t.trim()===``)return`Add a description to create it.`}function jt({factoryId:e,onCreated:t}){let[n,r]=(0,B.useState)(``),[i,a]=(0,B.useState)(``),[o,s]=(0,B.useState)(``),c=w(e),l=n!==``||i!==``||o!==``,{blocker:u,leave:d}=V(l),f=kt(n),p=At(n,i);return(0,H.jsxs)(`div`,{className:`flex flex-col gap-8`,children:[(0,H.jsxs)(`div`,{inert:c.isPending,className:`flex flex-col gap-8`,children:[(0,H.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,H.jsx)(E,{as:`p`,variant:`body`,tone:`ink`,className:`min-w-0 break-words`,children:(0,H.jsx)(T,{value:n,label:`Name`,placeholder:`skill-name`,readOnly:!1,autoFocus:!0,variant:`body`,tone:`ink`,className:`zoom-safe-text`,onChange:e=>r(e.trim())})}),f&&(0,H.jsx)(E,{as:`p`,variant:`caption`,className:`text-destructive-foreground`,children:f}),(0,H.jsx)(Oe,{value:i,required:!1,readOnly:!1,onChange:a})]}),(0,H.jsx)(Et,{value:o,readOnly:!1,onChange:s})]}),l&&(0,H.jsxs)(De,{status:p??`Only this Factory gets the skill. Agents can load it from their next session.`,notices:c.error&&(0,H.jsx)(v,{variant:`destructive`,role:`alert`,children:(0,H.jsx)(v.Message,{children:c.error.message})}),children:[(0,H.jsx)(y,{size:`sm`,variant:`ghost`,onClick:()=>{r(``),a(``),s(``),c.reset()},disabled:c.isPending,children:`Discard`}),(0,H.jsx)(y,{size:`sm`,variant:`primary`,onClick:()=>c.mutate({name:n,content:W({name:n,description:i,instructions:o})},{onSuccess:()=>d(()=>t(n))}),disabled:p!==void 0,loading:c.isPending,children:`Create`})]}),(0,H.jsx)(U,{blocker:u,title:`Discard this new skill?`,description:`It has not been created yet.`})]})}function Mt({factoryId:e,skill:t,canEdit:n,onDeleted:r}){let[i,a]=(0,B.useState)(),[o,s]=(0,B.useState)(),c=i??t.description,l=o??t.content,[u,d]=(0,B.useState)(!1),f=(0,B.useRef)(null),p=C(e),m=C(e),h=p.isPending||m.isPending,g=n&&(c!==t.description||l!==t.content),{blocker:_,leave:b}=V(g),x=n&&!!t.edited,S=n&&t.origin===`project`,w=(e,t)=>e===t&&!h?void 0:e,T=e=>()=>{a(t=>t===e.description?void 0:t),s(t=>t===e.instructions?void 0:t)};return(0,H.jsxs)(`div`,{className:`flex flex-col gap-8`,children:[(0,H.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,H.jsxs)(`div`,{className:`flex min-h-8 flex-wrap items-center gap-2 empty:hidden`,children:[(0,H.jsx)(ee,{skill:t}),(!n||x||S)&&(0,H.jsxs)(`div`,{className:`ml-auto flex items-center gap-1`,children:[!n&&(0,H.jsx)(E,{variant:`caption`,tone:`muted`,children:`Only organization admins can edit skills.`}),x&&(0,H.jsx)(y,{size:`sm`,variant:`ghost`,onClick:()=>m.mutate({name:t.name,content:null},{onSuccess:T({description:c,instructions:l})}),disabled:h,loading:m.isPending,children:`Revert to original`}),S&&(0,H.jsx)(y,{ref:f,size:`sm`,variant:`ghost`,onClick:()=>d(!0),disabled:h,children:`Delete`})]})]}),u&&(0,H.jsx)(v,{variant:`warning`,title:`Delete ${t.name}?`,actionPlacement:`end`,action:(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(y,{size:`sm`,onClick:()=>{d(!1),f.current?.focus()},disabled:h,autoFocus:!0,children:`Keep`}),(0,H.jsx)(y,{size:`sm`,variant:`destructive`,onClick:()=>m.mutate({name:t.name,content:null},{onSuccess:()=>b(r)}),disabled:h,loading:m.isPending,children:`Delete skill`})]}),children:(0,H.jsx)(v.Message,{children:`Cards entering a phase that runs it won't start until the phase gets another skill.`})}),m.error&&(0,H.jsx)(v,{variant:`destructive`,role:`alert`,children:(0,H.jsx)(v.Message,{children:m.error.message})}),t.error&&(0,H.jsx)(v,{variant:`destructive`,role:`alert`,children:(0,H.jsxs)(v.Message,{children:[`Agents cannot load this skill: `,t.error]})}),t.edited&&t.originalChanged&&(0,H.jsx)(v,{variant:`info`,role:`note`,children:(0,H.jsx)(v.Message,{children:`The original changed since this was edited. Revert to use the new original.`})}),(0,H.jsx)(Oe,{value:c,required:!0,readOnly:!n,onChange:e=>a(w(e,t.description))})]}),(0,H.jsx)(Et,{value:l,readOnly:!n,onChange:e=>s(w(e,t.content))}),g&&(0,H.jsxs)(De,{status:`Unsaved changes for this Factory. Running sessions keep the version they started with.`,notices:p.error&&(0,H.jsx)(v,{variant:`destructive`,role:`alert`,children:(0,H.jsx)(v.Message,{children:p.error.message})}),children:[(0,H.jsx)(y,{size:`sm`,variant:`ghost`,onClick:()=>{a(void 0),s(void 0),p.reset()},disabled:h,children:`Discard`}),(0,H.jsx)(y,{size:`sm`,variant:`primary`,onClick:()=>p.mutate({name:t.name,content:W({name:t.name,description:c,frontmatter:t.frontmatter,instructions:l})},{onSuccess:T({description:c,instructions:l})}),disabled:h,loading:p.isPending,children:`Save`})]}),(0,H.jsx)(U,{blocker:_,title:`Discard changes to ${t.name}?`,description:`Your unsaved changes to this skill will be lost.`})]})}var $=`motion-reduce:before:animate-none`,Nt=[`w-full`,`w-2/3`],Pt=[`w-full`,`w-11/12`,`w-full`,`w-3/4`];function Ft(){return(0,H.jsxs)(`div`,{role:`status`,"aria-label":`Loading skill`,className:`flex flex-col gap-8`,children:[(0,H.jsx)(`div`,{className:`flex flex-col`,children:Nt.map(e=>(0,H.jsx)(b,{line:`text-body`,className:D(e,$)},e))}),(0,H.jsx)(`div`,{className:`flex flex-col`,children:Pt.map((e,t)=>(0,H.jsx)(b,{line:`text-body leading-6`,className:D(e,$)},t))})]})}function It(){let e=t(),{skillName:n}=f();return(0,H.jsx)(i,{variant:`form`,backHref:L(e.id,`skills`),backLabel:`Skills`,title:n??`New skill`,LinkComponent:te,children:(0,H.jsx)(Lt,{factoryId:e.id,skillName:n})})}function Lt({factoryId:e,skillName:t}){let n=u(),{state:r}=c(),i=S(e),a=L(e,`skills`);if(i.isPending)return(0,H.jsx)(Ft,{});if(i.isLoadingError)return(0,H.jsx)(o,{title:`Couldn’t load skills`,error:i.error,onRetry:()=>void i.refetch(),retrying:i.isFetching});let s=i.data.canEdit??!1;if(t===void 0&&!s)return(0,H.jsx)(v,{variant:`info`,children:`Only organization admins can create skills.`});if(t===void 0)return(0,H.jsx)(jt,{factoryId:e,onCreated:t=>void n(we(e,t),{replace:!0,state:r})},e);let l=i.data.skills.find(e=>e.name===t);return l?(0,H.jsx)(Mt,{factoryId:e,skill:l,canEdit:s,onDeleted:()=>void n(a,{replace:!0,state:r})},`${e}/${l.name}`):(0,H.jsx)(x,{variant:`fill`,titleSlot:(0,H.jsxs)(`span`,{role:`alert`,children:[`This factory has no `,t,` skill.`]}),actionSlot:(0,H.jsx)(y,{render:(0,H.jsx)(p,{to:a,state:r}),children:`Back to skills`})})}export{It as FactorySkillPage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{D as t,O as n,S as r,o as i,p as a,s as o,w as s}from"./IconChevronRightMedium.es-ETbnXMk8.js";import{$i as c,As as l,Ba as u,Ms as d,Ra as f,Sn as p,Ss as m,Xi as h,bi as g,bn as _,cn as v,dn as y,ea as b,gn as x,hn as S,la as C,ln as w,ms as T,na as E,qs as D,vn as ee,wo as O,ws as k,xo as A,yi as j,yn as M}from"./useFactories-BSnLX5pf.js";import{a as N,c as P,i as F,o as I,r as te,s as L}from"./input-DqReKX0A-Di5bISel.js";var R=e(n(),1),z=t(),B=`flex flex-col items-center justify-end gap-1 rounded-md bg-fill p-3`;function V({title:e,caption:t,children:n,className:r,...i}){return(0,z.jsxs)(`figure`,{className:s(`row-span-3 grid grid-rows-subgrid justify-items-start text-start`,r),...i,children:[(0,z.jsx)(`figcaption`,{className:`text-column text-foreground`,children:e}),(0,z.jsx)(`div`,{"aria-hidden":!0,className:s(B,`justify-self-stretch`),children:n}),(0,z.jsx)(`p`,{className:`text-caption text-muted-foreground`,children:t})]})}var H={text:`max-w-64`,illustrated:`w-80 max-w-(--available-width) p-3`};function ne({children:e,side:t,align:n,variant:r=`text`,contentClassName:a,...l}){let u=R.useId(),[d,f]=R.useState(!1),p=R.useRef(void 0),m=R.useRef(null),_=r===`illustrated`&&n===void 0;return(0,z.jsxs)(c,{open:d,onOpenChange:f,children:[(0,z.jsx)(E,{ref:m,onPointerDown:e=>{p.current=e.pointerType===`touch`?{wasOpen:d}:void 0,p.current&&e.preventBaseUIHandler()},onClick:e=>{let t=p.current;p.current=void 0,t&&(e.preventBaseUIHandler(),f(!t.wasOpen))},render:(0,z.jsx)(`button`,{type:`button`,...l,"aria-describedby":u,className:s(`relative flex shrink-0 cursor-default items-center rounded-full text-subtle-foreground hover:text-muted-foreground focus-visible:text-muted-foreground`,`pointer-coarse:before:absolute pointer-coarse:before:-inset-1.5 pointer-coarse:before:content-['']`,i,o)}),children:(0,z.jsx)(h,{size:`xs`,children:(0,z.jsx)(g,{})})}),(0,z.jsx)(b,{id:u,keepMounted:!0,side:t??(r===`illustrated`?`bottom`:`top`),align:_?`start`:n,alignOffset:_?({side:e,positioner:t})=>{let n=m.current,r=n?.parentElement?.firstElementChild;if(!n||!r||e===`left`||e===`right`)return 0;let i=r.getBoundingClientRect().left-n.getBoundingClientRect().left;return Math.max(i,24-t.width)}:void 0,className:s(H[r],a),children:r===`illustrated`?(0,z.jsx)(`div`,{className:`grid auto-cols-fr grid-flow-col gap-x-4 gap-y-1.5`,children:e}):e})]})}var U=Object.assign(ne,{Panel:V});function W(e,t){let n=C(e);return D(()=>(t(n),()=>{t(e=>e===n?void 0:e)}),[n,t]),n}function G(e={}){let{id:t,fallbackControlId:n,native:r=!1,setLabelId:i,focusControl:a}=e,{controlId:o,setLabelId:s}=w(),c=W(t,O(e=>{s(e),i?.(e)})),u=o??n;function d(e){if(a){a(e,u);return}if(!u)return;let t=re(e.currentTarget,u);l(t)&&K(t)}function f(e){let t=k(e.nativeEvent);m(t,`button,input,select,textarea`)||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),r||d(e))}return r?{id:c,htmlFor:u,onMouseDown:f}:{id:c,onClick:f,onPointerDown(e){e.preventDefault()}}}function re(e,t){let n=e.getRootNode();for(;d(n);){let e=n.getElementById(t);if(e)return e;n=n.host.getRootNode()}return A(e).getElementById(t)}function K(e){e.focus({focusVisible:!0})}var q=function(e){let t=C(),[n,i]=R.useState(t),[a,o]=R.useState(),[s,c]=R.useState([]),l=n===void 0?t:n,u=r(()=>new Map),{messageIds:d}=w(),f=O((e,t)=>{let n=u.current;t===void 0?n.delete(e):n.set(e,t),i(e=>{if(n.size===0)return e;let t;for(let r of n.values()){if(r===e)return e;t===void 0&&(t=r)}return t})}),p=O(()=>{u.current.size===0&&i(t)}),m=R.useCallback(e=>{let t=e[`aria-describedby`]?e[`aria-describedby`].split(` `):[];return t.push(...d,...s),{...e,"aria-describedby":Array.from(new Set(t)).join(` `)||void 0}},[d,s]),h=R.useMemo(()=>({controlId:l,registerControlId:f,resetControlId:p,labelId:a,setLabelId:o,messageIds:s,setMessageIds:c,getDescriptionProps:m}),[l,f,p,a,o,s,c,m]);return(0,z.jsx)(v.Provider,{value:h,children:e.children})};function ie(e){let{change:t,commit:n,invalid:r,markedDirtyRef:i,name:a,setRegisteredFieldName:o,registeredFieldIdRef:s,setValidityData:c,validityData:l}=e,{formRef:u}=y(),d=R.useRef(null),f=R.useRef(null),p=R.useRef(!1),m=O(()=>{let e=f.current;if(e)return e.getValue?e.getValue():e.value});function h(e){return e.value===void 0?m():e.value}let g=O(()=>{let e=f.current;i.current=!0,n(e?h(e):l.value)});function _(){let e=f.current;e&&e.id&&u.current.fields.set(e.id,{getValue:m,name:a??e.name,controlRef:e.controlRef,validityData:F(l,r),validate:g})}function v(e=f.current?.id){e&&u.current.fields.delete(e)}function b(e){if(p.current)return;p.current=!0;let t=h(e);c(e=>e.initialValue===t?e:{...e,initialValue:t})}return D(()=>{let e=f.current;e&&e.id&&(o(a?void 0:e.name),u.current.fields.set(e.id,{getValue:m,name:a??e.name,controlRef:e.controlRef,validityData:F(l,r),validate:g}))},[u,m,r,a,o,g,l]),D(()=>{let e=u.current.fields;return()=>{let t=f.current?.id;t&&e.delete(t)}},[u]),[g,O((e,n)=>{if(!n){d.current===e&&(d.current=null,t(void 0,!0),v(),f.current=null,o(void 0),s.current=void 0);return}let r=f.current?.id,i=d.current;i&&i!==e&&t(void 0,!0),d.current=e,f.current=n,a||o(n.name),s.current=n.id,r&&r!==n.id&&v(r),b(n),_()})]}var ae=R.forwardRef(function(e,t){let{errors:n,validationMode:r,submitCountRef:i}=y(),{render:o,className:s,validate:c,validationDebounceTime:l=0,validationMode:u=r,name:d,disabled:f=!1,invalid:p,dirty:m,touched:h,actionsRef:g,style:_,...v}=e,b=I(!0)?.disabled,x=O(c||(()=>null)),C=b||f,[w,T]=R.useState(!1),[E,k]=R.useState(!1),[A,j]=R.useState(!1),[N,P]=R.useState(!1),F=R.useRef(void 0),L=m??E,B=h??w,V=R.useRef(L),H=R.useRef(void 0),[ne,U]=R.useState(),W=d??ne;D(()=>{m!==void 0&&(V.current=m)},[m]);let G=O(e=>{m===void 0&&(e&&(V.current=!0),k(e))}),re=O(e=>{h===void 0&&T(e)}),K=O(()=>u===`onChange`||u===`onSubmit`&&i.current>0),q=W&&Object.hasOwn(n,W)?n[W]:null,ae=!!(Array.isArray(q)?q.length:q),J=p===!0||ae,[Y,X]=R.useState({state:ee,error:``,errors:[],value:null,initialValue:null}),Z=!J&&(C?null:Y.state.valid),Q=R.useMemo(()=>({disabled:C,touched:B,dirty:L,valid:Z,filled:A,focused:N}),[C,B,L,Z,A,N]),$=te({setValidityData:X,validate:x,validityData:Y,validationDebounceTime:l,invalid:J,markedDirtyRef:V,state:Q,shouldValidateOnChange:K,validationMode:u,registeredFieldIdRef:H}),[oe,se]=ie({change:$.change,commit:$.commit,invalid:J,markedDirtyRef:V,name:d,setRegisteredFieldName:U,registeredFieldIdRef:H,setValidityData:X,validityData:Y});R.useImperativeHandle(g,()=>({validate:oe}),[oe]);let ce=R.useMemo(()=>({invalid:J,name:W,validityData:Y,setValidityData:X,disabled:C,setTouched:re,setDirty:G,setFilled:j,setFocused:P,focusOwnerRef:F,validationMode:u,shouldValidateOnChange:K,state:Q,registerFieldControl:se,validation:$}),[J,W,Y,C,re,G,j,P,u,K,Q,se,$]),le=a(`div`,e,{ref:t,state:Q,props:v,stateAttributesMapping:M});return(0,z.jsx)(S.Provider,{value:ce,children:le})}),J=R.forwardRef(function(e,t){return(0,z.jsx)(q,{children:(0,z.jsx)(ae,{...e,ref:t})})}),Y=R.forwardRef(function(e,t){let{render:n,className:r,style:i,id:o,nativeLabel:s=!0,...c}=e,l=x(!1),u=P(),{labelId:d}=w(),f={...l.state,disabled:l.disabled||u.disabled},p=R.useRef(null),m=G({id:d??o,native:s});return a(`label`,e,{ref:[t,p],state:f,props:[m,c],stateAttributesMapping:M})}),X={...M,...T},Z=R.forwardRef(function(e,t){let{render:n,id:r,className:i,match:o,style:s,...c}=e,l=C(r),{validityData:d,state:p,name:m}=x(!1),{setMessageIds:h}=w(),{errors:g}=y(),_=m&&Object.hasOwn(g,m)?g[m]:null,v=!!(Array.isArray(_)?_.length:_),b=typeof o==`string`,S=!1;S=o===!0?!0:p.disabled?!1:b?!!d.state[o]:v||d.state.valid===!1;let{mounted:T,transitionStatus:E,setMounted:ee}=u(S);D(()=>{if(S&&l)return h(e=>e.concat(l)),()=>{h(e=>e.filter(e=>e!==l))}},[S,l,h]);let O=R.useRef(null),[k,A]=R.useState(null),[j,M]=R.useState(null),N=d.error;!b&&v?N=_:d.errors.length>1&&(N=d.errors);let P=N;Array.isArray(N)&&(P=N.length>1?(0,z.jsx)(`ul`,{children:N.map(e=>(0,z.jsx)(`li`,{children:e},e))}):N[0]);let F=Array.isArray(N)?JSON.stringify(N):N;S&&F!==j&&(M(F),A(P)),f({open:S,ref:O,onComplete(){S||ee(!1)}});let I={...p,transitionStatus:E},te=a(`div`,e,{ref:[t,O],state:I,props:[{id:l,children:S?P:k},c],stateAttributesMapping:X,enabled:T});return T?te:null}),Q=R.forwardRef(function(e,t){let{render:n,id:r,className:i,style:o,...s}=e,c=C(r),l=x(!1),u=P(),{setMessageIds:d}=w(),f={...l.state,disabled:l.disabled||u.disabled};return D(()=>{if(c)return d(e=>e.concat(c)),()=>{d(e=>e.filter(e=>e!==c))}},[c,d]),a(`p`,e,{ref:t,state:f,props:[{id:c},s],stateAttributesMapping:M})}),$=R.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:o=!1,...s}=e,{state:c,disabled:l}=x(!1),u=l||o,d={...c,disabled:u},f=R.useMemo(()=>({disabled:u}),[u]),p=a(`div`,e,{ref:t,state:d,props:s,stateAttributesMapping:M});return(0,z.jsx)(q,{children:(0,z.jsx)(L.Provider,{value:f,children:p})})}),oe=R.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:o=!1,...s}=e,[c,l]=R.useState(void 0),u=I(!0)?.disabled||o,d=a(`fieldset`,e,{ref:t,state:{disabled:u},props:[{"aria-labelledby":c,disabled:u},s]}),f=R.useMemo(()=>({legendId:c,setLegendId:l,disabled:u}),[c,l,u]);return(0,z.jsx)(N.Provider,{value:f,children:d})}),se=R.forwardRef(function(e,t){let{render:n,className:r,style:i,id:o,...s}=e,{disabled:c,setLegendId:l}=I(),u=W(o,l);return a(`div`,e,{state:{disabled:c},ref:t,props:[{id:u},s]})}),ce={vertical:`grid gap-2`,horizontal:`flex items-center gap-2 has-[>[data-slot=field-label]:first-child,>[data-slot=field-label-row]:first-child]:justify-between`,responsive:`flex flex-col gap-2 sm:flex-row sm:items-center`};function le({className:e,orientation:t=`vertical`,invalid:n=!1,...r}){let i=R.useId(),[a,o]=R.useState(!1),c=R.useMemo(()=>({labelId:`${i}-label`,descriptionId:`${i}-description`,errorId:`${i}-error`,controlId:`${i}-control`,invalid:n,hasDescription:a,setHasDescription:o}),[i,n,a]);return(0,z.jsx)(_.Provider,{value:c,children:(0,z.jsx)(J,{invalid:n,"data-slot":`field`,"data-orientation":t,className:s(`min-w-0 text-foreground`,ce[t],e),...r})})}function ue({className:e,...t}){let n=p()===null?J:$;return(0,z.jsx)(_.Provider,{value:null,children:(0,z.jsx)(n,{"data-slot":`field-item`,className:s(`flex min-w-0 items-center gap-2`,e),...t})})}function de(){return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`span`,{"aria-hidden":!0,className:`ml-0.5 text-destructive-foreground in-data-disabled:text-muted-foreground`,children:`*`}),` `,(0,z.jsx)(`span`,{className:`sr-only`,children:`(required)`})]})}function fe(e){let t=R.Children.toArray(e);if(t.every(e=>typeof e==`string`||typeof e==`number`))return t.join(``)}function pe({label:e,labelId:t,aboutId:n}){let r=fe(e);return r?{"aria-label":`About ${r}`}:t?{"aria-labelledby":`${n} ${t}`}:{"aria-label":`About this field`}}function me({children:e,label:t,labelId:n}){let r=R.useId(),i=pe({label:t,labelId:n,aboutId:r}),a=`aria-labelledby`in i;return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(U,{...i,children:e}),a?(0,z.jsx)(`span`,{id:r,hidden:!0,children:`About`}):null]})}function he({className:e,required:t=!1,size:n=`default`,info:r,children:i,onClick:a,...o}){let c=p(),l=(0,z.jsxs)(Y,{id:c?.labelId,"data-slot":`field-label`,className:s(`inline-flex shrink-0 items-center text-label text-foreground data-disabled:text-muted-foreground`,`[:where(&:not(:has([role=checkbox],[role=switch],[role=radio])))]:w-fit`,`not-data-disabled:has-[[role=checkbox],[role=switch],[role=radio]]:cursor-pointer`,`not-data-disabled:[:is([data-slot=field],[data-slot=field-item]):has(>[role=checkbox],>[role=switch],>[role=radio])_&]:cursor-pointer`,`data-disabled:cursor-not-allowed`,n===`smaller`&&`text-column`,n===`bigger`&&`text-body`,e),onClick:e=>{a?.(e),c&&!e.defaultPrevented&&e.currentTarget.ownerDocument.getElementById(c.controlId)?.focus()},...o,children:[i,t?(0,z.jsx)(de,{}):null]});return r?(0,z.jsxs)(`span`,{"data-slot":`field-label-row`,className:`flex w-fit items-center gap-1`,children:[l,(0,z.jsx)(me,{label:i,labelId:c?.labelId,children:r})]}):l}function ge({className:e,...t}){let n=p(),r=n?.setHasDescription;return R.useEffect(()=>{if(r)return r(!0),()=>r(!1)},[r]),(0,z.jsx)(Q,{id:n?.descriptionId,"data-slot":`field-description`,className:s(`-mt-1 text-caption text-muted-foreground`,e),...t})}var _e=`-mt-1 flex gap-1 text-body-sm text-destructive-foreground`;function ve(){return(0,z.jsx)(h,{size:`xs`,className:`mt-1 shrink-0`,"aria-hidden":!0,children:(0,z.jsx)(j,{})})}function ye({className:e,children:t,...n}){let r=p();return t?(0,z.jsxs)(Z,{id:r?.errorId,match:!0,role:`alert`,"data-slot":`field-error`,className:s(_e,e),...n,children:[(0,z.jsx)(ve,{}),(0,z.jsx)(`span`,{className:`min-w-0`,children:t})]},`external`):(0,z.jsx)(Z,{id:r?.errorId,role:`alert`,"data-slot":`field-error`,className:s(_e,e),...n,render:({children:e,...t})=>(0,z.jsxs)(`div`,{...t,children:[(0,z.jsx)(ve,{}),(0,z.jsx)(`span`,{className:`min-w-0`,children:e})]})},`native`)}function be({className:e,...t}){return(0,z.jsx)(oe,{"data-slot":`fieldset`,className:s(`m-0 grid min-w-0 gap-3 border-0 p-0`,e),...t})}function xe({className:e,required:t=!1,children:n,...r}){return(0,z.jsxs)(se,{"data-slot":`fieldset-legend`,className:s(`text-label text-foreground data-disabled:text-muted-foreground`,e),...r,children:[n,t?(0,z.jsx)(de,{}):null]})}export{he as a,U as c,ue as i,ge as n,be as o,ye as r,xe as s,le as t};
|