@arcgis/ai-components 5.2.0-next.117 → 5.2.0-next.119

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/dist/agentic-workflow/jsonTypes.d.ts +9 -15
  2. package/dist/agentic-workflow/nodes/HumanInTheLoopNode.d.ts +1 -1
  3. package/dist/agents/runtime/skill/createSkillAgent.d.ts +1 -3
  4. package/dist/agents/runtime/skill/createSkillAgent.js +71 -76
  5. package/dist/cdn/4PZ5RHFL.js +3 -0
  6. package/dist/cdn/{HAHL6K4X.js → ALCJFKAR.js} +41 -43
  7. package/dist/cdn/CWE6OD3H.js +2 -0
  8. package/dist/cdn/{CESQ3SFP.js → DWSVGHL4.js} +1 -1
  9. package/dist/cdn/{CZIAU7PC.js → DXRFD4N3.js} +1 -1
  10. package/dist/cdn/DYZEQYTP.js +2 -0
  11. package/dist/cdn/{H4N7VNL5.js → IZ56DC4L.js} +1 -1
  12. package/dist/cdn/{PGVLC374.js → LEV5ORDL.js} +1 -1
  13. package/dist/cdn/{6KSMVYBS.js → MCLO6ZVA.js} +1 -1
  14. package/dist/cdn/{CVAVY7R2.js → MNEK6V2R.js} +1 -1
  15. package/dist/cdn/{BJNYJCS5.js → NE4NTGQN.js} +1 -1
  16. package/dist/cdn/OTOQL3QM.js +3 -0
  17. package/dist/cdn/OU4HN5HN.js +2 -0
  18. package/dist/cdn/{LFQLCCJJ.js → RGVC76RW.js} +1 -1
  19. package/dist/cdn/{VBEZDXBV.js → TVCMA2R2.js} +1 -1
  20. package/dist/cdn/{DEPD7PJL.js → WB6PGHFS.js} +1 -1
  21. package/dist/cdn/{23CPLCYW.js → X5AOLYY5.js} +1 -1
  22. package/dist/cdn/agent-utils/index.js +1 -1
  23. package/dist/cdn/assets/assistant/t9n/messages.ar.json +1 -1
  24. package/dist/cdn/assets/assistant/t9n/messages.bg.json +1 -1
  25. package/dist/cdn/assets/assistant/t9n/messages.bs.json +1 -1
  26. package/dist/cdn/assets/assistant/t9n/messages.ca.json +1 -1
  27. package/dist/cdn/assets/assistant/t9n/messages.cs.json +1 -1
  28. package/dist/cdn/assets/assistant/t9n/messages.da.json +1 -1
  29. package/dist/cdn/assets/assistant/t9n/messages.de.json +1 -1
  30. package/dist/cdn/assets/assistant/t9n/messages.el.json +1 -1
  31. package/dist/cdn/assets/assistant/t9n/messages.es.json +1 -1
  32. package/dist/cdn/assets/assistant/t9n/messages.et.json +1 -1
  33. package/dist/cdn/assets/assistant/t9n/messages.fi.json +1 -1
  34. package/dist/cdn/assets/assistant/t9n/messages.fr.json +1 -1
  35. package/dist/cdn/assets/assistant/t9n/messages.he.json +1 -1
  36. package/dist/cdn/assets/assistant/t9n/messages.hr.json +1 -1
  37. package/dist/cdn/assets/assistant/t9n/messages.hu.json +1 -1
  38. package/dist/cdn/assets/assistant/t9n/messages.id.json +1 -1
  39. package/dist/cdn/assets/assistant/t9n/messages.it.json +1 -1
  40. package/dist/cdn/assets/assistant/t9n/messages.ja.json +1 -1
  41. package/dist/cdn/assets/assistant/t9n/messages.ko.json +1 -1
  42. package/dist/cdn/assets/assistant/t9n/messages.lt.json +1 -1
  43. package/dist/cdn/assets/assistant/t9n/messages.lv.json +1 -1
  44. package/dist/cdn/assets/assistant/t9n/messages.nl.json +1 -1
  45. package/dist/cdn/assets/assistant/t9n/messages.no.json +1 -1
  46. package/dist/cdn/assets/assistant/t9n/messages.pl.json +1 -1
  47. package/dist/cdn/assets/assistant/t9n/messages.pt-BR.json +1 -1
  48. package/dist/cdn/assets/assistant/t9n/messages.pt-PT.json +1 -1
  49. package/dist/cdn/assets/assistant/t9n/messages.ro.json +1 -1
  50. package/dist/cdn/assets/assistant/t9n/messages.ru.json +1 -1
  51. package/dist/cdn/assets/assistant/t9n/messages.sk.json +1 -1
  52. package/dist/cdn/assets/assistant/t9n/messages.sl.json +1 -1
  53. package/dist/cdn/assets/assistant/t9n/messages.sr.json +1 -1
  54. package/dist/cdn/assets/assistant/t9n/messages.sv.json +1 -1
  55. package/dist/cdn/assets/assistant/t9n/messages.th.json +1 -1
  56. package/dist/cdn/assets/assistant/t9n/messages.tr.json +1 -1
  57. package/dist/cdn/assets/assistant/t9n/messages.uk.json +1 -1
  58. package/dist/cdn/assets/assistant/t9n/messages.vi.json +1 -1
  59. package/dist/cdn/assets/assistant/t9n/messages.zh-CN.json +1 -1
  60. package/dist/cdn/assets/assistant/t9n/messages.zh-HK.json +1 -1
  61. package/dist/cdn/assets/assistant/t9n/messages.zh-TW.json +1 -1
  62. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.ar.json +1 -1
  63. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.bg.json +1 -1
  64. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.bs.json +1 -1
  65. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.ca.json +1 -1
  66. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.cs.json +1 -1
  67. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.da.json +1 -1
  68. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.de.json +1 -1
  69. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.el.json +1 -1
  70. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.es.json +1 -1
  71. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.et.json +1 -1
  72. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.fi.json +1 -1
  73. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.fr.json +1 -1
  74. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.he.json +1 -1
  75. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.hr.json +1 -1
  76. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.hu.json +1 -1
  77. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.id.json +1 -1
  78. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.it.json +1 -1
  79. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.ja.json +1 -1
  80. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.ko.json +1 -1
  81. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.lt.json +1 -1
  82. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.lv.json +1 -1
  83. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.nl.json +1 -1
  84. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.no.json +1 -1
  85. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.pl.json +1 -1
  86. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.pt-BR.json +1 -1
  87. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.pt-PT.json +1 -1
  88. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.ro.json +1 -1
  89. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.ru.json +1 -1
  90. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.sk.json +1 -1
  91. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.sl.json +1 -1
  92. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.sr.json +1 -1
  93. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.sv.json +1 -1
  94. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.th.json +1 -1
  95. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.tr.json +1 -1
  96. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.uk.json +1 -1
  97. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.vi.json +1 -1
  98. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.zh-CN.json +1 -1
  99. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.zh-HK.json +1 -1
  100. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.zh-TW.json +1 -1
  101. package/dist/cdn/assets/assistant-interrupt/t9n/messages.en.json +1 -1
  102. package/dist/cdn/index.js +1 -1
  103. package/dist/chunks/dataExplorationAgent.js +1 -3
  104. package/dist/chunks/helpAgent.js +6 -8
  105. package/dist/chunks/navigationAgent.js +6 -8
  106. package/dist/components/arcgis-assistant/customElement.js +1 -1
  107. package/dist/components/arcgis-assistant-agent/customElement.js +105 -105
  108. package/dist/components/arcgis-assistant-interrupt/customElement.d.ts +4 -2
  109. package/dist/components/arcgis-assistant-interrupt/customElement.js +49 -15
  110. package/dist/components/arcgis-assistant-interrupt/index.js +1 -1
  111. package/dist/components/arcgis-assistant-message-log/customElement.js +4 -4
  112. package/dist/components/arcgis-assistant-message-text/customElement.js +1 -1
  113. package/dist/docs/api.json +1 -1
  114. package/dist/docs/docs.json +1 -1
  115. package/dist/docs/vscode.html-custom-data.json +1 -1
  116. package/dist/docs/web-types.json +1 -1
  117. package/dist/loader.js +4 -4
  118. package/package.json +5 -5
  119. package/dist/cdn/6YRLY5TX.js +0 -2
  120. package/dist/cdn/BKAXFQIS.js +0 -2
  121. package/dist/cdn/CSTXLFCP.js +0 -2
  122. package/dist/cdn/F3CSORDI.js +0 -3
  123. package/dist/cdn/VJRJ2HAM.js +0 -3
