gitifact 0.8.4 → 0.8.5

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.
Files changed (77) hide show
  1. package/README.md +1 -0
  2. package/dist/browser/assets/{HgiRefresh-CAJ0Xdvi.js → HgiRefresh-BSPkIVFZ.js} +1 -1
  3. package/dist/browser/assets/{Markdown-ev4hMr67.js → Markdown-B1P3lpA0.js} +1 -1
  4. package/dist/browser/assets/Selector-BG3Gd_OR.js +2 -0
  5. package/dist/browser/assets/{Tab-BwJj0rUr.js → Tab-RKLZrCiK.js} +1 -1
  6. package/dist/browser/assets/{Table-XuC9zK9w.js → Table-DjTkmoR7.js} +2 -2
  7. package/dist/browser/assets/Token-CKcN25HT.css +1 -0
  8. package/dist/browser/assets/Token-D337a1e3.js +2 -0
  9. package/dist/browser/assets/{about-vlKWfG7J.js → about-D06ipt4C.js} +2 -2
  10. package/dist/browser/assets/activity-timeline-Bl6a55GR.js +2 -0
  11. package/dist/browser/assets/changelog-DCvEVceR.js +1 -0
  12. package/dist/browser/assets/commit-Cj7mcn9u.js +4 -0
  13. package/dist/browser/assets/{contributor-Bs3RWHQv.js → contributor-D1TZSDq9.js} +1 -1
  14. package/dist/browser/assets/contributors-lkpVuCXS.js +1 -0
  15. package/dist/browser/assets/{contributors._email-BR9sLgCs.js → contributors._email-B7ATmxN1.js} +1 -1
  16. package/dist/browser/assets/{contributors.index-FoYwG7VE.js → contributors.index-Cc0QRJwQ.js} +1 -1
  17. package/dist/browser/assets/dashboard.index-BNTyn3_V.js +1 -0
  18. package/dist/browser/assets/document-7jVYmB_Z.js +2 -0
  19. package/dist/browser/assets/{document-DPtVyR5y.js → document-kGFspd5u.js} +4 -4
  20. package/dist/browser/assets/features-CBeEOrok.js +2 -0
  21. package/dist/browser/assets/features-FKxsPKab.css +1 -0
  22. package/dist/browser/assets/{features._featureId-xxpihTEs.js → features._featureId-DGUBnzjL.js} +1 -1
  23. package/dist/browser/assets/{features.index-CO7APsrh.js → features.index-Dgw4kiMG.js} +1 -1
  24. package/dist/browser/assets/getting-started-B_LeBSZE.js +1 -0
  25. package/dist/browser/assets/git-DW-pzDOm.js +1 -0
  26. package/dist/browser/assets/index-CswY1wJ4.css +1 -0
  27. package/dist/browser/assets/index-IML0_BCy.js +49 -0
  28. package/dist/browser/assets/instructions-Qhbd8_KG.js +1 -0
  29. package/dist/browser/assets/{instructions._instructionId-Bp9u9xx9.js → instructions._instructionId-CnX6OyFZ.js} +1 -1
  30. package/dist/browser/assets/instructions.agents-0tKcPahQ.js +1 -0
  31. package/dist/browser/assets/instructions.index-B3v6vtEg.js +1 -0
  32. package/dist/browser/assets/{lazyRouteComponent-D4lq6X5s.js → lazyRouteComponent-tJOK5sxC.js} +1 -1
  33. package/dist/browser/assets/load-more-DVsjzCxE.js +1 -0
  34. package/dist/browser/assets/page-header-AS8jZ1ve.js +248 -0
  35. package/dist/browser/assets/records._recordId-C2qxnLKN.js +1 -0
  36. package/dist/browser/assets/records.commits._commit-CSa3sQ8C.js +1 -0
  37. package/dist/browser/assets/records.docs._docId-SIPsGTwH.js +1 -0
  38. package/dist/browser/assets/records.index-DoE_3GrP.js +1 -0
  39. package/dist/browser/assets/records.working-Cp5ualrr.js +1 -0
  40. package/dist/browser/assets/search-CbtiuqNx.js +1 -0
  41. package/dist/browser/assets/{settings-BNIy3TaP.js → settings-tVQIx1Uf.js} +1 -1
  42. package/dist/browser/assets/{useInfiniteQuery-03AIcFvA.js → useInfiniteQuery-C0rB-9Ci.js} +1 -1
  43. package/dist/browser/assets/{useKeyboardHint-DN1hAi8g.js → useKeyboardHint-D5jGavym.js} +1 -1
  44. package/dist/browser/index.html +24 -24
  45. package/dist/i18n/en/changelog.md +15 -0
  46. package/dist/i18n/en/docs/design.md +2 -0
  47. package/dist/i18n/en/docs/spec.md +30 -5
  48. package/dist/i18n/ko/changelog.md +15 -0
  49. package/dist/i18n/ko/docs/design.md +2 -0
  50. package/dist/i18n/ko/docs/spec.md +30 -5
  51. package/dist/main.js +272 -125
  52. package/package.json +3 -3
  53. package/dist/browser/assets/Selector-CGOdL2eo.js +0 -2
  54. package/dist/browser/assets/Token-BV_4bSkY.js +0 -2
  55. package/dist/browser/assets/Token-Bqkc8eyB.css +0 -1
  56. package/dist/browser/assets/activity-timeline-Dmc-97N6.js +0 -2
  57. package/dist/browser/assets/changelog-6QcNKW8u.js +0 -1
  58. package/dist/browser/assets/commit-BcdbBdP4.js +0 -4
  59. package/dist/browser/assets/contributors-B_bVSY4J.js +0 -1
  60. package/dist/browser/assets/dashboard.index-BFp6Hqsf.js +0 -1
  61. package/dist/browser/assets/document-Q3lvgyX8.js +0 -2
  62. package/dist/browser/assets/features-CmvypKgf.js +0 -2
  63. package/dist/browser/assets/features-DUHxz0_L.css +0 -1
  64. package/dist/browser/assets/getting-started-11zYPwlJ.js +0 -1
  65. package/dist/browser/assets/git-CVY8qpaV.js +0 -1
  66. package/dist/browser/assets/index-BeeP8ZFW.js +0 -49
  67. package/dist/browser/assets/index-D1JeDnJc.css +0 -1
  68. package/dist/browser/assets/instructions-D3-EfbZG.js +0 -1
  69. package/dist/browser/assets/instructions.agents-DvFHo8x8.js +0 -1
  70. package/dist/browser/assets/instructions.index-zHzGHq7D.js +0 -1
  71. package/dist/browser/assets/load-more-CymfxLt7.js +0 -1
  72. package/dist/browser/assets/page-header-CVCjLFQo.js +0 -246
  73. package/dist/browser/assets/records._recordId-Be8aM0F-.js +0 -1
  74. package/dist/browser/assets/records.commits._commit-Dm3gX-bQ.js +0 -1
  75. package/dist/browser/assets/records.index-BgfJnGAl.js +0 -1
  76. package/dist/browser/assets/records.working-Eeag2L5N.js +0 -1
  77. package/dist/browser/assets/search-CSSuO-jR.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitifact",
3
- "version": "0.8.4",
3
+ "version": "0.8.5",
4
4
  "description": "Git-backed requirements and change history for coding agents.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -36,8 +36,8 @@
