mastra 1.40.2 → 1.40.3-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/api/factory-route-metadata.generated.d.ts +236 -63
- package/dist/commands/api/index.d.ts +3 -17
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +4 -4
- package/dist/docs/references/docs-mastra-platform-observability-overview.md +1 -1
- package/dist/factory/assets/AlertDialog.es-D0lBXghn.js +1 -0
- package/dist/factory/assets/BoardConfigPage-Dj5kwI2y.js +1 -0
- package/dist/factory/assets/BoardIcons-BwoF0u8e.js +1 -0
- package/dist/factory/assets/BoardIntakePage-Q9Xj8mXp.js +1 -0
- package/dist/factory/assets/BoardRulesPage-D0CHHtNK.js +1 -0
- package/dist/factory/assets/Breadcrumb.es-DjvzVu5v.js +1 -0
- package/dist/factory/assets/CompositeRoot-Dh1DVCmf.js +1 -0
- package/dist/factory/assets/ConditionRows-BII3QMlB.js +1 -0
- package/dist/factory/assets/{DescriptionMarkdown-iotpUxXF.js → DescriptionMarkdown-DdlduiCY.js} +1 -1
- package/dist/factory/assets/EmptyState-IMGHVwoU-DpmxDoqJ.js +1 -0
- package/dist/factory/assets/FactorySkillPage-CgiFCZpq.js +3 -0
- package/dist/factory/assets/FactorySkillsPage-BrewD3Xe.js +1 -0
- package/dist/factory/assets/Field.es-DnLKooWt.js +3 -0
- package/dist/factory/assets/{GithubIcon.es-CIm0nGDf.js → GithubIcon.es-Bg-ShonN.js} +5 -5
- package/dist/factory/assets/HoverCard.es-C8aHXADr.js +1 -0
- package/dist/factory/assets/IconArrowDown.es-Cl0O2wpG.js +1 -0
- package/dist/factory/assets/IconArrowRotateClockwise.es-EH4DxhF-.js +1 -0
- package/dist/factory/assets/IconArrowsRepeatRightLeft.es-Csd7QceY.js +1 -0
- package/dist/factory/assets/IconClipboard2.es-DTJVO2Dz.js +1 -0
- package/dist/factory/assets/IconCodeTree.es-CoO-cbs1.js +1 -0
- package/dist/factory/assets/IconLock.es-Da9O9rEP.js +1 -0
- package/dist/factory/assets/IconScript.es-CJGOgANb.js +1 -0
- package/dist/factory/assets/{Input-9DXuotFV.js → Input-CI6m9l4V.js} +1 -1
- package/dist/factory/assets/InputNumber.es-Dy6Zb_oj.js +1 -0
- package/dist/factory/assets/KnowledgePage--7Lsedqn.js +13 -0
- package/dist/factory/assets/{MarkdownRenderer-Ca7UVGTG-D9IuJEv9.js → MarkdownRenderer-BMd9aqtH-Dt2AEdfj.js} +3 -3
- package/dist/factory/assets/ModelPackTimeline-fFIOAxty.js +1 -0
- package/dist/factory/assets/NewBoardPage-DZ0Rbam8.js +2 -0
- package/dist/factory/assets/NewPage-BIg9dQYl.css +1 -0
- package/dist/factory/assets/NewPage-pP4mPkSn.js +1 -0
- package/dist/factory/assets/OnboardingPage-ztL7s9Gl.js +1 -0
- package/dist/factory/assets/RadioGroup-Bn4ryXJm.js +1 -0
- package/dist/factory/assets/{RadioGroup.es-DQfIiNtD.js → RadioGroup.es-C8uhRWPA.js} +1 -1
- package/dist/factory/assets/RootGuards-DXwaB2QY.js +1 -0
- package/dist/factory/assets/RulesPage-DgBirgyO.js +1 -0
- package/dist/factory/assets/SearchInput.es-Pf9qxs2A.js +1 -0
- package/dist/factory/assets/SessionLayout-CZPWzGQy.js +4 -0
- package/dist/factory/assets/SessionPage-CZRkLPmc.js +1 -0
- package/dist/factory/assets/SettingsPage-BVO5Cnca.js +3 -0
- package/dist/factory/assets/SettingsSubsection-DaTV_qpr.js +1 -0
- package/dist/factory/assets/Sidebar-zeEMJHoc-CAYPr70W.js +1 -0
- package/dist/factory/assets/SignInPage-5os1Jbzt.js +1 -0
- package/dist/factory/assets/SkillBadges-B_RoiVSH.js +1 -0
- package/dist/factory/assets/SlackConnectionPage-OMyUwT1O.js +1 -0
- package/dist/factory/assets/StackedDiffs-wbpgGXrR.js +313 -0
- package/dist/factory/assets/Switch.es-D4TVspgz.js +1 -0
- package/dist/factory/assets/TabsRoot-DXvmv54V.js +1 -0
- package/dist/factory/assets/Textarea.es-BeC279Kh.js +1 -0
- package/dist/factory/assets/{buttons-group-DA_wORqQ-tI0OhQlr.js → buttons-group-DA_wORqQ-CESZ0_Us.js} +1 -1
- package/dist/factory/assets/code-block-MoHEPzJi-0pwwq7GL.js +4 -0
- package/dist/factory/assets/code-editor-zfQ0QGHJ-Dnbelmjy.js +1 -0
- package/dist/factory/assets/{copy-button-C3L1ZoAD-DpbBeGOv.js → copy-button-C3L1ZoAD-ZUkWCqKU.js} +1 -1
- package/dist/factory/assets/{dist-CMX7_OjZ.js → dist-BOiJM1fT.js} +1 -1
- package/dist/factory/assets/dist-Bu0ZB8Qi.js +23 -0
- package/dist/factory/assets/esm-C7LfA2Jk.js +3 -0
- package/dist/factory/assets/highlight-Bv6lOTjf-c8PJ6G0P.js +3 -0
- package/dist/factory/assets/index-BRs5cQ2x.js +165 -0
- package/dist/factory/assets/index-DVwYIa0W.css +1 -0
- package/dist/factory/assets/{input-group-BXqgO3Q2-BNrm-udR.js → input-group-BXqgO3Q2-DzeL0Gjq.js} +1 -1
- package/dist/factory/assets/{onboardingFlow-C89nSzO4.js → onboardingFlow-CKxltbcm.js} +1 -1
- package/dist/factory/assets/provider-credential-D3GMGkrr.js +1 -0
- package/dist/factory/assets/relative-time.es-CaeSND32.js +1 -0
- package/dist/factory/assets/remarkKnowledgeLinks.es-B-tYr6Bw.js +1 -0
- package/dist/factory/assets/{ruleLanes-CB6XWPZ9.js → ruleLanes-CnBKj6eB.js} +1 -1
- package/dist/factory/assets/{settings-C5r2ThW9-DgHKaQxx.js → settings-D8kIm4wB-Crk4R7dN.js} +1 -1
- package/dist/factory/assets/stringifyLocale-CkHjdQTJ.js +1 -0
- package/dist/factory/assets/use-clock.es-BRtR1ha2.js +1 -0
- package/dist/factory/assets/use-measured-auto-height.es-ChpAPvzN.js +1 -0
- package/dist/factory/assets/{useBoardCatalog-DC55UfJd.js → useBoardCatalog-BWEZygG2.js} +1 -1
- package/dist/factory/assets/{useBoardEditor-DFyQuLCD.js → useBoardEditor-DhrV_vHP.js} +1 -1
- package/dist/factory/assets/useDraftModelGuards-CyhFV5s9.js +29 -0
- package/dist/factory/assets/{useDraftModelGuards-BCXwizit.css → useDraftModelGuards-tpQz9ax0.css} +1 -1
- package/dist/factory/assets/useFactoryDecisions-uD1xceQU.js +1 -0
- package/dist/factory/assets/useGlobalSearchControls-BpSe2Oen.js +1 -0
- package/dist/factory/assets/{useInfiniteQuery-D1T5yb8L.js → useInfiniteQuery-CZPCsZCl.js} +1 -1
- package/dist/factory/assets/useIntakeRoutes-C4ob2f2v.js +1 -0
- package/dist/factory/assets/useRouteSessionId-DdAvkJPa.js +1 -0
- package/dist/factory/assets/useRowDrag-De5Tj8SP.js +1 -0
- package/dist/factory/assets/useSessionCard-w-2LebX-.js +1 -0
- package/dist/factory/assets/useSessionRepository-B9WnbBsY.js +1 -0
- package/dist/factory/assets/useSessionRows-DQ5H8cED.js +1 -0
- package/dist/factory/assets/useThreadWorkspacePath-BXgaPpZH.js +1 -0
- package/dist/factory/assets/workspaces-B1zVvDbs.js +2 -0
- package/dist/factory/index.html +60 -60
- package/dist/index.js +245 -109
- package/dist/studio/assets/{CodeDiff.es-DPLF0xDv.js → CodeDiff.es-v4pVbNVj.js} +7 -7
- package/dist/studio/assets/code-editor-zfQ0QGHJ-BIJN-VpC.js +4 -0
- package/dist/studio/assets/code-editor-zfQ0QGHJ-fjLZN9tO.js +1 -0
- package/dist/studio/assets/{index-y7atQeWR.js → index-menbjLeT.js} +2 -2
- package/dist/studio/assets/lib-BOiJ-Vvo.js +1 -0
- package/dist/studio/assets/{main-BhWoo2De.js → main-BjGpEwF_.js} +288 -288
- package/dist/studio/assets/style-Ba0pvipg.css +2 -0
- package/dist/studio/assets/transitions.es-BWnUAqWN.js +1 -0
- package/dist/studio/index.html +2 -2
- package/dist/utils/check-peer-deps.d.ts +1 -1
- package/dist/utils/mastra-packages.d.ts +7 -0
- package/package.json +5 -5
- package/dist/factory/assets/AlertDialog.es-Dkf8ZLsq.js +0 -1
- package/dist/factory/assets/BoardConfigPage-CbGjRoKd.js +0 -1
- package/dist/factory/assets/BoardIcons-ChSrt-Ky.js +0 -1
- package/dist/factory/assets/BoardIntakePage-lNVbdWDh.js +0 -1
- package/dist/factory/assets/BoardRulesPage-DWDWpS0z.js +0 -1
- package/dist/factory/assets/Breadcrumb.es-DRA_fT-0.js +0 -1
- package/dist/factory/assets/Card-C1AF3dS4-D5nc4nsO.js +0 -1
- package/dist/factory/assets/CodeBlock.es-CSnUNCvE.js +0 -6
- package/dist/factory/assets/CodeEditor-DE69mZsU-DhkPbKOd.js +0 -1
- package/dist/factory/assets/Command.es-CJWc6UXm.js +0 -41
- package/dist/factory/assets/CompositeItem-DXJX9-KR.js +0 -1
- package/dist/factory/assets/CompositeRoot-COSYbRmu.js +0 -1
- package/dist/factory/assets/ConditionRows-mhryClJA.js +0 -1
- package/dist/factory/assets/CreateFactoryPage-BJVsA5mX.js +0 -1
- package/dist/factory/assets/EmptyState-DJaZF543-BTdobX9X.js +0 -1
- package/dist/factory/assets/FactorySkillPage-D9qzT8bU.js +0 -3
- package/dist/factory/assets/FactorySkillsPage-PMfXgYDo.js +0 -1
- package/dist/factory/assets/Field.es-BgoAtL-2.js +0 -1
- package/dist/factory/assets/HrefLink-1sjfHRy7.js +0 -1
- package/dist/factory/assets/IconArrowRight.es-DoSwFft1.js +0 -1
- package/dist/factory/assets/IconArrowRotateClockwise.es-INXo4MVi.js +0 -1
- package/dist/factory/assets/IconFormCircle.es-DNm0NK7A.js +0 -1
- package/dist/factory/assets/IconKey2.es-c-pQ7fii.js +0 -1
- package/dist/factory/assets/IconLoadingCircle.es-Cj4Y7rb5.js +0 -1
- package/dist/factory/assets/IconPencil.es-DLEsNj2e.js +0 -1
- package/dist/factory/assets/IconScript.es-CPO1Fq6Z.js +0 -1
- package/dist/factory/assets/IconSettingsSliderHor.es-VS_Cfpz8.js +0 -1
- package/dist/factory/assets/IconSquareArrowTopRight.es-BA_OOKAF.js +0 -1
- package/dist/factory/assets/IconUserDuo.es-CJ2yCPc7.js +0 -1
- package/dist/factory/assets/InputNumber.es-Bho-MKtp.js +0 -1
- package/dist/factory/assets/KnowledgePage-CmdlrOqT.js +0 -13
- package/dist/factory/assets/LoadErrorState-w5i-jqQO.js +0 -1
- package/dist/factory/assets/MastraGatewayBilling-D2xarOnv.js +0 -1
- package/dist/factory/assets/NewBoardPage-Co58G3u-.js +0 -2
- package/dist/factory/assets/NewPage-B4lBGEFC.js +0 -1
- package/dist/factory/assets/OnboardingPage-D1AJcuIq.js +0 -1
- package/dist/factory/assets/ProviderBrandIcon-CKq3WaGZ.js +0 -1
- package/dist/factory/assets/RadioGroup-CvTRwRir.js +0 -1
- package/dist/factory/assets/RootGuards-CZvggXIb.js +0 -1
- package/dist/factory/assets/RulesPage-Bu80TWNE.js +0 -1
- package/dist/factory/assets/SearchInput.es-BRVlUePH.js +0 -1
- package/dist/factory/assets/SessionLayout-DeleDrJs.js +0 -4
- package/dist/factory/assets/SessionPage-BAz6O4wl.js +0 -1
- package/dist/factory/assets/SessionSharingPopover-CX69d1UJ.js +0 -1
- package/dist/factory/assets/SettingsPage-9wgvYj6_.js +0 -3
- package/dist/factory/assets/SettingsSubsection-D1Yp4Ujt.js +0 -1
- package/dist/factory/assets/Sidebar.es-B464rGRm.js +0 -1
- package/dist/factory/assets/SignInPage-BBl3lfcN.js +0 -1
- package/dist/factory/assets/SkillBadges-DuFvl4d8.js +0 -1
- package/dist/factory/assets/SlackConnectionPage-6H6OccOz.js +0 -1
- package/dist/factory/assets/StackedDiffs-DtoTOL9C.js +0 -313
- package/dist/factory/assets/TabsRoot-MM_4fh4A.js +0 -1
- package/dist/factory/assets/ThinkingLevel.es-Q1cgMAQj.js +0 -1
- package/dist/factory/assets/TrashIcon.es-DoCvaCDh.js +0 -1
- package/dist/factory/assets/Tree-B90XgTY4-DvEdNAwi.js +0 -1
- package/dist/factory/assets/audit-tkHFFRdv.js +0 -1
- package/dist/factory/assets/combobox-parts-BVuRAhY6-ClaPtI8E.js +0 -1
- package/dist/factory/assets/dist-B5wMYzWI.js +0 -23
- package/dist/factory/assets/esm-C7YFnOq6.js +0 -3
- package/dist/factory/assets/index-Btp5jnxM.js +0 -125
- package/dist/factory/assets/index-CK3K8ZRd.css +0 -1
- package/dist/factory/assets/input-DqReKX0A-D66C6dWr.js +0 -3
- package/dist/factory/assets/relative-time.es-2U7OUie-.js +0 -1
- package/dist/factory/assets/select-BPzTS5dZ-BGYcBcgg.js +0 -1
- package/dist/factory/assets/use-keydown.es-BFnOTORr.js +0 -1
- package/dist/factory/assets/use-measured-auto-height.es-Do6xK0xw.js +0 -1
- package/dist/factory/assets/useChatSessionContext--lCmFMPT.js +0 -1
- package/dist/factory/assets/useDraftModelGuards-BRcs4Wdl.js +0 -29
- package/dist/factory/assets/useFactoryDecisions-O_sajSic.js +0 -1
- package/dist/factory/assets/useGlobalSearchControls-BOmC11Gr.js +0 -1
- package/dist/factory/assets/useIntakeRoutes-C2h717K6.js +0 -1
- package/dist/factory/assets/useLinearData-D6cSKZs3.js +0 -1
- package/dist/factory/assets/useRouteSessionId-BYStxtYL.js +0 -1
- package/dist/factory/assets/useRowDrag-B2rvWAzw.js +0 -1
- package/dist/factory/assets/useSessionCard-mjrTpVMe.js +0 -1
- package/dist/factory/assets/useSessionRepository-CCb1tcZg.js +0 -1
- package/dist/factory/assets/useSessionRows-CIakAaqj.js +0 -1
- package/dist/factory/assets/useThreadWorkspacePath-BmtxcrV6.js +0 -1
- package/dist/factory/assets/workspaces-DYc-hvkC.js +0 -2
- package/dist/factory/factory-stage-icons/review.svg +0 -5
- package/dist/factory/factory-stage-icons/triage.svg +0 -3
- package/dist/studio/assets/lib-DtdM3YyA.js +0 -1
- package/dist/studio/assets/style-CLhrNGTk.css +0 -3
- /package/dist/factory/assets/{EmptyState-DJaZF543-Dy7tkp2s.css → EmptyState-IMGHVwoU-Dy7tkp2s.css} +0 -0
- /package/dist/factory/assets/{useChatSessionContext-C1AYXK8g.css → IconArrowRotateClockwise-C1AYXK8g.css} +0 -0
- /package/dist/factory/assets/{MarkdownRenderer-Ca7UVGTG-C04mQel5.css → MarkdownRenderer-BMd9aqtH-C04mQel5.css} +0 -0
- /package/dist/factory/assets/{Sidebar-GVgJQL2A.css → Sidebar-zeEMJHoc-GVgJQL2A.css} +0 -0
- /package/dist/factory/assets/{combobox-parts-BVuRAhY6-CYlMQsMB.css → Switch-CYlMQsMB.css} +0 -0
- /package/dist/factory/assets/{CodeBlock-BQpfUmVC.css → code-block-MoHEPzJi-BQpfUmVC.css} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{$r as t,En as n,li as r,si as i,ui as a}from"./index-BRs5cQ2x.js";import{n as o,t as s}from"./Breadcrumb.es-DjvzVu5v.js";import{a as c}from"./Sidebar-zeEMJHoc-CAYPr70W.js";import{Jn as l,Zr as u,n as d}from"./GithubIcon.es-Bg-ShonN.js";import{r as f}from"./useBoardEditor-DhrV_vHP.js";import{a as p,n as m,s as h,t as g}from"./boardConfigPaths-Btimpi_r.js";import{j as _}from"./TabsRoot-DXvmv54V.js";import{ln as v}from"./useSessionRows-DQ5H8cED.js";import{O as y,T as b,k as x,n as S}from"./IconChevronRightMedium.es-BkPdzxSm.js";import{o as C,s as w,t as T,u as E}from"./settings-D8kIm4wB-Crk4R7dN.js";import{a as D,c as O,d as k,i as A,l as j,n as M,o as N,r as P,t as F,u as I}from"./useRowDrag-De5Tj8SP.js";import{o as L}from"./useIntakeRoutes-C4ob2f2v.js";import{h as R,p as z}from"./ruleLanes-CnBKj6eB.js";import{d as B}from"./Field.es-DnLKooWt.js";import{n as V}from"./useBoardCatalog-BWEZygG2.js";import{t as H}from"./SettingsSubsection-DaTV_qpr.js";import{s as U}from"./settingsSections-XZPX_pR6.js";var W=e(x(),1),G=y();function K({factoryId:e}){let t=A(e),n=D(e),r=new Map((V(e).data??[]).map(e=>[e.id,e.name])),i=t.data?.pages??[],a=i.flatMap(e=>e.notRouted),o=i[0]?.canEdit??!1,s=e=>n.mutate(e.id,{onSuccess:t=>v.success(`Filing “${e.title}” on ${r.get(t.boardKey)??t.boardKey}.`),onError:e=>v.error(e.message)}),c=t.isPending?`Loading…`:t.isError?`Items not routed didn’t load.`:t.hasNextPage?`${a.length>0?`${a.length}+`:`More`} waiting for a board.`:a.length===0?`Every new issue and pull request found a board.`:`${a.length} waiting for a board.`;return(0,G.jsxs)(`section`,{id:m,"aria-label":`Not routed`,className:`flex scroll-mt-4 flex-col gap-3 px-3.5 pt-3 pb-3.5`,children:[(0,G.jsx)(C,{media:(0,G.jsx)(w,{children:(0,G.jsx)(j,{})}),title:(0,G.jsxs)(`span`,{className:`flex items-center gap-1`,children:[`Not routed`,(0,G.jsx)(B,{"aria-label":`When an item is not routed`,children:`A new issue or pull request ends up here when no board’s rules take it. Change a board’s rules, then route it again.`})]}),description:c}),(a.length>0||t.hasNextPage)&&(0,G.jsxs)(`ul`,{"aria-label":`Items not routed`,className:`ml-11 flex flex-col`,children:[a.map(t=>(0,G.jsx)(`li`,{className:`border-border border-t py-3`,children:(0,G.jsxs)(C,{title:t.url?(0,G.jsx)(`a`,{href:t.url,target:`_blank`,rel:`noreferrer`,className:`hover:underline`,children:t.title}):t.title,description:(0,G.jsxs)(`span`,{className:`flex flex-wrap gap-x-3 gap-y-1`,children:[t.sourceKey&&(0,G.jsx)(`span`,{children:t.sourceKey}),(0,G.jsx)(`span`,{children:t.reason??`No board’s rules match it.`}),(0,G.jsx)(`time`,{dateTime:t.decidedAt,children:q(t.decidedAt)})]}),children:[(0,G.jsx)(M,{factoryProjectId:e,itemId:t.id,label:`Why?`}),o&&(0,G.jsx)(u,{size:`sm`,variant:`ghost`,onClick:()=>s(t),loading:n.isPending&&n.variables===t.id,children:`Route again`})]})},t.id)),t.hasNextPage&&(0,G.jsx)(`li`,{className:`border-border flex justify-center border-t pt-3`,children:(0,G.jsx)(u,{size:`sm`,variant:`ghost`,onClick:()=>void t.fetchNextPage(),loading:t.isFetchingNextPage,children:`Load more`})})]})]})}function q(e){return new Date(e).toLocaleString(void 0,{dateStyle:`medium`,timeStyle:`short`})}var J=b(`relative before:pointer-events-none before:absolute before:right-0 before:left-0 before:z-20 before:hidden before:h-0.5 before:rounded-full before:bg-border-focus`,`data-[drop=before]:before:top-0 data-[drop=before]:before:block data-[drop=after]:before:bottom-0 data-[drop=after]:before:block`);function Y({factoryId:e}){let t=P(e);return(0,G.jsx)(H,{id:g,scope:`factory`,title:`Intake order`,description:`A new issue or pull request is offered to each board in this order. The first board whose rules take it keeps it.`,children:t.isPending?(0,G.jsx)(T,{children:(0,G.jsx)(E,{label:`Loading intake order`,variant:`item`,rows:3})}):t.isError?(0,G.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,G.jsx)(d,{variant:`destructive`,children:`The intake order didn’t load.`}),(0,G.jsx)(`div`,{className:`border-border rounded-xl border`,children:(0,G.jsx)(K,{factoryId:e})})]}):(0,G.jsx)(X,{factoryId:e,order:t.data},e)})}function X({factoryId:e,order:t}){let n=L(e),r=N(e),[i,a]=(0,W.useState)(),o=t.boards.map(e=>e.boardKey),s=i&&$(i,o)?i:void 0,c=s??o,f=new Map(t.boards.map(e=>[e.boardKey,e.name])),p=s!==void 0&&s.some((e,t)=>e!==o[t]),m=(e,t)=>{let n=[...c],[r]=n.splice(e,1);r!==void 0&&(n.splice(t,0,r),a(n))},g=F({min:0,max:c.length-1,onDrop:m}),_=()=>r.mutate(c,{onSuccess:()=>{a(void 0),v.success(`Intake order saved.`)},onError:e=>v.error(e.message)}),y=t.canEdit&&c.length>1,x=y&&!r.isPending;return(0,G.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,G.jsx)(Q,{order:t,changed:p}),n.isError&&(0,G.jsx)(d,{variant:`warning`,children:`Rule counts didn’t load.`}),(0,G.jsxs)(`div`,{className:`border-border flex flex-col rounded-xl border`,children:[(0,G.jsx)(T,{role:`list`,"aria-label":`Intake order`,children:c.map((t,r)=>{let i=g.drag?.from===r,a=f.get(t)??t;return(0,G.jsx)(C,{role:`listitem`,"data-drop":g.dropAt(r),style:i?{transform:`translateY(${g.drag?.offset??0}px)`}:void 0,onPointerDown:x?e=>g.onPointerDown(e,r):void 0,onKeyDown:x?e=>g.onKeyDown(e,r):void 0,className:b(`group/row`,J,i&&`z-10 opacity-90`),media:(0,G.jsxs)(w,{children:[(0,G.jsx)(S,{as:`span`,variant:`caption`,className:b(`tabular-nums`,y&&`pointer-fine:group-hover/row:hidden`,i&&`hidden`),children:r+1}),y&&(0,G.jsx)(`span`,{"data-grip":!0,"aria-hidden":!0,className:b(`text-icon3 hidden cursor-grab touch-none pointer-fine:group-hover/row:inline-flex`,i&&`inline-flex`),children:(0,G.jsx)(O,{className:`size-icon-md`})})]}),title:a,description:(0,G.jsx)(Z,{routes:n.data?.intakeRoutes,boardKey:t}),children:(0,G.jsxs)(`div`,{className:`flex items-center gap-1 transition-opacity pointer-fine:opacity-0 pointer-fine:group-focus-within/row:opacity-100 pointer-fine:group-hover/row:opacity-100`,children:[y&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(u,{size:`icon-sm`,variant:`ghost`,tooltip:`Check earlier`,disabled:!x||r===0,onClick:()=>m(r,r-1),children:(0,G.jsx)(I,{})}),(0,G.jsx)(u,{size:`icon-sm`,variant:`ghost`,tooltip:`Check later`,disabled:!x||r===c.length-1,onClick:()=>m(r,r+1),children:(0,G.jsx)(k,{})})]}),(0,G.jsx)(u,{size:`sm`,variant:`ghost`,render:(0,G.jsx)(l,{to:h(e,t)}),children:`Edit rules`})]})},t)})}),(0,G.jsx)(K,{factoryId:e})]}),t.canEdit&&p&&(0,G.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,G.jsx)(u,{size:`sm`,variant:`ghost`,onClick:()=>a(void 0),disabled:r.isPending,children:`Discard`}),(0,G.jsx)(u,{size:`sm`,variant:`primary`,onClick:_,loading:r.isPending,children:`Save order`})]})]})}function Z({routes:e,boardKey:t}){if(!e)return null;let{count:n,catchesAll:r}=z(e.filter(e=>e.target.boardKey===t));return(0,G.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,G.jsx)(`span`,{children:n===0?`No rules for new issues and pull requests`:`${R(n)} for new issues and pull requests`}),r&&(0,G.jsx)(_,{children:`Ends in catch-all`})]})}function Q({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,G.jsx)(d,{variant:`info`,children:(0,G.jsx)(`span`,{className:`flex flex-col gap-1`,children:a.map(e=>(0,G.jsx)(`span`,{children:e},e))})})}function $(e,t){let n=new Set(t);return e.length===t.length&&e.every(e=>n.has(e))}function ee(){let e=t(),u=n()?.boardId??``,{isMobile:d,desktopState:m}=c(),h=d||m===`collapsed`,g=f(e.id,u).data?.board,_=i({breadcrumbs:h&&g?(0,G.jsxs)(s,{label:`Breadcrumb`,className:`min-w-0 flex-1 overflow-hidden`,children:[(0,G.jsx)(o,{as:l,to:p(e.id,u),children:g.name}),(0,G.jsx)(o,{as:`span`,isCurrent:!0,children:`Routing`})]}):void 0});return(0,G.jsx)(r,{variant:`settings`,header:(0,G.jsxs)(a,{children:[(0,G.jsx)(a.Title,{children:`Routing`}),(0,G.jsx)(a.Description,{children:(0,G.jsxs)(`span`,{children:[`The order boards are offered new issues and pull requests. What comes in is chosen in`,` `,(0,G.jsx)(l,{to:U(e.id,`intake`),className:`underline`,children:`Settings → Work Intake`}),`.`]})})]}),..._,children:(0,G.jsx)(Y,{factoryId:e.id})})}export{ee as BoardIntakePage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{$r as t,Cr as n,En as r,Er as i,Sr as a,br as o,li as s,si as c,ui as l,xr as u}from"./index-BRs5cQ2x.js";import{n as d,t as f}from"./Breadcrumb.es-DjvzVu5v.js";import{a as p}from"./Sidebar-zeEMJHoc-CAYPr70W.js";import{$n as m,Gt as h,It as g,Jn as _,Rt as v,Ut as y,Vt as b,Wt as ee,Zr as x,n as S,t as C}from"./GithubIcon.es-Bg-ShonN.js";import{r as w,t as T}from"./useBoardEditor-DhrV_vHP.js";import{a as E,i as D,o as O,s as k,t as A}from"./boardConfigPaths-Btimpi_r.js";import{ln as j,pt as M}from"./useSessionRows-DQ5H8cED.js";import{O as N,T as P,k as te,n as F}from"./IconChevronRightMedium.es-BkPdzxSm.js";import{n as ne}from"./useBoardCatalog-BWEZygG2.js";import{c as I,d as L,l as re,n as ie,r as R,s as z,t as ae,u as B}from"./useRowDrag-De5Tj8SP.js";import{a as V,d as oe,f as se,g as ce,o as H,r as U,s as W}from"./useIntakeRoutes-C4ob2f2v.js";import{C as G,E as le,_ as ue,a as de,c as K,d as fe,f as q,g as pe,i as me,l as J,m as he,n as ge,o as _e,s as ve,u as Y,w as ye}from"./ruleLanes-CnBKj6eB.js";import{i as be,j as xe}from"./TabsRoot-DXvmv54V.js";import{t as Se}from"./Switch.es-D4TVspgz.js";import{t as X}from"./createLucideIcon-BHFyd0LL.js";import{b as Ce,y as we}from"./BoardIcons-BwoF0u8e.js";import{d as Te,n as Ee}from"./settings-D8kIm4wB-Crk4R7dN.js";import{s as De}from"./Field.es-DnLKooWt.js";import{n as Oe,t as ke}from"./RadioGroup.es-C8uhRWPA.js";import{n as Ae,t as je}from"./ConditionRows-BII3QMlB.js";var Me={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};Me.node;var Ne=X(Me),Pe={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};Pe.node;var Fe=X(Pe),Ie={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};Ie.node;var Le=X(Ie),Re={name:`ellipsis`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]],aliases:[`more-horizontal`]};Re.node;var ze=X(Re),Be={name:`funnel`,size:24,node:[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]],aliases:[`filter`]};Be.node;var Ve=X(Be),He={name:`list-filter`,size:24,node:[[`path`,{d:`M2 5h20`,key:`1fs1ex`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M9 19h6`,key:`456am0`}]]};He.node;var Ue=X(He),We={name:`list-ordered`,size:24,node:[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]};We.node;var Ge=X(We),Ke={name:`log-in`,size:24,node:[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]};Ke.node;var qe=X(Ke),Je={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};Je.node;var Ye=X(Je),Xe={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};Xe.node;var Ze=X(Xe),Qe={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};Qe.node;var $e=X(Qe),Z=e(te(),1),Q=N();function et({when:e,options:t,everything:n}){let r=G(e,t);return!e||!r?(0,Q.jsx)(F,{as:`span`,variant:`caption`,tone:`muted`,children:n}):(0,Q.jsx)(`span`,{className:`flex flex-wrap items-center gap-1`,children:r.parts.map((t,n)=>{let i=e.conditions[n],a=i&&`conditions`in i?i:void 0;return(0,Q.jsxs)(`span`,{className:`contents`,children:[n>0&&(0,Q.jsx)(F,{as:`span`,variant:`meta`,tone:`muted`,children:r.join}),a?(0,Q.jsxs)(`span`,{className:`border-border inline-flex max-w-full items-center gap-1 rounded-md border border-dashed px-1 py-0.5`,children:[(0,Q.jsx)(F,{as:`span`,variant:`meta`,tone:`muted`,children:a.operator===`OR`?`any of`:`all of`}),(0,Q.jsx)(tt,{children:t.replace(/^\((.*)\)$/,`$1`)})]}):(0,Q.jsx)(tt,{children:t})]},n)})})}function tt({children:e}){return(0,Q.jsx)(F,{as:`span`,variant:`caption`,tone:`muted`,className:`bg-fill max-w-full truncate rounded-sm px-1.5 py-0.5`,children:e})}function nt(){return(0,Q.jsx)(xe,{size:`xs`,variant:`neutral`,emphasis:`subtle`,icon:(0,Q.jsx)(C,{"aria-hidden":`true`}),children:`GitHub only`})}function rt({boards:e,ownBoard:t,boardKey:n,phaseKey:r}){let i=e.find(e=>e.id===n);if(!i)return(0,Q.jsxs)(F,{as:`span`,variant:`caption`,tone:`muted`,children:[n,` (not installed)`]});let a=r??i.initialPhase,s=i.phases.find(e=>e.id===a);return(0,Q.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1.5`,children:[i.id!==t&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(F,{as:`span`,variant:`caption`,className:`truncate`,children:o(i)}),(0,Q.jsx)(F,{as:`span`,variant:`caption`,tone:`muted`,children:`›`})]}),s&&(0,Q.jsx)(we,{stage:s.id,kind:Ce(i.id,s.kind),decorative:!0}),(0,Q.jsx)(F,{as:`span`,variant:`caption`,className:`truncate`,children:u(i,a)??a})]})}var it=P(`relative before:pointer-events-none before:absolute before:right-0 before:left-0 before:z-20 before:hidden before:h-0.5 before:rounded-full before:bg-border-focus`,`data-[drop=before]:before:-top-1 data-[drop=before]:before:block data-[drop=after]:before:-bottom-1 data-[drop=after]:before:block`),at=`flex flex-col gap-3 rounded-xl border border-border bg-card p-4`;function ot({event:e}){let t=Y(e),n=t.icon;return(0,Q.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,Q.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,Q.jsx)(n,{className:`text-badge-amber-indicator size-3.5 shrink-0`,"aria-hidden":!0}),(0,Q.jsx)(F,{as:`h3`,variant:`label`,tone:`ink`,children:t.label}),t.githubOnly&&(0,Q.jsx)(nt,{})]}),t.description&&(0,Q.jsx)(F,{as:`p`,variant:`caption`,tone:`muted`,children:t.description})]})}function st({children:e}){return(0,Q.jsxs)(F,{as:`span`,variant:`caption`,tone:`muted`,className:`flex flex-1 items-center gap-2.5 px-3 py-1.5`,children:[(0,Q.jsx)(re,{className:`size-icon-md shrink-0`,"aria-hidden":!0}),e]})}function ct({event:e,rules:t,board:n,boards:r,phaseOptions:i,canEdit:a,skips:s,footer:c,incoming:l,only:d,onEdit:f,onAdd:p,onMove:m,onToggle:h,onDelete:g,onUngate:_}){let v=Y(e),y=de(t,e),b=K(e),ee=_e(e),S=ae({min:0,max:t.length-1,onDrop:m}),C=a&&t.length>1&&!d,w=c??(t.length?`Otherwise, the card stays where it is`:l?`No rules: this board’s cards stay where they are`:`No rules: the card stays where it is`);return(0,Q.jsxs)(`section`,{"aria-label":v.label,className:P(at,!t.length&&!l&&`opacity-60 focus-within:opacity-100 hover:opacity-100`),children:[(0,Q.jsx)(ot,{event:e}),(0,Q.jsxs)(`div`,{className:`flex min-w-0 flex-col`,children:[(0,Q.jsxs)(`ol`,{"aria-label":`${v.label} rules`,className:`flex min-w-0 flex-col`,children:[t.map((c,l)=>{if(d&&!d.has(c.id))return null;let p=pe(t,e,l),w=p>=0,T=!c.enabled||w,E=S.drag?.from===l,D=s?.get(c.id),O=r.find(e=>e.id===(c.target.moveToBoardKey??c.target.boardKey)),k=!q(c.name,[v.label,ye(c.when,i),O&&o(O),u(O,c.target.phaseKey)].join(` `));return(0,Q.jsxs)(`li`,{"aria-label":c.name,"data-drop":S.dropAt(l),style:E?{transform:`translateY(${S.drag?.offset??0}px)`}:void 0,onPointerDown:C?e=>S.onPointerDown(e,l):void 0,className:P(`group/rule flex flex-col`,it,E&&`z-10 opacity-90`),children:[(0,Q.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row sm:items-center sm:gap-3`,children:[(0,Q.jsxs)(`div`,{className:`relative min-w-0 sm:flex-1`,children:[(0,Q.jsxs)(`button`,{type:`button`,"aria-label":`Edit conditions of ${c.name}`,onClick:()=>f(c,`conditions`),onKeyDown:C?e=>S.onKeyDown(e,l):void 0,className:P(`flex w-full items-start gap-2.5 rounded-lg border bg-fill-subtle px-3 py-2 text-left transition-colors hover:border-border-hover`,T?`border-dashed border-border opacity-50`:`border-border`),children:[(0,Q.jsxs)(F,{as:`span`,variant:`meta`,tone:`muted`,className:`bg-fill mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-full tabular-nums`,children:[(0,Q.jsx)(`span`,{className:P(C&&`pointer-fine:group-hover/rule:hidden`,E&&`hidden`),children:l+1}),C&&(0,Q.jsx)(`span`,{"data-grip":!0,"aria-hidden":!0,className:P(`hidden cursor-grab touch-none pointer-fine:group-hover/rule:flex`,E&&`flex`),children:(0,Q.jsx)(I,{className:`size-icon-sm`})})]}),(0,Q.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[k&&(0,Q.jsx)(F,{as:`span`,variant:`caption`,tone:`ink`,className:`truncate font-medium`,children:c.name}),(0,Q.jsx)(et,{when:c.when,options:i,everything:ee})]})]}),C&&(0,Q.jsxs)(`div`,{className:`border-border bg-card absolute top-0 right-2 flex -translate-y-1/2 rounded-md border shadow-sm transition-opacity pointer-fine:opacity-0 pointer-fine:group-focus-within/rule:opacity-100 pointer-fine:group-hover/rule:opacity-100`,children:[(0,Q.jsx)(x,{variant:`ghost`,size:`icon-sm`,tooltip:`Check earlier`,disabled:l===0,onClick:()=>m(l,l-1),children:(0,Q.jsx)(B,{})}),(0,Q.jsx)(x,{variant:`ghost`,size:`icon-sm`,tooltip:`Check later`,disabled:l===t.length-1,onClick:()=>m(l,l+1),children:(0,Q.jsx)(L,{})})]})]}),(0,Q.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3 sm:shrink-0`,children:[(0,Q.jsxs)(`div`,{className:P(`flex min-w-0 items-center`,T&&`opacity-40`),children:[(0,Q.jsx)(`span`,{"aria-hidden":!0,className:P(`h-px w-8 shrink-0`,T?`border-t border-dashed border-border-strong`:`bg-muted-foreground`)}),(0,Q.jsx)(Ne,{"aria-hidden":!0,className:`text-muted-foreground size-icon-sm mr-2 -ml-1.5 shrink-0`}),(0,Q.jsx)(`button`,{type:`button`,"aria-label":`Edit where ${c.name} moves the card`,onClick:()=>f(c,`action`),className:`border-border bg-fill-subtle hover:border-border-hover flex w-44 shrink-0 rounded-lg border px-3 py-2 text-left`,children:(0,Q.jsx)(rt,{boards:r,ownBoard:n.id,boardKey:c.target.moveToBoardKey??c.target.boardKey,phaseKey:c.target.phaseKey})})]}),a&&(0,Q.jsxs)(`div`,{className:`ml-auto flex shrink-0 items-center gap-0.5`,children:[(0,Q.jsx)(Se,{"aria-label":`${c.name} on`,checked:c.enabled,onCheckedChange:e=>h(c,e)}),(0,Q.jsxs)(be,{children:[(0,Q.jsx)(be.Trigger,{render:(0,Q.jsx)(x,{variant:`ghost`,size:`icon-sm`,tooltip:`More for ${c.name}`,children:(0,Q.jsx)(ze,{})})}),(0,Q.jsx)(be.Content,{align:`end`,children:(0,Q.jsxs)(be.Item,{variant:`destructive`,onClick:()=>g(c),children:[(0,Q.jsx)(Ze,{}),`Delete rule`]})})]})]})]})]}),T&&(0,Q.jsx)(F,{as:`span`,variant:`caption`,tone:`muted`,className:`mt-1 ml-3 flex items-center gap-1.5`,children:w?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)($e,{className:`text-warning-indicator size-icon-xs`,"aria-hidden":!0}),`Never reached: rule `,p+1,` above matches `,ee.toLowerCase(),`.`]}):`Off, skipped`}),c.problems.map(e=>(0,Q.jsxs)(F,{as:`span`,variant:`caption`,tone:`muted`,className:`mt-1 ml-3 flex items-center gap-1.5`,children:[(0,Q.jsx)($e,{className:`text-warning-indicator size-icon-xs shrink-0`,"aria-hidden":!0}),e]},e)),D&&(0,Q.jsx)(ut,{skips:D}),ue(c,e)&&(0,Q.jsxs)(F,{as:`span`,variant:`caption`,tone:`muted`,className:`mt-1 ml-3 flex flex-wrap items-center gap-x-1.5 gap-y-1`,children:[`Skips outside authors’ pull requests (older rule).`,a&&(0,Q.jsx)(`button`,{type:`button`,onClick:()=>_(c),className:`underline`,children:`Let outside authors match`})]}),fe(c,e)&&(0,Q.jsx)(F,{as:`span`,variant:`caption`,tone:`muted`,className:`mt-1 ml-3`,children:`Moves cards only: files no new pull requests`}),b&&ve(c)&&(0,Q.jsx)(F,{as:`span`,variant:`caption`,tone:`muted`,className:`mt-1 ml-3`,children:Y(`work_item.created`).label}),l!==y&&!d&&(0,Q.jsxs)(`div`,{"aria-hidden":!0,className:`flex h-7 items-center pl-5.5`,children:[(0,Q.jsx)(`span`,{className:`bg-border-strong h-full w-px`}),(0,Q.jsx)(F,{as:`span`,variant:`meta`,tone:`muted`,className:`ml-2`,children:`no`})]})]},c.id)}),!d&&(0,Q.jsxs)(`li`,{className:`flex flex-wrap items-center gap-3`,children:[y<0&&(0,Q.jsx)(st,{children:w}),a&&(0,Q.jsx)(x,{variant:`ghost`,size:`sm`,icon:(0,Q.jsx)(Ye,{}),onClick:p,children:`Add rule`})]})]}),l]})]})}function lt(e){return e?.match(/was skipped: (.+?)\.?$/)?.[1]??e??`its target couldn’t take the card`}function ut({skips:e}){let{count:t,latest:n}=e;return(0,Q.jsxs)(F,{as:`span`,variant:`caption`,tone:`muted`,className:`mt-1 ml-3 flex flex-wrap items-center gap-x-1.5 gap-y-1`,children:[(0,Q.jsx)($e,{className:`text-warning-indicator size-icon-xs shrink-0`,"aria-hidden":!0}),(0,Q.jsxs)(`span`,{children:[`Skipped `,t===1?`once`:`${t} times`,` in the last 30 days: `,lt(n.reason),`.`]}),n.url?(0,Q.jsxs)(`a`,{href:n.url,target:`_blank`,rel:`noreferrer`,className:`underline`,children:[`Latest: `,n.title]}):(0,Q.jsxs)(`span`,{children:[`Latest: `,n.title]})]})}var dt=`flex flex-col gap-8`;function ft({section:e,intakeChain:t,children:n}){return(0,Q.jsxs)(`section`,{"aria-label":e.title,className:`flex flex-col gap-3`,children:[(0,Q.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,Q.jsx)(Te,{children:e.title}),e.events.some(K)?t:(0,Q.jsx)(Ee,{children:`Only cards already on this board; other boards never see them.`})]}),n]})}function pt({event:e}){return(0,Q.jsxs)(`div`,{className:at,children:[(0,Q.jsx)(ot,{event:e}),(0,Q.jsx)(st,{children:(0,Q.jsx)(M,{line:`text-caption`,className:`w-56 motion-reduce:before:animate-none`})})]})}function mt(){return(0,Q.jsx)(`div`,{role:`status`,"aria-label":`Loading rules`,children:(0,Q.jsx)(`div`,{"aria-hidden":!0,className:dt,children:ge.map(e=>(0,Q.jsx)(ft,{section:e,intakeChain:(0,Q.jsx)(M,{line:`text-caption leading-6 ps-2`,className:`w-96 max-w-full motion-reduce:before:animate-none`}),children:e.events.map(e=>(0,Q.jsx)(pt,{event:e},e))},e.title))})})}function ht({factoryId:e,rules:t,board:n,boards:r}){return(0,Q.jsxs)(`section`,{"aria-label":`From other boards`,className:`border-border mt-3 flex flex-col gap-1.5 border-t pt-3`,children:[(0,Q.jsxs)(F,{as:`h4`,variant:`meta`,tone:`muted`,className:`flex items-center gap-1.5`,children:[(0,Q.jsx)(qe,{className:`size-icon-xs shrink-0`,"aria-hidden":!0}),`From other boards`]}),(0,Q.jsx)(`ul`,{className:`flex flex-col gap-1.5`,children:t.map(t=>{let i=r.find(e=>e.id===t.target.boardKey);return(0,Q.jsx)(`li`,{children:(0,Q.jsxs)(_,{to:k(e,t.target.boardKey),"aria-label":`${t.name}, on ${i?o(i):t.target.boardKey}`,className:P(`group flex flex-col gap-2 sm:flex-row sm:items-center sm:gap-3`,!t.enabled&&`opacity-50`),children:[(0,Q.jsxs)(`span`,{className:`border-border group-hover:border-border-hover flex w-full min-w-0 flex-col gap-1 rounded-lg border border-dashed px-3 py-2 sm:flex-1`,children:[(0,Q.jsx)(F,{as:`span`,variant:`caption`,tone:`ink`,className:`truncate font-medium`,children:i?o(i):`${t.target.boardKey} (not installed)`}),(0,Q.jsx)(et,{when:t.when,options:a(i),everything:`Every card`})]}),(0,Q.jsxs)(`span`,{className:`flex min-w-0 shrink-0 items-center`,children:[(0,Q.jsx)(`span`,{"aria-hidden":!0,className:`border-border-strong h-0 w-8 shrink-0 border-t border-dashed`}),(0,Q.jsx)(Ne,{"aria-hidden":!0,className:`text-muted-foreground size-icon-sm mr-2 -ml-1.5 shrink-0`}),(0,Q.jsx)(`span`,{className:`flex w-44 shrink-0 items-center px-3 py-2`,children:(0,Q.jsx)(rt,{boards:r,ownBoard:n.id,boardKey:n.id,phaseKey:t.target.phaseKey})})]}),!t.enabled&&(0,Q.jsx)(F,{as:`span`,variant:`caption`,tone:`muted`,children:`Off`})]})},t.id)})})]})}function gt({factoryId:e,boardKey:t,order:n,evaluator:r}){let i=n.some(e=>e.boardKey===t);return(0,Q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-2`,children:[r===`route-list`?(0,Q.jsx)(F,{as:`p`,variant:`caption`,tone:`muted`,children:`Intake still files new issues and pull requests by the old route list, not by board.`}):i?(0,Q.jsxs)(`ol`,{"aria-label":`Intake order`,className:`flex flex-wrap items-center gap-1`,children:[n.map(n=>(0,Q.jsxs)(Z.Fragment,{children:[(0,Q.jsx)(`li`,{children:n.boardKey===t?(0,Q.jsx)(F,{as:`span`,variant:`caption`,tone:`ink`,"aria-current":`step`,className:`bg-surface3 rounded-md px-2 py-0.5 font-medium`,children:n.name}):(0,Q.jsx)(_,{to:k(e,n.boardKey),className:`text-muted-foreground hover:text-foreground rounded-md px-2 py-0.5`,children:(0,Q.jsx)(F,{as:`span`,variant:`caption`,children:n.name})})}),(0,Q.jsx)(Le,{"aria-hidden":!0,className:`text-muted-foreground size-icon-xs shrink-0`})]},n.boardKey)),(0,Q.jsx)(`li`,{children:(0,Q.jsx)(F,{as:`span`,variant:`caption`,tone:`muted`,className:`px-2 py-0.5`,children:`Not routed`})})]}):(0,Q.jsx)(F,{as:`p`,variant:`caption`,tone:`muted`,children:`Not in the intake order: new issues and pull requests never reach these rules.`}),(0,Q.jsxs)(_,{to:O(e,t,A),className:`text-muted-foreground hover:text-foreground flex items-center gap-1.5`,children:[(0,Q.jsx)(Ge,{className:`size-icon-xs shrink-0`,"aria-hidden":!0}),(0,Q.jsx)(F,{as:`span`,variant:`caption`,className:`underline decoration-dotted underline-offset-2`,children:`Reorder`})]})]})}var _t=`flex w-full items-start gap-3 rounded-lg border p-3 text-left transition-colors`,vt=`border-border-focus bg-fill-hover`,yt=`border-border bg-fill-subtle hover:border-border-hover hover:bg-fill-hover`;function bt({selected:e,disabled:t,onClick:n,children:r}){return(0,Q.jsx)(`button`,{type:`button`,role:`checkbox`,"aria-checked":e,disabled:t,onClick:n,className:P(_t,`disabled:opacity-50`,e?vt:yt),children:r})}function xt({value:e,selected:t,disabled:n,onClick:r,children:i}){let a=(0,Z.useId)();return(0,Q.jsxs)(`label`,{onClick:r,className:P(_t,`has-[[role=radio]:focus-visible]:outline-border-focus has-[[role=radio]:focus-visible]:outline-1 has-[[role=radio]:focus-visible]:outline-solid`,t?vt:yt,n?`cursor-not-allowed opacity-50`:`cursor-pointer`),children:[(0,Q.jsx)(Oe,{value:e,disabled:n,"aria-labelledby":a,className:`sr-only`}),(0,Q.jsx)(`span`,{id:a,className:`flex min-w-0 items-start gap-3`,children:i})]})}var St=120,Ct=ce(W),$=[{id:`trigger`,title:`Trigger`,question:`What should this rule listen for?`},{id:`conditions`,title:`Only if`,question:`Which items should it apply to?`},{id:`action`,title:`Move to`,question:`Where should it go?`},{id:`review`,title:`Review`,question:`Name and check your rule`}];function wt(e,t){let n=e?.phases??[];return t?n.filter(e=>e.kind!==`terminal`):n}function Tt(e,t){if(t){let e=Ct.safeParse(t);if(!e.success)return e.error.issues[0]?.message}return se(e,t)??void 0}function Et(e,t,n){let r=`When ${e.map(e=>Y(e).label.toLowerCase()).join(` or `)}${t?`, ${ye(t).charAt(0).toLowerCase()}${ye(t).slice(1)}`:``}, move to ${n}`;return r.length>St?`${r.slice(0,119)}…`:r}function Dt({factoryId:e,board:t,boards:n,initial:r,initialEvent:i,initialStep:s,readOnly:c,saving:l,error:d,onSave:f,onClose:p}){let m=Ae(e),[_,C]=(0,Z.useState)(()=>r?.on??(i?[i]:[])),[w,T]=(0,Z.useState)(()=>r?.when??null),[E,D]=(0,Z.useState)(()=>(r?.when?.conditions.length??0)>0),[O,k]=(0,Z.useState)(!1),[A,j]=(0,Z.useState)(()=>r?.target.moveToBoardKey??t.id),[M,N]=(0,Z.useState)(()=>r?r.target.phaseKey??void 0:void 0),[te,ne]=(0,Z.useState)(()=>r?.name),[I,L]=(0,Z.useState)(s),[re,ie]=(0,Z.useState)(0),R=he(_),z=n.find(e=>e.id===A),ae=wt(z,R),B=ae.find(e=>e.id===(M??z?.initialPhase)),V=E?w:null,se=_.length?Tt(_,V):void 0,ce=B&&z?`${o(z)} › ${u(z,B.id)}`:``,H=te??(B?Et(_,V,ce):``),U={trigger:_.length>0,conditions:_.length>0&&!(E&&O)&&!se,action:B!==void 0,review:H.trim().length>0},W=!c&&U.trigger&&U.conditions&&U.action&&U.review,G=$.findIndex(e=>e.id===I),ue=$[G]??$[0],de=e=>{C(e),he(e)&&A!==t.id&&(j(t.id),N(void 0))},K=()=>{W&&B&&f({name:H.trim(),on:_,when:V,target:{phaseKey:B.id,moveToBoardKey:A===t.id?null:A}})},fe=()=>{let e={field:`pullRequest.trusted`,operator:`equals`,value:!0};T(V===null?{operator:`AND`,conditions:[e]}:V.operator===`AND`?{...V,conditions:[...V.conditions,e]}:{operator:`AND`,conditions:[V,e]}),D(!0),k(!1),ie(e=>e+1)},q={trigger:_.length?_.map(e=>Y(e).label).join(`, `):void 0,conditions:_.length?ye(V,a(t)):void 0,action:B?(0,Q.jsx)(rt,{boards:n,ownBoard:t.id,boardKey:A,phaseKey:B.id}):void 0,review:void 0};return(0,Q.jsx)(g,{open:!0,onOpenChange:e=>!e&&p(),children:(0,Q.jsxs)(b,{size:`xl`,children:[(0,Q.jsx)(ee,{children:(0,Q.jsx)(h,{children:c?`Rule`:r?`Edit rule`:`Add rule`})}),(0,Q.jsx)(v,{children:(0,Q.jsxs)(`div`,{className:`grid min-h-105 grid-cols-1 gap-6 sm:grid-cols-[12rem_1fr]`,children:[(0,Q.jsx)(`nav`,{"aria-label":`Rule steps`,className:`sm:border-border flex gap-1 overflow-x-auto sm:flex-col sm:border-r sm:pr-4`,children:$.map((e,t)=>{let n=t===0||$.slice(0,t).every(e=>U[e.id]),r=U[e.id]&&e.id!==`review`;return(0,Q.jsxs)(`button`,{type:`button`,disabled:!n,"aria-current":I===e.id?`step`:void 0,onClick:()=>L(e.id),className:P(`flex shrink-0 items-start gap-2.5 rounded-lg px-2 py-2 text-left transition-colors disabled:opacity-40`,I===e.id?`bg-fill-hover`:`hover:bg-fill-subtle`),children:[(0,Q.jsx)(F,{as:`span`,variant:`meta`,className:P(`mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-full border`,r?`border-transparent bg-fill-inverse text-background`:`border-border-strong`),children:r?(0,Q.jsx)(Fe,{className:`size-icon-xs`,"aria-hidden":!0}):t+1}),(0,Q.jsxs)(`span`,{className:`min-w-0`,children:[(0,Q.jsx)(F,{as:`span`,variant:`label`,tone:`ink`,className:`block`,children:e.title}),q[e.id]&&(0,Q.jsx)(F,{as:`span`,variant:`caption`,tone:`muted`,className:`hidden truncate sm:block`,children:q[e.id]})]})]},e.id)})}),(0,Q.jsxs)(`section`,{"aria-label":ue.title,className:`flex min-w-0 flex-col gap-4`,children:[(0,Q.jsx)(F,{as:`h3`,variant:`heading`,children:ue.question}),I===`trigger`&&(0,Q.jsx)(At,{value:_,disabled:c,onChange:de}),I===`conditions`&&(0,Q.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,Q.jsxs)(ke,{"aria-label":`Which ones`,value:E?`matching`:`every`,disabled:c,onValueChange:e=>{D(e===`matching`),k(!1)},className:`grid-cols-1 sm:grid-cols-2`,children:[(0,Q.jsx)(xt,{value:`every`,selected:!E,disabled:c,children:(0,Q.jsx)(Ot,{title:R?`Every new one`:`Every card`,hint:`Run whenever this happens.`})}),(0,Q.jsx)(xt,{value:`matching`,selected:E,disabled:c,children:(0,Q.jsx)(Ot,{title:`Only ones that match`,hint:`Narrow it down by repository, label, author and more.`})})]}),E&&(0,Q.jsx)(`div`,{className:`border-border bg-fill-subtle rounded-xl border p-3`,children:(0,Q.jsx)(je,{label:`Conditions`,rule:w,facts:le(_),options:{...a(t),"source.repository":m},onChange:(e,t)=>{T(e),k(t)}},re)}),se&&(0,Q.jsx)(S,{variant:`warning`,children:se}),!r?.outsiderPullRequestsGated&&oe(_,V)&&(0,Q.jsx)(S,{variant:`info`,children:(0,Q.jsxs)(`span`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1`,children:[(0,Q.jsx)(`span`,{children:`Also matches pull requests from outside authors.`}),!c&&(0,Q.jsx)(`button`,{type:`button`,onClick:fe,className:`shrink-0 underline`,children:`Add: Pull request trusted is yes`})]})})]}),I===`action`&&(0,Q.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[R?(0,Q.jsx)(F,{as:`p`,variant:`caption`,tone:`muted`,children:`An item with no card yet can only be filed on this board.`}):(0,Q.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,Q.jsx)(F,{as:`span`,variant:`eyebrow`,tone:`muted`,children:`Board`}),(0,Q.jsx)(ke,{"aria-label":`Board`,value:A,disabled:c,onValueChange:e=>{typeof e==`string`&&e!==A&&(j(e),N(void 0))},className:`grid-cols-1 sm:grid-cols-3`,children:n.map(e=>(0,Q.jsx)(xt,{value:e.id,selected:e.id===A,disabled:c,children:(0,Q.jsxs)(F,{as:`span`,variant:`label`,tone:`ink`,children:[o(e),e.id===t.id?` (this board)`:``]})},e.id))})]}),(0,Q.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,Q.jsx)(F,{as:`span`,variant:`eyebrow`,tone:`muted`,children:`Phase`}),(0,Q.jsx)(ke,{"aria-label":`Phase`,value:B?.id??null,disabled:c,onValueChange:e=>typeof e==`string`&&N(e),className:`grid-cols-1 sm:grid-cols-2`,children:z&&ae.map(e=>(0,Q.jsx)(xt,{value:e.id,selected:e.id===B?.id,disabled:c,onClick:()=>{N(e.id),L(`review`)},children:(0,Q.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,Q.jsx)(we,{stage:e.id,kind:Ce(z.id,e.kind),decorative:!0}),(0,Q.jsx)(F,{as:`span`,variant:`label`,tone:`ink`,children:u(z,e.id)})]})},e.id))})]})]}),I===`review`&&(0,Q.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[(0,Q.jsxs)(`label`,{className:`flex flex-col gap-1.5`,children:[(0,Q.jsx)(F,{as:`span`,variant:`label`,tone:`muted`,children:`Name`}),(0,Q.jsx)(De,{value:H,maxLength:St,disabled:c,onChange:e=>ne(e.target.value)})]}),(0,Q.jsxs)(`div`,{className:`border-border bg-fill-subtle rounded-xl border p-4`,children:[(0,Q.jsx)(F,{as:`span`,variant:`eyebrow`,tone:`muted`,className:`mb-3 block`,children:`This rule reads as`}),(0,Q.jsxs)(`ol`,{className:`flex flex-col gap-3`,children:[(0,Q.jsx)(kt,{label:`When`,children:q.trigger}),(0,Q.jsx)(kt,{label:`Only if`,children:(0,Q.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,Q.jsx)(Ve,{className:`text-muted-foreground size-icon-sm`,"aria-hidden":!0}),q.conditions]})}),(0,Q.jsx)(kt,{label:`Then`,children:(0,Q.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[`Move to `,(0,Q.jsx)(Ne,{className:`size-icon-sm`,"aria-hidden":!0}),` `,q.action]})})]})]})]}),d&&(0,Q.jsx)(S,{variant:`destructive`,role:`alert`,children:d})]})]})}),(0,Q.jsxs)(y,{children:[(0,Q.jsx)(x,{variant:`ghost`,onClick:p,children:c?`Close`:`Cancel`}),(0,Q.jsx)(`div`,{className:`flex-1`}),G>0&&(0,Q.jsx)(x,{variant:`default`,onClick:()=>L($[G-1].id),children:`Back`}),!c&&(I===`review`||r&&W?(0,Q.jsx)(x,{variant:`primary`,disabled:!W,onClick:K,loading:l,children:r?`Save rule`:`Create rule`}):(0,Q.jsx)(x,{variant:`primary`,disabled:!U[I],onClick:()=>L($[G+1]?.id??`review`),children:`Continue`}))]})]})})}function Ot({title:e,hint:t}){return(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(F,{as:`span`,variant:`label`,tone:`ink`,className:`block`,children:e}),(0,Q.jsx)(F,{as:`span`,variant:`caption`,tone:`muted`,className:`block`,children:t})]})}function kt({label:e,children:t}){return(0,Q.jsxs)(`li`,{className:`grid grid-cols-[4.5rem_1fr] items-start gap-3`,children:[(0,Q.jsx)(F,{as:`span`,variant:`body-sm`,tone:`muted`,children:e}),(0,Q.jsx)(F,{as:`span`,variant:`body-sm`,children:t})]})}function At({value:e,disabled:t,onChange:n}){return(0,Q.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[e.includes(`work_item.created`)&&(0,Q.jsxs)(S,{variant:`info`,children:[`Also listens on “`,Y(`work_item.created`).label,`”, which takes new issues and pull requests. Saving keeps it.`]}),ge.map(r=>(0,Q.jsxs)(`div`,{role:`group`,"aria-label":r.title,className:`flex flex-col gap-2`,children:[(0,Q.jsx)(F,{as:`span`,variant:`eyebrow`,tone:`muted`,children:r.title}),(0,Q.jsx)(`div`,{className:`grid grid-cols-1 gap-2 sm:grid-cols-2`,children:r.events.map(r=>{let i=Y(r),a=i.icon,o=e.includes(r);return(0,Q.jsxs)(bt,{selected:o,disabled:t||o&&e.length===1,onClick:()=>n(o?e.filter(e=>e!==r):[...e,r]),children:[(0,Q.jsx)(a,{className:`text-badge-amber-indicator mt-0.5 size-4 shrink-0`,"aria-hidden":!0}),(0,Q.jsx)(Ot,{title:i.label,hint:i.description}),i.githubOnly&&(0,Q.jsx)(`span`,{className:`ml-auto shrink-0`,children:(0,Q.jsx)(nt,{})})]},r)})})]},r.title))]})}function jt({count:e,into:t,leaving:n,showAll:r}){let i=n?`sending cards to ${t}`:`moving cards into ${t}`;return(0,Q.jsxs)(`div`,{className:`border-border flex items-center gap-2 rounded-lg border px-3 py-2`,children:[(0,Q.jsx)(Ue,{className:`size-icon-md text-muted-foreground shrink-0`,"aria-hidden":!0}),(0,Q.jsx)(F,{as:`p`,variant:`body-sm`,tone:e===void 0?`muted`:`ink`,className:`flex-1`,children:e===void 0?`Couldn’t pick out the rules ${i}, so every rule is shown.`:e===0?`No rule is ${i}.`:`Only the ${e===1?`rule`:`${e} rules`} ${i}.`}),(0,Q.jsx)(x,{size:`sm`,variant:`ghost`,render:(0,Q.jsx)(_,{to:r}),children:`Show all`})]})}var Mt=new Set([`revision_mismatch`,`intake_route_set_mismatch`,`intake_route_not_found`]);function Nt(e){return e instanceof T&&e.code!==void 0&&Mt.has(e.code)}function Pt(e){return Nt(e)?`Someone else changed these rules first. They have been reloaded; try again.`:e instanceof Error?e.message:`The change didn’t save.`}function Ft({factoryId:e,boardId:t}){let n=ne(e),r=n.data?.find(e=>e.id===t);return n.isPending?(0,Q.jsx)(mt,{}):n.isError?(0,Q.jsx)(S,{variant:`destructive`,children:`Boards didn’t load.`}):r?(0,Q.jsx)(It,{factoryId:e,board:r,boards:n.data},`${e}:${r.id}`):(0,Q.jsx)(S,{variant:`warning`,children:`This board isn’t installed.`})}function It({factoryId:e,board:t,boards:r}){let o=U(e,t.id),s=H(e),c=R(e),l=z(e),d=V(e),[f,p]=(0,Z.useState)(),h=(0,Z.useRef)(void 0),g=e=>{h.current=e,p(e)},[_,v]=(0,Z.useState)(),y=o.data?.intakeRoutes??[],b=o.data?.canEdit??!1,ee=a(t),x=(s.data?.intakeRoutes??[]).filter(e=>e.target.moveToBoardKey===t.id&&e.target.boardKey!==t.id),C=new Map(l.data?.skipped.map(e=>[e.routeId,e])),[w]=m(),T=w.get(`into`)??void 0,E=w.has(D),O=E||T!==void 0,A=O&&s.data?i(s.data.intakeRoutes,{key:t.id,initialPhase:t.initialPhase}):void 0,M=A&&new Set((E?A.leaving:A.into.get(T??``)??[]).map(e=>e.id)),N=e=>!M||e.some(e=>M.has(e.id));if(o.isPending||O&&s.isPending)return(0,Q.jsx)(mt,{});if(o.isError)return(0,Q.jsx)(S,{variant:`destructive`,children:`This board’s rules didn’t load.`});let P=e=>d.mutateAsync(e).catch(e=>j.error(Pt(e))),te=(e,r,i)=>{let a=J(y,e).map(e=>e.id);P([{kind:`reorder`,boardKey:t.id,ids:n(y,a,r,i)}])},F=e=>{v(void 0),g(e)},ne=async e=>{let n=h.current,r=n?.rule,i=()=>n!==void 0&&h.current===n;v(void 0);try{if(r)await d.mutateAsync([{kind:`update`,id:r.id,patch:{name:e.name,on:e.on,when:e.when,target:{boardKey:r.target.boardKey,...e.target,joinClosedIssue:r.target.joinClosedIssue},expectedRevision:r.revision}}]);else{let[n]=await d.mutateAsync([{kind:`create`,route:{...e,target:{boardKey:t.id,...e.target}}}]);i()&&g(void 0),n&&await L(n,e.on).catch(e=>j.error(Pt(e)));return}i()&&g(void 0)}catch(e){if(!i())return;if(r&&Nt(e))return I(r);v(Pt(e))}},I=async e=>{let t=h.current,n=(await o.refetch()).data?.intakeRoutes.find(t=>t.id===e.id);t&&h.current===t&&(n?(g({...t,rule:n}),v(`Someone else changed this rule first. It now shows their version; make your change again.`)):(g(void 0),j.error(`Someone else deleted this rule first.`)))},L=async(e,r)=>{if(e.target.boardKey!==t.id)return;let i=(await o.refetch()).data?.intakeRoutes??[],a=i.map(e=>e.id),s=a.indexOf(e.id),c=r.flatMap(t=>{let n=J(i,t),r=n[pe(n,t,n.findIndex(t=>t.id===e.id))];return r?[a.indexOf(r.id)]:[]}),l=Math.min(...c);s<0||!(l<s)||await d.mutateAsync([{kind:`reorder`,boardKey:t.id,ids:n(i,a,s,l)}])},re=c.data?.evaluator===`route-list`?`Otherwise: the old route list decides`:me(c.data?.boards,t.id);return(0,Q.jsxs)(`div`,{className:dt,children:[s.isError&&(0,Q.jsx)(S,{variant:`warning`,children:`Rules on other boards that move cards here didn’t load, so they aren’t shown.`}),O&&(0,Q.jsx)(jt,{count:M?.size,into:E||!T?`other boards`:u(t,T)??T,leaving:E,showAll:k(e,t.id)}),ge.filter(e=>e.events.some(e=>N([...J(y,e),...J(x,e)]))).map(n=>(0,Q.jsx)(ft,{section:n,intakeChain:c.data&&(0,Q.jsx)(gt,{factoryId:e,boardKey:t.id,order:c.data.boards,evaluator:c.data.evaluator}),children:n.events.map(n=>{let i=K(n),a=J(y,n),o=J(x,n).filter(e=>!M||M.has(e.id));return N([...a,...o])?(0,Q.jsx)(ct,{event:n,rules:a,board:t,boards:r,phaseOptions:ee,canEdit:b,skips:C,footer:i?re:void 0,only:M,incoming:o.length?(0,Q.jsx)(ht,{factoryId:e,rules:o,board:t,boards:r}):void 0,onEdit:(e,t)=>F({rule:e,step:t}),onAdd:()=>F({event:n,step:`conditions`}),onMove:(e,t)=>te(n,e,t),onToggle:(e,t)=>void P([{kind:`update`,id:e.id,patch:{enabled:t,expectedRevision:e.revision}}]),onDelete:e=>void P([{kind:`delete`,id:e.id,expectedRevision:e.revision}]).then(t=>t&&j.success(`Deleted “${e.name}”`)),onUngate:e=>void P([{kind:`update`,id:e.id,patch:{outsiderPullRequestsGated:!1,expectedRevision:e.revision}}]).then(t=>t&&j.success(`“${e.name}” now matches outside authors’ pull requests`))},n):null})},n.title)),f&&(0,Q.jsx)(Dt,{factoryId:e,board:t,boards:r,initial:f.rule,initialEvent:f.event,initialStep:f.step,readOnly:!b,saving:d.isPending,error:_,onSave:e=>void ne(e),onClose:()=>g(void 0)},f.rule?`${f.rule.id}:${f.rule.revision}`:`new-${f.event}`)]})}function Lt(){let e=t(),n=r()?.boardId??``,{isMobile:i,desktopState:a}=p(),o=i||a===`collapsed`,u=w(e.id,n).data?.board,m=c({breadcrumbs:o&&u?(0,Q.jsxs)(f,{label:`Breadcrumb`,className:`min-w-0 flex-1 overflow-hidden`,children:[(0,Q.jsx)(d,{as:_,to:E(e.id,n),children:u.name}),(0,Q.jsx)(d,{as:`span`,isCurrent:!0,children:`Rules`})]}):void 0});return(0,Q.jsx)(s,{variant:`settings`,header:(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(l,{children:[(0,Q.jsx)(l.Title,{children:`Rules`}),(0,Q.jsx)(l.Description,{children:`What happens to issues and pull requests on this board. In each lane the first matching rule wins.`})]}),(0,Q.jsx)(`div`,{className:`mt-3`,children:(0,Q.jsx)(ie,{factoryProjectId:e.id,label:`Test an issue or pull request`})})]}),...m,children:(0,Q.jsx)(Ft,{factoryId:e.id,boardId:n})})}export{Lt as BoardRulesPage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{Di as t,in as n,rn as r,xi as i}from"./GithubIcon.es-Bg-ShonN.js";import{O as a,T as o,k as s,o as c}from"./IconChevronRightMedium.es-BkPdzxSm.js";import{cn as l}from"./useSessionRows-DQ5H8cED.js";import{t as u}from"./popup-anchor.es-g9MI9mVW.js";var d=e(s(),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:o(`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:s,href:l,isCurrent:m,action:g,switcher:_,icon:v,isLoading:y,children:b,...x})=>{let S=a||`span`,C=!(!_||!m&&(s||l)),w=d.useRef(null);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(`li`,{ref:w,className:o(`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:o(`inline-flex min-w-0 items-center gap-2 overflow-hidden rounded-full px-[.9em]`,i.sm,c,m?`max-w-xs cursor-default text-foreground`:C?o(n,`max-w-48`):o(r,`max-w-48 cursor-pointer hover:bg-fill-subtle active:bg-fill`),e),to:s,href:l,...x,children:[v&&(0,f.jsx)(t,{className:o(`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:o(`-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)(t,{className:`text-subtle-foreground`,children:(0,f.jsx)(p,{})})})]})};export{g as n,m as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{O as t,b as n,k as r,m as i,x as a,y as o}from"./IconChevronRightMedium.es-BkPdzxSm.js";import{Ct as s,Ht as c}from"./useSessionRows-DQ5H8cED.js";import{An as l,Ba as u,Cs as d,Fn as f,Ga as p,Li as m,Ln as h,Mn as g,Nn as _,Ra as v,Rn as y,Va as b,Wa as x,ai as S,eo as C,es as w,jn as T,kn as E}from"./GithubIcon.es-Bg-ShonN.js";var D=e(r(),1),O=`data-composite-item-active`;function k(e){let{loopFocus:t=!0,orientation:r=`both`,grid:i,onLoop:a,direction:s,highlightedIndex:f,onHighlightedIndexChange:m,rootRef:S,enableHomeAndEndKeys:O=!1,stopEventPropagation:k,disabledIndices:M,modifierKeys:N=n}=e,[P,F]=D.useState(0),I=i!=null,L=D.useRef(null),R=o(L,S),z=D.useRef([]),B=D.useRef(!1),V=D.useRef(null),H=f??P,U=C((e,t=!1)=>{if(V.current=z.current[e]??null,(m??F)(e),t){let t=z.current[e];y(L.current,t,s,r)}}),W=C(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||p(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()),n=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,i=n?e.get(n)?.index??-1:-1;if(i!==-1)U(i);else if(p(t,H,M)){let e=v(t,{disabledIndices:M});x(t,e)||U(e)}y(L.current,n,s,r)});d(()=>{if(M==null||f!=null||!B.current)return;let e=z.current;if(p(e,H,M)){let t=v(e,{disabledIndices:M});x(e,t)||U(t)}},[M,f,H,z,U]);let G=C((e,t,n)=>a?a(e,t,n,z):n),K=C(e=>{let n=e.key===`Home`||e.key===`End`;if(!_.has(e.key)||!O&&n||j(e,N)||!L.current)return;let o=s===`rtl`,d=o?l:T,f=o?T:l,p=r===`vertical`?E:d,m=r===`vertical`?g:f,y=w(e.nativeEvent);if(y!=null&&h(y)&&!c(y)){let t=y.selectionStart,n=y.selectionEnd,r=y.value;if(t==null||e.shiftKey||t!==n||e.key!==m&&t<r.length||e.key!==p&&t>0)return}let S=H,C=b(z,M),D=u(z,M);i!=null&&(S=i({disabledIndices:M,elementsRef:z,event:e,highlightedIndex:H,loopFocus:t,maxIndex:D,minIndex:C,onLoop:G,orientation:r,rtl:o}));let A=r!==`vertical`&&e.key===d||r!==`horizontal`&&e.key===`ArrowDown`,P=r!==`vertical`&&e.key===f||r!==`horizontal`&&e.key===`ArrowUp`;O&&(e.key===`Home`?S=C:e.key===`End`&&(S=D)),S===H&&(A||P)&&(t&&S===D&&A?(S=C,a&&(S=a(e,H,S,z))):t&&S===C&&P?(S=D,a&&(S=a(e,H,S,z))):S=v(z.current,{startingIndex:S,decrement:P,disabledIndices:M})),S!==H&&!x(z.current,S)&&(k&&e.stopPropagation(),(I||n||A||P)&&e.preventDefault(),U(S,!0),queueMicrotask(()=>{z.current[S]?.focus()}))});return{props:{ref:R,onFocus(e){let t=L.current,n=w(e.nativeEvent);t&&n!=null&&h(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&&!p(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 f)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}var M=t();function N(e){let{render:t,className:r,style:o,refs:c=n,props:l=n,state:u=a,stateAttributesMapping:d,highlightedIndex:f,onHighlightedIndexChange:p,orientation:h,grid:g,loopFocus:_,onLoop:v,enableHomeAndEndKeys:y,onMapChange:b,stopEventPropagation:x=!0,rootRef:C,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:g,loopFocus:_,onLoop:v,orientation:h,highlightedIndex:f,onHighlightedIndexChange:p,rootRef:C,stopEventPropagation:x,enableHomeAndEndKeys:y,direction:m(),disabledIndices:w,modifierKeys:T}),R=i(O,e,{state:u,ref:c,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)(S.Provider,{value:z,children:(0,M.jsx)(s,{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{O as t,T as n,f as r,i,k as a,n as o,s}from"./IconChevronRightMedium.es-BkPdzxSm.js";import{Hn as c,Zr as l,m as u,s as d}from"./GithubIcon.es-Bg-ShonN.js";import{J as f,_t as p,gt as m,ht as h,mt as g,q as _}from"./useSessionRows-DQ5H8cED.js";import{s as ee}from"./Field.es-DnLKooWt.js";import{t as te}from"./IconPlusMedium.es-BOotRziY.js";import{r as ne}from"./IconClipboard2.es-DTJVO2Dz.js";import{l as re,m as ie,o as ae}from"./BoardIcons-BwoF0u8e.js";import{t as oe}from"./IconCircleCheck.es-D6u0E19o.js";import{c as v,d as y,f as b,m as x,n as S,p as C,r as w,s as T,u as E}from"./Switch.es-D4TVspgz.js";import{t as se}from"./IconUser.es-ZvgkqymT.js";import{D as ce,O as le,S as ue,b as D,x as O}from"./ruleLanes-CnBKj6eB.js";import{m as de}from"./useIntakeRoutes-C4ob2f2v.js";import{t as fe}from"./createLucideIcon-BHFyd0LL.js";import{Hn as k,Jr as pe,Un as me,Wn as he,Zr as ge,ir as _e,qr as ve}from"./index-BRs5cQ2x.js";import{t as ye}from"./IconHashtag.es-CFMCiJRV.js";import{t as A}from"./IconPlugin1.es-D6CUXlu_.js";var j={name:`folder-git-2`,size:24,node:[[`path`,{d:`M18 19a5 5 0 0 1-5-5v8`,key:`sz5oeg`}],[`path`,{d:`M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5`,key:`1w6njk`}],[`circle`,{cx:`13`,cy:`12`,r:`2`,key:`1j92g6`}],[`circle`,{cx:`20`,cy:`19`,r:`2`,key:`1obnsp`}]]};j.node;var be=fe(j);function xe({factoryProjectId:e,repositories:t=[],bindings:n=[],linearProjects:r=[],linearTeams:i=[],jiraProjects:a=[]}){let o=t=>new Set(n.filter(n=>n.integrationId===t&&n.factoryProjectId===e).map(e=>e.sourceId)),s=o(`linear`),c=o(`jira`),l=[...t.map(e=>({value:e.slug,provider:e.provider??`github`})),...r.filter(e=>s.has(e.id)).flatMap(e=>e.teams.map(e=>({value:e.key,provider:`linear`}))),...i.filter(e=>s.has(ie(e))).map(e=>({value:e.key,provider:`linear`})),...a.filter(e=>c.has(e.id)).map(e=>({value:e.key,provider:`jira`}))],u=new Set;return l.filter(e=>{let t=`${e.provider}\0${e.value.toLowerCase()}`;return!u.has(t)&&(u.add(t),!0)})}var M=e=>`provider`in e&&typeof e.provider==`string`;function Se(e,t){if(!Array.isArray(e.suggestions))return e;let n=pe(t),r=new Set;return{...e,suggestions:e.suggestions.filter(e=>{if(n&&M(e)&&!n.has(e.provider))return!1;let t=e.value.toLowerCase();return!r.has(t)&&(r.add(t),!0)})}}function Ce(e){let t=d(e),n=u(),r=t=>(n.data??[]).some(n=>n.integrationId===t&&n.factoryProjectId===e),i=ae(r(`linear`)),a=re(r(`linear`)),o=_e(r(`jira`));return xe({factoryProjectId:e,repositories:t.data?.repositories,bindings:n.data,linearProjects:i.data?.projects,linearTeams:a.data?.teams,jiraProjects:o.data})}var N=t(),P=`flex h-control-sm w-14 shrink-0 items-center`;function F({className:e,...t}){return(0,N.jsx)(`div`,{"data-slot":`rule-lines`,className:n(`flex flex-col gap-2`,e),...t})}function I({className:e,...t}){return(0,N.jsx)(`div`,{"data-slot":`rule-line`,className:n(`flex items-start gap-2`,e),...t})}function L({className:e,children:t,...r}){return(0,N.jsx)(`span`,{"data-slot":`rule-line-keyword`,"aria-hidden":t===void 0||void 0,className:n(P,i({variant:`caption`,tone:`muted`}),e),...r,children:t})}function we({value:e,onValueChange:t,"aria-label":n=`Match all or any`}){return(0,N.jsx)(`div`,{"data-slot":`rule-line-logic`,className:P,children:(0,N.jsxs)(g,{value:e,onValueChange:e=>e&&t(e),children:[(0,N.jsx)(p,{size:`sm`,variant:`ghost`,"aria-label":n,className:`-ml-2 w-fit px-2`,children:(0,N.jsx)(`span`,{className:i({variant:`caption`,tone:`ink`}),children:e===`AND`?`and`:`or`})}),(0,N.jsxs)(h,{children:[(0,N.jsx)(m,{value:`AND`,children:`and`}),(0,N.jsx)(m,{value:`OR`,children:`or`})]})]})})}function R({className:e,...t}){return(0,N.jsx)(`div`,{"data-slot":`rule-line-content`,className:n(`flex min-h-control-sm min-w-0 flex-1 flex-wrap items-center gap-1.5`,e),...t})}function Te({depth:e,className:t,...r}){return(0,N.jsx)(`div`,{role:`group`,"data-slot":`rule-line-group`,className:n(`flex min-w-0 flex-1 items-start gap-2 rounded-lg border border-border p-2`,e%2==0?`bg-fill-subtle`:`bg-card`,`[&>[data-slot=rule-lines]]:min-w-0 [&>[data-slot=rule-lines]]:flex-1`,t),...r})}function Ee({className:e,...t}){return(0,N.jsx)(l,{variant:`ghost`,size:`icon-sm`,className:n(`ml-auto`,e),...t,children:(0,N.jsx)(c,{})})}function De({className:e,children:t,...r}){return(0,N.jsx)(l,{icon:(0,N.jsx)(ne,{}),variant:`ghost`,size:`sm`,className:n(`ml-auto`,e),...r,children:t})}function Oe({className:e,...t}){return(0,N.jsx)(`span`,{"data-slot":`rule-line-hint`,className:n(i({variant:`caption`,tone:`muted`}),`px-1`,e),...t})}function z({icon:e,className:t,children:r,...a}){return(0,N.jsxs)(`button`,{type:`button`,"data-slot":`rule-add-button`,className:n(i({variant:`caption`,tone:`muted`}),`inline-flex h-control-sm items-center gap-1.5 rounded-full border border-dashed border-border px-3 hover:border-border-strong hover:text-foreground [&_svg]:size-icon-sm`,s,t),...a,children:[e,r]})}var ke=r(`IconColumns3`,()=>(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`path`,{d:`M18 4H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V6C20 4.89543 19.1046 4 18 4Z`,stroke:`currentColor`,strokeWidth:`2`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M9.33984 4V20`,stroke:`currentColor`,strokeWidth:`2`}),(0,N.jsx)(`path`,{d:`M14.6602 4V20`,stroke:`currentColor`,strokeWidth:`2`})]})),Ae=r(`IconFontStyle`,()=>(0,N.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M19.4639 19H20C20.5523 19 21 19.4477 21 20C21 20.5523 20.5523 21 20 21H14.5C13.9477 21 13.5 20.5523 13.5 20C13.5 19.4477 13.9477 19 14.5 19H15.2578L13.9551 15H8.15625L6.85449 19H7.5C8.05228 19 8.5 19.4477 8.5 20C8.5 20.5523 8.05228 21 7.5 21H4.5C3.94772 21 3.5 20.5523 3.5 20C3.5 19.4477 3.94772 19 4.5 19H4.75L9.29418 5.04203C9.69064 3.82426 10.8258 3 12.1065 3C13.3871 3 14.5223 3.82418 14.9188 5.04188L19.4639 19ZM8.80762 13H13.3037L11.3409 6.97096C11.251 6.69479 10.8603 6.69479 10.7704 6.97096L8.80762 13Z`,fill:`currentColor`})),je=r(`IconMerged`,()=>(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`circle`,{cx:`6`,cy:`6`,r:`2`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`circle`,{cx:`6`,cy:`18`,r:`2`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`circle`,{cx:`18`,cy:`18`,r:`2`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M6 8V16`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M8 6H16C17.1046 6 18 6.89543 18 8V16`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})]})),Me=r(`IconZap`,()=>(0,N.jsx)(`path`,{d:`M19.5657 9H13.5C13.2239 9 13 8.77614 13 8.5V2.40139C13 1.90668 12.3584 1.71242 12.084 2.12404L4.01823 14.2226C3.79672 14.5549 4.03491 15 4.43426 15H10.5C10.7761 15 11 15.2239 11 15.5V21.5986C11 22.0933 11.6416 22.2876 11.916 21.876L19.9818 9.77735C20.2033 9.44507 19.9651 9 19.5657 9Z`,stroke:`currentColor`,strokeWidth:`2`,strokeLinejoin:`round`})),B=e(a(),1),V=new Set([`exists`,`not_exists`]),H=new Set([`in`,`not_in`]),U=e=>`items`in e,Ne=0,W=()=>`condition-${++Ne}`,G=()=>({key:W(),field:``,operator:``}),Pe=e=>e+2<=3;function Fe(e){let t=e=>`conditions`in e?{key:W(),logic:e.operator,items:e.conditions.map(t)}:{key:W(),field:e.field,operator:e.operator,value:e.value};return{key:`root`,logic:e?.operator??`AND`,items:e?.conditions.map(t)??[]}}var Ie=e=>de.some(t=>t===e);function Le(e){if(!e.field)return!1;if(V.has(e.operator))return!0;let{value:t}=e;return t===void 0?!1:Array.isArray(t)?t.length>0:typeof t!=`string`||t.trim()!==``}function K(e){let t=!1,n=e=>{if(U(e)){let t=e.items.map(n).filter(e=>e!==void 0);return t.length>0?{operator:e.logic,conditions:t}:void 0}let{operator:r}=e;if(!Ie(r)||!Le(e))t=!0;else return V.has(r)?{field:e.field,operator:r}:{field:e.field,operator:r,value:e.value}},r=e.items.map(n).filter(e=>e!==void 0);return{rule:r.length>0?{operator:e.logic,conditions:r}:null,incomplete:t}}function q(e,t,n){if(!V.has(t))return e.type===`boolean`?typeof n!=`boolean`||n:H.has(t)?Array.isArray(n)?n:n===void 0||n===``?[]:[n]:Array.isArray(n)?n[0]:n}var Re=r(`IconListAdd`,()=>(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`path`,{d:`M4 6H20`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M4 12H10`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M15 15L21 15`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M18 12V18`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M4 18H10`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})]})),ze={"item.labels":he,"item.title":Ae,"item.author":se,"item.key":ye,"item.state":_,"item.assignees":me,"item.pullRequest":f,"item.trusted":k,"pullRequest.trusted":k,"source.kind":f,"source.integration":A,"source.provider":A,"source.repository":be,"pullRequest.closesIssue":je,"closedIssue.phase":ke,"closedIssue.hasPullRequest":f,"event.type":Me,"event.reason":oe},Be=le();function J(e,t){return e?.operatorLabels?.[t]??D.find(e=>e.id===t)?.label??t}function Y(e){return Array.isArray(e?.suggestions)&&e.suggestions.length>0?e.suggestions:void 0}function X({label:e,rule:t,facts:n,options:r,emptyHint:i,onChange:a}){let s=ue(n,r),[c,l]=(0,B.useState)(()=>Fe(t)),{rule:u,incomplete:d}=K(c),f=ge(u);return(0,N.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,N.jsx)(Z,{role:`group`,"aria-label":e,group:c,depth:0,fields:s,emptyHint:i,onChange:e=>{l(e);let{rule:t,incomplete:n}=K(e);a(t,n)}}),d&&(0,N.jsx)(o,{as:`p`,variant:`caption`,tone:`muted`,children:`Finish or remove unfinished conditions to save.`}),f&&(0,N.jsx)(o,{as:`p`,variant:`caption`,tone:`muted`,children:f})]})}function Z({role:e,"aria-label":t,group:n,depth:r,fields:i,limits:a=[],emptyHint:o,onChange:s,onRemove:c}){let l=(e,t)=>s({...n,items:t===void 0?n.items.filter((t,n)=>n!==e):n.items.with(e,t)}),u=e=>s({...n,items:[...n.items,e]}),d=(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(z,{icon:(0,N.jsx)(te,{}),onClick:()=>u(G()),children:`Add condition`}),Pe(r)&&(0,N.jsx)(z,{icon:(0,N.jsx)(Re,{}),onClick:()=>u({key:W(),logic:n.logic===`AND`?`OR`:`AND`,items:[G()]}),children:`Add group`}),c&&(0,N.jsx)(De,{onClick:c,children:`Remove group`})]});if(n.items.length===0)return(0,N.jsx)(F,{role:e,"aria-label":t,children:(0,N.jsxs)(I,{children:[(0,N.jsx)(L,{children:`Where`}),(0,N.jsxs)(R,{children:[d,o&&(0,N.jsx)(Oe,{children:o})]})]})});let f=n.logic===`AND`?`and`:`or`,p=ve(n.logic,a,n.items.filter(e=>!U(e)));return(0,N.jsxs)(F,{role:e,"aria-label":t,children:[n.items.map((e,t)=>(0,N.jsxs)(I,{children:[t===1?(0,N.jsx)(we,{value:n.logic,onValueChange:e=>s({...n,logic:e})}):(0,N.jsx)(L,{children:t===0?`Where`:f}),U(e)?(0,N.jsx)(Te,{depth:r,"aria-label":e.logic===`AND`?`All of these`:`Any of these`,children:(0,N.jsx)(Z,{group:e,depth:r+1,fields:i,limits:p,onChange:e=>l(t,e.items.length>0?e:void 0),onRemove:()=>l(t,void 0)})}):(0,N.jsx)(Ve,{row:e,fields:i,limits:p.filter(t=>t!==e),onChange:e=>l(t,e),onRemove:()=>l(t,void 0)})]},e.key)),(0,N.jsxs)(I,{children:[(0,N.jsx)(L,{}),(0,N.jsx)(R,{children:d})]})]})}function Q({id:e}){let t=ze[e]??_;return(0,N.jsx)(t,{"aria-hidden":`true`,className:`text-muted-foreground size-3.5 shrink-0`})}function Ve({row:e,fields:t,limits:n,onChange:r,onRemove:i}){let a=Be.find(t=>t.id===e.field),s=a&&!t.some(e=>e.id===a.id)?[a,...t]:t,c=s.find(t=>t.id===e.field),l=c&&Se(c,n),u=!!l&&ce(l.id)&&(!e.operator||e.operator===`exists`||e.operator===`not_exists`);return(0,N.jsxs)(R,{children:[(0,N.jsxs)(g,{value:e.field||null,onValueChange:t=>{let n=s.find(e=>e.id===t);if(!n)return;let i=n.operators?.[0]??`equals`;r({...e,field:n.id,operator:i,value:q(n,i,void 0)})},children:[(0,N.jsx)(p,{size:`sm`,"aria-label":`Field`,className:`w-fit max-w-full`,children:(0,N.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1.5`,children:[l&&(0,N.jsx)(Q,{id:l.id}),(0,N.jsx)(o,{as:`span`,variant:`caption`,className:`truncate`,children:l?.label??(e.field||`Choose a field`)})]})}),(0,N.jsx)(h,{children:s.map(e=>(0,N.jsx)(m,{value:e.id,children:(0,N.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,N.jsx)(Q,{id:e.id}),e.label]})},e.id))})]}),l?.type===`boolean`&&(0,N.jsx)(He,{row:e,field:l,onChange:r}),l&&u&&(0,N.jsx)(Ue,{row:e,field:l,onChange:r}),l&&l.type!==`boolean`&&!u&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(g,{value:e.operator,onValueChange:t=>t&&r({...e,operator:t,value:q(l,t,e.value)}),children:[(0,N.jsx)(p,{size:`sm`,variant:`ghost`,"aria-label":`Operator`,className:`w-fit`,children:(0,N.jsx)(o,{as:`span`,variant:`caption`,children:J(l,e.operator)})}),(0,N.jsx)(h,{children:(l.operators??[]).map(e=>(0,N.jsx)(m,{value:e,children:J(l,e)},e))})]}),!V.has(e.operator)&&(0,N.jsx)(We,{row:e,field:l,onChange:r})]}),(0,N.jsx)(Ee,{"aria-label":`Remove condition`,onClick:i})]})}function He({row:e,field:t,onChange:n}){let r=Y(t)??[{value:`true`,label:`Yes`},{value:`false`,label:`No`}],i=e.operator!==`not_equals`==(e.value!==!1);return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(o,{as:`span`,variant:`caption`,tone:`muted`,children:`is`}),(0,N.jsx)(S,{size:`sm`,"aria-label":t.label,value:String(i),onValueChange:t=>n({...e,operator:`equals`,value:t===`true`}),children:r.map(e=>(0,N.jsx)(w,{value:e.value,children:e.label},e.value))})]})}function Ue({row:e,field:t,onChange:n}){return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(o,{as:`span`,variant:`caption`,tone:`muted`,children:`is`}),(0,N.jsxs)(S,{size:`sm`,"aria-label":t.label,value:e.operator===`not_exists`?`false`:`true`,onValueChange:t=>n({...e,operator:t===`true`?`exists`:`not_exists`,value:void 0}),children:[(0,N.jsx)(w,{value:`true`,children:`Yes`}),(0,N.jsx)(w,{value:`false`,children:`No`})]})]})}function We({row:e,field:t,onChange:n}){let r=Y(t),i=H.has(e.operator),a=D.find(t=>t.id===e.operator)?.freeText===!0;if(t.strict===!1&&!a){let a=Array.isArray(e.value)?e.value.map(String):e.value===void 0?[]:[String(e.value)];return(0,N.jsx)(Ke,{options:(r??[]).map(e=>({value:e.value,label:e.label??e.value})),values:a,many:i,placeholder:O[t.id]??`Search or type a value`,onChange:t=>n({...e,value:i?t:t[0]})})}if(r&&i){let t=Array.isArray(e.value)?e.value.map(String):[];return(0,N.jsx)(Ge,{options:r.map(e=>({value:e.value,label:e.label??e.value})),values:t,onChange:t=>n({...e,value:t})})}if(r){let t=r.find(t=>t.value===String(e.value??``));return(0,N.jsxs)(g,{value:e.value===void 0?null:String(e.value),onValueChange:t=>t!==null&&n({...e,value:t}),children:[(0,N.jsx)(p,{size:`sm`,"aria-label":`Value`,className:`w-fit`,children:(0,N.jsx)(o,{as:`span`,variant:`caption`,className:`font-medium`,children:t?.label??(e.value===void 0?`Choose a value`:String(e.value))})}),(0,N.jsx)(h,{children:r.map(e=>(0,N.jsx)(m,{value:e.value,children:e.label},e.value))})]})}return(0,N.jsx)(Je,{row:e,field:t,many:i,onChange:n})}function $(e){return e.length===0?`Choose values`:e.length>3?`${e.slice(0,2).join(`, `)} +${e.length-2}`:e.length===1?e[0]:`${e.slice(0,-1).join(`, `)} or ${e.at(-1)}`}function Ge({options:e,values:t,onChange:r}){let i=t.map(t=>e.find(e=>e.value===t)??{value:t,label:t}),a=[...e,...i.filter(t=>!e.includes(t))],s=i.map(e=>e.label);return(0,N.jsxs)(b,{multiple:!0,autoHighlight:!0,items:a,value:i,itemToStringLabel:e=>e.label,isItemEqualToValue:(e,t)=>e.value===t.value,onValueChange:e=>r(e.map(e=>e.value)),children:[(0,N.jsx)(x,{size:`sm`,"aria-label":`Values`,title:s.join(`, `),className:`w-fit max-w-64`,children:(0,N.jsx)(o,{as:`span`,variant:`caption`,className:n(`font-medium`,s.length===0&&`text-muted-foreground`),children:$(s)})}),(0,N.jsxs)(T,{children:[(0,N.jsx)(C,{placeholder:`Search`}),(0,N.jsx)(v,{children:`No option found.`}),(0,N.jsx)(y,{children:e=>(0,N.jsx)(E,{value:e,children:e.label},e.value)})]})]})}function Ke({options:e,values:t,many:r,placeholder:i,onChange:a}){let[s,c]=(0,B.useState)(``),l=s.trim(),u=t=>e.some(e=>e.value.toLowerCase()===t.toLowerCase()),d=t.map(t=>e.find(e=>e.value===t)??{value:t,label:t}),f=[...e,...d.filter(t=>!e.includes(t)),...l&&!u(l)&&!t.includes(l)?[{value:l,label:`Use “${l}”`}]:[]],p=d.map(e=>e.value),m={autoHighlight:!0,items:f,inputValue:s,onInputValueChange:c,itemToStringLabel:e=>e.label,isItemEqualToValue:(e,t)=>e.value===t.value},h=(0,N.jsxs)(T,{children:[(0,N.jsx)(C,{placeholder:i}),(0,N.jsx)(v,{children:`Type a value to use it.`}),(0,N.jsx)(y,{children:e=>(0,N.jsx)(E,{value:e,children:e.label},e.value)})]}),g=(0,N.jsx)(o,{as:`span`,variant:`caption`,className:n(`font-medium`,p.length===0&&`text-muted-foreground`),children:p.length===0?i:$(p)});return r?(0,N.jsxs)(b,{...m,multiple:!0,value:d,onValueChange:e=>a(e.map(e=>e.value)),children:[(0,N.jsx)(x,{size:`sm`,"aria-label":`Values`,title:p.join(`, `),className:`w-fit max-w-64`,children:g}),h]}):(0,N.jsxs)(b,{...m,value:d[0]??null,onValueChange:e=>e&&a([e.value]),children:[(0,N.jsx)(x,{size:`sm`,"aria-label":`Value`,title:p[0],className:`w-fit max-w-64`,children:g}),h]})}function qe(e){return Array.isArray(e)?e.join(`, `):e===void 0?``:String(e)}function Je({row:e,field:t,many:n,onChange:r}){let[i,a]=(0,B.useState)(),o=(0,B.useRef)(void 0),s=i??qe(e.value),c=e=>{if(n)return e.split(`,`).map(e=>e.trim()).filter(e=>e!==``);if(t.type!==`number`)return e.trim();let r=Number(e.trim());return e.trim()!==``&&Number.isFinite(r)?r:void 0},l=t=>{i===void 0&&(o.current=e.value),a(t),r({...e,value:c(t)})};return(0,N.jsx)(ee,{size:`sm`,"aria-label":`Value`,type:t.type===`number`&&!n?`number`:`text`,placeholder:O[t.id]??(n?`Values, comma separated`:`Value`),value:s,className:`w-48`,onChange:e=>l(e.target.value),onBlur:()=>a(void 0),onKeyDown:t=>{t.key===`Enter`?(t.preventDefault(),a(void 0)):t.key===`Escape`&&i!==void 0&&(a(void 0),r({...e,value:o.current}))}})}export{Ce as n,X as t};
|
package/dist/factory/assets/{DescriptionMarkdown-iotpUxXF.js → DescriptionMarkdown-DdlduiCY.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./MarkdownRenderer-
|
|
1
|
+
import{t as e}from"./MarkdownRenderer-BMd9aqtH-Dt2AEdfj.js";import{O as t}from"./IconChevronRightMedium.es-BkPdzxSm.js";var n=t();function r(e){return function({node:t,...r}){return(0,n.jsx)(e,{...r})}}function i(e,t,n){return{h1:r(e),h2:r(e),h3:r(t),h4:r(n),h5:r(n),h6:r(n)}}var a={h2:i(`h3`,`h4`,`h5`),h3:i(`h4`,`h5`,`h6`)};function o({children:t,titleLevel:r}){return(0,n.jsx)(e,{className:`text-foreground text-caption max-w-none [&>*:first-child]:mt-0 [&>*:last-child]:mb-0`,components:a[r],children:t})}export{o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{O as t,T as n,f as r,k as i,n as a}from"./IconChevronRightMedium.es-BkPdzxSm.js";import{t as o}from"./IconCircleX.es-Bah9f48z.js";var s=t(),c=r(`IconCircleBanSign`,()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.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,s.jsx)(`path`,{d:`M18 6L6 18`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`square`})]})),l=e(i(),1),u={default:(0,s.jsx)(c,{}),error:(0,s.jsx)(o,{})},d={default:`text-muted-foreground`,error:`text-destructive-foreground`};function f({tone:e=`default`,iconSlot:t=u[e],titleSlot:r,descriptionSlot:i,actionSlot:o,statusSlot:c,className:l,as:f=`h3`,variant:p=`inline`,layout:m=`stacked`}){let h=m===`split`,g=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f,{className:n(`text-foreground`,h?`text-heading`:`text-subheading`),children:r}),i&&(0,s.jsx)(a,{variant:h?`body`:`caption`,tone:`muted`,className:`mt-1.5 max-w-md wrap-anywhere`,children:i}),o&&(0,s.jsx)(`div`,{className:n(`max-w-full`,h?`mt-6`:`mt-4`),children:o}),c&&(0,s.jsx)(a,{as:`p`,variant:`caption`,tone:`muted`,className:`mt-2 flex max-w-full items-center gap-2`,children:c})]}),_=(0,s.jsx)(`div`,{"data-slot":`empty-state`,"data-tone":e,"data-layout":m,className:n(`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,s.jsxs)(`div`,{className:`flex flex-col-reverse items-center gap-6 text-center @2xl:flex-row @2xl:gap-12 @2xl:text-left`,children:[(0,s.jsx)(`div`,{className:`flex w-80 max-w-full flex-col items-center @2xl:items-start`,children:g}),t&&(0,s.jsx)(`div`,{"data-slot":`empty-state-art-slot`,className:n(`flex h-60 w-52 max-w-full shrink-0 items-center justify-center [&_svg]:max-h-full [&_svg]:max-w-full`,d[e]),children:t})]}):(0,s.jsxs)(s.Fragment,{children:[t&&(0,s.jsx)(`div`,{className:n(`mb-3 max-w-full [&>svg]:size-icon-lg`,d[e]),children:t}),g]})});return p===`fill`?(0,s.jsx)(`div`,{"data-slot":`empty-state-fill`,className:`flex h-full items-center-safe justify-center-safe`,children:_}):_}function p({id:e}){return(0,s.jsxs)(s.Fragment,{children:[(0,s.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,s.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,s.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,s.jsx)(`mask`,{id:`${e}-0`,fill:`white`,children:(0,s.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,s.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,s.jsx)(`mask`,{id:`${e}-1`,fill:`white`,children:(0,s.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,s.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,s.jsx)(`mask`,{id:`${e}-2`,fill:`white`,children:(0,s.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,s.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,s.jsx)(`mask`,{id:`${e}-3`,fill:`white`,children:(0,s.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,s.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,s.jsx)(`mask`,{id:`${e}-4`,fill:`white`,children:(0,s.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,s.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 m({id:e}){return(0,s.jsxs)(s.Fragment,{children:[(0,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.jsx)(`rect`,{x:`21.281`,y:`65.614`,width:`78.576`,height:`61.442`,fill:`url(#${e}-0)`}),(0,s.jsx)(`defs`,{children:(0,s.jsxs)(`linearGradient`,{id:`${e}-0`,x1:`60.569`,y1:`65.614`,x2:`60.569`,y2:`127.055`,gradientUnits:`userSpaceOnUse`,children:[(0,s.jsx)(`stop`,{style:{stopColor:`var(--color-background)`},stopOpacity:`0`}),(0,s.jsx)(`stop`,{offset:`1`,style:{stopColor:`var(--color-background)`}})]})})]})}function h(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.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,s.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,s.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,s.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,s.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 g={"--hover-shift":`10.18px -5.09px`};function _(){return(0,s.jsxs)(`g`,{strokeWidth:`0.9`,children:[(0,s.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,s.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,s.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,s.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:g,children:[(0,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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 v(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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 y={"--hover-shift":`0px -10.61px`};function b({id:e}){return(0,s.jsxs)(`g`,{strokeWidth:`0.9`,children:[(0,s.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,s.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,s.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,s.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,s.jsxs)(`mask`,{id:`${e}-shackle`,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`120`,height:`120`,children:[(0,s.jsx)(`rect`,{width:`120`,height:`120`,fill:`white`}),(0,s.jsx)(`path`,{d:`M43.24 45.97h10v60h-10Z`,fill:`black`}),(0,s.jsx)(`path`,{d:`M66.76 57.73h10v60h-10Z`,fill:`black`})]}),(0,s.jsx)(`g`,{mask:`url(#${e}-shackle)`,children:(0,s.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:y,children:[(0,s.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,s.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 x(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(`g`,{opacity:`0.5`,children:[(0,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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 S(){return(0,s.jsxs)(`g`,{strokeWidth:`0.9`,children:[(0,s.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,s.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,s.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,s.jsx)(`path`,{d:`M60 69.57v-7.66`,stroke:`currentColor`,strokeOpacity:`0.7`,strokeLinecap:`round`}),(0,s.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,s.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,s.jsx)(`path`,{d:`M39 58.53h-6`,stroke:`currentColor`,strokeLinecap:`round`}),(0,s.jsx)(`path`,{d:`m42.8 46.49-4.92-3.44`,stroke:`currentColor`,strokeLinecap:`round`}),(0,s.jsx)(`path`,{d:`m52.82 38.8-2.05-5.64`,stroke:`currentColor`,strokeLinecap:`round`}),(0,s.jsx)(`path`,{d:`m67.18 38.8 2.05-5.64`,stroke:`currentColor`,strokeLinecap:`round`}),(0,s.jsx)(`path`,{d:`m77.2 46.49 4.92-3.44`,stroke:`currentColor`,strokeLinecap:`round`}),(0,s.jsx)(`path`,{d:`M81 58.53h6`,stroke:`currentColor`,strokeLinecap:`round`})]}),(0,s.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 C={"--hover-shift":`0px -8.79px`};function w({id:e}){return(0,s.jsxs)(`g`,{strokeWidth:`0.9`,children:[(0,s.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,s.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,s.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,s.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,s.jsx)(`mask`,{id:`${e}-slip`,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`120`,height:`120`,children:(0,s.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,s.jsx)(`g`,{mask:`url(#${e}-slip)`,children:(0,s.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:C,children:(0,s.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 T={"--hover-shift":`0px 16.89px`};function E({id:e}){return(0,s.jsxs)(`g`,{strokeWidth:`0.9`,children:[(0,s.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,s.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,s.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,s.jsx)(`mask`,{id:`${e}-letter`,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`120`,height:`120`,children:(0,s.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,s.jsx)(`g`,{mask:`url(#${e}-letter)`,children:(0,s.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:T,children:[(0,s.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,s.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,s.jsx)(`path`,{d:`M49.39 30.32 59.47 43.8l10.08-3.4`,stroke:`currentColor`,strokeLinecap:`round`})]})})]})}function D(){return(0,s.jsxs)(`g`,{strokeWidth:`0.9`,children:[(0,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.jsx)(`circle`,{cx:`60.06`,cy:`12.63`,r:`1.2`,className:`fill-background`,stroke:`currentColor`})]})}var O={"--hover-transform":`matrix(-0.766, -0.3214, 1.2856, -0.766, 0, 0)`,transformOrigin:`60px 54.46px`,transformBox:`view-box`};function k(){return(0,s.jsxs)(`g`,{strokeWidth:`0.9`,children:[(0,s.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,s.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,s.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,s.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,s.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:O,children:(0,s.jsx)(`path`,{d:`m60 54.46 8.76 12.03`,stroke:`currentColor`,strokeLinecap:`round`})}),(0,s.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,s.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 A(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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 j={"--hover-shift":`8.91px -4.45px`};function M({id:e}){return(0,s.jsxs)(`g`,{strokeWidth:`0.9`,children:[(0,s.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,s.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,s.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,s.jsx)(`mask`,{id:`${e}-slot-0`,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`120`,height:`120`,children:(0,s.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,s.jsxs)(`g`,{mask:`url(#${e}-slot-0)`,children:[(0,s.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,s.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,s.jsx)(`path`,{d:`m54.8 84.92 2.55 1.28`,stroke:`currentColor`,strokeOpacity:`0.7`,strokeLinecap:`round`})]}),(0,s.jsx)(`mask`,{id:`${e}-slot-1`,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`120`,height:`120`,children:(0,s.jsx)(`path`,{d:`M17.64 74.03 39.7 63l21.72 10.86v7.49L39.36 92.38 17.64 81.52Z`,fill:`white`})}),(0,s.jsxs)(`g`,{mask:`url(#${e}-slot-1)`,children:[(0,s.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,s.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,s.jsx)(`path`,{d:`m54.8 75.57 2.55 1.27`,stroke:`currentColor`,strokeOpacity:`0.7`,strokeLinecap:`round`})]}),(0,s.jsx)(`mask`,{id:`${e}-slot-2`,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`120`,height:`120`,children:(0,s.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,s.jsx)(`g`,{mask:`url(#${e}-slot-2)`,children:(0,s.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:j,children:[(0,s.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,s.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,s.jsx)(`path`,{d:`m45.89 70.67 2.55 1.27`,stroke:`currentColor`,strokeLinecap:`round`})]})}),(0,s.jsx)(`mask`,{id:`${e}-slot-3`,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`120`,height:`120`,children:(0,s.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,s.jsxs)(`g`,{mask:`url(#${e}-slot-3)`,children:[(0,s.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,s.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,s.jsx)(`path`,{d:`m54.8 56.86 2.55 1.28`,stroke:`currentColor`,strokeOpacity:`0.7`,strokeLinecap:`round`})]})]})}function N(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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 P(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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,s.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 F={traces:P,logs:x,"api-keys":p,environments:v,requests:A,databases:m,threads:N,deploys:h,"no-charges":w,"no-alerts":S,"no-destinations":E,disconnected:_,locked:b,"rate-limited":k,"server-error":M,"not-a-member":D};function I({name:e}){let t=(0,l.useId)().replace(/[^\w-]/g,``),n=F[e];return(0,s.jsx)(`div`,{className:`mb-5 w-30 max-w-full text-foreground group-data-[tone=error]/empty-state:text-destructive-indicator`,children:(0,s.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,s.jsx)(`mask`,{id:`${t}-frame`,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`120`,height:`120`,children:(0,s.jsx)(`circle`,{cx:`60`,cy:`60`,r:`60`,fill:`white`})}),(0,s.jsx)(`g`,{mask:`url(#${t}-frame)`,children:(0,s.jsx)(n,{id:t})}),(0,s.jsx)(`circle`,{cx:`60`,cy:`60`,r:`60`,fill:`url(#${t}-glow)`,fillOpacity:`0.09`}),(0,s.jsx)(`defs`,{children:(0,s.jsxs)(`linearGradient`,{id:`${t}-glow`,x1:`60`,y1:`0`,x2:`60`,y2:`120`,gradientUnits:`userSpaceOnUse`,children:[(0,s.jsx)(`stop`,{stopColor:`currentColor`}),(0,s.jsx)(`stop`,{offset:`1`,stopColor:`currentColor`,stopOpacity:`0.4`})]})})]})})}export{I as n,c as r,f as t};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{$r as t,En as n,bi as r,ci as i,li as a,mr as o,yi as s}from"./index-BRs5cQ2x.js";import{As as c,Fs as l,Jn as u,Pa as d,Qn as f,Zr as p,li as m,n as h,or as g,pi as _,rr as v,sr as y}from"./GithubIcon.es-Bg-ShonN.js";import{t as b}from"./EmptyState-IMGHVwoU-DpmxDoqJ.js";import{i as x,n as S,r as C,t as ee}from"./SkillBadges-B_RoiVSH.js";import{c as w,l as T}from"./boardConfigPaths-Btimpi_r.js";import{O as te,T as E,k as ne,n as D}from"./IconChevronRightMedium.es-BkPdzxSm.js";import{t as O}from"./AlertDialog.es-D0lBXghn.js";import{t as k}from"./InlineText-tcMMASWp.js";import{i as re}from"./highlight-Bv6lOTjf-c8PJ6G0P.js";import{t as ie}from"./MarkdownRenderer-BMd9aqtH-Dt2AEdfj.js";import{A as ae}from"./TabsRoot-DXvmv54V.js";import{t as oe}from"./IconChainLink3.es-BVxXB7oe.js";import{t as se}from"./IconCodeBrackets.es-CuUuf_Z9.js";import{a as ce,i as le,n as ue,o as de,r as fe,t as pe}from"./esm-C7LfA2Jk.js";import{t as A}from"./createLucideIcon-BHFyd0LL.js";import{a as j,i as me}from"./dist-6WNNvkM4.js";import{n as he,r as M}from"./dist-BOiJM1fT.js";import{F as N,L as ge,M as P,N as F,R as _e,X as ve,dt as ye,it as be,j as xe,mt as I,ut as L,vt as Se,yt as R}from"./dist-Sr6WSEaV.js";import{pt as z}from"./useSessionRows-DQ5H8cED.js";var B={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`}]]};B.node;var Ce=A(B),V={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`]};V.node;var we=A(V),H=e(ne(),1);function U(e){let t=(0,H.useRef)(!1),n=()=>e&&!t.current,r=v(({currentLocation:e,nextLocation:t})=>n()&&e.pathname!==t.pathname);return f(e=>{n()&&e.preventDefault()}),{blocker:r,leave:e=>{t.current=!0,e()}}}var W=te();function Te({blocker:e,title:t,description:n}){return(0,W.jsx)(O,{open:e.state===`blocked`,onOpenChange:t=>!t&&e.reset?.(),children:(0,W.jsxs)(O.Content,{children:[(0,W.jsxs)(O.Header,{children:[(0,W.jsx)(O.Title,{children:t}),(0,W.jsx)(O.Description,{children:n})]}),(0,W.jsxs)(O.Footer,{children:[(0,W.jsx)(O.Cancel,{children:`Keep editing`}),(0,W.jsx)(p,{variant:`destructive`,size:`md`,onClick:()=>e.proceed?.(),children:`Discard`})]})]})})}function Ee({notices:e,status:t,children:n}){return(0,W.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,W.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,W.jsx)(D,{variant:`body-sm`,tone:`muted`,className:`min-w-0 flex-1`,role:`status`,children:t}),n]})]})}function G({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 De({value:e,required:t,readOnly:n,onChange:r}){return(0,W.jsx)(D,{as:`p`,variant:`body`,tone:`muted`,children:(0,W.jsx)(k,{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 Oe=e(d(),1),ke=class extends _e{eq(){return!0}toDOM(){let e=document.createElement(`span`);return e.className=`cm-md-bullet`,e.textContent=`•`,e}},Ae=F.replace({}),je=F.replace({widget:new ke}),Me=new Map,Ne=e=>{let t=Me.get(e);return t||(t=F.line({class:e}),Me.set(e,t)),t},Pe={EmphasisMark:[`Emphasis`,`StrongEmphasis`],StrikethroughMark:[`Strikethrough`],CodeMark:[`InlineCode`]},Fe=(e,t)=>e.some(e=>e.from<=t.to&&e.to>=t.from),Ie=e=>e.length-e.trimStart().length;function Le(e,t,n){let r=e.doc.lineAt(t.from);if(t.from===n.from)return{from:t.from,to:t.to+Ie(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 Re(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=Ae)=>{Fe(n,t)||r.push(i.range(e.from,e.to))};for(let i of e.visibleRanges)P(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`){Fe(n,u)||(r.push(Ae.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(Le(t,l,d),u);else if(c===`QuoteMark`){let n=Math.min(1,Ie(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,je):Pe[c]?.includes(d.name)&&s(e,d)}}});for(let[e,t]of i)r.push(Ne([...t].join(` `)).range(e));return F.set(r,!0)}var ze=ge.fromClass(class{decorations;constructor(e){this.decorations=Re(e)}update(e){let t=P(e.startState)!==P(e.state);(e.docChanged||e.selectionSet||e.focusChanged||e.viewportChanged||t)&&(this.decorations=Re(e.view))}},{decorations:e=>e.decorations}),K={node:`StrongEmphasis`,marker:`**`},q={node:`Emphasis`,marker:`*`},Be={node:`InlineCode`,marker:"`"},Ve=/^https?:\/\/\S+$/,He=/^\s*(?:(?:[-*+]|\d+[.)])\s+(?:\[[ xX]\]\s+)?|>\s?|#{1,6}\s+)*/,Ue=/^(?:FencedCode|CodeBlock)$/,We=/^(?:Paragraph|ATXHeading\d|SetextHeading\d|Task|TableCell)$/,Ge=[1,-1],Ke=K.marker.length+q.marker.length;function J(e,t,n){let r=P(e);for(let e of Ge)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 qe(e,t){for(let n=e;n;n=n.parent)if(t.test(n.name))return n;return null}var Y=(e,t)=>Ge.some(n=>qe(P(e).resolveInner(t,n),Ue)!==null),Je=(e,t)=>{let n=P(e).resolveInner(t.from,1);if(n.name===`HeaderMark`)return!1;let r=qe(n,We);return r!==null&&t.to<=r.to};function Ye(e,t){let n=[];for(let r=t.from;r<=t.to;){let i=e.doc.lineAt(r),a=i.from+(He.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&&Je(e,d)&&n.push(d),r=i.to+1}return n}function Xe(e,t,n){let r=J(e,{from:t,to:t},n.node);return!r?.firstChild||!r.lastChild?null:t>=r.firstChild.to&&t<=r.lastChild.from?r:null}function Ze(e,t,n){if(t.empty)return!!Xe(e,t.from,n);let r=Ye(e,t);return r.length>0&&r.every(t=>J(e,t,n.node))}var X=e=>e.firstChild&&e.lastChild?[{from:e.from,to:e.firstChild.to},{from:e.lastChild.from,to:e.to}]:[];function Qe(e,t,n){let r=[];return P(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 Z(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?L.range(i,a):L.range(a,i)}}function $e(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 et(e,t,n,r){let i=t.from;if(Y(e,i))return{range:t};let a=r?Xe(e,i,n):null;if(a?.lastChild&&i===a.lastChild.from)return{range:L.cursor(a.to)};if(a)return Z(e,X(a),t);let{marker:o}=n,{before:s,after:c}=$e(e,i,o.charAt(0));return s===c&&(s===o.length||s===Ke)?{changes:{from:i-o.length,to:i+o.length},range:L.cursor(i-o.length)}:{changes:{from:i,insert:o+o},range:L.cursor(i+o.length)}}function tt(e,t,n,r){let i=[];for(let a of Ye(e,t)){if(r){let t=J(e,a,n.node);t&&i.push(...X(t));continue}let t=Qe(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(X),{from:o,insert:n.marker},{from:s,insert:n.marker})}return Z(e,i,t)}var Q=(e,t)=>e.selection.ranges.every(n=>Ze(e,n,t)),$=e=>({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=Q(t,e),i=t.changeByRange(n=>n.empty?et(t,n,e,r):tt(t,n,e,r));return n(t.update(i,{scrollIntoView:!0,userEvent:`input.format`})),!0},nt=(e,t)=>{let n=J(e,t,`Link`);return n?.getChild(`URL`)?n:null},rt=e=>e.selection.ranges.every(t=>nt(e,t));function it(e,t,n){if(n){let n=nt(e,t),[r,i]=n?.getChildren(`LinkMark`)??[];return!n||!r||!i?{range:t}:Z(e,[{from:n.from,to:r.to},{from:i.from,to:n.to}],t)}if(Y(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 Ve.test(r)?{changes:{from:t.from,to:t.to,insert:`[](${r})`},range:L.cursor(t.from+1)}:t.empty?{changes:{from:t.from,insert:`[]()`},range:L.cursor(t.from+1)}:{changes:[{from:t.from,insert:`[`},{from:t.to,insert:`]()`}],range:L.cursor(t.to+3)}}var at=[{id:`bold`,label:`Bold`,key:`b`,run:$(K),isActive:e=>Q(e,K)},{id:`italic`,label:`Italic`,key:`i`,run:$(q),isActive:e=>Q(e,q)},{id:`code`,label:`Code`,key:`e`,run:$(Be),isActive:e=>Q(e,Be)},{id:`link`,label:`Link`,key:`k`,run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=rt(e);return t(e.update(e.changeByRange(t=>it(e,t,n)),{scrollIntoView:!0,userEvent:`input.format`})),!0},isActive:rt}],ot=I.high(ve.of(at.map(e=>({key:`Mod-${e.key}`,run:e.run})))),st=me([...re,{tag:j.heading1,class:`cm-md-heading cm-md-h1`},{tag:j.heading2,class:`cm-md-heading cm-md-h2`},{tag:j.heading3,class:`cm-md-heading cm-md-h3`},{tag:[j.heading4,j.heading5,j.heading6],class:`cm-md-heading`},{tag:j.strong,class:`cm-md-strong`},{tag:j.emphasis,class:`cm-md-emphasis`},{tag:j.strikethrough,class:`cm-md-strike`},{tag:j.link,class:`cm-md-link`},{tag:j.url,class:`cm-md-url`},{tag:j.monospace,class:`cm-md-code`},{tag:j.quote,class:`cm-md-quote`},{tag:[j.processingInstruction,j.contentSeparator,j.labelName],class:`cm-md-mark`}]),ct=N.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`}}),lt=[N.editorAttributes.of({class:`mastra-markdown-editor`}),xe(st),ct],ut=Se.define(),dt=R.define({create:()=>!1,update:(e,t)=>t.effects.reduce((e,t)=>t.is(ut)?t.value:e,e)}),ft=N.theme({".cm-tooltip.cm-md-toolbar":{border:`none`,backgroundColor:`transparent`}});function pt(){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(dt)?null:t?.pos===n&&t.end===i?t:{pos:n,end:i,above:!0,arrow:!1,create:r}},a=R.define({create:e=>i(e,null),update:(e,t)=>i(t.state,e),provide:e=>be.from(e)});return{extension:[dt,N.focusChangeEffect.of((e,t)=>ut.of(t)),a,ft],subscribe:e=>(t.add(e),()=>t.delete(e)),getSnapshot:()=>e}}var mt=[{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 ht(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()!==``||Y(e.state,t.from)?null:{from:t.from+1,options:mt,validFor:/^\w*$/}}var gt=M.data.of({autocomplete:ht}),_t={bold:(0,W.jsx)(we,{}),italic:(0,W.jsx)(Ce,{}),code:(0,W.jsx)(se,{}),link:(0,W.jsx)(oe,{})},vt=e=>e.preventDefault();function yt({toolbar:e}){let t=(0,H.useSyncExternalStore)(e.subscribe,e.getSnapshot,()=>null),n=r();if(!t)return null;let{host:i,view:a,state:o}=t;return(0,Oe.createPortal)((0,W.jsx)(`div`,{role:`toolbar`,"aria-label":`Formatting`,className:E(c,`flex items-center gap-0.5 rounded-full p-1`),children:at.map(e=>{let t=e.isActive(o),r=s(e.key,n),i=e.key.toUpperCase();return(0,W.jsx)(p,{type:`button`,size:`icon-sm`,variant:t?`subtle`:`ghost`,"aria-label":e.label,"aria-pressed":t,"aria-keyshortcuts":n?`Meta+${i}`:`Control+${i}`,tooltip:(0,W.jsx)(ae,{label:e.label,shortcut:r}),tabIndex:-1,onMouseDown:vt,onClick:()=>e.run(a),children:_t[e.id]},e.id)})}),i)}var bt=l(`relative transition-colors duration-normal ease-out-custom`,{variants:{variant:{default:E(_,`rounded-md px-3 py-2`,m),inline:``}},defaultVariants:{variant:`default`}}),xt={lineNumbers:!1,foldGutter:!1,highlightActiveLine:!1,highlightActiveLineGutter:!1,highlightSelectionMatches:!1,bracketMatching:!1,closeBrackets:!1},St=[...le,ce,N.lineWrapping,he({base:M,codeLanguages:ue}),lt,ze,ot,gt],Ct=[ye.readOnly.of(!0),I.highest(N.domEventHandlers({paste:()=>!0}))],wt=(0,H.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,H.useState)(pt),g=(0,H.useMemo)(()=>[...St,m,h.extension,...r?[]:[Ct]],[m,h,r]);return(0,W.jsxs)(`div`,{className:E(bt({variant:a}),o),...f,children:[(0,W.jsx)(pe,{ref:p,value:e,theme:fe(`body`),extensions:g,onChange:t,editable:r,placeholder:n,autoFocus:i,basicSetup:xt}),(0,W.jsx)(yt,{toolbar:h})]})});function Tt({value:e,readOnly:t,onChange:n}){return t&&e?(0,W.jsx)(ie,{children:e}):t?(0,W.jsx)(D,{variant:`body`,tone:`muted`,children:`No instructions`}):(0,W.jsx)(wt,{"aria-label":`Instructions`,value:e,placeholder:`Write the instructions agents follow`,onChange:n,variant:`inline`})}var Et=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,Dt=64;function Ot(e){if(!(e===``||Et.test(e)&&e.length<=Dt))return`Use up to ${Dt} lowercase letters, digits, and single hyphens, such as release-notes.`}function kt(e,t){if(e===``)return`Name the skill to create it.`;if(Ot(e))return`Fix the name to create it.`;if(t.trim()===``)return`Add a description to create it.`}function At({factoryId:e,onCreated:t}){let[n,r]=(0,H.useState)(``),[i,a]=(0,H.useState)(``),[o,s]=(0,H.useState)(``),c=S(e),l=n!==``||i!==``||o!==``,{blocker:u,leave:d}=U(l),f=Ot(n),m=kt(n,i);return(0,W.jsxs)(`div`,{className:`flex flex-col gap-8`,children:[(0,W.jsxs)(`div`,{inert:c.isPending,className:`flex flex-col gap-8`,children:[(0,W.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,W.jsx)(D,{as:`p`,variant:`body`,tone:`ink`,className:`min-w-0 break-words`,children:(0,W.jsx)(k,{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,W.jsx)(D,{as:`p`,variant:`caption`,className:`text-destructive-foreground`,children:f}),(0,W.jsx)(De,{value:i,required:!1,readOnly:!1,onChange:a})]}),(0,W.jsx)(Tt,{value:o,readOnly:!1,onChange:s})]}),l&&(0,W.jsxs)(Ee,{status:m??`Only this Factory gets the skill. Agents can load it from their next session.`,notices:c.error&&(0,W.jsx)(h,{variant:`destructive`,role:`alert`,children:(0,W.jsx)(h.Message,{children:c.error.message})}),children:[(0,W.jsx)(p,{size:`sm`,variant:`ghost`,onClick:()=>{r(``),a(``),s(``),c.reset()},disabled:c.isPending,children:`Discard`}),(0,W.jsx)(p,{size:`sm`,variant:`primary`,onClick:()=>c.mutate({name:n,content:G({name:n,description:i,instructions:o})},{onSuccess:()=>d(()=>t(n))}),disabled:m!==void 0,loading:c.isPending,children:`Create`})]}),(0,W.jsx)(Te,{blocker:u,title:`Discard this new skill?`,description:`It has not been created yet.`})]})}function jt({factoryId:e,skill:t,canEdit:n,onDeleted:r}){let[i,a]=(0,H.useState)(),[o,s]=(0,H.useState)(),c=i??t.description,l=o??t.content,[u,d]=(0,H.useState)(!1),f=(0,H.useRef)(null),m=C(e),g=C(e),_=m.isPending||g.isPending,v=n&&(c!==t.description||l!==t.content),{blocker:y,leave:b}=U(v),x=n&&!!t.edited,S=n&&t.origin===`project`,w=(e,t)=>e===t&&!_?void 0:e,T=e=>()=>{a(t=>t===e.description?void 0:t),s(t=>t===e.instructions?void 0:t)};return(0,W.jsxs)(`div`,{className:`flex flex-col gap-8`,children:[(0,W.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,W.jsxs)(`div`,{className:`flex min-h-8 flex-wrap items-center gap-2 empty:hidden`,children:[(0,W.jsx)(ee,{skill:t}),(!n||x||S)&&(0,W.jsxs)(`div`,{className:`ml-auto flex items-center gap-1`,children:[!n&&(0,W.jsx)(D,{variant:`caption`,tone:`muted`,children:`Only organization admins can edit skills.`}),x&&(0,W.jsx)(p,{size:`sm`,variant:`ghost`,onClick:()=>g.mutate({name:t.name,content:null},{onSuccess:T({description:c,instructions:l})}),disabled:_,loading:g.isPending,children:`Revert to original`}),S&&(0,W.jsx)(p,{ref:f,size:`sm`,variant:`ghost`,onClick:()=>d(!0),disabled:_,children:`Delete`})]})]}),u&&(0,W.jsx)(h,{variant:`warning`,title:`Delete ${t.name}?`,actionPlacement:`end`,action:(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(p,{size:`sm`,onClick:()=>{d(!1),f.current?.focus()},disabled:_,autoFocus:!0,children:`Keep`}),(0,W.jsx)(p,{size:`sm`,variant:`destructive`,onClick:()=>g.mutate({name:t.name,content:null},{onSuccess:()=>b(r)}),disabled:_,loading:g.isPending,children:`Delete skill`})]}),children:(0,W.jsx)(h.Message,{children:`Cards entering a phase that runs it won't start until the phase gets another skill.`})}),g.error&&(0,W.jsx)(h,{variant:`destructive`,role:`alert`,children:(0,W.jsx)(h.Message,{children:g.error.message})}),t.error&&(0,W.jsx)(h,{variant:`destructive`,role:`alert`,children:(0,W.jsxs)(h.Message,{children:[`Agents cannot load this skill: `,t.error]})}),t.edited&&t.originalChanged&&(0,W.jsx)(h,{variant:`info`,role:`note`,children:(0,W.jsx)(h.Message,{children:`The original changed since this was edited. Revert to use the new original.`})}),(0,W.jsx)(De,{value:c,required:!0,readOnly:!n,onChange:e=>a(w(e,t.description))})]}),(0,W.jsx)(Tt,{value:l,readOnly:!n,onChange:e=>s(w(e,t.content))}),v&&(0,W.jsxs)(Ee,{status:`Unsaved changes for this Factory. Running sessions keep the version they started with.`,notices:m.error&&(0,W.jsx)(h,{variant:`destructive`,role:`alert`,children:(0,W.jsx)(h.Message,{children:m.error.message})}),children:[(0,W.jsx)(p,{size:`sm`,variant:`ghost`,onClick:()=>{a(void 0),s(void 0),m.reset()},disabled:_,children:`Discard`}),(0,W.jsx)(p,{size:`sm`,variant:`primary`,onClick:()=>m.mutate({name:t.name,content:G({name:t.name,description:c,frontmatter:t.frontmatter,instructions:l})},{onSuccess:T({description:c,instructions:l})}),disabled:_,loading:m.isPending,children:`Save`})]}),(0,W.jsx)(Te,{blocker:y,title:`Discard changes to ${t.name}?`,description:`Your unsaved changes to this skill will be lost.`})]})}var Mt=`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,W.jsxs)(`div`,{role:`status`,"aria-label":`Loading skill`,className:`flex flex-col gap-8`,children:[(0,W.jsx)(`div`,{className:`flex flex-col`,children:Nt.map(e=>(0,W.jsx)(z,{line:`text-body`,className:E(e,Mt)},e))}),(0,W.jsx)(`div`,{className:`flex flex-col`,children:Pt.map((e,t)=>(0,W.jsx)(z,{line:`text-body leading-6`,className:E(e,Mt)},t))})]})}function It(){let e=t(),r=n()?.boardId??``,{skillName:i}=y(),s=T(e.id,r);return(0,W.jsx)(a,{variant:`form`,backHref:s,backLabel:`Skills`,title:i??`New skill`,LinkComponent:o,children:(0,W.jsx)(Lt,{factoryId:e.id,boardId:r,skillName:i})})}function Lt({factoryId:e,boardId:t,skillName:n}){let r=g(),a=x(e),o=T(e,t);if(a.isPending)return(0,W.jsx)(Ft,{});if(a.isLoadingError)return(0,W.jsx)(i,{title:`Couldn’t load skills`,error:a.error,onRetry:()=>void a.refetch(),retrying:a.isFetching});let s=a.data.canEdit??!1;if(n===void 0&&!s)return(0,W.jsx)(h,{variant:`info`,children:`Only organization admins can create skills.`});if(n===void 0)return(0,W.jsx)(At,{factoryId:e,onCreated:n=>void r(w(e,t,n),{replace:!0})},e);let c=a.data.skills.find(e=>e.name===n);return c?(0,W.jsx)(jt,{factoryId:e,skill:c,canEdit:s,onDeleted:()=>void r(o,{replace:!0})},`${e}/${c.name}`):(0,W.jsx)(b,{variant:`fill`,titleSlot:(0,W.jsxs)(`span`,{role:`alert`,children:[`This factory has no `,n,` skill.`]}),actionSlot:(0,W.jsx)(p,{render:(0,W.jsx)(u,{to:o}),children:`Back to skills`})})}export{It as FactorySkillPage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{$r as t,En as n,li as r,mr as i,si as a,ui as o}from"./index-BRs5cQ2x.js";import{n as s,t as c}from"./Breadcrumb.es-DjvzVu5v.js";import{Es as l,Fs as u,Jn as d,Ms as f,Zr as p,_i as m,js as h}from"./GithubIcon.es-Bg-ShonN.js";import{a as g}from"./Sidebar-zeEMJHoc-CAYPr70W.js";import{t as _}from"./IconPlusMedium.es-BOotRziY.js";import{r as v}from"./useBoardEditor-DhrV_vHP.js";import{i as y,t as b}from"./SkillBadges-B_RoiVSH.js";import{a as x,c as S,d as C}from"./boardConfigPaths-Btimpi_r.js";import{j as w}from"./TabsRoot-DXvmv54V.js";import{O as T,T as E,c as D,k as O,n as k,t as A}from"./IconChevronRightMedium.es-BkPdzxSm.js";import{pt as j}from"./useSessionRows-DQ5H8cED.js";import{n as M}from"./useBoardCatalog-BWEZygG2.js";import{n as N}from"./boardCatalog-y-s19dQU.js";var P=e(O(),1),F=T(),I=E(`motion-safe:not-disabled:not-aria-disabled:hover:[&_[data-emphasis=grow-y]]:scale-y-125`,`motion-safe:not-disabled:not-aria-disabled:hover:[&_[data-emphasis=grow-x]]:scale-x-125`,`motion-safe:not-disabled:not-aria-disabled:hover:[&_[data-emphasis=pop]]:scale-110`,`motion-safe:not-disabled:not-aria-disabled:focus-visible:[&_[data-emphasis=grow-y]]:scale-y-125`,`motion-safe:not-disabled:not-aria-disabled:focus-visible:[&_[data-emphasis=grow-x]]:scale-x-125`,`motion-safe:not-disabled:not-aria-disabled:focus-visible:[&_[data-emphasis=pop]]:scale-110`),L=u(E(h,`rounded-xl transition-all duration-normal ease-out-custom motion-reduce:transition-none`),{variants:{elevation:{flat:`shadow-none`,raised:``},interactive:{true:E(f,m,I,`cursor-pointer active:scale-99 aria-[current=true]:[--surface-rim:var(--border-focus)]`),false:``}},compoundVariants:[{elevation:`flat`,interactive:!0,class:E(D,`aria-[current=true]:outline-1 aria-[current=true]:-outline-offset-1 aria-[current=true]:outline-border-focus aria-[current=true]:outline-solid`)}],defaultVariants:{elevation:`raised`,interactive:!1}}),R=P.forwardRef(({className:e,elevation:t,interactive:n,as:r,...i},a)=>{let o=r||(n?`button`:`div`);return(0,F.jsx)(o,{ref:a,type:o===`button`?`button`:void 0,className:E(L({elevation:t,interactive:n}),e),...i})});R.displayName=`Card`;function z({className:e,elevation:t,LinkComponent:n=`a`,...r}){return(0,F.jsx)(n,{className:E(L({elevation:t,interactive:!0}),e),...r})}var B=P.forwardRef(({className:e,...t},n)=>(0,F.jsx)(`div`,{ref:n,className:E(`flex flex-col space-y-1.5 px-3 py-1`,e),...t}));B.displayName=`CardHeader`;var V=P.forwardRef(({className:e,...t},n)=>(0,F.jsx)(`h3`,{ref:n,className:E(`text-subheading text-foreground`,e),...t}));V.displayName=`CardTitle`;var H=P.forwardRef(({className:e,...t},n)=>(0,F.jsx)(`p`,{ref:n,className:E(`text-caption text-muted-foreground`,e),...t}));H.displayName=`CardDescription`;var U=u(``,{variants:{density:{default:`p-3`,compact:`p-2`}},defaultVariants:{density:`default`}}),W=P.forwardRef(({className:e,density:t,...n},r)=>(0,F.jsx)(`div`,{ref:r,className:E(U({density:t}),e),...n}));W.displayName=`CardContent`;var G=P.forwardRef(({className:e,...t},n)=>(0,F.jsx)(`div`,{ref:n,className:E(`flex items-center p-3 pt-0`,e),...t}));G.displayName=`CardFooter`;var K=P.forwardRef(({className:e,as:t=`div`,...n},r)=>(0,F.jsx)(t,{ref:r,className:E(l,`overflow-hidden rounded-lg bg-nested px-3 *:py-3 [&>*+*]:border-t [&>*+*]:border-separator`,e),...n}));K.displayName=`CardInset`;function q(e){return new Set((e??[]).flatMap(e=>e.phases.flatMap(e=>e.skill?[e.skill]:[])))}function J({children:e}){return(0,F.jsxs)(W,{className:`flex items-center gap-4`,children:[(0,F.jsx)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:e}),(0,F.jsx)(A,{"aria-hidden":!0,className:`text-muted-foreground size-icon-md shrink-0`})]})}function Y({skill:e,href:t}){return(0,F.jsx)(z,{elevation:`flat`,href:t,LinkComponent:i,children:(0,F.jsxs)(J,{children:[(0,F.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,F.jsx)(k,{tone:`ink`,as:`span`,variant:`body`,children:e.name}),e.error&&(0,F.jsx)(w,{variant:`destructive`,children:`Failed to load`}),(0,F.jsx)(b,{skill:e})]}),e.error?(0,F.jsxs)(k,{as:`span`,variant:`caption`,className:`text-destructive-foreground whitespace-pre-wrap`,children:[`Agents cannot load this skill: `,e.error]}):(0,F.jsx)(k,{tone:`muted`,as:`span`,variant:`caption`,children:e.description})]})})}var X=[`w-40`,`w-32`,`w-36`];function Z(){return(0,F.jsx)(`div`,{role:`status`,"aria-label":`Loading skills`,className:`flex flex-col gap-3`,children:X.map(e=>(0,F.jsx)(R,{elevation:`flat`,children:(0,F.jsxs)(J,{children:[(0,F.jsx)(j,{line:`text-body`,className:E(e,`motion-reduce:before:animate-none`)}),(0,F.jsx)(j,{line:`text-caption`,className:`w-3/4 motion-reduce:before:animate-none`})]})},e))})}function Q({factoryId:e,boardId:t}){let n=y(e),r=M(e),i=q(r.data===void 0?void 0:N(r.data)),a=(n.data?.skills??[]).filter(e=>!i.has(e.name)),o=n.isPending||r.isLoading;return(0,F.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[o&&(0,F.jsx)(Z,{}),n.error&&(0,F.jsx)(k,{as:`p`,variant:`caption`,className:`text-destructive-foreground`,children:n.error instanceof Error?n.error.message:`Failed to load skills`}),r.error&&(0,F.jsx)(k,{as:`p`,variant:`caption`,className:`text-destructive-foreground`,children:`Installed boards could not be loaded, so some of these skills may run in a board phase.`}),!o&&n.isSuccess&&a.length===0&&(0,F.jsx)(k,{tone:`muted`,as:`p`,variant:`caption`,children:`Every skill runs in a board phase.`}),!o&&a.map(n=>(0,F.jsx)(Y,{skill:n,href:S(e,t,n.name)},n.name))]})}function $(){let e=t(),i=n()?.boardId??``,{isMobile:l,desktopState:u}=g(),f=l||u===`collapsed`,m=v(e.id,i).data?.board,h=y(e.id).data?.canEdit??!1,b=a({breadcrumbs:f&&m?(0,F.jsxs)(c,{label:`Breadcrumb`,className:`min-w-0 flex-1 overflow-hidden`,children:[(0,F.jsx)(s,{as:d,to:x(e.id,i),children:m.name}),(0,F.jsx)(s,{as:`span`,isCurrent:!0,children:`Skills`})]}):void 0});return(0,F.jsx)(r,{variant:`settings`,header:(0,F.jsxs)(o,{children:[(0,F.jsx)(o.Title,{children:`Skills`}),(0,F.jsx)(o.Description,{children:`Agents load these when they need them. Skills a phase runs are on that phase's page.`}),h&&(0,F.jsx)(o.Action,{children:(0,F.jsx)(p,{size:`sm`,icon:(0,F.jsx)(_,{}),render:(0,F.jsx)(d,{to:C(e.id,i)}),children:`New skill`})})]}),...b,children:(0,F.jsx)(Q,{factoryId:e.id,boardId:i})})}export{$ as FactorySkillsPage};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{C as t,O as n,T as r,g as i,k as a,m as o,o as s,s as c,x as l}from"./IconChevronRightMedium.es-BkPdzxSm.js";import{Ai as u,At as d,Cs as f,Ct as p,Di as m,Dt as h,Fs as g,Mi as _,Mt as v,Nt as y,Ot as b,Pt as x,Qo as S,Ss as C,Wo as w,Xr as T,Yr as E,Za as D,bs as O,ci as k,cs as A,eo as j,es as M,fi as N,ga as ee,gi as P,hi as te,jt as F,ki as I,ma as L,os as ne,si as re,vi as R,wt as z,xi as B,xt as V,zi as H}from"./GithubIcon.es-Bg-ShonN.js";import{n as U}from"./password-manager-autofill.es-Cs1VH0JI.js";import{t as ie}from"./Input-CI6m9l4V.js";var W=e(a(),1),G=n(),K=`flex flex-col items-center justify-end gap-1 rounded-md bg-fill p-3`;function q({title:e,caption:t,children:n,className:i,...a}){return(0,G.jsxs)(`figure`,{className:r(`row-span-3 grid grid-rows-subgrid justify-items-start text-start`,i),...a,children:[(0,G.jsx)(`figcaption`,{className:`text-column text-foreground`,children:e}),(0,G.jsx)(`div`,{"aria-hidden":!0,className:r(K,`justify-self-stretch`),children:n}),(0,G.jsx)(`p`,{className:`text-caption text-muted-foreground`,children:t})]})}var J={text:`max-w-64`,illustrated:`w-80 max-w-(--available-width) p-3`};function Y({children:e,side:t,align:n,variant:i=`text`,contentClassName:a,...o}){let l=W.useId(),[d,f]=W.useState(!1),p=W.useRef(void 0),h=W.useRef(null),g=i===`illustrated`&&n===void 0;return(0,G.jsxs)(I,{open:d,onOpenChange:f,children:[(0,G.jsx)(_,{ref:h,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,G.jsx)(`button`,{type:`button`,...o,"aria-describedby":l,className:r(`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-['']`,s,c)}),children:(0,G.jsx)(m,{size:`xs`,children:(0,G.jsx)(T,{})})}),(0,G.jsx)(u,{id:l,keepMounted:!0,side:t??(i===`illustrated`?`bottom`:`top`),align:g?`start`:n,alignOffset:g?({side:e,positioner:t})=>{let n=h.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:r(J[i],a),children:i===`illustrated`?(0,G.jsx)(`div`,{className:`grid auto-cols-fr grid-flow-col gap-x-4 gap-y-1.5`,children:e}):e})]})}var X=Object.assign(Y,{Panel:q});function Z(e,t){let n=H(e);return f(()=>(t(n),()=>{t(e=>e===n?void 0:e)}),[n,t]),n}function Q(e={}){let{id:t,fallbackControlId:n,native:r=!1,setLabelId:i,focusControl:a}=e,{controlId:o,setLabelId:s}=z(),c=Z(t,j(e=>{s(e),i?.(e)})),l=o??n;function u(e){if(a){a(e,l);return}if(!l)return;let t=ae(e.currentTarget,l);ne(t)&&oe(t)}function d(e){let t=M(e.nativeEvent);S(t,`button,input,select,textarea`)||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),r||u(e))}return r?{id:c,htmlFor:l,onMouseDown:d}:{id:c,onClick:d,onPointerDown(e){e.preventDefault()}}}function ae(e,t){let n=e.getRootNode();for(;A(n);){let e=n.getElementById(t);if(e)return e;n=n.host.getRootNode()}return D(e).getElementById(t)}function oe(e){e.focus({focusVisible:!0})}var se=W.createContext({disabled:!1});function ce(){return W.useContext(se)}var le=W.createContext(void 0);function $(e=!1){let t=W.useContext(le);if(!t&&!e)throw Error(C(86));return t}var ue=function(e){let n=H(),[r,i]=W.useState(n),[a,o]=W.useState(),[s,c]=W.useState([]),l=r===void 0?n:r,u=t(()=>new Map),{messageIds:d}=z(),f=j((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})}),m=j(()=>{u.current.size===0&&i(n)}),h=W.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]),g=W.useMemo(()=>({controlId:l,registerControlId:f,resetControlId:m,labelId:a,setLabelId:o,messageIds:s,setMessageIds:c,getDescriptionProps:h}),[l,f,m,a,o,s,c,h]);return(0,G.jsx)(p.Provider,{value:g,children:e.children})};function de(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}var fe=Object.keys(d);function pe(e,t){return e.matches(`:disabled`)?!1:!t||e.form===t||e.form===null&&!e.hasAttribute(`form`)}function me(e,t){let n=null;for(let r of e.keys())if(pe(r,t)){if(!r.validity.valid)return r;n??=r}return n}function he(e){return{...d,valid:!e,customError:e}}function ge(e){return e&&e.validationMessage?[e.validationMessage]:[]}function _e(e){let{elementRef:n,formRef:r}=V(),{setValidityData:a,validate:o,validityData:s,validationDebounceTime:c,invalid:u,markedDirtyRef:d,state:f,shouldValidateOnChange:p,validationMode:m,registeredFieldIdRef:h}=e,{controlId:g,getDescriptionProps:_}=z(),v=O(),y=W.useRef(null),b=t(()=>new Map).current,x=W.useRef(0),S=W.useRef(null),C=W.useCallback((e,t)=>(b.set(e,t),()=>{b.delete(e)}),[b]),w=j(()=>{let e=me(b,n.current);return e&&b.get(e)?.controlRef.current||null}),T=j(async(e,t=!1)=>{x.current+=1;let i=x.current;function c(e,t=u){let n=h.current??g;if(n==null)return;let i=r.current.fields.get(n);if(!i)return;let a=de(e,t);r.current.fields.set(n,{...i,validityData:a})}function l(t,n){let r=t.valid===!1?n:[];return{value:e,state:t,error:r[0]??``,errors:r,initialValue:s.initialValue}}function _(e,t){let n=e.validity.customError?e.validationMessage:``,r=t.replace(/\r\n?/g,`
|
|
2
|
+
`);e.setCustomValidity(r),S.current=[e,r,n]}function C(){let e=S.current;S.current=null,e&&(!e[0].willValidate||e[0].validationMessage===e[1])&&e[0].setCustomValidity(e[2])}function w(e,t,n){let r=l(e,t);c(r,n),a(r)}function T(e){let t=fe.reduce((t,n)=>(t[n]=e.validity[n],t),{}),n=!1;for(let e of fe)if(e!==`valid`){if(e===`valueMissing`&&t[e])n=!0;else if(t[e])return t}return n&&!d.current&&(t.valid=!0,t.valueMissing=!1),t}function E(){return b.size>0?me(b,n.current):y.current}let D=E();function O(){return D=E(),D?.willValidate?T(D):he(!1)}if(t){if(f.valid!==!1||!D)return;if(!D.validity.valueMissing){C();let e=E(),t=e?.validity.customError?ge(e):[];w(he(t.length>0),t,!1);return}for(let e of fe)if(e!==`valid`&&e!==`valueMissing`&&e!==`customError`&&D.validity[e])return}v.clear(),C();let k=O(),A=ge(D),j=p();if(A.length===0||j){let t=Array.from(r.current.fields.values()).reduce((e,t)=>(t.name&&(e[t.name]=t.getValue()),e),{}),n=o(e,t),a;if(typeof n==`object`&&n&&`then`in n){if(k.valid===!1?w(k,A):m!==`onSubmit`&&s.state.customError||(k.valid=null,w(k,A)),a=await n,i!==x.current)return;k=O()}else a=n;A=a?[].concat(a).filter(Boolean):[],A.length>0?(k.valid=!1,k.customError=!0,D?.willValidate&&_(D,A.join(`
|
|
3
|
+
`))):A=ge(D)}w(k,A)}),E=j((e,t=!1)=>{if(v.clear(),x.current+=1,t)return;let n=p();n&&e!==``&&c?v.start(c,()=>{T(e)}):T(e,!n)}),D=W.useCallback((e,t={})=>i(_(t),f.valid===!1&&!f.disabled&&!e?{"aria-invalid":!0}:l),[_,f.disabled,f.valid]);return W.useMemo(()=>({getValidationProps:D,inputRef:y,registeredInputs:b,registerInput:C,getInputControl:w,commit:T,change:E}),[D,b,C,w,T,E])}function ve(e){let{change:t,commit:n,invalid:r,markedDirtyRef:i,name:a,setRegisteredFieldName:o,registeredFieldIdRef:s,setValidityData:c,validityData:l}=e,{formRef:u}=V(),d=W.useRef(null),p=W.useRef(null),m=W.useRef(!1),h=j(()=>{let e=p.current;if(e)return e.getValue?e.getValue():e.value});function g(e){return e.value===void 0?h():e.value}let _=j(()=>{let e=p.current;i.current=!0,n(e?g(e):l.value)});function v(){let e=p.current;e&&e.id&&u.current.fields.set(e.id,{getValue:h,name:a??e.name,controlRef:e.controlRef,validityData:de(l,r),validate:_})}function y(e=p.current?.id){e&&u.current.fields.delete(e)}function b(e){if(m.current)return;m.current=!0;let t=g(e);c(e=>e.initialValue===t?e:{...e,initialValue:t})}return f(()=>{let e=p.current;e&&e.id&&(o(a?void 0:e.name),u.current.fields.set(e.id,{getValue:h,name:a??e.name,controlRef:e.controlRef,validityData:de(l,r),validate:_}))},[u,h,r,a,o,_,l]),f(()=>{let e=u.current.fields;return()=>{let t=p.current?.id;t&&e.delete(t)}},[u]),[_,j((e,n)=>{if(!n){d.current===e&&(d.current=null,t(void 0,!0),y(),p.current=null,o(void 0),s.current=void 0);return}let r=p.current?.id,i=d.current;i&&i!==e&&t(void 0,!0),d.current=e,p.current=n,a||o(n.name),s.current=n.id,r&&r!==n.id&&y(r),b(n),v()})]}var ye=W.forwardRef(function(e,t){let{errors:n,validationMode:r,submitCountRef:i}=V(),{render:a,className:s,validate:c,validationDebounceTime:l=0,validationMode:u=r,name:p,disabled:m=!1,invalid:g,dirty:_,touched:v,actionsRef:y,style:b,...x}=e,S=$(!0)?.disabled,C=j(c||(()=>null)),w=S||m,[T,E]=W.useState(!1),[D,O]=W.useState(!1),[k,A]=W.useState(!1),[M,N]=W.useState(!1),ee=W.useRef(void 0),P=_??D,te=v??T,I=W.useRef(P),L=W.useRef(void 0),[ne,re]=W.useState(),R=p??ne;f(()=>{_!==void 0&&(I.current=_)},[_]);let z=j(e=>{_===void 0&&(e&&(I.current=!0),O(e))}),B=j(e=>{v===void 0&&E(e)}),H=j(()=>u===`onChange`||u===`onSubmit`&&i.current>0),U=R&&Object.hasOwn(n,R)?n[R]:null,ie=!!(Array.isArray(U)?U.length:U),K=g===!0||ie,[q,J]=W.useState({state:d,error:``,errors:[],value:null,initialValue:null}),Y=!K&&(w?null:q.state.valid),X=W.useMemo(()=>({disabled:w,touched:te,dirty:P,valid:Y,filled:k,focused:M}),[w,te,P,Y,k,M]),Z=_e({setValidityData:J,validate:C,validityData:q,validationDebounceTime:l,invalid:K,markedDirtyRef:I,state:X,shouldValidateOnChange:H,validationMode:u,registeredFieldIdRef:L}),[Q,ae]=ve({change:Z.change,commit:Z.commit,invalid:K,markedDirtyRef:I,name:p,setRegisteredFieldName:re,registeredFieldIdRef:L,setValidityData:J,validityData:q});W.useImperativeHandle(y,()=>({validate:Q}),[Q]);let oe=W.useMemo(()=>({invalid:K,name:R,validityData:q,setValidityData:J,disabled:w,setTouched:B,setDirty:z,setFilled:A,setFocused:N,focusOwnerRef:ee,validationMode:u,shouldValidateOnChange:H,state:X,registerFieldControl:ae,validation:Z}),[K,R,q,w,B,z,A,N,u,H,X,ae,Z]),se=o(`div`,e,{ref:t,state:X,props:x,stateAttributesMapping:F});return(0,G.jsx)(h.Provider,{value:oe,children:se})}),be=W.forwardRef(function(e,t){return(0,G.jsx)(ue,{children:(0,G.jsx)(ye,{...e,ref:t})})}),xe=W.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,nativeLabel:s=!0,...c}=e,l=b(!1),u=ce(),{labelId:d}=z(),f={...l.state,disabled:l.disabled||u.disabled},p=W.useRef(null),m=Q({id:d??a,native:s});return o(`label`,e,{ref:[t,p],state:f,props:[m,c],stateAttributesMapping:F})}),Se={...F,...w},Ce=W.forwardRef(function(e,t){let{render:n,id:r,className:i,match:a,style:s,...c}=e,l=H(r),{validityData:u,state:d,name:p}=b(!1),{setMessageIds:m}=z(),{errors:h}=V(),g=p&&Object.hasOwn(h,p)?h[p]:null,_=!!(Array.isArray(g)?g.length:g),v=typeof a==`string`,y=!1;y=a===!0?!0:d.disabled?!1:v?!!u.state[a]:_||u.state.valid===!1;let{mounted:x,transitionStatus:S,setMounted:C}=ee(y);f(()=>{if(y&&l)return m(e=>e.concat(l)),()=>{m(e=>e.filter(e=>e!==l))}},[y,l,m]);let w=W.useRef(null),[T,E]=W.useState(null),[D,O]=W.useState(null),k=u.error;!v&&_?k=g:u.errors.length>1&&(k=u.errors);let A=k;Array.isArray(k)&&(A=k.length>1?(0,G.jsx)(`ul`,{children:k.map(e=>(0,G.jsx)(`li`,{children:e},e))}):k[0]);let j=Array.isArray(k)?JSON.stringify(k):k;y&&j!==D&&(O(j),E(A)),L({open:y,ref:w,onComplete(){y||C(!1)}});let M={...d,transitionStatus:S},N=o(`div`,e,{ref:[t,w],state:M,props:[{id:l,children:y?A:T},c],stateAttributesMapping:Se,enabled:x});return x?N:null}),we=W.forwardRef(function(e,t){let{render:n,id:r,className:i,style:a,...s}=e,c=H(r),l=b(!1),u=ce(),{setMessageIds:d}=z(),p={...l.state,disabled:l.disabled||u.disabled};return f(()=>{if(c)return d(e=>e.concat(c)),()=>{d(e=>e.filter(e=>e!==c))}},[c,d]),o(`p`,e,{ref:t,state:p,props:[{id:c},s],stateAttributesMapping:F})}),Te=W.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,...s}=e,{state:c,disabled:l}=b(!1),u=l||a,d={...c,disabled:u},f=W.useMemo(()=>({disabled:u}),[u]),p=o(`div`,e,{ref:t,state:d,props:s,stateAttributesMapping:F});return(0,G.jsx)(ue,{children:(0,G.jsx)(se.Provider,{value:f,children:p})})}),Ee=g(r(`flex w-full zoom-safe-text text-ellipsis text-foreground`,s,`placeholder:text-muted-foreground placeholder:transition-opacity placeholder:duration-normal`,`focus:placeholder:opacity-70 motion-reduce:placeholder:transition-none`,`[&::-webkit-outer-spin-button]:m-0 [&::-webkit-outer-spin-button]:appearance-none`,`[&::-webkit-inner-spin-button]:m-0 [&::-webkit-inner-spin-button]:appearance-none`,`[&[type=number]]:[appearance:textfield]`,`[&::-webkit-search-cancel-button]:appearance-none`,`[&::-webkit-calendar-picker-indicator]:hidden`,`[&[type=time]]:bg-(image:--time-field-icon) [&[type=time]]:bg-size-[0.875rem] [&[type=time]]:bg-no-repeat`,`[&[type=time]]:bg-position-[right_0.5rem_center] [&[type=time]]:pr-6`),{variants:{variant:{default:r(N,`rounded-full`,P),unstyled:R},size:{sm:r(B.sm,`px-[.75em]`),md:r(B.md,`px-[.75em]`),lg:r(B.lg,`px-[.85em]`)}},defaultVariants:{variant:`default`,size:`md`}});function De({className:e,size:t,testId:n,variant:i,error:a,autoComplete:o,...s}){return(0,G.jsx)(ie,{className:r(Ee({variant:te(i),size:t}),k,e),"data-testid":n,...re(a),...s,...U(o),...y(s)})}var Oe=W.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,...s}=e,[c,l]=W.useState(void 0),u=$(!0)?.disabled||a,d=o(`fieldset`,e,{ref:t,state:{disabled:u},props:[{"aria-labelledby":c,disabled:u},s]}),f=W.useMemo(()=>({legendId:c,setLegendId:l,disabled:u}),[c,l,u]);return(0,G.jsx)(le.Provider,{value:f,children:d})}),ke={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 Ae({className:e,orientation:t=`vertical`,invalid:n=!1,...i}){let a=W.useId(),[o,s]=W.useState(!1),c=W.useMemo(()=>({labelId:`${a}-label`,descriptionId:`${a}-description`,errorId:`${a}-error`,controlId:`${a}-control`,invalid:n,hasDescription:o,setHasDescription:s}),[a,n,o]);return(0,G.jsx)(v.Provider,{value:c,children:(0,G.jsx)(be,{invalid:n,"data-slot":`field`,"data-orientation":t,className:r(`min-w-0 text-foreground`,ke[t],e),...i})})}function je({className:e,...t}){let n=x()===null?be:Te;return(0,G.jsx)(v.Provider,{value:null,children:(0,G.jsx)(n,{"data-slot":`field-item`,className:r(`flex min-w-0 items-center gap-2`,e),...t})})}function Me(){return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{"aria-hidden":!0,className:`ml-0.5 text-destructive-foreground in-data-disabled:text-muted-foreground`,children:`*`}),` `,(0,G.jsx)(`span`,{className:`sr-only`,children:`(required)`})]})}function Ne(e){let t=W.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=Ne(e);return r?{"aria-label":`About ${r}`}:t?{"aria-labelledby":`${n} ${t}`}:{"aria-label":`About this field`}}function Fe({children:e,label:t,labelId:n}){let r=W.useId(),i=Pe({label:t,labelId:n,aboutId:r}),a=`aria-labelledby`in i;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(X,{...i,children:e}),a?(0,G.jsx)(`span`,{id:r,hidden:!0,children:`About`}):null]})}function Ie({className:e,required:t=!1,size:n=`default`,info:i,children:a,onClick:o,...s}){let c=x(),l=(0,G.jsxs)(xe,{id:c?.labelId,"data-slot":`field-label`,className:r(`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=>{o?.(e),c&&!e.defaultPrevented&&e.currentTarget.ownerDocument.getElementById(c.controlId)?.focus()},...s,children:[a,t?(0,G.jsx)(Me,{}):null]});return i?(0,G.jsxs)(`span`,{"data-slot":`field-label-row`,className:`flex w-fit items-center gap-1`,children:[l,(0,G.jsx)(Fe,{label:a,labelId:c?.labelId,children:i})]}):l}function Le({className:e,...t}){let n=x(),i=n?.setHasDescription;return W.useEffect(()=>{if(i)return i(!0),()=>i(!1)},[i]),(0,G.jsx)(we,{id:n?.descriptionId,"data-slot":`field-description`,className:r(`-mt-1 text-caption text-muted-foreground`,e),...t})}var Re=`-mt-1 flex gap-1 text-body-sm text-destructive-foreground`;function ze(){return(0,G.jsx)(m,{size:`xs`,className:`mt-1 shrink-0`,"aria-hidden":!0,children:(0,G.jsx)(E,{})})}function Be({className:e,children:t,...n}){let i=x();return t?(0,G.jsxs)(Ce,{id:i?.errorId,match:!0,role:`alert`,"data-slot":`field-error`,className:r(Re,e),...n,children:[(0,G.jsx)(ze,{}),(0,G.jsx)(`span`,{className:`min-w-0`,children:t})]},`external`):(0,G.jsx)(Ce,{id:i?.errorId,role:`alert`,"data-slot":`field-error`,className:r(Re,e),...n,render:({children:e,...t})=>(0,G.jsxs)(`div`,{...t,children:[(0,G.jsx)(ze,{}),(0,G.jsx)(`span`,{className:`min-w-0`,children:e})]})},`native`)}function Ve({className:e,...t}){return(0,G.jsx)(Oe,{"data-slot":`fieldset`,className:r(`m-0 grid min-w-0 gap-3 border-0 p-0`,e),...t})}export{Ie as a,pe as c,X as d,je as i,$ as l,Le as n,Ve as o,Be as r,De as s,Ae as t,ce as u};
|