@septkit/ui 0.0.81 → 0.0.83

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 (81) hide show
  1. package/dist/dialecte/create-document-store.js +4 -4
  2. package/dist/external/.pnpm/{@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/dialecte-oAXwOG-Q.js → @dialecte_core@0.10.0/node_modules/@dialecte/core/dist/dialecte-CVLWSkgW.js} +1 -1
  3. package/dist/external/.pnpm/@dialecte_core@0.10.0/node_modules/@dialecte/core/dist/helpers-D8p0KiJu.js +130 -0
  4. package/dist/external/.pnpm/@dialecte_core@0.10.0/node_modules/@dialecte/core/dist/index.js +6 -0
  5. package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/project-key-2ccZ-0gu.js +1 -1
  6. package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js +1 -1
  7. package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/running-operations-DCKvzlU7.js +1 -1
  8. package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/same-json-value-_AChwM_n.js +1 -1
  9. package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/utils-Cv4oHia0.js +79 -102
  10. package/dist/external/.pnpm/@dialecte_core@0.10.0/node_modules/@dialecte/core/dist/utils.js +2 -0
  11. package/dist/external/.pnpm/@vueuse_core@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js +59 -117
  12. package/dist/external/.pnpm/@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js +57 -60
  13. package/dist/index.d.ts +49 -1960
  14. package/dist/index.js +19 -27
  15. package/dist/selector-input/index.js +3 -3
  16. package/dist/selector-input/selector-input.js +4 -89
  17. package/dist/selector-input/selector-input.vue_vue_type_script_setup_true_lang.js +91 -89
  18. package/dist/selector-input/selector-xpath.js +92 -0
  19. package/dist/ui.css +1 -1
  20. package/package.json +3 -3
  21. package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers-D8p0KiJu.js +0 -179
  22. package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers.js +0 -3
  23. package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/index.js +0 -6
  24. package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/utils.js +0 -2
  25. package/dist/external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/declaration.constants-DSLNk1wh.js +0 -45065
  26. package/dist/external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js +0 -3
  27. package/dist/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 +0 -11
  28. package/dist/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 +0 -26
  29. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperIndicator.js +0 -27
  30. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperItem.js +0 -67
  31. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperRoot.js +0 -136
  32. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperTitle.js +0 -28
  33. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperTrigger.js +0 -97
  34. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useArrowNavigation.js +0 -31
  35. package/dist/merge/check-files/components/merge-preflight.js +0 -5
  36. package/dist/merge/check-files/components/merge-preflight.vue_vue_type_script_setup_true_lang.js +0 -53
  37. package/dist/merge/check-files/flags.js +0 -17
  38. package/dist/merge/check-files/identity-warning.js +0 -19
  39. package/dist/merge/confirm/components/merge-summary.js +0 -5
  40. package/dist/merge/confirm/components/merge-summary.vue_vue_type_script_setup_true_lang.js +0 -207
  41. package/dist/merge/confirm/landings.js +0 -34
  42. package/dist/merge/confirm/outcome.js +0 -179
  43. package/dist/merge/confirm/summary.js +0 -57
  44. package/dist/merge/done/applied-counts.js +0 -16
  45. package/dist/merge/done/applied-focus.js +0 -15
  46. package/dist/merge/help.js +0 -76
  47. package/dist/merge/index.js +0 -8
  48. package/dist/merge/match/components/merge-map.js +0 -5
  49. package/dist/merge/match/components/merge-map.vue_vue_type_script_setup_true_lang.js +0 -230
  50. package/dist/merge/match/match.js +0 -210
  51. package/dist/merge/review/affix.js +0 -14
  52. package/dist/merge/review/change-badge.js +0 -10
  53. package/dist/merge/review/components/decision-toggle.js +0 -5
  54. package/dist/merge/review/components/decision-toggle.vue_vue_type_script_setup_true_lang.js +0 -80
  55. package/dist/merge/review/components/element-detail.js +0 -5
  56. package/dist/merge/review/components/element-detail.vue_vue_type_script_setup_true_lang.js +0 -210
  57. package/dist/merge/review/components/merge-tree.js +0 -5
  58. package/dist/merge/review/components/merge-tree.vue_vue_type_script_setup_true_lang.js +0 -192
  59. package/dist/merge/review/components/type-name-authority.js +0 -5
  60. package/dist/merge/review/components/type-name-authority.vue_vue_type_script_setup_true_lang.js +0 -47
  61. package/dist/merge/review/decision.js +0 -12
  62. package/dist/merge/review/detail.js +0 -63
  63. package/dist/merge/review/highlight.js +0 -44
  64. package/dist/merge/review/marks.js +0 -17
  65. package/dist/merge/review/navigation.js +0 -82
  66. package/dist/merge/review/title.js +0 -7
  67. package/dist/merge/review/tree.js +0 -138
  68. package/dist/merge/session/components/merge-help.js +0 -7
  69. package/dist/merge/session/components/merge-help.vue_vue_type_script_setup_true_lang.js +0 -109
  70. package/dist/merge/session/components/merge-progress.js +0 -5
  71. package/dist/merge/session/components/merge-progress.vue_vue_type_script_setup_true_lang.js +0 -23
  72. package/dist/merge/session/components/merge-review.js +0 -5
  73. package/dist/merge/session/components/merge-review.vue_vue_type_script_setup_true_lang.js +0 -895
  74. package/dist/merge/session/merge.service.js +0 -113
  75. package/dist/merge/session/shortcuts.js +0 -22
  76. package/dist/merge/session/staged-writes.js +0 -47
  77. package/dist/merge/session/steps.js +0 -21
  78. package/dist/merge/session/use-document-progress.js +0 -26
  79. package/dist/merge/session/use-merge-session.js +0 -372
  80. package/dist/merge/wording.js +0 -123
  81. package/dist/selector-input/selector-input2.js +0 -5