36
36
  "devDependencies": {
37
37
  "commander": "15.0.0",
38
38
  "esbuild": "0.28.2",
39
- "@gitifact/core": "0.0.0",
40
- "@gitifact/contracts": "0.0.0"
39
+ "@gitifact/contracts": "0.0.0",
40
+ "@gitifact/core": "0.0.0"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "node scripts/build.mjs",
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/BottomSheet-BFoM6syr.js","assets/rolldown-runtime-hePW80VL.js","assets/themeProps-CkLe5zXY.js","assets/useMediaQuery-twbHF0pO.js","assets/useDevWarning-Dudfg3qF.js","assets/useScrollLock-D-Y-zHSV.js"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{K as t,V as n,c as r,l as i,n as a,q as o,s}from"./themeProps-CkLe5zXY.js";import{a as c,c as l,l as u,n as d,o as f,r as p,s as m,u as h}from"./useIsomorphicLayoutEffect-BiEJxDg_.js";import{c as g,rn as _,s as v}from"./page-header-CVCjLFQo.js";import{S as y,_ as ee,b,g as x,v as S,w as C,x as w,y as T}from"./document-Q3lvgyX8.js";import{l as te,m as E,s as D,v as ne,x as O}from"./Table-XuC9zK9w.js";import{a as k}from"./useMediaQuery-twbHF0pO.js";import{C as re,G as ie,S as ae,V as oe,W as A,_ as se,b as ce,n as le,t as ue}from"./Icon-DPaLmsmh.js";import{t as j}from"./preload-helper-BZ1Pz5am.js";import{n as de,s as fe}from"./IconButton-Br-4XhQr.js";import{a as pe,i as me,r as he}from"./Markdown-ev4hMr67.js";import{t as ge}from"./useDevWarning-Dudfg3qF.js";import{t as M}from"./Section-Z2PuhE6c.js";var N=e(o(),1),P=i(),F=`button:not([disabled]), a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), [contenteditable]:not([contenteditable="false"]), audio[controls], video[controls], iframe, details > summary:first-child`,_e=0;function ve(e){if(e.hasAttribute(`inert`)||e.closest(`[inert]`)||e.hidden||e.closest(`[hidden]`)||e.closest(`[aria-hidden="true"]`))return!1;if(typeof window<`u`&&window.getComputedStyle){let t=window.getComputedStyle(e);if(t.visibility===`hidden`||t.display===`none`)return!1}return!0}function I(e){return Array.from(e.querySelectorAll(F)).filter(ve)}function ye(e){try{e.focus()}catch{}return document.activeElement===e}function be(e){let t=I(e);for(let e of t)if(ye(e))return!0;return!1}function xe(e){let t=I(e);for(let e=t.length-1;e>=0;e--)if(ye(t[e]))return!0;return!1}function Se(e){let{isActive:t,onEscape:n}=e,r=(0,N.useRef)(null),i=(0,N.useRef)(null),a=(0,N.useRef)(!1),o=t&&n!=null;m({isActive:o,onDismiss:()=>{n?.()},getContainer:()=>r.current}),(0,N.useEffect)(()=>{if(o)return _e+=1,()=>{--_e}},[o]);let s=(0,N.useCallback)(()=>{r.current&&be(r.current)},[]);return(0,N.useEffect)(()=>{if(!t)return;let e=document.activeElement,n=r.current,i=n!=null&&n.contains(document.activeElement),a=e=>{let t=e.target;t!=null&&r.current?.contains(t)&&(i=!0)};return document.addEventListener(`focusin`,a,!0),()=>{if(document.removeEventListener(`focusin`,a,!0),!i)return;let t=document.activeElement;(t==null||t===document.body||t===document.documentElement||n!=null&&n.contains(t))&&e!=null&&e.isConnected&&typeof e.focus==`function`&&e.focus()}},[t]),(0,N.useEffect)(()=>{if(!t)return;let e=e=>{let t=r.current;if(!t)return;let n=e.target;if(t.contains(n))i.current=n;else if(a.current){let e=be(t);e&&i.current===document.activeElement?xe(t):!e&&i.current instanceof HTMLElement&&t.contains(i.current)&&ye(i.current),i.current=document.activeElement}a.current=!1};return document.addEventListener(`focus`,e,!0),()=>{document.removeEventListener(`focus`,e,!0)}},[t]),(0,N.useEffect)(()=>{if(!t)return;let e=e=>{let t=r.current;if(t&&e.key===`Tab`){a.current=!0;let n=I(t);if(n.length===0){let n=document.activeElement;if(!(n instanceof HTMLElement)||!t.contains(n))return;e.preventDefault(),i.current=n,a.current=!1;return}let r=n[0],o=n[n.length-1];if(document.activeElement===t){e.preventDefault(),e.shiftKey?o.focus():r.focus();return}e.shiftKey?document.activeElement===r&&(e.preventDefault(),o.focus()):document.activeElement===o&&(e.preventDefault(),r.focus())}};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[t,n]),{containerRef:r,focusFirst:s}}var L=`[data-astryx-popover-fallback-close]`;function Ce(e){try{e.focus()}catch{}return document.activeElement===e}function we(e){let t=Array.from(e.querySelectorAll(F)).filter(e=>e.closest(L)==null);for(let e of t)if(Ce(e))return!0;return!1}var Te={surface:{kWkggS:`x1prclbq`,"--_popover-radius":`xiki222`,kaIpWk:`x11m9jtl`,kGVxlE:`x1i5ehqx`,$$css:!0},contentWrapper:{kVAEAm:`x1n2onr6`,$$css:!0},closeButtonWrapper:{kVAEAm:`x10l6tqk`,krVfgx:`x1ey2m1c`,kY2c9j:`x1vjfegm`,kzqmXN:`x1i1rx1s x10okhzq`,kZKoxP:`xjm9jq1 x132qfvm`,kVQacm:`xb3r6kr x1dordxg`,kz4h6p:`x1hyvwdk x10wafsz`,kfzvcC:`x47corl xbt4iw`,kLKAdn:`xexx8yu x1kw28su`,$$css:!0}};function Ee(e={}){let{onShow:n,onHide:r,xstyle:i,className:o,style:c,hasLightDismiss:u=!0,hasEscapeDismiss:d=!0,hasAutoFocus:f=!0,hasSurface:p=!0,surfaceTarget:m,hasCloseButton:g=!0,closeButtonLabel:_,dialogLabel:v,role:y=`dialog`,isModal:ee=!0}=e,b=se(),x=_??b(`@astryx.popover.close`),S=(0,N.useRef)(null),C=(0,N.useRef)(!1),w=h({mode:`context`,lightDismiss:u,onShow:n,onHide:r}),{containerRef:T,focusFirst:te}=Se({isActive:w.isOpen,onEscape:d||u?w.hide:void 0}),E=(0,N.useCallback)(()=>{let e=T.current;if(e&&!we(e)){if(y===`dialog`){Ce(e);return}te()}},[T,te,y]);(0,N.useEffect)(()=>{w.isOpen&&f&&!C.current&&requestAnimationFrame(E),w.isOpen||(C.current=!1)},[w.isOpen,f,E]);let D=(0,N.useCallback)(e=>{S.current=e,w.ref(e)},[w]),ne=(0,N.useCallback)(e=>{C.current=e?.skipAutoFocus??!1,w.show()},[w]),re=(0,N.useCallback)(()=>{w.isOpen?w.hide():ne()},[w,ne]),ie={"aria-haspopup":y===`dialog`?`dialog`:`true`,"aria-expanded":w.isOpen,"aria-controls":w.id};ge(`usePopover`,'role="dialog" without a `dialogLabel` renders an unnamed dialog. Pass `dialogLabel`, or use `role: "none"` for listbox/menu popups whose content already carries its own role.',y===`dialog`&&!v);let ae=(0,N.useCallback)((e,n)=>{let r=a(`popover-surface`),u=m==null?r.className:`${r.className} ${s(m)}`;return w.render((0,P.jsx)(l,{children:(0,P.jsxs)(`div`,{ref:T,role:y===`dialog`?`dialog`:void 0,"aria-modal":y===`dialog`&&ee?!0:void 0,"aria-label":y===`dialog`?v:void 0,tabIndex:y===`dialog`?-1:void 0,...k({...r,className:u},A.focusVisible(Te.contentWrapper,p&&Te.surface,i),o,c),children:[e,g&&(0,P.jsx)(`div`,{"data-astryx-popover-fallback-close":``,...t(Te.closeButtonWrapper,O.centerInline(`100%`)),children:(0,P.jsx)(de,{variant:`secondary`,label:x,onClick:w.hide})})]})}),{...n,xstyle:n?.xstyle})},[w,g,p,m,o,c,x,T,v,y,ee,i]);return{triggerRef:D,contentRef:T,anchorId:w.anchorId,show:ne,hide:w.hide,toggle:re,isOpen:w.isOpen,id:w.id,render:ae,triggerProps:ie}}function De(e={}){return Ee(e)}var Oe={wrapper:{k8WAf4:`xu0wf1k`,kg3NbH:`x7a5moj`,$$css:!0},icon:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kmuXW:`x2lah0s`,$$css:!0}};function ke({ref:e,label:n,clearLabel:r,placeholder:i,value:a,onValueChange:o,onKeyDown:s,onFocus:l,onBlur:u,onContainerKeyDown:d,xstyle:p,className:m,style:h,...g}){let[_,v]=(0,N.useState)(!1);f();let y=(0,N.useCallback)(e=>{v(c()===`keyboard`),l?.(e)},[l]),ee=(0,N.useCallback)(e=>{v(!1),u?.(e)},[u]),b=(0,N.useCallback)(()=>{o(``),typeof e==`object`&&e?.current&&e.current.focus()},[o,e]);return(0,P.jsx)(`div`,{onKeyDown:d,...k(t(Oe.wrapper,p),m,h),children:(0,P.jsxs)(`div`,{"data-keyboard-focus":_?`true`:void 0,...{0:{className:`x9f619 x78zum5 x6s0dn4 x1txdalj xh8yej3 x1vofgu7 xf314gf xh6dtrn xkdsq27 xuedmi6 x12w9bfk xlr8y92`},1:{className:`x9f619 x78zum5 x6s0dn4 x1txdalj xh8yej3 x1vofgu7 xf314gf xh6dtrn xkdsq27 xuedmi6 x12w9bfk xlr8y92 x1gnnqk1 x1btxeh5`}}[!!_<<0],children:[(0,P.jsx)(ue,{icon:`search`,size:`sm`,color:`secondary`,xstyle:Oe.icon}),(0,P.jsx)(`input`,{ref:e,type:`text`,"aria-label":n,placeholder:i,value:a,onChange:e=>o(e.target.value),onKeyDown:s,onFocus:y,onBlur:ee,className:`x1iyjqo2 xs83m0k xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w x1tgivj0 x9ynric xcr08ib xdk3u5w x1kq96og x1a2a7pz xeyghm5`,...g}),a!==``&&(0,P.jsx)(S,{label:r,onClick:b})]})})}ke.displayName=`PanelSearchInput`;function Ae(e){return typeof e==`string`||!(`type`in e)}function je(e){return typeof e==`object`&&`type`in e&&e.type===`divider`}function Me(e){return typeof e==`object`&&`type`in e&&e.type===`section`}function Ne(e){return typeof e==`string`?{value:e,label:e}:{...e,label:e.label??e.value}}function Pe(e){let t=[];for(let n of e)if(Ae(n))t.push(Ne(n));else if(Me(n))for(let e of n.options)t.push(Ne(e));return t}var Fe=(0,N.createContext)(`stacked`);Fe.displayName=`SelectorRowLayoutContext`;function Ie(){return(0,N.use)(Fe)}var Le={root:{k8WAf4:`xt970qd`,kg3NbH:`xnjsko4`,kaIpWk:`x2u8bby`,$$css:!0}};function Re({icon:e,label:t,description:n,layout:r,endContent:i,xstyle:o,className:s,style:c}){let l=Ie();return(0,P.jsx)(E,{startContent:e?le(e,{size:`sm`,color:`secondary`}):void 0,label:t,description:n,layout:l===`inline`?`inline`:r,endContent:i,xstyle:[Le.root,o],...k(a(`selector-option`),{className:s,style:c})})}Re.displayName=`SelectorOption`;var ze=(0,N.lazy)(async()=>j(()=>import(`./BottomSheet-BFoM6syr.js`).then(e=>({default:e.BottomSheet})),__vite__mapDeps([0,1,2,3,4,5]))),Be={heading:{k1K539:`x1p37lm5`,kUOVxO:`xam6yil`,$$css:!0}};function Ve({isOpen:e,targetRef:t}){return(0,N.useEffect)(()=>{if(!e)return;let n=requestAnimationFrame(()=>{t.current?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(n)},[e,t]),null}function He({children:e,finalFocusRef:t,initialFocusRef:n,isOpen:r,label:i,onOpenChange:a}){return(0,P.jsx)(N.Suspense,{fallback:null,children:(0,P.jsx)(ze,{isOpen:r,onOpenChange:a,finalFocusRef:t,label:i,height:`hug`,purpose:`info`,children:(0,P.jsx)(M,{paddingBlockStart:4,paddingBlockEnd:0,paddingInline:1,children:(0,P.jsxs)(`div`,{className:`xh8yej3`,children:[(0,P.jsx)(_,{level:3,xstyle:Be.heading,children:i}),e,(0,P.jsx)(Ve,{isOpen:r,targetRef:n})]})})})})}He.displayName=`SelectorBottomSheet`;function Ue(){let[e,t]=(0,N.useState)(!1);f();let n=(0,N.useCallback)(()=>{t(c()===`pointer`)},[]),r=(0,N.useCallback)(()=>{t(!1)},[]);return{isFocusRingSuppressed:e,onFocusReturnTargetFocus:(0,N.useCallback)(()=>{c()===`keyboard`&&t(!1)},[]),prepareFocusReturn:n,resetFocusReturn:r}}function We({presentation:e,onHide:t,onShow:n,popoverOptions:r,triggerRef:i}){let a=D(e),o=(0,N.useRef)(a),[s,c]=(0,N.useState)(!1),l=(0,N.useRef)(!1),[u,d]=(0,N.useState)(!1),f=(0,N.useRef)(t),p=(0,N.useRef)(n),m=(0,N.useRef)(!1),{isFocusRingSuppressed:h,onFocusReturnTargetFocus:g,prepareFocusReturn:_,resetFocusReturn:v}=Ue();f.current=t,p.current=n;let y=(0,N.useCallback)(()=>{_(),f.current(),i.current?.focus()},[_,i]),ee=(0,N.useCallback)(()=>{m.current=!0,v(),p.current()},[v]),b=De({...r,onHide:y,onShow:ee}),{hide:x,show:S}=b,C=(0,N.useCallback)(()=>(o.current=a,a===`bottom-sheet`?(v(),p.current(),l.current=!0,d(!0),c(!0),!0):(d(!1),m.current=!1,S(),m.current)),[v,a,S]),w=(0,N.useCallback)(()=>{l.current?(_(),l.current=!1,c(!1),f.current()):x()},[x,_]),T=(0,N.useCallback)(e=>{g(),!l.current&&o.current===`bottom-sheet`&&d(!1)},[g]),te=(0,N.useCallback)(e=>{e?C():w()},[w,C]),E=b.isOpen||s;return{activePresentation:E||u?o.current:a,hide:w,isOpen:E,isSheetOpen:s,isSheetPresented:u,isTriggerFocusRingSuppressed:h,onSheetOpenChange:te,onTriggerFocus:T,popover:b,show:C}}var Ge={pointerRestoredFocus:{kVAM5u:`xvy26l8`,kGVxlE:`x1gnnqk1`,kMeerF:`x1k57tk5`,k3XXqK:`x1t137rt`,$$css:!0}},R={triggerContainer:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`x1qughib`,kOIVth:`x1txdalj`,kzqmXN:`xh8yej3`,k8WAf4:`xce4md1`,kg3NbH:`xrrkdod`,kMv6JI:`x9ynric`,kGuDYH:`xcr08ib xdk3u5w`,kLWn49:`x7acx1w`,kMwMTN:`x1tgivj0`,kkrTdU:`x1ypdohk x16khyan`,$$css:!0},triggerPlaceholder:{kMwMTN:`xv1l7n4`,$$css:!0},triggerInGroup:{kAzted:`x2lwn1j`,k8WAf4:`xt970qd`,$$css:!0},triggerIcon:{kmuXW:`x2lah0s`,$$css:!0},triggerIconRotation:{k1ekBW:`x11xpdln`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,k3nNDw:`x1g0ag68`,$$css:!0},triggerIconOpen:{k3aq6I:`x19jd1h0`,$$css:!0},triggerGhost:{kzqmXN:`x14atkfc`,kMzoRj:`xc342km`,kWkggS:`xjbqb8w`,kGVxlE:`x1gnnqk1 x1s17dad x15ysqaf`,k63SB2:`x1e4wzip`,k1ekBW:`xrafxwg`,k3aq6I:`x3oybdh xk4oym4`,$$css:!0},triggerGhostDisabled:{kKwaWg:`x18o3ruo`,k3aq6I:`x1c071of x1pdlv7q`,$$css:!0},triggerReadOnly:{kkrTdU:`xt0e3qv`,$$css:!0},triggerGhostReadOnly:{kKwaWg:`x18o3ruo`,k3aq6I:`x1c071of x1pdlv7q`,$$css:!0},statusButton:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmVPX3:`x1717udv`,kogj98:`x1ghz6dp`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,kWkggS:`xjbqb8w`,kMwMTN:`x1heor9g`,kkrTdU:`x1ypdohk x16khyan`,kaIpWk:`xh6dtrn`,$$css:!0},searchRowInput:{kg3NbH:`x2hg6jq`,$$css:!0},popover:{k7Eaqz:`xrzjruh`,$$css:!0},divider:{kqGvvJ:`xsq74q5`,$$css:!0},item:{kB7OPa:`x9f619`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`x1qughib`,kOIVth:`x1txdalj`,kzqmXN:`xh8yej3`,kmVPX3:`xlsj2fj`,kaIpWk:`xh6dtrn`,kMv6JI:`x9ynric`,kGuDYH:`xcr08ib`,kMwMTN:`x1tgivj0`,kWkggS:`xjbqb8w`,kkrTdU:`x1ypdohk x16khyan`,k9WMMc:`x1yc453h`,kI3sdo:`x1a2a7pz`,$$css:!0},itemHighlighted:{kWkggS:`x1lmrjuc`,$$css:!0},itemSelected:{k63SB2:`x1e4wzip`,$$css:!0},itemDisabled:{kSiTet:`xbyyjgo`,kkrTdU:`xt0e3qv`,$$css:!0}},Ke={sm:{kAzted:`x1gdqauq`,k8WAf4:`x1ecmfrv`,$$css:!0},md:{kAzted:`x1uogy3y`,k8WAf4:`x1ioay2v`,$$css:!0},lg:{kAzted:`x1xf4nls`,k8WAf4:`x1vn5h1t`,$$css:!0}},qe={sm:{k8WAf4:`xu0wf1k`,kg3NbH:`xf314gf`,$$css:!0},md:{k8WAf4:`x1vofgu7`,$$css:!0},lg:{$$css:!0}},Je={warning:`warning`,error:`error`,success:`success`},Ye={warning:`warning`,error:`error`,success:`success`},Xe={warning:`@astryx.input.statusButton.warning`,error:`@astryx.input.statusButton.error`,success:`@astryx.input.statusButton.success`};function Ze({option:e}){return(0,P.jsx)(Re,{icon:e.icon,label:e.label??e.value,description:e.description})}function Qe(e,t){return!t||(e.label??e.value).toLowerCase().includes(t.toLowerCase())}function $e(e,t){return t?e.filter(e=>Qe(e,t)):e}function et(e){let i=se(),{label:o,isLabelHidden:c=!1,description:l,isOptional:f=!1,isRequired:m=!1,isDisabled:h=!1,isReadOnly:_=!1,disabledMessage:S,options:E,value:D,onChange:O,changeAction:A,isLoading:j=!1,placeholder:de,size:ge,variant:M=`input`,status:F,statusVariant:_e=`attached`,labelTooltip:ve,startIcon:I,htmlName:ye,renderOption:be,renderValue:xe,indicatorPosition:Se=`end`,hasSearch:L=!1,searchPlaceholder:Ce,emptyText:we,emptySearchText:Te,placement:Ee,presentation:De=`popover`,isDefaultOpen:Oe=!1,"data-testid":Ie,width:Le,xstyle:Re,className:ze,style:Be,onFocus:Ve,hasClear:Ue,id:et,...tt}=e,nt=me({isRequired:m,isOptional:f}),rt=de??i(`@astryx.selector.placeholder`),it=Ce??i(`@astryx.selector.searchPlaceholder`),at=we??i(`@astryx.selector.empty`),ot=Te??i(`@astryx.selector.emptySearchResults`),st=Ue===!0,z=ae(ge,`md`),B=M===`ghost`&&_e===`attached`?`detached`:_e,V=_&&!h,ct=D===null?void 0:D,lt=(0,N.useId)(),ut=et??lt,H=(0,N.useId)(),dt=(0,N.useId)(),ft=(0,N.useId)(),pt=(0,N.useId)(),mt=(0,N.useId)(),ht=(0,N.useId)(),gt=(0,N.useRef)(null),_t=(0,N.useRef)(null),vt=(0,N.useRef)(null),U=x(),[W,yt]=(0,N.useState)(``),bt=(0,N.useRef)(``),xt=W.length>0,[,St]=(0,N.useTransition)(),[Ct,wt]=(0,N.useOptimistic)(ct),Tt=j||Ct!==ct,G=oe(),Et=typeof at==`string`?at:i(`@astryx.selector.empty`),Dt=typeof ot==`string`?ot:i(`@astryx.selector.emptySearchResults`),K=h&&!!S,Ot=d({placement:`above`,focusTrigger:`always`,isEnabled:K}),kt=d({placement:`above`,isEnabled:B===`tooltip`&&!!F?.message}),{ariaLabelledBy:At,ariaDescribedBy:jt}=C(pt,[l?dt:null,!U&&B!==`tooltip`&&F?.message?ft:null,B===`tooltip`&&F?.message?kt.describedBy:null,K?Ot.describedBy:null,V?mt:null],U),q=(0,N.useMemo)(()=>Pe(E),[E]),Mt=(0,N.useMemo)(()=>$e(q,W),[q,W]),Nt=(0,N.useMemo)(()=>q.findIndex(e=>e.value===Ct),[q,Ct]),J=(0,N.useMemo)(()=>Nt>=0?q[Nt]:void 0,[q,Nt]),Pt=(0,N.useRef)(null),Ft=(0,N.useRef)(()=>{}),Y=We({presentation:De,onHide:(0,N.useCallback)(()=>{yt(``),bt.current=``,Ft.current(),G(``)},[G]),onShow:(0,N.useCallback)(()=>{L&&requestAnimationFrame(()=>{let e=vt.current;e&&(e.focus(),e.setSelectionRange(e.value.length,e.value.length))})},[L]),triggerRef:_t,popoverOptions:{hasLightDismiss:!0,hasCloseButton:!1,hasAutoFocus:!1,role:`none`,surfaceTarget:`selector-popup`}}),{popover:X}=Y,It=Y.hide,Lt=Y.isOpen,Rt=u(X.id,X.isOpen);(0,N.useEffect)(()=>{Oe&&!V&&Y.show()},[]),(0,N.useEffect)(()=>{V&&Lt&&It()},[V,Lt,It]);let zt=(0,N.useCallback)(e=>{if(e.length===0){G(``);return}if(j){G(``);return}let t=$e(q,e).length;G(t===0?Dt:i(`@astryx.selector.resultCount`,{count:t}))},[G,j,q,Dt,i]),Bt=(0,N.useCallback)(e=>{yt(e),bt.current=e,zt(e)},[zt]),Vt=(0,N.useRef)(null);(0,N.useEffect)(()=>{if(!Y.isOpen||j||W!==``||q.length!==0){Vt.current=null;return}Vt.current!==Et&&(Vt.current=Et,G(Et))},[Y.isOpen,j,W,q.length,Et,G]);let Ht=Ee==null&&!L,{offset:Ut,isPositioned:Wt}=g({isOpen:X.isOpen&&Ht,selectedItemIndex:Nt,listboxId:H,listboxRef:Pt,anchorRef:gt}),Gt=Ht?Ut:0,Kt=!Ht||Wt,qt=Ee??`below`,Jt=Gt>0?{marginBlockStart:`-${Gt}px`}:void 0,Yt=(0,N.useCallback)(()=>{Ft.current(),O?.(null),A&&St(async()=>{wt(void 0),await A(null)})},[O,A,St,wt]),Xt=(0,N.useCallback)(e=>{let t=bt.current+e;bt.current=t,yt(t),zt(t)},[zt]),Zt=(0,N.useCallback)(e=>{O?.(e),A&&St(async()=>{wt(e),await A(e)})},[O,A,St,wt]),{highlightedIndex:Z,setHighlightedIndex:Qt,getItemId:Q,onTriggerClick:$t,onKeyDown:$,onItemSelect:en,onItemMouseEnter:tn}=v({selectableItems:Mt,value:Ct,isDisabled:h||V,isOpen:Y.isOpen,hasSearch:L,onOpen:(0,N.useCallback)(()=>Y.show(),[Y]),onClose:Y.hide,onSelect:Zt,onClear:st?Yt:void 0,onSearchSeed:Xt,listboxId:H}),nn=ne({getItemLabels:()=>q.map(e=>e.label??e.value),isDisabled:e=>q[e]?.disabled===!0,getCurrentIndex:()=>Y.isOpen?Z:Nt,onMatch:e=>{let t=q[e];Y.isOpen?Qt(e):t.value!==Ct&&(Zt(t.value),G(t.label??t.value))}});Ft.current=nn.reset;let rn=(0,N.useCallback)(e=>{if(!(h||V)){if(!L&&nn.onKeyDown(e)){e.preventDefault();return}$(e)}},[h,V,L,nn,$]),an=(0,N.useCallback)(e=>{e.stopPropagation(),Yt()},[Yt]),on=(0,N.useCallback)(()=>L?(0,P.jsx)(ke,{ref:vt,id:ht,label:i(`@astryx.selector.searchOptions`),clearLabel:i(`@astryx.textInput.clearLabel`,{label:i(`@astryx.selector.searchOptions`)}),...a(`selector-search`),xstyle:Y.activePresentation===`popover`&&M!==`ghost`&&R.searchRowInput,role:`combobox`,"aria-expanded":Y.isOpen,"aria-controls":H,"aria-autocomplete":`list`,"aria-activedescendant":Y.isOpen&&Z>=0?Q(Z):void 0,value:W,onValueChange:Bt,onContainerKeyDown:e=>{e.target!==vt.current&&e.key===`Tab`&&!e.shiftKey&&$(e)},onKeyDown:e=>{if(!r(e.nativeEvent)){if(e.key===`ArrowDown`||e.key===`ArrowUp`||e.key===`PageUp`||e.key===`PageDown`||e.key===`Enter`||e.key===`Escape`){$(e);return}e.key===`Tab`&&(e.shiftKey||!xt)&&$(e)}},placeholder:it}):null,[L,ht,H,W,xt,it,Bt,$,Y.isOpen,Y.activePresentation,Z,Q,M,i]),sn=he(`check`),cn=(0,N.useCallback)((e,n)=>{let r=n===Z,i=e.value===ct,o=(0,P.jsx)(`span`,{className:`x3nfvp2 x6s0dn4 xl56j7k x2lah0s xgomdpo`,children:(0,P.jsx)(sn,{state:i?`checked`:`unchecked`,size:`sm`,isDisabled:e.disabled??!1,...a(`selector-check`)})}),s=(0,P.jsx)(`span`,{className:`x78zum5 x6s0dn4 x1txdalj x98rzlu xeuugli`,children:be?be(e):(0,P.jsx)(Ze,{option:e})}),c=Se===`start`?(0,P.jsxs)(P.Fragment,{children:[o,s]}):(0,P.jsxs)(P.Fragment,{children:[s,o]});return(0,P.jsx)(`div`,{id:Q(n),role:`option`,"aria-selected":i,"aria-disabled":e.disabled,onClick:()=>en(e),onMouseEnter:()=>tn(e,n),...k(a(`selector-option-row`,{size:z,selected:i?`selected`:null,disabled:e.disabled?`disabled`:null}),t(R.item,qe[z],r&&R.itemHighlighted,i&&R.itemSelected,e.disabled&&R.itemDisabled)),children:c},e.value)},[be,Se,Z,z,ct,Q,en,tn,sn]),ln=(0,N.useCallback)(()=>{let e=L&&!!W;if(Mt.length===0&&!j)return[(0,P.jsx)(`div`,{role:`presentation`,...k(a(`selector-empty-state`),{className:`x1b2ylru x2b8uid xv1l7n4 x9ynric xcr08ib`}),children:e?ot:at},`empty`)];let t=0,n=[];for(let r=0;r<E.length;r++){let i=E[r];if(je(i)){if(e)continue;n.push((0,P.jsx)(te,{"aria-hidden":`true`,xstyle:R.divider},`divider-${r}`))}else if(Me(i)){let o=[];for(let n of i.options){let r=Ne(n);(!e||Qe(r,W))&&(o.push(cn(r,t)),t++)}if(o.length===0)continue;n.push((0,P.jsxs)(`div`,{role:`group`,"aria-label":i.title,children:[i.title&&(0,P.jsx)(`div`,{"aria-hidden":`true`,...k(a(`selector-section-heading`),{className:`xu0wf1k xf314gf x9ynric x141an7d x1ltkj2j xv1l7n4 x87ps6o`}),children:i.title}),o]},`section-${r}`))}else if(Ae(i)){let r=Ne(i);if(e&&!Qe(r,W))continue;n.push(cn(r,t)),t++}}return n},[E,cn,L,W,Mt,j,at,ot]),un=F!=null&&B!==`detached`,dn=F!=null&&B===`tooltip`&&!!F.message,fn=J&&xe?(0,P.jsx)(Fe,{value:U?`inline`:`stacked`,children:(0,P.jsx)(`span`,{...{0:{className:`x1iyjqo2 xeuugli xb3r6kr x1yc453h`},1:{className:`x1iyjqo2 xeuugli xb3r6kr x1yc453h xmz0i5r`}}[!!U<<0],children:xe(J)})}):(0,P.jsxs)(P.Fragment,{children:[!I&&J?.icon!=null&&le(J.icon,{size:`sm`,color:`secondary`}),(0,P.jsx)(`span`,{className:`x1iyjqo2 xeuugli xb3r6kr xlyipyv xuxw1ft x1yc453h`,children:J?.label??rt})]}),pn=L?(0,P.jsxs)(`div`,{children:[on(),(0,P.jsx)(te,{}),(0,P.jsx)(`div`,{ref:Pt,id:H,role:`listbox`,"aria-labelledby":ut,...{0:{className:`x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x7a5moj x1hc1fzr x1ey1afo`},1:{className:`x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x1hc1fzr x1ey1afo x2hg6jq`}}[(Y.activePresentation===`popover`&&M!==`ghost`)<<0],children:ln()})]}):(0,P.jsx)(`div`,{ref:Pt,id:H,role:`listbox`,"aria-labelledby":ut,"aria-activedescendant":Y.isOpen&&Z>=0?Q(Z):void 0,tabIndex:Y.activePresentation===`bottom-sheet`?0:void 0,onKeyDown:Y.activePresentation===`bottom-sheet`?rn:void 0,...{0:{className:`x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x7a5moj x1hc1fzr x1ey1afo`},2:{className:`x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x1hc1fzr x1ey1afo x2hg6jq`},1:{className:`x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x7a5moj xg01cxk xq2gx43`},3:{className:`x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x2hg6jq xg01cxk xq2gx43`}}[(Y.activePresentation===`popover`&&M!==`ghost`)<<1|!(Y.activePresentation!==`popover`||Kt)<<0],children:ln()}),mn=null;Y.activePresentation===`bottom-sheet`?(!V||Y.isSheetPresented)&&(mn=(0,P.jsx)(He,{isOpen:Y.isSheetOpen,onOpenChange:Y.onSheetOpenChange,finalFocusRef:_t,initialFocusRef:L?vt:Pt,label:o,children:pn})):V||(mn=X.render(pn,{placement:qt,alignment:`start`,offset:Ht?void 0:n[`--spacing-1`],xstyle:[R.popover,p[qt]],style:Jt}));let hn={...tt,id:ut,"aria-describedby":jt,"aria-labelledby":At,"aria-required":nt?`true`:void 0,"aria-invalid":F?.type===`error`?`true`:void 0,"aria-busy":Tt||void 0,onKeyDown:rn,onFocus:e=>{Ve?.(e),Y.onTriggerFocus(e)},tabIndex:h&&!K?-1:0,...{0:{className:`x78zum5 x6s0dn4 x1qughib x1txdalj x1iyjqo2 xs83m0k x1r8uery xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x15bjb6t x1heor9g x1ypdohk x16khyan x1a2a7pz`},2:{className:`x78zum5 x6s0dn4 x1qughib x1txdalj x1iyjqo2 xs83m0k x1r8uery xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x15bjb6t x1heor9g x1a2a7pz xt0e3qv`},1:{className:`x78zum5 x6s0dn4 x1qughib x1txdalj x1iyjqo2 xs83m0k x1r8uery xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x15bjb6t x1heor9g x1ypdohk x16khyan x1a2a7pz xkh2ocl`},3:{className:`x78zum5 x6s0dn4 x1qughib x1txdalj x1iyjqo2 xs83m0k x1r8uery xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x15bjb6t x1heor9g x1a2a7pz xt0e3qv xkh2ocl`}}[!!V<<1|!!U<<0]},gn=(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(`div`,{ref:e=>{gt.current=e,X.triggerRef(e),Ot.ref(e)},onClick:$t,"data-testid":Ie,...k(a(`selector`,{variant:M,size:z,status:F?.type??null,disabled:h?`disabled`:null,readonly:V?`readonly`:null}),t(y.base,R.triggerContainer,Ke[z],M===`ghost`&&R.triggerGhost,M===`ghost`&&ce.backgroundImage,M===`ghost`&&ie.focusWithin,Y.isTriggerFocusRingSuppressed&&Ge.pointerRestoredFocus,h&&y.disabled,V&&R.triggerReadOnly,M===`ghost`&&h&&R.triggerGhostDisabled,M===`ghost`&&V&&R.triggerGhostReadOnly,!J&&R.triggerPlaceholder,M!==`ghost`&&F&&b[F.type],M!==`ghost`&&F&&!h&&w[F.type],M!==`ghost`&&U&&ee.inGroup,U&&R.triggerInGroup,Re),ze,Be),children:[I&&le(I,{size:`sm`,color:`secondary`}),U&&(0,P.jsx)(fe,{id:pt,children:o}),V&&(0,P.jsx)(fe,{id:mt,children:i(`@astryx.input.readOnly`)}),(0,P.jsx)(`button`,{...hn,ref:_t,type:`button`,role:V||!L?`combobox`:void 0,"aria-haspopup":V?void 0:Y.activePresentation===`bottom-sheet`?`dialog`:`listbox`,"aria-expanded":!V&&Y.isOpen,"aria-controls":V?void 0:H,"aria-readonly":V||void 0,"aria-activedescendant":!V&&!L&&Y.isOpen&&Z>=0?Q(Z):void 0,disabled:h&&!K,"aria-disabled":K?`true`:void 0,children:fn}),ye!=null&&(0,P.jsx)(`input`,{type:`hidden`,name:ye,value:D??``,disabled:h}),Tt&&(0,P.jsx)(re,{size:`sm`}),st&&D!=null&&!h&&!V&&(0,P.jsx)(T,{...Rt,label:i(`@astryx.selector.clearLabel`,{label:o}),onClick:an,iconClassName:s(`selector-clear-icon`)}),un?dn?(0,P.jsx)(`button`,{ref:kt.ref,type:`button`,"aria-label":i(Xe[F.type]),"aria-describedby":kt.describedBy,...Rt,onClick:e=>e.stopPropagation(),...t(ie.focusVisible,R.statusButton),children:(0,P.jsx)(ue,{icon:Je[F.type],size:`sm`,color:Ye[F.type],xstyle:R.triggerIcon})}):(0,P.jsx)(ue,{icon:Je[F.type],size:`sm`,color:Ye[F.type],xstyle:R.triggerIcon}):V?null:(0,P.jsx)(ue,{icon:`chevronDown`,size:`sm`,color:`secondary`,xstyle:[R.triggerIcon,R.triggerIconRotation,Y.isOpen&&R.triggerIconOpen],...a(`selector-indicator-icon`,{state:Y.isOpen?`expanded`:`collapsed`})})]}),mn,dn&&kt.renderTooltip(F?.message??``),K&&Ot.renderTooltip(S)]});return U?gn:(0,P.jsx)(pe,{label:o,isLabelHidden:c,description:l,inputID:ut,descriptionID:l?dt:void 0,isOptional:f,isRequired:m,isDisabled:h,status:F?{type:F.type,message:F.message,messageID:F.message?ft:void 0}:void 0,statusVariant:B,labelTooltip:ve,width:Le,children:gn})}et.displayName=`Selector`;export{De as n,et as t};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/lottie_light-DSIvQuvH.js","assets/rolldown-runtime-hePW80VL.js"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{K as t,l as n,n as r,q as i}from"./themeProps-CkLe5zXY.js";import{a,an as o,cn as s,fn as c,ht as l,on as u}from"./page-header-CVCjLFQo.js";import{y as d}from"./Table-XuC9zK9w.js";import{a as f}from"./useMediaQuery-twbHF0pO.js";import{E as p,W as m,_ as h,b as g,t as _,w as v}from"./Icon-DPaLmsmh.js";import{t as y}from"./preload-helper-BZ1Pz5am.js";import{n as b,r as x}from"./IconButton-Br-4XhQr.js";var S=e(i(),1),C={overlay:`_overlay_1x6qj_3`,visible:`_visible_1x6qj_4`,window:`_window_1x6qj_6`,veil:`_veil_1x6qj_9`,deepen:`_deepen_1x6qj_1`,mark:`_mark_1x6qj_21`,small:`_small_1x6qj_22`,inline:`_inline_1x6qj_23`},w=n(),T=450,E=Promise.all([y(()=>import(`./lottie_light-DSIvQuvH.js`).then(t=>e(t.default,1)),__vite__mapDeps([0,1])),y(()=>import(`./rocket-loader-CMSP4Jri.js`),[])]).then(([e,t])=>({player:e.default,data:t.default}));function D({isSmall:e=!1,isPlaying:t=!0}){let n=(0,S.useRef)(null),[r,i]=(0,S.useState)(null);return(0,S.useEffect)(()=>{let e,t=!1;return E.then(({player:r,data:a})=>{!t&&n.current&&(e=r.loadAnimation({container:n.current,renderer:`svg`,loop:!0,autoplay:!1,animationData:a,rendererSettings:{preserveAspectRatio:`xMidYMid meet`}}),i(e))}),()=>{t=!0,e?.destroy()}},[]),(0,S.useEffect)(()=>{if(!r)return;if(window.matchMedia(`(prefers-reduced-motion: reduce)`).matches){r.goToAndStop(O,!0);return}if(t){r.goToAndPlay(k,!0);return}let e=window.setTimeout(()=>r.pause(),T);return()=>window.clearTimeout(e)},[r,t]),(0,w.jsx)(l,{gap:0,ref:n,className:e?`${C.mark} ${C.small}`:C.mark,"aria-hidden":`true`})}var O=0,k=0;function A({isVisible:e,place:t}){c();let n=[C.overlay,t===`window`?C.window:C.veil,e&&C.visible].filter(Boolean).join(` `);return(0,w.jsxs)(l,{gap:3,hAlign:`center`,vAlign:`center`,className:n,...e?{role:`status`,"aria-label":s(`request.loading`)}:{"aria-hidden":!0},children:[(0,w.jsx)(D,{isPlaying:e}),(0,w.jsx)(v,{type:`supporting`,color:`secondary`,children:s(`request.loadingRecords`)})]})}function j({label:e}){return c(),(0,w.jsx)(l,{gap:2,hAlign:`center`,vAlign:`center`,className:C.inline,role:`status`,"aria-label":e??s(`request.loading`),children:(0,w.jsx)(D,{isSmall:!0})})}function M({error:e,retry:t,placeholder:n}){return c(),e?(0,w.jsx)(l,{role:`alert`,children:(0,w.jsx)(a,{kind:`error`,title:s(`request.failed`),description:e.message,actions:t?(0,w.jsx)(b,{label:s(`common.reconnect`),onClick:t}):void 0})}):n??(0,w.jsx)(j,{})}function N(e,{delay:t=200,minimum:n=300}={}){let[r,i]=(0,S.useState)(!1),a=(0,S.useRef)(null);return(0,S.useEffect)(()=>{if(e){if(r)return;let e=window.setTimeout(()=>{a.current=Date.now(),i(!0)},t);return()=>window.clearTimeout(e)}if(!r)return;let o=0,s=()=>{o=window.requestAnimationFrame(()=>{o=window.requestAnimationFrame(()=>{a.current=null,i(!1)})})},c=Math.max(0,n-(Date.now()-(a.current??0))),l=window.setTimeout(s,c);return()=>{window.clearTimeout(l),window.cancelAnimationFrame(o)}},[e,r,t,n]),r}function P({ref:e,href:t,isDisabled:n,LinkComponent:r,linkStyleProps:i,labelContent:a,icon:s,endContent:c,removeButton:l,onClick:d,onMouseUp:f,...m}){let h=(0,S.useRef)(null),g=(0,S.useRef)(null),{onClick:_,onMouseUp:v}=o({containerRef:h,interactiveRef:g,href:t,disabled:n});return(0,w.jsxs)(`span`,{ref:p(e,h),...m,onClick:n?d:u(d,_),onMouseUp:n?f:u(f,v),children:[s,(0,w.jsx)(r,{ref:g,href:t,"aria-disabled":n||void 0,...i,children:a}),c,l]})}P.displayName=`TokenLink`;var F={base:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kOIVth:`xzye2dw`,k8WAf4:`xt970qd`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,kaIpWk:`xx3sua9`,kMv6JI:`xjb2p0i`,kGuDYH:`x141an7d`,kLWn49:`x1ltkj2j`,k63SB2:`x1e4wzip`,khDVqt:`xuxw1ft`,kybGjl:`x1hl2dhg`,ks0D6T:`x193iq5w`,kVQacm:`xb3r6kr`,$$css:!0},interactive:{kkrTdU:`x1ypdohk x16khyan`,k1ekBW:`x12qzo2w`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,$$css:!0},disabled:{kkrTdU:`xt0e3qv`,kSiTet:`xbyyjgo`,kfzvcC:`x47corl`,$$css:!0},removeButton:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kVAEAm:`x1n2onr6`,kmVPX3:`x1717udv`,k71WvV:`xkd40ry`,kkrTdU:`x1ypdohk x16khyan`,kaIpWk:`xjspbzw`,kzqmXN:`x1kky2od`,kZKoxP:`xlup9mm`,kMwMTN:`x1heor9g`,k5JduY:`x1s928wv`,kwXMNM:`x1j6awrg`,kv0HGH:`x1xsm0q9`,$$css:!0}},I={sm:{kZKoxP:`xzydfjl`,kGuDYH:`x141an7d`,kg3NbH:`xf314gf`,$$css:!0},md:{kZKoxP:`xrmxcn7`,kg3NbH:`xf314gf`,$$css:!0},lg:{kZKoxP:`x102lyln`,kg3NbH:`xf314gf`,$$css:!0}},L={default:{kWkggS:`x17x4s8c`,kMwMTN:`x1tgivj0`,$$css:!0},red:{kWkggS:`x1cibrc5`,kMwMTN:`x1joocv1`,$$css:!0},orange:{kWkggS:`x1e9xt6e`,kMwMTN:`xm47u9q`,$$css:!0},yellow:{kWkggS:`x1bo7t0x`,kMwMTN:`xdhq94a`,$$css:!0},green:{kWkggS:`x1sqjeoo`,kMwMTN:`xltfdvo`,$$css:!0},teal:{kWkggS:`x1jtji5o`,kMwMTN:`x9x0lbs`,$$css:!0},cyan:{kWkggS:`x1rgj867`,kMwMTN:`x1txnczv`,$$css:!0},blue:{kWkggS:`x1o0wnni`,kMwMTN:`x1vvqiwl`,$$css:!0},purple:{kWkggS:`x16i6n6f`,kMwMTN:`x1m9wyeb`,$$css:!0},pink:{kWkggS:`xnpoty2`,kMwMTN:`xiuofww`,$$css:!0},gray:{kWkggS:`xspzpui`,kMwMTN:`xru1t7f`,$$css:!0}};function R({label:e,size:n=`md`,color:i=`default`,icon:a,isDisabled:o=!1,onRemove:s,onClick:c,href:l,description:u,endContent:p,isLabelHidden:v=!1,xstyle:y,className:b,style:S,"data-testid":C,ref:T,...E}){let D=h(),O=x(),k=d({href:l,onClick:c,isDisabled:o}),A=c??(k===`button`?()=>{}:null),j=s!=null&&(0,w.jsx)(`button`,{type:`button`,"aria-label":D(`@astryx.token.remove`,{label:e}),onClick:e=>{e.stopPropagation(),s(e)},disabled:o,...m.focusVisible(F.removeButton),children:(0,w.jsx)(_,{icon:`close`,size:`xsm`,color:`inherit`})}),M=(0,w.jsxs)(w.Fragment,{children:[a,(0,w.jsx)(`span`,{...{0:{className:`xb3r6kr xlyipyv xuxw1ft xeuugli`},1:{className:`xlyipyv xeuugli x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr x1hyvwdk xuxw1ft xc342km`}}[!!v<<0],children:e}),p,j]}),N={"data-testid":C,...v?{"aria-label":e}:{},...u==null?{}:{"aria-description":u}};return k===`link`?s==null?(0,w.jsx)(O,{ref:T,href:l,...f(r(`token`,{color:i,size:n}),m.focusVisible(F.base,I[n],L[i],F.interactive,g.backgroundImage,o&&F.disabled,y),b,S),...E,...o?{"aria-disabled":!0}:{},...N,children:M}):(0,w.jsx)(P,{ref:T,href:l,isDisabled:o,LinkComponent:O,icon:a,endContent:p,removeButton:j,linkStyleProps:{className:`xmper1u x16khyan xln7xf2 x1heor9g x1a2a7pz xb3r6kr xeuugli`},labelContent:(0,w.jsx)(`span`,{...{0:{className:`xb3r6kr xlyipyv xuxw1ft xeuugli`},1:{className:`xlyipyv xeuugli x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr x1hyvwdk xuxw1ft xc342km`}}[!!v<<0],children:e}),...f(r(`token`,{color:i,size:n}),m.focusWithin(F.base,I[n],L[i],F.interactive,g.backgroundImage,o&&F.disabled,y),b,S),...E,...N}):A==null?(0,w.jsx)(`span`,{ref:T,...f(r(`token`,{color:i,size:n}),t(F.base,I[n],L[i],o&&F.disabled,y),b,S),...E,...N,children:M}):(0,w.jsxs)(`span`,{ref:T,onClick:o?void 0:e=>{e.target.closest(`button, a`)||A(e)},...f(r(`token`,{color:i,size:n}),m.focusWithin(F.base,I[n],L[i],F.interactive,g.backgroundImage,o&&F.disabled,y),b,S),...E,...N,children:[a,(0,w.jsx)(`button`,{type:`button`,onClick:A,disabled:o,className:`xmper1u x16khyan xln7xf2 x1heor9g x1a2a7pz xb3r6kr xeuugli`,children:(0,w.jsx)(`span`,{...{0:{className:`xb3r6kr xlyipyv xuxw1ft xeuugli`},1:{className:`xlyipyv xeuugli x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr x1hyvwdk xuxw1ft xc342km`}}[!!v<<0],children:e})}),p,j]})}R.displayName=`Token`;export{A as a,j as i,N as n,M as r,R as t};
@@ -1 +0,0 @@
1
- ._overlay_1x6qj_3{opacity:0;visibility:hidden;pointer-events:none;transition:opacity var(--duration-medium) var(--ease-standard), visibility 0s linear var(--duration-medium)}._visible_1x6qj_4{opacity:1;visibility:visible;pointer-events:auto;transition:none}._window_1x6qj_6{z-index:10;background:var(--color-background-body);position:fixed;inset:0}._veil_1x6qj_9{z-index:3;inset:var(--spacing-2);border-radius:var(--radius-container);background:color-mix(in srgb, var(--color-background-surface) 55%, transparent);-webkit-backdrop-filter:blur(var(--spacing-1));backdrop-filter:blur(var(--spacing-1));position:absolute;inset-inline-start:0}@media (width<64rem){._veil_1x6qj_9{border-radius:0;inset:0}}._veil_1x6qj_9:before{content:"";border-radius:inherit;background:var(--color-background-surface);opacity:0;position:absolute;inset:0}._veil_1x6qj_9._visible_1x6qj_4:before{animation:_deepen_1x6qj_1 var(--duration-fast) var(--ease-standard) forwards}._veil_1x6qj_9>*{position:relative}@keyframes _deepen_1x6qj_1{to{opacity:.78}}@media (prefers-reduced-motion:reduce){._veil_1x6qj_9._visible_1x6qj_4:before{opacity:.78;animation:none}}._mark_1x6qj_21{width:calc(var(--spacing-8) * 5);aspect-ratio:1}._small_1x6qj_22{width:calc(var(--spacing-8) * 2.5)}._inline_1x6qj_23{min-height:calc(var(--spacing-8) * 3)}._mark_1x6qj_21 svg [stroke="rgb(0,0,0)"]{stroke:var(--color-text-secondary)}._mark_1x6qj_21 svg [fill="rgb(254,254,255)"],._mark_1x6qj_21 svg [fill=\#ffffff]{fill:var(--color-background-surface)}@media (prefers-reduced-motion:reduce){._overlay_1x6qj_3,._visible_1x6qj_4{transition:none}}
@@ -1,2 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{l as t,q as n}from"./themeProps-CkLe5zXY.js";import{bt as r,cn as i,fn as a,ht as o,mt as s,o as c}from"./page-header-CVCjLFQo.js";import{n as l,s as u}from"./document-Q3lvgyX8.js";import{w as d}from"./Icon-DPaLmsmh.js";import{t as f}from"./contributor-Bs3RWHQv.js";var p=e=>new Date(e).toDateString();function m(e){let t=[],n;for(let r of e){let e=t.at(-1);if(e&&e.commit===r.commit){e.events.push(r);continue}let i=p(r.date)!==n;n=p(r.date),t.push({commit:r.commit,events:[r],day:i?r.date:void 0})}return t}var h=(e,t)=>e.id.startsWith(`H-`)&&t.id.startsWith(`H-`)&&e.title===t.title&&e.sections.length===t.sections.length&&e.sections.every((e,n)=>e.key===t.sections[n].key&&e.body===t.sections[n].body);function g(e){let t=[],n=[];for(let r of e){if(!r.records.length){n.push(r);continue}for(let e of r.records){let n=t.find(t=>t.ids.includes(e.id)||t.record&&h(t.record,e));n?(n.ids.includes(e.id)||n.ids.push(e.id),n.events.includes(r)||n.events.push(r)):t.push({key:e.id,ids:[e.id],record:e,events:[r],missing:!1})}}return n.length&&t.push({key:``,ids:[],record:null,events:n,missing:n.some(e=>e.types.some(e=>e!==`created`))}),t}var _=e(n(),1),v={timeline:`_timeline_j2p3o_1`,commit:`_commit_j2p3o_4`,day:`_day_j2p3o_7`,commitRow:`_commitRow_j2p3o_8`,commitNode:`_commitNode_j2p3o_9`,commitBody:`_commitBody_j2p3o_10`,commitHead:`_commitHead_j2p3o_11`,commitWho:`_commitWho_j2p3o_12`,commitWhen:`_commitWhen_j2p3o_13`,commitAuthor:`_commitAuthor_j2p3o_14`,commitMeta:`_commitMeta_j2p3o_16`,commitMetaLink:`_commitMetaLink_j2p3o_18`,commitMore:`_commitMore_j2p3o_21`,recordRows:`_recordRows_j2p3o_25`,recordRow:`_recordRow_j2p3o_25`,recordRowPreview:`_recordRowPreview_j2p3o_28`,reasonGroup:`_reasonGroup_j2p3o_30`,recordName:`_recordName_j2p3o_31`,records:`_records_j2p3o_33`,record:`_record_j2p3o_25`,recordBadge:`_recordBadge_j2p3o_38`,recordTitle:`_recordTitle_j2p3o_39`,recordPath:`_recordPath_j2p3o_41`,recordFeature:`_recordFeature_j2p3o_42`,recordDot:`_recordDot_j2p3o_43`,oneLine:`_oneLine_j2p3o_48`},y=t();function b({event:e,features:t,record:n}){a();let i=e.after??e.before,o=e.kind===`requirement`||e.kind===`design`?t.find(e=>e.id===i?.specId):void 0;return(0,y.jsxs)(s,{as:`li`,gap:2,className:v.record,children:[(0,y.jsx)(s,{gap:0,className:v.recordBadge,children:(0,y.jsx)(l,{event:e})}),(0,y.jsxs)(`span`,{className:v.recordPath,children:[o&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`span`,{className:v.recordFeature,children:o.title}),(0,y.jsx)(`span`,{className:v.recordDot,"aria-hidden":!0,children:`·`})]}),n?(0,y.jsx)(r,{to:`/records/$recordId`,params:{recordId:n},hash:e.id,className:v.recordTitle,children:i?.title??e.id}):(0,y.jsx)(r,{to:`/records/commits/$commit`,params:{commit:e.commit},hash:e.id,className:v.recordTitle,children:i?.title??e.id})]})]})}function x(e){return(((e.sections.find(e=>e.key===`decision`)??e.sections[0])?.body??``).split(`
2
- `).map(e=>e.trim()).find(Boolean)??``).replace(/^[-*]\s+/,``).replace(/`([^`]*)`/g,`$1`).replace(/\*\*([^*]+)\*\*/g,`$1`).replace(/\[([^\]]+)\]\([^)]*\)/g,`$1`)}var S=3;function C({record:e,events:t,features:n}){a();let s=x(e);return(0,y.jsxs)(o,{as:`li`,gap:1,className:v.recordRow,children:[(0,y.jsx)(r,{to:`/records/$recordId`,params:{recordId:e.id},className:v.recordName,children:e.title}),s&&(0,y.jsx)(d,{type:`supporting`,color:`secondary`,className:v.recordRowPreview,children:s}),(0,y.jsx)(o,{as:`ul`,gap:0,className:v.records,"aria-label":i(`activity.changedRecords`),children:t.slice(0,S).map(t=>(0,y.jsx)(b,{event:t,features:n,record:e.id},t.key))}),t.length>S&&(0,y.jsx)(r,{to:`/records/$recordId`,params:{recordId:e.id},className:v.commitMore,children:i(`activity.moreRecords`,{count:t.length-S})})]})}var w=3;function T(e){let t=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime(),n=Math.round((t(new Date)-t(new Date(e)))/864e5);return n===0?i(`activity.today`):n===1?i(`activity.yesterday`):void 0}var E=(0,_.memo)(function({events:e,day:t,features:n,hidden:c}){a();let l=e[0],p=g(e),m=p.filter(e=>e.record),h=p.find(e=>!e.record);return(0,y.jsxs)(o,{as:`li`,gap:0,className:v.commit,children:[t&&(0,y.jsxs)(s,{gap:2,className:v.day,children:[(0,y.jsx)(d,{type:`supporting`,weight:`semibold`,children:T(t)}),(0,y.jsx)(d,{type:`supporting`,color:`secondary`,children:(0,y.jsx)(u,{value:t,format:`date_weekday`,hasTooltip:!1})})]}),(0,y.jsxs)(s,{gap:4,className:v.commitRow,children:[(0,y.jsx)(o,{gap:0,className:v.commitNode,children:(0,y.jsx)(f,{name:l.author,email:l.email,avatarOnly:!0})}),(0,y.jsxs)(o,{gap:5,className:v.commitBody,children:[(0,y.jsxs)(o,{gap:1,className:v.commitHead,children:[(0,y.jsxs)(s,{gap:3,className:v.commitWho,children:[(0,y.jsx)(r,{to:`/contributors/$email`,params:{email:l.email},className:v.commitAuthor,children:l.author}),(0,y.jsxs)(s,{gap:3,className:v.commitWhen,children:[!!m.length&&(0,y.jsx)(d,{type:`supporting`,color:`secondary`,children:i(`activity.commitRecords`,{count:m.length})}),e.length+c>1&&(0,y.jsx)(d,{type:`supporting`,color:`secondary`,children:i(`activity.recordCount`,{count:e.length+c})}),(0,y.jsx)(u,{value:l.date,format:`relative`})]})]}),(0,y.jsx)(r,{to:`/records/commits/$commit`,params:{commit:l.commit},className:v.commitMetaLink,children:(0,y.jsxs)(s,{gap:2,className:v.commitMeta,children:[(0,y.jsx)(d,{type:`code`,color:`secondary`,children:l.commit.slice(0,7)}),(0,y.jsx)(d,{type:`supporting`,color:`secondary`,className:v.oneLine,children:l.message})]})})]}),!!m.length&&(0,y.jsx)(o,{as:`ul`,gap:0,className:v.recordRows,"aria-label":i(`event.records`),children:m.slice(0,w).map(e=>(0,y.jsx)(C,{record:e.record,events:e.events,features:n},e.key))}),m.length>w&&(0,y.jsx)(r,{to:`/records/commits/$commit`,params:{commit:l.commit},search:{tab:`records`},className:v.commitMore,children:i(`activity.moreCommitRecords`,{count:m.length-w})}),h&&(0,y.jsxs)(o,{gap:2,className:v.reasonGroup,children:[h.missing&&(0,y.jsx)(d,{color:`secondary`,children:i(`activity.noRecord`)}),(0,y.jsx)(o,{as:`ul`,gap:0,className:v.records,"aria-label":i(`commit.documents`),children:h.events.map(e=>(0,y.jsx)(b,{event:e,features:n},e.key))})]}),c>0&&(0,y.jsx)(r,{to:`/records/commits/$commit`,params:{commit:l.commit},search:{tab:`documents`},className:v.commitMore,children:i(`activity.moreRecords`,{count:c})})]})]})]})},(e,t)=>e.day===t.day&&e.features===t.features&&e.hidden===t.hidden&&e.events.length===t.events.length&&e.events.every((e,n)=>e===t.events[n]));function D({events:e,features:t,hidden:n}){return a(),(0,y.jsx)(o,{as:`ol`,"aria-label":i(`activity.list`),gap:0,className:v.timeline,children:m(e).map(e=>(0,y.jsx)(E,{events:e.events,day:e.day,features:t,hidden:n?.[e.commit]??0},e.commit))})}var O=[[3,2],[4],[2,2],[5]],k=[[3,2],[4],[2]];function A({isPlain:e=!1}={}){a();let t=e?{}:{role:`status`,"aria-label":i(`request.loadingProject`),"aria-busy":!0};return(0,y.jsx)(o,{gap:0,className:v.timeline,...t,children:(e?k:O).map((e,t)=>(0,y.jsxs)(s,{gap:4,className:`${v.commit} ${v.commitRow}`,"aria-hidden":`true`,children:[(0,y.jsx)(o,{gap:0,className:v.commitNode,children:(0,y.jsx)(c,{index:t,width:`var(--spacing-6)`,height:`var(--spacing-6)`,radius:`rounded`})}),(0,y.jsxs)(o,{gap:5,className:v.commitBody,children:[(0,y.jsxs)(o,{gap:1,className:v.commitHead,children:[(0,y.jsxs)(s,{gap:3,className:v.commitWho,children:[(0,y.jsx)(c,{index:t,width:`6rem`,height:`var(--spacing-4)`}),(0,y.jsx)(c,{index:t,width:`3rem`,height:`var(--spacing-3)`})]}),(0,y.jsxs)(s,{gap:2,className:v.commitMeta,children:[(0,y.jsx)(c,{index:t,width:`3.5rem`,height:`var(--spacing-3)`}),(0,y.jsx)(c,{index:t,width:`${38-t*4}%`,height:`var(--spacing-3)`})]})]}),e.map((e,n)=>(0,y.jsxs)(o,{gap:2,className:v.reasonGroup,children:[(0,y.jsxs)(o,{gap:2,className:v.reasonText,children:[(0,y.jsx)(c,{index:t,width:`100%`,height:`var(--spacing-4)`}),(0,y.jsx)(c,{index:t,width:`${52+n*14}%`,height:`var(--spacing-4)`})]}),(0,y.jsx)(o,{gap:0,className:v.records,children:Array.from({length:e},(e,t)=>(0,y.jsxs)(s,{gap:2,className:v.record,children:[(0,y.jsx)(s,{gap:0,className:v.recordType,children:(0,y.jsx)(c,{index:t,width:`2.75rem`,height:`var(--spacing-5)`,radius:2})}),(0,y.jsx)(c,{index:t,width:`3.5rem`,height:`var(--spacing-3)`}),(0,y.jsx)(c,{index:t,width:`${30-t*3}%`,height:`var(--spacing-4)`})]},t))})]},n))]})]},t))})}var j={context:()=>i(`record.section.context`),decision:()=>i(`record.section.decision`),alternatives:()=>i(`record.section.alternatives`)};export{g as a,x as i,A as n,D as r,j as t};
@@ -1 +0,0 @@
1
- import{p as e}from"./index-BeeP8ZFW.js";var t=e;export{t as component};
@@ -1,4 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{l as t,q as n}from"./themeProps-CkLe5zXY.js";import{a as r,r as i,s as a}from"./document-DPtVyR5y.js";import{A as o,Ct as s,E as c,F as l,St as u,V as d,_ as f,a as p,bt as m,cn as h,fn as g,g as _,h as v,ht as y,k as b,l as x,mt as S,rn as C,t as w,u as ee,v as T,xt as E}from"./page-header-CVCjLFQo.js";import{h as D,i as te,n as ne,r as O,s as re}from"./document-Q3lvgyX8.js";import{g as ie,p as ae}from"./Table-XuC9zK9w.js";import{t as oe}from"./useMediaQuery-twbHF0pO.js";import{w as k}from"./Icon-DPaLmsmh.js";import{n as se}from"./IconButton-Br-4XhQr.js";import{c as ce}from"./Markdown-ev4hMr67.js";import{t as le}from"./Selector-CGOdL2eo.js";import{i as ue}from"./lazyRouteComponent-D4lq6X5s.js";import{n as A,t as j}from"./Tab-BwJj0rUr.js";import{t as M}from"./useInfiniteQuery-03AIcFvA.js";import{i as N,r as P,t as F}from"./Token-BV_4bSkY.js";import{t as I}from"./load-more-CymfxLt7.js";import{t as de}from"./contributor-Bs3RWHQv.js";import{a as fe,i as L,t as R}from"./activity-timeline-Dmc-97N6.js";function z(e){let t=s();return u(t.stores.location,ue(e,t))}var B=e(n(),1),pe=4e6;function V(e,t){let n=e.length,r=t.length;if(n*r>pe)return[...e.map(()=>`del`),...t.map(()=>`add`)];let i=r+1,a=new Uint32Array((n+1)*i);for(let o=n-1;o>=0;o--)for(let n=r-1;n>=0;n--)a[o*i+n]=e[o]===t[n]?a[(o+1)*i+n+1]+1:Math.max(a[(o+1)*i+n],a[o*i+n+1]);let o=[],s=0,c=0;for(;s<n&&c<r;)e[s]===t[c]?(o.push(`same`),s++,c++):a[(s+1)*i+c]>=a[s*i+c+1]?(o.push(`del`),s++):(o.push(`add`),c++);for(;s++<n;)o.push(`del`);for(;c++<r;)o.push(`add`);return o}var H=e=>e===null?[]:e.replace(/\r\n/g,`
2
- `).replace(/\n$/,``).split(`
3
- `);function me(e,t){let n=H(e),r=H(t),i=[],a=0,o=0;for(let e of V(n,r))e===`same`?(i.push({type:`same`,text:n[a],old:a+1,new:o+1}),a++,o++):e===`del`?(i.push({type:`del`,text:n[a],old:a+1}),a++):(i.push({type:`add`,text:r[o],new:o+1}),o++);return i}function he(e,t=3){let n=[],r=0,i=(e,t)=>{if(!t.length)return;let r=n[n.length-1];e===`lines`&&r?.kind===`lines`?r.lines.push(...t):n.push({kind:e,lines:t})};for(;r<e.length;){let n=r,a=e[r].type===`same`;for(;n<e.length&&e[n].type===`same`===a;)n++;let o=e.slice(r,n);if(!a)i(`lines`,o);else{let a=r===0?0:t,s=n===e.length?0:t;o.length>a+s+1?(i(`lines`,o.slice(0,a)),i(`fold`,o.slice(a,o.length-s)),i(`lines`,o.slice(o.length-s))):i(`lines`,o)}r=n}return n}var U=e=>e.match(/\s+|[\p{L}\p{N}_]+|[^\s\p{L}\p{N}_]/gu)??[];function ge(e,t){let n=U(e),r=U(t),i={before:[],after:[]},a=0,o=0,s=(e,t,n)=>{let r=e[e.length-1];r&&r.changed===n?r.text+=t:e.push({text:t,changed:n})};for(let e of V(n,r))e===`same`?(s(i.before,n[a],!1),s(i.after,r[o],!1),a++,o++):e===`del`?s(i.before,n[a++],!0):s(i.after,r[o++],!0);return i}function W(e){let t=[],n=0;for(;n<e.length;){if(e[n].type===`same`){t.push([e[n],e[n]]),n++;continue}let r=[],i=[];for(;n<e.length&&e[n].type!==`same`;)(e[n].type===`del`?r:i).push(e[n++]);for(let e=0;e<Math.max(r.length,i.length);e++)t.push([r[e],i[e]])}return t}var G={frame:`_frame_196wm_4`,diff:`_diff_196wm_3`,numberColumn:`_numberColumn_196wm_8`,signColumn:`_signColumn_196wm_9`,number:`_number_196wm_8`,numberRight:`_numberRight_196wm_11`,split:`_split_196wm_11`,sign:`_sign_196wm_9`,code:`_code_196wm_14`,del:`_del_196wm_15`,add:`_add_196wm_16`,empty:`_empty_196wm_19`,word:`_word_196wm_21`,foldRow:`_foldRow_196wm_23`,"token-keyword":`_token-keyword_196wm_28`,"token-string":`_token-string_196wm_29`,"token-comment":`_token-comment_196wm_30`,"token-number":`_token-number_196wm_31`,"token-function":`_token-function_196wm_32`,"token-type":`_token-type_196wm_33`,"token-tag":`_token-tag_196wm_34`,"token-attribute":`_token-attribute_196wm_35`,"token-property":`_token-property_196wm_36`,"token-operator":`_token-operator_196wm_37`,"token-constant":`_token-constant_196wm_38`,"token-punctuation":`_token-punctuation_196wm_39`,"token-variable":`_token-variable_196wm_40`},K=t();function _e(e){let t=new Map;for(let[n,r]of W(e)){if(!n||!r||n===r)continue;let e=ge(n.text,r.text);e.after.filter(e=>!e.changed).reduce((e,t)=>e+t.text.trim().length,0)*4<Math.max(n.text.trim().length,r.text.trim().length)||(t.set(n,e.before),t.set(r,e.after))}return t}function ve(e){return{ts:`typescript`,tsx:`tsx`,mts:`typescript`,cts:`typescript`,js:`javascript`,mjs:`javascript`,cjs:`javascript`,jsx:`jsx`,json:`json`,css:`css`,html:`html`,md:`markdown`,yml:`yaml`,yaml:`yaml`,sh:`bash`,bash:`bash`,py:`python`,sql:`sql`,toml:`toml`}[/\.([A-Za-z0-9]+)$/.exec(e??``)?.[1]?.toLowerCase()??``]??`plaintext`}function ye({text:e,tokens:t}){if(!t?.length)return(0,K.jsx)(K.Fragment,{children:e});let n=[],r=0;for(let i of t)i.start>r&&n.push(e.slice(r,i.start)),n.push((0,K.jsx)(`span`,{className:G[`token-`+i.type]??``,children:e.slice(i.start,i.end)},i.start)),r=i.end;return r<e.length&&n.push(e.slice(r)),(0,K.jsx)(K.Fragment,{children:n.map((e,t)=>(0,K.jsx)(B.Fragment,{children:e},t))})}function q({line:e,marks:t,tokens:n}){if(!e)return null;let r=t.get(e);return r?(0,K.jsx)(K.Fragment,{children:r.map((e,t)=>e.changed?(0,K.jsx)(`mark`,{className:G.word,children:e.text},t):(0,K.jsx)(B.Fragment,{children:e.text},t))}):(0,K.jsx)(ye,{text:e.text||` `,tokens:n.get(e)})}var be={same:``,del:`−`,add:`+`};function J({before:e,after:t,label:n,language:r=`plaintext`}){g();let i=oe(`(min-width: 1024px)`)?`split`:`unified`,[a,o]=(0,B.useState)(new Set),s=(0,B.useMemo)(()=>me(e,t),[e,t]),c=(0,B.useMemo)(()=>_e(s),[s]),l=(0,B.useMemo)(()=>{let n=new Map;for(let[i,a]of[[e,`del`],[t,`add`]]){if(i===null)continue;let e=ce(i.replace(/\r\n/g,`
4
- `).replace(/\n$/,``),r),t=0;for(let r of s)if(r.type===`same`||r.type===a){let i=e[t++];i&&n.set(r,i)}}return n},[e,t,r,s]),u=(0,B.useMemo)(()=>he(s),[s]);return s.some(e=>e.type!==`same`)?(0,K.jsx)(y,{gap:0,className:G.frame,children:(0,K.jsxs)(`table`,{className:`${G.diff} ${i===`split`?G.split:``}`,"aria-label":n,children:[(0,K.jsx)(`colgroup`,{children:(i===`split`?[`number`,`code`,`number`,`code`]:[`number`,`number`,`sign`,`code`]).map((e,t)=>(0,K.jsx)(`col`,{className:e===`number`?G.numberColumn:e===`sign`?G.signColumn:void 0},t))}),(0,K.jsx)(`tbody`,{children:u.map((e,t)=>e.kind===`fold`&&!a.has(t)?(0,K.jsx)(`tr`,{className:G.foldRow,children:(0,K.jsx)(`td`,{colSpan:4,children:(0,K.jsx)(se,{variant:`ghost`,size:`sm`,label:h(`diff.unfold`,{count:e.lines.length}),onClick:()=>o(new Set(a).add(t))})})},t):i===`split`?W(e.lines).map(([e,n],r)=>(0,K.jsxs)(`tr`,{children:[(0,K.jsx)(`td`,{className:`${G.number} ${e?G[e.type]:G.empty}`,children:e?.old??``}),(0,K.jsx)(`td`,{className:`${G.code} ${e?G[e.type]:G.empty}`,children:(0,K.jsx)(q,{line:e,marks:c,tokens:l})}),(0,K.jsx)(`td`,{className:`${G.number} ${G.numberRight} ${n?G[n.type]:G.empty}`,children:n?.new??``}),(0,K.jsx)(`td`,{className:`${G.code} ${n?G[n.type]:G.empty}`,children:(0,K.jsx)(q,{line:n,marks:c,tokens:l})})]},t+`:`+r)):e.lines.map((e,n)=>(0,K.jsxs)(`tr`,{className:G[e.type],children:[(0,K.jsx)(`td`,{className:G.number,children:e.old??``}),(0,K.jsx)(`td`,{className:`${G.number} ${G.numberRight}`,children:e.new??``}),(0,K.jsx)(`td`,{className:G.sign,"aria-hidden":!0,children:be[e.type]}),(0,K.jsx)(`td`,{className:G.code,children:(0,K.jsx)(q,{line:e,marks:c,tokens:l})})]},t+`:`+n)))})]})}):(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:h(`diff.bodyUnchanged`)})}var Y={fields:`_fields_17s6f_2`,field:`_field_17s6f_2`,fieldName:`_fieldName_17s6f_4`,fieldBefore:`_fieldBefore_17s6f_5`,fieldAfter:`_fieldAfter_17s6f_6`},xe=e=>e.id??e.url??e.title??``;function Se(e,t,n){let r=e=>e.title??(e.id?n(e.id):e.url)??``,i=[],a=(e,t,n)=>{t!==n&&i.push({name:e,before:[t||`—`],after:[n||`—`],list:!1})},o=(e,t,n,r,a)=>{let o=new Set(t.map(r)),s=new Set(n.map(r)),c=t.filter(e=>!s.has(r(e))).map(a),l=n.filter(e=>!o.has(r(e))).map(a);(c.length||l.length)&&i.push({name:e,before:c,after:l,list:!0})};return a(`title`,e.title,t.title),a(`description`,e.description,t.description),a(`order`,e.order?.toString()??``,t.order?.toString()??``),o(`requirements`,e.requirements??[],t.requirements??[],e=>e,n),o(`sources`,e.sources??[],t.sources??[],xe,r),a(`path`,e.path,t.path),i}function Ce({before:e,after:t,features:n}){g();let r=a(),i=Se(e,t,e=>n.flatMap(e=>e.requirements).find(t=>t.id===e)?.title??r.instructions?.find(t=>t.id===e)?.title??e);return(0,K.jsxs)(y,{gap:4,children:[!!i.length&&(0,K.jsx)(y,{as:`section`,gap:2,"aria-label":h(`diff.fields`),className:Y.fields,children:i.map(e=>(0,K.jsxs)(S,{gap:2,wrap:`wrap`,className:Y.field,children:[(0,K.jsx)(k,{type:`supporting`,color:`secondary`,className:Y.fieldName,children:e.name}),e.list?(0,K.jsxs)(K.Fragment,{children:[e.before.map(e=>(0,K.jsx)(`del`,{className:Y.fieldBefore,children:e},`-`+e)),e.after.map(e=>(0,K.jsx)(`ins`,{className:Y.fieldAfter,children:e},`+`+e))]}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`del`,{className:Y.fieldBefore,children:e.before[0]}),(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:`→`}),(0,K.jsx)(`ins`,{className:Y.fieldAfter,children:e.after[0]})]})]},e.name))}),(0,K.jsx)(J,{before:e.body,after:t.body,label:h(`diff.body`),language:`markdown`})]})}var X={commitPage:`_commitPage_18dvh_2`,commitHeading:`_commitHeading_18dvh_3`,commitMeta:`_commitMeta_18dvh_5`,commitHash:`_commitHash_18dvh_6`,commitHashLink:`_commitHashLink_18dvh_7`,commitSection:`_commitSection_18dvh_8`,reason:`_reason_18dvh_9`,reasonRecords:`_reasonRecords_18dvh_10`,reasonRecord:`_reasonRecord_18dvh_10`,change:`_change_18dvh_15`,changeHead:`_changeHead_18dvh_17`,changePlace:`_changePlace_18dvh_19`,readingSection:`_readingSection_18dvh_21`,sourceRow:`_sourceRow_18dvh_22`,sourcePath:`_sourcePath_18dvh_23`,sourceAdded:`_sourceAdded_18dvh_24`,sourceRemoved:`_sourceRemoved_18dvh_25`,recordList:`_recordList_18dvh_27`,recordItem:`_recordItem_18dvh_28`,recordLink:`_recordLink_18dvh_30`,recordItemMeta:`_recordItemMeta_18dvh_32`,recordCommit:`_recordCommit_18dvh_34`,recordCommitMessage:`_recordCommitMessage_18dvh_35`,recordSections:`_recordSections_18dvh_36`,documentRow:`_documentRow_18dvh_39`,documentTitle:`_documentTitle_18dvh_40`,commitPanel:`_commitPanel_18dvh_42`,recordEntry:`_recordEntry_18dvh_43`,recordItemHead:`_recordItemHead_18dvh_45`,split:`_split_18dvh_48`,splitList:`_splitList_18dvh_49`,splitContent:`_splitContent_18dvh_53`,splitPicker:`_splitPicker_18dvh_54`,splitPickerMore:`_splitPickerMore_18dvh_54`,recordCommitLinks:`_recordCommitLinks_18dvh_62`,commitBack:`_commitBack_18dvh_63`};function we({change:{event:e,before:t,after:n},features:r,head:a}){g();let o=n??t,s=t=>e.kind===`design`?(0,K.jsx)(te,{design:t,path:t.path,features:r}):(0,K.jsx)(i,{headingLevelStart:4,path:t.path,children:t.body});return(0,K.jsxs)(y,{gap:4,children:[(0,K.jsxs)(S,{gap:3,wrap:`wrap`,className:X.changePlace,children:[(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:e.id}),(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:o?.path}),e.kind===`wiki`?null:e.kind===`instruction`?n&&(0,K.jsx)(m,{to:`/instructions/$instructionId`,params:{instructionId:e.id},children:h(`event.currentInstruction`)}):(0,K.jsx)(m,{to:`/features/$featureId`,params:{featureId:o?.specId??``},search:{...e.kind===`feature`?{}:{selected:e.id,tab:e.kind===`design`?`design`:`requirements`}},...e.kind===`feature`?{}:{hash:e.id},children:h(`event.currentFeature`)}),a&&(0,K.jsx)(m,{to:`/records`,search:{q:e.id},children:h(`commit.documentHistory`)})]}),t&&n?(0,K.jsx)(Ce,{before:t,after:n,features:r}):n?s(n):t?s(t):(0,K.jsx)(k,{color:`secondary`,children:h(`event.noContent`)})]})}function Te({change:e,features:t,head:n,current:r}){g();let i=e.after??e.before;return(0,K.jsxs)(y,{id:e.event.id,as:`section`,gap:4,"aria-label":i?.title??e.event.id,className:X.change,...r?{"aria-current":`location`}:{},children:[(0,K.jsxs)(S,{gap:2,wrap:`wrap`,className:X.changeHead,children:[(0,K.jsx)(ne,{event:e.event}),(0,K.jsx)(C,{level:3,children:i?.title??e.event.id})]}),(0,K.jsx)(we,{change:e,features:t,head:n})]})}function Ee({id:e,useChange:t,features:n,head:r}){g();let i=t(e);return i.error?(0,K.jsx)(P,{error:i.error,retry:()=>{i.refetch()}}):i.data?(0,K.jsx)(Te,{change:i.data,features:n,head:r,current:!1}):(0,K.jsx)(P,{})}function De({label:e,summary:t,footer:n,items:r,children:i}){let a=E(),o=r.find(e=>e.selected);return(0,K.jsxs)(S,{gap:0,className:X.split,children:[(0,K.jsxs)(y,{as:`nav`,gap:2,"aria-label":e,className:X.splitList,children:[t,(0,K.jsx)(ie,{density:`compact`,children:r.map(e=>(0,K.jsx)(ae,{label:e.label,description:e.description,href:e.href,isSelected:e.selected,startContent:e.start,endContent:e.end},e.key))}),n]}),(0,K.jsxs)(y,{gap:3,className:X.splitContent,children:[(0,K.jsx)(y,{gap:0,className:X.splitPicker,children:(0,K.jsx)(le,{label:e,isLabelHidden:!0,width:`100%`,value:o?.key??``,options:r.map(e=>({value:e.key,label:e.label,...e.description?{description:e.description}:{}})),onChange:e=>{let t=r.find(t=>t.key===e);t&&a({href:t.href})}})}),n&&(0,K.jsx)(y,{gap:0,className:X.splitPickerMore,children:n}),i]})]})}function Z({label:e,changes:t,useChange:n,features:r,head:i,documentId:a,href:o,more:s}){g();let c=t.find(e=>e.id===a)??t[0];return c?(0,K.jsx)(De,{label:e,footer:s,items:t.map(e=>({key:e.key,label:e.title,description:e.types.map(e=>h(`change.${e}`)).join(` · `),start:(0,K.jsx)(O,{kind:e.kind}),href:o(e.id),selected:e===c})),children:(0,K.jsx)(Ee,{id:c.id,useChange:n,features:r,head:i},c.key)}):null}var Oe=e=>({key:e.key,id:e.id,kind:e.kind,types:e.types,title:(e.after??e.before)?.title??e.id});function ke(e){let t=e?.pages,n=t?.[0];return n?{...n,changes:t.flatMap(e=>e.changes)}:void 0}var Ae=(e,t)=>function(n){return d(v(e,t,n))};function je({session:e,commit:t,file:n}){g();let r=d(_(e,t,n.path));return r.error?(0,K.jsx)(k,{type:`supporting`,color:`secondary`,role:`alert`,children:h(`source.fileFailed`)}):r.data?r.data.binary?(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:h(`source.binary`)}):r.data.tooLarge?(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:h(`source.tooLarge`)}):(0,K.jsx)(J,{before:r.data.before,after:r.data.after,label:h(`source.fileDiff`,{path:n.path}),language:ve(n.path)}):(0,K.jsx)(P,{placeholder:(0,K.jsx)(N,{label:h(`source.fileLoading`)})})}var Me={added:`green`,modified:`blue`,deleted:`red`,renamed:`purple`},Ne={added:`A`,modified:`M`,deleted:`D`,renamed:`R`},Pe=()=>({added:h(`source.added`),modified:h(`source.modified`),deleted:h(`source.deleted`),renamed:h(`source.renamed`)}),Fe=e=>{let t=e.lastIndexOf(`/`);return t<0?{name:e,folder:``}:{name:e.slice(t+1),folder:e.slice(0,t)}};function Ie({session:e,commit:t,file:n,href:r}){g();let i=M(f(e,t)),a=i.data?.pages.flatMap(e=>e.files)??[],o=a.find(e=>e.path===n),s=d({..._(e,t,n??``),enabled:!!i.data&&!!n&&!o});if(i.error)return(0,K.jsx)(k,{type:`supporting`,color:`secondary`,role:`alert`,children:h(`source.listFailed`)});if(!i.data)return(0,K.jsx)(P,{placeholder:(0,K.jsx)(N,{label:h(`source.listLoading`)})});if(!a.length)return(0,K.jsx)(k,{color:`secondary`,children:h(`source.none`)});let c=o??(n?s.data?.file:a[0]);return(0,K.jsx)(De,{label:h(`source.title`),summary:(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:h(`source.count`,{count:i.data.pages[0].total})}),footer:(0,K.jsx)(I,{label:h(`source.more`),query:i}),items:a.map(e=>{let{name:t,folder:n}=Fe(e.path);return{key:e.path,label:t,description:e.previousPath?`${e.previousPath} →`:n||void 0,href:r(e.path),selected:e===c,start:(0,K.jsx)(F,{label:Ne[e.status],color:Me[e.status],size:`sm`}),end:(0,K.jsxs)(S,{gap:1,children:[e.additions!==null&&(0,K.jsxs)(k,{type:`supporting`,className:X.sourceAdded,children:[`+`,e.additions]}),e.deletions!==null&&(0,K.jsxs)(k,{type:`supporting`,className:X.sourceRemoved,children:[`−`,e.deletions]})]})}}),children:c?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(S,{gap:2,className:X.sourceRow,children:[(0,K.jsx)(F,{label:Pe()[c.status],color:Me[c.status],size:`sm`}),(0,K.jsx)(k,{className:X.sourcePath,children:c.previousPath?`${c.previousPath} → ${c.path}`:c.path})]}),(0,K.jsx)(je,{session:e,commit:t,file:c},c.path)]}):s.error?(0,K.jsx)(k,{type:`supporting`,color:`secondary`,role:`alert`,children:h(`source.fileFailed`)}):(0,K.jsx)(P,{placeholder:(0,K.jsx)(N,{label:h(`source.fileLoading`)})})})}function Le({title:e,commit:t,hash:n,children:r}){return g(),(0,K.jsxs)(y,{gap:4,className:X.commitHeading,children:[(0,K.jsx)(C,{level:1,children:e}),(0,K.jsxs)(S,{gap:4,wrap:`wrap`,className:X.commitMeta,children:[(0,K.jsx)(de,{name:t.author,email:t.email}),(0,K.jsx)(re,{value:t.date,format:`relative`}),(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:new Date(t.date).toLocaleString()}),n??(0,K.jsx)(k,{type:`supporting`,color:`secondary`,className:X.commitHash,children:t.commit.slice(0,12)}),t.committer!==t.author&&(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:h(`event.committer`,{name:t.committer})})]}),r]})}function Re({commit:e,search:t,documentId:n,session:r,features:i,head:a}){g();let o=E(),s=M(T(r,e)),c=M(f(r,e)),l=ke((0,B.useDeferredValue)(s.data)),u=l?fe(l.changes):[],d=u.filter(e=>e.record),_=t.tab??(n||!d.length?`documents`:`records`);if((0,B.useEffect)(()=>{l&&n&&_===`documents`&&document.getElementById(n)?.scrollIntoView({block:`start`})},[l,n,_]),s.error)return(0,K.jsx)(P,{error:s.error,retry:()=>{s.refetch()}});if(!l)return(0,K.jsx)(P,{});let v=u.find(e=>!e.record&&e.missing),b=t=>{o({to:`/records/commits/$commit`,params:{commit:e},search:{tab:t}})},x=e=>e===void 0?``:` ${e}`;return(0,K.jsxs)(y,{gap:0,as:`article`,"aria-label":h(`commit.title`),className:X.commitPage,children:[(0,K.jsx)(m,{to:`/records`,className:X.commitBack,children:h(`commit.back`)}),(0,K.jsx)(Le,{title:l.message,commit:l}),(0,K.jsxs)(A,{role:`tablist`,value:_,onChange:b,hasDivider:!0,children:[(0,K.jsx)(j,{value:`records`,label:h(`commit.tab.records`)+x(d.length),panelId:`commit-records`}),(0,K.jsx)(j,{value:`documents`,label:h(`commit.tab.documents`)+x(l.total),panelId:`commit-documents`}),(0,K.jsx)(j,{value:`code`,label:h(`commit.tab.code`)+x(c.data?.pages[0]?.total),panelId:`commit-code`})]}),_===`records`&&(0,K.jsxs)(y,{id:`commit-records`,role:`tabpanel`,"aria-label":h(`event.records`),gap:3,className:X.commitPanel,children:[d.length?(0,K.jsx)(y,{as:`ul`,gap:0,className:X.recordList,children:d.map(e=>{let t=L(e.record);return(0,K.jsxs)(y,{as:`li`,gap:1,className:X.recordEntry,children:[(0,K.jsxs)(S,{gap:3,className:X.recordItemHead,children:[(0,K.jsx)(m,{to:`/records/$recordId`,params:{recordId:e.record.id},className:X.recordLink,children:e.record.title}),(0,K.jsx)(k,{type:`supporting`,color:`secondary`,className:X.recordItemMeta,children:h(`activity.recordCount`,{count:e.events.length})})]}),t&&(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:t})]},e.key)})}):(0,K.jsx)(k,{color:`secondary`,children:h(`event.noRecords`)}),(0,K.jsx)(I,{label:h(`commit.moreRecords`),query:s}),v&&(0,K.jsxs)(y,{gap:2,children:[(0,K.jsx)(k,{color:`secondary`,children:h(`event.noRecord`)}),(0,K.jsx)(S,{gap:2,wrap:`wrap`,className:X.reasonRecords,children:v.events.map(t=>(0,K.jsxs)(m,{to:`/records/commits/$commit`,params:{commit:e},search:{tab:`documents`},hash:t.id,className:X.reasonRecord,children:[(0,K.jsx)(O,{kind:t.kind}),(t.after??t.before)?.title??t.id]},t.key))})]})]}),_===`documents`&&(0,K.jsx)(y,{id:`commit-documents`,role:`tabpanel`,"aria-label":h(`commit.documents`),gap:0,className:X.commitPanel,children:l.changes.length?(0,K.jsx)(Z,{label:h(`commit.documents`),changes:l.changes.map(Oe),useChange:Ae(r,e),features:i,head:a,documentId:n,more:(0,K.jsx)(I,{label:h(`commit.moreDocuments`),query:s}),href:t=>`/records/commits/${encodeURIComponent(e)}?tab=documents#${encodeURIComponent(t)}`}):(0,K.jsx)(p,{isCompact:!0,title:h(`commit.noDocuments`),description:h(`commit.noDocumentsDescription`)})}),_===`code`&&(0,K.jsx)(y,{id:`commit-code`,role:`tabpanel`,"aria-label":h(`source.title`),gap:0,className:X.commitPanel,children:(0,K.jsx)(Ie,{session:r,commit:e,file:t.file,href:t=>`/records/commits/${encodeURIComponent(e)}?tab=code&file=${encodeURIComponent(t)}`})})]})}function ze({commit:e,search:t}){g();let n=z({select:e=>e.hash})||void 0;return(0,K.jsx)(D,{header:w,title:h(`nav.history`),root:`/records`,hasTitle:!1,isWide:!0,trail:()=>[{label:e.slice(0,12)}],children:({checkout:r,session:i})=>(0,K.jsx)(Re,{commit:e,search:t,documentId:n,session:i,features:r.index.features,head:r.head})})}function Be({session:e,commit:t,others:n}){g();let r=M(f(e,t)).data?.pages[0]?.total;return!n&&!r?null:(0,K.jsxs)(S,{gap:4,wrap:`wrap`,className:X.recordCommitLinks,children:[n>0&&(0,K.jsx)(m,{to:`/records/commits/$commit`,params:{commit:t},search:{tab:`records`},children:h(`record.otherRecords`,{count:n})}),!!r&&(0,K.jsx)(m,{to:`/records/commits/$commit`,params:{commit:t},search:{tab:`code`},children:h(`record.codeFiles`,{count:r})})]})}function Ve({record:e}){return g(),(0,K.jsx)(y,{gap:6,className:X.recordSections,children:e.sections.map(e=>(0,K.jsxs)(y,{as:`section`,gap:2,"aria-label":R[e.key](),children:[(0,K.jsx)(C,{level:2,children:R[e.key]()}),(0,K.jsx)(i,{headingLevelStart:3,children:e.body})]},e.key))})}var Q=e=>({key:e.id,id:e.id,kind:e.kind,types:e.types,title:e.title}),He=e=>function(t){let n=d(b(e,t));return{data:n.data&&{event:Q(n.data.change),before:n.data.before,after:n.data.after},error:n.error,refetch:n.refetch}};function Ue({recordId:e,documentId:t,session:n,features:r,head:i}){g();let a=d(o(n));if(a.error)return(0,K.jsx)(P,{error:a.error,retry:()=>{a.refetch()}});if(!a.data)return(0,K.jsx)(P,{});let s=a.data.records.find(t=>t.id===e);if(!s)return(0,K.jsx)(p,{isCompact:!0,title:h(`record.missing`)});let c=a.data.changes.filter(e=>s.docs.includes(e.id)).map(Q);return(0,K.jsxs)(y,{gap:0,as:`article`,"aria-label":h(`record.title`),className:X.commitPage,children:[(0,K.jsx)(m,{to:`/records`,className:X.commitBack,children:h(`commit.back`)}),(0,K.jsxs)(y,{gap:4,className:X.commitHeading,children:[(0,K.jsx)(C,{level:1,children:s.title}),(0,K.jsxs)(S,{gap:2,className:X.recordCommit,children:[(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:s.id}),(0,K.jsx)(k,{type:`supporting`,color:`secondary`,"aria-hidden":!0,children:`·`}),(0,K.jsx)(m,{to:`/records/working`,className:X.recordCommitMessage,children:h(`working.title`)}),s.draft&&(0,K.jsx)(F,{label:h(`working.draft`),color:`yellow`,size:`sm`})]})]}),(0,K.jsx)(Ve,{record:s}),(0,K.jsxs)(y,{as:`section`,gap:3,"aria-label":h(`record.documents`),className:X.commitSection,children:[(0,K.jsx)(C,{level:2,children:h(`record.documents`)}),c.length?(0,K.jsx)(Z,{label:h(`record.documents`),changes:c,useChange:He(n),features:r,head:i,documentId:t,href:t=>`/records/${encodeURIComponent(e)}#${encodeURIComponent(t)}`}):(0,K.jsx)(k,{color:`secondary`,children:h(`working.noExplained`)})]})]})}function We({recordId:e,documentId:t,session:n,features:r,head:i}){g();let a=d(c(n,i,e)),o=a.data?.commit,s=M({...T(n,o??``,e),enabled:!!o}),u=ke((0,B.useDeferredValue)(s.data));if((0,B.useEffect)(()=>{u&&t&&document.getElementById(t)?.scrollIntoView({block:`start`})},[u,t]),a.error instanceof l&&a.error.code===`NOT_FOUND`)return(0,K.jsx)(Ue,{recordId:e,documentId:t,session:n,features:r,head:i});let f=a.error??s.error;if(f)return(0,K.jsx)(P,{error:f,retry:()=>{a.error?a.refetch():s.refetch()}});if(!u||!o||!a.data)return(0,K.jsx)(P,{});let p=a.data.record,_=u.changes.map(Oe);return(0,K.jsxs)(y,{gap:0,as:`article`,"aria-label":h(`record.title`),className:X.commitPage,children:[(0,K.jsx)(m,{to:`/records`,className:X.commitBack,children:h(`commit.back`)}),(0,K.jsxs)(Le,{title:p.title,commit:u,hash:(0,K.jsx)(m,{to:`/records/commits/$commit`,params:{commit:o},className:X.commitHashLink,children:o.slice(0,12)}),children:[(0,K.jsxs)(S,{gap:2,className:X.recordCommit,children:[(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:p.id}),(0,K.jsx)(k,{type:`supporting`,color:`secondary`,"aria-hidden":!0,children:`·`}),(0,K.jsx)(m,{to:`/records/commits/$commit`,params:{commit:o},className:X.recordCommitMessage,children:u.message})]}),(0,K.jsx)(Be,{session:n,commit:o,others:a.data.others})]}),(0,K.jsx)(Ve,{record:p}),(0,K.jsxs)(y,{as:`section`,gap:3,"aria-label":h(`record.documents`),className:X.commitSection,children:[(0,K.jsx)(C,{level:2,children:h(`record.documents`)}),(0,K.jsx)(Z,{label:h(`record.documents`),changes:_,useChange:Ae(n,o),features:r,head:i,documentId:t,more:(0,K.jsx)(I,{label:h(`commit.moreDocuments`),query:s}),href:t=>`/records/${encodeURIComponent(e)}#${encodeURIComponent(t)}`})]})]})}function Ge({recordId:e}){g();let t=z({select:e=>e.hash})||void 0;return(0,K.jsx)(D,{header:w,title:h(`nav.history`),root:`/records`,hasTitle:!1,isWide:!0,trail:()=>[{label:e}],children:({checkout:n,session:r})=>n.head?(0,K.jsx)(We,{recordId:e,documentId:t,session:r,features:n.index.features,head:n.head}):(0,K.jsx)(p,{kind:`empty`,title:h(`history.emptyTitle`),description:h(`history.emptyDescription`)})})}function Ke({search:e,documentId:t,session:n,features:r,head:i}){g();let a=E(),s=d(o(n)),c=s.data;if(s.error)return(0,K.jsx)(P,{error:s.error,retry:()=>{s.refetch()}});if(!c)return(0,K.jsx)(P,{});let l=e.tab??(t||!c.records.length?`documents`:`records`),u=c.changes.filter(e=>c.withoutRecord.includes(e.id));return(0,K.jsxs)(y,{gap:0,as:`article`,"aria-label":h(`working.title`),className:X.commitPage,children:[(0,K.jsx)(m,{to:`/records`,className:X.commitBack,children:h(`commit.back`)}),(0,K.jsxs)(y,{gap:2,className:X.commitHeading,children:[(0,K.jsx)(C,{level:1,children:h(`working.title`)}),(0,K.jsx)(k,{color:`secondary`,children:h(`working.description`)})]}),(0,K.jsxs)(A,{role:`tablist`,value:l,onChange:e=>{a({to:`/records/working`,search:{tab:e}})},hasDivider:!0,children:[(0,K.jsx)(j,{value:`records`,label:`${h(`commit.tab.records`)} ${c.records.length}`,panelId:`working-records`}),(0,K.jsx)(j,{value:`documents`,label:`${h(`commit.tab.documents`)} ${c.changes.length}`,panelId:`working-documents`})]}),l===`records`&&(0,K.jsxs)(y,{id:`working-records`,role:`tabpanel`,"aria-label":h(`event.records`),gap:3,className:X.commitPanel,children:[c.records.length?(0,K.jsx)(y,{as:`ul`,gap:0,className:X.recordList,children:c.records.map(e=>{let t=L(e);return(0,K.jsxs)(y,{as:`li`,gap:1,className:X.recordEntry,children:[(0,K.jsxs)(S,{gap:3,className:X.recordItemHead,children:[(0,K.jsxs)(S,{gap:2,vAlign:`center`,children:[(0,K.jsx)(m,{to:`/records/$recordId`,params:{recordId:e.id},className:X.recordLink,children:e.title}),e.draft&&(0,K.jsx)(F,{label:h(`working.draft`),color:`yellow`,size:`sm`})]}),(0,K.jsx)(k,{type:`supporting`,color:`secondary`,className:X.recordItemMeta,children:h(`activity.recordCount`,{count:e.docs.length})})]}),t&&(0,K.jsx)(k,{type:`supporting`,color:`secondary`,children:t})]},e.id)})}):(0,K.jsx)(k,{color:`secondary`,children:h(`working.noRecords`)}),!!u.length&&(0,K.jsxs)(y,{gap:2,children:[(0,K.jsx)(k,{color:`secondary`,children:h(`event.noRecord`)}),(0,K.jsx)(S,{gap:2,wrap:`wrap`,className:X.reasonRecords,children:u.map(e=>(0,K.jsxs)(m,{to:`/records/working`,search:{tab:`documents`},hash:e.id,className:X.reasonRecord,children:[(0,K.jsx)(O,{kind:e.kind}),e.title]},e.id))})]})]}),l===`documents`&&(0,K.jsx)(y,{id:`working-documents`,role:`tabpanel`,"aria-label":h(`commit.documents`),gap:0,className:X.commitPanel,children:c.changes.length?(0,K.jsx)(Z,{label:h(`commit.documents`),changes:c.changes.map(Q),useChange:He(n),features:r,head:i,documentId:t,href:e=>`/records/working?tab=documents#${encodeURIComponent(e)}`}):(0,K.jsx)(p,{isCompact:!0,title:h(`working.noDocuments`)})})]})}function qe({search:e}){g();let t=z({select:e=>e.hash})||void 0;return(0,K.jsx)(D,{header:w,title:h(`nav.history`),root:`/records`,hasTitle:!1,isWide:!0,trail:()=>[{label:h(`working.title`)}],children:({checkout:n,session:r})=>(0,K.jsx)(Ke,{search:e,documentId:t,session:r,features:n.index.features,head:n.head})})}var Je=(e,t)=>{let n=decodeURIComponent(t);return e.includes(n)?n:e[0]};async function $(e,t,n,i,a){let o=Je(i,a);if(!o)return;let s=await e.ensureQueryData(v(t,n,o)).catch(()=>void 0);s&&await r([s.before?.body,s.after?.body])}async function Ye(e,t,n,r){let{session:i}=await x(e);if(!i)return;let[a]=await Promise.all([e.ensureInfiniteQueryData(T(i,t)).catch(()=>void 0),ee(e.ensureInfiniteQueryData(f(i,t)))]),o=a?.pages[0];o&&(n??(r||!o.changes.some(e=>e.records.length)?`documents`:`records`))===`documents`&&await $(e,i,t,o.changes.map(e=>e.id),r)}async function Xe(e,t,n){let{session:r,checkout:i}=await x(e);if(!r||!i?.head)return;let a=await e.ensureQueryData(c(r,i.head,t)).catch(()=>void 0);if(!a){await ee(e.ensureQueryData(o(r)));return}let s=(await e.ensureInfiniteQueryData(T(r,a.commit,t)).catch(()=>void 0))?.pages[0];s&&await $(e,r,a.commit,s.changes.map(e=>e.id),n)}async function Ze(e,t,n){let{session:i}=await x(e);if(!i)return;let a=await e.ensureQueryData(o(i)).catch(()=>void 0);if(!a||(t??(n||!a.records.length?`documents`:`records`))!==`documents`)return;let s=Je(a.changes.map(e=>e.id),n),c=s?await e.ensureQueryData(b(i,s)).catch(()=>void 0):void 0;c&&await r([c.before?.body,c.after?.body])}export{Ge as a,qe as i,Xe as n,ze as o,Ze as r,Ye as t};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{l as t,n,q as r}from"./themeProps-CkLe5zXY.js";import{C as i,F as a,V as o,a as s,an as c,b as l,bt as u,cn as d,fn as f,ht as p,l as m,ln as h,mt as g,nt as _,rn as v,t as y,u as b,y as x}from"./page-header-CVCjLFQo.js";import{c as S,h as C,n as w,s as T}from"./document-Q3lvgyX8.js";import{a as E}from"./useMediaQuery-twbHF0pO.js";import{E as D,W as O,w as k}from"./Icon-DPaLmsmh.js";import{r as A}from"./IconButton-Br-4XhQr.js";import{t as j}from"./useInfiniteQuery-03AIcFvA.js";import{n as M,t as N}from"./Grid-DCCm_m5g.js";import{r as P}from"./Token-BV_4bSkY.js";import{t as F}from"./load-more-CymfxLt7.js";import{i as I,n as L,r as R}from"./contributor-Bs3RWHQv.js";var z=e(r(),1),B=t(),V={interactive:{kVAEAm:`x1n2onr6`,kkrTdU:`x1ypdohk x16khyan`,kybGjl:`x1hl2dhg`,kMwMTN:`x1heor9g`,$$css:!0},overlay:{k5JduY:`x1s928wv`,kwXMNM:`x1j6awrg`,kv0HGH:`xarstr8`,kloYau:`x2q1x1w`,kRicXK:`x1ywzrc5`,kPNhGg:`x97pup0`,kA8PQs:`x1dlmc9c`,ks3ayO:`xyhc2n1`,kAcZsS:`x1k7wiig`,$$css:!0},hoverOnPointer:{k8t4tK:`x1912f9e`,$$css:!0},borderless:{kMzoRj:`xc342km`,$$css:!0},bordered:{kVAM5u:`x14i3s5s`,kZCmMZ:`xs19ii7`,kwRFfy:`x12frdag`,kLKAdn:`x1nex4ik`,kGO01o:`xbv1mwh`,k1ekBW:`xshfolx`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,$$css:!0},borderedHoverOnPointer:{kpsWHe:`x1xwh4np`,$$css:!0},disabled:{kkrTdU:`xt0e3qv`,kSiTet:`xbyyjgo`,$$css:!0}};function H({label:e,onClick:t,onMouseUp:r,href:i,target:a,isDisabled:o=!1,children:s,padding:l,variant:u=`default`,elevation:d=`none`,width:f,height:p,maxWidth:m,ref:h,xstyle:g,className:_,style:v,...y}){let b=(0,z.useRef)(null),x=(0,z.useRef)(null),S=A(),{onClick:C,onMouseUp:w}=c({containerRef:b,interactiveRef:x,onClick:t,href:i,target:a,disabled:o}),T=r?e=>{w(e),r(e)}:w,k=i!=null,j=u==="default";return(0,B.jsxs)(M,{ref:D(h,b),width:f,height:p,maxWidth:m,padding:l,variant:u,elevation:d,...E(n(`clickable-card`,{variant:u}),O.focusWithin(),_,v),xstyle:[V.interactive,j?V.bordered:V.borderless,!o&&V.overlay,!o&&V.hoverOnPointer,!o&&j&&V.borderedHoverOnPointer,o&&V.disabled,g],onClick:o?void 0:C,onMouseUp:o?void 0:T,...y,children:[k?(0,B.jsx)(S,{ref:x,href:i,target:a,"aria-label":e,"aria-disabled":o||void 0,tabIndex:o?-1:0,className:`x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr xzpqnlu xuxw1ft xc342km`}):(0,B.jsx)(`button`,{ref:x,type:`button`,"aria-label":e,disabled:o,onClick:t,className:`x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr xzpqnlu xuxw1ft xc342km`}),s]})}H.displayName=`ClickableCard`;var U={featureDetail:`_featureDetail_yozgk_1`,featureBack:`_featureBack_yozgk_2`,entryBody:`_entryBody_yozgk_7`,entryTitle:`_entryTitle_yozgk_8`,personCard:`_personCard_yozgk_10`,personCardBody:`_personCardBody_yozgk_11`,personStats:`_personStats_yozgk_12`,personHero:`_personHero_yozgk_13`,personActivityRow:`_personActivityRow_yozgk_14`,personSection:`_personSection_yozgk_16`,oneLine:`_oneLine_yozgk_19`};async function W(e,t,n){let{session:r,checkout:a}=await m(e);if(!r)return;if(!t){await b(e.ensureInfiniteQueryData(l(r,n.q)));return}let o=await e.ensureQueryData(x(r,t)).catch(()=>void 0);o&&a?.head&&await b(e.ensureInfiniteQueryData(i(r,a.head,{author:o.person.email},10)))}function G({session:e,head:t,email:n,search:r}){return f(),n?(0,B.jsx)(K,{session:e,head:t,email:n}):(0,B.jsx)(q,{session:e,search:r})}function K({session:e,head:t,email:n}){let r=o(x(e,n));return r.error instanceof a&&r.error.code===`NOT_FOUND`?(0,B.jsx)(s,{kind:`not-found`,title:d(`contributors.notFoundTitle`),description:d(`contributors.notFoundDescription`,{email:n}),actions:(0,B.jsx)(u,{to:`/contributors`,children:d(`contributors.backToList`)})}):r.error?(0,B.jsx)(P,{error:r.error,retry:()=>{r.refetch()}}):r.data?(0,B.jsx)(J,{session:e,head:t,person:r.data.person,features:r.data.features}):(0,B.jsx)(P,{})}function q({session:e,search:t}){f();let n=j({...l(e,t.q),placeholderData:_}),r=(0,z.useDeferredValue)(n.data);if(n.error)return(0,B.jsx)(P,{error:n.error,retry:()=>{n.refetch()}});if(!r)return(0,B.jsx)(P,{});let i=r.pages.flatMap(e=>e.people);return i.length?(0,B.jsxs)(p,{gap:3,children:[(0,B.jsx)(k,{type:`supporting`,color:`secondary`,children:d(`contributors.count`,{count:r.pages[0].total})}),(0,B.jsx)(N,{columns:{minWidth:220,repeat:`fill`},gap:3,children:i.map(e=>(0,B.jsx)(H,{label:e.name,href:R(e.email),padding:4,elevation:`none`,children:(0,B.jsxs)(p,{gap:3,className:U.personCard,children:[(0,B.jsx)(I,{name:e.name,src:L(e.email),shape:`circle`,size:`lg`}),(0,B.jsxs)(p,{gap:1,className:U.personCardBody,children:[(0,B.jsx)(k,{weight:`semibold`,className:U.oneLine,children:e.name}),(0,B.jsx)(k,{type:`supporting`,color:`secondary`,className:U.oneLine,children:e.email})]}),(0,B.jsxs)(g,{gap:3,wrap:`wrap`,className:U.personStats,children:[(0,B.jsx)(k,{type:`supporting`,color:`secondary`,children:d(`contributors.cardCommits`,{count:e.commits})}),(0,B.jsx)(k,{type:`supporting`,color:`secondary`,children:d(`contributors.cardFeatures`,{count:e.features})}),(0,B.jsx)(T,{value:e.latest,format:`relative`})]})]})},e.email))}),(0,B.jsx)(g,{gap:0,children:(0,B.jsx)(F,{label:d(`contributors.more`),query:n})})]}):(0,B.jsx)(s,{kind:t.q?`search`:`empty`,title:d(`contributors.emptyTitle`),description:d(`contributors.emptyDescription`)})}function J({session:e,head:t,person:n,features:r}){f();let a=j({...i(e,t??``,{author:n.email},10),enabled:!!t}).data?.pages[0]?.events??[];return(0,B.jsxs)(p,{as:`article`,"aria-label":d(`contributors.detail`),gap:0,className:U.featureDetail,children:[(0,B.jsx)(u,{to:`/contributors`,className:U.featureBack,children:d(`contributors.back`)}),(0,B.jsxs)(g,{gap:5,className:U.personHero,children:[(0,B.jsx)(I,{name:n.name,src:L(n.email),shape:`circle`,size:72}),(0,B.jsxs)(p,{gap:2,className:U.entryBody,children:[(0,B.jsx)(v,{level:1,children:n.name}),(0,B.jsx)(k,{color:`secondary`,children:n.email}),(0,B.jsxs)(g,{gap:4,wrap:`wrap`,children:[(0,B.jsx)(k,{type:`supporting`,color:`secondary`,children:d(`contributors.gitCommits`,{count:n.commits})}),(0,B.jsx)(k,{type:`supporting`,color:`secondary`,children:h(`contributors.latest`,{time:(0,B.jsx)(T,{value:n.latest,format:`relative`,type:`inherit`,color:`inherit`})})}),(0,B.jsx)(u,{to:`/records`,search:{author:n.email},children:d(`contributors.activity`)})]})]})]}),(0,B.jsxs)(p,{gap:4,className:U.personSection,children:[(0,B.jsx)(v,{level:3,children:d(`contributors.features`)}),r.length?(0,B.jsx)(N,{columns:{minWidth:220,repeat:`fill`},gap:3,children:r.map(e=>(0,B.jsx)(H,{label:e.title,href:`/features/${encodeURIComponent(e.id)}`,padding:4,elevation:`none`,children:(0,B.jsxs)(p,{gap:1,children:[(0,B.jsx)(k,{weight:`semibold`,className:U.oneLine,children:e.title}),(0,B.jsx)(k,{type:`supporting`,color:`secondary`,children:d(`contributors.featureShare`,{commits:e.commits,requirements:e.requirements})})]})},e.id))}):(0,B.jsx)(k,{color:`secondary`,children:d(`contributors.noSpecCommits`)})]}),(0,B.jsxs)(p,{gap:4,className:U.personSection,children:[(0,B.jsx)(v,{level:3,children:d(`activity.recent`)}),a.length?(0,B.jsx)(p,{gap:0,className:U.personActivity,children:a.map(e=>(0,B.jsxs)(g,{gap:3,className:U.personActivityRow,children:[(0,B.jsx)(w,{event:e}),(0,B.jsx)(u,{to:`/records/commits/$commit`,params:{commit:e.commit},hash:e.id,className:U.entryTitle,children:(e.after??e.before)?.title??e.id}),(0,B.jsx)(T,{value:e.date,format:`relative`})]},e.key))}):(0,B.jsx)(k,{color:`secondary`,children:d(`contributors.noRecentActivity`)})]})]})}function Y({email:e,search:t,change:n}){return f(),(0,B.jsx)(C,{header:y,title:d(`nav.contributors`),root:`/contributors`,hasTitle:!e,trail:t=>{let n=e?t.index.people.find(t=>t.email===e):void 0;return n?[{label:n.name}]:[]},...e?{}:{filters:()=>(0,B.jsx)(S,{label:d(`filters.search`),placeholder:d(`filters.searchContributors`),value:t.q??``,onChange:e=>n({...t,q:e||void 0},!0)})},children:({checkout:n,session:r})=>(0,B.jsx)(G,{session:r,head:n.head,email:e,search:t})})}export{W as n,Y as t};
@@ -1 +0,0 @@
1
- import{l as e}from"./themeProps-CkLe5zXY.js";import{l as t}from"./index-BeeP8ZFW.js";var n=e();function r(){return(0,n.jsx)(t,{})}export{r as component};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/TimestampHoverCard-B5JBaQDZ.js","assets/rolldown-runtime-hePW80VL.js","assets/themeProps-CkLe5zXY.js","assets/Icon-DPaLmsmh.js","assets/useMediaQuery-twbHF0pO.js","assets/preload-helper-BZ1Pz5am.js","assets/IconButton-Br-4XhQr.js","assets/useIsomorphicLayoutEffect-BiEJxDg_.js","assets/HoverCard-Bpt8LVFT.js","assets/useClipboard-Cqx6Upy7.js"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{K as t,l as n,n as r,q as i}from"./themeProps-CkLe5zXY.js";import{c as a,n as o,o as s,r as c,s as l}from"./document-DPtVyR5y.js";import{n as u}from"./useIsomorphicLayoutEffect-BiEJxDg_.js";import{D as d,F as f,M as p,V as m,bt as h,cn as g,fn as _,ft as v,ht as y,ln as ee,m as te,mt as b,p as x,pt as S,r as C,rn as w,un as T}from"./page-header-CVCjLFQo.js";import{g as E,p as D}from"./Table-XuC9zK9w.js";import{a as O}from"./useMediaQuery-twbHF0pO.js";import{C as ne,E as re,G as k,S as A,_ as j,n as ie,t as M,v as ae,w as N}from"./Icon-DPaLmsmh.js";import{t as P}from"./preload-helper-BZ1Pz5am.js";import{n as F,s as oe,t as I}from"./IconButton-Br-4XhQr.js";import{a as se,i as ce,o as le}from"./Markdown-ev4hMr67.js";import{t as L}from"./useDevWarning-Dudfg3qF.js";import{t as ue}from"./HoverCard-Bpt8LVFT.js";import{r as R,t as z}from"./Token-BV_4bSkY.js";import{n as de,t as B}from"./HgiRefresh-CAJ0Xdvi.js";var V=e(i(),1),H=n();function fe(e,t){let n=new Intl.DateTimeFormat(`en-US`,{timeZone:t,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hourCycle:`h23`,calendar:`gregory`}).formatToParts(new Date(e)),r=Object.fromEntries(n.filter(e=>e.type!==`literal`).map(e=>[e.type,Number(e.value)]));return{year:r.year,month:r.month,day:r.day,hour:r.hour,minute:r.minute,second:r.second}}var U={date:{month:`short`,day:`numeric`,year:`numeric`},date_long:{year:`numeric`,month:`long`,day:`numeric`},date_weekday:{weekday:`short`,month:`short`,day:`numeric`,year:`numeric`}};function W(...e){let t=e.flatMap(e=>typeof e==`string`?e.trim().split(/\s+/):[]).filter(Boolean);if(t.length!==0)return Array.from(new Set(t)).join(` `)}function pe(e,t=[],n){return{ariaLabelledBy:n?W(n.labelID,e):void 0,ariaDescribedBy:W(n?.describedByIDs,...t)}}function G(){return(0,V.use)(ae).locale}var K={warning:`warning`,error:`error`,success:`success`},q={warning:`@astryx.input.statusButton.warning`,error:`@astryx.input.statusButton.error`,success:`@astryx.input.statusButton.success`},me={statusButton:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmVPX3:`x1717udv`,kogj98:`x1ghz6dp`,kMwMTN:`x1heor9g`,kkrTdU:`x1ypdohk x16khyan`,kfzvcC:`x67bb7w`,kaIpWk:`xjspbzw`,kInvED:`x7s97pk`,$$css:!0}};function he({status:e,statusVariant:n=`attached`,isInGroup:i=!1,size:a=`md`}){let o=j(),s=n===`tooltip`&&!!e?.message,[c,l]=(0,V.useState)(void 0),d=u({placement:`above`,isEnabled:s,isOpen:c}),f=(0,V.useCallback)(()=>{l(void 0)},[]),p=(0,V.useCallback)(()=>{typeof window>`u`||typeof window.matchMedia!=`function`||!window.matchMedia(`(hover: none)`).matches||l(e=>e!==!0)},[]);if((0,V.useEffect)(()=>{if(c!==!0)return;let e=e=>{e.key===`Escape`&&l(void 0)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[c]),!e||i||n===`detached`)return{statusIcon:null,describedBy:void 0};let m=(0,H.jsx)(M,{icon:K[e.type],size:a,color:e.type,...r(`input-status-icon`,{size:a,status:e.type})});return s?{statusIcon:(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`button`,{type:`button`,ref:d.ref,"aria-label":o(q[e.type]),"aria-describedby":d.describedBy,onClick:p,onBlur:f,...t(k.focusVisible,me.statusButton),children:m}),d.renderTooltip(e.message)]}),describedBy:d.describedBy}:{statusIcon:m,describedBy:void 0}}var ge=[[`path`,{d:`M9 14L11 16L15 12`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M8.00002 4L8 4.99997C7.99998 5.94279 7.99998 6.4142 8.29287 6.7071C8.58577 7 9.05718 7 10 7L14 7C14.9428 7 15.4142 7 15.7071 6.70711C16 6.41421 16 5.94281 16 5V4`,stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M14.45 4L13.7149 4.1492C13.7853 4.49569 14.088 4.746 14.4416 4.74995L14.45 4ZM9.54997 4L9.55835 4.74995C9.91188 4.746 10.2146 4.49569 10.285 4.1492L9.54997 4ZM19.1213 4.87868L19.6517 4.34835L19.6517 4.34835L19.1213 4.87868ZM19.1213 21.1213L19.6517 21.6517V21.6517L19.1213 21.1213ZM16 4.01732L16.0226 3.26766C16.0179 3.26752 16.0131 3.26742 16.0084 3.26737L16 4.01732ZM4.87868 4.87868L5.40901 5.40901V5.40901L4.87868 4.87868ZM8 4.01732L7.99162 3.26737C7.98688 3.26742 7.98215 3.26752 7.97741 3.26766L8 4.01732ZM14.45 4L15.185 3.8508C14.8838 2.36703 13.5732 1.25 12 1.25V2V2.75C12.8457 2.75 13.5529 3.35073 13.7149 4.1492L14.45 4ZM12 2V1.25C10.4268 1.25 9.11615 2.36703 8.81496 3.8508L9.54997 4L10.285 4.1492C10.4471 3.35073 11.1542 2.75 12 2.75V2ZM20 10H20.75C20.75 8.60699 20.7516 7.48678 20.6335 6.60825C20.5125 5.70814 20.2536 4.95027 19.6517 4.34835L19.1213 4.87868L18.591 5.40901C18.8678 5.68577 19.0482 6.07435 19.1469 6.80812C19.2484 7.56347 19.25 8.56458 19.25 10H20ZM20 16H20.75V10H20H19.25V16H20ZM20 16H19.25C19.25 17.4354 19.2484 18.4365 19.1469 19.1919C19.0482 19.9257 18.8678 20.3142 18.591 20.591L19.1213 21.1213L19.6517 21.6517C20.2536 21.0497 20.5125 20.2919 20.6335 19.3918C20.7516 18.5132 20.75 17.393 20.75 16H20ZM14 22V22.75C15.393 22.75 16.5132 22.7516 17.3918 22.6335C18.2919 22.5125 19.0497 22.2536 19.6517 21.6517L19.1213 21.1213L18.591 20.591C18.3142 20.8678 17.9257 21.0482 17.1919 21.1469C16.4365 21.2484 15.4354 21.25 14 21.25V22ZM16 4.01732L15.9774 4.76698C17.5421 4.81413 18.1804 4.99842 18.591 5.40901L19.1213 4.87868L19.6517 4.34835C18.7796 3.47633 17.5648 3.31413 16.0226 3.26766L16 4.01732ZM10 22V22.75H14V22V21.25H10V22ZM10 22V21.25C8.56458 21.25 7.56347 21.2484 6.80812 21.1469C6.07434 21.0482 5.68577 20.8678 5.40901 20.591L4.87868 21.1213L4.34835 21.6517C4.95027 22.2536 5.70814 22.5125 6.60825 22.6335C7.48678 22.7516 8.60699 22.75 10 22.75V22ZM4 16H3.25C3.25 17.393 3.24841 18.5132 3.36652 19.3918C3.48754 20.2919 3.74643 21.0497 4.34835 21.6517L4.87868 21.1213L5.40901 20.591C5.13225 20.3142 4.9518 19.9257 4.85315 19.1919C4.75159 18.4365 4.75 17.4354 4.75 16H4ZM4 10H4.75C4.75 8.56458 4.75159 7.56347 4.85315 6.80812C4.9518 6.07435 5.13225 5.68577 5.40901 5.40901L4.87868 4.87868L4.34835 4.34835C3.74643 4.95027 3.48754 5.70814 3.36652 6.60825C3.24841 7.48678 3.25 8.60699 3.25 10H4ZM8 4.01732L7.97741 3.26766C6.43521 3.31413 5.22037 3.47633 4.34835 4.34835L4.87868 4.87868L5.40901 5.40901C5.8196 4.99842 6.4579 4.81413 8.02259 4.76698L8 4.01732ZM4 10H3.25V16H4H4.75V10H4ZM8 4.01732L8.00838 4.76728L9.55835 4.74995L9.54997 4L9.54159 3.25005L7.99162 3.26737L8 4.01732ZM16 4.01732L16.0084 3.26737L14.4583 3.25005L14.45 4L14.4416 4.74995L15.9916 4.76728L16 4.01732Z`,fill:`currentColor`,key:`2`}]],_e={base:{kB7OPa:`x9f619`,kVAEAm:`x1n2onr6`,kY2c9j:`x1vjfegm`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x1txdalj`,k8WAf4:`xu0wf1k`,kg3NbH:`xf314gf`,kMzoRj:`x1litavf`,ksu8eU:`x1y0btm7`,kVAM5u:`xvy26l8 x6q1khz`,"--_field-radius":`x1832zxr`,kaIpWk:`xvdfih8`,kWkggS:`x10xzikg`,k1ekBW:`x12zzom9`,kIyJzY:`xuedmi6 x12w9bfk`,kAMwcw:`xlr8y92`,kGVxlE:`x1gnnqk1 x1xqjsvb xuihb5h`,kI3sdo:`x1a2a7pz`,$$css:!0},disabled:{kkrTdU:`xt0e3qv`,kSiTet:`xbyyjgo`,kVAM5u:`xvy26l8`,kGVxlE:`x1gnnqk1`,$$css:!0}},ve={warning:{kVAM5u:`x8wg1ba`,$$css:!0},error:{kVAM5u:`x1ofxpqo`,$$css:!0},success:{kVAM5u:`x16m2moy`,$$css:!0}},ye={warning:{kGVxlE:`x1gnnqk1 x9156jc`,$$css:!0},error:{kGVxlE:`x1gnnqk1 x1bgmis8`,$$css:!0},success:{kGVxlE:`x1gnnqk1 x8wp45d`,$$css:!0}},be={warning:{kVAM5u:`x8wg1ba xa1yw2k`,$$css:!0},error:{kVAM5u:`x1ofxpqo xk2sxw7`,$$css:!0},success:{kVAM5u:`x16m2moy xyq33ac`,$$css:!0}},xe={button:{kZKoxP:`x1qx5ct2`,kmuXW:`x2lah0s`,kVAEAm:`x1n2onr6`,"--_input-clear-hit-inset":`xtoycft x181bpwf`,"--_input-clear-hit-content":`xqxtgf4 xp8r40j`,k5JduY:`xh3pasq`,kwXMNM:`x1j6awrg`,kv0HGH:`xht581f`,$$css:!0}};function Se({label:e,onClick:t,onPointerDown:n,onClickCapture:i,xstyle:a,iconClassName:o}){let{className:s}=r(`input-clear-icon`),{className:c}=r(`input-clear-button`);return(0,H.jsx)(F,{variant:`ghost`,size:`sm`,label:e,className:c,icon:(0,H.jsx)(M,{icon:`close`,size:`sm`,color:`secondary`,className:o==null?s:`${s} ${o}`}),onClick:t,onPointerDown:n,onClickCapture:i,isIconOnly:!0,xstyle:[xe.button,a]})}function Ce(e){return Se(e)}function we(e){return Se(e)}Ce.displayName=`InputClearButton`;var Te={inGroup:{kUk6DE:`x98rzlu`,k7Eaqz:`xeuugli`,kZKoxP:`x5yr21d`,keTefX:`xd10s4z x1pwwqoy`,krdFHd:`x15mokao x8eehn2`,kVL7Gh:`xbiv7yw x1xrp5p4`,kfmiAY:`x1ga7v0g x1tzxhge`,kT0f0o:`x16uus16 x1rmb4wm`,kXnDq0:`x1rm9qnc`,$$css:!0}},Ee=(0,V.createContext)(null);Ee.displayName=`InputGroupContext`;function De(){return(0,V.use)(Ee)}var Oe={sm:{kZKoxP:`x6k0iem`,$$css:!0},md:{kZKoxP:`x1ueg155`,$$css:!0},lg:{kZKoxP:`xssyfek`,$$css:!0}};function ke({type:e=`text`,label:n,isLabelHidden:i=!1,description:a,isOptional:o=!1,isRequired:s=!1,isDisabled:c=!1,isReadOnly:l=!1,disabledMessage:d,startIcon:f,status:p,statusVariant:m=`attached`,size:h,onChange:g,changeAction:_,isLoading:v=!1,value:y,placeholder:ee,labelTooltip:te,hasClear:b=!1,hasAutoFocus:x=!1,htmlName:S,onEnter:C,onKeyDown:w,width:T,xstyle:E,className:D,style:k,ref:M,...ae}){let N=j(),P=ce({isRequired:s,isOptional:o}),F=A(h,`md`),I=(0,V.useId)(),L=(0,V.useId)(),ue=(0,V.useId)(),R=(0,V.useId)(),z=(0,V.useRef)(null),de=(0,V.useRef)(null),B=De(),[,fe]=(0,V.useTransition)(),[U,W]=(0,V.useOptimistic)(y),G=v||U!==y,K=c&&!!d,q=u({placement:`above`,focusTrigger:`always`,isEnabled:K}),{statusIcon:me,describedBy:ge}=he({status:p,statusVariant:m,isInGroup:!!B}),{ariaLabelledBy:xe,ariaDescribedBy:Se}=pe(L,[a?ue:null,!B&&m!==`tooltip`&&p?.message?R:null,ge,K?q.describedBy:null],B),we=e=>{if(c||l)return;let t=e.target.value;g?.(t,e),_&&!e.defaultPrevented&&fe(async()=>{W(t),await _(t,e)})},Ee=(0,V.useCallback)(()=>{g?.(``,null),z.current?.focus()},[g]),{onClick:ke,onMouseUp:J}=le({containerRef:de,inputRef:z,disabled:c}),Ae=(0,H.jsxs)(`div`,{ref:e=>{de.current=e,q.ref(e)},onClick:ke,onMouseUp:J,...O(r(`text-input`,{size:F,status:p?.type??null,disabled:c?`disabled`:null,readonly:l?`readonly`:null}),t(_e.base,Oe[F],c&&_e.disabled,p&&ve[p.type],p&&!c&&ye[p.type],p&&be[p.type],B&&Te.inGroup,E),D,k),children:[f&&ie(f,{size:`sm`,color:`secondary`}),B&&(0,H.jsx)(oe,{id:L,children:n}),(0,H.jsx)(`input`,{...ae,ref:re(M,z),id:I,name:c?void 0:S,type:e,value:U,onChange:we,onKeyDown:C||w?e=>{e.key===`Enter`&&C?.(),w?.(e)}:void 0,placeholder:ee,disabled:c&&!K,"aria-disabled":K?`true`:void 0,readOnly:l||K||void 0,autoFocus:x,"data-autofocus":x||void 0,"aria-describedby":Se,"aria-required":P?`true`:void 0,"aria-invalid":p?.type===`error`?`true`:void 0,"aria-busy":G||void 0,"aria-labelledby":xe,...{0:{className:`x1lliihq x98rzlu xeuugli xc342km xng3xce x1717udv x9ynric xjm74w1 x6pjikd xw6l6zx x1tgivj0 xjbqb8w x1a2a7pz xeyghm5`},1:{className:`x1lliihq x98rzlu xeuugli xc342km xng3xce x1717udv x9ynric xjm74w1 x6pjikd xw6l6zx x1tgivj0 xjbqb8w x1a2a7pz xeyghm5 xt0e3qv`}}[!!c<<0]}),b&&y!==``&&!c&&!l&&(0,H.jsx)(Ce,{label:N(`@astryx.textInput.clearLabel`,{label:n}),onClick:Ee}),G&&(0,H.jsx)(ne,{size:`sm`}),me]});return B?(0,H.jsxs)(H.Fragment,{children:[Ae,K&&q.renderTooltip(d)]}):(0,H.jsxs)(se,{label:n,isLabelHidden:i,description:a,inputID:I,descriptionID:a?ue:void 0,isOptional:o,isRequired:s,isDisabled:c,status:p?{type:p.type,message:p.message,messageID:p.message?R:void 0}:void 0,statusVariant:m,labelTooltip:te,width:T,children:[Ae,K&&q.renderTooltip(d)]})}ke.displayName=`TextInput`;var J={page:`_page_otq4r_3`,content:`_content_otq4r_5`,reveal:`_reveal_otq4r_1`,column:`_column_otq4r_10`,pageTitle:`_pageTitle_otq4r_11`,filters:`_filters_otq4r_12`,filtersSticky:`_filtersSticky_otq4r_13`,entryBody:`_entryBody_otq4r_15`,headerActions:`_headerActions_otq4r_17`,headerTime:`_headerTime_otq4r_22`,wide:`_wide_otq4r_30`,staleNotice:`_staleNotice_otq4r_33`},Ae=[[`circle`,{cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M9.5 9.5C9.5 8.11929 10.6193 7 12 7C13.3807 7 14.5 8.11929 14.5 9.5C14.5 10.3569 14.0689 11.1131 13.4117 11.5636C12.7283 12.0319 12 12.6716 12 13.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]];function je({size:e=16}){return(0,H.jsx)(S,{data:Ae,size:e})}var Me={helpCard:`_helpCard_wqyxv_1`};function Ne({title:e,description:t}){_();let[n,r]=(0,V.useState)(!1),[i,a]=(0,V.useState)(!1),[o,s]=(0,V.useState)(!1),c=!o&&(i||n),l=(0,V.useRef)(null);(0,V.useEffect)(()=>{if(!c)return;let e=()=>{a(!1),r(!1)},t=t=>{let n=t.target;if(!(n instanceof Node)||l.current?.contains(n))return;let r=l.current?.getAttribute(`aria-controls`);r&&document.getElementById(r)?.contains(n)||e()},n=t=>{t.key===`Escape`&&(e(),s(!0))};return document.addEventListener(`pointerdown`,t,!0),document.addEventListener(`keydown`,n),()=>{document.removeEventListener(`pointerdown`,t,!0),document.removeEventListener(`keydown`,n)}},[c]);let u=(0,V.useRef)(void 0),d=(e,t)=>{clearTimeout(u.current),u.current=setTimeout(()=>r(e),t)};return(0,V.useEffect)(()=>()=>clearTimeout(u.current),[]),(0,H.jsx)(ue,{label:e,content:(0,H.jsx)(N,{children:t}),className:Me.helpCard,placement:`below`,alignment:`start`,touchTrigger:`none`,focusTrigger:`never`,hasHoverIndication:!1,isOpen:c,children:(0,H.jsx)(I,{ref:l,label:g(`common.description`,{title:e}),icon:(0,H.jsx)(je,{}),variant:`ghost`,size:`sm`,onClick:()=>{i?(a(!1),s(!0)):(a(!0),s(!1))},onMouseEnter:()=>d(!0,150),onMouseLeave:()=>{s(!1),d(!1,150)},onFocus:()=>d(!0,0),onBlur:()=>d(!1,0)})})}function Pe(e,t,n){let r=v(),[i,a]=(0,V.useState)(void 0);return(0,V.useEffect)(()=>{a(void 0)},[n]),(0,V.useEffect)(()=>{if(t===void 0)return;let n=!1,i=()=>{document.visibilityState===`visible`&&r.fetchQuery(d(e)).then(e=>{n||a(e.stamp)},()=>void 0)};return document.addEventListener(`visibilitychange`,i),window.addEventListener(`focus`,i),()=>{n=!0,document.removeEventListener(`visibilitychange`,i),window.removeEventListener(`focus`,i)}},[r,e,t]),t!==void 0&&i!==void 0&&i!==t}function Fe({isRefreshing:e,onRefresh:t}){return _(),(0,H.jsx)(de,{status:`info`,title:g(`stale.title`),description:g(`stale.description`),endContent:(0,H.jsx)(F,{label:g(`common.refresh`),isDisabled:e,onClick:t})})}function Ie(e){let t=m(p());return!t.data||t.error?(0,H.jsx)(R,{error:t.error,retry:()=>{t.refetch()}}):(0,H.jsx)(Le,{session:t.data,...e},t.data.sessionId)}function Le({session:e,header:t,title:n,description:r,root:i,trail:a,hasTitle:s,isWide:c=!1,filters:l,children:u}){_();let d=m(x(e)),p=v(),h=new Set([...te,`browser-working`,`browser-working-change`]),S=()=>{d.refetch(),p.invalidateQueries({predicate:e=>h.has(String(e.queryKey[0]))})},C=Pe(e,d.data?.stamp,d.dataUpdatedAt),E=d.error instanceof f&&d.error.code===`SESSION_CHANGED`,D=E?void 0:d.data,O=!!D,ne=[{label:n,to:i},...D&&a?a(D):[]],re=(0,H.jsxs)(b,{gap:3,className:J.headerActions,children:[D&&(0,H.jsx)(N,{type:`supporting`,color:`secondary`,className:J.headerTime,children:ee(`header.observedAt`,{time:(0,H.jsx)(`time`,{dateTime:D.observedAt,children:new Date(D.observedAt).toLocaleString(T())})})}),(0,H.jsx)(I,{label:g(`common.refresh`),icon:(0,H.jsx)(B,{}),variant:`ghost`,size:`sm`,isLoading:d.isFetching,isDisabled:d.isFetching,onClick:S})]});return(0,H.jsxs)(y,{gap:0,className:J.page,children:[(0,H.jsx)(t,{trail:ne,actions:re}),(0,H.jsxs)(y,{gap:0,className:c?`${J.column} ${J.wide}`:J.column,children:[s&&(0,H.jsxs)(b,{gap:2,vAlign:`center`,className:J.pageTitle,children:[(0,H.jsx)(w,{level:1,children:n}),r&&(0,H.jsx)(Ne,{title:n,description:r})]}),C&&D&&(0,H.jsx)(y,{gap:0,className:J.staleNotice,children:(0,H.jsx)(Fe,{isRefreshing:d.isFetching,onRefresh:S})}),d.error&&D&&(0,H.jsxs)(y,{padding:4,role:`alert`,children:[(0,H.jsx)(N,{children:d.error.message}),(0,H.jsx)(N,{children:g(`history.staleData`)})]}),!D&&d.error&&(0,H.jsx)(R,{error:d.error,retry:()=>{E?window.location.reload():d.refetch()}}),O&&l&&(0,H.jsx)(b,{gap:3,wrap:`wrap`,className:`${J.filters} ${J.filtersSticky}`,children:l(D)}),O&&(0,H.jsx)(y,{gap:3,className:J.content,children:(0,H.jsx)(o,{index:D.index,children:u({checkout:D,session:e})})})]})]})}var Re=[[`path`,{d:`M8 7L16 7`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M8 11L12 11`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M13 21.5V21C13 18.1716 13 16.7574 13.8787 15.8787C14.7574 15 16.1716 15 19 15H19.5M20 13.3431V10C20 6.22876 20 4.34315 18.8284 3.17157C17.6569 2 15.7712 2 12 2C8.22877 2 6.34315 2 5.17157 3.17157C4 4.34314 4 6.22876 4 10L4 14.5442C4 17.7892 4 19.4117 4.88607 20.5107C5.06508 20.7327 5.26731 20.9349 5.48933 21.1139C6.58831 22 8.21082 22 11.4558 22C12.1614 22 12.5141 22 12.8372 21.886C12.9044 21.8623 12.9702 21.835 13.0345 21.8043C13.3436 21.6564 13.593 21.407 14.0919 20.9081L18.8284 16.1716C19.4065 15.5935 19.6955 15.3045 19.8478 14.9369C20 14.5694 20 14.1606 20 13.3431Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]],ze=[[`path`,{d:`M19 17L19 11C19 8.17157 19 6.75736 18.1213 5.87868C17.2426 5 15.8284 5 13 5H10M10 5C10 4.29977 11.9943 2.99153 12.5 2.5M10 5C10 5.70023 11.9943 7.00847 12.5 7.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M5 7.5L5 13.5C5 16.3284 5 17.7426 5.87868 18.6213C6.75736 19.5 8.17157 19.5 11 19.5H14M14 19.5C14 20.2002 12.0057 21.5085 11.5 22M14 19.5C14 18.7998 12.0057 17.4915 11.5 17`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`circle`,{cx:`19`,cy:`19`,r:`2`,stroke:`currentColor`,strokeWidth:`1.5`,key:`2`}],[`circle`,{cx:`5`,cy:`5`,r:`2`,stroke:`currentColor`,strokeWidth:`1.5`,key:`3`}]],Be=[[`path`,{d:`M20 21.0001C19.713 17.269 16.7289 14.3151 12.995 14.0662L12 13.9999C11.6446 14.0096 11.3134 14.0225 11.0008 14.0378C7.3 14.2192 4.28417 17.3057 4 21.0001`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`circle`,{cx:`12`,cy:`6.99988`,r:`4`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],Ve=[[`path`,{d:`M15.2141 5.98239L16.6158 4.58063C17.39 3.80646 18.6452 3.80646 19.4194 4.58063C20.1935 5.3548 20.1935 6.60998 19.4194 7.38415L18.0176 8.78591M15.2141 5.98239L6.98023 14.2163C5.93493 15.2616 5.41226 15.7842 5.05637 16.4211C4.70047 17.058 4.3424 18.5619 4 20C5.43809 19.6576 6.94199 19.2995 7.57889 18.9436C8.21579 18.5877 8.73844 18.0651 9.78375 17.0198L18.0176 8.78591M15.2141 5.98239L18.0176 8.78591`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M11 20H17`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`1`}]];function Y(e){return function(t){return(0,H.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,"aria-hidden":`true`,focusable:`false`,...t,children:e.map(([e,t],n)=>(0,V.createElement)(e,{...t,key:n}))})}}var He=Y(C),Ue=Y(ge),We=Y(Re),Ge=Y(ze),Ke=Y(Be),qe=Y(Ve);function Je({label:e,placeholder:t,value:n,onChange:r}){let[i,a]=(0,V.useState)(n),o=(0,V.useRef)(n),s=(0,V.useRef)([]),c=(0,V.useRef)(void 0);return(0,V.useEffect)(()=>()=>{clearTimeout(c.current)},[]),(0,V.useEffect)(()=>{if(n===o.current){s.current=[];return}let e=s.current.indexOf(n);if(e>=0){s.current.splice(0,e+1);return}s.current=[],o.current=n,a(n)},[n]),(0,H.jsx)(ke,{label:e,isLabelHidden:!0,placeholder:t,value:i,startIcon:He,hasClear:!0,onChange:e=>{o.current=e,a(e),clearTimeout(c.current),c.current=setTimeout(()=>{s.current.push(e),r(e)},500)}})}var Ye={year:`numeric`,month:`long`,day:`numeric`,hour:`numeric`,minute:`2-digit`,second:`2-digit`,timeZoneName:`short`},Xe={hour:`numeric`,minute:`2-digit`},Ze={year:`numeric`,month:`short`,day:`numeric`,...Xe};function X(e){return String(e).padStart(2,`0`)}function Qe(e,t){return t===void 0?{year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate(),hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds()}:fe(e.getTime(),t)}function Z(e,t,n,{timeZone:r,isTimezoneShown:i=!1,timeZoneNameStyle:a=`short`}={}){let o=r===void 0?{}:{timeZone:r},s=i?{timeZoneName:`short`}:{};switch(t){case`full`:return new Intl.DateTimeFormat(n,{...Ye,timeZoneName:a,...o,calendar:`gregory`}).format(e);case`date`:return new Intl.DateTimeFormat(n,{...U.date,...o,calendar:`gregory`}).format(e);case`date_long`:return new Intl.DateTimeFormat(n,{...U.date_long,...o,calendar:`gregory`}).format(e);case`date_weekday`:return new Intl.DateTimeFormat(n,{...U.date_weekday,...o,calendar:`gregory`}).format(e);case`date_time`:return new Intl.DateTimeFormat(n,{...Ze,...s,...o,calendar:`gregory`}).format(e);case`time`:return new Intl.DateTimeFormat(n,{...Xe,...s,...o}).format(e);case`system_date`:{let t=Qe(e,r);return`${t.year}-${X(t.month)}-${X(t.day)}`}case`system_date_time`:{let t=Qe(e,r);return`${t.year}-${X(t.month)}-${X(t.day)} ${X(t.hour)}:${X(t.minute)}:${X(t.second)}`}case`system_time`:{let t=Qe(e,r);return`${X(t.hour)}:${X(t.minute)}:${X(t.second)}`}case`unix_seconds`:return String(Math.floor(e.getTime()/1e3))}}var $e=60,et=3600,Q=86400,tt=30*Q,nt=365*Q,rt=30,it=new Map;function at(e,t,n){let r=JSON.stringify([e,t,n]),i=it.get(r);return i??(i=new Intl.RelativeTimeFormat(e,{numeric:n,style:t}),it.set(r,i)),i}function ot(e,t,n,r){let i=Math.round((t.getTime()-e.getTime())/1e3),a=Math.abs(i);if(a<10||i<0&&a<=rt)return at(n,r,`auto`).format(0,`second`);let o,s;a<$e?(o=a,s=`second`):a<et?(o=Math.floor(a/$e),s=`minute`):a<Q?(o=Math.floor(a/et),s=`hour`):a<tt?(o=Math.floor(a/Q),s=`day`):a<nt?(o=Math.floor(a/tt),s=`month`):(o=Math.floor(a/nt),s=`year`);let c=i<0?o:-o;return at(n,r,r===`long`&&s===`day`&&c===-1?`auto`:`always`).format(c,s)}var st=`local`,ct=new Set;function lt(e){if(e!==void 0&&e.toLowerCase()!==st){try{new Intl.DateTimeFormat(`en-US`,{timeZone:e})}catch{ct.has(e)||(ct.add(e),`${JSON.stringify(e)}`);return}return e}}function ut(e){return e===void 0?st:e.toLowerCase()}function dt(e,t,n){return e===`full`?!0:e===`date_time`||e===`time`?t||n:!1}function ft(e,t,n){let r=t.map(e=>lt(e.timezoneID)),i=new Set(r.map(ut)).size>1;return t.map((t,a)=>{let o=t.format??`full`,s=r[a];return{...t.label===void 0?{}:{label:t.label},isCopyable:t.isCopyable??!1,value:Z(e,o,n,{timeZone:s,isTimezoneShown:dt(o,i,s!==void 0)})}})}var pt=(0,V.lazy)(async()=>P(()=>import(`./TimestampHoverCard-B5JBaQDZ.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),mt=60,ht=3600,gt=86400,_t=7*gt;function vt(e){return typeof e==`number`?new Date(e<0xe8d4a51000?e*1e3:e):new Date(e)}function yt(e){let t=Math.abs(e);return t<mt?1e3:t<ht?3e4:t<gt?6e4:3e5}function bt(e){return e!==`relative`&&e!==`relative_short`&&e!==`auto`}function xt(e){return e===`relative`||e===`relative_short`}function St({value:e,format:t=`auto`,autoThreshold:n=_t,hasTooltip:i=!0,tooltipEntries:a,isTimezoneShown:o=!1,isLive:s=!1,type:c=`supporting`,size:l,color:u=`secondary`,weight:d,xstyle:f,className:p,style:m,ref:h,"data-testid":g,..._}){let v=j(),y=G(),ee=(0,V.useRef)(null),te=re(h,ee),[b,x]=(0,V.useState)(()=>new Date),S=vt(e),C=!Number.isNaN(S.getTime()),w=C?S.toISOString():``,T=Math.round((b.getTime()-S.getTime())/1e3),E=t===`auto`?Math.abs(T)<=n?`relative`:`date_time`:t,D=C?E===`relative`?ot(S,b,y,`long`):E===`relative_short`?ot(S,b,y,`narrow`):bt(E)?Z(S,E,y,{isTimezoneShown:o}):``:``,ne=C?Z(S,`full`,y):``,k=C?Z(S,`full`,y,{timeZoneNameStyle:`long`}):``;if((0,V.useEffect)(()=>{if(!s||!C||!xt(E))return;let e=yt(T),t=setInterval(()=>{x(new Date)},e);return()=>clearInterval(t)},[s,C,E,T]),L(`Timestamp`,`could not parse value ${JSON.stringify(e)} as a date. Rendering nothing.`,!C),!C)return null;let A=a!==void 0&&a.length>0?a:void 0,ie=i&&(xt(E)||A!==void 0),M=A===void 0?[{value:ne,isCopyable:!0}]:ft(S,A,y),ae=O(r(`timestamp`,{format:E}),{className:p,style:m}),P=(0,H.jsx)(N,{type:c,size:l,color:u,weight:d,xstyle:f,...ae,children:(0,H.jsx)(`time`,{ref:te,dateTime:w,"data-testid":g,className:`xt0psk2 xjb2p0i x1j61x8r x1qlqyl8 x15bjb6t x1heor9g x1pd3egz`,..._,...xt(E)&&k!==``?{"aria-label":k}:{},...ie?{tabIndex:0}:{},children:D})});return ie?(0,H.jsx)(V.Suspense,{fallback:P,children:(0,H.jsx)(pt,{lines:M,label:v(`@astryx.timestamp.detailsLabel`),children:P})}):P}St.displayName=`Timestamp`;var Ct={related:`_related_zz4ck_2`};function wt({label:e,children:t}){return(0,H.jsxs)(y,{as:`section`,gap:1,"aria-label":e,className:Ct.related,children:[(0,H.jsx)(N,{type:`supporting`,color:`secondary`,children:e}),(0,H.jsx)(E,{density:`compact`,children:t})]})}function $({title:e,description:t}){return(0,H.jsx)(D,{label:e,...t?{description:typeof t==`string`?(0,H.jsx)(N,{type:`supporting`,color:`secondary`,children:t}):t}:{}})}var Tt={titleMark:`_titleMark_w8ln4_2`,relations:`_relations_w8ln4_4`};function Et({sources:e,path:t}){_();let n=l();return(0,H.jsx)(wt,{label:g(`design.sources`),children:e.map((e,r)=>{let i=e.url?a(e.url,t,n):e.path?a(Ot(t,e.path),t,n):{kind:`missing`,path:e.id??``},o=i.kind===`external`?Dt(i.href):i.kind===`instruction`?i.path.replace(/^\.gitifact\//,``):i.kind===`agents`?i.path:i.kind===`missing`?g(`link.missing`,{path:i.path}):i.kind===`outside`?i.path:``;return(0,H.jsx)($,{title:(0,H.jsx)(s,{link:i,children:e.title??e.id}),description:(e.note||o)&&(0,H.jsxs)(b,{gap:2,wrap:`wrap`,children:[e.note&&(0,H.jsx)(N,{type:`supporting`,color:`secondary`,children:e.note}),o&&(0,H.jsx)(N,{type:`supporting`,color:`secondary`,children:o})]})},r)})})}var Dt=e=>{try{return new URL(e).hostname}catch{return e}};function Ot(e,t){let n=e.split(`/`).slice(0,-1),r=t.split(`/`),i=0;for(;i<n.length&&i<r.length-1&&n[i]===r[i];)i++;return[...Array(n.length-i).fill(`..`),...r.slice(i)].join(`/`)}function kt({design:e,path:t,features:n,eyebrow:r,footer:i}){_();let a=e.requirements??[];return(0,H.jsxs)(y,{gap:4,children:[(0,H.jsxs)(y,{gap:2,children:[r,(0,H.jsx)(w,{level:3,children:(0,H.jsx)(`mark`,{className:Tt.titleMark,children:e.title})}),e.description&&(0,H.jsx)(N,{type:`supporting`,color:`secondary`,children:e.description})]}),(0,H.jsx)(c,{headingLevelStart:4,path:t,children:e.body}),(!!a.length||!!e.sources?.length||i)&&(0,H.jsxs)(y,{gap:4,className:Tt.relations,children:[!!a.length&&(0,H.jsx)(wt,{label:g(`design.relatedRequirements`),children:a.map(e=>{let t=n.find(t=>t.requirements.some(t=>t.id===e)),r=t?.requirements.find(t=>t.id===e);return t&&r?(0,H.jsx)($,{title:(0,H.jsx)(h,{to:`/features/$featureId`,params:{featureId:t.id},search:{selected:e,tab:`requirements`},hash:e,children:r.title}),description:r.description},e):(0,H.jsx)($,{title:(0,H.jsx)(N,{color:`secondary`,children:g(`design.missingRequirement`,{id:e})})},e)})}),!!e.sources?.length&&(0,H.jsx)(Et,{sources:e.sources,path:t}),i]})]})}var At={feature:`default`,requirement:`teal`,design:`orange`,wiki:`pink`,instruction:`cyan`};function jt({kind:e}){_();let t={feature:g(`kind.feature`),requirement:g(`kind.requirement`),design:g(`kind.design`),wiki:g(`kind.wiki`),instruction:g(`kind.instruction`)};return(0,H.jsx)(z,{label:t[e],color:At[e],size:`sm`})}var Mt={badge:`_badge_sibhz_3`,"#":`_#_sibhz_1`},Nt={created:`green`,modified:`blue`,deleted:`red`,moved:`purple`},Pt=e=>e.types.includes(`deleted`)?`deleted`:e.types.includes(`modified`)?`modified`:e.types.includes(`moved`)?`moved`:`created`;function Ft({event:e}){_();let t={created:g(`change.created`),modified:g(`change.modified`),deleted:g(`change.deleted`),moved:g(`change.moved`)};return(0,H.jsxs)(`span`,{className:Mt.badge,children:[(0,H.jsx)(z,{label:e.types.map(e=>t[e]).join(` · `),color:Nt[Pt(e)],size:`sm`}),(0,H.jsx)(jt,{kind:e.kind})]})}var It={added:`green`,modified:`blue`,deleted:`red`};function Lt({state:e}){if(_(),e===`committed`)return null;let t={added:g(`state.added`),modified:g(`state.modified`),deleted:g(`state.deleted`)};return(0,H.jsx)(z,{label:t[e],color:It[e],size:`sm`})}export{ge as C,_e as S,Te as _,$ as a,ve as b,Je as c,We as d,Ue as f,De as g,Ie as h,kt as i,Ge as l,Re as m,Ft as n,wt as o,Ke as p,jt as r,St as s,Lt as t,qe as u,Ce as v,pe as w,ye as x,we as y};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ProgressBarMarkTooltip-BxGSd9KS.js","assets/themeProps-CkLe5zXY.js","assets/rolldown-runtime-hePW80VL.js","assets/Tooltip-MoU3alsv.js","assets/useIsomorphicLayoutEffect-BiEJxDg_.js"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{K as t,W as n,l as r,n as i,q as a}from"./themeProps-CkLe5zXY.js";import{a as o,r as s}from"./document-DPtVyR5y.js";import{t as c}from"./useIsomorphicLayoutEffect-BiEJxDg_.js";import{F as l,S as u,V as d,a as f,bt as p,cn as m,fn as h,ht as g,l as _,mt as v,nt as y,on as b,rn as x,t as S,u as C,vt as w,x as T}from"./page-header-CVCjLFQo.js";import{a as E,c as ee,h as D,i as O,o as k,p as te,s as ne,t as A,u as re}from"./document-Q3lvgyX8.js";import{d as j,f as ie,o as ae,t as oe}from"./Table-XuC9zK9w.js";import{a as M,t as se}from"./useMediaQuery-twbHF0pO.js";import{E as ce,G as le,W as N,_ as P,b as ue,t as F,w as I}from"./Icon-DPaLmsmh.js";import{t as de}from"./preload-helper-BZ1Pz5am.js";import{s as fe}from"./IconButton-Br-4XhQr.js";import{t as pe}from"./Markdown-ev4hMr67.js";import{t as me}from"./Selector-CGOdL2eo.js";import{n as he,t as L}from"./Tab-BwJj0rUr.js";import{t as ge}from"./useInfiniteQuery-03AIcFvA.js";import{r as R,t as _e}from"./Token-BV_4bSkY.js";import{t as ve}from"./load-more-CymfxLt7.js";import{a as z,c as ye,i as be,n as xe,o as B,r as Se,s as Ce}from"./contributor-Bs3RWHQv.js";var V=e(a(),1),H=r(),U={button:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`xzye2dw`,kmVPX3:`x1717udv`,kogj98:`x1ghz6dp`,kkrTdU:`x1ypdohk x16khyan`,kVVagm:`xln7xf2`,kMwMTN:`x1heor9g`,kzqmXN:`xh8yej3`,kZKoxP:`x5yr21d`,k9WMMc:`x16tdsg8`,kaIpWk:`xx3sua9`,$$css:!0},buttonAlignCenter:{kjj79g:`xl56j7k`,$$css:!0},buttonAlignEnd:{kjj79g:`x13a6bvl`,$$css:!0}};function W(e){let{sortable:t}=e;return t?t===!0?e.key:t.sortKey??e.key:null}function we(e){let{header:t}=e;return typeof t==`string`?t:e.key}function Te(e,t,n,r,i){let a=we(t);if(n==null)return e(`@astryx.table.sort.sortBy`,{label:a});let o=e(n===`ascending`?`@astryx.table.sort.direction.ascending`:`@astryx.table.sort.direction.descending`);return r!=null&&i>1?e(`@astryx.table.sort.sortedByWithPriority`,{label:a,direction:o,rank:r,total:i}):e(`@astryx.table.sort.sortedBy`,{label:a,direction:o})}function G(e,t){return e==null?`ascending`:e===`ascending`?`descending`:t?null:`ascending`}function Ee({column:e,children:t,configRef:n}){let r=P(),i=n.current,a=W(e)??``,o=i.sort.findIndex(e=>e.sortKey===a),s=(o>=0?i.sort[o]:null)?.direction??null,c=i.isMultiSortEnabled===!0&&i.sort.length>1&&o>=0?o+1:null,l=s===`ascending`?`arrowUp`:s===`descending`?`arrowDown`:`arrowsUpDown`,u=Te(r,e,s,c,i.sort.length),d=e=>{let t=n.current,r=e.shiftKey&&t.isMultiSortEnabled,i=t.allowUnsortedState??!0;if(r){let e=t.sort.findIndex(e=>e.sortKey===a);if(e>=0){let n=G(t.sort[e].direction,i);if(n==null){let n=[...t.sort];n.splice(e,1),t.onSortChange(n)}else{let r=[...t.sort];r[e]={...r[e],direction:n},t.onSortChange(r)}}else t.onSortChange([...t.sort,{sortKey:a,direction:`ascending`}])}else{let e=G(t.sort.find(e=>e.sortKey===a)?.direction??null,i);e==null?t.onSortChange([]):t.onSortChange([{sortKey:a,direction:e}])}};return(0,H.jsxs)(`button`,{type:`button`,...N.focusVisible(U.button,e.align===`end`?U.buttonAlignEnd:e.align===`center`?U.buttonAlignCenter:null),"aria-label":u,onClick:d,children:[(0,H.jsx)(`span`,{children:t}),(0,H.jsx)(`span`,{...{0:{className:`x3nfvp2 x3onkmb xof6bs x25t5g8`},1:{className:`x3nfvp2`}}[(s!=null)<<0],children:(0,H.jsx)(F,{icon:l,size:`xsm`,color:s==null?`secondary`:`accent`})}),c!=null&&(0,H.jsx)(`span`,{className:`x1k6wstc xo5v014 xqwr325`,"aria-hidden":`true`,children:c})]})}function De(e){let t=P(),n=(0,V.useRef)(e);return n.current=e,(0,V.useMemo)(()=>({transformHeaderCell(e,r){let i=W(r);if(i==null)return e;let a=n.current.sort.find(e=>e.sortKey===i),o=()=>{let e=n.current,r=e.sort.find(e=>e.sortKey===i)?.direction??null,a=[{id:`sort-asc`,group:`sort`,label:t(`@astryx.table.sort.ascending`),icon:(0,H.jsx)(F,{icon:`arrowUp`,size:`xsm`,"aria-hidden":!0}),checked:r===`ascending`,onSelect:()=>e.onSortChange([{sortKey:i,direction:`ascending`}])},{id:`sort-desc`,group:`sort`,label:t(`@astryx.table.sort.descending`),icon:(0,H.jsx)(F,{icon:`arrowDown`,size:`xsm`,"aria-hidden":!0}),checked:r===`descending`,onSelect:()=>e.onSortChange([{sortKey:i,direction:`descending`}])}];return r!=null&&a.push({id:`sort-clear`,group:`sort-clear`,label:t(`@astryx.table.sort.clear`),icon:(0,H.jsx)(F,{icon:`close`,size:`xsm`,"aria-hidden":!0}),onSelect:()=>e.onSortChange(e.sort.filter(e=>e.sortKey!==i))}),a},s=e.contextMenuActions;return{...e,htmlProps:{...e.htmlProps,...a==null?{}:{"aria-sort":a.direction}},content:(0,H.jsx)(Ee,{column:r,configRef:n,children:e.content}),contextMenuActions:()=>[...ae(s),...o()]}}}),[t])}var Oe=(0,V.lazy)(async()=>de(()=>import(`./ProgressBarMarkTooltip-BxGSd9KS.js`),__vite__mapDeps([0,1,2,3,4]))),K={container:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kOIVth:`xzye2dw`,kzqmXN:`xh8yej3`,k7Eaqz:`x900493`,$$css:!0},fill:{kZKoxP:`x5yr21d`,kaIpWk:`xjspbzw`,k1ekBW:`xxrbq2n`,kIyJzY:`x80gvsz`,kAMwcw:`xlr8y92`,$$css:!0},indeterminateFill:{kZKoxP:`x5yr21d`,kzqmXN:`xz84dc7`,kaIpWk:`xjspbzw`,kKVMdj:`xozk8ic xfd3fxj`,k44tkh:`xmg6eyc xnh0sag`,kyAemX:`x4hg4is`,ko0y90:`xa4qsjk`,$$css:!0},mark:{kVAEAm:`x10l6tqk`,k87sOh:`xwa60dl`,kzqmXN:`x63cpjl`,kZKoxP:`xhovv34`,k3aq6I:`x11lhmoz xoffwj3`,$$css:!0}},q={accent:{kWkggS:`x1ewilqj`,$$css:!0},success:{kWkggS:`xdsz4j9`,$$css:!0},warning:{kWkggS:`x1q8g9m5`,$$css:!0},error:{kWkggS:`x1pjz0fi`,$$css:!0},neutral:{kWkggS:`x16fr6go`,$$css:!0},disabled:{kWkggS:`x16fr6go`,$$css:!0}},ke={accent:{kWkggS:`x1azo05`,$$css:!0},success:{kWkggS:`x9mohwv`,$$css:!0},warning:{kWkggS:`xmgwp2l`,$$css:!0},error:{kWkggS:`xfba6wv`,$$css:!0},neutral:{kWkggS:`x19aspcf`,$$css:!0},disabled:{kWkggS:`xdomwnj`,$$css:!0}},J={track:{kWkggS:`x19aspcf`,$$css:!0},trackDisabled:{kWkggS:`xdomwnj`,$$css:!0}};function Ae(e,t){return`${t>0?Math.round(e/t*100):0}%`}function Y({value:e=0,max:n=100,label:r,isLabelHidden:a=!1,hasValueLabel:o=!1,formatValueLabel:s=Ae,variant:c=`accent`,isIndeterminate:l=!1,isDisabled:u=!1,marks:d,xstyle:f,className:p,style:m,"data-testid":h,ref:g,..._}){let v=(0,V.useId)(),y=Number.isFinite(e)?e:0,b=Number.isFinite(n)?n:0,x=Math.min(Math.max(0,y),b),S=b>0?x/b*100:0,C=s(x,b),w=o&&!l,T=u?`disabled`:c,E=!l&&d?d.filter(e=>Number.isFinite(e.value)).map(e=>{let t=Math.min(Math.max(0,e.value),b),n=b>0?t/b*100:0;return{value:e.value,label:e.label,pct:n,isOnFill:S>0&&n<=S}}):[];return(0,H.jsxs)(`div`,{ref:g,...M(i(`progress-bar`,{variant:c},{legacyNames:[`progressbar`]}),t(K.container,f),p,m),"data-testid":h,..._,children:[!a||w?(0,H.jsxs)(`div`,{className:`x78zum5 x1qughib x1pha0wt`,children:[(0,H.jsx)(`span`,{id:v,...{0:{className:`xjm74w1 xw6l6zx x1e4wzip x1tgivj0`},2:{className:`xjm74w1 xw6l6zx x1e4wzip x1tgivj0 x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr xzpqnlu xuxw1ft xc342km`},1:{className:`xjm74w1 xw6l6zx x1e4wzip xnbbluu`},3:{className:`xjm74w1 xw6l6zx x1e4wzip x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr xzpqnlu xuxw1ft xc342km xnbbluu`}}[!!a<<1|!!u<<0],children:r}),w&&(0,H.jsx)(`span`,{...{0:{className:`xjm74w1 xw6l6zx x1sodnla xv1l7n4`},1:{className:`xjm74w1 xw6l6zx x1sodnla xnbbluu`}}[!!u<<0],children:C})]}):(0,H.jsx)(fe,{id:v,children:r}),(0,H.jsxs)(`div`,{role:`progressbar`,"aria-valuenow":l?void 0:x,"aria-valuemin":l?void 0:0,"aria-valuemax":l?void 0:b,"aria-labelledby":v,"aria-valuetext":l?void 0:C,...M(i(`progress-bar-track`,void 0,{legacyNames:[`progressbar-track`]}),{0:{className:`x1n2onr6 xh8yej3 xdk7pt xwmxj5m xjspbzw`},1:{className:`x1n2onr6 xh8yej3 xdk7pt xwmxj5m xjspbzw xb3r6kr`}}[!!l<<0]),children:[l?(0,H.jsx)(`div`,{...M(i(`progress-bar-fill`,{variant:T},{legacyNames:[`progressbar-fill`]}),t(K.indeterminateFill,q[T]))}):(0,H.jsx)(`div`,{...M(i(`progress-bar-fill`,{variant:T},{legacyNames:[`progressbar-fill`]}),t(K.fill,q[T])),style:{width:`${S}%`}}),E.map(e=>{let n=(0,H.jsx)(`span`,{tabIndex:0,...M(i(`progress-bar-mark`,{variant:T,placement:e.isOnFill?`fill`:`track`},{legacyNames:[`progressbar-mark`]}),t(le.focusVisible,K.mark,e.isOnFill?ke[T]:u?J.trackDisabled:J.track)),style:{insetInlineStart:`${e.pct}%`}});return(0,H.jsx)(V.Suspense,{fallback:n,children:(0,H.jsx)(Oe,{content:e.label,children:n})},`${e.value}:${e.label}`)})]})]})}Y.displayName=`ProgressBar`;var je=.25,Me={root:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,$$css:!0}};function Ne({children:e,size:n=`md`,shape:r=`circle`,"data-testid":a,"aria-label":o,"aria-describedby":s,onKeyDown:l,onFocus:u,xstyle:d,className:f,style:p,ref:m,...h}){let g=P(),_=o??g(`@astryx.avatarGroup.label`),v=z(n),y=Math.round(v*je),x=(0,V.useMemo)(()=>({size:n,shape:r,overlap:y,numericSize:v}),[n,r,y,v]),[S,C]=(0,V.useState)(!1),{listRef:T,handleKeyDown:E,handleFocus:ee}=w({itemSelector:`[data-avatar-item]`,orientation:`horizontal`,hasRovingTabIndex:!0});c(()=>{let e=T.current;e&&C(e.querySelector(`[data-avatar-item]`)!=null)});let D=(0,V.useId)(),O=[s,S?D:null].filter(Boolean).join(` `)||void 0;return(0,H.jsx)(Ce,{value:x,children:(0,H.jsxs)(`div`,{...h,ref:ce(m,T),role:`group`,"aria-label":_,"aria-describedby":O,"data-testid":a,onKeyDown:b(l,E),onFocus:b(u,ee),...M(i(`avatar-group`,{size:n,shape:r}),t(Me.root,d),f,p),children:[e,S&&(0,H.jsx)(fe,{id:D,children:g(`@astryx.avatarGroup.keyboardHint`)})]})})}Ne.displayName=`AvatarGroup`;var Pe=.35,X={base:{kVAEAm:`x1n2onr6`,k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kaIpWk:`xbc78cj`,kWkggS:`x10xzikg`,kMwMTN:`xv1l7n4`,kMv6JI:`x9ynric`,k63SB2:`x1e4wzip`,kfSwDN:`x87ps6o`,kMzoRj:`xdh2fpr`,ksu8eU:`x1y0btm7`,kVAM5u:`x1touxvs`,kB7OPa:`x9f619`,kg3NbH:`xf314gf`,kKwaWg:`x14bno8m`,$$css:!0},button:{kkrTdU:`x1ypdohk x16khyan`,k8WAf4:`xt970qd`,$$css:!0},overlap:{keTefX:`x1sik18w`,$$css:!0}},Fe={k7Eaqz:`xkj4a21`,kZKoxP:`x16ye13r`,$$css:!0},Ie={kGuDYH:`xdmh292`,$$css:!0},Le={"--_avatar-group-overlap":`xlz5hwt`,$$css:!0},Z={size:e=>[Fe,{"--x-minWidth":(e=>typeof e==`number`?e+`px`:e??void 0)(e+4),"--x-height":(e=>typeof e==`number`?e+`px`:e??void 0)(e+4)}],fontSize:e=>[Ie,{"--x-fontSize":(e=>typeof e==`number`?e+`px`:e??void 0)(`max(${n[`--text-supporting-size`]}, ${e*Pe}px)`)}],overlap:e=>[Le,{"--x---_avatar-group-overlap":`${e}px`==null?void 0:`${e}px`}]};function Re({ref:e,count:n,onClick:r,children:a,xstyle:o,className:s,style:c,...l}){let u=P(),d=ye(),f=d?.size??`md`,p=d?.shape??`circle`,m=d?.numericSize??z(`md`),h=d?.overlap??0,g=Math.max(0,n),_=u(`@astryx.avatarGroup.overflow`,{count:g}),v=a??`+${g}`;return r?(0,H.jsx)(`button`,{ref:e,type:`button`,onClick:r,...l,"aria-label":_,"data-avatar-item":``,...M(i(`avatar-group-overflow`,{size:f,shape:p}),N.focusVisible(X.base,X.button,ue.backgroundImageOnNeutral,X.overlap,Z.size(m),Z.fontSize(m),Z.overlap(-h),B[p],o),s,c),children:v}):(0,H.jsx)(`span`,{ref:e,...l,"aria-label":_,...M(i(`avatar-group-overflow`,{size:f,shape:p}),t(X.base,X.overlap,Z.size(m),Z.fontSize(m),Z.overlap(-h),B[p],o),s,c),children:v})}Re.displayName=`AvatarGroupOverflow`;function ze(e){let t=new Map;for(let n of e)for(let e of n.requirements)t.set(e,[...t.get(e)??[],n.id]);return t}var Be=e=>e.sort===`title`||e.sort===`requirements`?e.sort:`updatedAt`;function Ve(e){let t=Be(e);return{q:e.q,design:e.design,author:e.author,sort:t===`updatedAt`?void 0:t,dir:e.dir}}var Q={featureTable:`_featureTable_phbqr_2`,descriptionLink:`_descriptionLink_phbqr_5`,featureTitle:`_featureTitle_phbqr_7`,featureDetail:`_featureDetail_phbqr_9`,featureBack:`_featureBack_phbqr_10`,documentHeading:`_documentHeading_phbqr_12`,designPanel:`_designPanel_phbqr_15`,featureIntro:`_featureIntro_phbqr_16`,documentIndex:`_documentIndex_phbqr_17`,requirementLayout:`_requirementLayout_phbqr_22`,requirementList:`_requirementList_phbqr_23`,requirementSection:`_requirementSection_phbqr_31`,titleMark:`_titleMark_phbqr_34`,requirementRelations:`_requirementRelations_phbqr_42`,numberLine:`_numberLine_phbqr_44`,numberDot:`_numberDot_phbqr_45`,entryLine:`_entryLine_phbqr_49`,recentRow:`_recentRow_phbqr_50`,featureTitleRow:`_featureTitleRow_phbqr_57`,featureHeading:`_featureHeading_phbqr_58`,featureNameLine:`_featureNameLine_phbqr_60`,featureDescription:`_featureDescription_phbqr_62`,featureDesignLink:`_featureDesignLink_phbqr_64`,requirementRow:`_requirementRow_phbqr_83`,requirementNumber:`_requirementNumber_phbqr_84`,requirementLink:`_requirementLink_phbqr_85`,requirementMore:`_requirementMore_phbqr_86`,requirementDescription:`_requirementDescription_phbqr_89`,requirementNoDesign:`_requirementNoDesign_phbqr_90`,acceptanceCount:`_acceptanceCount_phbqr_91`,countCell:`_countCell_phbqr_94`,oneLine:`_oneLine_phbqr_98`};function He({session:e,index:t,featureId:n,search:r,change:i}){return h(),n?(0,H.jsx)(Ue,{session:e,index:t,featureId:n,search:r,change:i}):(0,H.jsx)(Ge,{session:e,search:r,change:i})}function Ue({session:e,index:t,featureId:n,search:r,change:i}){let a=d(T(e,n)),o=(0,V.useDeferredValue)(a.data);return a.error instanceof l&&a.error.code===`NOT_FOUND`?(0,H.jsx)(f,{kind:`not-found`,title:m(`features.notFoundTitle`),description:m(`features.notFoundDescription`,{id:n}),actions:(0,H.jsx)(p,{to:`/features`,children:m(`features.backToList`)})}):a.error?(0,H.jsx)(R,{error:a.error,retry:()=>{a.refetch()}}):o?(0,H.jsx)(Ke,{feature:o.feature,features:t,search:r,change:i}):(0,H.jsx)(R,{})}function We({people:e}){if(h(),!e.length)return(0,H.jsx)(I,{type:`supporting`,color:`secondary`,children:m(`common.uncommitted`)});let t=e.slice(0,3);return(0,H.jsxs)(Ne,{size:`sm`,shape:`circle`,children:[t.map(e=>(0,H.jsx)(be,{name:e.name,src:xe(e.email),href:Se(e.email)},e.email)),e.length>t.length&&(0,H.jsx)(Re,{count:e.length-t.length})]})}function Ge({session:e,search:t,change:n}){h();let r=se(`(max-width: 767px)`),i={title:`ascending`,requirements:`descending`,updatedAt:`descending`},a=Be(t),o=t.dir===`asc`?`ascending`:t.dir===`desc`?`descending`:i[a],s=ge({...u(e,Ve(t)),placeholderData:y}),c=(0,V.useDeferredValue)(s.data),l={q:t.q,design:t.design,author:t.author,sort:t.sort,dir:t.dir},d=De({sort:[{sortKey:a,direction:o}],allowUnsortedState:!1,onSortChange:e=>{let r=e[0];if(!r)return;let o=r.sortKey===a?r.direction:i[r.sortKey];n({...t,sort:r.sortKey===`updatedAt`?void 0:r.sortKey,dir:o===i[r.sortKey]?void 0:o===`ascending`?`asc`:`desc`})}});if(s.error)return(0,H.jsx)(R,{error:s.error,retry:()=>{s.refetch()}});if(!c)return(0,H.jsx)(R,{});let _=c.pages[0],b=c.pages.flatMap(e=>e.features),x=b.flatMap(e=>[{id:e.id,kind:`feature`,feature:e},...e.requirements.map((t,n)=>({id:e.id+`:`+t.id,kind:`requirement`,feature:e,requirement:t,number:n+1})),...e.hidden?[{id:e.id+`:more`,kind:`more`,feature:e}]:[]]),S=Math.max(1,_.mostRequirements),C=e=>e.replace(/[#*_`]/g,``).replace(/\s+/g,` `).trim(),w=[{key:`title`,header:m(`features.column.feature`),sortable:!0,width:ie(1,{minWidth:200}),renderCell:e=>e.kind===`feature`?(0,H.jsxs)(v,{gap:4,className:Q.featureTitleRow,children:[(0,H.jsxs)(g,{gap:0,className:Q.featureHeading,children:[(0,H.jsxs)(v,{gap:2,className:Q.featureNameLine,children:[(0,H.jsx)(p,{to:`/features/$featureId`,params:{featureId:e.feature.id},search:l,className:Q.featureTitle,"data-state-title":!0,children:e.feature.title}),(0,H.jsx)(A,{state:e.feature.state}),!e.feature.designs&&(0,H.jsx)(_e,{label:m(`features.noDesignMark`),color:`yellow`,size:`sm`})]}),(0,H.jsx)(I,{type:`supporting`,color:`secondary`,className:`${Q.featureDescription} ${Q.oneLine}`,children:e.feature.description?(0,H.jsx)(p,{to:`/features/$featureId`,params:{featureId:e.feature.id},search:l,tabIndex:-1,"aria-hidden":!0,className:Q.descriptionLink,children:C(e.feature.description)}):`\xA0`})]}),e.feature.designs>0&&(0,H.jsx)(p,{to:`/features/$featureId`,params:{featureId:e.feature.id},search:{...l,tab:`design`},className:Q.featureDesignLink,children:m(`features.designMark`,{count:e.feature.designs})})]}):e.kind===`more`?(0,H.jsx)(p,{to:`/features/$featureId`,params:{featureId:e.feature.id},search:l,className:Q.requirementMore,children:m(`features.moreRequirements`,{count:e.feature.hidden})}):(0,H.jsxs)(v,{gap:3,className:Q.requirementRow,children:[(0,H.jsx)(I,{type:`supporting`,color:`secondary`,className:Q.requirementNumber,children:String(e.number).padStart(2,`0`)}),(0,H.jsx)(p,{to:`/features/$featureId`,params:{featureId:e.feature.id},search:{...l,selected:e.requirement.id,tab:`requirements`},hash:e.requirement.id,className:Q.requirementLink,"data-state-title":!0,children:e.requirement.title}),(0,H.jsx)(A,{state:e.requirement.state}),e.requirement.description&&(0,H.jsx)(I,{type:`supporting`,color:`secondary`,className:`${Q.requirementDescription} ${Q.oneLine}`,children:(0,H.jsx)(p,{to:`/features/$featureId`,params:{featureId:e.feature.id},search:{...l,selected:e.requirement.id,tab:`requirements`},hash:e.requirement.id,tabIndex:-1,"aria-hidden":!0,className:Q.descriptionLink,children:C(e.requirement.description)})}),e.feature.designs>0&&!e.requirement.designed&&(0,H.jsx)(I,{type:`supporting`,color:`secondary`,className:Q.requirementNoDesign,children:m(`features.noDesignMark`)})]})},{key:`requirements`,header:m(`features.column.requirements`),sortable:!0,width:j(128),align:`end`,renderCell:e=>e.kind===`requirement`?e.requirement.acceptance===null?null:(0,H.jsx)(I,{type:`supporting`,color:`secondary`,className:Q.acceptanceCount,children:m(`features.acceptanceCount`,{count:e.requirement.acceptance})}):e.kind===`feature`?(0,H.jsxs)(v,{gap:3,className:Q.countCell,children:[(0,H.jsx)(I,{children:e.feature.requirementCount}),!r&&(0,H.jsx)(Y,{label:m(`features.requirementShare`,{title:e.feature.title}),isLabelHidden:!0,value:e.feature.requirementCount,max:S,variant:`accent`})]}):null}];r||w.push({key:`contributors`,header:m(`features.column.contributors`),width:j(120),renderCell:e=>e.kind===`feature`?(0,H.jsx)(We,{people:e.feature.contributors}):null}),r||w.push({key:`updatedAt`,header:m(`common.recentChange`),sortable:!0,width:j(110),align:`end`,renderCell:e=>e.kind===`feature`?e.feature.updatedAt?(0,H.jsx)(ne,{value:e.feature.updatedAt,format:`relative`}):(0,H.jsx)(I,{type:`supporting`,color:`secondary`,children:m(`common.inProgress`)}):null});let T=e=>{let t=e.kind===`feature`?e.feature.state:e.kind===`requirement`?e.requirement.state:void 0;return t===`committed`?void 0:t};return b.length?(0,H.jsxs)(g,{gap:3,className:Q.featureTable,children:[(0,H.jsxs)(I,{type:`supporting`,color:`secondary`,children:[m(`features.count`,{count:_.total}),_.total<_.all?m(`features.ofTotal`,{total:_.all}):``,` · `,m(`features.requirementCount`,{count:_.requirements}),` · `,m(`features.countNote`)]}),(0,H.jsx)(oe,{data:x,idKey:`id`,columns:w,plugins:{sorting:d,rowKinds:{transformBodyRow:(e,t)=>({...e,htmlProps:{...e.htmlProps,"data-row":t.kind,"data-state":T(t)}})}},density:`compact`,dividers:`rows`,hasHover:!0,textOverflow:`truncate`}),(0,H.jsx)(v,{gap:0,children:(0,H.jsx)(ve,{label:m(`features.more`),query:s})})]}):(0,H.jsx)(f,{kind:_.all?`search`:`empty`,title:m(`features.emptyTitle`),description:_.all?m(`features.changeFilters`):m(`features.emptyDescription`)})}function Ke({feature:e,features:t,search:n,change:r}){h();let i=n.tab===`design`?`design`:`requirements`,a=ze(e.designs),o=e.designs,c=n.selected?i===`requirements`||o.some(e=>e.id===n.selected)?n.selected:a.get(n.selected)?.[0]:void 0;(0,V.useEffect)(()=>{c&&document.getElementById(c)?.scrollIntoView({block:`start`})},[c,i]);let l=Ye((i===`requirements`?e.requirements:o).map(e=>e.id));return(0,H.jsxs)(g,{as:`article`,"aria-label":m(`features.detail`),gap:0,className:Q.featureDetail,children:[(0,H.jsx)(p,{to:`/features`,search:{q:n.q,design:n.design,author:n.author,sort:n.sort},className:Q.featureBack,children:m(`features.back`)}),(0,H.jsxs)(g,{gap:4,className:Q.documentHeading,children:[(0,H.jsxs)(v,{gap:3,vAlign:`center`,wrap:`wrap`,children:[(0,H.jsx)(x,{level:1,children:e.title}),(0,H.jsx)(A,{state:e.state})]}),e.description&&(0,H.jsx)(pe,{children:e.description}),(0,H.jsxs)(v,{gap:4,wrap:`wrap`,className:Q.entryLine,children:[(0,H.jsx)(I,{type:`supporting`,color:`secondary`,children:e.id}),(0,H.jsx)(I,{type:`supporting`,color:`secondary`,children:m(`features.requirementCount`,{count:e.requirements.length})}),(0,H.jsx)(We,{people:e.contributors}),e.updatedAt&&(0,H.jsx)(ne,{value:e.updatedAt,format:`relative`}),(0,H.jsx)(p,{to:`/records`,search:{feature:e.id},children:m(`features.history`)})]})]}),(0,H.jsxs)(he,{role:`tablist`,value:i,onChange:e=>r({...n,tab:e,selected:void 0}),hasDivider:!0,children:[(0,H.jsx)(L,{value:`requirements`,label:m(`features.tab.requirements`),panelId:`feature-requirements`}),(0,H.jsx)(L,{value:`design`,label:m(`features.tab.design`),panelId:`feature-design`})]}),i===`design`?o.length?(0,H.jsxs)(g,{id:`feature-design`,role:`tabpanel`,"aria-label":m(`features.tab.design`),gap:0,className:Q.requirementLayout,children:[(0,H.jsx)(Je,{label:m(`features.designIndex`),title:m(`features.designIndexTitle`),documents:o,reading:l}),(0,H.jsx)(g,{gap:0,className:Q.requirementList,children:o.map((n,r)=>(0,H.jsx)(g,{id:n.id,gap:0,className:Q.requirementSection,"data-state":n.state===`committed`?void 0:n.state,...n.id===c?{"aria-current":`location`}:{},children:(0,H.jsx)(O,{design:n,path:n.path,features:t,eyebrow:(0,H.jsxs)(v,{gap:2,vAlign:`center`,children:[(0,H.jsx)(qe,{label:m(`features.designNumber`,{number:$(r)}),id:n.id}),(0,H.jsx)(A,{state:n.state})]}),footer:(0,H.jsx)(k,{label:m(`features.requirementHistoryLabel`),children:(0,H.jsx)(E,{title:(0,H.jsx)(p,{to:`/records`,search:{feature:e.id,q:n.id},children:m(`features.designHistory`)})})})})},n.id))})]}):(0,H.jsx)(g,{id:`feature-design`,role:`tabpanel`,"aria-label":m(`features.tab.design`),gap:0,className:Q.designPanel,children:(0,H.jsx)(f,{isCompact:!0,title:m(`features.noDesignTitle`),description:m(`features.noDesignDescription`)})}):(0,H.jsxs)(g,{id:`feature-requirements`,role:`tabpanel`,"aria-label":m(`features.tab.requirements`),gap:0,className:Q.requirementLayout,children:[(0,H.jsx)(Je,{label:m(`features.index`),title:m(`features.indexTitle`),documents:e.requirements,reading:l}),(0,H.jsxs)(g,{gap:0,className:Q.requirementList,children:[(0,H.jsx)(g,{gap:0,className:Q.featureIntro,children:(0,H.jsx)(s,{headingLevelStart:3,path:e.path,children:e.body})}),e.requirements.map((t,r)=>{let i=(a.get(t.id)??[]).map(e=>o.find(t=>t.id===e));return(0,H.jsxs)(g,{id:t.id,gap:4,className:Q.requirementSection,"data-state":t.state===`committed`?void 0:t.state,...t.id===c?{"aria-current":`location`}:{},children:[(0,H.jsxs)(g,{gap:2,children:[(0,H.jsxs)(v,{gap:2,vAlign:`center`,children:[(0,H.jsx)(qe,{label:m(`features.requirementNumber`,{number:$(r)}),id:t.id}),(0,H.jsx)(A,{state:t.state})]}),(0,H.jsx)(x,{level:3,children:(0,H.jsx)(`mark`,{className:Q.titleMark,"data-state-title":!0,children:t.title})})]}),(0,H.jsx)(s,{headingLevelStart:4,path:t.path,children:t.body}),(0,H.jsxs)(g,{gap:4,className:Q.requirementRelations,children:[!!i.length&&(0,H.jsx)(k,{label:m(`features.requirementDesigns`),children:i.map(t=>(0,H.jsx)(E,{title:(0,H.jsx)(p,{to:`/features/$featureId`,params:{featureId:e.id},search:{...n,tab:`design`,selected:t.id},hash:t.id,children:t.title}),description:t.description},t.id))}),(0,H.jsx)(k,{label:m(`features.requirementHistoryLabel`),children:(0,H.jsx)(E,{title:(0,H.jsx)(p,{to:`/records`,search:{feature:e.id,q:t.id},children:m(`features.requirementHistory`)})})})]})]},t.id)}),!e.requirements.length&&(0,H.jsx)(I,{children:m(`features.noRequirements`)})]})]})]})}var $=e=>String(e+1).padStart(2,`0`);function qe({label:e,id:t}){return(0,H.jsxs)(I,{type:`supporting`,color:`secondary`,className:Q.numberLine,children:[e,(0,H.jsx)(`span`,{"aria-hidden":!0,className:Q.numberDot,children:`·`}),t]})}function Je({label:e,title:t,documents:n,reading:r}){return(0,H.jsxs)(g,{as:`nav`,"aria-label":e,gap:2,className:Q.documentIndex,children:[(0,H.jsx)(I,{type:`supporting`,color:`secondary`,children:t}),n.map((e,t)=>(0,H.jsxs)(`a`,{href:`#${e.id}`,...e.id===r?{"aria-current":`true`}:{},children:[$(t),` `,e.title]},e.id))]})}function Ye(e){let[t,n]=(0,V.useState)(),r=e.join(`,`);return(0,V.useEffect)(()=>{let t=e.map(e=>document.getElementById(e)).filter(e=>!!e);if(n(t[0]?.id),!t.length)return;let r=new Set,i=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting?r.add(t.target.id):r.delete(t.target.id);let i=t.findLast(e=>r.has(e.id));i&&n(i.id)},{rootMargin:`-96px 0px -55% 0px`});return t.forEach(e=>i.observe(e)),()=>i.disconnect()},[r]),t}function Xe({featureId:e,search:t,change:n}){return h(),(0,H.jsx)(D,{header:S,title:m(`nav.features`),description:m(`pageDescription.features`),root:`/features`,hasTitle:!e,trail:t=>{let n=e?t.index.features.find(t=>t.id===e):void 0;return n?[{label:n.title}]:[]},...e?{}:{filters:e=>(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(ee,{label:m(`filters.search`),placeholder:m(`filters.searchFeatures`),value:t.q??``,onChange:e=>n({...t,q:e||void 0},!0)}),(0,H.jsx)(me,{label:m(`filters.design`),isLabelHidden:!0,startIcon:re,value:t.design??``,options:[{value:``,label:m(`filters.allDesigns`)},{value:`yes`,label:m(`filters.designWritten`)},{value:`no`,label:m(`filters.designMissing`)}],onChange:e=>n({...t,design:e||void 0})}),(0,H.jsx)(me,{label:m(`filters.contributor`),isLabelHidden:!0,startIcon:te,value:t.author??``,options:[{value:``,label:m(`filters.allContributors`)},...e.index.people.map(e=>({value:e.email,label:e.name}))],onChange:e=>n({...t,author:e||void 0})})]})},children:({checkout:r,session:i})=>(0,H.jsx)(He,{session:i,index:r.index.features,featureId:e,search:t,change:n})})}async function Ze(e,t,n){let{session:r}=await _(e);if(!r)return;if(!t){await C(e.ensureInfiniteQueryData(u(r,Ve(n))));return}let i=await e.ensureQueryData(T(r,t)).catch(()=>void 0);if(!i)return;let{feature:a}=i;await o(n.tab===`design`?a.designs.map(e=>e.body):[a.body,...a.requirements.map(e=>e.body)])}export{Xe as n,Ze as t};
@@ -1 +0,0 @@
1
- ._featureTable_phbqr_2 table{border-radius:0}._featureTable_phbqr_2 tbody tr{cursor:default}._descriptionLink_phbqr_5{color:inherit;text-decoration:none}._descriptionLink_phbqr_5:hover{color:var(--color-text-primary);text-decoration:underline}._featureTitle_phbqr_7{color:var(--color-text-primary);font-weight:600;text-decoration:none}._featureTitle_phbqr_7:hover{text-decoration:underline}._featureDetail_phbqr_9{overflow-wrap:anywhere;min-width:0;padding-inline:var(--spacing-5)}._featureBack_phbqr_10{color:var(--color-text-secondary);align-self:flex-start;font-size:.8125rem;text-decoration:none}._featureBack_phbqr_10:hover{text-decoration:underline}._documentHeading_phbqr_12{padding-block:var(--spacing-4) var(--spacing-6)}._documentHeading_phbqr_12 h1{letter-spacing:-.025em;font-size:1.75rem;line-height:1.4}._featureDetail_phbqr_9{padding-top:var(--spacing-6)}._designPanel_phbqr_15{padding-block:var(--spacing-6)}._featureIntro_phbqr_16{padding-block:var(--spacing-5)}._documentIndex_phbqr_17{padding-block:var(--spacing-5);border-block:1px solid var(--color-border)}._documentIndex_phbqr_17 a{padding-block:var(--spacing-1);text-decoration:none}@media (width>=1200px){._requirementLayout_phbqr_22._requirementLayout_phbqr_22{column-gap:var(--spacing-7);grid-template-columns:minmax(0,1fr) 14rem;align-items:start;display:grid}._requirementLayout_phbqr_22 ._requirementList_phbqr_23{grid-area:1/1}._requirementLayout_phbqr_22 ._documentIndex_phbqr_17{top:calc(var(--gitifact-topbar-height) + var(--spacing-4));max-height:calc(100vh - var(--gitifact-topbar-height) - var(--spacing-8));border-block:none;border-left:1px solid var(--color-border);padding:var(--spacing-2) 0 var(--spacing-2) var(--spacing-4);grid-area:1/2;position:sticky;overflow-y:auto}._requirementLayout_phbqr_22 ._documentIndex_phbqr_17 a{font-size:.8125rem;line-height:1.5}._requirementLayout_phbqr_22 ._documentIndex_phbqr_17 a[aria-current]{color:var(--color-text-primary);box-shadow:inset 2px 0 0 var(--color-text-primary);margin-left:calc(-1 * var(--spacing-4));padding-left:var(--spacing-4);font-weight:600}}._featureDetail_phbqr_9 a:hover{text-decoration:underline}._requirementSection_phbqr_31{padding-block:var(--spacing-7);border-bottom:1px solid var(--color-border);scroll-margin-top:calc(var(--gitifact-topbar-height) + var(--spacing-4))}._requirementSection_phbqr_31 h3{font-size:1.25rem;line-height:1.5}._titleMark_phbqr_34{color:inherit;background:0 0;background-image:linear-gradient(transparent 55%, var(--color-background-yellow) 55%, var(--color-background-yellow) 94%, transparent 94%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding-inline:.15em}._requirementSection_phbqr_31[aria-current]{scroll-margin-top:calc(var(--gitifact-topbar-height) + var(--spacing-5));background-image:repeating-linear-gradient(-45deg, var(--color-background-muted) 0 1px, transparent 1px 7px);margin-inline:calc(-1 * var(--spacing-4));padding-inline:var(--spacing-4)}._requirementSection_phbqr_31 p,._requirementSection_phbqr_31 li{line-height:1.9}._documentHeading_phbqr_12 a{font-size:.8125rem}._requirementRelations_phbqr_42{padding-block-start:var(--spacing-2)}._numberLine_phbqr_44{font-variant-numeric:tabular-nums}._numberDot_phbqr_45{margin-inline:var(--spacing-2);opacity:.6}@media (width<64rem){._documentHeading_phbqr_12 h1{font-size:1.5rem}}._entryLine_phbqr_49{align-items:center;min-width:0}._recentRow_phbqr_50 ._featureTitle_phbqr_7{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}._featureTable_phbqr_2 tbody td{padding-block:var(--spacing-4)}._featureTitleRow_phbqr_57{flex-wrap:nowrap;align-items:center;width:100%;min-width:0}._featureHeading_phbqr_58{flex:auto;min-width:0}._featureNameLine_phbqr_60{flex-wrap:nowrap;align-items:center;min-width:0;height:1.3rem}._featureNameLine_phbqr_60 ._featureTitle_phbqr_7{line-height:1.35}._featureHeading_phbqr_58 ._featureDescription_phbqr_62{font-size:.75rem;line-height:1.35}._featureTable_phbqr_2 tbody tr[data-row=feature] td{padding-block:var(--spacing-3)}._featureDesignLink_phbqr_64{color:var(--color-text-secondary);white-space:nowrap;flex:none;font-size:.75rem;text-decoration:none}._featureDesignLink_phbqr_64:hover{text-decoration:underline}._featureTable_phbqr_2 tbody tr[data-row=feature] td{background-image:repeating-linear-gradient(-45deg, var(--color-background-muted) 0 1px, transparent 1px 7px)}._featureTable_phbqr_2 tbody tr[data-row=feature] ._featureTitle_phbqr_7{font-weight:600}._featureTable_phbqr_2 tbody tr[data-row=requirement] td:first-child,._featureTable_phbqr_2 tbody tr[data-row=more] td:first-child{padding-inline-start:var(--spacing-6)}._featureTable_phbqr_2 tbody tr[data-row=feature] td{border-top:1px solid var(--color-border)}._featureTable_phbqr_2 tbody tr[data-row=requirement] td,._featureTable_phbqr_2 tbody tr[data-row=more] td{padding-block:var(--spacing-2);border-bottom:0}:is(._featureTable_phbqr_2 tbody tr[data-row=requirement]:has(+tr[data-row=feature]) td,._featureTable_phbqr_2 tbody tr[data-row=more]:has(+tr[data-row=feature]) td){padding-bottom:var(--spacing-6)}._featureTable_phbqr_2 tbody tr[data-row=requirement][data-state]:has(+tr[data-row=feature]) td{background-color:#0000;background-image:linear-gradient(var(--gitifact-state-wash), var(--gitifact-state-wash));background-repeat:no-repeat;background-size:100% calc(100% - var(--spacing-6) + var(--spacing-2))}._requirementRow_phbqr_83{flex-wrap:nowrap;align-items:baseline;width:100%;min-width:0}._requirementNumber_phbqr_84{font-variant-numeric:tabular-nums;flex:none}._requirementLink_phbqr_85{min-width:0;color:var(--color-text-primary);text-overflow:ellipsis;white-space:nowrap;flex:0 auto;text-decoration:none;overflow:hidden}._requirementLink_phbqr_85:hover,._requirementMore_phbqr_86:hover{text-decoration:underline}._requirementDescription_phbqr_89{flex:auto;min-width:0;font-size:.8125rem}._requirementNoDesign_phbqr_90{color:var(--color-text-yellow,var(--color-text-secondary));white-space:nowrap;flex:none;padding-inline-start:var(--spacing-4);font-size:.75rem}._acceptanceCount_phbqr_91{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:.75rem}._requirementMore_phbqr_86{color:var(--color-text-secondary);font-size:.8125rem;text-decoration:none}._featureTitleRow_phbqr_57 ._featureTitle_phbqr_7{text-overflow:ellipsis;white-space:nowrap;flex:0 auto;min-width:0;overflow:hidden}._countCell_phbqr_94{justify-content:flex-end;align-items:center}._countCell_phbqr_94>:last-child{flex:1;min-width:2.5rem;max-width:6rem}._oneLine_phbqr_98{text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;overflow:hidden}
@@ -1 +0,0 @@
1
- import{l as e}from"./themeProps-CkLe5zXY.js";import{r as t}from"./document-DPtVyR5y.js";import{cn as n,fn as r,ht as i,rn as a,sn as o,t as s}from"./page-header-CVCjLFQo.js";var c={page:`_page_jngdz_2`,column:`_column_jngdz_3`,pageTitle:`_pageTitle_jngdz_4`,body:`_body_jngdz_5`},l=e();function u(){r();let e=o(`gettingStarted`).replace(/^# [^\n]+\n+/,``);return(0,l.jsxs)(i,{gap:0,className:c.page,children:[(0,l.jsx)(s,{trail:[{label:n(`gettingStarted.title`)}]}),(0,l.jsxs)(i,{gap:0,className:c.column,children:[(0,l.jsx)(i,{gap:1,className:c.pageTitle,children:(0,l.jsx)(a,{level:1,children:n(`gettingStarted.title`)})}),(0,l.jsx)(i,{as:`article`,"aria-label":n(`gettingStarted.title`),gap:0,className:c.body,children:(0,l.jsx)(t,{children:e})})]})]})}var d=u;export{d as component};
@@ -1 +0,0 @@
1
- import{f as e}from"./index-BeeP8ZFW.js";var t=e;export{t as component};