@samyx/preview-stacks-ui 0.22.0 → 0.23.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 (82) hide show
  1. package/dist/assets/{ActionButton.vue_vue_type_script_setup_true_lang-D06apM-6.js → ActionButton.vue_vue_type_script_setup_true_lang-CeingrPV.js} +2 -2
  2. package/dist/assets/{ActionButton.vue_vue_type_script_setup_true_lang-D06apM-6.js.map → ActionButton.vue_vue_type_script_setup_true_lang-CeingrPV.js.map} +1 -1
  3. package/dist/assets/{AxesTab-CCB3wdSX.js → AxesTab-vIQWJMZm.js} +2 -2
  4. package/dist/assets/{AxesTab-CCB3wdSX.js.map → AxesTab-vIQWJMZm.js.map} +1 -1
  5. package/dist/assets/{ConfigTab-Cyqzeq3C.js → ConfigTab-BeAIDTnl.js} +2 -2
  6. package/dist/assets/{ConfigTab-Cyqzeq3C.js.map → ConfigTab-BeAIDTnl.js.map} +1 -1
  7. package/dist/assets/{ConflictNote.vue_vue_type_script_setup_true_lang-CtwJE2eJ.js → ConflictNote.vue_vue_type_script_setup_true_lang-fprimIle.js} +2 -2
  8. package/dist/assets/{ConflictNote.vue_vue_type_script_setup_true_lang-CtwJE2eJ.js.map → ConflictNote.vue_vue_type_script_setup_true_lang-fprimIle.js.map} +1 -1
  9. package/dist/assets/{DangerTab-Cdr9luUy.js → DangerTab-CcYJAftw.js} +2 -2
  10. package/dist/assets/{DangerTab-Cdr9luUy.js.map → DangerTab-CcYJAftw.js.map} +1 -1
  11. package/dist/assets/{DashboardView-S4eiNX8X.js → DashboardView-Cvh03qbj.js} +2 -2
  12. package/dist/assets/{DashboardView-S4eiNX8X.js.map → DashboardView-Cvh03qbj.js.map} +1 -1
  13. package/dist/assets/{DeploymentDetailView-CD4RVr06.js → DeploymentDetailView-BzEQBKhd.js} +2 -2
  14. package/dist/assets/{DeploymentDetailView-CD4RVr06.js.map → DeploymentDetailView-BzEQBKhd.js.map} +1 -1
  15. package/dist/assets/{DeploymentsView-DIX7IA8g.js → DeploymentsView-f3RgqUkQ.js} +2 -2
  16. package/dist/assets/{DeploymentsView-DIX7IA8g.js.map → DeploymentsView-f3RgqUkQ.js.map} +1 -1
  17. package/dist/assets/{EquivalentCommand-NHzDrg5d.js → EquivalentCommand-D0Bfgz63.js} +3 -3
  18. package/dist/assets/{EquivalentCommand-NHzDrg5d.js.map → EquivalentCommand-D0Bfgz63.js.map} +1 -1
  19. package/dist/assets/{ErrorNote.vue_vue_type_script_setup_true_lang-BFuRxw1l.js → ErrorNote.vue_vue_type_script_setup_true_lang-DT5SbSbT.js} +2 -2
  20. package/dist/assets/{ErrorNote.vue_vue_type_script_setup_true_lang-BFuRxw1l.js.map → ErrorNote.vue_vue_type_script_setup_true_lang-DT5SbSbT.js.map} +1 -1
  21. package/dist/assets/{HelpModal.vue_vue_type_script_setup_true_lang-DwwXY7EX.js → HelpModal.vue_vue_type_script_setup_true_lang-2ev6wLk8.js} +2 -2
  22. package/dist/assets/{HelpModal.vue_vue_type_script_setup_true_lang-DwwXY7EX.js.map → HelpModal.vue_vue_type_script_setup_true_lang-2ev6wLk8.js.map} +1 -1
  23. package/dist/assets/JobDetailView-B5OFSqGO.js +2 -0
  24. package/dist/assets/{JobDetailView-BsCnnkPz.js.map → JobDetailView-B5OFSqGO.js.map} +1 -1
  25. package/dist/assets/{JobsView-Bd_XHRkd.js → JobsView-B6RvX8WS.js} +2 -2
  26. package/dist/assets/{JobsView-Bd_XHRkd.js.map → JobsView-B6RvX8WS.js.map} +1 -1
  27. package/dist/assets/{LogViewer.vue_vue_type_script_setup_true_lang-7Ggcxz1R.js → LogViewer.vue_vue_type_script_setup_true_lang-B5K26k3c.js} +3 -3
  28. package/dist/assets/{LogViewer.vue_vue_type_script_setup_true_lang-7Ggcxz1R.js.map → LogViewer.vue_vue_type_script_setup_true_lang-B5K26k3c.js.map} +1 -1
  29. package/dist/assets/{LoginView-Bj7uMFvv.js → LoginView-NzylzAuv.js} +2 -2
  30. package/dist/assets/{LoginView-Bj7uMFvv.js.map → LoginView-NzylzAuv.js.map} +1 -1
  31. package/dist/assets/{LogsTab-DRp76oC1.js → LogsTab-DxhpYJY3.js} +3 -3
  32. package/dist/assets/{LogsTab-DRp76oC1.js.map → LogsTab-DxhpYJY3.js.map} +1 -1
  33. package/dist/assets/{NotFoundView-D-A8YFJw.js → NotFoundView-Cg_jPEQi.js} +2 -2
  34. package/dist/assets/{NotFoundView-D-A8YFJw.js.map → NotFoundView-Cg_jPEQi.js.map} +1 -1
  35. package/dist/assets/{NotifiersView-CChDRHSy.js → NotifiersView-B53fERhd.js} +2 -2
  36. package/dist/assets/{NotifiersView-CChDRHSy.js.map → NotifiersView-B53fERhd.js.map} +1 -1
  37. package/dist/assets/{OverviewTab-jE_kOZI7.js → OverviewTab-Cy7_mGTt.js} +2 -2
  38. package/dist/assets/{OverviewTab-jE_kOZI7.js.map → OverviewTab-Cy7_mGTt.js.map} +1 -1
  39. package/dist/assets/{RegistriesView-D3Nh0dbq.js → RegistriesView-dc-04uci.js} +2 -2
  40. package/dist/assets/{RegistriesView-D3Nh0dbq.js.map → RegistriesView-dc-04uci.js.map} +1 -1
  41. package/dist/assets/{RelativeTime.vue_vue_type_script_setup_true_lang-mVrRpkV_.js → RelativeTime.vue_vue_type_script_setup_true_lang-D7n5E9jw.js} +2 -2
  42. package/dist/assets/{RelativeTime.vue_vue_type_script_setup_true_lang-mVrRpkV_.js.map → RelativeTime.vue_vue_type_script_setup_true_lang-D7n5E9jw.js.map} +1 -1
  43. package/dist/assets/{RequiresTab-BgGIZ1Tn.js → RequiresTab-DDWsrZig.js} +2 -2
  44. package/dist/assets/{RequiresTab-BgGIZ1Tn.js.map → RequiresTab-DDWsrZig.js.map} +1 -1
  45. package/dist/assets/{RoutingView-D2StZawf.js → RoutingView-BheJjs2g.js} +3 -3
  46. package/dist/assets/{RoutingView-D2StZawf.js.map → RoutingView-BheJjs2g.js.map} +1 -1
  47. package/dist/assets/RuntimeTab-D4sJaoqc.js +2 -0
  48. package/dist/assets/RuntimeTab-D4sJaoqc.js.map +1 -0
  49. package/dist/assets/{SelectMenu.vue_vue_type_script_setup_true_lang-qGkx2MwW.js → SelectMenu.vue_vue_type_script_setup_true_lang-CSQS6ben.js} +2 -2
  50. package/dist/assets/{SelectMenu.vue_vue_type_script_setup_true_lang-qGkx2MwW.js.map → SelectMenu.vue_vue_type_script_setup_true_lang-CSQS6ben.js.map} +1 -1
  51. package/dist/assets/SettingsView-CQIMBeQh.js +2 -0
  52. package/dist/assets/{SettingsView-Cu1Zkufg.js.map → SettingsView-CQIMBeQh.js.map} +1 -1
  53. package/dist/assets/{SkeletonList.vue_vue_type_script_setup_true_lang-BYHXRCNR.js → SkeletonList.vue_vue_type_script_setup_true_lang-DwoeliUC.js} +2 -2
  54. package/dist/assets/{SkeletonList.vue_vue_type_script_setup_true_lang-BYHXRCNR.js.map → SkeletonList.vue_vue_type_script_setup_true_lang-DwoeliUC.js.map} +1 -1
  55. package/dist/assets/{SpecDetailView-DIi21wo1.js → SpecDetailView-DSlpITFw.js} +2 -2
  56. package/dist/assets/{SpecDetailView-DIi21wo1.js.map → SpecDetailView-DSlpITFw.js.map} +1 -1
  57. package/dist/assets/{SpecsView-B49LI4Ut.js → SpecsView-Cq_Ny0u3.js} +2 -2
  58. package/dist/assets/{SpecsView-B49LI4Ut.js.map → SpecsView-Cq_Ny0u3.js.map} +1 -1
  59. package/dist/assets/{StateBadge.vue_vue_type_script_setup_true_lang-DANvveJ6.js → StateBadge.vue_vue_type_script_setup_true_lang-BsDpZsUH.js} +2 -2
  60. package/dist/assets/{StateBadge.vue_vue_type_script_setup_true_lang-DANvveJ6.js.map → StateBadge.vue_vue_type_script_setup_true_lang-BsDpZsUH.js.map} +1 -1
  61. package/dist/assets/{SubmitView-ZYGApCXE.js → SubmitView-DqOEabaL.js} +5 -5
  62. package/dist/assets/{SubmitView-ZYGApCXE.js.map → SubmitView-DqOEabaL.js.map} +1 -1
  63. package/dist/assets/{Teleport-d5PoAxFM.js → Teleport-BXE_6A8N.js} +3 -3
  64. package/dist/assets/{Teleport-d5PoAxFM.js.map → Teleport-BXE_6A8N.js.map} +1 -1
  65. package/dist/assets/{TerminalTab-DAZpn3jK.js → TerminalTab-lb8FY01Y.js} +2 -2
  66. package/dist/assets/{TerminalTab-DAZpn3jK.js.map → TerminalTab-lb8FY01Y.js.map} +1 -1
  67. package/dist/assets/{UsersView-BfQKf8Sf.js → UsersView-mOC1UteJ.js} +2 -2
  68. package/dist/assets/{UsersView-BfQKf8Sf.js.map → UsersView-mOC1UteJ.js.map} +1 -1
  69. package/dist/assets/{VarEditor.vue_vue_type_script_setup_true_lang-D--Rd-Mv.js → VarEditor.vue_vue_type_script_setup_true_lang-ChzmZbEl.js} +2 -2
  70. package/dist/assets/{VarEditor.vue_vue_type_script_setup_true_lang-D--Rd-Mv.js.map → VarEditor.vue_vue_type_script_setup_true_lang-ChzmZbEl.js.map} +1 -1
  71. package/dist/assets/{VariablesView-Bej9ZZmS.js → VariablesView-NBIFfXQ5.js} +2 -2
  72. package/dist/assets/{VariablesView-Bej9ZZmS.js.map → VariablesView-NBIFfXQ5.js.map} +1 -1
  73. package/dist/assets/{index-DVCVnKbf.js → index-wjzRhuU3.js} +4 -4
  74. package/dist/assets/{index-DVCVnKbf.js.map → index-wjzRhuU3.js.map} +1 -1
  75. package/dist/assets/{useDeployment-752fTjLE.js → useDeployment-B7kMYmcq.js} +2 -2
  76. package/dist/assets/{useDeployment-752fTjLE.js.map → useDeployment-B7kMYmcq.js.map} +1 -1
  77. package/dist/index.html +1 -1
  78. package/package.json +1 -1
  79. package/dist/assets/JobDetailView-BsCnnkPz.js +0 -2
  80. package/dist/assets/RuntimeTab-B0D_MxFQ.js +0 -2
  81. package/dist/assets/RuntimeTab-B0D_MxFQ.js.map +0 -1
  82. package/dist/assets/SettingsView-Cu1Zkufg.js +0 -2