@@ -4,7 +4,7 @@ import { LitElement as U } from "@arcgis/lumina";
4
4
  import { b as Z, i as K } from "../../chunks/utils2.js";
5
5
  import D from "@arcgis/core/portal/PortalItem.js";
6
6
  import Q from "@arcgis/core/portal/Portal.js";
7
- import { property as a, subclass as h } from "@arcgis/core/core/accessorSupport/decorators.js";
7
+ import { property as a, subclass as l } from "@arcgis/core/core/accessorSupport/decorators.js";
8
8
  import { BaseAgent as X } from "../../agent-utils/BaseAgent.js";
9
9
  import O from "@arcgis/core/core/Error.js";
10
10
  import { z as c } from "zod";
@@ -29,10 +29,10 @@ import "@arcgis/core/config.js";
29
29
  import "@arcgis/core/core/reactiveUtils.js";
30
30
  import "@arcgis/core/layers/FeatureLayer.js";
31
31
  import { a as ne } from "../../chunks/baseAgentState.js";
32
- var ie = Object.defineProperty, ae = Object.getOwnPropertyDescriptor, w = (e, t, r, s) => {
33
- for (var o = s > 1 ? void 0 : s ? ae(t, r) : t, n = e.length - 1, i; n >= 0; n--)
34
- (i = e[n]) && (o = (s ? i(t, r, o) : i(o)) || o);
35
- return s && o && ie(t, r, o), o;
32
+ var ie = Object.defineProperty, ae = Object.getOwnPropertyDescriptor, w = (e, t, o, s) => {
33
+ for (var r = s > 1 ? void 0 : s ? ae(t, o) : t, n = e.length - 1, i; n >= 0; n--)
34
+ (i = e[n]) && (r = (s ? i(t, o, r) : i(r)) || r);
35
+ return s && r && ie(t, o, r), r;
36
36
  };
37
37
  let p = class extends $ {
38
38
  //#region Lifecycle
@@ -68,12 +68,12 @@ w([
68
68
  a()
69
69
  ], p.prototype, "targetNodeId", 2);
70
70
  p = w([
71
- h("Edge")
71
+ l("Edge")
72
72
  ], p);
73
- var ce = Object.defineProperty, pe = Object.getOwnPropertyDescriptor, A = (e, t, r, s) => {
74
- for (var o = s > 1 ? void 0 : s ? pe(t, r) : t, n = e.length - 1, i; n >= 0; n--)
75
- (i = e[n]) && (o = (s ? i(t, r, o) : i(o)) || o);
76
- return s && o && ce(t, r, o), o;
73
+ var ce = Object.defineProperty, pe = Object.getOwnPropertyDescriptor, A = (e, t, o, s) => {
74
+ for (var r = s > 1 ? void 0 : s ? pe(t, o) : t, n = e.length - 1, i; n >= 0; n--)
75
+ (i = e[n]) && (r = (s ? i(t, o, r) : i(r)) || r);
76
+ return s && r && ce(t, o, r), r;
77
77
  };
78
78
  let u = class extends $ {
79
79
  //#region Lifecycle
@@ -111,16 +111,16 @@ A([
111
111
  a()
112
112
  ], u.prototype, "type", 2);
113
113
  u = A([
114
- h("BaseNode")
114
+ l("BaseNode")
115
115
  ], u);
116
116
  function M(e) {
117
- const t = new Set(e.required), r = Object.fromEntries(
118
- Object.entries(e.properties).map(([s, o]) => {
119
- const n = W(o);
117
+ const t = new Set(e.required), o = Object.fromEntries(
118
+ Object.entries(e.properties).map(([s, r]) => {
119
+ const n = W(r);
120
120
  return [s, t.has(s) ? n : n.optional()];
121
121
  })
122
122
  );
123
- return c.object(r);
123
+ return c.object(o);
124
124
  }
125
125
  function W(e) {
126
126
  let t;
@@ -146,12 +146,12 @@ function W(e) {
146
146
  }
147
147
  return e.description ? t.describe(e.description) : t;
148
148
  }
149
- var ue = Object.defineProperty, de = Object.getOwnPropertyDescriptor, I = (e, t, r, s) => {
150
- for (var o = s > 1 ? void 0 : s ? de(t, r) : t, n = e.length - 1, i; n >= 0; n--)
151
- (i = e[n]) && (o = (s ? i(t, r, o) : i(o)) || o);
152
- return s && o && ue(t, r, o), o;
149
+ var ue = Object.defineProperty, de = Object.getOwnPropertyDescriptor, I = (e, t, o, s) => {
150
+ for (var r = s > 1 ? void 0 : s ? de(t, o) : t, n = e.length - 1, i; n >= 0; n--)
151
+ (i = e[n]) && (r = (s ? i(t, o, r) : i(r)) || r);
152
+ return s && r && ue(t, o, r), r;
153
153
  };
154
- const me = (e) => e.replace(/_([a-z])/gu, (t, r) => r.toUpperCase());
154
+ const me = (e) => e.replace(/_([a-z])/gu, (t, o) => o.toUpperCase());
155
155
  let f = class extends $ {
156
156
  //#region Lifecycle
157
157
  constructor(e) {
@@ -182,15 +182,15 @@ I([
182
182
  a()
183
183
  ], f.prototype, "type", 2);
184
184
  f = I([
185
- h("ArcgisTool")
185
+ l("ArcgisTool")
186
186
  ], f);
187
- var he = Object.defineProperty, le = Object.getOwnPropertyDescriptor, F = (e) => {
187
+ var le = Object.defineProperty, he = Object.getOwnPropertyDescriptor, F = (e) => {
188
188
  throw TypeError(e);
189
- }, v = (e, t, r, s) => {
190
- for (var o = s > 1 ? void 0 : s ? le(t, r) : t, n = e.length - 1, i; n >= 0; n--)
191
- (i = e[n]) && (o = (s ? i(t, r, o) : i(o)) || o);
192
- return s && o && he(t, r, o), o;
193
- }, fe = (e, t, r) => t.has(e) || F("Cannot " + r), ge = (e, t, r) => t.has(e) ? F("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), _e = (e, t, r) => (fe(e, t, "access private method"), r), E, L;
189
+ }, v = (e, t, o, s) => {
190
+ for (var r = s > 1 ? void 0 : s ? he(t, o) : t, n = e.length - 1, i; n >= 0; n--)
191
+ (i = e[n]) && (r = (s ? i(t, o, r) : i(r)) || r);
192
+ return s && r && le(t, o, r), r;
193
+ }, fe = (e, t, o) => t.has(e) || F("Cannot " + o), ge = (e, t, o) => t.has(e) ? F("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, o), _e = (e, t, o) => (fe(e, t, "access private method"), o), E, L;
194
194
  let d = class extends u {
195
195
  //#region Lifecycle
196
196
  constructor(e) {
@@ -200,19 +200,19 @@ let d = class extends u {
200
200
  //#region Public Methods
201
201
  createRuntimeNode() {
202
202
  let e;
203
- return async (t, r) => {
203
+ return async (t, o) => {
204
204
  e ??= _e(this, E, L).call(this);
205
- const o = await (await e).run(t, r), n = this.outputSchema?.safeParse(o);
205
+ const r = await (await e).run(t, o), n = this.outputSchema?.safeParse(r);
206
206
  if (n && !n.success)
207
207
  throw n.error;
208
- const i = n?.data, l = i ?? o.outputMessage;
208
+ const i = n?.data, h = i ?? r.outputMessage;
209
209
  return {
210
- agentExecutionContext: o.agentExecutionContext,
211
- ...i ? {} : { outputMessage: o.outputMessage },
212
- status: o.status,
213
- summary: o.summary,
210
+ agentExecutionContext: r.agentExecutionContext,
211
+ ...i ? {} : { outputMessage: r.outputMessage },
212
+ status: r.status,
213
+ summary: r.summary,
214
214
  nodes: {
215
- [this.id]: { output: l }
215
+ [this.id]: { output: h }
216
216
  }
217
217
  };
218
218
  };
@@ -224,7 +224,7 @@ let d = class extends u {
224
224
  edges: [
225
225
  {
226
226
  from: this.id,
227
- decide: (r) => r.status === "failed" ? void 0 : t
227
+ decide: (o) => o.status === "failed" ? void 0 : t
228
228
  }
229
229
  ],
230
230
  schemas: [
@@ -242,7 +242,7 @@ let d = class extends u {
242
242
  type: "agent-node",
243
243
  modelTier: e.llm_model?.model_tier
244
244
  });
245
- return e.structured_output && (t.outputSchema = M(e.structured_output)), t.tools = e.tools?.filter((r) => r.type === "arcgis_tool").map((r) => f.fromJSON(r)), t;
245
+ return e.structured_output && (t.outputSchema = M(e.structured_output)), t.tools = e.tools?.filter((o) => o.type === "arcgis_tool").map((o) => f.fromJSON(o)), t;
246
246
  }
247
247
  //#endregion
248
248
  };
@@ -253,8 +253,8 @@ L = async function() {
253
253
  throw new Error(`WebAgent agent node "${this.id}" requires a prompt.`);
254
254
  const t = [];
255
255
  if (this.tools)
256
- for (const r of this.tools) {
257
- const s = await r.createRuntimeTools();
256
+ for (const o of this.tools) {
257
+ const s = await o.createRuntimeTools();
258
258
  t.push(...s);
259
259
  }
260
260
  return new k({
@@ -282,12 +282,12 @@ v([
282
282
  a()
283
283
  ], d.prototype, "modelTier", 2);
284
284
  d = v([
285
- h("AgentNode")
285
+ l("AgentNode")
286
286
  ], d);
287
- var we = Object.defineProperty, ve = Object.getOwnPropertyDescriptor, C = (e, t, r, s) => {
288
- for (var o = s > 1 ? void 0 : s ? ve(t, r) : t, n = e.length - 1, i; n >= 0; n--)
289
- (i = e[n]) && (o = (s ? i(t, r, o) : i(o)) || o);
290
- return s && o && we(t, r, o), o;
287
+ var we = Object.defineProperty, ve = Object.getOwnPropertyDescriptor, C = (e, t, o, s) => {
288
+ for (var r = s > 1 ? void 0 : s ? ve(t, o) : t, n = e.length - 1, i; n >= 0; n--)
289
+ (i = e[n]) && (r = (s ? i(t, o, r) : i(r)) || r);
290
+ return s && r && we(t, o, r), r;
291
291
  };
292
292
  let g = class extends u {
293
293
  //#region Lifecycle
@@ -331,15 +331,15 @@ C([
331
331
  a()
332
332
  ], g.prototype, "message", 2);
333
333
  g = C([
334
- h("EndMessageNode")
334
+ l("EndMessageNode")
335
335
  ], g);
336
336
  var ye = Object.defineProperty, be = Object.getOwnPropertyDescriptor, j = (e) => {
337
337
  throw TypeError(e);
338
- }, b = (e, t, r, s) => {
339
- for (var o = s > 1 ? void 0 : s ? be(t, r) : t, n = e.length - 1, i; n >= 0; n--)
340
- (i = e[n]) && (o = (s ? i(t, r, o) : i(o)) || o);
341
- return s && o && ye(t, r, o), o;
342
- }, Ne = (e, t, r) => t.has(e) || j("Cannot " + r), Oe = (e, t, r) => t.has(e) ? j("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), R = (e, t, r) => (Ne(e, t, "access private method"), r), S, G, H;
338
+ }, b = (e, t, o, s) => {
339
+ for (var r = s > 1 ? void 0 : s ? be(t, o) : t, n = e.length - 1, i; n >= 0; n--)
340
+ (i = e[n]) && (r = (s ? i(t, o, r) : i(r)) || r);
341
+ return s && r && ye(t, o, r), r;
342
+ }, Ne = (e, t, o) => t.has(e) || j("Cannot " + o), Oe = (e, t, o) => t.has(e) ? j("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, o), R = (e, t, o) => (Ne(e, t, "access private method"), o), S, G, H;
343
343
  let m = class extends u {
344
344
  //#region Lifecycle
345
345
  constructor(e) {
@@ -349,16 +349,16 @@ let m = class extends u {
349
349
  //#region Public Methods
350
350
  createRuntimeNode() {
351
351
  return async (e, t) => {
352
- const r = Se(t, this.id), s = `${r}:${this.id}`, o = re(t);
353
- if (o === void 0 || !Ie(o, this.response?.type))
352
+ const o = Se(t, this.id), s = `${o}:${this.id}`, r = re(t);
353
+ if (r === void 0 || !Ie(r, this.response?.type))
354
354
  throw new te({
355
- agentId: r,
355
+ agentId: o,
356
356
  id: s,
357
357
  kind: Ae(this.response?.type),
358
358
  message: await R(this, S, G).call(this, e),
359
359
  metadata: R(this, S, H).call(this, e)
360
360
  });
361
- return { nodes: { [this.id]: { output: o } } };
361
+ return { nodes: { [this.id]: { output: r } } };
362
362
  };
363
363
  }
364
364
  compile(e) {
@@ -370,9 +370,9 @@ let m = class extends u {
370
370
  decide: (t) => {
371
371
  if (!this.conditions.length)
372
372
  return e.outgoingEdges[0]?.targetNodeId;
373
- const r = t.nodes?.[this.id]?.output, s = this.conditions.find((o) => Pe(o.optionValue, r));
374
- if (s)
375
- return e.outgoingEdges.find((o) => o.sourceAnchorId === s.sourceAnchorId)?.targetNodeId;
373
+ const o = t.nodes?.[this.id]?.output, s = Pe(o), r = this.conditions.find((n) => n.outcome === s);
374
+ if (r)
375
+ return e.outgoingEdges.find((n) => n.sourceAnchorId === r.sourceAnchorId)?.targetNodeId;
376
376
  }
377
377
  }
378
378
  ]
@@ -384,8 +384,8 @@ let m = class extends u {
384
384
  label: e.label,
385
385
  type: "human-in-the-loop-node"
386
386
  });
387
- return t.message = e.message, t.response = e.response, t.conditions = (e.conditions ?? []).map(({ optionValue: r, source_anchor_id: s }) => ({
388
- optionValue: r,
387
+ return t.message = e.message, t.response = e.response, t.conditions = e.conditions.map(({ outcome: o, source_anchor_id: s }) => ({
388
+ outcome: o,
389
389
  sourceAnchorId: s
390
390
  })), t;
391
391
  }
@@ -404,8 +404,8 @@ H = function(e) {
404
404
  const t = this.response;
405
405
  if (!t || t.type === "confirmation" || t.type === "textInput")
406
406
  return;
407
- const r = t.choices;
408
- return r?.source === "fixed" ? r.items?.map((o) => o.value ?? o.label ?? "") : r?.source === "reference" ? Ee(e, r.reference)?.map(String) : void 0;
407
+ const o = t.choices;
408
+ return o?.source === "fixed" ? o.items?.map((r) => r.value ?? r.label ?? "") : o?.source === "reference" ? Ee(e, o.reference)?.map(String) : void 0;
409
409
  };
410
410
  b([
411
411
  a()
@@ -420,7 +420,7 @@ b([
420
420
  a()
421
421
  ], m.prototype, "conditions", 2);
422
422
  m = b([
423
- h("HumanInTheLoopNode")
423
+ l("HumanInTheLoopNode")
424
424
  ], m);
425
425
  function Se(e, t) {
426
426
  const s = e?.configurable?.agentId;
@@ -445,29 +445,29 @@ function Ie(e, t) {
445
445
  case "singleSelect":
446
446
  return typeof e == "string" || Array.isArray(e) && e.length === 1 && typeof e[0] == "string";
447
447
  case "multipleSelect":
448
- return Array.isArray(e) && e.every((r) => typeof r == "string");
448
+ return Array.isArray(e) && e.every((o) => typeof o == "string");
449
449
  case "textInput":
450
450
  return typeof e == "string";
451
451
  default:
452
452
  return !0;
453
453
  }
454
454
  }
455
- function Pe(e, t) {
456
- return Array.isArray(t) ? t.some((r) => r === e) : t === e;
455
+ function Pe(e) {
456
+ return e === !1 ? "dismissed" : "confirmed";
457
457
  }
458
458
  function Ee(e, t) {
459
459
  if (!t)
460
460
  return;
461
- const r = t.split(".").reduce((s, o) => {
462
- if (s && typeof s == "object" && o in s)
463
- return s[o];
461
+ const o = t.split(".").reduce((s, r) => {
462
+ if (s && typeof s == "object" && r in s)
463
+ return s[r];
464
464
  }, e);
465
- return Array.isArray(r) ? r : typeof r == "string" ? [r] : void 0;
465
+ return Array.isArray(o) ? o : typeof o == "string" ? [o] : void 0;
466
466
  }
467
- var $e = Object.defineProperty, Ce = Object.getOwnPropertyDescriptor, z = (e, t, r, s) => {
468
- for (var o = s > 1 ? void 0 : s ? Ce(t, r) : t, n = e.length - 1, i; n >= 0; n--)
469
- (i = e[n]) && (o = (s ? i(t, r, o) : i(o)) || o);
470
- return s && o && $e(t, r, o), o;
467
+ var $e = Object.defineProperty, Ce = Object.getOwnPropertyDescriptor, z = (e, t, o, s) => {
468
+ for (var r = s > 1 ? void 0 : s ? Ce(t, o) : t, n = e.length - 1, i; n >= 0; n--)
469
+ (i = e[n]) && (r = (s ? i(t, o, r) : i(r)) || r);
470
+ return s && r && $e(t, o, r), r;
471
471
  };
472
472
  let y = class extends u {
473
473
  //#region Lifecycle
@@ -494,7 +494,7 @@ z([
494
494
  a()
495
495
  ], y.prototype, "type", 2);
496
496
  y = z([
497
- h("StartNode")
497
+ l("StartNode")
498
498
  ], y);
499
499
  function xe(e) {
500
500
  switch (e.type) {
@@ -502,7 +502,7 @@ function xe(e) {
502
502
  return d.fromJSON(e);
503
503
  case "end_message_node":
504
504
  return g.fromJSON(e);
505
- case "human_in_the_loop_node":
505
+ case "human_input_node":
506
506
  return m.fromJSON(e);
507
507
  case "start_node":
508
508
  return y.fromJSON(e);
@@ -514,39 +514,39 @@ function Je(e = {}) {
514
514
  const t = Object.keys(e);
515
515
  if (oe(t), t.includes("nodes"))
516
516
  throw new Error("node state cannot define reserved field: nodes.");
517
- const r = se(e);
517
+ const o = se(e);
518
518
  return T.Root({
519
- ...r,
519
+ ...o,
520
520
  nodes: T({
521
- reducer: (s, o) => ({ ...s, ...o }),
521
+ reducer: (s, r) => ({ ...s, ...r }),
522
522
  default: () => ({})
523
523
  }),
524
524
  ...ne()
525
525
  });
526
526
  }
527
527
  function B(e, t = {}) {
528
- const r = /* @__PURE__ */ new Set();
529
- for (const o of e)
530
- for (const n of Object.keys(o.shape ?? {}))
531
- n !== "nodes" && r.add(n);
532
- const s = Object.fromEntries([...r].map((o) => [o, t[o]]));
533
- for (const [o, n] of Object.entries(t))
534
- s[o] = n;
528
+ const o = /* @__PURE__ */ new Set();
529
+ for (const r of e)
530
+ for (const n of Object.keys(r.shape ?? {}))
531
+ n !== "nodes" && o.add(n);
532
+ const s = Object.fromEntries([...o].map((r) => [r, t[r]]));
533
+ for (const [r, n] of Object.entries(t))
534
+ s[r] = n;
535
535
  return Je(s);
536
536
  }
537
537
  class x {
538
538
  //#endregion Private Properties
539
539
  //#region Lifecycle
540
- constructor(t, r, s) {
541
- this.sourceJSON = t, this.edges = r, this.nodes = s, this._loaded = !1;
540
+ constructor(t, o, s) {
541
+ this.sourceJSON = t, this.edges = o, this.nodes = s, this._loaded = !1;
542
542
  }
543
543
  //#endregion Lifecycle
544
544
  //#region Public Methods
545
545
  static fromJSON(t) {
546
546
  return new x(
547
547
  t,
548
- t.graph.edges.map((r) => p.fromJSON(r)),
549
- t.graph.nodes.map((r) => xe(r))
548
+ t.graph.edges.map((o) => p.fromJSON(o)),
549
+ t.graph.nodes.map((o) => xe(o))
550
550
  );
551
551
  }
552
552
  async load() {
@@ -556,8 +556,8 @@ class x {
556
556
  }
557
557
  getSchemas() {
558
558
  const t = Object.fromEntries(
559
- this._getNodeCompilations().flatMap((s, o) => {
560
- const n = this.nodes[o];
559
+ this._getNodeCompilations().flatMap((s, r) => {
560
+ const n = this.nodes[r];
561
561
  return s.schemas?.map((i) => [n.id, i]) ?? [];
562
562
  })
563
563
  );
@@ -570,13 +570,13 @@ class x {
570
570
  }
571
571
  generate() {
572
572
  this._assertLoaded(), this._nodeCompilations = void 0;
573
- const t = this._getNodeCompilations(), r = Object.fromEntries(this.sourceJSON.variables.map(({ key: l, value: P }) => [l, P])), s = B(this.getSchemas(), { variables: r }), o = this.nodes.find((l) => l.type === "start-node")?.id, n = {}, i = [];
574
- for (const [l, P] of this.nodes.entries()) {
575
- const N = t[l];
573
+ const t = this._getNodeCompilations(), o = Object.fromEntries(this.sourceJSON.variables.map(({ key: h, value: P }) => [h, P])), s = B(this.getSchemas(), { variables: o }), r = this.nodes.find((h) => h.type === "start-node")?.id, n = {}, i = [];
574
+ for (const [h, P] of this.nodes.entries()) {
575
+ const N = t[h];
576
576
  N && (N.runtimeNode && (n[P.id] = N.runtimeNode), i.push(...N.edges));
577
577
  }
578
578
  return {
579
- createGraph: () => Y(n, i, s, { entryNode: o }),
579
+ createGraph: () => Y(n, i, s, { entryNode: r }),
580
580
  workspace: s
581
581
  };
582
582
  }
@@ -589,7 +589,7 @@ class x {
589
589
  _getNodeCompilations() {
590
590
  return this._assertLoaded(), this._nodeCompilations ??= this.nodes.map(
591
591
  (t) => t.compile({
592
- outgoingEdges: this.edges.filter((r) => r.sourceNodeId === t.id)
592
+ outgoingEdges: this.edges.filter((o) => o.sourceNodeId === t.id)
593
593
  })
594
594
  );
595
595
  }
@@ -600,10 +600,10 @@ class x {
600
600
  }
601
601
  //#endregion Private Methods
602
602
  }
603
- var Te = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, J = (e, t, r, s) => {
604
- for (var o = s > 1 ? void 0 : s ? Re(t, r) : t, n = e.length - 1, i; n >= 0; n--)
605
- (i = e[n]) && (o = (s ? i(t, r, o) : i(o)) || o);
606
- return s && o && Te(t, r, o), o;
603
+ var Te = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, J = (e, t, o, s) => {
604
+ for (var r = s > 1 ? void 0 : s ? Re(t, o) : t, n = e.length - 1, i; n >= 0; n--)
605
+ (i = e[n]) && (r = (s ? i(t, o, r) : i(r)) || r);
606
+ return s && r && Te(t, o, r), r;
607
607
  };
608
608
  const De = () => {
609
609
  throw new Error("WebAgent must be loaded before it can run.");
@@ -619,8 +619,8 @@ let _ = class extends X {
619
619
  if (this.portalItem) {
620
620
  try {
621
621
  await this.portalItem.load();
622
- } catch (r) {
623
- throw new O("web-agent:load-portal-item", "Failed to load portal item", { error: r });
622
+ } catch (o) {
623
+ throw new O("web-agent:load-portal-item", "Failed to load portal item", { error: o });
624
624
  }
625
625
  const t = await this.portalItem.fetchData();
626
626
  if (this.sourceJSON = t, !this.portalItem.title)
@@ -653,7 +653,7 @@ J([
653
653
  a()
654
654
  ], _.prototype, "sourceJSON", 2);
655
655
  _ = J([
656
- h("WebAgent")
656
+ l("WebAgent")
657
657
  ], _);
658
658
  class qe extends U {
659
659
  static {
@@ -666,8 +666,8 @@ class qe extends U {
666
666
  async load() {
667
667
  let t;
668
668
  if (this.itemId) {
669
- const r = Q.getDefault();
670
- t = new _({ portalItem: new D({ id: this.itemId, portal: r }) });
669
+ const o = Q.getDefault();
670
+ t = new _({ portalItem: new D({ id: this.itemId, portal: o }) });
671
671
  } else this.workflow && (t = new _({ sourceJSON: this.workflow }));
672
672
  if (t && (await t.load(), this.agent = t.registration), !this.agent)
673
673
  throw new Error("Failed to initialize the assistant agent because the agent registration is missing.");
@@ -11,15 +11,17 @@ export abstract class ArcgisAssistantInterrupt extends LitElement {
11
11
  protected _messages: {
12
12
  optionsLabel: string;
13
13
  enterTextLabel: string;
14
+ otherLabel: string;
14
15
  submitButtonLabel: string;
15
- cancelButtonLabel: string;
16
+ skipButtonLabel: string;
16
17
  approveButtonLabel: string;
17
18
  declineButtonLabel: string;
18
19
  } & T9nMeta<{
19
20
  optionsLabel: string;
20
21
  enterTextLabel: string;
22
+ otherLabel: string;
21
23
  submitButtonLabel: string;
22
- cancelButtonLabel: string;
24
+ skipButtonLabel: string;
23
25
  approveButtonLabel: string;
24
26
  declineButtonLabel: string;
25
27
  }>;
@@ -1,36 +1,70 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c } from "../../chunks/runtime.js";
3
- import { css as a, html as e } from "lit";
4
- import { LitElement as l, createEvent as s } from "@arcgis/lumina";
5
- import { u as r } from "../../chunks/useT9n.js";
6
- const n = a`:host{padding:var(--calcite-spacing-md);background:var(--calcite-panel-background-color, var(--calcite-color-background))}calcite-panel{border-radius:var(--calcite-dialog-corner-radius, var(--calcite-corner-radius-sm));border:0 solid var(--calcite-color-brand);border-block-start-width:4px;box-shadow:var(--calcite-shadow-md);width:100%;--calcite-panel-border-color: none}.interrupt-content{padding:0 var(--calcite-spacing-md);background:var(--calcite-color-foreground-1)}`;
7
- class o extends l {
2
+ import { c as o } from "../../chunks/runtime.js";
3
+ import { css as n, html as t } from "lit";
4
+ import { LitElement as h, createEvent as a, safeClassMap as u } from "@arcgis/lumina";
5
+ import { createRef as r, ref as c } from "lit/directives/ref.js";
6
+ import { u as d } from "../../chunks/useT9n.js";
7
+ const p = n`:host{padding:var(--calcite-spacing-md);background:var(--calcite-panel-background-color, var(--calcite-color-background))}calcite-panel{border-radius:var(--calcite-dialog-corner-radius, var(--calcite-corner-radius-sm));border:0 solid var(--calcite-color-brand);border-block-start-width:4px;box-shadow:var(--calcite-shadow-md);width:100%;--calcite-panel-border-color: none}.interrupt-content{padding:0 var(--calcite-spacing-md);background:var(--calcite-color-foreground-1)}.other-input calcite-input[disabled]{pointer-events:none}.last-option{--calcite-list-border-color: transparent}`;
8
+ class m extends h {
8
9
  constructor() {
9
- super(...arguments), this._messages = r({ blocking: !0 }), this._selectedOptions = [], this.arcgisCancel = s(), this.arcgisSubmit = s();
10
+ super(...arguments), this.#t = r(), this.#e = r(), this._messages = d({ blocking: !0 }), this._selectedOptions = [], this._otherValue = "", this._otherSelected = !1, this.arcgisCancel = a(), this.arcgisSubmit = a();
10
11
  }
11
12
  static {
12
- this.properties = { _selectedOptions: 16, type: 1, message: 1, options: 0 };
13
+ this.properties = { _selectedOptions: 16, _otherValue: 16, _otherSelected: 16, type: 1, message: 1, options: [1, { type: Array }] };
13
14
  }
14
15
  static {
15
- this.styles = n;
16
+ this.styles = p;
17
+ }
18
+ #t;
19
+ #e;
20
+ _isSubmitDisabled() {
21
+ return this._otherSelected ? !this._otherValue.trim() : !this._selectedOptions.length;
22
+ }
23
+ _getSubmitValue() {
24
+ return typeof this._selectedOptions == "string" ? this._otherSelected ? this._otherValue.trim() : this._selectedOptions : this._selectedOptions.concat(this._otherSelected ? this._otherValue.trim() : []);
25
+ }
26
+ _getSkipValue() {
27
+ return this.type === "multi-select" ? [] : "";
28
+ }
29
+ _selectOtherOption() {
30
+ this._otherSelected || (this._otherSelected = !0, this.type !== "multi-select" && (this._selectedOptions = ""), this._focusOtherInput());
31
+ }
32
+ _handleSingleSelectChange(e) {
33
+ const i = this._otherSelected;
34
+ this._otherSelected = e.target.selectedItems[0] === this.#e.value, this._selectedOptions = this._otherSelected ? "" : e.target.selectedItems[0]?.value, this._otherSelected && !i && this._focusOtherInput();
35
+ }
36
+ _handleMultiSelectChange(e) {
37
+ const i = this._otherSelected, s = this.#e.value;
38
+ this._otherSelected = s ? e.target.selectedItems.includes(s) : !1, this._selectedOptions = e.target.selectedItems.filter((l) => l !== s).map((l) => l.value), this._otherSelected && !i && this._focusOtherInput();
39
+ }
40
+ async _focusOtherInput() {
41
+ await this.updateComplete, await this.#t.value?.setFocus();
42
+ }
43
+ _renderOptions() {
44
+ return this.options?.map((e, i) => t`<calcite-list-item class=${u({ "last-option": i === this.options.length - 1 })} .label=${e} .value=${e}></calcite-list-item>`);
45
+ }
46
+ _renderOtherInput() {
47
+ return t`<div slot=content class="other-input" @click=${(e) => {
48
+ e.stopPropagation(), this._selectOtherOption();
49
+ }}><calcite-input .label=${this._messages.otherLabel} .placeholder=${this._messages.otherLabel} .disabled=${!this._otherSelected} @calciteInputInput=${(e) => this._otherValue = e.target.value} ${c(this.#t)}></calcite-input></div>`;
16
50
  }
17
51
  _renderInterruptOptions() {
18
52
  switch (this.type) {
19
53
  case "single-select":
20
- return e`<calcite-list selection-mode=single-persist .label=${this._messages.optionsLabel} @calciteListChange=${(t) => this._selectedOptions = t.target.selectedItems[0]?.value}>${this.options?.map((t) => e`<calcite-list-item .label=${t} .value=${t}></calcite-list-item>`)}</calcite-list>`;
54
+ return t`<calcite-list selection-mode=single-persist .label=${this._messages.optionsLabel} @calciteListChange=${(e) => this._handleSingleSelectChange(e)}>${this._renderOptions()}<calcite-list-item .selected=${this._otherSelected} ${c(this.#e)}>${this._renderOtherInput()}</calcite-list-item></calcite-list>`;
21
55
  case "multi-select":
22
- return e`<calcite-list selection-mode=multiple .label=${this._messages.optionsLabel} @calciteListChange=${(t) => this._selectedOptions = t.target.selectedItems.map((i) => i.value)}>${this.options?.map((t) => e`<calcite-list-item .label=${t} .value=${t}></calcite-list-item>`)}</calcite-list>`;
56
+ return t`<calcite-list selection-mode=multiple .label=${this._messages.optionsLabel} @calciteListChange=${(e) => this._handleMultiSelectChange(e)}>${this._renderOptions()}<calcite-list-item .selected=${this._otherSelected} ${c(this.#e)}>${this._renderOtherInput()}</calcite-list-item></calcite-list>`;
23
57
  case "boolean-choice":
24
58
  return null;
25
59
  case "text-input":
26
- return e`<calcite-input .label=${this._messages.enterTextLabel} @calciteInputInput=${(t) => this._selectedOptions = t.target.value}></calcite-input>`;
60
+ return t`<calcite-input .label=${this._messages.enterTextLabel} @calciteInputInput=${(e) => this._selectedOptions = e.target.value}></calcite-input>`;
27
61
  }
28
62
  }
29
63
  render() {
30
- return e`<calcite-panel .description=${this.message}><div class="interrupt-content">${this._renderInterruptOptions()}</div>${this.type === "boolean-choice" ? e`<calcite-button slot=footer-end appearance=outline @click=${() => this.arcgisSubmit.emit(!1)}>${this._messages.declineButtonLabel}</calcite-button><calcite-button slot=footer-end appearance=solid @click=${() => this.arcgisSubmit.emit(!0)}>${this._messages.approveButtonLabel}</calcite-button>` : e`<calcite-button slot=footer-end appearance=outline @click=${() => this.arcgisCancel.emit()}>${this._messages.cancelButtonLabel}</calcite-button><calcite-button slot=footer-end appearance=solid .disabled=${!this._selectedOptions.length} @click=${() => this.arcgisSubmit.emit(this._selectedOptions)}>${this._messages.submitButtonLabel}</calcite-button>`}</calcite-panel>`;
64
+ return t`<calcite-panel .description=${this.message}><div class="interrupt-content">${this._renderInterruptOptions()}</div>${this.type === "boolean-choice" ? t`<calcite-button slot=footer-end appearance=outline @click=${() => this.arcgisSubmit.emit(!1)}>${this._messages.declineButtonLabel}</calcite-button><calcite-button slot=footer-end appearance=solid @click=${() => this.arcgisSubmit.emit(!0)}>${this._messages.approveButtonLabel}</calcite-button>` : t`<calcite-button slot=footer-end appearance=outline @click=${() => this.arcgisSubmit.emit(this._getSkipValue())}>${this._messages.skipButtonLabel}</calcite-button><calcite-button slot=footer-end appearance=solid .disabled=${this._isSubmitDisabled()} @click=${() => this.arcgisSubmit.emit(this._getSubmitValue())}>${this._messages.submitButtonLabel}</calcite-button>`}</calcite-panel>`;
31
65
  }
32
66
  }
33
- c("arcgis-assistant-interrupt", o);
67
+ o("arcgis-assistant-interrupt", m);
34
68
  export {
35
- o as ArcgisAssistantInterrupt
69
+ m as ArcgisAssistantInterrupt
36
70
  };
@@ -1,6 +1,6 @@
1
- import "@esri/calcite-components/components/calcite-list";
2
1
  import "@esri/calcite-components/components/calcite-list-item";
3
2
  import "@esri/calcite-components/components/calcite-input";
3
+ import "@esri/calcite-components/components/calcite-list";
4
4
  import "@esri/calcite-components/components/calcite-panel";
5
5
  import "@esri/calcite-components/components/calcite-button";
6
6
  export * from "./customElement.js";
@@ -2,15 +2,15 @@
2
2
  import { c as i } from "../../chunks/runtime.js";
3
3
  import { css as o, html as a } from "lit";
4
4
  import { LitElement as e } from "@arcgis/lumina";
5
- import { unsafeHTML as c } from "lit/directives/unsafe-html.js";
6
- import { p as r } from "../../chunks/converterUtils.js";
5
+ import { unsafeHTML as r } from "lit/directives/unsafe-html.js";
6
+ import { p as c } from "../../chunks/converterUtils.js";
7
7
  const n = o`.container{border-radius:var(--calcite-border-radius);margin-bottom:var(--calcite-spacing-md)}.block{margin:0;background-color:var(--calcite-color-foreground-1);width:100%;max-height:300px;overflow:auto}.entry{margin-left:var(--calcite-spacing-sm);padding:var(--calcite-spacing-xxs) var(--calcite-spacing-lg);border-left:1px solid var(--calcite-color-border-1)}`;
8
8
  class l extends e {
9
9
  constructor() {
10
10
  super(...arguments), this.logEnabled = !1, this.showLog = !1;
11
11
  }
12
12
  static {
13
- this.properties = { logEnabled: 5, showLog: 5, log: 0 };
13
+ this.properties = { logEnabled: 5, showLog: 5, log: [1, { type: Array }] };
14
14
  }
15
15
  static {
16
16
  this.styles = n;
@@ -19,7 +19,7 @@ class l extends e {
19
19
  return this.log?.length && this.showLog && this.logEnabled ? a`<div class="container"><div class="block"><calcite-accordion appearance=transparent icon-position=start icon-type=chevron scale=s>${this.log.map((s) => {
20
20
  const t = s.includes(`
21
21
  `) || s.length > 70;
22
- return a`<calcite-accordion-item .heading=${t ? `${s.substring(0, 70)}...` : s} .expanded=${t}><div class="entry">${t ? c(r(s)) : null}</div></calcite-accordion-item>`;
22
+ return a`<calcite-accordion-item .heading=${t ? `${s.substring(0, 70)}...` : s} .expanded=${t}><div class="entry">${t ? r(c(s)) : null}</div></calcite-accordion-item>`;
23
23
  })}</calcite-accordion></div></div>` : null;
24
24
  }
25
25
  }
@@ -7,7 +7,7 @@ import { a as n, p as o } from "../../chunks/converterUtils.js";
7
7
  const s = i`.container{color:var(--calcite-color-text-1);min-width:0}.content{min-width:0;overflow-wrap:anywhere}.content>*{margin:0}.content>*+*{margin-block-start:var(--calcite-spacing-sm)}.content :is(ol,ul){padding-inline-start:var(--calcite-spacing-lg)}.content>calcite-table{display:block;max-width:100%}.content pre{background-color:var(--calcite-color-foreground-1);padding:var(--calcite-spacing-sm);border-radius:var(--calcite-border-radius);color:var(--calcite-color-text-1);direction:ltr;max-width:100%;overflow:auto}.content pre code{display:block;white-space:pre;font-family:var(--calcite-code-family)}.part{animation:part-reveal calc(3 * var(--calcite-animation-timing)) ease-out}@keyframes part-reveal{0%{opacity:0;transform:translateY(var(--calcite-size-fixed-xxs))}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.part{animation:none}}`;
8
8
  class l extends c {
9
9
  static {
10
- this.properties = { content: 1, parts: 0 };
10
+ this.properties = { content: 1, parts: [1, { type: Array }] };
11
11
  }
12
12
  static {
13
13
  this.styles = s;