@septkit/ui 0.0.44 → 0.0.46

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.
@@ -2,24 +2,25 @@ import e from "../button/button.js";
2
2
  import { SplitterGroup_default as t } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Splitter/SplitterGroup.js";
3
3
  import { SplitterPanel_default as n } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Splitter/SplitterPanel.js";
4
4
  import { SplitterResizeHandle_default as r } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Splitter/SplitterResizeHandle.js";
5
- import { StepperRoot_default as ee } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperRoot.js";
6
- import { StepperItem_default as te } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperItem.js";
7
- import { StepperIndicator_default as i } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperIndicator.js";
8
- import { StepperTitle_default as ne } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperTitle.js";
9
- import re from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/arrow-right.js";
10
- import ie from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/check.js";
11
- import ae from "../code/xml-diff.js";
5
+ import { StepperRoot_default as i } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperRoot.js";
6
+ import { StepperItem_default as a } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperItem.js";
7
+ import { StepperIndicator_default as o } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperIndicator.js";
8
+ import { StepperTitle_default as ee } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperTitle.js";
9
+ import te from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/arrow-right.js";
10
+ import ne from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/check.js";
11
+ import re from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/list-tree.js";
12
+ import ie from "../code/xml-diff.js";
12
13
  import "../code/index.js";
13
- import oe from "./element-detail.js";
14
- import { buildDetail as se, buildSummary as a } from "./build-view-model.js";
15
- import ce from "./merge-progress.js";
16
- import le from "./merge-summary.js";
17
- import ue from "./merge-tree.js";
18
- import { useDocumentProgress as de } from "./use-document-progress.js";
19
- import { useMergeSession as fe } from "./use-merge-session.js";
20
- import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, normalizeClass as h, onMounted as pe, openBlock as g, ref as _, renderList as me, toDisplayString as v, unref as y, vShow as he, withCtx as b, withDirectives as x } from "vue";
14
+ import ae from "./element-detail.js";
15
+ import { buildDetail as oe, buildSummary as s } from "./build-view-model.js";
16
+ import se from "./merge-progress.js";
17
+ import ce from "./merge-summary.js";
18
+ import le from "./merge-tree.js";
19
+ import { useDocumentProgress as ue } from "./use-document-progress.js";
20
+ import { useMergeSession as de } from "./use-merge-session.js";
21
+ import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, normalizeClass as _, onMounted as fe, openBlock as v, ref as y, renderList as pe, toDisplayString as b, unref as x, vModelCheckbox as me, vShow as he, watch as ge, withCtx as S, withDirectives as C } from "vue";
21
22
  //#region lib/merge/merge-review.vue?vue&type=script&setup=true&lang.ts
