@sisense/sdk-ui 2.22.0 → 2.23.0

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 (183) hide show
  1. package/dist/ai.cjs +17 -17
  2. package/dist/ai.js +57 -57
  3. package/dist/analytics-composer/node.cjs +1 -1
  4. package/dist/analytics-composer/node.js +2177 -1176
  5. package/dist/analytics-composer.cjs +47 -47
  6. package/dist/analytics-composer.js +135 -131
  7. package/dist/dimensions-2t18RSZC.cjs +1 -0
  8. package/dist/dimensions-C0BmtTH2.js +204 -0
  9. package/dist/execute-query-CHYTupEo.js +5866 -0
  10. package/dist/execute-query-DmAyVFF5.cjs +1 -0
  11. package/dist/{index-kxX21arA.js → index-DCAC0mJe.js} +18 -1
  12. package/dist/{index-NyouhE_A.cjs → index-Dx6wvLd3.cjs} +1 -1
  13. package/dist/index.cjs +335 -322
  14. package/dist/index.js +15230 -15097
  15. package/dist/index.umd.js +687 -634
  16. package/dist/packages/sdk-ui/src/domains/dashboarding/components/editable-layout/const.d.ts +1 -0
  17. package/dist/packages/sdk-ui/src/domains/dashboarding/components/editable-layout/smart-pointer-sensor.d.ts +17 -0
  18. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/get-dashboard-model.d.ts +2 -1
  19. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/types.d.ts +24 -2
  20. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/utils.d.ts +2 -1
  21. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/use-dashboard-persistence.d.ts +2 -1
  22. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/jtd/jtd-types.d.ts +1 -1
  23. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/rename-widget/use-widget-renaming.d.ts +34 -0
  24. package/dist/packages/sdk-ui/src/domains/dashboarding/types.d.ts +23 -1
  25. package/dist/packages/sdk-ui/src/domains/dashboarding/use-dashboard-theme.d.ts +1 -1
  26. package/dist/packages/sdk-ui/src/domains/data-browser/add-filter-popover/add-filter-data-browser.d.ts +2 -1
  27. package/dist/packages/sdk-ui/src/domains/data-browser/data-schema-browser/data-schema-browser.d.ts +2 -1
  28. package/dist/packages/sdk-ui/src/domains/data-browser/dimensions-browser/types.d.ts +9 -1
  29. package/dist/packages/sdk-ui/src/domains/formulas/fetch-formula.d.ts +1 -1
  30. package/dist/packages/sdk-ui/src/domains/query-execution/core/execute-query.d.ts +1 -1
  31. package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-query-by-widget-id/use-execute-query-by-widget-id.d.ts +1 -1
  32. package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-query-cache/use-query-cache.d.ts +2 -1
  33. package/dist/packages/sdk-ui/src/domains/visualizations/components/boxplot-chart/boxplot-utils.d.ts +1 -1
  34. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/helpers/get-load-data-function.d.ts +1 -1
  35. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/helpers/data-loading.d.ts +1 -1
  36. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/types.d.ts +1 -1
  37. package/dist/packages/sdk-ui/src/domains/widgets/change-events.d.ts +73 -0
  38. package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/types.d.ts +12 -2
  39. package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/types.d.ts +12 -2
  40. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-dashboard-filters.d.ts +3 -1
  41. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-data-options.d.ts +1 -1
  42. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/types.d.ts +1 -1
  43. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/utils.d.ts +3 -2
  44. package/dist/packages/sdk-ui/src/domains/widgets/event-to-delta.d.ts +17 -0
  45. package/dist/packages/sdk-ui/src/domains/widgets/helpers/header-menu-utils.d.ts +14 -4
  46. package/dist/packages/sdk-ui/src/domains/widgets/helpers/index.d.ts +1 -0
  47. package/dist/packages/sdk-ui/src/domains/widgets/hooks/use-title-renaming.d.ts +27 -0
  48. package/dist/packages/sdk-ui/src/domains/widgets/hooks/use-widget-header-management.d.ts +28 -0
  49. package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-container/widget-container.d.ts +3 -1
  50. package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/types.d.ts +31 -0
  51. package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/widget-header.d.ts +3 -1
  52. package/dist/packages/sdk-ui/src/infra/api/rest-api.d.ts +4 -0
  53. package/dist/packages/sdk-ui/src/infra/api/types/dashboard-dto.d.ts +1 -1
  54. package/dist/packages/sdk-ui/src/infra/app/client-application.d.ts +5 -231
  55. package/dist/packages/sdk-ui/src/infra/app/helpers.d.ts +16 -0
  56. package/dist/packages/sdk-ui/src/infra/app/settings/settings.d.ts +1 -1
  57. package/dist/packages/sdk-ui/src/infra/app/settings/types/deployment-props.d.ts +3 -0
  58. package/dist/packages/sdk-ui/src/infra/app/settings/types/features.d.ts +2 -1
  59. package/dist/packages/sdk-ui/src/infra/app/types.d.ts +236 -0
  60. package/dist/packages/sdk-ui/src/infra/contexts/sisense-context/sisense-context.d.ts +1 -1
  61. package/dist/packages/sdk-ui/src/infra/contexts/theme-provider/theme-context.d.ts +2 -1
  62. package/dist/packages/sdk-ui/src/infra/decorators/component-decorators/with-tracking/with-tracking.d.ts +1 -1
  63. package/dist/packages/sdk-ui/src/infra/decorators/hook-decorators/with-tracking.d.ts +1 -1
  64. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/de-de.d.ts +17 -0
  65. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/en-us.d.ts +17 -0
  66. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-ar.d.ts +17 -0
  67. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-es.d.ts +17 -0
  68. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/fr-fr.d.ts +17 -0
  69. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/it-it.d.ts +17 -0
  70. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ja-jp.d.ts +17 -0
  71. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ko-kr.d.ts +17 -0
  72. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/nl-nl.d.ts +17 -0
  73. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/pt-br.d.ts +17 -0
  74. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ru-ru.d.ts +17 -0
  75. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/tr-tr.d.ts +17 -0
  76. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/zh-cn.d.ts +17 -0
  77. package/dist/packages/sdk-ui/src/infra/translation/resources/en.d.ts +17 -0
  78. package/dist/packages/sdk-ui/src/infra/translation/resources/index.d.ts +34 -0
  79. package/dist/packages/sdk-ui/src/modules/ai/use-get-nlq-result.d.ts +1 -0
  80. package/dist/packages/sdk-ui/src/modules/ai/use-get-query-recommendations.d.ts +1 -0
  81. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/axis-type-detection.d.ts +17 -0
  82. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/chart-type-schemas.d.ts +37 -0
  83. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/index.d.ts +9 -0
  84. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/translate-data-options.d.ts +9 -0
  85. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/validate-chart-json.d.ts +19 -0
  86. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/translate-chart-from-json.d.ts +42 -0
  87. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/translate-chart-to-json.d.ts +41 -0
  88. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/dimensions/translate-dimensions-from-json.d.ts +11 -0
  89. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/dimensions/translate-dimensions-to-json.d.ts +22 -0
  90. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-filters-from-json.d.ts → constructs/filters/translate-filters-from-json.d.ts} +2 -2
  91. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-filters-to-json.d.ts → constructs/filters/translate-filters-to-json.d.ts} +1 -1
  92. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-measures-from-json.d.ts → constructs/measures/translate-measures-from-json.d.ts} +4 -4
  93. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/measures/translate-measures-to-json.d.ts +22 -0
  94. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/index.d.ts +8 -3
  95. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/helpers/index.d.ts +7 -0
  96. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/helpers/translate-data-options.d.ts +14 -0
  97. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/helpers/validate-pivot-table-json.d.ts +19 -0
  98. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/translate-pivot-table-from-json.d.ts +12 -0
  99. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/translate-pivot-table-to-json.d.ts +12 -0
  100. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/constants.d.ts +8 -0
  101. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-query-from-json.d.ts → query/translate-query-from-json.d.ts} +3 -3
  102. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-query-to-jaql.d.ts → query/translate-query-to-jaql.d.ts} +1 -1
  103. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-query-to-json.d.ts → query/translate-query-to-json.d.ts} +2 -2
  104. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/adapters.d.ts +19 -0
  105. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/index.d.ts +9 -0
  106. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/translate-axis-from-json.d.ts +24 -0
  107. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/translate-axis-to-json.d.ts +18 -0
  108. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/custom-formula/process-custom-formula.d.ts +1 -1
  109. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/custom-formula/validate-custom-formula.d.ts +13 -0
  110. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/execute-function.d.ts +1 -1
  111. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/factory-function-processors.d.ts +1 -1
  112. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/factory-function-schemas.d.ts +1 -1
  113. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/filter-processors.d.ts +1 -1
  114. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/formula-function-schemas.d.ts +25 -0
  115. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/process-arg.d.ts +1 -1
  116. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/process-node.d.ts +1 -1
  117. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/attribute-helpers.d.ts +50 -0
  118. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/fuzzy-match.d.ts +16 -0
  119. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{parse-compose-code.d.ts → shared/utils/parse-compose-code.d.ts} +1 -1
  120. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/schema-index.d.ts +49 -0
  121. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/translation-helpers.d.ts +31 -0
  122. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/types.d.ts +115 -4
  123. package/dist/packages/sdk-ui/src/modules/analytics-composer/types.d.ts +6 -6
  124. package/dist/packages/sdk-ui/src/props.d.ts +1 -1
  125. package/dist/packages/sdk-ui/src/public-api/alpha.d.ts +1 -1
  126. package/dist/packages/sdk-ui/src/public-api/beta.d.ts +1 -1
  127. package/dist/packages/sdk-ui/src/public-api/internal.d.ts +8 -6
  128. package/dist/packages/sdk-ui/src/public-api/public.d.ts +1 -1
  129. package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +12 -5
  130. package/dist/packages/sdk-ui/src/shared/components/grouped-items-browser/types.d.ts +7 -1
  131. package/dist/packages/sdk-ui/src/shared/components/inline-text-editor/inline-text-editor.d.ts +26 -0
  132. package/dist/packages/sdk-ui/src/shared/components/inline-text-editor/use-blur-on-pointer-down-outside.d.ts +11 -0
  133. package/dist/packages/sdk-ui/src/shared/components/loading-indicator.d.ts +2 -1
  134. package/dist/packages/sdk-ui/src/shared/components/quota-notification/quota-notification.d.ts +2 -2
  135. package/dist/packages/sdk-ui/src/shared/hooks/use-app-settings.d.ts +2 -1
  136. package/dist/packages/sdk-ui/src/shared/hooks/use-quota-notification.d.ts +4 -4
  137. package/dist/packages/sdk-ui/src/shared/hooks/use-should-load.d.ts +1 -1
  138. package/dist/packages/sdk-ui/src/shared/hooks/use-with-change-detection.d.ts +5 -5
  139. package/dist/packages/sdk-ui/src/types.d.ts +3 -3
  140. package/dist/{quota-notification-D6oMJal8.js → quota-notification-CVl0isIV.js} +17901 -16770
  141. package/dist/quota-notification-RAaHp-eO.cjs +713 -0
  142. package/dist/translations/de-de.cjs +1 -1
  143. package/dist/translations/de-de.js +19 -2
  144. package/dist/translations/en-us.cjs +1 -1
  145. package/dist/translations/en-us.js +1 -1
  146. package/dist/translations/es-ar.cjs +1 -1
  147. package/dist/translations/es-ar.js +19 -2
  148. package/dist/translations/es-es.cjs +1 -1
  149. package/dist/translations/es-es.js +19 -2
  150. package/dist/translations/fr-fr.cjs +1 -1
  151. package/dist/translations/fr-fr.js +19 -2
  152. package/dist/translations/it-it.cjs +1 -1
  153. package/dist/translations/it-it.js +19 -2
  154. package/dist/translations/ja-jp.cjs +1 -1
  155. package/dist/translations/ja-jp.js +19 -2
  156. package/dist/translations/ko-kr.cjs +1 -1
  157. package/dist/translations/ko-kr.js +19 -2
  158. package/dist/translations/nl-nl.cjs +1 -1
  159. package/dist/translations/nl-nl.js +19 -2
  160. package/dist/translations/pt-br.cjs +1 -1
  161. package/dist/translations/pt-br.js +19 -2
  162. package/dist/translations/ru-ru.cjs +1 -1
  163. package/dist/translations/ru-ru.js +19 -2
  164. package/dist/translations/tr-tr.cjs +1 -1
  165. package/dist/translations/tr-tr.js +19 -2
  166. package/dist/translations/zh-cn.cjs +1 -1
  167. package/dist/translations/zh-cn.js +19 -2
  168. package/dist/{types-ixSwJkxM.js → types-B96nVbgX.js} +1 -1
  169. package/dist/{types-CoY6F8Ma.cjs → types-DZ4vWh8j.cjs} +1 -1
  170. package/dist/{utils-C8YMrOdw.cjs → utils-CgV-jWWQ.cjs} +33 -33
  171. package/dist/{utils-BP-BglHE.js → utils-ChqSLRbz.js} +3742 -3774
  172. package/dist/{widget-composer-DI4sHaNe.cjs → widget-composer-Blul90Zb.cjs} +1 -1
  173. package/dist/{widget-composer-CUUFoCb9.js → widget-composer-Cf_CN3Ux.js} +8 -8
  174. package/package.json +10 -8
  175. package/dist/dimensions-BiLyFpCg.js +0 -202
  176. package/dist/dimensions-X4_igtmO.cjs +0 -1
  177. package/dist/execute-query-BEeqqDl6.js +0 -5795
  178. package/dist/execute-query-DJDE0zRU.cjs +0 -1
  179. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/common.d.ts +0 -84
  180. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-dimensions-from-json.d.ts +0 -12
  181. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-dimensions-to-json.d.ts +0 -13
  182. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-measures-to-json.d.ts +0 -13
  183. package/dist/quota-notification-z3dv2KoH.cjs +0 -672
