@zealsolutions/zeal-ui 1.0.0-alpha.353 → 1.0.0-alpha.355

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.
@@ -1,152 +1,152 @@
1
- import { computed as q, openBlock as f, createElementBlock as h, createElementVNode as R, toDisplayString as x, createCommentVNode as S, Fragment as L, renderList as D, normalizeClass as F, createStaticVNode as V } from "vue";
2
- import { _ as B } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
3
- const T = (e) => e === ">", A = (e) => e === "<", P = (e) => /^\s+$/.test(e), M = (e) => /^\s*<[^>]+>\s*$/.test(e), U = (e) => !M(e);
4
- class E {
5
- constructor(i, t, n) {
6
- this.start_in_before = i, this.start_in_after = t, this.length = n, this.end_in_before = i + n - 1, this.end_in_after = t + n - 1;
1
+ import { computed as q, openBlock as f, createElementBlock as y, createElementVNode as v, toDisplayString as x, createCommentVNode as S, Fragment as D, renderList as F, normalizeClass as B, createStaticVNode as V } from "vue";
2
+ import { _ as T } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const U = (e) => e === ">", A = (e) => e === "<", P = (e) => /^\s+$/.test(e), E = (e) => /^\s*<[^>]+>\s*$/.test(e), j = (e) => !E(e);
4
+ class O {
5
+ constructor(t, i, n) {
6
+ this.start_in_before = t, this.start_in_after = i, this.length = n, this.end_in_before = t + n - 1, this.end_in_after = i + n - 1;
7
7
  }
8
8
  }
9
9
  function N(e) {
10
- let i = "char", t = "";
10
+ let t = "char", i = "";
11
11
  const n = [];
12
- for (let l = 0, r = e.length; l < r; l++) {
13
- const a = e[l];
14
- switch (i) {
12
+ for (let r = 0, a = e.length; r < a; r++) {
13
+ const l = e[r];
14
+ switch (t) {
15
15
  case "tag":
16
- T(a) ? (t += ">", n.push(t), t = "", i = P(a) ? "whitespace" : "char") : t += a;
16
+ U(l) ? (i += ">", n.push(i), i = "", t = P(l) ? "whitespace" : "char") : i += l;
17
17
  break;
18
18
  case "char":
19
- A(a) ? (t && n.push(t), t = "<", i = "tag") : /\s/.test(a) ? (t && n.push(t), t = a, i = "whitespace") : /[\w#@]+/i.test(a) ? t += a : (t && n.push(t), t = a);
19
+ A(l) ? (i && n.push(i), i = "<", t = "tag") : /\s/.test(l) ? (i && n.push(i), i = l, t = "whitespace") : /[\w#@]+/i.test(l) ? i += l : (i && n.push(i), i = l);
20
20
  break;
21
21
  case "whitespace":
22
- A(a) ? (t && n.push(t), t = "<", i = "tag") : P(a) ? t += a : (t && n.push(t), t = a, i = "char");
22
+ A(l) ? (i && n.push(i), i = "<", t = "tag") : P(l) ? i += l : (i && n.push(i), i = l, t = "char");
23
23
  break;
24
24
  default:
25
- throw new Error("Unknown mode " + i);
25
+ throw new Error("Unknown mode " + t);
26
26
  }
27
27
  }
28
- return t && n.push(t), n;
28
+ return i && n.push(i), n;
29
29
  }
30
- function j(e, i, t, n, l, r, a) {
31
- let d = n, s = r, u = 0, c = {}, b;
32
- for (let o = n; o < l; o++) {
33
- const _ = {}, g = e[o], y = t[g];
34
- for (let v = 0, O = y.length; v < O; v++) {
35
- const p = y[v];
36
- if (p < r)
30
+ function H(e, t, i, n, r, a, l) {
31
+ let u = n, s = a, d = 0, c = {}, p;
32
+ for (let o = n; o < r; o++) {
33
+ const _ = {}, g = e[o], h = i[g];
34
+ for (let R = 0, L = h.length; R < L; R++) {
35
+ const b = h[R];
36
+ if (b < a)
37
37
  continue;
38
- if (p >= a)
38
+ if (b >= l)
39
39
  break;
40
- c[p - 1] == null && (c[p - 1] = 0);
41
- const k = c[p - 1] + 1;
42
- _[p] = k, k > u && (d = o - k + 1, s = p - k + 1, u = k);
40
+ c[b - 1] == null && (c[b - 1] = 0);
41
+ const k = c[b - 1] + 1;
42
+ _[b] = k, k > d && (u = o - k + 1, s = b - k + 1, d = k);
43
43
  }
44
44
  c = _;
45
45
  }
46
- return u !== 0 && (b = new E(d, s, u)), b;
46
+ return d !== 0 && (p = new O(u, s, d)), p;
47
47
  }
48
- function C(e, i, t, n, l, r, a, d) {
49
- const s = j(e, i, t, n, l, r, a);
50
- return s != null && (n < s.start_in_before && r < s.start_in_after && C(e, i, t, n, s.start_in_before, r, s.start_in_after, d), d.push(s), s.end_in_before <= l && s.end_in_after <= a && C(e, i, t, s.end_in_before + 1, l, s.end_in_after + 1, a, d)), d;
48
+ function C(e, t, i, n, r, a, l, u) {
49
+ const s = H(e, t, i, n, r, a, l);
50
+ return s != null && (n < s.start_in_before && a < s.start_in_after && C(e, t, i, n, s.start_in_before, a, s.start_in_after, u), u.push(s), s.end_in_before <= r && s.end_in_after <= l && C(e, t, i, s.end_in_before + 1, r, s.end_in_after + 1, l, u)), u;
51
51
  }
52
- function H(e) {
52
+ function W(e) {
53
53
  if (e.find_these == null)
54
54
  throw new Error("params must have find_these key");
55
55
  if (e.in_these == null)
56
56
  throw new Error("params must have in_these key");
57
- const i = {};
58
- for (let t = 0, n = e.find_these.length; t < n; t++) {
59
- const l = e.find_these[t];
60
- i[l] = [];
61
- let r = e.in_these.indexOf(l);
62
- for (; r !== -1; )
63
- i[l].push(r), r = e.in_these.indexOf(l, r + 1);
57
+ const t = {};
58
+ for (let i = 0, n = e.find_these.length; i < n; i++) {
59
+ const r = e.find_these[i];
60
+ t[r] = [];
61
+ let a = e.in_these.indexOf(r);
62
+ for (; a !== -1; )
63
+ t[r].push(a), a = e.in_these.indexOf(r, a + 1);
64
64
  }
65
- return i;
65
+ return t;
66
66
  }
67
- function W(e, i) {
68
- const t = [], n = H({ find_these: e, in_these: i });
69
- return C(e, i, n, 0, e.length, 0, i.length, t);
67
+ function $(e, t) {
68
+ const i = [], n = W({ find_these: e, in_these: t });
69
+ return C(e, t, n, 0, e.length, 0, t.length, i);
70
70
  }
71
- function $(e, i) {
71
+ function z(e, t) {
72
72
  if (e == null)
73
73
  throw new Error("before_tokens?");
74
- if (i == null)
74
+ if (t == null)
75
75
  throw new Error("after_tokens?");
76
- let t = 0, n = 0;
77
- const l = [], r = {
76
+ let i = 0, n = 0;
77
+ const r = [], a = {
78
78
  "false,false": "replace",
79
79
  "true,false": "insert",
80
80
  "false,true": "delete",
81
81
  "true,true": "none"
82
- }, a = W(e, i);
83
- a.push(new E(e.length, i.length, 0));
84
- for (let c = 0, b = a.length; c < b; c++) {
85
- const o = a[c], _ = t === o.start_in_before, g = n === o.start_in_after, y = r[[_, g].toString()];
86
- y !== "none" && l.push({
87
- action: y,
88
- start_in_before: t,
89
- end_in_before: y !== "insert" ? o.start_in_before - 1 : void 0,
82
+ }, l = $(e, t);
83
+ l.push(new O(e.length, t.length, 0));
84
+ for (let c = 0, p = l.length; c < p; c++) {
85
+ const o = l[c], _ = i === o.start_in_before, g = n === o.start_in_after, h = a[[_, g].toString()];
86
+ h !== "none" && r.push({
87
+ action: h,
88
+ start_in_before: i,
89
+ end_in_before: h !== "insert" ? o.start_in_before - 1 : void 0,
90
90
  start_in_after: n,
91
- end_in_after: y !== "delete" ? o.start_in_after - 1 : void 0
92
- }), o.length !== 0 && l.push({
91
+ end_in_after: h !== "delete" ? o.start_in_after - 1 : void 0
92
+ }), o.length !== 0 && r.push({
93
93
  action: "equal",
94
94
  start_in_before: o.start_in_before,
95
95
  end_in_before: o.end_in_before,
96
96
  start_in_after: o.start_in_after,
97
97
  end_in_after: o.end_in_after
98
- }), t = o.end_in_before + 1, n = o.end_in_after + 1;
98
+ }), i = o.end_in_before + 1, n = o.end_in_after + 1;
99
99
  }
100
- const d = [];
100
+ const u = [];
101
101
  let s = { action: "none" };
102
- const u = (c) => c.action !== "equal" || c.end_in_before - c.start_in_before !== 0 ? !1 : /^\s$/.test(e.slice(c.start_in_before, +c.end_in_before + 1 || 9e9));
103
- for (let c = 0, b = l.length; c < b; c++) {
104
- const o = l[c];
105
- u(o) && s.action === "replace" || o.action === "replace" && s.action === "replace" ? (s.end_in_before = o.end_in_before, s.end_in_after = o.end_in_after) : (d.push(o), s = o);
102
+ const d = (c) => c.action !== "equal" || c.end_in_before - c.start_in_before !== 0 ? !1 : /^\s$/.test(e.slice(c.start_in_before, +c.end_in_before + 1 || 9e9));
103
+ for (let c = 0, p = r.length; c < p; c++) {
104
+ const o = r[c];
105
+ d(o) && s.action === "replace" || o.action === "replace" && s.action === "replace" ? (s.end_in_before = o.end_in_before, s.end_in_after = o.end_in_after) : (u.push(o), s = o);
106
106
  }
107
- return d;
107
+ return u;
108
108
  }
109
- function G(e, i, t) {
110
- i = i.slice(e, +i.length + 1 || 9e9);
109
+ function G(e, t, i) {
110
+ t = t.slice(e, +t.length + 1 || 9e9);
111
111
  let n;
112
- for (let l = 0, r = i.length; l < r; l++) {
113
- const a = i[l], d = t(a);
114
- if (d === !0 && (n = l), d === !1)
112
+ for (let r = 0, a = t.length; r < a; r++) {
113
+ const l = t[r], u = i(l);
114
+ if (u === !0 && (n = r), u === !1)
115
115
  break;
116
116
  }
117
- return n != null ? i.slice(0, +n + 1 || 9e9) : [];
117
+ return n != null ? t.slice(0, +n + 1 || 9e9) : [];
118
118
  }
119
- function I(e, i) {
120
- let t = "", n = 0;
121
- const l = i.length;
122
- for (; !(n >= l); ) {
123
- const r = G(n, i, U);
124
- if (n += r.length, r.length !== 0 && (t += "<" + e + ">" + r.join("") + "</" + e + ">"), n >= l)
119
+ function I(e, t) {
120
+ let i = "", n = 0;
121
+ const r = t.length;
122
+ for (; !(n >= r); ) {
123
+ const a = G(n, t, j);
124
+ if (n += a.length, a.length !== 0 && (i += "<" + e + ">" + a.join("") + "</" + e + ">"), n >= r)
125
125
  break;
126
- const a = G(n, i, M);
127
- n += a.length, t += a.join("");
126
+ const l = G(n, t, E);
127
+ n += l.length, i += l.join("");
128
128
  }
129
- return t;
129
+ return i;
130
130
  }
131
131
  const m = {
132
- equal: (e, i) => i.slice(e.start_in_before, +e.end_in_before + 1 || 9e9).join(""),
133
- insert: (e, i, t) => I("ins", t.slice(e.start_in_after, +e.end_in_after + 1 || 9e9)),
134
- delete: (e, i) => I("del", i.slice(e.start_in_before, +e.end_in_before + 1 || 9e9))
132
+ equal: (e, t) => t.slice(e.start_in_before, +e.end_in_before + 1 || 9e9).join(""),
133
+ insert: (e, t, i) => I("ins", i.slice(e.start_in_after, +e.end_in_after + 1 || 9e9)),
134
+ delete: (e, t) => I("del", t.slice(e.start_in_before, +e.end_in_before + 1 || 9e9))
135
135
  };
136
- m.replace = (e, i, t) => m.delete(e, i, t) + m.insert(e, i, t);
137
- function z(e, i, t) {
136
+ m.replace = (e, t, i) => m.delete(e, t, i) + m.insert(e, t, i);
137
+ function Q(e, t, i) {
138
138
  let n = "";
139
- for (let l = 0, r = t.length; l < r; l++) {
140
- const a = t[l];
141
- n += m[a.action](a, e, i);
139
+ for (let r = 0, a = i.length; r < a; r++) {
140
+ const l = i[r];
141
+ n += m[l.action](l, e, t);
142
142
  }
143
143
  return n;
144
144
  }
145
- function Q(e, i) {
146
- if (e === i)
145
+ function Y(e, t) {
146
+ if (e === t)
147
147
  return e;
148
- const t = N(e ?? ""), n = N(i ?? ""), l = $(t, n);
149
- return z(t, n, l);
148
+ const i = N(e ?? ""), n = N(t ?? ""), r = z(i, n);
149
+ return Q(i, n, r);
150
150
  }
151
151
  const J = {
152
152
  sop: {
@@ -165,7 +165,7 @@ const J = {
165
165
  { label: "Code", key: "SOPCode" },
166
166
  // wire key "SOPCode" (SopReadService.GetSop) — see the draft-mode gap note above
167
167
  { label: "Core capabilities", key: "CoreCapabilities" },
168
- { label: "Active", key: "IsActive" },
168
+ { label: "Active", key: "IsActive", bool: !0 },
169
169
  { label: "Summary", key: "Summary", rich: !0 },
170
170
  { label: "Generic Provisions", key: "GenericProvisions", rich: !0 },
171
171
  { label: "Further reading", key: "FurtherReading", rich: !0 },
@@ -203,8 +203,8 @@ const J = {
203
203
  // wire key for entity `ResidualRiskConsequence`
204
204
  { label: "Residual Risk Likelihood", key: "ResidualLikelihood" },
205
205
  // wire key for entity `ResidualRiskLikelihood`
206
- { label: "Active", key: "IsActive" },
207
- { label: "ECU Only", key: "IsNaruOnly" }
206
+ { label: "Active", key: "IsActive", bool: !0 },
207
+ { label: "ECU Only", key: "IsNaruOnly", bool: !0 }
208
208
  // wire key for entity `IsNARUOnly`
209
209
  ]
210
210
  },
@@ -227,7 +227,7 @@ const J = {
227
227
  { label: "Code", key: "TISCode" },
228
228
  { label: "Review Date", key: "ReviewDue" },
229
229
  // wire key for entity `ReviewDate` (stored as String) — see the draft-mode gap note above
230
- { label: "Active", key: "IsActive" },
230
+ { label: "Active", key: "IsActive", bool: !0 },
231
231
  { label: "Mandatory Frequency", key: "Frequency" },
232
232
  // raw lookup id (SOPTISFrequencyID), NOT resolved display text — legacy resolves it via a DB lookup this record shape doesn't carry
233
233
  { label: "Mandatory Re-certification", key: "Recert" }
@@ -250,9 +250,9 @@ const J = {
250
250
  { label: "Review Due By", key: "ReviewDue" },
251
251
  { label: "Service Line", key: "ServiceLine" },
252
252
  { label: "Summary", key: "Summary", rich: !0 },
253
- { label: "Active", key: "IsActive" },
253
+ { label: "Active", key: "IsActive", bool: !0 },
254
254
  // bug #3 — appears once, not twice
255
- { label: "ECU Only", key: "IsNaruOnly" },
255
+ { label: "ECU Only", key: "IsNaruOnly", bool: !0 },
256
256
  // bug #3 — legacy comments this row out; included as a real edited field
257
257
  { label: "Personal Issue", key: "PersonalIssue" },
258
258
  { label: "Is Personal Issue - can it be re-issued? Only", key: "PersonalReIssue" },
@@ -295,8 +295,8 @@ const J = {
295
295
  // bug #4
296
296
  { label: "Equipment PPE", key: "EquipmentPPE", rich: !0 },
297
297
  // bug #4
298
- { label: "Active", key: "IsActive" },
299
- { label: "ECU Only", key: "IsNARUOnly" }
298
+ { label: "Active", key: "IsActive", bool: !0 },
299
+ { label: "ECU Only", key: "IsNARUOnly", bool: !0 }
300
300
  ]
301
301
  },
302
302
  activity: {
@@ -310,9 +310,9 @@ const J = {
310
310
  // landing this config at 4.
311
311
  { label: "Name", key: "Name" },
312
312
  { label: "Activity content", key: "ActivityContent", rich: !0 },
313
- { label: "Active", key: "IsActive" },
313
+ { label: "Active", key: "IsActive", bool: !0 },
314
314
  // not present on the draft/amend read shape — see the draft-mode gap note above
315
- { label: "ECU Only", key: "IsNaruOnly" }
315
+ { label: "ECU Only", key: "IsNaruOnly", bool: !0 }
316
316
  // not present on the draft/amend read shape — see the draft-mode gap note above
317
317
  ]
318
318
  },
@@ -322,8 +322,8 @@ const J = {
322
322
  // sop-appendix-view-compare.aspx diffs exactly 4 fields: Name, PageContents, Active, ECU Only.
323
323
  { label: "Name", key: "Name" },
324
324
  { label: "Content", key: "PageContents", rich: !0 },
325
- { label: "Active", key: "IsActive" },
326
- { label: "ECU Only", key: "IsNaruOnly" }
325
+ { label: "Active", key: "IsActive", bool: !0 },
326
+ { label: "ECU Only", key: "IsNaruOnly", bool: !0 }
327
327
  // wire key for entity `IsNARUOnly` — see the draft-mode gap note above
328
328
  ]
329
329
  }
@@ -331,44 +331,54 @@ const J = {
331
331
  function w(e) {
332
332
  return e == null ? !1 : String(e).replace(/<[^>]*>/g, "").replace(/&nbsp;/g, " ").trim().length > 0;
333
333
  }
334
- function ue(e, i, t = {}, n = null) {
335
- const l = J[e];
336
- if (!l || !i)
334
+ function M(e) {
335
+ if (e == null || e === "")
336
+ return "";
337
+ if (e === !0 || e === 1)
338
+ return "Yes";
339
+ if (e === !1 || e === 0)
340
+ return "No";
341
+ const t = String(e).trim().toLowerCase();
342
+ return t === "true" || t === "1" || t === "yes" ? "Yes" : t === "false" || t === "0" || t === "no" ? "No" : String(e);
343
+ }
344
+ function fe(e, t, i = {}, n = null) {
345
+ const r = J[e];
346
+ if (!r || !t)
337
347
  return { title: "", sections: [] };
338
- const r = { ...i, ...t }, a = n ? { ...n, ...t } : null, d = l.fields.map((s) => {
339
- const u = r[s.key];
340
- if (!a)
341
- return w(u) ? { label: s.label, value: u, rich: !!s.rich } : null;
342
- const c = a[s.key];
343
- return !w(u) && !w(c) ? null : {
348
+ const a = { ...t, ...i }, l = n ? { ...n, ...i } : null, u = r.fields.map((s) => {
349
+ const d = s.bool ? M(a[s.key]) : a[s.key];
350
+ if (!l)
351
+ return w(d) ? { label: s.label, value: d, rich: !!s.rich } : null;
352
+ const c = s.bool ? M(l[s.key]) : l[s.key];
353
+ return !w(d) && !w(c) ? null : {
344
354
  label: s.label,
345
- value: Q(String(u ?? ""), String(c ?? "")),
355
+ value: Y(String(d ?? ""), String(c ?? "")),
346
356
  rich: !!s.rich,
347
357
  // original field richness — the modal uses it to pre-wrap plain diffs
348
358
  diff: !0
349
359
  };
350
360
  }).filter(Boolean);
351
- return { title: l.title(n || i), sections: d };
361
+ return { title: r.title(n || t), sections: u };
352
362
  }
353
- const K = { class: "flex flex-col h-full overflow-hidden" }, X = { class: "text-style-sub-header font-medium text-app-950 leading-[1.3]" }, Y = {
363
+ const K = { class: "flex flex-col h-full overflow-hidden" }, X = { class: "text-style-sub-header font-medium text-app-950 leading-[1.3]" }, Z = {
354
364
  key: 0,
355
365
  "data-testid": "preview-diff-legend",
356
366
  class: "border-b-[1px] border-steel-300 px-6 py-[10px] flex items-center gap-[16px] text-[12px] text-[#697277] shrink-0"
357
- }, Z = /* @__PURE__ */ V('<span class="font-semibold" data-v-781d71ec>Unpublished draft changes</span><span class="flex items-center gap-[5px]" data-v-781d71ec><span class="inline-block w-[14px] h-[10px] rounded-[2px]" style="background-color:#d4fcbc;" data-v-781d71ec></span>Added</span><span class="flex items-center gap-[5px]" data-v-781d71ec><span class="inline-block w-[14px] h-[10px] rounded-[2px]" style="background-color:#fbb6c2;" data-v-781d71ec></span>Removed</span>', 3), ee = {
367
+ }, ee = /* @__PURE__ */ V('<span class="font-semibold" data-v-781d71ec>Unpublished draft changes</span><span class="flex items-center gap-[5px]" data-v-781d71ec><span class="inline-block w-[14px] h-[10px] rounded-[2px]" style="background-color:#d4fcbc;" data-v-781d71ec></span>Added</span><span class="flex items-center gap-[5px]" data-v-781d71ec><span class="inline-block w-[14px] h-[10px] rounded-[2px]" style="background-color:#fbb6c2;" data-v-781d71ec></span>Removed</span>', 3), te = {
358
368
  key: 0,
359
369
  "data-testid": "preview-diff-loading",
360
370
  class: "italic"
361
- }, te = { class: "flex-1 min-h-0 overflow-y-auto px-6 py-5" }, ie = {
371
+ }, ie = { class: "flex-1 min-h-0 overflow-y-auto px-6 py-5" }, ne = {
362
372
  key: 0,
363
373
  "data-testid": "preview-empty",
364
374
  class: "text-[14px] text-[#697277]"
365
- }, ne = {
375
+ }, re = {
366
376
  key: 1,
367
377
  class: "flex flex-col gap-6"
368
- }, le = { class: "font-semibold text-[13px] text-[#326d68] dark:text-proclusteal-950 leading-[1.2] mb-[6px]" }, ae = ["innerHTML"], re = ["innerHTML"], se = {
378
+ }, le = { class: "font-semibold text-[13px] text-[#326d68] dark:text-proclusteal-950 leading-[1.2] mb-[6px]" }, ae = ["innerHTML"], se = ["innerHTML"], oe = {
369
379
  key: 2,
370
380
  class: "text-[15px] text-black-950 leading-[1.5] whitespace-pre-wrap"
371
- }, oe = {
381
+ }, ce = {
372
382
  __name: "SopCompare",
373
383
  props: {
374
384
  title: { type: String, default: "" },
@@ -376,38 +386,38 @@ const K = { class: "flex flex-col h-full overflow-hidden" }, X = { class: "text-
376
386
  loading: { type: Boolean, default: !1 }
377
387
  },
378
388
  setup(e) {
379
- const i = e, t = q(() => i.sections.some((n) => n.diff));
380
- return (n, l) => (f(), h("div", K, [
381
- R("p", X, x(e.title), 1),
382
- t.value || e.loading ? (f(), h("div", Y, [
383
- Z,
384
- e.loading ? (f(), h("span", ee, "Loading changes…")) : S("", !0)
389
+ const t = e, i = q(() => t.sections.some((n) => n.diff));
390
+ return (n, r) => (f(), y("div", K, [
391
+ v("p", X, x(e.title), 1),
392
+ i.value || e.loading ? (f(), y("div", Z, [
393
+ ee,
394
+ e.loading ? (f(), y("span", te, "Loading changes…")) : S("", !0)
385
395
  ])) : S("", !0),
386
- R("div", te, [
387
- e.sections.length ? (f(), h("div", ne, [
388
- (f(!0), h(L, null, D(e.sections, (r, a) => (f(), h("section", {
389
- key: a,
396
+ v("div", ie, [
397
+ e.sections.length ? (f(), y("div", re, [
398
+ (f(!0), y(D, null, F(e.sections, (a, l) => (f(), y("section", {
399
+ key: l,
390
400
  "data-testid": "preview-section"
391
401
  }, [
392
- R("p", le, x(r.label), 1),
393
- r.diff ? (f(), h("div", {
402
+ v("p", le, x(a.label), 1),
403
+ a.diff ? (f(), y("div", {
394
404
  key: 0,
395
- class: F(["preview-content text-[15px] text-black-950 leading-[1.5]", { "whitespace-pre-wrap": !r.rich }]),
396
- innerHTML: r.value
397
- }, null, 10, ae)) : r.rich ? (f(), h("div", {
405
+ class: B(["preview-content text-[15px] text-black-950 leading-[1.5]", { "whitespace-pre-wrap": !a.rich }]),
406
+ innerHTML: a.value
407
+ }, null, 10, ae)) : a.rich ? (f(), y("div", {
398
408
  key: 1,
399
409
  class: "preview-content text-[15px] text-black-950 leading-[1.5]",
400
- innerHTML: r.value
401
- }, null, 8, re)) : (f(), h("p", se, x(r.value), 1))
410
+ innerHTML: a.value
411
+ }, null, 8, se)) : (f(), y("p", oe, x(a.value), 1))
402
412
  ]))), 128))
403
- ])) : (f(), h("p", ie, " There is no content to preview yet. "))
413
+ ])) : (f(), y("p", ne, " There is no content to preview yet. "))
404
414
  ])
405
415
  ]));
406
416
  }
407
- }, fe = /* @__PURE__ */ B(oe, [["__scopeId", "data-v-781d71ec"]]);
417
+ }, ye = /* @__PURE__ */ T(ce, [["__scopeId", "data-v-781d71ec"]]);
408
418
  export {
409
- fe as SopCompare,
410
- ue as buildPreview,
419
+ ye as SopCompare,
420
+ fe as buildPreview,
411
421
  w as hasContent,
412
- Q as htmlDiff
422
+ Y as htmlDiff
413
423
  };