@websublime/vite-plugin-open-api-devtools 0.8.2 → 0.8.3

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 (49) hide show
  1. package/dist/{ModelsPage-DgFhUiBH.js → ModelsPage-DtwVBgEq.js} +6 -6
  2. package/dist/{ModelsPage-DgFhUiBH.js.map → ModelsPage-DtwVBgEq.js.map} +1 -1
  3. package/dist/{RoutesPage-DpasQCnt.js → RoutesPage-DVaFf1b6.js} +4 -4
  4. package/dist/{RoutesPage-DpasQCnt.js.map → RoutesPage-DVaFf1b6.js.map} +1 -1
  5. package/dist/{SimulatorPage-CDTgl8ax.js → SimulatorPage-QuwXPwEn.js} +4 -4
  6. package/dist/{SimulatorPage-CDTgl8ax.js.map → SimulatorPage-QuwXPwEn.js.map} +1 -1
  7. package/dist/{TimelinePage-CLlD6uZ8.js → TimelinePage-CYGTXXoL.js} +7 -7
  8. package/dist/{TimelinePage-CLlD6uZ8.js.map → TimelinePage-CYGTXXoL.js.map} +1 -1
  9. package/dist/{check-D8w72KaI.js → check-C8somSxy.js} +2 -2
  10. package/dist/{check-D8w72KaI.js.map → check-C8somSxy.js.map} +1 -1
  11. package/dist/devtools.css +1 -1
  12. package/dist/devtools.js +1 -1
  13. package/dist/devtools.umd.cjs +1 -1
  14. package/dist/devtools.umd.cjs.map +1 -1
  15. package/dist/{format-Bs9S93C7.js → format-9UQBRrMl.js} +2 -2
  16. package/dist/{format-Bs9S93C7.js.map → format-9UQBRrMl.js.map} +1 -1
  17. package/dist/{main-DUNgny3E.js → main-B4KUU1eG.js} +5 -5
  18. package/dist/{main-DUNgny3E.js.map → main-B4KUU1eG.js.map} +1 -1
  19. package/dist/spa/assets/{ModelsPage-BslYlawu.css → ModelsPage-8J4ivXTd.css} +1 -1
  20. package/dist/spa/assets/{ModelsPage-Ef8Z_K5t.js → ModelsPage-CGAzOf6p.js} +3 -3
  21. package/dist/spa/assets/{ModelsPage-Ef8Z_K5t.js.map → ModelsPage-CGAzOf6p.js.map} +1 -1
  22. package/dist/spa/assets/{RoutesPage-Rs-CBlOu.js → RoutesPage-DRs9ZFX4.js} +2 -2
  23. package/dist/spa/assets/{RoutesPage-Rs-CBlOu.js.map → RoutesPage-DRs9ZFX4.js.map} +1 -1
  24. package/dist/spa/assets/{SimulatorPage-CNh6VflM.js → SimulatorPage-DFNoxcRv.js} +2 -2
  25. package/dist/spa/assets/{SimulatorPage-CNh6VflM.js.map → SimulatorPage-DFNoxcRv.js.map} +1 -1
  26. package/dist/spa/assets/{TimelinePage-2YaDXdDB.js → TimelinePage-nthQiIag.js} +2 -2
  27. package/dist/spa/assets/{TimelinePage-2YaDXdDB.js.map → TimelinePage-nthQiIag.js.map} +1 -1
  28. package/dist/spa/assets/check-DPkOzfFg.js +2 -0
  29. package/dist/spa/assets/{check-CLk5nWxQ.js.map → check-DPkOzfFg.js.map} +1 -1
  30. package/dist/spa/assets/{format-YtVMCGJx.js → format-BBKRcMH2.js} +2 -2
  31. package/dist/spa/assets/{format-YtVMCGJx.js.map → format-BBKRcMH2.js.map} +1 -1
  32. package/dist/spa/assets/{index-sPgNGnaU.js → index-OjSRPocP.js} +3 -3
  33. package/dist/spa/assets/{index-sPgNGnaU.js.map → index-OjSRPocP.js.map} +1 -1
  34. package/dist/spa/assets/{trash-2-DCsOAZPr.js → trash-2-DVdyPNM4.js} +2 -2
  35. package/dist/spa/assets/{trash-2-DCsOAZPr.js.map → trash-2-DVdyPNM4.js.map} +1 -1
  36. package/dist/spa/assets/{triangle-alert-DD8Mz05K.js → triangle-alert-COSegcUH.js} +2 -2
  37. package/dist/spa/assets/{triangle-alert-DD8Mz05K.js.map → triangle-alert-COSegcUH.js.map} +1 -1
  38. package/dist/spa/assets/x-DC0rfJtM.js +2 -0
  39. package/dist/spa/assets/{x-5pbhNHo3.js.map → x-DC0rfJtM.js.map} +1 -1
  40. package/dist/spa/index.html +1 -1
  41. package/dist/{trash-2-BaiQpXqE.js → trash-2-BXKjlLnv.js} +2 -2
  42. package/dist/{trash-2-BaiQpXqE.js.map → trash-2-BXKjlLnv.js.map} +1 -1
  43. package/dist/{triangle-alert-CIaC9iQP.js → triangle-alert-BmO71UYi.js} +2 -2
  44. package/dist/{triangle-alert-CIaC9iQP.js.map → triangle-alert-BmO71UYi.js.map} +1 -1
  45. package/dist/{x-BI73Bc0z.js → x-cjNeCV9f.js} +2 -2
  46. package/dist/{x-BI73Bc0z.js.map → x-cjNeCV9f.js.map} +1 -1
  47. package/package.json +12 -12
  48. package/dist/spa/assets/check-CLk5nWxQ.js +0 -2
  49. package/dist/spa/assets/x-5pbhNHo3.js +0 -2
