@knpkv/rly 0.4.1 → 0.5.1
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.
- package/README.md +31 -2
- package/dist/Dialog-DSwimdwG.js +955 -0
- package/dist/Dialog-DSwimdwG.js.map +1 -0
- package/dist/{PortalProvider-BpgZwSpw.js → PortalProvider-CN_81Fy3.js} +2 -2
- package/dist/{PortalProvider-BpgZwSpw.js.map → PortalProvider-CN_81Fy3.js.map} +1 -1
- package/dist/components.css +1 -1
- package/dist/dts/foundations/PortalProvider.d.ts +1 -0
- package/dist/dts/foundations/PortalProvider.d.ts.map +1 -1
- package/dist/dts/internal/modal.d.ts +4 -0
- package/dist/dts/internal/modal.d.ts.map +1 -1
- package/dist/dts/patterns/RelayDock.d.ts +75 -0
- package/dist/dts/patterns/RelayDock.d.ts.map +1 -0
- package/dist/dts/patterns/index.d.ts +2 -0
- package/dist/dts/patterns/index.d.ts.map +1 -1
- package/dist/foundations/index.js +2 -2
- package/dist/index.js +6 -6
- package/dist/patterns/index.js +2 -2
- package/dist/patterns-BY7vflbg.js +3320 -0
- package/dist/patterns-BY7vflbg.js.map +1 -0
- package/dist/primitives/index.js +3 -3
- package/dist/primitives-DYGtIZqB.js +342 -0
- package/dist/primitives-DYGtIZqB.js.map +1 -0
- package/package.json +1 -1
- package/registry/components.json +111 -0
- package/registry/search.json +36 -0
- package/dist/Dialog-1WvU8GjA.js +0 -715
- package/dist/Dialog-1WvU8GjA.js.map +0 -1
- package/dist/patterns-CxMz8DKX.js +0 -2792
- package/dist/patterns-CxMz8DKX.js.map +0 -1
- package/dist/primitives-CW89TsFB.js +0 -543
- package/dist/primitives-CW89TsFB.js.map +0 -1
|
@@ -1,2792 +0,0 @@
|
|
|
1
|
-
import { r as e } from "./PortalProvider-BpgZwSpw.js";
|
|
2
|
-
import { n as t } from "./LinkProvider-DMkhwZ3P.js";
|
|
3
|
-
import { a as n, i as r, l as i, n as a, r as o, t as s } from "./component-DKy8kjZl.js";
|
|
4
|
-
import { g as c, h as l, l as u, o as d, t as f, u as p, x as m } from "./Dialog-1WvU8GjA.js";
|
|
5
|
-
import { useId as h, useRef as g } from "react";
|
|
6
|
-
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
7
|
-
var b = {
|
|
8
|
-
root: "rly_AgentContextButton-module__root",
|
|
9
|
-
mark: "rly_AgentContextButton-module__mark",
|
|
10
|
-
glyph: "rly_AgentContextButton-module__glyph",
|
|
11
|
-
copy: "rly_AgentContextButton-module__copy",
|
|
12
|
-
contextRow: "rly_AgentContextButton-module__contextRow",
|
|
13
|
-
action: "rly_AgentContextButton-module__action",
|
|
14
|
-
agent: "rly_AgentContextButton-module__agent",
|
|
15
|
-
contextLabel: "rly_AgentContextButton-module__contextLabel",
|
|
16
|
-
context: "rly_AgentContextButton-module__context",
|
|
17
|
-
job: "rly_AgentContextButton-module__job",
|
|
18
|
-
count: "rly_AgentContextButton-module__count"
|
|
19
|
-
}, x = (e) => a(b, e), S = () => /* @__PURE__ */ v("span", {
|
|
20
|
-
"aria-hidden": "true",
|
|
21
|
-
className: x("mark"),
|
|
22
|
-
children: /* @__PURE__ */ v("svg", {
|
|
23
|
-
className: x("glyph"),
|
|
24
|
-
focusable: "false",
|
|
25
|
-
viewBox: "0 0 24 24",
|
|
26
|
-
children: /* @__PURE__ */ v("path", {
|
|
27
|
-
d: "M12 3.5 14 10l6.5 2-6.5 2-2 6.5L10 14l-6.5-2 6.5-2Z",
|
|
28
|
-
fill: "currentColor"
|
|
29
|
-
})
|
|
30
|
-
})
|
|
31
|
-
}), C = ({ actionLabel: e = "Ask agent", agentName: t, className: n, context: i, contextLabel: a = "Context", job: o, type: c, ...l }) => {
|
|
32
|
-
let u = r(e, "AgentContextButton actionLabel"), d = r(t, "AgentContextButton agentName"), f = r(i, "AgentContextButton context"), p = r(a, "AgentContextButton contextLabel"), m = o === void 0 ? void 0 : r(o.status, "AgentContextButton job status");
|
|
33
|
-
if (o?.count !== void 0 && (!Number.isInteger(o.count) || o.count < 0)) throw Error("AgentContextButton job count must be a non-negative integer");
|
|
34
|
-
return /* @__PURE__ */ y("button", {
|
|
35
|
-
...l,
|
|
36
|
-
className: s(x("root"), n),
|
|
37
|
-
"data-rly-agent-context-button": "",
|
|
38
|
-
type: c ?? "button",
|
|
39
|
-
children: [
|
|
40
|
-
/* @__PURE__ */ v(S, {}),
|
|
41
|
-
/* @__PURE__ */ y("span", {
|
|
42
|
-
className: x("copy"),
|
|
43
|
-
children: [
|
|
44
|
-
/* @__PURE__ */ v("span", {
|
|
45
|
-
className: x("action"),
|
|
46
|
-
children: u
|
|
47
|
-
}),
|
|
48
|
-
/* @__PURE__ */ v("span", {
|
|
49
|
-
className: x("agent"),
|
|
50
|
-
children: d
|
|
51
|
-
}),
|
|
52
|
-
/* @__PURE__ */ y("span", {
|
|
53
|
-
className: x("contextRow"),
|
|
54
|
-
children: [/* @__PURE__ */ v("span", {
|
|
55
|
-
className: x("contextLabel"),
|
|
56
|
-
children: p
|
|
57
|
-
}), /* @__PURE__ */ v("span", {
|
|
58
|
-
className: x("context"),
|
|
59
|
-
children: f
|
|
60
|
-
})]
|
|
61
|
-
})
|
|
62
|
-
]
|
|
63
|
-
}),
|
|
64
|
-
m === void 0 ? null : /* @__PURE__ */ y("span", {
|
|
65
|
-
className: x("job"),
|
|
66
|
-
"data-rly-agent-job": "",
|
|
67
|
-
children: [m, o?.count === void 0 ? null : /* @__PURE__ */ v("span", {
|
|
68
|
-
className: x("count"),
|
|
69
|
-
children: o.count
|
|
70
|
-
})]
|
|
71
|
-
})
|
|
72
|
-
]
|
|
73
|
-
});
|
|
74
|
-
}, w = {
|
|
75
|
-
drawer: "rly_AgentDrawer-module__drawer",
|
|
76
|
-
body: "rly_AgentDrawer-module__body",
|
|
77
|
-
slot: "rly_AgentDrawer-module__slot",
|
|
78
|
-
slotContent: "rly_AgentDrawer-module__slotContent",
|
|
79
|
-
identityCopy: "rly_AgentDrawer-module__identityCopy",
|
|
80
|
-
contextSlot: "rly_AgentDrawer-module__contextSlot",
|
|
81
|
-
identity: "rly_AgentDrawer-module__identity",
|
|
82
|
-
mark: "rly_AgentDrawer-module__mark",
|
|
83
|
-
glyph: "rly_AgentDrawer-module__glyph",
|
|
84
|
-
eyebrow: "rly_AgentDrawer-module__eyebrow",
|
|
85
|
-
slotTitle: "rly_AgentDrawer-module__slotTitle",
|
|
86
|
-
contextSummary: "rly_AgentDrawer-module__contextSummary"
|
|
87
|
-
}, T = (e) => a(w, e), E = () => /* @__PURE__ */ v("span", {
|
|
88
|
-
"aria-hidden": "true",
|
|
89
|
-
className: T("mark"),
|
|
90
|
-
children: /* @__PURE__ */ v("svg", {
|
|
91
|
-
className: T("glyph"),
|
|
92
|
-
focusable: "false",
|
|
93
|
-
viewBox: "0 0 24 24",
|
|
94
|
-
children: /* @__PURE__ */ v("path", {
|
|
95
|
-
d: "M12 3.5 14 10l6.5 2-6.5 2-2 6.5L10 14l-6.5-2 6.5-2Z",
|
|
96
|
-
fill: "currentColor"
|
|
97
|
-
})
|
|
98
|
-
})
|
|
99
|
-
}), D = ({ children: e, label: t, name: n }) => /* @__PURE__ */ y("section", {
|
|
100
|
-
className: T("slot"),
|
|
101
|
-
"data-rly-agent-drawer-slot": n,
|
|
102
|
-
children: [/* @__PURE__ */ v("h2", {
|
|
103
|
-
className: T("slotTitle"),
|
|
104
|
-
children: t
|
|
105
|
-
}), /* @__PURE__ */ v("div", {
|
|
106
|
-
className: T("slotContent"),
|
|
107
|
-
children: e
|
|
108
|
-
})]
|
|
109
|
-
}), ee = ({ agentName: e, capabilities: t, className: n, composer: i, context: a, contextSummary: o, evidence: c, onOpenChange: l, open: u, thread: d, title: f, ...p }) => {
|
|
110
|
-
let h = r(e, "AgentDrawer agentName"), _ = r(o, "AgentDrawer contextSummary"), b = r(f, "AgentDrawer title"), x = g(null);
|
|
111
|
-
return /* @__PURE__ */ v(m.Root, {
|
|
112
|
-
onOpenChange: l,
|
|
113
|
-
open: u,
|
|
114
|
-
children: /* @__PURE__ */ v(m.Content, {
|
|
115
|
-
className: s(T("drawer"), n),
|
|
116
|
-
description: `Context-aware session with ${h}`,
|
|
117
|
-
initialFocusRef: x,
|
|
118
|
-
title: b,
|
|
119
|
-
children: /* @__PURE__ */ y(m.Body, {
|
|
120
|
-
...p,
|
|
121
|
-
className: T("body"),
|
|
122
|
-
children: [
|
|
123
|
-
/* @__PURE__ */ y("section", {
|
|
124
|
-
className: s(T("slot"), T("contextSlot")),
|
|
125
|
-
"data-rly-agent-drawer-slot": "context",
|
|
126
|
-
ref: x,
|
|
127
|
-
tabIndex: -1,
|
|
128
|
-
children: [/* @__PURE__ */ y("div", {
|
|
129
|
-
className: T("identity"),
|
|
130
|
-
children: [/* @__PURE__ */ v(E, {}), /* @__PURE__ */ y("div", {
|
|
131
|
-
className: T("identityCopy"),
|
|
132
|
-
children: [/* @__PURE__ */ v("span", {
|
|
133
|
-
className: T("eyebrow"),
|
|
134
|
-
children: h
|
|
135
|
-
}), /* @__PURE__ */ v("h2", {
|
|
136
|
-
className: T("contextSummary"),
|
|
137
|
-
children: _
|
|
138
|
-
})]
|
|
139
|
-
})]
|
|
140
|
-
}), /* @__PURE__ */ v("div", {
|
|
141
|
-
className: T("slotContent"),
|
|
142
|
-
children: a
|
|
143
|
-
})]
|
|
144
|
-
}),
|
|
145
|
-
/* @__PURE__ */ v(D, {
|
|
146
|
-
label: "Evidence",
|
|
147
|
-
name: "evidence",
|
|
148
|
-
children: c
|
|
149
|
-
}),
|
|
150
|
-
/* @__PURE__ */ v(D, {
|
|
151
|
-
label: "Capabilities",
|
|
152
|
-
name: "capabilities",
|
|
153
|
-
children: t
|
|
154
|
-
}),
|
|
155
|
-
/* @__PURE__ */ y("section", {
|
|
156
|
-
"aria-live": "polite",
|
|
157
|
-
"aria-relevant": "additions text",
|
|
158
|
-
className: T("slot"),
|
|
159
|
-
"data-rly-agent-drawer-slot": "thread",
|
|
160
|
-
children: [/* @__PURE__ */ v("h2", {
|
|
161
|
-
className: T("slotTitle"),
|
|
162
|
-
children: "Thread"
|
|
163
|
-
}), /* @__PURE__ */ v("div", {
|
|
164
|
-
className: T("slotContent"),
|
|
165
|
-
children: d
|
|
166
|
-
})]
|
|
167
|
-
}),
|
|
168
|
-
/* @__PURE__ */ v(D, {
|
|
169
|
-
label: "Message",
|
|
170
|
-
name: "composer",
|
|
171
|
-
children: i
|
|
172
|
-
})
|
|
173
|
-
]
|
|
174
|
-
})
|
|
175
|
-
})
|
|
176
|
-
});
|
|
177
|
-
}, te = {
|
|
178
|
-
root: "rly_AgentJob-module__root",
|
|
179
|
-
header: "rly_AgentJob-module__header",
|
|
180
|
-
agentGlyph: "rly_AgentJob-module__agentGlyph",
|
|
181
|
-
titleBlock: "rly_AgentJob-module__titleBlock",
|
|
182
|
-
eyebrow: "rly_AgentJob-module__eyebrow",
|
|
183
|
-
progressLabel: "rly_AgentJob-module__progressLabel",
|
|
184
|
-
metadata: "rly_AgentJob-module__metadata",
|
|
185
|
-
progressBlock: "rly_AgentJob-module__progressBlock",
|
|
186
|
-
slot: "rly_AgentJob-module__slot",
|
|
187
|
-
footer: "rly_AgentJob-module__footer",
|
|
188
|
-
outcome: "rly_AgentJob-module__outcome"
|
|
189
|
-
}, O = (e) => a(te, e), ne = (e, t) => {
|
|
190
|
-
if (e == null || n(e)) throw Error(`${t} must contain renderable content`);
|
|
191
|
-
i(e) && r(e, t);
|
|
192
|
-
}, re = {
|
|
193
|
-
queued: {
|
|
194
|
-
label: "Queued",
|
|
195
|
-
tone: "neutral"
|
|
196
|
-
},
|
|
197
|
-
running: {
|
|
198
|
-
label: "Running",
|
|
199
|
-
tone: "progress"
|
|
200
|
-
},
|
|
201
|
-
"cancel-requested": {
|
|
202
|
-
label: "Cancel requested",
|
|
203
|
-
tone: "caution"
|
|
204
|
-
},
|
|
205
|
-
succeeded: {
|
|
206
|
-
label: "Succeeded",
|
|
207
|
-
tone: "positive"
|
|
208
|
-
},
|
|
209
|
-
failed: {
|
|
210
|
-
label: "Failed",
|
|
211
|
-
tone: "critical"
|
|
212
|
-
},
|
|
213
|
-
cancelled: {
|
|
214
|
-
label: "Cancelled",
|
|
215
|
-
tone: "neutral"
|
|
216
|
-
}
|
|
217
|
-
}, ie = (e) => {
|
|
218
|
-
if (e !== void 0 && (!Number.isFinite(e) || e < 0 || e > 100)) throw Error("AgentJob progress must be between 0 and 100");
|
|
219
|
-
}, ae = ({ cancelLabel: e = "Request cancellation", capability: t, className: n, context: i, evidence: a, heading: o, onCancel: u, outcome: d, progress: f, provider: p, revision: m, sandbox: g, state: _, ...b }) => {
|
|
220
|
-
let x = r(o, "AgentJob heading"), S = r(p, "AgentJob provider"), C = r(t, "AgentJob capability"), w = r(e, "AgentJob cancelLabel");
|
|
221
|
-
ne(i, "AgentJob context"), ne(a, "AgentJob evidence"), (_ === "succeeded" || _ === "failed" || _ === "cancelled") && ne(d, "AgentJob terminal outcome"), g !== void 0 && r(g, "AgentJob sandbox"), m !== void 0 && r(m, "AgentJob revision"), ie(f);
|
|
222
|
-
let T = re[_], E = _ === "queued" || _ === "running", D = `rly-agent-job-progress-${h()}`;
|
|
223
|
-
return /* @__PURE__ */ y("article", {
|
|
224
|
-
...b,
|
|
225
|
-
"aria-busy": _ === "queued" || _ === "running" || _ === "cancel-requested",
|
|
226
|
-
className: s(O("root"), n),
|
|
227
|
-
"data-rly-agent-job-state": _,
|
|
228
|
-
children: [
|
|
229
|
-
/* @__PURE__ */ y("header", {
|
|
230
|
-
className: O("header"),
|
|
231
|
-
children: [
|
|
232
|
-
/* @__PURE__ */ v("span", {
|
|
233
|
-
"aria-hidden": "true",
|
|
234
|
-
className: O("agentGlyph"),
|
|
235
|
-
children: "AI"
|
|
236
|
-
}),
|
|
237
|
-
/* @__PURE__ */ y("span", {
|
|
238
|
-
className: O("titleBlock"),
|
|
239
|
-
children: [/* @__PURE__ */ y("span", {
|
|
240
|
-
className: O("eyebrow"),
|
|
241
|
-
children: [
|
|
242
|
-
S,
|
|
243
|
-
" · ",
|
|
244
|
-
C
|
|
245
|
-
]
|
|
246
|
-
}), /* @__PURE__ */ v("h2", { children: x })]
|
|
247
|
-
}),
|
|
248
|
-
/* @__PURE__ */ v(l, {
|
|
249
|
-
label: T.label,
|
|
250
|
-
size: "compact",
|
|
251
|
-
tone: T.tone
|
|
252
|
-
})
|
|
253
|
-
]
|
|
254
|
-
}),
|
|
255
|
-
f === void 0 ? null : /* @__PURE__ */ y("div", {
|
|
256
|
-
className: O("progressBlock"),
|
|
257
|
-
children: [/* @__PURE__ */ y("span", {
|
|
258
|
-
className: O("progressLabel"),
|
|
259
|
-
id: D,
|
|
260
|
-
children: ["Progress ", /* @__PURE__ */ y("strong", { children: [Math.round(f), "%"] })]
|
|
261
|
-
}), /* @__PURE__ */ v("progress", {
|
|
262
|
-
"aria-labelledby": D,
|
|
263
|
-
max: 100,
|
|
264
|
-
value: f
|
|
265
|
-
})]
|
|
266
|
-
}),
|
|
267
|
-
/* @__PURE__ */ y("dl", {
|
|
268
|
-
className: O("metadata"),
|
|
269
|
-
children: [
|
|
270
|
-
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", { children: "Provider" }), /* @__PURE__ */ v("dd", { children: S })] }),
|
|
271
|
-
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", { children: "Capability" }), /* @__PURE__ */ v("dd", { children: C })] }),
|
|
272
|
-
g === void 0 ? null : /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", { children: "Sandbox" }), /* @__PURE__ */ v("dd", { children: /* @__PURE__ */ v("code", { children: g }) })] }),
|
|
273
|
-
m === void 0 ? null : /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", { children: "Revision" }), /* @__PURE__ */ v("dd", { children: /* @__PURE__ */ v("code", { children: m }) })] })
|
|
274
|
-
]
|
|
275
|
-
}),
|
|
276
|
-
/* @__PURE__ */ y("section", {
|
|
277
|
-
className: O("slot"),
|
|
278
|
-
"data-rly-agent-job-context": "",
|
|
279
|
-
children: [/* @__PURE__ */ v("h3", { children: "Exact context" }), i]
|
|
280
|
-
}),
|
|
281
|
-
/* @__PURE__ */ y("section", {
|
|
282
|
-
className: O("slot"),
|
|
283
|
-
"data-rly-agent-job-evidence": "",
|
|
284
|
-
children: [/* @__PURE__ */ v("h3", { children: "Evidence" }), a]
|
|
285
|
-
}),
|
|
286
|
-
d === void 0 ? null : /* @__PURE__ */ y("section", {
|
|
287
|
-
className: s(O("slot"), O("outcome")),
|
|
288
|
-
"data-rly-agent-job-outcome": _,
|
|
289
|
-
children: [/* @__PURE__ */ v("h3", { children: "Terminal outcome" }), d]
|
|
290
|
-
}),
|
|
291
|
-
E && u !== void 0 ? /* @__PURE__ */ v("footer", {
|
|
292
|
-
className: O("footer"),
|
|
293
|
-
children: /* @__PURE__ */ v(c, {
|
|
294
|
-
onClick: u,
|
|
295
|
-
size: "compact",
|
|
296
|
-
variant: "quiet",
|
|
297
|
-
children: w
|
|
298
|
-
})
|
|
299
|
-
}) : null
|
|
300
|
-
]
|
|
301
|
-
});
|
|
302
|
-
}, oe = {
|
|
303
|
-
root: "rly_AgentProposal-module__root",
|
|
304
|
-
header: "rly_AgentProposal-module__header",
|
|
305
|
-
agentIdentity: "rly_AgentProposal-module__agentIdentity",
|
|
306
|
-
agentText: "rly_AgentProposal-module__agentText",
|
|
307
|
-
eyebrow: "rly_AgentProposal-module__eyebrow",
|
|
308
|
-
heading: "rly_AgentProposal-module__heading",
|
|
309
|
-
agentRole: "rly_AgentProposal-module__agentRole",
|
|
310
|
-
proposalReference: "rly_AgentProposal-module__proposalReference",
|
|
311
|
-
context: "rly_AgentProposal-module__context",
|
|
312
|
-
boundary: "rly_AgentProposal-module__boundary",
|
|
313
|
-
evidence: "rly_AgentProposal-module__evidence",
|
|
314
|
-
outcome: "rly_AgentProposal-module__outcome",
|
|
315
|
-
state: "rly_AgentProposal-module__state",
|
|
316
|
-
facts: "rly_AgentProposal-module__facts"
|
|
317
|
-
}, k = (e) => a(oe, e), se = (e) => {
|
|
318
|
-
r(e.id, "AgentProposal agent id"), r(e.name, "AgentProposal agent name"), r(e.role, "AgentProposal agent role"), r(e.avatarFallback, "AgentProposal agent avatarFallback"), e.avatarSrc !== void 0 && r(e.avatarSrc, "AgentProposal agent avatarSrc");
|
|
319
|
-
}, ce = (e) => {
|
|
320
|
-
if (r(e.id, "AgentProposal id"), se(e.agent), r(e.capability, "AgentProposal capability"), r(e.context, "AgentProposal context"), r(e.expectedRevision, "AgentProposal expectedRevision"), r(e.impact, "AgentProposal impact"), r(e.target, "AgentProposal target"), e.evidence.length === 0) throw Error("AgentProposal evidence must contain at least one reference");
|
|
321
|
-
let t = /* @__PURE__ */ new Set();
|
|
322
|
-
for (let n of e.evidence) {
|
|
323
|
-
let e = r(n.id, "AgentProposal evidence id");
|
|
324
|
-
if (t.has(e)) throw Error(`AgentProposal evidence ids must be unique: ${e}`);
|
|
325
|
-
t.add(e), r(n.label, `AgentProposal evidence label for ${e}`), r(n.reference, `AgentProposal evidence reference for ${e}`);
|
|
326
|
-
}
|
|
327
|
-
return e;
|
|
328
|
-
}, le = ({ className: e, outcome: t, proposal: n, state: r, ...i }) => {
|
|
329
|
-
let a = ce(n), o = `rly-agent-proposal-${h()}`, c = `rly-agent-proposal-reference-${h()}`;
|
|
330
|
-
return /* @__PURE__ */ y("section", {
|
|
331
|
-
...i,
|
|
332
|
-
"aria-labelledby": `${o} ${c}`,
|
|
333
|
-
className: s(k("root"), e),
|
|
334
|
-
"data-rly-agent-proposal-id": a.id,
|
|
335
|
-
children: [
|
|
336
|
-
/* @__PURE__ */ y("header", {
|
|
337
|
-
className: k("header"),
|
|
338
|
-
children: [/* @__PURE__ */ y("div", {
|
|
339
|
-
className: k("agentIdentity"),
|
|
340
|
-
children: [/* @__PURE__ */ v(p, {
|
|
341
|
-
decorative: !0,
|
|
342
|
-
fallback: a.agent.avatarFallback,
|
|
343
|
-
form: "rounded-square",
|
|
344
|
-
...a.agent.avatarSrc === void 0 ? {} : { src: a.agent.avatarSrc }
|
|
345
|
-
}), /* @__PURE__ */ y("div", {
|
|
346
|
-
className: k("agentText"),
|
|
347
|
-
children: [
|
|
348
|
-
/* @__PURE__ */ v("p", {
|
|
349
|
-
className: k("eyebrow"),
|
|
350
|
-
children: "Agent proposal"
|
|
351
|
-
}),
|
|
352
|
-
/* @__PURE__ */ v("h2", {
|
|
353
|
-
className: k("heading"),
|
|
354
|
-
id: o,
|
|
355
|
-
children: a.agent.name
|
|
356
|
-
}),
|
|
357
|
-
/* @__PURE__ */ v("p", {
|
|
358
|
-
className: k("agentRole"),
|
|
359
|
-
children: a.agent.role
|
|
360
|
-
}),
|
|
361
|
-
/* @__PURE__ */ v("code", {
|
|
362
|
-
className: k("proposalReference"),
|
|
363
|
-
id: c,
|
|
364
|
-
children: a.id
|
|
365
|
-
})
|
|
366
|
-
]
|
|
367
|
-
})]
|
|
368
|
-
}), /* @__PURE__ */ v("div", {
|
|
369
|
-
className: k("state"),
|
|
370
|
-
"data-rly-agent-proposal-slot": "state",
|
|
371
|
-
children: r
|
|
372
|
-
})]
|
|
373
|
-
}),
|
|
374
|
-
/* @__PURE__ */ v("p", {
|
|
375
|
-
className: k("boundary"),
|
|
376
|
-
children: "This is an agent proposal. It is not human authorization."
|
|
377
|
-
}),
|
|
378
|
-
/* @__PURE__ */ y("p", {
|
|
379
|
-
className: k("context"),
|
|
380
|
-
children: [/* @__PURE__ */ v("span", { children: "Context" }), a.context]
|
|
381
|
-
}),
|
|
382
|
-
/* @__PURE__ */ y("dl", {
|
|
383
|
-
className: k("facts"),
|
|
384
|
-
children: [
|
|
385
|
-
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", { children: "Capability" }), /* @__PURE__ */ v("dd", { children: a.capability })] }),
|
|
386
|
-
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", { children: "Target" }), /* @__PURE__ */ v("dd", { children: a.target })] }),
|
|
387
|
-
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", { children: "Expected revision" }), /* @__PURE__ */ v("dd", { children: a.expectedRevision })] }),
|
|
388
|
-
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", { children: "Impact" }), /* @__PURE__ */ v("dd", { children: a.impact })] })
|
|
389
|
-
]
|
|
390
|
-
}),
|
|
391
|
-
/* @__PURE__ */ y("div", {
|
|
392
|
-
className: k("evidence"),
|
|
393
|
-
"data-rly-agent-proposal-evidence": "",
|
|
394
|
-
children: [/* @__PURE__ */ v("h3", { children: "Evidence" }), /* @__PURE__ */ v("ul", { children: a.evidence.map((e) => /* @__PURE__ */ y("li", { children: [/* @__PURE__ */ v("span", { children: e.label }), /* @__PURE__ */ v("code", { children: e.reference })] }, e.id)) })]
|
|
395
|
-
}),
|
|
396
|
-
/* @__PURE__ */ y("div", {
|
|
397
|
-
className: k("outcome"),
|
|
398
|
-
"data-rly-agent-proposal-slot": "outcome",
|
|
399
|
-
children: [/* @__PURE__ */ v("h3", { children: "Outcome" }), t]
|
|
400
|
-
})
|
|
401
|
-
]
|
|
402
|
-
});
|
|
403
|
-
}, ue = {
|
|
404
|
-
root: "rly_AgentThread-module__root",
|
|
405
|
-
header: "rly_AgentThread-module__header",
|
|
406
|
-
messageHead: "rly_AgentThread-module__messageHead",
|
|
407
|
-
actor: "rly_AgentThread-module__actor",
|
|
408
|
-
actions: "rly_AgentThread-module__actions",
|
|
409
|
-
agentGlyph: "rly_AgentThread-module__agentGlyph",
|
|
410
|
-
avatar: "rly_AgentThread-module__avatar",
|
|
411
|
-
context: "rly_AgentThread-module__context",
|
|
412
|
-
composer: "rly_AgentThread-module__composer",
|
|
413
|
-
conceptLabel: "rly_AgentThread-module__conceptLabel",
|
|
414
|
-
messages: "rly_AgentThread-module__messages",
|
|
415
|
-
message: "rly_AgentThread-module__message",
|
|
416
|
-
agent: "rly_AgentThread-module__agent",
|
|
417
|
-
human: "rly_AgentThread-module__human",
|
|
418
|
-
system: "rly_AgentThread-module__system",
|
|
419
|
-
actorText: "rly_AgentThread-module__actorText",
|
|
420
|
-
empty: "rly_AgentThread-module__empty",
|
|
421
|
-
content: "rly_AgentThread-module__content",
|
|
422
|
-
evidence: "rly_AgentThread-module__evidence",
|
|
423
|
-
visuallyHidden: "rly_AgentThread-module__visuallyHidden"
|
|
424
|
-
}, A = (e) => a(ue, e), de = (e, t) => {
|
|
425
|
-
if (e == null || n(e)) throw Error(`${t} must contain renderable content`);
|
|
426
|
-
i(e) && r(e, t);
|
|
427
|
-
}, fe = (e) => {
|
|
428
|
-
let t = e.trim().split(/\s+/u), n = Array.from(t[0] ?? "")[0] ?? "", i = Array.from(t[t.length - 1] ?? "")[0] ?? "";
|
|
429
|
-
return r(`${n}${t.length > 1 ? i : ""}`, "AgentThread actor fallback");
|
|
430
|
-
}, pe = (e) => {
|
|
431
|
-
if (e.kind === "human") {
|
|
432
|
-
r(e.person.id, "AgentThread human id"), r(e.person.name, "AgentThread human name"), r(e.person.role, "AgentThread human role"), e.person.avatarFallback !== void 0 && r(e.person.avatarFallback, "AgentThread human avatarFallback"), e.person.avatarSrc !== void 0 && r(e.person.avatarSrc, "AgentThread human avatarSrc");
|
|
433
|
-
return;
|
|
434
|
-
}
|
|
435
|
-
r(e.id, `AgentThread ${e.kind} id`), r(e.name, `AgentThread ${e.kind} name`), e.kind === "agent" && (r(e.role, "AgentThread agent role"), e.avatarFallback !== void 0 && r(e.avatarFallback, "AgentThread agent avatarFallback"));
|
|
436
|
-
}, me = (e) => {
|
|
437
|
-
let t = e.kind === "human" ? e.person.name : e.name, n = e.kind === "human" ? e.person.role : e.kind === "agent" ? e.role : "System event", r = e.kind === "human" ? e.person.avatarFallback ?? fe(t) : e.kind === "agent" ? e.avatarFallback ?? fe(t) : "·", i = e.kind === "human" ? e.person.avatarSrc : void 0;
|
|
438
|
-
return /* @__PURE__ */ y("div", {
|
|
439
|
-
className: s(A("actor"), A(e.kind)),
|
|
440
|
-
"data-rly-agent-thread-actor": e.kind,
|
|
441
|
-
children: [/* @__PURE__ */ v(p, {
|
|
442
|
-
className: A("avatar"),
|
|
443
|
-
"data-rly-agent-thread-avatar-form": e.kind === "human" ? "circle" : "rounded-square",
|
|
444
|
-
decorative: !0,
|
|
445
|
-
fallback: r,
|
|
446
|
-
form: e.kind === "human" ? "circle" : "rounded-square",
|
|
447
|
-
size: "default",
|
|
448
|
-
...i === void 0 ? {} : { src: i }
|
|
449
|
-
}), /* @__PURE__ */ y("span", {
|
|
450
|
-
className: A("actorText"),
|
|
451
|
-
children: [/* @__PURE__ */ v("strong", { children: t }), /* @__PURE__ */ v("span", { children: n })]
|
|
452
|
-
})]
|
|
453
|
-
});
|
|
454
|
-
}, he = ({ announcement: e, className: t, composer: n, context: i, emptyLabel: a = "No messages yet.", heading: o, messages: c, ...l }) => {
|
|
455
|
-
let u = r(o, "AgentThread heading"), d = r(a, "AgentThread emptyLabel");
|
|
456
|
-
de(i, "AgentThread context"), de(n, "AgentThread composer"), e !== void 0 && r(e, "AgentThread announcement");
|
|
457
|
-
let f = /* @__PURE__ */ new Set();
|
|
458
|
-
for (let e of c) {
|
|
459
|
-
let t = r(e.id, "AgentThread message id");
|
|
460
|
-
if (f.has(t)) throw Error(`AgentThread message ids must be unique: ${t}`);
|
|
461
|
-
f.add(t), pe(e.actor), de(e.content, `AgentThread message content for ${t}`), r(e.dateTime, `AgentThread message dateTime for ${t}`), r(e.time, `AgentThread message time for ${t}`);
|
|
462
|
-
}
|
|
463
|
-
return /* @__PURE__ */ y("section", {
|
|
464
|
-
...l,
|
|
465
|
-
className: s(A("root"), t),
|
|
466
|
-
"data-rly-agent-thread": "",
|
|
467
|
-
children: [
|
|
468
|
-
/* @__PURE__ */ y("header", {
|
|
469
|
-
className: A("header"),
|
|
470
|
-
children: [/* @__PURE__ */ v("span", {
|
|
471
|
-
"aria-hidden": "true",
|
|
472
|
-
className: A("agentGlyph"),
|
|
473
|
-
children: "AI"
|
|
474
|
-
}), /* @__PURE__ */ v("h2", { children: u })]
|
|
475
|
-
}),
|
|
476
|
-
/* @__PURE__ */ y("div", {
|
|
477
|
-
className: A("context"),
|
|
478
|
-
"data-rly-agent-thread-context": "",
|
|
479
|
-
children: [/* @__PURE__ */ v("span", {
|
|
480
|
-
className: A("conceptLabel"),
|
|
481
|
-
children: "Exact context"
|
|
482
|
-
}), i]
|
|
483
|
-
}),
|
|
484
|
-
c.length === 0 ? /* @__PURE__ */ v("p", {
|
|
485
|
-
className: A("empty"),
|
|
486
|
-
children: d
|
|
487
|
-
}) : /* @__PURE__ */ v("ol", {
|
|
488
|
-
"aria-label": `${u} messages`,
|
|
489
|
-
className: A("messages"),
|
|
490
|
-
children: c.map((e) => /* @__PURE__ */ y("li", {
|
|
491
|
-
className: A("message"),
|
|
492
|
-
"data-rly-agent-thread-message": e.id,
|
|
493
|
-
children: [
|
|
494
|
-
/* @__PURE__ */ y("div", {
|
|
495
|
-
className: A("messageHead"),
|
|
496
|
-
children: [me(e.actor), /* @__PURE__ */ v("time", {
|
|
497
|
-
dateTime: e.dateTime,
|
|
498
|
-
children: e.time
|
|
499
|
-
})]
|
|
500
|
-
}),
|
|
501
|
-
/* @__PURE__ */ v("div", {
|
|
502
|
-
className: A("content"),
|
|
503
|
-
children: e.content
|
|
504
|
-
}),
|
|
505
|
-
e.evidence === void 0 ? null : /* @__PURE__ */ v("div", {
|
|
506
|
-
className: A("evidence"),
|
|
507
|
-
"data-rly-agent-thread-evidence": "",
|
|
508
|
-
children: e.evidence
|
|
509
|
-
}),
|
|
510
|
-
e.actions === void 0 ? null : /* @__PURE__ */ v("div", {
|
|
511
|
-
className: A("actions"),
|
|
512
|
-
"data-rly-agent-thread-actions": "",
|
|
513
|
-
children: e.actions
|
|
514
|
-
})
|
|
515
|
-
]
|
|
516
|
-
}, e.id))
|
|
517
|
-
}),
|
|
518
|
-
/* @__PURE__ */ v("p", {
|
|
519
|
-
"aria-atomic": "true",
|
|
520
|
-
"aria-live": "polite",
|
|
521
|
-
className: A("visuallyHidden"),
|
|
522
|
-
children: e
|
|
523
|
-
}),
|
|
524
|
-
/* @__PURE__ */ v("div", {
|
|
525
|
-
className: A("composer"),
|
|
526
|
-
"data-rly-agent-thread-composer": "",
|
|
527
|
-
children: n
|
|
528
|
-
})
|
|
529
|
-
]
|
|
530
|
-
});
|
|
531
|
-
}, ge = {
|
|
532
|
-
root: "rly_Person-module__root",
|
|
533
|
-
compact: "rly_Person-module__compact",
|
|
534
|
-
defaultSize: "rly_Person-module__defaultSize",
|
|
535
|
-
identity: "rly_Person-module__identity",
|
|
536
|
-
name: "rly_Person-module__name",
|
|
537
|
-
role: "rly_Person-module__role"
|
|
538
|
-
}, j = (e) => a(ge, e), _e = o({ size: {
|
|
539
|
-
compact: {
|
|
540
|
-
className: j("compact"),
|
|
541
|
-
purpose: "Dense identity row with complete attribution",
|
|
542
|
-
tokens: ["space-24", "type-meta"]
|
|
543
|
-
},
|
|
544
|
-
default: {
|
|
545
|
-
className: j("defaultSize"),
|
|
546
|
-
purpose: "Standard identity row with complete attribution",
|
|
547
|
-
tokens: [
|
|
548
|
-
"space-32",
|
|
549
|
-
"type-label",
|
|
550
|
-
"type-meta"
|
|
551
|
-
]
|
|
552
|
-
}
|
|
553
|
-
} }), ve = o({ size: "default" }), ye = (e) => {
|
|
554
|
-
let t = e.trim().split(/\s+/u), n = t[0] ?? "", i = t[t.length - 1] ?? n, a = Array.from(n), o = a[0] ?? "", s = t.length > 1 ? Array.from(i)[0] ?? "" : a[1] ?? "";
|
|
555
|
-
return r(`${o}${s}`, "Person avatar fallback");
|
|
556
|
-
}, be = (e) => (r(e.id, "Person id"), r(e.name, "Person name"), r(e.role, "Person role"), e.avatarFallback !== void 0 && r(e.avatarFallback, "Person avatarFallback"), e.avatarSrc !== void 0 && r(e.avatarSrc, "Person avatarSrc"), e), M = ({ className: e, person: t, size: n = "default", ...r }) => {
|
|
557
|
-
let i = be(t), a = i.avatarFallback ?? ye(i.name);
|
|
558
|
-
return /* @__PURE__ */ y("div", {
|
|
559
|
-
...r,
|
|
560
|
-
className: s(j("root"), _e.size[n].className, e),
|
|
561
|
-
"data-rly-person-size": n,
|
|
562
|
-
children: [/* @__PURE__ */ v(p, {
|
|
563
|
-
decorative: !0,
|
|
564
|
-
fallback: a,
|
|
565
|
-
size: n === "compact" ? "small" : "default",
|
|
566
|
-
...i.avatarSrc === void 0 ? {} : { src: i.avatarSrc }
|
|
567
|
-
}), /* @__PURE__ */ y("span", {
|
|
568
|
-
className: j("identity"),
|
|
569
|
-
children: [/* @__PURE__ */ v("span", {
|
|
570
|
-
className: j("name"),
|
|
571
|
-
children: i.name
|
|
572
|
-
}), /* @__PURE__ */ v("span", {
|
|
573
|
-
className: j("role"),
|
|
574
|
-
children: i.role
|
|
575
|
-
})]
|
|
576
|
-
})]
|
|
577
|
-
});
|
|
578
|
-
}, xe = {
|
|
579
|
-
root: "rly_PeopleStrip-module__root",
|
|
580
|
-
compact: "rly_PeopleStrip-module__compact",
|
|
581
|
-
defaultSize: "rly_PeopleStrip-module__defaultSize",
|
|
582
|
-
personItem: "rly_PeopleStrip-module__personItem",
|
|
583
|
-
controlItem: "rly_PeopleStrip-module__controlItem",
|
|
584
|
-
overflow: "rly_PeopleStrip-module__overflow"
|
|
585
|
-
}, N = (e) => a(xe, e), Se = o({ size: {
|
|
586
|
-
compact: {
|
|
587
|
-
className: N("compact"),
|
|
588
|
-
purpose: "Dense attributed people list for narrow surfaces",
|
|
589
|
-
tokens: ["space-8", "space-40"]
|
|
590
|
-
},
|
|
591
|
-
default: {
|
|
592
|
-
className: N("defaultSize"),
|
|
593
|
-
purpose: "Standard attributed people list",
|
|
594
|
-
tokens: ["space-12", "space-40"]
|
|
595
|
-
}
|
|
596
|
-
} }), Ce = o({ size: "default" }), we = (e) => {
|
|
597
|
-
if (!Number.isInteger(e) || e < 1) throw Error("PeopleStrip limit must be a positive integer");
|
|
598
|
-
return e;
|
|
599
|
-
}, Te = (e) => {
|
|
600
|
-
let t = /* @__PURE__ */ new Set();
|
|
601
|
-
for (let n of e) {
|
|
602
|
-
let e = r(n.id, "PeopleStrip person id");
|
|
603
|
-
if (r(n.name, `PeopleStrip name for ${e}`), r(n.role, `PeopleStrip role for ${e}`), t.has(e)) throw Error(`PeopleStrip person ids must be unique: ${e}`);
|
|
604
|
-
t.add(e);
|
|
605
|
-
}
|
|
606
|
-
}, Ee = ({ "aria-label": e, className: t, expanded: n, limit: i = 3, onExpandedChange: a, people: o, size: c = "default", ...l }) => {
|
|
607
|
-
let u = r(e, "PeopleStrip aria-label"), d = we(i);
|
|
608
|
-
Te(o);
|
|
609
|
-
let f = Math.max(o.length - d, 0), p = n ? o : o.slice(0, d);
|
|
610
|
-
return /* @__PURE__ */ y("ul", {
|
|
611
|
-
...l,
|
|
612
|
-
"aria-label": u,
|
|
613
|
-
className: s(N("root"), Se.size[c].className, t),
|
|
614
|
-
"data-rly-people-strip-size": c,
|
|
615
|
-
children: [p.map((e) => /* @__PURE__ */ v("li", {
|
|
616
|
-
className: N("personItem"),
|
|
617
|
-
children: /* @__PURE__ */ v(M, {
|
|
618
|
-
person: e,
|
|
619
|
-
size: c
|
|
620
|
-
})
|
|
621
|
-
}, e.id)), f === 0 ? null : /* @__PURE__ */ v("li", {
|
|
622
|
-
className: N("controlItem"),
|
|
623
|
-
children: /* @__PURE__ */ v("button", {
|
|
624
|
-
"aria-expanded": n,
|
|
625
|
-
"aria-label": n ? "Show fewer people" : `Show ${f} more people`,
|
|
626
|
-
className: N("overflow"),
|
|
627
|
-
onClick: () => a(!n),
|
|
628
|
-
type: "button",
|
|
629
|
-
children: n ? "Show fewer" : `+${f} people`
|
|
630
|
-
})
|
|
631
|
-
})]
|
|
632
|
-
});
|
|
633
|
-
}, De = {
|
|
634
|
-
root: "rly_CollaboratorGroup-module__root",
|
|
635
|
-
compact: "rly_CollaboratorGroup-module__compact",
|
|
636
|
-
defaultSize: "rly_CollaboratorGroup-module__defaultSize",
|
|
637
|
-
heading: "rly_CollaboratorGroup-module__heading",
|
|
638
|
-
lanes: "rly_CollaboratorGroup-module__lanes",
|
|
639
|
-
lane: "rly_CollaboratorGroup-module__lane",
|
|
640
|
-
laneHeading: "rly_CollaboratorGroup-module__laneHeading",
|
|
641
|
-
empty: "rly_CollaboratorGroup-module__empty"
|
|
642
|
-
}, P = (e) => a(De, e), Oe = o({ size: {
|
|
643
|
-
compact: {
|
|
644
|
-
className: P("compact"),
|
|
645
|
-
purpose: "Narrow entity attribution with explicit role lanes",
|
|
646
|
-
tokens: ["space-12", "type-label"]
|
|
647
|
-
},
|
|
648
|
-
default: {
|
|
649
|
-
className: P("defaultSize"),
|
|
650
|
-
purpose: "Standard entity attribution with explicit role lanes",
|
|
651
|
-
tokens: ["space-20", "type-card-title"]
|
|
652
|
-
}
|
|
653
|
-
} }), ke = o({ size: "default" }), Ae = ({ approvers: e = [], authors: t = [], className: n, emptyLabel: i = "No collaborators assigned.", expandedCategories: a, heading: o, limit: c = 3, onCategoryExpandedChange: l, operators: u = [], owners: d = [], reviewers: f = [], size: p = "default", ...m }) => {
|
|
654
|
-
let g = r(o, "CollaboratorGroup heading"), _ = r(i, "CollaboratorGroup emptyLabel"), b = `rly-collaborators-${h()}`, x = new Set(a), S = [
|
|
655
|
-
{
|
|
656
|
-
category: "authors",
|
|
657
|
-
label: "Authors",
|
|
658
|
-
people: t
|
|
659
|
-
},
|
|
660
|
-
{
|
|
661
|
-
category: "owners",
|
|
662
|
-
label: "Owners",
|
|
663
|
-
people: d
|
|
664
|
-
},
|
|
665
|
-
{
|
|
666
|
-
category: "reviewers",
|
|
667
|
-
label: "Reviewers",
|
|
668
|
-
people: f
|
|
669
|
-
},
|
|
670
|
-
{
|
|
671
|
-
category: "operators",
|
|
672
|
-
label: "Operators",
|
|
673
|
-
people: u
|
|
674
|
-
},
|
|
675
|
-
{
|
|
676
|
-
category: "approvers",
|
|
677
|
-
label: "Approvers",
|
|
678
|
-
people: e
|
|
679
|
-
}
|
|
680
|
-
].filter((e) => e.people.length > 0);
|
|
681
|
-
return /* @__PURE__ */ y("section", {
|
|
682
|
-
...m,
|
|
683
|
-
"aria-labelledby": b,
|
|
684
|
-
className: s(P("root"), Oe.size[p].className, n),
|
|
685
|
-
"data-rly-collaborator-group-size": p,
|
|
686
|
-
children: [/* @__PURE__ */ v("h2", {
|
|
687
|
-
className: P("heading"),
|
|
688
|
-
id: b,
|
|
689
|
-
children: g
|
|
690
|
-
}), S.length === 0 ? /* @__PURE__ */ v("p", {
|
|
691
|
-
className: P("empty"),
|
|
692
|
-
children: _
|
|
693
|
-
}) : /* @__PURE__ */ v("div", {
|
|
694
|
-
className: P("lanes"),
|
|
695
|
-
children: S.map((e) => /* @__PURE__ */ y("section", {
|
|
696
|
-
className: P("lane"),
|
|
697
|
-
children: [/* @__PURE__ */ v("h3", {
|
|
698
|
-
className: P("laneHeading"),
|
|
699
|
-
children: e.label
|
|
700
|
-
}), /* @__PURE__ */ v(Ee, {
|
|
701
|
-
"aria-label": `${g}: ${e.label}`,
|
|
702
|
-
expanded: x.has(e.category),
|
|
703
|
-
limit: c,
|
|
704
|
-
onExpandedChange: (t) => l(e.category, t),
|
|
705
|
-
people: e.people,
|
|
706
|
-
size: p
|
|
707
|
-
})]
|
|
708
|
-
}, e.category))
|
|
709
|
-
})]
|
|
710
|
-
});
|
|
711
|
-
}, je = {
|
|
712
|
-
root: "rly_FreshnessStamp-module__root",
|
|
713
|
-
stateWord: "rly_FreshnessStamp-module__stateWord",
|
|
714
|
-
separator: "rly_FreshnessStamp-module__separator",
|
|
715
|
-
time: "rly_FreshnessStamp-module__time",
|
|
716
|
-
compact: "rly_FreshnessStamp-module__compact",
|
|
717
|
-
defaultSize: "rly_FreshnessStamp-module__defaultSize",
|
|
718
|
-
current: "rly_FreshnessStamp-module__current",
|
|
719
|
-
cached: "rly_FreshnessStamp-module__cached",
|
|
720
|
-
missing: "rly_FreshnessStamp-module__missing",
|
|
721
|
-
stale: "rly_FreshnessStamp-module__stale",
|
|
722
|
-
unavailable: "rly_FreshnessStamp-module__unavailable"
|
|
723
|
-
}, F = (e) => a(je, e), Me = o({
|
|
724
|
-
state: {
|
|
725
|
-
current: {
|
|
726
|
-
className: F("current"),
|
|
727
|
-
purpose: "Current source observation",
|
|
728
|
-
tokens: ["color-success-ink", "color-success-tint"]
|
|
729
|
-
},
|
|
730
|
-
cached: {
|
|
731
|
-
className: F("cached"),
|
|
732
|
-
purpose: "Valid cached source observation",
|
|
733
|
-
tokens: ["color-text-2", "color-surface-2"]
|
|
734
|
-
},
|
|
735
|
-
stale: {
|
|
736
|
-
className: F("stale"),
|
|
737
|
-
purpose: "Source observation beyond its supplied freshness threshold",
|
|
738
|
-
tokens: ["color-held-ink", "color-held-tint"]
|
|
739
|
-
},
|
|
740
|
-
missing: {
|
|
741
|
-
className: F("missing"),
|
|
742
|
-
purpose: "Provider authoritatively reported no object",
|
|
743
|
-
tokens: ["color-text-2", "color-surface-2"]
|
|
744
|
-
},
|
|
745
|
-
unavailable: {
|
|
746
|
-
className: F("unavailable"),
|
|
747
|
-
purpose: "No valid source observation is available",
|
|
748
|
-
tokens: ["color-blocked-ink", "color-blocked-tint"]
|
|
749
|
-
}
|
|
750
|
-
},
|
|
751
|
-
size: {
|
|
752
|
-
compact: {
|
|
753
|
-
className: F("compact"),
|
|
754
|
-
purpose: "Dense freshness metadata",
|
|
755
|
-
tokens: ["type-meta"]
|
|
756
|
-
},
|
|
757
|
-
default: {
|
|
758
|
-
className: F("defaultSize"),
|
|
759
|
-
purpose: "Standard freshness metadata",
|
|
760
|
-
tokens: ["type-label", "type-meta"]
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
}), Ne = o({ size: "default" }), Pe = {
|
|
764
|
-
current: "Current",
|
|
765
|
-
cached: "Cached",
|
|
766
|
-
stale: "Stale",
|
|
767
|
-
missing: "Missing",
|
|
768
|
-
unavailable: "Unavailable"
|
|
769
|
-
}, Fe = {
|
|
770
|
-
current: "check",
|
|
771
|
-
cached: "clock",
|
|
772
|
-
stale: "clock",
|
|
773
|
-
missing: "minus",
|
|
774
|
-
unavailable: "alert"
|
|
775
|
-
}, I = ({ className: t, dateTime: n, size: i = "default", state: a, time: o, ...c }) => {
|
|
776
|
-
let l = o === void 0 ? void 0 : r(o, "FreshnessStamp time"), u = n === void 0 ? void 0 : r(n, "FreshnessStamp dateTime");
|
|
777
|
-
return /* @__PURE__ */ y("span", {
|
|
778
|
-
...c,
|
|
779
|
-
className: s(F("root"), Me.state[a].className, Me.size[i].className, t),
|
|
780
|
-
"data-rly-freshness-state": a,
|
|
781
|
-
children: [/* @__PURE__ */ y("span", {
|
|
782
|
-
className: F("stateWord"),
|
|
783
|
-
children: [/* @__PURE__ */ v(e, {
|
|
784
|
-
decorative: !0,
|
|
785
|
-
name: Fe[a],
|
|
786
|
-
size: "small"
|
|
787
|
-
}), /* @__PURE__ */ v("span", { children: Pe[a] })]
|
|
788
|
-
}), l === void 0 || u === void 0 ? null : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("span", {
|
|
789
|
-
"aria-hidden": "true",
|
|
790
|
-
className: F("separator"),
|
|
791
|
-
children: "·"
|
|
792
|
-
}), /* @__PURE__ */ v("time", {
|
|
793
|
-
className: F("time"),
|
|
794
|
-
dateTime: u,
|
|
795
|
-
children: l
|
|
796
|
-
})] })]
|
|
797
|
-
});
|
|
798
|
-
}, Ie = {
|
|
799
|
-
root: "rly_ServiceMark-module__root",
|
|
800
|
-
rail: "rly_ServiceMark-module__rail",
|
|
801
|
-
glyph: "rly_ServiceMark-module__glyph",
|
|
802
|
-
name: "rly_ServiceMark-module__name",
|
|
803
|
-
compact: "rly_ServiceMark-module__compact",
|
|
804
|
-
defaultSize: "rly_ServiceMark-module__defaultSize",
|
|
805
|
-
codecommit: "rly_ServiceMark-module__codecommit",
|
|
806
|
-
codepipeline: "rly_ServiceMark-module__codepipeline",
|
|
807
|
-
jira: "rly_ServiceMark-module__jira",
|
|
808
|
-
confluence: "rly_ServiceMark-module__confluence",
|
|
809
|
-
clockify: "rly_ServiceMark-module__clockify"
|
|
810
|
-
}, L = (e) => a(Ie, e), R = o({
|
|
811
|
-
service: {
|
|
812
|
-
codecommit: {
|
|
813
|
-
className: L("codecommit"),
|
|
814
|
-
purpose: "CodeCommit provenance",
|
|
815
|
-
tokens: ["color-service-codecommit"]
|
|
816
|
-
},
|
|
817
|
-
codepipeline: {
|
|
818
|
-
className: L("codepipeline"),
|
|
819
|
-
purpose: "CodePipeline provenance",
|
|
820
|
-
tokens: ["color-service-codepipeline"]
|
|
821
|
-
},
|
|
822
|
-
jira: {
|
|
823
|
-
className: L("jira"),
|
|
824
|
-
purpose: "Jira provenance",
|
|
825
|
-
tokens: ["color-service-jira"]
|
|
826
|
-
},
|
|
827
|
-
confluence: {
|
|
828
|
-
className: L("confluence"),
|
|
829
|
-
purpose: "Confluence provenance",
|
|
830
|
-
tokens: ["color-service-confluence"]
|
|
831
|
-
},
|
|
832
|
-
clockify: {
|
|
833
|
-
className: L("clockify"),
|
|
834
|
-
purpose: "Clockify provenance",
|
|
835
|
-
tokens: ["color-service-clockify"]
|
|
836
|
-
}
|
|
837
|
-
},
|
|
838
|
-
size: {
|
|
839
|
-
compact: {
|
|
840
|
-
className: L("compact"),
|
|
841
|
-
purpose: "Dense provenance metadata",
|
|
842
|
-
tokens: ["space-24", "type-meta"]
|
|
843
|
-
},
|
|
844
|
-
default: {
|
|
845
|
-
className: L("defaultSize"),
|
|
846
|
-
purpose: "Standard provenance identity",
|
|
847
|
-
tokens: ["space-32", "type-label"]
|
|
848
|
-
}
|
|
849
|
-
}
|
|
850
|
-
}), Le = o({ size: "default" }), Re = {
|
|
851
|
-
codecommit: "CodeCommit",
|
|
852
|
-
codepipeline: "CodePipeline",
|
|
853
|
-
jira: "Jira",
|
|
854
|
-
confluence: "Confluence",
|
|
855
|
-
clockify: "Clockify"
|
|
856
|
-
}, ze = {
|
|
857
|
-
codecommit: () => /* @__PURE__ */ y("svg", {
|
|
858
|
-
"aria-hidden": "true",
|
|
859
|
-
className: L("glyph"),
|
|
860
|
-
focusable: "false",
|
|
861
|
-
viewBox: "0 0 24 24",
|
|
862
|
-
children: [
|
|
863
|
-
/* @__PURE__ */ v("path", {
|
|
864
|
-
d: "M6 5.5h7.5a3 3 0 0 1 3 3v7",
|
|
865
|
-
fill: "none",
|
|
866
|
-
stroke: "currentColor",
|
|
867
|
-
strokeLinecap: "round",
|
|
868
|
-
strokeWidth: "1.8"
|
|
869
|
-
}),
|
|
870
|
-
/* @__PURE__ */ v("circle", {
|
|
871
|
-
cx: "6",
|
|
872
|
-
cy: "5.5",
|
|
873
|
-
fill: "currentColor",
|
|
874
|
-
r: "2"
|
|
875
|
-
}),
|
|
876
|
-
/* @__PURE__ */ v("circle", {
|
|
877
|
-
cx: "16.5",
|
|
878
|
-
cy: "17.5",
|
|
879
|
-
fill: "currentColor",
|
|
880
|
-
r: "2"
|
|
881
|
-
}),
|
|
882
|
-
/* @__PURE__ */ v("path", {
|
|
883
|
-
d: "m10 12 2-2 2 2-2 2Z",
|
|
884
|
-
fill: "none",
|
|
885
|
-
stroke: "currentColor",
|
|
886
|
-
strokeLinejoin: "round",
|
|
887
|
-
strokeWidth: "1.6"
|
|
888
|
-
})
|
|
889
|
-
]
|
|
890
|
-
}),
|
|
891
|
-
codepipeline: () => /* @__PURE__ */ y("svg", {
|
|
892
|
-
"aria-hidden": "true",
|
|
893
|
-
className: L("glyph"),
|
|
894
|
-
focusable: "false",
|
|
895
|
-
viewBox: "0 0 24 24",
|
|
896
|
-
children: [
|
|
897
|
-
/* @__PURE__ */ v("rect", {
|
|
898
|
-
fill: "none",
|
|
899
|
-
height: "5",
|
|
900
|
-
rx: "1",
|
|
901
|
-
stroke: "currentColor",
|
|
902
|
-
strokeWidth: "1.7",
|
|
903
|
-
width: "5",
|
|
904
|
-
x: "2.5",
|
|
905
|
-
y: "9.5"
|
|
906
|
-
}),
|
|
907
|
-
/* @__PURE__ */ v("rect", {
|
|
908
|
-
fill: "none",
|
|
909
|
-
height: "5",
|
|
910
|
-
rx: "1",
|
|
911
|
-
stroke: "currentColor",
|
|
912
|
-
strokeWidth: "1.7",
|
|
913
|
-
width: "5",
|
|
914
|
-
x: "16.5",
|
|
915
|
-
y: "9.5"
|
|
916
|
-
}),
|
|
917
|
-
/* @__PURE__ */ v("path", {
|
|
918
|
-
d: "M8 12h7m-2.5-2.5L15 12l-2.5 2.5",
|
|
919
|
-
fill: "none",
|
|
920
|
-
stroke: "currentColor",
|
|
921
|
-
strokeLinecap: "round",
|
|
922
|
-
strokeLinejoin: "round",
|
|
923
|
-
strokeWidth: "1.8"
|
|
924
|
-
})
|
|
925
|
-
]
|
|
926
|
-
}),
|
|
927
|
-
jira: () => /* @__PURE__ */ y("svg", {
|
|
928
|
-
"aria-hidden": "true",
|
|
929
|
-
className: L("glyph"),
|
|
930
|
-
focusable: "false",
|
|
931
|
-
viewBox: "0 0 24 24",
|
|
932
|
-
children: [
|
|
933
|
-
/* @__PURE__ */ v("path", {
|
|
934
|
-
d: "m12 2.8 8.8 8.8a.6.6 0 0 1 0 .8L12 21.2l-8.8-8.8a.6.6 0 0 1 0-.8Z",
|
|
935
|
-
fill: "currentColor"
|
|
936
|
-
}),
|
|
937
|
-
/* @__PURE__ */ v("path", {
|
|
938
|
-
d: "m12 7.2 4.8 4.8-4.8 4.8L7.2 12Z",
|
|
939
|
-
fill: "var(--rly-color-surface-1)"
|
|
940
|
-
}),
|
|
941
|
-
/* @__PURE__ */ v("path", {
|
|
942
|
-
d: "m12 9.8 2.2 2.2-2.2 2.2L9.8 12Z",
|
|
943
|
-
fill: "currentColor"
|
|
944
|
-
})
|
|
945
|
-
]
|
|
946
|
-
}),
|
|
947
|
-
confluence: () => /* @__PURE__ */ y("svg", {
|
|
948
|
-
"aria-hidden": "true",
|
|
949
|
-
className: L("glyph"),
|
|
950
|
-
focusable: "false",
|
|
951
|
-
viewBox: "0 0 24 24",
|
|
952
|
-
children: [/* @__PURE__ */ v("path", {
|
|
953
|
-
d: "M4 7.2c3.6 2.1 6.8 2.4 9.6.9L17 6.3l2.7 4.3-3.4 1.8c-4.6 2.4-9.5 1.8-14-1.5Z",
|
|
954
|
-
fill: "currentColor"
|
|
955
|
-
}), /* @__PURE__ */ v("path", {
|
|
956
|
-
d: "M20 16.8c-3.6-2.1-6.8-2.4-9.6-.9L7 17.7l-2.7-4.3 3.4-1.8c4.6-2.4 9.5-1.8 14 1.5Z",
|
|
957
|
-
fill: "currentColor"
|
|
958
|
-
})]
|
|
959
|
-
}),
|
|
960
|
-
clockify: () => /* @__PURE__ */ y("svg", {
|
|
961
|
-
"aria-hidden": "true",
|
|
962
|
-
className: L("glyph"),
|
|
963
|
-
focusable: "false",
|
|
964
|
-
viewBox: "0 0 24 24",
|
|
965
|
-
children: [/* @__PURE__ */ v("circle", {
|
|
966
|
-
cx: "11",
|
|
967
|
-
cy: "13",
|
|
968
|
-
fill: "none",
|
|
969
|
-
r: "7",
|
|
970
|
-
stroke: "currentColor",
|
|
971
|
-
strokeWidth: "1.8"
|
|
972
|
-
}), /* @__PURE__ */ v("path", {
|
|
973
|
-
d: "M11 9v4l3 2m1.5-10.7 1.8-1.8M18 7l2-2",
|
|
974
|
-
fill: "none",
|
|
975
|
-
stroke: "currentColor",
|
|
976
|
-
strokeLinecap: "round",
|
|
977
|
-
strokeWidth: "1.8"
|
|
978
|
-
})]
|
|
979
|
-
})
|
|
980
|
-
}, z = ({ className: e, service: t, size: n = "default", ...r }) => {
|
|
981
|
-
let i = ze[t], a = Re[t];
|
|
982
|
-
return /* @__PURE__ */ y("span", {
|
|
983
|
-
...r,
|
|
984
|
-
"aria-label": a,
|
|
985
|
-
className: s(L("root"), R.service[t].className, R.size[n].className, e),
|
|
986
|
-
"data-rly-service": t,
|
|
987
|
-
role: "img",
|
|
988
|
-
children: [
|
|
989
|
-
/* @__PURE__ */ v("span", {
|
|
990
|
-
"aria-hidden": "true",
|
|
991
|
-
className: L("rail")
|
|
992
|
-
}),
|
|
993
|
-
/* @__PURE__ */ v(i, {}),
|
|
994
|
-
/* @__PURE__ */ v("span", {
|
|
995
|
-
"aria-hidden": "true",
|
|
996
|
-
className: L("name"),
|
|
997
|
-
children: a
|
|
998
|
-
})
|
|
999
|
-
]
|
|
1000
|
-
});
|
|
1001
|
-
}, Be = {
|
|
1002
|
-
root: "rly_Verdict-module__root",
|
|
1003
|
-
verdict: "rly_Verdict-module__verdict",
|
|
1004
|
-
caution: "rly_Verdict-module__caution",
|
|
1005
|
-
critical: "rly_Verdict-module__critical",
|
|
1006
|
-
neutral: "rly_Verdict-module__neutral",
|
|
1007
|
-
positive: "rly_Verdict-module__positive",
|
|
1008
|
-
progress: "rly_Verdict-module__progress",
|
|
1009
|
-
reasonPanel: "rly_Verdict-module__reasonPanel",
|
|
1010
|
-
icon: "rly_Verdict-module__icon",
|
|
1011
|
-
reason: "rly_Verdict-module__reason"
|
|
1012
|
-
}, B = (e) => a(Be, e), Ve = o({ tone: {
|
|
1013
|
-
caution: {
|
|
1014
|
-
className: B("caution"),
|
|
1015
|
-
purpose: "Intentional hold or caution requiring attention",
|
|
1016
|
-
tokens: ["color-held-ink", "color-held-tint"]
|
|
1017
|
-
},
|
|
1018
|
-
critical: {
|
|
1019
|
-
className: B("critical"),
|
|
1020
|
-
purpose: "Explicit blocker or failed prerequisite",
|
|
1021
|
-
tokens: ["color-blocked-ink", "color-blocked-tint"]
|
|
1022
|
-
},
|
|
1023
|
-
neutral: {
|
|
1024
|
-
className: B("neutral"),
|
|
1025
|
-
purpose: "Neutral, missing, or unavailable outcome",
|
|
1026
|
-
tokens: ["color-text-2", "color-surface-2"]
|
|
1027
|
-
},
|
|
1028
|
-
positive: {
|
|
1029
|
-
className: B("positive"),
|
|
1030
|
-
purpose: "Satisfied readiness or successful outcome",
|
|
1031
|
-
tokens: ["color-success-ink", "color-success-tint"]
|
|
1032
|
-
},
|
|
1033
|
-
progress: {
|
|
1034
|
-
className: B("progress"),
|
|
1035
|
-
purpose: "Active work or delivery progress",
|
|
1036
|
-
tokens: ["color-deploying-ink", "color-deploying-tint"]
|
|
1037
|
-
}
|
|
1038
|
-
} }), He = {
|
|
1039
|
-
caution: "clock",
|
|
1040
|
-
critical: "alert",
|
|
1041
|
-
neutral: "minus",
|
|
1042
|
-
positive: "check",
|
|
1043
|
-
progress: "loader"
|
|
1044
|
-
}, Ue = ({ className: t, reason: n, tone: i, verdict: a, ...o }) => {
|
|
1045
|
-
let c = r(n, "Verdict reason"), l = r(a, "Verdict verdict");
|
|
1046
|
-
return /* @__PURE__ */ y("section", {
|
|
1047
|
-
...o,
|
|
1048
|
-
className: s(B("root"), Ve.tone[i].className, t),
|
|
1049
|
-
"data-rly-verdict-tone": i,
|
|
1050
|
-
children: [/* @__PURE__ */ v("h2", {
|
|
1051
|
-
className: B("verdict"),
|
|
1052
|
-
children: l
|
|
1053
|
-
}), /* @__PURE__ */ y("div", {
|
|
1054
|
-
className: B("reasonPanel"),
|
|
1055
|
-
children: [/* @__PURE__ */ v("span", {
|
|
1056
|
-
"aria-hidden": "true",
|
|
1057
|
-
className: B("icon"),
|
|
1058
|
-
children: /* @__PURE__ */ v(e, {
|
|
1059
|
-
decorative: !0,
|
|
1060
|
-
name: He[i],
|
|
1061
|
-
size: "large"
|
|
1062
|
-
})
|
|
1063
|
-
}), /* @__PURE__ */ v("p", {
|
|
1064
|
-
className: B("reason"),
|
|
1065
|
-
children: c
|
|
1066
|
-
})]
|
|
1067
|
-
})]
|
|
1068
|
-
});
|
|
1069
|
-
}, We = {
|
|
1070
|
-
root: "rly_EntityShell-module__root",
|
|
1071
|
-
navigation: "rly_EntityShell-module__navigation",
|
|
1072
|
-
header: "rly_EntityShell-module__header",
|
|
1073
|
-
identity: "rly_EntityShell-module__identity",
|
|
1074
|
-
title: "rly_EntityShell-module__title",
|
|
1075
|
-
hero: "rly_EntityShell-module__hero",
|
|
1076
|
-
body: "rly_EntityShell-module__body",
|
|
1077
|
-
headerAside: "rly_EntityShell-module__headerAside",
|
|
1078
|
-
freshness: "rly_EntityShell-module__freshness",
|
|
1079
|
-
headerSlot: "rly_EntityShell-module__headerSlot",
|
|
1080
|
-
slotLabel: "rly_EntityShell-module__slotLabel",
|
|
1081
|
-
content: "rly_EntityShell-module__content",
|
|
1082
|
-
relationships: "rly_EntityShell-module__relationships",
|
|
1083
|
-
activity: "rly_EntityShell-module__activity",
|
|
1084
|
-
asideSlot: "rly_EntityShell-module__asideSlot",
|
|
1085
|
-
aside: "rly_EntityShell-module__aside"
|
|
1086
|
-
}, V = (e) => a(We, e), Ge = ({ actions: e, activity: t, agentEntry: n, className: i, collaborators: a, content: o, evidence: c, facts: l, freshness: u, freshnessDateTime: d, freshnessTime: f, navigation: p, reason: m, relationships: g, service: _, title: b, tone: x, verdict: S, ...C }) => {
|
|
1087
|
-
let w = r(b, "EntityShell title");
|
|
1088
|
-
if (d === void 0 != (f === void 0)) throw Error("EntityShell freshnessDateTime and freshnessTime must be supplied together");
|
|
1089
|
-
let T = `rly-entity-shell-${h()}`;
|
|
1090
|
-
return /* @__PURE__ */ y("article", {
|
|
1091
|
-
...C,
|
|
1092
|
-
"aria-labelledby": T,
|
|
1093
|
-
className: s(V("root"), i),
|
|
1094
|
-
"data-rly-entity-shell": "",
|
|
1095
|
-
children: [
|
|
1096
|
-
p === void 0 ? null : /* @__PURE__ */ v("nav", {
|
|
1097
|
-
"aria-label": `${w} navigation`,
|
|
1098
|
-
className: V("navigation"),
|
|
1099
|
-
"data-rly-entity-shell-slot": "navigation",
|
|
1100
|
-
children: p
|
|
1101
|
-
}),
|
|
1102
|
-
/* @__PURE__ */ y("header", {
|
|
1103
|
-
className: V("header"),
|
|
1104
|
-
children: [/* @__PURE__ */ y("div", {
|
|
1105
|
-
className: V("identity"),
|
|
1106
|
-
children: [/* @__PURE__ */ v(z, { service: _ }), /* @__PURE__ */ v("h1", {
|
|
1107
|
-
className: V("title"),
|
|
1108
|
-
id: T,
|
|
1109
|
-
children: w
|
|
1110
|
-
})]
|
|
1111
|
-
}), /* @__PURE__ */ y("div", {
|
|
1112
|
-
className: V("hero"),
|
|
1113
|
-
children: [/* @__PURE__ */ v(Ue, {
|
|
1114
|
-
reason: m,
|
|
1115
|
-
tone: x,
|
|
1116
|
-
verdict: S
|
|
1117
|
-
}), /* @__PURE__ */ y("div", {
|
|
1118
|
-
className: V("headerAside"),
|
|
1119
|
-
children: [
|
|
1120
|
-
/* @__PURE__ */ y("div", {
|
|
1121
|
-
className: V("freshness"),
|
|
1122
|
-
"data-rly-entity-shell-slot": "freshness",
|
|
1123
|
-
children: [/* @__PURE__ */ v("span", {
|
|
1124
|
-
className: V("slotLabel"),
|
|
1125
|
-
children: "Freshness"
|
|
1126
|
-
}), d === void 0 || f === void 0 ? /* @__PURE__ */ v(I, { state: u }) : /* @__PURE__ */ v(I, {
|
|
1127
|
-
dateTime: d,
|
|
1128
|
-
state: u,
|
|
1129
|
-
time: f
|
|
1130
|
-
})]
|
|
1131
|
-
}),
|
|
1132
|
-
/* @__PURE__ */ v("div", {
|
|
1133
|
-
className: V("headerSlot"),
|
|
1134
|
-
"data-rly-entity-shell-slot": "actions",
|
|
1135
|
-
children: e
|
|
1136
|
-
}),
|
|
1137
|
-
/* @__PURE__ */ v("div", {
|
|
1138
|
-
className: V("headerSlot"),
|
|
1139
|
-
"data-rly-entity-shell-slot": "agent-entry",
|
|
1140
|
-
children: n
|
|
1141
|
-
})
|
|
1142
|
-
]
|
|
1143
|
-
})]
|
|
1144
|
-
})]
|
|
1145
|
-
}),
|
|
1146
|
-
/* @__PURE__ */ y("div", {
|
|
1147
|
-
className: V("body"),
|
|
1148
|
-
children: [/* @__PURE__ */ v("section", {
|
|
1149
|
-
className: V("content"),
|
|
1150
|
-
"data-rly-entity-shell-slot": "content",
|
|
1151
|
-
children: o
|
|
1152
|
-
}), /* @__PURE__ */ y("aside", {
|
|
1153
|
-
className: V("aside"),
|
|
1154
|
-
children: [
|
|
1155
|
-
l === void 0 ? null : /* @__PURE__ */ v("section", {
|
|
1156
|
-
className: V("asideSlot"),
|
|
1157
|
-
"data-rly-entity-shell-slot": "facts",
|
|
1158
|
-
children: l
|
|
1159
|
-
}),
|
|
1160
|
-
c === void 0 ? null : /* @__PURE__ */ v("section", {
|
|
1161
|
-
className: V("asideSlot"),
|
|
1162
|
-
"data-rly-entity-shell-slot": "evidence",
|
|
1163
|
-
children: c
|
|
1164
|
-
}),
|
|
1165
|
-
/* @__PURE__ */ v("section", {
|
|
1166
|
-
className: V("asideSlot"),
|
|
1167
|
-
"data-rly-entity-shell-slot": "collaborators",
|
|
1168
|
-
children: a
|
|
1169
|
-
})
|
|
1170
|
-
]
|
|
1171
|
-
})]
|
|
1172
|
-
}),
|
|
1173
|
-
/* @__PURE__ */ v("section", {
|
|
1174
|
-
className: V("relationships"),
|
|
1175
|
-
"data-rly-entity-shell-slot": "relationships",
|
|
1176
|
-
children: g
|
|
1177
|
-
}),
|
|
1178
|
-
t === void 0 ? null : /* @__PURE__ */ v("section", {
|
|
1179
|
-
className: V("activity"),
|
|
1180
|
-
"data-rly-entity-shell-slot": "activity",
|
|
1181
|
-
children: t
|
|
1182
|
-
})
|
|
1183
|
-
]
|
|
1184
|
-
});
|
|
1185
|
-
}, Ke = {
|
|
1186
|
-
root: "rly_EntityTable-module__root",
|
|
1187
|
-
heading: "rly_EntityTable-module__heading",
|
|
1188
|
-
loading: "rly_EntityTable-module__loading",
|
|
1189
|
-
stateLabel: "rly_EntityTable-module__stateLabel",
|
|
1190
|
-
table: "rly_EntityTable-module__table",
|
|
1191
|
-
head: "rly_EntityTable-module__head",
|
|
1192
|
-
sortControls: "rly_EntityTable-module__sortControls",
|
|
1193
|
-
sortLabel: "rly_EntityTable-module__sortLabel",
|
|
1194
|
-
sortButton: "rly_EntityTable-module__sortButton",
|
|
1195
|
-
cell: "rly_EntityTable-module__cell",
|
|
1196
|
-
row: "rly_EntityTable-module__row",
|
|
1197
|
-
body: "rly_EntityTable-module__body"
|
|
1198
|
-
}, H = (e) => a(Ke, e), qe = (e) => {
|
|
1199
|
-
let t = /* @__PURE__ */ new Set();
|
|
1200
|
-
for (let n of e) {
|
|
1201
|
-
let e = r(n.id, "EntityTable column id");
|
|
1202
|
-
if (t.has(e)) throw Error(`EntityTable column ids must be unique: ${e}`);
|
|
1203
|
-
t.add(e), r(n.label, `EntityTable column label for ${e}`);
|
|
1204
|
-
}
|
|
1205
|
-
return t;
|
|
1206
|
-
}, Je = (e, t) => {
|
|
1207
|
-
let n = /* @__PURE__ */ new Set();
|
|
1208
|
-
for (let i of e) {
|
|
1209
|
-
let e = r(i.id, "EntityTable row id");
|
|
1210
|
-
if (n.has(e)) throw Error(`EntityTable row ids must be unique: ${e}`);
|
|
1211
|
-
n.add(e);
|
|
1212
|
-
let a = /* @__PURE__ */ new Set();
|
|
1213
|
-
for (let n of i.cells) {
|
|
1214
|
-
let i = r(n.columnId, `EntityTable cell column id for ${e}`);
|
|
1215
|
-
if (!t.has(i)) throw Error(`EntityTable row ${e} has an unknown column: ${i}`);
|
|
1216
|
-
if (a.has(i)) throw Error(`EntityTable row ${e} repeats column: ${i}`);
|
|
1217
|
-
a.add(i);
|
|
1218
|
-
}
|
|
1219
|
-
for (let n of t) if (!a.has(n)) throw Error(`EntityTable row ${e} is missing column: ${n}`);
|
|
1220
|
-
}
|
|
1221
|
-
}, Ye = (e) => e.state === "ready" || e.state === "stale" || e.state === "partial" || e.state === "error" || e.state === "unavailable" ? e.rows : [], Xe = ({ direction: t }) => /* @__PURE__ */ v(e, {
|
|
1222
|
-
decorative: !0,
|
|
1223
|
-
name: t === "ascending" ? "arrow-up" : t === "descending" ? "arrow-down" : "minus",
|
|
1224
|
-
size: "small"
|
|
1225
|
-
}), Ze = ({ className: e, columns: t, data: n, heading: i, onSortChange: a, ...o }) => {
|
|
1226
|
-
let c = r(i, "EntityTable heading"), l = qe(t), f = Ye(n);
|
|
1227
|
-
if (Je(f, l), n.state === "ready" && f.length === 0) throw Error("EntityTable ready state must contain at least one row; use the empty state instead");
|
|
1228
|
-
if (n.state === "loading") {
|
|
1229
|
-
r(n.label, "EntityTable loading label");
|
|
1230
|
-
let e = n.skeletonRows ?? 3;
|
|
1231
|
-
if (!Number.isInteger(e) || e < 1 || e > 20) throw Error("EntityTable skeletonRows must be an integer from 1 to 20");
|
|
1232
|
-
}
|
|
1233
|
-
if ((n.state === "empty" || n.state === "not-found") && (r(n.title, "EntityTable state title"), n.description !== void 0 && r(n.description, "EntityTable state description")), (n.state === "stale" || n.state === "partial" || n.state === "error" || n.state === "unavailable") && (r(n.title, "EntityTable cached state title"), r(n.description, "EntityTable cached state description"), f.length === 0)) throw Error(`EntityTable ${n.state} state must retain at least one cached row`);
|
|
1234
|
-
let p = `rly-entity-table-${h()}`, m = new Map(t.map((e) => [e.id, e])), g = n.state === "stale" || n.state === "partial" || n.state === "error" || n.state === "unavailable" ? /* @__PURE__ */ v(d, {
|
|
1235
|
-
description: n.description,
|
|
1236
|
-
title: n.title,
|
|
1237
|
-
tone: n.tone
|
|
1238
|
-
}) : null;
|
|
1239
|
-
return /* @__PURE__ */ y("section", {
|
|
1240
|
-
...o,
|
|
1241
|
-
"aria-busy": n.state === "loading" ? "true" : void 0,
|
|
1242
|
-
"aria-labelledby": p,
|
|
1243
|
-
className: s(H("root"), e),
|
|
1244
|
-
"data-rly-entity-table-state": n.state,
|
|
1245
|
-
children: [/* @__PURE__ */ v("h2", {
|
|
1246
|
-
className: H("heading"),
|
|
1247
|
-
id: p,
|
|
1248
|
-
children: c
|
|
1249
|
-
}), n.state === "loading" ? /* @__PURE__ */ y("div", {
|
|
1250
|
-
"aria-label": n.label,
|
|
1251
|
-
className: H("loading"),
|
|
1252
|
-
role: "status",
|
|
1253
|
-
children: [/* @__PURE__ */ v("span", {
|
|
1254
|
-
className: H("stateLabel"),
|
|
1255
|
-
children: n.label
|
|
1256
|
-
}), Array.from({ length: n.skeletonRows ?? 3 }, (e, t) => /* @__PURE__ */ v(u, {
|
|
1257
|
-
height: "48px",
|
|
1258
|
-
variant: "block"
|
|
1259
|
-
}, t))]
|
|
1260
|
-
}) : n.state === "empty" || n.state === "not-found" ? /* @__PURE__ */ v(d, {
|
|
1261
|
-
description: n.description,
|
|
1262
|
-
title: n.title
|
|
1263
|
-
}) : /* @__PURE__ */ y(_, { children: [
|
|
1264
|
-
g,
|
|
1265
|
-
/* @__PURE__ */ y("div", {
|
|
1266
|
-
"aria-label": `${c} sorting`,
|
|
1267
|
-
className: H("sortControls"),
|
|
1268
|
-
role: "group",
|
|
1269
|
-
children: [/* @__PURE__ */ v("span", {
|
|
1270
|
-
className: H("sortLabel"),
|
|
1271
|
-
children: "Sort"
|
|
1272
|
-
}), t.map((e) => e.sortable ? /* @__PURE__ */ y("button", {
|
|
1273
|
-
"aria-label": `Sort by ${e.label}, currently ${e.sortDirection}`,
|
|
1274
|
-
className: H("sortButton"),
|
|
1275
|
-
onClick: () => a(e.id),
|
|
1276
|
-
type: "button",
|
|
1277
|
-
children: [/* @__PURE__ */ v("span", { children: e.label }), /* @__PURE__ */ v(Xe, { direction: e.sortDirection })]
|
|
1278
|
-
}, e.id) : null)]
|
|
1279
|
-
}),
|
|
1280
|
-
/* @__PURE__ */ y("table", {
|
|
1281
|
-
"aria-labelledby": p,
|
|
1282
|
-
className: H("table"),
|
|
1283
|
-
children: [/* @__PURE__ */ v("thead", {
|
|
1284
|
-
className: H("head"),
|
|
1285
|
-
children: /* @__PURE__ */ v("tr", { children: t.map((e) => /* @__PURE__ */ v("th", {
|
|
1286
|
-
"aria-sort": e.sortable ? e.sortDirection : void 0,
|
|
1287
|
-
scope: "col",
|
|
1288
|
-
children: e.label
|
|
1289
|
-
}, e.id)) })
|
|
1290
|
-
}), /* @__PURE__ */ v("tbody", {
|
|
1291
|
-
className: H("body"),
|
|
1292
|
-
children: f.map((e) => {
|
|
1293
|
-
let n = new Map(e.cells.map((e) => [e.columnId, e.content]));
|
|
1294
|
-
return /* @__PURE__ */ v("tr", {
|
|
1295
|
-
className: H("row"),
|
|
1296
|
-
"data-rly-entity-row-id": e.id,
|
|
1297
|
-
children: t.map((e) => /* @__PURE__ */ v("td", {
|
|
1298
|
-
className: H("cell"),
|
|
1299
|
-
"data-label": m.get(e.id)?.label,
|
|
1300
|
-
children: n.get(e.id)
|
|
1301
|
-
}, e.id))
|
|
1302
|
-
}, e.id);
|
|
1303
|
-
})
|
|
1304
|
-
})]
|
|
1305
|
-
})
|
|
1306
|
-
] })]
|
|
1307
|
-
});
|
|
1308
|
-
}, Qe = {
|
|
1309
|
-
root: "rly_EvidenceStamp-module__root",
|
|
1310
|
-
source: "rly_EvidenceStamp-module__source",
|
|
1311
|
-
freshness: "rly_EvidenceStamp-module__freshness",
|
|
1312
|
-
conceptLabel: "rly_EvidenceStamp-module__conceptLabel",
|
|
1313
|
-
sourceDetail: "rly_EvidenceStamp-module__sourceDetail",
|
|
1314
|
-
reference: "rly_EvidenceStamp-module__reference"
|
|
1315
|
-
}, U = (e) => a(Qe, e), $e = ({ className: e, freshness: t, freshnessDateTime: n, freshnessTime: i, reference: a, service: o, ...c }) => {
|
|
1316
|
-
let l = r(a, "EvidenceStamp reference"), u = n === void 0 || i === void 0 ? /* @__PURE__ */ v(I, {
|
|
1317
|
-
size: "compact",
|
|
1318
|
-
state: t
|
|
1319
|
-
}) : /* @__PURE__ */ v(I, {
|
|
1320
|
-
dateTime: n,
|
|
1321
|
-
size: "compact",
|
|
1322
|
-
state: t,
|
|
1323
|
-
time: i
|
|
1324
|
-
});
|
|
1325
|
-
return /* @__PURE__ */ y("div", {
|
|
1326
|
-
...c,
|
|
1327
|
-
className: s(U("root"), e),
|
|
1328
|
-
"data-rly-evidence-stamp": "",
|
|
1329
|
-
children: [/* @__PURE__ */ y("div", {
|
|
1330
|
-
className: U("source"),
|
|
1331
|
-
"data-rly-evidence-source": o,
|
|
1332
|
-
children: [/* @__PURE__ */ v("span", {
|
|
1333
|
-
className: U("conceptLabel"),
|
|
1334
|
-
children: "Evidence source"
|
|
1335
|
-
}), /* @__PURE__ */ y("div", {
|
|
1336
|
-
className: U("sourceDetail"),
|
|
1337
|
-
children: [/* @__PURE__ */ v(z, {
|
|
1338
|
-
service: o,
|
|
1339
|
-
size: "compact"
|
|
1340
|
-
}), /* @__PURE__ */ v("code", {
|
|
1341
|
-
className: U("reference"),
|
|
1342
|
-
children: l
|
|
1343
|
-
})]
|
|
1344
|
-
})]
|
|
1345
|
-
}), /* @__PURE__ */ y("div", {
|
|
1346
|
-
className: U("freshness"),
|
|
1347
|
-
"data-rly-evidence-freshness": t,
|
|
1348
|
-
children: [/* @__PURE__ */ v("span", {
|
|
1349
|
-
className: U("conceptLabel"),
|
|
1350
|
-
children: "Freshness"
|
|
1351
|
-
}), u]
|
|
1352
|
-
})]
|
|
1353
|
-
});
|
|
1354
|
-
}, et = {
|
|
1355
|
-
root: "rly_GovernedActionReview-module__root",
|
|
1356
|
-
header: "rly_GovernedActionReview-module__header",
|
|
1357
|
-
eyebrow: "rly_GovernedActionReview-module__eyebrow",
|
|
1358
|
-
heading: "rly_GovernedActionReview-module__heading",
|
|
1359
|
-
boundary: "rly_GovernedActionReview-module__boundary",
|
|
1360
|
-
confirmationHelp: "rly_GovernedActionReview-module__confirmationHelp",
|
|
1361
|
-
reviewer: "rly_GovernedActionReview-module__reviewer",
|
|
1362
|
-
facts: "rly_GovernedActionReview-module__facts",
|
|
1363
|
-
evidence: "rly_GovernedActionReview-module__evidence",
|
|
1364
|
-
outcome: "rly_GovernedActionReview-module__outcome",
|
|
1365
|
-
proposalReference: "rly_GovernedActionReview-module__proposalReference",
|
|
1366
|
-
decision: "rly_GovernedActionReview-module__decision",
|
|
1367
|
-
confirmation: "rly_GovernedActionReview-module__confirmation",
|
|
1368
|
-
actions: "rly_GovernedActionReview-module__actions"
|
|
1369
|
-
}, W = (e) => a(et, e), tt = {
|
|
1370
|
-
pending: {
|
|
1371
|
-
label: "Awaiting human decision",
|
|
1372
|
-
tone: "caution"
|
|
1373
|
-
},
|
|
1374
|
-
rejected: {
|
|
1375
|
-
label: "Rejected by human reviewer",
|
|
1376
|
-
tone: "critical"
|
|
1377
|
-
},
|
|
1378
|
-
authorized: {
|
|
1379
|
-
label: "Authorized by human reviewer",
|
|
1380
|
-
tone: "positive"
|
|
1381
|
-
},
|
|
1382
|
-
executing: {
|
|
1383
|
-
label: "Authorized action executing",
|
|
1384
|
-
tone: "progress"
|
|
1385
|
-
},
|
|
1386
|
-
succeeded: {
|
|
1387
|
-
label: "Authorized action succeeded",
|
|
1388
|
-
tone: "positive"
|
|
1389
|
-
},
|
|
1390
|
-
failed: {
|
|
1391
|
-
label: "Authorized action failed",
|
|
1392
|
-
tone: "critical"
|
|
1393
|
-
},
|
|
1394
|
-
cancelled: {
|
|
1395
|
-
label: "Authorized action cancelled",
|
|
1396
|
-
tone: "neutral"
|
|
1397
|
-
}
|
|
1398
|
-
}, nt = ({ authorizeLabel: e = "Authorize exact action", className: t, confirmationLabel: n, isConfirmed: i, onAuthorize: a, onConfirmationChange: o, onReject: u, outcome: d, proposal: f, rejectLabel: p = "Reject proposal", reviewer: m, state: g, ..._ }) => {
|
|
1399
|
-
let b = ce(f), x = r(e, "GovernedActionReview authorizeLabel"), S = r(n, "GovernedActionReview confirmationLabel"), C = r(p, "GovernedActionReview rejectLabel");
|
|
1400
|
-
r(m.id, "GovernedActionReview reviewer id"), r(m.name, "GovernedActionReview reviewer name"), r(m.role, "GovernedActionReview reviewer role");
|
|
1401
|
-
let w = `rly-governed-action-${h()}`, T = `rly-governed-action-reference-${h()}`, E = `rly-governed-confirmation-${h()}`, D = tt[g], ee = () => {
|
|
1402
|
-
g === "pending" && i && a();
|
|
1403
|
-
};
|
|
1404
|
-
return /* @__PURE__ */ y("section", {
|
|
1405
|
-
..._,
|
|
1406
|
-
"aria-labelledby": `${w} ${T}`,
|
|
1407
|
-
className: s(W("root"), t),
|
|
1408
|
-
"data-rly-governed-action-state": g,
|
|
1409
|
-
children: [
|
|
1410
|
-
/* @__PURE__ */ y("header", {
|
|
1411
|
-
className: W("header"),
|
|
1412
|
-
children: [/* @__PURE__ */ y("div", { children: [
|
|
1413
|
-
/* @__PURE__ */ v("p", {
|
|
1414
|
-
className: W("eyebrow"),
|
|
1415
|
-
children: "Human authorization"
|
|
1416
|
-
}),
|
|
1417
|
-
/* @__PURE__ */ v("h2", {
|
|
1418
|
-
className: W("heading"),
|
|
1419
|
-
id: w,
|
|
1420
|
-
children: "Review exact proposed action"
|
|
1421
|
-
}),
|
|
1422
|
-
/* @__PURE__ */ v("code", {
|
|
1423
|
-
className: W("proposalReference"),
|
|
1424
|
-
id: T,
|
|
1425
|
-
children: b.id
|
|
1426
|
-
})
|
|
1427
|
-
] }), /* @__PURE__ */ v(l, {
|
|
1428
|
-
label: D.label,
|
|
1429
|
-
tone: D.tone
|
|
1430
|
-
})]
|
|
1431
|
-
}),
|
|
1432
|
-
/* @__PURE__ */ v("p", {
|
|
1433
|
-
className: W("boundary"),
|
|
1434
|
-
children: "The agent proposed this action. Only the named human reviewer can authorize it."
|
|
1435
|
-
}),
|
|
1436
|
-
/* @__PURE__ */ y("div", {
|
|
1437
|
-
className: W("reviewer"),
|
|
1438
|
-
children: [/* @__PURE__ */ v("span", { children: "Human reviewer" }), /* @__PURE__ */ v(M, { person: m })]
|
|
1439
|
-
}),
|
|
1440
|
-
/* @__PURE__ */ y("dl", {
|
|
1441
|
-
className: W("facts"),
|
|
1442
|
-
children: [
|
|
1443
|
-
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", { children: "Proposal" }), /* @__PURE__ */ v("dd", { children: b.capability })] }),
|
|
1444
|
-
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", { children: "Target" }), /* @__PURE__ */ v("dd", { children: b.target })] }),
|
|
1445
|
-
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", { children: "Expected revision" }), /* @__PURE__ */ v("dd", { children: b.expectedRevision })] }),
|
|
1446
|
-
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", { children: "Impact" }), /* @__PURE__ */ v("dd", { children: b.impact })] })
|
|
1447
|
-
]
|
|
1448
|
-
}),
|
|
1449
|
-
/* @__PURE__ */ y("div", {
|
|
1450
|
-
className: W("evidence"),
|
|
1451
|
-
"data-rly-governed-action-evidence": "",
|
|
1452
|
-
children: [/* @__PURE__ */ v("h3", { children: "Evidence reviewed before decision" }), /* @__PURE__ */ v("ul", { children: b.evidence.map((e) => /* @__PURE__ */ y("li", { children: [/* @__PURE__ */ v("span", { children: e.label }), /* @__PURE__ */ v("code", { children: e.reference })] }, e.id)) })]
|
|
1453
|
-
}),
|
|
1454
|
-
g === "pending" ? /* @__PURE__ */ y("form", {
|
|
1455
|
-
className: W("decision"),
|
|
1456
|
-
onSubmit: (e) => e.preventDefault(),
|
|
1457
|
-
children: [
|
|
1458
|
-
/* @__PURE__ */ y("label", {
|
|
1459
|
-
className: W("confirmation"),
|
|
1460
|
-
htmlFor: E,
|
|
1461
|
-
children: [/* @__PURE__ */ v("input", {
|
|
1462
|
-
checked: i,
|
|
1463
|
-
id: E,
|
|
1464
|
-
onChange: (e) => o(e.currentTarget.checked),
|
|
1465
|
-
type: "checkbox"
|
|
1466
|
-
}), /* @__PURE__ */ v("span", { children: S })]
|
|
1467
|
-
}),
|
|
1468
|
-
/* @__PURE__ */ v("p", {
|
|
1469
|
-
className: W("confirmationHelp"),
|
|
1470
|
-
children: "Confirm the exact proposal, target, revision, impact, and evidence above."
|
|
1471
|
-
}),
|
|
1472
|
-
/* @__PURE__ */ y("div", {
|
|
1473
|
-
className: W("actions"),
|
|
1474
|
-
children: [/* @__PURE__ */ v(c, {
|
|
1475
|
-
onClick: u,
|
|
1476
|
-
variant: "secondary",
|
|
1477
|
-
children: C
|
|
1478
|
-
}), /* @__PURE__ */ v(c, {
|
|
1479
|
-
disabled: !i,
|
|
1480
|
-
onClick: ee,
|
|
1481
|
-
variant: "primary",
|
|
1482
|
-
children: x
|
|
1483
|
-
})]
|
|
1484
|
-
})
|
|
1485
|
-
]
|
|
1486
|
-
}) : null,
|
|
1487
|
-
/* @__PURE__ */ y("div", {
|
|
1488
|
-
className: W("outcome"),
|
|
1489
|
-
"data-rly-governed-action-outcome": "",
|
|
1490
|
-
children: [/* @__PURE__ */ v("h3", { children: "Recorded outcome" }), d]
|
|
1491
|
-
})
|
|
1492
|
-
]
|
|
1493
|
-
});
|
|
1494
|
-
}, G = {
|
|
1495
|
-
missing: {
|
|
1496
|
-
icon: "alert",
|
|
1497
|
-
label: "Missing"
|
|
1498
|
-
},
|
|
1499
|
-
inferred: {
|
|
1500
|
-
icon: "search",
|
|
1501
|
-
label: "Inferred"
|
|
1502
|
-
},
|
|
1503
|
-
proposed: {
|
|
1504
|
-
icon: "plus",
|
|
1505
|
-
label: "Proposed"
|
|
1506
|
-
},
|
|
1507
|
-
verified: {
|
|
1508
|
-
icon: "check",
|
|
1509
|
-
label: "Verified"
|
|
1510
|
-
},
|
|
1511
|
-
governed: {
|
|
1512
|
-
icon: "link",
|
|
1513
|
-
label: "Governed"
|
|
1514
|
-
},
|
|
1515
|
-
rejected: {
|
|
1516
|
-
icon: "close",
|
|
1517
|
-
label: "Rejected"
|
|
1518
|
-
},
|
|
1519
|
-
superseded: {
|
|
1520
|
-
icon: "arrow-right",
|
|
1521
|
-
label: "Superseded"
|
|
1522
|
-
}
|
|
1523
|
-
}, rt = {
|
|
1524
|
-
forward: {
|
|
1525
|
-
arrow: "→",
|
|
1526
|
-
label: "Forward"
|
|
1527
|
-
},
|
|
1528
|
-
reverse: {
|
|
1529
|
-
arrow: "←",
|
|
1530
|
-
label: "Reverse"
|
|
1531
|
-
},
|
|
1532
|
-
bidirectional: {
|
|
1533
|
-
arrow: "↔",
|
|
1534
|
-
label: "Bidirectional"
|
|
1535
|
-
}
|
|
1536
|
-
}, it = (e, t) => {
|
|
1537
|
-
r(e.id, `${t} person id`), r(e.name, `${t} person name`), r(e.role, `${t} person role`), e.avatarFallback !== void 0 && r(e.avatarFallback, `${t} person avatarFallback`), e.avatarSrc !== void 0 && r(e.avatarSrc, `${t} person avatarSrc`);
|
|
1538
|
-
}, at = (e, t) => {
|
|
1539
|
-
if (!Object.hasOwn(R.service, e)) throw Error(`${t} service must be a supported rly service`);
|
|
1540
|
-
}, ot = (e, t) => {
|
|
1541
|
-
if (e.state === "present") {
|
|
1542
|
-
r(e.id, `${t} id`), r(e.title, `${t} title`), r(e.reference, `${t} reference`), at(e.service, t), e.href !== void 0 && r(e.href, `${t} href`), e.person !== void 0 && it(e.person, t);
|
|
1543
|
-
return;
|
|
1544
|
-
}
|
|
1545
|
-
if (e.state === "missing") {
|
|
1546
|
-
r(e.label, `${t} missing label`), r(e.reason, `${t} missing reason`), e.service !== void 0 && at(e.service, t);
|
|
1547
|
-
return;
|
|
1548
|
-
}
|
|
1549
|
-
throw Error(`${t} state must be present or missing`);
|
|
1550
|
-
}, st = (e) => {
|
|
1551
|
-
let t = /* @__PURE__ */ new Set();
|
|
1552
|
-
for (let n of e) {
|
|
1553
|
-
let e = r(n.id, "Relationship id");
|
|
1554
|
-
if (t.has(e)) throw Error(`Relationship ids must be unique: ${e}`);
|
|
1555
|
-
if (t.add(e), r(n.kind, `Relationship kind for ${e}`), !Object.hasOwn(rt, n.direction)) throw Error(`Relationship direction for ${e} must be supported`);
|
|
1556
|
-
if (!Object.hasOwn(G, n.lifecycle)) throw Error(`Relationship lifecycle for ${e} must be supported`);
|
|
1557
|
-
ot(n.source, `Relationship ${e} source`), ot(n.target, `Relationship ${e} target`), n.evidence !== void 0 && r(n.evidence, `Relationship evidence for ${e}`), n.actor !== void 0 && it(n.actor, `Relationship ${e} actor`);
|
|
1558
|
-
}
|
|
1559
|
-
}, ct = {
|
|
1560
|
-
root: "rly_RelationshipChain-module__root",
|
|
1561
|
-
heading: "rly_RelationshipChain-module__heading",
|
|
1562
|
-
empty: "rly_RelationshipChain-module__empty",
|
|
1563
|
-
list: "rly_RelationshipChain-module__list",
|
|
1564
|
-
item: "rly_RelationshipChain-module__item",
|
|
1565
|
-
endpoint: "rly_RelationshipChain-module__endpoint",
|
|
1566
|
-
endpointLink: "rly_RelationshipChain-module__endpointLink",
|
|
1567
|
-
identity: "rly_RelationshipChain-module__identity",
|
|
1568
|
-
missingIdentity: "rly_RelationshipChain-module__missingIdentity",
|
|
1569
|
-
title: "rly_RelationshipChain-module__title",
|
|
1570
|
-
missingLabel: "rly_RelationshipChain-module__missingLabel",
|
|
1571
|
-
kind: "rly_RelationshipChain-module__kind",
|
|
1572
|
-
reference: "rly_RelationshipChain-module__reference",
|
|
1573
|
-
direction: "rly_RelationshipChain-module__direction",
|
|
1574
|
-
evidence: "rly_RelationshipChain-module__evidence",
|
|
1575
|
-
fieldLabel: "rly_RelationshipChain-module__fieldLabel",
|
|
1576
|
-
missingEndpoint: "rly_RelationshipChain-module__missingEndpoint",
|
|
1577
|
-
relationship: "rly_RelationshipChain-module__relationship",
|
|
1578
|
-
arrow: "rly_RelationshipChain-module__arrow",
|
|
1579
|
-
actor: "rly_RelationshipChain-module__actor"
|
|
1580
|
-
}, K = (e) => a(ct, e), lt = ({ endpoint: n }) => {
|
|
1581
|
-
if (n.state === "missing") return /* @__PURE__ */ y("div", {
|
|
1582
|
-
className: s(K("endpoint"), K("missingEndpoint")),
|
|
1583
|
-
"data-rly-endpoint-state": "missing",
|
|
1584
|
-
children: [n.service === void 0 ? null : /* @__PURE__ */ v(z, {
|
|
1585
|
-
service: n.service,
|
|
1586
|
-
size: "compact"
|
|
1587
|
-
}), /* @__PURE__ */ y("span", {
|
|
1588
|
-
className: K("missingIdentity"),
|
|
1589
|
-
children: [/* @__PURE__ */ y("span", {
|
|
1590
|
-
className: K("missingLabel"),
|
|
1591
|
-
children: [/* @__PURE__ */ v(e, {
|
|
1592
|
-
decorative: !0,
|
|
1593
|
-
name: "alert",
|
|
1594
|
-
size: "small"
|
|
1595
|
-
}), n.label]
|
|
1596
|
-
}), /* @__PURE__ */ v("span", {
|
|
1597
|
-
className: K("reference"),
|
|
1598
|
-
children: n.reason
|
|
1599
|
-
})]
|
|
1600
|
-
})]
|
|
1601
|
-
});
|
|
1602
|
-
let r = /* @__PURE__ */ y("span", {
|
|
1603
|
-
className: K("identity"),
|
|
1604
|
-
children: [/* @__PURE__ */ v("span", {
|
|
1605
|
-
className: K("title"),
|
|
1606
|
-
children: n.title
|
|
1607
|
-
}), /* @__PURE__ */ v("span", {
|
|
1608
|
-
className: K("reference"),
|
|
1609
|
-
children: n.reference
|
|
1610
|
-
})]
|
|
1611
|
-
});
|
|
1612
|
-
return /* @__PURE__ */ y("div", {
|
|
1613
|
-
className: K("endpoint"),
|
|
1614
|
-
"data-rly-endpoint-id": n.id,
|
|
1615
|
-
"data-rly-endpoint-state": "present",
|
|
1616
|
-
children: [
|
|
1617
|
-
/* @__PURE__ */ v(z, {
|
|
1618
|
-
service: n.service,
|
|
1619
|
-
size: "compact"
|
|
1620
|
-
}),
|
|
1621
|
-
n.href === void 0 ? r : /* @__PURE__ */ v(t, {
|
|
1622
|
-
className: K("endpointLink"),
|
|
1623
|
-
href: n.href,
|
|
1624
|
-
children: r
|
|
1625
|
-
}),
|
|
1626
|
-
n.person === void 0 ? null : /* @__PURE__ */ v(M, {
|
|
1627
|
-
person: n.person,
|
|
1628
|
-
size: "compact"
|
|
1629
|
-
})
|
|
1630
|
-
]
|
|
1631
|
-
});
|
|
1632
|
-
}, ut = ({ className: e, emptyLabel: t = "No relationships recorded.", heading: n, relationships: i, ...a }) => {
|
|
1633
|
-
let o = r(n, "RelationshipChain heading"), c = r(t, "RelationshipChain emptyLabel");
|
|
1634
|
-
st(i);
|
|
1635
|
-
let u = `${h()}-heading`;
|
|
1636
|
-
return /* @__PURE__ */ y("section", {
|
|
1637
|
-
...a,
|
|
1638
|
-
"aria-labelledby": u,
|
|
1639
|
-
className: s(K("root"), e),
|
|
1640
|
-
children: [/* @__PURE__ */ v("h2", {
|
|
1641
|
-
className: K("heading"),
|
|
1642
|
-
id: u,
|
|
1643
|
-
children: o
|
|
1644
|
-
}), i.length === 0 ? /* @__PURE__ */ v("p", {
|
|
1645
|
-
className: K("empty"),
|
|
1646
|
-
children: c
|
|
1647
|
-
}) : /* @__PURE__ */ v("ol", {
|
|
1648
|
-
className: K("list"),
|
|
1649
|
-
children: i.map((e) => {
|
|
1650
|
-
let t = rt[e.direction], n = G[e.lifecycle];
|
|
1651
|
-
return /* @__PURE__ */ y("li", {
|
|
1652
|
-
className: K("item"),
|
|
1653
|
-
"data-rly-relationship-id": e.id,
|
|
1654
|
-
"data-rly-relationship-direction": e.direction,
|
|
1655
|
-
"data-rly-relationship-kind": e.kind,
|
|
1656
|
-
"data-rly-relationship-lifecycle": e.lifecycle,
|
|
1657
|
-
children: [
|
|
1658
|
-
/* @__PURE__ */ v(lt, { endpoint: e.source }),
|
|
1659
|
-
/* @__PURE__ */ y("div", {
|
|
1660
|
-
className: K("relationship"),
|
|
1661
|
-
"data-rly-relationship-detail": "",
|
|
1662
|
-
children: [
|
|
1663
|
-
/* @__PURE__ */ y("span", {
|
|
1664
|
-
className: K("direction"),
|
|
1665
|
-
children: [/* @__PURE__ */ v("span", { children: t.label }), /* @__PURE__ */ v("span", {
|
|
1666
|
-
"aria-hidden": "true",
|
|
1667
|
-
className: K("arrow"),
|
|
1668
|
-
children: t.arrow
|
|
1669
|
-
})]
|
|
1670
|
-
}),
|
|
1671
|
-
/* @__PURE__ */ v("span", {
|
|
1672
|
-
className: K("kind"),
|
|
1673
|
-
children: e.kind
|
|
1674
|
-
}),
|
|
1675
|
-
/* @__PURE__ */ v(l, {
|
|
1676
|
-
icon: n.icon,
|
|
1677
|
-
label: n.label,
|
|
1678
|
-
size: "compact",
|
|
1679
|
-
tone: "neutral"
|
|
1680
|
-
}),
|
|
1681
|
-
e.actor === void 0 ? null : /* @__PURE__ */ y("div", {
|
|
1682
|
-
className: K("actor"),
|
|
1683
|
-
"data-rly-relationship-actor": e.actor.id,
|
|
1684
|
-
children: [/* @__PURE__ */ v("span", {
|
|
1685
|
-
className: K("fieldLabel"),
|
|
1686
|
-
children: "Actor"
|
|
1687
|
-
}), /* @__PURE__ */ v(M, {
|
|
1688
|
-
person: e.actor,
|
|
1689
|
-
size: "compact"
|
|
1690
|
-
})]
|
|
1691
|
-
})
|
|
1692
|
-
]
|
|
1693
|
-
}),
|
|
1694
|
-
/* @__PURE__ */ v(lt, { endpoint: e.target }),
|
|
1695
|
-
/* @__PURE__ */ y("p", {
|
|
1696
|
-
className: K("evidence"),
|
|
1697
|
-
children: [/* @__PURE__ */ v("span", {
|
|
1698
|
-
className: K("fieldLabel"),
|
|
1699
|
-
children: "Evidence"
|
|
1700
|
-
}), /* @__PURE__ */ v("span", {
|
|
1701
|
-
"data-rly-relationship-evidence": "",
|
|
1702
|
-
children: e.evidence ?? "No evidence recorded."
|
|
1703
|
-
})]
|
|
1704
|
-
})
|
|
1705
|
-
]
|
|
1706
|
-
}, e.id);
|
|
1707
|
-
})
|
|
1708
|
-
})]
|
|
1709
|
-
});
|
|
1710
|
-
}, dt = {
|
|
1711
|
-
root: "rly_RelationshipTable-module__root",
|
|
1712
|
-
heading: "rly_RelationshipTable-module__heading",
|
|
1713
|
-
empty: "rly_RelationshipTable-module__empty",
|
|
1714
|
-
table: "rly_RelationshipTable-module__table",
|
|
1715
|
-
head: "rly_RelationshipTable-module__head",
|
|
1716
|
-
cell: "rly_RelationshipTable-module__cell",
|
|
1717
|
-
endpoint: "rly_RelationshipTable-module__endpoint",
|
|
1718
|
-
identity: "rly_RelationshipTable-module__identity",
|
|
1719
|
-
relationship: "rly_RelationshipTable-module__relationship",
|
|
1720
|
-
actor: "rly_RelationshipTable-module__actor",
|
|
1721
|
-
endpointLink: "rly_RelationshipTable-module__endpointLink",
|
|
1722
|
-
title: "rly_RelationshipTable-module__title",
|
|
1723
|
-
missingLabel: "rly_RelationshipTable-module__missingLabel",
|
|
1724
|
-
kind: "rly_RelationshipTable-module__kind",
|
|
1725
|
-
reference: "rly_RelationshipTable-module__reference",
|
|
1726
|
-
direction: "rly_RelationshipTable-module__direction",
|
|
1727
|
-
evidence: "rly_RelationshipTable-module__evidence",
|
|
1728
|
-
fieldLabel: "rly_RelationshipTable-module__fieldLabel",
|
|
1729
|
-
missingEndpoint: "rly_RelationshipTable-module__missingEndpoint",
|
|
1730
|
-
arrow: "rly_RelationshipTable-module__arrow",
|
|
1731
|
-
body: "rly_RelationshipTable-module__body",
|
|
1732
|
-
row: "rly_RelationshipTable-module__row"
|
|
1733
|
-
}, q = (e) => a(dt, e), ft = ({ endpoint: n }) => {
|
|
1734
|
-
if (n.state === "missing") return /* @__PURE__ */ y("div", {
|
|
1735
|
-
className: s(q("endpoint"), q("missingEndpoint")),
|
|
1736
|
-
"data-rly-endpoint-state": "missing",
|
|
1737
|
-
children: [n.service === void 0 ? null : /* @__PURE__ */ v(z, {
|
|
1738
|
-
service: n.service,
|
|
1739
|
-
size: "compact"
|
|
1740
|
-
}), /* @__PURE__ */ y("span", {
|
|
1741
|
-
className: q("identity"),
|
|
1742
|
-
children: [/* @__PURE__ */ y("span", {
|
|
1743
|
-
className: q("missingLabel"),
|
|
1744
|
-
children: [/* @__PURE__ */ v(e, {
|
|
1745
|
-
decorative: !0,
|
|
1746
|
-
name: "alert",
|
|
1747
|
-
size: "small"
|
|
1748
|
-
}), n.label]
|
|
1749
|
-
}), /* @__PURE__ */ v("span", {
|
|
1750
|
-
className: q("reference"),
|
|
1751
|
-
children: n.reason
|
|
1752
|
-
})]
|
|
1753
|
-
})]
|
|
1754
|
-
});
|
|
1755
|
-
let r = /* @__PURE__ */ y("span", {
|
|
1756
|
-
className: q("identity"),
|
|
1757
|
-
children: [/* @__PURE__ */ v("span", {
|
|
1758
|
-
className: q("title"),
|
|
1759
|
-
children: n.title
|
|
1760
|
-
}), /* @__PURE__ */ v("span", {
|
|
1761
|
-
className: q("reference"),
|
|
1762
|
-
children: n.reference
|
|
1763
|
-
})]
|
|
1764
|
-
});
|
|
1765
|
-
return /* @__PURE__ */ y("div", {
|
|
1766
|
-
className: q("endpoint"),
|
|
1767
|
-
"data-rly-endpoint-id": n.id,
|
|
1768
|
-
"data-rly-endpoint-state": "present",
|
|
1769
|
-
children: [
|
|
1770
|
-
/* @__PURE__ */ v(z, {
|
|
1771
|
-
service: n.service,
|
|
1772
|
-
size: "compact"
|
|
1773
|
-
}),
|
|
1774
|
-
n.href === void 0 ? r : /* @__PURE__ */ v(t, {
|
|
1775
|
-
className: q("endpointLink"),
|
|
1776
|
-
href: n.href,
|
|
1777
|
-
children: r
|
|
1778
|
-
}),
|
|
1779
|
-
n.person === void 0 ? null : /* @__PURE__ */ v(M, {
|
|
1780
|
-
person: n.person,
|
|
1781
|
-
size: "compact"
|
|
1782
|
-
})
|
|
1783
|
-
]
|
|
1784
|
-
});
|
|
1785
|
-
}, pt = ({ className: e, emptyLabel: t = "No relationships recorded.", heading: n, relationships: i, ...a }) => {
|
|
1786
|
-
let o = r(n, "RelationshipTable heading"), c = r(t, "RelationshipTable emptyLabel");
|
|
1787
|
-
st(i);
|
|
1788
|
-
let u = `${h()}-heading`;
|
|
1789
|
-
return /* @__PURE__ */ y("section", {
|
|
1790
|
-
...a,
|
|
1791
|
-
"aria-labelledby": u,
|
|
1792
|
-
className: s(q("root"), e),
|
|
1793
|
-
children: [/* @__PURE__ */ v("h2", {
|
|
1794
|
-
className: q("heading"),
|
|
1795
|
-
id: u,
|
|
1796
|
-
children: o
|
|
1797
|
-
}), i.length === 0 ? /* @__PURE__ */ v("p", {
|
|
1798
|
-
className: q("empty"),
|
|
1799
|
-
children: c
|
|
1800
|
-
}) : /* @__PURE__ */ y("table", {
|
|
1801
|
-
"aria-labelledby": u,
|
|
1802
|
-
className: q("table"),
|
|
1803
|
-
children: [/* @__PURE__ */ v("thead", {
|
|
1804
|
-
className: q("head"),
|
|
1805
|
-
children: /* @__PURE__ */ y("tr", { children: [
|
|
1806
|
-
/* @__PURE__ */ v("th", {
|
|
1807
|
-
scope: "col",
|
|
1808
|
-
children: "Source"
|
|
1809
|
-
}),
|
|
1810
|
-
/* @__PURE__ */ v("th", {
|
|
1811
|
-
scope: "col",
|
|
1812
|
-
children: "Relationship"
|
|
1813
|
-
}),
|
|
1814
|
-
/* @__PURE__ */ v("th", {
|
|
1815
|
-
scope: "col",
|
|
1816
|
-
children: "Target"
|
|
1817
|
-
}),
|
|
1818
|
-
/* @__PURE__ */ v("th", {
|
|
1819
|
-
scope: "col",
|
|
1820
|
-
children: "Evidence"
|
|
1821
|
-
})
|
|
1822
|
-
] })
|
|
1823
|
-
}), /* @__PURE__ */ v("tbody", {
|
|
1824
|
-
className: q("body"),
|
|
1825
|
-
children: i.map((e) => {
|
|
1826
|
-
let t = rt[e.direction], n = G[e.lifecycle];
|
|
1827
|
-
return /* @__PURE__ */ y("tr", {
|
|
1828
|
-
className: q("row"),
|
|
1829
|
-
"data-rly-relationship-id": e.id,
|
|
1830
|
-
"data-rly-relationship-direction": e.direction,
|
|
1831
|
-
"data-rly-relationship-kind": e.kind,
|
|
1832
|
-
"data-rly-relationship-lifecycle": e.lifecycle,
|
|
1833
|
-
children: [
|
|
1834
|
-
/* @__PURE__ */ v("td", {
|
|
1835
|
-
className: q("cell"),
|
|
1836
|
-
"data-label": "Source",
|
|
1837
|
-
children: /* @__PURE__ */ v(ft, { endpoint: e.source })
|
|
1838
|
-
}),
|
|
1839
|
-
/* @__PURE__ */ v("td", {
|
|
1840
|
-
className: q("cell"),
|
|
1841
|
-
"data-label": "Relationship",
|
|
1842
|
-
children: /* @__PURE__ */ y("div", {
|
|
1843
|
-
className: q("relationship"),
|
|
1844
|
-
"data-rly-relationship-detail": "",
|
|
1845
|
-
children: [
|
|
1846
|
-
/* @__PURE__ */ y("span", {
|
|
1847
|
-
className: q("direction"),
|
|
1848
|
-
children: [/* @__PURE__ */ v("span", { children: t.label }), /* @__PURE__ */ v("span", {
|
|
1849
|
-
"aria-hidden": "true",
|
|
1850
|
-
className: q("arrow"),
|
|
1851
|
-
children: t.arrow
|
|
1852
|
-
})]
|
|
1853
|
-
}),
|
|
1854
|
-
/* @__PURE__ */ v("span", {
|
|
1855
|
-
className: q("kind"),
|
|
1856
|
-
children: e.kind
|
|
1857
|
-
}),
|
|
1858
|
-
/* @__PURE__ */ v(l, {
|
|
1859
|
-
icon: n.icon,
|
|
1860
|
-
label: n.label,
|
|
1861
|
-
size: "compact",
|
|
1862
|
-
tone: "neutral"
|
|
1863
|
-
}),
|
|
1864
|
-
e.actor === void 0 ? null : /* @__PURE__ */ y("div", {
|
|
1865
|
-
className: q("actor"),
|
|
1866
|
-
"data-rly-relationship-actor": e.actor.id,
|
|
1867
|
-
children: [/* @__PURE__ */ v("span", {
|
|
1868
|
-
className: q("fieldLabel"),
|
|
1869
|
-
children: "Actor"
|
|
1870
|
-
}), /* @__PURE__ */ v(M, {
|
|
1871
|
-
person: e.actor,
|
|
1872
|
-
size: "compact"
|
|
1873
|
-
})]
|
|
1874
|
-
})
|
|
1875
|
-
]
|
|
1876
|
-
})
|
|
1877
|
-
}),
|
|
1878
|
-
/* @__PURE__ */ v("td", {
|
|
1879
|
-
className: q("cell"),
|
|
1880
|
-
"data-label": "Target",
|
|
1881
|
-
children: /* @__PURE__ */ v(ft, { endpoint: e.target })
|
|
1882
|
-
}),
|
|
1883
|
-
/* @__PURE__ */ v("td", {
|
|
1884
|
-
className: q("cell"),
|
|
1885
|
-
"data-label": "Evidence",
|
|
1886
|
-
children: /* @__PURE__ */ v("span", {
|
|
1887
|
-
className: q("evidence"),
|
|
1888
|
-
"data-rly-relationship-evidence": "",
|
|
1889
|
-
children: e.evidence ?? "No evidence recorded."
|
|
1890
|
-
})
|
|
1891
|
-
})
|
|
1892
|
-
]
|
|
1893
|
-
}, e.id);
|
|
1894
|
-
})
|
|
1895
|
-
})]
|
|
1896
|
-
})]
|
|
1897
|
-
});
|
|
1898
|
-
}, mt = /^(?:--[A-Za-z0-9_\-\u0080-\uD7FF\uE000-\u{10ffff}]*|-?[A-Za-z_\u0080-\uD7FF\uE000-\u{10ffff}][A-Za-z0-9_\-\u0080-\uD7FF\uE000-\u{10ffff}]*)$/u, ht = /* @__PURE__ */ new Set([
|
|
1899
|
-
"auto",
|
|
1900
|
-
"default",
|
|
1901
|
-
"inherit",
|
|
1902
|
-
"initial",
|
|
1903
|
-
"match-element",
|
|
1904
|
-
"none",
|
|
1905
|
-
"revert",
|
|
1906
|
-
"revert-layer",
|
|
1907
|
-
"unset"
|
|
1908
|
-
]), gt = (e) => {
|
|
1909
|
-
if (e === void 0) return;
|
|
1910
|
-
let t = {
|
|
1911
|
-
relay: e.relay,
|
|
1912
|
-
verdict: e.verdict,
|
|
1913
|
-
version: e.version
|
|
1914
|
-
}, n = [
|
|
1915
|
-
["relay", t.relay],
|
|
1916
|
-
["verdict", t.verdict],
|
|
1917
|
-
["version", t.version]
|
|
1918
|
-
], i = /* @__PURE__ */ new Set();
|
|
1919
|
-
for (let [e, t] of n) {
|
|
1920
|
-
let n = r(t, `Release transition ${e} name`);
|
|
1921
|
-
if (n === "root" || ht.has(n.toLowerCase())) throw Error(`Release transition ${e} name must not use a reserved CSS value: ${n}`);
|
|
1922
|
-
if (!mt.test(n)) throw Error(`Release transition ${e} name must be a valid unescaped CSS custom identifier: ${n}`);
|
|
1923
|
-
if (i.has(n)) throw Error(`Release transition names must be unique: ${n}`);
|
|
1924
|
-
i.add(n);
|
|
1925
|
-
}
|
|
1926
|
-
return Object.freeze(t);
|
|
1927
|
-
}, _t = {
|
|
1928
|
-
blocked: !0,
|
|
1929
|
-
ready: !0,
|
|
1930
|
-
deploying: !0,
|
|
1931
|
-
building: !0,
|
|
1932
|
-
shipped: !0,
|
|
1933
|
-
held: !0,
|
|
1934
|
-
unknown: !0
|
|
1935
|
-
}, vt = (e) => {
|
|
1936
|
-
if (r(e.id, "Release presentation id"), r(e.version, "Release presentation version"), r(e.codename, "Release presentation codename"), r(e.algorithm, "Release presentation algorithm"), r(e.verdict, "Release presentation verdict"), r(e.reason, "Release presentation reason"), !Object.hasOwn(_t, e.state)) throw Error("Release presentation state must be supported");
|
|
1937
|
-
e.freshnessDateTime !== void 0 && (r(e.freshnessDateTime, "Release presentation freshnessDateTime"), r(e.freshnessTime, "Release presentation freshnessTime"));
|
|
1938
|
-
let t = /* @__PURE__ */ new Set();
|
|
1939
|
-
for (let n of e.facts) {
|
|
1940
|
-
let e = r(n.id, "Release presentation fact id");
|
|
1941
|
-
if (t.has(e)) throw Error(`Release presentation fact ids must be unique: ${e}`);
|
|
1942
|
-
t.add(e), r(n.label, `Release presentation fact label for ${e}`), r(n.value, `Release presentation fact value for ${e}`);
|
|
1943
|
-
}
|
|
1944
|
-
return e;
|
|
1945
|
-
}, yt = {
|
|
1946
|
-
root: "rly_ReleaseRelay-module__root",
|
|
1947
|
-
tiles: "rly_ReleaseRelay-module__tiles",
|
|
1948
|
-
handoff: "rly_ReleaseRelay-module__handoff",
|
|
1949
|
-
tile: "rly_ReleaseRelay-module__tile",
|
|
1950
|
-
glyph: "rly_ReleaseRelay-module__glyph",
|
|
1951
|
-
identity: "rly_ReleaseRelay-module__identity",
|
|
1952
|
-
codename: "rly_ReleaseRelay-module__codename",
|
|
1953
|
-
algorithm: "rly_ReleaseRelay-module__algorithm",
|
|
1954
|
-
compact: "rly_ReleaseRelay-module__compact",
|
|
1955
|
-
hero: "rly_ReleaseRelay-module__hero"
|
|
1956
|
-
}, J = (e) => a(yt, e), bt = o({
|
|
1957
|
-
0: { name: "orbit" },
|
|
1958
|
-
1: { name: "split" },
|
|
1959
|
-
2: { name: "brace" },
|
|
1960
|
-
3: { name: "wave" },
|
|
1961
|
-
4: { name: "gate" },
|
|
1962
|
-
5: { name: "fork" },
|
|
1963
|
-
6: { name: "bridge" },
|
|
1964
|
-
7: { name: "beacon" },
|
|
1965
|
-
8: { name: "loop" },
|
|
1966
|
-
9: { name: "pulse" },
|
|
1967
|
-
10: { name: "anchor" },
|
|
1968
|
-
11: { name: "ladder" },
|
|
1969
|
-
12: { name: "knot" },
|
|
1970
|
-
13: { name: "spark" },
|
|
1971
|
-
14: { name: "stack" },
|
|
1972
|
-
15: { name: "compass" }
|
|
1973
|
-
}), xt = o({ size: {
|
|
1974
|
-
compact: {
|
|
1975
|
-
className: J("compact"),
|
|
1976
|
-
purpose: "Release rows and compact previews",
|
|
1977
|
-
tokens: [
|
|
1978
|
-
"space-32",
|
|
1979
|
-
"space-8",
|
|
1980
|
-
"type-label"
|
|
1981
|
-
]
|
|
1982
|
-
},
|
|
1983
|
-
hero: {
|
|
1984
|
-
className: J("hero"),
|
|
1985
|
-
purpose: "Page-level release identity",
|
|
1986
|
-
tokens: [
|
|
1987
|
-
"space-48",
|
|
1988
|
-
"space-4",
|
|
1989
|
-
"space-8",
|
|
1990
|
-
"type-card-title"
|
|
1991
|
-
]
|
|
1992
|
-
}
|
|
1993
|
-
} }), St = o({ size: "compact" }), Ct = {
|
|
1994
|
-
0: "M12 4a8 8 0 1 1-6.9 4M5.1 8H9V4.1",
|
|
1995
|
-
1: "M5 5v4c0 2 1 3 3 3h8c2 0 3 1 3 3v4M12 12V5",
|
|
1996
|
-
2: "M9 4H7v5l-3 3 3 3v5h2M15 4h2v5l3 3-3 3v5h-2",
|
|
1997
|
-
3: "M3 9c3-4 6-4 9 0s6 4 9 0M3 15c3-4 6-4 9 0s6 4 9 0",
|
|
1998
|
-
4: "M5 19V8l7-4 7 4v11M9 19v-7h6v7",
|
|
1999
|
-
5: "M12 20V9M12 12 6 6M12 12l6-6M6 6v4M18 6v4",
|
|
2000
|
-
6: "M3 17h18M5 17v-5c4-5 10-5 14 0v5M8 17v-3M16 17v-3",
|
|
2001
|
-
7: "M12 3v3M5.6 5.6l2.1 2.1M18.4 5.6l-2.1 2.1M6 20h12l-2-9H8Z",
|
|
2002
|
-
8: "M8 8a4 4 0 0 1 8 0v8a4 4 0 0 1-8 0V8Zm0 4h8",
|
|
2003
|
-
9: "M3 13h4l2-6 4 12 2-6h6",
|
|
2004
|
-
10: "M12 3v15M8 7h8M5 14c0 4 3 7 7 7s7-3 7-7M5 14l-2 2M19 14l2 2",
|
|
2005
|
-
11: "M7 3v18M17 3v18M7 7h10M7 12h10M7 17h10",
|
|
2006
|
-
12: "M8 5a4 4 0 0 1 4 4v6a4 4 0 1 0 4-4H8a4 4 0 1 0 4 4V9a4 4 0 0 1 4-4",
|
|
2007
|
-
13: "M12 3v5M12 16v5M3 12h5M16 12h5M5.6 5.6l3.5 3.5M14.9 14.9l3.5 3.5M18.4 5.6l-3.5 3.5M9.1 14.9l-3.5 3.5",
|
|
2008
|
-
14: "m4 8 8-4 8 4-8 4Zm0 4 8 4 8-4M4 16l8 4 8-4",
|
|
2009
|
-
15: "m12 3 3 6 6 3-6 3-3 6-3-6-6-3 6-3Zm0 6v6M9 12h6"
|
|
2010
|
-
}, wt = (e) => {
|
|
2011
|
-
if (e.length !== 3) throw Error("ReleaseRelay symbolIndices must contain exactly three indices");
|
|
2012
|
-
let t = /* @__PURE__ */ new Set();
|
|
2013
|
-
for (let n of e) {
|
|
2014
|
-
if (!Number.isInteger(n) || n < 0 || n > 15) throw Error("ReleaseRelay symbol indices must be integers from 0 through 15");
|
|
2015
|
-
if (t.has(n)) throw Error("ReleaseRelay symbol indices must be distinct");
|
|
2016
|
-
t.add(n);
|
|
2017
|
-
}
|
|
2018
|
-
return e;
|
|
2019
|
-
}, Tt = ({ algorithm: e, className: t, codename: n, size: i = "compact", symbolIndices: a, ...o }) => {
|
|
2020
|
-
let c = r(e, "ReleaseRelay algorithm"), l = r(n, "ReleaseRelay codename"), u = wt(a), d = `Release relay, ${l}, symbols ${u.map((e) => bt[e].name).join(", ")}.`;
|
|
2021
|
-
return /* @__PURE__ */ y("figure", {
|
|
2022
|
-
...o,
|
|
2023
|
-
className: s(J("root"), xt.size[i].className, t),
|
|
2024
|
-
"data-rly-release-relay-size": i,
|
|
2025
|
-
children: [/* @__PURE__ */ y("span", {
|
|
2026
|
-
"aria-label": d,
|
|
2027
|
-
className: J("tiles"),
|
|
2028
|
-
role: "img",
|
|
2029
|
-
children: [/* @__PURE__ */ v("span", {
|
|
2030
|
-
"aria-hidden": "true",
|
|
2031
|
-
className: J("handoff"),
|
|
2032
|
-
"data-rly-release-relay-handoff": ""
|
|
2033
|
-
}), u.map((e, t) => /* @__PURE__ */ v("span", {
|
|
2034
|
-
"aria-hidden": "true",
|
|
2035
|
-
className: J("tile"),
|
|
2036
|
-
"data-rly-release-relay-position": t,
|
|
2037
|
-
"data-rly-release-symbol-index": e,
|
|
2038
|
-
"data-rly-release-symbol-name": bt[e].name,
|
|
2039
|
-
children: /* @__PURE__ */ v("svg", {
|
|
2040
|
-
className: J("glyph"),
|
|
2041
|
-
focusable: "false",
|
|
2042
|
-
viewBox: "0 0 24 24",
|
|
2043
|
-
children: /* @__PURE__ */ v("path", {
|
|
2044
|
-
d: Ct[e],
|
|
2045
|
-
fill: "none",
|
|
2046
|
-
stroke: "currentColor",
|
|
2047
|
-
strokeLinecap: "round",
|
|
2048
|
-
strokeLinejoin: "round",
|
|
2049
|
-
strokeWidth: "1.7",
|
|
2050
|
-
vectorEffect: "non-scaling-stroke"
|
|
2051
|
-
})
|
|
2052
|
-
})
|
|
2053
|
-
}, e))]
|
|
2054
|
-
}), /* @__PURE__ */ y("figcaption", {
|
|
2055
|
-
className: J("identity"),
|
|
2056
|
-
children: [/* @__PURE__ */ v("span", {
|
|
2057
|
-
className: J("codename"),
|
|
2058
|
-
children: l
|
|
2059
|
-
}), /* @__PURE__ */ y("span", {
|
|
2060
|
-
className: J("algorithm"),
|
|
2061
|
-
children: ["Identity algorithm: ", c]
|
|
2062
|
-
})]
|
|
2063
|
-
})]
|
|
2064
|
-
});
|
|
2065
|
-
}, Et = {
|
|
2066
|
-
body: "rly_ReleasePreview-module__body",
|
|
2067
|
-
summary: "rly_ReleasePreview-module__summary",
|
|
2068
|
-
releaseMeta: "rly_ReleasePreview-module__releaseMeta",
|
|
2069
|
-
personGroup: "rly_ReleasePreview-module__personGroup",
|
|
2070
|
-
fact: "rly_ReleasePreview-module__fact",
|
|
2071
|
-
dialogSurface: "rly_ReleasePreview-module__dialogSurface",
|
|
2072
|
-
dialogFrame: "rly_ReleasePreview-module__dialogFrame",
|
|
2073
|
-
dialogScroll: "rly_ReleasePreview-module__dialogScroll",
|
|
2074
|
-
identityRow: "rly_ReleasePreview-module__identityRow",
|
|
2075
|
-
version: "rly_ReleasePreview-module__version",
|
|
2076
|
-
people: "rly_ReleasePreview-module__people",
|
|
2077
|
-
eyebrow: "rly_ReleasePreview-module__eyebrow",
|
|
2078
|
-
unassigned: "rly_ReleasePreview-module__unassigned",
|
|
2079
|
-
facts: "rly_ReleasePreview-module__facts",
|
|
2080
|
-
slot: "rly_ReleasePreview-module__slot",
|
|
2081
|
-
dialogFooter: "rly_ReleasePreview-module__dialogFooter",
|
|
2082
|
-
sheetFooter: "rly_ReleasePreview-module__sheetFooter",
|
|
2083
|
-
dialogClose: "rly_ReleasePreview-module__dialogClose",
|
|
2084
|
-
fullViewButton: "rly_ReleasePreview-module__fullViewButton"
|
|
2085
|
-
}, Y = (e) => a(Et, e), Dt = ({ agentEntry: e, collaborators: t, entryMotion: n = "intrinsic", evidence: i, onOpenChange: a, onOpenFullView: o, open: s, openFullViewLabel: l = "Open full view", presentation: u = "dialog", primaryAction: d, release: p, stages: h, transitionNames: _, workset: b }) => {
|
|
2086
|
-
let x = vt(p), S = gt(_), C = r(l, "ReleasePreview openFullViewLabel"), w = g(null), T = x.freshnessDateTime === void 0 ? /* @__PURE__ */ v(I, { state: x.freshness }) : /* @__PURE__ */ v(I, {
|
|
2087
|
-
dateTime: x.freshnessDateTime,
|
|
2088
|
-
state: x.freshness,
|
|
2089
|
-
time: x.freshnessTime
|
|
2090
|
-
}), E = `Release preview: ${x.version} ${x.codename}`, D = /* @__PURE__ */ y("div", {
|
|
2091
|
-
className: Y("body"),
|
|
2092
|
-
"data-rly-release-preview-presentation": u,
|
|
2093
|
-
"data-rly-release-state": x.state,
|
|
2094
|
-
children: [
|
|
2095
|
-
/* @__PURE__ */ y("section", {
|
|
2096
|
-
"aria-label": "Release summary",
|
|
2097
|
-
className: Y("summary"),
|
|
2098
|
-
"data-rly-release-preview-summary": "",
|
|
2099
|
-
ref: w,
|
|
2100
|
-
tabIndex: -1,
|
|
2101
|
-
children: [
|
|
2102
|
-
/* @__PURE__ */ y("div", {
|
|
2103
|
-
className: Y("identityRow"),
|
|
2104
|
-
children: [/* @__PURE__ */ v(Tt, {
|
|
2105
|
-
algorithm: x.algorithm,
|
|
2106
|
-
codename: x.codename,
|
|
2107
|
-
"data-rly-release-transition-name": S?.relay,
|
|
2108
|
-
"data-rly-release-transition-part": "relay",
|
|
2109
|
-
size: "hero",
|
|
2110
|
-
style: S === void 0 ? void 0 : { viewTransitionName: S.relay },
|
|
2111
|
-
symbolIndices: x.symbolIndices
|
|
2112
|
-
}), /* @__PURE__ */ y("div", {
|
|
2113
|
-
className: Y("releaseMeta"),
|
|
2114
|
-
children: [/* @__PURE__ */ v("p", {
|
|
2115
|
-
className: Y("version"),
|
|
2116
|
-
"data-rly-release-transition-name": S?.version,
|
|
2117
|
-
"data-rly-release-transition-part": "version",
|
|
2118
|
-
style: S === void 0 ? void 0 : { viewTransitionName: S.version },
|
|
2119
|
-
children: x.version
|
|
2120
|
-
}), T]
|
|
2121
|
-
})]
|
|
2122
|
-
}),
|
|
2123
|
-
/* @__PURE__ */ y("div", {
|
|
2124
|
-
className: Y("people"),
|
|
2125
|
-
children: [/* @__PURE__ */ y("div", {
|
|
2126
|
-
className: Y("personGroup"),
|
|
2127
|
-
children: [/* @__PURE__ */ v("span", {
|
|
2128
|
-
className: Y("eyebrow"),
|
|
2129
|
-
children: "Owner"
|
|
2130
|
-
}), x.owner === void 0 ? /* @__PURE__ */ v("span", {
|
|
2131
|
-
className: Y("unassigned"),
|
|
2132
|
-
"data-rly-release-owner": "unassigned",
|
|
2133
|
-
children: "Unassigned"
|
|
2134
|
-
}) : /* @__PURE__ */ v(M, { person: x.owner })]
|
|
2135
|
-
}), /* @__PURE__ */ y("div", {
|
|
2136
|
-
className: Y("personGroup"),
|
|
2137
|
-
children: [/* @__PURE__ */ v("span", {
|
|
2138
|
-
className: Y("eyebrow"),
|
|
2139
|
-
children: "Approver"
|
|
2140
|
-
}), x.approver === void 0 ? /* @__PURE__ */ v("span", {
|
|
2141
|
-
className: Y("unassigned"),
|
|
2142
|
-
"data-rly-release-approver": "unassigned",
|
|
2143
|
-
children: "Unassigned"
|
|
2144
|
-
}) : /* @__PURE__ */ v(M, { person: x.approver })]
|
|
2145
|
-
})]
|
|
2146
|
-
}),
|
|
2147
|
-
/* @__PURE__ */ v(Ue, {
|
|
2148
|
-
"data-rly-release-transition-name": S?.verdict,
|
|
2149
|
-
"data-rly-release-transition-part": "verdict",
|
|
2150
|
-
reason: x.reason,
|
|
2151
|
-
style: S === void 0 ? void 0 : { viewTransitionName: S.verdict },
|
|
2152
|
-
tone: x.tone,
|
|
2153
|
-
verdict: x.verdict
|
|
2154
|
-
}),
|
|
2155
|
-
/* @__PURE__ */ v("dl", {
|
|
2156
|
-
className: Y("facts"),
|
|
2157
|
-
children: x.facts.map((e) => /* @__PURE__ */ y("div", {
|
|
2158
|
-
className: Y("fact"),
|
|
2159
|
-
children: [/* @__PURE__ */ v("dt", { children: e.label }), /* @__PURE__ */ v("dd", { children: e.value })]
|
|
2160
|
-
}, e.id))
|
|
2161
|
-
})
|
|
2162
|
-
]
|
|
2163
|
-
}),
|
|
2164
|
-
t === void 0 ? null : /* @__PURE__ */ v("div", {
|
|
2165
|
-
className: Y("slot"),
|
|
2166
|
-
"data-rly-release-preview-slot": "collaborators",
|
|
2167
|
-
children: t
|
|
2168
|
-
}),
|
|
2169
|
-
/* @__PURE__ */ v("div", {
|
|
2170
|
-
className: Y("slot"),
|
|
2171
|
-
"data-rly-release-preview-slot": "primary-action",
|
|
2172
|
-
children: d
|
|
2173
|
-
}),
|
|
2174
|
-
/* @__PURE__ */ v("div", {
|
|
2175
|
-
className: Y("slot"),
|
|
2176
|
-
"data-rly-release-preview-slot": "stages",
|
|
2177
|
-
children: h
|
|
2178
|
-
}),
|
|
2179
|
-
/* @__PURE__ */ v("div", {
|
|
2180
|
-
className: Y("slot"),
|
|
2181
|
-
"data-rly-release-preview-slot": "workset",
|
|
2182
|
-
children: b
|
|
2183
|
-
}),
|
|
2184
|
-
/* @__PURE__ */ v("div", {
|
|
2185
|
-
className: Y("slot"),
|
|
2186
|
-
"data-rly-release-preview-slot": "evidence",
|
|
2187
|
-
children: i
|
|
2188
|
-
}),
|
|
2189
|
-
/* @__PURE__ */ v("div", {
|
|
2190
|
-
className: Y("slot"),
|
|
2191
|
-
"data-rly-release-preview-slot": "agent-entry",
|
|
2192
|
-
children: e
|
|
2193
|
-
})
|
|
2194
|
-
]
|
|
2195
|
-
}), ee = /* @__PURE__ */ v(c, {
|
|
2196
|
-
className: Y("fullViewButton"),
|
|
2197
|
-
onClick: o,
|
|
2198
|
-
size: "default",
|
|
2199
|
-
variant: "secondary",
|
|
2200
|
-
children: C
|
|
2201
|
-
});
|
|
2202
|
-
return u === "sheet" ? /* @__PURE__ */ v(m.Root, {
|
|
2203
|
-
onOpenChange: a,
|
|
2204
|
-
open: s,
|
|
2205
|
-
children: /* @__PURE__ */ y(m.Content, {
|
|
2206
|
-
entryMotion: n,
|
|
2207
|
-
initialFocusRef: w,
|
|
2208
|
-
title: E,
|
|
2209
|
-
children: [/* @__PURE__ */ v(m.Body, {
|
|
2210
|
-
"data-rly-release-preview-scroll": "sheet",
|
|
2211
|
-
children: D
|
|
2212
|
-
}), /* @__PURE__ */ v(m.Footer, {
|
|
2213
|
-
className: Y("sheetFooter"),
|
|
2214
|
-
"data-rly-release-preview-footer": "sheet",
|
|
2215
|
-
children: ee
|
|
2216
|
-
})]
|
|
2217
|
-
})
|
|
2218
|
-
}) : /* @__PURE__ */ v(f.Root, {
|
|
2219
|
-
onOpenChange: a,
|
|
2220
|
-
open: s,
|
|
2221
|
-
children: /* @__PURE__ */ v(f.Content, {
|
|
2222
|
-
className: Y("dialogSurface"),
|
|
2223
|
-
entryMotion: n,
|
|
2224
|
-
initialFocusRef: w,
|
|
2225
|
-
size: "wide",
|
|
2226
|
-
title: E,
|
|
2227
|
-
children: /* @__PURE__ */ y("div", {
|
|
2228
|
-
className: Y("dialogFrame"),
|
|
2229
|
-
children: [
|
|
2230
|
-
/* @__PURE__ */ v("div", {
|
|
2231
|
-
className: Y("dialogClose"),
|
|
2232
|
-
children: /* @__PURE__ */ v(f.Close, {
|
|
2233
|
-
size: "compact",
|
|
2234
|
-
variant: "quiet",
|
|
2235
|
-
children: "Close preview"
|
|
2236
|
-
})
|
|
2237
|
-
}),
|
|
2238
|
-
/* @__PURE__ */ v("div", {
|
|
2239
|
-
className: Y("dialogScroll"),
|
|
2240
|
-
"data-rly-release-preview-scroll": "dialog",
|
|
2241
|
-
children: D
|
|
2242
|
-
}),
|
|
2243
|
-
/* @__PURE__ */ v("footer", {
|
|
2244
|
-
className: Y("dialogFooter"),
|
|
2245
|
-
"data-rly-release-preview-footer": "dialog",
|
|
2246
|
-
children: ee
|
|
2247
|
-
})
|
|
2248
|
-
]
|
|
2249
|
-
})
|
|
2250
|
-
})
|
|
2251
|
-
});
|
|
2252
|
-
}, Ot = {
|
|
2253
|
-
root: "rly_ReleaseRow-module__root",
|
|
2254
|
-
identity: "rly_ReleaseRow-module__identity",
|
|
2255
|
-
verdictBlock: "rly_ReleaseRow-module__verdictBlock",
|
|
2256
|
-
people: "rly_ReleaseRow-module__people",
|
|
2257
|
-
actions: "rly_ReleaseRow-module__actions",
|
|
2258
|
-
personGroup: "rly_ReleaseRow-module__personGroup",
|
|
2259
|
-
fact: "rly_ReleaseRow-module__fact",
|
|
2260
|
-
version: "rly_ReleaseRow-module__version",
|
|
2261
|
-
verdict: "rly_ReleaseRow-module__verdict",
|
|
2262
|
-
reason: "rly_ReleaseRow-module__reason",
|
|
2263
|
-
eyebrow: "rly_ReleaseRow-module__eyebrow",
|
|
2264
|
-
unassigned: "rly_ReleaseRow-module__unassigned",
|
|
2265
|
-
facts: "rly_ReleaseRow-module__facts",
|
|
2266
|
-
agentEntry: "rly_ReleaseRow-module__agentEntry",
|
|
2267
|
-
previewButton: "rly_ReleaseRow-module__previewButton"
|
|
2268
|
-
}, X = (e) => a(Ot, e), kt = ({ agentEntry: e, className: t, onPreview: n, previewLabel: i = "Preview release", release: a, transitionNames: o, ...l }) => {
|
|
2269
|
-
let u = vt(a), d = gt(o), f = r(i, "ReleaseRow previewLabel"), p = `rly-release-row-verdict-${h()}`, m = u.freshnessDateTime === void 0 ? /* @__PURE__ */ v(I, {
|
|
2270
|
-
size: "compact",
|
|
2271
|
-
state: u.freshness
|
|
2272
|
-
}) : /* @__PURE__ */ v(I, {
|
|
2273
|
-
dateTime: u.freshnessDateTime,
|
|
2274
|
-
size: "compact",
|
|
2275
|
-
state: u.freshness,
|
|
2276
|
-
time: u.freshnessTime
|
|
2277
|
-
});
|
|
2278
|
-
return /* @__PURE__ */ y("article", {
|
|
2279
|
-
...l,
|
|
2280
|
-
className: s(X("root"), t),
|
|
2281
|
-
"data-rly-release-id": u.id,
|
|
2282
|
-
"data-rly-release-state": u.state,
|
|
2283
|
-
children: [
|
|
2284
|
-
/* @__PURE__ */ y("div", {
|
|
2285
|
-
className: X("identity"),
|
|
2286
|
-
children: [
|
|
2287
|
-
/* @__PURE__ */ v(Tt, {
|
|
2288
|
-
algorithm: u.algorithm,
|
|
2289
|
-
codename: u.codename,
|
|
2290
|
-
"data-rly-release-transition-name": d?.relay,
|
|
2291
|
-
"data-rly-release-transition-part": "relay",
|
|
2292
|
-
size: "compact",
|
|
2293
|
-
style: d === void 0 ? void 0 : { viewTransitionName: d.relay },
|
|
2294
|
-
symbolIndices: u.symbolIndices
|
|
2295
|
-
}),
|
|
2296
|
-
/* @__PURE__ */ v("p", {
|
|
2297
|
-
className: X("version"),
|
|
2298
|
-
"data-rly-release-transition-name": d?.version,
|
|
2299
|
-
"data-rly-release-transition-part": "version",
|
|
2300
|
-
style: d === void 0 ? void 0 : { viewTransitionName: d.version },
|
|
2301
|
-
children: u.version
|
|
2302
|
-
}),
|
|
2303
|
-
m
|
|
2304
|
-
]
|
|
2305
|
-
}),
|
|
2306
|
-
/* @__PURE__ */ y("section", {
|
|
2307
|
-
"aria-labelledby": p,
|
|
2308
|
-
className: X("verdictBlock"),
|
|
2309
|
-
"data-rly-release-transition-name": d?.verdict,
|
|
2310
|
-
"data-rly-release-transition-part": "verdict",
|
|
2311
|
-
style: d === void 0 ? void 0 : { viewTransitionName: d.verdict },
|
|
2312
|
-
children: [/* @__PURE__ */ v("h2", {
|
|
2313
|
-
className: X("verdict"),
|
|
2314
|
-
id: p,
|
|
2315
|
-
children: u.verdict
|
|
2316
|
-
}), /* @__PURE__ */ v("p", {
|
|
2317
|
-
className: X("reason"),
|
|
2318
|
-
children: u.reason
|
|
2319
|
-
})]
|
|
2320
|
-
}),
|
|
2321
|
-
/* @__PURE__ */ y("div", {
|
|
2322
|
-
className: X("people"),
|
|
2323
|
-
children: [/* @__PURE__ */ y("div", {
|
|
2324
|
-
className: X("personGroup"),
|
|
2325
|
-
children: [/* @__PURE__ */ v("span", {
|
|
2326
|
-
className: X("eyebrow"),
|
|
2327
|
-
children: "Owner"
|
|
2328
|
-
}), u.owner === void 0 ? /* @__PURE__ */ v("span", {
|
|
2329
|
-
className: X("unassigned"),
|
|
2330
|
-
"data-rly-release-owner": "unassigned",
|
|
2331
|
-
children: "Unassigned"
|
|
2332
|
-
}) : /* @__PURE__ */ v(M, {
|
|
2333
|
-
person: u.owner,
|
|
2334
|
-
size: "compact"
|
|
2335
|
-
})]
|
|
2336
|
-
}), u.approver === void 0 ? null : /* @__PURE__ */ y("div", {
|
|
2337
|
-
className: X("personGroup"),
|
|
2338
|
-
children: [/* @__PURE__ */ v("span", {
|
|
2339
|
-
className: X("eyebrow"),
|
|
2340
|
-
children: "Approver"
|
|
2341
|
-
}), /* @__PURE__ */ v(M, {
|
|
2342
|
-
person: u.approver,
|
|
2343
|
-
size: "compact"
|
|
2344
|
-
})]
|
|
2345
|
-
})]
|
|
2346
|
-
}),
|
|
2347
|
-
/* @__PURE__ */ v("dl", {
|
|
2348
|
-
className: X("facts"),
|
|
2349
|
-
children: u.facts.map((e) => /* @__PURE__ */ y("div", {
|
|
2350
|
-
className: X("fact"),
|
|
2351
|
-
"data-rly-release-fact": e.id,
|
|
2352
|
-
children: [/* @__PURE__ */ v("dt", { children: e.label }), /* @__PURE__ */ v("dd", { children: e.value })]
|
|
2353
|
-
}, e.id))
|
|
2354
|
-
}),
|
|
2355
|
-
/* @__PURE__ */ y("div", {
|
|
2356
|
-
className: X("actions"),
|
|
2357
|
-
children: [/* @__PURE__ */ v(c, {
|
|
2358
|
-
className: X("previewButton"),
|
|
2359
|
-
onClick: n,
|
|
2360
|
-
size: "default",
|
|
2361
|
-
children: f
|
|
2362
|
-
}), e === void 0 ? null : /* @__PURE__ */ v("div", {
|
|
2363
|
-
className: X("agentEntry"),
|
|
2364
|
-
children: e
|
|
2365
|
-
})]
|
|
2366
|
-
})
|
|
2367
|
-
]
|
|
2368
|
-
});
|
|
2369
|
-
}, At = {
|
|
2370
|
-
root: "rly_StageRail-module__root",
|
|
2371
|
-
heading: "rly_StageRail-module__heading",
|
|
2372
|
-
list: "rly_StageRail-module__list",
|
|
2373
|
-
item: "rly_StageRail-module__item",
|
|
2374
|
-
marker: "rly_StageRail-module__marker",
|
|
2375
|
-
connector: "rly_StageRail-module__connector",
|
|
2376
|
-
content: "rly_StageRail-module__content",
|
|
2377
|
-
name: "rly_StageRail-module__name",
|
|
2378
|
-
reason: "rly_StageRail-module__reason",
|
|
2379
|
-
empty: "rly_StageRail-module__empty",
|
|
2380
|
-
compact: "rly_StageRail-module__compact",
|
|
2381
|
-
defaultSize: "rly_StageRail-module__defaultSize",
|
|
2382
|
-
long: "rly_StageRail-module__long"
|
|
2383
|
-
}, Z = (e) => a(At, e), jt = o({ size: {
|
|
2384
|
-
compact: {
|
|
2385
|
-
className: Z("compact"),
|
|
2386
|
-
purpose: "Dense release and entity stage summaries",
|
|
2387
|
-
tokens: [
|
|
2388
|
-
"space-24",
|
|
2389
|
-
"space-8",
|
|
2390
|
-
"type-label",
|
|
2391
|
-
"type-meta"
|
|
2392
|
-
]
|
|
2393
|
-
},
|
|
2394
|
-
default: {
|
|
2395
|
-
className: Z("defaultSize"),
|
|
2396
|
-
purpose: "Standard stage progression with supporting context",
|
|
2397
|
-
tokens: [
|
|
2398
|
-
"space-24",
|
|
2399
|
-
"space-12",
|
|
2400
|
-
"type-card-title",
|
|
2401
|
-
"type-body"
|
|
2402
|
-
]
|
|
2403
|
-
}
|
|
2404
|
-
} }), Mt = o({ size: "default" }), Nt = (e) => {
|
|
2405
|
-
let t = /* @__PURE__ */ new Set();
|
|
2406
|
-
for (let n of e) {
|
|
2407
|
-
let e = r(n.id, "StageRail stage id");
|
|
2408
|
-
if (r(n.name, `StageRail name for ${e}`), r(n.state, `StageRail state for ${e}`), n.reason !== void 0 && r(n.reason, `StageRail reason for ${e}`), t.has(e)) throw Error(`StageRail stage ids must be unique: ${e}`);
|
|
2409
|
-
t.add(e);
|
|
2410
|
-
}
|
|
2411
|
-
return e;
|
|
2412
|
-
}, Pt = ({ className: e, emptyLabel: t = "No stages recorded.", heading: n, size: i = "default", stages: a, ...o }) => {
|
|
2413
|
-
let c = r(n, "StageRail heading"), u = r(t, "StageRail emptyLabel"), d = Nt(a), f = `rly-stage-rail-${h()}`;
|
|
2414
|
-
return /* @__PURE__ */ y("section", {
|
|
2415
|
-
...o,
|
|
2416
|
-
"aria-labelledby": f,
|
|
2417
|
-
className: s(Z("root"), jt.size[i].className, d.length > 6 && Z("long"), e),
|
|
2418
|
-
"data-rly-stage-rail-size": i,
|
|
2419
|
-
children: [/* @__PURE__ */ v("h2", {
|
|
2420
|
-
className: Z("heading"),
|
|
2421
|
-
id: f,
|
|
2422
|
-
children: c
|
|
2423
|
-
}), d.length === 0 ? /* @__PURE__ */ v("p", {
|
|
2424
|
-
className: Z("empty"),
|
|
2425
|
-
children: u
|
|
2426
|
-
}) : /* @__PURE__ */ v("ol", {
|
|
2427
|
-
className: Z("list"),
|
|
2428
|
-
children: d.map((e, t) => /* @__PURE__ */ y("li", {
|
|
2429
|
-
className: Z("item"),
|
|
2430
|
-
"data-rly-stage-id": e.id,
|
|
2431
|
-
children: [
|
|
2432
|
-
/* @__PURE__ */ v("span", {
|
|
2433
|
-
"aria-hidden": "true",
|
|
2434
|
-
className: Z("marker"),
|
|
2435
|
-
"data-rly-stage-marker": "",
|
|
2436
|
-
children: t + 1
|
|
2437
|
-
}),
|
|
2438
|
-
t === d.length - 1 ? null : /* @__PURE__ */ v("span", {
|
|
2439
|
-
"aria-hidden": "true",
|
|
2440
|
-
className: Z("connector"),
|
|
2441
|
-
"data-rly-stage-connector": ""
|
|
2442
|
-
}),
|
|
2443
|
-
/* @__PURE__ */ y("div", {
|
|
2444
|
-
className: Z("content"),
|
|
2445
|
-
children: [
|
|
2446
|
-
/* @__PURE__ */ v("h3", {
|
|
2447
|
-
className: Z("name"),
|
|
2448
|
-
children: e.name
|
|
2449
|
-
}),
|
|
2450
|
-
/* @__PURE__ */ v(l, {
|
|
2451
|
-
label: e.state,
|
|
2452
|
-
size: i === "compact" ? "compact" : "default",
|
|
2453
|
-
tone: e.tone
|
|
2454
|
-
}),
|
|
2455
|
-
e.reason === void 0 ? null : /* @__PURE__ */ v("p", {
|
|
2456
|
-
className: Z("reason"),
|
|
2457
|
-
children: e.reason
|
|
2458
|
-
}),
|
|
2459
|
-
e.owner === void 0 ? null : /* @__PURE__ */ v(M, {
|
|
2460
|
-
person: e.owner,
|
|
2461
|
-
size: i
|
|
2462
|
-
})
|
|
2463
|
-
]
|
|
2464
|
-
})
|
|
2465
|
-
]
|
|
2466
|
-
}, e.id))
|
|
2467
|
-
})]
|
|
2468
|
-
});
|
|
2469
|
-
}, Ft = {
|
|
2470
|
-
root: "rly_TimelineRow-module__root",
|
|
2471
|
-
time: "rly_TimelineRow-module__time",
|
|
2472
|
-
marker: "rly_TimelineRow-module__marker",
|
|
2473
|
-
dot: "rly_TimelineRow-module__dot",
|
|
2474
|
-
connector: "rly_TimelineRow-module__connector",
|
|
2475
|
-
content: "rly_TimelineRow-module__content",
|
|
2476
|
-
meta: "rly_TimelineRow-module__meta",
|
|
2477
|
-
title: "rly_TimelineRow-module__title",
|
|
2478
|
-
link: "rly_TimelineRow-module__link",
|
|
2479
|
-
detail: "rly_TimelineRow-module__detail",
|
|
2480
|
-
actorKind: "rly_TimelineRow-module__actorKind",
|
|
2481
|
-
actor: "rly_TimelineRow-module__actor"
|
|
2482
|
-
}, Q = (e) => a(Ft, e), It = {
|
|
2483
|
-
human: "Human",
|
|
2484
|
-
agent: "Agent",
|
|
2485
|
-
plugin: "Plugin",
|
|
2486
|
-
system: "System"
|
|
2487
|
-
}, Lt = (e) => {
|
|
2488
|
-
if (r(e.id, "TimelineRow event id"), r(e.title, "TimelineRow event title"), r(e.detail, "TimelineRow event detail"), r(e.dateTime, "TimelineRow event dateTime"), r(e.time, "TimelineRow event time"), e.href !== void 0 && r(e.href, "TimelineRow event href"), !Object.hasOwn(It, e.actorKind)) throw Error("TimelineRow event actorKind must be human, agent, plugin, or system");
|
|
2489
|
-
return e;
|
|
2490
|
-
}, Rt = ({ className: e, continued: n, event: r, ...i }) => {
|
|
2491
|
-
let a = Lt(r), o = `rly-timeline-row-${h()}`, c = /* @__PURE__ */ v("h2", {
|
|
2492
|
-
className: Q("title"),
|
|
2493
|
-
id: o,
|
|
2494
|
-
children: a.title
|
|
2495
|
-
});
|
|
2496
|
-
return /* @__PURE__ */ y("li", {
|
|
2497
|
-
...i,
|
|
2498
|
-
className: s(Q("root"), e),
|
|
2499
|
-
"data-rly-timeline-actor": a.actorKind,
|
|
2500
|
-
"data-rly-timeline-event-id": a.id,
|
|
2501
|
-
children: [
|
|
2502
|
-
/* @__PURE__ */ v("time", {
|
|
2503
|
-
className: Q("time"),
|
|
2504
|
-
dateTime: a.dateTime,
|
|
2505
|
-
children: a.time
|
|
2506
|
-
}),
|
|
2507
|
-
/* @__PURE__ */ y("span", {
|
|
2508
|
-
"aria-hidden": "true",
|
|
2509
|
-
className: Q("marker"),
|
|
2510
|
-
children: [/* @__PURE__ */ v("span", { className: Q("dot") }), n ? /* @__PURE__ */ v("span", {
|
|
2511
|
-
className: Q("connector"),
|
|
2512
|
-
"data-rly-timeline-connector": ""
|
|
2513
|
-
}) : null]
|
|
2514
|
-
}),
|
|
2515
|
-
/* @__PURE__ */ y("article", {
|
|
2516
|
-
"aria-labelledby": o,
|
|
2517
|
-
className: Q("content"),
|
|
2518
|
-
children: [a.href === void 0 ? c : /* @__PURE__ */ v(t, {
|
|
2519
|
-
className: Q("link"),
|
|
2520
|
-
href: a.href,
|
|
2521
|
-
children: c
|
|
2522
|
-
}), /* @__PURE__ */ v("p", {
|
|
2523
|
-
className: Q("detail"),
|
|
2524
|
-
children: a.detail
|
|
2525
|
-
})]
|
|
2526
|
-
}),
|
|
2527
|
-
/* @__PURE__ */ y("div", {
|
|
2528
|
-
className: Q("meta"),
|
|
2529
|
-
children: [
|
|
2530
|
-
/* @__PURE__ */ v("span", {
|
|
2531
|
-
className: Q("actorKind"),
|
|
2532
|
-
children: It[a.actorKind]
|
|
2533
|
-
}),
|
|
2534
|
-
a.service === void 0 ? null : /* @__PURE__ */ v(z, {
|
|
2535
|
-
service: a.service,
|
|
2536
|
-
size: "compact"
|
|
2537
|
-
}),
|
|
2538
|
-
a.actor === void 0 ? null : /* @__PURE__ */ v("div", {
|
|
2539
|
-
className: Q("actor"),
|
|
2540
|
-
children: a.actor
|
|
2541
|
-
})
|
|
2542
|
-
]
|
|
2543
|
-
})
|
|
2544
|
-
]
|
|
2545
|
-
});
|
|
2546
|
-
}, zt = {
|
|
2547
|
-
root: "rly_WorksetCard-module__root",
|
|
2548
|
-
heading: "rly_WorksetCard-module__heading",
|
|
2549
|
-
dimensions: "rly_WorksetCard-module__dimensions",
|
|
2550
|
-
dimension: "rly_WorksetCard-module__dimension",
|
|
2551
|
-
dimensionHeading: "rly_WorksetCard-module__dimensionHeading",
|
|
2552
|
-
gaps: "rly_WorksetCard-module__gaps",
|
|
2553
|
-
list: "rly_WorksetCard-module__list",
|
|
2554
|
-
gapList: "rly_WorksetCard-module__gapList",
|
|
2555
|
-
keyList: "rly_WorksetCard-module__keyList",
|
|
2556
|
-
item: "rly_WorksetCard-module__item",
|
|
2557
|
-
gap: "rly_WorksetCard-module__gap",
|
|
2558
|
-
identity: "rly_WorksetCard-module__identity",
|
|
2559
|
-
link: "rly_WorksetCard-module__link",
|
|
2560
|
-
itemTitle: "rly_WorksetCard-module__itemTitle",
|
|
2561
|
-
reference: "rly_WorksetCard-module__reference",
|
|
2562
|
-
empty: "rly_WorksetCard-module__empty",
|
|
2563
|
-
conceptLabel: "rly_WorksetCard-module__conceptLabel",
|
|
2564
|
-
emptyLink: "rly_WorksetCard-module__emptyLink",
|
|
2565
|
-
linkedWork: "rly_WorksetCard-module__linkedWork"
|
|
2566
|
-
}, $ = (e) => a(zt, e), Bt = (e, t) => {
|
|
2567
|
-
e !== void 0 && r(e, `${t} href`);
|
|
2568
|
-
}, Vt = (e, t, n) => {
|
|
2569
|
-
let i = r(e, `${n} id`);
|
|
2570
|
-
if (t.has(i)) throw Error(`${n} ids must be unique: ${i}`);
|
|
2571
|
-
return t.add(i), i;
|
|
2572
|
-
}, Ht = (e) => {
|
|
2573
|
-
let t = /* @__PURE__ */ new Set();
|
|
2574
|
-
for (let n of e) {
|
|
2575
|
-
let e = Vt(n.id, t, "WorksetCard Jira item");
|
|
2576
|
-
r(n.key, `WorksetCard Jira key for ${e}`), r(n.title, `WorksetCard Jira title for ${e}`), r(n.state, `WorksetCard Jira state for ${e}`), Bt(n.href, `WorksetCard Jira item ${e}`);
|
|
2577
|
-
}
|
|
2578
|
-
}, Ut = (e) => {
|
|
2579
|
-
let t = /* @__PURE__ */ new Set();
|
|
2580
|
-
for (let n of e) {
|
|
2581
|
-
let e = Vt(n.id, t, "WorksetCard pull request group");
|
|
2582
|
-
r(n.title, `WorksetCard pull request title for ${e}`), r(n.reference, `WorksetCard pull request reference for ${e}`), r(n.state, `WorksetCard pull request state for ${e}`), Bt(n.href, `WorksetCard pull request group ${e}`);
|
|
2583
|
-
for (let t of n.linkedJiraKeys) r(t, `WorksetCard linked Jira key for ${e}`);
|
|
2584
|
-
}
|
|
2585
|
-
}, Wt = (e) => {
|
|
2586
|
-
let t = /* @__PURE__ */ new Set();
|
|
2587
|
-
for (let n of e) {
|
|
2588
|
-
let e = Vt(n.id, t, "WorksetCard gap");
|
|
2589
|
-
if (r(n.label, `WorksetCard gap label for ${e}`), r(n.reason, `WorksetCard gap reason for ${e}`), !Object.hasOwn(R.service, n.service)) throw Error(`WorksetCard gap service for ${e} must be supported`);
|
|
2590
|
-
}
|
|
2591
|
-
}, Gt = (e) => {
|
|
2592
|
-
let t = /* @__PURE__ */ new Set();
|
|
2593
|
-
for (let n of e) {
|
|
2594
|
-
let e = Vt(n.id, t, "WorksetCard pipeline");
|
|
2595
|
-
r(n.title, `WorksetCard pipeline title for ${e}`), r(n.reference, `WorksetCard pipeline reference for ${e}`), r(n.state, `WorksetCard pipeline state for ${e}`), Bt(n.href, `WorksetCard pipeline ${e}`);
|
|
2596
|
-
}
|
|
2597
|
-
}, Kt = ({ href: e, reference: n, title: r }) => {
|
|
2598
|
-
let i = /* @__PURE__ */ y("span", {
|
|
2599
|
-
className: $("identity"),
|
|
2600
|
-
children: [/* @__PURE__ */ v("span", {
|
|
2601
|
-
className: $("itemTitle"),
|
|
2602
|
-
children: r
|
|
2603
|
-
}), /* @__PURE__ */ v("span", {
|
|
2604
|
-
className: $("reference"),
|
|
2605
|
-
children: n
|
|
2606
|
-
})]
|
|
2607
|
-
});
|
|
2608
|
-
return e === void 0 ? i : /* @__PURE__ */ v(t, {
|
|
2609
|
-
className: $("link"),
|
|
2610
|
-
href: e,
|
|
2611
|
-
children: i
|
|
2612
|
-
});
|
|
2613
|
-
}, qt = ({ className: e, gapEmptyLabel: t = "No relationship gaps recorded.", gaps: n, heading: i, jiraEmptyLabel: a = "No Jira work recorded.", jiraItems: o, pipelineEmptyLabel: c = "No pipeline delivery recorded.", pipelines: u, pullRequestEmptyLabel: d = "No pull request groups recorded.", pullRequestGroups: f, ...p }) => {
|
|
2614
|
-
let m = r(i, "WorksetCard heading"), g = r(a, "WorksetCard jiraEmptyLabel"), _ = r(d, "WorksetCard pullRequestEmptyLabel"), b = r(t, "WorksetCard gapEmptyLabel"), x = r(c, "WorksetCard pipelineEmptyLabel");
|
|
2615
|
-
Ht(o), Ut(f), Wt(n), Gt(u);
|
|
2616
|
-
let S = `rly-workset-${h()}`;
|
|
2617
|
-
return /* @__PURE__ */ y("section", {
|
|
2618
|
-
...p,
|
|
2619
|
-
"aria-labelledby": S,
|
|
2620
|
-
className: s($("root"), e),
|
|
2621
|
-
children: [/* @__PURE__ */ v("h2", {
|
|
2622
|
-
className: $("heading"),
|
|
2623
|
-
id: S,
|
|
2624
|
-
children: m
|
|
2625
|
-
}), /* @__PURE__ */ y("div", {
|
|
2626
|
-
className: $("dimensions"),
|
|
2627
|
-
children: [
|
|
2628
|
-
/* @__PURE__ */ y("section", {
|
|
2629
|
-
className: $("dimension"),
|
|
2630
|
-
"data-rly-workset-dimension": "jira",
|
|
2631
|
-
children: [/* @__PURE__ */ y("div", {
|
|
2632
|
-
className: $("dimensionHeading"),
|
|
2633
|
-
children: [/* @__PURE__ */ v(z, {
|
|
2634
|
-
service: "jira",
|
|
2635
|
-
size: "compact"
|
|
2636
|
-
}), /* @__PURE__ */ v("h3", { children: "Jira work" })]
|
|
2637
|
-
}), o.length === 0 ? /* @__PURE__ */ v("p", {
|
|
2638
|
-
className: $("empty"),
|
|
2639
|
-
children: g
|
|
2640
|
-
}) : /* @__PURE__ */ v("ul", {
|
|
2641
|
-
className: $("list"),
|
|
2642
|
-
children: o.map((e) => /* @__PURE__ */ y("li", {
|
|
2643
|
-
className: $("item"),
|
|
2644
|
-
"data-rly-workset-jira-id": e.id,
|
|
2645
|
-
children: [
|
|
2646
|
-
/* @__PURE__ */ v(Kt, {
|
|
2647
|
-
...e.href === void 0 ? {} : { href: e.href },
|
|
2648
|
-
reference: e.key,
|
|
2649
|
-
title: e.title
|
|
2650
|
-
}),
|
|
2651
|
-
/* @__PURE__ */ v(l, {
|
|
2652
|
-
label: e.state,
|
|
2653
|
-
size: "compact",
|
|
2654
|
-
tone: e.tone
|
|
2655
|
-
}),
|
|
2656
|
-
e.owner === void 0 ? null : /* @__PURE__ */ v(M, {
|
|
2657
|
-
person: e.owner,
|
|
2658
|
-
size: "compact"
|
|
2659
|
-
})
|
|
2660
|
-
]
|
|
2661
|
-
}, e.id))
|
|
2662
|
-
})]
|
|
2663
|
-
}),
|
|
2664
|
-
/* @__PURE__ */ y("section", {
|
|
2665
|
-
className: $("dimension"),
|
|
2666
|
-
"data-rly-workset-dimension": "pull-requests",
|
|
2667
|
-
children: [
|
|
2668
|
-
/* @__PURE__ */ y("div", {
|
|
2669
|
-
className: $("dimensionHeading"),
|
|
2670
|
-
children: [/* @__PURE__ */ v(z, {
|
|
2671
|
-
service: "codecommit",
|
|
2672
|
-
size: "compact"
|
|
2673
|
-
}), /* @__PURE__ */ v("h3", { children: "Pull request groups" })]
|
|
2674
|
-
}),
|
|
2675
|
-
f.length === 0 ? /* @__PURE__ */ v("p", {
|
|
2676
|
-
className: $("empty"),
|
|
2677
|
-
children: _
|
|
2678
|
-
}) : /* @__PURE__ */ v("ul", {
|
|
2679
|
-
className: $("list"),
|
|
2680
|
-
children: f.map((e) => /* @__PURE__ */ y("li", {
|
|
2681
|
-
className: $("item"),
|
|
2682
|
-
"data-rly-workset-pr-id": e.id,
|
|
2683
|
-
children: [
|
|
2684
|
-
/* @__PURE__ */ v(Kt, {
|
|
2685
|
-
...e.href === void 0 ? {} : { href: e.href },
|
|
2686
|
-
reference: e.reference,
|
|
2687
|
-
title: e.title
|
|
2688
|
-
}),
|
|
2689
|
-
/* @__PURE__ */ v(l, {
|
|
2690
|
-
label: e.state,
|
|
2691
|
-
size: "compact",
|
|
2692
|
-
tone: e.tone
|
|
2693
|
-
}),
|
|
2694
|
-
/* @__PURE__ */ y("div", {
|
|
2695
|
-
className: $("linkedWork"),
|
|
2696
|
-
children: [/* @__PURE__ */ v("span", {
|
|
2697
|
-
className: $("conceptLabel"),
|
|
2698
|
-
children: "Linked Jira work"
|
|
2699
|
-
}), e.linkedJiraKeys.length === 0 ? /* @__PURE__ */ v("span", {
|
|
2700
|
-
className: $("emptyLink"),
|
|
2701
|
-
children: "No Jira links recorded."
|
|
2702
|
-
}) : /* @__PURE__ */ v("ul", {
|
|
2703
|
-
className: $("keyList"),
|
|
2704
|
-
children: e.linkedJiraKeys.map((e, t) => /* @__PURE__ */ v("li", {
|
|
2705
|
-
"data-rly-linked-jira-key": e,
|
|
2706
|
-
children: e
|
|
2707
|
-
}, `${e}-${t}`))
|
|
2708
|
-
})]
|
|
2709
|
-
}),
|
|
2710
|
-
e.author === void 0 ? null : /* @__PURE__ */ v(M, {
|
|
2711
|
-
person: e.author,
|
|
2712
|
-
size: "compact"
|
|
2713
|
-
})
|
|
2714
|
-
]
|
|
2715
|
-
}, e.id))
|
|
2716
|
-
}),
|
|
2717
|
-
/* @__PURE__ */ y("div", {
|
|
2718
|
-
className: $("gaps"),
|
|
2719
|
-
children: [/* @__PURE__ */ v("h4", { children: "Relationship gaps" }), n.length === 0 ? /* @__PURE__ */ v("p", {
|
|
2720
|
-
className: $("empty"),
|
|
2721
|
-
children: b
|
|
2722
|
-
}) : /* @__PURE__ */ v("ul", {
|
|
2723
|
-
className: $("gapList"),
|
|
2724
|
-
children: n.map((e) => /* @__PURE__ */ y("li", {
|
|
2725
|
-
className: $("gap"),
|
|
2726
|
-
"data-rly-workset-gap-id": e.id,
|
|
2727
|
-
children: [
|
|
2728
|
-
/* @__PURE__ */ v(z, {
|
|
2729
|
-
service: e.service,
|
|
2730
|
-
size: "compact"
|
|
2731
|
-
}),
|
|
2732
|
-
/* @__PURE__ */ v("strong", { children: e.label }),
|
|
2733
|
-
/* @__PURE__ */ v("span", { children: e.reason })
|
|
2734
|
-
]
|
|
2735
|
-
}, e.id))
|
|
2736
|
-
})]
|
|
2737
|
-
})
|
|
2738
|
-
]
|
|
2739
|
-
}),
|
|
2740
|
-
/* @__PURE__ */ y("section", {
|
|
2741
|
-
className: $("dimension"),
|
|
2742
|
-
"data-rly-workset-dimension": "pipelines",
|
|
2743
|
-
children: [/* @__PURE__ */ y("div", {
|
|
2744
|
-
className: $("dimensionHeading"),
|
|
2745
|
-
children: [/* @__PURE__ */ v(z, {
|
|
2746
|
-
service: "codepipeline",
|
|
2747
|
-
size: "compact"
|
|
2748
|
-
}), /* @__PURE__ */ v("h3", { children: "Pipeline delivery" })]
|
|
2749
|
-
}), u.length === 0 ? /* @__PURE__ */ v("p", {
|
|
2750
|
-
className: $("empty"),
|
|
2751
|
-
children: x
|
|
2752
|
-
}) : /* @__PURE__ */ v("ul", {
|
|
2753
|
-
className: $("list"),
|
|
2754
|
-
children: u.map((e) => /* @__PURE__ */ y("li", {
|
|
2755
|
-
className: $("item"),
|
|
2756
|
-
"data-rly-workset-pipeline-id": e.id,
|
|
2757
|
-
children: [
|
|
2758
|
-
/* @__PURE__ */ v(Kt, {
|
|
2759
|
-
...e.href === void 0 ? {} : { href: e.href },
|
|
2760
|
-
reference: e.reference,
|
|
2761
|
-
title: e.title
|
|
2762
|
-
}),
|
|
2763
|
-
/* @__PURE__ */ v(l, {
|
|
2764
|
-
label: e.state,
|
|
2765
|
-
size: "compact",
|
|
2766
|
-
tone: e.tone
|
|
2767
|
-
}),
|
|
2768
|
-
e.operator === void 0 ? null : /* @__PURE__ */ v(M, {
|
|
2769
|
-
person: e.operator,
|
|
2770
|
-
size: "compact"
|
|
2771
|
-
}),
|
|
2772
|
-
e.approver === void 0 ? null : /* @__PURE__ */ v(M, {
|
|
2773
|
-
person: e.approver,
|
|
2774
|
-
size: "compact"
|
|
2775
|
-
}),
|
|
2776
|
-
/* @__PURE__ */ v(Pt, {
|
|
2777
|
-
heading: `${e.reference} stages`,
|
|
2778
|
-
size: "compact",
|
|
2779
|
-
stages: e.stages
|
|
2780
|
-
})
|
|
2781
|
-
]
|
|
2782
|
-
}, e.id))
|
|
2783
|
-
})]
|
|
2784
|
-
})
|
|
2785
|
-
]
|
|
2786
|
-
})]
|
|
2787
|
-
});
|
|
2788
|
-
};
|
|
2789
|
-
//#endregion
|
|
2790
|
-
export { Oe as A, ee as B, R as C, Me as D, Ne as E, ve as F, _e as I, he as L, Ce as M, Se as N, Ae as O, M as P, le as R, Le as S, I as T, C as V, $e as _, Pt as a, Ve as b, St as c, Tt as d, pt as f, nt as g, G as h, jt as i, Ee as j, ke as k, bt as l, rt as m, Rt as n, kt as o, ut as p, Mt as r, Dt as s, qt as t, xt as u, Ze as v, z as w, Ue as x, Ge as y, ae as z };
|
|
2791
|
-
|
|
2792
|
-
//# sourceMappingURL=patterns-CxMz8DKX.js.map
|