@samyx/preview-stacks-ui 0.32.0 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/assets/{ActionButton.vue_vue_type_script_setup_true_lang-D8Xlp6c9.js → ActionButton.vue_vue_type_script_setup_true_lang-AGS1FKpY.js} +2 -2
  2. package/dist/assets/{ActionButton.vue_vue_type_script_setup_true_lang-D8Xlp6c9.js.map → ActionButton.vue_vue_type_script_setup_true_lang-AGS1FKpY.js.map} +1 -1
  3. package/dist/assets/{AxesTab-BWzsbFAx.js → AxesTab-DlGjhnwi.js} +2 -2
  4. package/dist/assets/{AxesTab-BWzsbFAx.js.map → AxesTab-DlGjhnwi.js.map} +1 -1
  5. package/dist/assets/{ConfigTab-ucr87rD6.js → ConfigTab-BiqFZrvm.js} +2 -2
  6. package/dist/assets/{ConfigTab-ucr87rD6.js.map → ConfigTab-BiqFZrvm.js.map} +1 -1
  7. package/dist/assets/{ConfigView-BbRYGyvZ.js → ConfigView-CsQJIt52.js} +2 -2
  8. package/dist/assets/{ConfigView-BbRYGyvZ.js.map → ConfigView-CsQJIt52.js.map} +1 -1
  9. package/dist/assets/{ConflictNote.vue_vue_type_script_setup_true_lang-DDt6qe65.js → ConflictNote.vue_vue_type_script_setup_true_lang-BxG7GEFo.js} +2 -2
  10. package/dist/assets/{ConflictNote.vue_vue_type_script_setup_true_lang-DDt6qe65.js.map → ConflictNote.vue_vue_type_script_setup_true_lang-BxG7GEFo.js.map} +1 -1
  11. package/dist/assets/{DangerTab-BimKNJab.js → DangerTab-COq-R4Dz.js} +2 -2
  12. package/dist/assets/{DangerTab-BimKNJab.js.map → DangerTab-COq-R4Dz.js.map} +1 -1
  13. package/dist/assets/{DashboardView-DK0qDo-f.js → DashboardView-DTI9n2-Z.js} +2 -2
  14. package/dist/assets/{DashboardView-DK0qDo-f.js.map → DashboardView-DTI9n2-Z.js.map} +1 -1
  15. package/dist/assets/{DeploymentDetailView-BcImKApM.js → DeploymentDetailView-BBMtQ9vE.js} +2 -2
  16. package/dist/assets/{DeploymentDetailView-BcImKApM.js.map → DeploymentDetailView-BBMtQ9vE.js.map} +1 -1
  17. package/dist/assets/{DeploymentsView-Cx9BqQ8Q.js → DeploymentsView-BCXfIFud.js} +2 -2
  18. package/dist/assets/{DeploymentsView-Cx9BqQ8Q.js.map → DeploymentsView-BCXfIFud.js.map} +1 -1
  19. package/dist/assets/{DialogTrigger-nWkfUj3N.js → DialogTrigger-D4yBGqUf.js} +2 -2
  20. package/dist/assets/{DialogTrigger-nWkfUj3N.js.map → DialogTrigger-D4yBGqUf.js.map} +1 -1
  21. package/dist/assets/{EquivalentCommand-D92xDU0_.js → EquivalentCommand-D0dyw0Wd.js} +2 -2
  22. package/dist/assets/{EquivalentCommand-D92xDU0_.js.map → EquivalentCommand-D0dyw0Wd.js.map} +1 -1
  23. package/dist/assets/{ErrorNote.vue_vue_type_script_setup_true_lang-DVbGiVTB.js → ErrorNote.vue_vue_type_script_setup_true_lang-BrBUwK6j.js} +2 -2
  24. package/dist/assets/{ErrorNote.vue_vue_type_script_setup_true_lang-DVbGiVTB.js.map → ErrorNote.vue_vue_type_script_setup_true_lang-BrBUwK6j.js.map} +1 -1
  25. package/dist/assets/{HelpModal.vue_vue_type_script_setup_true_lang-CSOdBT2E.js → HelpModal.vue_vue_type_script_setup_true_lang-CTbPBhLs.js} +2 -2
  26. package/dist/assets/{HelpModal.vue_vue_type_script_setup_true_lang-CSOdBT2E.js.map → HelpModal.vue_vue_type_script_setup_true_lang-CTbPBhLs.js.map} +1 -1
  27. package/dist/assets/{JobDetailView-B1sXXVJ5.js → JobDetailView-DIEijrhl.js} +2 -2
  28. package/dist/assets/{JobDetailView-B1sXXVJ5.js.map → JobDetailView-DIEijrhl.js.map} +1 -1
  29. package/dist/assets/{JobsView-DjP5lXHk.js → JobsView-Dw4-yNCj.js} +2 -2
  30. package/dist/assets/{JobsView-DjP5lXHk.js.map → JobsView-Dw4-yNCj.js.map} +1 -1
  31. package/dist/assets/{LogViewer.vue_vue_type_script_setup_true_lang-Bhy_5cyC.js → LogViewer.vue_vue_type_script_setup_true_lang-B3YVBpn-.js} +2 -2
  32. package/dist/assets/{LogViewer.vue_vue_type_script_setup_true_lang-Bhy_5cyC.js.map → LogViewer.vue_vue_type_script_setup_true_lang-B3YVBpn-.js.map} +1 -1
  33. package/dist/assets/{LoginView-CIkI9Qm_.js → LoginView-NgcWC4N0.js} +2 -2
  34. package/dist/assets/{LoginView-CIkI9Qm_.js.map → LoginView-NgcWC4N0.js.map} +1 -1
  35. package/dist/assets/{LogsTab-D8zhR7Eb.js → LogsTab-oWjSPx9O.js} +2 -2
  36. package/dist/assets/{LogsTab-D8zhR7Eb.js.map → LogsTab-oWjSPx9O.js.map} +1 -1
  37. package/dist/assets/{NotFoundView-aUtqh2Qi.js → NotFoundView-DnQQJSu_.js} +2 -2
  38. package/dist/assets/{NotFoundView-aUtqh2Qi.js.map → NotFoundView-DnQQJSu_.js.map} +1 -1
  39. package/dist/assets/{NotifiersView-aRHInxVx.js → NotifiersView-CvP3L81J.js} +2 -2
  40. package/dist/assets/{NotifiersView-aRHInxVx.js.map → NotifiersView-CvP3L81J.js.map} +1 -1
  41. package/dist/assets/{OverviewTab-ChCj5LAj.js → OverviewTab-C10J0ywh.js} +2 -2
  42. package/dist/assets/{OverviewTab-ChCj5LAj.js.map → OverviewTab-C10J0ywh.js.map} +1 -1
  43. package/dist/assets/{PublicLogsView-DIWJH7qL.js → PublicLogsView-DqMmMbtf.js} +2 -2
  44. package/dist/assets/{PublicLogsView-DIWJH7qL.js.map → PublicLogsView-DqMmMbtf.js.map} +1 -1
  45. package/dist/assets/{RefreshButton.vue_vue_type_script_setup_true_lang-P7VwWcRa.js → RefreshButton.vue_vue_type_script_setup_true_lang-8Tme6z_i.js} +2 -2
  46. package/dist/assets/{RefreshButton.vue_vue_type_script_setup_true_lang-P7VwWcRa.js.map → RefreshButton.vue_vue_type_script_setup_true_lang-8Tme6z_i.js.map} +1 -1
  47. package/dist/assets/{RegistriesView-D2aCsYIu.js → RegistriesView-DIa3mCyc.js} +2 -2
  48. package/dist/assets/{RegistriesView-D2aCsYIu.js.map → RegistriesView-DIa3mCyc.js.map} +1 -1
  49. package/dist/assets/{RelativeTime.vue_vue_type_script_setup_true_lang-NGvUfuKC.js → RelativeTime.vue_vue_type_script_setup_true_lang-eoX10cnp.js} +2 -2
  50. package/dist/assets/{RelativeTime.vue_vue_type_script_setup_true_lang-NGvUfuKC.js.map → RelativeTime.vue_vue_type_script_setup_true_lang-eoX10cnp.js.map} +1 -1
  51. package/dist/assets/{RequiresTab-3BhU5BHd.js → RequiresTab-Dde68lOF.js} +2 -2
  52. package/dist/assets/{RequiresTab-3BhU5BHd.js.map → RequiresTab-Dde68lOF.js.map} +1 -1
  53. package/dist/assets/{RouteTarget.vue_vue_type_script_setup_true_lang-Caee0wEB.js → RouteTarget.vue_vue_type_script_setup_true_lang-DgcXRES0.js} +2 -2
  54. package/dist/assets/{RouteTarget.vue_vue_type_script_setup_true_lang-Caee0wEB.js.map → RouteTarget.vue_vue_type_script_setup_true_lang-DgcXRES0.js.map} +1 -1
  55. package/dist/assets/{RoutingView-T9afX8_M.js → RoutingView-oXXCIL07.js} +2 -2
  56. package/dist/assets/{RoutingView-T9afX8_M.js.map → RoutingView-oXXCIL07.js.map} +1 -1
  57. package/dist/assets/{RuntimeTab-Bh2gGuhj.js → RuntimeTab-DFxU8OLh.js} +2 -2
  58. package/dist/assets/{RuntimeTab-Bh2gGuhj.js.map → RuntimeTab-DFxU8OLh.js.map} +1 -1
  59. package/dist/assets/{SelectMenu.vue_vue_type_script_setup_true_lang-BtHqT6G1.js → SelectMenu.vue_vue_type_script_setup_true_lang-Bjd8KlYw.js} +2 -2
  60. package/dist/assets/{SelectMenu.vue_vue_type_script_setup_true_lang-BtHqT6G1.js.map → SelectMenu.vue_vue_type_script_setup_true_lang-Bjd8KlYw.js.map} +1 -1
  61. package/dist/assets/SettingsView-DwSmnNbU.js +2 -0
  62. package/dist/assets/SettingsView-DwSmnNbU.js.map +1 -0
  63. package/dist/assets/{SkeletonList.vue_vue_type_script_setup_true_lang-BmeRGmxf.js → SkeletonList.vue_vue_type_script_setup_true_lang-CvoOnzDO.js} +2 -2
  64. package/dist/assets/{SkeletonList.vue_vue_type_script_setup_true_lang-BmeRGmxf.js.map → SkeletonList.vue_vue_type_script_setup_true_lang-CvoOnzDO.js.map} +1 -1
  65. package/dist/assets/{SpecDetailView-Bd4Hx-bI.js → SpecDetailView-D10gsC8W.js} +2 -2
  66. package/dist/assets/{SpecDetailView-Bd4Hx-bI.js.map → SpecDetailView-D10gsC8W.js.map} +1 -1
  67. package/dist/assets/{SpecsView-B9qQPzkG.js → SpecsView-BU962Blv.js} +2 -2
  68. package/dist/assets/{SpecsView-B9qQPzkG.js.map → SpecsView-BU962Blv.js.map} +1 -1
  69. package/dist/assets/{SsoMark.vue_vue_type_script_setup_true_lang-BBiCq_4w.js → SsoMark.vue_vue_type_script_setup_true_lang-BzRkYwRn.js} +2 -2
  70. package/dist/assets/{SsoMark.vue_vue_type_script_setup_true_lang-BBiCq_4w.js.map → SsoMark.vue_vue_type_script_setup_true_lang-BzRkYwRn.js.map} +1 -1
  71. package/dist/assets/SsoView-AzBjKwF_.css +1 -0
  72. package/dist/assets/SsoView-BJO4vMED.js +2 -0
  73. package/dist/assets/SsoView-BJO4vMED.js.map +1 -0
  74. package/dist/assets/{StateBadge.vue_vue_type_script_setup_true_lang-nD6Zdx0q.js → StateBadge.vue_vue_type_script_setup_true_lang-CzLuB-ZI.js} +2 -2
  75. package/dist/assets/{StateBadge.vue_vue_type_script_setup_true_lang-nD6Zdx0q.js.map → StateBadge.vue_vue_type_script_setup_true_lang-CzLuB-ZI.js.map} +1 -1
  76. package/dist/assets/{SubmitView-D-jg5Wxy.js → SubmitView-CChPoIvR.js} +2 -2
  77. package/dist/assets/{SubmitView-D-jg5Wxy.js.map → SubmitView-CChPoIvR.js.map} +1 -1
  78. package/dist/assets/{SwarmView-CqFndUrV.js → SwarmView-xPA-5INc.js} +2 -2
  79. package/dist/assets/{SwarmView-CqFndUrV.js.map → SwarmView-xPA-5INc.js.map} +1 -1
  80. package/dist/assets/{Teleport-I0XiM19H.js → Teleport-Bg1yDCl9.js} +2 -2
  81. package/dist/assets/{Teleport-I0XiM19H.js.map → Teleport-Bg1yDCl9.js.map} +1 -1
  82. package/dist/assets/{TerminalTab-Dleba0ru.js → TerminalTab-jUQlwJpM.js} +2 -2
  83. package/dist/assets/{TerminalTab-Dleba0ru.js.map → TerminalTab-jUQlwJpM.js.map} +1 -1
  84. package/dist/assets/{UsersView-BrZbuuOg.js → UsersView-DcjfdY6Q.js} +2 -2
  85. package/dist/assets/{UsersView-BrZbuuOg.js.map → UsersView-DcjfdY6Q.js.map} +1 -1
  86. package/dist/assets/{VarEditor.vue_vue_type_script_setup_true_lang-uPHU_Ugp.js → VarEditor.vue_vue_type_script_setup_true_lang-gohbG3IW.js} +2 -2
  87. package/dist/assets/{VarEditor.vue_vue_type_script_setup_true_lang-uPHU_Ugp.js.map → VarEditor.vue_vue_type_script_setup_true_lang-gohbG3IW.js.map} +1 -1
  88. package/dist/assets/{VarIO-BldCQ6Xx.js → VarIO-gtGLr9Br.js} +2 -2
  89. package/dist/assets/{VarIO-BldCQ6Xx.js.map → VarIO-gtGLr9Br.js.map} +1 -1
  90. package/dist/assets/{VariablesView-CQp0T7Q6.js → VariablesView-DSXnmTTH.js} +2 -2
  91. package/dist/assets/{VariablesView-CQp0T7Q6.js.map → VariablesView-DSXnmTTH.js.map} +1 -1
  92. package/dist/assets/{index-Cqe_7QZw.js → index-DB2WhG8N.js} +3 -3
  93. package/dist/assets/{index-Cqe_7QZw.js.map → index-DB2WhG8N.js.map} +1 -1
  94. package/dist/assets/{useDeployment-BDbkdxpo.js → useDeployment-B7wpJY-X.js} +2 -2
  95. package/dist/assets/{useDeployment-BDbkdxpo.js.map → useDeployment-B7wpJY-X.js.map} +1 -1
  96. package/dist/index.html +1 -1
  97. package/package.json +1 -1
  98. package/dist/assets/SettingsView-DIKjdBdy.js +0 -2
  99. package/dist/assets/SettingsView-DIKjdBdy.js.map +0 -1
  100. package/dist/assets/SsoView-CltdTdwt.js +0 -2
  101. package/dist/assets/SsoView-CltdTdwt.js.map +0 -1
  102. package/dist/assets/SsoView-JmlPQGWM.css +0 -1
