@scalar/api-client 2.2.7 → 2.2.9

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 (149) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  3. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  4. package/dist/components/CodeInput/CodeInput.vue2.js +65 -65
  5. package/dist/components/CodeInput/codeVariableWidget.d.ts +6 -4
  6. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  7. package/dist/components/CodeInput/codeVariableWidget.js +72 -68
  8. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  9. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +108 -106
  10. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +1 -1
  11. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
  12. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +12 -12
  13. package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
  14. package/dist/components/DataTable/DataTable.vue.js +20 -15
  15. package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
  16. package/dist/components/DataTable/DataTableCell.vue.js +16 -11
  17. package/dist/components/DataTable/DataTableHeader.vue.d.ts.map +1 -1
  18. package/dist/components/DataTable/DataTableHeader.vue.js +11 -12
  19. package/dist/components/DataTable/DataTableInput.vue.d.ts +2 -1
  20. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  21. package/dist/components/DataTable/DataTableInput.vue.js +3 -3
  22. package/dist/components/DataTable/DataTableInput.vue2.js +9 -9
  23. package/dist/components/DataTable/index.js +14 -14
  24. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  25. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +87 -67
  26. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
  27. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +2 -2
  28. package/dist/components/Sidebar/SidebarList.vue.d.ts.map +1 -1
  29. package/dist/components/Sidebar/SidebarList.vue.js +4 -4
  30. package/dist/components/Sidebar/SidebarListElement.vue.d.ts +8 -4
  31. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
  32. package/dist/components/Sidebar/SidebarListElement.vue.js +1 -1
  33. package/dist/components/Sidebar/SidebarListElement.vue2.js +52 -32
  34. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +3 -0
  35. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
  36. package/dist/components/Sidebar/SidebarListElementActions.vue.js +43 -31
  37. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  38. package/dist/components/TopNav/TopNav.vue.js +32 -31
  39. package/dist/layouts/App/create-api-client-app.d.ts +49 -42
  40. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  41. package/dist/layouts/Modal/create-api-client-modal.d.ts +103 -89
  42. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  43. package/dist/layouts/Modal/create-api-client-modal.js +31 -19
  44. package/dist/layouts/Web/create-api-client-web.d.ts +49 -42
  45. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  46. package/dist/libs/create-client.d.ts +50 -44
  47. package/dist/libs/create-client.d.ts.map +1 -1
  48. package/dist/libs/env-helpers.d.ts +9 -0
  49. package/dist/libs/env-helpers.d.ts.map +1 -0
  50. package/dist/libs/env-helpers.js +4 -0
  51. package/dist/libs/environment-parser.d.ts +3 -4
  52. package/dist/libs/environment-parser.d.ts.map +1 -1
  53. package/dist/libs/environment-parser.js +5 -4
  54. package/dist/libs/index.d.ts +2 -0
  55. package/dist/libs/index.d.ts.map +1 -1
  56. package/dist/libs/index.js +28 -22
  57. package/dist/libs/postman.d.ts +11 -0
  58. package/dist/libs/postman.d.ts.map +1 -0
  59. package/dist/libs/postman.js +39 -0
  60. package/dist/libs/send-request/send-request.d.ts +5 -2
  61. package/dist/libs/send-request/send-request.d.ts.map +1 -1
  62. package/dist/libs/send-request/send-request.js +106 -104
  63. package/dist/routes.d.ts +11 -0
  64. package/dist/routes.d.ts.map +1 -1
  65. package/dist/routes.js +13 -7
  66. package/dist/store/active-entities.d.ts +18 -11
  67. package/dist/store/active-entities.d.ts.map +1 -1
  68. package/dist/store/active-entities.js +108 -69
  69. package/dist/store/collections.d.ts +17 -15
  70. package/dist/store/collections.d.ts.map +1 -1
  71. package/dist/store/collections.js +62 -41
  72. package/dist/store/environment.d.ts +4 -4
  73. package/dist/store/import-spec.d.ts +2 -2
  74. package/dist/store/import-spec.d.ts.map +1 -1
  75. package/dist/store/index.d.ts +1 -0
  76. package/dist/store/index.d.ts.map +1 -1
  77. package/dist/store/index.js +7 -3
  78. package/dist/store/requests.d.ts +4 -4
  79. package/dist/store/router-params.d.ts +1 -1
  80. package/dist/store/router-params.d.ts.map +1 -1
  81. package/dist/store/router-params.js +7 -7
  82. package/dist/store/store.d.ts +49 -42
  83. package/dist/store/store.d.ts.map +1 -1
  84. package/dist/store/store.js +76 -72
  85. package/dist/store/workspace.d.ts +12 -12
  86. package/dist/store/workspace.d.ts.map +1 -1
  87. package/dist/style.css +1 -1
  88. package/dist/types/index.d.ts +2 -0
  89. package/dist/types/index.d.ts.map +1 -0
  90. package/dist/types/index.js +1 -0
  91. package/dist/types/vue.d.ts +10 -0
  92. package/dist/types/vue.d.ts.map +1 -0
  93. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  94. package/dist/views/Cookies/Cookies.vue2.js +75 -70
  95. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  96. package/dist/views/Environment/Environment.vue2.js +308 -152
  97. package/dist/views/Environment/EnvironmentColorModal.vue.d.ts.map +1 -1
  98. package/dist/views/Environment/EnvironmentColorModal.vue.js +20 -18
  99. package/dist/views/Environment/EnvironmentColors.vue.d.ts +4 -1
  100. package/dist/views/Environment/EnvironmentColors.vue.d.ts.map +1 -1
  101. package/dist/views/Environment/EnvironmentColors.vue.js +83 -58
  102. package/dist/views/Environment/EnvironmentModal.vue.d.ts +7 -0
  103. package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +1 -1
  104. package/dist/views/Environment/EnvironmentModal.vue.js +119 -37
  105. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +4 -5
  106. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  107. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +73 -63
  108. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  109. package/dist/views/Request/Request.vue.js +2 -2
  110. package/dist/views/Request/Request.vue2.js +60 -61
  111. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +1 -0
  112. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  113. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +185 -187
  114. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +1 -0
  115. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
  116. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +27 -24
  117. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  118. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
  119. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +35 -187
  120. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +7 -0
  121. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -0
  122. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +7 -0
  123. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +207 -0
  124. package/dist/views/Request/RequestSection/{RequestAuthDataTableInput.vue.d.ts → RequestAuth/RequestAuthDataTableInput.vue.d.ts} +2 -2
  125. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -0
  126. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +43 -0
  127. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts +1 -0
  128. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -1
  129. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +5 -134
  130. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +176 -2
  131. package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +2 -0
  132. package/dist/views/Request/RequestSection/RequestAuth/index.d.ts.map +1 -0
  133. package/dist/views/Request/RequestSection/RequestAuth/index.js +4 -0
  134. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  135. package/dist/views/Request/RequestSidebar.vue.js +3 -3
  136. package/dist/views/Request/RequestSidebar.vue2.js +139 -117
  137. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  138. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  139. package/dist/views/Request/RequestSidebarItem.vue2.js +32 -38
  140. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  141. package/dist/views/Request/libs/auth.d.ts.map +1 -1
  142. package/dist/views/Request/libs/auth.js +3 -3
  143. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  144. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  145. package/dist/views/Servers/Servers.vue2.js +9 -8
  146. package/package.json +19 -8
  147. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +0 -1
  148. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.js +0 -46
  149. /package/dist/views/Request/RequestSection/{RequestAuthDataTableInput.vue2.js → RequestAuth/RequestAuthDataTableInput.vue2.js} +0 -0
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as V, ref as i, computed as b, openBlock as l, createBlock as u, normalizeClass as k, withCtx as g, createElementBlock as r, renderSlot as p, createCommentVNode as d, createElementVNode as C, Fragment as B, mergeProps as f, unref as $ } from "vue";
2
2
  import h from "../CodeInput/CodeInput.vue.js";