@@ -1 +1 @@
1
- {"version":3,"file":"HelpModal.vue_vue_type_script_setup_true_lang-DwwXY7EX.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","../../src/components/HelpModal.vue"],"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","<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":["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","_createBlock","_unref","DialogRoot","_createVNode","DialogTrigger","_createElementVNode","DialogPortal","DialogOverlay","DialogContent","_hoisted_1","DialogTitle","DialogClose","_hoisted_2","_renderSlot"],"mappings":"qSAKA,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,CAAC,aAAa,EACrB,MAAMC,EAAS,CAAE,KAAMC,CAAM,EAAI,CAChC,MAAMC,EAAQF,EAERG,EAAOC,EAAUF,EAAO,OADjBD,EAC+B,CAC3C,aAAcC,EAAM,YACpB,QAASA,EAAM,OAAS,MAC3B,CAAG,EACKG,EAAiBC,EAAG,EACpBC,EAAiBD,EAAG,EACpB,CAAE,MAAAE,CAAK,EAAKC,EAAOP,CAAK,EAC9B,OAAAN,EAAyB,CACxB,KAAAO,EACA,MAAAK,EACA,UAAW,IAAM,CAChBL,EAAK,MAAQ,EACd,EACA,aAAeO,GAAU,CACxBP,EAAK,MAAQO,CACd,EACA,aAAc,IAAM,CACnBP,EAAK,MAAQ,CAACA,EAAK,KACpB,EACA,UAAW,GACX,QAAS,GACT,cAAe,GACf,eAAAE,EACA,eAAAE,CACH,CAAG,EACM,CAACI,EA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,WAAW,aAAW,OAAA,aAAQ,IAAK,CAAA,GAAAtE,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAA,GAAL,QAAK,EAAA,CAAA,aAExDgE,EAEM,MAFNO,GAEM,CADJC,EAAQzE,EAAA,OAAA,SAAA,CAAA","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10]}
1
+ {"version":3,"file":"HelpModal.vue_vue_type_script_setup_true_lang-2ev6wLk8.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","../../src/components/HelpModal.vue"],"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","<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":["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","_createBlock","_unref","DialogRoot","_createVNode","DialogTrigger","_createElementVNode","DialogPortal","DialogOverlay","DialogContent","_hoisted_1","DialogTitle","DialogClose","_hoisted_2","_renderSlot"],"mappings":"qSAKA,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,CAAC,aAAa,EACrB,MAAMC,EAAS,CAAE,KAAMC,CAAM,EAAI,CAChC,MAAMC,EAAQF,EAERG,EAAOC,EAAUF,EAAO,OADjBD,EAC+B,CAC3C,aAAcC,EAAM,YACpB,QAASA,EAAM,OAAS,MAC3B,CAAG,EACKG,EAAiBC,EAAG,EACpBC,EAAiBD,EAAG,EACpB,CAAE,MAAAE,CAAK,EAAKC,EAAOP,CAAK,EAC9B,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B,MAAM,mBAAkB,EACvCJ,EAQgBF,EAAAO,EAAA,EAAA,CARD,MAAM,cAAY,WAC/B,IAGM,CAHNH,EAGM,MAHNI,GAGM,CAFJN,EAAyDF,EAAAS,EAAA,EAAA,CAA5C,MAAM,cAAY,WAAC,IAAW,KAARjF,EAAA,KAAK,EAAA,CAAA,CAAA,SACxC0E,EAAoEF,EAAAU,CAAA,EAAA,CAAvD,MAAM,WAAW,aAAW,OAAA,aAAQ,IAAK,CAAA,GAAAtE,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAA,GAAL,QAAK,EAAA,CAAA,aAExDgE,EAEM,MAFNO,GAEM,CADJC,EAAQzE,EAAA,OAAA,SAAA,CAAA","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10]}
@@ -0,0 +1,2 @@
1
+ import{d as q,c as d,a as t,F as j,s as W,a1 as H,o as l,D as M,E as S,u as v,t as u,H as O,K as G,e as C,w as I,f as i,g as c,x as L,r as b,C as R,j as P,A,B as J,J as z}from"./index-wjzRhuU3.js";import{a as Q,c as E,t as X}from"./useFormat-DVXTfIS-.js";import{_ as Y}from"./LogViewer.vue_vue_type_script_setup_true_lang-B5K26k3c.js";import{_ as Z}from"./StateBadge.vue_vue_type_script_setup_true_lang-BsDpZsUH.js";import{_ as ee}from"./ActionButton.vue_vue_type_script_setup_true_lang-CeingrPV.js";import{_ as te}from"./ErrorNote.vue_vue_type_script_setup_true_lang-DT5SbSbT.js";function y(n){var r;return(r=n.message)!=null&&r.startsWith("unverifiable")?"unverifiable":n.ok?"ok":n.phase==="assert_gone"?"leaked":"failed"}function se(n){return{ok:"✓",unverifiable:"?",leaked:"!",failed:"✗"}[y(n)]}function ae(n){return n.message?n.message:n.skipped?"skipped":y(n)==="ok"?"ok":`exit ${n.code}`}function ne(n){return n.filter(r=>r.phase==="assert_gone"&&!r.ok).map(r=>r.axis)}function oe(n){return n.filter(r=>y(r)==="unverifiable").length}const le={class:"steps stagger"},re={class:"who"},ie={class:"dim",style:{"font-size":"var(--t-sm)"}},ue=q({__name:"StepList",props:{steps:{}},setup(n){return(r,s)=>(l(),d("div",null,[t("ul",le,[(l(!0),d(j,null,W(n.steps,(o,m)=>(l(),d("li",{key:`${o.phase}-${o.axis}-${m}`,class:"step",style:M({"--i":m})},[t("span",{class:S(["mark",`s-${v(y)(o)}`]),"aria-hidden":"true"},u(v(se)(o)),3),t("span",null,[t("span",re,u(o.axis),1),t("span",ie," · "+u(o.phase),1),t("span",{class:S(["badge",v(y)(o)]),style:{"margin-left":"var(--s2)"}},u(v(y)(o)),3),t("div",{class:S(["msg",`s-${v(y)(o)}`])},u(v(ae)(o)),3)])],4))),128))]),s[0]||(s[0]=H('<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))]))}}),de={class:"page-head"},ce={class:"sub"},pe={key:0,class:"panel banner-panel warn"},ve={key:2,class:"panel leaked-banner"},me={key:3,class:"panel"},fe={class:"pre"},ge={class:"panel"},ye={key:4,class:"panel"},be={class:"phead"},ke={key:0,class:"mute"},Se=q({__name:"JobDetailView",props:{jobId:{}},setup(n){const r=n,s=b(null),o=b([]),m=b(""),x=b(!0),_=b(!1),F=R(()=>{const a=[];let e="";for(const p of o.value){const h=new Date(p.at),g=h.toLocaleDateString("sv");g!==e&&(a.push({key:`day-${g}-${p.seq}`,separator:!0,text:g}),e=g),a.push({key:p.seq,gutter:h.toTimeString().slice(0,8),gutterTitle:E(p.at),text:p.message,tone:p.level})}return a});let f=null;const N=R(()=>{var a;return(a=s.value)!=null&&a.outcome?ne(s.value.outcome.steps):[]}),B=R(()=>{var a;return(a=s.value)!=null&&a.outcome?oe(s.value.outcome.steps):0});async function k(){var e;const a=await A.get(`/api/jobs/${encodeURIComponent(r.jobId)}`);return x.value=!1,a.ok?(m.value="",s.value=a.body.job,(e=a.body.job.log)!=null&&e.length&&o.value.length===0&&(o.value=[...a.body.job.log]),a.body.job):(m.value=J(a,"load job"),null)}function w(){f==null||f.close(),f=null,_.value=!1}function T(){w(),o.value=[],f=new EventSource(A.url(`/api/jobs/${encodeURIComponent(r.jobId)}/stream`)),_.value=!0,f.onmessage=a=>{let e;try{e=JSON.parse(a.data)}catch{return}if(e.done){w(),k();return}o.value.push(e)},f.onerror=()=>{w(),k()}}O(()=>r.jobId,async()=>{o.value=[],s.value=null,x.value=!0;const a=await k();a&&a.state==="running"&&T()},{immediate:!0});const $=b(!1);async function K(){$.value=!0;const a=await A.post(`/api/jobs/${encodeURIComponent(r.jobId)}/cancel`);if($.value=!1,!a.ok){z(a.status===409?"info":"error",J(a,"stop this job")),k();return}z("ok",a.body.warning??"Stopped."),k()}return G(w),(a,e)=>{var h,g,V,D;const p=P("RouterLink");return l(),d("div",null,[t("div",de,[t("div",null,[t("h1",null,[C(p,{to:"/jobs",class:"mute"},{default:I(()=>[...e[0]||(e[0]=[i("Jobs",-1)])]),_:1}),e[1]||(e[1]=t("span",{class:"mute"}," / ",-1)),i(u(s.value?v(Q)(s.value.action):"…"),1)]),t("div",ce,[s.value?(l(),d(j,{key:0},[t("code",null,u(s.value.stack),1),i(" · started "+u(v(E)(s.value.startedAt))+" ",1),s.value.endedAt?(l(),d(j,{key:0},[i(" · took "+u(v(X)(s.value.startedAt,s.value.endedAt)),1)],64)):c("",!0)],64)):(l(),d(j,{key:1},[i(u(n.jobId),1)],64))])]),e[3]||(e[3]=t("span",{class:"grow"},null,-1)),s.value?(l(),L(Z,{key:0,state:s.value.state},null,8,["state"])):c("",!0),((h=s.value)==null?void 0:h.state)==="running"?(l(),L(ee,{key:1,variant:"danger",pending:$.value,confirm:"Stop it? Nothing is undone.",title:"Kills the command in flight. Anything already created or destroyed stays that way.",onRun:K},{default:I(()=>[...e[2]||(e[2]=[i(" Stop ",-1)])]),_:1},8,["pending"])):c("",!0)]),((g=s.value)==null?void 0:g.state)==="cancelled"?(l(),d("section",pe,[t("b",null,"Stopped by "+u(s.value.cancelledBy??"an operator")+" — nothing was undone.",1),e[4]||(e[4]=t("p",null,[i(" Whatever this job had already created or destroyed is still that way. Run "),t("b",null,"Verify"),i(" on the deployment to see what actually exists. ")],-1))])):c("",!0),m.value?(l(),L(te,{key:1,text:m.value},null,8,["text"])):c("",!0),N.value.length?(l(),d("section",ve,[e[5]||(e[5]=t("strong",null,"Leaked:",-1)),i(" "+u(N.value.join(", "))+" ",1),e[6]||(e[6]=t("div",{class:"mute"},[i(" These axes' "),t("code",null,"assert_gone"),i(" failed, so the resources are still present. They will not be retried — tear them down by hand, then re-run "),t("code",null,"verify"),i(". ")],-1))])):c("",!0),(V=s.value)!=null&&V.error?(l(),d("section",me,[e[7]||(e[7]=t("strong",{class:"bad"},"The job crashed",-1)),t("pre",fe,u(s.value.error),1)])):c("",!0),t("section",ge,[e[8]||(e[8]=t("div",{class:"phead"},[t("h2",{class:"phead-title"},"Log")],-1)),C(Y,{rows:F.value,live:_.value,"empty-text":x.value?"Loading…":"No output."},{actions:I(()=>{var U;return[!_.value&&((U=s.value)==null?void 0:U.state)==="running"?(l(),d("button",{key:0,class:"ghost sm",onClick:T}," Reconnect ")):c("",!0)]}),_:1},8,["rows","live","empty-text"])]),(D=s.value)!=null&&D.outcome?(l(),d("section",ye,[t("div",be,[e[11]||(e[11]=t("h2",{class:"phead-title"},"Steps",-1)),B.value?(l(),d("span",ke,[i(u(B.value)+" unverifiable — no ",1),e[9]||(e[9]=t("code",null,"assert_gone",-1)),e[10]||(e[10]=i(", so nothing was checked ",-1))])):c("",!0)]),C(ue,{steps:s.value.outcome.steps},null,8,["steps"])])):c("",!0)])}}});export{Se as default};
2
+ //# sourceMappingURL=JobDetailView-B5OFSqGO.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"JobDetailView-BsCnnkPz.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 */\nimport { computed, onBeforeUnmount, ref, watch } from 'vue';\nimport { api, problem } from '../api/client';\nimport type { Job, LogEvent } from '../api/types';\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\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 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 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 if (loaded && loaded.state === 'running') 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> · started {{ stamp(job.startedAt) }}\n <template v-if=\"job.endedAt\"> · took {{ took(job.startedAt, job.endedAt) }}</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?.state === 'running'\"\n variant=\"danger\"\n :pending=\"cancelling\"\n confirm=\"Stop it? Nothing is undone.\"\n title=\"Kills the command in flight. Anything already created or destroyed stays that way.\"\n @run=\"cancel\"\n >\n Stop\n </ActionButton>\n </div>\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=\"loading ? 'Loading…' : 'No output.'\"\n >\n <template #actions>\n <button v-if=\"!streaming && job?.state === 'running'\" 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","leaks","unverifiable","load","r","api","problem","closeStream","stream","ev","payload","watch","loaded","cancelling","cancel","toast","onBeforeUnmount","_createVNode","_component_RouterLink","_cache","_createTextVNode","actionLabel","_createBlock","StateBadge","ActionButton","_b","ErrorNote","_hoisted_4","_c","_hoisted_5","_hoisted_6","_hoisted_7","LogViewer","_d","_hoisted_8","_hoisted_9","_hoisted_10","StepList"],"mappings":"0kBAsBO,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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C,EAAA,QAAA,MAAA+C,EAAK,SAApB1D,IAAAH,EAQU,UARV8D,GAQU,CAPR7D,EAKM,MALN8D,GAKM,CAJJhB,EAAA,EAAA,IAAAA,EAAA,EAAA,EAAA9C,EAAkC,KAAA,CAA9B,MAAM,aAAA,EAAc,QAAK,EAAA,GACjB6B,EAAA,OAAZ3B,EAAA,EAAAH,EAEO,OAFPgE,GAEO,CADFhB,EAAAtC,EAAAoB,EAAA,KAAY,EAAG,sBAAmB,CAAA,EAAAiB,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAA9C,EAAwB,YAAlB,cAAW,EAAA,mBAAO,4BAC/D,EAAA,EAAA,eAEF4C,EAAuCoB,GAAA,CAA5B,MAAOnD,EAAA,MAAI,QAAQ,KAAA"}
1
+ {"version":3,"file":"JobDetailView-B5OFSqGO.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 */\nimport { computed, onBeforeUnmount, ref, watch } from 'vue';\nimport { api, problem } from '../api/client';\nimport type { Job, LogEvent } from '../api/types';\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\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 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 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 if (loaded && loaded.state === 'running') 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> · started {{ stamp(job.startedAt) }}\n <template v-if=\"job.endedAt\"> · took {{ took(job.startedAt, job.endedAt) }}</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?.state === 'running'\"\n variant=\"danger\"\n :pending=\"cancelling\"\n confirm=\"Stop it? Nothing is undone.\"\n title=\"Kills the command in flight. Anything already created or destroyed stays that way.\"\n @run=\"cancel\"\n >\n Stop\n </ActionButton>\n </div>\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=\"loading ? 'Loading…' : 'No output.'\"\n >\n <template #actions>\n <button v-if=\"!streaming && job?.state === 'running'\" 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","leaks","unverifiable","load","r","api","problem","closeStream","stream","ev","payload","watch","loaded","cancelling","cancel","toast","onBeforeUnmount","_createVNode","_component_RouterLink","_cache","_createTextVNode","actionLabel","_createBlock","StateBadge","ActionButton","_b","ErrorNote","_hoisted_4","_c","_hoisted_5","_hoisted_6","_hois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A,IAAAA,EAAA,CAAA,EAAA9C,EAA4C,SAAA,CAApC,MAAM,KAAA,EAAM,kBAAe,EAAA,GACnCA,EAAsC,MAAtCyD,GAAsChD,EAAlBI,EAAA,MAAI,KAAK,EAAA,CAAA,CAAA,aAG/Bb,EAkBU,UAlBV0D,GAkBU,aAjBR1D,EAEM,MAAA,CAFD,MAAM,SAAO,CAChBA,EAAgC,KAAA,CAA5B,MAAM,aAAA,EAAc,KAAG,CAAA,OAK7B4C,EAUYe,EAAA,CATT,KAAMxC,EAAA,MACN,KAAMD,EAAA,MACN,aAAYD,EAAA,MAAO,WAAA,YAAA,GAET,UACT,IAAA,OAES,QAFMC,EAAA,SAAazB,EAAAoB,EAAA,QAAA,YAAApB,EAAK,SAAK,eAAtCM,EAES,SAAA,OAF6C,MAAM,WAAY,QAAOoC,CAAA,EAAQ,aAEvF,uDAKSyB,EAAA/C,EAAA,QAAA,MAAA+C,EAAK,SAApB1D,IAAAH,EAQU,UARV8D,GAQU,CAPR7D,EAKM,MALN8D,GAKM,CAJJhB,EAAA,EAAA,IAAAA,EAAA,EAAA,EAAA9C,EAAkC,KAAA,CAA9B,MAAM,aAAA,EAAc,QAAK,EAAA,GACjB6B,EAAA,OAAZ3B,EAAA,EAAAH,EAEO,OAFPgE,GAEO,CADFhB,EAAAtC,EAAAoB,EAAA,KAAY,EAAG,sBAAmB,CAAA,EAAAiB,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAA9C,EAAwB,YAAlB,cAAW,EAAA,mBAAO,4BAC/D,EAAA,EAAA,eAEF4C,EAAuCoB,GAAA,CAA5B,MAAOnD,EAAA,MAAI,QAAQ,KAAA"}
@@ -1,2 +1,2 @@
1
- import{d as y,c as o,a as t,f as r,e as l,w as m,_ as w,i as g,v as x,g as k,u as n,y as i,t as d,x as C,F as _,s as V,r as f,C as L,o as a,D as S,j as $}from"./index-DVCVnKbf.js";import{a as A,t as N}from"./useFormat-DVXTfIS-.js";import{_ as B}from"./StateBadge.vue_vue_type_script_setup_true_lang-DANvveJ6.js";import{_ as R}from"./SkeletonList.vue_vue_type_script_setup_true_lang-BYHXRCNR.js";import{_ as F}from"./RelativeTime.vue_vue_type_script_setup_true_lang-mVrRpkV_.js";import{_ as T}from"./SelectMenu.vue_vue_type_script_setup_true_lang-qGkx2MwW.js";import"./Teleport-d5PoAxFM.js";const U={class:"page-head"},D={class:"sub"},E={class:"panel"},M={class:"phead"},j={class:"searchbox"},q={key:0},I={key:0,class:"s-failed"},J={key:2,class:"cards"},z={class:"stagger"},O={"data-label":"state"},G={"data-label":"action"},H={class:"name","data-label":"stack"},K={class:"dim nowrap","data-label":"started"},P={class:"dim nowrap","data-label":"took"},Q={class:"dim","data-label":"steps"},W={key:0},X={colspan:"6",class:"mute"},nt=y({__name:"JobsView",setup(Y){const c=f(""),u=f("all"),p=L(()=>{const h=c.value.trim().toLowerCase();return i.jobs.filter(e=>u.value!=="all"&&e.state!==u.value?!1:h?e.stack.toLowerCase().includes(h)||e.action.includes(h):!0)});return(h,e)=>{const b=$("RouterLink");return a(),o("div",null,[t("div",U,[t("div",null,[e[4]||(e[4]=t("h1",null,"Jobs",-1)),t("div",D,[e[3]||(e[3]=r(" Most recent first, capped at the last 50 ",-1)),l(w,{label:"why old jobs disappear"},{default:m(()=>[...e[2]||(e[2]=[r(" The history is held in memory and a server restart clears it. A job record is the transcript of an attempt, not the truth about what exists — that truth lives in the containers themselves and in each axis's own probe. ",-1)])]),_:1})])])]),t("section",E,[t("div",M,[t("div",j,[e[5]||(e[5]=t("svg",{viewBox:"0 0 24 24",width:"15",height:"15","aria-hidden":"true"},[t("circle",{cx:"11",cy:"11",r:"7",fill:"none",stroke:"currentColor","stroke-width":"2"}),t("path",{d:"M16.5 16.5 21 21",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1)),g(t("input",{id:"jq","onUpdate:modelValue":e[0]||(e[0]=s=>c.value=s),"data-search":"",type:"search","aria-label":"Search jobs",placeholder:"Search by stack or action",spellcheck:"false"},null,512),[[x,c.value]]),c.value?k("",!0):(a(),o("kbd",q,"/"))]),l(T,{id:"js",modelValue:u.value,"onUpdate:modelValue":e[1]||(e[1]=s=>u.value=s),label:"Filter by state",options:[{value:"all",label:"All states"},{value:"running",label:"Running"},{value:"ok",label:"Ok"},{value:"leaked",label:"Leaked"},{value:"failed",label:"Failed"}]},null,8,["modelValue"])]),n(i).jobsError?(a(),o("p",I,d(n(i).jobsError),1)):n(i).jobsLoaded?(a(),o("table",J,[e[6]||(e[6]=t("thead",null,[t("tr",null,[t("th",null,"State"),t("th",null,"Action"),t("th",null,"Stack"),t("th",null,"Started"),t("th",null,"Took"),t("th",null,"Steps")])],-1)),t("tbody",z,[(a(!0),o(_,null,V(p.value,(s,v)=>(a(),o("tr",{key:s.id,style:S({"--i":v})},[t("td",O,[l(b,{to:`/jobs/${encodeURIComponent(s.id)}`},{default:m(()=>[l(B,{state:s.state},null,8,["state"])]),_:2},1032,["to"])]),t("td",G,d(n(A)(s.action)),1),t("td",H,[l(b,{to:`/jobs/${encodeURIComponent(s.id)}`},{default:m(()=>[r(d(s.stack),1)]),_:2},1032,["to"])]),t("td",K,[l(F,{at:s.startedAt},null,8,["at"])]),t("td",P,d(n(N)(s.startedAt,s.endedAt)),1),t("td",Q,d(s.outcome?s.outcome.steps.length:"—"),1)],4))),128)),p.value.length?k("",!0):(a(),o("tr",W,[t("td",X,[n(i).jobs.length?(a(),o(_,{key:0},[r("Nothing matches this filter.")],64)):(a(),o(_,{key:1},[r("No jobs recorded.")],64))])]))])])):(a(),C(R,{key:1,rows:5}))])])}}});export{nt as default};
2
- //# sourceMappingURL=JobsView-Bd_XHRkd.js.map
1
+ import{d as y,c as o,a as t,f as r,e as l,w as m,_ as w,i as g,v as x,g as k,u as n,y as i,t as d,x as C,F as _,s as V,r as f,C as L,o as a,D as S,j as $}from"./index-wjzRhuU3.js";import{a as A,t as N}from"./useFormat-DVXTfIS-.js";import{_ as B}from"./StateBadge.vue_vue_type_script_setup_true_lang-BsDpZsUH.js";import{_ as R}from"./SkeletonList.vue_vue_type_script_setup_true_lang-DwoeliUC.js";import{_ as F}from"./RelativeTime.vue_vue_type_script_setup_true_lang-D7n5E9jw.js";import{_ as T}from"./SelectMenu.vue_vue_type_script_setup_true_lang-CSQS6ben.js";import"./Teleport-BXE_6A8N.js";const U={class:"page-head"},D={class:"sub"},E={class:"panel"},M={class:"phead"},j={class:"searchbox"},q={key:0},I={key:0,class:"s-failed"},J={key:2,class:"cards"},z={class:"stagger"},O={"data-label":"state"},G={"data-label":"action"},H={class:"name","data-label":"stack"},K={class:"dim nowrap","data-label":"started"},P={class:"dim nowrap","data-label":"took"},Q={class:"dim","data-label":"steps"},W={key:0},X={colspan:"6",class:"mute"},nt=y({__name:"JobsView",setup(Y){const c=f(""),u=f("all"),p=L(()=>{const h=c.value.trim().toLowerCase();return i.jobs.filter(e=>u.value!=="all"&&e.state!==u.value?!1:h?e.stack.toLowerCase().includes(h)||e.action.includes(h):!0)});return(h,e)=>{const b=$("RouterLink");return a(),o("div",null,[t("div",U,[t("div",null,[e[4]||(e[4]=t("h1",null,"Jobs",-1)),t("div",D,[e[3]||(e[3]=r(" Most recent first, capped at the last 50 ",-1)),l(w,{label:"why old jobs disappear"},{default:m(()=>[...e[2]||(e[2]=[r(" The history is held in memory and a server restart clears it. A job record is the transcript of an attempt, not the truth about what exists — that truth lives in the containers themselves and in each axis's own probe. ",-1)])]),_:1})])])]),t("section",E,[t("div",M,[t("div",j,[e[5]||(e[5]=t("svg",{viewBox:"0 0 24 24",width:"15",height:"15","aria-hidden":"true"},[t("circle",{cx:"11",cy:"11",r:"7",fill:"none",stroke:"currentColor","stroke-width":"2"}),t("path",{d:"M16.5 16.5 21 21",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1)),g(t("input",{id:"jq","onUpdate:modelValue":e[0]||(e[0]=s=>c.value=s),"data-search":"",type:"search","aria-label":"Search jobs",placeholder:"Search by stack or action",spellcheck:"false"},null,512),[[x,c.value]]),c.value?k("",!0):(a(),o("kbd",q,"/"))]),l(T,{id:"js",modelValue:u.value,"onUpdate:modelValue":e[1]||(e[1]=s=>u.value=s),label:"Filter by state",options:[{value:"all",label:"All states"},{value:"running",label:"Running"},{value:"ok",label:"Ok"},{value:"leaked",label:"Leaked"},{value:"failed",label:"Failed"}]},null,8,["modelValue"])]),n(i).jobsError?(a(),o("p",I,d(n(i).jobsError),1)):n(i).jobsLoaded?(a(),o("table",J,[e[6]||(e[6]=t("thead",null,[t("tr",null,[t("th",null,"State"),t("th",null,"Action"),t("th",null,"Stack"),t("th",null,"Started"),t("th",null,"Took"),t("th",null,"Steps")])],-1)),t("tbody",z,[(a(!0),o(_,null,V(p.value,(s,v)=>(a(),o("tr",{key:s.id,style:S({"--i":v})},[t("td",O,[l(b,{to:`/jobs/${encodeURIComponent(s.id)}`},{default:m(()=>[l(B,{state:s.state},null,8,["state"])]),_:2},1032,["to"])]),t("td",G,d(n(A)(s.action)),1),t("td",H,[l(b,{to:`/jobs/${encodeURIComponent(s.id)}`},{default:m(()=>[r(d(s.stack),1)]),_:2},1032,["to"])]),t("td",K,[l(F,{at:s.startedAt},null,8,["at"])]),t("td",P,d(n(N)(s.startedAt,s.endedAt)),1),t("td",Q,d(s.outcome?s.outcome.steps.length:"—"),1)],4))),128)),p.value.length?k("",!0):(a(),o("tr",W,[t("td",X,[n(i).jobs.length?(a(),o(_,{key:0},[r("Nothing matches this filter.")],64)):(a(),o(_,{key:1},[r("No jobs recorded.")],64))])]))])])):(a(),C(R,{key:1,rows:5}))])])}}});export{nt as default};
2
+ //# sourceMappingURL=JobsView-B6RvX8WS.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"JobsView-Bd_XHRkd.js","sources":["../../src/views/JobsView.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/** Job history. Polled by the shell already, so this view only filters what is in memory. */\nimport { computed, ref } from 'vue';\nimport { state } from '../composables/useControlPlane';\nimport { actionLabel, took } from '../composables/useFormat';\nimport StateBadge from '../components/StateBadge.vue';\nimport SkeletonList from '../components/SkeletonList.vue';\nimport RelativeTime from '../components/RelativeTime.vue';\nimport SelectMenu from '../components/SelectMenu.vue';\nimport InfoHint from '../components/InfoHint.vue';\nimport type { JobState } from '../api/types';\n\nconst q = ref('');\nconst only = ref<'all' | JobState>('all');\n\nconst rows = computed(() => {\n const needle = q.value.trim().toLowerCase();\n return state.jobs.filter((j) => {\n if (only.value !== 'all' && j.state !== only.value) return false;\n if (!needle) return true;\n return j.stack.toLowerCase().includes(needle) || j.action.includes(needle);\n });\n});\n</script>\n\n<template>\n <div>\n <div class=\"page-head\">\n <div>\n <h1>Jobs</h1>\n <div class=\"sub\">\n Most recent first, capped at the last 50\n <InfoHint label=\"why old jobs disappear\">\n The history is held in memory and a server restart clears it. A job record is the\n transcript of an attempt, not the truth about what exists — that truth lives in the\n containers themselves and in each axis's own probe.\n </InfoHint>\n </div>\n </div>\n </div>\n\n <section class=\"panel\">\n <!-- Same one-row toolbar as Deployments — this page had kept the old stacked-label layout,\n and two list pages with two different toolbars reads as two different products. -->\n <div class=\"phead\">\n <div class=\"searchbox\">\n <svg viewBox=\"0 0 24 24\" width=\"15\" height=\"15\" aria-hidden=\"true\">\n <circle cx=\"11\" cy=\"11\" r=\"7\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" />\n <path d=\"M16.5 16.5 21 21\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" />\n </svg>\n <input\n id=\"jq\"\n v-model=\"q\"\n data-search\n type=\"search\"\n aria-label=\"Search jobs\"\n placeholder=\"Search by stack or action\"\n spellcheck=\"false\"\n />\n <kbd v-if=\"!q\">/</kbd>\n </div>\n <SelectMenu\n id=\"js\"\n v-model=\"only\"\n label=\"Filter by state\"\n :options=\"[\n { value: 'all', label: 'All states' },\n { value: 'running', label: 'Running' },\n { value: 'ok', label: 'Ok' },\n { value: 'leaked', label: 'Leaked' },\n { value: 'failed', label: 'Failed' },\n ]\"\n />\n </div>\n\n <p v-if=\"state.jobsError\" class=\"s-failed\">{{ state.jobsError }}</p>\n <SkeletonList v-else-if=\"!state.jobsLoaded\" :rows=\"5\" />\n\n <table v-else class=\"cards\">\n <thead>\n <tr>\n <th>State</th>\n <th>Action</th>\n <th>Stack</th>\n <th>Started</th>\n <th>Took</th>\n <th>Steps</th>\n </tr>\n </thead>\n <tbody class=\"stagger\">\n <tr v-for=\"(j, i) in rows\" :key=\"j.id\" :style=\"{ '--i': i }\">\n <td data-label=\"state\">\n <RouterLink :to=\"`/jobs/${encodeURIComponent(j.id)}`\">\n <StateBadge :state=\"j.state\" />\n </RouterLink>\n </td>\n <td data-label=\"action\">{{ actionLabel(j.action) }}</td>\n <td class=\"name\" data-label=\"stack\">\n <RouterLink :to=\"`/jobs/${encodeURIComponent(j.id)}`\">{{ j.stack }}</RouterLink>\n </td>\n <td class=\"dim nowrap\" data-label=\"started\"><RelativeTime :at=\"j.startedAt\" /></td>\n <td class=\"dim nowrap\" data-label=\"took\">{{ took(j.startedAt, j.endedAt) }}</td>\n <td class=\"dim\" data-label=\"steps\">{{ j.outcome ? j.outcome.steps.length : '—' }}</td>\n </tr>\n <tr v-if=\"!rows.length\">\n <td colspan=\"6\" class=\"mute\">\n <template v-if=\"state.jobs.length\">Nothing matches this filter.</template>\n <template v-else>No jobs recorded.</template>\n </td>\n </tr>\n </tbody>\n </table>\n </section>\n </div>\n</template>\n"],"names":["q","ref","only","rows","computed","needle","state","j","_createElementBlock","_createElementVNode","_hoisted_1","_cache","_hoisted_2","_createVNode","InfoHint","_hoisted_3","_hoisted_4","_hoisted_5","$event","_openBlock","SelectMenu","_unref","_hoisted_7","_toDisplayString","_hoisted_8","_hoisted_9","_Fragment","_renderList","i","_hoisted_10","_component_RouterLink","StateBadge","_hoisted_11","_hoisted_12","_createTextVNode","_hoisted_13","RelativeTime","_hoisted_14","took","_hoisted_15","_hoisted_16","_hoisted_17","_createBlock","SkeletonList"],"mappings":"oiCAYA,MAAMA,EAAIC,EAAI,EAAE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EAAsF,KAAtF8B,EAAsFhB,EAAhDhB,EAAE,QAAUA,EAAE,QAAQ,MAAM,OAAM,GAAA,EAAA,CAAA,CAAA,aAE/DJ,EAAA,MAAK,qBAAhBK,EAKK,KAAAgC,EAAA,CAJH/B,EAGK,KAHLgC,EAGK,CAFapB,EAAAf,CAAA,EAAM,KAAK,YAA3BE,EAA0EkB,EAAA,CAAA,IAAA,CAAA,EAAA,GAAvC,8BAA4B,CAAA,YAC/DlB,EAA6CkB,EAAA,CAAA,IAAA,GAAA,GAA5B,mBAAiB,CAAA,sBA/B1CgB,EAAwDC,EAAA,OAAX,KAAM,CAAA"}
1
+ {"version":3,"file":"JobsView-B6RvX8WS.js","sources":["../../src/views/JobsView.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/** Job history. Polled by the shell already, so this view only filters what is in memory. */\nimport { computed, ref } from 'vue';\nimport { state } from '../composables/useControlPlane';\nimport { actionLabel, took } from '../composables/useFormat';\nimport StateBadge from '../components/StateBadge.vue';\nimport SkeletonList from '../components/SkeletonList.vue';\nimport RelativeTime from '../components/RelativeTime.vue';\nimport SelectMenu from '../components/SelectMenu.vue';\nimport InfoHint from '../components/InfoHint.vue';\nimport type { JobState } from '../api/types';\n\nconst q = ref('');\nconst only = ref<'all' | JobState>('all');\n\nconst rows = computed(() => {\n const needle = q.value.trim().toLowerCase();\n return state.jobs.filter((j) => {\n if (only.value !== 'all' && j.state !== only.value) return false;\n if (!needle) return true;\n return j.stack.toLowerCase().includes(needle) || j.action.includes(needle);\n });\n});\n</script>\n\n<template>\n <div>\n <div class=\"page-head\">\n <div>\n <h1>Jobs</h1>\n <div class=\"sub\">\n Most recent first, capped at the last 50\n <InfoHint label=\"why old jobs disappear\">\n The history is held in memory and a server restart clears it. A job record is the\n transcript of an attempt, not the truth about what exists — that truth lives in the\n containers themselves and in each axis's own probe.\n </InfoHint>\n </div>\n </div>\n </div>\n\n <section class=\"panel\">\n <!-- Same one-row toolbar as Deployments — this page had kept the old stacked-label layout,\n and two list pages with two different toolbars reads as two different products. -->\n <div class=\"phead\">\n <div class=\"searchbox\">\n <svg viewBox=\"0 0 24 24\" width=\"15\" height=\"15\" aria-hidden=\"true\">\n <circle cx=\"11\" cy=\"11\" r=\"7\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" />\n <path d=\"M16.5 16.5 21 21\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" />\n </svg>\n <input\n id=\"jq\"\n v-model=\"q\"\n data-search\n type=\"search\"\n aria-label=\"Search jobs\"\n placeholder=\"Search by stack or action\"\n spellcheck=\"false\"\n />\n <kbd v-if=\"!q\">/</kbd>\n </div>\n <SelectMenu\n id=\"js\"\n v-model=\"only\"\n label=\"Filter by state\"\n :options=\"[\n { value: 'all', label: 'All states' },\n { value: 'running', label: 'Running' },\n { value: 'ok', label: 'Ok' },\n { value: 'leaked', label: 'Leaked' },\n { value: 'failed', label: 'Failed' },\n ]\"\n />\n </div>\n\n <p v-if=\"state.jobsError\" class=\"s-failed\">{{ state.jobsError }}</p>\n <SkeletonList v-else-if=\"!state.jobsLoaded\" :rows=\"5\" />\n\n <table v-else class=\"cards\">\n <thead>\n <tr>\n <th>State</th>\n <th>Action</th>\n <th>Stack</th>\n <th>Started</th>\n <th>Took</th>\n <th>Steps</th>\n </tr>\n </thead>\n <tbody class=\"stagger\">\n <tr v-for=\"(j, i) in rows\" :key=\"j.id\" :style=\"{ '--i': i }\">\n <td data-label=\"state\">\n <RouterLink :to=\"`/jobs/${encodeURIComponent(j.id)}`\">\n <StateBadge :state=\"j.state\" />\n </RouterLink>\n </td>\n <td data-label=\"action\">{{ actionLabel(j.action) }}</td>\n <td class=\"name\" data-label=\"stack\">\n <RouterLink :to=\"`/jobs/${encodeURIComponent(j.id)}`\">{{ j.stack }}</RouterLink>\n </td>\n <td class=\"dim nowrap\" data-label=\"started\"><RelativeTime :at=\"j.startedAt\" /></td>\n <td class=\"dim nowrap\" data-label=\"took\">{{ took(j.startedAt, j.endedAt) }}</td>\n <td class=\"dim\" data-label=\"steps\">{{ j.outcome ? j.outcome.steps.length : '—' }}</td>\n </tr>\n <tr v-if=\"!rows.length\">\n <td colspan=\"6\" class=\"mute\">\n <template v-if=\"state.jobs.length\">Nothing matches this filter.</template>\n <template v-else>No jobs recorded.</template>\n </td>\n </tr>\n </tbody>\n </table>\n </section>\n </div>\n</template>\n"],"names":["q","ref","only","rows","computed","needle","state","j","_createElementBlock","_createElementVNode","_hoisted_1","_cache","_hoisted_2","_createVNode","InfoHint","_hoisted_3","_hoisted_4","_hoisted_5","$event","_openBlock","SelectMenu","_unref","_hoisted_7","_toDisplayString","_hoisted_8","_hoisted_9","_Fragment","_renderList","i","_hoisted_10","_component_RouterLink","StateBadge","_hoisted_11","_hoisted_12","_createTextVNode","_hoisted_13","RelativeTime","_hoisted_14","took","_hoisted_15","_hoisted_16","_hoisted_17","_createBlock","SkeletonList"],"mappings":"oiCAYA,MAAMA,EAAIC,EAAI,EAAE,EACVC,EAAOD,EAAsB,KAAK,EAElCE,EAAOC,EAAS,IAAM,CAC1B,MAAMC,EAASL,EAAE,MAAM,KAAA,EAAO,YAAA,EAC9B,OAAOM,EAAM,KAAK,OAAQC,GACpBL,EAAK,QAAU,OAASK,EAAE,QAAUL,EAAK,MAAc,GACtDG,EACEE,EAAE,MAAM,YAAA,EAAc,SAASF,CAAM,GAAKE,EAAE,OAAO,SAASF,CAAM,EADrD,EAErB,CACH,CAAC,mDAICG,EAuFM,MAAA,KAAA,CAtFJC,EAYM,MAZNC,EAYM,CAXJD,EAUM,MAAA,KAAA,CATJE,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAF,EAAa,UAAT,OAAI,EAAA,GACRA,EAOM,MAPNG,EAOM,eAPW,6CAEf,EAAA,GAAAC,EAIWC,EAAA,CAJD,MAAM,0BAAwB,WAAC,IAIzC,CAAA,GAAAH,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAA,GAJyC,8NAIzC,EAAA,CAAA,iBAKNF,EAu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B,EAIK,CAHHhB,EAEaiB,EAAA,CAFA,GAAE,SAAW,mBAAmBvB,EAAE,EAAE,CAAA,EAAA,aAC/C,IAA+B,CAA/BM,EAA+BkB,EAAA,CAAlB,MAAOxB,EAAE,KAAA,0CAG1BE,EAAwD,KAAxDuB,EAAwDT,EAA7BF,KAAYd,EAAE,MAAM,CAAA,EAAA,CAAA,EAC/CE,EAEK,KAFLwB,EAEK,CADHpB,EAAgFiB,EAAA,CAAnE,GAAE,SAAW,mBAAmBvB,EAAE,EAAE,CAAA,EAAA,aAAK,IAAa,CAAV2B,EAAAX,EAAAhB,EAAE,KAAK,EAAA,CAAA,CAAA,uBAElEE,EAAmF,KAAnF0B,EAAmF,CAAvCtB,EAAkCuB,EAAA,CAAnB,GAAI7B,EAAE,SAAA,mBACjEE,EAAgF,KAAhF4B,EAAgFd,EAApCF,EAAAiB,CAAA,EAAK/B,EAAE,UAAWA,EAAE,OAAO,CAAA,EAAA,CAAA,EACvEE,EAAsF,KAAtF8B,EAAsFhB,EAAhDhB,EAAE,QAAUA,EAAE,QAAQ,MAAM,OAAM,GAAA,EAAA,CAAA,CAAA,aAE/DJ,EAAA,MAAK,qBAAhBK,EAKK,KAAAgC,EAAA,CAJH/B,EAGK,KAHLgC,EAGK,CAFapB,EAAAf,CAAA,EAAM,KAAK,YAA3BE,EAA0EkB,EAAA,CAAA,IAAA,CAAA,EAAA,GAAvC,8BAA4B,CAAA,YAC/DlB,EAA6CkB,EAAA,CAAA,IAAA,GAAA,GAA5B,mBAAiB,CAAA,sBA/B1CgB,EAAwDC,EAAA,OAAX,KAAM,CAAA"}
@@ -1,3 +1,3 @@
1
- import{d as x,H as b,Y as _,J as T,c as s,a,t as n,f as C,g as c,W as B,F as m,s as N,r as y,a2 as H,N as g,C as S,o as l,E as V}from"./index-DVCVnKbf.js";const F={class:"lv"},j={class:"lv-bar"},E={class:"lv-count"},L={key:0,class:"badge running"},z=["disabled"],D={key:0,class:"lv-empty"},J={key:0,class:"lv-sep"},M=["title"],P=["title"],U={class:"lv-msg"},Y=x({__name:"LogViewer",props:{rows:{},live:{type:Boolean},copyText:{},emptyText:{}},setup(i){const r=i,d=y(null),u=y(!0);function f(){const t=d.value;return!!t&&t.scrollHeight-t.scrollTop-t.clientHeight<24}function k(){u.value=f()}async function v(){await H();const t=d.value;t&&u.value&&(t.scrollTop=t.scrollHeight)}b(()=>r.rows.length,v),_(v);function h(){u.value=!0,v()}async function w(){const t=r.copyText??r.rows.filter(o=>!o.separator).map(o=>[o.time,o.gutter,o.text].filter(Boolean).join(" ")).join(`
2
- `);try{await navigator.clipboard.writeText(t),g("ok","Copied.")}catch{g("error","Could not copy — your browser blocked clipboard access.")}}const p=S(()=>r.rows.filter(t=>!t.separator).length);return T(()=>{}),(t,o)=>(l(),s("div",F,[a("div",j,[a("span",E,n(p.value)+" line"+n(p.value===1?"":"s"),1),i.live?(l(),s("span",L,[...o[0]||(o[0]=[a("span",{class:"dot pulse"},null,-1),C("live",-1)])])):c("",!0),o[1]||(o[1]=a("span",{class:"grow"},null,-1)),i.live&&!u.value?(l(),s("button",{key:1,class:"ghost sm",onClick:h},"↓ Follow")):c("",!0),a("button",{class:"ghost sm",disabled:!p.value,onClick:w},"Copy",8,z),B(t.$slots,"actions")]),a("div",{ref_key:"box",ref:d,class:"lv-box",role:"log","aria-live":"polite",onScrollPassive:k},[i.rows.length?c("",!0):(l(),s("p",D,n(i.emptyText??"No output."),1)),(l(!0),s(m,null,N(i.rows,e=>(l(),s(m,{key:e.key},[e.separator?(l(),s("div",J,[a("span",null,n(e.text),1)])):(l(),s("div",{key:1,class:V(["lv-row",e.tone])},[e.time!==void 0?(l(),s("span",{key:0,class:"lv-time",title:e.timeTitle},n(e.time),9,M)):c("",!0),e.gutter!==void 0?(l(),s("span",{key:1,class:"lv-gutter",title:e.gutterTitle},n(e.gutter),9,P)):c("",!0),a("span",U,n(e.text),1)],2))],64))),128))],544)]))}});export{Y as _};
3
- //# sourceMappingURL=LogViewer.vue_vue_type_script_setup_true_lang-7Ggcxz1R.js.map
1
+ import{d as x,H as b,Y as _,K as T,c as s,a,t as n,f as C,g as c,W as B,F as m,s as H,r as y,a2 as N,J as g,C as S,o as l,E as V}from"./index-wjzRhuU3.js";const F={class:"lv"},j={class:"lv-bar"},E={class:"lv-count"},L={key:0,class:"badge running"},z=["disabled"],D={key:0,class:"lv-empty"},J={key:0,class:"lv-sep"},K=["title"],M=["title"],P={class:"lv-msg"},W=x({__name:"LogViewer",props:{rows:{},live:{type:Boolean},copyText:{},emptyText:{}},setup(i){const r=i,d=y(null),u=y(!0);function f(){const t=d.value;return!!t&&t.scrollHeight-t.scrollTop-t.clientHeight<24}function k(){u.value=f()}async function v(){await N();const t=d.value;t&&u.value&&(t.scrollTop=t.scrollHeight)}b(()=>r.rows.length,v),_(v);function h(){u.value=!0,v()}async function w(){const t=r.copyText??r.rows.filter(o=>!o.separator).map(o=>[o.time,o.gutter,o.text].filter(Boolean).join(" ")).join(`
2
+ `);try{await navigator.clipboard.writeText(t),g("ok","Copied.")}catch{g("error","Could not copy — your browser blocked clipboard access.")}}const p=S(()=>r.rows.filter(t=>!t.separator).length);return T(()=>{}),(t,o)=>(l(),s("div",F,[a("div",j,[a("span",E,n(p.value)+" line"+n(p.value===1?"":"s"),1),i.live?(l(),s("span",L,[...o[0]||(o[0]=[a("span",{class:"dot pulse"},null,-1),C("live",-1)])])):c("",!0),o[1]||(o[1]=a("span",{class:"grow"},null,-1)),i.live&&!u.value?(l(),s("button",{key:1,class:"ghost sm",onClick:h},"↓ Follow")):c("",!0),a("button",{class:"ghost sm",disabled:!p.value,onClick:w},"Copy",8,z),B(t.$slots,"actions")]),a("div",{ref_key:"box",ref:d,class:"lv-box",role:"log","aria-live":"polite",onScrollPassive:k},[i.rows.length?c("",!0):(l(),s("p",D,n(i.emptyText??"No output."),1)),(l(!0),s(m,null,H(i.rows,e=>(l(),s(m,{key:e.key},[e.separator?(l(),s("div",J,[a("span",null,n(e.text),1)])):(l(),s("div",{key:1,class:V(["lv-row",e.tone])},[e.time!==void 0?(l(),s("span",{key:0,class:"lv-time",title:e.timeTitle},n(e.time),9,K)):c("",!0),e.gutter!==void 0?(l(),s("span",{key:1,class:"lv-gutter",title:e.gutterTitle},n(e.gutter),9,M)):c("",!0),a("span",P,n(e.text),1)],2))],64))),128))],544)]))}});export{W as _};
3
+ //# sourceMappingURL=LogViewer.vue_vue_type_script_setup_true_lang-B5K26k3c.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LogViewer.vue_vue_type_script_setup_true_lang-7Ggcxz1R.js","sources":["../../src/components/LogViewer.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * The log surface — used by the job page (structured events) and the container-logs tab (raw text\n * that the parent parses into rows).\n *\n * WHY NOT A LIBRARY. There is no widely-adopted Vue log viewer to reach for (the React ones —\n * react-lazylog and friends — have no Vue counterpart with real adoption), and xterm — already a\n * dependency for the terminal — renders to canvas, so log text would stop being selectable,\n * copyable and findable with ⌘F. For LOGS those are the whole point. What a log view actually\n * needs is small: a gutter that never wraps, a message that wraps with a hanging indent, stickiness\n * at the bottom, and cheap rendering for thousands of rows (`content-visibility: auto` — the\n * browser skips layout for off-screen rows, no virtualisation library required).\n *\n * THE GUTTER IS TIME-OF-DAY, NOT A FULL TIMESTAMP. `2026-08-04 03:47:45` per line is 19 characters\n * of the same date repeated hundreds of times — on a narrow panel it wrapped every entry onto five\n * or six lines. Within one log the date almost never changes, so each row carries `03:47:45` and a\n * date SEPARATOR row appears only when the day actually flips. The full stamp survives in the\n * row's tooltip.\n *\n * FOLLOW IS A STATE THE USER CONTROLS BY SCROLLING. Pinned to the bottom, new lines keep it there;\n * one scroll up releases it (reading must never be yanked away); the \"Follow\" chip puts it back.\n */\nimport { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue';\nimport { toast } from '../composables/useToasts';\nimport type { LogRow } from './log-viewer-types';\n\nconst props = defineProps<{\n rows: LogRow[];\n /** Renders the live pulse and keeps follow meaningful; a finished log needs neither. */\n live?: boolean;\n /** What Copy puts on the clipboard — the parent knows the faithful raw form, this view does not. */\n copyText?: string;\n emptyText?: string;\n}>();\n\nconst box = ref<HTMLElement | null>(null);\nconst follow = ref(true);\n\nfunction atBottom(): boolean {\n const el = box.value;\n return !!el && el.scrollHeight - el.scrollTop - el.clientHeight < 24;\n}\n\nfunction onScroll(): void {\n // The USER moved — follow reflects where they left the viewport, with no flag juggling for\n // programmatic scrolls: after scrollTo(bottom), atBottom() is simply true.\n follow.value = atBottom();\n}\n\nasync function stick(): Promise<void> {\n await nextTick();\n const el = box.value;\n if (el && follow.value) el.scrollTop = el.scrollHeight;\n}\n\nwatch(() => props.rows.length, stick);\nonMounted(stick);\n\nfunction resume(): void {\n follow.value = true;\n void stick();\n}\n\nasync function copy(): Promise<void> {\n const text =\n props.copyText ??\n props.rows\n .filter((r) => !r.separator)\n .map((r) => [r.time, r.gutter, r.text].filter(Boolean).join(' '))\n .join('\\n');\n try {\n await navigator.clipboard.writeText(text);\n toast('ok', 'Copied.');\n } catch {\n toast('error', 'Could not copy — your browser blocked clipboard access.');\n }\n}\n\nconst count = computed(() => props.rows.filter((r) => !r.separator).length);\n\n// A page-level listener would steal browser find; scoping ⌘F to the box when it has focus would be\n// surprising. The box is plain DOM precisely so the browser's own find works — nothing to do here.\nonBeforeUnmount(() => {});\n</script>\n\n<template>\n <div class=\"lv\">\n <div class=\"lv-bar\">\n <span class=\"lv-count\">{{ count }} line{{ count === 1 ? '' : 's' }}</span>\n <span v-if=\"live\" class=\"badge running\"><span class=\"dot pulse\" />live</span>\n <span class=\"grow\" />\n <button v-if=\"live && !follow\" class=\"ghost sm\" @click=\"resume\">↓ Follow</button>\n <button class=\"ghost sm\" :disabled=\"!count\" @click=\"copy\">Copy</button>\n <slot name=\"actions\" />\n </div>\n\n <div ref=\"box\" class=\"lv-box\" role=\"log\" aria-live=\"polite\" @scroll.passive=\"onScroll\">\n <p v-if=\"!rows.length\" class=\"lv-empty\">{{ emptyText ?? 'No output.' }}</p>\n <template v-for=\"r in rows\" :key=\"r.key\">\n <div v-if=\"r.separator\" class=\"lv-sep\"><span>{{ r.text }}</span></div>\n <div v-else class=\"lv-row\" :class=\"r.tone\">\n <span v-if=\"r.time !== undefined\" class=\"lv-time\" :title=\"r.timeTitle\">{{ r.time }}</span>\n <span v-if=\"r.gutter !== undefined\" class=\"lv-gutter\" :title=\"r.gutterTitle\">{{ r.gutter }}</span>\n <span class=\"lv-msg\">{{ r.text }}</span>\n </div>\n </template>\n </div>\n </div>\n</template>\n"],"names":["props","__props","box","ref","follow","atBottom","el","onScroll","stick","nextTick","watch","onMounted","resume","copy","text","r","toast","count","computed","onBeforeUnmount","_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","_toDisplayString","_hoisted_4","_cache","_hoisted_5","_renderSlot","_ctx","_hoisted_6","_Fragment","_renderList","_hoisted_7","_normalizeClass","_hoisted_8","_hoisted_9","_hoisted_10"],"mappings":"ocA0BA,MAAMA,EAAQC,EASRC,EAAMC,EAAwB,IAAI,EAClCC,EAASD,EAAI,EAAI,EAEvB,SAASE,GAAoB,CAC3B,MAAMC,EAAKJ,EAAI,MACf,MAAO,CAAC,CAACI,GAAMA,EAAG,aAAeA,EAAG,UAAYA,EAAG,aAAe,EACpE,CAEA,SAASC,GAAiB,CAGxBH,EAAO,MAAQC,EAAA,CACjB,CAEA,eAAeG,GAAuB,CACpC,MAAMC,EAAA,EACN,MAAMH,EAAKJ,EAAI,MACXI,GAAMF,EAAO,QAAOE,EAAG,UAAYA,EAAG,aAC5C,CAEAI,EAAM,IAAMV,EAAM,KAAK,OAAQQ,CAAK,EACpCG,EAAUH,CAAK,EAEf,SAASI,GAAe,CACtBR,EAAO,MAAQ,GACVI,EAAA,CACP,CAEA,eAAeK,GAAsB,CACnC,MAAMC,EACJd,EAAM,UACNA,EAAM,KACH,OAAQe,GAAM,CAACA,EAAE,SAAS,EAC1B,IAAKA,GAAM,CAACA,EAAE,KAAMA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iB,IAAAA,EAAE,GAAA,GACvBA,EAAE,WAAbK,EAAA,EAAAC,EAAsE,MAAtEc,EAAsE,CAA/BZ,EAAyB,OAAA,KAAAG,EAAhBX,EAAE,IAAI,EAAA,CAAA,CAAA,SACtDM,EAIM,MAAA,OAJM,MAAKe,EAAA,CAAC,SAAiBrB,EAAE,IAAI,CAAA,CAAA,GAC3BA,EAAE,OAAS,YAAvBM,EAA0F,OAAA,OAAxD,MAAM,UAAW,MAAON,EAAE,SAAA,EAAcW,EAAAX,EAAE,IAAI,EAAA,EAAAsB,CAAA,YACpEtB,EAAE,SAAW,YAAzBM,EAAkG,OAAA,OAA9D,MAAM,YAAa,MAAON,EAAE,WAAA,EAAgBW,EAAAX,EAAE,MAAM,EAAA,EAAAuB,CAAA,YACxFf,EAAwC,OAAxCgB,EAAwCb,EAAhBX,EAAE,IAAI,EAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"LogViewer.vue_vue_type_script_setup_true_lang-B5K26k3c.js","sources":["../../src/components/LogViewer.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * The log surface — used by the job page (structured events) and the container-logs tab (raw text\n * that the parent parses into rows).\n *\n * WHY NOT A LIBRARY. There is no widely-adopted Vue log viewer to reach for (the React ones —\n * react-lazylog and friends — have no Vue counterpart with real adoption), and xterm — already a\n * dependency for the terminal — renders to canvas, so log text would stop being selectable,\n * copyable and findable with ⌘F. For LOGS those are the whole point. What a log view actually\n * needs is small: a gutter that never wraps, a message that wraps with a hanging indent, stickiness\n * at the bottom, and cheap rendering for thousands of rows (`content-visibility: auto` — the\n * browser skips layout for off-screen rows, no virtualisation library required).\n *\n * THE GUTTER IS TIME-OF-DAY, NOT A FULL TIMESTAMP. `2026-08-04 03:47:45` per line is 19 characters\n * of the same date repeated hundreds of times — on a narrow panel it wrapped every entry onto five\n * or six lines. Within one log the date almost never changes, so each row carries `03:47:45` and a\n * date SEPARATOR row appears only when the day actually flips. The full stamp survives in the\n * row's tooltip.\n *\n * FOLLOW IS A STATE THE USER CONTROLS BY SCROLLING. Pinned to the bottom, new lines keep it there;\n * one scroll up releases it (reading must never be yanked away); the \"Follow\" chip puts it back.\n */\nimport { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue';\nimport { toast } from '../composables/useToasts';\nimport type { LogRow } from './log-viewer-types';\n\nconst props = defineProps<{\n rows: LogRow[];\n /** Renders the live pulse and keeps follow meaningful; a finished log needs neither. */\n live?: boolean;\n /** What Copy puts on the clipboard — the parent knows the faithful raw form, this view does not. */\n copyText?: string;\n emptyText?: string;\n}>();\n\nconst box = ref<HTMLElement | null>(null);\nconst follow = ref(true);\n\nfunction atBottom(): boolean {\n const el = box.value;\n return !!el && el.scrollHeight - el.scrollTop - el.clientHeight < 24;\n}\n\nfunction onScroll(): void {\n // The USER moved — follow reflects where they left the viewport, with no flag juggling for\n // programmatic scrolls: after scrollTo(bottom), atBottom() is simply true.\n follow.value = atBottom();\n}\n\nasync function stick(): Promise<void> {\n await nextTick();\n const el = box.value;\n if (el && follow.value) el.scrollTop = el.scrollHeight;\n}\n\nwatch(() => props.rows.length, stick);\nonMounted(stick);\n\nfunction resume(): void {\n follow.value = true;\n void stick();\n}\n\nasync function copy(): Promise<void> {\n const text =\n props.copyText ??\n props.rows\n .filter((r) => !r.separator)\n .map((r) => [r.time, r.gutter, r.text].filter(Boolean).join(' '))\n .join('\\n');\n try {\n await navigator.clipboard.writeText(text);\n toast('ok', 'Copied.');\n } catch {\n toast('error', 'Could not copy — your browser blocked clipboard access.');\n }\n}\n\nconst count = computed(() => props.rows.filter((r) => !r.separator).length);\n\n// A page-level listener would steal browser find; scoping ⌘F to the box when it has focus would be\n// surprising. The box is plain DOM precisely so the browser's own find works — nothing to do here.\nonBeforeUnmount(() => {});\n</script>\n\n<template>\n <div class=\"lv\">\n <div class=\"lv-bar\">\n <span class=\"lv-count\">{{ count }} line{{ count === 1 ? '' : 's' }}</span>\n <span v-if=\"live\" class=\"badge running\"><span class=\"dot pulse\" />live</span>\n <span class=\"grow\" />\n <button v-if=\"live && !follow\" class=\"ghost sm\" @click=\"resume\">↓ Follow</button>\n <button class=\"ghost sm\" :disabled=\"!count\" @click=\"copy\">Copy</button>\n <slot name=\"actions\" />\n </div>\n\n <div ref=\"box\" class=\"lv-box\" role=\"log\" aria-live=\"polite\" @scroll.passive=\"onScroll\">\n <p v-if=\"!rows.length\" class=\"lv-empty\">{{ emptyText ?? 'No output.' }}</p>\n <template v-for=\"r in rows\" :key=\"r.key\">\n <div v-if=\"r.separator\" class=\"lv-sep\"><span>{{ r.text }}</span></div>\n <div v-else class=\"lv-row\" :class=\"r.tone\">\n <span v-if=\"r.time !== undefined\" class=\"lv-time\" :title=\"r.timeTitle\">{{ r.time }}</span>\n <span v-if=\"r.gutter !== undefined\" class=\"lv-gutter\" :title=\"r.gutterTitle\">{{ r.gutter }}</span>\n <span class=\"lv-msg\">{{ r.text }}</span>\n </div>\n </template>\n </div>\n </div>\n</template>\n"],"names":["props","__props","box","ref","follow","atBottom","el","onScroll","stick","nextTick","watch","onMounted","resume","copy","text","r","toast","count","computed","onBeforeUnmount","_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","_toDisplayString","_hoisted_4","_cache","_hoisted_5","_renderSlot","_ctx","_hoisted_6","_Fragment","_renderList","_hoisted_7","_normalizeClass","_hoisted_8","_hoisted_9","_hoisted_10"],"mappings":"ocA0BA,MAAMA,EAAQC,EASRC,EAAMC,EAAwB,IAAI,EAClCC,EAASD,EAAI,EAAI,EAEvB,SAASE,GAAoB,CAC3B,MAAMC,EAAKJ,EAAI,MACf,MAAO,CAAC,CAACI,GAAMA,EAAG,aAAeA,EAAG,UAAYA,EAAG,aAAe,EACpE,CAEA,SAASC,GAAiB,CAGxBH,EAAO,MAAQC,EAAA,CACjB,CAEA,eAAeG,GAAuB,CACpC,MAAMC,EAAA,EACN,MAAMH,EAAKJ,EAAI,MACXI,GAAMF,EAAO,QAAOE,EAAG,UAAYA,EAAG,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AAA,OAAA,SAAA,CAAA,GAGzBR,EAUM,MAAA,SAVG,MAAJ,IAAIrB,EAAM,MAAM,SAAS,KAAK,MAAM,YAAU,yBAA0BK,CAAA,GACjEN,EAAA,KAAK,qBAAfoB,EAA2E,IAA3EW,EAA2EN,EAAhCzB,EAAA,WAAS,YAAA,EAAA,CAAA,UACpDoB,EAOWY,EAAA,KAAAC,EAPWjC,EAAA,KAALc,aAAiB,IAAAA,EAAE,GAAA,GACvBA,EAAE,WAAbK,EAAA,EAAAC,EAAsE,MAAtEc,EAAsE,CAA/BZ,EAAyB,OAAA,KAAAG,EAAhBX,EAAE,IAAI,EAAA,CAAA,CAAA,SACtDM,EAIM,MAAA,OAJM,MAAKe,EAAA,CAAC,SAAiBrB,EAAE,IAAI,CAAA,CAAA,GAC3BA,EAAE,OAAS,YAAvBM,EAA0F,OAAA,OAAxD,MAAM,UAAW,MAAON,EAAE,SAAA,EAAcW,EAAAX,EAAE,IAAI,EAAA,EAAAsB,CAAA,YACpEtB,EAAE,SAAW,YAAzBM,EAAkG,OAAA,OAA9D,MAAM,YAAa,MAAON,EAAE,WAAA,EAAgBW,EAAAX,EAAE,MAAM,EAAA,EAAAuB,CAAA,YACxFf,EAAwC,OAAxCgB,EAAwCb,EAAhBX,EAAE,IAAI,EAAA,CAAA,CAAA"}
@@ -1,2 +1,2 @@
1
- import{d as x,c as v,a as t,u as S,b as V,F as C,e as n,f as s,w as l,_ as g,g as h,h as q,i as w,v as y,t as b,r as u,j as N,k as T,l as U,o as f,m as L,n as R}from"./index-DVCVnKbf.js";import{_ as B}from"./ActionButton.vue_vue_type_script_setup_true_lang-D06apM-6.js";import{E}from"./EquivalentCommand-NHzDrg5d.js";import{_ as A}from"./_plugin-vue_export-helper-DlAUqK2U.js";const D={class:"login-wrap"},F={class:"login-card panel"},I={class:"banner plain",style:{"margin-top":"var(--s3)"}},M={class:"mute",style:{"margin-top":"var(--s3)"}},P={class:"field",style:{"margin-top":"var(--s4)"}},$={class:"field"},j={key:0,class:"banner failed",style:{"margin-top":"var(--s3)"}},z={class:"row",style:{"margin-top":"var(--s4)"}},O=x({__name:"LoginView",setup(W){const k=T(),d=U(),r=u(""),o=u(""),a=u(!1),i=u("");async function c(){a.value=!0,i.value="";const p=await L(r.value.trim(),o.value);if(a.value=!1,p){i.value=p,o.value="";return}await R();const e=typeof d.query.next=="string"&&d.query.next.startsWith("/")?d.query.next:"/";k.replace(e)}return(p,e)=>{const _=N("RouterLink");return f(),v("div",D,[t("div",F,[e[12]||(e[12]=t("h1",{style:{"font-size":"var(--t-xl)","margin-bottom":"var(--s2)"}},"Sign in",-1)),S(V).hasUsers===!1?(f(),v(C,{key:0},[e[6]||(e[6]=t("p",{class:"dim"}," No accounts exist on this server yet — create the first one, then sign in. ",-1)),t("div",I,[e[4]||(e[4]=t("b",null,"Create the first account",-1)),e[5]||(e[5]=t("p",null," This has to be done with the host token, from a terminal — a browser has no way to prove it is allowed to claim a fresh server. ",-1)),n(E,{what:"creating the first account",method:"POST",path:"/api/auth/bootstrap",body:{username:"you",password:"…"}}),t("p",M,[e[3]||(e[3]=s(" It can also be set up ahead of time when the host is first provisioned. ",-1)),n(g,{label:"how"},{default:l(()=>[...e[2]||(e[2]=[s(" Set the admin username and password in the environment before running the setup command on the host. They are honoured only while no account exists, so they cannot overwrite one later. ",-1)])]),_:1})])])],64)):h("",!0),t("form",{onSubmit:q(c,["prevent"])},[t("div",P,[e[7]||(e[7]=t("label",{for:"u"},"Username",-1)),w(t("input",{id:"u","onUpdate:modelValue":e[0]||(e[0]=m=>r.value=m),type:"text",autocomplete:"username",spellcheck:"false"},null,512),[[y,r.value]])]),t("div",$,[e[8]||(e[8]=t("label",{for:"p"},"Password",-1)),w(t("input",{id:"p","onUpdate:modelValue":e[1]||(e[1]=m=>o.value=m),type:"password",autocomplete:"current-password"},null,512),[[y,o.value]])]),i.value?(f(),v("div",j,[t("p",null,b(i.value),1)])):h("",!0),t("div",z,[n(B,{variant:"primary",pending:a.value,disabled:a.value||!r.value.trim()||!o.value,onClick:c},{default:l(()=>[s(b(a.value?"Signing in…":"Sign in"),1)]),_:1},8,["pending","disabled"]),e[11]||(e[11]=t("span",{class:"grow"},null,-1)),n(_,{to:"/settings",class:"mute"},{default:l(()=>[e[10]||(e[10]=s(" Use a token instead ",-1)),n(g,{label:"token access",align:"end"},{default:l(()=>[...e[9]||(e[9]=[s(" A bearer token in Settings — the machine token from ",-1),t("code",null,"pstack init",-1),s(", or a personal token from your account — authenticates every request without a session. ",-1)])]),_:1})]),_:1})])],32)])])}}}),Q=A(O,[["__scopeId","data-v-93108325"]]);export{Q as default};
2
- //# sourceMappingURL=LoginView-Bj7uMFvv.js.map
1
+ import{d as x,c as v,a as t,u as S,b as V,F as C,e as n,f as s,w as l,_ as g,g as h,h as q,i as w,v as y,t as b,r as u,j as N,k as T,l as U,o as f,m as L,n as R}from"./index-wjzRhuU3.js";import{_ as B}from"./ActionButton.vue_vue_type_script_setup_true_lang-CeingrPV.js";import{E}from"./EquivalentCommand-D0Bfgz63.js";import{_ as A}from"./_plugin-vue_export-helper-DlAUqK2U.js";const D={class:"login-wrap"},F={class:"login-card panel"},I={class:"banner plain",style:{"margin-top":"var(--s3)"}},M={class:"mute",style:{"margin-top":"var(--s3)"}},P={class:"field",style:{"margin-top":"var(--s4)"}},$={class:"field"},j={key:0,class:"banner failed",style:{"margin-top":"var(--s3)"}},z={class:"row",style:{"margin-top":"var(--s4)"}},O=x({__name:"LoginView",setup(W){const k=T(),d=U(),r=u(""),o=u(""),a=u(!1),i=u("");async function c(){a.value=!0,i.value="";const p=await L(r.value.trim(),o.value);if(a.value=!1,p){i.value=p,o.value="";return}await R();const e=typeof d.query.next=="string"&&d.query.next.startsWith("/")?d.query.next:"/";k.replace(e)}return(p,e)=>{const _=N("RouterLink");return f(),v("div",D,[t("div",F,[e[12]||(e[12]=t("h1",{style:{"font-size":"var(--t-xl)","margin-bottom":"var(--s2)"}},"Sign in",-1)),S(V).hasUsers===!1?(f(),v(C,{key:0},[e[6]||(e[6]=t("p",{class:"dim"}," No accounts exist on this server yet — create the first one, then sign in. ",-1)),t("div",I,[e[4]||(e[4]=t("b",null,"Create the first account",-1)),e[5]||(e[5]=t("p",null," This has to be done with the host token, from a terminal — a browser has no way to prove it is allowed to claim a fresh server. ",-1)),n(E,{what:"creating the first account",method:"POST",path:"/api/auth/bootstrap",body:{username:"you",password:"…"}}),t("p",M,[e[3]||(e[3]=s(" It can also be set up ahead of time when the host is first provisioned. ",-1)),n(g,{label:"how"},{default:l(()=>[...e[2]||(e[2]=[s(" Set the admin username and password in the environment before running the setup command on the host. They are honoured only while no account exists, so they cannot overwrite one later. ",-1)])]),_:1})])])],64)):h("",!0),t("form",{onSubmit:q(c,["prevent"])},[t("div",P,[e[7]||(e[7]=t("label",{for:"u"},"Username",-1)),w(t("input",{id:"u","onUpdate:modelValue":e[0]||(e[0]=m=>r.value=m),type:"text",autocomplete:"username",spellcheck:"false"},null,512),[[y,r.value]])]),t("div",$,[e[8]||(e[8]=t("label",{for:"p"},"Password",-1)),w(t("input",{id:"p","onUpdate:modelValue":e[1]||(e[1]=m=>o.value=m),type:"password",autocomplete:"current-password"},null,512),[[y,o.value]])]),i.value?(f(),v("div",j,[t("p",null,b(i.value),1)])):h("",!0),t("div",z,[n(B,{variant:"primary",pending:a.value,disabled:a.value||!r.value.trim()||!o.value,onClick:c},{default:l(()=>[s(b(a.value?"Signing in…":"Sign in"),1)]),_:1},8,["pending","disabled"]),e[11]||(e[11]=t("span",{class:"grow"},null,-1)),n(_,{to:"/settings",class:"mute"},{default:l(()=>[e[10]||(e[10]=s(" Use a token instead ",-1)),n(g,{label:"token access",align:"end"},{default:l(()=>[...e[9]||(e[9]=[s(" A bearer token in Settings — the machine token from ",-1),t("code",null,"pstack init",-1),s(", or a personal token from your account — authenticates every request without a session. ",-1)])]),_:1})]),_:1})])],32)])])}}}),Q=A(O,[["__scopeId","data-v-93108325"]]);export{Q as default};
2
+ //# sourceMappingURL=LoginView-NzylzAuv.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LoginView-Bj7uMFvv.js","sources":["../../src/views/LoginView.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Sign in — the one page reachable without a session.\n *\n * Two states it must distinguish, because they need opposite instructions:\n * - accounts exist → the form\n * - no accounts yet → bootstrap guidance. A dead login form with no way to create the\n * account it asks for is the worst version of this page.\n *\n * A bearer token in Settings also authenticates (CI-style access); the link stays visible for\n * operators who have the machine token and no account yet.\n */\nimport { ref } from 'vue';\nimport { useRoute, useRouter } from 'vue-router';\nimport { authState, checkAuth, login } from '../composables/useAuth';\nimport ActionButton from '../components/ActionButton.vue';\nimport InfoHint from '../components/InfoHint.vue';\nimport EquivalentCommand from '../components/EquivalentCommand.vue';\n\nconst router = useRouter();\nconst route = useRoute();\n\nconst username = ref('');\nconst password = ref('');\nconst pending = ref(false);\nconst error = ref('');\n\nasync function submit(): Promise<void> {\n pending.value = true;\n error.value = '';\n const failure = await login(username.value.trim(), password.value);\n pending.value = false;\n if (failure) {\n error.value = failure;\n password.value = '';\n return;\n }\n await checkAuth();\n // Back to wherever the guard bounced them from, or home.\n const dest = typeof route.query.next === 'string' && route.query.next.startsWith('/')\n ? route.query.next\n : '/';\n void router.replace(dest);\n}\n</script>\n\n<template>\n <div class=\"login-wrap\">\n <div class=\"login-card panel\">\n <h1 style=\"font-size: var(--t-xl); margin-bottom: var(--s2)\">Sign in</h1>\n\n <template v-if=\"authState.hasUsers === false\">\n <p class=\"dim\">\n No accounts exist on this server yet — create the first one, then sign in.\n </p>\n <!--\n A curl block used to sit here permanently, on the FIRST screen anyone sees. It is needed\n exactly once per host and by one person; behind the button it costs a click then and\n nothing on every later visit — and it is generated, so it cannot drift from the route.\n -->\n <div class=\"banner plain\" style=\"margin-top: var(--s3)\">\n <b>Create the first account</b>\n <p>\n This has to be done with the host token, from a terminal — a browser has no way to prove\n it is allowed to claim a fresh server.\n </p>\n <EquivalentCommand\n what=\"creating the first account\"\n method=\"POST\"\n path=\"/api/auth/bootstrap\"\n :body=\"{ username: 'you', password: '…' }\"\n />\n <p class=\"mute\" style=\"margin-top: var(--s3)\">\n It can also be set up ahead of time when the host is first provisioned.\n <InfoHint label=\"how\">\n Set the admin username and password in the environment before running the setup\n command on the host. They are honoured only while no account exists, so they cannot\n overwrite one later.\n </InfoHint>\n </p>\n </div>\n </template>\n\n <form @submit.prevent=\"submit\">\n <div class=\"field\" style=\"margin-top: var(--s4)\">\n <label for=\"u\">Username</label>\n <input id=\"u\" v-model=\"username\" type=\"text\" autocomplete=\"username\" spellcheck=\"false\" />\n </div>\n <div class=\"field\">\n <label for=\"p\">Password</label>\n <input id=\"p\" v-model=\"password\" type=\"password\" autocomplete=\"current-password\" />\n </div>\n\n <div v-if=\"error\" class=\"banner failed\" style=\"margin-top: var(--s3)\">\n <p>{{ error }}</p>\n </div>\n\n <div class=\"row\" style=\"margin-top: var(--s4)\">\n <ActionButton\n variant=\"primary\"\n :pending=\"pending\"\n :disabled=\"pending || !username.trim() || !password\"\n @click=\"submit\"\n >\n {{ pending ? 'Signing in…' : 'Sign in' }}\n </ActionButton>\n <span class=\"grow\" />\n <RouterLink to=\"/settings\" class=\"mute\">\n Use a token instead\n <InfoHint label=\"token access\" align=\"end\">\n A bearer token in Settings — the machine token from <code>pstack init</code>, or a\n personal token from your account — authenticates every request without a session.\n </InfoHint>\n </RouterLink>\n </div>\n </form>\n </div>\n </div>\n</template>\n\n<style scoped>\n/* The shell centres this now — see `.shell.no-rail .view`. A second centring context here would\n * fight it, and `min-height: 70vh` was what pinned the card toward the top of the window. */\n/* `100%`, not `92vw`: the shell already insets this by its own padding, so a viewport-relative\n * width added on top overflowed the right edge on a phone (measured 32px/0px at 390). */\n.login-wrap {\n width: min(420px, 100%);\n}\n.login-card {\n width: 100%;\n}\n</style>\n"],"names":["router","useRouter","route","useRoute","username","ref","password","pending","error","submit","failure","login","checkAuth","dest","_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_cache","_unref","authState","_Fragment","_hoisted_3","_createVNode","EquivalentCommand","_hoisted_4","InfoHint","_hoisted_5","$event","_hoisted_6","_hoisted_7","_hoisted_8","ActionButton","_component_RouterLink"],"mappings":"uvBAmBA,MAAMA,EAASC,EAAA,EACTC,EAAQC,EAAA,EAERC,EAAWC,EAAI,EAAE,EACjBC,EAAWD,EAAI,EAAE,EACjBE,EAAUF,EAAI,EAAK,EACnBG,EAAQH,EAAI,EAAE,EAEpB,eAAeI,GAAwB,CACrCF,EAAQ,MAAQ,GAChBC,EAAM,MAAQ,GACd,MAAME,EAAU,MAAMC,EAAMP,EAAS,MAAM,KAAA,EAAQE,EAAS,KAAK,EAEjE,GADAC,EAAQ,MAAQ,GACZG,EAAS,CACXF,EAAM,MAAQE,EACdJ,EAAS,MAAQ,GACjB,MACF,CACA,MAAMM,EAAA,EAEN,MAAMC,EAAO,OAAOX,EAAM,MAAM,MAAS,UAAYA,EAAM,MAAM,KAAK,WAAW,GAAG,EAChFA,EAAM,MAAM,KACZ,IACCF,EAAO,QAAQa,CAAI,CAC1B,uCAIE,OAAAC,EAAA,EAAAC,EAsEM,MAtENC,EAsEM,CArEJC,EAoEM,MApENC,EAoEM,CAnEJC,EAAA,EAAA,IAAAA,EAAA,EAAA,EAAAF,EAAyE,KAAA,CAArE,MAAA,CAAA,YAAA,cAAA,gBAAA,YAAA,EAAyD,UAAO,EAAA,GAEpDG,EAAAC,CAAA,EAAU,WAAQ,QAAlCN,EA8BWO,EAAA,CAAA,IAAA,CAAA,EAAA,CA7BTH,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAF,EAEI,IAAA,CAFD,MAAM,KAAA,EAAM,+EAEf,EAAA,GAMAA,EAoBM,MApBNM,EAoBM,CAnBJJ,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAF,EAA+B,SAA5B,2BAAwB,EAAA,GAC3BE,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAF,EAGI,SAHD,oIAGH,EAAA,GACAO,EAKEC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,EAAA,CAND,GAAG,YAAY,MAAM,MAAA,aAAO,IAEtC,iBAFsC,wBAEtC,EAAA,GAAAV,EAGWG,EAAA,CAHD,MAAM,eAAe,MAAM,KAAA,aAAM,IACW,CAAA,GAAAR,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAA,GADX,wDACW,EAAA,EAAAF,EAAwB,YAAlB,cAAW,EAAA,IAAO,4FAE9E,EAAA,CAAA"}
1
+ {"version":3,"file":"LoginView-NzylzAuv.js","sources":["../../src/views/LoginView.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Sign in — the one page reachable without a session.\n *\n * Two states it must distinguish, because they need opposite instructions:\n * - accounts exist → the form\n * - no accounts yet → bootstrap guidance. A dead login form with no way to create the\n * account it asks for is the worst version of this page.\n *\n * A bearer token in Settings also authenticates (CI-style access); the link stays visible for\n * operators who have the machine token and no account yet.\n */\nimport { ref } from 'vue';\nimport { useRoute, useRouter } from 'vue-router';\nimport { authState, checkAuth, login } from '../composables/useAuth';\nimport ActionButton from '../components/ActionButton.vue';\nimport InfoHint from '../components/InfoHint.vue';\nimport EquivalentCommand from '../components/EquivalentCommand.vue';\n\nconst router = useRouter();\nconst route = useRoute();\n\nconst username = ref('');\nconst password = ref('');\nconst pending = ref(false);\nconst error = ref('');\n\nasync function submit(): Promise<void> {\n pending.value = true;\n error.value = '';\n const failure = await login(username.value.trim(), password.value);\n pending.value = false;\n if (failure) {\n error.value = failure;\n password.value = '';\n return;\n }\n await checkAuth();\n // Back to wherever the guard bounced them from, or home.\n const dest = typeof route.query.next === 'string' && route.query.next.startsWith('/')\n ? route.query.next\n : '/';\n void router.replace(dest);\n}\n</script>\n\n<template>\n <div class=\"login-wrap\">\n <div class=\"login-card panel\">\n <h1 style=\"font-size: var(--t-xl); margin-bottom: var(--s2)\">Sign in</h1>\n\n <template v-if=\"authState.hasUsers === false\">\n <p class=\"dim\">\n No accounts exist on this server yet — create the first one, then sign in.\n </p>\n <!--\n A curl block used to sit here permanently, on the FIRST screen anyone sees. It is needed\n exactly once per host and by one person; behind the button it costs a click then and\n nothing on every later visit — and it is generated, so it cannot drift from the route.\n -->\n <div class=\"banner plain\" style=\"margin-top: var(--s3)\">\n <b>Create the first account</b>\n <p>\n This has to be done with the host token, from a terminal — a browser has no way to prove\n it is allowed to claim a fresh server.\n </p>\n <EquivalentCommand\n what=\"creating the first account\"\n method=\"POST\"\n path=\"/api/auth/bootstrap\"\n :body=\"{ username: 'you', password: '…' }\"\n />\n <p class=\"mute\" style=\"margin-top: var(--s3)\">\n It can also be set up ahead of time when the host is first provisioned.\n <InfoHint label=\"how\">\n Set the admin username and password in the environment before running the setup\n command on the host. They are honoured only while no account exists, so they cannot\n overwrite one later.\n </InfoHint>\n </p>\n </div>\n </template>\n\n <form @submit.prevent=\"submit\">\n <div class=\"field\" style=\"margin-top: var(--s4)\">\n <label for=\"u\">Username</label>\n <input id=\"u\" v-model=\"username\" type=\"text\" autocomplete=\"username\" spellcheck=\"false\" />\n </div>\n <div class=\"field\">\n <label for=\"p\">Password</label>\n <input id=\"p\" v-model=\"password\" type=\"password\" autocomplete=\"current-password\" />\n </div>\n\n <div v-if=\"error\" class=\"banner failed\" style=\"margin-top: var(--s3)\">\n <p>{{ error }}</p>\n </div>\n\n <div class=\"row\" style=\"margin-top: var(--s4)\">\n <ActionButton\n variant=\"primary\"\n :pending=\"pending\"\n :disabled=\"pending || !username.trim() || !password\"\n @click=\"submit\"\n >\n {{ pending ? 'Signing in…' : 'Sign in' }}\n </ActionButton>\n <span class=\"grow\" />\n <RouterLink to=\"/settings\" class=\"mute\">\n Use a token instead\n <InfoHint label=\"token access\" align=\"end\">\n A bearer token in Settings — the machine token from <code>pstack init</code>, or a\n personal token from your account — authenticates every request without a session.\n </InfoHint>\n </RouterLink>\n </div>\n </form>\n </div>\n </div>\n</template>\n\n<style scoped>\n/* The shell centres this now — see `.shell.no-rail .view`. A second centring context here would\n * fight it, and `min-height: 70vh` was what pinned the card toward the top of the window. */\n/* `100%`, not `92vw`: the shell already insets this by its own padding, so a viewport-relative\n * width added on top overflowed the right edge on a phone (measured 32px/0px at 390). */\n.login-wrap {\n width: min(420px, 100%);\n}\n.login-card {\n width: 100%;\n}\n</style>\n"],"names":["router","useRouter","route","useRoute","username","ref","password","pending","error","submit","failure","login","checkAuth","dest","_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_cache","_unref","authState","_Fragment","_hoisted_3","_createVNode","EquivalentCommand","_hoisted_4","InfoHint","_hoisted_5","$event","_hoisted_6","_hoisted_7","_hoisted_8","ActionButton","_component_RouterLink"],"mappings":"uvBAmBA,MAAMA,EAASC,EAAA,EACTC,EAAQC,EAAA,EAERC,EAAWC,EAAI,EAAE,EACjBC,EAAWD,EAAI,EAAE,EACjBE,EAAUF,EAAI,EAAK,EACnBG,EAAQH,EAAI,EAAE,EAEpB,eAAeI,GAAwB,CACrCF,EAAQ,MAAQ,GAChBC,EAAM,MAAQ,GACd,MAAME,EAAU,MAAMC,EAAMP,EAAS,MAAM,KAAA,EAAQE,EAAS,KAAK,EAEjE,GADAC,EAAQ,MAAQ,GACZG,EAAS,CACXF,EAAM,MAAQE,EACdJ,EAAS,MAAQ,GACjB,MACF,CACA,MAAMM,EAAA,EAEN,MAAMC,EAAO,OAAOX,EAAM,MAAM,MAAS,UAAYA,EAAM,MAAM,KAAK,WAAW,GAAG,EAChFA,EAAM,MAAM,KACZ,IACCF,EAAO,QAAQa,CAAI,CAC1B,uCAIE,OAAAC,EAAA,EAAAC,EAsEM,MAtENC,EAsEM,CArEJC,EAoEM,MApENC,EAoEM,CAnEJC,EAAA,EAAA,IAAAA,EAAA,EAAA,EAAAF,EAAyE,KAAA,CAArE,MAAA,CAAA,YAAA,cAAA,gBAAA,YAAA,EAAyD,UAAO,EAAA,GAEpDG,EAAAC,CAAA,EAAU,WAAQ,QAAlCN,EA8BWO,EAAA,CAAA,IAAA,CAAA,EAAA,CA7BTH,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAF,E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