22
- var S = { class: "flex h-full flex-col" }, C = { class: "flex flex-wrap items-center justify-between gap-x-8 gap-y-3 border-b border-base-300 px-4 py-2.5" }, w = {
23
+ var _e = { class: "flex h-full flex-col" }, ve = { class: "flex flex-wrap items-center justify-between gap-x-8 gap-y-3 border-b border-base-300 px-4 py-2.5" }, w = {
23
24
  key: 0,
24
25
  class: "flex flex-col items-start gap-x-4 gap-y-1 text-xs md:flex-row md:items-center"
25
26
  }, T = {
@@ -37,13 +38,13 @@ var S = { class: "flex h-full flex-col" }, C = { class: "flex flex-wrap items-ce
37
38
  }, P = { key: 1 }, F = {
38
39
  key: 0,
39
40
  class: "border-b border-error/40 bg-error/10 p-2 text-xs whitespace-pre-wrap text-error"
40
- }, I = { class: "min-h-0 flex-1" }, L = { class: "h-full" }, R = {
41
+ }, ye = { class: "min-h-0 flex-1" }, be = { class: "h-full" }, xe = { class: "flex shrink-0 items-center gap-4 border-b border-base-300 px-3 py-1.5 text-xs" }, Se = { class: "flex cursor-pointer items-center gap-1.5" }, Ce = { class: "min-h-0 flex-1 overflow-y-auto" }, we = {
41
42
  key: 2,
42
43
  class: "grid h-full place-items-center p-6 text-center"
43
- }, ge = { class: "flex flex-col items-center gap-1" }, _e = {
44
+ }, Te = { class: "flex flex-col items-center gap-1" }, Ee = {
44
45
  key: 0,
45
46
  class: "text-xs opacity-70"
46
- }, ve = { class: "flex items-center justify-end gap-2 border-t border-base-300 p-2" }, z = /*@__PURE__*/ m({
47
+ }, De = { class: "flex items-center justify-end gap-2 border-t border-base-300 p-2" }, I = /*@__PURE__*/ g({
47
48
  __name: "merge-review",
48
49
  props: {
49
50
  targetDocument: {},
@@ -57,176 +58,214 @@ var S = { class: "flex h-full flex-col" }, C = { class: "flex flex-wrap items-ce
57
58
  target: {}
58
59
  },
59
60
  emits: ["applied", "close"],
60
- setup(m, { emit: z }) {
61
- let B = m, V = z, H = fe(B), { structuralTree: U, previewXml: ye, previewBeforeXml: be, previewLoading: xe } = H, { progress: Se, history: Ce, track: W } = de(() => B.targetDocument.state), G = _("review"), K = _(!1), q = _(), J = _(), Y = _(), X = _(), Z = _(), we = [
61
+ setup(g, { emit: I }) {
62
+ let L = g, R = I, z = de(L), { structuralTree: B, previewXml: Oe, previewBeforeXml: ke, previewLoading: Ae } = z, { progress: je, history: Me, track: V } = ue(() => L.targetDocument.state), H = y("review"), U = y(!1), W = y(), G = y(), K = y(), q = y(), J = y(), Y = y(!0), X = y(), Ne = [
62
63
  "Review",
63
64
  "Confirm",
64
65
  "Done"
65
- ], Q = s(() => ({
66
+ ], Z = l(() => ({
66
67
  review: 0,
67
68
  confirm: 1,
68
69
  done: 2
69
- })[G.value]), Te = s(() => {
70
+ })[H.value]), Pe = l(() => {
70
71
  let e = {};
71
- for (let t of H.report.value?.groups ?? []) e[t.id] = H.decisionOf(t.id);
72
+ for (let t of z.report.value?.groups ?? []) e[t.id] = z.decisionOf(t.id);
72
73
  return e;
73
- });
74
- pe(async () => {
75
- q.value = "Analyzing template…", K.value = !0;
74
+ }), Fe = l(() => {
75
+ let e = B.value;
76
+ if (Y.value) return e.items;
77
+ let t = new Set(e.expanded);
78
+ function n(e) {
79
+ let r = [];
80
+ for (let i of e) {
81
+ if (!t.has(i.id)) continue;
82
+ let e = i.children ? n(i.children) : void 0;
83
+ r.push({
84
+ ...i,
85
+ children: e?.length ? e : void 0
86
+ });
87
+ }
88
+ return r;
89
+ }
90
+ return n(e.items);
91
+ }), Q = l(() => X.value ?? B.value.expanded);
92
+ ge(B, () => {
93
+ X.value = void 0;
94
+ }), fe(async () => {
95
+ W.value = "Analyzing template…", U.value = !0;
76
96
  try {
77
- await W(H.load());
97
+ await V(z.load());
78
98
  } catch (e) {
79
- J.value = e instanceof Error ? e.stack ?? e.message : String(e);
99
+ G.value = e instanceof Error ? e.stack ?? e.message : String(e);
80
100
  } finally {
81
- K.value = !1;
101
+ U.value = !1;
82
102
  }
83
103
  });
84
104
  function $() {
85
105
  return {
86
- sourceQuery: B.sourceQuery,
87
- targetQuery: B.targetDocument.query
106
+ sourceQuery: L.sourceQuery,
107
+ targetQuery: L.targetDocument.query
88
108
  };
89
109
  }
90
- async function Ee(e) {
91
- let t = U.value.index[e.id];
110
+ function Ie() {
111
+ let e = B.value, t = new Set(e.expanded);
112
+ function n(r, i) {
113
+ for (let a of r) {
114
+ let r = (e.meta[a.id]?.change ?? "unchanged") !== "unchanged", o = i || r;
115
+ o && a.children?.length && t.add(a.id), a.children && n(a.children, o);
116
+ }
117
+ }
118
+ n(e.items, !1), X.value = [...t];
119
+ }
120
+ async function Le(e) {
121
+ let t = B.value.index[e.id];
92
122
  if (!t) return;
93
- H.select(t), X.value = t.role === "primary" ? t.groupId : void 0;
94
- let n = X.value ? H.report.value?.groups.find((e) => e.id === X.value) : void 0, r = t.node ? await se(t.node, n, $()) : void 0;
123
+ z.select(t), q.value = t.role === "primary" ? t.groupId : void 0;
124
+ let n = q.value ? z.report.value?.groups.find((e) => e.id === q.value) : void 0, r = t.node ? await oe(t.node, n, $()) : void 0;
95
125
  if (r) {
96
- let e = await H.stagedAttributes(t.previewRef);
126
+ let e = await z.stagedAttributes(t.previewRef);
97
127
  for (let t of r.attributes) t.editable && e[t.name] != null && (t.after = e[t.name]);
98
128
  }
99
- Y.value = r;
129
+ K.value = r;
100
130
  }
101
- function De(e, t) {
102
- H.setDecision(e, t);
131
+ function Re(e, t) {
132
+ z.setDecision(e, t);
103
133
  }
104
- function Oe(e, t) {
105
- if (!X.value || !Y.value) return;
106
- H.setValue(X.value, e, t);
107
- let n = Y.value.attributes.find((t) => t.name === e);
134
+ function ze(e, t) {
135
+ if (!q.value || !K.value) return;
136
+ z.setValue(q.value, e, t);
137
+ let n = K.value.attributes.find((t) => t.name === e);
108
138
  n && (n.after = t);
109
139
  }
110
- async function ke() {
111
- let e = H.report.value;
112
- e && (Z.value = await a(e, H.decisionOf, H.editedValue, $()), G.value = "confirm");
140
+ async function Be() {
141
+ let e = z.report.value;
142
+ e && (J.value = await s(e, z.decisionOf, z.editedValue, $()), H.value = "confirm");
113
143
  }
114
- async function Ae() {
115
- q.value = "Applying changes…", K.value = !0;
144
+ async function Ve() {
145
+ W.value = "Applying changes…", U.value = !0;
116
146
  try {
117
- await W(H.commit()), G.value = "done";
147
+ await V(z.commit()), H.value = "done";
118
148
  } catch (e) {
119
- J.value = e instanceof Error ? e.stack ?? e.message : String(e);
149
+ G.value = e instanceof Error ? e.stack ?? e.message : String(e);
120
150
  } finally {
121
- K.value = !1;
151
+ U.value = !1;
122
152
  }
123
153
  }
124
- return (se, a) => (g(), u("div", S, [
125
- d("header", C, [p(y(ee), {
126
- "model-value": Q.value + 1,
154
+ return (oe, s) => (v(), f("div", _e, [
155
+ p("header", ve, [h(x(i), {
156
+ "model-value": Z.value + 1,
127
157
  class: "flex items-center",
128
158
  "aria-label": "Merge steps"
129
159
  }, {
130
- default: b(() => [(g(), u(o, null, me(we, (e, t) => (g(), u(o, { key: e }, [t > 0 ? (g(), u("div", {
160
+ default: S(() => [(v(), f(c, null, pe(Ne, (e, t) => (v(), f(c, { key: e }, [t > 0 ? (v(), f("div", {
131
161
  key: 0,
132
- class: h(["mx-3 h-px w-8 transition-colors", t <= Q.value ? "bg-primary" : "bg-base-300"])
133
- }, null, 2)) : l("", !0), p(y(te), {
162
+ class: _(["mx-3 h-px w-8 transition-colors", t <= Z.value ? "bg-primary" : "bg-base-300"])
163
+ }, null, 2)) : d("", !0), h(x(a), {
134
164
  step: t + 1,
135
165
  class: "flex items-center gap-2"
136
166
  }, {
137
- default: b(() => [p(y(i), { class: h(["grid size-6 place-items-center rounded-full border text-xs font-semibold transition-colors", t < Q.value ? "border-primary bg-primary text-primary-content" : t === Q.value ? "border-primary text-primary" : "border-base-300 text-base-content/40"]) }, {
138
- default: b(() => [t < Q.value ? (g(), c(y(ie), {
167
+ default: S(() => [h(x(o), { class: _(["grid size-6 place-items-center rounded-full border text-xs font-semibold transition-colors", t < Z.value ? "border-primary bg-primary text-primary-content" : t === Z.value ? "border-primary text-primary" : "border-base-300 text-base-content/40"]) }, {
168
+ default: S(() => [t < Z.value ? (v(), u(x(ne), {
139
169
  key: 0,
140
170
  class: "size-3.5"
141
- })) : (g(), u(o, { key: 1 }, [f(v(t + 1), 1)], 64))]),
171
+ })) : (v(), f(c, { key: 1 }, [m(b(t + 1), 1)], 64))]),
142
172
  _: 2
143
- }, 1032, ["class"]), p(y(ne), { class: h(["text-xs font-medium transition-colors", t === Q.value ? "text-base-content" : t < Q.value ? "text-base-content/70" : "text-base-content/40"]) }, {
144
- default: b(() => [f(v(e), 1)]),
173
+ }, 1032, ["class"]), h(x(ee), { class: _(["text-xs font-medium transition-colors", t === Z.value ? "text-base-content" : t < Z.value ? "text-base-content/70" : "text-base-content/40"]) }, {
174
+ default: S(() => [m(b(e), 1)]),
145
175
  _: 2
146
176
  }, 1032, ["class"])]),
147
177
  _: 2
148
178
  }, 1032, ["step"])], 64))), 64))]),
149
179
  _: 1
150
- }, 8, ["model-value"]), m.source || m.target ? (g(), u("div", w, [
151
- m.source ? (g(), u("span", T, [
152
- a[3] ||= d("span", { class: "text-[10px] font-medium uppercase tracking-wide text-base-content/45" }, " Source ", -1),
153
- d("span", E, v(m.source.label), 1),
154
- d("span", D, [
155
- m.source.type ? (g(), u("span", O, v(m.source.type), 1)) : l("", !0),
156
- m.source.type ? (g(), u("span", k, " · ")) : l("", !0),
157
- f("v" + v(m.source.version || "0") + "." + v(m.source.revision || "0"), 1)
180
+ }, 8, ["model-value"]), g.source || g.target ? (v(), f("div", w, [
181
+ g.source ? (v(), f("span", T, [
182
+ s[4] ||= p("span", { class: "text-[10px] font-medium uppercase tracking-wide text-base-content/45" }, " Source ", -1),
183
+ p("span", E, b(g.source.label), 1),
184
+ p("span", D, [
185
+ g.source.type ? (v(), f("span", O, b(g.source.type), 1)) : d("", !0),
186
+ g.source.type ? (v(), f("span", k, " · ")) : d("", !0),
187
+ m("v" + b(g.source.version || "0") + "." + b(g.source.revision || "0"), 1)
158
188
  ])
159
- ])) : l("", !0),
160
- p(y(re), { class: "hidden size-4 shrink-0 text-base-content/40 md:block" }),
161
- m.target ? (g(), u("span", A, [
162
- a[4] ||= d("span", { class: "text-[10px] font-medium uppercase tracking-wide text-base-content/45" }, " Target ", -1),
163
- d("span", j, v(m.target.label), 1),
164
- d("span", M, [
165
- m.target.type ? (g(), u("span", N, v(m.target.type), 1)) : l("", !0),
166
- m.target.type ? (g(), u("span", P, " · ")) : l("", !0),
167
- f("v" + v(m.target.version || "0") + "." + v(m.target.revision || "0"), 1)
189
+ ])) : d("", !0),
190
+ h(x(te), { class: "hidden size-4 shrink-0 text-base-content/40 md:block" }),
191
+ g.target ? (v(), f("span", A, [
192
+ s[5] ||= p("span", { class: "text-[10px] font-medium uppercase tracking-wide text-base-content/45" }, " Target ", -1),
193
+ p("span", j, b(g.target.label), 1),
194
+ p("span", M, [
195
+ g.target.type ? (v(), f("span", N, b(g.target.type), 1)) : d("", !0),
196
+ g.target.type ? (v(), f("span", P, " · ")) : d("", !0),
197
+ m("v" + b(g.target.version || "0") + "." + b(g.target.revision || "0"), 1)
168
198
  ])
169
- ])) : l("", !0)
170
- ])) : l("", !0)]),
171
- J.value ? (g(), u("div", F, v(J.value), 1)) : l("", !0),
172
- d("div", I, [
173
- K.value ? (g(), c(ce, {
199
+ ])) : d("", !0)
200
+ ])) : d("", !0)]),
201
+ G.value ? (v(), f("div", F, b(G.value), 1)) : d("", !0),
202
+ p("div", ye, [
203
+ U.value ? (v(), u(se, {
174
204
  key: 0,
175
- label: q.value,
176
- progress: y(Se),
177
- history: y(Ce)
205
+ label: W.value,
206
+ progress: x(je),
207
+ history: x(Me)
178
208
  }, null, 8, [
179
209
  "label",
180
210
  "progress",
181
211
  "history"
182
- ])) : l("", !0),
183
- x(d("div", L, [p(y(t), {
212
+ ])) : d("", !0),
213
+ C(p("div", be, [h(x(t), {
184
214
  direction: "horizontal",
185
215
  class: "h-full min-h-0"
186
216
  }, {
187
- default: b(() => [
188
- p(y(n), {
217
+ default: S(() => [
218
+ h(x(n), {
189
219
  "default-size": 42,
190
- class: "h-full overflow-auto"
220
+ class: "flex h-full min-h-0 flex-col"
191
221
  }, {
192
- default: b(() => [p(ue, {
193
- items: y(U).items,
194
- meta: y(U).meta,
195
- decisions: Te.value,
196
- "expanded-items": y(U).expanded,
197
- onSelect: Ee,
198
- "onUpdate:decision": De
222
+ default: S(() => [p("div", xe, [p("button", {
223
+ type: "button",
224
+ class: "btn btn-ghost btn-xs ml-auto gap-1",
225
+ title: "Expand all differences",
226
+ onClick: Ie
227
+ }, [h(x(re), { class: "h-3.5 w-3.5" }), s[6] ||= p("span", null, "Expand diffs", -1)]), p("label", Se, [C(p("input", {
228
+ "onUpdate:modelValue": s[0] ||= (e) => Y.value = e,
229
+ type: "checkbox",
230
+ class: "checkbox checkbox-xs"
231
+ }, null, 512), [[me, Y.value]]), s[7] ||= p("span", null, "Context", -1)])]), p("div", Ce, [h(le, {
232
+ items: Fe.value,
233
+ meta: x(B).meta,
234
+ decisions: Pe.value,
235
+ "expanded-items": Q.value,
236
+ onSelect: Le,
237
+ "onUpdate:decision": Re
199
238
  }, null, 8, [
200
239
  "items",
201
240
  "meta",
202
241
  "decisions",
203
242
  "expanded-items"
204
- ])]),
243
+ ])])]),
205
244
  _: 1
206
245
  }),
207
- p(y(r), { class: "w-px bg-base-300" }),
208
- p(y(n), { class: "h-full border-s border-base-300" }, {
209
- default: b(() => [p(y(t), {
246
+ h(x(r), { class: "w-px bg-base-300" }),
247
+ h(x(n), { class: "h-full border-s border-base-300" }, {
248
+ default: S(() => [h(x(t), {
210
249
  direction: "vertical",
211
250
  class: "h-full"
212
251
  }, {
213
- default: b(() => [
214
- p(y(n), {
252
+ default: S(() => [
253
+ h(x(n), {
215
254
  "default-size": 55,
216
255
  class: "min-h-0 overflow-auto"
217
256
  }, {
218
- default: b(() => [p(oe, {
219
- detail: Y.value,
220
- onEdit: Oe
257
+ default: S(() => [h(ae, {
258
+ detail: K.value,
259
+ onEdit: ze
221
260
  }, null, 8, ["detail"])]),
222
261
  _: 1
223
262
  }),
224
- p(y(r), { class: "h-px bg-base-300" }),
225
- p(y(n), { class: "min-h-0" }, {
226
- default: b(() => [p(y(ae), {
227
- before: y(be),
228
- after: y(ye),
229
- loading: y(xe)
263
+ h(x(r), { class: "h-px bg-base-300" }),
264
+ h(x(n), { class: "min-h-0" }, {
265
+ default: S(() => [h(x(ie), {
266
+ before: x(ke),
267
+ after: x(Oe),
268
+ loading: x(Ae)
230
269
  }, null, 8, [
231
270
  "before",
232
271
  "after",
@@ -241,65 +280,65 @@ var S = { class: "flex h-full flex-col" }, C = { class: "flex flex-wrap items-ce
241
280
  })
242
281
  ]),
243
282
  _: 1
244
- })], 512), [[he, !K.value && G.value === "review"]]),
245
- !K.value && G.value === "confirm" && Z.value ? (g(), c(le, {
283
+ })], 512), [[he, !U.value && H.value === "review"]]),
284
+ !U.value && H.value === "confirm" && J.value ? (v(), u(ce, {
246
285
  key: 1,
247
- summary: Z.value,
248
- scenario: m.scenario,
249
- verb: m.verb
286
+ summary: J.value,
287
+ scenario: g.scenario,
288
+ verb: g.verb
250
289
  }, null, 8, [
251
290
  "summary",
252
291
  "scenario",
253
292
  "verb"
254
- ])) : l("", !0),
255
- !K.value && G.value === "done" ? (g(), u("div", R, [d("div", ge, [
256
- a[5] ||= d("span", { class: "text-3xl text-success" }, "✓", -1),
257
- a[6] ||= d("p", { class: "font-medium" }, "Applied", -1),
258
- Z.value ? (g(), u("p", _e, v(Z.value.added.length) + " added · " + v(Z.value.updated.length) + " updated · " + v(Z.value.skipped.length) + " skipped ", 1)) : l("", !0)
259
- ])])) : l("", !0)
293
+ ])) : d("", !0),
294
+ !U.value && H.value === "done" ? (v(), f("div", we, [p("div", Te, [
295
+ s[8] ||= p("span", { class: "text-3xl text-success" }, "✓", -1),
296
+ s[9] ||= p("p", { class: "font-medium" }, "Applied", -1),
297
+ J.value ? (v(), f("p", Ee, b(J.value.added.length) + " added · " + b(J.value.updated.length) + " updated · " + b(J.value.skipped.length) + " skipped ", 1)) : d("", !0)
298
+ ])])) : d("", !0)
260
299
  ]),
261
- d("footer", ve, [G.value === "review" ? (g(), u(o, { key: 0 }, [p(e, {
300
+ p("footer", De, [H.value === "review" ? (v(), f(c, { key: 0 }, [h(e, {
262
301
  variant: "ghost",
263
302
  size: "sm",
264
- onClick: a[0] ||= (e) => V("close")
303
+ onClick: s[1] ||= (e) => R("close")
265
304
  }, {
266
- default: b(() => [...a[7] ||= [f("Close", -1)]]),
305
+ default: S(() => [...s[10] ||= [m("Close", -1)]]),
267
306
  _: 1
268
- }), p(e, {
307
+ }), h(e, {
269
308
  color: "primary",
270
309
  size: "sm",
271
- disabled: K.value || !!J.value,
272
- onClick: ke
310
+ disabled: U.value || !!G.value,
311
+ onClick: Be
273
312
  }, {
274
- default: b(() => [...a[8] ||= [f(" Next: Confirm ", -1)]]),
313
+ default: S(() => [...s[11] ||= [m(" Next: Confirm ", -1)]]),
275
314
  _: 1
276
- }, 8, ["disabled"])], 64)) : G.value === "confirm" ? (g(), u(o, { key: 1 }, [p(e, {
315
+ }, 8, ["disabled"])], 64)) : H.value === "confirm" ? (v(), f(c, { key: 1 }, [h(e, {
277
316
  variant: "ghost",
278
317
  size: "sm",
279
- disabled: K.value,
280
- onClick: a[1] ||= (e) => G.value = "review"
318
+ disabled: U.value,
319
+ onClick: s[2] ||= (e) => H.value = "review"
281
320
  }, {
282
- default: b(() => [...a[9] ||= [f("Back", -1)]]),
321
+ default: S(() => [...s[12] ||= [m("Back", -1)]]),
283
322
  _: 1
284
- }, 8, ["disabled"]), p(e, {
323
+ }, 8, ["disabled"]), h(e, {
285
324
  color: "primary",
286
325
  size: "sm",
287
- disabled: K.value,
288
- onClick: Ae
326
+ disabled: U.value,
327
+ onClick: Ve
289
328
  }, {
290
- default: b(() => [...a[10] ||= [f("Apply", -1)]]),
329
+ default: S(() => [...s[13] ||= [m("Apply", -1)]]),
291
330
  _: 1
292
- }, 8, ["disabled"])], 64)) : (g(), c(e, {
331
+ }, 8, ["disabled"])], 64)) : (v(), u(e, {
293
332
  key: 2,
294
333
  color: "primary",
295
334
  size: "sm",
296
- onClick: a[2] ||= (e) => V("applied")
335
+ onClick: s[3] ||= (e) => R("applied")
297
336
  }, {
298
- default: b(() => [...a[11] ||= [f("Close", -1)]]),
337
+ default: S(() => [...s[14] ||= [m("Close", -1)]]),
299
338
  _: 1
300
339
  }))])
301
340
  ]));
302
341
  }
303
342
  });
304
343
  //#endregion
305
- export { z as default };
344
+ export { I as default };