@arcgis/coding-components 4.32.0-next.21 → 4.32.0-next.22

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 (71) hide show
  1. package/dist/arcgis-coding-components/{MYAHFPCG.js → 43UEA4EA.js} +2 -2
  2. package/dist/arcgis-coding-components/{GF4X42IX.js → 4G2KYY2B.js} +2 -2
  3. package/dist/arcgis-coding-components/{PORKE2QR.js → 4WQBVSUF.js} +2 -2
  4. package/dist/arcgis-coding-components/{4HBG6Q7J.js → 5765Y24E.js} +2 -2
  5. package/dist/arcgis-coding-components/{U2CNRKSG.js → 5D32RXPJ.js} +2 -2
  6. package/dist/arcgis-coding-components/{FK3LN2YT.js → 5EMFEWL3.js} +1 -1
  7. package/dist/arcgis-coding-components/{74WU6RWX.js → 6MKBLX6T.js} +2 -2
  8. package/dist/arcgis-coding-components/{B3U6IGMB.js → AEB5VAQA.js} +3 -3
  9. package/dist/arcgis-coding-components/{EKG7AFRU.js → CWJQQPW4.js} +2 -2
  10. package/dist/arcgis-coding-components/{7HRJ4SA5.js → DRRYWVIC.js} +1 -1
  11. package/dist/arcgis-coding-components/{XQQGJWY6.js → EIFJON2W.js} +2 -2
  12. package/dist/arcgis-coding-components/F6N6CBXX.js +6 -0
  13. package/dist/arcgis-coding-components/{YN65EKVW.js → FDEUXBC6.js} +2 -2
  14. package/dist/arcgis-coding-components/{JMHUMOUF.js → I4D4NS5J.js} +2 -2
  15. package/dist/arcgis-coding-components/{K4XJ4DTX.js → JBZN6AHO.js} +2 -2
  16. package/dist/arcgis-coding-components/{ITN6VW2H.js → JRJGAEQR.js} +2 -2
  17. package/dist/arcgis-coding-components/{ACWJB4FM.js → K7445Z5T.js} +2 -2
  18. package/dist/arcgis-coding-components/{O4FNR3QE.js → KMDYLIWC.js} +2 -2
  19. package/dist/arcgis-coding-components/{D5JULUIS.js → KVYVHZKX.js} +2 -2
  20. package/dist/arcgis-coding-components/{OTLAFL3V.js → LI2CKIUA.js} +1 -1
  21. package/dist/arcgis-coding-components/{SV2VCHKD.js → M75MUQME.js} +2 -2
  22. package/dist/arcgis-coding-components/{WNYY4JBL.js → N7LZCDET.js} +3 -3
  23. package/dist/arcgis-coding-components/{ND6DKC5E.js → N7UF2QYB.js} +2 -2
  24. package/dist/arcgis-coding-components/{NHQIE3WK.js → NAUHDZWY.js} +2 -2
  25. package/dist/arcgis-coding-components/{YZC5GZEI.js → S75KUTVC.js} +2 -2
  26. package/dist/arcgis-coding-components/{REF4BAX2.js → SPLHHQ7B.js} +2 -2
  27. package/dist/arcgis-coding-components/{O7CLKATL.js → SXEI36W2.js} +2 -2
  28. package/dist/arcgis-coding-components/{4J325S74.js → TKCZQMWY.js} +1 -1
  29. package/dist/arcgis-coding-components/{J7YK7DPI.js → VRAWAGNS.js} +2 -2
  30. package/dist/arcgis-coding-components/{MSGF7MCQ.js → W3Q5CK32.js} +2 -2
  31. package/dist/arcgis-coding-components/{ICM7JTTB.js → WBISDO4T.js} +2 -2
  32. package/dist/arcgis-coding-components/WD3PU52Z.js +6 -0
  33. package/dist/arcgis-coding-components/WWQCHZHI.js +8 -0
  34. package/dist/arcgis-coding-components/{W6ZEUCLN.js → Y2COBTME.js} +2 -2
  35. package/dist/arcgis-coding-components/{JTCBPKTU.js → ZPCBFB6W.js} +2 -2
  36. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  37. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +1 -1
  38. package/dist/chunks/arcade-defaults.js +1 -1
  39. package/dist/chunks/arcade-executor.js +1 -1
  40. package/dist/chunks/arcade-mode.js +1 -1
  41. package/dist/chunks/arcade-service-accessors.js +1 -1
  42. package/dist/chunks/fields.js +1 -1
  43. package/dist/chunks/language-defaults-base.js +1 -1
  44. package/dist/chunks/markdown.js +1 -1
  45. package/dist/chunks/monaco-importer.js +1 -1
  46. package/dist/chunks/runtime.js +1 -1
  47. package/dist/chunks/sql-expr-defaults.js +1 -1
  48. package/dist/chunks/sql-expr-mode.js +1 -1
  49. package/dist/chunks/useT9n.js +1 -1
  50. package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
  51. package/dist/components/arcgis-arcade-editor/index.d.ts +5 -5
  52. package/dist/components/arcgis-arcade-editor/index.js +5 -5
  53. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  54. package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
  55. package/dist/components/arcgis-code-editor/customElement.js +1 -1
  56. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  57. package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
  58. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  59. package/dist/components/arcgis-sql-expression-editor/index.d.ts +3 -3
  60. package/dist/components/arcgis-sql-expression-editor/index.js +3 -3
  61. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  62. package/dist/docs/api.json +2 -2
  63. package/dist/docs/docs.json +2 -2
  64. package/dist/docs/web-types.json +1 -1
  65. package/dist/index.d.ts +2 -0
  66. package/dist/index.js +1 -1
  67. package/dist/loader.js +1 -1
  68. package/package.json +7 -7
  69. package/dist/arcgis-coding-components/44U7RRHZ.js +0 -8
  70. package/dist/arcgis-coding-components/HISHIXXM.js +0 -6
  71. package/dist/arcgis-coding-components/RWPDIXXC.js +0 -6
@@ -5,7 +5,7 @@ import { CompletionItemKind as w, InsertTextMode as f, InsertTextFormat as d } f
5
5
  /*!
6
6
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
8
- * v4.32.0-next.21
8
+ * v4.32.0-next.22
9
9
  */