@@ -1,895 +0,0 @@
1
- import { useElementSize as e, useEventListener as t } from "../../../external/.pnpm/@vueuse_core@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js";
2
- import n from "../../../button/button.js";
3
- import { SplitterGroup_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/SplitterGroup.js";
4
- import { SplitterPanel_default as i } from "../../../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Splitter/SplitterPanel.js";
5
- import { SplitterResizeHandle_default as a } from "../../../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Splitter/SplitterResizeHandle.js";
6
- 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";
7
- 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";
8
- import { StepperIndicator_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/StepperIndicator.js";
9
- import { StepperTitle_default as re } from "../../../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperTitle.js";
10
- import { StepperTrigger_default as ie } from "../../../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperTrigger.js";
11
- import ae 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";
12
- import oe 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";
13
- import se from "../../../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/circle-check.js";
14
- import ce from "../../../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/info.js";
15
- import le from "../../../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/link.js";
16
- import ue 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";
17
- import o from "../../../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/triangle-alert.js";
18
- import { dialogHostKey as de } from "../../../dialog/use-dialog-host.js";
19
- import fe from "../../../code/xml-diff.js";
20
- import "../../../code/index.js";
21
- import { CHANGE_BADGE as pe } from "../../review/change-badge.js";
22
- import { describeLeftOutWith as me } from "../../review/decision.js";
23
- import { CHANGE_LABELS as he, STEP_BRIEFS as ge } from "../../wording.js";
24
- import _e from "../../review/components/element-detail.js";
25
- import { PLACEMENT_GROUP as ve, describeMappingOf as ye, hasMapStep as be, hasUndecided as xe, needsChoice as Se } from "../../match/match.js";
26
- import Ce from "../../match/components/merge-map.js";
27
- import { allGroups as we } from "../../review/tree.js";
28
- import { titleOf as Te } from "../../review/title.js";
29
- import { buildDetail as Ee } from "../../review/detail.js";
30
- import { primaryIdOf as De } from "../../review/highlight.js";
31
- import { adjacentChange as Oe, changeScope as ke, countByChange as Ae, filterByChange as je, firstChange as Me, holdsContext as Ne, nodesHoldingChanges as Pe } from "../../review/navigation.js";
32
- import { marksDrawn as Fe, marksOnMatch as Ie } from "../../review/marks.js";
33
- import { flaggedNodes as Le } from "../../check-files/flags.js";
34
- import { describeIdentityWarning as Re } from "../../check-files/identity-warning.js";
35
- import { shortcutOf as ze } from "../shortcuts.js";
36
- import { applyLabel as Be, buildSummary as Ve, writesNothing as s } from "../../confirm/summary.js";
37
- import { findAppliedFocus as He } from "../../done/applied-focus.js";
38
- import { summarizeLandings as Ue } from "../../confirm/landings.js";
39
- import We from "../../check-files/components/merge-preflight.js";
40
- import Ge from "./merge-help.js";
41
- import Ke from "./merge-progress.js";
42
- import { MERGE_STEP_LABELS as qe, mergeStepOrder as Je } from "../steps.js";
43
- import Ye from "../../confirm/components/merge-summary.js";
44
- import Xe from "../../review/components/merge-tree.js";
45
- import { describeAppliedCounts as Ze, describeDone as Qe } from "../../done/applied-counts.js";
46
- import $e from "../../review/components/type-name-authority.js";
47
- import { useDocumentProgress as et } from "../use-document-progress.js";
48
- import { useMergeSession as tt } from "../use-merge-session.js";
49
- 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, inject as nt, nextTick as rt, normalizeClass as _, onMounted as it, openBlock as v, ref as y, renderList as at, toDisplayString as b, unref as x, vShow as ot, watch as S, withCtx as C, withDirectives as st } from "vue";
50
- //#region lib/merge/session/components/merge-review.vue?vue&type=script&setup=true&lang.ts
51
- var ct = { class: "@container flex flex-wrap items-center justify-between gap-x-8 gap-y-3 border-b border-base-300 px-4 py-2.5" }, lt = {
52
- key: 1,
53
- class: "flex flex-col items-start gap-x-4 gap-y-1 text-xs md:flex-row md:items-center"
54
- }, ut = {
55
- key: 0,
56
- class: "flex items-baseline gap-1.5"
57
- }, dt = { class: "font-semibold" }, ft = { class: "text-base-content/80" }, pt = {
58
- key: 0,
59
- class: "uppercase"
60
- }, mt = { key: 1 }, ht = {
61
- key: 1,
62
- class: "flex items-baseline gap-1.5"
63
- }, gt = { class: "font-semibold" }, _t = { class: "text-base-content/80" }, vt = {
64
- key: 0,
65
- class: "uppercase"
66
- }, yt = { key: 1 }, bt = { class: "ml-auto flex items-center gap-2" }, xt = ["disabled"], St = {
67
- class: "sr-only",
68
- role: "status",
69
- "aria-live": "polite",
70
- "data-testid": "merge-announcement"
71
- }, Ct = {
72
- key: 0,
73
- role: "alert",
74
- "data-testid": "merge-failure",
75
- class: "flex flex-wrap items-start gap-x-3 gap-y-1 border-b border-error/40 bg-error/10 px-4 py-2 text-sm"
76
- }, wt = { class: "min-w-0 flex-1" }, Tt = { class: "font-medium" }, Et = { class: "mt-1 text-xs text-base-content/80" }, Dt = { class: "mt-1 max-h-40 overflow-auto whitespace-pre-wrap" }, Ot = ["aria-label"], kt = {
77
- key: 1,
78
- class: "h-full"
79
- }, At = {
80
- key: 0,
81
- class: "grid h-full place-items-center p-6 text-center"
82
- }, jt = { class: "max-w-md space-y-2" }, Mt = {
83
- "data-testid": "review-brief",
84
- class: "border-b border-base-300 px-3 py-1.5 text-xs text-base-content/80"
85
- }, Nt = {
86
- key: 0,
87
- "data-testid": "review-placement-notice",
88
- class: "flex items-center gap-2 border-b border-info/30 bg-info/5 px-3 py-1.5 text-xs"
89
- }, Pt = { class: "flex shrink-0 flex-wrap items-center gap-x-3 gap-y-1.5 border-b border-base-300 px-3 py-1.5 text-xs" }, Ft = {
90
- key: 0,
91
- class: "dropdown"
92
- }, It = { class: "dropdown-content z-10 mt-1 w-72 rounded-box border border-base-300 bg-base-100 p-3 shadow" }, Lt = {
93
- key: 1,
94
- "data-testid": "review-counts",
95
- class: "flex flex-wrap items-center gap-1",
96
- role: "group",
97
- "aria-label": "Show only a kind of change"
98
- }, Rt = [
99
- "aria-pressed",
100
- "title",
101
- "onClick"
102
- ], zt = { class: "ml-auto flex items-center gap-2" }, Bt = {
103
- key: 0,
104
- class: "flex cursor-pointer items-center gap-1.5"
105
- }, Vt = ["checked"], Ht = { class: "min-h-0 flex-1 overflow-y-auto" }, Ut = {
106
- key: 0,
107
- "data-testid": "mapping-note",
108
- class: "flex items-center gap-2 border-b border-info/30 bg-info/10 px-3 py-1.5 text-xs"
109
- }, Wt = {
110
- key: 1,
111
- "data-testid": "file-warning-note",
112
- class: "flex items-center gap-2 border-b border-warning/30 bg-warning/10 px-3 py-1.5 text-xs"
113
- }, Gt = {
114
- key: 2,
115
- "data-testid": "left-out-note",
116
- class: "flex items-center gap-2 border-b border-warning/30 bg-warning/10 px-3 py-1.5 text-xs"
117
- }, Kt = {
118
- key: 3,
119
- "data-testid": "mapping-no-change",
120
- class: "p-4 text-center text-sm text-base-content/80"
121
- }, qt = {
122
- key: 0,
123
- role: "alert",
124
- "data-testid": "preview-failure",
125
- class: "border-b border-error/40 bg-error/10 px-3 py-2 text-xs"
126
- }, Jt = { class: "mt-1 text-base-content/80" }, Yt = { class: "mt-1 whitespace-pre-wrap" }, Xt = {
127
- key: 4,
128
- class: "grid h-full place-items-center p-6 text-center"
129
- }, Zt = { class: "flex flex-col items-center gap-1" }, Qt = {
130
- "data-testid": "applied-done",
131
- class: "font-medium"
132
- }, $t = {
133
- key: 0,
134
- "data-testid": "applied-counts",
135
- class: "text-xs text-base-content/80"
136
- }, en = { class: "flex items-center justify-end gap-2 border-t border-base-300 p-2" }, tn = {
137
- key: 0,
138
- "data-testid": "map-updating",
139
- class: "mr-auto text-xs text-base-content/80"
140
- }, nn = {
141
- key: 1,
142
- id: "merge-blocked-reason",
143
- "data-testid": "map-to-choose",
144
- class: "mr-auto flex items-center gap-1.5 text-xs text-base-content"
145
- }, rn = {
146
- key: 2,
147
- class: "mr-auto text-xs text-base-content/80"
148
- }, an = {
149
- key: 0,
150
- id: "merge-nothing-to-apply",
151
- "data-testid": "confirm-nothing",
152
- class: "mr-auto text-xs text-base-content"
153
- }, on = {
154
- key: 1,
155
- "data-testid": "confirm-brief",
156
- class: "mr-auto text-xs text-base-content/80"
157
- }, sn = /*@__PURE__*/ g({
158
- __name: "merge-review",
159
- props: {
160
- targetDocument: {},
161
- sourceQuery: {},
162
- verb: {},
163
- scenario: {},
164
- sourceRef: {},
165
- anchor: {},
166
- consumerManagedTags: {},
167
- afterApply: { type: Function },
168
- source: {},
169
- target: {},
170
- affixMask: { type: Function }
171
- },
172
- emits: [
173
- "applied",
174
- "close",
175
- "show"
176
- ],
177
- setup(g, { emit: sn }) {
178
- let w = g, T = sn, E = tt(w), { structuralTree: D, previewXml: cn, previewBeforeXml: ln, previewLoading: O, previewError: k, updating: A } = E, un = l({
179
- get: () => E.keepNameTypesFrom.value,
180
- set: (e) => E.setKeepNameTypesFrom(e)
181
- }), { progress: dn, track: fn } = et(() => w.targetDocument.state), j = y("review"), M = y(!1), pn = nt(de, void 0);
182
- S(M, (e) => pn?.setClosable(!e));
183
- let N = y(), P = y(), F = y(), I = y(), L = y(), mn = l(() => !!L.value && E.decisionOf(L.value) === "skip"), hn = y();
184
- S([L, E.decisions], async () => {
185
- let e = L.value ? E.leftOutWith(L.value) : void 0;
186
- hn.value = e ? me(await Te(e.primary, Gn())) : void 0;
187
- }, { deep: !0 });
188
- let R = y(), gn = y(), _n = y(), z = y(), B = y(), { width: vn } = e(B), V = l(() => vn.value > 0 && vn.value < 760), H = y(), yn = l(() => !!H.value?.isCollapsed);
189
- function bn() {
190
- yn.value ? H.value?.expand() : H.value?.collapse();
191
- }
192
- let U = y(!0), W = y(/* @__PURE__ */ new Set()), G = y(), xn = y(), K = l(() => E.upToDate.value), q = l(() => E.warnings.value), Sn = l(() => E.placementNotice.value), J = l(() => E.mapView.value), Cn = y(!1), Y = l(() => Cn.value || be(J.value));
193
- S(Y, (e) => {
194
- e && (Cn.value = !0);
195
- });
196
- let X = l(() => xe(J.value)), wn = l(() => J.value.changeable.flatMap((e) => e.rows).find(Se)?.title), Z = l(() => Je({
197
- upToDate: K.value,
198
- hasWarnings: q.value.length > 0,
199
- hasMap: Y.value
200
- })), Tn = l(() => Z.value.map((e) => qe[e])), Q = l(() => Math.max(0, Z.value.indexOf(j.value))), En = l(() => Qe({
201
- scenario: w.scenario,
202
- instances: R.value?.instances ?? 0
203
- })), Dn = l(() => R.value ? Ze(R.value) : ""), On = l(() => M.value ? N.value ?? "" : A.value ? "Updating the proposal." : j.value === "done" ? En.value : j.value === "map" && X.value ? `Choose where “${wn.value}” lands to continue.` : j.value === "confirm" && R.value && s(R.value) ? "Nothing to apply." : ""), kn = l(() => {
204
- let e = {};
205
- for (let t of E.report.value ? we(E.report.value) : []) e[t.id] = E.decisionOf(t.id);
206
- return e;
207
- }), An = l(() => {
208
- let e = D.value;
209
- if (W.value.size > 0) return je(e.items, e.meta, W.value);
210
- if (U.value) return e.items;
211
- let t = new Set(e.expanded);
212
- function n(e) {
213
- let r = [];
214
- for (let i of e) {
215
- if (!t.has(i.id)) continue;
216
- let e = i.children ? n(i.children) : void 0;
217
- r.push({
218
- ...i,
219
- children: e?.length ? e : void 0
220
- });
221
- }
222
- return r;
223
- }
224
- return n(e.items);
225
- }), jn = l(() => xn.value ?? D.value.expanded);
226
- S(D, () => {
227
- xn.value = void 0;
228
- });
229
- let Mn = l(() => Le({
230
- index: D.value.index,
231
- warnings: q.value,
232
- mappings: E.report.value?.mappings ?? [],
233
- wordOf: (e) => Re(e.code).title
234
- })), Nn = l(() => {
235
- let { items: e, meta: t } = D.value;
236
- return Fe({
237
- meta: t,
238
- holdsChanges: [...Pe(e, t)].some((e) => (t[e]?.change ?? "unchanged") === "unchanged"),
239
- renamed: E.previewRenamed.value,
240
- flagged: Object.keys(Mn.value).length > 0
241
- });
242
- }), Pn = l(() => {
243
- if (j.value === "preflight") return new Set(q.value.length ? ["file-warning"] : []);
244
- if (j.value === "map") return Ie(J.value);
245
- if (j.value === "review") return Nn.value;
246
- }), Fn = l(() => {
247
- if (!(j.value === "done" || j.value === "preflight" && K.value)) return j.value;
248
- }), In = l(() => {
249
- let e = J.value.changeable.filter((e) => e.rows.length > 0);
250
- return {
251
- levels: e.some((e) => e.tag === ve),
252
- shared: e.some((e) => e.tag !== ve),
253
- update: w.scenario !== "instantiate",
254
- leaveOut: Nn.value.has("left-out"),
255
- yours: Nn.value.has("target-only"),
256
- editable: E.report.value ? we(E.report.value).some((e) => !!e.editableAttributes?.length) : !1,
257
- renamed: E.previewRenamed.value,
258
- landings: Y.value
259
- };
260
- }), Ln = l(() => ke(D.value.items, D.value.meta, D.value.expanded)), Rn = l(() => {
261
- let e = new Set(jn.value);
262
- return Ln.value.some((t) => !e.has(t));
263
- }), zn = l(() => Ne(D.value.items, D.value.expanded)), Bn = l(() => G.value ? Mn.value[G.value] : void 0), Vn = [
264
- "added",
265
- "modified",
266
- "removed",
267
- "target-only"
268
- ], Hn = l(() => {
269
- let e = Ae(D.value.meta);
270
- return Vn.filter((t) => e[t]).map((t) => ({
271
- kind: t,
272
- count: e[t] ?? 0,
273
- label: he[t]
274
- }));
275
- });
276
- S([j, D], () => {
277
- if (j.value !== "review") return;
278
- let e = D.value;
279
- if (G.value && e.index[G.value]) return;
280
- let t = (L.value ? De(e.meta, L.value) : void 0) ?? Me(An.value, e.meta);
281
- t && Yn(t);
282
- }), S([j, M], async () => {
283
- if (M.value) return;
284
- await rt();
285
- let e = _n.value;
286
- if (j.value === "review" && e) {
287
- if (e.contains(document.activeElement)) return;
288
- let t = e.querySelector("[role=treeitem][data-selected]") ?? e.querySelector("[role=treeitem][tabindex=\"0\"]");
289
- if (t) {
290
- t.focus({ preventScroll: !0 });
291
- return;
292
- }
293
- }
294
- B.value?.contains(document.activeElement) || B.value?.focus({ preventScroll: !0 });
295
- }, { flush: "post" }), it(Un), t(document, "keydown", er, { capture: !0 });
296
- async function Un() {
297
- P.value = void 0, N.value = "Analyzing template…", M.value = !0;
298
- try {
299
- await fn(E.load()), j.value = Z.value[0];
300
- } catch (e) {
301
- Wn("The template could not be compared with the project. Nothing was written.", e, Un);
302
- } finally {
303
- M.value = !1;
304
- }
305
- }
306
- function Wn(e, t, n) {
307
- let r = t instanceof Error ? t.stack ?? t.message : String(t);
308
- P.value = {
309
- message: e,
310
- detail: r,
311
- retry: n
312
- };
313
- }
314
- function Gn() {
315
- return {
316
- sourceQuery: w.sourceQuery,
317
- targetQuery: w.targetDocument.query
318
- };
319
- }
320
- function Kn() {
321
- xn.value = Ln.value;
322
- }
323
- function qn(e) {
324
- return [...J.value.changeable, ...J.value.automatic].flatMap((e) => e.rows).find((t) => t.id === e)?.title;
325
- }
326
- let Jn = 0;
327
- async function Yn(e) {
328
- let t = D.value.index[e];
329
- if (!t) return;
330
- G.value = e;
331
- let n = ++Jn;
332
- I.value = E.report.value ? ye({
333
- report: E.report.value,
334
- stagedId: e,
335
- sourceId: t.node?.sourceRef?.id,
336
- titleOf: qn
337
- }) : void 0, E.select(t), L.value = t.role === "primary" ? t.groupId : void 0;
338
- let r = L.value && E.report.value ? we(E.report.value).find((e) => e.id === L.value) : void 0, i = t.change === "added" ? await E.stagedElement(t.previewRef) : void 0, a = t.node ? await Ee(t.node, r, Gn(), i, (e) => r ? E.editedValue(r.id, e) : void 0) : void 0;
339
- if (a) {
340
- let e = i?.attributes ?? await E.stagedAttributes(t.previewRef);
341
- for (let t of a.attributes) t.editable && e[t.name] != null && (t.written = e[t.name]);
342
- }
343
- n === Jn && (F.value = a);
344
- }
345
- function Xn(e, t) {
346
- E.setDecision(e, t);
347
- }
348
- function Zn(e, t) {
349
- if (!L.value || !F.value) return;
350
- E.setValue(L.value, e, t);
351
- let n = F.value.attributes.find((t) => t.name === e);
352
- n && (n.written = t);
353
- }
354
- function Qn(e) {
355
- return e < Q.value && j.value !== "done" && !M.value;
356
- }
357
- function $n(e) {
358
- let t = (e ?? 0) - 1;
359
- Qn(t) && (j.value = Z.value[t]);
360
- }
361
- function er(e) {
362
- if (!tr(e)) return;
363
- let t = ze(e);
364
- if (!t || M.value) return;
365
- if (t === "advance") {
366
- rr() && nr(e);
367
- return;
368
- }
369
- if (j.value !== "review") return;
370
- if (t === "toggle") {
371
- let t = L.value;
372
- if (!t) return;
373
- nr(e), Xn(t, kn.value[t] === "skip" ? "accept" : "skip");
374
- return;
375
- }
376
- let n = Oe(An.value, D.value.meta, {
377
- from: G.value,
378
- direction: t === "next" ? 1 : -1
379
- });
380
- n && (nr(e), Yn(n));
381
- }
382
- function tr(e) {
383
- let t = e.target;
384
- return !z.value || !(t instanceof Node) ? !1 : z.value.contains(t) || t.contains(z.value);
385
- }
386
- function nr(e) {
387
- e.preventDefault(), e.stopPropagation();
388
- }
389
- function rr() {
390
- return j.value === "preflight" && !K.value && $.value || j.value === "map" && !O.value && !A.value && !X.value ? (sr(), !0) : j.value === "review" && !P.value && !k.value && !O.value && !A.value ? (cr(), !0) : !1;
391
- }
392
- function ir(e) {
393
- let t = new Set(W.value);
394
- t.has(e) ? t.delete(e) : t.add(e), W.value = t;
395
- }
396
- function ar(e) {
397
- let t = D.value, n = "groupId" in e ? De(t.meta, e.groupId) : t.index[e.nodeId] ? e.nodeId : void 0;
398
- W.value = /* @__PURE__ */ new Set(), U.value = !0, j.value = "review", n && Yn(n);
399
- }
400
- function or() {
401
- Cn.value = !0, j.value = "map";
402
- }
403
- let $ = l(() => Z.value[Q.value + 1]);
404
- function sr() {
405
- j.value === "map" && X.value || $.value && (j.value = $.value);
406
- }
407
- async function cr() {
408
- await E.settle();
409
- let e = E.report.value;
410
- if (e) {
411
- P.value = void 0, N.value = "Preparing the summary…", M.value = !0;
412
- try {
413
- let t = await fn(E.describeOutcome()), n = await Ve(e, E.decisionOf, E.editedValue, Gn(), t);
414
- R.value = {
415
- ...n,
416
- ...Ue({
417
- view: J.value,
418
- landed: t.landed
419
- })
420
- }, j.value = "confirm";
421
- } catch (e) {
422
- Wn("The summary could not be prepared. Nothing was written.", e, cr);
423
- } finally {
424
- M.value = !1;
425
- }
426
- }
427
- }
428
- async function lr() {
429
- P.value = void 0, N.value = "Applying changes…", M.value = !0;
430
- try {
431
- let e = await fn(E.commit());
432
- gn.value = e ? He(e, { anchor: w.anchor }) : void 0, j.value = "done";
433
- } catch (e) {
434
- Wn("The changes could not be applied. Nothing was written.", e, lr);
435
- } finally {
436
- M.value = !1;
437
- }
438
- }
439
- return (e, t) => (v(), f("div", {
440
- ref_key: "root",
441
- ref: z,
442
- class: "flex h-full flex-col"
443
- }, [
444
- p("header", ct, [
445
- Tn.value.length > 1 ? (v(), u(x(ee), {
446
- key: 0,
447
- "model-value": Q.value + 1,
448
- linear: !1,
449
- class: "flex items-center",
450
- "aria-label": "Merge steps",
451
- "onUpdate:modelValue": $n
452
- }, {
453
- default: C(() => [(v(!0), f(c, null, at(Tn.value, (e, t) => (v(), f(c, { key: e }, [t > 0 ? (v(), f("div", {
454
- key: 0,
455
- class: _(["mx-1.5 h-px w-4 transition-colors @lg:mx-3 @lg:w-8", t <= Q.value ? "bg-primary" : "bg-base-300"])
456
- }, null, 2)) : d("", !0), h(x(te), {
457
- step: t + 1,
458
- disabled: !Qn(t)
459
- }, {
460
- default: C(() => [h(x(ie), { class: "flex items-center gap-2 rounded-box p-0.5 outline-offset-2 enabled:cursor-pointer enabled:hover:underline" }, {
461
- default: C(() => [h(x(ne), { class: _(["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/80"]) }, {
462
- default: C(() => [t < Q.value ? (v(), u(x(oe), {
463
- key: 0,
464
- class: "size-3.5"
465
- })) : (v(), f(c, { key: 1 }, [m(b(t + 1), 1)], 64))]),
466
- _: 2
467
- }, 1032, ["class"]), h(x(re), {
468
- as: "span",
469
- class: _(["text-xs font-medium transition-colors", t === Q.value ? "font-semibold text-base-content" : t < Q.value ? "sr-only text-base-content @lg:not-sr-only" : "sr-only text-base-content/80 @lg:not-sr-only"])
470
- }, {
471
- default: C(() => [m(b(e), 1)]),
472
- _: 2
473
- }, 1032, ["class"])]),
474
- _: 2
475
- }, 1024)]),
476
- _: 2
477
- }, 1032, ["step", "disabled"])], 64))), 128))]),
478
- _: 1
479
- }, 8, ["model-value"])) : d("", !0),
480
- g.source || g.target ? (v(), f("div", lt, [
481
- g.source ? (v(), f("span", ut, [
482
- t[15] ||= p("span", { class: "text-xs font-medium uppercase tracking-wide text-base-content/80" }, " Source ", -1),
483
- p("span", dt, b(g.source.label), 1),
484
- p("span", ft, [
485
- g.source.type ? (v(), f("span", pt, b(g.source.type), 1)) : d("", !0),
486
- g.source.type ? (v(), f("span", mt, " · ")) : d("", !0),
487
- m("v" + b(g.source.version || "0") + "." + b(g.source.revision || "0"), 1)
488
- ])
489
- ])) : d("", !0),
490
- h(x(ae), { class: "hidden size-4 shrink-0 text-base-content/60 md:block" }),
491
- g.target ? (v(), f("span", ht, [
492
- t[16] ||= p("span", { class: "text-xs font-medium uppercase tracking-wide text-base-content/80" }, " Target ", -1),
493
- p("span", gt, b(g.target.label), 1),
494
- p("span", _t, [
495
- g.target.type ? (v(), f("span", vt, b(g.target.type), 1)) : d("", !0),
496
- g.target.type ? (v(), f("span", yt, " · ")) : d("", !0),
497
- m("v" + b(g.target.version || "0") + "." + b(g.target.revision || "0"), 1)
498
- ])
499
- ])) : d("", !0)
500
- ])) : d("", !0),
501
- p("div", bt, [q.value.length > 0 && j.value !== "preflight" && j.value !== "done" ? (v(), f("button", {
502
- key: 0,
503
- type: "button",
504
- "data-testid": "file-warnings-chip",
505
- class: "badge badge-soft badge-warning badge-md cursor-pointer gap-1 text-xs",
506
- disabled: M.value,
507
- onClick: t[0] ||= (e) => j.value = "preflight"
508
- }, [h(x(o), {
509
- class: "size-3.5",
510
- "aria-hidden": "true"
511
- }), m(" " + b(q.value.length) + " file " + b(q.value.length === 1 ? "warning" : "warnings"), 1)], 8, xt)) : d("", !0)])
512
- ]),
513
- p("p", St, b(On.value), 1),
514
- P.value ? (v(), f("div", Ct, [
515
- h(x(o), { class: "mt-0.5 size-4 shrink-0 text-error" }),
516
- p("div", wt, [p("p", Tt, b(P.value.message), 1), p("details", Et, [t[17] ||= p("summary", { class: "cursor-pointer" }, "Technical details", -1), p("pre", Dt, b(P.value.detail), 1)])]),
517
- h(n, {
518
- size: "sm",
519
- variant: "ghost",
520
- disabled: M.value,
521
- onClick: t[1] ||= (e) => P.value.retry()
522
- }, {
523
- default: C(() => [...t[18] ||= [m("Try again", -1)]]),
524
- _: 1
525
- }, 8, ["disabled"])
526
- ])) : d("", !0),
527
- h(x(r), {
528
- direction: "horizontal",
529
- "auto-save-id": "septkit-merge-help",
530
- class: "min-h-0 flex-1"
531
- }, {
532
- default: C(() => [
533
- h(x(i), {
534
- "min-size": 50,
535
- class: "min-w-0"
536
- }, {
537
- default: C(() => [p("div", {
538
- ref_key: "stepRegion",
539
- ref: B,
540
- role: "region",
541
- "aria-label": x(qe)[j.value],
542
- tabindex: "-1",
543
- class: "h-full min-h-0 outline-none"
544
- }, [
545
- M.value ? (v(), u(Ke, {
546
- key: 0,
547
- label: N.value,
548
- progress: x(dn)
549
- }, null, 8, ["label", "progress"])) : d("", !0),
550
- !M.value && j.value === "preflight" ? (v(), f("div", kt, [K.value ? (v(), f("div", At, [p("div", jt, [
551
- h(x(se), {
552
- class: "mx-auto size-8 text-success",
553
- "aria-hidden": "true"
554
- }),
555
- t[19] ||= p("h2", { class: "text-base font-semibold" }, "Already up to date", -1),
556
- t[20] ||= p("p", { class: "text-sm text-base-content/80" }, " This instance is already up to date with the template — nothing to apply. ", -1)
557
- ])])) : (v(), u(We, {
558
- key: 1,
559
- warnings: q.value
560
- }, null, 8, ["warnings"]))])) : d("", !0),
561
- !M.value && j.value === "map" ? (v(), u(Ce, {
562
- key: 2,
563
- view: J.value,
564
- notice: Sn.value,
565
- onMap: x(E).setMapping
566
- }, null, 8, [
567
- "view",
568
- "notice",
569
- "onMap"
570
- ])) : d("", !0),
571
- st(p("div", {
572
- ref_key: "reviewPane",
573
- ref: _n,
574
- class: "flex h-full min-h-0 flex-col"
575
- }, [
576
- p("p", Mt, b(x(ge).review), 1),
577
- Sn.value ? (v(), f("p", Nt, [h(x(ce), { class: "size-3.5 shrink-0 text-info" }), m(" " + b(Sn.value), 1)])) : d("", !0),
578
- (v(), u(x(r), {
579
- key: V.value ? "stacked" : "side-by-side",
580
- direction: V.value ? "vertical" : "horizontal",
581
- class: "min-h-0 flex-1"
582
- }, {
583
- default: C(() => [
584
- h(x(i), {
585
- "default-size": V.value ? 55 : 42,
586
- class: _(["flex min-h-0 flex-col", V.value ? "w-full" : "h-full"])
587
- }, {
588
- default: C(() => [p("div", Pt, [
589
- x(E).templateTypes.value ? (v(), f("details", Ft, [t[22] ||= p("summary", { class: "btn btn-ghost btn-sm" }, "Options", -1), p("div", It, [t[21] ||= p("p", { class: "mb-2 text-xs text-base-content/80" }, " A data type of the template matches one of the project under another name: keep the name from ", -1), h($e, {
590
- modelValue: un.value,
591
- "onUpdate:modelValue": t[2] ||= (e) => un.value = e,
592
- "hide-label": ""
593
- }, null, 8, ["modelValue"])])])) : d("", !0),
594
- Hn.value.length ? (v(), f("div", Lt, [(v(!0), f(c, null, at(Hn.value, (e) => (v(), f("button", {
595
- key: e.kind,
596
- type: "button",
597
- class: _(["badge badge-md cursor-pointer text-xs", [x(pe)[e.kind], W.value.has(e.kind) ? "ring-2 ring-primary ring-offset-1" : ""]]),
598
- "aria-pressed": W.value.has(e.kind),
599
- title: `Show only what is ${e.label}`,
600
- onClick: (t) => ir(e.kind)
601
- }, b(e.count) + " " + b(e.label), 11, Rt))), 128))])) : d("", !0),
602
- p("div", zt, [zn.value ? (v(), f("label", Bt, [p("input", {
603
- type: "checkbox",
604
- class: "toggle toggle-xs",
605
- checked: !U.value,
606
- onChange: t[3] ||= (e) => U.value = !U.value
607
- }, null, 40, Vt), t[23] ||= m(" Only changes ", -1)])) : d("", !0), Rn.value ? (v(), f("button", {
608
- key: 1,
609
- type: "button",
610
- class: "btn btn-ghost btn-sm gap-1",
611
- onClick: Kn
612
- }, [h(x(ue), {
613
- class: "size-3.5",
614
- "aria-hidden": "true"
615
- }), t[24] ||= m(" Expand changes ", -1)])) : d("", !0)])
616
- ]), p("div", Ht, [h(Xe, {
617
- items: An.value,
618
- meta: x(D).meta,
619
- decisions: kn.value,
620
- "expanded-items": jn.value,
621
- selected: G.value,
622
- flagged: Mn.value,
623
- onSelect: t[4] ||= (e) => Yn(e.id),
624
- "onUpdate:decision": Xn
625
- }, null, 8, [
626
- "items",
627
- "meta",
628
- "decisions",
629
- "expanded-items",
630
- "selected",
631
- "flagged"
632
- ])])]),
633
- _: 1
634
- }, 8, ["default-size", "class"]),
635
- h(x(a), {
636
- "aria-label": "Resize the tree and the detail",
637
- class: _(["relative bg-base-300 transition-colors before:absolute hover:bg-primary", V.value ? "h-px before:inset-x-0 before:-inset-y-1.5" : "w-px before:inset-y-0 before:-inset-x-1.5"])
638
- }, null, 8, ["class"]),
639
- h(x(i), { class: "h-full" }, {
640
- default: C(() => [h(x(r), {
641
- direction: "vertical",
642
- class: "h-full"
643
- }, {
644
- default: C(() => [
645
- h(x(i), {
646
- "default-size": V.value ? 60 : 55,
647
- class: "min-h-0 overflow-auto"
648
- }, {
649
- default: C(() => [
650
- I.value ? (v(), f("div", Ut, [
651
- h(x(le), { class: "size-3.5 shrink-0 text-info" }),
652
- p("span", null, b(I.value), 1),
653
- p("button", {
654
- type: "button",
655
- class: "btn btn-ghost btn-sm ml-auto",
656
- onClick: or
657
- }, " Change in Match ")
658
- ])) : d("", !0),
659
- Bn.value ? (v(), f("div", Wt, [
660
- h(x(o), {
661
- class: "size-3.5 shrink-0 text-warning",
662
- "aria-hidden": "true"
663
- }),
664
- p("span", null, "File warning: " + b(Bn.value) + ". Verify this element.", 1),
665
- p("button", {
666
- type: "button",
667
- class: "btn btn-ghost btn-sm ml-auto",
668
- onClick: t[5] ||= (e) => j.value = "preflight"
669
- }, " Check files ")
670
- ])) : d("", !0),
671
- hn.value ? (v(), f("div", Gt, [h(x(ce), { class: "size-3.5 shrink-0 text-warning" }), p("span", null, b(hn.value), 1)])) : d("", !0),
672
- I.value && !F.value ? (v(), f("p", Kt, " The element itself is not changed. ")) : (v(), u(_e, {
673
- key: 4,
674
- detail: F.value,
675
- "affix-mask": g.affixMask,
676
- disabled: mn.value,
677
- onEdit: Zn
678
- }, null, 8, [
679
- "detail",
680
- "affix-mask",
681
- "disabled"
682
- ]))
683
- ]),
684
- _: 1
685
- }, 8, ["default-size"]),
686
- h(x(a), {
687
- "aria-label": "Resize the detail and the XML",
688
- class: "relative h-px bg-base-300 transition-colors before:absolute before:inset-x-0 before:-inset-y-1.5 hover:bg-primary"
689
- }),
690
- h(x(i), { class: "flex min-h-0 flex-col" }, {
691
- default: C(() => [x(k) ? (v(), f("div", qt, [t[26] ||= p("p", { class: "font-medium" }, " The preview could not be built, so the review may not show what Apply writes. Change a decision to try again, or close without applying. ", -1), p("details", Jt, [t[25] ||= p("summary", { class: "cursor-pointer" }, "Technical details", -1), p("pre", Yt, b(x(k)), 1)])])) : d("", !0), h(x(fe), {
692
- class: "min-h-0 flex-1",
693
- before: x(ln),
694
- after: x(cn),
695
- loading: x(O)
696
- }, null, 8, [
697
- "before",
698
- "after",
699
- "loading"
700
- ])]),
701
- _: 1
702
- })
703
- ]),
704
- _: 1
705
- })]),
706
- _: 1
707
- })
708
- ]),
709
- _: 1
710
- }, 8, ["direction"]))
711
- ], 512), [[ot, !M.value && j.value === "review" && x(E).report.value]]),
712
- !M.value && j.value === "confirm" && R.value ? (v(), u(Ye, {
713
- key: 3,
714
- summary: R.value,
715
- scenario: g.scenario,
716
- verb: g.verb,
717
- onChangeMatch: or,
718
- onShow: ar
719
- }, null, 8, [
720
- "summary",
721
- "scenario",
722
- "verb"
723
- ])) : d("", !0),
724
- !M.value && j.value === "done" ? (v(), f("div", Xt, [p("div", Zt, [
725
- h(x(se), { class: "size-8 text-success" }),
726
- p("p", Qt, b(En.value), 1),
727
- Dn.value ? (v(), f("p", $t, b(Dn.value), 1)) : d("", !0),
728
- gn.value ? (v(), u(n, {
729
- key: 1,
730
- class: "mt-2",
731
- size: "sm",
732
- variant: "outline",
733
- "data-testid": "show-applied",
734
- onClick: t[6] ||= (e) => T("show", gn.value)
735
- }, {
736
- default: C(() => [...t[27] ||= [m(" Show in the project ", -1)]]),
737
- _: 1
738
- })) : d("", !0)
739
- ])])) : d("", !0)
740
- ], 8, Ot)]),
741
- _: 1
742
- }),
743
- Fn.value ? (v(), u(x(a), {
744
- key: 0,
745
- "aria-label": "Resize how this step works",
746
- class: "relative w-px bg-base-300 transition-colors before:absolute before:inset-y-0 before:-inset-x-1.5 hover:bg-primary"
747
- })) : d("", !0),
748
- Fn.value ? (v(), u(x(i), {
749
- key: 1,
750
- ref_key: "helpPanel",
751
- ref: H,
752
- "size-unit": "px",
753
- collapsible: "",
754
- id: "merge-help-panel",
755
- "collapsed-size": 44,
756
- "min-size": 240,
757
- "max-size": 560,
758
- "default-size": 300
759
- }, {
760
- default: C(() => [h(Ge, {
761
- step: Fn.value,
762
- collapsed: yn.value,
763
- drawn: Pn.value,
764
- facts: In.value,
765
- onToggle: bn
766
- }, null, 8, [
767
- "step",
768
- "collapsed",
769
- "drawn",
770
- "facts"
771
- ])]),
772
- _: 1
773
- }, 512)) : d("", !0)
774
- ]),
775
- _: 1
776
- }),
777
- p("footer", en, [j.value === "preflight" ? (v(), f(c, { key: 0 }, [K.value ? (v(), u(n, {
778
- key: 0,
779
- color: "primary",
780
- size: "sm",
781
- onClick: t[7] ||= (e) => T("close")
782
- }, {
783
- default: C(() => [...t[28] ||= [m("Close", -1)]]),
784
- _: 1
785
- })) : (v(), f(c, { key: 1 }, [
786
- t[30] ||= p("span", { class: "mr-auto text-xs text-base-content/80" }, " Warnings only — you can continue and review the changes. ", -1),
787
- h(n, {
788
- variant: "ghost",
789
- size: "sm",
790
- onClick: t[8] ||= (e) => T("close")
791
- }, {
792
- default: C(() => [...t[29] ||= [m("Close", -1)]]),
793
- _: 1
794
- }),
795
- h(n, {
796
- color: "primary",
797
- size: "sm",
798
- disabled: M.value,
799
- onClick: sr
800
- }, {
801
- default: C(() => [m(" Next: " + b($.value ? x(qe)[$.value] : "") + " ", 1), h(x(ae), { class: "size-4" })]),
802
- _: 1
803
- }, 8, ["disabled"])
804
- ], 64))], 64)) : j.value === "map" ? (v(), f(c, { key: 1 }, [
805
- x(A) ? (v(), f("span", tn, " Updating the proposal… ")) : X.value ? (v(), f("span", nn, [h(x(o), { class: "size-3.5 shrink-0 text-warning" }), m(" Choose where “" + b(wn.value) + "” lands to continue. ", 1)])) : (v(), f("span", rn, " Nothing is written yet. ")),
806
- h(n, {
807
- variant: "ghost",
808
- size: "sm",
809
- onClick: t[9] ||= (e) => T("close")
810
- }, {
811
- default: C(() => [...t[31] ||= [m("Close", -1)]]),
812
- _: 1
813
- }),
814
- h(n, {
815
- color: "primary",
816
- size: "sm",
817
- disabled: M.value || x(O) || x(A) || X.value,
818
- "aria-describedby": X.value ? "merge-blocked-reason" : void 0,
819
- onClick: sr
820
- }, {
821
- default: C(() => [t[32] ||= m(" Next: Review ", -1), h(x(ae), { class: "size-4" })]),
822
- _: 1
823
- }, 8, ["disabled", "aria-describedby"])
824
- ], 64)) : j.value === "review" ? (v(), f(c, { key: 2 }, [
825
- h(n, {
826
- variant: "ghost",
827
- size: "sm",
828
- onClick: t[10] ||= (e) => T("close")
829
- }, {
830
- default: C(() => [...t[33] ||= [m("Close", -1)]]),
831
- _: 1
832
- }),
833
- Y.value ? (v(), u(n, {
834
- key: 0,
835
- variant: "ghost",
836
- size: "sm",
837
- disabled: M.value,
838
- onClick: t[11] ||= (e) => j.value = "map"
839
- }, {
840
- default: C(() => [...t[34] ||= [m(" Back: Match ", -1)]]),
841
- _: 1
842
- }, 8, ["disabled"])) : d("", !0),
843
- h(n, {
844
- color: "primary",
845
- size: "sm",
846
- disabled: M.value || !!P.value || !!x(k) || x(O) || x(A),
847
- onClick: cr
848
- }, {
849
- default: C(() => [...t[35] ||= [m(" Next: Confirm ", -1)]]),
850
- _: 1
851
- }, 8, ["disabled"])
852
- ], 64)) : j.value === "confirm" ? (v(), f(c, { key: 3 }, [
853
- R.value && x(s)(R.value) ? (v(), f("span", an, " Nothing to apply. ")) : (v(), f("span", on, b(x(ge).confirm), 1)),
854
- h(n, {
855
- variant: "ghost",
856
- size: "sm",
857
- disabled: M.value,
858
- onClick: t[12] ||= (e) => T("close")
859
- }, {
860
- default: C(() => [...t[36] ||= [m("Close", -1)]]),
861
- _: 1
862
- }, 8, ["disabled"]),
863
- h(n, {
864
- variant: "ghost",
865
- size: "sm",
866
- disabled: M.value,
867
- onClick: t[13] ||= (e) => j.value = "review"
868
- }, {
869
- default: C(() => [...t[37] ||= [m(" Back: Review ", -1)]]),
870
- _: 1
871
- }, 8, ["disabled"]),
872
- h(n, {
873
- color: "primary",
874
- size: "sm",
875
- disabled: M.value || x(A) || !R.value || x(s)(R.value),
876
- "aria-describedby": R.value && x(s)(R.value) ? "merge-nothing-to-apply" : void 0,
877
- onClick: lr
878
- }, {
879
- default: C(() => [m(b(R.value ? x(Be)(R.value) : "Apply"), 1)]),
880
- _: 1
881
- }, 8, ["disabled", "aria-describedby"])
882
- ], 64)) : (v(), u(n, {
883
- key: 4,
884
- color: "primary",
885
- size: "sm",
886
- onClick: t[14] ||= (e) => T("applied")
887
- }, {
888
- default: C(() => [...t[38] ||= [m("Close", -1)]]),
889
- _: 1
890
- }))])
891
- ], 512));
892
- }
893
- });
894
- //#endregion
895
- export { sn as default };