@@ -1,4 +1,4 @@
1
- import { c as e } from "./main-DUNgny3E.js";
1
+ import { c as e } from "./main-B4KUU1eG.js";
2
2
  const t = e("chevron-down", [
3
3
  ["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
4
4
  ]);
@@ -32,4 +32,4 @@ export {
32
32
  o as b,
33
33
  s as g
34
34
  };
35
- //# sourceMappingURL=format-Bs9S93C7.js.map
35
+ //# sourceMappingURL=format-9UQBRrMl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"format-Bs9S93C7.js","sources":["../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-down.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-right.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-up.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/funnel.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/search.js","../src/utils/format.ts"],"sourcesContent":["/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst ChevronDown = createLucideIcon(\"chevron-down\", [\n [\"path\", { d: \"m6 9 6 6 6-6\", key: \"qrunsl\" }]\n]);\n\nexport { ChevronDown as default };\n//# sourceMappingURL=chevron-down.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst ChevronRight = createLucideIcon(\"chevron-right\", [\n [\"path\", { d: \"m9 18 6-6-6-6\", key: \"mthhwq\" }]\n]);\n\nexport { ChevronRight as default };\n//# sourceMappingURL=chevron-right.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst ChevronUp = createLucideIcon(\"chevron-up\", [\n [\"path\", { d: \"m18 15-6-6-6 6\", key: \"153udz\" }]\n]);\n\nexport { ChevronUp as default };\n//# sourceMappingURL=chevron-up.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Funnel = createLucideIcon(\"funnel\", [\n [\n \"path\",\n {\n d: \"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z\",\n key: \"sc7q7i\"\n }\n ]\n]);\n\nexport { Funnel as default };\n//# sourceMappingURL=funnel.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Search = createLucideIcon(\"search\", [\n [\"path\", { d: \"m21 21-4.34-4.34\", key: \"14j7rj\" }],\n [\"circle\", { cx: \"11\", cy: \"11\", r: \"8\", key: \"4ej97u\" }]\n]);\n\nexport { Search as default };\n//# sourceMappingURL=search.js.map\n","/**\n * Format Utilities\n *\n * What: Shared formatting functions for display purposes\n * How: Provides consistent formatting across components\n * Why: Centralizes common formatting logic to avoid duplication (DRY)\n *\n * @module utils/format\n */\n\n/**\n * Get display label for HTTP method\n *\n * Converts an HTTP method to its uppercase display format.\n *\n * @param method - The HTTP method string (e.g., 'get', 'post')\n * @returns The uppercase method label (e.g., 'GET', 'POST')\n *\n * @example\n * getMethodLabel('get') // Returns 'GET'\n * getMethodLabel('post') // Returns 'POST'\n */\nexport function getMethodLabel(method: string): string {\n return method.toUpperCase();\n}\n"],"names":["ChevronDown","createLucideIcon","ChevronRight","ChevronUp","Funnel","Search","getMethodLabel","method"],"mappings":";AASK,MAACA,IAAcC,EAAiB,gBAAgB;AAAA,EACnD,CAAC,QAAQ,EAAE,GAAG,gBAAgB,KAAK,SAAQ,CAAE;AAC/C,CAAC;ACFI,MAACC,IAAeD,EAAiB,iBAAiB;AAAA,EACrD,CAAC,QAAQ,EAAE,GAAG,iBAAiB,KAAK,SAAQ,CAAE;AAChD,CAAC;ACFI,MAACE,IAAYF,EAAiB,cAAc;AAAA,EAC/C,CAAC,QAAQ,EAAE,GAAG,kBAAkB,KAAK,SAAQ,CAAE;AACjD,CAAC;ACFI,MAACG,IAASH,EAAiB,UAAU;AAAA,EACxC;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA,IACX;AAAA,EACA;AACA,CAAC;ACRI,MAACI,IAASJ,EAAiB,UAAU;AAAA,EACxC,CAAC,QAAQ,EAAE,GAAG,oBAAoB,KAAK,SAAQ,CAAE;AAAA,EACjD,CAAC,UAAU,EAAE,IAAI,MAAM,IAAI,MAAM,GAAG,KAAK,KAAK,SAAQ,CAAE;AAC1D,CAAC;ACUM,SAASK,EAAeC,GAAwB;AACrD,SAAOA,EAAO,YAAA;AAChB;","x_google_ignoreList":[0,1,2,3,4]}
1
+ {"version":3,"file":"format-9UQBRrMl.js","sources":["../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-down.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-right.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-up.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/funnel.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/search.js","../src/utils/format.ts"],"sourcesContent":["/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst ChevronDown = createLucideIcon(\"chevron-down\", [\n [\"path\", { d: \"m6 9 6 6 6-6\", key: \"qrunsl\" }]\n]);\n\nexport { ChevronDown as default };\n//# sourceMappingURL=chevron-down.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst ChevronRight = createLucideIcon(\"chevron-right\", [\n [\"path\", { d: \"m9 18 6-6-6-6\", key: \"mthhwq\" }]\n]);\n\nexport { ChevronRight as default };\n//# sourceMappingURL=chevron-right.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst ChevronUp = createLucideIcon(\"chevron-up\", [\n [\"path\", { d: \"m18 15-6-6-6 6\", key: \"153udz\" }]\n]);\n\nexport { ChevronUp as default };\n//# sourceMappingURL=chevron-up.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Funnel = createLucideIcon(\"funnel\", [\n [\n \"path\",\n {\n d: \"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z\",\n key: \"sc7q7i\"\n }\n ]\n]);\n\nexport { Funnel as default };\n//# sourceMappingURL=funnel.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Search = createLucideIcon(\"search\", [\n [\"path\", { d: \"m21 21-4.34-4.34\", key: \"14j7rj\" }],\n [\"circle\", { cx: \"11\", cy: \"11\", r: \"8\", key: \"4ej97u\" }]\n]);\n\nexport { Search as default };\n//# sourceMappingURL=search.js.map\n","/**\n * Format Utilities\n *\n * What: Shared formatting functions for display purposes\n * How: Provides consistent formatting across components\n * Why: Centralizes common formatting logic to avoid duplication (DRY)\n *\n * @module utils/format\n */\n\n/**\n * Get display label for HTTP method\n *\n * Converts an HTTP method to its uppercase display format.\n *\n * @param method - The HTTP method string (e.g., 'get', 'post')\n * @returns The uppercase method label (e.g., 'GET', 'POST')\n *\n * @example\n * getMethodLabel('get') // Returns 'GET'\n * getMethodLabel('post') // Returns 'POST'\n */\nexport function getMethodLabel(method: string): string {\n return method.toUpperCase();\n}\n"],"names":["ChevronDown","createLucideIcon","ChevronRight","ChevronUp","Funnel","Search","getMethodLabel","method"],"mappings":";AASK,MAACA,IAAcC,EAAiB,gBAAgB;AAAA,EACnD,CAAC,QAAQ,EAAE,GAAG,gBAAgB,KAAK,SAAQ,CAAE;AAC/C,CAAC;ACFI,MAACC,IAAeD,EAAiB,iBAAiB;AAAA,EACrD,CAAC,QAAQ,EAAE,GAAG,iBAAiB,KAAK,SAAQ,CAAE;AAChD,CAAC;ACFI,MAACE,IAAYF,EAAiB,cAAc;AAAA,EAC/C,CAAC,QAAQ,EAAE,GAAG,kBAAkB,KAAK,SAAQ,CAAE;AACjD,CAAC;ACFI,MAACG,IAASH,EAAiB,UAAU;AAAA,EACxC;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA,IACX;AAAA,EACA;AACA,CAAC;ACRI,MAACI,IAASJ,EAAiB,UAAU;AAAA,EACxC,CAAC,QAAQ,EAAE,GAAG,oBAAoB,KAAK,SAAQ,CAAE;AAAA,EACjD,CAAC,UAAU,EAAE,IAAI,MAAM,IAAI,MAAM,GAAG,KAAK,KAAK,SAAQ,CAAE;AAC1D,CAAC;ACUM,SAASK,EAAeC,GAAwB;AACrD,SAAOA,EAAO,YAAA;AAChB;","x_google_ignoreList":[0,1,2,3,4]}
@@ -263,7 +263,7 @@ const ae = [
263
263
  {
264
264
  path: "/routes",
265
265
  name: "routes",
266
- component: () => import("./RoutesPage-DpasQCnt.js"),
266
+ component: () => import("./RoutesPage-DVaFf1b6.js"),
267
267
  meta: {
268
268
  title: "Routes",
269
269
  icon: "route"
@@ -272,7 +272,7 @@ const ae = [
272
272
  {
273
273
  path: "/timeline",
274
274
  name: "timeline",
275
- component: () => import("./TimelinePage-CLlD6uZ8.js"),
275
+ component: () => import("./TimelinePage-CYGTXXoL.js"),
276
276
  meta: {
277
277
  title: "Timeline",
278
278
  icon: "clock"
@@ -281,7 +281,7 @@ const ae = [
281
281
  {
282
282
  path: "/models",
283
283
  name: "models",
284
- component: () => import("./ModelsPage-DgFhUiBH.js"),
284
+ component: () => import("./ModelsPage-DtwVBgEq.js"),
285
285
  meta: {
286
286
  title: "Models",
287
287
  icon: "database"
@@ -290,7 +290,7 @@ const ae = [
290
290
  {
291
291
  path: "/simulator",
292
292
  name: "simulator",
293
- component: () => import("./SimulatorPage-CDTgl8ax.js"),
293
+ component: () => import("./SimulatorPage-QuwXPwEn.js"),
294
294
  meta: {
295
295
  title: "Simulator",
296
296
  icon: "zap"
@@ -534,4 +534,4 @@ export {
534
534
  S as c,
535
535
  Le as u
536
536
  };
537
- //# sourceMappingURL=main-DUNgny3E.js.map
537
+ //# sourceMappingURL=main-B4KUU1eG.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"main-DUNgny3E.js","sources":["../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/shared/src/utils.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/defaultAttributes.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/Icon.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/createLucideIcon.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/clock.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/database.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/route.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/wifi-off.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/wifi.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/zap.js","../src/composables/useWebSocket.ts","../src/router.ts","../src/App.vue","../src/composables/useTheme.ts","../src/main.ts"],"sourcesContent":["/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase();\nconst toCamelCase = (string) => string.replace(\n /^([A-Z])|[\\s-_]+(\\w)/g,\n (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()\n);\nconst toPascalCase = (string) => {\n const camelCase = toCamelCase(string);\n return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);\n};\nconst mergeClasses = (...classes) => classes.filter((className, index, array) => {\n return Boolean(className) && className.trim() !== \"\" && array.indexOf(className) === index;\n}).join(\" \").trim();\n\nexport { mergeClasses, toCamelCase, toKebabCase, toPascalCase };\n//# sourceMappingURL=utils.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nvar defaultAttributes = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n \"stroke-width\": 2,\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\"\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { h } from 'vue';\nimport { mergeClasses, toKebabCase, toPascalCase } from './shared/src/utils.js';\nimport defaultAttributes from './defaultAttributes.js';\n\nconst Icon = ({ size, strokeWidth = 2, absoluteStrokeWidth, color, iconNode, name, class: classes, ...props }, { slots }) => {\n return h(\n \"svg\",\n {\n ...defaultAttributes,\n width: size || defaultAttributes.width,\n height: size || defaultAttributes.height,\n stroke: color || defaultAttributes.stroke,\n \"stroke-width\": absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,\n class: mergeClasses(\n \"lucide\",\n ...name ? [`lucide-${toKebabCase(toPascalCase(name))}-icon`, `lucide-${toKebabCase(name)}`] : [\"lucide-icon\"]\n ),\n ...props\n },\n [...iconNode.map((child) => h(...child)), ...slots.default ? [slots.default()] : []]\n );\n};\n\nexport { Icon as default };\n//# sourceMappingURL=Icon.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { h } from 'vue';\nimport Icon from './Icon.js';\n\nconst createLucideIcon = (iconName, iconNode) => (props, { slots }) => h(\n Icon,\n {\n ...props,\n iconNode,\n name: iconName\n },\n slots\n);\n\nexport { createLucideIcon as default };\n//# sourceMappingURL=createLucideIcon.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Clock = createLucideIcon(\"clock\", [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"polyline\", { points: \"12 6 12 12 16 14\", key: \"68esgv\" }]\n]);\n\nexport { Clock as default };\n//# sourceMappingURL=clock.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Database = createLucideIcon(\"database\", [\n [\"ellipse\", { cx: \"12\", cy: \"5\", rx: \"9\", ry: \"3\", key: \"msslwz\" }],\n [\"path\", { d: \"M3 5V19A9 3 0 0 0 21 19V5\", key: \"1wlel7\" }],\n [\"path\", { d: \"M3 12A9 3 0 0 0 21 12\", key: \"mv7ke4\" }]\n]);\n\nexport { Database as default };\n//# sourceMappingURL=database.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Route = createLucideIcon(\"route\", [\n [\"circle\", { cx: \"6\", cy: \"19\", r: \"3\", key: \"1kj8tv\" }],\n [\"path\", { d: \"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15\", key: \"1d8sl\" }],\n [\"circle\", { cx: \"18\", cy: \"5\", r: \"3\", key: \"gq8acd\" }]\n]);\n\nexport { Route as default };\n//# sourceMappingURL=route.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst WifiOff = createLucideIcon(\"wifi-off\", [\n [\"path\", { d: \"M12 20h.01\", key: \"zekei9\" }],\n [\"path\", { d: \"M8.5 16.429a5 5 0 0 1 7 0\", key: \"1bycff\" }],\n [\"path\", { d: \"M5 12.859a10 10 0 0 1 5.17-2.69\", key: \"1dl1wf\" }],\n [\"path\", { d: \"M19 12.859a10 10 0 0 0-2.007-1.523\", key: \"4k23kn\" }],\n [\"path\", { d: \"M2 8.82a15 15 0 0 1 4.177-2.643\", key: \"1grhjp\" }],\n [\"path\", { d: \"M22 8.82a15 15 0 0 0-11.288-3.764\", key: \"z3jwby\" }],\n [\"path\", { d: \"m2 2 20 20\", key: \"1ooewy\" }]\n]);\n\nexport { WifiOff as default };\n//# sourceMappingURL=wifi-off.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Wifi = createLucideIcon(\"wifi\", [\n [\"path\", { d: \"M12 20h.01\", key: \"zekei9\" }],\n [\"path\", { d: \"M2 8.82a15 15 0 0 1 20 0\", key: \"dnpr2z\" }],\n [\"path\", { d: \"M5 12.859a10 10 0 0 1 14 0\", key: \"1x1e6c\" }],\n [\"path\", { d: \"M8.5 16.429a5 5 0 0 1 7 0\", key: \"1bycff\" }]\n]);\n\nexport { Wifi as default };\n//# sourceMappingURL=wifi.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Zap = createLucideIcon(\"zap\", [\n [\n \"path\",\n {\n d: \"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z\",\n key: \"1xq2db\"\n }\n ]\n]);\n\nexport { Zap as default };\n//# sourceMappingURL=zap.js.map\n","/**\n * useWebSocket Composable\n *\n * What: Provides reactive WebSocket connection management for the DevTools SPA\n * How: Manages WebSocket lifecycle with auto-reconnect and event subscription\n * Why: Enables real-time communication between DevTools and the mock server\n *\n * @module composables/useWebSocket\n */\n\nimport type { ComputedRef } from 'vue';\nimport { computed, getCurrentInstance, onMounted, ref } from 'vue';\n\n/**\n * Server event types that can be received from the server\n * These match the ServerEvent types defined in @websublime/vite-plugin-open-api-core\n */\nexport type ServerEventType =\n | 'connected'\n | 'request'\n | 'response'\n | 'timeline:cleared'\n | 'store:updated'\n | 'handler:reloaded'\n | 'handlers:updated'\n | 'seed:reloaded'\n | 'seeds:updated'\n | 'simulation:active'\n | 'simulation:added'\n | 'simulation:removed'\n | 'simulations:cleared'\n | 'registry'\n | 'timeline'\n | 'store'\n | 'store:set'\n | 'store:cleared'\n | 'simulation:set'\n | 'simulation:cleared'\n | 'reseeded'\n | 'error';\n\n/**\n * Server event structure\n */\nexport interface ServerEvent<T = unknown> {\n type: ServerEventType;\n data: T;\n}\n\n/**\n * Connected event data\n */\nexport interface ConnectedEventData {\n serverVersion: string;\n}\n\n/**\n * Client command types that can be sent to the server\n */\nexport type ClientCommandType =\n | 'get:registry'\n | 'get:timeline'\n | 'get:store'\n | 'set:store'\n | 'clear:store'\n | 'set:simulation'\n | 'clear:simulation'\n | 'clear:timeline'\n | 'reseed';\n\n/**\n * Client command structure\n */\nexport interface ClientCommand<T = unknown> {\n type: ClientCommandType;\n data?: T;\n}\n\n/**\n * WebSocket connection state\n */\nexport type ConnectionState = 'disconnected' | 'connecting' | 'connected' | 'reconnecting';\n\n/**\n * Event handler function type\n */\nexport type EventHandler<T = unknown> = (data: T) => void;\n\n/**\n * Configuration options for useWebSocket\n */\nexport interface UseWebSocketOptions {\n /**\n * WebSocket URL path (default: '/_ws')\n */\n path?: string;\n\n /**\n * Reconnection delay in milliseconds (default: 2000)\n */\n reconnectDelay?: number;\n\n /**\n * Maximum reconnection attempts (default: Infinity)\n */\n maxReconnectAttempts?: number;\n\n /**\n * Whether to auto-connect on mount (default: true)\n */\n autoConnect?: boolean;\n}\n\n/**\n * Return type for useWebSocket composable\n *\n * Provides explicit typing for the composable return value as required by CLAUDE.md\n */\nexport interface UseWebSocketReturn {\n /** Current connection state */\n connectionState: ComputedRef<ConnectionState>;\n /** Whether the WebSocket is connected */\n connected: ComputedRef<boolean>;\n /** Whether the WebSocket is attempting to reconnect */\n isReconnecting: ComputedRef<boolean>;\n /** Server version received on connection */\n serverVersion: ComputedRef<string | null>;\n /** Number of reconnection attempts made */\n reconnectAttempts: ComputedRef<number>;\n /** Connect to the WebSocket server */\n connect: () => void;\n /** Disconnect from the WebSocket server */\n disconnect: () => void;\n /** Send a command to the server */\n send: <T = unknown>(command: ClientCommand<T>) => boolean;\n /** Subscribe to a server event */\n on: <T = unknown>(event: ServerEventType | '*', handler: EventHandler<T>) => () => void;\n /** Unsubscribe from a server event */\n off: <T = unknown>(event: ServerEventType | '*', handler: EventHandler<T>) => void;\n /**\n * Subscribe to an event and automatically unsubscribe after the first invocation.\n * This is a standard one-shot subscription.\n */\n once: <T = unknown>(event: ServerEventType | '*', handler: EventHandler<T>) => () => void;\n /**\n * Subscribe to an event and unsubscribe when the handler returns true.\n * Useful for conditional one-time events where you need to wait for specific data.\n */\n onUntil: <T = unknown>(\n event: ServerEventType | '*',\n handler: (data: T) => boolean | undefined,\n ) => () => void;\n /** Reset the composable state (useful for testing) */\n resetState: () => void;\n}\n\n/**\n * Default options\n */\nconst DEFAULT_OPTIONS: Required<UseWebSocketOptions> = {\n path: '/_ws',\n reconnectDelay: 2000,\n maxReconnectAttempts: Number.POSITIVE_INFINITY,\n autoConnect: true,\n};\n\n/**\n * Singleton state for WebSocket - shared across all component instances\n */\nconst connectionState = ref<ConnectionState>('disconnected');\nconst serverVersion = ref<string | null>(null);\nconst reconnectAttempts = ref(0);\n\n/**\n * Store the WebSocket instance and configuration\n */\nlet ws: WebSocket | null = null;\nlet reconnectTimer: ReturnType<typeof setTimeout> | null = null;\nlet currentOptions: Required<UseWebSocketOptions> = { ...DEFAULT_OPTIONS };\n\n/**\n * Flag to track if options have been initialized\n * Options are only set on the first call to useWebSocket or when disconnected\n */\nlet optionsInitialized = false;\n\n/**\n * Event handlers map - stores handlers for each event type\n */\nconst eventHandlers = new Map<string, Set<EventHandler>>();\n\n/**\n * Check if we're running in a browser environment\n */\nfunction isBrowser(): boolean {\n return typeof window !== 'undefined' && typeof WebSocket !== 'undefined';\n}\n\n/**\n * Check if we're inside a Vue component context\n */\nfunction hasComponentContext(): boolean {\n return getCurrentInstance() !== null;\n}\n\n/**\n * Build the WebSocket URL based on current location\n */\nfunction buildWebSocketUrl(path: string): string {\n if (!isBrowser()) {\n return `ws://localhost${path}`;\n }\n\n const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';\n return `${protocol}//${window.location.host}${path}`;\n}\n\n/**\n * Clear the reconnect timer if active\n */\nfunction clearReconnectTimer(): void {\n if (reconnectTimer !== null) {\n clearTimeout(reconnectTimer);\n reconnectTimer = null;\n }\n}\n\n/**\n * Dispatch an event to all registered handlers\n */\nfunction dispatchEvent(type: string, data: unknown): void {\n const handlers = eventHandlers.get(type);\n if (handlers) {\n for (const handler of handlers) {\n try {\n handler(data);\n } catch (error) {\n console.error(`[DevTools WebSocket] Error in event handler for '${type}':`, error);\n }\n }\n }\n\n // Also dispatch to wildcard handlers\n const wildcardHandlers = eventHandlers.get('*');\n if (wildcardHandlers) {\n for (const handler of wildcardHandlers) {\n try {\n handler({ type, data });\n } catch (error) {\n console.error('[DevTools WebSocket] Error in wildcard event handler:', error);\n }\n }\n }\n}\n\n/**\n * Handle WebSocket open event\n */\nfunction handleOpen(): void {\n connectionState.value = 'connected';\n reconnectAttempts.value = 0;\n clearReconnectTimer();\n\n if (import.meta.env.DEV) {\n console.log('[DevTools WebSocket] Connected');\n }\n}\n\n/**\n * Handle WebSocket message event\n */\nfunction handleMessage(event: MessageEvent): void {\n try {\n const message = JSON.parse(event.data) as ServerEvent;\n\n // Handle connected event specially to extract server version\n if (message.type === 'connected') {\n const connectedData = message.data as ConnectedEventData;\n serverVersion.value = connectedData.serverVersion;\n\n if (import.meta.env.DEV) {\n console.log(`[DevTools WebSocket] Server version: ${connectedData.serverVersion}`);\n }\n }\n\n // Dispatch to registered handlers\n dispatchEvent(message.type, message.data);\n } catch (error) {\n console.error('[DevTools WebSocket] Failed to parse message:', error);\n }\n}\n\n/**\n * Handle WebSocket close event\n */\nfunction handleClose(): void {\n const wasConnected = connectionState.value === 'connected';\n connectionState.value = 'disconnected';\n ws = null;\n\n if (wasConnected && import.meta.env.DEV) {\n console.log('[DevTools WebSocket] Disconnected');\n }\n\n // Attempt to reconnect if within limits\n if (reconnectAttempts.value < currentOptions.maxReconnectAttempts) {\n connectionState.value = 'reconnecting';\n reconnectAttempts.value++;\n\n if (import.meta.env.DEV) {\n console.log(\n `[DevTools WebSocket] Reconnecting in ${currentOptions.reconnectDelay}ms (attempt ${reconnectAttempts.value})`,\n );\n }\n\n reconnectTimer = setTimeout(() => {\n connect();\n }, currentOptions.reconnectDelay);\n } else if (import.meta.env.DEV) {\n console.warn('[DevTools WebSocket] Max reconnection attempts reached');\n }\n}\n\n/**\n * Handle WebSocket error event\n */\nfunction handleError(event: Event): void {\n console.error('[DevTools WebSocket] Error:', event);\n}\n\n/**\n * Connect to the WebSocket server\n */\nfunction connect(): void {\n if (!isBrowser()) {\n if (import.meta.env.DEV) {\n console.warn('[DevTools WebSocket] Cannot connect outside browser environment');\n }\n return;\n }\n\n // Don't connect if already connected or connecting\n // Check connectionState first to prevent race condition when connect() is called rapidly\n if (\n connectionState.value === 'connecting' ||\n connectionState.value === 'connected' ||\n (ws && (ws.readyState === WebSocket.CONNECTING || ws.readyState === WebSocket.OPEN))\n ) {\n return;\n }\n\n // Clean up existing connection without resetting reconnect state\n cleanupConnection();\n\n connectionState.value = 'connecting';\n const url = buildWebSocketUrl(currentOptions.path);\n\n try {\n ws = new WebSocket(url);\n ws.onopen = handleOpen;\n ws.onmessage = handleMessage;\n ws.onclose = handleClose;\n ws.onerror = handleError;\n } catch (error) {\n console.error('[DevTools WebSocket] Failed to create WebSocket:', error);\n connectionState.value = 'disconnected';\n }\n}\n\n/**\n * Clean up WebSocket connection without resetting reconnect state.\n * Used internally when reconnecting.\n */\nfunction cleanupConnection(): void {\n if (ws) {\n // Remove event handlers to prevent close handler from triggering reconnect\n ws.onopen = null;\n ws.onmessage = null;\n ws.onclose = null;\n ws.onerror = null;\n\n if (ws.readyState === WebSocket.OPEN || ws.readyState === WebSocket.CONNECTING) {\n ws.close();\n }\n\n ws = null;\n }\n}\n\n/**\n * Disconnect from the WebSocket server\n */\nfunction disconnect(): void {\n clearReconnectTimer();\n cleanupConnection();\n\n connectionState.value = 'disconnected';\n reconnectAttempts.value = 0;\n}\n\n/**\n * Send a command to the server\n *\n * @param command - The command to send\n * @returns true if the command was sent, false otherwise\n */\nfunction send<T = unknown>(command: ClientCommand<T>): boolean {\n if (!ws || ws.readyState !== WebSocket.OPEN) {\n if (import.meta.env.DEV) {\n console.warn('[DevTools WebSocket] Cannot send command - not connected');\n }\n return false;\n }\n\n try {\n ws.send(JSON.stringify(command));\n return true;\n } catch (error) {\n console.error('[DevTools WebSocket] Failed to send command:', error);\n return false;\n }\n}\n\n/**\n * Subscribe to a server event\n *\n * @param event - The event type to subscribe to (or '*' for all events)\n * @param handler - The handler function to call when the event is received\n * @returns An unsubscribe function\n */\nfunction on<T = unknown>(event: ServerEventType | '*', handler: EventHandler<T>): () => void {\n if (!eventHandlers.has(event)) {\n eventHandlers.set(event, new Set());\n }\n\n const handlers = eventHandlers.get(event);\n if (handlers) {\n handlers.add(handler as EventHandler);\n }\n\n // Return unsubscribe function\n return () => {\n const currentHandlers = eventHandlers.get(event);\n if (currentHandlers) {\n currentHandlers.delete(handler as EventHandler);\n if (currentHandlers.size === 0) {\n eventHandlers.delete(event);\n }\n }\n };\n}\n\n/**\n * Unsubscribe from a server event\n *\n * @param event - The event type to unsubscribe from\n * @param handler - The handler function to remove\n */\nfunction off<T = unknown>(event: ServerEventType | '*', handler: EventHandler<T>): void {\n const handlers = eventHandlers.get(event);\n if (handlers) {\n handlers.delete(handler as EventHandler);\n if (handlers.size === 0) {\n eventHandlers.delete(event);\n }\n }\n}\n\n/**\n * Subscribe to an event and automatically unsubscribe after the first invocation.\n * This is a standard one-shot subscription - the handler is called exactly once.\n *\n * @param event - The event type to subscribe to\n * @param handler - The handler function to call once\n * @returns An unsubscribe function (can be used to cancel before the event fires)\n *\n * @example\n * ```typescript\n * // Wait for the first 'connected' event\n * once('connected', (data) => {\n * console.log('Connected with version:', data.serverVersion);\n * });\n * ```\n */\nfunction once<T = unknown>(event: ServerEventType | '*', handler: EventHandler<T>): () => void {\n const wrappedHandler: EventHandler<T> = (data) => {\n off(event, wrappedHandler);\n handler(data);\n };\n\n return on(event, wrappedHandler);\n}\n\n/**\n * Subscribe to an event and unsubscribe when the handler returns true.\n * Useful for conditional one-time events where you need to wait for specific data.\n *\n * @param event - The event type to subscribe to\n * @param handler - The handler function that returns true to unsubscribe\n * @returns An unsubscribe function\n *\n * @example\n * ```typescript\n * // Wait until we receive a response with status 200\n * onUntil('response', (data) => {\n * if (data.status === 200) {\n * console.log('Success response received');\n * return true; // Unsubscribe\n * }\n * return false; // Keep listening\n * });\n * ```\n */\nfunction onUntil<T = unknown>(\n event: ServerEventType | '*',\n handler: (data: T) => boolean | undefined,\n): () => void {\n const wrappedHandler: EventHandler<T> = (data) => {\n const result = handler(data);\n if (result === true) {\n off(event, wrappedHandler);\n }\n };\n\n return on(event, wrappedHandler);\n}\n\n/**\n * Reset the composable state (useful for testing)\n */\nfunction resetState(): void {\n disconnect();\n serverVersion.value = null;\n eventHandlers.clear();\n currentOptions = { ...DEFAULT_OPTIONS };\n optionsInitialized = false;\n}\n\n/**\n * useWebSocket composable\n *\n * Provides WebSocket connection management functionality including:\n * - Reactive connection state\n * - Auto-reconnect with configurable delay\n * - Event subscription system\n * - Command sending\n *\n * @param options - Configuration options\n * @returns WebSocket management utilities\n */\nexport function useWebSocket(options: UseWebSocketOptions = {}): UseWebSocketReturn {\n // Only merge options when not connected and not initialized, or when disconnected\n // This prevents race conditions when multiple components pass different options\n if (!optionsInitialized || connectionState.value === 'disconnected') {\n currentOptions = { ...DEFAULT_OPTIONS, ...options };\n optionsInitialized = true;\n }\n\n /**\n * Computed property indicating if the WebSocket is connected\n */\n const connected = computed(() => connectionState.value === 'connected');\n\n /**\n * Computed property indicating if the WebSocket is attempting to reconnect\n */\n const isReconnecting = computed(() => connectionState.value === 'reconnecting');\n\n // Note: We don't disconnect on component unmount because this is singleton state\n // and other components may still be using the connection.\n // The connection will be cleaned up when the page unloads.\n\n // Only register lifecycle hooks when inside a Vue component context\n if (hasComponentContext()) {\n onMounted(() => {\n if (currentOptions.autoConnect) {\n connect();\n }\n });\n }\n\n return {\n /**\n * Current connection state\n */\n connectionState: computed(() => connectionState.value),\n\n /**\n * Whether the WebSocket is connected\n */\n connected,\n\n /**\n * Whether the WebSocket is attempting to reconnect\n */\n isReconnecting,\n\n /**\n * Server version received on connection\n */\n serverVersion: computed(() => serverVersion.value),\n\n /**\n * Number of reconnection attempts made\n */\n reconnectAttempts: computed(() => reconnectAttempts.value),\n\n /**\n * Connect to the WebSocket server\n */\n connect,\n\n /**\n * Disconnect from the WebSocket server\n */\n disconnect,\n\n /**\n * Send a command to the server\n */\n send,\n\n /**\n * Subscribe to a server event\n */\n on,\n\n /**\n * Unsubscribe from a server event\n */\n off,\n\n /**\n * Subscribe to an event once (one-shot, auto-unsubscribes after first call)\n */\n once,\n\n /**\n * Subscribe to an event until handler returns true\n */\n onUntil,\n\n /**\n * Reset the composable state (useful for testing)\n */\n resetState,\n };\n}\n","/**\n * Vue Router Configuration\n *\n * What: Defines routing configuration for the DevTools SPA\n * How: Creates routes for each main page/tab in the application\n * Why: Enables navigation between different DevTools features\n */\n\nimport { createRouter, createWebHashHistory, type RouteRecordRaw } from 'vue-router';\n\n/**\n * Route definitions for the DevTools SPA\n *\n * Each route corresponds to a tab in the DevTools interface:\n * - Routes: Endpoint listing and details\n * - Timeline: Request/response log with real-time updates\n * - Models: Store data editor for viewing/modifying mock data\n * - Simulator: Error simulation controls\n */\nconst routes: RouteRecordRaw[] = [\n {\n path: '/',\n redirect: '/routes',\n },\n {\n path: '/routes',\n name: 'routes',\n component: () => import('@/pages/RoutesPage.vue'),\n meta: {\n title: 'Routes',\n icon: 'route',\n },\n },\n {\n path: '/timeline',\n name: 'timeline',\n component: () => import('@/pages/TimelinePage.vue'),\n meta: {\n title: 'Timeline',\n icon: 'clock',\n },\n },\n {\n path: '/models',\n name: 'models',\n component: () => import('@/pages/ModelsPage.vue'),\n meta: {\n title: 'Models',\n icon: 'database',\n },\n },\n {\n path: '/simulator',\n name: 'simulator',\n component: () => import('@/pages/SimulatorPage.vue'),\n meta: {\n title: 'Simulator',\n icon: 'zap',\n },\n },\n // Catch-all route for undefined paths - redirects to routes page\n {\n path: '/:pathMatch(.*)*',\n name: 'not-found',\n redirect: '/routes',\n },\n];\n\n/**\n * Create the router instance\n *\n * Uses hash history mode for compatibility when embedded in iframes\n * or served from arbitrary paths in the dev server\n */\nconst router = createRouter({\n history: createWebHashHistory(),\n routes,\n});\n\nexport { routes };\nexport default router;\n","<!--\n App.vue - Main Application Component\n\n What: Root component for the DevTools SPA\n How: Provides the main layout with header, tab navigation, and router view\n Why: Acts as the entry point for the Vue application and defines the overall structure\n-->\n\n<script setup lang=\"ts\">\nimport { Clock, Database, Route, Wifi, WifiOff, Zap } from 'lucide-vue-next';\nimport { computed } from 'vue';\nimport { useRoute, useRouter } from 'vue-router';\nimport { useWebSocket } from '@/composables/useWebSocket';\nimport { routes } from '@/router';\n\nconst route = useRoute();\nconst router = useRouter();\n\n// Navigation tabs derived from routes\nconst tabs = computed(() =>\n routes\n .filter((r) => r.name && r.meta?.title)\n .map((r) => ({\n name: r.name as string,\n path: r.path,\n title: r.meta?.title as string,\n icon: r.meta?.icon as string,\n })),\n);\n\n// Current active tab\nconst activeTab = computed(() => route.name as string);\n\n// Navigate to a tab\nfunction navigateTo(path: string): void {\n router.push(path);\n}\n\n// Icon component map\nconst iconMap: Record<string, typeof Route> = {\n route: Route,\n clock: Clock,\n database: Database,\n zap: Zap,\n};\n\n// Get icon with fallback for unknown icon names\nfunction getIcon(iconName: string): typeof Route {\n const icon = iconMap[iconName];\n if (!icon && import.meta.env.DEV) {\n console.warn(`[DevTools] Unknown icon name: \"${iconName}\". Using fallback.`);\n }\n return icon ?? Route;\n}\n\n// Connection status from WebSocket composable\nconst { connected: isConnected } = useWebSocket();\n</script>\n\n<template>\n <div class=\"app\">\n <!-- Header with branding and connection status -->\n <header class=\"app-header\">\n <div class=\"app-header__brand\">\n <Zap class=\"app-header__logo\" :size=\"20\" />\n <span class=\"app-header__title\">OpenAPI DevTools</span>\n </div>\n\n <!-- Tab Navigation -->\n <nav class=\"app-nav\" role=\"tablist\" aria-label=\"DevTools navigation\">\n <button\n v-for=\"tab in tabs\"\n :key=\"tab.name\"\n role=\"tab\"\n :aria-selected=\"activeTab === tab.name\"\n :aria-current=\"activeTab === tab.name ? 'true' : undefined\"\n :aria-controls=\"`panel-${tab.name}`\"\n :tabindex=\"0\"\n :class=\"[\n 'app-nav__tab',\n { 'app-nav__tab--active': activeTab === tab.name },\n ]\"\n @click=\"navigateTo(tab.path)\"\n >\n <component\n :is=\"getIcon(tab.icon)\"\n :size=\"16\"\n class=\"app-nav__icon\"\n />\n <span class=\"app-nav__label\">{{ tab.title }}</span>\n </button>\n </nav>\n\n <!-- Connection Status -->\n <div class=\"app-header__status\">\n <div class=\"connection-status\">\n <span\n :class=\"[\n 'connection-status__dot',\n isConnected\n ? 'connection-status__dot--connected'\n : 'connection-status__dot--disconnected',\n ]\"\n />\n <span class=\"connection-status__text\">\n {{ isConnected ? 'Connected' : 'Disconnected' }}\n </span>\n <component\n :is=\"isConnected ? Wifi : WifiOff\"\n :size=\"14\"\n class=\"connection-status__icon\"\n />\n </div>\n </div>\n </header>\n\n <!-- Main Content Area -->\n <main class=\"app-main\">\n <router-view v-slot=\"{ Component }\">\n <transition name=\"fade\" mode=\"out-in\">\n <component :is=\"Component\" />\n </transition>\n </router-view>\n </main>\n </div>\n</template>\n\n<style scoped>\n.app {\n display: flex;\n flex-direction: column;\n height: 100%;\n background-color: var(--devtools-bg);\n}\n\n/* Header styles */\n.app-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: var(--devtools-header-height);\n padding: 0 var(--devtools-space-md);\n background-color: var(--devtools-surface);\n border-bottom: 1px solid var(--devtools-border);\n position: sticky;\n top: 0;\n z-index: 100;\n}\n\n.app-header__brand {\n display: flex;\n align-items: center;\n gap: var(--devtools-space-sm);\n}\n\n.app-header__logo {\n color: var(--devtools-primary);\n}\n\n.app-header__title {\n font-weight: var(--font-weight-6);\n font-size: var(--font-size-1);\n color: var(--devtools-text);\n}\n\n.app-header__status {\n display: flex;\n align-items: center;\n}\n\n/* Navigation styles */\n.app-nav {\n display: flex;\n align-items: center;\n gap: var(--devtools-space-xs);\n height: 100%;\n}\n\n.app-nav__tab {\n display: flex;\n align-items: center;\n gap: var(--devtools-space-xs);\n height: 100%;\n padding: 0 var(--devtools-space-md);\n background: none;\n border: none;\n border-bottom: 2px solid transparent;\n color: var(--devtools-text-muted);\n font-family: var(--devtools-font-sans);\n font-size: var(--font-size-0);\n font-weight: var(--font-weight-5);\n cursor: pointer;\n transition: all var(--devtools-transition-fast);\n}\n\n.app-nav__tab:hover {\n color: var(--devtools-text);\n background-color: var(--devtools-surface-elevated);\n}\n\n.app-nav__tab:focus {\n outline: none;\n}\n\n.app-nav__tab:focus-visible {\n outline: 2px solid var(--devtools-primary);\n outline-offset: -2px;\n background-color: var(--devtools-surface-elevated);\n}\n\n/* High contrast mode support */\n@media (forced-colors: active) {\n .app-nav__tab:focus-visible {\n outline: 3px solid CanvasText;\n outline-offset: 2px;\n }\n}\n\n.app-nav__tab--active {\n color: var(--devtools-primary);\n border-bottom-color: var(--devtools-primary);\n}\n\n.app-nav__tab--active:focus-visible {\n outline-color: var(--devtools-primary-hover);\n}\n\n.app-nav__icon {\n flex-shrink: 0;\n}\n\n.app-nav__label {\n white-space: nowrap;\n}\n\n/* Connection status styles */\n.connection-status {\n display: flex;\n align-items: center;\n gap: var(--devtools-space-xs);\n font-size: var(--font-size-0);\n color: var(--devtools-text-muted);\n}\n\n.connection-status__icon {\n opacity: 0.7;\n}\n\n/* Main content styles */\n.app-main {\n flex: 1;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n}\n</style>\n\n<style>\n/* Page transition - must be unscoped to apply to router-view children */\n.fade-enter-active,\n.fade-leave-active {\n transition: opacity var(--devtools-transition-normal);\n}\n\n.fade-enter-from,\n.fade-leave-to {\n opacity: 0;\n}\n</style>\n","/**\n * useTheme Composable\n *\n * What: Provides reactive theme management for the DevTools SPA\n * How: Uses CSS class on document root and localStorage for persistence\n * Why: Allows users to switch between dark and light mode, respecting system preference\n */\n\nimport { computed, getCurrentInstance, onMounted, onUnmounted, ref, watch } from 'vue';\n\n/**\n * Theme mode type\n */\nexport type ThemeMode = 'light' | 'dark' | 'system';\n\n/**\n * Valid theme modes for type guard validation\n */\nconst VALID_THEME_MODES: readonly ThemeMode[] = ['light', 'dark', 'system'];\n\n/**\n * Type guard to check if a value is a valid ThemeMode\n */\nfunction isThemeMode(value: unknown): value is ThemeMode {\n return typeof value === 'string' && VALID_THEME_MODES.includes(value as ThemeMode);\n}\n\n/**\n * Storage key for persisting theme preference\n */\nconst STORAGE_KEY = 'openapi-devtools-theme';\n\n/**\n * Singleton state for theme - shared across all component instances\n */\nconst themeMode = ref<ThemeMode>('system');\nconst systemPrefersDark = ref(false);\n\n/**\n * Track the current mediaQuery and handler for cleanup\n */\nlet currentMediaQuery: MediaQueryList | null = null;\nlet currentMediaHandler: ((e: MediaQueryListEvent) => void) | null = null;\n\n/**\n * Check if we're running in a browser environment\n */\nfunction isBrowser(): boolean {\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n}\n\n/**\n * Check if we're inside a Vue component context\n * This allows the composable to work both inside and outside components\n */\nfunction hasComponentContext(): boolean {\n return getCurrentInstance() !== null;\n}\n\n/**\n * useTheme composable\n *\n * Provides theme management functionality including:\n * - Reactive theme state\n * - System preference detection\n * - Theme toggling\n * - LocalStorage persistence\n *\n * @returns Theme management utilities\n */\nexport function useTheme() {\n /**\n * Computed property for the effective theme (resolved from system if needed)\n */\n const effectiveTheme = computed<'light' | 'dark'>(() => {\n if (themeMode.value === 'system') {\n return systemPrefersDark.value ? 'dark' : 'light';\n }\n return themeMode.value;\n });\n\n /**\n * Computed property indicating if dark mode is active\n */\n const isDark = computed(() => effectiveTheme.value === 'dark');\n\n /**\n * Apply the current theme to the document\n */\n function applyTheme(): void {\n if (!isBrowser()) return;\n\n const root = document.documentElement;\n\n if (effectiveTheme.value === 'dark') {\n root.classList.add('dark');\n root.classList.remove('light');\n } else {\n root.classList.add('light');\n root.classList.remove('dark');\n }\n }\n\n /**\n * Set the theme mode\n */\n function setTheme(mode: ThemeMode): void {\n if (!isThemeMode(mode)) {\n console.warn(`[DevTools] Invalid theme mode: ${mode}`);\n return;\n }\n\n themeMode.value = mode;\n\n if (isBrowser()) {\n try {\n localStorage.setItem(STORAGE_KEY, mode);\n } catch {\n // Storage unavailable (private browsing, quota exceeded, etc.)\n console.warn('[DevTools] Unable to persist theme preference');\n }\n }\n }\n\n /**\n * Toggle between light and dark mode\n * If currently in system mode, switch to the opposite of system preference\n */\n function toggleTheme(): void {\n if (themeMode.value === 'system') {\n // Switch to explicit mode opposite of system preference\n setTheme(systemPrefersDark.value ? 'light' : 'dark');\n } else {\n // Toggle between light and dark\n setTheme(themeMode.value === 'dark' ? 'light' : 'dark');\n }\n }\n\n /**\n * Reset to system preference\n */\n function resetToSystem(): void {\n setTheme('system');\n }\n\n /**\n * Clean up the media query listener\n */\n function cleanupMediaQuery(): void {\n if (currentMediaQuery && currentMediaHandler) {\n currentMediaQuery.removeEventListener('change', currentMediaHandler);\n currentMediaQuery = null;\n currentMediaHandler = null;\n }\n }\n\n /**\n * Initialize theme from storage and system preference\n */\n function initialize(): void {\n if (!isBrowser()) return;\n\n // Clean up any existing media query listener before adding a new one\n cleanupMediaQuery();\n\n // Check system preference\n const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');\n systemPrefersDark.value = mediaQuery.matches;\n\n // Create and store the handler for cleanup\n const handler = (e: MediaQueryListEvent): void => {\n systemPrefersDark.value = e.matches;\n };\n\n // Listen for system preference changes\n mediaQuery.addEventListener('change', handler);\n\n // Store references for cleanup\n currentMediaQuery = mediaQuery;\n currentMediaHandler = handler;\n\n // Load saved preference from localStorage\n try {\n const saved = localStorage.getItem(STORAGE_KEY);\n if (isThemeMode(saved)) {\n themeMode.value = saved;\n }\n } catch {\n // Storage unavailable (private browsing, etc.)\n }\n\n // Apply initial theme\n applyTheme();\n }\n\n /**\n * Reset theme state to defaults (useful for testing)\n * This resets the singleton state and cleans up listeners\n */\n function resetState(): void {\n cleanupMediaQuery();\n themeMode.value = 'system';\n systemPrefersDark.value = false;\n\n if (isBrowser()) {\n const root = document.documentElement;\n root.classList.remove('dark', 'light');\n\n try {\n localStorage.removeItem(STORAGE_KEY);\n } catch {\n // Storage unavailable\n }\n }\n }\n\n // Watch for theme changes and apply them\n watch([themeMode, systemPrefersDark], () => {\n applyTheme();\n });\n\n // Only register lifecycle hooks when inside a Vue component context\n // This allows the composable to be used in tests without Vue warnings\n if (hasComponentContext()) {\n // Initialize on mount\n onMounted(() => {\n initialize();\n });\n\n // Clean up on unmount\n onUnmounted(() => {\n cleanupMediaQuery();\n });\n }\n\n return {\n /**\n * Current theme mode setting ('light', 'dark', or 'system')\n */\n themeMode: computed(() => themeMode.value),\n\n /**\n * The effective theme after resolving 'system' mode\n */\n effectiveTheme,\n\n /**\n * Whether dark mode is currently active\n */\n isDark,\n\n /**\n * Whether the system prefers dark mode\n */\n systemPrefersDark: computed(() => systemPrefersDark.value),\n\n /**\n * Set the theme mode\n */\n setTheme,\n\n /**\n * Toggle between light and dark mode\n */\n toggleTheme,\n\n /**\n * Reset to system preference\n */\n resetToSystem,\n\n /**\n * Manually initialize theme (useful for SSR hydration)\n */\n initialize,\n\n /**\n * Reset theme state to defaults (useful for testing)\n */\n resetState,\n };\n}\n","/**\n * Main Entry Point for DevTools SPA\n *\n * What: Initializes and mounts the Vue application\n * How: Creates Vue app instance with Pinia and Vue Router\n * Why: Required entry point for the DevTools SPA\n */\n\nimport { createPinia } from 'pinia';\nimport type { App } from 'vue';\nimport { createApp } from 'vue';\n\nimport AppComponent from '@/App.vue';\nimport router from '@/router';\nimport { initializeStores } from '@/stores';\n\n// Import global styles\nimport '@/assets/main.css';\n\n/**\n * Module-scoped guard to ensure bootstrap only runs once\n */\nlet isBootstrapped = false;\nlet appInstance: App | null = null;\n\n/**\n * Create and configure the Vue application\n * This function is idempotent - calling it multiple times has no effect\n * after the first successful call.\n *\n * @returns The Vue app instance, or null if already bootstrapped\n */\nfunction bootstrap(): App | null {\n // Guard against multiple bootstrap calls\n if (isBootstrapped) {\n if (import.meta.env.DEV) {\n console.warn('[OpenAPI DevTools] Application already initialized, skipping bootstrap');\n }\n return appInstance;\n }\n\n // Create Vue app instance\n const app = createApp(AppComponent);\n\n // Create Pinia store instance\n const pinia = createPinia();\n\n // Install plugins\n app.use(pinia);\n app.use(router);\n\n // Initialize stores after Pinia is installed\n initializeStores();\n\n // Mount the app to the DOM\n app.mount('#app');\n\n // Mark as bootstrapped and store the instance\n isBootstrapped = true;\n appInstance = app;\n\n // Log startup info in development\n if (import.meta.env.DEV) {\n console.log('[OpenAPI DevTools] Application initialized');\n }\n\n return app;\n}\n\n// Only auto-bootstrap when running as standalone app (index.html entry)\n// When imported as a library, consumers should call bootstrap() manually\nif (typeof window !== 'undefined' && document.getElementById('app')) {\n bootstrap();\n}\n\n/**\n * Export the bootstrap function for library consumers\n * who may want to manually initialize the DevTools\n */\nexport { bootstrap };\n\nexport type {\n ClientCommand,\n ClientCommandType,\n ConnectedEventData,\n ConnectionState,\n EventHandler,\n ServerEvent,\n ServerEventType,\n ThemeMode,\n UseWebSocketOptions,\n UseWebSocketReturn,\n} from '@/composables';\n// Re-export composables for library consumers\nexport { useTheme, useWebSocket } from '@/composables';\n"],"names":["toKebabCase","string","toCamelCase","match","p1","p2","toPascalCase","camelCase","mergeClasses","classes","className","index","array","defaultAttributes","Icon","size","strokeWidth","absoluteStrokeWidth","color","iconNode","name","props","slots","h","child","createLucideIcon","iconName","Clock","Database","Route","WifiOff","Wifi","Zap","DEFAULT_OPTIONS","connectionState","ref","serverVersion","reconnectAttempts","ws","reconnectTimer","currentOptions","optionsInitialized","eventHandlers","isBrowser","hasComponentContext","getCurrentInstance","buildWebSocketUrl","path","clearReconnectTimer","dispatchEvent","type","data","handlers","handler","error","wildcardHandlers","handleOpen","handleMessage","event","message","connectedData","handleClose","connect","handleError","cleanupConnection","url","disconnect","send","command","on","currentHandlers","off","once","wrappedHandler","onUntil","resetState","useWebSocket","options","connected","computed","isReconnecting","onMounted","routes","router","createRouter","createWebHashHistory","route","useRoute","useRouter","tabs","r","activeTab","navigateTo","iconMap","getIcon","isConnected","_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","_createVNode","_unref","_cache","_hoisted_4","_Fragment","_renderList","tab","_normalizeClass","$event","_createBlock","_resolveDynamicComponent","_hoisted_6","_toDisplayString","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_component_router_view","_withCtx","Component","_Transition","VALID_THEME_MODES","isThemeMode","value","STORAGE_KEY","themeMode","systemPrefersDark","currentMediaQuery","currentMediaHandler","useTheme","effectiveTheme","isDark","applyTheme","root","setTheme","mode","toggleTheme","resetToSystem","cleanupMediaQuery","initialize","mediaQuery","e","saved","watch","onUnmounted","isBootstrapped","appInstance","bootstrap","app","createApp","AppComponent","pinia","createPinia"],"mappings":";;;AAOA,MAAMA,IAAc,CAACC,MAAWA,EAAO,QAAQ,sBAAsB,OAAO,EAAE,YAAW,GACnFC,KAAc,CAACD,MAAWA,EAAO;AAAA,EACrC;AAAA,EACA,CAACE,GAAOC,GAAIC,MAAOA,IAAKA,EAAG,YAAW,IAAKD,EAAG,YAAW;AAC3D,GACME,KAAe,CAACL,MAAW;AAC/B,QAAMM,IAAYL,GAAYD,CAAM;AACpC,SAAOM,EAAU,OAAO,CAAC,EAAE,YAAW,IAAKA,EAAU,MAAM,CAAC;AAC9D,GACMC,KAAe,IAAIC,MAAYA,EAAQ,OAAO,CAACC,GAAWC,GAAOC,MAC9D,EAAQF,KAAcA,EAAU,KAAI,MAAO,MAAME,EAAM,QAAQF,CAAS,MAAMC,CACtF,EAAE,KAAK,GAA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S9B,SAASC,KAAwB;AAE/B,MAAIF;AAIF,WAAOC;AAIT,QAAME,IAAMC,GAAUC,EAAY,GAG5BC,IAAQC,GAAA;AAGd,SAAAJ,EAAI,IAAIG,CAAK,GACbH,EAAI,IAAInE,EAAM,GAMdmE,EAAI,MAAM,MAAM,GAGhBH,IAAiB,IACjBC,IAAcE,GAOPA;AACT;AAII,OAAO,SAAW,OAAe,SAAS,eAAe,KAAK,KAChED,GAAA;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9]}
1
+ {"version":3,"file":"main-B4KUU1eG.js","sources":["../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/shared/src/utils.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/defaultAttributes.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/Icon.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/createLucideIcon.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/clock.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/database.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/route.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/wifi-off.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/wifi.js","../../../node_modules/.pnpm/lucide-vue-next@0.513.0_vue@3.5.27_typescript@5.9.3_/node_modules/lucide-vue-next/dist/esm/icons/zap.js","../src/composables/useWebSocket.ts","../src/router.ts","../src/App.vue","../src/composables/useTheme.ts","../src/main.ts"],"sourcesContent":["/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase();\nconst toCamelCase = (string) => string.replace(\n /^([A-Z])|[\\s-_]+(\\w)/g,\n (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()\n);\nconst toPascalCase = (string) => {\n const camelCase = toCamelCase(string);\n return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);\n};\nconst mergeClasses = (...classes) => classes.filter((className, index, array) => {\n return Boolean(className) && className.trim() !== \"\" && array.indexOf(className) === index;\n}).join(\" \").trim();\n\nexport { mergeClasses, toCamelCase, toKebabCase, toPascalCase };\n//# sourceMappingURL=utils.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nvar defaultAttributes = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n \"stroke-width\": 2,\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\"\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { h } from 'vue';\nimport { mergeClasses, toKebabCase, toPascalCase } from './shared/src/utils.js';\nimport defaultAttributes from './defaultAttributes.js';\n\nconst Icon = ({ size, strokeWidth = 2, absoluteStrokeWidth, color, iconNode, name, class: classes, ...props }, { slots }) => {\n return h(\n \"svg\",\n {\n ...defaultAttributes,\n width: size || defaultAttributes.width,\n height: size || defaultAttributes.height,\n stroke: color || defaultAttributes.stroke,\n \"stroke-width\": absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,\n class: mergeClasses(\n \"lucide\",\n ...name ? [`lucide-${toKebabCase(toPascalCase(name))}-icon`, `lucide-${toKebabCase(name)}`] : [\"lucide-icon\"]\n ),\n ...props\n },\n [...iconNode.map((child) => h(...child)), ...slots.default ? [slots.default()] : []]\n );\n};\n\nexport { Icon as default };\n//# sourceMappingURL=Icon.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { h } from 'vue';\nimport Icon from './Icon.js';\n\nconst createLucideIcon = (iconName, iconNode) => (props, { slots }) => h(\n Icon,\n {\n ...props,\n iconNode,\n name: iconName\n },\n slots\n);\n\nexport { createLucideIcon as default };\n//# sourceMappingURL=createLucideIcon.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Clock = createLucideIcon(\"clock\", [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"polyline\", { points: \"12 6 12 12 16 14\", key: \"68esgv\" }]\n]);\n\nexport { Clock as default };\n//# sourceMappingURL=clock.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Database = createLucideIcon(\"database\", [\n [\"ellipse\", { cx: \"12\", cy: \"5\", rx: \"9\", ry: \"3\", key: \"msslwz\" }],\n [\"path\", { d: \"M3 5V19A9 3 0 0 0 21 19V5\", key: \"1wlel7\" }],\n [\"path\", { d: \"M3 12A9 3 0 0 0 21 12\", key: \"mv7ke4\" }]\n]);\n\nexport { Database as default };\n//# sourceMappingURL=database.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Route = createLucideIcon(\"route\", [\n [\"circle\", { cx: \"6\", cy: \"19\", r: \"3\", key: \"1kj8tv\" }],\n [\"path\", { d: \"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15\", key: \"1d8sl\" }],\n [\"circle\", { cx: \"18\", cy: \"5\", r: \"3\", key: \"gq8acd\" }]\n]);\n\nexport { Route as default };\n//# sourceMappingURL=route.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst WifiOff = createLucideIcon(\"wifi-off\", [\n [\"path\", { d: \"M12 20h.01\", key: \"zekei9\" }],\n [\"path\", { d: \"M8.5 16.429a5 5 0 0 1 7 0\", key: \"1bycff\" }],\n [\"path\", { d: \"M5 12.859a10 10 0 0 1 5.17-2.69\", key: \"1dl1wf\" }],\n [\"path\", { d: \"M19 12.859a10 10 0 0 0-2.007-1.523\", key: \"4k23kn\" }],\n [\"path\", { d: \"M2 8.82a15 15 0 0 1 4.177-2.643\", key: \"1grhjp\" }],\n [\"path\", { d: \"M22 8.82a15 15 0 0 0-11.288-3.764\", key: \"z3jwby\" }],\n [\"path\", { d: \"m2 2 20 20\", key: \"1ooewy\" }]\n]);\n\nexport { WifiOff as default };\n//# sourceMappingURL=wifi-off.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Wifi = createLucideIcon(\"wifi\", [\n [\"path\", { d: \"M12 20h.01\", key: \"zekei9\" }],\n [\"path\", { d: \"M2 8.82a15 15 0 0 1 20 0\", key: \"dnpr2z\" }],\n [\"path\", { d: \"M5 12.859a10 10 0 0 1 14 0\", key: \"1x1e6c\" }],\n [\"path\", { d: \"M8.5 16.429a5 5 0 0 1 7 0\", key: \"1bycff\" }]\n]);\n\nexport { Wifi as default };\n//# sourceMappingURL=wifi.js.map\n","/**\n * @license lucide-vue-next v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Zap = createLucideIcon(\"zap\", [\n [\n \"path\",\n {\n d: \"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z\",\n key: \"1xq2db\"\n }\n ]\n]);\n\nexport { Zap as default };\n//# sourceMappingURL=zap.js.map\n","/**\n * useWebSocket Composable\n *\n * What: Provides reactive WebSocket connection management for the DevTools SPA\n * How: Manages WebSocket lifecycle with auto-reconnect and event subscription\n * Why: Enables real-time communication between DevTools and the mock server\n *\n * @module composables/useWebSocket\n */\n\nimport type { ComputedRef } from 'vue';\nimport { computed, getCurrentInstance, onMounted, ref } from 'vue';\n\n/**\n * Server event types that can be received from the server\n * These match the ServerEvent types defined in @websublime/vite-plugin-open-api-core\n */\nexport type ServerEventType =\n | 'connected'\n | 'request'\n | 'response'\n | 'timeline:cleared'\n | 'store:updated'\n | 'handler:reloaded'\n | 'handlers:updated'\n | 'seed:reloaded'\n | 'seeds:updated'\n | 'simulation:active'\n | 'simulation:added'\n | 'simulation:removed'\n | 'simulations:cleared'\n | 'registry'\n | 'timeline'\n | 'store'\n | 'store:set'\n | 'store:cleared'\n | 'simulation:set'\n | 'simulation:cleared'\n | 'reseeded'\n | 'error';\n\n/**\n * Server event structure\n */\nexport interface ServerEvent<T = unknown> {\n type: ServerEventType;\n data: T;\n}\n\n/**\n * Connected event data\n */\nexport interface ConnectedEventData {\n serverVersion: string;\n}\n\n/**\n * Client command types that can be sent to the server\n */\nexport type ClientCommandType =\n | 'get:registry'\n | 'get:timeline'\n | 'get:store'\n | 'set:store'\n | 'clear:store'\n | 'set:simulation'\n | 'clear:simulation'\n | 'clear:timeline'\n | 'reseed';\n\n/**\n * Client command structure\n */\nexport interface ClientCommand<T = unknown> {\n type: ClientCommandType;\n data?: T;\n}\n\n/**\n * WebSocket connection state\n */\nexport type ConnectionState = 'disconnected' | 'connecting' | 'connected' | 'reconnecting';\n\n/**\n * Event handler function type\n */\nexport type EventHandler<T = unknown> = (data: T) => void;\n\n/**\n * Configuration options for useWebSocket\n */\nexport interface UseWebSocketOptions {\n /**\n * WebSocket URL path (default: '/_ws')\n */\n path?: string;\n\n /**\n * Reconnection delay in milliseconds (default: 2000)\n */\n reconnectDelay?: number;\n\n /**\n * Maximum reconnection attempts (default: Infinity)\n */\n maxReconnectAttempts?: number;\n\n /**\n * Whether to auto-connect on mount (default: true)\n */\n autoConnect?: boolean;\n}\n\n/**\n * Return type for useWebSocket composable\n *\n * Provides explicit typing for the composable return value as required by CLAUDE.md\n */\nexport interface UseWebSocketReturn {\n /** Current connection state */\n connectionState: ComputedRef<ConnectionState>;\n /** Whether the WebSocket is connected */\n connected: ComputedRef<boolean>;\n /** Whether the WebSocket is attempting to reconnect */\n isReconnecting: ComputedRef<boolean>;\n /** Server version received on connection */\n serverVersion: ComputedRef<string | null>;\n /** Number of reconnection attempts made */\n reconnectAttempts: ComputedRef<number>;\n /** Connect to the WebSocket server */\n connect: () => void;\n /** Disconnect from the WebSocket server */\n disconnect: () => void;\n /** Send a command to the server */\n send: <T = unknown>(command: ClientCommand<T>) => boolean;\n /** Subscribe to a server event */\n on: <T = unknown>(event: ServerEventType | '*', handler: EventHandler<T>) => () => void;\n /** Unsubscribe from a server event */\n off: <T = unknown>(event: ServerEventType | '*', handler: EventHandler<T>) => void;\n /**\n * Subscribe to an event and automatically unsubscribe after the first invocation.\n * This is a standard one-shot subscription.\n */\n once: <T = unknown>(event: ServerEventType | '*', handler: EventHandler<T>) => () => void;\n /**\n * Subscribe to an event and unsubscribe when the handler returns true.\n * Useful for conditional one-time events where you need to wait for specific data.\n */\n onUntil: <T = unknown>(\n event: ServerEventType | '*',\n handler: (data: T) => boolean | undefined,\n ) => () => void;\n /** Reset the composable state (useful for testing) */\n resetState: () => void;\n}\n\n/**\n * Default options\n */\nconst DEFAULT_OPTIONS: Required<UseWebSocketOptions> = {\n path: '/_ws',\n reconnectDelay: 2000,\n maxReconnectAttempts: Number.POSITIVE_INFINITY,\n autoConnect: true,\n};\n\n/**\n * Singleton state for WebSocket - shared across all component instances\n */\nconst connectionState = ref<ConnectionState>('disconnected');\nconst serverVersion = ref<string | null>(null);\nconst reconnectAttempts = ref(0);\n\n/**\n * Store the WebSocket instance and configuration\n */\nlet ws: WebSocket | null = null;\nlet reconnectTimer: ReturnType<typeof setTimeout> | null = null;\nlet currentOptions: Required<UseWebSocketOptions> = { ...DEFAULT_OPTIONS };\n\n/**\n * Flag to track if options have been initialized\n * Options are only set on the first call to useWebSocket or when disconnected\n */\nlet optionsInitialized = false;\n\n/**\n * Event handlers map - stores handlers for each event type\n */\nconst eventHandlers = new Map<string, Set<EventHandler>>();\n\n/**\n * Check if we're running in a browser environment\n */\nfunction isBrowser(): boolean {\n return typeof window !== 'undefined' && typeof WebSocket !== 'undefined';\n}\n\n/**\n * Check if we're inside a Vue component context\n */\nfunction hasComponentContext(): boolean {\n return getCurrentInstance() !== null;\n}\n\n/**\n * Build the WebSocket URL based on current location\n */\nfunction buildWebSocketUrl(path: string): string {\n if (!isBrowser()) {\n return `ws://localhost${path}`;\n }\n\n const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';\n return `${protocol}//${window.location.host}${path}`;\n}\n\n/**\n * Clear the reconnect timer if active\n */\nfunction clearReconnectTimer(): void {\n if (reconnectTimer !== null) {\n clearTimeout(reconnectTimer);\n reconnectTimer = null;\n }\n}\n\n/**\n * Dispatch an event to all registered handlers\n */\nfunction dispatchEvent(type: string, data: unknown): void {\n const handlers = eventHandlers.get(type);\n if (handlers) {\n for (const handler of handlers) {\n try {\n handler(data);\n } catch (error) {\n console.error(`[DevTools WebSocket] Error in event handler for '${type}':`, error);\n }\n }\n }\n\n // Also dispatch to wildcard handlers\n const wildcardHandlers = eventHandlers.get('*');\n if (wildcardHandlers) {\n for (const handler of wildcardHandlers) {\n try {\n handler({ type, data });\n } catch (error) {\n console.error('[DevTools WebSocket] Error in wildcard event handler:', error);\n }\n }\n }\n}\n\n/**\n * Handle WebSocket open event\n */\nfunction handleOpen(): void {\n connectionState.value = 'connected';\n reconnectAttempts.value = 0;\n clearReconnectTimer();\n\n if (import.meta.env.DEV) {\n console.log('[DevTools WebSocket] Connected');\n }\n}\n\n/**\n * Handle WebSocket message event\n */\nfunction handleMessage(event: MessageEvent): void {\n try {\n const message = JSON.parse(event.data) as ServerEvent;\n\n // Handle connected event specially to extract server version\n if (message.type === 'connected') {\n const connectedData = message.data as ConnectedEventData;\n serverVersion.value = connectedData.serverVersion;\n\n if (import.meta.env.DEV) {\n console.log(`[DevTools WebSocket] Server version: ${connectedData.serverVersion}`);\n }\n }\n\n // Dispatch to registered handlers\n dispatchEvent(message.type, message.data);\n } catch (error) {\n console.error('[DevTools WebSocket] Failed to parse message:', error);\n }\n}\n\n/**\n * Handle WebSocket close event\n */\nfunction handleClose(): void {\n const wasConnected = connectionState.value === 'connected';\n connectionState.value = 'disconnected';\n ws = null;\n\n if (wasConnected && import.meta.env.DEV) {\n console.log('[DevTools WebSocket] Disconnected');\n }\n\n // Attempt to reconnect if within limits\n if (reconnectAttempts.value < currentOptions.maxReconnectAttempts) {\n connectionState.value = 'reconnecting';\n reconnectAttempts.value++;\n\n if (import.meta.env.DEV) {\n console.log(\n `[DevTools WebSocket] Reconnecting in ${currentOptions.reconnectDelay}ms (attempt ${reconnectAttempts.value})`,\n );\n }\n\n reconnectTimer = setTimeout(() => {\n connect();\n }, currentOptions.reconnectDelay);\n } else if (import.meta.env.DEV) {\n console.warn('[DevTools WebSocket] Max reconnection attempts reached');\n }\n}\n\n/**\n * Handle WebSocket error event\n */\nfunction handleError(event: Event): void {\n console.error('[DevTools WebSocket] Error:', event);\n}\n\n/**\n * Connect to the WebSocket server\n */\nfunction connect(): void {\n if (!isBrowser()) {\n if (import.meta.env.DEV) {\n console.warn('[DevTools WebSocket] Cannot connect outside browser environment');\n }\n return;\n }\n\n // Don't connect if already connected or connecting\n // Check connectionState first to prevent race condition when connect() is called rapidly\n if (\n connectionState.value === 'connecting' ||\n connectionState.value === 'connected' ||\n (ws && (ws.readyState === WebSocket.CONNECTING || ws.readyState === WebSocket.OPEN))\n ) {\n return;\n }\n\n // Clean up existing connection without resetting reconnect state\n cleanupConnection();\n\n connectionState.value = 'connecting';\n const url = buildWebSocketUrl(currentOptions.path);\n\n try {\n ws = new WebSocket(url);\n ws.onopen = handleOpen;\n ws.onmessage = handleMessage;\n ws.onclose = handleClose;\n ws.onerror = handleError;\n } catch (error) {\n console.error('[DevTools WebSocket] Failed to create WebSocket:', error);\n connectionState.value = 'disconnected';\n }\n}\n\n/**\n * Clean up WebSocket connection without resetting reconnect state.\n * Used internally when reconnecting.\n */\nfunction cleanupConnection(): void {\n if (ws) {\n // Remove event handlers to prevent close handler from triggering reconnect\n ws.onopen = null;\n ws.onmessage = null;\n ws.onclose = null;\n ws.onerror = null;\n\n if (ws.readyState === WebSocket.OPEN || ws.readyState === WebSocket.CONNECTING) {\n ws.close();\n }\n\n ws = null;\n }\n}\n\n/**\n * Disconnect from the WebSocket server\n */\nfunction disconnect(): void {\n clearReconnectTimer();\n cleanupConnection();\n\n connectionState.value = 'disconnected';\n reconnectAttempts.value = 0;\n}\n\n/**\n * Send a command to the server\n *\n * @param command - The command to send\n * @returns true if the command was sent, false otherwise\n */\nfunction send<T = unknown>(command: ClientCommand<T>): boolean {\n if (!ws || ws.readyState !== WebSocket.OPEN) {\n if (import.meta.env.DEV) {\n console.warn('[DevTools WebSocket] Cannot send command - not connected');\n }\n return false;\n }\n\n try {\n ws.send(JSON.stringify(command));\n return true;\n } catch (error) {\n console.error('[DevTools WebSocket] Failed to send command:', error);\n return false;\n }\n}\n\n/**\n * Subscribe to a server event\n *\n * @param event - The event type to subscribe to (or '*' for all events)\n * @param handler - The handler function to call when the event is received\n * @returns An unsubscribe function\n */\nfunction on<T = unknown>(event: ServerEventType | '*', handler: EventHandler<T>): () => void {\n if (!eventHandlers.has(event)) {\n eventHandlers.set(event, new Set());\n }\n\n const handlers = eventHandlers.get(event);\n if (handlers) {\n handlers.add(handler as EventHandler);\n }\n\n // Return unsubscribe function\n return () => {\n const currentHandlers = eventHandlers.get(event);\n if (currentHandlers) {\n currentHandlers.delete(handler as EventHandler);\n if (currentHandlers.size === 0) {\n eventHandlers.delete(event);\n }\n }\n };\n}\n\n/**\n * Unsubscribe from a server event\n *\n * @param event - The event type to unsubscribe from\n * @param handler - The handler function to remove\n */\nfunction off<T = unknown>(event: ServerEventType | '*', handler: EventHandler<T>): void {\n const handlers = eventHandlers.get(event);\n if (handlers) {\n handlers.delete(handler as EventHandler);\n if (handlers.size === 0) {\n eventHandlers.delete(event);\n }\n }\n}\n\n/**\n * Subscribe to an event and automatically unsubscribe after the first invocation.\n * This is a standard one-shot subscription - the handler is called exactly once.\n *\n * @param event - The event type to subscribe to\n * @param handler - The handler function to call once\n * @returns An unsubscribe function (can be used to cancel before the event fires)\n *\n * @example\n * ```typescript\n * // Wait for the first 'connected' event\n * once('connected', (data) => {\n * console.log('Connected with version:', data.serverVersion);\n * });\n * ```\n */\nfunction once<T = unknown>(event: ServerEventType | '*', handler: EventHandler<T>): () => void {\n const wrappedHandler: EventHandler<T> = (data) => {\n off(event, wrappedHandler);\n handler(data);\n };\n\n return on(event, wrappedHandler);\n}\n\n/**\n * Subscribe to an event and unsubscribe when the handler returns true.\n * Useful for conditional one-time events where you need to wait for specific data.\n *\n * @param event - The event type to subscribe to\n * @param handler - The handler function that returns true to unsubscribe\n * @returns An unsubscribe function\n *\n * @example\n * ```typescript\n * // Wait until we receive a response with status 200\n * onUntil('response', (data) => {\n * if (data.status === 200) {\n * console.log('Success response received');\n * return true; // Unsubscribe\n * }\n * return false; // Keep listening\n * });\n * ```\n */\nfunction onUntil<T = unknown>(\n event: ServerEventType | '*',\n handler: (data: T) => boolean | undefined,\n): () => void {\n const wrappedHandler: EventHandler<T> = (data) => {\n const result = handler(data);\n if (result === true) {\n off(event, wrappedHandler);\n }\n };\n\n return on(event, wrappedHandler);\n}\n\n/**\n * Reset the composable state (useful for testing)\n */\nfunction resetState(): void {\n disconnect();\n serverVersion.value = null;\n eventHandlers.clear();\n currentOptions = { ...DEFAULT_OPTIONS };\n optionsInitialized = false;\n}\n\n/**\n * useWebSocket composable\n *\n * Provides WebSocket connection management functionality including:\n * - Reactive connection state\n * - Auto-reconnect with configurable delay\n * - Event subscription system\n * - Command sending\n *\n * @param options - Configuration options\n * @returns WebSocket management utilities\n */\nexport function useWebSocket(options: UseWebSocketOptions = {}): UseWebSocketReturn {\n // Only merge options when not connected and not initialized, or when disconnected\n // This prevents race conditions when multiple components pass different options\n if (!optionsInitialized || connectionState.value === 'disconnected') {\n currentOptions = { ...DEFAULT_OPTIONS, ...options };\n optionsInitialized = true;\n }\n\n /**\n * Computed property indicating if the WebSocket is connected\n */\n const connected = computed(() => connectionState.value === 'connected');\n\n /**\n * Computed property indicating if the WebSocket is attempting to reconnect\n */\n const isReconnecting = computed(() => connectionState.value === 'reconnecting');\n\n // Note: We don't disconnect on component unmount because this is singleton state\n // and other components may still be using the connection.\n // The connection will be cleaned up when the page unloads.\n\n // Only register lifecycle hooks when inside a Vue component context\n if (hasComponentContext()) {\n onMounted(() => {\n if (currentOptions.autoConnect) {\n connect();\n }\n });\n }\n\n return {\n /**\n * Current connection state\n */\n connectionState: computed(() => connectionState.value),\n\n /**\n * Whether the WebSocket is connected\n */\n connected,\n\n /**\n * Whether the WebSocket is attempting to reconnect\n */\n isReconnecting,\n\n /**\n * Server version received on connection\n */\n serverVersion: computed(() => serverVersion.value),\n\n /**\n * Number of reconnection attempts made\n */\n reconnectAttempts: computed(() => reconnectAttempts.value),\n\n /**\n * Connect to the WebSocket server\n */\n connect,\n\n /**\n * Disconnect from the WebSocket server\n */\n disconnect,\n\n /**\n * Send a command to the server\n */\n send,\n\n /**\n * Subscribe to a server event\n */\n on,\n\n /**\n * Unsubscribe from a server event\n */\n off,\n\n /**\n * Subscribe to an event once (one-shot, auto-unsubscribes after first call)\n */\n once,\n\n /**\n * Subscribe to an event until handler returns true\n */\n onUntil,\n\n /**\n * Reset the composable state (useful for testing)\n */\n resetState,\n };\n}\n","/**\n * Vue Router Configuration\n *\n * What: Defines routing configuration for the DevTools SPA\n * How: Creates routes for each main page/tab in the application\n * Why: Enables navigation between different DevTools features\n */\n\nimport { createRouter, createWebHashHistory, type RouteRecordRaw } from 'vue-router';\n\n/**\n * Route definitions for the DevTools SPA\n *\n * Each route corresponds to a tab in the DevTools interface:\n * - Routes: Endpoint listing and details\n * - Timeline: Request/response log with real-time updates\n * - Models: Store data editor for viewing/modifying mock data\n * - Simulator: Error simulation controls\n */\nconst routes: RouteRecordRaw[] = [\n {\n path: '/',\n redirect: '/routes',\n },\n {\n path: '/routes',\n name: 'routes',\n component: () => import('@/pages/RoutesPage.vue'),\n meta: {\n title: 'Routes',\n icon: 'route',\n },\n },\n {\n path: '/timeline',\n name: 'timeline',\n component: () => import('@/pages/TimelinePage.vue'),\n meta: {\n title: 'Timeline',\n icon: 'clock',\n },\n },\n {\n path: '/models',\n name: 'models',\n component: () => import('@/pages/ModelsPage.vue'),\n meta: {\n title: 'Models',\n icon: 'database',\n },\n },\n {\n path: '/simulator',\n name: 'simulator',\n component: () => import('@/pages/SimulatorPage.vue'),\n meta: {\n title: 'Simulator',\n icon: 'zap',\n },\n },\n // Catch-all route for undefined paths - redirects to routes page\n {\n path: '/:pathMatch(.*)*',\n name: 'not-found',\n redirect: '/routes',\n },\n];\n\n/**\n * Create the router instance\n *\n * Uses hash history mode for compatibility when embedded in iframes\n * or served from arbitrary paths in the dev server\n */\nconst router = createRouter({\n history: createWebHashHistory(),\n routes,\n});\n\nexport { routes };\nexport default router;\n","<!--\n App.vue - Main Application Component\n\n What: Root component for the DevTools SPA\n How: Provides the main layout with header, tab navigation, and router view\n Why: Acts as the entry point for the Vue application and defines the overall structure\n-->\n\n<script setup lang=\"ts\">\nimport { Clock, Database, Route, Wifi, WifiOff, Zap } from 'lucide-vue-next';\nimport { computed } from 'vue';\nimport { useRoute, useRouter } from 'vue-router';\nimport { useWebSocket } from '@/composables/useWebSocket';\nimport { routes } from '@/router';\n\nconst route = useRoute();\nconst router = useRouter();\n\n// Navigation tabs derived from routes\nconst tabs = computed(() =>\n routes\n .filter((r) => r.name && r.meta?.title)\n .map((r) => ({\n name: r.name as string,\n path: r.path,\n title: r.meta?.title as string,\n icon: r.meta?.icon as string,\n })),\n);\n\n// Current active tab\nconst activeTab = computed(() => route.name as string);\n\n// Navigate to a tab\nfunction navigateTo(path: string): void {\n router.push(path);\n}\n\n// Icon component map\nconst iconMap: Record<string, typeof Route> = {\n route: Route,\n clock: Clock,\n database: Database,\n zap: Zap,\n};\n\n// Get icon with fallback for unknown icon names\nfunction getIcon(iconName: string): typeof Route {\n const icon = iconMap[iconName];\n if (!icon && import.meta.env.DEV) {\n console.warn(`[DevTools] Unknown icon name: \"${iconName}\". Using fallback.`);\n }\n return icon ?? Route;\n}\n\n// Connection status from WebSocket composable\nconst { connected: isConnected } = useWebSocket();\n</script>\n\n<template>\n <div class=\"app\">\n <!-- Header with branding and connection status -->\n <header class=\"app-header\">\n <div class=\"app-header__brand\">\n <Zap class=\"app-header__logo\" :size=\"20\" />\n <span class=\"app-header__title\">OpenAPI DevTools</span>\n </div>\n\n <!-- Tab Navigation -->\n <nav class=\"app-nav\" role=\"tablist\" aria-label=\"DevTools navigation\">\n <button\n v-for=\"tab in tabs\"\n :key=\"tab.name\"\n role=\"tab\"\n :aria-selected=\"activeTab === tab.name\"\n :aria-current=\"activeTab === tab.name ? 'true' : undefined\"\n :aria-controls=\"`panel-${tab.name}`\"\n :tabindex=\"0\"\n :class=\"[\n 'app-nav__tab',\n { 'app-nav__tab--active': activeTab === tab.name },\n ]\"\n @click=\"navigateTo(tab.path)\"\n >\n <component\n :is=\"getIcon(tab.icon)\"\n :size=\"16\"\n class=\"app-nav__icon\"\n />\n <span class=\"app-nav__label\">{{ tab.title }}</span>\n </button>\n </nav>\n\n <!-- Connection Status -->\n <div class=\"app-header__status\">\n <div class=\"connection-status\">\n <span\n :class=\"[\n 'connection-status__dot',\n isConnected\n ? 'connection-status__dot--connected'\n : 'connection-status__dot--disconnected',\n ]\"\n />\n <span class=\"connection-status__text\">\n {{ isConnected ? 'Connected' : 'Disconnected' }}\n </span>\n <component\n :is=\"isConnected ? Wifi : WifiOff\"\n :size=\"14\"\n class=\"connection-status__icon\"\n />\n </div>\n </div>\n </header>\n\n <!-- Main Content Area -->\n <main class=\"app-main\">\n <router-view v-slot=\"{ Component }\">\n <transition name=\"fade\" mode=\"out-in\">\n <component :is=\"Component\" />\n </transition>\n </router-view>\n </main>\n </div>\n</template>\n\n<style scoped>\n.app {\n display: flex;\n flex-direction: column;\n height: 100%;\n background-color: var(--devtools-bg);\n}\n\n/* Header styles */\n.app-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: var(--devtools-header-height);\n padding: 0 var(--devtools-space-md);\n background-color: var(--devtools-surface);\n border-bottom: 1px solid var(--devtools-border);\n position: sticky;\n top: 0;\n z-index: 100;\n}\n\n.app-header__brand {\n display: flex;\n align-items: center;\n gap: var(--devtools-space-sm);\n}\n\n.app-header__logo {\n color: var(--devtools-primary);\n}\n\n.app-header__title {\n font-weight: var(--font-weight-6);\n font-size: var(--font-size-1);\n color: var(--devtools-text);\n}\n\n.app-header__status {\n display: flex;\n align-items: center;\n}\n\n/* Navigation styles */\n.app-nav {\n display: flex;\n align-items: center;\n gap: var(--devtools-space-xs);\n height: 100%;\n}\n\n.app-nav__tab {\n display: flex;\n align-items: center;\n gap: var(--devtools-space-xs);\n height: 100%;\n padding: 0 var(--devtools-space-md);\n background: none;\n border: none;\n border-bottom: 2px solid transparent;\n color: var(--devtools-text-muted);\n font-family: var(--devtools-font-sans);\n font-size: var(--font-size-0);\n font-weight: var(--font-weight-5);\n cursor: pointer;\n transition: all var(--devtools-transition-fast);\n}\n\n.app-nav__tab:hover {\n color: var(--devtools-text);\n background-color: var(--devtools-surface-elevated);\n}\n\n.app-nav__tab:focus {\n outline: none;\n}\n\n.app-nav__tab:focus-visible {\n outline: 2px solid var(--devtools-primary);\n outline-offset: -2px;\n background-color: var(--devtools-surface-elevated);\n}\n\n/* High contrast mode support */\n@media (forced-colors: active) {\n .app-nav__tab:focus-visible {\n outline: 3px solid CanvasText;\n outline-offset: 2px;\n }\n}\n\n.app-nav__tab--active {\n color: var(--devtools-primary);\n border-bottom-color: var(--devtools-primary);\n}\n\n.app-nav__tab--active:focus-visible {\n outline-color: var(--devtools-primary-hover);\n}\n\n.app-nav__icon {\n flex-shrink: 0;\n}\n\n.app-nav__label {\n white-space: nowrap;\n}\n\n/* Connection status styles */\n.connection-status {\n display: flex;\n align-items: center;\n gap: var(--devtools-space-xs);\n font-size: var(--font-size-0);\n color: var(--devtools-text-muted);\n}\n\n.connection-status__icon {\n opacity: 0.7;\n}\n\n/* Main content styles */\n.app-main {\n flex: 1;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n}\n</style>\n\n<style>\n/* Page transition - must be unscoped to apply to router-view children */\n.fade-enter-active,\n.fade-leave-active {\n transition: opacity var(--devtools-transition-normal);\n}\n\n.fade-enter-from,\n.fade-leave-to {\n opacity: 0;\n}\n</style>\n","/**\n * useTheme Composable\n *\n * What: Provides reactive theme management for the DevTools SPA\n * How: Uses CSS class on document root and localStorage for persistence\n * Why: Allows users to switch between dark and light mode, respecting system preference\n */\n\nimport { computed, getCurrentInstance, onMounted, onUnmounted, ref, watch } from 'vue';\n\n/**\n * Theme mode type\n */\nexport type ThemeMode = 'light' | 'dark' | 'system';\n\n/**\n * Valid theme modes for type guard validation\n */\nconst VALID_THEME_MODES: readonly ThemeMode[] = ['light', 'dark', 'system'];\n\n/**\n * Type guard to check if a value is a valid ThemeMode\n */\nfunction isThemeMode(value: unknown): value is ThemeMode {\n return typeof value === 'string' && VALID_THEME_MODES.includes(value as ThemeMode);\n}\n\n/**\n * Storage key for persisting theme preference\n */\nconst STORAGE_KEY = 'openapi-devtools-theme';\n\n/**\n * Singleton state for theme - shared across all component instances\n */\nconst themeMode = ref<ThemeMode>('system');\nconst systemPrefersDark = ref(false);\n\n/**\n * Track the current mediaQuery and handler for cleanup\n */\nlet currentMediaQuery: MediaQueryList | null = null;\nlet currentMediaHandler: ((e: MediaQueryListEvent) => void) | null = null;\n\n/**\n * Check if we're running in a browser environment\n */\nfunction isBrowser(): boolean {\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n}\n\n/**\n * Check if we're inside a Vue component context\n * This allows the composable to work both inside and outside components\n */\nfunction hasComponentContext(): boolean {\n return getCurrentInstance() !== null;\n}\n\n/**\n * useTheme composable\n *\n * Provides theme management functionality including:\n * - Reactive theme state\n * - System preference detection\n * - Theme toggling\n * - LocalStorage persistence\n *\n * @returns Theme management utilities\n */\nexport function useTheme() {\n /**\n * Computed property for the effective theme (resolved from system if needed)\n */\n const effectiveTheme = computed<'light' | 'dark'>(() => {\n if (themeMode.value === 'system') {\n return systemPrefersDark.value ? 'dark' : 'light';\n }\n return themeMode.value;\n });\n\n /**\n * Computed property indicating if dark mode is active\n */\n const isDark = computed(() => effectiveTheme.value === 'dark');\n\n /**\n * Apply the current theme to the document\n */\n function applyTheme(): void {\n if (!isBrowser()) return;\n\n const root = document.documentElement;\n\n if (effectiveTheme.value === 'dark') {\n root.classList.add('dark');\n root.classList.remove('light');\n } else {\n root.classList.add('light');\n root.classList.remove('dark');\n }\n }\n\n /**\n * Set the theme mode\n */\n function setTheme(mode: ThemeMode): void {\n if (!isThemeMode(mode)) {\n console.warn(`[DevTools] Invalid theme mode: ${mode}`);\n return;\n }\n\n themeMode.value = mode;\n\n if (isBrowser()) {\n try {\n localStorage.setItem(STORAGE_KEY, mode);\n } catch {\n // Storage unavailable (private browsing, quota exceeded, etc.)\n console.warn('[DevTools] Unable to persist theme preference');\n }\n }\n }\n\n /**\n * Toggle between light and dark mode\n * If currently in system mode, switch to the opposite of system preference\n */\n function toggleTheme(): void {\n if (themeMode.value === 'system') {\n // Switch to explicit mode opposite of system preference\n setTheme(systemPrefersDark.value ? 'light' : 'dark');\n } else {\n // Toggle between light and dark\n setTheme(themeMode.value === 'dark' ? 'light' : 'dark');\n }\n }\n\n /**\n * Reset to system preference\n */\n function resetToSystem(): void {\n setTheme('system');\n }\n\n /**\n * Clean up the media query listener\n */\n function cleanupMediaQuery(): void {\n if (currentMediaQuery && currentMediaHandler) {\n currentMediaQuery.removeEventListener('change', currentMediaHandler);\n currentMediaQuery = null;\n currentMediaHandler = null;\n }\n }\n\n /**\n * Initialize theme from storage and system preference\n */\n function initialize(): void {\n if (!isBrowser()) return;\n\n // Clean up any existing media query listener before adding a new one\n cleanupMediaQuery();\n\n // Check system preference\n const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');\n systemPrefersDark.value = mediaQuery.matches;\n\n // Create and store the handler for cleanup\n const handler = (e: MediaQueryListEvent): void => {\n systemPrefersDark.value = e.matches;\n };\n\n // Listen for system preference changes\n mediaQuery.addEventListener('change', handler);\n\n // Store references for cleanup\n currentMediaQuery = mediaQuery;\n currentMediaHandler = handler;\n\n // Load saved preference from localStorage\n try {\n const saved = localStorage.getItem(STORAGE_KEY);\n if (isThemeMode(saved)) {\n themeMode.value = saved;\n }\n } catch {\n // Storage unavailable (private browsing, etc.)\n }\n\n // Apply initial theme\n applyTheme();\n }\n\n /**\n * Reset theme state to defaults (useful for testing)\n * This resets the singleton state and cleans up listeners\n */\n function resetState(): void {\n cleanupMediaQuery();\n themeMode.value = 'system';\n systemPrefersDark.value = false;\n\n if (isBrowser()) {\n const root = document.documentElement;\n root.classList.remove('dark', 'light');\n\n try {\n localStorage.removeItem(STORAGE_KEY);\n } catch {\n // Storage unavailable\n }\n }\n }\n\n // Watch for theme changes and apply them\n watch([themeMode, systemPrefersDark], () => {\n applyTheme();\n });\n\n // Only register lifecycle hooks when inside a Vue component context\n // This allows the composable to be used in tests without Vue warnings\n if (hasComponentContext()) {\n // Initialize on mount\n onMounted(() => {\n initialize();\n });\n\n // Clean up on unmount\n onUnmounted(() => {\n cleanupMediaQuery();\n });\n }\n\n return {\n /**\n * Current theme mode setting ('light', 'dark', or 'system')\n */\n themeMode: computed(() => themeMode.value),\n\n /**\n * The effective theme after resolving 'system' mode\n */\n effectiveTheme,\n\n /**\n * Whether dark mode is currently active\n */\n isDark,\n\n /**\n * Whether the system prefers dark mode\n */\n systemPrefersDark: computed(() => systemPrefersDark.value),\n\n /**\n * Set the theme mode\n */\n setTheme,\n\n /**\n * Toggle between light and dark mode\n */\n toggleTheme,\n\n /**\n * Reset to system preference\n */\n resetToSystem,\n\n /**\n * Manually initialize theme (useful for SSR hydration)\n */\n initialize,\n\n /**\n * Reset theme state to defaults (useful for testing)\n */\n resetState,\n };\n}\n","/**\n * Main Entry Point for DevTools SPA\n *\n * What: Initializes and mounts the Vue application\n * How: Creates Vue app instance with Pinia and Vue Router\n * Why: Required entry point for the DevTools SPA\n */\n\nimport { createPinia } from 'pinia';\nimport type { App } from 'vue';\nimport { createApp } from 'vue';\n\nimport AppComponent from '@/App.vue';\nimport router from '@/router';\nimport { initializeStores } from '@/stores';\n\n// Import global styles\nimport '@/assets/main.css';\n\n/**\n * Module-scoped guard to ensure bootstrap only runs once\n */\nlet isBootstrapped = false;\nlet appInstance: App | null = null;\n\n/**\n * Create and configure the Vue application\n * This function is idempotent - calling it multiple times has no effect\n * after the first successful call.\n *\n * @returns The Vue app instance, or null if already bootstrapped\n */\nfunction bootstrap(): App | null {\n // Guard against multiple bootstrap calls\n if (isBootstrapped) {\n if (import.meta.env.DEV) {\n console.warn('[OpenAPI DevTools] Application already initialized, skipping bootstrap');\n }\n return appInstance;\n }\n\n // Create Vue app instance\n const app = createApp(AppComponent);\n\n // Create Pinia store instance\n const pinia = createPinia();\n\n // Install plugins\n app.use(pinia);\n app.use(router);\n\n // Initialize stores after Pinia is installed\n initializeStores();\n\n // Mount the app to the DOM\n app.mount('#app');\n\n // Mark as bootstrapped and store the instance\n isBootstrapped = true;\n appInstance = app;\n\n // Log startup info in development\n if (import.meta.env.DEV) {\n console.log('[OpenAPI DevTools] Application initialized');\n }\n\n return app;\n}\n\n// Only auto-bootstrap when running as standalone app (index.html entry)\n// When imported as a library, consumers should call bootstrap() manually\nif (typeof window !== 'undefined' && document.getElementById('app')) {\n bootstrap();\n}\n\n/**\n * Export the bootstrap function for library consumers\n * who may want to manually initialize the DevTools\n */\nexport { bootstrap };\n\nexport type {\n ClientCommand,\n ClientCommandType,\n ConnectedEventData,\n ConnectionState,\n EventHandler,\n ServerEvent,\n ServerEventType,\n ThemeMode,\n UseWebSocketOptions,\n UseWebSocketReturn,\n} from '@/composables';\n// Re-export composables for library consumers\nexport { useTheme, useWebSocket } from '@/composables';\n"],"names":["toKebabCase","string","toCamelCase","match","p1","p2","toPascalCase","camelCase","mergeClasses","classes","className","index","array","defaultAttributes","Icon","size","strokeWidth","absoluteStrokeWidth","color","iconNode","name","props","slots","h","child","createLucideIcon","iconName","Clock","Database","Route","WifiOff","Wifi","Zap","DEFAULT_OPTIONS","connectionState","ref","serverVersion","reconnectAttempts","ws","reconnectTimer","currentOptions","optionsInitialized","eventHandlers","isBrowser","hasComponentContext","getCurrentInstance","buildWebSocketUrl","path","clearReconnectTimer","dispatchEvent","type","data","handlers","handler","error","wildcardHandlers","handleOpen","handleMessage","event","message","connectedData","handleClose","connect","handleError","cleanupConnection","url","disconnect","send","command","on","currentHandlers","off","once","wrappedHandler","onUntil","resetState","useWebSocket","options","connected","computed","isReconnecting","onMounted","routes","router","createRouter","createWebHashHistory","route","useRoute","useRouter","tabs","r","activeTab","navigateTo","iconMap","getIcon","isConnected","_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","_createVNode","_unref","_cache","_hoisted_4","_Fragment","_renderList","tab","_normalizeClass","$event","_createBlock","_resolveDynamicComponent","_hoisted_6","_toDisplayString","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_component_router_view","_withCtx","Component","_Transition","VALID_THEME_MODES","isThemeMode","value","STORAGE_KEY","themeMode","systemPrefersDark","currentMediaQuery","currentMediaHandler","useTheme","effectiveTheme","isDark","applyTheme","root","setTheme","mode","toggleTheme","resetToSystem","cleanupMediaQuery","initialize","mediaQuery","e","saved","watch","onUnmounted","isBootstrapped","appInstance","bootstrap","app","createApp","AppComponent","pinia","createPinia"],"mappings":";;;AAOA,MAAMA,IAAc,CAACC,MAAWA,EAAO,QAAQ,sBAAsB,OAAO,EAAE,YAAW,GACnFC,KAAc,CAACD,MAAWA,EAAO;AAAA,EACrC;AAAA,EACA,CAACE,GAAOC,GAAIC,MAAOA,IAAKA,EAAG,YAAW,IAAKD,EAAG,YAAW;AAC3D,GACME,KAAe,CAACL,MAAW;AAC/B,QAAMM,IAAYL,GAAYD,CAAM;AACpC,SAAOM,EAAU,OAAO,CAAC,EAAE,YAAW,IAAKA,EAAU,MAAM,CAAC;AAC9D,GACMC,KAAe,IAAIC,MAAYA,EAAQ,OAAO,CAACC,GAAWC,GAAOC,MAC9D,EAAQF,KAAcA,EAAU,KAAI,MAAO,MAAME,EAAM,QAAQF,CAAS,MAAMC,CACtF,EAAE,KAAK,GAAG,EAAE,KAAI;ACXjB,IAAIE,IAAoB;AAAA,EACtB,OAAO;AAAA,EACP,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,gBAAgB;AA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dmE,EAAI,MAAM,MAAM,GAGhBH,IAAiB,IACjBC,IAAcE,GAOPA;AACT;AAII,OAAO,SAAW,OAAe,SAAS,eAAe,KAAK,KAChED,GAAA;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9]}
@@ -1 +1 @@
1
- .data-table[data-v-dcdce8f7]{display:flex;flex-direction:column;background-color:var(--devtools-surface);border:1px solid var(--devtools-border);border-radius:var(--devtools-radius-md);overflow:hidden;height:100%}.data-table__empty[data-v-dcdce8f7]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--devtools-space-sm);flex:1;color:var(--devtools-text-muted);font-size:var(--font-size-1)}.data-table__empty-icon[data-v-dcdce8f7]{opacity:.4}.data-table__container[data-v-dcdce8f7]{flex:1;overflow:auto}.data-table__table[data-v-dcdce8f7]{width:100%;border-collapse:collapse;font-size:var(--font-size-0);font-family:var(--devtools-font-mono)}.data-table__table thead[data-v-dcdce8f7]{position:sticky;top:0;z-index:1}.data-table__header[data-v-dcdce8f7]{padding:var(--devtools-space-xs) var(--devtools-space-sm);text-align:left;font-weight:var(--font-weight-6);font-family:var(--devtools-font-sans);font-size:var(--font-size-0);background-color:var(--devtools-surface-elevated);border-bottom:1px solid var(--devtools-border);white-space:nowrap;color:var(--devtools-text)}.data-table__header--id[data-v-dcdce8f7]{color:var(--devtools-primary)}.data-table__row-num[data-v-dcdce8f7]{padding:var(--devtools-space-xs) var(--devtools-space-sm);text-align:right;color:var(--devtools-text-muted);font-size:var(--font-size-0);font-family:var(--devtools-font-mono);background-color:var(--devtools-surface-elevated);border-right:1px solid var(--devtools-border);border-bottom:1px solid var(--devtools-border);white-space:nowrap;min-width:2ch;-webkit-user-select:none;user-select:none}.data-table__row[data-v-dcdce8f7]{cursor:pointer;transition:background-color var(--devtools-transition-fast)}.data-table__row[data-v-dcdce8f7]:hover{background-color:var(--devtools-surface-elevated)}.data-table__row--selected[data-v-dcdce8f7]{background-color:color-mix(in srgb,var(--devtools-primary) 15%,transparent)}.data-table__cell[data-v-dcdce8f7]{padding:var(--devtools-space-xs) var(--devtools-space-sm);border-bottom:1px solid var(--devtools-border);white-space:nowrap;max-width:300px;overflow:hidden;text-overflow:ellipsis;color:var(--devtools-text)}.data-table__cell--id[data-v-dcdce8f7]{color:var(--devtools-primary);font-weight:var(--font-weight-5)}.data-table__footer[data-v-dcdce8f7]{display:flex;align-items:center;justify-content:space-between;padding:var(--devtools-space-xs) var(--devtools-space-sm);background-color:var(--devtools-surface-elevated);border-top:1px solid var(--devtools-border);font-size:var(--font-size-0)}.data-table__info[data-v-dcdce8f7]{color:var(--devtools-text-muted)}.json-editor[data-v-dbd5ce20]{display:flex;flex-direction:column;background-color:var(--devtools-surface);border:1px solid var(--devtools-border);border-radius:var(--devtools-radius-md);overflow:hidden}.json-editor__container[data-v-dbd5ce20]{display:flex;overflow:auto;flex:1}.json-editor__lines[data-v-dbd5ce20]{display:flex;flex-direction:column;padding:var(--devtools-space-sm) var(--devtools-space-xs);background-color:var(--devtools-surface-elevated);border-right:1px solid var(--devtools-border);-webkit-user-select:none;user-select:none;flex-shrink:0}.json-editor__line-number[data-v-dbd5ce20]{height:1.5em;line-height:1.5;text-align:right;font-family:var(--devtools-font-mono);font-size:var(--font-size-0);color:var(--devtools-text-muted);min-width:2ch;padding-right:var(--devtools-space-xs)}.json-editor__textarea[data-v-dbd5ce20]{flex:1;padding:var(--devtools-space-sm);background-color:var(--devtools-surface);color:var(--devtools-text);border:none;outline:none;resize:vertical;font-family:var(--devtools-font-mono);font-size:var(--font-size-0);line-height:1.5;tab-size:2;white-space:pre;overflow-wrap:normal;overflow-x:auto}.json-editor__textarea[data-v-dbd5ce20]::placeholder{color:var(--devtools-text-muted);opacity:.6}.json-editor__textarea[data-v-dbd5ce20]:focus{outline:2px solid var(--devtools-primary);outline-offset:-2px}.json-editor__textarea[readonly][data-v-dbd5ce20]{background-color:var(--devtools-surface-elevated);cursor:not-allowed;opacity:.7}.json-editor__status[data-v-dbd5ce20]{display:flex;align-items:center;justify-content:space-between;gap:var(--devtools-space-md);padding:var(--devtools-space-xs) var(--devtools-space-sm);background-color:var(--devtools-surface-elevated);border-top:1px solid var(--devtools-border);font-size:var(--font-size-0)}.json-editor__status-left[data-v-dbd5ce20],.json-editor__status-right[data-v-dbd5ce20]{display:flex;align-items:center;gap:var(--devtools-space-sm)}.json-editor__valid[data-v-dbd5ce20]{display:flex;align-items:center;gap:var(--devtools-space-xs);color:var(--devtools-success)}.json-editor__error[data-v-dbd5ce20]{display:flex;align-items:center;gap:var(--devtools-space-xs);color:var(--devtools-error)}.json-editor__info[data-v-dbd5ce20]{color:var(--devtools-text-muted)}@media(prefers-color-scheme:dark){.json-editor__textarea[data-v-dbd5ce20]{color:#e2e8f0}.json-editor__textarea[data-v-dbd5ce20]::placeholder{color:#64748b}}.models-page[data-v-353edfbc]{display:grid;grid-template-columns:240px 1fr;height:100%;overflow:hidden}.models-sidebar[data-v-353edfbc]{display:flex;flex-direction:column;background-color:var(--devtools-surface);border-right:1px solid var(--devtools-border);overflow:hidden}.models-sidebar__header[data-v-353edfbc]{display:flex;align-items:center;gap:var(--devtools-space-sm);padding:var(--devtools-space-md);font-weight:var(--font-weight-6);font-size:var(--font-size-1);border-bottom:1px solid var(--devtools-border)}.models-sidebar__badge[data-v-353edfbc]{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 var(--devtools-space-xs);background-color:var(--devtools-primary);color:#fff;border-radius:var(--devtools-radius-sm);font-size:var(--font-size-0);font-weight:var(--font-weight-6)}.models-sidebar__loading[data-v-353edfbc]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--devtools-space-md);padding:var(--devtools-space-xl);color:var(--devtools-text-muted)}.models-sidebar__list[data-v-353edfbc]{flex:1;overflow-y:auto;padding:var(--devtools-space-xs)}.models-sidebar__item[data-v-353edfbc]{display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--devtools-space-sm) var(--devtools-space-md);background:none;border:none;border-radius:var(--devtools-radius-sm);color:var(--devtools-text);font-family:var(--devtools-font-sans);font-size:var(--font-size-1);cursor:pointer;transition:background-color var(--devtools-transition-fast)}.models-sidebar__item[data-v-353edfbc]:hover{background-color:var(--devtools-surface-elevated)}.models-sidebar__item--active[data-v-353edfbc]{background-color:color-mix(in srgb,var(--devtools-primary) 15%,transparent);color:var(--devtools-primary)}.models-sidebar__name[data-v-353edfbc]{font-family:var(--devtools-font-mono)}.models-sidebar__count[data-v-353edfbc]{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:20px;padding:0 var(--devtools-space-xs);background-color:var(--devtools-surface-elevated);border-radius:var(--devtools-radius-sm);font-size:var(--font-size-0);color:var(--devtools-text-muted)}.models-sidebar__footer[data-v-353edfbc]{padding:var(--devtools-space-md);border-top:1px solid var(--devtools-border)}.models-sidebar__stat[data-v-353edfbc]{display:flex;justify-content:space-between;font-size:var(--font-size-0)}.models-content[data-v-353edfbc]{position:relative;display:flex;flex-direction:column;padding:var(--devtools-space-md);overflow:hidden}.models-toolbar[data-v-353edfbc]{display:flex;align-items:center;justify-content:space-between;gap:var(--devtools-space-md);margin-bottom:var(--devtools-space-md)}.models-toolbar__title[data-v-353edfbc]{display:flex;align-items:center;gap:var(--devtools-space-sm);font-size:var(--font-size-2);font-weight:var(--font-weight-6)}.models-toolbar__badge[data-v-353edfbc]{display:inline-flex;align-items:center;padding:2px 8px;border-radius:var(--devtools-radius-sm);font-size:var(--font-size-0);font-weight:var(--font-weight-5)}.models-toolbar__badge--warning[data-v-353edfbc]{background-color:color-mix(in srgb,#f59e0b 20%,transparent);color:#f59e0b}.models-toolbar__actions[data-v-353edfbc]{display:flex;align-items:center;gap:var(--devtools-space-sm)}.models-error[data-v-353edfbc]{padding:var(--devtools-space-sm) var(--devtools-space-md);margin-bottom:var(--devtools-space-md);background-color:color-mix(in srgb,var(--devtools-error) 10%,transparent);border:1px solid var(--devtools-error);border-radius:var(--devtools-radius-sm);color:var(--devtools-error);font-size:var(--font-size-0)}.models-panels[data-v-353edfbc]{display:flex;flex:1;gap:1px;overflow:hidden;background-color:var(--devtools-border)}.models-panel[data-v-353edfbc]{flex:1;min-width:300px;overflow:hidden;display:flex;flex-direction:column;background-color:var(--devtools-bg)}@media(max-width:840px){.models-panels[data-v-353edfbc]{flex-direction:column}.models-panel[data-v-353edfbc]{min-width:0;min-height:200px}}.models-loading-overlay[data-v-353edfbc]{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--devtools-space-md);background-color:color-mix(in srgb,var(--devtools-bg) 80%,transparent);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:10}.modal-overlay[data-v-353edfbc]{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background-color:#00000080;z-index:1000}.modal[data-v-353edfbc]{min-width:400px;background-color:var(--devtools-surface);border:1px solid var(--devtools-border);border-radius:var(--devtools-radius-md);box-shadow:0 10px 40px #0000004d}.modal__header[data-v-353edfbc]{padding:var(--devtools-space-md);border-bottom:1px solid var(--devtools-border)}.modal__header h3[data-v-353edfbc]{margin:0;font-size:var(--font-size-2);font-weight:var(--font-weight-6)}.modal__body[data-v-353edfbc]{padding:var(--devtools-space-md)}.modal__body p[data-v-353edfbc]{margin:0 0 var(--devtools-space-sm) 0}.modal__body p[data-v-353edfbc]:last-child{margin-bottom:0}.modal__footer[data-v-353edfbc]{display:flex;justify-content:flex-end;gap:var(--devtools-space-sm);padding:var(--devtools-space-md);border-top:1px solid var(--devtools-border)}.spinner[data-v-353edfbc]{width:24px;height:24px;border:3px solid var(--devtools-border);border-top-color:var(--devtools-primary);border-radius:50%;animation:spin-353edfbc .8s linear infinite}@keyframes spin-353edfbc{to{transform:rotate(360deg)}}
1
+ .data-table[data-v-dcdce8f7]{display:flex;flex-direction:column;background-color:var(--devtools-surface);border:1px solid var(--devtools-border);border-radius:var(--devtools-radius-md);overflow:hidden;height:100%}.data-table__empty[data-v-dcdce8f7]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--devtools-space-sm);flex:1;color:var(--devtools-text-muted);font-size:var(--font-size-1)}.data-table__empty-icon[data-v-dcdce8f7]{opacity:.4}.data-table__container[data-v-dcdce8f7]{flex:1;overflow:auto}.data-table__table[data-v-dcdce8f7]{width:100%;border-collapse:collapse;font-size:var(--font-size-0);font-family:var(--devtools-font-mono)}.data-table__table thead[data-v-dcdce8f7]{position:sticky;top:0;z-index:1}.data-table__header[data-v-dcdce8f7]{padding:var(--devtools-space-xs) var(--devtools-space-sm);text-align:left;font-weight:var(--font-weight-6);font-family:var(--devtools-font-sans);font-size:var(--font-size-0);background-color:var(--devtools-surface-elevated);border-bottom:1px solid var(--devtools-border);white-space:nowrap;color:var(--devtools-text)}.data-table__header--id[data-v-dcdce8f7]{color:var(--devtools-primary)}.data-table__row-num[data-v-dcdce8f7]{padding:var(--devtools-space-xs) var(--devtools-space-sm);text-align:right;color:var(--devtools-text-muted);font-size:var(--font-size-0);font-family:var(--devtools-font-mono);background-color:var(--devtools-surface-elevated);border-right:1px solid var(--devtools-border);border-bottom:1px solid var(--devtools-border);white-space:nowrap;min-width:2ch;-webkit-user-select:none;user-select:none}.data-table__row[data-v-dcdce8f7]{cursor:pointer;transition:background-color var(--devtools-transition-fast)}.data-table__row[data-v-dcdce8f7]:hover{background-color:var(--devtools-surface-elevated)}.data-table__row--selected[data-v-dcdce8f7]{background-color:color-mix(in srgb,var(--devtools-primary) 15%,transparent)}.data-table__cell[data-v-dcdce8f7]{padding:var(--devtools-space-xs) var(--devtools-space-sm);border-bottom:1px solid var(--devtools-border);white-space:nowrap;max-width:300px;overflow:hidden;text-overflow:ellipsis;color:var(--devtools-text)}.data-table__cell--id[data-v-dcdce8f7]{color:var(--devtools-primary);font-weight:var(--font-weight-5)}.data-table__footer[data-v-dcdce8f7]{display:flex;align-items:center;justify-content:space-between;padding:var(--devtools-space-xs) var(--devtools-space-sm);background-color:var(--devtools-surface-elevated);border-top:1px solid var(--devtools-border);font-size:var(--font-size-0)}.data-table__info[data-v-dcdce8f7]{color:var(--devtools-text-muted)}.json-editor[data-v-dbd5ce20]{display:flex;flex-direction:column;background-color:var(--devtools-surface);border:1px solid var(--devtools-border);border-radius:var(--devtools-radius-md);overflow:hidden}.json-editor__container[data-v-dbd5ce20]{display:flex;overflow:auto;flex:1}.json-editor__lines[data-v-dbd5ce20]{display:flex;flex-direction:column;padding:var(--devtools-space-sm) var(--devtools-space-xs);background-color:var(--devtools-surface-elevated);border-right:1px solid var(--devtools-border);-webkit-user-select:none;user-select:none;flex-shrink:0}.json-editor__line-number[data-v-dbd5ce20]{height:1.5em;line-height:1.5;text-align:right;font-family:var(--devtools-font-mono);font-size:var(--font-size-0);color:var(--devtools-text-muted);min-width:2ch;padding-right:var(--devtools-space-xs)}.json-editor__textarea[data-v-dbd5ce20]{flex:1;padding:var(--devtools-space-sm);background-color:var(--devtools-surface);color:var(--devtools-text);border:none;outline:none;resize:vertical;font-family:var(--devtools-font-mono);font-size:var(--font-size-0);line-height:1.5;tab-size:2;white-space:pre;overflow-wrap:normal;overflow-x:auto}.json-editor__textarea[data-v-dbd5ce20]::placeholder{color:var(--devtools-text-muted);opacity:.6}.json-editor__textarea[data-v-dbd5ce20]:focus{outline:2px solid var(--devtools-primary);outline-offset:-2px}.json-editor__textarea[readonly][data-v-dbd5ce20]{background-color:var(--devtools-surface-elevated);cursor:not-allowed;opacity:.7}.json-editor__status[data-v-dbd5ce20]{display:flex;align-items:center;justify-content:space-between;gap:var(--devtools-space-md);padding:var(--devtools-space-xs) var(--devtools-space-sm);background-color:var(--devtools-surface-elevated);border-top:1px solid var(--devtools-border);font-size:var(--font-size-0)}.json-editor__status-left[data-v-dbd5ce20],.json-editor__status-right[data-v-dbd5ce20]{display:flex;align-items:center;gap:var(--devtools-space-sm)}.json-editor__valid[data-v-dbd5ce20]{display:flex;align-items:center;gap:var(--devtools-space-xs);color:var(--devtools-success)}.json-editor__error[data-v-dbd5ce20]{display:flex;align-items:center;gap:var(--devtools-space-xs);color:var(--devtools-error)}.json-editor__info[data-v-dbd5ce20]{color:var(--devtools-text-muted)}@media(prefers-color-scheme:dark){.json-editor__textarea[data-v-dbd5ce20]{color:#e2e8f0}.json-editor__textarea[data-v-dbd5ce20]::placeholder{color:#64748b}}.models-page[data-v-96cf0ec0]{display:grid;grid-template-columns:240px 1fr;height:100%;overflow:hidden}.models-sidebar[data-v-96cf0ec0]{display:flex;flex-direction:column;background-color:var(--devtools-surface);border-right:1px solid var(--devtools-border);overflow:hidden}.models-sidebar__header[data-v-96cf0ec0]{display:flex;align-items:center;gap:var(--devtools-space-sm);padding:var(--devtools-space-md);font-weight:var(--font-weight-6);font-size:var(--font-size-1);border-bottom:1px solid var(--devtools-border)}.models-sidebar__badge[data-v-96cf0ec0]{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 var(--devtools-space-xs);background-color:var(--devtools-primary);color:#fff;border-radius:var(--devtools-radius-sm);font-size:var(--font-size-0);font-weight:var(--font-weight-6)}.models-sidebar__loading[data-v-96cf0ec0]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--devtools-space-md);padding:var(--devtools-space-xl);color:var(--devtools-text-muted)}.models-sidebar__list[data-v-96cf0ec0]{flex:1;overflow-y:auto;padding:var(--devtools-space-xs)}.models-sidebar__item[data-v-96cf0ec0]{display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--devtools-space-sm) var(--devtools-space-md);background:none;border:none;border-radius:var(--devtools-radius-sm);color:var(--devtools-text);font-family:var(--devtools-font-sans);font-size:var(--font-size-1);cursor:pointer;transition:background-color var(--devtools-transition-fast)}.models-sidebar__item[data-v-96cf0ec0]:hover{background-color:var(--devtools-surface-elevated)}.models-sidebar__item--active[data-v-96cf0ec0]{background-color:color-mix(in srgb,var(--devtools-primary) 15%,transparent);color:var(--devtools-primary)}.models-sidebar__name[data-v-96cf0ec0]{font-family:var(--devtools-font-mono)}.models-sidebar__count[data-v-96cf0ec0]{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:20px;padding:0 var(--devtools-space-xs);background-color:var(--devtools-surface-elevated);border-radius:var(--devtools-radius-sm);font-size:var(--font-size-0);color:var(--devtools-text-muted)}.models-sidebar__footer[data-v-96cf0ec0]{padding:var(--devtools-space-md);border-top:1px solid var(--devtools-border)}.models-sidebar__stat[data-v-96cf0ec0]{display:flex;justify-content:space-between;font-size:var(--font-size-0)}.models-content[data-v-96cf0ec0]{position:relative;display:flex;flex-direction:column;padding:var(--devtools-space-md) 0;overflow:hidden}.models-toolbar[data-v-96cf0ec0]{display:flex;align-items:center;justify-content:space-between;gap:var(--devtools-space-md);padding:0 var(--devtools-space-md);margin-bottom:var(--devtools-space-md)}.models-toolbar__title[data-v-96cf0ec0]{display:flex;align-items:center;gap:var(--devtools-space-sm);font-size:var(--font-size-2);font-weight:var(--font-weight-6)}.models-toolbar__badge[data-v-96cf0ec0]{display:inline-flex;align-items:center;padding:2px 8px;border-radius:var(--devtools-radius-sm);font-size:var(--font-size-0);font-weight:var(--font-weight-5)}.models-toolbar__badge--warning[data-v-96cf0ec0]{background-color:color-mix(in srgb,#f59e0b 20%,transparent);color:#f59e0b}.models-toolbar__actions[data-v-96cf0ec0]{display:flex;align-items:center;gap:var(--devtools-space-sm)}.models-error[data-v-96cf0ec0]{padding:var(--devtools-space-sm) var(--devtools-space-md);margin:0 var(--devtools-space-md) var(--devtools-space-md);background-color:color-mix(in srgb,var(--devtools-error) 10%,transparent);border:1px solid var(--devtools-error);border-radius:var(--devtools-radius-sm);color:var(--devtools-error);font-size:var(--font-size-0)}.models-panels[data-v-96cf0ec0]{display:flex;flex:1;gap:var(--devtools-space-md);overflow:hidden}.models-panel[data-v-96cf0ec0]{flex:1;min-width:300px;overflow:hidden;display:flex;flex-direction:column;background-color:var(--devtools-bg)}@media(max-width:840px){.models-panels[data-v-96cf0ec0]{flex-direction:column}.models-panel[data-v-96cf0ec0]{min-width:0;min-height:200px}}.models-loading-overlay[data-v-96cf0ec0]{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--devtools-space-md);background-color:color-mix(in srgb,var(--devtools-bg) 80%,transparent);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:10}.modal-overlay[data-v-96cf0ec0]{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background-color:#00000080;z-index:1000}.modal[data-v-96cf0ec0]{min-width:400px;background-color:var(--devtools-surface);border:1px solid var(--devtools-border);border-radius:var(--devtools-radius-md);box-shadow:0 10px 40px #0000004d}.modal__header[data-v-96cf0ec0]{padding:var(--devtools-space-md);border-bottom:1px solid var(--devtools-border)}.modal__header h3[data-v-96cf0ec0]{margin:0;font-size:var(--font-size-2);font-weight:var(--font-weight-6)}.modal__body[data-v-96cf0ec0]{padding:var(--devtools-space-md)}.modal__body p[data-v-96cf0ec0]{margin:0 0 var(--devtools-space-sm) 0}.modal__body p[data-v-96cf0ec0]:last-child{margin-bottom:0}.modal__footer[data-v-96cf0ec0]{display:flex;justify-content:flex-end;gap:var(--devtools-space-sm);padding:var(--devtools-space-md);border-top:1px solid var(--devtools-border)}.spinner[data-v-96cf0ec0]{width:24px;height:24px;border:3px solid var(--devtools-border);border-top-color:var(--devtools-primary);border-radius:50%;animation:spin-96cf0ec0 .8s linear infinite}@keyframes spin-96cf0ec0{to{transform:rotate(360deg)}}
@@ -1,4 +1,4 @@
1
- import{E as te,c as M,r as w,H as se,d as q,e as m,y as N,i as E,f as s,u as r,F as J,j as A,n as L,t as k,s as f,D as H,I as ae,J as ne,o as oe,k as le,z as Y,G as re,K as ie,L as ce}from"./vue-vendor-Bkktf9yg.js";import{c as W,D as K,_ as G,u as de}from"./index-sPgNGnaU.js";import{C as ue}from"./check-CLk5nWxQ.js";import{X as fe}from"./x-5pbhNHo3.js";import{T as me}from"./trash-2-DCsOAZPr.js";const ve=W("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);const he=W("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);const _e=W("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);function U(t){try{return structuredClone(se(t))}catch{return JSON.parse(JSON.stringify(t))}}const ye=te("models",()=>{const t=w([]),e=w(null),i=w([]),c=w([]),u=w(!1),o=w(null),y=M(()=>e.value?t.value.find(n=>n.name===e.value)??null:null),g=w(!1),d=M(()=>g.value),v=M(()=>t.value.length),p=M(()=>t.value.reduce((n,_)=>n+_.count,0));async function x(){u.value=!0,o.value=null;try{const n=await fetch("/_api/store");if(!n.ok)throw new Error(`Failed to fetch schemas: ${n.statusText}`);const _=await n.json();t.value=_.schemas??[]}catch(n){o.value=n instanceof Error?n.message:"Failed to fetch schemas",console.error("[ModelsStore] Error fetching schemas:",n)}finally{u.value=!1}}async function F(n){e.value!==n&&(e.value=n,await j(n))}async function j(n){u.value=!0,o.value=null;try{const _=await fetch(`/_api/store/${encodeURIComponent(n)}`);if(!_.ok)throw new Error(`Failed to fetch schema data: ${_.statusText}`);const I=await _.json(),D=I.items??[];i.value=U(D),c.value=U(D),g.value=!1;const X=t.value.findIndex(ee=>ee.name===n);X!==-1&&(t.value[X].count=I.count)}catch(_){o.value=_ instanceof Error?_.message:"Failed to fetch schema data",console.error("[ModelsStore] Error fetching schema data:",_)}finally{u.value=!1}}function O(n){if(!Array.isArray(n)){o.value="Invalid data: Expected an array of items",console.error("[ModelsStore] updateItems received non-array value:",typeof n);return}i.value=n,o.value=null,g.value=!0}async function h(){if(!e.value)return o.value="No schema selected",!1;u.value=!0,o.value=null;try{const n=await fetch(`/_api/store/${encodeURIComponent(e.value)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i.value)});if(!n.ok){const D=await n.json().catch(()=>({}));throw new Error(D.error||`Failed to save items: ${n.statusText}`)}const _=await n.json();c.value=U(i.value),g.value=!1;const I=t.value.findIndex(D=>D.name===e.value);return I!==-1&&(t.value[I].count=_.created??i.value.length),!0}catch(n){return o.value=n instanceof Error?n.message:"Failed to save items",console.error("[ModelsStore] Error saving items:",n),!1}finally{u.value=!1}}async function b(){if(!e.value)return o.value="No schema selected",!1;u.value=!0,o.value=null;try{const n=await fetch(`/_api/store/${encodeURIComponent(e.value)}`,{method:"DELETE"});if(!n.ok)throw new Error(`Failed to clear schema: ${n.statusText}`);i.value=[],c.value=[],g.value=!1;const _=t.value.findIndex(I=>I.name===e.value);return _!==-1&&(t.value[_].count=0),!0}catch(n){return o.value=n instanceof Error?n.message:"Failed to clear schema",console.error("[ModelsStore] Error clearing schema:",n),!1}finally{u.value=!1}}function $(){i.value=U(c.value),g.value=!1}async function l(){e.value?await j(e.value):await x()}function a(){t.value=[],e.value=null,i.value=[],c.value=[],u.value=!1,o.value=null,g.value=!1}function S(n){const _=t.value.findIndex(I=>I.name===n.schema);_!==-1&&(t.value[_].count=n.count),e.value===n.schema&&(d.value?console.warn(`[ModelsStore] Skipping auto-refresh for schema "${n.schema}" - unsaved changes exist`):j(n.schema))}function R(n){n.success&&(x(),e.value&&(d.value?console.warn(`[ModelsStore] Skipping auto-refresh after reseed for schema "${e.value}" - unsaved changes exist`):j(e.value)))}return{schemas:t,selectedSchema:e,currentItems:i,loading:u,error:o,currentSchema:y,isDirty:d,schemaCount:v,totalItems:p,fetchSchemas:x,selectSchemaByName:F,fetchSchemaData:j,updateItems:O,saveItems:h,clearSchema:b,discardChanges:$,refresh:l,reset:a,handleStoreUpdate:S,handleReseedComplete:R}});function P(t,e){return t.length<=e?t:`${t.slice(0,e)}…`}function pe(t){return t==null?"--":typeof t=="string"?P(t,50):typeof t=="number"||typeof t=="boolean"?String(t):Array.isArray(t)||typeof t=="object"?P(JSON.stringify(t),50):String(t)}function Q(t,e){if(!(typeof t!="object"||t===null))return t[e]}function ge(t,e,i){const c=Q(t,e);return typeof c=="string"||typeof c=="number"?c:i}function be(t,e){if(t.length===0)return[];const i=new Set;for(const u of t)if(typeof u=="object"&&u!==null)for(const o of Object.keys(u))i.add(o);if(i.size===0)return[];const c=Array.from(i);return c.includes(e)?[e,...c.filter(u=>u!==e)]:c}const Se={class:"data-table"},ke={key:0,class:"data-table__empty"},Ce={key:1,class:"data-table__container"},we={class:"data-table__table"},xe=["onClick"],Ie={class:"data-table__row-num"},$e={key:2,class:"data-table__footer"},Te={class:"data-table__info"},Ee={class:"data-table__info"},je=q({__name:"DataTable",props:{items:{},idField:{},selectedIndex:{default:-1}},emits:["select"],setup(t,{emit:e}){const i=t,c=e,u=M(()=>be(i.items,i.idField));function o(g){c("select",g)}function y(g,d){return ge(g,i.idField,d)}return(g,d)=>(f(),m("div",Se,[t.items.length===0?(f(),m("div",ke,[E(r(K),{size:32,class:"data-table__empty-icon"}),d[0]||(d[0]=s("span",null,"No items",-1))])):(f(),m("div",Ce,[s("table",we,[s("thead",null,[s("tr",null,[d[1]||(d[1]=s("th",{class:"data-table__row-num"},"#",-1)),(f(!0),m(J,null,A(u.value,v=>(f(),m("th",{key:v,class:L(["data-table__header",{"data-table__header--id":v===t.idField}])},k(v),3))),128))])]),s("tbody",null,[(f(!0),m(J,null,A(t.items,(v,p)=>(f(),m("tr",{key:y(v,p),class:L(["data-table__row",{"data-table__row--selected":p===t.selectedIndex}]),onClick:x=>o(p)},[s("td",Ie,k(p+1),1),(f(!0),m(J,null,A(u.value,x=>(f(),m("td",{key:x,class:L(["data-table__cell",{"data-table__cell--id":x===t.idField}])},k(r(pe)(r(Q)(v,x))),3))),128))],10,xe))),128))])])])),t.items.length>0?(f(),m("div",$e,[s("span",Te,k(t.items.length)+" items",1),s("span",Ee,k(u.value.length)+" columns",1)])):N("",!0)]))}}),De=G(je,[["__scopeId","data-v-dcdce8f7"]]),Me={class:"json-editor"},Ne={class:"json-editor__container"},Je={class:"json-editor__lines","aria-hidden":"true"},Fe=["value","readonly","placeholder"],Ve={class:"json-editor__status"},Oe={class:"json-editor__status-left"},Re={key:0,class:"json-editor__valid"},Ae={key:1,class:"json-editor__error"},ze={class:"json-editor__status-right"},Ue={class:"json-editor__info"},Be=q({__name:"JsonEditor",props:{modelValue:{},readonly:{type:Boolean,default:!1},placeholder:{default:"Enter JSON data..."},minHeight:{default:200}},emits:["update:modelValue"],setup(t,{expose:e,emit:i}){const c=t,u=i,o=w(""),y=w(null),g=M(()=>y.value===null),d=M(()=>o.value.split(`
1
+ import{E as te,c as M,r as w,H as se,d as q,e as m,y as N,i as E,f as s,u as r,F as J,j as A,n as L,t as k,s as f,D as H,I as ae,J as ne,o as oe,k as le,z as Y,G as re,K as ie,L as ce}from"./vue-vendor-Bkktf9yg.js";import{c as W,D as K,_ as G,u as de}from"./index-OjSRPocP.js";import{C as ue}from"./check-DPkOzfFg.js";import{X as fe}from"./x-DC0rfJtM.js";import{T as me}from"./trash-2-DVdyPNM4.js";const ve=W("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);const he=W("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);const _e=W("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);function U(t){try{return structuredClone(se(t))}catch{return JSON.parse(JSON.stringify(t))}}const ye=te("models",()=>{const t=w([]),e=w(null),i=w([]),c=w([]),u=w(!1),o=w(null),y=M(()=>e.value?t.value.find(n=>n.name===e.value)??null:null),g=w(!1),d=M(()=>g.value),v=M(()=>t.value.length),p=M(()=>t.value.reduce((n,_)=>n+_.count,0));async function x(){u.value=!0,o.value=null;try{const n=await fetch("/_api/store");if(!n.ok)throw new Error(`Failed to fetch schemas: ${n.statusText}`);const _=await n.json();t.value=_.schemas??[]}catch(n){o.value=n instanceof Error?n.message:"Failed to fetch schemas",console.error("[ModelsStore] Error fetching schemas:",n)}finally{u.value=!1}}async function F(n){e.value!==n&&(e.value=n,await j(n))}async function j(n){u.value=!0,o.value=null;try{const _=await fetch(`/_api/store/${encodeURIComponent(n)}`);if(!_.ok)throw new Error(`Failed to fetch schema data: ${_.statusText}`);const I=await _.json(),D=I.items??[];i.value=U(D),c.value=U(D),g.value=!1;const X=t.value.findIndex(ee=>ee.name===n);X!==-1&&(t.value[X].count=I.count)}catch(_){o.value=_ instanceof Error?_.message:"Failed to fetch schema data",console.error("[ModelsStore] Error fetching schema data:",_)}finally{u.value=!1}}function O(n){if(!Array.isArray(n)){o.value="Invalid data: Expected an array of items",console.error("[ModelsStore] updateItems received non-array value:",typeof n);return}i.value=n,o.value=null,g.value=!0}async function h(){if(!e.value)return o.value="No schema selected",!1;u.value=!0,o.value=null;try{const n=await fetch(`/_api/store/${encodeURIComponent(e.value)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i.value)});if(!n.ok){const D=await n.json().catch(()=>({}));throw new Error(D.error||`Failed to save items: ${n.statusText}`)}const _=await n.json();c.value=U(i.value),g.value=!1;const I=t.value.findIndex(D=>D.name===e.value);return I!==-1&&(t.value[I].count=_.created??i.value.length),!0}catch(n){return o.value=n instanceof Error?n.message:"Failed to save items",console.error("[ModelsStore] Error saving items:",n),!1}finally{u.value=!1}}async function b(){if(!e.value)return o.value="No schema selected",!1;u.value=!0,o.value=null;try{const n=await fetch(`/_api/store/${encodeURIComponent(e.value)}`,{method:"DELETE"});if(!n.ok)throw new Error(`Failed to clear schema: ${n.statusText}`);i.value=[],c.value=[],g.value=!1;const _=t.value.findIndex(I=>I.name===e.value);return _!==-1&&(t.value[_].count=0),!0}catch(n){return o.value=n instanceof Error?n.message:"Failed to clear schema",console.error("[ModelsStore] Error clearing schema:",n),!1}finally{u.value=!1}}function $(){i.value=U(c.value),g.value=!1}async function l(){e.value?await j(e.value):await x()}function a(){t.value=[],e.value=null,i.value=[],c.value=[],u.value=!1,o.value=null,g.value=!1}function S(n){const _=t.value.findIndex(I=>I.name===n.schema);_!==-1&&(t.value[_].count=n.count),e.value===n.schema&&(d.value?console.warn(`[ModelsStore] Skipping auto-refresh for schema "${n.schema}" - unsaved changes exist`):j(n.schema))}function R(n){n.success&&(x(),e.value&&(d.value?console.warn(`[ModelsStore] Skipping auto-refresh after reseed for schema "${e.value}" - unsaved changes exist`):j(e.value)))}return{schemas:t,selectedSchema:e,currentItems:i,loading:u,error:o,currentSchema:y,isDirty:d,schemaCount:v,totalItems:p,fetchSchemas:x,selectSchemaByName:F,fetchSchemaData:j,updateItems:O,saveItems:h,clearSchema:b,discardChanges:$,refresh:l,reset:a,handleStoreUpdate:S,handleReseedComplete:R}});function P(t,e){return t.length<=e?t:`${t.slice(0,e)}…`}function pe(t){return t==null?"--":typeof t=="string"?P(t,50):typeof t=="number"||typeof t=="boolean"?String(t):Array.isArray(t)||typeof t=="object"?P(JSON.stringify(t),50):String(t)}function Q(t,e){if(!(typeof t!="object"||t===null))return t[e]}function ge(t,e,i){const c=Q(t,e);return typeof c=="string"||typeof c=="number"?c:i}function be(t,e){if(t.length===0)return[];const i=new Set;for(const u of t)if(typeof u=="object"&&u!==null)for(const o of Object.keys(u))i.add(o);if(i.size===0)return[];const c=Array.from(i);return c.includes(e)?[e,...c.filter(u=>u!==e)]:c}const Se={class:"data-table"},ke={key:0,class:"data-table__empty"},Ce={key:1,class:"data-table__container"},we={class:"data-table__table"},xe=["onClick"],Ie={class:"data-table__row-num"},$e={key:2,class:"data-table__footer"},Te={class:"data-table__info"},Ee={class:"data-table__info"},je=q({__name:"DataTable",props:{items:{},idField:{},selectedIndex:{default:-1}},emits:["select"],setup(t,{emit:e}){const i=t,c=e,u=M(()=>be(i.items,i.idField));function o(g){c("select",g)}function y(g,d){return ge(g,i.idField,d)}return(g,d)=>(f(),m("div",Se,[t.items.length===0?(f(),m("div",ke,[E(r(K),{size:32,class:"data-table__empty-icon"}),d[0]||(d[0]=s("span",null,"No items",-1))])):(f(),m("div",Ce,[s("table",we,[s("thead",null,[s("tr",null,[d[1]||(d[1]=s("th",{class:"data-table__row-num"},"#",-1)),(f(!0),m(J,null,A(u.value,v=>(f(),m("th",{key:v,class:L(["data-table__header",{"data-table__header--id":v===t.idField}])},k(v),3))),128))])]),s("tbody",null,[(f(!0),m(J,null,A(t.items,(v,p)=>(f(),m("tr",{key:y(v,p),class:L(["data-table__row",{"data-table__row--selected":p===t.selectedIndex}]),onClick:x=>o(p)},[s("td",Ie,k(p+1),1),(f(!0),m(J,null,A(u.value,x=>(f(),m("td",{key:x,class:L(["data-table__cell",{"data-table__cell--id":x===t.idField}])},k(r(pe)(r(Q)(v,x))),3))),128))],10,xe))),128))])])])),t.items.length>0?(f(),m("div",$e,[s("span",Te,k(t.items.length)+" items",1),s("span",Ee,k(u.value.length)+" columns",1)])):N("",!0)]))}}),De=G(je,[["__scopeId","data-v-dcdce8f7"]]),Me={class:"json-editor"},Ne={class:"json-editor__container"},Je={class:"json-editor__lines","aria-hidden":"true"},Fe=["value","readonly","placeholder"],Ve={class:"json-editor__status"},Oe={class:"json-editor__status-left"},Re={key:0,class:"json-editor__valid"},Ae={key:1,class:"json-editor__error"},ze={class:"json-editor__status-right"},Ue={class:"json-editor__info"},Be=q({__name:"JsonEditor",props:{modelValue:{},readonly:{type:Boolean,default:!1},placeholder:{default:"Enter JSON data..."},minHeight:{default:200}},emits:["update:modelValue"],setup(t,{expose:e,emit:i}){const c=t,u=i,o=w(""),y=w(null),g=M(()=>y.value===null),d=M(()=>o.value.split(`
2
2
  `).length),v=M(()=>Array.from({length:d.value},(h,b)=>b+1));function p(){try{o.value=JSON.stringify(c.modelValue,null,2),y.value=null}catch{o.value="",y.value="Invalid initial value"}}p(),H(()=>c.modelValue,()=>{try{const h=JSON.parse(o.value);JSON.stringify(h)!==JSON.stringify(c.modelValue)&&p()}catch{p()}});function x(h){const b=h.target;o.value=b.value,F()}function F(){if(o.value.trim()===""){y.value=null,u("update:modelValue",[]);return}try{const h=JSON.parse(o.value);y.value=null,u("update:modelValue",h)}catch(h){if(h instanceof Error){const b=h.message.match(/position (\d+)/);if(b){const $=Number.parseInt(b[1],10),l=o.value.substring(0,$).split(`
3
- `),a=l.length,S=l[l.length-1].length+1;y.value=`Line ${a}, Column ${S}: ${h.message}`}else y.value=h.message}else y.value="Invalid JSON"}}function j(){try{const h=JSON.parse(o.value);o.value=JSON.stringify(h,null,2),y.value=null,u("update:modelValue",h)}catch{}}function O(h){if(h.key==="Tab"){h.preventDefault();const b=h.target,$=b.selectionStart,l=b.selectionEnd,a=`${o.value.substring(0,$)} ${o.value.substring(l)}`;o.value=a,setTimeout(()=>{b.selectionStart=b.selectionEnd=$+2},0),F()}}return e({formatJson:j,isValid:g}),(h,b)=>(f(),m("div",Me,[s("div",Ne,[s("div",Je,[(f(!0),m(J,null,A(v.value,$=>(f(),m("div",{key:$,class:"json-editor__line-number"},k($),1))),128))]),s("textarea",{value:o.value,readonly:t.readonly,placeholder:t.placeholder,style:ae({minHeight:`${t.minHeight}px`}),class:"json-editor__textarea",spellcheck:"false",onInput:x,onKeydown:O},null,44,Fe)]),s("div",Ve,[s("div",Oe,[g.value?(f(),m("div",Re,[E(r(ue),{size:14}),b[0]||(b[0]=s("span",null,"Valid JSON",-1))])):y.value?(f(),m("div",Ae,[E(r(ve),{size:14}),s("span",null,k(y.value),1)])):N("",!0)]),s("div",ze,[s("span",Ue,k(d.value)+" lines",1)])])]))}}),Le=G(Be,[["__scopeId","data-v-dbd5ce20"]]),z=w([]),T=ne({visible:!1,title:"",message:"",confirmText:"Confirm",cancelText:"Cancel",onConfirm:null,onCancel:null}),V=new Map;let C=null,Pe=0;function He(){return`toast-${Date.now()}-${Pe++}`}function B(t,e,i=3e3){const c=He(),u={id:c,type:t,message:e,duration:i,timestamp:Date.now()};if(z.value.push(u),i>0){const o=setTimeout(()=>{Z(c),V.delete(c)},i);V.set(c,o)}return c}function Z(t){const e=V.get(t);e!==void 0&&(clearTimeout(e),V.delete(t));const i=z.value.findIndex(c=>c.id===t);i!==-1&&z.value.splice(i,1)}function Ke(){function t(d,v){return B("success",d,v)}function e(d,v){return B("error",d,v)}function i(d,v){return B("info",d,v)}function c(d,v){return B("warning",d,v)}function u(d,v){return new Promise(p=>{C&&(C(!1),C=null),C=p,T.visible=!0,T.title=v?.title||"Confirm",T.message=d,T.confirmText=v?.confirmText||"Confirm",T.cancelText=v?.cancelText||"Cancel",T.onConfirm=()=>{T.visible=!1,C&&(C(!0),C=null)},T.onCancel=()=>{T.visible=!1,C&&(C(!1),C=null)}})}function o(){T.visible=!1,C&&(C(!1),C=null)}function y(d){Z(d)}function g(){for(const d of V.values())clearTimeout(d);V.clear(),z.value=[]}return{toasts:z,confirmDialog:T,success:t,error:e,info:i,warning:c,dismiss:y,clearAll:g,confirm:u,closeConfirm:o}}const qe={class:"models-page"},We={class:"models-sidebar"},Ge={class:"models-sidebar__header"},Xe={class:"models-sidebar__badge"},Ye={key:0,class:"models-sidebar__loading"},Qe={key:1,class:"models-sidebar__list"},Ze=["onClick"],et={class:"models-sidebar__name"},tt={class:"models-sidebar__count"},st={class:"models-sidebar__footer"},at={class:"models-sidebar__stat"},nt={class:"font-mono"},ot={class:"models-content"},lt={class:"models-toolbar"},rt={class:"models-toolbar__title"},it={class:"font-mono"},ct={class:"text-muted"},dt={key:0,class:"models-toolbar__badge models-toolbar__badge--warning"},ut={class:"models-toolbar__actions"},ft=["disabled"],mt=["disabled"],vt={key:0,class:"models-error"},ht={class:"models-panels"},_t={class:"models-panel"},yt={class:"models-panel"},pt={key:1,class:"models-loading-overlay"},gt={key:1,class:"empty-state"},bt={key:0,class:"models-error"},St={class:"modal__body"},kt={class:"modal__footer"},Ct=q({__name:"ModelsPage",setup(t){const e=ye(),{send:i,on:c,connected:u}=de(),{success:o,error:y,confirm:g}=Ke(),d=w(null),v=w(!1),p=w(-1);oe(async()=>{try{await e.fetchSchemas(),e.schemas.length>0&&!e.selectedSchema&&await e.selectSchemaByName(e.schemas[0].name)}catch(l){e.error||(e.error=l instanceof Error?l.message:"Failed to load schemas")}}),c("store:updated",l=>{const a=l;if(typeof l!="object"||l===null||typeof a.schema!="string"||typeof a.action!="string"||typeof a.count!="number"){console.warn("[ModelsPage] Invalid store:updated payload:",l);return}e.handleStoreUpdate(l),p.value=-1}),c("reseeded",l=>{const a=l;if(typeof l!="object"||l===null||typeof a.success!="boolean"||!Array.isArray(a.schemas)){console.warn("[ModelsPage] Invalid reseeded payload:",l);return}e.handleReseedComplete(l),p.value=-1}),H(()=>e.selectedSchema,async()=>{p.value=-1,d.value&&e.currentItems.length>0&&(await ce(),d.value?.formatJson())}),H(()=>e.currentItems,(l,a)=>{const S=p.value;if(S<0)return;if(S>=l.length){p.value=-1;return}const R=e.currentSchema?.idField??"id",n=a?.[S],_=l[S];if(n!==_){if(typeof n=="object"&&n!==null&&typeof _=="object"&&_!==null){const I=n[R],D=_[R];if(I!==void 0&&I===D)return}p.value=-1}});async function x(l){e.isDirty&&!await g("You have unsaved changes. Are you sure you want to switch schemas?",{title:"Unsaved Changes",confirmText:"Switch Schema",cancelText:"Cancel"})||await e.selectSchemaByName(l)}async function F(){if(!d.value?.isValid){y("Cannot save invalid JSON. Please fix the errors first.");return}if(await e.saveItems())o("Items saved successfully");else{const a=e.error||"Failed to save items";y(a)}}async function j(){if(!e.isDirty)return;await g("Discard all changes and revert to saved data?",{title:"Discard Changes",confirmText:"Discard",cancelText:"Cancel"})&&(e.discardChanges(),o("Changes discarded"))}async function O(){v.value=!1;try{if(await e.clearSchema())o("Schema cleared successfully");else{const a=e.error||"Failed to clear schema";y(a)}}catch(l){const a=l instanceof Error?l.message:"Failed to clear schema";y(a)}}async function h(){if(!u.value){y("WebSocket not connected. Cannot trigger reseed.");return}await g("This will regenerate all seed data and replace existing items. Continue?",{title:"Reseed All Schemas",confirmText:"Reseed",cancelText:"Cancel"})&&(i({type:"reseed"}),o("Reseed command sent"))}function b(l){e.updateItems(l)}function $(l){p.value=p.value===l?-1:l}return(l,a)=>(f(),m("div",qe,[s("aside",We,[s("div",Ge,[E(r(K),{size:18}),a[4]||(a[4]=s("span",null,"Schemas",-1)),s("span",Xe,k(r(e).schemaCount),1)]),r(e).loading&&r(e).schemas.length===0?(f(),m("div",Ye,[...a[5]||(a[5]=[s("div",{class:"spinner"},null,-1),s("span",null,"Loading...",-1)])])):(f(),m("div",Qe,[(f(!0),m(J,null,A(r(e).schemas,S=>(f(),m("button",{key:S.name,class:L(["models-sidebar__item",{"models-sidebar__item--active":r(e).selectedSchema===S.name}]),onClick:R=>x(S.name)},[s("span",et,k(S.name),1),s("span",tt,k(S.count),1)],10,Ze))),128))])),s("div",st,[s("div",at,[a[6]||(a[6]=s("span",{class:"text-muted"},"Total Items:",-1)),s("span",nt,k(r(e).totalItems),1)])])]),s("main",ot,[r(e).selectedSchema?(f(),m(J,{key:0},[s("div",lt,[s("div",rt,[s("span",it,k(r(e).selectedSchema),1),s("span",ct,"("+k(r(e).currentItems.length)+" items)",1),r(e).isDirty?(f(),m("span",dt," Unsaved ")):N("",!0)]),s("div",ut,[r(e).isDirty?(f(),m("button",{key:0,class:"btn btn--ghost",title:"Discard changes",onClick:j},[E(r(fe),{size:16}),a[7]||(a[7]=s("span",null,"Discard",-1))])):N("",!0),s("button",{disabled:!r(e).isDirty||r(e).loading,class:"btn btn--primary",title:"Save changes",onClick:F},[E(r(_e),{size:16}),a[8]||(a[8]=s("span",null,"Save",-1))],8,ft),s("button",{class:"btn btn--danger",title:"Clear all items",onClick:a[0]||(a[0]=S=>v.value=!0)},[E(r(me),{size:16}),a[9]||(a[9]=s("span",null,"Clear",-1))]),s("button",{disabled:!r(u),class:"btn btn--secondary",title:"Reseed all schemas with generated data",onClick:h},[E(r(he),{size:16}),a[10]||(a[10]=s("span",null,"Reseed All",-1))],8,mt)])]),r(e).error?(f(),m("div",vt,[s("span",null,"⚠️ "+k(r(e).error),1)])):N("",!0),s("div",ht,[s("div",_t,[E(Le,{ref_key:"jsonEditorRef",ref:d,"model-value":r(e).currentItems,readonly:r(e).loading,"min-height":400,"onUpdate:modelValue":b},null,8,["model-value","readonly"])]),s("div",yt,[E(De,{items:r(e).currentItems,"id-field":r(e).currentSchema?.idField??"id","selected-index":p.value,onSelect:$},null,8,["items","id-field","selected-index"])])]),r(e).loading?(f(),m("div",pt,[...a[11]||(a[11]=[s("div",{class:"spinner"},null,-1),s("span",null,"Loading...",-1)])])):N("",!0)],64)):(f(),m("div",gt,[r(e).error?(f(),m("div",bt,[s("span",null,"⚠️ "+k(r(e).error),1)])):(f(),m(J,{key:1},[E(r(K),{size:48,class:"empty-state__icon"}),a[12]||(a[12]=s("h3",{class:"empty-state__title"},"Select a schema",-1)),a[13]||(a[13]=s("p",{class:"empty-state__description"}," Choose a schema from the sidebar to view and edit its data. ",-1))],64))]))]),(f(),le(ie,{to:"body"},[v.value?(f(),m("div",{key:0,class:"modal-overlay",onClick:a[3]||(a[3]=S=>v.value=!1)},[s("div",{class:"modal",onClick:a[2]||(a[2]=re(()=>{},["stop"]))},[a[17]||(a[17]=s("div",{class:"modal__header"},[s("h3",null,"Clear Schema Data")],-1)),s("div",St,[s("p",null,[a[14]||(a[14]=Y(" Are you sure you want to clear all items for ",-1)),s("strong",null,k(r(e).selectedSchema),1),a[15]||(a[15]=Y("? ",-1))]),a[16]||(a[16]=s("p",{class:"text-muted"},"This action cannot be undone.",-1))]),s("div",kt,[s("button",{class:"btn btn--ghost",onClick:a[1]||(a[1]=S=>v.value=!1)}," Cancel "),s("button",{class:"btn btn--danger",onClick:O}," Clear Schema ")])])])):N("",!0)]))]))}}),Et=G(Ct,[["__scopeId","data-v-353edfbc"]]);export{Et as default};
4
- //# sourceMappingURL=ModelsPage-Ef8Z_K5t.js.map
3
+ `),a=l.length,S=l[l.length-1].length+1;y.value=`Line ${a}, Column ${S}: ${h.message}`}else y.value=h.message}else y.value="Invalid JSON"}}function j(){try{const h=JSON.parse(o.value);o.value=JSON.stringify(h,null,2),y.value=null,u("update:modelValue",h)}catch{}}function O(h){if(h.key==="Tab"){h.preventDefault();const b=h.target,$=b.selectionStart,l=b.selectionEnd,a=`${o.value.substring(0,$)} ${o.value.substring(l)}`;o.value=a,setTimeout(()=>{b.selectionStart=b.selectionEnd=$+2},0),F()}}return e({formatJson:j,isValid:g}),(h,b)=>(f(),m("div",Me,[s("div",Ne,[s("div",Je,[(f(!0),m(J,null,A(v.value,$=>(f(),m("div",{key:$,class:"json-editor__line-number"},k($),1))),128))]),s("textarea",{value:o.value,readonly:t.readonly,placeholder:t.placeholder,style:ae({minHeight:`${t.minHeight}px`}),class:"json-editor__textarea",spellcheck:"false",onInput:x,onKeydown:O},null,44,Fe)]),s("div",Ve,[s("div",Oe,[g.value?(f(),m("div",Re,[E(r(ue),{size:14}),b[0]||(b[0]=s("span",null,"Valid JSON",-1))])):y.value?(f(),m("div",Ae,[E(r(ve),{size:14}),s("span",null,k(y.value),1)])):N("",!0)]),s("div",ze,[s("span",Ue,k(d.value)+" lines",1)])])]))}}),Le=G(Be,[["__scopeId","data-v-dbd5ce20"]]),z=w([]),T=ne({visible:!1,title:"",message:"",confirmText:"Confirm",cancelText:"Cancel",onConfirm:null,onCancel:null}),V=new Map;let C=null,Pe=0;function He(){return`toast-${Date.now()}-${Pe++}`}function B(t,e,i=3e3){const c=He(),u={id:c,type:t,message:e,duration:i,timestamp:Date.now()};if(z.value.push(u),i>0){const o=setTimeout(()=>{Z(c),V.delete(c)},i);V.set(c,o)}return c}function Z(t){const e=V.get(t);e!==void 0&&(clearTimeout(e),V.delete(t));const i=z.value.findIndex(c=>c.id===t);i!==-1&&z.value.splice(i,1)}function Ke(){function t(d,v){return B("success",d,v)}function e(d,v){return B("error",d,v)}function i(d,v){return B("info",d,v)}function c(d,v){return B("warning",d,v)}function u(d,v){return new Promise(p=>{C&&(C(!1),C=null),C=p,T.visible=!0,T.title=v?.title||"Confirm",T.message=d,T.confirmText=v?.confirmText||"Confirm",T.cancelText=v?.cancelText||"Cancel",T.onConfirm=()=>{T.visible=!1,C&&(C(!0),C=null)},T.onCancel=()=>{T.visible=!1,C&&(C(!1),C=null)}})}function o(){T.visible=!1,C&&(C(!1),C=null)}function y(d){Z(d)}function g(){for(const d of V.values())clearTimeout(d);V.clear(),z.value=[]}return{toasts:z,confirmDialog:T,success:t,error:e,info:i,warning:c,dismiss:y,clearAll:g,confirm:u,closeConfirm:o}}const qe={class:"models-page"},We={class:"models-sidebar"},Ge={class:"models-sidebar__header"},Xe={class:"models-sidebar__badge"},Ye={key:0,class:"models-sidebar__loading"},Qe={key:1,class:"models-sidebar__list"},Ze=["onClick"],et={class:"models-sidebar__name"},tt={class:"models-sidebar__count"},st={class:"models-sidebar__footer"},at={class:"models-sidebar__stat"},nt={class:"font-mono"},ot={class:"models-content"},lt={class:"models-toolbar"},rt={class:"models-toolbar__title"},it={class:"font-mono"},ct={class:"text-muted"},dt={key:0,class:"models-toolbar__badge models-toolbar__badge--warning"},ut={class:"models-toolbar__actions"},ft=["disabled"],mt=["disabled"],vt={key:0,class:"models-error"},ht={class:"models-panels"},_t={class:"models-panel"},yt={class:"models-panel"},pt={key:1,class:"models-loading-overlay"},gt={key:1,class:"empty-state"},bt={key:0,class:"models-error"},St={class:"modal__body"},kt={class:"modal__footer"},Ct=q({__name:"ModelsPage",setup(t){const e=ye(),{send:i,on:c,connected:u}=de(),{success:o,error:y,confirm:g}=Ke(),d=w(null),v=w(!1),p=w(-1);oe(async()=>{try{await e.fetchSchemas(),e.schemas.length>0&&!e.selectedSchema&&await e.selectSchemaByName(e.schemas[0].name)}catch(l){e.error||(e.error=l instanceof Error?l.message:"Failed to load schemas")}}),c("store:updated",l=>{const a=l;if(typeof l!="object"||l===null||typeof a.schema!="string"||typeof a.action!="string"||typeof a.count!="number"){console.warn("[ModelsPage] Invalid store:updated payload:",l);return}e.handleStoreUpdate(l),p.value=-1}),c("reseeded",l=>{const a=l;if(typeof l!="object"||l===null||typeof a.success!="boolean"||!Array.isArray(a.schemas)){console.warn("[ModelsPage] Invalid reseeded payload:",l);return}e.handleReseedComplete(l),p.value=-1}),H(()=>e.selectedSchema,async()=>{p.value=-1,d.value&&e.currentItems.length>0&&(await ce(),d.value?.formatJson())}),H(()=>e.currentItems,(l,a)=>{const S=p.value;if(S<0)return;if(S>=l.length){p.value=-1;return}const R=e.currentSchema?.idField??"id",n=a?.[S],_=l[S];if(n!==_){if(typeof n=="object"&&n!==null&&typeof _=="object"&&_!==null){const I=n[R],D=_[R];if(I!==void 0&&I===D)return}p.value=-1}});async function x(l){e.isDirty&&!await g("You have unsaved changes. Are you sure you want to switch schemas?",{title:"Unsaved Changes",confirmText:"Switch Schema",cancelText:"Cancel"})||await e.selectSchemaByName(l)}async function F(){if(!d.value?.isValid){y("Cannot save invalid JSON. Please fix the errors first.");return}if(await e.saveItems())o("Items saved successfully");else{const a=e.error||"Failed to save items";y(a)}}async function j(){if(!e.isDirty)return;await g("Discard all changes and revert to saved data?",{title:"Discard Changes",confirmText:"Discard",cancelText:"Cancel"})&&(e.discardChanges(),o("Changes discarded"))}async function O(){v.value=!1;try{if(await e.clearSchema())o("Schema cleared successfully");else{const a=e.error||"Failed to clear schema";y(a)}}catch(l){const a=l instanceof Error?l.message:"Failed to clear schema";y(a)}}async function h(){if(!u.value){y("WebSocket not connected. Cannot trigger reseed.");return}await g("This will regenerate all seed data and replace existing items. Continue?",{title:"Reseed All Schemas",confirmText:"Reseed",cancelText:"Cancel"})&&(i({type:"reseed"}),o("Reseed command sent"))}function b(l){e.updateItems(l)}function $(l){p.value=p.value===l?-1:l}return(l,a)=>(f(),m("div",qe,[s("aside",We,[s("div",Ge,[E(r(K),{size:18}),a[4]||(a[4]=s("span",null,"Schemas",-1)),s("span",Xe,k(r(e).schemaCount),1)]),r(e).loading&&r(e).schemas.length===0?(f(),m("div",Ye,[...a[5]||(a[5]=[s("div",{class:"spinner"},null,-1),s("span",null,"Loading...",-1)])])):(f(),m("div",Qe,[(f(!0),m(J,null,A(r(e).schemas,S=>(f(),m("button",{key:S.name,class:L(["models-sidebar__item",{"models-sidebar__item--active":r(e).selectedSchema===S.name}]),onClick:R=>x(S.name)},[s("span",et,k(S.name),1),s("span",tt,k(S.count),1)],10,Ze))),128))])),s("div",st,[s("div",at,[a[6]||(a[6]=s("span",{class:"text-muted"},"Total Items:",-1)),s("span",nt,k(r(e).totalItems),1)])])]),s("main",ot,[r(e).selectedSchema?(f(),m(J,{key:0},[s("div",lt,[s("div",rt,[s("span",it,k(r(e).selectedSchema),1),s("span",ct,"("+k(r(e).currentItems.length)+" items)",1),r(e).isDirty?(f(),m("span",dt," Unsaved ")):N("",!0)]),s("div",ut,[r(e).isDirty?(f(),m("button",{key:0,class:"btn btn--ghost",title:"Discard changes",onClick:j},[E(r(fe),{size:16}),a[7]||(a[7]=s("span",null,"Discard",-1))])):N("",!0),s("button",{disabled:!r(e).isDirty||r(e).loading,class:"btn btn--primary",title:"Save changes",onClick:F},[E(r(_e),{size:16}),a[8]||(a[8]=s("span",null,"Save",-1))],8,ft),s("button",{class:"btn btn--danger",title:"Clear all items",onClick:a[0]||(a[0]=S=>v.value=!0)},[E(r(me),{size:16}),a[9]||(a[9]=s("span",null,"Clear",-1))]),s("button",{disabled:!r(u),class:"btn btn--secondary",title:"Reseed all schemas with generated data",onClick:h},[E(r(he),{size:16}),a[10]||(a[10]=s("span",null,"Reseed All",-1))],8,mt)])]),r(e).error?(f(),m("div",vt,[s("span",null,"⚠️ "+k(r(e).error),1)])):N("",!0),s("div",ht,[s("div",_t,[E(Le,{ref_key:"jsonEditorRef",ref:d,"model-value":r(e).currentItems,readonly:r(e).loading,"min-height":400,"onUpdate:modelValue":b},null,8,["model-value","readonly"])]),s("div",yt,[E(De,{items:r(e).currentItems,"id-field":r(e).currentSchema?.idField??"id","selected-index":p.value,onSelect:$},null,8,["items","id-field","selected-index"])])]),r(e).loading?(f(),m("div",pt,[...a[11]||(a[11]=[s("div",{class:"spinner"},null,-1),s("span",null,"Loading...",-1)])])):N("",!0)],64)):(f(),m("div",gt,[r(e).error?(f(),m("div",bt,[s("span",null,"⚠️ "+k(r(e).error),1)])):(f(),m(J,{key:1},[E(r(K),{size:48,class:"empty-state__icon"}),a[12]||(a[12]=s("h3",{class:"empty-state__title"},"Select a schema",-1)),a[13]||(a[13]=s("p",{class:"empty-state__description"}," Choose a schema from the sidebar to view and edit its data. ",-1))],64))]))]),(f(),le(ie,{to:"body"},[v.value?(f(),m("div",{key:0,class:"modal-overlay",onClick:a[3]||(a[3]=S=>v.value=!1)},[s("div",{class:"modal",onClick:a[2]||(a[2]=re(()=>{},["stop"]))},[a[17]||(a[17]=s("div",{class:"modal__header"},[s("h3",null,"Clear Schema Data")],-1)),s("div",St,[s("p",null,[a[14]||(a[14]=Y(" Are you sure you want to clear all items for ",-1)),s("strong",null,k(r(e).selectedSchema),1),a[15]||(a[15]=Y("? ",-1))]),a[16]||(a[16]=s("p",{class:"text-muted"},"This action cannot be undone.",-1))]),s("div",kt,[s("button",{class:"btn btn--ghost",onClick:a[1]||(a[1]=S=>v.value=!1)}," Cancel "),s("button",{class:"btn btn--danger",onClick:O}," Clear Schema ")])])])):N("",!0)]))]))}}),Et=G(Ct,[["__scopeId","data-v-96cf0ec0"]]);export{Et as default};
4
+ //# sourceMappingURL=ModelsPage-CGAzOf6p.js.map