10
10
  async function S(e) {
11
11
  const { apiVersion: i, bundles: t, hiddenApiItems: r } = e.toEditorProfileDefinition(), n = await h(e.dictionaryVariables);
@@ -2,7 +2,7 @@ import { importArcade as C } from "@arcgis/core-adapter";
2
2
  /*!
3
3
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
5
- * v4.32.0-next.21
5
+ * v4.32.0-next.22
6
6
  */
7
7
  const G = "https://developers.arcgis.com/arcade/", O = 100, A = 100;
8
8
  function u(t) {
@@ -9,7 +9,7 @@ import { debounce as T, Deferred as _ } from "@arcgis/components-utils";
9
9
  /*!
10
10
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
12
- * v4.32.0-next.21
12
+ * v4.32.0-next.22
13
13
  */
14
14
  const y = [
15
15
  "<=",
@@ -3,7 +3,7 @@ import { isURL as i, hasSameOrigin as c } from "@arcgis/components-utils";
3
3
  /*!
4
4
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
5
5
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
6
- * v4.32.0-next.21
6
+ * v4.32.0-next.22
7
7
  */
8
8
  function a() {
9
9
  return !!window.MonacoEnvironment?.getWorkerUrl;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
- * v4.32.0-next.21
4
+ * v4.32.0-next.22
5
5
  */
6
6
  function t(e) {
7
7
  switch (e.type) {
@@ -9,7 +9,7 @@ import { Emitter as $, Uri as A } from "monaco-editor";
9
9
  /*!
10
10
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
12
- * v4.32.0-next.21
12
+ * v4.32.0-next.22
13
13
  */
14
14
  function B(t) {
15
15
  return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass.startsWith("esri.layers.") && g(t) && "queryFeatures" in t && typeof t.queryFeatures == "function";
@@ -5,7 +5,7 @@ import { generateTokensCSSForColorMap as te } from "monaco-editor/esm/vs/editor/
5
5
  /*!
6
6
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
8
- * v4.32.0-next.21
8
+ * v4.32.0-next.22
9
9
  */
10
10
  async function ne(l) {
11
11
  return await (await ee()).colorize(l, "arcade", { tabSize: 2 });
@@ -6,7 +6,7 @@ import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization";
6
6
  /*!
7
7
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
8
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
9
- * v4.32.0-next.21
9
+ * v4.32.0-next.22
10
10
  */
11
11
  function g(r, t, n, m) {
12
12
  if (!t)
@@ -2,7 +2,7 @@ import { makeRuntime as t } from "@arcgis/lumina";
2
2
  /*!
3
3
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
5
- * v4.32.0-next.21
5
+ * v4.32.0-next.22
6
6
  */
7
7
  const s = t({ defaultAssetPath: "https://jsdev.arcgis.com/coding-components/next/", hydratedAttribute: "hydrated" }), { customElement: a, getAssetPath: o, setAssetPath: m } = s;
8
8
  export {
@@ -5,7 +5,7 @@ import { g as b } from "./runtime.js";
5
5
  /*!
6
6
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
8
- * v4.32.0-next.21
8
+ * v4.32.0-next.22
9
9
  */
10
10
  const x = (r) => {
11
11
  const e = r.variables[0], i = e && e.type === "featureSet" ? A(e) : void 0, { apiVersion: t, bundles: o, hiddenApiItems: s } = r.toEditorProfileDefinition();
@@ -8,7 +8,7 @@ import { a as d } from "./sql-expr-defaults.js";
8
8
  /*!
9
9
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
10
10
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
11
- * v4.32.0-next.21
11
+ * v4.32.0-next.22
12
12
  */
13
13
  let h = new _();
14
14
  class k {
@@ -3,7 +3,7 @@ import { g as t } from "./runtime.js";
3
3
  /*!
4
4
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
5
5
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
6
- * v4.32.0-next.21
6
+ * v4.32.0-next.22
7
7
  */
8
8
  const s = o(t);
9
9
  export {
@@ -15,7 +15,7 @@ import { css as w } from "@lit/reactive-element/css-tag.js";
15
15
  /*!
16
16
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
17
17
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
18
- * v4.32.0-next.21
18
+ * v4.32.0-next.22
19
19
  */
20
20
  const $ = w`arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%;.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-panel{flex:1 0 auto}.position-relative{position:relative}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}.sticky{position:sticky;top:0;z-index:10}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w);calcite-flow{height:100%}}.main-action-bar{border-bottom:var(--arcgis-coding-components-border);flex:0 0 auto;calcite-action-group{padding-inline-end:var(--calcite-spacing-sm);calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}arcgis-arcade-results{border-top:var(--arcgis-coding-components-border);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}calcite-flow{[slot=footer]{word-break:break-word}}}`;
21
21
  class y extends _ {
@@ -1,10 +1,10 @@
1
1
  import "@esri/calcite-components/dist/components/calcite-action-bar.js";
2
2
  import "@esri/calcite-components/dist/components/calcite-action-group.js";
3
3
  import "@esri/calcite-components/dist/components/calcite-action.js";
4
- import "../arcgis-code-editor";
4
+ import "../arcgis-code-editor/index.js";
5
5
  import "@esri/calcite-components/dist/components/calcite-tooltip.js";
6
- import "../arcgis-language-api-panel";
7
- import "../arcgis-editor-variables";
8
- import "../arcgis-arcade-suggestions";
9
- import "../arcgis-arcade-results";
6
+ import "../arcgis-language-api-panel/index.js";
7
+ import "../arcgis-editor-variables/index.js";
8
+ import "../arcgis-arcade-suggestions/index.js";
9
+ import "../arcgis-arcade-results/index.js";
10
10
  export * from "./customElement.js";
@@ -1,10 +1,10 @@
1
1
  import "@esri/calcite-components/dist/components/calcite-action-bar.js";
2
2
  import "@esri/calcite-components/dist/components/calcite-action-group.js";
3
3
  import "@esri/calcite-components/dist/components/calcite-action.js";
4
- import "../arcgis-code-editor";
4
+ import "../arcgis-code-editor/index.js";
5
5
  import "@esri/calcite-components/dist/components/calcite-tooltip.js";
6
- import "../arcgis-language-api-panel";
7
- import "../arcgis-editor-variables";
8
- import "../arcgis-arcade-suggestions";
9
- import "../arcgis-arcade-results";
6
+ import "../arcgis-language-api-panel/index.js";
7
+ import "../arcgis-editor-variables/index.js";
8
+ import "../arcgis-arcade-suggestions/index.js";
9
+ import "../arcgis-arcade-results/index.js";
10
10
  export * from "./customElement.js";
@@ -9,7 +9,7 @@ import { css as M } from "@lit/reactive-element/css-tag.js";
9
9
  /*!
10
10
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
12
- * v4.32.0-next.21
12
+ * v4.32.0-next.22
13
13
  */
14
14
  const A = M`:host{display:flex;flex-direction:column;width:100%;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.y-scrollable-container{overflow-y:auto;block-size:100%;background-color:var(--calcite-color-foreground-1)}header{border-bottom:1px solid var(--calcite-color-border-3);flex:0 0 auto}.ltr-container{direction:ltr}calcite-action-bar{calcite-action-group{padding-inline-end:var(--calcite-spacing-sm);calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.color-info{color:var(--calcite-color-status-info)}.color-error{color:var(--calcite-color-status-danger)}.color-success{color:var(--calcite-color-status-success)}[class*=result-value-]{font-size:var(--calcite-font-size--2);line-height:1.25rem;background-color:var(--calcite-color-foreground-1);margin:var(--calcite-spacing-md)}.console-logs-container{background-color:var(--calcite-color-foreground-1);padding:0 var(--calcite-spacing-md);font-family:var(--calcite-code-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal)}.result-value-table{table{display:block;max-width:fit-content;overflow-x:auto;border-spacing:0;border-collapse:collapse;text-align:start;white-space:nowrap;thead{background-color:var(--calcite-color-foreground-2)}tr{border-top:1px solid var(--calcite-color-border-3);border-bottom:1px solid var(--calcite-color-border-3)}th,td{border-inline-start:1px solid var(--calcite-color-border-3);border-inline-end:1px solid var(--calcite-color-border-3);text-align:start;padding:var(--calcite-spacing-xxs);.string-value{white-space:pre}}th{font-weight:var(--calcite-font-weight-medium)}}}.tree-item-label,.number-value,.string-value,.boolean-value{font-family:var(--calcite-code-family)}.tree-item-label,.value-type{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-normal)}.dictionary-property{color:var(--arcgis-editor-identifier)}.number-value{color:var(--arcgis-editor-number)}.string-value{color:var(--arcgis-editor-string);white-space:pre-wrap}.constant-value{color:var(--arcgis-editor-constant)}.date-value{color:var(--arcgis-editor-date)}}`, a = {
15
15
  lines: !0,
@@ -10,7 +10,7 @@ import { css as b } from "@lit/reactive-element/css-tag.js";
10
10
  /*!
11
11
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
12
12
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
13
- * v4.32.0-next.21
13
+ * v4.32.0-next.22
14
14
  */
15
15
  function v(o) {
16
16
  return !Array.isArray(o) || !o.length ? !1 : Array.isArray(o[0].suggestions);
@@ -14,7 +14,7 @@ import { load as D } from "@arcgis/components-controllers";
14
14
  /*!
15
15
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
16
16
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
17
- * v4.32.0-next.21
17
+ * v4.32.0-next.22
18
18
  */
19
19
  c.register({
20
20
  id: n.languageId,
@@ -8,7 +8,7 @@ import { css as u } from "@lit/reactive-element/css-tag.js";
8
8
  /*!
9
9
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
10
10
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
11
- * v4.32.0-next.21
11
+ * v4.32.0-next.22
12
12
  */
13
13
  const f = u`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
14
14
  function g(r) {
@@ -10,7 +10,7 @@ import { css as b } from "@lit/reactive-element/css-tag.js";
10
10
  /*!
11
11
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
12
12
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
13
- * v4.32.0-next.21
13
+ * v4.32.0-next.22
14
14
  */
15
15
  const _ = b`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-block{p:first-of-type{margin-top:0}code{font-family:var(--calcite-code-family)}pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-sm);code{font-size:var(--calcite-font-size--2)}}}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
16
16
  class v extends h {
@@ -9,7 +9,7 @@ import { css as h } from "@lit/reactive-element/css-tag.js";
9
9
  /*!
10
10
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
12
- * v4.32.0-next.21
12
+ * v4.32.0-next.22
13
13
  */
14
14
  const g = h`arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%;.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-panel{flex:1 0 auto}.position-relative{position:relative}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w);calcite-flow{height:100%}}}`;
15
15
  class f extends s {
@@ -1,6 +1,6 @@
1
- import "../arcgis-code-editor";
2
- import "../arcgis-editor-variables";
3
- import "../arcgis-language-api-panel";
1
+ import "../arcgis-code-editor/index.js";
2
+ import "../arcgis-editor-variables/index.js";
3
+ import "../arcgis-language-api-panel/index.js";
4
4
  import "@esri/calcite-components/dist/components/calcite-action-bar.js";
5
5
  import "@esri/calcite-components/dist/components/calcite-action.js";
6
6
  import "@esri/calcite-components/dist/components/calcite-tooltip.js";
@@ -1,6 +1,6 @@
1
- import "../arcgis-code-editor";
2
- import "../arcgis-editor-variables";
3
- import "../arcgis-language-api-panel";
1
+ import "../arcgis-code-editor/index.js";
2
+ import "../arcgis-editor-variables/index.js";
3
+ import "../arcgis-language-api-panel/index.js";
4
4
  import "@esri/calcite-components/dist/components/calcite-action-bar.js";
5
5
  import "@esri/calcite-components/dist/components/calcite-action.js";
6
6
  import "@esri/calcite-components/dist/components/calcite-tooltip.js";
@@ -8,7 +8,7 @@ import { css as d } from "@lit/reactive-element/css-tag.js";
8
8
  /*!
9
9
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
10
10
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
11
- * v4.32.0-next.21
11
+ * v4.32.0-next.22
12
12
  */
13
13
  const h = d`:host{calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
14
14
  class f extends r {
@@ -1,8 +1,8 @@
1
1
  {
2
- "timestamp": "2024-11-19T17:36:23",
2
+ "timestamp": "2024-11-20T16:47:35",
3
3
  "compiler": {
4
4
  "name": "@arcgis/lumina-compiler",
5
- "version": "4.32.0-next.21",
5
+ "version": "4.32.0-next.22",
6
6
  "typescriptVersion": "5.6.3"
7
7
  },
8
8
  "schemaVersion": "1.0.0",
@@ -1,8 +1,8 @@
1
1
  {
2
- "timestamp": "2024-11-19T17:36:23",
2
+ "timestamp": "2024-11-20T16:47:35",
3
3
  "compiler": {
4
4
  "name": "@arcgis/lumina-compiler",
5
- "version": "4.32.0-next.21",
5
+ "version": "4.32.0-next.22",
6
6
  "typescriptVersion": "5.6.3"
7
7
  },
8
8
  "components": [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@arcgis/coding-components",
4
- "version": "4.32.0-next.21",
4
+ "version": "4.32.0-next.22",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
package/dist/index.d.ts CHANGED
@@ -31,6 +31,8 @@ export interface ArcgisSqlExpressionEditorCustomEvent<T> extends CustomEvent<T>
31
31
  target: HTMLArcgisSqlExpressionEditorElement;
32
32
  }
33
33
 
34
+ export { ToEvents } from "@arcgis/lumina";
35
+
34
36
  declare global {
35
37
  interface HTMLElementTagNameMap {
36
38
  "arcgis-arcade-editor": HTMLArcgisArcadeEditorElement;
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { s as p } from "./chunks/sql-expr-defaults.js";
4
4
  /*!
5
5
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
6
6
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
7
- * v4.32.0-next.21
7
+ * v4.32.0-next.22
8
8
  */
9
9
  const a = s, r = t;
10
10
  export {
package/dist/loader.js CHANGED
@@ -3,7 +3,7 @@ import { makeDefineCustomElements as i } from "@arcgis/lumina";
3
3
  /*!
4
4
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
5
5
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
6
- * v4.32.0-next.21
6
+ * v4.32.0-next.22
7
7
  */
8
8
  const o = i(e, {
9
9
  "arcgis-arcade-editor": [() => import("./components/arcgis-arcade-editor/customElement.js"), "editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/coding-components",
3
- "version": "4.32.0-next.21",
3
+ "version": "4.32.0-next.22",
4
4
  "description": "Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.",
5
5
  "keywords": [
6
6
  "ArcGIS",
@@ -36,12 +36,12 @@
36
36
  ],
37
37
  "license": "SEE LICENSE IN LICENSE.md",
38
38
  "dependencies": {
39
- "@arcgis/arcade-languageservice": "4.32.0-next.21",
40
- "@arcgis/components-controllers": "4.32.0-next.21",
41
- "@arcgis/components-utils": "4.32.0-next.21",
42
- "@arcgis/core-adapter": "4.32.0-next.21",
43
- "@arcgis/languages-api-utils": "4.32.0-next.21",
44
- "@arcgis/lumina": "4.32.0-next.21",
39
+ "@arcgis/arcade-languageservice": "4.32.0-next.22",
40
+ "@arcgis/components-controllers": "4.32.0-next.22",
41
+ "@arcgis/components-utils": "4.32.0-next.22",
42
+ "@arcgis/core-adapter": "4.32.0-next.22",
43
+ "@arcgis/languages-api-utils": "4.32.0-next.22",
44
+ "@arcgis/lumina": "4.32.0-next.22",
45
45
  "monaco-editor": "0.45.0",
46
46
  "tslib": "^2.7.0",
47
47
  "vscode-languageserver-types": "^3.17.5"
@@ -1,8 +0,0 @@
1
- /*!
2
- * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
- * v4.32.0-next.21
5
- */
6
- import{a as _,e as p,f as z,j as Nt,l as Rt,q as X,r as Ut,t as Mt}from"./4J325S74.js";function jt(e,t){if(t){let o=e.constructor.elementProperties;e.manager.internals.members=Object.fromEntries(Array.from(o,([s,r])=>r.noAccessor?void 0:[s,[(r.readOnly?2048:0)|(r.state?32:16)]]).filter(Mt))}else{let o=e.constructor,s=o.__registerControllers?.(e)??void 0;if(o.__registerControllers=void 0,typeof s!="object")throw new Error("Failed to retrieve component meta");e.manager.internals.members=Object.fromEntries(Object.entries(s).filter(([r,[n]])=>(n&63)!==0))}}function Vt(e,t=8){return e==null||typeof e=="object"||typeof e=="function"?e:t&4?e==="false"?!1:e===""||!!e:t&2?Number.parseFloat(e):t&1?String(e):e}var It=(e,t)=>e.manager.internals.members?.[t]?.[0];var et=Symbol.for("controller");var Wt=e=>typeof e=="object"&&e!==null&&(et in e||"hostConnected"in e||"hostDisconnected"in e||"hostUpdate"in e||"hostUpdated"in e);var W;function T(e){W!==e&&(W=e,queueMicrotask(()=>{W===e&&(W=void 0)}))}function V(e){return W}var P=[];function ot(e){if(e===void 0){P=[];return}let t=P.indexOf(e);P=t===-1?[...P,e]:P.slice(0,t+1),queueMicrotask(()=>{P=[]})}function Bt(){return P}var j;function ke(e){j!==e&&(j=e,queueMicrotask(()=>{j===e&&(j=void 0)}))}function Ne(){let e=j;return j=void 0,e}var Re=async(e,t)=>{let o=_t(e);if(o===void 0)return e;if(await o.ready,typeof t=="function"){let s=o.watchExports(r=>t(r,s))}return o.exports},Ue=async e=>{let t=_t(e);return await t.ready,t},_t=e=>{let t=Ne();if(t!==void 0)return t;let s=V().manager.internals.resolveExports(e);if(s!==void 0)return s;if(Wt(e))return e},B={setter:!1,getter:!1,readOnly:!1},q=new WeakMap,qt;qt=et;var Et=class{constructor(e){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new _,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[qt]=!0,this.ready=this._ready.promise,this._exports=zt(this),this._exportWatchers=new Set;let t=e??V(new.target.name);this.component=t,this.component.addController(this),ot(this),this.component.manager===void 0||queueMicrotask(()=>this.catchUpLifecycle())}catchUpLifecycle(){let{manager:e}=this.component;e.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),e._loadCalled&&this.triggerLoad().then(()=>{e.loadedCalled&&this.triggerLoaded()}).catch(console.error)}get exports(){return this._exports}set exports(e){let t=this._exports;t!==e&&(this._exports=e,this._exportWatchers.forEach(p),this.connectedCalled&&this.assignedProperty!==!1&&this.component.requestUpdate(this.assignedProperty,t)),this._ready.resolve(e)}setProvisionalExports(e,t=!0){this._exports=t?zt(e):e,this._exportWatchers.forEach(p)}watchExports(e){let t=()=>e(this._exports);return this._exportWatchers.add(t),()=>void this._exportWatchers.delete(t)}get use(){return T(this.component),Re}get useRef(){return T(this.component),Ue}get useRefSync(){return T(this.component),_t}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(e){this._callbacks.hostConnected.push(e)}onDisconnected(e){this._callbacks.hostDisconnected.push(e)}onLoad(e){this._callbacks.hostLoad.push(e)}onLoaded(e){this._callbacks.hostLoaded.push(e)}onUpdate(e){this._callbacks.hostUpdate.push(e)}onUpdated(e){this._callbacks.hostUpdated.push(e)}onDestroy(e){this._callbacks.hostDestroy.push(e)}onLifecycle(e){this._callbacks.hostLifecycle.push(e),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(e)}triggerConnected(){let e=this;e.hostConnected&&p(e.hostConnected,e),this._callbacks.hostConnected.forEach(p),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){let e=this;e.hostDisconnected&&p(e.hostDisconnected,e),this._callbacks.hostDisconnected.forEach(p),this._lifecycleCleanups.forEach(p),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;let e=this;e.hostLoad&&await z(e.hostLoad,e),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(z)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;let e=this;e.hostLoaded&&p(e.hostLoaded,e),this._callbacks.hostLoaded.forEach(p),this.loadedCalled=!0}triggerUpdate(e){let t=this;t.hostUpdate&&p(t.hostUpdate,t,e),this._callbacks.hostUpdate.forEach(Ht,e)}triggerUpdated(e){let t=this;t.hostUpdated&&p(t.hostUpdated,t,e),this._callbacks.hostUpdated.forEach(Ht,e)}triggerDestroy(){let e=this;e.hostDestroy&&p(e.hostDestroy,e),this._callbacks.hostDestroy.forEach(p)}triggerLifecycle(){let e=this;e.hostLifecycle&&this._callLifecycle(()=>e.hostLifecycle()),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(e){T(this.component);let t=p(e);(Array.isArray(t)?t:[t]).forEach(s=>{typeof s=="function"?this._lifecycleCleanups.push(s):typeof s=="object"&&typeof s.remove=="function"&&this._lifecycleCleanups.push(s.remove)})}};function Ht(e){p(e,void 0,this)}var Gt=Et;function zt(e){if(typeof e!="object"&&typeof e!="function"||e===null)return e;let t=new Proxy(e,{get(o,s,r){if(!(Me.has(s)&&s in o&&o[s]===t)&&(s in o||s in Promise.prototype||typeof s=="symbol"))return typeof o=="function"?o[s]:Reflect.get(o,s,r)},set:(o,s,r,n)=>Reflect.set(o,s,r,n)});return t}var Me=new Set(["exports","_exports"]);function st(e,t,o){let s=Object.keys(e),r=s.length;S===void 0&&queueMicrotask(G),S??(S=new Map);let n=S.get(e);return n===void 0&&(n={callbacks:[],keyCount:r},S.set(e,n)),n.keyCount!==r&&(n.callbacks.forEach(i=>i(s)),n.callbacks=[],n.keyCount=r),n.callbacks.push(i=>{let c=l=>p(t,null,l),a=i[r];a===void 0?c(void 0):e[a]===o?c(a):c(void 0)}),o}var S=void 0;function G(){Array.from(S?.entries()??[]).forEach(([e,{callbacks:t}])=>{let o=Object.keys(e);t.forEach(s=>s(o))}),S=void 0}function rt(e,t,o){var s;let r=t,n=e.manager.internals;(s=n.allWatchers)[r]??(s[r]=[]);let i=n.allWatchers[r],c=o,a=(l,d,h)=>p(c,null,l,d,h);return i.push(a),()=>{let l=i.indexOf(a);l!==-1&&i.splice(l,1)}}var Ft=class{constructor(e){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;let t=this.component.manager.internals;Object.entries(t.members).forEach(([o,[s]])=>{var r;s&2048&&((r=t.setters)[o]??(r[o]=[]),t.setters[o].push(t.readonlySetter))})},this.trackedValue=bt,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this._exports=new WeakMap,this.readonlySetter=(t,o,s)=>{if(B.readOnly)return t;throw new Error(`Cannot assign to read-only property "${s}" of ${this.component.el.tagName.toLowerCase()}. Trying to assign "${String(t)}"`)},this.component=e}firePropTrackers(e,t){let o=this.keyTrackers;this.trackedValue=bt,this.keyTrackers=[],o.forEach(s=>s(e,t))}getSetProxy(e){let t=this.component,o=t.constructor.prototype;if(this._getSetProxy(o,e,"class"),t.manager.isLit)return;let s=t.el.constructor.prototype;o!==s&&this._getSetProxy(s,e,"html")}_getSetProxy(e,t,o){let s=this.component,r=It(s,t),n;do n=Object.getOwnPropertyDescriptor(e,t);while(!n&&(e=Object.getPrototypeOf(e)));if(!n)return;let i=n.get,c=n.set,a=tt in i,l=tt in c;if(a&&l)return;let d=!a,h=!l,f=d?function(){let b=i.call(this),C=q.get(this);if(B.getter||C===void 0)return b;let O=C.manager.internals;b=O.accessorGetter[t](b,t);let g=O.getters[t]??gt;for(let x=0;x<g.length;x++)b=g[x](b,t);return b}:i,u=h?function(b){let C=i.call(this),O=q.get(this);if(O===void 0){c.call(this,b);return}let g=O.manager.isLit?b??void 0:Vt(b,r),x=O.manager.internals;if(g===C)c.call(this,g);else{let kt=B.setter?gt:x.setters[t]??gt;for(let H=0;H<kt.length&&(g=kt[H](g,C,t),g!==C);H++);g=x.accessorSetter[t](g,C,t),c.call(this,g),g!==C&&x.enabledWatchers[t]?.forEach(H=>H(g,C,t))}x.keyTrackers.length>0&&x?.firePropTrackers(t,b)}:c;d&&(f[tt]=!0),h&&(u[tt]=!0),Object.defineProperty(e,t,{...n,get:f,set:u})}markExports(e,t){(typeof t=="object"&&t!==null||typeof t=="function")&&this._exports.set(t,e)}resolveExports(e){if(typeof e=="object"&&e!==null||typeof e=="function")return this._exports.get(e)}},gt=[],tt=Symbol(),bt=Symbol();function Kt(e,t,o){let s=e.manager.internals;return s.trackedValue!==bt&&s.trackedValue!==o&&s.firePropTrackers(void 0,void 0),s.keyTrackers.length===0&&queueMicrotask(()=>s.firePropTrackers(void 0,void 0)),s.trackedValue=o,s.keyTrackers.push((r,n)=>p(t,void 0,o===n?r:void 0)),o}function Jt(e,t,o){let s=Array.isArray(e)?e:[e],r=s.length+1,n=c=>{r-=1,c!==void 0&&(r=Math.min(r,0)),r===0&&t(c)};s.forEach(c=>st(c,a=>n(a===void 0?void 0:{key:a,host:c,isReactive:!1}),o));let i=s.find(c=>"manager"in c&&typeof c.manager=="object"&&c.manager.component===c);return i&&Kt(i,c=>n(c===void 0?void 0:{key:c,host:i,isReactive:!0}),o),o}function Yt(e){B.readOnly=!0;try{return e()}finally{B.readOnly=!1}}var Qt=e=>(...t)=>{let o=Bt(),s=new e(...t),r=s.exports;ot(o.at(-1));let n=s.component.manager.internals;n.markExports(s,r),s.watchExports(c=>n.markExports(s,c)),ke(s);let i=[s.component,...o].reverse();return Jt(i,c=>c===void 0?void 0:je(s,c,r),r)};function je(e,{host:t,key:o,isReactive:s},r){let n=t,i=n[o]!==e.exports,c=n[o]!==r,a=r!==e.exports;if(i&&!c&&a&&(n[o]=e.exports),t===e.component){if(s){let d=e.component.manager.internals;c&&d.markExports(e,n[o]),rt(e.component,o,h=>{h!==e.exports&&d.markExports(e,h)})}e.assignedProperty=s?void 0:o}e.watchExports(()=>{if(n[o]===e.exports)return;let d=e.component.manager;d.internals.setters[o]?.includes(d.internals.readonlySetter)?Yt(()=>{n[o]=e.exports}):n[o]=e.exports})}var Xt=(e,t)=>new Ve(e,t),Ve=class extends Gt{constructor(e,t){let o="addController"in e,s=new Set;function r(a){s.add(a),!(et in a)&&e.renderRoot&&e.el.isConnected&&a.hostConnected?.()}function n(a){s.delete(a),a.controllerRemoved?.()}let i=e;if(i.addController=r,i.removeController=n,!o){let a=t??e.constructor.__forceUpdate;i.requestUpdate=()=>a(e)}super(e),this.internals=new Ft(this.component),this.destroyed=!1,this._updatePromise=new _,this._originalLifecycles={},this.isLit=o,this.component.manager=this,jt(e,o),this._controllers=s,this.exports=void 0,this.hasDestroy=Ct in this.component&&typeof this.component.destroy=="function",this._bindLifecycleMethods();let c=this.internals;Object.keys(c.members).forEach(a=>{c.accessorGetter[a]=Zt,c.accessorSetter[a]=Zt,c.getSetProxy(a)}),o?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(e,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(c.enableReadonly),ot(void 0),T(e),q.set(e.el,e),q.set(e,e)}_bindLifecycleMethods(){let e=this.component,t=this.isLit,o=e.el===e;this._originalLifecycles={_connectedCallback:t||o?void 0:e.connectedCallback,_disconnectedCallback:t||o?void 0:e.disconnectedCallback,_load:t?e.load:e.componentWillLoad,_loaded:t?e.loaded:e.componentDidLoad,_willUpdate:t?void 0:e.componentWillUpdate,_updated:t?void 0:e.componentDidUpdate,_destroy:e.destroy};let s=this._connectedCallback.bind(this),r=this._disconnectedCallback.bind(this),n=this._update.bind(this),i=this._updated.bind(this);t?e.constructor.prototype.addController.call(e,{hostConnected:s,hostDisconnected:r,hostUpdate:n,hostUpdated:i}):(e.connectedCallback=s,e.disconnectedCallback=r,e.componentWillLoad=this._load.bind(this),e.componentDidLoad=this._loaded.bind(this),e.componentWillUpdate=n,e.componentDidUpdate=i),this.hasDestroy&&(e.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){let t=this.component.el.tagName.toLowerCase();throw this.component.el.remove(),new Error(`The ${t} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${Ct} prop.`)}this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout);let e=this.internals;e.enabledWatchers=e.allWatchers,G(),e.enableReadonly?.(),this._controllers.forEach(He),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(ze),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){await Promise.allSettled(Array.from(this._controllers,We)),await this._originalLifecycles._load?.call(this.component),this.hasDestroy&&rt(this.component,Ct,()=>this._setAutoDestroyTimeout())}_loaded(){this._controllers.forEach(Be),this._originalLifecycles._loaded?.call(this.component)}_update(){let e=this.component;this._controllers.forEach(qe,e.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){let e=this.component;if(this._controllers.forEach(Ge,e.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)e.$changes=new Map;else{let t=this._updatePromise;this._updatePromise=new _,t.resolve(!0)}}async destroy(){if(!this.destroyed){if(this.component.el.isConnected){this.hasDestroy=!1;try{this.component.el.remove()}finally{this.hasDestroy=!0}}this._autoDestroyTimeout=void 0,this.destroyed=!0,this._controllers.forEach(Fe),this._controllers.clear(),await this._originalLifecycles._destroy?.call(this.component)}}_setAutoDestroyTimeout(){if(this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout),!this.component.el.isConnected&&!this.component.autoDestroyDisabled){let e=()=>void this.destroy().catch(console.error);this._autoDestroyTimeout=Ut(e,Ie)}}},Ct="autoDestroyDisabled",Ie=1e3;var Zt=e=>e;function He(e){"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)}function ze(e){"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e)}async function We(e){"triggerLoad"in e?await e.triggerLoad():await z(e.hostLoad,e)}function Be(e){"triggerLoaded"in e?e.triggerLoaded():p(e.hostLoaded,e)}function qe(e){"triggerUpdate"in e?e.triggerUpdate(this):p(e.hostUpdate,e,this)}function Ge(e){"triggerUpdated"in e?e.triggerUpdated(this):p(e.hostUpdated,e,this)}function Fe(e){"triggerDestroy"in e?e.triggerDestroy():p(e.hostDestroy,e)}var te=e=>Je(void 0,e);var Ke=class extends Et{constructor(e,t){super(e);let o=this.exports;try{T(this.component);let s=t(this.component,this),r=this.exports!==o;if(s instanceof Promise){r||this.setProvisionalExports(s);let n=s.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this._ready.reject(i),console.error(i)});this.onLoad(async()=>await n)}else(!r||s!==void 0)&&(this.exports=s),queueMicrotask(()=>super.catchUpLifecycle())}catch(s){this._ready.reject(s),console.error(s)}}catchUpLifecycle(){}},Je=Qt(Ke);var Wo=te;var qo=(e,t)=>(o={})=>te((s,r)=>{let n=Nt(s.el),i={_lang:n.lang,_t9nLocale:n.t9nLocale,_loading:!0},c=s;queueMicrotask(()=>r.onLifecycle(()=>Rt(s.el,e("./assets"),({t9nLocale:l,t9nStrings:d,lang:h})=>{let f={...d,_lang:h,_t9nLocale:l,_loading:!1};r.exports=f;let u=d.componentLabel??d.widgetLabel;typeof u=="string"&&"label"in s&&s.label==null&&(s.label??(s.label=u)),a(c.messageOverrides)},o.name,t)));function a(l){let d=r.exports,h=d._original??d,f=ee(h,l);l&&(f._original=h),r.exports=f}return"messageOverrides"in c&&r.onLifecycle(()=>rt(c,"messageOverrides",a)),o.blocking?(r.setProvisionalExports(i,!1),r.ready):i});function ee(e,t){if(!t)return e;let o={...e};return Object.entries(t).forEach(([s,r])=>{typeof r=="object"?o[s]=ee(e[s],r):o[s]=r??e[s]}),o}var nt=globalThis,it=nt.ShadowRoot&&(nt.ShadyCSS===void 0||nt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,xt=Symbol(),oe=new WeakMap,F=class{constructor(t,o,s){if(this._$cssResult$=!0,s!==xt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o,o=this.t;if(it&&t===void 0){let s=o!==void 0&&o.length===1;s&&(t=oe.get(o)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&oe.set(o,t))}return t}toString(){return this.cssText}},se=e=>new F(typeof e=="string"?e:e+"",void 0,xt),Ye=(e,...t)=>{let o=e.length===1?e[0]:t.reduce((s,r,n)=>s+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[n+1],e[0]);return new F(o,e,xt)},$t=(e,t)=>{if(it)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let s=document.createElement("style"),r=nt.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=o.cssText,e.appendChild(s)}},at=it?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let o="";for(let s of t.cssRules)o+=s.cssText;return se(o)})(e):e;var At=globalThis,ct=At.trustedTypes,re=ct?ct.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ot="$lit$",$=`lit$${Math.random().toFixed(9).slice(2)}$`,Lt="?"+$,Qe=`<${Lt}>`,N=document,J=()=>N.createComment(""),Y=e=>e===null||typeof e!="object"&&typeof e!="function",Pt=Array.isArray,he=e=>Pt(e)||typeof e?.[Symbol.iterator]=="function",wt=`[
7
- \f\r]`,K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ne=/-->/g,ie=/>/g,D=RegExp(`>|${wt}(?:([^\\s"'>=/]+)(${wt}*=${wt}*(?:[^
8
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ae=/'/g,ce=/"/g,de=/^(?:script|style|textarea|title)$/i,St=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),Yo=St(1),Qo=St(2),Zo=St(3),y=Symbol.for("lit-noChange"),m=Symbol.for("lit-nothing"),le=new WeakMap,k=N.createTreeWalker(N,129);function pe(e,t){if(!Pt(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return re!==void 0?re.createHTML(t):t}var ue=(e,t)=>{let o=e.length-1,s=[],r,n=t===2?"<svg>":t===3?"<math>":"",i=K;for(let c=0;c<o;c++){let a=e[c],l,d,h=-1,f=0;for(;f<a.length&&(i.lastIndex=f,d=i.exec(a),d!==null);)f=i.lastIndex,i===K?d[1]==="!--"?i=ne:d[1]!==void 0?i=ie:d[2]!==void 0?(de.test(d[2])&&(r=RegExp("</"+d[2],"g")),i=D):d[3]!==void 0&&(i=D):i===D?d[0]===">"?(i=r??K,h=-1):d[1]===void 0?h=-2:(h=i.lastIndex-d[2].length,l=d[1],i=d[3]===void 0?D:d[3]==='"'?ce:ae):i===ce||i===ae?i=D:i===ne||i===ie?i=K:(i=D,r=void 0);let u=i===D&&e[c+1].startsWith("/>")?" ":"";n+=i===K?a+Qe:h>=0?(s.push(l),a.slice(0,h)+Ot+a.slice(h)+$+u):a+$+(h===-2?c:u)}return[pe(e,n+(e[o]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},Q=class e{constructor({strings:t,_$litType$:o},s){let r;this.parts=[];let n=0,i=0,c=t.length-1,a=this.parts,[l,d]=ue(t,o);if(this.el=e.createElement(l,s),k.currentNode=this.el.content,o===2||o===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=k.nextNode())!==null&&a.length<c;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith(Ot)){let f=d[i++],u=r.getAttribute(h).split($),v=/([.?@])?(.*)/.exec(f);a.push({type:1,index:n,name:v[2],strings:u,ctor:v[1]==="."?ht:v[1]==="?"?dt:v[1]==="@"?pt:U}),r.removeAttribute(h)}else h.startsWith($)&&(a.push({type:6,index:n}),r.removeAttribute(h));if(de.test(r.tagName)){let h=r.textContent.split($),f=h.length-1;if(f>0){r.textContent=ct?ct.emptyScript:"";for(let u=0;u<f;u++)r.append(h[u],J()),k.nextNode(),a.push({type:2,index:++n});r.append(h[f],J())}}}else if(r.nodeType===8)if(r.data===Lt)a.push({type:2,index:n});else{let h=-1;for(;(h=r.data.indexOf($,h+1))!==-1;)a.push({type:7,index:n}),h+=$.length-1}n++}}static createElement(t,o){let s=N.createElement("template");return s.innerHTML=t,s}};function R(e,t,o=e,s){if(t===y)return t;let r=s!==void 0?o.o?.[s]:o.l,n=Y(t)?void 0:t._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),n===void 0?r=void 0:(r=new n(e),r._$AT(e,o,s)),s!==void 0?(o.o??=[])[s]=r:o.l=r),r!==void 0&&(t=R(e,r._$AS(e,t.values),r,s)),t}var lt=class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:o},parts:s}=this._$AD,r=(t?.creationScope??N).importNode(o,!0);k.currentNode=r;let n=k.nextNode(),i=0,c=0,a=s[0];for(;a!==void 0;){if(i===a.index){let l;a.type===2?l=new I(n,n.nextSibling,this,t):a.type===1?l=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(l=new ut(n,this,t)),this._$AV.push(l),a=s[++c]}i!==a?.index&&(n=k.nextNode(),i++)}return k.currentNode=N,r}p(t){let o=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,o),o+=s.strings.length-2):s._$AI(t[o])),o++}},I=class e{get _$AU(){return this._$AM?._$AU??this.v}constructor(t,o,s,r){this.type=2,this._$AH=m,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=s,this.options=r,this.v=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,o=this._$AM;return o!==void 0&&t?.nodeType===11&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=R(this,t,o),Y(t)?t===m||t==null||t===""?(this._$AH!==m&&this._$AR(),this._$AH=m):t!==this._$AH&&t!==y&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):he(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==m&&Y(this._$AH)?this._$AA.nextSibling.data=t:this.T(N.createTextNode(t)),this._$AH=t}$(t){let{values:o,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Q.createElement(pe(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===r)this._$AH.p(o);else{let n=new lt(r,this),i=n.u(this.options);n.p(o),this.T(i),this._$AH=n}}_$AC(t){let o=le.get(t.strings);return o===void 0&&le.set(t.strings,o=new Q(t)),o}k(t){Pt(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,s,r=0;for(let n of t)r===o.length?o.push(s=new e(this.O(J()),this.O(J()),this,this.options)):s=o[r],s._$AI(n),r++;r<o.length&&(this._$AR(s&&s._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this.v=t,this._$AP?.(t))}},U=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,s,r,n){this.type=1,this._$AH=m,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=m}_$AI(t,o=this,s,r){let n=this.strings,i=!1;if(n===void 0)t=R(this,t,o,0),i=!Y(t)||t!==this._$AH&&t!==y,i&&(this._$AH=t);else{let c=t,a,l;for(t=n[0],a=0;a<n.length-1;a++)l=R(this,c[s+a],o,a),l===y&&(l=this._$AH[a]),i||=!Y(l)||l!==this._$AH[a],l===m?t=m:t!==m&&(t+=(l??"")+n[a+1]),this._$AH[a]=l}i&&!r&&this.j(t)}j(t){t===m?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ht=class extends U{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===m?void 0:t}},dt=class extends U{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==m)}},pt=class extends U{constructor(t,o,s,r,n){super(t,o,s,r,n),this.type=5}_$AI(t,o=this){if((t=R(this,t,o,0)??m)===y)return;let s=this._$AH,r=t===m&&s!==m||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==m&&(s===m||r);r&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ut=class{constructor(t,o,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){R(this,t)}},me={M:Ot,P:$,A:Lt,C:1,L:ue,R:lt,D:he,V:R,I,H:U,N:dt,U:pt,B:ht,F:ut},Ze=At.litHtmlPolyfillSupport;Ze?.(Q,I),(At.litHtmlVersions??=[]).push("3.2.0");var fe=(e,t,o)=>{let s=o?.renderBefore??t,r=s._$litPart$;if(r===void 0){let n=o?.renderBefore??null;s._$litPart$=r=new I(t.insertBefore(J(),n),n,void 0,o??{})}return r._$AI(e),r};var{is:Xe,defineProperty:to,getOwnPropertyDescriptor:eo,getOwnPropertyNames:oo,getOwnPropertySymbols:so,getPrototypeOf:ro}=Object,ft=globalThis,ye=ft.trustedTypes,no=ye?ye.emptyScript:"",io=ft.reactiveElementPolyfillSupport,Z=(e,t)=>e,mt={toAttribute(e,t){switch(t){case Boolean:e=e?no:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let o=e;switch(t){case Boolean:o=e!==null;break;case Number:o=e===null?null:Number(e);break;case Object:case Array:try{o=JSON.parse(e)}catch{o=null}}return o}},Tt=(e,t)=>!Xe(e,t),ve={attribute:!0,type:String,converter:mt,reflect:!1,hasChanged:Tt};Symbol.metadata??=Symbol("metadata"),ft.litPropertyMetadata??=new WeakMap;var w=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=ve){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){let s=Symbol(),r=this.getPropertyDescriptor(t,s,o);r!==void 0&&to(this.prototype,t,r)}}static getPropertyDescriptor(t,o,s){let{get:r,set:n}=eo(this.prototype,t)??{get(){return this[o]},set(i){this[o]=i}};return{get(){return r?.call(this)},set(i){let c=r?.call(this);n.call(this,i),this.requestUpdate(t,c,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ve}static _$Ei(){if(this.hasOwnProperty(Z("elementProperties")))return;let t=ro(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Z("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Z("properties"))){let o=this.properties,s=[...oo(o),...so(o)];for(let r of s)this.createProperty(r,o[r])}let t=this[Symbol.metadata];if(t!==null){let o=litPropertyMetadata.get(t);if(o!==void 0)for(let[s,r]of o)this.elementProperties.set(s,r)}this._$Eh=new Map;for(let[o,s]of this.elementProperties){let r=this._$Eu(o,s);r!==void 0&&this._$Eh.set(r,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let o=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let r of s)o.unshift(at(r))}else t!==void 0&&o.push(at(t));return o}static _$Eu(t,o){let s=o.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,o=this.constructor.elementProperties;for(let s of o.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return $t(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,o,s){this._$AK(t,s)}_$EC(t,o){let s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(r!==void 0&&s.reflect===!0){let n=(s.converter?.toAttribute!==void 0?s.converter:mt).toAttribute(o,s.type);this._$Em=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,o){let s=this.constructor,r=s._$Eh.get(t);if(r!==void 0&&this._$Em!==r){let n=s.getPropertyOptions(r),i=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:mt;this._$Em=r,this[r]=i.fromAttribute(o,n.type),this._$Em=null}}requestUpdate(t,o,s){if(t!==void 0){if(s??=this.constructor.getPropertyOptions(t),!(s.hasChanged??Tt)(this[t],o))return;this.P(t,o,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,o,s){this._$AL.has(t)||this._$AL.set(t,o),s.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(o){Promise.reject(o)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[r,n]of this._$Ep)this[r]=n;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[r,n]of s)n.wrapped!==!0||this._$AL.has(r)||this[r]===void 0||this.P(r,this[r],n)}let t=!1,o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(o)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(o)}willUpdate(t){}_$AE(t){this._$EO?.forEach(o=>o.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(o=>this._$EC(o,this[o])),this._$EU()}updated(t){}firstUpdated(t){}};w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[Z("elementProperties")]=new Map,w[Z("finalized")]=new Map,io?.({ReactiveElement:w}),(ft.reactiveElementVersions??=[]).push("2.0.4");var A=class extends w{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=fe(o,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return y}};A._$litElement$=!0,A.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:A});var ao=globalThis.litElementPolyfillSupport;ao?.({LitElement:A});(globalThis.litElementVersions??=[]).push("4.1.0");var ge=";",yt=",",be=":";var E={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},M=e=>(...t)=>({_$litDirective$:e,values:t}),L=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,s){this.t=t,this._$AM=o,this.i=s}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}};var Ce=M(class extends L{constructor(e){if(super(e),e.type!==E.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let o=e.element.classList;for(let s of this.st)s in t||(o.remove(s),this.st.delete(s));for(let s in t){let r=!!t[s];r===this.st.has(s)||this.nt?.has(s)||(r?(o.add(s),this.st.add(s)):(o.remove(s),this.st.delete(s)))}return y}});var xe="important",lo=" !"+xe,ho=M(class extends L{constructor(e){if(super(e),e.type!==E.ATTRIBUTE||e.name!=="style"||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,o)=>{let s=e[o];return s==null?t:t+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(e,[t]){let{style:o}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?o.removeProperty(s):o[s]=null);for(let s in t){let r=t[s];if(r!=null){this.ft.add(s);let n=typeof r=="string"&&r.endsWith(lo);s.includes("-")||n?o.setProperty(s,n?r.slice(0,-11):r,n?xe:""):o[s]=r}}return y}});var{I:po}=me;var we=e=>e.strings===void 0,$e=()=>document.createComment(""),rr=(e,t,o)=>{let s=e._$AA.parentNode,r=t===void 0?e._$AB:t._$AA;if(o===void 0){let n=s.insertBefore($e(),r),i=s.insertBefore($e(),r);o=new po(n,i,e,e.options)}else{let n=o._$AB.nextSibling,i=o._$AM,c=i!==e;if(c){let a;o._$AQ?.(e),o._$AM=e,o._$AP!==void 0&&(a=e._$AU)!==i._$AU&&o._$AP(a)}if(n!==r||c){let a=o._$AA;for(;a!==n;){let l=a.nextSibling;s.insertBefore(a,r),a=l}}}return o},nr=(e,t,o=e)=>(e._$AI(t,o),e),uo={},Ae=(e,t=uo)=>e._$AH=t,ir=e=>e._$AH,ar=e=>{e._$AP?.(!1,!0);let t=e._$AA,o=e._$AB.nextSibling;for(;t!==o;){let s=t.nextSibling;t.remove(),t=s}};var mo=M(class extends L{constructor(e){if(super(e),e.type!==E.PROPERTY&&e.type!==E.ATTRIBUTE&&e.type!==E.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!we(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===y||t===m)return t;let o=e.element,s=e.name;if(e.type===E.PROPERTY){if(t===o[s])return y}else if(e.type===E.BOOLEAN_ATTRIBUTE){if(!!t===o.hasAttribute(s))return y}else if(e.type===E.ATTRIBUTE&&o.getAttribute(s)===t+"")return y;return Ae(e),t}});var Le=(e="",t={},o=V())=>{let s={emit:r=>{e===""&&G();let n=new CustomEvent(e,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return o.el.dispatchEvent(n),n}};return e===""&&st(o,r=>{e=r},s),s},br=Le.bind(null,"");function Pe(e){let t=e;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let o=t;return o.manager?.loadedCalled||o._offspring.push(e),o._postLoad.promise}return!1}var xr=(e,t)=>function(s,r){if(!globalThis.customElements)return;let i=(r??s??{}).resourcesUrl;i&&e.setAssetPath(i),Object.entries(t).forEach(yo)};function yo([e,[t,o=""]]){if(customElements.get(e))return;let[s,r,n]=o.split(ge),i=s?s?.split(yt).map(Se):void 0,c=i?.map(([l])=>l),a=class extends go{static{this.observedAttributes=i?.map(([,l])=>l).filter(l=>l!=="")}static{this._properties=c}static{this._asyncMethods=r?r?.split(yt):void 0}static{this._syncMethods=n?.split(yt)}static{this._name=e}constructor(){!a._loadPromise&&(a._loadPromise=t(),a._initializePrototype()),super()}};customElements.define(e,a)}var vt=Object.defineProperty;function Se(e){let t=e.split(be);return t.length===1?[t[0],X(t[0])]:t}var vo=globalThis.HTMLElement??Se,go=class extends vo{constructor(){super(),this._store={},this._pendingAttributes=[],this._postLoad=new _,this._postLoaded=new _,this._offspring=[],this._saveInstanceProperties();let e=this.constructor;e._LitConstructor?this._initializeComponent({a:e._LitConstructor}):e._loadPromise.then(this._initializeComponent.bind(this)).catch(t=>{this._postLoaded.reject(t),setTimeout(()=>{throw t})})}static{this.lumina=!0}static _initializePrototype(){this._properties?.forEach(this._bindProp,this),this._asyncMethods?.forEach(this._bindAsync,this),this._syncMethods?.forEach(this._bindSync,this)}static _bindProp(e){vt(this.prototype,e,{configurable:!0,enumerable:!0,get(){return this._store[e]},set(t){this._store[e]=t}})}static _bindAsync(e){vt(this.prototype,e,{async value(...t){return this._litElement||await this._postLoaded.promise,await this._litElement[e](...t)},configurable:!0})}static _bindSync(e){vt(this.prototype,e,{value(...t){return this._litElement[e](...t)},configurable:!0})}get manager(){return this._litElement?.manager}_saveInstanceProperties(){let e=this.constructor,t=this;e._properties?.forEach(o=>{Object.hasOwn(this,o)&&(this._store[o]=t[o],delete t[o])})}attributeChangedCallback(e,t,o){this._litElement?.attributeChangedCallback(e,t,o),this._litElement||this._pendingAttributes.push(e)}connectedCallback(){this._litElement?this._litElement.connectedCallback?.():queueMicrotask(()=>{this._ancestorLoad=Pe(this)})}disconnectedCallback(){this._litElement?.disconnectedCallback?.()}async componentOnReady(){return await this._postLoaded.promise,this}_initializeComponent(e){let t=this.constructor,o=t._name,s=this._store,r=Object.values(e).find(u=>u.tagName===o),n=`${o}--lazy`,i=r;for(;i&&!Object.hasOwn(i,"lumina");)i=Object.getPrototypeOf(i);let c=i.prototype,a=Element.prototype;Object.hasOwn(c,"isConnected")||(c.setAttribute=function(u,v){a.setAttribute.call(this.el,u,v)},c.removeAttribute=function(u){a.removeAttribute.call(this.el,u)},vt(c,"isConnected",{get(){return Reflect.get(a,"isConnected",this.el)}})),!t._LitConstructor&&(t._LitConstructor=r,customElements.define(n,r)),r.lazy=this;let h=document.createElement(n);r.lazy=void 0,this._litElement=h,this._store=h,this._pendingAttributes.forEach(u=>{let v=this.getAttribute(u);h.attributeChangedCallback(u,null,v)}),Object.entries(s).forEach(bo,h);let f=this.isConnected;(f||this._ancestorLoad)&&(h.connectedCallback?.(),f||h.disconnectedCallback())}addController(){}requestUpdate(){this._litElement?.requestUpdate()}};function bo([e,t]){this[e]=t}var Oe={};var _o=()=>{},Eo=class Te extends A{constructor(){super(),this.el=this.constructor.lazy??this,this.manager=Xt(this),this._postLoad=this.constructor.lazy?._postLoad??new _,this._offspring=this.constructor.lazy?._offspring??[],this._postLoaded=this.constructor.lazy?._postLoaded??new _,this._enableUpdating=this.enableUpdating,this.enableUpdating=_o;let t=Te.prototype.shouldUpdate;this.shouldUpdate!==t&&(this._originalShouldUpdate=this.shouldUpdate,this.shouldUpdate=t),!1}static finalizeStyles(t){let o=super.finalizeStyles(t),s=this.shadowRootOptions===Oe;return this.runtime?.commonStyles===void 0||s?o:[this.runtime.commonStyles,...o]}static createProperty(t,o){let s=typeof o=="number"?o:Array.isArray(o)?o[0]:0,r=Array.isArray(o)?o[1]:void 0;super.createProperty(t,{attribute:s&1&&typeof t=="string"?X(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),...r})}static{this.lumina=!0}connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=!this.manager.connectedCalled;super.connectedCallback(),t&&queueMicrotask(()=>this._load().catch(o=>{this._postLoaded.reject(o),setTimeout(()=>{throw o})}))}createRenderRoot(){let t=this.el.shadowRoot,o=this.constructor,s=o.shadowRootOptions,n=t??(s===Oe?this.el:this.el.attachShadow(s));if(Object.defineProperty(this,"shadowRoot",{value:n}),t)return A.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=n.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...o.elementStyles.map(c=>"styleSheet"in c?c.styleSheet:c)]}return n}async _load(){let t=this.el._ancestorLoad??Pe(this.el);t&&await t,await this.manager._load(),this._enableUpdating(!0),this.performUpdate(),this._postLoad.resolve(),await Promise.resolve();let o=this._offspring.filter(s=>!s.manager?.loadedCalled);o.length&&await Promise.allSettled(o.map(async s=>await s.componentOnReady())),this._offspring.length=0,this.el.setAttribute(this.constructor.runtime.hydratedAttribute,""),this.manager._loaded(),this._postLoaded.resolve()}shouldUpdate(t){return this.$changes=t,this._originalShouldUpdate?.(t)??!0}listen(t,o,s){let r=o?.bind(this)??o;this.manager.onLifecycle(()=>(this.el.addEventListener(t,r,s),()=>this.el.removeEventListener(t,r,s)))}listenOn(t,o,s,r){let n=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(o,n,r),()=>t.removeEventListener(o,n,r)))}async componentOnReady(){return await this._postLoaded.promise,this}};Eo.$createEvent=Le;function De(e){let t,o=r=>{t=new URL(r,globalThis.location?.href).href},s={...e,getAssetPath(r){let n=new URL(r,t);return n.origin!==globalThis.location?.origin?n.href:n.pathname},setAssetPath:o,customElement(r,n){n.runtime=s,n.tagName=r,customElements.get(r)||customElements.define(r,n)}};return o(e.defaultAssetPath),s}var Tr=e=>typeof e=="object"&&e!=null?Ce(e):e;var kr=m;var Co=De({defaultAssetPath:"https://jsdev.arcgis.com/coding-components/next/",hydratedAttribute:"hydrated"}),{customElement:jr,getAssetPath:Vr,setAssetPath:Ir}=Co;export{Wo as a,qo as b,Ye as c,Yo as d,y as e,m as f,E as g,M as h,L as i,we as j,rr as k,nr as l,Ae as m,ir as n,ar as o,br as p,xr as q,Oe as r,Eo as s,Tr as t,kr as u,Co as v,jr as w,Vr as x};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
- * v4.32.0-next.21
5
- */
6
- import{b as f,c as a,d as b,e as _}from"./XQQGJWY6.js";import{b as l}from"./PORKE2QR.js";import{a as p}from"./ACWJB4FM.js";import{a as m}from"./B3U6IGMB.js";import"./YZC5GZEI.js";import{c as d,d as s,f as c,p as r,s as u,w as h}from"./44U7RRHZ.js";import{d as g}from"./4J325S74.js";import"./JMHUMOUF.js";import"./FK3LN2YT.js";function v(o){return!Array.isArray(o)||!o.length?!1:Array.isArray(o[0].suggestions)}var $=d`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-block{p:first-of-type{margin-top:0}code{font-family:var(--calcite-code-family)}pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-sm);code{font-size:var(--calcite-font-size--2)}}}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`,n=class extends u{constructor(){super(...arguments),this._beforeBack=async()=>{this._selectedSuggestion=void 0},this.messages=p(),this._colorizeStyle="",this._filterValue="",this.arcgisClose=r({bubbles:!1}),this.arcgisItemSelected=r({bubbles:!1})}static{this.properties={_colorizeStyle:16,_filterValue:16,_selectedSuggestion:16,suggestions:0}}static{this.styles=$}load(){this._colorizeStyle=a(),this._themeChangedListener=b(()=>this._colorizeStyle=a())}willUpdate(e){e.has("suggestions")&&this.suggestionsPropChanged()}disconnectedCallback(){super.disconnectedCallback(),this._flowObserver?.disconnect(),this._themeChangedListener?.dispose()}suggestionsPropChanged(){this._selectedSuggestion=void 0}flowFocusHandler(e){if(!e){this._flowObserver?.disconnect(),this._flowObserver=void 0;return}this._flowObserver||(this._flowObserver=new MutationObserver(()=>{g(e.querySelector("calcite-flow-item:last-child"),"calcite-input")}),this._flowObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0}))}_updateFilterValue(e){this._filterValue=e.target?.value??""}_emitItemSelected(e,t){let i=e;(!i.key||i.key==="Enter")&&(e.preventDefault(),this.arcgisItemSelected.emit(t.code))}_showSuggestionDetail(e,t){e.stopPropagation(),this._selectedSuggestion=t}_emitClose(){this.arcgisClose.emit()}renderSuggestionGroups(){return this.suggestions===void 0?null:v(this.suggestions)?this.suggestions.map(e=>s`<calcite-list-item-group .heading=${e.label}>${this.renderSuggestionListItems(e.suggestions)}</calcite-list-item-group>`):this.renderSuggestionListItems(this.suggestions)}renderSuggestionListItems(e){return e=m(e,"label",this._filterValue),e.length?e.map(t=>s`<calcite-list-item .label=${t.label} .description=${t.description} @calciteListItemSelect=${i=>this._emitItemSelected(i,t)} @keydown=${i=>this._emitItemSelected(i,t)} data-item=${t??c}><calcite-action slot=actions-end .text=${this.messages.expand??""} scale=s icon=chevron-right icon-flip-rtl @click=${i=>this._showSuggestionDetail(i,t)} data-item=${t??c}></calcite-action></calcite-list-item>`):s`<div class="notice-container">${this.messages.noitems}</div>`}renderSuggestionFlowItem(){let e=this._selectedSuggestion;return e?s`<calcite-flow-item .heading=${this.messages.suggestions} closable @calciteFlowItemClose=${this._emitClose} .beforeBack=${this._beforeBack}><calcite-button width=half slot=footer appearance=outline kind=brand icon-start=code scale=s @click=${t=>this._emitItemSelected(t,e)} data-item=${e??c} ${l(t=>void t?.setFocus())}>${this.messages.insert}</calcite-button><calcite-block open .heading=${e.label} .description=${e.description}><div .innerHTML=${_(e.documentation)??""}></div><pre><code ${l(t=>t===void 0?void 0:void f(t,e.code).catch(console.error))}></code></pre></calcite-block></calcite-flow-item>`:null}render(){return s`<style>${this._colorizeStyle}</style><calcite-flow ${l(this.flowFocusHandler)}><calcite-flow-item .heading=${this.messages.suggestions} closable @calciteFlowItemClose=${this._emitClose}><calcite-input .value=${this._filterValue} icon=magnifying-glass clearable @calciteInputInput=${this._updateFilterValue} class="sticky" scale=m></calcite-input><calcite-list>${this.renderSuggestionGroups()}</calcite-list></calcite-flow-item>${this.renderSuggestionFlowItem()}</calcite-flow>`}};h("arcgis-arcade-suggestions",n);export{n as ArcgisArcadeSuggestions};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
- * v4.32.0-next.21
5
- */
6
- import{a as b,h as c}from"./O4FNR3QE.js";import{a as P,b as A}from"./PORKE2QR.js";import{a as E}from"./ACWJB4FM.js";import{a as f,b as v,d as s}from"./ICM7JTTB.js";import"./NHQIE3WK.js";import"./7HRJ4SA5.js";import"./OTLAFL3V.js";import"./B3U6IGMB.js";import"./YZC5GZEI.js";import{c as h,d as t,f as n,p as r,r as g,s as u,w as _,x as m}from"./44U7RRHZ.js";import{a as d,g as p}from"./4J325S74.js";import{fk as x,uj as y}from"./JMHUMOUF.js";import"./FK3LN2YT.js";y();var D=h`arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%;.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-panel{flex:1 0 auto}.position-relative{position:relative}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}.sticky{position:sticky;top:0;z-index:10}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w);calcite-flow{height:100%}}.main-action-bar{border-bottom:var(--arcgis-coding-components-border);flex:0 0 auto;calcite-action-group{padding-inline-end:var(--calcite-spacing-sm);calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}arcgis-arcade-results{border-top:var(--arcgis-coding-components-border);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}calcite-flow{[slot=footer]{word-break:break-word}}}`,l=class extends u{constructor(){super(...arguments),this._codeEditorElt=P(),this._componentReadyDefer=new d,this._disposables=[],this._editorProfilePromise=Promise.resolve(void 0),this.messages=E(),this._modelId=p(),this._openArcadeHelp=()=>void window.open(b,"Arcade Help"),this._toggleSidePanel=e=>{if(!e.target)return;let i=e.target?.dataset.panelName??"none";this.openedSidePanel=i===this.openedSidePanel?"none":i,this.openedSidePanel==="none"&&this._codeEditorElt.value?.setFocus().catch(console.error)},this._consoleLogs=[],this._executingScript=!1,this._preparingArcade=!1,this._resultPanel="output",this._showExecutionPanel=!1,this.hideDocumentationActions=!1,this.hideSideBar=!1,this.openedSidePanel="none",this.script="",this.sideActionBarExpanded=!1,this.arcgisDiagnosticsChange=r({bubbles:!1}),this.arcgisScriptChange=r({bubbles:!1})}static{this.properties={_apiLibrary:16,_consoleLogs:16,_editorProfile:16,_executingScript:16,_executionResult:16,_preparingArcade:16,_resultPanel:16,_showExecutionPanel:16,editorInstance:32,editorOptions:0,hideDocumentationActions:5,hideSideBar:5,openedSidePanel:3,profile:0,script:1,sideActionBarExpanded:7,snippets:0,suggestions:0,testData:0}}static{this.shadowRootOptions=g}static{this.styles=D}get editorInstance(){return this._codeEditorElt.value?.editorInstance}async getEditorInstance(){return await this._componentReadyDefer.promise,this._codeEditorElt.value?.editorInstance}async getScript(){return await this._componentReadyDefer.promise,this._codeEditorElt.value?.value}async getTestResult(){if(!this.testData)return{type:"error",value:"Missing test data",error:null};let e=await this._editorProfilePromise;if(!e)return{type:"error",value:"Missing editor profile",error:null};await this._componentReadyDefer.promise;let i=this._codeEditorElt.value?.value;return await c(e.definition,i,this.testData)}async setFocus(){await this._componentReadyDefer.promise,await this._codeEditorElt.value?.setFocus()}async load(){let e=m("./assets");f(e),await this._updateEditorProfile()}willUpdate(e){(e.has("messages")||e.has("profile"))&&this._updateDataModelDeps(),e.has("testData")&&this._testDataChanged(),e.has("snippets")&&s.updateApiContextForModel(this._modelId,{snippets:this.snippets})}async loaded(){this._componentReadyDefer.resolve(),await this._updateApiLibrary();let e=await v();this._disposables.push(e.onDiagnosticsChange(i=>!this._preparingArcade&&this.arcgisDiagnosticsChange.emit(i.diagnostics))),this.testData&&this._addExecuteScriptAction(),await this._codeEditorElt.value?.setFocus()}disconnectedCallback(){for(super.disconnectedCallback();this._disposables.length;)this._disposables.pop()?.dispose()}async _updateDataModelDeps(){await this._updateEditorProfile(),await this._updateApiLibrary()}_testDataChanged(){!this.testData&&this._executeScriptAction&&(this._disposeSafely(this._executeScriptAction),this._executeScriptAction=void 0),this.testData&&!this._executeScriptAction&&this._addExecuteScriptAction(),this._showExecutionPanel&&this._executeScript().catch(console.error)}async _updateEditorProfile(){this._preparingArcade=!0;try{await s.setProfileForModel(this._modelId,this.profile,{locale:this.messages._t9nLocale,snippets:this.snippets}),this._editorProfile=s.getEditorProfileForModel(this._modelId)}catch{this._editorProfile=void 0}finally{this._editorProfilePromise=Promise.resolve(this._editorProfile),this._preparingArcade=!1}}async _updateApiLibrary(){this._apiLibrary=await s.getApiLibraryForModel(this._modelId)}async _executeScript(){let e=this.testData;if(!this._codeEditorElt.value||!e)return;let i=await this._editorProfilePromise;if(!i){this._executionResult={type:"error",value:"Missing editor profile",error:null};return}this._showExecutionPanel=!0,this._executingScript=!0,this._consoleLogs=[],setTimeout(()=>void(async()=>{let a=this._codeEditorElt.value?.value;this._executionResult=await c(i.definition,a,e,o=>setTimeout(()=>this._consoleLogs=[...this._consoleLogs,o],0)),this._executingScript=!1})(),0)}_toggleShowExecutionPanel(){this._showExecutionPanel=!this._showExecutionPanel}_toggleSideActionBarExpanded(){this.sideActionBarExpanded=!this.sideActionBarExpanded}_onCodeEditorValueChange(e){e.stopPropagation(),this.script=e.detail,this.arcgisScriptChange.emit(e.detail)}_insertAsSnippet(e){this._codeEditorElt.value?.insertSnippet(e.detail).catch(console.error)}_insertAsText(e){this._codeEditorElt.value?.insertText(e.detail).catch(console.error)}_onResultPanelChange(e){this._resultPanel=e.detail}_onExecutionPanelClose(){this._showExecutionPanel=!1}_addExecuteScriptAction(){let e=this.editorInstance?.addAction({id:"run-script",label:"Run Arcade Expression",keybindings:[x.F5],contextMenuGroupId:"code",contextMenuOrder:1,run:()=>{this.testData&&this._executeScript().catch(console.error)}});e&&(this._executeScriptAction=e,this._disposables.push(e))}_disposeSafely(e){let i=this._disposables.indexOf(e);i!==-1&&this._disposables.splice(i,1),e.dispose()}renderMainActionBar(){return this.testData?t`<calcite-action-bar class="main-action-bar" layout=horizontal scale=s expanded expand-disabled><calcite-action-group scale=s><calcite-action .text=${this.messages.run??""} text-enabled icon=play scale=s .loading=${this._preparingArcade} @click=${()=>void this._executeScript().catch(console.error)}></calcite-action>${this._executionResult?t`<calcite-action .text=${this.messages.lastresults??""} .active=${this._showExecutionPanel} text-enabled icon=access-string-results icon-flip-rtl scale=s @click=${this._toggleShowExecutionPanel}></calcite-action>`:null}</calcite-action-group></calcite-action-bar>`:null}renderMainPanel(){return t`<arcgis-code-editor class="flex-adjustable" .editorOptions=${this.editorOptions} .language=${s.languageId} .value=${this.script??""} .modelId=${this._modelId} @arcgisValueChange=${this._onCodeEditorValueChange} ${A(this._codeEditorElt)}></arcgis-code-editor>`}renderAction({id:e,label:i,icon:a,active:o,panelName:S,iconFlipRtl:w=!1,onClick:$=this._toggleSidePanel}){return t`<calcite-action id=${e??n} .text=${i} .icon=${a} .active=${o} @click=${$} data-panel-name=${S??n} .iconFlipRtl=${w}></calcite-action>${!this.sideActionBarExpanded&&t`<calcite-tooltip .referenceElement=${e}><span>${i}</span></calcite-tooltip>`||""}`}renderSideActionBar(){return this.hideSideBar?null:t`<calcite-action-bar class="side-action-bar border-inline-start" .expanded=${!!this.sideActionBarExpanded} position=end @calciteActionBarToggle=${this._toggleSideActionBarExpanded}><calcite-action-group>${this.renderAction({id:"profile-variables-action",label:this.messages.profilevariables??"",icon:"profile-variables",active:this.openedSidePanel==="variables",panelName:"variables"})}${this.renderAction({id:"function-action",label:this.messages.constantsandfunctions??"",icon:"function",active:this.openedSidePanel==="api",panelName:"api"})}${this.suggestions?.length?this.renderAction({id:"suggestions-action",label:this.messages.suggestions??"",icon:"lightbulb",active:this.openedSidePanel==="suggestions",panelName:"suggestions"}):null}${this.hideDocumentationActions?null:this.renderAction({id:"developer-website-action",label:this.messages.help??"",icon:"question",active:!1,panelName:"none",iconFlipRtl:this.messages._lang==="ar",onClick:this._openArcadeHelp})}</calcite-action-group></calcite-action-bar>`}renderSidePanel(){if(this.hideSideBar)return null;switch(this.openedSidePanel){case"api":return t`<arcgis-language-api-panel class="side-panel flex-panel border-inline-start" .loading=${this._preparingArcade} .apiLibrary=${this._apiLibrary} .hideDocumentationActions=${this.hideDocumentationActions} @arcgisItemSelected=${this._insertAsSnippet} @arcgisClose=${this._toggleSidePanel} data-panel-name=none></arcgis-language-api-panel>`;case"variables":return t`<arcgis-editor-variables class="side-panel flex-panel border-inline-start" .loading=${this._preparingArcade} .modelId=${this._modelId} @arcgisItemSelected=${this._insertAsText} @arcgisClose=${this._toggleSidePanel} data-panel-name=none .variable=${this._editorProfile}></arcgis-editor-variables>`;case"suggestions":return t`<arcgis-arcade-suggestions class="side-panel flex-panel border-inline-start" .suggestions=${this.suggestions} @arcgisItemSelected=${this._insertAsText} @arcgisClose=${this._toggleSidePanel} data-panel-name=none></arcgis-arcade-suggestions>`;default:return null}}renderResultsPanel(){return this._showExecutionPanel?t`<arcgis-arcade-results class="flex-adjustable" .openedResultPanel=${this._resultPanel} .loading=${this._executingScript} .result=${this._executionResult} .consoleLogs=${this._consoleLogs} @arcgisOpenedResultPanelChange=${this._onResultPanelChange} @arcgisClose=${this._onExecutionPanelClose}></arcgis-arcade-results>`:null}render(){return t`${this.renderMainActionBar()}<div class="flex-row flex-adjustable"><div class="flex-column flex-adjustable">${this.renderMainPanel()}${this.renderResultsPanel()}</div>${this.renderSidePanel()}${this.renderSideActionBar()}</div>`}};_("arcgis-arcade-editor",l);export{l as ArcgisArcadeEditor};