@genexus/genexus-ide-ui 1.1.10 → 1.1.11

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 (60) hide show
  1. package/dist/cjs/{code-render-55d37767.js → code-render-2af31443.js} +2 -2
  2. package/dist/cjs/{code-render-55d37767.js.map → code-render-2af31443.js.map} +1 -1
  3. package/dist/cjs/{common-090e6d3a.js → common-8c725d8c.js} +4 -8
  4. package/dist/cjs/common-8c725d8c.js.map +1 -0
  5. package/dist/cjs/gx-ide-manage-module-references-v2.cjs.entry.js +1 -1
  6. package/dist/cjs/gx-ide-manage-module-references.cjs.entry.js +1 -1
  7. package/dist/cjs/gx-ide-new-environment.cjs.entry.js +3 -2
  8. package/dist/cjs/gx-ide-new-environment.cjs.entry.js.map +1 -1
  9. package/dist/cjs/gx-ide-new-kb.cjs.entry.js +1 -1
  10. package/dist/cjs/gx-ide-sc-chat-container.cjs.entry.js +2 -2
  11. package/dist/cjs/gx-ide-splash.cjs.entry.js +1 -1
  12. package/dist/cjs/gx-ide-ww-images.cjs.entry.js +1 -1
  13. package/dist/cjs/index.cjs.js +2 -2
  14. package/dist/collection/common/common.js +2 -7
  15. package/dist/collection/common/common.js.map +1 -1
  16. package/dist/collection/components/new-environment/new-environment.js +3 -2
  17. package/dist/collection/components/new-environment/new-environment.js.map +1 -1
  18. package/dist/components/common.js +3 -8
  19. package/dist/components/common.js.map +1 -1
  20. package/dist/components/gx-ide-new-environment.js +3 -2
  21. package/dist/components/gx-ide-new-environment.js.map +1 -1
  22. package/dist/esm/{code-render-53b3b0bd.js → code-render-e6bf0562.js} +2 -2
  23. package/dist/esm/{code-render-53b3b0bd.js.map → code-render-e6bf0562.js.map} +1 -1
  24. package/dist/esm/{common-719c4daf.js → common-c25d8c2f.js} +4 -9
  25. package/dist/esm/common-c25d8c2f.js.map +1 -0
  26. package/dist/esm/gx-ide-manage-module-references-v2.entry.js +1 -1
  27. package/dist/esm/gx-ide-manage-module-references.entry.js +1 -1
  28. package/dist/esm/gx-ide-new-environment.entry.js +3 -2
  29. package/dist/esm/gx-ide-new-environment.entry.js.map +1 -1
  30. package/dist/esm/gx-ide-new-kb.entry.js +1 -1
  31. package/dist/esm/gx-ide-sc-chat-container.entry.js +2 -2
  32. package/dist/esm/gx-ide-splash.entry.js +1 -1
  33. package/dist/esm/gx-ide-ww-images.entry.js +1 -1
  34. package/dist/esm/index.js +2 -2
  35. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
  36. package/dist/genexus-ide-ui/index.esm.js +2 -2
  37. package/dist/genexus-ide-ui/{p-48f5911b.js → p-0c0eb8ae.js} +37 -38
  38. package/dist/genexus-ide-ui/p-0c0eb8ae.js.map +1 -0
  39. package/dist/genexus-ide-ui/{p-a1415a9c.entry.js → p-3b5a4e2e.entry.js} +2 -2
  40. package/dist/genexus-ide-ui/{p-0bdf34f2.entry.js → p-3b983843.entry.js} +2 -2
  41. package/dist/genexus-ide-ui/{p-c5178973.js → p-60221a44.js} +29 -29
  42. package/dist/genexus-ide-ui/{p-ee79f815.entry.js → p-6d996621.entry.js} +3 -3
  43. package/dist/genexus-ide-ui/{p-d3767a7d.entry.js → p-82878950.entry.js} +134 -133
  44. package/dist/genexus-ide-ui/p-82878950.entry.js.map +1 -0
  45. package/dist/genexus-ide-ui/{p-4d0ba4f6.entry.js → p-9dcb8fb7.entry.js} +2 -2
  46. package/dist/genexus-ide-ui/{p-6f898249.entry.js → p-bc760bb3.entry.js} +2 -2
  47. package/dist/genexus-ide-ui/{p-e28e6bc4.entry.js → p-ff28c49d.entry.js} +2 -2
  48. package/dist/types/common/common.d.ts +1 -0
  49. package/package.json +1 -1
  50. package/dist/cjs/common-090e6d3a.js.map +0 -1
  51. package/dist/esm/common-719c4daf.js.map +0 -1
  52. package/dist/genexus-ide-ui/p-48f5911b.js.map +0 -1
  53. package/dist/genexus-ide-ui/p-d3767a7d.entry.js.map +0 -1
  54. /package/dist/genexus-ide-ui/{p-a1415a9c.entry.js.map → p-3b5a4e2e.entry.js.map} +0 -0
  55. /package/dist/genexus-ide-ui/{p-0bdf34f2.entry.js.map → p-3b983843.entry.js.map} +0 -0
  56. /package/dist/genexus-ide-ui/{p-c5178973.js.map → p-60221a44.js.map} +0 -0
  57. /package/dist/genexus-ide-ui/{p-ee79f815.entry.js.map → p-6d996621.entry.js.map} +0 -0
  58. /package/dist/genexus-ide-ui/{p-4d0ba4f6.entry.js.map → p-9dcb8fb7.entry.js.map} +0 -0
  59. /package/dist/genexus-ide-ui/{p-6f898249.entry.js.map → p-bc760bb3.entry.js.map} +0 -0
  60. /package/dist/genexus-ide-ui/{p-e28e6bc4.entry.js.map → p-ff28c49d.entry.js.map} +0 -0