package/dist/ai.js CHANGED
@@ -36,13 +36,13 @@ var V = (e, t, n) => new Promise((r, s) => {
36
36
  }, p = (d) => d.done ? r(d.value) : Promise.resolve(d.value).then(c, a);
37
37
  p((n = n.apply(e, t)).next());
38
38
  });
39
- import { S as En, s as Ln, n as Nt, g as Nn, u as we, a as In, b as Pn, p as On, Q as It, c as Fn, d as Pt, e as fe, w as tt, f as w, h as q, i as R, P as Ot, T as Bn, E as An, j as Hn, k as Dn, l as qn, m as Ae, B as zn, M as Wn, o as pe, q as Ft, r as Zn, t as jn, v as Un, x as Gn, y as me, z as je, F as yt, A as C, C as Vn, I as Bt, D as Qn, G as _n, H as Kn, J as ve, K as Xn, L as Yn, N as Jn, O as er, R as tr, U as At, V as nr, W as rr, X as or, Y as ir, Z as sr } from "./quota-notification-D6oMJal8.js";
40
- import { j as o, u as P, c as S, F as j, e as Ht, i as Oe, f as Dt, h as ar, k as lr, t as cr, m as dr } from "./utils-BP-BglHE.js";
39
+ import { S as En, s as Ln, n as Nt, g as Nn, u as we, a as In, b as Pn, p as On, Q as It, c as Bn, d as Pt, e as fe, w as tt, f as w, h as q, i as R, P as Ot, T as Fn, E as An, j as Hn, k as Dn, l as qn, m as Ae, B as zn, M as Wn, o as pe, q as Bt, r as Zn, t as jn, v as Un, x as Gn, y as me, z as je, F as yt, A as C, C as Vn, I as Ft, D as Qn, G as _n, H as Kn, J as ve, K as Xn, L as Yn, N as Jn, O as er, R as tr, U as At, V as nr, W as rr, X as or, Y as ir, Z as sr } from "./quota-notification-CVl0isIV.js";
40
+ import { j as o, u as P, c as S, F as j, e as Ht, i as Oe, f as ar, h as lr, t as cr, m as dr } from "./utils-ChqSLRbz.js";
41
41
  import * as Y from "react";