@@ -1,2 +1,2 @@
1
- import{u as $,c as h,a as D,P as q,b as B,g as w,D as R,d as k,F as T,e as E,f as K,h as F,i as N,T as S}from"./Teleport-I0XiM19H.js";import{d as y,a8 as V,a4 as _,u as e,j as O,o as c,z as v,w as p,a9 as m,O as I,e as A,h as L,g as j,aa as z,ab as H}from"./index-Cqe_7QZw.js";const[C,U]=h("DialogRoot");var G=y({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(n,{emit:r}){const t=n,o=$(t,"open",r,{defaultValue:t.defaultOpen,passive:t.open===void 0}),i=O(),f=O(),{modal:u}=V(t);return U({open:o,modal:u,openModal:()=>{o.value=!0},onOpenChange:l=>{o.value=l},onOpenToggle:()=>{o.value=!o.value},contentId:"",titleId:"",descriptionId:"",triggerElement:i,contentElement:f}),(l,s)=>_(l.$slots,"default",{open:e(o),close:()=>o.value=!1})}}),ue=G,J=y({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(n){const r=n;D();const t=C();return(a,o)=>(c(),v(e(q),m(r,{type:a.as==="button"?"button":void 0,onClick:o[0]||(o[0]=i=>e(t).onOpenChange(!1))}),{default:p(()=>[_(a.$slots,"default")]),_:3},16,["type"]))}}),ie=J,Q=y({__name:"DialogContentImpl",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(n,{emit:r}){const t=n,a=r,o=C(),{forwardRef:i,currentElement:f}=D();return o.titleId||(o.titleId=B(void 0,"reka-dialog-title")),o.descriptionId||(o.descriptionId=B(void 0,"reka-dialog-description")),I(()=>{o.contentElement=f,w()!==document.body&&(o.triggerElement.value=w())}),(u,l)=>(c(),v(e(T),{"as-child":"",loop:"",trapped:t.trapFocus,onMountAutoFocus:l[5]||(l[5]=s=>a("openAutoFocus",s)),onUnmountAutoFocus:l[6]||(l[6]=s=>a("closeAutoFocus",s))},{default:p(()=>[A(e(R),m({id:e(o).contentId,ref:e(i),as:u.as,"as-child":u.asChild,"disable-outside-pointer-events":u.disableOutsidePointerEvents,role:"dialog","aria-describedby":e(o).descriptionId,"aria-labelledby":e(o).titleId,"data-state":e(k)(e(o).open.value)},u.$attrs,{onDismiss:l[0]||(l[0]=s=>e(o).onOpenChange(!1)),onEscapeKeyDown:l[1]||(l[1]=s=>a("escapeKeyDown",s)),onFocusOutside:l[2]||(l[2]=s=>a("focusOutside",s)),onInteractOutside:l[3]||(l[3]=s=>a("interactOutside",s)),onPointerDownOutside:l[4]||(l[4]=s=>a("pointerDownOutside",s))}),{default:p(()=>[_(u.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),M=Q,W=y({__name:"DialogContentModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(n,{emit:r}){const t=n,a=r,o=C(),i=E(a),{forwardRef:f,currentElement:u}=D();return K(u),(l,s)=>(c(),v(M,m({...t,...e(i)},{ref:e(f),"trap-focus":e(o).open.value,"disable-outside-pointer-events":t.disableOutsidePointerEvents,onCloseAutoFocus:s[0]||(s[0]=d=>{var g;d.defaultPrevented||(d.preventDefault(),(g=e(o).triggerElement.value)==null||g.focus())}),onPointerDownOutside:s[1]||(s[1]=d=>{const g=d.detail.originalEvent,P=g.button===0&&g.ctrlKey===!0;(g.button===2||P)&&d.preventDefault()}),onFocusOutside:s[2]||(s[2]=d=>{d.preventDefault()})}),{default:p(()=>[_(l.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),X=W,Y=y({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(n,{emit:r}){const t=n,o=E(r);D();const i=C(),f=O(!1),u=O(!1);return(l,s)=>(c(),v(M,m({...t,...e(o)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:s[0]||(s[0]=d=>{var g;d.defaultPrevented||(f.value||(g=e(i).triggerElement.value)==null||g.focus(),d.preventDefault()),f.value=!1,u.value=!1}),onInteractOutside:s[1]||(s[1]=d=>{var b;d.defaultPrevented||(f.value=!0,d.detail.originalEvent.type==="pointerdown"&&(u.value=!0));const g=d.target;((b=e(i).triggerElement.value)==null?void 0:b.contains(g))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&u.value&&d.preventDefault()})}),{default:p(()=>[_(l.$slots,"default")]),_:3},16))}}),Z=Y,x=y({__name:"DialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(n,{emit:r}){const t=n,a=r,o=C(),i=E(a),{forwardRef:f}=D();return(u,l)=>(c(),v(e(F),{present:u.forceMount||e(o).open.value},{default:p(()=>[e(o).modal.value?(c(),v(X,m({key:0,ref:e(f)},{...t,...e(i),...u.$attrs}),{default:p(()=>[_(u.$slots,"default")]),_:3},16)):(c(),v(Z,m({key:1,ref:e(f)},{...t,...e(i),...u.$attrs}),{default:p(()=>[_(u.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),de=x,ee=y({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(n){const r=C();return N(!0),D(),(t,a)=>(c(),v(e(q),{as:t.as,"as-child":t.asChild,"data-state":e(r).open.value?"open":"closed",style:{"pointer-events":"auto"},onPointerdown:a[0]||(a[0]=L(()=>{},["left","self","prevent"]))},{default:p(()=>[_(t.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),te=ee,oe=y({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(n){const r=C(),{forwardRef:t}=D();return(a,o)=>{var i;return(i=e(r))!=null&&i.modal.value?(c(),v(e(F),{key:0,present:a.forceMount||e(r).open.value},{default:p(()=>[A(te,m(a.$attrs,{ref:e(t),as:a.as,"as-child":a.asChild}),{default:p(()=>[_(a.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):j("v-if",!0)}}}),pe=oe,ae=y({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(n){const r=n;return(t,a)=>(c(),v(e(S),z(H(r)),{default:p(()=>[_(t.$slots,"default")]),_:3},16))}}),fe=ae,se=y({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(n){const r=n,t=C();return D(),(a,o)=>(c(),v(e(q),m(r,{id:e(t).titleId}),{default:p(()=>[_(a.$slots,"default")]),_:3},16,["id"]))}}),ce=se,le=y({__name:"DialogTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(n){const r=n,t=C(),{forwardRef:a,currentElement:o}=D();return t.contentId||(t.contentId=B(void 0,"reka-dialog-content")),I(()=>{t.triggerElement.value=o.value}),(i,f)=>(c(),v(e(q),m(r,{ref:e(a),type:i.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":e(t).open.value||!1,"aria-controls":e(t).open.value?e(t).contentId:void 0,"data-state":e(t).open.value?"open":"closed",onClick:e(t).onOpenToggle}),{default:p(()=>[_(i.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}}),ve=le;export{ue as D,ve as a,pe as b,de as c,ce as d,ie as e,fe as f};
2
- //# sourceMappingURL=DialogTrigger-nWkfUj3N.js.map
1
+ import{u as $,c as h,a as D,P as q,b as B,g as w,D as R,d as k,F as T,e as E,f as K,h as F,i as N,T as S}from"./Teleport-Bg1yDCl9.js";import{d as y,a8 as V,a4 as _,u as e,j as O,o as c,z as v,w as p,a9 as m,O as I,e as A,h as L,g as j,aa as z,ab as H}from"./index-DB2WhG8N.js";const[C,U]=h("DialogRoot");var G=y({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(n,{emit:r}){const t=n,o=$(t,"open",r,{defaultValue:t.defaultOpen,passive:t.open===void 0}),i=O(),f=O(),{modal:u}=V(t);return U({open:o,modal:u,openModal:()=>{o.value=!0},onOpenChange:l=>{o.value=l},onOpenToggle:()=>{o.value=!o.value},contentId:"",titleId:"",descriptionId:"",triggerElement:i,contentElement:f}),(l,s)=>_(l.$slots,"default",{open:e(o),close:()=>o.value=!1})}}),ue=G,J=y({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(n){const r=n;D();const t=C();return(a,o)=>(c(),v(e(q),m(r,{type:a.as==="button"?"button":void 0,onClick:o[0]||(o[0]=i=>e(t).onOpenChange(!1))}),{default:p(()=>[_(a.$slots,"default")]),_:3},16,["type"]))}}),ie=J,Q=y({__name:"DialogContentImpl",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(n,{emit:r}){const t=n,a=r,o=C(),{forwardRef:i,currentElement:f}=D();return o.titleId||(o.titleId=B(void 0,"reka-dialog-title")),o.descriptionId||(o.descriptionId=B(void 0,"reka-dialog-description")),I(()=>{o.contentElement=f,w()!==document.body&&(o.triggerElement.value=w())}),(u,l)=>(c(),v(e(T),{"as-child":"",loop:"",trapped:t.trapFocus,onMountAutoFocus:l[5]||(l[5]=s=>a("openAutoFocus",s)),onUnmountAutoFocus:l[6]||(l[6]=s=>a("closeAutoFocus",s))},{default:p(()=>[A(e(R),m({id:e(o).contentId,ref:e(i),as:u.as,"as-child":u.asChild,"disable-outside-pointer-events":u.disableOutsidePointerEvents,role:"dialog","aria-describedby":e(o).descriptionId,"aria-labelledby":e(o).titleId,"data-state":e(k)(e(o).open.value)},u.$attrs,{onDismiss:l[0]||(l[0]=s=>e(o).onOpenChange(!1)),onEscapeKeyDown:l[1]||(l[1]=s=>a("escapeKeyDown",s)),onFocusOutside:l[2]||(l[2]=s=>a("focusOutside",s)),onInteractOutside:l[3]||(l[3]=s=>a("interactOutside",s)),onPointerDownOutside:l[4]||(l[4]=s=>a("pointerDownOutside",s))}),{default:p(()=>[_(u.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),M=Q,W=y({__name:"DialogContentModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(n,{emit:r}){const t=n,a=r,o=C(),i=E(a),{forwardRef:f,currentElement:u}=D();return K(u),(l,s)=>(c(),v(M,m({...t,...e(i)},{ref:e(f),"trap-focus":e(o).open.value,"disable-outside-pointer-events":t.disableOutsidePointerEvents,onCloseAutoFocus:s[0]||(s[0]=d=>{var g;d.defaultPrevented||(d.preventDefault(),(g=e(o).triggerElement.value)==null||g.focus())}),onPointerDownOutside:s[1]||(s[1]=d=>{const g=d.detail.originalEvent,P=g.button===0&&g.ctrlKey===!0;(g.button===2||P)&&d.preventDefault()}),onFocusOutside:s[2]||(s[2]=d=>{d.preventDefault()})}),{default:p(()=>[_(l.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),X=W,Y=y({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(n,{emit:r}){const t=n,o=E(r);D();const i=C(),f=O(!1),u=O(!1);return(l,s)=>(c(),v(M,m({...t,...e(o)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:s[0]||(s[0]=d=>{var g;d.defaultPrevented||(f.value||(g=e(i).triggerElement.value)==null||g.focus(),d.preventDefault()),f.value=!1,u.value=!1}),onInteractOutside:s[1]||(s[1]=d=>{var b;d.defaultPrevented||(f.value=!0,d.detail.originalEvent.type==="pointerdown"&&(u.value=!0));const g=d.target;((b=e(i).triggerElement.value)==null?void 0:b.contains(g))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&u.value&&d.preventDefault()})}),{default:p(()=>[_(l.$slots,"default")]),_:3},16))}}),Z=Y,x=y({__name:"DialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(n,{emit:r}){const t=n,a=r,o=C(),i=E(a),{forwardRef:f}=D();return(u,l)=>(c(),v(e(F),{present:u.forceMount||e(o).open.value},{default:p(()=>[e(o).modal.value?(c(),v(X,m({key:0,ref:e(f)},{...t,...e(i),...u.$attrs}),{default:p(()=>[_(u.$slots,"default")]),_:3},16)):(c(),v(Z,m({key:1,ref:e(f)},{...t,...e(i),...u.$attrs}),{default:p(()=>[_(u.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),de=x,ee=y({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(n){const r=C();return N(!0),D(),(t,a)=>(c(),v(e(q),{as:t.as,"as-child":t.asChild,"data-state":e(r).open.value?"open":"closed",style:{"pointer-events":"auto"},onPointerdown:a[0]||(a[0]=L(()=>{},["left","self","prevent"]))},{default:p(()=>[_(t.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),te=ee,oe=y({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(n){const r=C(),{forwardRef:t}=D();return(a,o)=>{var i;return(i=e(r))!=null&&i.modal.value?(c(),v(e(F),{key:0,present:a.forceMount||e(r).open.value},{default:p(()=>[A(te,m(a.$attrs,{ref:e(t),as:a.as,"as-child":a.asChild}),{default:p(()=>[_(a.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):j("v-if",!0)}}}),pe=oe,ae=y({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(n){const r=n;return(t,a)=>(c(),v(e(S),z(H(r)),{default:p(()=>[_(t.$slots,"default")]),_:3},16))}}),fe=ae,se=y({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(n){const r=n,t=C();return D(),(a,o)=>(c(),v(e(q),m(r,{id:e(t).titleId}),{default:p(()=>[_(a.$slots,"default")]),_:3},16,["id"]))}}),ce=se,le=y({__name:"DialogTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(n){const r=n,t=C(),{forwardRef:a,currentElement:o}=D();return t.contentId||(t.contentId=B(void 0,"reka-dialog-content")),I(()=>{t.triggerElement.value=o.value}),(i,f)=>(c(),v(e(q),m(r,{ref:e(a),type:i.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":e(t).open.value||!1,"aria-controls":e(t).open.value?e(t).contentId:void 0,"data-state":e(t).open.value?"open":"closed",onClick:e(t).onOpenToggle}),{default:p(()=>[_(i.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}}),ve=le;export{ue as D,ve as a,pe as b,de as c,ce as d,ie as e,fe as f};
2
+ //# sourceMappingURL=DialogTrigger-D4yBGqUf.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DialogTrigger-nWkfUj3N.js","sources":["../../../../node_modules/.bun/reka-ui@2.9.10+6aac64ae34cef4e6/node_modules/reka-ui/dist/Dialog/DialogRoot.js","../../../../node_modules/.bun/reka-ui@2.9.10+6aac64ae34cef4e6/node_modules/reka-ui/dist/Dialog/DialogClose.js","../../../../node_modules/.bun/reka-ui@2.9.10+6aac64ae34cef4e6/node_modules/reka-ui/dist/Dialog/DialogContentImpl.js","../../../../node_modules/.bun/reka-ui@2.9.10+6aac64ae34cef4e6/node_modules/reka-ui/dist/Dialog/DialogContentModal.js","../../../../node_modules/.bun/reka-ui@2.9.10+6aac64ae34cef4e6/node_modules/reka-ui/dist/Dialog/DialogContentNonModal.js","../../../../node_modules/.bun/reka-ui@2.9.10+6aac64ae34cef4e6/node_modules/reka-ui/dist/Dialog/DialogContent.js","../../../../node_modules/.bun/reka-ui@2.9.10+6aac64ae34cef4e6/node_modules/reka-ui/dist/Dialog/DialogOverlayImpl.js","../../../../node_modules/.bun/reka-ui@2.9.10+6aac64ae34cef4e6/node_modules/reka-ui/dist/Dialog/DialogOverlay.js","../../../../node_modules/.bun/reka-ui@2.9.10+6aac64ae34cef4e6/node_modules/reka-ui/dist/Dialog/DialogPortal.js","../../../../node_modules/.bun/reka-ui@2.9.10+6aac64ae34cef4e6/node_modules/reka-ui/dist/Dialog/DialogTitle.js","../../../../node_modules/.bun/reka-ui@2.9.10+6aac64ae34cef4e6/node_modules/reka-ui/dist/Dialog/DialogTrigger.js"],"sourcesContent":["import { createContext } from \"../shared/createContext.js\";\nimport { defineComponent, ref, renderSlot, toRefs, unref } from \"vue\";\nimport { useVModel } from \"@vueuse/core\";\n\n//#region src/Dialog/DialogRoot.vue?vue&type=script&setup=true&lang.ts\nconst [injectDialogRootContext, provideDialogRootContext] = /*#__PURE__*/ createContext(\"DialogRoot\");\nvar DialogRoot_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\tinheritAttrs: false,\n\t__name: \"DialogRoot\",\n\tprops: {\n\t\topen: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false,\n\t\t\tdefault: void 0\n\t\t},\n\t\tdefaultOpen: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false,\n\t\t\tdefault: false\n\t\t},\n\t\tmodal: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false,\n\t\t\tdefault: true\n\t\t}\n\t},\n\temits: [\"update:open\"],\n\tsetup(__props, { emit: __emit }) {\n\t\tconst props = __props;\n\t\tconst emit = __emit;\n\t\tconst open = useVModel(props, \"open\", emit, {\n\t\t\tdefaultValue: props.defaultOpen,\n\t\t\tpassive: props.open === void 0\n\t\t});\n\t\tconst triggerElement = ref();\n\t\tconst contentElement = ref();\n\t\tconst { modal } = toRefs(props);\n\t\tprovideDialogRootContext({\n\t\t\topen,\n\t\t\tmodal,\n\t\t\topenModal: () => {\n\t\t\t\topen.value = true;\n\t\t\t},\n\t\t\tonOpenChange: (value) => {\n\t\t\t\topen.value = value;\n\t\t\t},\n\t\t\tonOpenToggle: () => {\n\t\t\t\topen.value = !open.value;\n\t\t\t},\n\t\t\tcontentId: \"\",\n\t\t\ttitleId: \"\",\n\t\t\tdescriptionId: \"\",\n\t\t\ttriggerElement,\n\t\t\tcontentElement\n\t\t});\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn renderSlot(_ctx.$slots, \"default\", {\n\t\t\t\topen: unref(open),\n\t\t\t\tclose: () => open.value = false\n\t\t\t});\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/Dialog/DialogRoot.vue\nvar DialogRoot_default = DialogRoot_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { DialogRoot_default, injectDialogRootContext };\n//# sourceMappingURL=DialogRoot.js.map","import { useForwardExpose } from \"../shared/useForwardExpose.js\";\nimport { Primitive } from \"../Primitive/Primitive.js\";\nimport { injectDialogRootContext } from \"./DialogRoot.js\";\nimport { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from \"vue\";\n\n//#region src/Dialog/DialogClose.vue?vue&type=script&setup=true&lang.ts\nvar DialogClose_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\t__name: \"DialogClose\",\n\tprops: {\n\t\tasChild: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tas: {\n\t\t\ttype: null,\n\t\t\trequired: false,\n\t\t\tdefault: \"button\"\n\t\t}\n\t},\n\tsetup(__props) {\n\t\tconst props = __props;\n\t\tuseForwardExpose();\n\t\tconst rootContext = injectDialogRootContext();\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn openBlock(), createBlock(unref(Primitive), mergeProps(props, {\n\t\t\t\ttype: _ctx.as === \"button\" ? \"button\" : void 0,\n\t\t\t\tonClick: _cache[0] || (_cache[0] = ($event) => unref(rootContext).onOpenChange(false))\n\t\t\t}), {\n\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\")]),\n\t\t\t\t_: 3\n\t\t\t}, 16, [\"type\"]);\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/Dialog/DialogClose.vue\nvar DialogClose_default = DialogClose_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { DialogClose_default };\n//# sourceMappingURL=DialogClose.js.map","import { getActiveElement } from \"../shared/getActiveElement.js\";\nimport { useForwardExpose } from \"../shared/useForwardExpose.js\";\nimport { useId } from \"../shared/useId.js\";\nimport { injectDialogRootContext } from \"./DialogRoot.js\";\nimport { DismissableLayer_default } from \"../DismissableLayer/DismissableLayer.js\";\nimport { FocusScope_default } from \"../FocusScope/FocusScope.js\";\nimport { getOpenState } from \"../Menu/utils.js\";\nimport { useWarning } from \"./utils.js\";\nimport { createBlock, createVNode, defineComponent, mergeProps, onMounted, openBlock, renderSlot, unref, withCtx } from \"vue\";\n\n//#region src/Dialog/DialogContentImpl.vue?vue&type=script&setup=true&lang.ts\nvar DialogContentImpl_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\t__name: \"DialogContentImpl\",\n\tprops: {\n\t\tforceMount: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\ttrapFocus: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tdisableOutsidePointerEvents: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tasChild: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tas: {\n\t\t\ttype: null,\n\t\t\trequired: false\n\t\t}\n\t},\n\temits: [\n\t\t\"escapeKeyDown\",\n\t\t\"pointerDownOutside\",\n\t\t\"focusOutside\",\n\t\t\"interactOutside\",\n\t\t\"openAutoFocus\",\n\t\t\"closeAutoFocus\"\n\t],\n\tsetup(__props, { emit: __emit }) {\n\t\tconst props = __props;\n\t\tconst emits = __emit;\n\t\tconst rootContext = injectDialogRootContext();\n\t\tconst { forwardRef, currentElement: contentElement } = useForwardExpose();\n\t\trootContext.titleId ||= useId(void 0, \"reka-dialog-title\");\n\t\trootContext.descriptionId ||= useId(void 0, \"reka-dialog-description\");\n\t\tonMounted(() => {\n\t\t\trootContext.contentElement = contentElement;\n\t\t\tif (getActiveElement() !== document.body) rootContext.triggerElement.value = getActiveElement();\n\t\t});\n\t\tif (process.env.NODE_ENV !== \"production\") useWarning({\n\t\t\ttitleName: \"DialogTitle\",\n\t\t\tcontentName: \"DialogContent\",\n\t\t\tcomponentLink: \"dialog.html#title\",\n\t\t\ttitleId: rootContext.titleId,\n\t\t\tdescriptionId: rootContext.descriptionId,\n\t\t\tcontentElement\n\t\t});\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn openBlock(), createBlock(unref(FocusScope_default), {\n\t\t\t\t\"as-child\": \"\",\n\t\t\t\tloop: \"\",\n\t\t\t\ttrapped: props.trapFocus,\n\t\t\t\tonMountAutoFocus: _cache[5] || (_cache[5] = ($event) => emits(\"openAutoFocus\", $event)),\n\t\t\t\tonUnmountAutoFocus: _cache[6] || (_cache[6] = ($event) => emits(\"closeAutoFocus\", $event))\n\t\t\t}, {\n\t\t\t\tdefault: withCtx(() => [createVNode(unref(DismissableLayer_default), mergeProps({\n\t\t\t\t\tid: unref(rootContext).contentId,\n\t\t\t\t\tref: unref(forwardRef),\n\t\t\t\t\tas: _ctx.as,\n\t\t\t\t\t\"as-child\": _ctx.asChild,\n\t\t\t\t\t\"disable-outside-pointer-events\": _ctx.disableOutsidePointerEvents,\n\t\t\t\t\trole: \"dialog\",\n\t\t\t\t\t\"aria-describedby\": unref(rootContext).descriptionId,\n\t\t\t\t\t\"aria-labelledby\": unref(rootContext).titleId,\n\t\t\t\t\t\"data-state\": unref(getOpenState)(unref(rootContext).open.value)\n\t\t\t\t}, _ctx.$attrs, {\n\t\t\t\t\tonDismiss: _cache[0] || (_cache[0] = ($event) => unref(rootContext).onOpenChange(false)),\n\t\t\t\t\tonEscapeKeyDown: _cache[1] || (_cache[1] = ($event) => emits(\"escapeKeyDown\", $event)),\n\t\t\t\t\tonFocusOutside: _cache[2] || (_cache[2] = ($event) => emits(\"focusOutside\", $event)),\n\t\t\t\t\tonInteractOutside: _cache[3] || (_cache[3] = ($event) => emits(\"interactOutside\", $event)),\n\t\t\t\t\tonPointerDownOutside: _cache[4] || (_cache[4] = ($event) => emits(\"pointerDownOutside\", $event))\n\t\t\t\t}), {\n\t\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\")]),\n\t\t\t\t\t_: 3\n\t\t\t\t}, 16, [\n\t\t\t\t\t\"id\",\n\t\t\t\t\t\"as\",\n\t\t\t\t\t\"as-child\",\n\t\t\t\t\t\"disable-outside-pointer-events\",\n\t\t\t\t\t\"aria-describedby\",\n\t\t\t\t\t\"aria-labelledby\",\n\t\t\t\t\t\"data-state\"\n\t\t\t\t])]),\n\t\t\t\t_: 3\n\t\t\t}, 8, [\"trapped\"]);\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/Dialog/DialogContentImpl.vue\nvar DialogContentImpl_default = DialogContentImpl_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { DialogContentImpl_default };\n//# sourceMappingURL=DialogContentImpl.js.map","import { useEmitAsProps } from \"../shared/useEmitAsProps.js\";\nimport { useForwardExpose } from \"../shared/useForwardExpose.js\";\nimport { useHideOthers } from \"../shared/useHideOthers.js\";\nimport { injectDialogRootContext } from \"./DialogRoot.js\";\nimport { DialogContentImpl_default } from \"./DialogContentImpl.js\";\nimport { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from \"vue\";\n\n//#region src/Dialog/DialogContentModal.vue?vue&type=script&setup=true&lang.ts\nvar DialogContentModal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\t__name: \"DialogContentModal\",\n\tprops: {\n\t\tforceMount: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\ttrapFocus: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tdisableOutsidePointerEvents: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false,\n\t\t\tdefault: true\n\t\t},\n\t\tasChild: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tas: {\n\t\t\ttype: null,\n\t\t\trequired: false\n\t\t}\n\t},\n\temits: [\n\t\t\"escapeKeyDown\",\n\t\t\"pointerDownOutside\",\n\t\t\"focusOutside\",\n\t\t\"interactOutside\",\n\t\t\"openAutoFocus\",\n\t\t\"closeAutoFocus\"\n\t],\n\tsetup(__props, { emit: __emit }) {\n\t\tconst props = __props;\n\t\tconst emits = __emit;\n\t\tconst rootContext = injectDialogRootContext();\n\t\tconst emitsAsProps = useEmitAsProps(emits);\n\t\tconst { forwardRef, currentElement } = useForwardExpose();\n\t\tuseHideOthers(currentElement);\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn openBlock(), createBlock(DialogContentImpl_default, mergeProps({\n\t\t\t\t...props,\n\t\t\t\t...unref(emitsAsProps)\n\t\t\t}, {\n\t\t\t\tref: unref(forwardRef),\n\t\t\t\t\"trap-focus\": unref(rootContext).open.value,\n\t\t\t\t\"disable-outside-pointer-events\": props.disableOutsidePointerEvents,\n\t\t\t\tonCloseAutoFocus: _cache[0] || (_cache[0] = (event) => {\n\t\t\t\t\tif (!event.defaultPrevented) {\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\tunref(rootContext).triggerElement.value?.focus();\n\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t\tonPointerDownOutside: _cache[1] || (_cache[1] = (event) => {\n\t\t\t\t\tconst originalEvent = event.detail.originalEvent;\n\t\t\t\t\tconst ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n\t\t\t\t\tconst isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n\t\t\t\t\tif (isRightClick) event.preventDefault();\n\t\t\t\t}),\n\t\t\t\tonFocusOutside: _cache[2] || (_cache[2] = (event) => {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t})\n\t\t\t}), {\n\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\")]),\n\t\t\t\t_: 3\n\t\t\t}, 16, [\"trap-focus\", \"disable-outside-pointer-events\"]);\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/Dialog/DialogContentModal.vue\nvar DialogContentModal_default = DialogContentModal_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { DialogContentModal_default };\n//# sourceMappingURL=DialogContentModal.js.map","import { useEmitAsProps } from \"../shared/useEmitAsProps.js\";\nimport { useForwardExpose } from \"../shared/useForwardExpose.js\";\nimport { injectDialogRootContext } from \"./DialogRoot.js\";\nimport { DialogContentImpl_default } from \"./DialogContentImpl.js\";\nimport { createBlock, defineComponent, mergeProps, openBlock, ref, renderSlot, unref, withCtx } from \"vue\";\n\n//#region src/Dialog/DialogContentNonModal.vue?vue&type=script&setup=true&lang.ts\nvar DialogContentNonModal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\t__name: \"DialogContentNonModal\",\n\tprops: {\n\t\tforceMount: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\ttrapFocus: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tdisableOutsidePointerEvents: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tasChild: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tas: {\n\t\t\ttype: null,\n\t\t\trequired: false\n\t\t}\n\t},\n\temits: [\n\t\t\"escapeKeyDown\",\n\t\t\"pointerDownOutside\",\n\t\t\"focusOutside\",\n\t\t\"interactOutside\",\n\t\t\"openAutoFocus\",\n\t\t\"closeAutoFocus\"\n\t],\n\tsetup(__props, { emit: __emit }) {\n\t\tconst props = __props;\n\t\tconst emits = __emit;\n\t\tconst emitsAsProps = useEmitAsProps(emits);\n\t\tuseForwardExpose();\n\t\tconst rootContext = injectDialogRootContext();\n\t\tconst hasInteractedOutsideRef = ref(false);\n\t\tconst hasPointerDownOutsideRef = ref(false);\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn openBlock(), createBlock(DialogContentImpl_default, mergeProps({\n\t\t\t\t...props,\n\t\t\t\t...unref(emitsAsProps)\n\t\t\t}, {\n\t\t\t\t\"trap-focus\": false,\n\t\t\t\t\"disable-outside-pointer-events\": false,\n\t\t\t\tonCloseAutoFocus: _cache[0] || (_cache[0] = (event) => {\n\t\t\t\t\tif (!event.defaultPrevented) {\n\t\t\t\t\t\tif (!hasInteractedOutsideRef.value) unref(rootContext).triggerElement.value?.focus();\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t}\n\t\t\t\t\thasInteractedOutsideRef.value = false;\n\t\t\t\t\thasPointerDownOutsideRef.value = false;\n\t\t\t\t}),\n\t\t\t\tonInteractOutside: _cache[1] || (_cache[1] = (event) => {\n\t\t\t\t\tif (!event.defaultPrevented) {\n\t\t\t\t\t\thasInteractedOutsideRef.value = true;\n\t\t\t\t\t\tif (event.detail.originalEvent.type === \"pointerdown\") hasPointerDownOutsideRef.value = true;\n\t\t\t\t\t}\n\t\t\t\t\tconst target = event.target;\n\t\t\t\t\tconst targetIsTrigger = unref(rootContext).triggerElement.value?.contains(target);\n\t\t\t\t\tif (targetIsTrigger) event.preventDefault();\n\t\t\t\t\tif (event.detail.originalEvent.type === \"focusin\" && hasPointerDownOutsideRef.value) event.preventDefault();\n\t\t\t\t})\n\t\t\t}), {\n\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\")]),\n\t\t\t\t_: 3\n\t\t\t}, 16);\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/Dialog/DialogContentNonModal.vue\nvar DialogContentNonModal_default = DialogContentNonModal_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { DialogContentNonModal_default };\n//# sourceMappingURL=DialogContentNonModal.js.map","import { useEmitAsProps } from \"../shared/useEmitAsProps.js\";\nimport { useForwardExpose } from \"../shared/useForwardExpose.js\";\nimport { Presence_default } from \"../Presence/Presence.js\";\nimport { injectDialogRootContext } from \"./DialogRoot.js\";\nimport { DialogContentModal_default } from \"./DialogContentModal.js\";\nimport { DialogContentNonModal_default } from \"./DialogContentNonModal.js\";\nimport { createBlock, createCommentVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from \"vue\";\n\n//#region src/Dialog/DialogContent.vue?vue&type=script&setup=true&lang.ts\nvar DialogContent_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\t__name: \"DialogContent\",\n\tprops: {\n\t\tforceMount: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tdisableOutsidePointerEvents: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false,\n\t\t\tdefault: void 0\n\t\t},\n\t\tasChild: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tas: {\n\t\t\ttype: null,\n\t\t\trequired: false\n\t\t}\n\t},\n\temits: [\n\t\t\"escapeKeyDown\",\n\t\t\"pointerDownOutside\",\n\t\t\"focusOutside\",\n\t\t\"interactOutside\",\n\t\t\"openAutoFocus\",\n\t\t\"closeAutoFocus\"\n\t],\n\tsetup(__props, { emit: __emit }) {\n\t\tconst props = __props;\n\t\tconst emits = __emit;\n\t\tconst rootContext = injectDialogRootContext();\n\t\tconst emitsAsProps = useEmitAsProps(emits);\n\t\tconst { forwardRef } = useForwardExpose();\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn openBlock(), createBlock(unref(Presence_default), { present: _ctx.forceMount || unref(rootContext).open.value }, {\n\t\t\t\tdefault: withCtx(() => [unref(rootContext).modal.value ? (openBlock(), createBlock(DialogContentModal_default, mergeProps({\n\t\t\t\t\tkey: 0,\n\t\t\t\t\tref: unref(forwardRef)\n\t\t\t\t}, {\n\t\t\t\t\t...props,\n\t\t\t\t\t...unref(emitsAsProps),\n\t\t\t\t\t..._ctx.$attrs\n\t\t\t\t}), {\n\t\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\")]),\n\t\t\t\t\t_: 3\n\t\t\t\t}, 16)) : (openBlock(), createBlock(DialogContentNonModal_default, mergeProps({\n\t\t\t\t\tkey: 1,\n\t\t\t\t\tref: unref(forwardRef)\n\t\t\t\t}, {\n\t\t\t\t\t...props,\n\t\t\t\t\t...unref(emitsAsProps),\n\t\t\t\t\t..._ctx.$attrs\n\t\t\t\t}), {\n\t\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\")]),\n\t\t\t\t\t_: 3\n\t\t\t\t}, 16))]),\n\t\t\t\t_: 3\n\t\t\t}, 8, [\"present\"]);\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/Dialog/DialogContent.vue\nvar DialogContent_default = DialogContent_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { DialogContent_default };\n//# sourceMappingURL=DialogContent.js.map","import { useBodyScrollLock } from \"../shared/useBodyScrollLock.js\";\nimport { useForwardExpose } from \"../shared/useForwardExpose.js\";\nimport { Primitive } from \"../Primitive/Primitive.js\";\nimport { injectDialogRootContext } from \"./DialogRoot.js\";\nimport { createBlock, defineComponent, openBlock, renderSlot, unref, withCtx, withModifiers } from \"vue\";\n\n//#region src/Dialog/DialogOverlayImpl.vue?vue&type=script&setup=true&lang.ts\nvar DialogOverlayImpl_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\t__name: \"DialogOverlayImpl\",\n\tprops: {\n\t\tasChild: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tas: {\n\t\t\ttype: null,\n\t\t\trequired: false\n\t\t}\n\t},\n\tsetup(__props) {\n\t\tconst rootContext = injectDialogRootContext();\n\t\tuseBodyScrollLock(true);\n\t\tuseForwardExpose();\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn openBlock(), createBlock(unref(Primitive), {\n\t\t\t\tas: _ctx.as,\n\t\t\t\t\"as-child\": _ctx.asChild,\n\t\t\t\t\"data-state\": unref(rootContext).open.value ? \"open\" : \"closed\",\n\t\t\t\tstyle: { \"pointer-events\": \"auto\" },\n\t\t\t\tonPointerdown: _cache[0] || (_cache[0] = withModifiers(() => {}, [\n\t\t\t\t\t\"left\",\n\t\t\t\t\t\"self\",\n\t\t\t\t\t\"prevent\"\n\t\t\t\t]))\n\t\t\t}, {\n\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\")]),\n\t\t\t\t_: 3\n\t\t\t}, 8, [\n\t\t\t\t\"as\",\n\t\t\t\t\"as-child\",\n\t\t\t\t\"data-state\"\n\t\t\t]);\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/Dialog/DialogOverlayImpl.vue\nvar DialogOverlayImpl_default = DialogOverlayImpl_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { DialogOverlayImpl_default };\n//# sourceMappingURL=DialogOverlayImpl.js.map","import { useForwardExpose } from \"../shared/useForwardExpose.js\";\nimport { Presence_default } from \"../Presence/Presence.js\";\nimport { injectDialogRootContext } from \"./DialogRoot.js\";\nimport { DialogOverlayImpl_default } from \"./DialogOverlayImpl.js\";\nimport { createBlock, createCommentVNode, createVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from \"vue\";\n\n//#region src/Dialog/DialogOverlay.vue?vue&type=script&setup=true&lang.ts\nvar DialogOverlay_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\t__name: \"DialogOverlay\",\n\tprops: {\n\t\tforceMount: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tasChild: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tas: {\n\t\t\ttype: null,\n\t\t\trequired: false\n\t\t}\n\t},\n\tsetup(__props) {\n\t\tconst rootContext = injectDialogRootContext();\n\t\tconst { forwardRef } = useForwardExpose();\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn unref(rootContext)?.modal.value ? (openBlock(), createBlock(unref(Presence_default), {\n\t\t\t\tkey: 0,\n\t\t\t\tpresent: _ctx.forceMount || unref(rootContext).open.value\n\t\t\t}, {\n\t\t\t\tdefault: withCtx(() => [createVNode(DialogOverlayImpl_default, mergeProps(_ctx.$attrs, {\n\t\t\t\t\tref: unref(forwardRef),\n\t\t\t\t\tas: _ctx.as,\n\t\t\t\t\t\"as-child\": _ctx.asChild\n\t\t\t\t}), {\n\t\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\")]),\n\t\t\t\t\t_: 3\n\t\t\t\t}, 16, [\"as\", \"as-child\"])]),\n\t\t\t\t_: 3\n\t\t\t}, 8, [\"present\"])) : createCommentVNode(\"v-if\", true);\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/Dialog/DialogOverlay.vue\nvar DialogOverlay_default = DialogOverlay_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { DialogOverlay_default };\n//# sourceMappingURL=DialogOverlay.js.map","import { Teleport_default } from \"../Teleport/Teleport.js\";\nimport { createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from \"vue\";\n\n//#region src/Dialog/DialogPortal.vue?vue&type=script&setup=true&lang.ts\nvar DialogPortal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\t__name: \"DialogPortal\",\n\tprops: {\n\t\tto: {\n\t\t\ttype: null,\n\t\t\trequired: false\n\t\t},\n\t\tdisabled: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tdefer: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tforceMount: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t}\n\t},\n\tsetup(__props) {\n\t\tconst props = __props;\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn openBlock(), createBlock(unref(Teleport_default), normalizeProps(guardReactiveProps(props)), {\n\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\")]),\n\t\t\t\t_: 3\n\t\t\t}, 16);\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/Dialog/DialogPortal.vue\nvar DialogPortal_default = DialogPortal_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { DialogPortal_default };\n//# sourceMappingURL=DialogPortal.js.map","import { useForwardExpose } from \"../shared/useForwardExpose.js\";\nimport { Primitive } from \"../Primitive/Primitive.js\";\nimport { injectDialogRootContext } from \"./DialogRoot.js\";\nimport { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from \"vue\";\n\n//#region src/Dialog/DialogTitle.vue?vue&type=script&setup=true&lang.ts\nvar DialogTitle_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\t__name: \"DialogTitle\",\n\tprops: {\n\t\tasChild: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tas: {\n\t\t\ttype: null,\n\t\t\trequired: false,\n\t\t\tdefault: \"h2\"\n\t\t}\n\t},\n\tsetup(__props) {\n\t\tconst props = __props;\n\t\tconst rootContext = injectDialogRootContext();\n\t\tuseForwardExpose();\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn openBlock(), createBlock(unref(Primitive), mergeProps(props, { id: unref(rootContext).titleId }), {\n\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\")]),\n\t\t\t\t_: 3\n\t\t\t}, 16, [\"id\"]);\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/Dialog/DialogTitle.vue\nvar DialogTitle_default = DialogTitle_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { DialogTitle_default };\n//# sourceMappingURL=DialogTitle.js.map","import { useForwardExpose } from \"../shared/useForwardExpose.js\";\nimport { useId } from \"../shared/useId.js\";\nimport { Primitive } from \"../Primitive/Primitive.js\";\nimport { injectDialogRootContext } from \"./DialogRoot.js\";\nimport { createBlock, defineComponent, mergeProps, onMounted, openBlock, renderSlot, unref, withCtx } from \"vue\";\n\n//#region src/Dialog/DialogTrigger.vue?vue&type=script&setup=true&lang.ts\nvar DialogTrigger_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\t__name: \"DialogTrigger\",\n\tprops: {\n\t\tasChild: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tas: {\n\t\t\ttype: null,\n\t\t\trequired: false,\n\t\t\tdefault: \"button\"\n\t\t}\n\t},\n\tsetup(__props) {\n\t\tconst props = __props;\n\t\tconst rootContext = injectDialogRootContext();\n\t\tconst { forwardRef, currentElement } = useForwardExpose();\n\t\trootContext.contentId ||= useId(void 0, \"reka-dialog-content\");\n\t\tonMounted(() => {\n\t\t\trootContext.triggerElement.value = currentElement.value;\n\t\t});\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn openBlock(), createBlock(unref(Primitive), mergeProps(props, {\n\t\t\t\tref: unref(forwardRef),\n\t\t\t\ttype: _ctx.as === \"button\" ? \"button\" : void 0,\n\t\t\t\t\"aria-haspopup\": \"dialog\",\n\t\t\t\t\"aria-expanded\": unref(rootContext).open.value || false,\n\t\t\t\t\"aria-controls\": unref(rootContext).open.value ? unref(rootContext).contentId : void 0,\n\t\t\t\t\"data-state\": unref(rootContext).open.value ? \"open\" : \"closed\",\n\t\t\t\tonClick: unref(rootContext).onOpenToggle\n\t\t\t}), {\n\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\")]),\n\t\t\t\t_: 3\n\t\t\t}, 16, [\n\t\t\t\t\"type\",\n\t\t\t\t\"aria-expanded\",\n\t\t\t\t\"aria-controls\",\n\t\t\t\t\"data-state\",\n\t\t\t\t\"onClick\"\n\t\t\t]);\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/Dialog/DialogTrigger.vue\nvar DialogTrigger_default = DialogTrigger_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { DialogTrigger_default };\n//# sourceMappingURL=DialogTrigger.js.map"],"names":["injectDialogRootContext","provideDialogRootContext","createContext","DialogRoot_vue_vue_type_script_setup_true_lang_default","defineComponent","__props","__emit","props","open","useVModel","triggerElement","ref","contentElement","modal","toRefs","value","_ctx","_cache","renderSlot","unref","DialogRoot_default","DialogClose_vue_vue_type_script_setup_true_lang_default","useForwardExpose","rootContext","openBlock","createBlock","Primitive","mergeProps","$event","withCtx","DialogClose_default","DialogContentImpl_vue_vue_type_script_setup_true_lang_default","emits","forwardRef","useId","onMounted","getActiveElement","FocusScope_default","createVNode","DismissableLayer_default","getOpenState","DialogContentImpl_default","DialogContentModal_vue_vue_type_script_setup_true_lang_default","emitsAsProps","useEmitAsProps","currentElement","useHideOthers","event","_a","originalEvent","ctrlLeftClick","DialogContentModal_default","DialogContentNonModal_vue_vue_type_script_setup_true_lang_default","hasInteractedOutsideRef","hasPointerDownOutsideRef","target","DialogContentNonModal_default","DialogContent_vue_vue_type_script_setup_true_lang_default","Presence_default","DialogContent_default","DialogOverlayImpl_vue_vue_type_script_setup_true_lang_default","useBodyScrollLock","withModifiers","DialogOverlayImpl_default","DialogOverlay_vue_vue_type_script_setup_true_lang_default","createCommentVNode","DialogOverlay_default","DialogPortal_vue_vue_type_script_setup_true_lang_default","Teleport_default","normalizeProps","guardReactiveProps","DialogPortal_default","DialogTitle_vue_vue_type_script_setup_true_lang_default","DialogTitle_default","DialogTrigger_vue_vue_type_script_setup_true_lang_default","DialogTrigger_default"],"mappings":"qRAKA,KAAM,CAACA,EAAyBC,CAAwB,EAAkBC,EAAc,YAAY,EACpG,IAAIC,EAAyEC,EAAgB,CAC5F,aAAc,GACd,OAAQ,aACR,MAAO,CACN,KAAM,CACL,KAAM,QACN,SAAU,GACV,QAAS,MACZ,EACE,YAAa,CACZ,KAAM,QACN,SAAU,GACV,QAAS,EACZ,EACE,MAAO,CACN,KAAM,QACN,SAAU,GACV,QAAS,EACZ,CACA,EACC,MAAO,C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GC3BtBE,GAA4EtE,EAAgB,CAC/F,OAAQ,gBACR,MAAO,CACN,QAAS,CACR,KAAM,QACN,SAAU,EACb,EACE,GAAI,CACH,KAAM,KACN,SAAU,GACV,QAAS,QACZ,CACA,EACC,MAAMC,EAAS,CACd,MAAME,EAAQF,EACRkB,EAAcvB,EAAuB,EACrC,CAAE,WAAAiC,EAAY,eAAAY,CAAc,EAAKvB,EAAgB,EACvD,OAAAC,EAAY,YAAZA,EAAY,UAAcW,EAAM,OAAQ,qBAAqB,GAC7DC,EAAU,IAAM,CACfZ,EAAY,eAAe,MAAQsB,EAAe,KACnD,CAAC,EACM,CAAC7B,EAAMC,KACNO,EAAS,EAAIC,EAAYN,EAAMO,CAAS,EAAGC,EAAWpB,EAAO,CACnE,IAAKY,EAAMc,CAAU,EACrB,KAAMjB,EAAK,KAAO,SAAW,SAAW,OACxC,gBAAiB,SACjB,gBAAiBG,EAAMI,CAAW,EAAE,KAAK,OAAS,GAClD,gBAAiBJ,EAAMI,CAAW,EAAE,KAAK,MAAQJ,EAAMI,CAAW,EAAE,UAAY,OAChF,aAAcJ,EAAMI,CAAW,EAAE,KAAK,MAAQ,OAAS,SACvD,QAASJ,EAAMI,CAAW,EAAE,YAChC,CAAI,EAAG,CACH,QAASM,EAAQ,IAAM,CAACX,EAAWF,EAAK,OAAQ,SAAS,CAAC,CAAC,EAC3D,EAAG,CACP,EAAM,GAAI,CACN,OACA,gBACA,gBACA,aACA,SACJ,CAAI,EAEH,CACD,CAAC,EAIG2D,GAAwBD","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10]}
1
+ {"version":3,"file":"DialogTrigger-D4yBGqUf.js","sources":["../../../../node_modules/.bun/reka-ui@2.9.10+6aac64ae34cef4e6/node_modules/reka-ui/dist/Dialog/DialogRoot.js","../../../../node_modules/.bun/reka-ui@2.9.10+6aac64ae34cef4e6/node_modules/reka-ui/dist/Dialog/DialogClose.js","../../../../node_modules/.bun/reka-ui@2.9.10+6aac64ae34cef4e6/node_modules/reka-ui/dist/Dialog/DialogContentImpl.js","../../../../node_modules/.bun/reka-ui@2.9.10+6aac64ae34cef4e6/node_modules/reka-ui/dist/Dialog/DialogContentModal.js","../../../../node_modules/.bun/reka-ui@2.9.10+6aac64ae34cef4e6/node_modules/reka-ui/dist/Dialog/DialogContentNonModal.js","../../../../node_modules/.bun/reka-ui@2.9.10+6aac64ae34cef4e6/node_modules/reka-ui/dist/Dialog/DialogContent.js","../../../../node_modules/.bun/reka-ui@2.9.10+6aac64ae34cef4e6/node_modules/reka-ui/dist/Dialog/DialogOverlayImpl.js","../../../../node_modules/.bun/reka-ui@2.9.10+6aac64ae34cef4e6/node_modules/reka-ui/dist/Dialog/DialogOverlay.js","../../../../node_modules/.bun/reka-ui@2.9.10+6aac64ae34cef4e6/node_modules/reka-ui/dist/Dialog/DialogPortal.js","../../../../node_modules/.bun/reka-ui@2.9.10+6aac64ae34cef4e6/node_modules/reka-ui/dist/Dialog/DialogTitle.js","../../../../node_modules/.bun/reka-ui@2.9.10+6aac64ae34cef4e6/node_modules/reka-ui/dist/Dialog/DialogTrigger.js"],"sourcesContent":["import { createContext } from \"../shared/createContext.js\";\nimport { defineComponent, ref, renderSlot, toRefs, unref } from \"vue\";\nimport { useVModel } from \"@vueuse/core\";\n\n//#region src/Dialog/DialogRoot.vue?vue&type=script&setup=true&lang.ts\nconst [injectDialogRootContext, provideDialogRootContext] = /*#__PURE__*/ createContext(\"DialogRoot\");\nvar DialogRoot_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\tinheritAttrs: false,\n\t__name: \"DialogRoot\",\n\tprops: {\n\t\topen: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false,\n\t\t\tdefault: void 0\n\t\t},\n\t\tdefaultOpen: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false,\n\t\t\tdefault: false\n\t\t},\n\t\tmodal: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false,\n\t\t\tdefault: true\n\t\t}\n\t},\n\temits: [\"update:open\"],\n\tsetup(__props, { emit: __emit }) {\n\t\tconst props = __props;\n\t\tconst emit = __emit;\n\t\tconst open = useVModel(props, \"open\", emit, {\n\t\t\tdefaultValue: props.defaultOpen,\n\t\t\tpassive: props.open === void 0\n\t\t});\n\t\tconst triggerElement = ref();\n\t\tconst contentElement = ref();\n\t\tconst { modal } = toRefs(props);\n\t\tprovideDialogRootContext({\n\t\t\topen,\n\t\t\tmodal,\n\t\t\topenModal: () => {\n\t\t\t\topen.value = true;\n\t\t\t},\n\t\t\tonOpenChange: (value) => {\n\t\t\t\topen.value = value;\n\t\t\t},\n\t\t\tonOpenToggle: () => {\n\t\t\t\topen.value = !open.value;\n\t\t\t},\n\t\t\tcontentId: \"\",\n\t\t\ttitleId: \"\",\n\t\t\tdescriptionId: \"\",\n\t\t\ttriggerElement,\n\t\t\tcontentElement\n\t\t});\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn renderSlot(_ctx.$slots, \"default\", {\n\t\t\t\topen: unref(open),\n\t\t\t\tclose: () => open.value = false\n\t\t\t});\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/Dialog/DialogRoot.vue\nvar DialogRoot_default = DialogRoot_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { DialogRoot_default, injectDialogRootContext };\n//# sourceMappingURL=DialogRoot.js.map","import { useForwardExpose } from \"../shared/useForwardExpose.js\";\nimport { Primitive } from \"../Primitive/Primitive.js\";\nimport { injectDialogRootContext } from \"./DialogRoot.js\";\nimport { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from \"vue\";\n\n//#region src/Dialog/DialogClose.vue?vue&type=script&setup=true&lang.ts\nvar DialogClose_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\t__name: \"DialogClose\",\n\tprops: {\n\t\tasChild: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tas: {\n\t\t\ttype: null,\n\t\t\trequired: false,\n\t\t\tdefault: \"button\"\n\t\t}\n\t},\n\tsetup(__props) {\n\t\tconst props = __props;\n\t\tuseForwardExpose();\n\t\tconst rootContext = injectDialogRootContext();\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn openBlock(), createBlock(unref(Primitive), mergeProps(props, {\n\t\t\t\ttype: _ctx.as === \"button\" ? \"button\" : void 0,\n\t\t\t\tonClick: _cache[0] || (_cache[0] = ($event) => unref(rootContext).onOpenChange(false))\n\t\t\t}), {\n\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\")]),\n\t\t\t\t_: 3\n\t\t\t}, 16, [\"type\"]);\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/Dialog/DialogClose.vue\nvar DialogClose_default = DialogClose_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { DialogClose_default };\n//# sourceMappingURL=DialogClose.js.map","import { getActiveElement } from \"../shared/getActiveElement.js\";\nimport { useForwardExpose } from \"../shared/useForwardExpose.js\";\nimport { useId } from \"../shared/useId.js\";\nimport { injectDialogRootContext } from \"./DialogRoot.js\";\nimport { DismissableLayer_default } from \"../DismissableLayer/DismissableLayer.js\";\nimport { FocusScope_default } from \"../FocusScope/FocusScope.js\";\nimport { getOpenState } from \"../Menu/utils.js\";\nimport { useWarning } from \"./utils.js\";\nimport { createBlock, createVNode, defineComponent, mergeProps, onMounted, openBlock, renderSlot, unref, withCtx } from \"vue\";\n\n//#region src/Dialog/DialogContentImpl.vue?vue&type=script&setup=true&lang.ts\nvar DialogContentImpl_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\t__name: \"DialogContentImpl\",\n\tprops: {\n\t\tforceMount: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\ttrapFocus: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tdisableOutsidePointerEvents: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tasChild: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tas: {\n\t\t\ttype: null,\n\t\t\trequired: false\n\t\t}\n\t},\n\temits: [\n\t\t\"escapeKeyDown\",\n\t\t\"pointerDownOutside\",\n\t\t\"focusOutside\",\n\t\t\"interactOutside\",\n\t\t\"openAutoFocus\",\n\t\t\"closeAutoFocus\"\n\t],\n\tsetup(__props, { emit: __emit }) {\n\t\tconst props = __props;\n\t\tconst emits = __emit;\n\t\tconst rootContext = injectDialogRootContext();\n\t\tconst { forwardRef, currentElement: contentElement } = useForwardExpose();\n\t\trootContext.titleId ||= useId(void 0, \"reka-dialog-title\");\n\t\trootContext.descriptionId ||= useId(void 0, \"reka-dialog-description\");\n\t\tonMounted(() => {\n\t\t\trootContext.contentElement = contentElement;\n\t\t\tif (getActiveElement() !== document.body) rootContext.triggerElement.value = getActiveElement();\n\t\t});\n\t\tif (process.env.NODE_ENV !== \"production\") useWarning({\n\t\t\ttitleName: \"DialogTitle\",\n\t\t\tcontentName: \"DialogContent\",\n\t\t\tcomponentLink: \"dialog.html#title\",\n\t\t\ttitleId: rootContext.titleId,\n\t\t\tdescriptionId: rootContext.descriptionId,\n\t\t\tcontentElement\n\t\t});\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn openBlock(), createBlock(unref(FocusScope_default), {\n\t\t\t\t\"as-child\": \"\",\n\t\t\t\tloop: \"\",\n\t\t\t\ttrapped: props.trapFocus,\n\t\t\t\tonMountAutoFocus: _cache[5] || (_cache[5] = ($event) => emits(\"openAutoFocus\", $event)),\n\t\t\t\tonUnmountAutoFocus: _cache[6] || (_cache[6] = ($event) => emits(\"closeAutoFocus\", $event))\n\t\t\t}, {\n\t\t\t\tdefault: withCtx(() => [createVNode(unref(DismissableLayer_default), mergeProps({\n\t\t\t\t\tid: unref(rootContext).contentId,\n\t\t\t\t\tref: unref(forwardRef),\n\t\t\t\t\tas: _ctx.as,\n\t\t\t\t\t\"as-child\": _ctx.asChild,\n\t\t\t\t\t\"disable-outside-pointer-events\": _ctx.disableOutsidePointerEvents,\n\t\t\t\t\trole: \"dialog\",\n\t\t\t\t\t\"aria-describedby\": unref(rootContext).descriptionId,\n\t\t\t\t\t\"aria-labelledby\": unref(rootContext).titleId,\n\t\t\t\t\t\"data-state\": unref(getOpenState)(unref(rootContext).open.value)\n\t\t\t\t}, _ctx.$attrs, {\n\t\t\t\t\tonDismiss: _cache[0] || (_cache[0] = ($event) => unref(rootContext).onOpenChange(false)),\n\t\t\t\t\tonEscapeKeyDown: _cache[1] || (_cache[1] = ($event) => emits(\"escapeKeyDown\", $event)),\n\t\t\t\t\tonFocusOutside: _cache[2] || (_cache[2] = ($event) => emits(\"focusOutside\", $event)),\n\t\t\t\t\tonInteractOutside: _cache[3] || (_cache[3] = ($event) => emits(\"interactOutside\", $event)),\n\t\t\t\t\tonPointerDownOutside: _cache[4] || (_cache[4] = ($event) => emits(\"pointerDownOutside\", $event))\n\t\t\t\t}), {\n\t\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\")]),\n\t\t\t\t\t_: 3\n\t\t\t\t}, 16, [\n\t\t\t\t\t\"id\",\n\t\t\t\t\t\"as\",\n\t\t\t\t\t\"as-child\",\n\t\t\t\t\t\"disable-outside-pointer-events\",\n\t\t\t\t\t\"aria-describedby\",\n\t\t\t\t\t\"aria-labelledby\",\n\t\t\t\t\t\"data-state\"\n\t\t\t\t])]),\n\t\t\t\t_: 3\n\t\t\t}, 8, [\"trapped\"]);\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/Dialog/DialogContentImpl.vue\nvar DialogContentImpl_default = DialogContentImpl_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { DialogContentImpl_default };\n//# sourceMappingURL=DialogContentImpl.js.map","import { useEmitAsProps } from \"../shared/useEmitAsProps.js\";\nimport { useForwardExpose } from \"../shared/useForwardExpose.js\";\nimport { useHideOthers } from \"../shared/useHideOthers.js\";\nimport { injectDialogRootContext } from \"./DialogRoot.js\";\nimport { DialogContentImpl_default } from \"./DialogContentImpl.js\";\nimport { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from \"vue\";\n\n//#region src/Dialog/DialogContentModal.vue?vue&type=script&setup=true&lang.ts\nvar DialogContentModal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\t__name: \"DialogContentModal\",\n\tprops: {\n\t\tforceMount: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\ttrapFocus: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tdisableOutsidePointerEvents: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false,\n\t\t\tdefault: true\n\t\t},\n\t\tasChild: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tas: {\n\t\t\ttype: null,\n\t\t\trequired: false\n\t\t}\n\t},\n\temits: [\n\t\t\"escapeKeyDown\",\n\t\t\"pointerDownOutside\",\n\t\t\"focusOutside\",\n\t\t\"interactOutside\",\n\t\t\"openAutoFocus\",\n\t\t\"closeAutoFocus\"\n\t],\n\tsetup(__props, { emit: __emit }) {\n\t\tconst props = __props;\n\t\tconst emits = __emit;\n\t\tconst rootContext = injectDialogRootContext();\n\t\tconst emitsAsProps = useEmitAsProps(emits);\n\t\tconst { forwardRef, currentElement } = useForwardExpose();\n\t\tuseHideOthers(currentElement);\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn openBlock(), createBlock(DialogContentImpl_default, mergeProps({\n\t\t\t\t...props,\n\t\t\t\t...unref(emitsAsProps)\n\t\t\t}, {\n\t\t\t\tref: unref(forwardRef),\n\t\t\t\t\"trap-focus\": unref(rootContext).open.value,\n\t\t\t\t\"disable-outside-pointer-events\": props.disableOutsidePointerEvents,\n\t\t\t\tonCloseAutoFocus: _cache[0] || (_cache[0] = (event) => {\n\t\t\t\t\tif (!event.defaultPrevented) {\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\tunref(rootContext).triggerElement.value?.focus();\n\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t\tonPointerDownOutside: _cache[1] || (_cache[1] = (event) => {\n\t\t\t\t\tconst originalEvent = event.detail.originalEvent;\n\t\t\t\t\tconst ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n\t\t\t\t\tconst isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n\t\t\t\t\tif (isRightClick) event.preventDefault();\n\t\t\t\t}),\n\t\t\t\tonFocusOutside: _cache[2] || (_cache[2] = (event) => {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t})\n\t\t\t}), {\n\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\")]),\n\t\t\t\t_: 3\n\t\t\t}, 16, [\"trap-focus\", \"disable-outside-pointer-events\"]);\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/Dialog/DialogContentModal.vue\nvar DialogContentModal_default = DialogContentModal_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { DialogContentModal_default };\n//# sourceMappingURL=DialogContentModal.js.map","import { useEmitAsProps } from \"../shared/useEmitAsProps.js\";\nimport { useForwardExpose } from \"../shared/useForwardExpose.js\";\nimport { injectDialogRootContext } from \"./DialogRoot.js\";\nimport { DialogContentImpl_default } from \"./DialogContentImpl.js\";\nimport { createBlock, defineComponent, mergeProps, openBlock, ref, renderSlot, unref, withCtx } from \"vue\";\n\n//#region src/Dialog/DialogContentNonModal.vue?vue&type=script&setup=true&lang.ts\nvar DialogContentNonModal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\t__name: \"DialogContentNonModal\",\n\tprops: {\n\t\tforceMount: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\ttrapFocus: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tdisableOutsidePointerEvents: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tasChild: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tas: {\n\t\t\ttype: null,\n\t\t\trequired: false\n\t\t}\n\t},\n\temits: [\n\t\t\"escapeKeyDown\",\n\t\t\"pointerDownOutside\",\n\t\t\"focusOutside\",\n\t\t\"interactOutside\",\n\t\t\"openAutoFocus\",\n\t\t\"closeAutoFocus\"\n\t],\n\tsetup(__props, { emit: __emit }) {\n\t\tconst props = __props;\n\t\tconst emits = __emit;\n\t\tconst emitsAsProps = useEmitAsProps(emits);\n\t\tuseForwardExpose();\n\t\tconst rootContext = injectDialogRootContext();\n\t\tconst hasInteractedOutsideRef = ref(false);\n\t\tconst hasPointerDownOutsideRef = ref(false);\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn openBlock(), createBlock(DialogContentImpl_default, mergeProps({\n\t\t\t\t...props,\n\t\t\t\t...unref(emitsAsProps)\n\t\t\t}, {\n\t\t\t\t\"trap-focus\": false,\n\t\t\t\t\"disable-outside-pointer-events\": false,\n\t\t\t\tonCloseAutoFocus: _cache[0] || (_cache[0] = (event) => {\n\t\t\t\t\tif (!event.defaultPrevented) {\n\t\t\t\t\t\tif (!hasInteractedOutsideRef.value) unref(rootContext).triggerElement.value?.focus();\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t}\n\t\t\t\t\thasInteractedOutsideRef.value = false;\n\t\t\t\t\thasPointerDownOutsideRef.value = false;\n\t\t\t\t}),\n\t\t\t\tonInteractOutside: _cache[1] || (_cache[1] = (event) => {\n\t\t\t\t\tif (!event.defaultPrevented) {\n\t\t\t\t\t\thasInteractedOutsideRef.value = true;\n\t\t\t\t\t\tif (event.detail.originalEvent.type === \"pointerdown\") hasPointerDownOutsideRef.value = true;\n\t\t\t\t\t}\n\t\t\t\t\tconst target = event.target;\n\t\t\t\t\tconst targetIsTrigger = unref(rootContext).triggerElement.value?.contains(target);\n\t\t\t\t\tif (targetIsTrigger) event.preventDefault();\n\t\t\t\t\tif (event.detail.originalEvent.type === \"focusin\" && hasPointerDownOutsideRef.value) event.preventDefault();\n\t\t\t\t})\n\t\t\t}), {\n\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\")]),\n\t\t\t\t_: 3\n\t\t\t}, 16);\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/Dialog/DialogContentNonModal.vue\nvar DialogContentNonModal_default = DialogContentNonModal_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { DialogContentNonModal_default };\n//# sourceMappingURL=DialogContentNonModal.js.map","import { useEmitAsProps } from \"../shared/useEmitAsProps.js\";\nimport { useForwardExpose } from \"../shared/useForwardExpose.js\";\nimport { Presence_default } from \"../Presence/Presence.js\";\nimport { injectDialogRootContext } from \"./DialogRoot.js\";\nimport { DialogContentModal_default } from \"./DialogContentModal.js\";\nimport { DialogContentNonModal_default } from \"./DialogContentNonModal.js\";\nimport { createBlock, createCommentVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from \"vue\";\n\n//#region src/Dialog/DialogContent.vue?vue&type=script&setup=true&lang.ts\nvar DialogContent_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\t__name: \"DialogContent\",\n\tprops: {\n\t\tforceMount: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tdisableOutsidePointerEvents: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false,\n\t\t\tdefault: void 0\n\t\t},\n\t\tasChild: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tas: {\n\t\t\ttype: null,\n\t\t\trequired: false\n\t\t}\n\t},\n\temits: [\n\t\t\"escapeKeyDown\",\n\t\t\"pointerDownOutside\",\n\t\t\"focusOutside\",\n\t\t\"interactOutside\",\n\t\t\"openAutoFocus\",\n\t\t\"closeAutoFocus\"\n\t],\n\tsetup(__props, { emit: __emit }) {\n\t\tconst props = __props;\n\t\tconst emits = __emit;\n\t\tconst rootContext = injectDialogRootContext();\n\t\tconst emitsAsProps = useEmitAsProps(emits);\n\t\tconst { forwardRef } = useForwardExpose();\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn openBlock(), createBlock(unref(Presence_default), { present: _ctx.forceMount || unref(rootContext).open.value }, {\n\t\t\t\tdefault: withCtx(() => [unref(rootContext).modal.value ? (openBlock(), createBlock(DialogContentModal_default, mergeProps({\n\t\t\t\t\tkey: 0,\n\t\t\t\t\tref: unref(forwardRef)\n\t\t\t\t}, {\n\t\t\t\t\t...props,\n\t\t\t\t\t...unref(emitsAsProps),\n\t\t\t\t\t..._ctx.$attrs\n\t\t\t\t}), {\n\t\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\")]),\n\t\t\t\t\t_: 3\n\t\t\t\t}, 16)) : (openBlock(), createBlock(DialogContentNonModal_default, mergeProps({\n\t\t\t\t\tkey: 1,\n\t\t\t\t\tref: unref(forwardRef)\n\t\t\t\t}, {\n\t\t\t\t\t...props,\n\t\t\t\t\t...unref(emitsAsProps),\n\t\t\t\t\t..._ctx.$attrs\n\t\t\t\t}), {\n\t\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\")]),\n\t\t\t\t\t_: 3\n\t\t\t\t}, 16))]),\n\t\t\t\t_: 3\n\t\t\t}, 8, [\"present\"]);\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/Dialog/DialogContent.vue\nvar DialogContent_default = DialogContent_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { DialogContent_default };\n//# sourceMappingURL=DialogContent.js.map","import { useBodyScrollLock } from \"../shared/useBodyScrollLock.js\";\nimport { useForwardExpose } from \"../shared/useForwardExpose.js\";\nimport { Primitive } from \"../Primitive/Primitive.js\";\nimport { injectDialogRootContext } from \"./DialogRoot.js\";\nimport { createBlock, defineComponent, openBlock, renderSlot, unref, withCtx, withModifiers } from \"vue\";\n\n//#region src/Dialog/DialogOverlayImpl.vue?vue&type=script&setup=true&lang.ts\nvar DialogOverlayImpl_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\t__name: \"DialogOverlayImpl\",\n\tprops: {\n\t\tasChild: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tas: {\n\t\t\ttype: null,\n\t\t\trequired: false\n\t\t}\n\t},\n\tsetup(__props) {\n\t\tconst rootContext = injectDialogRootContext();\n\t\tuseBodyScrollLock(true);\n\t\tuseForwardExpose();\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn openBlock(), createBlock(unref(Primitive), {\n\t\t\t\tas: _ctx.as,\n\t\t\t\t\"as-child\": _ctx.asChild,\n\t\t\t\t\"data-state\": unref(rootContext).open.value ? \"open\" : \"closed\",\n\t\t\t\tstyle: { \"pointer-events\": \"auto\" },\n\t\t\t\tonPointerdown: _cache[0] || (_cache[0] = withModifiers(() => {}, [\n\t\t\t\t\t\"left\",\n\t\t\t\t\t\"self\",\n\t\t\t\t\t\"prevent\"\n\t\t\t\t]))\n\t\t\t}, {\n\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\")]),\n\t\t\t\t_: 3\n\t\t\t}, 8, [\n\t\t\t\t\"as\",\n\t\t\t\t\"as-child\",\n\t\t\t\t\"data-state\"\n\t\t\t]);\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/Dialog/DialogOverlayImpl.vue\nvar DialogOverlayImpl_default = DialogOverlayImpl_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { DialogOverlayImpl_default };\n//# sourceMappingURL=DialogOverlayImpl.js.map","import { useForwardExpose } from \"../shared/useForwardExpose.js\";\nimport { Presence_default } from \"../Presence/Presence.js\";\nimport { injectDialogRootContext } from \"./DialogRoot.js\";\nimport { DialogOverlayImpl_default } from \"./DialogOverlayImpl.js\";\nimport { createBlock, createCommentVNode, createVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from \"vue\";\n\n//#region src/Dialog/DialogOverlay.vue?vue&type=script&setup=true&lang.ts\nvar DialogOverlay_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\t__name: \"DialogOverlay\",\n\tprops: {\n\t\tforceMount: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tasChild: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tas: {\n\t\t\ttype: null,\n\t\t\trequired: false\n\t\t}\n\t},\n\tsetup(__props) {\n\t\tconst rootContext = injectDialogRootContext();\n\t\tconst { forwardRef } = useForwardExpose();\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn unref(rootContext)?.modal.value ? (openBlock(), createBlock(unref(Presence_default), {\n\t\t\t\tkey: 0,\n\t\t\t\tpresent: _ctx.forceMount || unref(rootContext).open.value\n\t\t\t}, {\n\t\t\t\tdefault: withCtx(() => [createVNode(DialogOverlayImpl_default, mergeProps(_ctx.$attrs, {\n\t\t\t\t\tref: unref(forwardRef),\n\t\t\t\t\tas: _ctx.as,\n\t\t\t\t\t\"as-child\": _ctx.asChild\n\t\t\t\t}), {\n\t\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\")]),\n\t\t\t\t\t_: 3\n\t\t\t\t}, 16, [\"as\", \"as-child\"])]),\n\t\t\t\t_: 3\n\t\t\t}, 8, [\"present\"])) : createCommentVNode(\"v-if\", true);\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/Dialog/DialogOverlay.vue\nvar DialogOverlay_default = DialogOverlay_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { DialogOverlay_default };\n//# sourceMappingURL=DialogOverlay.js.map","import { Teleport_default } from \"../Teleport/Teleport.js\";\nimport { createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from \"vue\";\n\n//#region src/Dialog/DialogPortal.vue?vue&type=script&setup=true&lang.ts\nvar DialogPortal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\t__name: \"DialogPortal\",\n\tprops: {\n\t\tto: {\n\t\t\ttype: null,\n\t\t\trequired: false\n\t\t},\n\t\tdisabled: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tdefer: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tforceMount: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t}\n\t},\n\tsetup(__props) {\n\t\tconst props = __props;\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn openBlock(), createBlock(unref(Teleport_default), normalizeProps(guardReactiveProps(props)), {\n\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\")]),\n\t\t\t\t_: 3\n\t\t\t}, 16);\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/Dialog/DialogPortal.vue\nvar DialogPortal_default = DialogPortal_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { DialogPortal_default };\n//# sourceMappingURL=DialogPortal.js.map","import { useForwardExpose } from \"../shared/useForwardExpose.js\";\nimport { Primitive } from \"../Primitive/Primitive.js\";\nimport { injectDialogRootContext } from \"./DialogRoot.js\";\nimport { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from \"vue\";\n\n//#region src/Dialog/DialogTitle.vue?vue&type=script&setup=true&lang.ts\nvar DialogTitle_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\t__name: \"DialogTitle\",\n\tprops: {\n\t\tasChild: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tas: {\n\t\t\ttype: null,\n\t\t\trequired: false,\n\t\t\tdefault: \"h2\"\n\t\t}\n\t},\n\tsetup(__props) {\n\t\tconst props = __props;\n\t\tconst rootContext = injectDialogRootContext();\n\t\tuseForwardExpose();\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn openBlock(), createBlock(unref(Primitive), mergeProps(props, { id: unref(rootContext).titleId }), {\n\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\")]),\n\t\t\t\t_: 3\n\t\t\t}, 16, [\"id\"]);\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/Dialog/DialogTitle.vue\nvar DialogTitle_default = DialogTitle_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { DialogTitle_default };\n//# sourceMappingURL=DialogTitle.js.map","import { useForwardExpose } from \"../shared/useForwardExpose.js\";\nimport { useId } from \"../shared/useId.js\";\nimport { Primitive } from \"../Primitive/Primitive.js\";\nimport { injectDialogRootContext } from \"./DialogRoot.js\";\nimport { createBlock, defineComponent, mergeProps, onMounted, openBlock, renderSlot, unref, withCtx } from \"vue\";\n\n//#region src/Dialog/DialogTrigger.vue?vue&type=script&setup=true&lang.ts\nvar DialogTrigger_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\t__name: \"DialogTrigger\",\n\tprops: {\n\t\tasChild: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tas: {\n\t\t\ttype: null,\n\t\t\trequired: false,\n\t\t\tdefault: \"button\"\n\t\t}\n\t},\n\tsetup(__props) {\n\t\tconst props = __props;\n\t\tconst rootContext = injectDialogRootContext();\n\t\tconst { forwardRef, currentElement } = useForwardExpose();\n\t\trootContext.contentId ||= useId(void 0, \"reka-dialog-content\");\n\t\tonMounted(() => {\n\t\t\trootContext.triggerElement.value = currentElement.value;\n\t\t});\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn openBlock(), createBlock(unref(Primitive), mergeProps(props, {\n\t\t\t\tref: unref(forwardRef),\n\t\t\t\ttype: _ctx.as === \"button\" ? \"button\" : void 0,\n\t\t\t\t\"aria-haspopup\": \"dialog\",\n\t\t\t\t\"aria-expanded\": unref(rootContext).open.value || false,\n\t\t\t\t\"aria-controls\": unref(rootContext).open.value ? unref(rootContext).contentId : void 0,\n\t\t\t\t\"data-state\": unref(rootContext).open.value ? \"open\" : \"closed\",\n\t\t\t\tonClick: unref(rootContext).onOpenToggle\n\t\t\t}), {\n\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\")]),\n\t\t\t\t_: 3\n\t\t\t}, 16, [\n\t\t\t\t\"type\",\n\t\t\t\t\"aria-expanded\",\n\t\t\t\t\"aria-controls\",\n\t\t\t\t\"data-state\",\n\t\t\t\t\"onClick\"\n\t\t\t]);\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/Dialog/DialogTrigger.vue\nvar DialogTrigger_default = DialogTrigger_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { DialogTrigger_default };\n//# sourceMappingURL=DialogTrigger.js.map"],"names":["injectDialogRootContext","provideDialogRootContext","createContext","DialogRoot_vue_vue_type_script_setup_true_lang_default","defineComponent","__props","__emit","props","open","useVModel","triggerElement","ref","contentElement","modal","toRefs","value","_ctx","_cache","renderSlot","unref","DialogRoot_default","DialogClose_vue_vue_type_script_setup_true_lang_default","useForwardExpose","rootContext","openBlock","createBlock","Primitive","mergeProps","$event","withCtx","DialogClose_default","DialogContentImpl_vue_vue_type_script_setup_true_lang_default","emits","forwardRef","useId","onMounted","getActiveElement","FocusScope_default","createVNode","DismissableLayer_default","getOpenState","DialogContentImpl_default","DialogContentModal_vue_vue_type_script_setup_true_lang_default","emitsAsProps","useEmitAsProps","currentElement","useHideOthers","event","_a","originalEvent","ctrlLeftClick","DialogContentModal_default","DialogContentNonModal_vue_vue_type_script_setup_true_lang_default","hasInteractedOutsideRef","hasPointerDownOutsideRef","target","DialogContentNonModal_default","DialogContent_vue_vue_type_script_setup_true_lang_default","Presence_default","DialogContent_default","DialogOverlayImpl_vue_vue_type_script_setup_true_lang_default","useBodyScrollLock","withModifiers","DialogOverlayImpl_default","DialogOverlay_vue_vue_type_script_setup_true_lang_default","createCommentVNode","DialogOverlay_default","DialogPortal_vue_vue_type_script_setup_true_lang_default","Teleport_default","normalizeProps","guardReactiveProps","DialogPortal_default","DialogTitle_vue_vue_type_script_setup_true_lang_default","DialogTitle_default","DialogTrigger_vue_vue_type_script_setup_true_lang_default","DialogTrigger_default"],"mappings":"qRAKA,KA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":[0,1,2,3,4,5,6,7,8,9,10]}
@@ -1,3 +1,3 @@
1
- import{d as f,c as i,a as e,f as r,t as c,e as w,T as _,w as g,j as h,o as d,g as m,k as u,U as b}from"./index-Cqe_7QZw.js";import{_ as $}from"./_plugin-vue_export-helper-DlAUqK2U.js";const x={class:"eqc"},T=["aria-expanded"],q={key:0,class:"eqc-panel"},N={class:"eqc-tabs",role:"tablist"},E=["aria-selected","data-on"],j=["aria-selected","data-on"],B={class:"eqc-code"},K={class:"eqc-note"},S=f({__name:"EquivalentCommand",props:{what:{},method:{},path:{},body:{},cli:{}},setup(l){const s=l,n=h(!1),o=h("curl"),k=u(()=>`${location.protocol}//${location.host}`),C=u(()=>{const a=[`curl -X ${s.method} ${k.value}${s.path} \\`];if(a.push(" -H 'Authorization: Bearer $PSTACK_TOKEN' \\"),s.body!==void 0){a.push(" -H 'Content-Type: application/json' \\");const t=JSON.stringify(s.body,null,2).split("'").join("'\\''");a.push(` -d '${t}'`)}else a[a.length-1]=" -H 'Authorization: Bearer $PSTACK_TOKEN'";return a.join(`
1
+ import{d as f,c as i,a as e,f as r,t as c,e as w,T as _,w as g,j as h,o as d,g as m,k as u,U as b}from"./index-DB2WhG8N.js";import{_ as $}from"./_plugin-vue_export-helper-DlAUqK2U.js";const x={class:"eqc"},T=["aria-expanded"],q={key:0,class:"eqc-panel"},N={class:"eqc-tabs",role:"tablist"},E=["aria-selected","data-on"],j=["aria-selected","data-on"],B={class:"eqc-code"},K={class:"eqc-note"},S=f({__name:"EquivalentCommand",props:{what:{},method:{},path:{},body:{},cli:{}},setup(l){const s=l,n=h(!1),o=h("curl"),k=u(()=>`${location.protocol}//${location.host}`),C=u(()=>{const a=[`curl -X ${s.method} ${k.value}${s.path} \\`];if(a.push(" -H 'Authorization: Bearer $PSTACK_TOKEN' \\"),s.body!==void 0){a.push(" -H 'Content-Type: application/json' \\");const t=JSON.stringify(s.body,null,2).split("'").join("'\\''");a.push(` -d '${t}'`)}else a[a.length-1]=" -H 'Authorization: Bearer $PSTACK_TOKEN'";return a.join(`
2
2
  `)}),p=u(()=>o.value==="curl"?C.value:s.cli??"");async function y(){try{await navigator.clipboard.writeText(p.value),b("ok","Copied.")}catch{b("error","Could not copy — your browser blocked clipboard access.")}}return(a,t)=>(d(),i("div",x,[e("button",{class:"ghost sm","aria-expanded":n.value,onClick:t[0]||(t[0]=v=>n.value=!n.value)},[t[3]||(t[3]=e("svg",{viewBox:"0 0 24 24",width:"14",height:"14","aria-hidden":"true",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"m7 8-4 4 4 4"}),e("path",{d:"m17 8 4 4-4 4"}),e("path",{d:"M14 4 10 20"})],-1)),r(" "+c(n.value?"Hide":"Show")+" equivalent command ",1)],8,T),w(_,{name:"fade"},{default:g(()=>[n.value?(d(),i("div",q,[e("div",N,[e("button",{class:"ghost sm",role:"tab","aria-selected":o.value==="curl","data-on":o.value==="curl",onClick:t[1]||(t[1]=v=>o.value="curl")}," curl ",8,E),l.cli?(d(),i("button",{key:0,class:"ghost sm",role:"tab","aria-selected":o.value==="cli","data-on":o.value==="cli",onClick:t[2]||(t[2]=v=>o.value="cli")}," pstack ",8,j)):m("",!0),t[4]||(t[4]=e("span",{class:"grow"},null,-1)),e("button",{class:"ghost sm",onClick:y},"Copy")]),e("pre",B,c(p.value),1),e("p",K,[r(" Runs "+c(l.what)+" exactly as the button above does. ",1),t[5]||(t[5]=e("b",null,"$PSTACK_TOKEN",-1)),t[6]||(t[6]=r(" is left as a shell variable on purpose — a real token in a screenshot or a shell history is the whole host. ",-1))])])):m("",!0)]),_:1})]))}}),O=$(S,[["__scopeId","data-v-0e7a9878"]]);export{O as E};
3
- //# sourceMappingURL=EquivalentCommand-D92xDU0_.js.map
3
+ //# sourceMappingURL=EquivalentCommand-D0dyw0Wd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EquivalentCommand-D92xDU0_.js","sources":["../../src/components/EquivalentCommand.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * \"Show equivalent command\" — the GCP pattern.\n *\n * WHY THIS EXISTS RATHER THAN A SNIPPET ON THE PAGE. A `curl` line printed next to a form is read by\n * everyone and needed by almost nobody: it is permanent clutter charged to every operator so that\n * the occasional scripter does not have to look something up. Behind a button it costs one click\n * when you want it and nothing when you do not — and, unlike a static snippet in the docs, it is\n * generated from what is actually in the form right now, so it cannot drift from the request the\n * button next to it would send.\n *\n * IT IS NOT A SECOND SOURCE OF TRUTH. The caller passes the same values it is about to POST. If the\n * form changes, this changes with it, because there is nothing here to keep in sync by hand.\n *\n * THE TOKEN IS NEVER INTERPOLATED. `$PSTACK_TOKEN` stays a shell variable: a rendered command lands\n * in screenshots, pasted messages and shell history, and a control-plane token in any of those is\n * the whole host. The panel says so rather than silently omitting it.\n */\nimport { computed, ref } from 'vue';\nimport { toast } from '../composables/useToasts';\n\nconst props = defineProps<{\n /** Shown as the button label's object, e.g. \"this registration\". */\n what: string;\n /** The HTTP request the adjacent action performs. */\n method: string;\n /** Path only — the host is filled in from where the UI is served. */\n path: string;\n body?: unknown;\n /** The `pstack` invocation that does the same thing, when one exists. */\n cli?: string;\n}>();\n\nconst open = ref(false);\nconst tab = ref<'curl' | 'cli'>('curl');\n\nconst base = computed(() => `${location.protocol}//${location.host}`);\n\nconst curl = computed(() => {\n const lines = [`curl -X ${props.method} ${base.value}${props.path} \\\\`];\n lines.push(` -H 'Authorization: Bearer $PSTACK_TOKEN' \\\\`);\n if (props.body !== undefined) {\n lines.push(` -H 'Content-Type: application/json' \\\\`);\n // Single-quoted so nothing in a value is expanded by the shell; embedded quotes are escaped\n // the only way that works inside single quotes.\n const json = JSON.stringify(props.body, null, 2).split(\"'\").join(`'\\\\''`);\n lines.push(` -d '${json}'`);\n } else {\n lines[lines.length - 1] = ` -H 'Authorization: Bearer $PSTACK_TOKEN'`;\n }\n return lines.join('\\n');\n});\n\nconst text = computed(() => (tab.value === 'curl' ? curl.value : (props.cli ?? '')));\n\nasync function copy(): Promise<void> {\n try {\n await navigator.clipboard.writeText(text.value);\n toast('ok', 'Copied.');\n } catch {\n toast('error', 'Could not copy — your browser blocked clipboard access.');\n }\n}\n</script>\n\n<template>\n <div class=\"eqc\">\n <button class=\"ghost sm\" :aria-expanded=\"open\" @click=\"open = !open\">\n <svg viewBox=\"0 0 24 24\" width=\"14\" height=\"14\" aria-hidden=\"true\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"m7 8-4 4 4 4\" /><path d=\"m17 8 4 4-4 4\" /><path d=\"M14 4 10 20\" />\n </svg>\n {{ open ? 'Hide' : 'Show' }} equivalent command\n </button>\n\n <Transition name=\"fade\">\n <div v-if=\"open\" class=\"eqc-panel\">\n <div class=\"eqc-tabs\" role=\"tablist\">\n <button\n class=\"ghost sm\"\n role=\"tab\"\n :aria-selected=\"tab === 'curl'\"\n :data-on=\"tab === 'curl'\"\n @click=\"tab = 'curl'\"\n >\n curl\n </button>\n <button\n v-if=\"cli\"\n class=\"ghost sm\"\n role=\"tab\"\n :aria-selected=\"tab === 'cli'\"\n :data-on=\"tab === 'cli'\"\n @click=\"tab = 'cli'\"\n >\n pstack\n </button>\n <span class=\"grow\" />\n <button class=\"ghost sm\" @click=\"copy\">Copy</button>\n </div>\n\n <pre class=\"eqc-code\">{{ text }}</pre>\n\n <p class=\"eqc-note\">\n Runs {{ what }} exactly as the button above does.\n <b>$PSTACK_TOKEN</b> is left as a shell variable on purpose — a real token in a screenshot\n or a shell history is the whole host.\n </p>\n </div>\n </Transition>\n </div>\n</template>\n\n<style scoped>\n.eqc {\n min-width: 0;\n}\n.eqc-panel {\n margin-top: var(--s3);\n border: 1px solid var(--line);\n border-radius: var(--r2);\n background: var(--sunk);\n overflow: hidden;\n}\n.eqc-tabs {\n display: flex;\n align-items: center;\n gap: var(--s1);\n padding: var(--s2);\n border-bottom: 1px solid var(--line-soft);\n}\n.eqc-tabs [data-on='true'] {\n background: var(--accent-soft);\n color: var(--accent);\n}\n.eqc-code {\n margin: 0;\n padding: var(--s3);\n font: var(--t-sm) / 1.6 var(--mono);\n white-space: pre;\n overflow-x: auto;\n color: var(--fg-dim);\n}\n.eqc-note {\n padding: 0 var(--s3) var(--s3);\n font-size: var(--t-xs);\n color: var(--fg-mute);\n}\n</style>\n"],"names":["props","__props","open","ref","tab","base","computed","curl","lines","json","text","copy","toast","_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_cache","$event","_toDisplayString","_createVNode","_Transition","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8"],"mappings":"keAqBA,MAAMA,EAAQC,EAYRC,EAAOC,EAAI,EAAK,EAChBC,EAAMD,EAAoB,MAAM,EAEhCE,EAAOC,EAAS,IAAM,GAAG,SAAS,QAAQ,KAAK,SAAS,IAAI,EAAE,EAE9DC,EAAOD,EAAS,IAAM,CAC1B,MAAME,EAAQ,CAAC,WAAWR,EAAM,MAAM,IAAIK,EAAK,KAAK,GAAGL,EAAM,IAAI,KAAK,EAEtE,GADAQ,EAAM,KAAK,+CAA+C,EACtDR,EAAM,OAAS,OAAW,CAC5BQ,EAAM,KAAK,0CAA0C,EAGrD,MAAMC,EAAO,KAAK,UAAUT,EAAM,KAAM,KAAM,CAAC,EAAE,MAAM,GAAG,EAAE,KAAK,OAAO,EACxEQ,EAAM,KAAK,SAASC,CAAI,GAAG,CAC7B,MACED,EAAMA,EAAM,OAAS,CAAC,EAAI,6CAE5B,OAAOA,EAAM,KAAK;AAAA,CAAI,CACxB,CAAC,EAEKE,EAAOJ,EAAS,IAAOF,EAAI,QAAU,OAASG,EAAK,MAASP,EAAM,KAAO,EAAI,EAEnF,eAAeW,GAAsB,CACnC,GAAI,CACF,MAAM,UAAU,UAAU,UAAUD,EAAK,KAAK,EAC9CE,EAAM,KAAM,SAAS,CACvB,MAAQ,CACNA,EAAM,QAAS,yDAAyD,CAC1E,CACF,eAIEC,EAAA,EA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,CAAA,EAAAgB,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAD,EAAoB,SAAjB,gBAAa,EAAA,iBAAI,gHAEtB,EAAA,EAAA"}
1
+ {"version":3,"file":"EquivalentCommand-D0dyw0Wd.js","sources":["../../src/components/EquivalentCommand.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * \"Show equivalent command\" — the GCP pattern.\n *\n * WHY THIS EXISTS RATHER THAN A SNIPPET ON THE PAGE. A `curl` line printed next to a form is read by\n * everyone and needed by almost nobody: it is permanent clutter charged to every operator so that\n * the occasional scripter does not have to look something up. Behind a button it costs one click\n * when you want it and nothing when you do not — and, unlike a static snippet in the docs, it is\n * generated from what is actually in the form right now, so it cannot drift from the request the\n * button next to it would send.\n *\n * IT IS NOT A SECOND SOURCE OF TRUTH. The caller passes the same values it is about to POST. If the\n * form changes, this changes with it, because there is nothing here to keep in sync by hand.\n *\n * THE TOKEN IS NEVER INTERPOLATED. `$PSTACK_TOKEN` stays a shell variable: a rendered command lands\n * in screenshots, pasted messages and shell history, and a control-plane token in any of those is\n * the whole host. The panel says so rather than silently omitting it.\n */\nimport { computed, ref } from 'vue';\nimport { toast } from '../composables/useToasts';\n\nconst props = defineProps<{\n /** Shown as the button label's object, e.g. \"this registration\". */\n what: string;\n /** The HTTP request the adjacent action performs. */\n method: string;\n /** Path only — the host is filled in from where the UI is served. */\n path: string;\n body?: unknown;\n /** The `pstack` invocation that does the same thing, when one exists. */\n cli?: string;\n}>();\n\nconst open = ref(false);\nconst tab = ref<'curl' | 'cli'>('curl');\n\nconst base = computed(() => `${location.protocol}//${location.host}`);\n\nconst curl = computed(() => {\n const lines = [`curl -X ${props.method} ${base.value}${props.path} \\\\`];\n lines.push(` -H 'Authorization: Bearer $PSTACK_TOKEN' \\\\`);\n if (props.body !== undefined) {\n lines.push(` -H 'Content-Type: application/json' \\\\`);\n // Single-quoted so nothing in a value is expanded by the shell; embedded quotes are escaped\n // the only way that works inside single quotes.\n const json = JSON.stringify(props.body, null, 2).split(\"'\").join(`'\\\\''`);\n lines.push(` -d '${json}'`);\n } else {\n lines[lines.length - 1] = ` -H 'Authorization: Bearer $PSTACK_TOKEN'`;\n }\n return lines.join('\\n');\n});\n\nconst text = computed(() => (tab.value === 'curl' ? curl.value : (props.cli ?? '')));\n\nasync function copy(): Promise<void> {\n try {\n await navigator.clipboard.writeText(text.value);\n toast('ok', 'Copied.');\n } catch {\n toast('error', 'Could not copy — your browser blocked clipboard access.');\n }\n}\n</script>\n\n<template>\n <div class=\"eqc\">\n <button class=\"ghost sm\" :aria-expanded=\"open\" @click=\"open = !open\">\n <svg viewBox=\"0 0 24 24\" width=\"14\" height=\"14\" aria-hidden=\"true\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"m7 8-4 4 4 4\" /><path d=\"m17 8 4 4-4 4\" /><path d=\"M14 4 10 20\" />\n </svg>\n {{ open ? 'Hide' : 'Show' }} equivalent command\n </button>\n\n <Transition name=\"fade\">\n <div v-if=\"open\" class=\"eqc-panel\">\n <div class=\"eqc-tabs\" role=\"tablist\">\n <button\n class=\"ghost sm\"\n role=\"tab\"\n :aria-selected=\"tab === 'curl'\"\n :data-on=\"tab === 'curl'\"\n @click=\"tab = 'curl'\"\n >\n curl\n </button>\n <button\n v-if=\"cli\"\n class=\"ghost sm\"\n role=\"tab\"\n :aria-selected=\"tab === 'cli'\"\n :data-on=\"tab === 'cli'\"\n @click=\"tab = 'cli'\"\n >\n pstack\n </button>\n <span class=\"grow\" />\n <button class=\"ghost sm\" @click=\"copy\">Copy</button>\n </div>\n\n <pre class=\"eqc-code\">{{ text }}</pre>\n\n <p class=\"eqc-note\">\n Runs {{ what }} exactly as the button above does.\n <b>$PSTACK_TOKEN</b> is left as a shell variable on purpose — a real token in a screenshot\n or a shell history is the whole host.\n </p>\n </div>\n </Transition>\n </div>\n</template>\n\n<style scoped>\n.eqc {\n min-width: 0;\n}\n.eqc-panel {\n margin-top: var(--s3);\n border: 1px solid var(--line);\n border-radius: var(--r2);\n background: var(--sunk);\n overflow: hidden;\n}\n.eqc-tabs {\n display: flex;\n align-items: center;\n gap: var(--s1);\n padding: var(--s2);\n border-bottom: 1px solid var(--line-soft);\n}\n.eqc-tabs [data-on='true'] {\n background: var(--accent-soft);\n color: var(--accent);\n}\n.eqc-code {\n margin: 0;\n padding: var(--s3);\n font: var(--t-sm) / 1.6 var(--mono);\n white-space: pre;\n overflow-x: auto;\n color: var(--fg-dim);\n}\n.eqc-note {\n padding: 0 var(--s3) var(--s3);\n font-size: var(--t-xs);\n color: var(--fg-mute);\n}\n</style>\n"],"names":["props","__props","open","ref","tab","base","computed","curl","lines","json","text","copy","toast","_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_cache","$event","_toDisplayString","_createVNode","_Transition","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8"],"mappings":"keAqBA,MAAMA,EAAQC,EAYRC,EAAOC,EAAI,EAAK,EAChBC,EAAMD,EAAoB,MAAM,EAEhCE,EAAOC,EAAS,IAAM,GAAG,SAAS,QAAQ,KAAK,SAAS,IAAI,EAAE,EAE9DC,EAAOD,EAAS,IAAM,CAC1B,MAAME,EAAQ,CAAC,WAAWR,EAAM,MAAM,IAAIK,EAAK,KAAK,GAAGL,EAAM,IAAI,KAAK,EAEtE,GADAQ,EAAM,KAAK,+CAA+C,EACtDR,EAAM,OAAS,OAAW,CAC5BQ,EAAM,KAAK,0CAA0C,EAGrD,MAAMC,EAAO,KAAK,UAAUT,EAAM,KAAM,KAAM,CAAC,EAAE,MAAM,GAAG,EAAE,KAAK,OAAO,EACxEQ,EAAM,KAAK,SAASC,CAAI,GAAG,CAC7B,MACED,EAAMA,EAAM,OAAS,CAAC,EAAI,6CAE5B,OAAOA,EAAM,KAAK;AAAA,CAAI,CACxB,CAAC,EAEKE,EAAOJ,EAAS,IAAOF,EAAI,QAAU,OAASG,EAAK,MAASP,EAAM,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A5C,MAAM,WAAY,QAAOL,CAAA,EAAM,MAAI,CAAA,GAG7CK,EAAsC,MAAtCU,EAAsCP,EAAbT,EAAA,KAAI,EAAA,CAAA,EAE7BM,EAII,IAJJW,EAII,GAJgB,SACbR,EAAGlB,EAAA,IAAI,EAAG,sCACf,CAAA,EAAAgB,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAD,EAAoB,SAAjB,gBAAa,EAAA,iBAAI,gHAEtB,EAAA,EAAA"}
@@ -1,2 +1,2 @@
1
- import{d as r,c as a,a as t,t as s,o}from"./index-Cqe_7QZw.js";const n={class:"banner failed",role:"alert"},c={class:"raw"},d=r({__name:"ErrorNote",props:{text:{},title:{}},setup(e){return(l,i)=>(o(),a("div",n,[t("b",null,s(e.title??"The server refused this."),1),t("pre",c,s(e.text),1)]))}});export{d as _};
2
- //# sourceMappingURL=ErrorNote.vue_vue_type_script_setup_true_lang-DVbGiVTB.js.map
1
+ import{d as r,c as a,a as t,t as s,o}from"./index-DB2WhG8N.js";const n={class:"banner failed",role:"alert"},c={class:"raw"},d=r({__name:"ErrorNote",props:{text:{},title:{}},setup(e){return(l,i)=>(o(),a("div",n,[t("b",null,s(e.title??"The server refused this."),1),t("pre",c,s(e.text),1)]))}});export{d as _};
2
+ //# sourceMappingURL=ErrorNote.vue_vue_type_script_setup_true_lang-BrBUwK6j.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorNote.vue_vue_type_script_setup_true_lang-DVbGiVTB.js","sources":["../../src/components/ErrorNote.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * The server's own words, rendered whole.\n *\n * A pstack error message IS the documentation: a 400 from `PUT /api/deployments/:id` carries the\n * SpecError, which names the offending key or variable, prints the corrected form, and includes\n * the assert-lint warnings about an `assert_gone` that fails open. That text is the tool's main\n * teaching surface.\n *\n * So: never truncate it, never collapse it to one line, never replace it with \"invalid spec\".\n * Newlines and indentation are preserved, and it is the one element allowed to scroll sideways —\n * re-wrapping a shell snippet changes what it says.\n */\ndefineProps<{ text: string; title?: string }>();\n</script>\n\n<template>\n <div class=\"banner failed\" role=\"alert\">\n <b>{{ title ?? 'The server refused this.' }}</b>\n <pre class=\"raw\">{{ text }}</pre>\n </div>\n</template>\n"],"names":["_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","__props","_hoisted_2","_toDisplayString"],"mappings":"oMAiBEA,EAAA,EAAAC,EAGM,MAHNC,EAGM,CAFJC,EAAgD,WAA1CC,EAAA,OAAK,0BAAA,EAAA,CAAA,EACXD,EAAiC,MAAjCE,EAAiCC,EAAbF,EAAA,IAAI,EAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"ErrorNote.vue_vue_type_script_setup_true_lang-BrBUwK6j.js","sources":["../../src/components/ErrorNote.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * The server's own words, rendered whole.\n *\n * A pstack error message IS the documentation: a 400 from `PUT /api/deployments/:id` carries the\n * SpecError, which names the offending key or variable, prints the corrected form, and includes\n * the assert-lint warnings about an `assert_gone` that fails open. That text is the tool's main\n * teaching surface.\n *\n * So: never truncate it, never collapse it to one line, never replace it with \"invalid spec\".\n * Newlines and indentation are preserved, and it is the one element allowed to scroll sideways —\n * re-wrapping a shell snippet changes what it says.\n */\ndefineProps<{ text: string; title?: string }>();\n</script>\n\n<template>\n <div class=\"banner failed\" role=\"alert\">\n <b>{{ title ?? 'The server refused this.' }}</b>\n <pre class=\"raw\">{{ text }}</pre>\n </div>\n</template>\n"],"names":["_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","__props","_hoisted_2","_toDisplayString"],"mappings":"oMAiBEA,EAAA,EAAAC,EAGM,MAHNC,EAGM,CAFJC,EAAgD,WAA1CC,EAAA,OAAK,0BAAA,EAAA,CAAA,EACXD,EAAiC,MAAjCE,EAAiCC,EAAbF,EAAA,IAAI,EAAA,CAAA,CAAA"}
@@ -1,2 +1,2 @@
1
- import{D as d,a as n,b as u,c as f,d as c,e as _,f as h}from"./DialogTrigger-nWkfUj3N.js";import{d as p,z as g,w as a,u as e,o as m,e as l,a as t,f as r,t as D,a4 as C}from"./index-Cqe_7QZw.js";const b={class:"help-head"},k={class:"help-body"},x=p({__name:"HelpModal",props:{title:{},label:{}},setup(o){return(i,s)=>(m(),g(e(d),null,{default:a(()=>[l(e(n),{class:"helpq","aria-label":o.label??o.title},{default:a(()=>[...s[0]||(s[0]=[t("svg",{viewBox:"0 0 24 24",width:"13",height:"13","aria-hidden":"true",fill:"none",stroke:"currentColor","stroke-width":"2.2","stroke-linecap":"round"},[t("path",{d:"M9.2 9a2.9 2.9 0 1 1 3.8 2.8c-.7.3-1 .9-1 1.6v.4"}),t("circle",{cx:"12",cy:"17.6",r:"0.9",fill:"currentColor",stroke:"none"})],-1)])]),_:1},8,["aria-label"]),l(e(h),null,{default:a(()=>[l(e(u),{class:"scrim help-scrim"}),l(e(f),{class:"help-modal"},{default:a(()=>[t("div",b,[l(e(c),{class:"help-title"},{default:a(()=>[r(D(o.title),1)]),_:1}),l(e(_),{class:"ghost sm","aria-label":"Close"},{default:a(()=>[...s[1]||(s[1]=[r("Close",-1)])]),_:1})]),t("div",k,[C(i.$slots,"default")])]),_:3})]),_:3})]),_:3}))}});export{x as _};
2
- //# sourceMappingURL=HelpModal.vue_vue_type_script_setup_true_lang-CSOdBT2E.js.map
1
+ import{D as d,a as n,b as u,c as f,d as c,e as _,f as h}from"./DialogTrigger-D4yBGqUf.js";import{d as p,z as g,w as a,u as e,o as m,e as l,a as t,f as r,t as D,a4 as C}from"./index-DB2WhG8N.js";const b={class:"help-head"},k={class:"help-body"},x=p({__name:"HelpModal",props:{title:{},label:{}},setup(o){return(i,s)=>(m(),g(e(d),null,{default:a(()=>[l(e(n),{class:"helpq","aria-label":o.label??o.title},{default:a(()=>[...s[0]||(s[0]=[t("svg",{viewBox:"0 0 24 24",width:"13",height:"13","aria-hidden":"true",fill:"none",stroke:"currentColor","stroke-width":"2.2","stroke-linecap":"round"},[t("path",{d:"M9.2 9a2.9 2.9 0 1 1 3.8 2.8c-.7.3-1 .9-1 1.6v.4"}),t("circle",{cx:"12",cy:"17.6",r:"0.9",fill:"currentColor",stroke:"none"})],-1)])]),_:1},8,["aria-label"]),l(e(h),null,{default:a(()=>[l(e(u),{class:"scrim help-scrim"}),l(e(f),{class:"help-modal"},{default:a(()=>[t("div",b,[l(e(c),{class:"help-title"},{default:a(()=>[r(D(o.title),1)]),_:1}),l(e(_),{class:"ghost sm","aria-label":"Close"},{default:a(()=>[...s[1]||(s[1]=[r("Close",-1)])]),_:1})]),t("div",k,[C(i.$slots,"default")])]),_:3})]),_:3})]),_:3}))}});export{x as _};
2
+ //# sourceMappingURL=HelpModal.vue_vue_type_script_setup_true_lang-CTbPBhLs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HelpModal.vue_vue_type_script_setup_true_lang-CSOdBT2E.js","sources":["../../src/components/HelpModal.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * A `?` that opens a modal.\n *\n * WHY THIS AND NOT `InfoHint`. `InfoHint` is a small `[i]` popover for a sentence or two — the right\n * shape for \"what does this field mean\". It is the wrong shape for the several paragraphs some of\n * these surfaces genuinely need: a 300-character bubble anchored to an icon either overflows its\n * container or wraps into a column two words wide.\n *\n * Those paragraphs used to sit permanently on the page as banners. That is the actual problem: an\n * explanation everyone reads once and nobody reads again, charged to every visit forever. A `?`\n * costs one glyph in the header and gives the reader the whole thing when they want it.\n *\n * WHAT STAYS ON THE PAGE. State, not explanation. \"Docker did not answer\" is a banner because it is\n * true right now and changes what you can do; \"here is how Traefik resolves a container IP\" is help,\n * and belongs behind the `?`.\n *\n * Built on Reka's Dialog: focus trap, focus restore, scroll lock, Escape, and `aria-modal` wiring\n * are all behaviour with edge cases, and none of them are this product's problem.\n */\nimport { DialogClose, DialogContent, DialogOverlay, DialogPortal, DialogRoot, DialogTitle, DialogTrigger } from 'reka-ui';\n\ndefineProps<{\n /** The question the modal answers, e.g. \"How routing works\". Becomes the dialog's title. */\n title: string;\n /** Accessible name for the trigger — screen readers hear this instead of \"question mark\". */\n label?: string;\n}>();\n</script>\n\n<template>\n <DialogRoot>\n <DialogTrigger class=\"helpq\" :aria-label=\"label ?? title\">\n <svg viewBox=\"0 0 24 24\" width=\"13\" height=\"13\" aria-hidden=\"true\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.2\" stroke-linecap=\"round\">\n <path d=\"M9.2 9a2.9 2.9 0 1 1 3.8 2.8c-.7.3-1 .9-1 1.6v.4\" />\n <circle cx=\"12\" cy=\"17.6\" r=\"0.9\" fill=\"currentColor\" stroke=\"none\" />\n </svg>\n </DialogTrigger>\n\n <DialogPortal>\n <DialogOverlay class=\"scrim help-scrim\" />\n <DialogContent class=\"help-modal\">\n <div class=\"help-head\">\n <DialogTitle class=\"help-title\">{{ title }}</DialogTitle>\n <DialogClose class=\"ghost sm\" aria-label=\"Close\">Close</DialogClose>\n </div>\n <div class=\"help-body\">\n <slot />\n </div>\n </DialogContent>\n </DialogPortal>\n </DialogRoot>\n</template>\n"],"names":["_createBlock","_unref","DialogRoot","_createVNode","DialogTrigger","__props","_cache","_createElementVNode","DialogPortal","DialogOverlay","DialogContent","_hoisted_1","DialogTitle","DialogClose","_hoisted_2","_renderSlot","_ctx"],"mappings":"iUA+BEA,EAoBaC,EAAAC,CAAA,EAAA,KAAA,WAnBX,IAKgB,CALhBC,EAKgBF,EAAAG,CAAA,EAAA,CALD,MAAM,QAAS,aAAYC,EAAA,OAASA,EAAA,KAAA,aACjD,IAGM,CAAA,GAAAC,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAA,CAHNC,EAGM,MAAA,CAHD,QAAQ,YAAY,MAAM,KAAK,OAAO,KAAK,cAAY,OAAO,KAAK,OAAO,OAAO,eAAe,eAAa,MAAM,iBAAe,OAAA,GACrIA,EAA6D,OAAA,CAAvD,EAAE,mDAAkD,EAC1DA,EAAsE,SAAA,CAA9D,GAAG,KAAK,GAAG,OAAO,EAAE,MAAM,KAAK,eAAe,OAAO,MAAA,mCAIjEJ,EAWeF,EAAAO,CAAA,EAAA,KAAA,WAVb,IAA0C,CAA1CL,EAA0CF,EAAAQ,CAAA,EAAA,CAA3B,MAAM,mBAAkB,EACvCN,EAQgBF,EAAAS,CAAA,EAAA,CARD,MAAM,cAAY,WAC/B,IAGM,CAHNH,EAGM,MAHNI,EAGM,CAFJR,EAAyDF,EAAAW,CAAA,EAAA,CAA5C,MAAM,cAAY,WAAC,IAAW,KAARP,EAAA,KAAK,EAAA,CAAA,CAAA,SACxCF,EAAoEF,EAAAY,CAAA,EAAA,CAAvD,MAAM,WAAW,aAAW,OAAA,aAAQ,IAAK,CAAA,GAAAP,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAA,GAAL,QAAK,EAAA,CAAA,aAExDC,EAEM,MAFNO,EAEM,CADJC,EAAQC,EAAA,OAAA,SAAA,CAAA"}
1
+ {"version":3,"file":"HelpModal.vue_vue_type_script_setup_true_lang-CTbPBhLs.js","sources":["../../src/components/HelpModal.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * A `?` that opens a modal.\n *\n * WHY THIS AND NOT `InfoHint`. `InfoHint` is a small `[i]` popover for a sentence or two — the right\n * shape for \"what does this field mean\". It is the wrong shape for the several paragraphs some of\n * these surfaces genuinely need: a 300-character bubble anchored to an icon either overflows its\n * container or wraps into a column two words wide.\n *\n * Those paragraphs used to sit permanently on the page as banners. That is the actual problem: an\n * explanation everyone reads once and nobody reads again, charged to every visit forever. A `?`\n * costs one glyph in the header and gives the reader the whole thing when they want it.\n *\n * WHAT STAYS ON THE PAGE. State, not explanation. \"Docker did not answer\" is a banner because it is\n * true right now and changes what you can do; \"here is how Traefik resolves a container IP\" is help,\n * and belongs behind the `?`.\n *\n * Built on Reka's Dialog: focus trap, focus restore, scroll lock, Escape, and `aria-modal` wiring\n * are all behaviour with edge cases, and none of them are this product's problem.\n */\nimport { DialogClose, DialogContent, DialogOverlay, DialogPortal, DialogRoot, DialogTitle, DialogTrigger } from 'reka-ui';\n\ndefineProps<{\n /** The question the modal answers, e.g. \"How routing works\". Becomes the dialog's title. */\n title: string;\n /** Accessible name for the trigger — screen readers hear this instead of \"question mark\". */\n label?: string;\n}>();\n</script>\n\n<template>\n <DialogRoot>\n <DialogTrigger class=\"helpq\" :aria-label=\"label ?? title\">\n <svg viewBox=\"0 0 24 24\" width=\"13\" height=\"13\" aria-hidden=\"true\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.2\" stroke-linecap=\"round\">\n <path d=\"M9.2 9a2.9 2.9 0 1 1 3.8 2.8c-.7.3-1 .9-1 1.6v.4\" />\n <circle cx=\"12\" cy=\"17.6\" r=\"0.9\" fill=\"currentColor\" stroke=\"none\" />\n </svg>\n </DialogTrigger>\n\n <DialogPortal>\n <DialogOverlay class=\"scrim help-scrim\" />\n <DialogContent class=\"help-modal\">\n <div class=\"help-head\">\n <DialogTitle class=\"help-title\">{{ title }}</DialogTitle>\n <DialogClose class=\"ghost sm\" aria-label=\"Close\">Close</DialogClose>\n </div>\n <div class=\"help-body\">\n <slot />\n </div>\n </DialogContent>\n </DialogPortal>\n </DialogRoot>\n</template>\n"],"names":["_createBlock","_unref","DialogRoot","_createVNode","DialogTrigger","__props","_cache","_createElementVNode","DialogPortal","DialogOverlay","DialogContent","_hoisted_1","DialogTitle","DialogClose","_hoisted_2","_renderSlot","_ctx"],"mappings":"iUA+BEA,EAoBaC,EAAAC,CAAA,EAAA,KAAA,WAnBX,IAKgB,CALhBC,EAKgBF,EAAAG,CAAA,EAAA,CALD,MAAM,QAAS,aAAYC,EAAA,OAASA,EAAA,KAAA,aACjD,IAGM,CAAA,GAAAC,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAA,CAHNC,EAGM,MAAA,CAHD,QAAQ,YAAY,MAAM,KAAK,OAAO,KAAK,cAAY,OAAO,KAAK,OAAO,OAAO,eAAe,eAAa,MAAM,iBAAe,OAAA,GACrIA,EAA6D,OAAA,CAAvD,EAAE,mDAAkD,EAC1DA,EAAsE,SAAA,CAA9D,GAAG,KAAK,GAAG,OAAO,EAAE,MAAM,KAAK,eAAe,OAAO,MAAA,mCAIjEJ,EAWeF,EAAAO,CAAA,EAAA,KAAA,WAVb,IAA0C,CAA1CL,EAA0CF,EAAAQ,CAAA,EAAA,CAA3B,MAAM,mBAAkB,EACvCN,EAQgBF,EAAAS,CAAA,EAAA,CARD,MAAM,cAAY,WAC/B,IAGM,CAHNH,EAGM,MAHNI,EAGM,CAFJR,EAAyDF,EAAAW,CAAA,EAAA,CAA5C,MAAM,cAAY,WAAC,IAAW,KAARP,EAAA,KAAK,EAAA,CAAA,CAAA,SACxCF,EAAoEF,EAAAY,CAAA,EAAA,CAAvD,MAAM,WAAW,aAAW,OAAA,aAAQ,IAAK,CAAA,GAAAP,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAA,GAAL,QAAK,EAAA,CAAA,aAExDC,EAEM,MAFNO,EAEM,CADJC,EAAQC,EAAA,OAAA,SAAA,CAAA"}
@@ -1,2 +1,2 @@
1
- import{d as H,c as l,a as s,F as m,r as ee,a3 as te,o as n,D as se,E as T,u as c,t as r,N as ae,Q as oe,e as $,w as S,f as o,G as D,R as M,I as ne,g as v,z as L,j as x,k as b,l as le,p as B,C as G,A as P,U as Q}from"./index-Cqe_7QZw.js";import{i as X,w as re,s as ie}from"./useJobQueue-D5JkRJNX.js";import{_ as ue}from"./LogViewer.vue_vue_type_script_setup_true_lang-Bhy_5cyC.js";import{_ as de}from"./StateBadge.vue_vue_type_script_setup_true_lang-nD6Zdx0q.js";import{_ as pe}from"./ActionButton.vue_vue_type_script_setup_true_lang-D8Xlp6c9.js";import{_ as ve}from"./ErrorNote.vue_vue_type_script_setup_true_lang-DVbGiVTB.js";function h(i){var d;return(d=i.message)!=null&&d.startsWith("unverifiable")?"unverifiable":i.ok?"ok":i.phase==="assert_gone"?"leaked":"failed"}function ce(i){return{ok:"✓",unverifiable:"?",leaked:"!",failed:"✗"}[h(i)]}function me(i){return i.message?i.message:i.skipped?"skipped":h(i)==="ok"?"ok":`exit ${i.code}`}function fe(i){return i.filter(d=>d.phase==="assert_gone"&&!d.ok).map(d=>d.axis)}function ye(i){return i.filter(d=>h(d)==="unverifiable").length}const ke={class:"steps stagger"},ge={class:"who"},be={class:"dim",style:{"font-size":"var(--t-sm)"}},he=H({__name:"StepList",props:{steps:{}},setup(i){return(d,t)=>(n(),l("div",null,[s("ul",ke,[(n(!0),l(m,null,ee(i.steps,(u,f)=>(n(),l("li",{key:`${u.phase}-${u.axis}-${f}`,class:"step",style:se({"--i":f})},[s("span",{class:T(["mark",`s-${c(h)(u)}`]),"aria-hidden":"true"},r(c(ce)(u)),3),s("span",null,[s("span",ge,r(u.axis),1),s("span",be," · "+r(u.phase),1),s("span",{class:T(["badge",c(h)(u)]),style:{"margin-left":"var(--s2)"}},r(c(h)(u)),3),s("div",{class:T(["msg",`s-${c(h)(u)}`])},r(c(me)(u)),3)])],4))),128))]),t[0]||(t[0]=te('<p class="hint"><span class="s-ok">✓ ok</span> · <span class="s-failed">✗ failed</span> · <span class="s-leaked">! leaked — survived teardown</span> · <span class="s-unverifiable">? unverifiable — nothing to check, not a pass</span>. A <code>down</code> step marked ok may still carry a <code>non-fatal:</code> note: teardown is best-effort by design, so aborting halfway would leave more behind than continuing. </p>',1))]))}}),we={class:"page-head"},je={class:"sub"},xe={key:0,class:"panel"},_e={key:0,class:"mute"},$e={key:1,class:"mute"},Se={key:2,class:"mute"},Ie={key:1,class:"panel"},Ae={class:"mute"},Ce={key:2,class:"panel banner-panel warn"},Re={key:4,class:"panel leaked-banner"},Ne={key:5,class:"panel"},Te={class:"pre"},De={class:"panel"},Le={key:6,class:"panel"},Be={class:"phead"},Ue={key:0,class:"mute"},Oe=H({__name:"JobDetailView",props:{jobId:{}},setup(i){const d=i,t=x(null),u=x([]),f=x(""),C=x(!0),I=x(!1),Y=b(()=>{const a=[];let e="";for(const p of u.value){const j=new Date(p.at),g=j.toLocaleDateString("sv");g!==e&&(a.push({key:`day-${g}-${p.seq}`,separator:!0,text:g}),e=g),a.push({key:p.seq,gutter:j.toTimeString().slice(0,8),gutterTitle:M(p.at),text:p.message,tone:p.level})}return a});let y=null;const U=b(()=>!!t.value&&X(t.value.state)),k=b(()=>{var a;return((a=t.value)==null?void 0:a.state)==="queued"}),_=b(()=>t.value?re(t.value,P.jobs):null),R=b(()=>t.value?ie(t.value,P.jobs):null),q=b(()=>{var a;return(a=t.value)!=null&&a.outcome?fe(t.value.outcome.steps):[]}),V=b(()=>{var a;return(a=t.value)!=null&&a.outcome?ye(t.value.outcome.steps):0});async function w(){var e;const a=await B.get(`/api/jobs/${encodeURIComponent(d.jobId)}`);return C.value=!1,a.ok?(f.value="",t.value=a.body.job,(e=a.body.job.log)!=null&&e.length&&u.value.length===0&&(u.value=[...a.body.job.log]),a.body.job):(f.value=G(a,"load job"),null)}function A(){y==null||y.close(),y=null,I.value=!1}function z(){A(),u.value=[];let a=k.value;y=new EventSource(B.url(`/api/jobs/${encodeURIComponent(d.jobId)}/stream`)),I.value=!0,y.onmessage=e=>{let p;try{p=JSON.parse(e.data)}catch{return}if(p.done){A(),w();return}a&&(a=!1,w()),u.value.push(p)},y.onerror=()=>{A(),w()}}ae(()=>d.jobId,async()=>{u.value=[],t.value=null,C.value=!0;const a=await w();a&&!X(a.state)&&z()},{immediate:!0});const N=x(!1);async function Z(){N.value=!0;const a=await B.post(`/api/jobs/${encodeURIComponent(d.jobId)}/cancel`);if(N.value=!1,!a.ok){Q(a.status===409?"info":"error",G(a,"stop this job")),w();return}Q("ok",a.body.warning??"Stopped."),w()}return oe(A),(a,e)=>{var j,g,J,W,E,O,F,K;const p=le("RouterLink");return n(),l("div",null,[s("div",we,[s("div",null,[s("h1",null,[$(p,{to:"/jobs",class:"mute"},{default:S(()=>[...e[0]||(e[0]=[o("Jobs",-1)])]),_:1}),e[1]||(e[1]=s("span",{class:"mute"}," / ",-1)),o(r(t.value?c(D)(t.value.action):"…"),1)]),s("div",je,[t.value?(n(),l(m,{key:0},[s("code",null,r(t.value.stack),1),t.value.startedAt?(n(),l(m,{key:0},[o(" · started "+r(c(M)(t.value.startedAt)),1)],64)):k.value?(n(),l(m,{key:1},[o(" · not started yet")],64)):(n(),l(m,{key:2},[o(" · never started")],64)),t.value.startedAt&&t.value.endedAt?(n(),l(m,{key:3},[o(" · took "+r(c(ne)(t.value.startedAt,t.value.endedAt)),1)],64)):v("",!0)],64)):(n(),l(m,{key:1},[o(r(i.jobId),1)],64))])]),e[2]||(e[2]=s("span",{class:"grow"},null,-1)),t.value?(n(),L(de,{key:0,state:t.value.state},null,8,["state"])):v("",!0),t.value&&!U.value?(n(),L(pe,{key:1,variant:"danger",pending:N.value,confirm:k.value?"Drop it? It never ran.":"Stop it? Nothing is undone.",title:k.value?"It has not started, so there is nothing left behind to clean up.":"Kills the command in flight. Anything already created or destroyed stays that way.",onRun:Z},{default:S(()=>[o(r(k.value?"Drop":"Stop"),1)]),_:1},8,["pending","confirm","title"])):v("",!0)]),k.value?(n(),l("section",xe,[e[8]||(e[8]=s("b",null,"Waiting to start — nothing has run yet.",-1)),((j=_.value)==null?void 0:j.kind)==="stack"?(n(),l("p",_e,[$(p,{to:`/jobs/${encodeURIComponent(_.value.blocker.id)}`},{default:S(()=>[o(r(c(D)(_.value.blocker.action)),1)]),_:1},8,["to"]),e[3]||(e[3]=o(" is already running on ",-1)),s("code",null,r((g=t.value)==null?void 0:g.stack),1),e[4]||(e[4]=o(". One job runs per stack at a time — a teardown racing a deploy over the same database is the failure that rule exists to prevent — so this one starts when that one ends. ",-1))])):((J=_.value)==null?void 0:J.kind)==="slot"?(n(),l("p",$e,[e[5]||(e[5]=o(" Nothing is running on ",-1)),s("code",null,r((W=t.value)==null?void 0:W.stack),1),o(", so the wait is host-wide: "+r(_.value.running)+" jobs hold a slot across every stack, and the host runs at most ",1),e[6]||(e[6]=s("code",null,"PSTACK_MAX_JOBS",-1)),e[7]||(e[7]=o(" at once (4 unless this server was told otherwise). This one starts as soon as a slot frees. ",-1))])):(n(),l("p",Se," It starts once its own stack is free and the host has a spare job slot. ")),e[9]||(e[9]=s("p",{class:"mute"},"Dropping it now costs nothing — it has not touched anything yet.",-1))])):v("",!0),((E=t.value)==null?void 0:E.state)==="superseded"?(n(),l("section",Ie,[e[16]||(e[16]=s("b",null,"Superseded — this job never ran.",-1)),s("p",Ae,[R.value?(n(),l(m,{key:0},[e[10]||(e[10]=o(" A newer ",-1)),$(p,{to:`/jobs/${encodeURIComponent(R.value.id)}`},{default:S(()=>[o(r(c(D)(R.value.action).toLowerCase()),1)]),_:1},8,["to"]),e[11]||(e[11]=o(" for ",-1)),s("code",null,r(t.value.stack),1),e[12]||(e[12]=o(" replaced it while it was queued. ",-1))],64)):(n(),l(m,{key:1},[e[13]||(e[13]=o(" A newer job for ",-1)),s("code",null,r(t.value.stack),1),e[14]||(e[14]=o(" replaced it while it was queued. ",-1))],64)),e[15]||(e[15]=o(" The queue is one deep, so a burst of pushes runs the first deploy and then exactly one more carrying the newest spec. Nothing was created or destroyed here — there is no partial state to go looking for, and nothing to verify. ",-1))])])):v("",!0),((O=t.value)==null?void 0:O.state)==="cancelled"?(n(),l("section",Ce,[s("b",null,"Stopped by "+r(t.value.cancelledBy??"an operator")+" — nothing was undone.",1),e[17]||(e[17]=s("p",null,[o(" Whatever this job had already created or destroyed is still that way. Run "),s("b",null,"Verify"),o(" on the deployment to see what actually exists. ")],-1))])):v("",!0),f.value?(n(),L(ve,{key:3,text:f.value},null,8,["text"])):v("",!0),q.value.length?(n(),l("section",Re,[e[18]||(e[18]=s("strong",null,"Leaked:",-1)),o(" "+r(q.value.join(", "))+" ",1),e[19]||(e[19]=s("div",{class:"mute"},[o(" These axes' "),s("code",null,"assert_gone"),o(" failed, so the resources are still present. They will not be retried — tear them down by hand, then re-run "),s("code",null,"verify"),o(". ")],-1))])):v("",!0),(F=t.value)!=null&&F.error?(n(),l("section",Ne,[e[20]||(e[20]=s("strong",{class:"bad"},"The job crashed",-1)),s("pre",Te,r(t.value.error),1)])):v("",!0),s("section",De,[e[21]||(e[21]=s("div",{class:"phead"},[s("h2",{class:"phead-title"},"Log")],-1)),$(ue,{rows:Y.value,live:I.value,"empty-text":C.value?"Loading…":k.value?"Waiting to start — there is no output until it does.":"No output."},{actions:S(()=>[!I.value&&t.value&&!U.value?(n(),l("button",{key:0,class:"ghost sm",onClick:z}," Reconnect ")):v("",!0)]),_:1},8,["rows","live","empty-text"])]),(K=t.value)!=null&&K.outcome?(n(),l("section",Le,[s("div",Be,[e[24]||(e[24]=s("h2",{class:"phead-title"},"Steps",-1)),V.value?(n(),l("span",Ue,[o(r(V.value)+" unverifiable — no ",1),e[22]||(e[22]=s("code",null,"assert_gone",-1)),e[23]||(e[23]=o(", so nothing was checked ",-1))])):v("",!0)]),$(he,{steps:t.value.outcome.steps},null,8,["steps"])])):v("",!0)])}}});export{Oe as default};
2
- //# sourceMappingURL=JobDetailView-B1sXXVJ5.js.map
1
+ import{d as H,c as l,a as s,F as m,r as ee,a3 as te,o as n,D as se,E as T,u as c,t as r,N as ae,Q as oe,e as $,w as S,f as o,G as D,R as M,I as ne,g as v,z as L,j as x,k as b,l as le,p as B,C as G,A as P,U as Q}from"./index-DB2WhG8N.js";import{i as X,w as re,s as ie}from"./useJobQueue-D5JkRJNX.js";import{_ as ue}from"./LogViewer.vue_vue_type_script_setup_true_lang-B3YVBpn-.js";import{_ as de}from"./StateBadge.vue_vue_type_script_setup_true_lang-CzLuB-ZI.js";import{_ as pe}from"./ActionButton.vue_vue_type_script_setup_true_lang-AGS1FKpY.js";import{_ as ve}from"./ErrorNote.vue_vue_type_script_setup_true_lang-BrBUwK6j.js";function h(i){var d;return(d=i.message)!=null&&d.startsWith("unverifiable")?"unverifiable":i.ok?"ok":i.phase==="assert_gone"?"leaked":"failed"}function ce(i){return{ok:"✓",unverifiable:"?",leaked:"!",failed:"✗"}[h(i)]}function me(i){return i.message?i.message:i.skipped?"skipped":h(i)==="ok"?"ok":`exit ${i.code}`}function fe(i){return i.filter(d=>d.phase==="assert_gone"&&!d.ok).map(d=>d.axis)}function ye(i){return i.filter(d=>h(d)==="unverifiable").length}const ke={class:"steps stagger"},ge={class:"who"},be={class:"dim",style:{"font-size":"var(--t-sm)"}},he=H({__name:"StepList",props:{steps:{}},setup(i){return(d,t)=>(n(),l("div",null,[s("ul",ke,[(n(!0),l(m,null,ee(i.steps,(u,f)=>(n(),l("li",{key:`${u.phase}-${u.axis}-${f}`,class:"step",style:se({"--i":f})},[s("span",{class:T(["mark",`s-${c(h)(u)}`]),"aria-hidden":"true"},r(c(ce)(u)),3),s("span",null,[s("span",ge,r(u.axis),1),s("span",be," · "+r(u.phase),1),s("span",{class:T(["badge",c(h)(u)]),style:{"margin-left":"var(--s2)"}},r(c(h)(u)),3),s("div",{class:T(["msg",`s-${c(h)(u)}`])},r(c(me)(u)),3)])],4))),128))]),t[0]||(t[0]=te('<p class="hint"><span class="s-ok">✓ ok</span> · <span class="s-failed">✗ failed</span> · <span class="s-leaked">! leaked — survived teardown</span> · <span class="s-unverifiable">? unverifiable — nothing to check, not a pass</span>. A <code>down</code> step marked ok may still carry a <code>non-fatal:</code> note: teardown is best-effort by design, so aborting halfway would leave more behind than continuing. </p>',1))]))}}),we={class:"page-head"},je={class:"sub"},xe={key:0,class:"panel"},_e={key:0,class:"mute"},$e={key:1,class:"mute"},Se={key:2,class:"mute"},Ie={key:1,class:"panel"},Ae={class:"mute"},Ce={key:2,class:"panel banner-panel warn"},Re={key:4,class:"panel leaked-banner"},Ne={key:5,class:"panel"},Te={class:"pre"},De={class:"panel"},Le={key:6,class:"panel"},Be={class:"phead"},Ue={key:0,class:"mute"},Oe=H({__name:"JobDetailView",props:{jobId:{}},setup(i){const d=i,t=x(null),u=x([]),f=x(""),C=x(!0),I=x(!1),Y=b(()=>{const a=[];let e="";for(const p of u.value){const j=new Date(p.at),g=j.toLocaleDateString("sv");g!==e&&(a.push({key:`day-${g}-${p.seq}`,separator:!0,text:g}),e=g),a.push({key:p.seq,gutter:j.toTimeString().slice(0,8),gutterTitle:M(p.at),text:p.message,tone:p.level})}return a});let y=null;const U=b(()=>!!t.value&&X(t.value.state)),k=b(()=>{var a;return((a=t.value)==null?void 0:a.state)==="queued"}),_=b(()=>t.value?re(t.value,P.jobs):null),R=b(()=>t.value?ie(t.value,P.jobs):null),q=b(()=>{var a;return(a=t.value)!=null&&a.outcome?fe(t.value.outcome.steps):[]}),V=b(()=>{var a;return(a=t.value)!=null&&a.outcome?ye(t.value.outcome.steps):0});async function w(){var e;const a=await B.get(`/api/jobs/${encodeURIComponent(d.jobId)}`);return C.value=!1,a.ok?(f.value="",t.value=a.body.job,(e=a.body.job.log)!=null&&e.length&&u.value.length===0&&(u.value=[...a.body.job.log]),a.body.job):(f.value=G(a,"load job"),null)}function A(){y==null||y.close(),y=null,I.value=!1}function z(){A(),u.value=[];let a=k.value;y=new EventSource(B.url(`/api/jobs/${encodeURIComponent(d.jobId)}/stream`)),I.value=!0,y.onmessage=e=>{let p;try{p=JSON.parse(e.data)}catch{return}if(p.done){A(),w();return}a&&(a=!1,w()),u.value.push(p)},y.onerror=()=>{A(),w()}}ae(()=>d.jobId,async()=>{u.value=[],t.value=null,C.value=!0;const a=await w();a&&!X(a.state)&&z()},{immediate:!0});const N=x(!1);async function Z(){N.value=!0;const a=await B.post(`/api/jobs/${encodeURIComponent(d.jobId)}/cancel`);if(N.value=!1,!a.ok){Q(a.status===409?"info":"error",G(a,"stop this job")),w();return}Q("ok",a.body.warning??"Stopped."),w()}return oe(A),(a,e)=>{var j,g,J,W,E,O,F,K;const p=le("RouterLink");return n(),l("div",null,[s("div",we,[s("div",null,[s("h1",null,[$(p,{to:"/jobs",class:"mute"},{default:S(()=>[...e[0]||(e[0]=[o("Jobs",-1)])]),_:1}),e[1]||(e[1]=s("span",{class:"mute"}," / ",-1)),o(r(t.value?c(D)(t.value.action):"…"),1)]),s("div",je,[t.value?(n(),l(m,{key:0},[s("code",null,r(t.value.stack),1),t.value.startedAt?(n(),l(m,{key:0},[o(" · started "+r(c(M)(t.value.startedAt)),1)],64)):k.value?(n(),l(m,{key:1},[o(" · not started yet")],64)):(n(),l(m,{key:2},[o(" · never started")],64)),t.value.startedAt&&t.value.endedAt?(n(),l(m,{key:3},[o(" · took "+r(c(ne)(t.value.startedAt,t.value.endedAt)),1)],64)):v("",!0)],64)):(n(),l(m,{key:1},[o(r(i.jobId),1)],64))])]),e[2]||(e[2]=s("span",{class:"grow"},null,-1)),t.value?(n(),L(de,{key:0,state:t.value.state},null,8,["state"])):v("",!0),t.value&&!U.value?(n(),L(pe,{key:1,variant:"danger",pending:N.value,confirm:k.value?"Drop it? It never ran.":"Stop it? Nothing is undone.",title:k.value?"It has not started, so there is nothing left behind to clean up.":"Kills the command in flight. Anything already created or destroyed stays that way.",onRun:Z},{default:S(()=>[o(r(k.value?"Drop":"Stop"),1)]),_:1},8,["pending","confirm","title"])):v("",!0)]),k.value?(n(),l("section",xe,[e[8]||(e[8]=s("b",null,"Waiting to start — nothing has run yet.",-1)),((j=_.value)==null?void 0:j.kind)==="stack"?(n(),l("p",_e,[$(p,{to:`/jobs/${encodeURIComponent(_.value.blocker.id)}`},{default:S(()=>[o(r(c(D)(_.value.blocker.action)),1)]),_:1},8,["to"]),e[3]||(e[3]=o(" is already running on ",-1)),s("code",null,r((g=t.value)==null?void 0:g.stack),1),e[4]||(e[4]=o(". One job runs per stack at a time — a teardown racing a deploy over the same database is the failure that rule exists to prevent — so this one starts when that one ends. ",-1))])):((J=_.value)==null?void 0:J.kind)==="slot"?(n(),l("p",$e,[e[5]||(e[5]=o(" Nothing is running on ",-1)),s("code",null,r((W=t.value)==null?void 0:W.stack),1),o(", so the wait is host-wide: "+r(_.value.running)+" jobs hold a slot across every stack, and the host runs at most ",1),e[6]||(e[6]=s("code",null,"PSTACK_MAX_JOBS",-1)),e[7]||(e[7]=o(" at once (4 unless this server was told otherwise). This one starts as soon as a slot frees. ",-1))])):(n(),l("p",Se," It starts once its own stack is free and the host has a spare job slot. ")),e[9]||(e[9]=s("p",{class:"mute"},"Dropping it now costs nothing — it has not touched anything yet.",-1))])):v("",!0),((E=t.value)==null?void 0:E.state)==="superseded"?(n(),l("section",Ie,[e[16]||(e[16]=s("b",null,"Superseded — this job never ran.",-1)),s("p",Ae,[R.value?(n(),l(m,{key:0},[e[10]||(e[10]=o(" A newer ",-1)),$(p,{to:`/jobs/${encodeURIComponent(R.value.id)}`},{default:S(()=>[o(r(c(D)(R.value.action).toLowerCase()),1)]),_:1},8,["to"]),e[11]||(e[11]=o(" for ",-1)),s("code",null,r(t.value.stack),1),e[12]||(e[12]=o(" replaced it while it was queued. ",-1))],64)):(n(),l(m,{key:1},[e[13]||(e[13]=o(" A newer job for ",-1)),s("code",null,r(t.value.stack),1),e[14]||(e[14]=o(" replaced it while it was queued. ",-1))],64)),e[15]||(e[15]=o(" The queue is one deep, so a burst of pushes runs the first deploy and then exactly one more carrying the newest spec. Nothing was created or destroyed here — there is no partial state to go looking for, and nothing to verify. ",-1))])])):v("",!0),((O=t.value)==null?void 0:O.state)==="cancelled"?(n(),l("section",Ce,[s("b",null,"Stopped by "+r(t.value.cancelledBy??"an operator")+" — nothing was undone.",1),e[17]||(e[17]=s("p",null,[o(" Whatever this job had already created or destroyed is still that way. Run "),s("b",null,"Verify"),o(" on the deployment to see what actually exists. ")],-1))])):v("",!0),f.value?(n(),L(ve,{key:3,text:f.value},null,8,["text"])):v("",!0),q.value.length?(n(),l("section",Re,[e[18]||(e[18]=s("strong",null,"Leaked:",-1)),o(" "+r(q.value.join(", "))+" ",1),e[19]||(e[19]=s("div",{class:"mute"},[o(" These axes' "),s("code",null,"assert_gone"),o(" failed, so the resources are still present. They will not be retried — tear them down by hand, then re-run "),s("code",null,"verify"),o(". ")],-1))])):v("",!0),(F=t.value)!=null&&F.error?(n(),l("section",Ne,[e[20]||(e[20]=s("strong",{class:"bad"},"The job crashed",-1)),s("pre",Te,r(t.value.error),1)])):v("",!0),s("section",De,[e[21]||(e[21]=s("div",{class:"phead"},[s("h2",{class:"phead-title"},"Log")],-1)),$(ue,{rows:Y.value,live:I.value,"empty-text":C.value?"Loading…":k.value?"Waiting to start — there is no output until it does.":"No output."},{actions:S(()=>[!I.value&&t.value&&!U.value?(n(),l("button",{key:0,class:"ghost sm",onClick:z}," Reconnect ")):v("",!0)]),_:1},8,["rows","live","empty-text"])]),(K=t.value)!=null&&K.outcome?(n(),l("section",Le,[s("div",Be,[e[24]||(e[24]=s("h2",{class:"phead-title"},"Steps",-1)),V.value?(n(),l("span",Ue,[o(r(V.value)+" unverifiable — no ",1),e[22]||(e[22]=s("code",null,"assert_gone",-1)),e[23]||(e[23]=o(", so nothing was checked ",-1))])):v("",!0)]),$(he,{steps:t.value.outcome.steps},null,8,["steps"])])):v("",!0)])}}});export{Oe as default};
2
+ //# sourceMappingURL=JobDetailView-DIEijrhl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"JobDetailView-B1sXXVJ5.js","sources":["../../src/composables/useSteps.ts","../../src/components/StepList.vue","../../src/views/JobDetailView.vue"],"sourcesContent":["/**\n * Step classification — the single most important logic in this app.\n *\n * A job's outcome has four states that MUST NOT blur into one another. The whole product is the\n * distinction between the middle two:\n *\n * ok passed. A `down` step is ALWAYS ok and may still carry a \"non-fatal:\" note —\n * teardown is best-effort by design, so the step really did pass.\n * unverifiable the axis defines no `assert_gone`, so `verify` had nothing to check. NOT a pass.\n * A green here would be exactly the false confidence this tool exists to remove.\n * leaked `assert_gone` FAILED — the resource survived teardown. Nothing else will clean\n * it up. This is the signal the whole tool exists for, and the CLI's exit code 2.\n * failed any other non-zero step.\n *\n * Order matters: `unverifiable` is matched on the message FIRST, exactly as the CLI's own report\n * does. `skipped` alone is not enough — a dry run also skips.\n */\n\nimport type { StepResult } from '../api/types';\n\nexport type StepState = 'ok' | 'unverifiable' | 'leaked' | 'failed';\n\nexport function stepState(s: StepResult): StepState {\n if (s.message?.startsWith('unverifiable')) return 'unverifiable';\n if (!s.ok) return s.phase === 'assert_gone' ? 'leaked' : 'failed';\n return 'ok';\n}\n\nexport function stepMark(s: StepResult): string {\n return { ok: '✓', unverifiable: '?', leaked: '!', failed: '✗' }[stepState(s)];\n}\n\nexport function stepText(s: StepResult): string {\n if (s.message) return s.message;\n if (s.skipped) return 'skipped';\n return stepState(s) === 'ok' ? 'ok' : `exit ${s.code}`;\n}\n\n/** Only a failed `assert_gone` is a leak. Every other non-zero step is a plain failure. */\nexport function leakedAxes(steps: StepResult[]): string[] {\n return steps.filter((s) => s.phase === 'assert_gone' && !s.ok).map((s) => s.axis);\n}\n\nexport function countUnverifiable(steps: StepResult[]): number {\n return steps.filter((s) => stepState(s) === 'unverifiable').length;\n}\n","<script setup lang=\"ts\">\n/**\n * A job's step results.\n *\n * The legend is part of the component because the four states only mean anything together:\n * `unverifiable` is not a pass, and `leaked` is not the same problem as `failed`.\n */\nimport type { StepResult } from '../api/types';\nimport { stepMark, stepState, stepText } from '../composables/useSteps';\n\ndefineProps<{ steps: StepResult[] }>();\n</script>\n\n<template>\n <div>\n <ul class=\"steps stagger\">\n <li\n v-for=\"(s, i) in steps\"\n :key=\"`${s.phase}-${s.axis}-${i}`\"\n class=\"step\"\n :style=\"{ '--i': i }\"\n >\n <span class=\"mark\" :class=\"`s-${stepState(s)}`\" aria-hidden=\"true\">{{ stepMark(s) }}</span>\n <span>\n <span class=\"who\">{{ s.axis }}</span>\n <span class=\"dim\" style=\"font-size: var(--t-sm)\"> · {{ s.phase }}</span>\n <span class=\"badge\" :class=\"stepState(s)\" style=\"margin-left: var(--s2)\">\n {{ stepState(s) }}\n </span>\n <div class=\"msg\" :class=\"`s-${stepState(s)}`\">{{ stepText(s) }}</div>\n </span>\n </li>\n </ul>\n\n <p class=\"hint\">\n <span class=\"s-ok\">✓ ok</span> ·\n <span class=\"s-failed\">✗ failed</span> ·\n <span class=\"s-leaked\">! leaked — survived teardown</span> ·\n <span class=\"s-unverifiable\">? unverifiable — nothing to check, not a pass</span>.\n A <code>down</code> step marked ok may still carry a <code>non-fatal:</code> note: teardown is\n best-effort by design, so aborting halfway would leave more behind than continuing.\n </p>\n </div>\n</template>\n","<script setup lang=\"ts\">\n/**\n * One job: its live log while it runs, then the step table that says what actually happened.\n *\n * The log streams over `EventSource`. The server replays the whole buffered history first and then\n * sends live events, so attaching late still shows the beginning — no polling, no gap to reconcile.\n * A final `{done:true,state}` ends the stream; we close the source then and fetch the job once more\n * to pick up `outcome`, which only exists after the job finishes.\n *\n * A QUEUED JOB HAS A STREAM TOO, and it is open and silent until the job dispatches. That is the\n * one case where \"no events yet\" is not a broken connection, so the page says what it is waiting\n * for instead of showing an empty log: the panel reads \"waiting to start\", and a banner above it\n * says WHY — behind its own stack, or behind the host's job cap. The first line to arrive IS the\n * dispatch, and nothing else would re-fetch, so it triggers one `load()`; without that the badge\n * would still read \"Queued\" while output scrolled past underneath it.\n */\nimport { computed, onBeforeUnmount, ref, watch } from 'vue';\nimport { api, problem } from '../api/client';\nimport type { Job, LogEvent } from '../api/types';\nimport { state } from '../composables/useControlPlane';\nimport { isTerminal, supersededBy, waitReason } from '../composables/useJobQueue';\nimport { leakedAxes, countUnverifiable } from '../composables/useSteps';\nimport { actionLabel, stamp, took } from '../composables/useFormat';\nimport LogViewer from '../components/LogViewer.vue';\nimport type { LogRow } from '../components/log-viewer-types';\nimport StepList from '../components/StepList.vue';\nimport StateBadge from '../components/StateBadge.vue';\nimport ActionButton from '../components/ActionButton.vue';\nimport ErrorNote from '../components/ErrorNote.vue';\nimport { toast } from '../composables/useToasts';\n\nconst props = defineProps<{ jobId: string }>();\n\nconst job = ref<Job | null>(null);\nconst lines = ref<LogEvent[]>([]);\nconst error = ref('');\nconst loading = ref(true);\nconst streaming = ref(false);\n\n/** Job events → viewer rows. The date repeats for hundreds of lines, so it appears once per DAY as\n * a separator and each row carries only the clock; the full stamp survives in the tooltip. */\nconst logRows = computed<LogRow[]>(() => {\n const out: LogRow[] = [];\n let lastDay = '';\n for (const l of lines.value) {\n const d = new Date(l.at);\n const day = d.toLocaleDateString('sv');\n if (day !== lastDay) {\n out.push({ key: `day-${day}-${l.seq}`, separator: true, text: day });\n lastDay = day;\n }\n out.push({\n key: l.seq,\n gutter: d.toTimeString().slice(0, 8),\n gutterTitle: stamp(l.at),\n text: l.message,\n tone: l.level,\n });\n }\n return out;\n});\n\nlet source: EventSource | null = null;\n\n/** Terminal is forever. NEVER `state !== 'running'` — that is true of a job that has not started. */\nconst terminal = computed(() => !!job.value && isTerminal(job.value.state));\nconst queued = computed(() => job.value?.state === 'queued');\n\n/**\n * Why this job is still waiting, and which job replaced it — both read the shell's polled job list,\n * which is loaded on every route. On a deep link before the first poll the list is empty and both\n * fall back to saying nothing rather than guessing.\n */\nconst wait = computed(() => (job.value ? waitReason(job.value, state.jobs) : null));\nconst replacement = computed(() => (job.value ? supersededBy(job.value, state.jobs) : null));\n\nconst leaks = computed(() => (job.value?.outcome ? leakedAxes(job.value.outcome.steps) : []));\nconst unverifiable = computed(() =>\n job.value?.outcome ? countUnverifiable(job.value.outcome.steps) : 0,\n);\n\n/** Returns the job it loaded, so callers need not re-read the ref — see the note at the watcher. */\nasync function load(): Promise<Job | null> {\n const r = await api.get<{ job: Job }>(`/api/jobs/${encodeURIComponent(props.jobId)}`);\n loading.value = false;\n if (!r.ok) {\n error.value = problem(r, 'load job');\n return null;\n }\n error.value = '';\n job.value = r.body.job;\n // The job carries its buffered log too. Seed from it so a finished job renders instantly without\n // opening a stream that would only replay and close.\n if (r.body.job.log?.length && lines.value.length === 0) lines.value = [...r.body.job.log];\n return r.body.job;\n}\n\nfunction closeStream(): void {\n source?.close();\n source = null;\n streaming.value = false;\n}\n\nfunction stream(): void {\n closeStream();\n /*\n * The stream REPLAYS the whole buffer before going live, and `load()` has already seeded `lines`\n * from the same buffer — so every line the job had produced before the page opened was rendered\n * twice, with the count to match. Clearing here is the honest fix: the replay is complete by\n * definition, so the seed is only ever the placeholder that keeps a finished job from flashing\n * empty.\n */\n lines.value = [];\n // A queued job's stream carries nothing until it dispatches, and the first line to arrive is that\n // dispatch. Re-read the job once when it does, or the header keeps saying \"Queued\".\n let awaitingDispatch = queued.value;\n source = new EventSource(api.url(`/api/jobs/${encodeURIComponent(props.jobId)}/stream`));\n streaming.value = true;\n\n source.onmessage = (ev) => {\n let payload: unknown;\n try {\n payload = JSON.parse(ev.data as string);\n } catch {\n return; // a frame we cannot parse is not worth tearing the stream down for\n }\n const done = payload as { done?: boolean };\n if (done.done) {\n closeStream();\n void load(); // `outcome` only exists once the job has ended\n return;\n }\n if (awaitingDispatch) {\n awaitingDispatch = false;\n void load(); // it started: pick up `running` and the `startedAt` it now has\n }\n lines.value.push(payload as LogEvent);\n };\n\n // An error here is usually the job having ended between the fetch and the connect, or the API\n // becoming unreachable. Either way stop rather than let the browser reconnect forever.\n source.onerror = () => {\n closeStream();\n void load();\n };\n}\n\n\nwatch(\n () => props.jobId,\n async () => {\n lines.value = [];\n job.value = null;\n loading.value = true;\n // Use what `load` returned rather than re-reading the ref: control-flow analysis still has\n // `job.value` narrowed to the `null` assigned above, because it cannot see that an awaited\n // call reassigned it.\n const loaded = await load();\n // Queued as well as running: the stream is what tells this page the job began.\n if (loaded && !isTerminal(loaded.state)) stream();\n },\n { immediate: true },\n);\n\nconst cancelling = ref(false);\n\n/**\n * Stop the job.\n *\n * The stream is deliberately left open: the server writes the cancellation into the SAME log the\n * page is already watching, so the operator sees the run stop where it stopped instead of watching a\n * page that has gone quiet. `load()` afterwards picks up the final state and `cancelledBy`.\n */\nasync function cancel(): Promise<void> {\n cancelling.value = true;\n const r = await api.post<{ warning?: string }>(\n `/api/jobs/${encodeURIComponent(props.jobId)}/cancel`,\n );\n cancelling.value = false;\n if (!r.ok) {\n // 409 means it finished on its own between the click and the request — not an error worth an\n // alarm, just a stale page.\n toast(r.status === 409 ? 'info' : 'error', problem(r, 'stop this job'));\n void load();\n return;\n }\n toast('ok', r.body.warning ?? 'Stopped.');\n void load();\n}\n\nonBeforeUnmount(closeStream);\n</script>\n\n<template>\n <div>\n <div class=\"page-head\">\n <div>\n <h1>\n <RouterLink to=\"/jobs\" class=\"mute\">Jobs</RouterLink>\n <span class=\"mute\"> / </span>{{ job ? actionLabel(job.action) : '…' }}\n </h1>\n <div class=\"sub\">\n <template v-if=\"job\">\n <code>{{ job.stack }}</code>\n <template v-if=\"job.startedAt\"> · started {{ stamp(job.startedAt) }}</template>\n <template v-else-if=\"queued\"> · not started yet</template>\n <template v-else> · never started</template>\n <template v-if=\"job.startedAt && job.endedAt\">\n · took {{ took(job.startedAt, job.endedAt) }}\n </template>\n </template>\n <template v-else>{{ jobId }}</template>\n </div>\n </div>\n <span class=\"grow\" />\n <StateBadge v-if=\"job\" :state=\"job.state\" />\n <!--\n Stopping is destructive in the way that matters here: it does not undo, so the confirmation\n says what will be left behind rather than asking \"are you sure\".\n -->\n <ActionButton\n v-if=\"job && !terminal\"\n variant=\"danger\"\n :pending=\"cancelling\"\n :confirm=\"queued ? 'Drop it? It never ran.' : 'Stop it? Nothing is undone.'\"\n :title=\"\n queued\n ? 'It has not started, so there is nothing left behind to clean up.'\n : 'Kills the command in flight. Anything already created or destroyed stays that way.'\n \"\n @run=\"cancel\"\n >\n {{ queued ? 'Drop' : 'Stop' }}\n </ActionButton>\n </div>\n\n <!--\n A queued job and a broken page look identical — an open connection, an empty log, nothing\n moving. So this says which it is, and WHY it waits, because the two waits have different\n fixes: behind its own stack, wait or stop the job ahead; behind the host's cap, raise\n PSTACK_MAX_JOBS or deploy fewer things at once. Neutral chrome on purpose — waiting is the\n system working, not an alarm.\n -->\n <section v-if=\"queued\" class=\"panel\">\n <b>Waiting to start — nothing has run yet.</b>\n <p v-if=\"wait?.kind === 'stack'\" class=\"mute\">\n <RouterLink :to=\"`/jobs/${encodeURIComponent(wait.blocker.id)}`\">{{\n actionLabel(wait.blocker.action)\n }}</RouterLink>\n is already running on <code>{{ job?.stack }}</code\n >. One job runs per stack at a time — a teardown racing a deploy over the same database is\n the failure that rule exists to prevent — so this one starts when that one ends.\n </p>\n <p v-else-if=\"wait?.kind === 'slot'\" class=\"mute\">\n Nothing is running on <code>{{ job?.stack }}</code\n >, so the wait is host-wide: {{ wait.running }} jobs hold a slot across every stack, and the\n host runs at most <code>PSTACK_MAX_JOBS</code> at once (4 unless this server was told\n otherwise). This one starts as soon as a slot frees.\n </p>\n <p v-else class=\"mute\">\n It starts once its own stack is free and the host has a spare job slot.\n </p>\n <p class=\"mute\">Dropping it now costs nothing — it has not touched anything yet.</p>\n </section>\n\n <!--\n The mirror image of the cancelled banner below, and the reason `superseded` is its own state:\n a stopped job leaves partial state to hunt for, a superseded one cannot, because it never ran.\n -->\n <section v-if=\"job?.state === 'superseded'\" class=\"panel\">\n <b>Superseded — this job never ran.</b>\n <p class=\"mute\">\n <template v-if=\"replacement\">\n A newer\n <RouterLink :to=\"`/jobs/${encodeURIComponent(replacement.id)}`\">{{\n actionLabel(replacement.action).toLowerCase()\n }}</RouterLink>\n for <code>{{ job.stack }}</code> replaced it while it was queued.\n </template>\n <template v-else>\n A newer job for <code>{{ job.stack }}</code> replaced it while it was queued.\n </template>\n The queue is one deep, so a burst of pushes runs the first deploy and then exactly one more\n carrying the newest spec. Nothing was created or destroyed here — there is no partial state\n to go looking for, and nothing to verify.\n </p>\n </section>\n\n <!--\n Not a badge's worth of information. A cancelled job is the one state where the record is\n complete and the INFRASTRUCTURE is not, and the next step is a person's to take.\n -->\n <section v-if=\"job?.state === 'cancelled'\" class=\"panel banner-panel warn\">\n <b>Stopped by {{ job.cancelledBy ?? 'an operator' }} — nothing was undone.</b>\n <p>\n Whatever this job had already created or destroyed is still that way. Run\n <b>Verify</b> on the deployment to see what actually exists.\n </p>\n </section>\n\n <ErrorNote v-if=\"error\" :text=\"error\" />\n\n <!--\n Leaked is called out above everything else. It means a resource survived teardown and nothing\n else is going to clean it up — the one outcome that needs a human.\n -->\n <section v-if=\"leaks.length\" class=\"panel leaked-banner\">\n <strong>Leaked:</strong> {{ leaks.join(', ') }}\n <div class=\"mute\">\n These axes' <code>assert_gone</code> failed, so the resources are still present. They will\n not be retried — tear them down by hand, then re-run <code>verify</code>.\n </div>\n </section>\n\n <section v-if=\"job?.error\" class=\"panel\">\n <strong class=\"bad\">The job crashed</strong>\n <pre class=\"pre\">{{ job.error }}</pre>\n </section>\n\n <section class=\"panel\">\n <div class=\"phead\">\n <h2 class=\"phead-title\">Log</h2>\n </div>\n\n <!-- Time-of-day gutter with a date separator when the day flips — the full 19-character\n timestamp per line is what used to wrap every entry onto five or six lines. -->\n <LogViewer\n :rows=\"logRows\"\n :live=\"streaming\"\n :empty-text=\"\n loading\n ? 'Loading…'\n : queued\n ? 'Waiting to start — there is no output until it does.'\n : 'No output.'\n \"\n >\n <template #actions>\n <button v-if=\"!streaming && job && !terminal\" class=\"ghost sm\" @click=\"stream\">\n Reconnect\n </button>\n </template>\n </LogViewer>\n </section>\n\n <section v-if=\"job?.outcome\" class=\"panel\">\n <div class=\"phead\">\n <h2 class=\"phead-title\">Steps</h2>\n <span v-if=\"unverifiable\" class=\"mute\">\n {{ unverifiable }} unverifiable — no <code>assert_gone</code>, so nothing was checked\n </span>\n </div>\n <StepList :steps=\"job.outcome.steps\" />\n </section>\n </div>\n</template>\n"],"names":["stepState","s","_a","stepMark","stepText","leakedAxes","steps","countUnverifiable","_createElementBlock","_createElementVNode","_hoisted_1","_openBlock","_Fragment","_renderList","__props","i","_normalizeClass","_unref","_toDisplayString","_hoisted_2","_hoisted_3","props","job","ref","lines","error","loading","streaming","logRows","computed","out","lastDay","l","d","day","stamp","source","terminal","isTerminal","queued","wait","waitReason","state","replacement","supersededBy","leaks","unverifiable","load","r","api","problem","closeStream","stream","awaitingDispatch","ev","payload","watch","loaded","cancelling","cancel","toast","onBeforeUnmount","_createVNode","_component_RouterLink","_cache","_createTextVNode","actionLabel","_createBlock","StateBadge","ActionButton","_hoisted_4","_b","_c","_hoisted_5","_d","_hoisted_6","_e","_hoisted_7","_hoisted_8","_f","_hoisted_9","ErrorNote","_hoisted_10","_g","_hoisted_11","_hoisted_12","_hoisted_13","LogViewer","_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,EAAA,IAAAA,EAAA,EAAA,EAAAvD,EAA4C,SAAA,CAApC,MAAM,KAAA,EAAM,kBAAe,EAAA,GACnCA,EAAsC,MAAtC4E,GAAsCnE,EAAlBI,EAAA,MAAI,KAAK,EAAA,CAAA,CAAA,aAG/Bb,EAwBU,UAxBV6E,GAwBU,eAvBR7E,EAEM,MAAA,CAFD,MAAM,SAAO,CAChBA,EAAgC,KAAA,CAA5B,MAAM,aAAA,EAAc,KAAG,CAAA,OAK7BqD,EAgBYyB,GAAA,CAfT,KAAM3D,EAAA,MACN,KAAMD,EAAA,MACN,aAAuBD,EAAA,iBAA+Ca,EAAA,4EAQ5D,UACT,IAES,EAFMZ,EAAA,OAAaL,EAAA,OAAG,CAAKe,EAAA,WAApC7B,EAES,SAAA,OAFqC,MAAM,WAAY,QAAO4C,CAAA,EAAQ,aAE/E,sDAKSoC,EAAAlE,EAAA,QAAA,MAAAkE,EAAK,SAApB7E,IAAAH,EAQU,UARViF,GAQU,CAPRhF,EAKM,MALNiF,GAKM,CAJJ1B,EAAA,EAAA,IAAAA,EAAA,EAAA,EAAAvD,EAAkC,KAAA,CAA9B,MAAM,aAAA,EAAc,QAAK,EAAA,GACjBqC,EAAA,OAAZnC,EAAA,EAAAH,EAEO,OAFPmF,GAEO,CADF1B,EAAA/C,EAAA4B,EAAA,KAAY,EAAG,sBAAmB,CAAA,EAAAkB,EAAA,EAAA,IAAAA,EAAA,EAAA,EAAAvD,EAAwB,YAAlB,cAAW,EAAA,mBAAO,4BAC/D,EAAA,EAAA,eAEFqD,EAAuC8B,GAAA,CAA5B,MAAOtE,EAAA,MAAI,QAAQ,KAAA"}
1
+ {"version":3,"file":"JobDetailView-DIEijrhl.js","sources":["../../src/composables/useSteps.ts","../../src/components/StepList.vue","../../src/views/JobDetailView.vue"],"sourcesContent":["/**\n * Step classification — the single most important logic in this app.\n *\n * A job's outcome has four states that MUST NOT blur into one another. The whole product is the\n * distinction between the middle two:\n *\n * ok passed. A `down` step is ALWAYS ok and may still carry a \"non-fatal:\" note —\n * teardown is best-effort by design, so the step really did pass.\n * unverifiable the axis defines no `assert_gone`, so `verify` had nothing to check. NOT a pass.\n * A green here would be exactly the false confidence this tool exists to remove.\n * leaked `assert_gone` FAILED — the resource survived teardown. Nothing else will clean\n * it up. This is the signal the whole tool exists for, and the CLI's exit code 2.\n * failed any other non-zero step.\n *\n * Order matters: `unverifiable` is matched on the message FIRST, exactly as the CLI's own report\n * does. `skipped` alone is not enough — a dry run also skips.\n */\n\nimport type { StepResult } from '../api/types';\n\nexport type StepState = 'ok' | 'unverifiable' | 'leaked' | 'failed';\n\nexport function stepState(s: StepResult): StepState {\n if (s.message?.startsWith('unverifiable')) return 'unverifiable';\n if (!s.ok) return s.phase === 'assert_gone' ? 'leaked' : 'failed';\n return 'ok';\n}\n\nexport function stepMark(s: StepResult): string {\n return { ok: '✓', unverifiable: '?', leaked: '!', failed: '✗' }[stepState(s)];\n}\n\nexport function stepText(s: StepResult): string {\n if (s.message) return s.message;\n if (s.skipped) return 'skipped';\n return stepState(s) === 'ok' ? 'ok' : `exit ${s.code}`;\n}\n\n/** Only a failed `assert_gone` is a leak. Every other non-zero step is a plain failure. */\nexport function leakedAxes(steps: StepResult[]): string[] {\n return steps.filter((s) => s.phase === 'assert_gone' && !s.ok).map((s) => s.axis);\n}\n\nexport function countUnverifiable(steps: StepResult[]): number {\n return steps.filter((s) => stepState(s) === 'unverifiable').length;\n}\n","<script setup lang=\"ts\">\n/**\n * A job's step results.\n *\n * The legend is part of the component because the four states only mean anything together:\n * `unverifiable` is not a pass, and `leaked` is not the same problem as `failed`.\n */\nimport type { StepResult } from '../api/types';\nimport { stepMark, stepState, stepText } from '../composables/useSteps';\n\ndefineProps<{ steps: StepResult[] }>();\n</script>\n\n<template>\n <div>\n <ul class=\"steps stagger\">\n <li\n v-for=\"(s, i) in steps\"\n :key=\"`${s.phase}-${s.axis}-${i}`\"\n class=\"step\"\n :style=\"{ '--i': i }\"\n >\n <span class=\"mark\" :class=\"`s-${stepState(s)}`\" aria-hidden=\"true\">{{ stepMark(s) }}</span>\n <span>\n <span class=\"who\">{{ s.axis }}</span>\n <span class=\"dim\" style=\"font-size: var(--t-sm)\"> · {{ s.phase }}</span>\n <span class=\"badge\" :class=\"stepState(s)\" style=\"margin-left: var(--s2)\">\n {{ stepState(s) }}\n </span>\n <div class=\"msg\" :class=\"`s-${stepState(s)}`\">{{ stepText(s) }}</div>\n </span>\n </li>\n </ul>\n\n <p class=\"hint\">\n <span class=\"s-ok\">✓ ok</span> ·\n <span class=\"s-failed\">✗ failed</span> ·\n <span class=\"s-leaked\">! leaked — survived teardown</span> ·\n <span class=\"s-unverifiable\">? unverifiable — nothing to check, not a pass</span>.\n A <code>down</code> step marked ok may still carry a <code>non-fatal:</code> note: teardown is\n best-effort by design, so aborting halfway would leave more behind than continuing.\n </p>\n </div>\n</template>\n","<script setup lang=\"ts\">\n/**\n * One job: its live log while it runs, then the step table that says what actually happened.\n *\n * The log streams over `EventSource`. The server replays the whole buffered history first and then\n * sends live events, so attaching late still shows the beginning — no polling, no gap to reconcile.\n * A final `{done:true,state}` ends the stream; we close the source then and fetch the job once more\n * to pick up `outcome`, which only exists after the job finishes.\n *\n * A QUEUED JOB HAS A STREAM TOO, and it is open and silent until the job dispatches. That is the\n * one case where \"no events yet\" is not a broken connection, so the page says what it is waiting\n * for instead of showing an empty log: the panel reads \"waiting to start\", and a banner above it\n * says WHY — behind its own stack, or behind the host's job cap. The first line to arrive IS the\n * dispatch, and nothing else would re-fetch, so it triggers one `load()`; without that the badge\n * would still read \"Queued\" while output scrolled past underneath it.\n */\nimport { computed, onBeforeUnmount, ref, watch } from 'vue';\nimport { api, problem } from '../api/client';\nimport type { Job, LogEvent } from '../api/types';\nimport { state } from '../composables/useControlPlane';\nimport { isTerminal, supersededBy, waitReason } from '../composables/useJobQueue';\nimport { leakedAxes, countUnverifiable } from '../composables/useSteps';\nimport { actionLabel, stamp, took } from '../composables/useFormat';\nimport LogViewer from '../components/LogViewer.vue';\nimport type { LogRow } from '../components/log-viewer-types';\nimport StepList from '../components/StepList.vue';\nimport StateBadge from '../components/StateBadge.vue';\nimport ActionButton from '../components/ActionButton.vue';\nimport ErrorNote from '../components/ErrorNote.vue';\nimport { toast } from '../composables/useToasts';\n\nconst props = defineProps<{ jobId: string }>();\n\nconst job = ref<Job | null>(null);\nconst lines = ref<LogEvent[]>([]);\nconst error = ref('');\nconst loading = ref(true);\nconst streaming = ref(false);\n\n/** Job events → viewer rows. The date repeats for hundreds of lines, so it appears once per DAY as\n * a separator and each row carries only the clock; the full stamp survives in the tooltip. */\nconst logRows = computed<LogRow[]>(() => {\n const out: LogRow[] = [];\n let lastDay = '';\n for (const l of lines.value) {\n const d = new Date(l.at);\n const day = d.toLocaleDateString('sv');\n if (day !== lastDay) {\n out.push({ key: `day-${day}-${l.seq}`, separator: true, text: day });\n lastDay = day;\n }\n out.push({\n key: l.seq,\n gutter: d.toTimeString().slice(0, 8),\n gutterTitle: stamp(l.at),\n text: l.message,\n tone: l.level,\n });\n }\n return out;\n});\n\nlet source: EventSource | null = null;\n\n/** Terminal is forever. NEVER `state !== 'running'` — that is true of a job that has not started. */\nconst terminal = computed(() => !!job.value && isTerminal(job.value.state));\nconst queued = computed(() => job.value?.state === 'queued');\n\n/**\n * Why this job is still waiting, and which job replaced it — both read the shell's polled job list,\n * which is loaded on every route. On a deep link before the first poll the list is empty and both\n * fall back to saying nothing rather than guessing.\n */\nconst wait = computed(() => (job.value ? waitReason(job.value, state.jobs) : null));\nconst replacement = computed(() => (job.value ? supersededBy(job.value, state.jobs) : null));\n\nconst leaks = computed(() => (job.value?.outcome ? leakedAxes(job.value.outcome.steps) : []));\nconst unverifiable = computed(() =>\n job.value?.outcome ? countUnverifiable(job.value.outcome.steps) : 0,\n);\n\n/** Returns the job it loaded, so callers need not re-read the ref — see the note at the watcher. */\nasync function load(): Promise<Job | null> {\n const r = await api.get<{ job: Job }>(`/api/jobs/${encodeURIComponent(props.jobId)}`);\n loading.value = false;\n if (!r.ok) {\n error.value = problem(r, 'load job');\n return null;\n }\n error.value = '';\n job.value = r.body.job;\n // The job carries its buffered log too. Seed from it so a finished job renders instantly without\n // opening a stream that would only replay and close.\n if (r.body.job.log?.length && lines.value.length === 0) lines.value = [...r.body.job.log];\n return r.body.job;\n}\n\nfunction closeStream(): void {\n source?.close();\n source = null;\n streaming.value = false;\n}\n\nfunction stream(): void {\n closeStream();\n /*\n * The stream REPLAYS the whole buffer before going live, and `load()` has already seeded `lines`\n * from the same buffer — so every line the job had produced before the page opened was rendered\n * twice, with the count to match. Clearing here is the honest fix: the replay is complete by\n * definition, so the seed is only ever the placeholder that keeps a finished job from flashing\n * empty.\n */\n lines.value = [];\n // A queued job's stream carries nothing until it dispatches, and the first line to arrive is that\n // dispatch. Re-read the job once when it does, or the header keeps saying \"Queued\".\n let awaitingDispatch = queued.value;\n source = new EventSource(api.url(`/api/jobs/${encodeURIComponent(props.jobId)}/stream`));\n streaming.value = true;\n\n source.onmessage = (ev) => {\n let payload: unknown;\n try {\n payload = JSON.parse(ev.data as string);\n } catch {\n return; // a frame we cannot parse is not worth tearing the stream down for\n }\n const done = payload as { done?: boolean };\n if (done.done) {\n closeStream();\n void load(); // `outcome` only exists once the job has ended\n return;\n }\n if (awaitingDispatch) {\n awaitingDispatch = false;\n void load(); // it started: pick up `running` and the `startedAt` it now has\n }\n lines.value.push(payload as LogEvent);\n };\n\n // An error here is usually the job having ended between the fetch and the connect, or the API\n // becoming unreachable. Either way stop rather than let the browser reconnect forever.\n source.onerror = () => {\n closeStream();\n void load();\n };\n}\n\n\nwatch(\n () => props.jobId,\n async () => {\n lines.value = [];\n job.value = null;\n loading.value = true;\n // Use what `load` returned rather than re-reading the ref: control-flow analysis still has\n // `job.value` narrowed to the `null` assigned above, because it cannot see that an awaited\n // call reassigned it.\n const loaded = await load();\n // Queued as well as running: the stream is what tells this page the job began.\n if (loaded && !isTerminal(loaded.state)) stream();\n },\n { immediate: true },\n);\n\nconst cancelling = ref(false);\n\n/**\n * Stop the job.\n *\n * The stream is deliberately left open: the server writes the cancellation into the SAME log the\n * page is already watching, so the operator sees the run stop where it stopped instead of watching a\n * page that has gone quiet. `load()` afterwards picks up the final state and `cancelledBy`.\n */\nasync function cancel(): Promise<void> {\n cancelling.value = true;\n const r = await api.post<{ warning?: string }>(\n `/api/jobs/${encodeURIComponent(props.jobId)}/cancel`,\n );\n cancelling.value = false;\n if (!r.ok) {\n // 409 means it finished on its own between the click and the request — not an error worth an\n // alarm, just a stale page.\n toast(r.status === 409 ? 'info' : 'error', problem(r, 'stop this job'));\n void load();\n return;\n }\n toast('ok', r.body.warning ?? 'Stopped.');\n void load();\n}\n\nonBeforeUnmount(closeStream);\n</script>\n\n<template>\n <div>\n <div class=\"page-head\">\n <div>\n <h1>\n <RouterLink to=\"/jobs\" class=\"mute\">Jobs</RouterLink>\n <span class=\"mute\"> / </span>{{ job ? actionLabel(job.action) : '…' }}\n </h1>\n <div class=\"sub\">\n <template v-if=\"job\">\n <code>{{ job.stack }}</code>\n <template v-if=\"job.startedAt\"> · started {{ stamp(job.startedAt) }}</template>\n <template v-else-if=\"queued\"> · not started yet</template>\n <template v-else> · never started</template>\n <template v-if=\"job.startedAt && job.endedAt\">\n · took {{ took(job.startedAt, job.endedAt) }}\n </template>\n </template>\n <template v-else>{{ jobId }}</template>\n </div>\n </div>\n <span class=\"grow\" />\n <StateBadge v-if=\"job\" :state=\"job.state\" />\n <!--\n Stopping is destructive in the way that matters here: it does not undo, so the confirmation\n says what will be left behind rather than asking \"are you sure\".\n -->\n <ActionButton\n v-if=\"job && !terminal\"\n variant=\"danger\"\n :pending=\"cancelling\"\n :confirm=\"queued ? 'Drop it? It never ran.' : 'Stop it? Nothing is undone.'\"\n :title=\"\n queued\n ? 'It has not started, so there is nothing left behind to clean up.'\n : 'Kills the command in flight. Anything already created or destroyed stays that way.'\n \"\n @run=\"cancel\"\n >\n {{ queued ? 'Drop' : 'Stop' }}\n </ActionButton>\n </div>\n\n <!--\n A queued job and a broken page look identical — an open connection, an empty log, nothing\n moving. So this says which it is, and WHY it waits, because the two waits have different\n fixes: behind its own stack, wait or stop the job ahead; behind the host's cap, raise\n PSTACK_MAX_JOBS or deploy fewer things at once. Neutral chrome on purpose — waiting is the\n system working, not an alarm.\n -->\n <section v-if=\"queued\" class=\"panel\">\n <b>Waiting to start — nothing has run yet.</b>\n <p v-if=\"wait?.kind === 'stack'\" class=\"mute\">\n <RouterLink :to=\"`/jobs/${encodeURIComponent(wait.blocker.id)}`\">{{\n actionLabel(wait.blocker.action)\n }}</RouterLink>\n is already running on <code>{{ job?.stack }}</code\n >. One job runs per stack at a time — a teardown racing a deploy over the same database is\n the failure that rule exists to prevent — so this one starts when that one ends.\n </p>\n <p v-else-if=\"wait?.kind === 'slot'\" class=\"mute\">\n Nothing is running on <code>{{ job?.stack }}</code\n >, so the wait is host-wide: {{ wait.running }} jobs hold a slot across every stack, and the\n host runs at most <code>PSTACK_MAX_JOBS</code> at once (4 unless this server was told\n otherwise). This one starts as soon as a slot frees.\n </p>\n <p v-else class=\"mute\">\n It starts once its own stack is free and the host has a spare job slot.\n </p>\n <p class=\"mute\">Dropping it now costs nothing — it has not touched anything yet.</p>\n </section>\n\n <!--\n The mirror image of the cancelled banner below, and the reason `superseded` is its own state:\n a stopped job leaves partial state to hunt for, a superseded one cannot, because it never ran.\n -->\n <section v-if=\"job?.state === 'superseded'\" class=\"panel\">\n <b>Superseded — this job never ran.</b>\n <p class=\"mute\">\n <template v-if=\"replacement\">\n A newer\n <RouterLink :to=\"`/jobs/${encodeURIComponent(replacement.id)}`\">{{\n actionLabel(replacement.action).toLowerCase()\n }}</RouterLink>\n for <code>{{ job.stack }}</code> replaced it while it was queued.\n </template>\n <template v-else>\n A newer job for <code>{{ job.stack }}</code> replaced it while it was queued.\n </template>\n The queue is one deep, so a burst of pushes runs the first deploy and then exactly one more\n carrying the newest spec. Nothing was created or destroyed here — there is no partial state\n to go looking for, and nothing to verify.\n </p>\n </section>\n\n <!--\n Not a badge's worth of information. A cancelled job is the one state where the record is\n complete and the INFRASTRUCTURE is not, and the next step is a person's to take.\n -->\n <section v-if=\"job?.state === 'cancelled'\" class=\"panel banner-panel warn\">\n <b>Stopped by {{ job.cancelledBy ?? 'an operator' }} — nothing was undone.</b>\n <p>\n Whatever this job had already created or destroyed is still that way. Run\n <b>Verify</b> on the deployment to see what actually exists.\n </p>\n </section>\n\n <ErrorNote v-if=\"error\" :text=\"error\" />\n\n <!--\n Leaked is called out above everything else. It means a resource survived teardown and nothing\n else is going to clean it up — the one outcome that needs a human.\n -->\n <section v-if=\"leaks.length\" class=\"panel leaked-banner\">\n <strong>Leaked:</strong> {{ leaks.join(', ') }}\n <div class=\"mute\">\n These axes' <code>assert_gone</code> failed, so the resources are still present. They will\n not be retried — tear them down by hand, then re-run <code>verify</code>.\n </div>\n </section>\n\n <section v-if=\"job?.error\" class=\"panel\">\n <strong class=\"bad\">The job crashed</strong>\n <pre class=\"pre\">{{ job.error }}</pre>\n </section>\n\n <section class=\"panel\">\n <div class=\"phead\">\n <h2 class=\"phead-title\">Log</h2>\n </div>\n\n <!-- Time-of-day gutter with a date separator when the day flips — the full 19-character\n timestamp per line is what used to wrap every entry onto five or six lines. -->\n <LogViewer\n :rows=\"logRows\"\n :live=\"streaming\"\n :empty-text=\"\n loading\n ? 'Loading…'\n : queued\n ? 'Waiting to start — there is no output until it does.'\n : 'No output.'\n \"\n >\n <template #actions>\n <button v-if=\"!streaming && job && !terminal\" class=\"ghost sm\" @click=\"stream\">\n Reconnect\n </button>\n </template>\n </LogViewer>\n </section>\n\n <section v-if=\"job?.outcome\" class=\"panel\">\n <div class=\"phead\">\n <h2 class=\"phead-title\">Steps</h2>\n <span v-if=\"unverifiable\" class=\"mute\">\n {{ unverifiable }} unverifiable — no <code>assert_gone</code>, so nothing was checked\n </span>\n </div>\n <StepList :steps=\"job.outcome.steps\" />\n </section>\n </div>\n</template>\n"],"names":["stepState","s","_a","stepMark","stepText","leakedAxes","steps","countUnverifiable","_createElementBlock","_createElementVNode","_hoisted_1","_openBlock","_Fragment","_renderList","__props","i","_normalizeClass","_unref","_toDisplayString","_hoisted_2","_hoisted_3","props","job","ref","lines","error","loading","streaming","logRows","computed","out","lastDay","l","d","day","stamp","source","terminal","isTerminal","queued","wait","waitReason","state","replacement","supersededBy","leaks","unverifiable","load","r","api","problem","closeStream","stream","awaitingDispatch","ev","payload","watch","loaded","cancelling","cancel","toast","onBeforeUnmount","_createVNode","_component_RouterLink","_cache","_createTextVNode","actionLabel","_createBlock","StateBadge","ActionButton","_hoisted_4","_b","_c","_hoisted_5","_d","_hoisted_6","_e","_hoisted_7","_hoisted_8","_f","_hoisted_9","ErrorNote","_hoisted_10","_g","_hoisted_11","_hoisted_12","_hoisted_13","LogViewer","_h","_hoisted_14","_hoisted_15","_hoisted_16","StepList"],"mappings":"mnBAsBO,SAASA,EAAUC,EAA0B,OAClD,OAAIC,EAAAD,EAAE,UAAF,MAAAC,EAAW,WAAW,gBAAwB,eAC7CD,EAAE,GACA,KADWA,EAAE,QAAU,cAAgB,SAAW,QAE3D,CAEO,SAASE,GAASF,EAAuB,CAC9C,MAAO,CAAE,GAAI,IAAK,aAAc,IAAK,OAAQ,IAAK,OAAQ,GAAA,EAAMD,EAAUC,CAAC,CAAC,CAC9E,CAEO,SAASG,GAASH,EAAuB,CAC9C,OAAIA,EAAE,QAAgBA,EAAE,QACpBA,EAAE,QAAgB,UACfD,EAAUC,CAAC,IAAM,KAAO,KAAO,QAAQA,EAAE,IAAI,EACtD,CAGO,SAASI,GAAWC,EAA+B,CACxD,OAAOA,EAAM,OAAQL,GAAMA,EAAE,QAAU,eAAiB,CAACA,EAAE,EAAE,EAAE,IAAKA,GAAMA,EAAE,IAAI,CAClF,CAEO,SAASM,GAAkBD,EAA6B,CAC7D,OAAOA,EAAM,OAAQL,GAAMD,EAAUC,CAAC,IAAM,cAAc,EAAE,MAC9D,0KC/BEO,EA4BM,MAAA,KAAA,CA3BJC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