@@ -2,12 +2,12 @@ import { h as e } from "./p-25a9f1d7.js";
2
2
 
3
3
  /* STENCIL IMPORTS */ const renderFormItems = (r = "gxg-combo-box-item", a, t = "undefined-group", i) => {
4
4
  if (a.length) {
5
- const n = [];
5
+ const c = [];
6
6
  a.forEach((a => {
7
- let l;
7
+ let n;
8
8
  switch (r) {
9
9
  case "gxg-form-checkbox":
10
- l = e("gxg-form-checkbox", {
10
+ n = e("gxg-form-checkbox", {
11
11
  checkboxId: a.id,
12
12
  checked: a.checked,
13
13
  disabled: a.disabled,
@@ -17,20 +17,20 @@ import { h as e } from "./p-25a9f1d7.js";
17
17
  iconName: a.iconName,
18
18
  part: `${t}-${a.id}`
19
19
  });
20
- n.push(l);
20
+ c.push(n);
21
21
  break;
22
22
 
23
23
  case "gxg-combo-box-item":
24
- l = e("gxg-combo-box-item", {
24
+ n = e("gxg-combo-box-item", {
25
25
  value: a.id,
26
26
  icon: a.iconName,
27
27
  part: `${t}-${a.id}`
28
28
  }, a.label);
29
- n.push(l);
29
+ c.push(n);
30
30
  break;
31
31
 
32
32
  case "gxg-form-radio":
33
- l = e("gxg-form-radio", {
33
+ n = e("gxg-form-radio", {
34
34
  radioId: a.id,
35
35
  checked: a.checked,
36
36
  disabled: a.disabled,
@@ -39,11 +39,11 @@ import { h as e } from "./p-25a9f1d7.js";
39
39
  name: t,
40
40
  part: `${t}-${a.id}`
41
41
  });
42
- n.push(l);
42
+ c.push(n);
43
43
  break;
44
44
  }
45
45
  }));
46
- return n;
46
+ return c;
47
47
  }
48
48
  return null;
49
49
  };
@@ -79,13 +79,7 @@ const renderModuleDataProperties = r => {
79
79
  * @param gxOptions An array of GxOptions's
80
80
  * @returns The value of the selected item, or the first item, if no one is selected.
81
81
  */ const getSelectedItem = e => {
82
- let r = undefined;
83
- for (let a = 0; a < e.length; a++) {
84
- if (e[a].selected) {
85
- r = e[a];
86
- break;
87
- }
88
- }
82
+ const r = e.find((e => e.selected));
89
83
  if (r) {
90
84
  return r.id;
91
85
  } else {
@@ -93,48 +87,53 @@ const renderModuleDataProperties = r => {
93
87
  }
94
88
  };
95
89
 
90
+ const setSelectedItem = (e, r) => e.map((e => Object.assign(Object.assign({}, e), {
91
+ selected: e.id === r
92
+ })))
96
93
  // Dots animation used in ch-chat code-render (or other components)
94
+ ;
95
+
97
96
  const ANIMATION_DOTS = (r = "regular", a = "primary", t = "dynamic", i = "1s") => {
98
- const n = r === "regular" ? 1.5 : 4;
99
- let l, c, o;
97
+ const c = r === "regular" ? 1.5 : 4;
98
+ let n, l, o;
100
99
  if (a === "nexa") {
101
- l = "#5ba7ff";
102
- c = "#00CCFF";
100
+ n = "#5ba7ff";
101
+ l = "#00CCFF";
103
102
  o = "#CF7AFF";
104
103
  } else if (a === "on-surface") {
105
- l = c = o = "var(--mer-text__on-surface)";
104
+ n = l = o = "var(--mer-text__on-surface)";
106
105
  } else {
107
106
  // primary
108
- l = c = o = "var(--mer-color__primary--200)";
107
+ n = l = o = "var(--mer-color__primary--200)";
109
108
  }
110
109
  const animateRadiusSize = (r = "0") => e("animate", {
111
110
  attributeName: "r",
112
- values: `${2 / n};${4 / n};${2 / n}`,
111
+ values: `${2 / c};${4 / c};${2 / c}`,
113
112
  dur: i,
114
113
  begin: r,
115
114
  repeatCount: "indefinite"
116
115
  });
117
116
  return e("svg", {
118
- width: 36 / n,
119
- height: 8 / n,
117
+ width: 36 / c,
118
+ height: 8 / c,
120
119
  fill: "transparent"
121
120
  }, e("circle", {
122
- cx: 4 / n,
123
- cy: 4 / n,
124
- r: 4 / n,
121
+ cx: 4 / c,
122
+ cy: 4 / c,
123
+ r: 4 / c,
125
124
  opacity: "0",
126
- fill: l
125
+ fill: n
127
126
  }, e("animate", {
128
127
  attributeName: "opacity",
129
128
  values: "0;1;0",
130
129
  dur: i,
131
130
  repeatCount: "indefinite"
132
131
  }), t === "dynamic" ? animateRadiusSize("0") : null), e("circle", {
133
- cx: 18 / n,
134
- cy: 4 / n,
135
- r: 4 / n,
132
+ cx: 18 / c,
133
+ cy: 4 / c,
134
+ r: 4 / c,
136
135
  opacity: "0",
137
- fill: c
136
+ fill: l
138
137
  }, e("animate", {
139
138
  attributeName: "opacity",
140
139
  values: "0;1;0",
@@ -142,9 +141,9 @@ const ANIMATION_DOTS = (r = "regular", a = "primary", t = "dynamic", i = "1s") =
142
141
  begin: "0.15s",
143
142
  repeatCount: "indefinite"
144
143
  }), t === "dynamic" ? animateRadiusSize("0.33s") : null), e("circle", {
145
- cx: 32 / n,
146
- cy: 4 / n,
147
- r: 4 / n,
144
+ cx: 32 / c,
145
+ cy: 4 / c,
146
+ r: 4 / c,
148
147
  opacity: "0",
149
148
  fill: o
150
149
  }, e("animate", {
@@ -156,5 +155,5 @@ const ANIMATION_DOTS = (r = "regular", a = "primary", t = "dynamic", i = "1s") =
156
155
  }), t === "dynamic" ? animateRadiusSize("0.66s") : null));
157
156
  };
158
157
 
159
- export { ANIMATION_DOTS as A, renderFormItems as a, getSelectedItem as g, renderModuleDataProperties as r };
160
- //# sourceMappingURL=p-48f5911b.js.map
158
+ export { ANIMATION_DOTS as A, renderFormItems as a, getSelectedItem as g, renderModuleDataProperties as r, setSelectedItem as s };
159
+ //# sourceMappingURL=p-0c0eb8ae.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["renderFormItems","componentType","options","group","callback","length","items","forEach","option","item","h","checkboxId","id","checked","disabled","label","value","onChange","iconName","part","push","icon","radioId","name","renderModuleDataProperties","Array","isArray","class","map","subItem","inline","getSelectedItem","gxOptions","found","find","selected","setSelectedItem","selectedItemId","Object","assign","ANIMATION_DOTS","size","color","sizeType","duration","n","colorDot1","colorDot2","colorDot3","animateRadiusSize","begin","attributeName","values","dur","repeatCount","width","height","fill","cx","cy","r","opacity"],"sources":["src/common/common.tsx"],"sourcesContent":["/* STENCIL IMPORTS */\nimport { h } from \"@stencil/core\";\n/* OTHER LIBRARIES IMPORTS */\n/* CUSTOM IMPORTS */\nimport { GxgFormItemsArray, GxOption } from \"./types\";\nimport { ModulePropertyData } from \"../components/modules/types\";\nexport const renderFormItems = (\n componentType:\n | \"gxg-combo-box-item\"\n | \"gxg-form-checkbox\"\n | \"gxg-form-radio\" = \"gxg-combo-box-item\",\n options: Array<GxOption>,\n group = \"undefined-group\",\n callback?: any\n): GxgFormItemsArray => {\n if (options.length) {\n const items: GxgFormItemsArray = [];\n options.forEach(option => {\n let item;\n switch (componentType) {\n case \"gxg-form-checkbox\":\n item = (\n <gxg-form-checkbox\n checkboxId={option.id}\n checked={option.checked}\n disabled={option.disabled}\n label={option.label}\n value={option.value}\n onChange={callback ? callback : null}\n iconName={option.iconName}\n part={`${group}-${option.id}`}\n ></gxg-form-checkbox>\n );\n items.push(item);\n break;\n case \"gxg-combo-box-item\":\n item = (\n <gxg-combo-box-item\n value={option.id}\n icon={option.iconName}\n part={`${group}-${option.id}`}\n >\n {option.label}\n </gxg-combo-box-item>\n );\n items.push(item);\n break;\n case \"gxg-form-radio\":\n item = (\n <gxg-form-radio\n radioId={option.id}\n checked={option.checked}\n disabled={option.disabled}\n label={option.label}\n value={option.value}\n name={group}\n part={`${group}-${option.id}`}\n ></gxg-form-radio>\n );\n items.push(item);\n break;\n default:\n break;\n }\n });\n return items;\n }\n return null;\n};\n\nexport const renderModuleDataProperties = (\n options: Array<ModulePropertyData>\n): ModulePropertyData[] => {\n if (options.length) {\n const items: ModulePropertyData[] = [];\n\n options.forEach(option => {\n if (Array.isArray(option.value)) {\n const item = (\n <div class=\"md-property__list\">\n <p class=\"md-property__key\">{option.name} :</p>\n <ul>\n {option.value.map(subItem => {\n return <li>{subItem}</li>;\n })}\n </ul>\n </div>\n );\n items.push(item);\n } else {\n const item = (\n <div\n class={\n option.inline\n ? \"md-property md-property--inline\"\n : \"md-property--block\"\n }\n >\n <p class=\"md-property__key\">{option.name} :</p>\n <p class=\"md-property__value\">{option.value}</p>\n </div>\n );\n items.push(item);\n }\n });\n\n return items;\n }\n return null;\n};\n\n/**\n * @param gxOptions An array of GxOptions's\n * @returns The first option in the array that is 'selected'. If no one found it returns null.\n */\nexport const getSelectedGxOption = (\n gxOptions: GxOption[],\n onlyId = true\n): GxOption | string | void => {\n if (gxOptions?.length > 0) {\n let found = null;\n for (let i = 0; i < gxOptions.length; i++) {\n if (gxOptions[i].selected) {\n found = gxOptions[i];\n break;\n }\n }\n if (found && onlyId) {\n return found.id;\n } else if (!found && onlyId) {\n return gxOptions[0].id;\n }\n return found;\n }\n};\n\n/**\n * @param gxOptions An array of GxOptions's\n * @returns The value of the selected item, or the first item, if no one is selected.\n */\nexport const getSelectedItem = (gxOptions: GxOption[]): string => {\n const found = gxOptions.find(item => item.selected);\n if (found) {\n return found.id;\n } else {\n return gxOptions[0].id;\n }\n};\n\nexport const setSelectedItem = (\n gxOptions: GxOption[],\n selectedItemId: string\n): GxOption[] =>\n gxOptions.map(item => ({\n ...item,\n selected: item.id === selectedItemId\n }));\n\nexport const getSelectedItem2 = (\n gxOptions: GxOption[] | undefined\n): string | undefined =>\n gxOptions\n ? (gxOptions.find(item => item.selected) ?? gxOptions[0]).id\n : undefined;\n\n// Dots animation used in ch-chat code-render (or other components)\nexport const ANIMATION_DOTS = (\n size: \"regular\" | \"tiny\" = \"regular\",\n color: \"primary\" | \"on-surface\" | \"nexa\" = \"primary\",\n sizeType: \"static\" | \"dynamic\" = \"dynamic\",\n duration: string = \"1s\"\n): SVGElement => {\n const n = size === \"regular\" ? 1.5 : 4;\n let colorDot1, colorDot2, colorDot3;\n if (color === \"nexa\") {\n colorDot1 = \"#5ba7ff\";\n colorDot2 = \"#00CCFF\";\n colorDot3 = \"#CF7AFF\";\n } else if (color === \"on-surface\") {\n colorDot1 = colorDot2 = colorDot3 = \"var(--mer-text__on-surface)\";\n } else {\n // primary\n colorDot1 = colorDot2 = colorDot3 = \"var(--mer-color__primary--200)\";\n }\n\n const animateRadiusSize = (begin: string = \"0\") => {\n return (\n <animate\n attributeName=\"r\"\n values={`${2 / n};${4 / n};${2 / n}`}\n dur={duration}\n begin={begin}\n repeatCount=\"indefinite\"\n />\n );\n };\n\n return (\n <svg width={36 / n} height={8 / n} fill=\"transparent\">\n <circle cx={4 / n} cy={4 / n} r={4 / n} opacity=\"0\" fill={colorDot1}>\n <animate\n attributeName=\"opacity\"\n values=\"0;1;0\"\n dur={duration}\n repeatCount=\"indefinite\"\n />\n {sizeType === \"dynamic\" ? animateRadiusSize(\"0\") : null}\n </circle>\n <circle cx={18 / n} cy={4 / n} r={4 / n} opacity=\"0\" fill={colorDot2}>\n <animate\n attributeName=\"opacity\"\n values=\"0;1;0\"\n dur={duration}\n begin=\"0.15s\"\n repeatCount=\"indefinite\"\n />\n {sizeType === \"dynamic\" ? animateRadiusSize(\"0.33s\") : null}\n </circle>\n <circle cx={32 / n} cy={4 / n} r={4 / n} opacity=\"0\" fill={colorDot3}>\n <animate\n attributeName=\"opacity\"\n values=\"0;1;0\"\n dur={duration}\n begin=\"0.30s\"\n repeatCount=\"indefinite\"\n />\n {sizeType === \"dynamic\" ? animateRadiusSize(\"0.66s\") : null}\n </circle>\n </svg>\n );\n};\n"],"mappings":";;4BAMaA,kBAAkB,CAC7BC,IAGuB,sBACvBC,GACAC,IAAQ,mBACRC;EAEA,IAAIF,EAAQG,QAAQ;IAClB,MAAMC,IAA2B;IACjCJ,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zDvC,EAAA;IAAQgD,IAAI,KAAKb;IAAGc,IAAI,IAAId;IAAGe,GAAG,IAAIf;IAAGgB,SAAQ;IAAIJ,MAAMT;KACzDtC,EAAA;IACEyC,eAAc;IACdC,QAAO;IACPC,KAAKT;IACLM,OAAM;IACNI,aAAY;MAEbX,MAAa,YAAYM,kBAAkB,WAAW;AAErD"}
@@ -4,7 +4,7 @@ import { L as s } from "./p-311eedf3.js";
4
4
 
5
5
  import { c as o } from "./p-13738332.js";
6
6
 
7
- import { a as l } from "./p-48f5911b.js";
7
+ import { a as l } from "./p-0c0eb8ae.js";
8
8
 
9
9
  import { F as n } from "./p-13feb5cf.js";
10
10
 
@@ -608,4 +608,4 @@ const b = class {
608
608
  b.style = h;
609
609
 
610
610
  export { b as gx_ide_ww_images };
611
- //# sourceMappingURL=p-a1415a9c.entry.js.map
611
+ //# sourceMappingURL=p-3b5a4e2e.entry.js.map
@@ -2,7 +2,7 @@ import { r as e, c as t, h as r, H as i, a } from "./p-25a9f1d7.js";
2
2
 
3
3
  import { g as o } from "./p-ede7bd20.js";
4
4
 
5
- import { r as s } from "./p-48f5911b.js";
5
+ import { r as s } from "./p-0c0eb8ae.js";
6
6
 
7
7
  import { L as l } from "./p-311eedf3.js";
8
8
 
@@ -487,4 +487,4 @@ c = new WeakMap, g = new WeakMap;
487
487
  f.style = n;
488
488
 
489
489
  export { f as gx_ide_manage_module_references };
490
- //# sourceMappingURL=p-0bdf34f2.entry.js.map
490
+ //# sourceMappingURL=p-3b983843.entry.js.map
@@ -1,63 +1,63 @@
1
1
  import { h as e } from "./p-25a9f1d7.js";
2
2
 
3
- import { A as s } from "./p-48f5911b.js";
3
+ import { A as s } from "./p-0c0eb8ae.js";
4
4
 
5
- const t = s("regular", "nexa");
5
+ const a = s("regular", "nexa");
6
6
 
7
- const a = "code-block-header__copy";
7
+ const t = "code-block-header__copy";
8
8
 
9
- const o = `${a}-copied`;
9
+ const o = `${t}-copied`;
10
10
 
11
11
  const r = "code-block-header";
12
12
 
13
- const copy = (e, s = false) => t => {
14
- const a = 1750;
15
- t.stopPropagation();
13
+ const copy = (e, s = false) => a => {
14
+ const t = 1750;
15
+ a.stopPropagation();
16
16
  // 1. Copy message
17
17
  navigator.clipboard.writeText(e);
18
- const r = t.target;
18
+ const r = a.target;
19
19
  if (s) {
20
20
  const e = r.previousElementSibling;
21
21
  const s = e === null || e === void 0 ? void 0 : e.getAttribute("part");
22
- const t = `${s} ${o}`;
23
- e.setAttribute("part", t);
22
+ const a = `${s} ${o}`;
23
+ e.setAttribute("part", a);
24
24
  setTimeout((() => {
25
25
  e.setAttribute("part", `${s}`);
26
- }), a);
26
+ }), t);
27
27
  } else {
28
28
  const e = r.closest("ch-smart-grid-cell");
29
29
  const s = e === null || e === void 0 ? void 0 : e.getAttribute("part");
30
- const t = `${s} copied`;
31
- e.setAttribute("part", t);
30
+ const a = `${s} copied`;
31
+ e.setAttribute("part", a);
32
32
  setTimeout((() => {
33
33
  e.setAttribute("part", `${s}`);
34
- }), a);
34
+ }), t);
35
35
  }
36
36
  };
37
37
 
38
- const copyButton = (s, t, a, o = false) => e("button", {
39
- "aria-label": t,
40
- title: t,
38
+ const copyButton = (s, a, t, o = false) => e("button", {
39
+ "aria-label": a,
40
+ title: a,
41
41
  class: "button-copy-code",
42
42
  type: "button",
43
43
  onClick: copy(s, o),
44
- part: `message__copy-button ${a}`
44
+ part: `message__copy-button ${t}`
45
45
  });
46
46
 
47
- const mercuryCodeRender = s => t => e("div", {
47
+ const mercuryCodeRender = s => a => e("div", {
48
48
  class: "code-block-container"
49
49
  }, e("div", {
50
50
  class: r,
51
51
  part: r
52
52
  }, e("p", {
53
53
  part: "code-block-header__copy"
54
- }, "Copied"), copyButton(t.plainText, s, "code-render", true)), e("ch-code", {
55
- language: t.language,
56
- lastNestedChildClass: t.lastNestedChildClass,
57
- value: t.plainText
54
+ }, "Copied"), copyButton(a.plainText, s, "code-render", true)), e("ch-code", {
55
+ language: a.language,
56
+ lastNestedChildClass: a.lastNestedChildClass,
57
+ value: a.plainText
58
58
  }));
59
59
 
60
- const renderMessageHeader = (s, t, a, o) => e("div", {
60
+ const renderMessageHeader = (s, a, t, o) => e("div", {
61
61
  part: "message__header"
62
62
  }, e("div", {
63
63
  part: "message__header-start"
@@ -68,14 +68,14 @@ const renderMessageHeader = (s, t, a, o) => e("div", {
68
68
  }
69
69
  }), e("span", {
70
70
  part: `message__role assistant`
71
- }, t), e("time", {
71
+ }, a), e("time", {
72
72
  dateTime: o,
73
73
  part: "message__time"
74
74
  }, o)), e("div", {
75
75
  part: "message__header-end"
76
76
  }, e("p", {
77
77
  part: "message__header-copy"
78
- }, "Copied"), copyButton(a, "Copy code", "common-message")));
78
+ }, "Copied"), copyButton(t, "Copy code", "common-message")));
79
79
 
80
80
  const mercuryChatMessageRender = (s, n, c = "AI Assistant") => p => {
81
81
  const i = renderMessageHeader(n, c, p.content, p.metadata);
@@ -84,14 +84,14 @@ const mercuryChatMessageRender = (s, n, c = "AI Assistant") => p => {
84
84
  part: "message__processing-container"
85
85
  }, e("span", {
86
86
  part: "message__processing"
87
- }, p.content), t) ] : [ i, e("div", {
87
+ }, p.content), a) ] : [ i, e("div", {
88
88
  part: `message__content assistant ${p.parts}`
89
89
  }, e("ch-markdown-viewer", {
90
90
  theme: s,
91
91
  showIndicator: false,
92
92
  renderCode: mercuryCodeRender("Copy response"),
93
93
  value: p.content,
94
- exportparts: `${r},${a},${o}`
94
+ exportparts: `${r},${t},${o}`
95
95
  })) ];
96
96
  } else if (p.role === "user") {
97
97
  return [ e("span", {
@@ -106,4 +106,4 @@ const mercuryChatMessageRender = (s, n, c = "AI Assistant") => p => {
106
106
  };
107
107
 
108
108
  export { mercuryCodeRender as a, mercuryChatMessageRender as m };
109
- //# sourceMappingURL=p-c5178973.js.map
109
+ //# sourceMappingURL=p-60221a44.js.map
@@ -1,8 +1,8 @@
1
1
  import { g as e, r as t, h as n, H as a } from "./p-25a9f1d7.js";
2
2
 
3
- import { m as s } from "./p-c5178973.js";
3
+ import { m as s } from "./p-60221a44.js";
4
4
 
5
- import "./p-48f5911b.js";
5
+ import "./p-0c0eb8ae.js";
6
6
 
7
7
  const o = "{{ASSISTANT_NAME}}";
8
8
 
@@ -315,4 +315,4 @@ b = new WeakMap, k = new WeakMap;
315
315
  T.style = h;
316
316
 
317
317
  export { T as gx_ide_sc_chat_container };
318
- //# sourceMappingURL=p-ee79f815.entry.js.map
318
+ //# sourceMappingURL=p-6d996621.entry.js.map