3
- import { ScalarIconButton as x } from "@scalar/components";
4
- import O from "./DataTableCell.vue.js";
5
- import q from "./DataTableInputSelect.vue.js";
3
+ import { ScalarIconButton as q } from "@scalar/components";
4
+ import x from "./DataTableCell.vue.js";
5
+ import O from "./DataTableInputSelect.vue.js";
6
6
  const A = {
7
7
  key: 0,
8
8
  class: "text-c-1 flex min-w-[94px] items-center pl-2 pr-0"
9
9
  }, I = { class: "row-1 overflow-x-auto" }, E = ["id", "readOnly", "type", "value"], F = {
10
10
  key: 2,
11
- class: "absolute centered-y right-2 pt-px text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-has-[:focus-visible]:opacity-0"
11
+ class: "scalar-input-required absolute centered-y right-2 pt-px text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-has-[:focus-visible]:opacity-0"
12
12
  }, S = {
13
13
  key: 1,
14
14
  class: "absolute centered-y right-7 text-orange text-xs"
@@ -28,15 +28,15 @@ const A = {
28
28
  max: {}
29
29
  },
30
30
  emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
31
- setup(y, { emit: c }) {
32
- const o = y, s = c, n = i(!0);
31
+ setup(c, { emit: y }) {
32
+ const o = c, s = y, n = i(!0);
33
33
  i("");
34
34
  const v = i(!1), w = () => {
35
35
  v.value || s("inputBlur");
36
36
  }, m = b(
37
37
  () => o.type === "password" ? n.value ? "password" : "text" : o.type ?? "text"
38
38
  );
39
- return (e, t) => (l(), u(O, {
39
+ return (e, t) => (l(), u(x, {
40
40
  class: k(["relative row", e.containerClass])
41
41
  }, {
42
42
  default: g(() => [
@@ -44,7 +44,7 @@ const A = {
44
44
  p(e.$slots, "default", {}, void 0, !0)
45
45
  ])) : d("", !0),
46
46
  C("div", I, [
47
- o.enum && o.enum.length ? (l(), u(q, {
47
+ o.enum && o.enum.length ? (l(), u(O, {
48
48
  key: 0,
49
49
  canAddCustomValue: e.canAddCustomEnumValue,
50
50
  modelValue: o.modelValue,
@@ -87,7 +87,7 @@ const A = {
87
87
  p(e.$slots, "warning", {}, void 0, !0)
88
88
  ])) : d("", !0),
89
89
  p(e.$slots, "icon", {}, void 0, !0),
90
- e.type === "password" ? (l(), u($(x), {
90
+ e.type === "password" ? (l(), u($(q), {
91
91
  key: 2,
92
92
  class: "-ml-.5 mr-1 h-6 w-6 self-center p-1.5",
93
93
  icon: n.value ? "Show" : "Hide",
@@ -1,18 +1,18 @@
1
- import { default as t } from "./DataTable.vue.js";
2
- import { default as o } from "./DataTableCell.vue.js";
3
- import { default as f } from "./DataTableCheckbox.vue.js";
4
- import { default as u } from "./DataTableHeader.vue.js";
5
- import { default as b } from "./DataTableInput.vue.js";
6
- import { default as T } from "./DataTableRow.vue.js";
7
- import { default as s } from "./DataTableText.vue.js";
1
+ import { default as t } from "./DataTableInput.vue.js";
2
+ import { default as o } from "./DataTableRow.vue.js";
3
+ import { default as f } from "./DataTableText.vue.js";
4
+ import { default as u } from "./DataTable.vue.js";
5
+ import { default as b } from "./DataTableCell.vue.js";
6
+ import { default as T } from "./DataTableCheckbox.vue.js";
7
+ import { default as s } from "./DataTableHeader.vue.js";
8
8
  import { default as c } from "./DataTableInputSelect.vue.js";
9
9
  export {
10
- t as DataTable,
11
- o as DataTableCell,
12
- f as DataTableCheckbox,
13
- u as DataTableHeader,
14
- b as DataTableInput,
10
+ u as DataTable,
11
+ b as DataTableCell,
12
+ T as DataTableCheckbox,
13
+ s as DataTableHeader,
14
+ t as DataTableInput,
15
15
  c as DataTableInputSelect,
16
- T as DataTableRow,
17
- s as DataTableText
16
+ o as DataTableRow,
17
+ f as DataTableText
18
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AAqXA,wBAMG"}
1
+ {"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AAqdA,wBAMG"}
@@ -1,96 +1,116 @@
1
- import { defineComponent as b, computed as S, openBlock as a, createElementBlock as f, createVNode as n, unref as e, withCtx as r, Fragment as y, renderList as N, createBlock as v, withModifiers as w, createTextVNode as c, toDisplayString as x, createElementVNode as l, normalizeClass as D, createCommentVNode as B } from "vue";
2
- import { useActiveEntities as I } from "../../store/active-entities.js";
3
- import { ScalarDropdown as j, ScalarDropdownItem as m, ScalarListboxCheckbox as z, ScalarIcon as d, ScalarDropdownDivider as V, ScalarButton as M } from "@scalar/components";
4
- import { useRouter as W } from "vue-router";
5
- import { useWorkspace as L } from "../../store/store.js";
6
- const O = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap" }, R = { class: "flex items-center justify-center h-4 w-4" }, J = /* @__PURE__ */ b({
1
+ import { defineComponent as D, computed as w, watch as I, onMounted as B, openBlock as l, createElementBlock as h, createVNode as r, unref as n, withCtx as i, Fragment as j, renderList as z, createBlock as E, withModifiers as k, createTextVNode as u, toDisplayString as g, createElementVNode as m, normalizeClass as M, createCommentVNode as V } from "vue";
2
+ import { useActiveEntities as W } from "../../store/active-entities.js";
3
+ import { ScalarDropdown as L, ScalarDropdownItem as v, ScalarListboxCheckbox as O, ScalarIcon as d, ScalarDropdownDivider as R, ScalarButton as $ } from "@scalar/components";
4
+ import { useRouter as A } from "vue-router";
5
+ import { useWorkspace as F } from "../../store/store.js";
6
+ const T = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap" }, q = { class: "flex items-center justify-center h-4 w-4" }, U = /* @__PURE__ */ D({
7
7
  __name: "EnvironmentSelector",
8
- setup($) {
9
- const { activeWorkspace: i, activeEnvironment: h } = I(), { environments: u, workspaceMutators: k, isReadOnly: g } = L(), E = W(), p = (s) => {
10
- k.edit(i.value.uid, "activeEnvironmentId", s);
11
- }, C = () => E.push({
8
+ setup(G) {
9
+ const { activeCollection: o, activeWorkspace: c, activeEnvironment: p } = W(), { isReadOnly: C, collectionMutators: _ } = F(), b = A(), f = (t) => {
10
+ o.value && (_.edit(
11
+ o.value.uid,
12
+ "x-scalar-active-environment",
13
+ t
14
+ ), c.value.activeEnvironmentId = t);
15
+ }, S = () => b.push({
12
16
  name: "environment",
13
17
  params: {
14
- environment: i.value.uid
18
+ environment: c.value.uid
15
19
  }
16
- }), _ = S(() => [
17
- // Always add the default environment
18
- u.default,
19
- ...Object.values(u).filter((s) => s.uid !== "default")
20
- ]);
21
- return (s, o) => (a(), f("div", null, [
22
- n(e(j), { placement: "bottom-end" }, {
23
- items: r(() => [
24
- (a(!0), f(y, null, N(_.value, (t) => (a(), v(e(m), {
25
- key: t.uid,
20
+ }), y = w(() => {
21
+ const { value: t } = p, { value: e } = o;
22
+ return (t == null ? void 0 : t.uid) || (e == null ? void 0 : e["x-scalar-active-environment"]) || "No Environment";
23
+ }), N = w(() => {
24
+ const { value: t } = o, e = t == null ? void 0 : t["x-scalar-environments"];
25
+ return e ? Object.entries(e).map(([a, s]) => ({
26
+ ...s,
27
+ uid: a,
28
+ name: a
29
+ })) : [];
30
+ }), x = (t) => {
31
+ const e = t["x-scalar-active-environment"];
32
+ e && o.value ? (o.value["x-scalar-active-environment"] = e, c.value.activeEnvironmentId = e) : c.value.activeEnvironmentId = "";
33
+ };
34
+ return I(o, (t) => {
35
+ x(t);
36
+ }), B(() => {
37
+ x(o.value);
38
+ }), (t, e) => (l(), h("div", null, [
39
+ r(n(L), { placement: "bottom-end" }, {
40
+ items: i(() => [
41
+ (l(!0), h(j, null, z(N.value, (a) => (l(), E(n(v), {
42
+ key: a.uid,
26
43
  class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
27
- onClick: w((A) => p(t.uid), ["stop"])
44
+ onClick: k((s) => f(a.uid), ["stop"])
28
45
  }, {
29
- default: r(() => [
30
- n(e(z), {
31
- selected: e(i).activeEnvironmentId === t.uid
32
- }, null, 8, ["selected"]),
33
- c(" " + x(t.name), 1)
34
- ]),
46
+ default: i(() => {
47
+ var s;
48
+ return [
49
+ r(n(O), {
50
+ selected: ((s = n(o)) == null ? void 0 : s["x-scalar-active-environment"]) === a.uid
51
+ }, null, 8, ["selected"]),
52
+ u(" " + g(a.name), 1)
53
+ ];
54
+ }),
35
55
  _: 2
36
56
  }, 1032, ["onClick"]))), 128)),
37
- n(e(m), {
57
+ r(n(v), {
38
58
  class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
39
- onClick: o[0] || (o[0] = w((t) => p(""), ["stop"]))
59
+ onClick: e[0] || (e[0] = k((a) => f(""), ["stop"]))
40
60
  }, {
41
- default: r(() => [
42
- l("div", {
43
- class: D([
44
- "flex items-center justify-center rounded-full p-[3px] w-4 h-4",
45
- e(i).activeEnvironmentId === "" ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
46
- ])
47
- }, [
48
- n(e(d), {
49
- class: "size-2.5",
50
- icon: "Checkmark",
51
- thickness: "3.5"
52
- })
53
- ], 2),
54
- o[1] || (o[1] = c(" No Environment "))
55
- ]),
61
+ default: i(() => {
62
+ var a;
63
+ return [
64
+ m("div", {
65
+ class: M([
66
+ "flex items-center justify-center rounded-full p-[3px] w-4 h-4",
67
+ n(p).uid === "" && ((a = n(o)) == null ? void 0 : a["x-scalar-active-environment"]) === "" ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
68
+ ])
69
+ }, [
70
+ r(n(d), {
71
+ class: "size-2.5",
72
+ icon: "Checkmark",
73
+ thickness: "3.5"
74
+ })
75
+ ], 2),
76
+ e[1] || (e[1] = u(" No Environment "))
77
+ ];
78
+ }),
56
79
  _: 1
57
80
  }),
58
- n(e(V)),
59
- e(g) ? B("", !0) : (a(), v(e(m), {
81
+ r(n(R)),
82
+ n(C) ? V("", !0) : (l(), E(n(v), {
60
83
  key: 0,
61
84
  class: "flex items-center gap-1.5",
62
- onClick: C
85
+ onClick: S
63
86
  }, {
64
- default: r(() => [
65
- l("div", R, [
66
- n(e(d), {
87
+ default: i(() => [
88
+ m("div", q, [
89
+ r(n(d), {
67
90
  icon: "Brackets",
68
91
  size: "sm"
69
92
  })
70
93
  ]),
71
- o[2] || (o[2] = l("span", { class: "leading-none" }, "Manage Environments", -1))
94
+ e[2] || (e[2] = m("span", { class: "leading-none" }, "Manage Environments", -1))
72
95
  ]),
73
96
  _: 1
74
97
  }))
75
98
  ]),
76
- default: r(() => [
77
- n(e(M), {
99
+ default: i(() => [
100
+ r(n($), {
78
101
  class: "font-normal h-auto justify-start py-1.5 px-1.5 pl-2 text-c-1 hover:bg-b-2 text-c-1 w-fit",
79
102
  fullWidth: "",
80
103
  variant: "ghost"
81
104
  }, {
82
- default: r(() => {
83
- var t;
84
- return [
85
- l("h2", O, [
86
- c(x(((t = e(h)) == null ? void 0 : t.name) ?? "No Environment") + " ", 1),
87
- n(e(d), {
88
- icon: "ChevronDown",
89
- size: "md"
90
- })
91
- ])
92
- ];
93
- }),
105
+ default: i(() => [
106
+ m("h2", T, [
107
+ u(g(y.value) + " ", 1),
108
+ r(n(d), {
109
+ icon: "ChevronDown",
110
+ size: "md"
111
+ })
112
+ ])
113
+ ]),
94
114
  _: 1
95
115
  })
96
116
  ]),
@@ -100,5 +120,5 @@ const O = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap"
100
120
  }
101
121
  });
102
122
  export {
103
- J as default
123
+ U as default
104
124
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarListElementForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/SidebarListElementForm.vue"],"names":[],"mappings":"AAmDA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAeF,iBAAS,cAAc;WAiGT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;8FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SidebarListElementForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/SidebarListElementForm.vue"],"names":[],"mappings":"AAmDA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAeF,iBAAS,cAAc;WAoGT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;8FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SidebarListElementForm.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-194bccb5"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b6a60dbc"]]);
5
5
  export {
6
- a as default
6
+ e as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarList.vue"],"names":[],"mappings":"AAcA,iBAAS,cAAc;WAuCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,4RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SidebarList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarList.vue"],"names":[],"mappings":"AAcA,iBAAS,cAAc;WAwCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,4RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,12 +1,12 @@
1
1
  import { openBlock as t, createElementBlock as o, renderSlot as r } from "vue";
2
2
  import c from "../../_virtual/_plugin-vue_export-helper.js";
3
- const s = {}, l = { class: "flex flex-col px-3 pt-2.5 pb-[75px]" };
4
- function n(e, f) {
3
+ const s = {}, l = { class: "flex flex-col gap-px px-3 pt-2.5 pb-[75px]" };
4
+ function n(e, p) {
5
5
  return t(), o("ul", l, [
6
6
  r(e.$slots, "default")
7
7
  ]);
8
8
  }
9
- const a = /* @__PURE__ */ c(s, [["render", n]]);
9
+ const _ = /* @__PURE__ */ c(s, [["render", n]]);
10
10
  export {
11
- a as default
11
+ _ as default
12
12
  };
@@ -1,23 +1,27 @@
1
+ import { type Icon } from '@scalar/components';
1
2
  type __VLS_Props = {
2
3
  variable: {
3
4
  uid: string;
4
5
  name: string;
5
6
  color?: string;
7
+ icon?: Icon;
6
8
  isDefault?: boolean;
7
9
  };
10
+ collectionId?: string;
8
11
  warningMessage?: string;
9
12
  isDeletable?: boolean;
10
13
  isCopyable?: boolean;
14
+ isRenameable?: boolean;
15
+ type: 'environment' | 'cookies' | 'server';
11
16
  };
12
17
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
13
18
  delete: (id: string) => any;
19
+ rename: (id: string) => any;
14
20
  colorModal: (id: string) => any;
15
21
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
22
  onDelete?: ((id: string) => any) | undefined;
23
+ onRename?: ((id: string) => any) | undefined;
17
24
  onColorModal?: ((id: string) => any) | undefined;
18
- }>, {
19
- isCopyable: boolean;
20
- isDeletable: boolean;
21
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLLIElement>;
25
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLLIElement>;
22
26
  export default _default;
23
27
  //# sourceMappingURL=SidebarListElement.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElement.vue"],"names":[],"mappings":"AA2FA,KAAK,WAAW,GAAG;IACf,QAAQ,EAAE;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB,CAAA;IACD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC;;;;;;;;gBADa,OAAO;iBADN,OAAO;;AAgLzB,wBASG"}
1
+ {"version":3,"file":"SidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElement.vue"],"names":[],"mappings":"AAoHA,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,oBAAoB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,IAAI,CAAC,EAAE,IAAI,CAAA;QACX,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB,CAAA;IACD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,IAAI,EAAE,aAAa,GAAG,SAAS,GAAG,QAAQ,CAAA;CAC3C,CAAC;;;;;;;;;;AAuNF,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./SidebarListElement.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-146f5335"]]);
4
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-f7711416"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -1,52 +1,72 @@
1
- import { defineComponent as v, resolveComponent as c, openBlock as t, createElementBlock as n, createVNode as r, normalizeClass as f, withModifiers as g, withCtx as C, createElementVNode as i, normalizeStyle as y, createCommentVNode as k, toDisplayString as w } from "vue";
2
- import D from "./SidebarListElementActions.vue.js";
3
- import { useRouter as h } from "vue-router";
4
- const M = { class: "empty-variable-name" }, V = /* @__PURE__ */ v({
1
+ import { defineComponent as g, resolveComponent as C, openBlock as r, createElementBlock as p, createVNode as d, normalizeClass as h, unref as t, withModifiers as D, withCtx as I, createElementVNode as c, normalizeStyle as M, createCommentVNode as m, createBlock as R, toDisplayString as B } from "vue";
2
+ import E from "./SidebarListElementActions.vue.js";
3
+ import { useActiveEntities as N } from "../../store/active-entities.js";
4
+ import { ScalarIcon as S } from "@scalar/components";
5
+ import { useRouter as z } from "vue-router";
6
+ const V = { class: "empty-variable-name text-sm" }, q = /* @__PURE__ */ g({
5
7
  __name: "SidebarListElement",
6
8
  props: {
7
9
  variable: {},
10
+ collectionId: {},
8
11
  warningMessage: {},
9
- isDeletable: { type: Boolean, default: !0 },
10
- isCopyable: { type: Boolean, default: !0 }
12
+ isDeletable: { type: Boolean },
13
+ isCopyable: { type: Boolean },
14
+ isRenameable: { type: Boolean },
15
+ type: {}
11
16
  },
12
- emits: ["delete", "colorModal"],
13
- setup(B, { emit: s }) {
14
- const a = s, p = h(), u = (e, l) => {
15
- e.metaKey ? window.open(l, "_blank") : p.push(l);
16
- }, b = (e) => {
17
- a("delete", e);
18
- }, d = (e) => {
19
- a("colorModal", e);
17
+ emits: ["delete", "colorModal", "rename"],
18
+ setup(u, { emit: b }) {
19
+ const v = u, i = b, k = z(), { activeWorkspace: n } = N(), y = (e, a, l) => {
20
+ const o = {
21
+ workspaceId: n.value.uid,
22
+ type: v.type,
23
+ collectionId: l || void 0,
24
+ uid: a
25
+ }, s = l ? `/workspace/${o.workspaceId}/${o.type}/${o.collectionId}/${o.uid}` : `/workspace/${o.workspaceId}/${o.type}/${o.uid}`;
26
+ e.metaKey ? window.open(s, "_blank") : k.push({ path: s });
27
+ }, f = (e) => {
28
+ i("delete", e);
29
+ }, w = (e) => {
30
+ i("colorModal", e);
31
+ }, $ = (e) => {
32
+ i("rename", e);
20
33
  };
21
- return (e, l) => {
22
- const m = c("router-link");
23
- return t(), n("li", null, [
24
- r(m, {
25
- class: f(["h-8 text-c-2 hover:bg-b-2 group relative block flex items-center gap-1 rounded py-1 pr-2 font-medium no-underline", [e.variable.color ? "pl-1" : "pl-2"]]),
34
+ return (e, a) => {
35
+ const l = C("router-link");
36
+ return r(), p("li", null, [
37
+ d(l, {
38
+ class: h(["h-8 text-c-2 hover:bg-b-2 group relative block flex items-center gap-1.5 rounded py-1 pr-2 font-medium no-underline", [e.variable.color ? "pl-1" : "pl-2"]]),
26
39
  exactActiveClass: "active-link",
27
- to: `${e.variable.uid}`,
28
- onClick: l[1] || (l[1] = g((o) => u(o, e.variable.uid), ["prevent"]))
40
+ to: e.collectionId ? `/workspace/${t(n).uid}/${e.type}/${e.collectionId}/${e.variable.uid}` : `/workspace/${t(n).uid}/${e.type}/${e.variable.uid}`,
41
+ onClick: a[1] || (a[1] = D((o) => y(o, e.variable.uid, e.collectionId), ["prevent"]))
29
42
  }, {
30
- default: C(() => [
31
- e.variable.color ? (t(), n("button", {
43
+ default: I(() => [
44
+ e.variable.color ? (r(), p("button", {
32
45
  key: 0,
33
46
  class: "hover:bg-b-3 rounded p-1.5",
34
47
  type: "button",
35
- onClick: l[0] || (l[0] = (o) => d(e.variable.uid))
48
+ onClick: a[0] || (a[0] = (o) => w(e.variable.uid))
36
49
  }, [
37
- i("div", {
50
+ c("div", {
38
51
  class: "h-2.5 w-2.5 rounded-xl",
39
- style: y({ backgroundColor: e.variable.color })
52
+ style: M({ backgroundColor: e.variable.color })
40
53
  }, null, 4)
41
- ])) : k("", !0),
42
- i("span", M, w(e.variable.name), 1),
43
- r(D, {
54
+ ])) : m("", !0),
55
+ e.variable.icon ? (r(), R(t(S), {
56
+ key: 1,
57
+ class: "text-sidebar-c-2 size-3.5 stroke-[2.25]",
58
+ icon: e.variable.icon
59
+ }, null, 8, ["icon"])) : m("", !0),
60
+ c("span", V, B(e.variable.name), 1),
61
+ d(E, {
44
62
  isCopyable: e.isCopyable,
45
63
  isDeletable: e.isDeletable,
64
+ isRenameable: e.isRenameable,
46
65
  variable: { ...e.variable, isDefault: e.variable.isDefault ?? !1 },
47
66
  warningMessage: e.warningMessage,
48
- onDelete: b
49
- }, null, 8, ["isCopyable", "isDeletable", "variable", "warningMessage"])
67
+ onDelete: f,
68
+ onRename: $
69
+ }, null, 8, ["isCopyable", "isDeletable", "isRenameable", "variable", "warningMessage"])
50
70
  ]),
51
71
  _: 1
52
72
  }, 8, ["class", "to"])
@@ -55,5 +75,5 @@ const M = { class: "empty-variable-name" }, V = /* @__PURE__ */ v({
55
75
  }
56
76
  });
57
77
  export {
58
- V as default
78
+ q as default
59
79
  };
@@ -7,11 +7,14 @@ type __VLS_Props = {
7
7
  warningMessage?: string;
8
8
  isCopyable?: boolean;
9
9
  isDeletable?: boolean;
10
+ isRenameable?: boolean;
10
11
  };
11
12
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
12
13
  delete: (id: string) => any;
14
+ rename: (id: string) => any;
13
15
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
16
  onDelete?: ((id: string) => any) | undefined;
17
+ onRename?: ((id: string) => any) | undefined;
15
18
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
19
  export default _default;
17
20
  //# sourceMappingURL=SidebarListElementActions.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":"AAwFA,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB,CAAA;IACD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;;;;;AAuLF,wBAOG"}
1
+ {"version":3,"file":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":"AAmGA,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB,CAAA;IACD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC;;;;;;;;AA2MF,wBAOG"}
@@ -1,68 +1,80 @@
1
- import { defineComponent as C, ref as y, openBlock as n, createElementBlock as i, Fragment as h, createElementVNode as w, unref as a, createVNode as r, createCommentVNode as s, withModifiers as k, withCtx as M, createBlock as D } from "vue";
1
+ import { defineComponent as g, ref as C, openBlock as n, createElementBlock as l, Fragment as h, createElementVNode as w, unref as a, createVNode as i, createCommentVNode as r, withModifiers as k, withCtx as M, createBlock as D } from "vue";
2
2
  import N from "./Actions/DeleteSidebarListElement.vue.js";
3
- import { useModal as $, ScalarIcon as c, ScalarModal as B } from "@scalar/components";
4
- import { useClipboard as S } from "@scalar/use-hooks/useClipboard";
5
- const x = { class: "absolute flex right-1 opacity-0 group-hover:opacity-100" }, z = /* @__PURE__ */ C({
3
+ import { useModal as $, ScalarIcon as m, ScalarModal as B } from "@scalar/components";
4
+ import { useClipboard as x } from "@scalar/use-hooks/useClipboard";
5
+ const E = { class: "absolute flex right-1 opacity-0 group-hover:opacity-100" }, R = /* @__PURE__ */ g({
6
6
  __name: "SidebarListElementActions",
7
7
  props: {
8
8
  variable: {},
9
9
  warningMessage: {},
10
10
  isCopyable: { type: Boolean },
11
- isDeletable: { type: Boolean }
11
+ isDeletable: { type: Boolean },
12
+ isRenameable: { type: Boolean }
12
13
  },
13
- emits: ["delete"],
14
+ emits: ["delete", "rename"],
14
15
  setup(d, { emit: p }) {
15
- const b = p, t = y({ action: "None", name: "" }), l = $(), { copyToClipboard: v } = S();
16
+ const b = p, o = C({ action: "None", name: "" }), s = $(), { copyToClipboard: v } = x();
16
17
  function f(e) {
17
- t.value = { action: e, name: d.variable.name }, l.show();
18
+ o.value = { action: e, name: d.variable.name }, s.show();
18
19
  }
19
- function u() {
20
- l.hide(), t.value = { action: "None", name: "" };
20
+ function c() {
21
+ s.hide(), o.value = { action: "None", name: "" };
21
22
  }
22
- function g(e) {
23
- b("delete", e), u();
23
+ function y(e) {
24
+ b("delete", e), c();
24
25
  }
25
- return (e, o) => (n(), i(h, null, [
26
- w("div", x, [
27
- e.isCopyable ? (n(), i("button", {
26
+ return (e, t) => (n(), l(h, null, [
27
+ w("div", E, [
28
+ e.isCopyable ? (n(), l("button", {
28
29
  key: 0,
29
30
  class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",
30
31
  type: "button",
31
- onClick: o[0] || (o[0] = (m) => a(v)(e.variable.name))
32
+ onClick: t[0] || (t[0] = (u) => a(v)(e.variable.name))
32
33
  }, [
33
- r(a(c), {
34
+ i(a(m), {
34
35
  class: "h-3 w-3",
35
36
  icon: "Clipboard"
36
37
  })
37
- ])) : s("", !0),
38
- !e.variable.isDefault && e.isDeletable ? (n(), i("button", {
38
+ ])) : r("", !0),
39
+ e.isRenameable ? (n(), l("button", {
39
40
  key: 1,
41
+ class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",
42
+ type: "button",
43
+ onClick: t[1] || (t[1] = (u) => b("rename", e.variable.uid))
44
+ }, [
45
+ i(a(m), {
46
+ class: "h-3 w-3",
47
+ icon: "Edit"
48
+ })
49
+ ])) : r("", !0),
50
+ !e.variable.isDefault && e.isDeletable ? (n(), l("button", {
51
+ key: 2,
40
52
  class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-1",
41
53
  type: "button",
42
- onClick: o[1] || (o[1] = k((m) => f(
54
+ onClick: t[2] || (t[2] = k((u) => f(
43
55
  "Delete"
44
56
  /* Delete */
45
57
  ), ["prevent"]))
46
58
  }, [
47
- r(a(c), {
59
+ i(a(m), {
48
60
  class: "h-3.5 w-3.5",
49
61
  icon: "Close"
50
62
  })
51
- ])) : s("", !0)
63
+ ])) : r("", !0)
52
64
  ]),
53
- r(a(B), {
65
+ i(a(B), {
54
66
  size: "sm",
55
- state: a(l),
56
- title: `${t.value.action} ${t.value.name}`
67
+ state: a(s),
68
+ title: `${o.value.action} ${o.value.name}`
57
69
  }, {
58
70
  default: M(() => [
59
- t.value.action === "Delete" ? (n(), D(N, {
71
+ o.value.action === "Delete" ? (n(), D(N, {
60
72
  key: 0,
61
- variableName: t.value.name,
73
+ variableName: o.value.name,
62
74
  warningMessage: e.warningMessage,
63
- onClose: u,
64
- onDelete: o[2] || (o[2] = (m) => g(e.variable.uid))
65
- }, null, 8, ["variableName", "warningMessage"])) : s("", !0)
75
+ onClose: c,
76
+ onDelete: t[3] || (t[3] = (u) => y(e.variable.uid))
77
+ }, null, 8, ["variableName", "warningMessage"])) : r("", !0)
66
78
  ]),
67
79
  _: 1
68
80
  }, 8, ["state", "title"])
@@ -70,5 +82,5 @@ const x = { class: "absolute flex right-1 opacity-0 group-hover:opacity-100" },
70
82
  }
71
83
  });
72
84
  export {
73
- z as default
85
+ R as default
74
86
  };