42
- import { createContext as nt, useState as A, useCallback as I, useContext as rt, useMemo as z, useEffect as Se, useRef as he, useLayoutEffect as Fe, forwardRef as ur, memo as qt } from "react";
43
- import { v as pr, x as hr, y as gr, T as Ke, z as fr } from "./execute-query-BEeqqDl6.js";
44
- import { t as He } from "./widget-composer-CUUFoCb9.js";
45
- import { w as Cs } from "./widget-composer-CUUFoCb9.js";
42
+ import { createContext as nt, useState as A, useCallback as I, useContext as rt, useMemo as z, useEffect as Se, useRef as he, useLayoutEffect as Be, forwardRef as ur, memo as Dt } from "react";
43
+ import { x as pr, y as hr, z as gr, T as Ke, B as qt, C as fr } from "./execute-query-CHYTupEo.js";
44
+ import { t as He } from "./widget-composer-Cf_CN3Ux.js";
45
+ import { w as Cs } from "./widget-composer-Cf_CN3Ux.js";
46
46
  import { jsx as be } from "react/jsx-runtime";
47
47
  class Cr extends En {
48
48
  constructor(t, n) {
@@ -248,7 +248,7 @@ const Sr = new It({
248
248
  children: e,
249
249
  volatile: t
250
250
  }) => {
251
- const { app: n } = Fn(), r = z(
251
+ const { app: n } = Bn(), r = z(
252
252
  () => {
253
253
  var s, c;
254
254
  return n ? new wr(
@@ -466,7 +466,7 @@ const Er = (e) => {
466
466
  data: t != null ? t : [],
467
467
  isLoading: n
468
468
  };
469
- }, Fr = (e, t, n) => {
469
+ }, Br = (e, t, n) => {
470
470
  const r = we(), s = J(), c = ot({
471
471
  mutationFn: () => V(void 0, null, function* () {
472
472
  if (!(!s || !e))
@@ -477,7 +477,7 @@ const Er = (e) => {
477
477
  return Se(() => {
478
478
  t && c.isIdle && c.mutate();
479
479
  }, [t, c]), c;
480
- }, Br = (e, t) => {
480
+ }, Fr = (e, t) => {
481
481
  switch (e.responseType = e.responseType.toLowerCase(), e.responseType) {
482
482
  case "nlq":
483
483
  return {
@@ -526,7 +526,7 @@ const Er = (e) => {
526
526
  if (!d)
527
527
  return;
528
528
  const h = s("ai.errors.unknownResponse");
529
- r(Br(d, h));
529
+ r(Fr(d, h));
530
530
  }
531
531
  });
532
532
  return { mutate: a, isLoading: p };
@@ -537,7 +537,7 @@ const Er = (e) => {
537
537
  var i;
538
538
  return y.contextTitle === e && ((i = y.contextDetails) == null ? void 0 : i.dashboardId) === (t == null ? void 0 : t.dashboardId);
539
539
  }
540
- )) == null ? void 0 : m.chatId), { isError: p, data: d, isSuccess: h } = Fr(
540
+ )) == null ? void 0 : m.chatId), { isError: p, data: d, isSuccess: h } = Br(
541
541
  e,
542
542
  n && !s && !a,
543
543
  t
@@ -778,7 +778,7 @@ const to = 500;
778
778
  function Me({ title: e, placement: t = "top", children: n }) {
779
779
  const { themeSettings: r } = R();
780
780
  return /* @__PURE__ */ o(
781
- Bn,
781
+ Fn,
782
782
  {
783
783
  title: e,
784
784
  placement: t,
@@ -932,13 +932,13 @@ function co({
932
932
  },
933
933
  [p]
934
934
  ), f = he(null);
935
- Fe(() => {
935
+ Be(() => {
936
936
  f.current && (f.current.style.height = "inherit", f.current.style.height = `${Math.max(
937
937
  f.current.scrollHeight + 2,
938
938
  // account for 1px top/bottom border
939
939
  lo
940
940
  )}px`);
941
- }, [d]), Fe(() => {
941
+ }, [d]), Be(() => {
942
942
  f.current && f.current.focus({ preventScroll: !0 });
943
943
  }, []);
944
944
  const { themeSettings: g } = R(), { t: x } = P(), v = I((k) => {
@@ -1097,7 +1097,7 @@ var vt;
1097
1097
  (function(e) {
1098
1098
  e[e.MAX = 0] = "MAX", e[e.HIGH = 1] = "HIGH", e[e.MED = 2] = "MED", e[e.LOW = 3] = "LOW", e[e.MIN = 4] = "MIN";
1099
1099
  })(vt || (vt = {}));
1100
- const kt = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus", "autoPlay", "cellPadding", "cellSpacing", "charSet", "classId", "colSpan", "contentEditable", "contextMenu", "crossOrigin", "encType", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "frameBorder", "hrefLang", "inputMode", "keyParams", "keyType", "marginHeight", "marginWidth", "maxLength", "mediaGroup", "minLength", "noValidate", "radioGroup", "readOnly", "rowSpan", "spellCheck", "srcDoc", "srcLang", "srcSet", "tabIndex", "useMap"].reduce((e, t) => (e[t.toLowerCase()] = t, e), { class: "className", for: "htmlFor" }), wt = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" }, mo = ["style", "script"], bo = ["src", "href", "data", "formAction", "srcDoc", "action"], yo = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, xo = /mailto:/i, vo = /\n{2,}$/, en = /^(\s*>[\s\S]*?)(?=\n\n|$)/, ko = /^ *> ?/gm, wo = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, So = /^ {2,}\n/, Mo = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, tn = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, nn = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, To = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, $o = /^(?:\n *)*\n/, Ro = /\r\n?/g, Eo = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, Lo = /^\[\^([^\]]+)]/, No = /\f/g, Io = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, Po = /^\s*?\[(x|\s)\]/, rn = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, on = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, sn = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, Ye = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, Oo = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, an = /^<!--[\s\S]*?(?:-->)/, Fo = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, Je = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, Bo = /^\{.*\}$/, Ao = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, Ho = /^<([^ >]+@[^ >]+)>/, Do = /^<([^ >]+:\/[^ >]+)>/, qo = /-([a-z])?/gi, ln = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, zo = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, Wo = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, Zo = /^\[([^\]]*)\] ?\[([^\]]*)\]/, jo = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, Uo = /\t/g, Go = /(^ *\||\| *$)/g, Vo = /^ *:-+: *$/, Qo = /^ *:-+ *$/, _o = /^ *-+: *$/, ze = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", Ko = new RegExp(`^([*_])\\1${ze}\\1\\1(?!\\1)`), Xo = new RegExp(`^([*_])${ze}\\1(?!\\1)`), Yo = new RegExp(`^(==)${ze}\\1`), Jo = new RegExp(`^(~~)${ze}\\1`), ei = /^\\([^0-9A-Za-z\s])/, St = /\\([^0-9A-Za-z\s])/g, ti = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/, ni = /^\n+/, ri = /^([ \t]*)/, oi = /\\([^\\])/g, ii = /(?:^|\n)( *)$/, ut = "(?:\\d+\\.)", pt = "(?:[*+-])";
1100
+ const kt = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus", "autoPlay", "cellPadding", "cellSpacing", "charSet", "classId", "colSpan", "contentEditable", "contextMenu", "crossOrigin", "encType", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "frameBorder", "hrefLang", "inputMode", "keyParams", "keyType", "marginHeight", "marginWidth", "maxLength", "mediaGroup", "minLength", "noValidate", "radioGroup", "readOnly", "rowSpan", "spellCheck", "srcDoc", "srcLang", "srcSet", "tabIndex", "useMap"].reduce((e, t) => (e[t.toLowerCase()] = t, e), { class: "className", for: "htmlFor" }), wt = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" }, mo = ["style", "script"], bo = ["src", "href", "data", "formAction", "srcDoc", "action"], yo = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, xo = /mailto:/i, vo = /\n{2,}$/, en = /^(\s*>[\s\S]*?)(?=\n\n|$)/, ko = /^ *> ?/gm, wo = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, So = /^ {2,}\n/, Mo = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, tn = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, nn = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, To = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, $o = /^(?:\n *)*\n/, Ro = /\r\n?/g, Eo = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, Lo = /^\[\^([^\]]+)]/, No = /\f/g, Io = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, Po = /^\s*?\[(x|\s)\]/, rn = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, on = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, sn = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, Ye = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, Oo = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, an = /^<!--[\s\S]*?(?:-->)/, Bo = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, Je = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, Fo = /^\{.*\}$/, Ao = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, Ho = /^<([^ >]+@[^ >]+)>/, Do = /^<([^ >]+:\/[^ >]+)>/, qo = /-([a-z])?/gi, ln = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, zo = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, Wo = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, Zo = /^\[([^\]]*)\] ?\[([^\]]*)\]/, jo = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, Uo = /\t/g, Go = /(^ *\||\| *$)/g, Vo = /^ *:-+: *$/, Qo = /^ *:-+ *$/, _o = /^ *-+: *$/, ze = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", Ko = new RegExp(`^([*_])\\1${ze}\\1\\1(?!\\1)`), Xo = new RegExp(`^([*_])${ze}\\1(?!\\1)`), Yo = new RegExp(`^(==)${ze}\\1`), Jo = new RegExp(`^(~~)${ze}\\1`), ei = /^\\([^0-9A-Za-z\s])/, St = /\\([^0-9A-Za-z\s])/g, ti = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/, ni = /^\n+/, ri = /^([ \t]*)/, oi = /\\([^\\])/g, ii = /(?:^|\n)( *)$/, ut = "(?:\\d+\\.)", pt = "(?:[*+-])";
1101
1101
  function cn(e) {
1102
1102
  return "( *)(" + (e === 1 ? ut : pt) + ") +";
1103
1103
  }
@@ -1290,15 +1290,15 @@ function vi(e = "", t = {}) {
1290
1290
  const x = g.indexOf("=");
1291
1291
  if (x !== -1) {
1292
1292
  const v = function(T) {
1293
- return T.indexOf("-") !== -1 && T.match(Fo) === null && (T = T.replace(qo, function(N, B) {
1294
- return B.toUpperCase();
1293
+ return T.indexOf("-") !== -1 && T.match(Bo) === null && (T = T.replace(qo, function(N, F) {
1294
+ return F.toUpperCase();
1295
1295
  })), T;
1296
1296
  }(g.slice(0, x)).trim(), k = function(T) {
1297
1297
  const N = T[0];
1298
1298
  return (N === '"' || N === "'") && T.length >= 2 && T[T.length - 1] === N ? T.slice(1, -1) : T;
1299
1299
  }(g.slice(x + 1).trim()), L = kt[v] || v;
1300
1300
  if (L === "ref") return f;
1301
- const $ = f[L] = function(T, N, B, le) {
1301
+ const $ = f[L] = function(T, N, F, le) {
1302
1302
  return N === "style" ? function(Q) {
1303
1303
  const Z = [];
1304
1304
  let _ = "", K = !1, D = !1, ee = "";
@@ -1327,9 +1327,9 @@ function vi(e = "", t = {}) {
1327
1327
  }
1328
1328
  }
1329
1329
  return Z;
1330
- }(B).reduce(function(Q, [Z, _]) {
1330
+ }(F).reduce(function(Q, [Z, _]) {
1331
1331
  return Q[Z.replace(/(-[a-z])/g, (K) => K[1].toUpperCase())] = le(_, T, Z), Q;
1332
- }, {}) : bo.indexOf(N) !== -1 ? le(B, T, N) : (B.match(Bo) && (B = B.slice(1, B.length - 1)), B === "true" || B !== "false" && B);
1332
+ }, {}) : bo.indexOf(N) !== -1 ? le(F, T, N) : (F.match(Fo) && (F = F.slice(1, F.length - 1)), F === "true" || F !== "false" && F);
1333
1333
  }(i, v, k, t.sanitizer);
1334
1334
  typeof $ == "string" && (Ye.test($) || Je.test($)) && (f[L] = r($.trim()));
1335
1335
  } else g !== "style" && (f[kt[g] || g] = !0);
@@ -1344,7 +1344,7 @@ function vi(e = "", t = {}) {
1344
1344
  const f = { key: l.key };
1345
1345
  return i.alert && (f.className = "markdown-alert-" + t.slugify(i.alert.toLowerCase(), ye), i.children.unshift({ attrs: {}, children: [{ type: b.text, text: i.alert }], noInnerParse: !0, type: b.htmlBlock, tag: "header" })), n("blockquote", f, u(i.children, l));
1346
1346
  } }, [b.breakLine]: { match: xe(So), order: 1, parse: Ge, render: (i, u, l) => n("br", { key: l.key }) }, [b.breakThematic]: { match: te(Mo), order: 1, parse: Ge, render: (i, u, l) => n("hr", { key: l.key }) }, [b.codeBlock]: { match: te(nn), order: 0, parse: (i) => ({ lang: void 0, text: ke(i[0].replace(/^ {4}/gm, "")).replace(St, "$1") }), render: (i, u, l) => n("pre", { key: l.key }, n("code", ce({}, i.attrs, { className: i.lang ? `lang-${i.lang}` : "" }), i.text)) }, [b.codeFenced]: { match: te(tn), order: 0, parse: (i) => ({ attrs: s("code", i[3] || ""), lang: i[2] || void 0, text: i[4], type: b.codeBlock }) }, [b.codeInline]: { match: se(To), order: 3, parse: (i) => ({ text: i[2].replace(St, "$1") }), render: (i, u, l) => n("code", { key: l.key }, i.text) }, [b.footnote]: { match: te(Eo), order: 0, parse: (i) => (c.push({ footnote: i[2], identifier: i[1] }), {}), render: Ve }, [b.footnoteReference]: { match: ie(Lo), order: 1, parse: (i) => ({ target: `#${t.slugify(i[1], ye)}`, text: i[1] }), render: (i, u, l) => n("a", { key: l.key, href: t.sanitizer(i.target, "a", "href") }, n("sup", { key: l.key }, i.text)) }, [b.gfmTask]: { match: ie(Po), order: 1, parse: (i) => ({ completed: i[1].toLowerCase() === "x" }), render: (i, u, l) => n("input", { checked: i.completed, key: l.key, readOnly: !0, type: "checkbox" }) }, [b.heading]: { match: te(t.enforceAtxHeadings ? on : rn), order: 1, parse: (i, u, l) => ({ children: Pe(u, i[2], l), id: t.slugify(i[2], ye), level: i[1].length }), render: (i, u, l) => n(`h${i.level}`, { id: i.id, key: l.key }, u(i.children, l)) }, [b.headingSetext]: { match: te(sn), order: 0, parse: (i, u, l) => ({ children: Pe(u, i[1], l), level: i[2] === "=" ? 1 : 2, type: b.heading }) }, [b.htmlBlock]: { match: xe(Ye), order: 1, parse(i, u, l) {
1347
- const [, f] = i[3].match(ri), g = new RegExp(`^${f}`, "gm"), x = i[3].replace(g, ""), v = (k = x, pi.some((B) => B.test(k)) ? yi : Pe);
1347
+ const [, f] = i[3].match(ri), g = new RegExp(`^${f}`, "gm"), x = i[3].replace(g, ""), v = (k = x, pi.some((F) => F.test(k)) ? yi : Pe);
1348
1348
  var k;
1349
1349
  const L = i[1].toLowerCase(), $ = mo.indexOf(L) !== -1, T = ($ ? L : i[1]).trim(), N = { attrs: s(T, i[2]), noInnerParse: $, tag: T };
1350
1350
  return l.inAnchor = l.inAnchor || L === "a", $ ? N.text = i[3] : N.children = v(u, x, l), l.inAnchor = !1, N;
@@ -1530,7 +1530,7 @@ const Mi = w.div`
1530
1530
  return "";
1531
1531
  }}
1532
1532
  `;
1533
- function Be({
1533
+ function Fe({
1534
1534
  children: e,
1535
1535
  align: t,
1536
1536
  onClick: n,
@@ -1557,8 +1557,8 @@ function $i({ onCancel: e, onConfirm: t }) {
1557
1557
  return /* @__PURE__ */ S(j, { children: [
1558
1558
  /* @__PURE__ */ o(ae, { align: "left", children: n("ai.clearHistoryPrompt") }),
1559
1559
  /* @__PURE__ */ S("div", { className: "csdk-flex csdk-gap-x-2", children: [
1560
- /* @__PURE__ */ o(Be, { align: "right", onClick: t, accessibleName: "confirm clear chat", children: /* @__PURE__ */ o("div", { className: "csdk-py-[6px] csdk-px-[20px]", children: n("ai.buttons.yes") }) }),
1561
- /* @__PURE__ */ o(Be, { align: "right", onClick: e, accessibleName: "cancel clear chat", children: /* @__PURE__ */ o("div", { className: "csdk-py-[6px] csdk-px-[20px]", children: n("ai.buttons.no") }) })
1560
+ /* @__PURE__ */ o(Fe, { align: "right", onClick: t, accessibleName: "confirm clear chat", children: /* @__PURE__ */ o("div", { className: "csdk-py-[6px] csdk-px-[20px]", children: n("ai.buttons.yes") }) }),
1561
+ /* @__PURE__ */ o(Fe, { align: "right", onClick: e, accessibleName: "cancel clear chat", children: /* @__PURE__ */ o("div", { className: "csdk-py-[6px] csdk-px-[20px]", children: n("ai.buttons.no") }) })
1562
1562
  ] })
1563
1563
  ] });
1564
1564
  }
@@ -1577,7 +1577,7 @@ function Ei() {
1577
1577
  }
1578
1578
  function Li({ onClick: e }) {
1579
1579
  const { t } = P();
1580
- return /* @__PURE__ */ o(Be, { align: "left", onClick: e, children: /* @__PURE__ */ S(
1580
+ return /* @__PURE__ */ o(Fe, { align: "left", onClick: e, children: /* @__PURE__ */ S(
1581
1581
  "div",
1582
1582
  {
1583
1583
  className: "csdk-py-[5px] csdk-px-2 csdk-flex csdk-items-center csdk-gap-x-1 csdk-select-none",
@@ -1622,7 +1622,7 @@ const Ii = Ae(zn, {
1622
1622
  // Use !important to override the Modal inline-style.
1623
1623
  position: "absolute !important"
1624
1624
  }
1625
- }), Fi = Ae("div", {
1625
+ }), Bi = Ae("div", {
1626
1626
  name: "MuiDialog",
1627
1627
  slot: "Container",
1628
1628
  overridesResolver: (e, t) => {
@@ -1664,7 +1664,7 @@ const Ii = Ae(zn, {
1664
1664
  }
1665
1665
  }
1666
1666
  }]
1667
- }), Bi = Ae(Ft, {
1667
+ }), Fi = Ae(Bt, {
1668
1668
  name: "MuiDialog",
1669
1669
  slot: "Paper",
1670
1670
  overridesResolver: (e, t) => {
@@ -1779,10 +1779,10 @@ const Ii = Ae(zn, {
1779
1779
  onClick: v,
1780
1780
  onClose: k,
1781
1781
  open: L,
1782
- PaperComponent: $ = Ft,
1782
+ PaperComponent: $ = Bt,
1783
1783
  PaperProps: T = {},
1784
1784
  scroll: N = "paper",
1785
- slots: B = {},
1785
+ slots: F = {},
1786
1786
  slotProps: le = {},
1787
1787
  TransitionComponent: Q = yt,
1788
1788
  transitionDuration: Z = c,
@@ -1825,7 +1825,7 @@ const Ii = Ae(zn, {
1825
1825
  titleId: G
1826
1826
  }), [G]), Ce = M({
1827
1827
  transition: Q
1828
- }, B), de = M({
1828
+ }, F), de = M({
1829
1829
  transition: _,
1830
1830
  paper: T,
1831
1831
  backdrop: m
@@ -1839,19 +1839,19 @@ const Ii = Ae(zn, {
1839
1839
  ownerState: D,
1840
1840
  className: je(ee.root, i),
1841
1841
  ref: n
1842
- }), [F, X] = me("backdrop", {
1842
+ }), [B, X] = me("backdrop", {
1843
1843
  elementType: Ii,
1844
1844
  shouldForwardComponentProp: !0,
1845
1845
  externalForwardedProps: oe,
1846
1846
  ownerState: D
1847
1847
  }), [Ee, ft] = me("paper", {
1848
- elementType: Bi,
1848
+ elementType: Fi,
1849
1849
  shouldForwardComponentProp: !0,
1850
1850
  externalForwardedProps: oe,
1851
1851
  ownerState: D,
1852
1852
  className: je(ee.paper, T.className)
1853
1853
  }), [Le, wn] = me("container", {
1854
- elementType: Fi,
1854
+ elementType: Bi,
1855
1855
  externalForwardedProps: oe,
1856
1856
  ownerState: D,
1857
1857
  className: je(ee.container)
@@ -1869,7 +1869,7 @@ const Ii = Ae(zn, {
1869
1869
  return /* @__PURE__ */ be($e, E(M(M({
1870
1870
  closeAfterTransition: !0,
1871
1871
  slots: {
1872
- backdrop: F
1872
+ backdrop: B
1873
1873
  },
1874
1874
  slotProps: {
1875
1875
  backdrop: M({
@@ -2168,7 +2168,7 @@ const vn = {
2168
2168
  }, Hi = {
2169
2169
  shouldForwardProp: (e) => !e.startsWith("$")
2170
2170
  }, Te = w(
2171
- Bt,
2171
+ Ft,
2172
2172
  Hi
2173
2173
  )(({ $hoverColor: e }) => ({
2174
2174
  padding: 2,
@@ -2313,7 +2313,7 @@ function Vi({ content: e }) {
2313
2313
  }
2314
2314
  };
2315
2315
  let m, y;
2316
- if (Dt(a.chartType))
2316
+ if (qt(a.chartType))
2317
2317
  m = /* @__PURE__ */ o("div", { className: "csdk-h-[245px]", children: /* @__PURE__ */ o(ve, E(M({}, a), { styleOptions: h })) }), y = /* @__PURE__ */ o(ve, E(M({}, a), { styleOptions: { header: { hidden: !0 } } }));
2318
2318
  else {
2319
2319
  const i = E(M({}, d), {
@@ -2350,7 +2350,7 @@ function Vi({ content: e }) {
2350
2350
  children: [
2351
2351
  /* @__PURE__ */ S("div", { className: "csdk-flex csdk-items-center csdk-justify-between csdk-mt-[16px] csdk-mx-[16px] csdk-pl-[20px]", children: [
2352
2352
  /* @__PURE__ */ o("div", { className: "csdk-text-ai-lg csdk-semibold", children: e.queryTitle }),
2353
- /* @__PURE__ */ o(Bt, { onClick: () => n(!1), "aria-label": "close expanded chart", children: /* @__PURE__ */ o(Ai, { fillColor: r.aiChat.primaryTextColor }) })
2353
+ /* @__PURE__ */ o(Ft, { onClick: () => n(!1), "aria-label": "close expanded chart", children: /* @__PURE__ */ o(Ai, { fillColor: r.aiChat.primaryTextColor }) })
2354
2354
  ] }),
2355
2355
  /* @__PURE__ */ o("div", { className: "csdk-h-screen csdk-mt-[8px] csdk-mb-[24px] csdk-mx-[16px]", children: c })
2356
2356
  ]
@@ -2462,7 +2462,7 @@ function et({
2462
2462
  const t1 = 18 * 5;
2463
2463
  function gt({ text: e }) {
2464
2464
  const [t, n] = A(!0), [r, s] = A(!1), { t: c } = P(), a = he(null);
2465
- return Fe(() => {
2465
+ return Be(() => {
2466
2466
  a.current && a.current.scrollHeight > t1 && s(!0);
2467
2467
  }, [e]), /* @__PURE__ */ S("div", { children: [
2468
2468
  /* @__PURE__ */ o("div", { ref: a, className: `${t ? "csdk-line-clamp-5" : ""} csdk-whitespace-pre-wrap`, children: e }),
@@ -2543,7 +2543,7 @@ function i1({ message: e, isLastMessage: t }) {
2543
2543
  const n = Hr(e) ? JSON.parse(e.content).answer : e.content;
2544
2544
  return /* @__PURE__ */ o(ae, { align: e.role === "user" ? "right" : "left", children: n });
2545
2545
  }
2546
- const s1 = qt(i1), a1 = ({
2546
+ const s1 = Dt(i1), a1 = ({
2547
2547
  error: e,
2548
2548
  displayMessage: t
2549
2549
  }) => (console.debug("Unexpected error occurred when resolving a chat message:", e), /* @__PURE__ */ o(ae, { align: "left", children: t }));
@@ -2773,7 +2773,7 @@ function M1({ contextTitle: e, onGoBack: t, contextDetails: n }) {
2773
2773
  count: p,
2774
2774
  customPrompt: d
2775
2775
  }), l = z(
2776
- () => y == null ? void 0 : y.map((F) => F.nlqPrompt),
2776
+ () => y == null ? void 0 : y.map((B) => B.nlqPrompt),
2777
2777
  [y]
2778
2778
  ), {
2779
2779
  history: f,
@@ -2783,16 +2783,16 @@ function M1({ contextTitle: e, onGoBack: t, contextDetails: n }) {
2783
2783
  isLoading: k,
2784
2784
  chatId: L,
2785
2785
  lastError: $
2786
- } = Dr(e, n), T = x || k || ((de = m == null ? void 0 : m.isExceeded) != null ? de : !1), { mutate: N, isLoading: B } = Kt(L), [le, Q] = A(!1), [Z, _] = A(!1), K = () => Q(!0), D = () => Q(!1), ee = () => {
2786
+ } = Dr(e, n), T = x || k || ((de = m == null ? void 0 : m.isExceeded) != null ? de : !1), { mutate: N, isLoading: F } = Kt(L), [le, Q] = A(!1), [Z, _] = A(!1), K = () => Q(!0), D = () => Q(!1), ee = () => {
2787
2787
  N(), D();
2788
2788
  }, O = he(null), U = he(null), W = () => {
2789
2789
  if (!(O != null && O.current)) return;
2790
- const { scrollTop: F, clientHeight: X, scrollHeight: Ee } = O.current;
2791
- if (F === void 0 || X === void 0 || Ee === void 0) return;
2792
- const Le = Ee - F - X > X / 2;
2790
+ const { scrollTop: B, clientHeight: X, scrollHeight: Ee } = O.current;
2791
+ if (B === void 0 || X === void 0 || Ee === void 0) return;
2792
+ const Le = Ee - B - X > X / 2;
2793
2793
  Z !== Le && _(Le);
2794
2794
  };
2795
- Fe(() => {
2795
+ Be(() => {
2796
2796
  O.current && (O.current.scrollTop = O.current.scrollHeight);
2797
2797
  }, [f, le, x]);
2798
2798
  const G = he(null), re = c ? /* @__PURE__ */ o(
@@ -2806,7 +2806,7 @@ function M1({ contextTitle: e, onGoBack: t, contextDetails: n }) {
2806
2806
  ) : null, Ce = z(
2807
2807
  () => [
2808
2808
  ...new Set(
2809
- f.filter((F) => F.role === "user").filter((F) => !(l != null && l.includes(F.content))).map((F) => F.content).reverse()
2809
+ f.filter((B) => B.role === "user").filter((B) => !(l != null && l.includes(B.content))).map((B) => B.content).reverse()
2810
2810
  )
2811
2811
  ].slice(0, a),
2812
2812
  [f, a, l]
@@ -2824,9 +2824,9 @@ function M1({ contextTitle: e, onGoBack: t, contextDetails: n }) {
2824
2824
  isVisible: Z,
2825
2825
  anchorElement: U.current,
2826
2826
  onClick: () => {
2827
- var F, X;
2827
+ var B, X;
2828
2828
  (X = O.current) == null || X.scroll({
2829
- top: (F = O.current) == null ? void 0 : F.scrollHeight,
2829
+ top: (B = O.current) == null ? void 0 : B.scrollHeight,
2830
2830
  behavior: "smooth"
2831
2831
  });
2832
2832
  }
@@ -2843,18 +2843,18 @@ function M1({ contextTitle: e, onGoBack: t, contextDetails: n }) {
2843
2843
  ),
2844
2844
  $ && /* @__PURE__ */ o(ae, { align: "left", children: $.message }),
2845
2845
  k ? /* @__PURE__ */ o(qe, {}) : /* @__PURE__ */ o(l1, { messages: f }),
2846
- s && g && (($e = (oe = g.followupQuestions) == null ? void 0 : oe.length) != null ? $e : 0) > 0 && /* @__PURE__ */ o(S1, { theme: h, children: (Re = g.followupQuestions) == null ? void 0 : Re.slice(0, 2).map((F, X) => /* @__PURE__ */ o(
2847
- Be,
2846
+ s && g && (($e = (oe = g.followupQuestions) == null ? void 0 : oe.length) != null ? $e : 0) > 0 && /* @__PURE__ */ o(S1, { theme: h, children: (Re = g.followupQuestions) == null ? void 0 : Re.slice(0, 2).map((B, X) => /* @__PURE__ */ o(
2847
+ Fe,
2848
2848
  {
2849
2849
  align: "left",
2850
2850
  onClick: () => {
2851
- v(F);
2851
+ v(B);
2852
2852
  },
2853
- children: /* @__PURE__ */ o("div", { className: "csdk-py-[7px] csdk-px-4", children: F })
2853
+ children: /* @__PURE__ */ o("div", { className: "csdk-py-[7px] csdk-px-4", children: B })
2854
2854
  },
2855
2855
  X
2856
2856
  )) }),
2857
- (x || B) && /* @__PURE__ */ o(dt, {}),
2857
+ (x || F) && /* @__PURE__ */ o(dt, {}),
2858
2858
  le && /* @__PURE__ */ o(
2859
2859
  $i,
2860
2860
  {
@@ -2952,9 +2952,9 @@ function O1(e) {
2952
2952
  t.map((s) => /* @__PURE__ */ tr(L1, E(M({}, s), { key: s.title })))
2953
2953
  ] });
2954
2954
  }
2955
- const F1 = "#000000", B1 = "#FFFFFF";
2955
+ const B1 = "#000000", F1 = "#FFFFFF";
2956
2956
  function A1({ isDarkBackground: e = !1 }) {
2957
- const t = e ? B1 : F1;
2957
+ const t = e ? F1 : B1;
2958
2958
  return /* @__PURE__ */ S(
2959
2959
  "svg",
2960
2960
  {
@@ -3241,7 +3241,7 @@ const Z1 = w.div`
3241
3241
  ] })
3242
3242
  }
3243
3243
  );
3244
- }, G1 = (e, t) => e.nlqResponse.timestamp === t.nlqResponse.timestamp, us = qt(
3244
+ }, G1 = (e, t) => e.nlqResponse.timestamp === t.nlqResponse.timestamp, us = Dt(
3245
3245
  function({
3246
3246
  nlqResponse: t,
3247
3247
  onDataReady: n,
@@ -3326,7 +3326,7 @@ function _1(e, t, n) {
3326
3326
  throw new Error(
3327
3327
  "dataSource is required. Provide it in ChartWidgetProps or as defaultDataSource parameter."
3328
3328
  );
3329
- const { attributes: d, measures: h } = Dt(c) ? Q1(s) : or(s, c);
3329
+ const { attributes: d, measures: h } = qt(c) ? Q1(s) : or(s, c);
3330
3330
  return {
3331
3331
  dataSource: p,
3332
3332
  dimensions: d,