@epam/ai-dial-catalog 1.0.0-dev.477 → 1.0.0-dev.480

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Catalog.d.ts","sourceRoot":"","sources":["../../../src/components/Catalog/Catalog.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAqD,MAAM,OAAO,CAAC;AAE9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAqB/D;;;;GAIG;AACH,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CA6apC,CAAC"}
1
+ {"version":3,"file":"Catalog.d.ts","sourceRoot":"","sources":["../../../src/components/Catalog/Catalog.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAqD,MAAM,OAAO,CAAC;AAE9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAqB/D;;;;GAIG;AACH,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAgbpC,CAAC"}
@@ -24,6 +24,8 @@ export interface FavoriteCardProps {
24
24
  removeFromFavoritesAriaLabel?: string;
25
25
  /** Whether this card represents the currently selected item — shows an accent border, tinted background, and a checkmark. Default: false. */
26
26
  isSelected?: boolean;
27
+ /** Credentials-status badge label shown when signed out. Default: `'LOGGED OUT'`. */
28
+ credentialsBadgeLoggedOutLabel?: string;
27
29
  }
28
30
  /** Compact favorite card: logo + type + name + version + last-used, star aligned right. */
29
31
  export declare const FavoriteCard: FC<FavoriteCardProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"FavoriteCard.d.ts","sourceRoot":"","sources":["../../../src/components/Favorites/FavoriteCard.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAoD,MAAM,OAAO,CAAC;AAE7E,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAKxD,8BAA8B;AAC9B,MAAM,WAAW,iBAAiB;IAChC,oCAAoC;IACpC,IAAI,EAAE,WAAW,CAAC;IAClB,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IACpD,4CAA4C;IAC5C,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IACtC,kFAAkF;IAClF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kFAAkF;IAClF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kFAAkF;IAClF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mFAAmF;IACnF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wGAAwG;IACxG,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,iHAAiH;IACjH,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,6IAA6I;IAC7I,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,2FAA2F;AAC3F,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAkG9C,CAAC"}
1
+ {"version":3,"file":"FavoriteCard.d.ts","sourceRoot":"","sources":["../../../src/components/Favorites/FavoriteCard.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAoD,MAAM,OAAO,CAAC;AAE7E,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAMxD,8BAA8B;AAC9B,MAAM,WAAW,iBAAiB;IAChC,oCAAoC;IACpC,IAAI,EAAE,WAAW,CAAC;IAClB,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IACpD,4CAA4C;IAC5C,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IACtC,kFAAkF;IAClF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kFAAkF;IAClF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kFAAkF;IAClF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mFAAmF;IACnF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wGAAwG;IACxG,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,iHAAiH;IACjH,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,6IAA6I;IAC7I,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,qFAAqF;IACrF,8BAA8B,CAAC,EAAE,MAAM,CAAC;CACzC;AAED,2FAA2F;AAC3F,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAyG9C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Favorites.d.ts","sourceRoot":"","sources":["../../../src/components/Favorites/Favorites.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,EAAE,EAMH,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAqCxD;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAsZxC,CAAC"}
1
+ {"version":3,"file":"Favorites.d.ts","sourceRoot":"","sources":["../../../src/components/Favorites/Favorites.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,EAAE,EAMH,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAqCxD;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAwZxC,CAAC"}
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import e, { Fragment as t, createElement as n, forwardRef as r, memo as i, useCallback as a, useEffect as o, useId as s, useLayoutEffect as c, useMemo as l, useRef as u, useState as d } from "react";
2
- import { ButtonAppearance as f, ButtonVariant as p, DIAL_ICON_SIZE as m, DialAccordion as h, DialBreadcrumb as g, DialButton as _, DialCheckbox as v, DialCloseButton as y, DialConfirmationPopup as b, DialDropdown as x, DialEllipsisTooltip as S, DialFileNodeType as C, DialFoldersTree as w, DialGhostButton as T, DialGhostIconButton as E, DialGrid as D, DialIcon as O, DialInput as k, DialNeutralButton as A, DialNoDataContent as j, DialNotification as M, DialPrimaryButton as N, DialSkeleton as ee, DialSkeletonAvatarShape as te, DialSpinner as P, DialTag as ne, DialTooltip as re, ElementSize as ie, NotificationVariant as ae, mergeClasses as oe } from "@epam/ai-dial-ui-kit";
2
+ import { ButtonAppearance as f, ButtonVariant as p, DIAL_ICON_SIZE as m, DialAccordion as h, DialBreadcrumb as g, DialButton as _, DialCheckbox as v, DialCloseButton as y, DialConfirmationPopup as b, DialDropdown as x, DialEllipsisTooltip as S, DialFileNodeType as C, DialFoldersTree as w, DialGhostButton as T, DialGhostIconButton as E, DialGrid as D, DialIcon as O, DialInput as k, DialNeutralButton as ee, DialNoDataContent as A, DialNotification as j, DialPrimaryButton as M, DialSkeleton as N, DialSkeletonAvatarShape as te, DialSpinner as P, DialTag as ne, DialTooltip as re, ElementSize as ie, NotificationVariant as ae, mergeClasses as oe } from "@epam/ai-dial-ui-kit";
3
3
  import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
4
4
  import { IconCheck as R, IconChevronDown as se, IconChevronLeft as ce, IconChevronRight as le, IconCircleCheckFilled as ue, IconCopy as de, IconFilter as fe, IconFolder as pe, IconKey as me, IconLayoutGrid as he, IconLayoutList as ge, IconLogin as z, IconLogout as _e, IconMessageCircle as ve, IconPencil as ye, IconPlayerPlayFilled as be, IconPlus as xe, IconSearch as Se, IconShare as Ce, IconStar as we, IconStarFilled as Te, IconTrash as Ee, IconX as De, IconZoomCancel as Oe } from "@tabler/icons-react";
5
5
  //#region src/types/code-language.ts
@@ -490,7 +490,7 @@ var yt = /* @__PURE__ */ ht((/* @__PURE__ */ ft(((e, t) => {
490
490
  "fr",
491
491
  U,
492
492
  H
493
- ], A = () => [
493
+ ], ee = () => [
494
494
  "start",
495
495
  "end",
496
496
  "center",
@@ -501,14 +501,14 @@ var yt = /* @__PURE__ */ ht((/* @__PURE__ */ ft(((e, t) => {
501
501
  "baseline",
502
502
  "center-safe",
503
503
  "end-safe"
504
- ], j = () => [
504
+ ], A = () => [
505
505
  "start",
506
506
  "end",
507
507
  "center",
508
508
  "stretch",
509
509
  "center-safe",
510
510
  "end-safe"
511
- ], M = () => ["auto", ...w()], N = () => [
511
+ ], j = () => ["auto", ...w()], M = () => [
512
512
  ln,
513
513
  "auto",
514
514
  "full",
@@ -522,7 +522,7 @@ var yt = /* @__PURE__ */ ht((/* @__PURE__ */ ft(((e, t) => {
522
522
  "max",
523
523
  "fit",
524
524
  ...w()
525
- ], ee = () => [
525
+ ], N = () => [
526
526
  ln,
527
527
  "screen",
528
528
  "full",
@@ -887,19 +887,19 @@ var yt = /* @__PURE__ */ ht((/* @__PURE__ */ ft(((e, t) => {
887
887
  gap: [{ gap: w() }],
888
888
  "gap-x": [{ "gap-x": w() }],
889
889
  "gap-y": [{ "gap-y": w() }],
890
- "justify-content": [{ justify: [...A(), "normal"] }],
891
- "justify-items": [{ "justify-items": [...j(), "normal"] }],
892
- "justify-self": [{ "justify-self": ["auto", ...j()] }],
893
- "align-content": [{ content: ["normal", ...A()] }],
894
- "align-items": [{ items: [...j(), { baseline: ["", "last"] }] }],
890
+ "justify-content": [{ justify: [...ee(), "normal"] }],
891
+ "justify-items": [{ "justify-items": [...A(), "normal"] }],
892
+ "justify-self": [{ "justify-self": ["auto", ...A()] }],
893
+ "align-content": [{ content: ["normal", ...ee()] }],
894
+ "align-items": [{ items: [...A(), { baseline: ["", "last"] }] }],
895
895
  "align-self": [{ self: [
896
896
  "auto",
897
- ...j(),
897
+ ...A(),
898
898
  { baseline: ["", "last"] }
899
899
  ] }],
900
- "place-content": [{ "place-content": A() }],
901
- "place-items": [{ "place-items": [...j(), "baseline"] }],
902
- "place-self": [{ "place-self": ["auto", ...j()] }],
900
+ "place-content": [{ "place-content": ee() }],
901
+ "place-items": [{ "place-items": [...A(), "baseline"] }],
902
+ "place-self": [{ "place-self": ["auto", ...A()] }],
903
903
  p: [{ p: w() }],
904
904
  px: [{ px: w() }],
905
905
  py: [{ py: w() }],
@@ -911,38 +911,38 @@ var yt = /* @__PURE__ */ ht((/* @__PURE__ */ ft(((e, t) => {
911
911
  pr: [{ pr: w() }],
912
912
  pb: [{ pb: w() }],
913
913
  pl: [{ pl: w() }],
914
- m: [{ m: M() }],
915
- mx: [{ mx: M() }],
916
- my: [{ my: M() }],
917
- ms: [{ ms: M() }],
918
- me: [{ me: M() }],
919
- mbs: [{ mbs: M() }],
920
- mbe: [{ mbe: M() }],
921
- mt: [{ mt: M() }],
922
- mr: [{ mr: M() }],
923
- mb: [{ mb: M() }],
924
- ml: [{ ml: M() }],
914
+ m: [{ m: j() }],
915
+ mx: [{ mx: j() }],
916
+ my: [{ my: j() }],
917
+ ms: [{ ms: j() }],
918
+ me: [{ me: j() }],
919
+ mbs: [{ mbs: j() }],
920
+ mbe: [{ mbe: j() }],
921
+ mt: [{ mt: j() }],
922
+ mr: [{ mr: j() }],
923
+ mb: [{ mb: j() }],
924
+ ml: [{ ml: j() }],
925
925
  "space-x": [{ "space-x": w() }],
926
926
  "space-x-reverse": ["space-x-reverse"],
927
927
  "space-y": [{ "space-y": w() }],
928
928
  "space-y-reverse": ["space-y-reverse"],
929
- size: [{ size: N() }],
930
- "inline-size": [{ inline: ["auto", ...ee()] }],
931
- "min-inline-size": [{ "min-inline": ["auto", ...ee()] }],
932
- "max-inline-size": [{ "max-inline": ["none", ...ee()] }],
929
+ size: [{ size: M() }],
930
+ "inline-size": [{ inline: ["auto", ...N()] }],
931
+ "min-inline-size": [{ "min-inline": ["auto", ...N()] }],
932
+ "max-inline-size": [{ "max-inline": ["none", ...N()] }],
933
933
  "block-size": [{ block: ["auto", ...te()] }],
934
934
  "min-block-size": [{ "min-block": ["auto", ...te()] }],
935
935
  "max-block-size": [{ "max-block": ["none", ...te()] }],
936
936
  w: [{ w: [
937
937
  s,
938
938
  "screen",
939
- ...N()
939
+ ...M()
940
940
  ] }],
941
941
  "min-w": [{ "min-w": [
942
942
  s,
943
943
  "screen",
944
944
  "none",
945
- ...N()
945
+ ...M()
946
946
  ] }],
947
947
  "max-w": [{ "max-w": [
948
948
  s,
@@ -950,23 +950,23 @@ var yt = /* @__PURE__ */ ht((/* @__PURE__ */ ft(((e, t) => {
950
950
  "none",
951
951
  "prose",
952
952
  { screen: [o] },
953
- ...N()
953
+ ...M()
954
954
  ] }],
955
955
  h: [{ h: [
956
956
  "screen",
957
957
  "lh",
958
- ...N()
958
+ ...M()
959
959
  ] }],
960
960
  "min-h": [{ "min-h": [
961
961
  "screen",
962
962
  "lh",
963
963
  "none",
964
- ...N()
964
+ ...M()
965
965
  ] }],
966
966
  "max-h": [{ "max-h": [
967
967
  "screen",
968
968
  "lh",
969
- ...N()
969
+ ...M()
970
970
  ] }],
971
971
  "font-size": [{ text: [
972
972
  "base",
@@ -2074,7 +2074,7 @@ var qn = (e) => typeof navigator < "u" && navigator.clipboard?.writeText ? navig
2074
2074
  className: W(a, r),
2075
2075
  text: s
2076
2076
  });
2077
- }, dr = i(({ icon: e, label: t }) => /* @__PURE__ */ I(j, {
2077
+ }, dr = i(({ icon: e, label: t }) => /* @__PURE__ */ I(A, {
2078
2078
  title: t,
2079
2079
  icon: e
2080
2080
  }));
@@ -4658,29 +4658,29 @@ function Eo(e, t, n) {
4658
4658
  return t === null || J(t) ? O(t) : X(t) ? (e.consume(t), D) : n(t);
4659
4659
  }
4660
4660
  function O(t) {
4661
- return t === 45 && i === 2 ? (e.consume(t), M) : t === 60 && i === 1 ? (e.consume(t), N) : t === 62 && i === 4 ? (e.consume(t), ne) : t === 63 && i === 3 ? (e.consume(t), P) : t === 93 && i === 5 ? (e.consume(t), te) : J(t) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Co, re, k)(t)) : t === null || J(t) ? (e.exit("htmlFlowData"), k(t)) : (e.consume(t), O);
4661
+ return t === 45 && i === 2 ? (e.consume(t), j) : t === 60 && i === 1 ? (e.consume(t), M) : t === 62 && i === 4 ? (e.consume(t), ne) : t === 63 && i === 3 ? (e.consume(t), P) : t === 93 && i === 5 ? (e.consume(t), te) : J(t) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Co, re, k)(t)) : t === null || J(t) ? (e.exit("htmlFlowData"), k(t)) : (e.consume(t), O);
4662
4662
  }
4663
4663
  function k(t) {
4664
- return e.check(wo, A, re)(t);
4664
+ return e.check(wo, ee, re)(t);
4665
+ }
4666
+ function ee(t) {
4667
+ return e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), A;
4665
4668
  }
4666
4669
  function A(t) {
4667
- return e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), j;
4670
+ return t === null || J(t) ? k(t) : (e.enter("htmlFlowData"), O(t));
4668
4671
  }
4669
4672
  function j(t) {
4670
- return t === null || J(t) ? k(t) : (e.enter("htmlFlowData"), O(t));
4673
+ return t === 45 ? (e.consume(t), P) : O(t);
4671
4674
  }
4672
4675
  function M(t) {
4673
- return t === 45 ? (e.consume(t), P) : O(t);
4676
+ return t === 47 ? (e.consume(t), o = "", N) : O(t);
4674
4677
  }
4675
4678
  function N(t) {
4676
- return t === 47 ? (e.consume(t), o = "", ee) : O(t);
4677
- }
4678
- function ee(t) {
4679
4679
  if (t === 62) {
4680
4680
  let n = o.toLowerCase();
4681
4681
  return xo.includes(n) ? (e.consume(t), ne) : O(t);
4682
4682
  }
4683
- return ia(t) && o.length < 8 ? (e.consume(t), o += String.fromCharCode(t), ee) : O(t);
4683
+ return ia(t) && o.length < 8 ? (e.consume(t), o += String.fromCharCode(t), N) : O(t);
4684
4684
  }
4685
4685
  function te(t) {
4686
4686
  return t === 93 ? (e.consume(t), P) : O(t);
@@ -4731,34 +4731,34 @@ function Ao(e, t, n) {
4731
4731
  return t === 45 ? (e.consume(t), p) : n(t);
4732
4732
  }
4733
4733
  function d(t) {
4734
- return t === null ? n(t) : t === 45 ? (e.consume(t), f) : J(t) ? (o = d, N(t)) : (e.consume(t), d);
4734
+ return t === null ? n(t) : t === 45 ? (e.consume(t), f) : J(t) ? (o = d, M(t)) : (e.consume(t), d);
4735
4735
  }
4736
4736
  function f(t) {
4737
4737
  return t === 45 ? (e.consume(t), p) : d(t);
4738
4738
  }
4739
4739
  function p(e) {
4740
- return e === 62 ? M(e) : e === 45 ? f(e) : d(e);
4740
+ return e === 62 ? j(e) : e === 45 ? f(e) : d(e);
4741
4741
  }
4742
4742
  function m(t) {
4743
4743
  return t === "CDATA[".charCodeAt(a++) ? (e.consume(t), a === 6 ? h : m) : n(t);
4744
4744
  }
4745
4745
  function h(t) {
4746
- return t === null ? n(t) : t === 93 ? (e.consume(t), g) : J(t) ? (o = h, N(t)) : (e.consume(t), h);
4746
+ return t === null ? n(t) : t === 93 ? (e.consume(t), g) : J(t) ? (o = h, M(t)) : (e.consume(t), h);
4747
4747
  }
4748
4748
  function g(t) {
4749
4749
  return t === 93 ? (e.consume(t), _) : h(t);
4750
4750
  }
4751
4751
  function _(t) {
4752
- return t === 62 ? M(t) : t === 93 ? (e.consume(t), _) : h(t);
4752
+ return t === 62 ? j(t) : t === 93 ? (e.consume(t), _) : h(t);
4753
4753
  }
4754
4754
  function v(t) {
4755
- return t === null || t === 62 ? M(t) : J(t) ? (o = v, N(t)) : (e.consume(t), v);
4755
+ return t === null || t === 62 ? j(t) : J(t) ? (o = v, M(t)) : (e.consume(t), v);
4756
4756
  }
4757
4757
  function y(t) {
4758
- return t === null ? n(t) : t === 63 ? (e.consume(t), b) : J(t) ? (o = y, N(t)) : (e.consume(t), y);
4758
+ return t === null ? n(t) : t === 63 ? (e.consume(t), b) : J(t) ? (o = y, M(t)) : (e.consume(t), y);
4759
4759
  }
4760
4760
  function b(e) {
4761
- return e === 62 ? M(e) : y(e);
4761
+ return e === 62 ? j(e) : y(e);
4762
4762
  }
4763
4763
  function x(t) {
4764
4764
  return ia(t) ? (e.consume(t), S) : n(t);
@@ -4767,39 +4767,39 @@ function Ao(e, t, n) {
4767
4767
  return t === 45 || aa(t) ? (e.consume(t), S) : C(t);
4768
4768
  }
4769
4769
  function C(t) {
4770
- return J(t) ? (o = C, N(t)) : X(t) ? (e.consume(t), C) : M(t);
4770
+ return J(t) ? (o = C, M(t)) : X(t) ? (e.consume(t), C) : j(t);
4771
4771
  }
4772
4772
  function w(t) {
4773
4773
  return t === 45 || aa(t) ? (e.consume(t), w) : t === 47 || t === 62 || Y(t) ? T(t) : n(t);
4774
4774
  }
4775
4775
  function T(t) {
4776
- return t === 47 ? (e.consume(t), M) : t === 58 || t === 95 || ia(t) ? (e.consume(t), E) : J(t) ? (o = T, N(t)) : X(t) ? (e.consume(t), T) : M(t);
4776
+ return t === 47 ? (e.consume(t), j) : t === 58 || t === 95 || ia(t) ? (e.consume(t), E) : J(t) ? (o = T, M(t)) : X(t) ? (e.consume(t), T) : j(t);
4777
4777
  }
4778
4778
  function E(t) {
4779
4779
  return t === 45 || t === 46 || t === 58 || t === 95 || aa(t) ? (e.consume(t), E) : D(t);
4780
4780
  }
4781
4781
  function D(t) {
4782
- return t === 61 ? (e.consume(t), O) : J(t) ? (o = D, N(t)) : X(t) ? (e.consume(t), D) : T(t);
4782
+ return t === 61 ? (e.consume(t), O) : J(t) ? (o = D, M(t)) : X(t) ? (e.consume(t), D) : T(t);
4783
4783
  }
4784
4784
  function O(t) {
4785
- return t === null || t === 60 || t === 61 || t === 62 || t === 96 ? n(t) : t === 34 || t === 39 ? (e.consume(t), i = t, k) : J(t) ? (o = O, N(t)) : X(t) ? (e.consume(t), O) : (e.consume(t), A);
4785
+ return t === null || t === 60 || t === 61 || t === 62 || t === 96 ? n(t) : t === 34 || t === 39 ? (e.consume(t), i = t, k) : J(t) ? (o = O, M(t)) : X(t) ? (e.consume(t), O) : (e.consume(t), ee);
4786
4786
  }
4787
4787
  function k(t) {
4788
- return t === i ? (e.consume(t), i = void 0, j) : t === null ? n(t) : J(t) ? (o = k, N(t)) : (e.consume(t), k);
4788
+ return t === i ? (e.consume(t), i = void 0, A) : t === null ? n(t) : J(t) ? (o = k, M(t)) : (e.consume(t), k);
4789
4789
  }
4790
- function A(t) {
4791
- return t === null || t === 34 || t === 39 || t === 60 || t === 61 || t === 96 ? n(t) : t === 47 || t === 62 || Y(t) ? T(t) : (e.consume(t), A);
4790
+ function ee(t) {
4791
+ return t === null || t === 34 || t === 39 || t === 60 || t === 61 || t === 96 ? n(t) : t === 47 || t === 62 || Y(t) ? T(t) : (e.consume(t), ee);
4792
4792
  }
4793
- function j(e) {
4793
+ function A(e) {
4794
4794
  return e === 47 || e === 62 || Y(e) ? T(e) : n(e);
4795
4795
  }
4796
- function M(r) {
4796
+ function j(r) {
4797
4797
  return r === 62 ? (e.consume(r), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(r);
4798
4798
  }
4799
- function N(t) {
4800
- return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), ee;
4799
+ function M(t) {
4800
+ return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), N;
4801
4801
  }
4802
- function ee(t) {
4802
+ function N(t) {
4803
4803
  return X(t) ? Z(e, te, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(t) : te(t);
4804
4804
  }
4805
4805
  function te(t) {
@@ -5610,7 +5610,7 @@ function Is(e) {
5610
5610
  codeFencedFenceMeta: m,
5611
5611
  codeFlowValue: E,
5612
5612
  codeIndented: c(_),
5613
- codeText: c(j),
5613
+ codeText: c(A),
5614
5614
  codeTextData: E,
5615
5615
  data: E,
5616
5616
  definition: c(),
@@ -5622,13 +5622,13 @@ function Is(e) {
5622
5622
  hardBreakTrailing: c(O),
5623
5623
  htmlFlow: c(k),
5624
5624
  htmlFlowData: E,
5625
- htmlText: c(A),
5625
+ htmlText: c(ee),
5626
5626
  htmlTextData: E,
5627
- image: c(N),
5627
+ image: c(M),
5628
5628
  label: te,
5629
- labelText: ee,
5629
+ labelText: N,
5630
5630
  lineEnding: D,
5631
- link: c(M),
5631
+ link: c(j),
5632
5632
  listItem: c(),
5633
5633
  listOrdered: c(),
5634
5634
  listUnordered: c(),
@@ -5854,15 +5854,15 @@ function Is(e) {
5854
5854
  let e = this.resume(), t = this.stack[this.stack.length - 1];
5855
5855
  t.value = e;
5856
5856
  }
5857
- function A() {
5857
+ function ee() {
5858
5858
  let e = this.resume(), t = this.stack[this.stack.length - 1];
5859
5859
  t.value = e;
5860
5860
  }
5861
- function j() {
5861
+ function A() {
5862
5862
  let e = this.resume(), t = this.stack[this.stack.length - 1];
5863
5863
  t.value = e;
5864
5864
  }
5865
- function M() {
5865
+ function j() {
5866
5866
  let e = this.stack[this.stack.length - 1];
5867
5867
  if (this.data.inReference) {
5868
5868
  let t = this.data.referenceType || "shortcut";
@@ -5870,7 +5870,7 @@ function Is(e) {
5870
5870
  } else delete e.identifier, delete e.label;
5871
5871
  this.data.referenceType = void 0;
5872
5872
  }
5873
- function N() {
5873
+ function M() {
5874
5874
  let e = this.stack[this.stack.length - 1];
5875
5875
  if (this.data.inReference) {
5876
5876
  let t = this.data.referenceType || "shortcut";
@@ -5878,7 +5878,7 @@ function Is(e) {
5878
5878
  } else delete e.identifier, delete e.label;
5879
5879
  this.data.referenceType = void 0;
5880
5880
  }
5881
- function ee(e) {
5881
+ function N(e) {
5882
5882
  let t = this.sliceSerialize(e), n = this.stack[this.stack.length - 2];
5883
5883
  n.label = Ms(t), n.identifier = ra(t).toLowerCase();
5884
5884
  }
@@ -9885,32 +9885,32 @@ function Kp(t, n) {
9885
9885
  var i = r.language, a = r.children, o = r.style, s = o === void 0 ? n : o, c = r.customStyle, l = c === void 0 ? {} : c, u = r.codeTagProps, d = u === void 0 ? {
9886
9886
  className: i ? `language-${i}` : void 0,
9887
9887
  style: Mp(Mp({}, s["code[class*=\"language-\"]"]), s[`code[class*="language-${i}"]`])
9888
- } : u, f = r.useInlineStyles, p = f === void 0 ? !0 : f, m = r.showLineNumbers, h = m === void 0 ? !1 : m, g = r.showInlineLineNumbers, _ = g === void 0 ? !0 : g, v = r.startingLineNumber, y = v === void 0 ? 1 : v, b = r.lineNumberContainerStyle, x = r.lineNumberStyle, S = x === void 0 ? {} : x, C = r.wrapLines, w = r.wrapLongLines, T = w === void 0 ? !1 : w, E = r.lineProps, D = E === void 0 ? {} : E, O = r.renderer, k = r.PreTag, A = k === void 0 ? "pre" : k, j = r.CodeTag, M = j === void 0 ? "code" : j, N = r.code, ee = N === void 0 ? (Array.isArray(a) ? a[0] : a) || "" : N, te = r.astGenerator, P = cp(r, Ap);
9888
+ } : u, f = r.useInlineStyles, p = f === void 0 ? !0 : f, m = r.showLineNumbers, h = m === void 0 ? !1 : m, g = r.showInlineLineNumbers, _ = g === void 0 ? !0 : g, v = r.startingLineNumber, y = v === void 0 ? 1 : v, b = r.lineNumberContainerStyle, x = r.lineNumberStyle, S = x === void 0 ? {} : x, C = r.wrapLines, w = r.wrapLongLines, T = w === void 0 ? !1 : w, E = r.lineProps, D = E === void 0 ? {} : E, O = r.renderer, k = r.PreTag, ee = k === void 0 ? "pre" : k, A = r.CodeTag, j = A === void 0 ? "code" : A, M = r.code, N = M === void 0 ? (Array.isArray(a) ? a[0] : a) || "" : M, te = r.astGenerator, P = cp(r, Ap);
9889
9889
  te ||= t;
9890
9890
  var ne = h ? /*#__PURE__*/ e.createElement(Ip, {
9891
9891
  containerStyle: b,
9892
9892
  codeStyle: d.style || {},
9893
9893
  numberStyle: S,
9894
9894
  startingLineNumber: y,
9895
- codeString: ee
9895
+ codeString: N
9896
9896
  }) : null, re = s.hljs || s["pre[class*=\"language-\"]"] || { backgroundColor: "#fff" }, ie = Wp(te) ? "hljs" : "prismjs", ae = p ? Object.assign({}, P, { style: Object.assign({}, re, l) }) : Object.assign({}, P, {
9897
9897
  className: P.className ? `${ie} ${P.className}` : ie,
9898
9898
  style: Object.assign({}, l)
9899
9899
  });
9900
- if (T ? d.style = Mp({ whiteSpace: "pre-wrap" }, d.style) : d.style = Mp({ whiteSpace: "pre" }, d.style), !te) return /*#__PURE__*/ e.createElement(A, ae, ne, /*#__PURE__*/ e.createElement(M, d, ee));
9900
+ if (T ? d.style = Mp({ whiteSpace: "pre-wrap" }, d.style) : d.style = Mp({ whiteSpace: "pre" }, d.style), !te) return /*#__PURE__*/ e.createElement(ee, ae, ne, /*#__PURE__*/ e.createElement(j, d, N));
9901
9901
  (C === void 0 && O || T) && (C = !0), O ||= Up;
9902
9902
  var oe = [{
9903
9903
  type: "text",
9904
- value: ee
9904
+ value: N
9905
9905
  }], F = Gp({
9906
9906
  astGenerator: te,
9907
9907
  language: i,
9908
- code: ee,
9908
+ code: N,
9909
9909
  defaultCodeValue: oe
9910
9910
  });
9911
9911
  F.language === null && (F.value = oe);
9912
- var I = y + (ee.match(/\n/g)?.length ?? 0), L = Hp(F, C, D, h, _, y, I, S, T);
9913
- return /*#__PURE__*/ e.createElement(A, ae, /*#__PURE__*/ e.createElement(M, d, !_ && ne, O({
9912
+ var I = y + (N.match(/\n/g)?.length ?? 0), L = Hp(F, C, D, h, _, y, I, S, T);
9913
+ return /*#__PURE__*/ e.createElement(ee, ae, /*#__PURE__*/ e.createElement(j, d, !_ && ne, O({
9914
9914
  rows: L,
9915
9915
  stylesheet: s,
9916
9916
  useInlineStyles: p
@@ -10280,13 +10280,13 @@ function bm(e, t, n, r, i, a) {
10280
10280
  a && O > a.reach && (a.reach = O);
10281
10281
  var k = g.prev;
10282
10282
  E && (k = Sm(t, k, E), _ += E.length), Cm(t, k, y);
10283
- var A = new vm(o, u ? _m.tokenize(T, u) : T, p, T);
10284
- if (g = Sm(t, k, A), D && Sm(t, g, D), y > 1) {
10285
- var j = {
10283
+ var ee = new vm(o, u ? _m.tokenize(T, u) : T, p, T);
10284
+ if (g = Sm(t, k, ee), D && Sm(t, g, D), y > 1) {
10285
+ var A = {
10286
10286
  cause: o + "," + c,
10287
10287
  reach: O
10288
10288
  };
10289
- bm(e, t, n, g.prev, _, j), a && j.reach > a.reach && (a.reach = j.reach);
10289
+ bm(e, t, n, g.prev, _, A), a && A.reach > a.reach && (a.reach = A.reach);
10290
10290
  }
10291
10291
  }
10292
10292
  }
@@ -12480,8 +12480,8 @@ function lh(e) {
12480
12480
  punctuation: /[:,]/
12481
12481
  }
12482
12482
  } });
12483
- var D = ":[^}\\r\\n]+", O = r(t("[^\"'/()]|<<0>>|\\(<<self>>*\\)", [C]), 2), k = t("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [O, D]), A = r(t("[^\"'/()]|\\/(?!\\*)|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>|\\(<<self>>*\\)", [S]), 2), j = t("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [A, D]);
12484
- function M(t, r) {
12483
+ var D = ":[^}\\r\\n]+", O = r(t("[^\"'/()]|<<0>>|\\(<<self>>*\\)", [C]), 2), k = t("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [O, D]), ee = r(t("[^\"'/()]|\\/(?!\\*)|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>|\\(<<self>>*\\)", [S]), 2), A = t("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [ee, D]);
12484
+ function j(t, r) {
12485
12485
  return {
12486
12486
  interpolation: {
12487
12487
  pattern: n("((?:^|[^{])(?:\\{\\{)*)<<0>>", [t]),
@@ -12508,12 +12508,12 @@ function lh(e) {
12508
12508
  pattern: n("(^|[^\\\\])(?:\\$@|@\\$)\"(?:\"\"|\\\\[\\s\\S]|\\{\\{|<<0>>|[^\\\\{\"])*\"", [k]),
12509
12509
  lookbehind: !0,
12510
12510
  greedy: !0,
12511
- inside: M(k, O)
12511
+ inside: j(k, O)
12512
12512
  }, {
12513
- pattern: n("(^|[^@\\\\])\\$\"(?:\\\\.|\\{\\{|<<0>>|[^\\\\\"{])*\"", [j]),
12513
+ pattern: n("(^|[^@\\\\])\\$\"(?:\\\\.|\\{\\{|<<0>>|[^\\\\\"{])*\"", [A]),
12514
12514
  lookbehind: !0,
12515
12515
  greedy: !0,
12516
- inside: M(j, A)
12516
+ inside: j(A, ee)
12517
12517
  }],
12518
12518
  char: {
12519
12519
  pattern: RegExp(y),
@@ -26055,7 +26055,7 @@ i(({ tabs: e, activeTabId: t, onTabChange: n, tabClassName: r = "dial-tiny-semi-
26055
26055
  }));
26056
26056
  //#endregion
26057
26057
  //#region ../ai-dial-kit/src/components/Button/Buttons.tsx
26058
- var Lb = (e) => /* @__PURE__ */ I(N, { ...e }), Rb = (e) => /* @__PURE__ */ I(_, {
26058
+ var Lb = (e) => /* @__PURE__ */ I(M, { ...e }), Rb = (e) => /* @__PURE__ */ I(_, {
26059
26059
  ...e,
26060
26060
  variant: p.Neutral,
26061
26061
  appearance: f.Outlined
@@ -26422,7 +26422,7 @@ var Lb = (e) => /* @__PURE__ */ I(N, { ...e }), Rb = (e) => /* @__PURE__ */ I(_,
26422
26422
  children: Array.from({ length: g * 3 }, (e, t) => /* @__PURE__ */ I("div", {
26423
26423
  className: W("rounded-[6px] border p-4", Zb.skeletonCard),
26424
26424
  style: { height: 248 },
26425
- children: /* @__PURE__ */ I(ee, {
26425
+ children: /* @__PURE__ */ I(N, {
26426
26426
  avatar: {
26427
26427
  size: 48,
26428
26428
  shape: te.Square
@@ -26683,7 +26683,7 @@ var Sx = {
26683
26683
  O,
26684
26684
  u,
26685
26685
  T
26686
- ]), A = b ? Ze([...b, s]) : null;
26686
+ ]), ee = b ? Ze([...b, s]) : null;
26687
26687
  return /* @__PURE__ */ L("div", {
26688
26688
  className: W(a && "pointer-events-none opacity-60"),
26689
26689
  children: [/* @__PURE__ */ I(w, {
@@ -26696,7 +26696,7 @@ var Sx = {
26696
26696
  onItemClick: (e) => {
26697
26697
  n(t != null && Ze(t) === e.path ? void 0 : Qe(e.path));
26698
26698
  },
26699
- createdFolderPath: A,
26699
+ createdFolderPath: ee,
26700
26700
  newFolderDefaultName: s,
26701
26701
  onCreateFolderSave: (t) => {
26702
26702
  if (!b) return;
@@ -26748,26 +26748,26 @@ var Sx = {
26748
26748
  children: Je(e.publishedAt)
26749
26749
  })]
26750
26750
  }, `${e.version}-${n}`)) }), Dx = ({ item: e, history: t, isHistoryLoading: n = !1, hasHistoryError: r = !1, folderItems: i, selectedFolderPath: a, onSelectedFolderPathChange: o, onCreateFolder: s, expandedPaths: c, onExpandedPathsChange: u, loadingPaths: f, hasExistingVersionInFolder: p, hasWriteAccess: m, isSubmitting: h, hasSubmitError: g = !1, texts: _ = {} }) => {
26751
- let { currentVersionSuffix: v = "current", folderLabel: y = "Publish to folder", searchPlaceholder: b = "Search folders", clearSearchAriaLabel: x = "Clear search", historyLabel: S = "Versions history", replaceWarning: C = "Version {version} is already published in {folder}. Publishing will replace it.", noAccessError: w = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: T = "Publishing failed. Please try again.", folderEmptyStateText: E, historyLoadingText: D, historyErrorText: O, rootFolderLabel: k = "Organization" } = _, [A, j] = d(""), N = a != null, ee = l(() => Ke({
26752
- hasSelectedFolder: N,
26751
+ let { currentVersionSuffix: v = "current", folderLabel: y = "Publish to folder", searchPlaceholder: b = "Search folders", clearSearchAriaLabel: x = "Clear search", historyLabel: S = "Versions history", replaceWarning: C = "Version {version} is already published in {folder}. Publishing will replace it.", noAccessError: w = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: T = "Publishing failed. Please try again.", folderEmptyStateText: E, historyLoadingText: D, historyErrorText: O, rootFolderLabel: k = "Organization" } = _, [ee, A] = d(""), M = a != null, N = l(() => Ke({
26752
+ hasSelectedFolder: M,
26753
26753
  hasExistingVersionInFolder: p,
26754
26754
  hasWriteAccess: m,
26755
26755
  isSubmitting: h,
26756
26756
  hasSubmitError: g
26757
26757
  }), [
26758
- N,
26758
+ M,
26759
26759
  p,
26760
26760
  m,
26761
26761
  h,
26762
26762
  g
26763
- ]), te = N ? a[a.length - 1] ?? k : "", P = l(() => {
26764
- if (!N) return [];
26763
+ ]), te = M ? a[a.length - 1] ?? k : "", P = l(() => {
26764
+ if (!M) return [];
26765
26765
  let e = a.join("/");
26766
26766
  return t.filter((t) => t.folderPath.join("/") === e);
26767
26767
  }, [
26768
26768
  t,
26769
26769
  a,
26770
- N
26770
+ M
26771
26771
  ]);
26772
26772
  return /* @__PURE__ */ L("div", {
26773
26773
  className: "flex flex-col gap-5",
@@ -26792,8 +26792,8 @@ var Sx = {
26792
26792
  /* @__PURE__ */ I("div", {
26793
26793
  className: "mb-3",
26794
26794
  children: /* @__PURE__ */ I(xx, {
26795
- value: A,
26796
- onChange: j,
26795
+ value: ee,
26796
+ onChange: A,
26797
26797
  placeholder: b,
26798
26798
  clearLabel: x,
26799
26799
  wrapperClassName: "px-0",
@@ -26808,16 +26808,16 @@ var Sx = {
26808
26808
  expandedPaths: c,
26809
26809
  onExpandedPathsChange: u,
26810
26810
  loadingPaths: f,
26811
- searchQuery: A,
26811
+ searchQuery: ee,
26812
26812
  disabled: h,
26813
26813
  noResultsText: E,
26814
26814
  rootLabel: k
26815
26815
  }),
26816
- ee.calloutKind !== ze.None && ee.calloutKind !== ze.Info && /* @__PURE__ */ I("div", {
26816
+ N.calloutKind !== ze.None && N.calloutKind !== ze.Info && /* @__PURE__ */ I("div", {
26817
26817
  className: "mt-3",
26818
- children: /* @__PURE__ */ I(M, {
26819
- variant: Ox(ee.calloutKind),
26820
- message: Ax(ee.calloutKind, {
26818
+ children: /* @__PURE__ */ I(j, {
26819
+ variant: Ox(N.calloutKind),
26820
+ message: Ax(N.calloutKind, {
26821
26821
  replaceWarning: C,
26822
26822
  noAccessError: w,
26823
26823
  submitError: T,
@@ -26827,7 +26827,7 @@ var Sx = {
26827
26827
  })
26828
26828
  })
26829
26829
  ] }),
26830
- N && /* @__PURE__ */ L("div", { children: [/* @__PURE__ */ I("div", {
26830
+ M && /* @__PURE__ */ L("div", { children: [/* @__PURE__ */ I("div", {
26831
26831
  className: "dial-body-semi-text mb-2 text-primary",
26832
26832
  children: S
26833
26833
  }), /* @__PURE__ */ I(Ex, {
@@ -26943,7 +26943,7 @@ var Sx = {
26943
26943
  items: u,
26944
26944
  matchReferenceWidth: !1,
26945
26945
  listClassName: "cp-dropdown-overlay",
26946
- children: /* @__PURE__ */ I(A, {
26946
+ children: /* @__PURE__ */ I(ee, {
26947
26947
  size: ie.Small,
26948
26948
  label: f,
26949
26949
  iconAfter: /* @__PURE__ */ I(se, { size: m.SM })
@@ -27001,7 +27001,7 @@ var Sx = {
27001
27001
  items: S,
27002
27002
  matchReferenceWidth: !1,
27003
27003
  listClassName: "cp-dropdown-overlay",
27004
- children: /* @__PURE__ */ I(A, {
27004
+ children: /* @__PURE__ */ I(ee, {
27005
27005
  size: ie.Small,
27006
27006
  label: b?.label,
27007
27007
  iconAfter: /* @__PURE__ */ I(se, { size: m.SM })
@@ -27282,12 +27282,12 @@ var Sx = {
27282
27282
  D,
27283
27283
  p,
27284
27284
  f
27285
- ]), A = {
27285
+ ]), ee = {
27286
27286
  [Ie.ManageCredentials]: h?.manageCredentialsActionLabel ?? "Manage credentials",
27287
27287
  [Ie.LoginWithMyCreds]: h?.loginWithMyCredsActionLabel ?? "Login with my creds",
27288
27288
  [Ie.LogIn]: h?.loginActionLabel ?? "Log in",
27289
27289
  [Ie.LogOut]: h?.logoutActionLabel ?? "Log out"
27290
- }[D ?? Ie.LogIn], j = {
27290
+ }[D ?? Ie.LogIn], A = {
27291
27291
  [Ie.ManageCredentials]: /* @__PURE__ */ I(me, { size: m.MD }),
27292
27292
  [Ie.LoginWithMyCreds]: /* @__PURE__ */ I(z, { size: m.MD }),
27293
27293
  [Ie.LogIn]: /* @__PURE__ */ I(z, { size: m.MD }),
@@ -27337,8 +27337,8 @@ var Sx = {
27337
27337
  onClick: v
27338
27338
  }),
27339
27339
  O && /* @__PURE__ */ I(Rb, {
27340
- label: A,
27341
- iconBefore: j,
27340
+ label: ee,
27341
+ iconBefore: A,
27342
27342
  onClick: k
27343
27343
  })
27344
27344
  ]
@@ -27573,8 +27573,8 @@ var Sx = {
27573
27573
  })
27574
27574
  ]
27575
27575
  }, e.name))
27576
- }), sS = async () => void 0, cS = [], lS = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, onClose: i, onToggleFavorite: s, onUseInChat: c, isPrimaryActionVisible: u, onShare: f, onUnshare: p, isPublishVisible: m, getPublishHistory: h, publishFolderItems: g = cS, publishExpandedPaths: _, onPublishExpandedPathsChange: v, publishLoadingPaths: x, hasPublishWriteAccess: S, onPublish: C, onPublishSuccess: w, onCreatePublishFolder: T, publishTexts: E, shareOverlay: D, onEdit: O, onDelete: k, onLogin: A, onLogout: j, texts: M, styles: N }) => {
27577
- let { overviewSectionClassName: te = "dial-caption-text", overviewLabelClassName: P = "dial-small-semi-text", overviewValueClassName: ne = "dial-small-text", overviewValueTrueClassName: re = "dial-small-text", credentialsStatusLabelClassName: ie } = N?.typography ?? {}, [ae, oe] = d(n), [R, se] = d(""), [le, ue] = d(!1), [de, fe] = d([]), [pe, me] = d(!1), [he, ge] = d(!1);
27576
+ }), sS = async () => void 0, cS = [], lS = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, onClose: i, onToggleFavorite: s, onUseInChat: c, isPrimaryActionVisible: u, onShare: f, onUnshare: p, isPublishVisible: m, getPublishHistory: h, publishFolderItems: g = cS, publishExpandedPaths: _, onPublishExpandedPathsChange: v, publishLoadingPaths: x, hasPublishWriteAccess: S, onPublish: C, onPublishSuccess: w, onCreatePublishFolder: T, publishTexts: E, shareOverlay: D, onEdit: O, onDelete: k, onLogin: ee, onLogout: A, texts: j, styles: M }) => {
27577
+ let { overviewSectionClassName: te = "dial-caption-text", overviewLabelClassName: P = "dial-small-semi-text", overviewValueClassName: ne = "dial-small-text", overviewValueTrueClassName: re = "dial-small-text", credentialsStatusLabelClassName: ie } = M?.typography ?? {}, [ae, oe] = d(n), [R, se] = d(""), [le, ue] = d(!1), [de, fe] = d([]), [pe, me] = d(!1), [he, ge] = d(!1);
27578
27578
  o(() => {
27579
27579
  if (!le || !h) return;
27580
27580
  let t = !1;
@@ -27625,8 +27625,8 @@ var Sx = {
27625
27625
  }, []), Oe = a(() => {
27626
27626
  xe(!1);
27627
27627
  }, []), ke = a(() => {
27628
- xe(!1), e.credentials != null && j?.(e, { level: at(e.credentials) });
27629
- }, [e, j]), je = a(() => {
27628
+ xe(!1), e.credentials != null && A?.(e, { level: at(e.credentials) });
27629
+ }, [e, A]), je = a(() => {
27630
27630
  Ce(!0);
27631
27631
  }, []), B = a(() => {
27632
27632
  Ce(!1);
@@ -27668,22 +27668,22 @@ var Sx = {
27668
27668
  ]), Le = l(() => {
27669
27669
  let t = [{
27670
27670
  id: Ae.About,
27671
- label: M?.tabAboutLabel ?? "About"
27671
+ label: j?.tabAboutLabel ?? "About"
27672
27672
  }];
27673
27673
  return e.details?.overview != null && t.push({
27674
27674
  id: Ae.Overview,
27675
- label: M?.tabOverviewLabel ?? "Overview"
27675
+ label: j?.tabOverviewLabel ?? "Overview"
27676
27676
  }), e.details?.pricing != null && t.push({
27677
27677
  id: Ae.Pricing,
27678
- label: M?.tabPricingLabel ?? "Pricing"
27678
+ label: j?.tabPricingLabel ?? "Pricing"
27679
27679
  }), e.details?.api != null && t.push({
27680
27680
  id: Ae.Api,
27681
- label: M?.tabApiLabel ?? "API"
27681
+ label: j?.tabApiLabel ?? "API"
27682
27682
  }), e.details?.tools != null && t.push({
27683
27683
  id: Ae.Tools,
27684
- label: M?.tabToolsLabel ?? "Tools"
27684
+ label: j?.tabToolsLabel ?? "Tools"
27685
27685
  }), t;
27686
- }, [e.details, M]);
27686
+ }, [e.details, j]);
27687
27687
  o(() => {
27688
27688
  Le.some((e) => e.id === R) || se(Le[0]?.id ?? "");
27689
27689
  }, [
@@ -27691,7 +27691,7 @@ var Sx = {
27691
27691
  Le,
27692
27692
  R
27693
27693
  ]);
27694
- let Re = M?.overviewYesLabel ?? "Yes", ze = M?.overviewNoLabel ?? "No", Be = M?.ariaLabel ?? "Item details", Ve = M?.closeAriaLabel ?? "Close", He = ae ? M?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : M?.addToFavoritesAriaLabel ?? "Add to favorites", Ue = M?.publishTitle ?? "Publish", We = M?.backToDetailsAriaLabel ?? "Back";
27694
+ let Re = j?.overviewYesLabel ?? "Yes", ze = j?.overviewNoLabel ?? "No", Be = j?.ariaLabel ?? "Item details", Ve = j?.closeAriaLabel ?? "Close", He = ae ? j?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : j?.addToFavoritesAriaLabel ?? "Add to favorites", Ue = j?.publishTitle ?? "Publish", We = j?.backToDetailsAriaLabel ?? "Back";
27695
27695
  return /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("div", {
27696
27696
  className: W("fixed inset-0 z-40 transition-opacity duration-300", Vx.backdrop, t ? "opacity-100" : "pointer-events-none opacity-0"),
27697
27697
  onClick: i,
@@ -27757,35 +27757,35 @@ var Sx = {
27757
27757
  onEdit: O,
27758
27758
  onDelete: k,
27759
27759
  onCloseDetails: i,
27760
- onLogin: A,
27761
- onLogout: j,
27760
+ onLogin: ee,
27761
+ onLogout: A,
27762
27762
  onToggleCredentials: Ee,
27763
27763
  onRequestLogout: De,
27764
- texts: M,
27765
- detailsStyles: N
27764
+ texts: j,
27765
+ detailsStyles: M
27766
27766
  }),
27767
27767
  ve && /* @__PURE__ */ I(Bx, {
27768
27768
  item: e,
27769
- onLogin: A,
27770
- onLogout: j,
27771
- texts: M,
27769
+ onLogin: ee,
27770
+ onLogout: A,
27771
+ texts: j,
27772
27772
  statusLabelClassName: ie
27773
27773
  }),
27774
27774
  /* @__PURE__ */ I(b, {
27775
27775
  open: be,
27776
- header: M?.logoutActionLabel ?? "Log out",
27777
- description: M?.logoutConfirmMessage ?? "Are you sure you want to log out?",
27778
- confirmLabel: M?.logoutActionLabel ?? "Log out",
27776
+ header: j?.logoutActionLabel ?? "Log out",
27777
+ description: j?.logoutConfirmMessage ?? "Are you sure you want to log out?",
27778
+ confirmLabel: j?.logoutActionLabel ?? "Log out",
27779
27779
  onConfirm: ke,
27780
27780
  onCancel: Oe,
27781
27781
  onClose: Oe
27782
27782
  }),
27783
27783
  /* @__PURE__ */ I(b, {
27784
27784
  open: Se,
27785
- header: M?.unshareConfirmTitle ?? "Delete item?",
27786
- description: M?.unshareConfirmMessage?.(e.name) ?? `Delete "${e.name}" from your catalog? You'll need a new invitation to access it again.`,
27787
- confirmLabel: M?.unshareLabel ?? "Delete",
27788
- cancelLabel: M?.cancelLabel ?? "Cancel",
27785
+ header: j?.unshareConfirmTitle ?? "Delete item?",
27786
+ description: j?.unshareConfirmMessage?.(e.name) ?? `Delete "${e.name}" from your catalog? You'll need a new invitation to access it again.`,
27787
+ confirmLabel: j?.unshareLabel ?? "Delete",
27788
+ cancelLabel: j?.cancelLabel ?? "Cancel",
27789
27789
  isLoading: we,
27790
27790
  onConfirm: Me,
27791
27791
  onCancel: B,
@@ -27794,8 +27794,8 @@ var Sx = {
27794
27794
  /* @__PURE__ */ I("div", { className: Vx.divider }),
27795
27795
  /* @__PURE__ */ I(eS, {
27796
27796
  item: e,
27797
- texts: M,
27798
- detailsStyles: N
27797
+ texts: j,
27798
+ detailsStyles: M
27799
27799
  }),
27800
27800
  /* @__PURE__ */ L("div", {
27801
27801
  className: "flex items-center gap-2 px-[22px]",
@@ -27807,9 +27807,9 @@ var Sx = {
27807
27807
  inactiveTabClassName: "text-catalog-tab-inactive hover:text-catalog-tab-hover border-transparent"
27808
27808
  }), r && /* @__PURE__ */ I("div", {
27809
27809
  role: "status",
27810
- "aria-label": M?.detailsLoadingAriaLabel ?? "Loading details",
27810
+ "aria-label": j?.detailsLoadingAriaLabel ?? "Loading details",
27811
27811
  className: "shrink-0",
27812
- children: /* @__PURE__ */ I(ee, {
27812
+ children: /* @__PURE__ */ I(N, {
27813
27813
  showTitle: !1,
27814
27814
  paragraph: {
27815
27815
  rows: 1,
@@ -27825,7 +27825,7 @@ var Sx = {
27825
27825
  children: [
27826
27826
  R === Ae.About && /* @__PURE__ */ I(Xx, {
27827
27827
  content: e.description,
27828
- detailsStyles: N
27828
+ detailsStyles: M
27829
27829
  }),
27830
27830
  R === Ae.Overview && /* @__PURE__ */ I(tS, {
27831
27831
  sections: e.details?.overview?.sections,
@@ -27838,18 +27838,18 @@ var Sx = {
27838
27838
  }),
27839
27839
  R === Ae.Pricing && /* @__PURE__ */ I(nS, {
27840
27840
  pricing: e.details?.pricing,
27841
- pricesSectionLabel: M?.pricingPricesSectionLabel,
27842
- limitsSectionLabel: M?.pricingLimitsSectionLabel
27841
+ pricesSectionLabel: j?.pricingPricesSectionLabel,
27842
+ limitsSectionLabel: j?.pricingLimitsSectionLabel
27843
27843
  }),
27844
27844
  R === Ae.Api && e.details?.api != null && /* @__PURE__ */ I(Rx, {
27845
27845
  api: e.details.api,
27846
- resourceSectionLabel: M?.apiResourceSectionLabel,
27847
- snippetSectionLabel: M?.apiSnippetSectionLabel,
27848
- modelIdLabel: M?.apiModelIdLabel,
27849
- endpointLabel: M?.apiEndpointLabel,
27850
- requestExampleLabel: M?.apiRequestExampleLabel,
27851
- responseSchemaLabel: M?.apiResponseSchemaLabel,
27852
- copyAriaLabel: M?.copyCodeAriaLabel
27846
+ resourceSectionLabel: j?.apiResourceSectionLabel,
27847
+ snippetSectionLabel: j?.apiSnippetSectionLabel,
27848
+ modelIdLabel: j?.apiModelIdLabel,
27849
+ endpointLabel: j?.apiEndpointLabel,
27850
+ requestExampleLabel: j?.apiRequestExampleLabel,
27851
+ responseSchemaLabel: j?.apiResponseSchemaLabel,
27852
+ copyAriaLabel: j?.copyCodeAriaLabel
27853
27853
  }),
27854
27854
  R === Ae.Tools && /* @__PURE__ */ I(oS, { tools: e.details?.tools })
27855
27855
  ]
@@ -27880,27 +27880,27 @@ var Sx = {
27880
27880
  favFadeIn: "_favFadeIn_1b9kr_1",
27881
27881
  cardLeaving: "_cardLeaving_1b9kr_64",
27882
27882
  cardFadeOut: "_cardFadeOut_1b9kr_1"
27883
- }, dS = ({ item: e, initialIsStarred: t = !0, onToggle: n, onClick: r, nameClassName: i, versionClassName: o, lastUsedClassName: s, query: c, addToFavoritesAriaLabel: l = "Add to favorites", removeFromFavoritesAriaLabel: u = "Remove from favorites", isSelected: f = !1 }) => {
27884
- let [p, h] = d(t), [g, _] = d(!1), v = (t) => {
27883
+ }, dS = ({ item: e, initialIsStarred: t = !0, onToggle: n, onClick: r, nameClassName: i, versionClassName: o, lastUsedClassName: s, query: c, addToFavoritesAriaLabel: l = "Add to favorites", removeFromFavoritesAriaLabel: u = "Remove from favorites", isSelected: f = !1, credentialsBadgeLoggedOutLabel: p }) => {
27884
+ let [h, g] = d(t), [_, v] = d(!1), y = (t) => {
27885
27885
  t.stopPropagation();
27886
- let r = !p;
27887
- h(r), r ? n?.(e.id, r) : _(!0);
27888
- }, y = r && !g ? () => r(e) : void 0, b = a((t) => {
27889
- !r || g || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), r(e));
27886
+ let r = !h;
27887
+ g(r), r ? n?.(e.id, r) : v(!0);
27888
+ }, b = r && !_ ? () => r(e) : void 0, x = a((t) => {
27889
+ !r || _ || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), r(e));
27890
27890
  }, [
27891
27891
  r,
27892
27892
  e,
27893
- g
27893
+ _
27894
27894
  ]);
27895
27895
  return /* @__PURE__ */ L("article", {
27896
27896
  "data-card-id": e.id,
27897
- role: y == null ? void 0 : "button",
27898
- tabIndex: y == null ? void 0 : 0,
27897
+ role: b == null ? void 0 : "button",
27898
+ tabIndex: b == null ? void 0 : 0,
27899
27899
  "aria-label": e.name,
27900
- className: W("relative box-border flex min-w-0 cursor-pointer items-start gap-1", "rounded-[20px] border-2 p-[22px] text-start", uS.card, g && uS.cardLeaving, f ? "border-accent-primary !bg-accent-primary-alpha" : "border-transparent"),
27901
- onClick: y,
27902
- onKeyDown: b,
27903
- onAnimationEnd: g ? (t) => {
27900
+ className: W("relative box-border flex min-w-0 cursor-pointer items-start gap-1", "rounded-[20px] border-2 p-[22px] text-start", uS.card, _ && uS.cardLeaving, f ? "border-accent-primary !bg-accent-primary-alpha" : "border-transparent"),
27901
+ onClick: b,
27902
+ onKeyDown: x,
27903
+ onAnimationEnd: _ ? (t) => {
27904
27904
  t.currentTarget === t.target && n?.(e.id, !1);
27905
27905
  } : void 0,
27906
27906
  children: [
@@ -27909,25 +27909,31 @@ var Sx = {
27909
27909
  className: "absolute end-3 top-3 shrink-0 text-accent-primary",
27910
27910
  "aria-hidden": !0
27911
27911
  }),
27912
- /* @__PURE__ */ I($b, {
27913
- icon: e.iconUrl,
27914
- type: e.type,
27915
- name: e.name,
27916
- version: e.version,
27917
- lastUsed: e.lastUsed,
27918
- size: "lg",
27919
- query: c,
27920
- className: "min-w-0 flex-1",
27921
- typeColor: Wb[e.type],
27922
- nameClassName: i,
27923
- versionClassName: o,
27924
- lastUsedClassName: s
27912
+ /* @__PURE__ */ L("div", {
27913
+ className: "flex min-w-0 flex-1 flex-col items-start gap-1",
27914
+ children: [/* @__PURE__ */ I($b, {
27915
+ icon: e.iconUrl,
27916
+ type: e.type,
27917
+ name: e.name,
27918
+ version: e.version,
27919
+ lastUsed: e.lastUsed,
27920
+ size: "lg",
27921
+ query: c,
27922
+ className: "min-w-0 self-stretch",
27923
+ typeColor: Wb[e.type],
27924
+ nameClassName: i,
27925
+ versionClassName: o,
27926
+ lastUsedClassName: s
27927
+ }), /* @__PURE__ */ I(ex, {
27928
+ credentials: e.credentials,
27929
+ loggedOutLabel: p
27930
+ })]
27925
27931
  }),
27926
27932
  /* @__PURE__ */ I(ox, {
27927
- isStarred: p,
27933
+ isStarred: h,
27928
27934
  size: ie.Small,
27929
- onClick: v,
27930
- ariaLabel: p ? u : l,
27935
+ onClick: y,
27936
+ ariaLabel: h ? u : l,
27931
27937
  className: "self-end"
27932
27938
  })
27933
27939
  ]
@@ -27941,50 +27947,50 @@ var Sx = {
27941
27947
  } catch {
27942
27948
  return new DOMRect(t.x + n, t.y + r, t.width, t.height);
27943
27949
  }
27944
- }, mS = ({ items: e, totalCount: t, title: n = "Your Favorites", onToggleFavorite: r, onItemClick: i, styles: a, isLeaving: s, onExitComplete: f, prevPageAriaLabel: p = "Previous page", nextPageAriaLabel: m = "Next page", addToFavoritesAriaLabel: h, removeFromFavoritesAriaLabel: g, selectedItemId: _ }) => {
27945
- let v = a?.typography?.titleClassName ?? "dial-body-semi-text text-primary", y = a?.typography?.countClassName ?? "dial-tiny-semi-text text-secondary", b = { "--cat-favorites-border": a?.colors?.border }, x = l(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [S, C] = d(1), w = Ge(), T = w * fS, E = (S - 1) * T, D = l(() => x.slice(E, E + T), [
27946
- x,
27947
- E,
27948
- T
27949
- ]), O = Math.ceil(x.length / T), k = t ?? e.length, A = u(null), j = u(null), M = u(null), [N, ee] = d(), [te, P] = d(), ne = u(w);
27950
+ }, mS = ({ items: e, totalCount: t, title: n = "Your Favorites", onToggleFavorite: r, onItemClick: i, styles: a, isLeaving: s, onExitComplete: f, prevPageAriaLabel: p = "Previous page", nextPageAriaLabel: m = "Next page", addToFavoritesAriaLabel: h, removeFromFavoritesAriaLabel: g, selectedItemId: _, credentialsBadgeLoggedOutLabel: v }) => {
27951
+ let y = a?.typography?.titleClassName ?? "dial-body-semi-text text-primary", b = a?.typography?.countClassName ?? "dial-tiny-semi-text text-secondary", x = { "--cat-favorites-border": a?.colors?.border }, S = l(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [C, w] = d(1), T = Ge(), E = T * fS, D = (C - 1) * E, O = l(() => S.slice(D, D + E), [
27952
+ S,
27953
+ D,
27954
+ E
27955
+ ]), k = Math.ceil(S.length / E), ee = t ?? e.length, A = u(null), j = u(null), M = u(null), [N, te] = d(), [P, ne] = d(), re = u(T);
27950
27956
  o(() => {
27951
- ne.current !== w && (ne.current = w, C(1), ee(void 0), P(void 0));
27952
- }, [w]), o(() => {
27953
- S > O && O > 0 && C(O);
27954
- }, [S, O]), o(() => {
27955
- O <= 1 && (N !== void 0 || te !== void 0) && (ee(void 0), P(void 0));
27957
+ re.current !== T && (re.current = T, w(1), te(void 0), ne(void 0));
27958
+ }, [T]), o(() => {
27959
+ C > k && k > 0 && w(k);
27960
+ }, [C, k]), o(() => {
27961
+ k <= 1 && (N !== void 0 || P !== void 0) && (te(void 0), ne(void 0));
27956
27962
  }, [
27957
- O,
27963
+ k,
27958
27964
  N,
27959
- te
27965
+ P
27960
27966
  ]), c(() => {
27961
- !M.current || !j.current || O <= 1 || S !== 1 || N !== void 0 || (ee(M.current.offsetHeight), P(j.current.offsetHeight));
27967
+ !M.current || !j.current || k <= 1 || C !== 1 || N !== void 0 || (te(M.current.offsetHeight), ne(j.current.offsetHeight));
27962
27968
  }, [
27963
- O,
27964
- S,
27969
+ k,
27970
+ C,
27965
27971
  N
27966
27972
  ]);
27967
- let re = u(/* @__PURE__ */ new Map()), ie = u(S), ae = u(w), oe = u(0), F = u(!1);
27973
+ let ie = u(/* @__PURE__ */ new Map()), ae = u(C), oe = u(T), F = u(0), R = u(!1);
27968
27974
  return c(() => {
27969
27975
  if (!M.current || s) return;
27970
- if (A.current && !F.current) {
27976
+ if (A.current && !R.current) {
27971
27977
  let e = A.current;
27972
27978
  e.style.height = "", e.style.transition = "";
27973
27979
  }
27974
- let e = ie.current !== S, t = ae.current !== w;
27975
- ie.current = S, ae.current = w;
27980
+ let e = ae.current !== C, t = oe.current !== T;
27981
+ ae.current = C, oe.current = T;
27976
27982
  let n = M.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
27977
27983
  if (n.forEach((e) => {
27978
27984
  r.set(e.dataset.cardId, pS(e));
27979
27985
  }), !e && !t) {
27980
- let e = j.current, t = oe.current, i = 0;
27986
+ let e = j.current, t = F.current, i = 0;
27981
27987
  if (e) {
27982
27988
  let t = e.style.height;
27983
27989
  t && (e.style.height = ""), i = e.offsetHeight, t && (e.style.height = t);
27984
27990
  }
27985
27991
  let a = e != null && t > 0 && Math.abs(i - t) > 2, o = i > t ? 280 : 220, s = [];
27986
27992
  if (n.forEach((e) => {
27987
- let t = e.dataset.cardId, n = re.current.get(t), i = r.get(t);
27993
+ let t = e.dataset.cardId, n = ie.current.get(t), i = r.get(t);
27988
27994
  if (!n || !i) return;
27989
27995
  let o = n.left - i.left, c = n.top - i.top;
27990
27996
  !a && Math.abs(c) > .5 || Math.abs(o) < .5 && Math.abs(c) < .5 || (e.style.transition = "none", e.style.transform = `translate(${o}px, ${c}px)`, s.push(e));
@@ -28000,25 +28006,25 @@ var Sx = {
28000
28006
  e.addEventListener("transitionend", t);
28001
28007
  }
28002
28008
  }
28003
- if (re.current = r, j.current) {
28009
+ if (ie.current = r, j.current) {
28004
28010
  let e = j.current, t = e.style.height ? parseFloat(e.style.height) : NaN;
28005
- oe.current = Number.isNaN(t) ? e.offsetHeight : t;
28011
+ F.current = Number.isNaN(t) ? e.offsetHeight : t;
28006
28012
  }
28007
28013
  }, [
28008
- D,
28009
- S,
28010
- w,
28014
+ O,
28015
+ C,
28016
+ T,
28011
28017
  s
28012
28018
  ]), c(() => {
28013
28019
  let e = A.current;
28014
28020
  if (!e) return;
28015
28021
  let t = e.offsetHeight;
28016
28022
  if (t === 0) return;
28017
- F.current = !0, e.style.height = "0px", e.offsetHeight, e.style.transition = "height 300ms cubic-bezier(0, 0, 0.2, 1)", e.style.height = `${t}px`;
28023
+ R.current = !0, e.style.height = "0px", e.offsetHeight, e.style.transition = "height 300ms cubic-bezier(0, 0, 0.2, 1)", e.style.height = `${t}px`;
28018
28024
  let n = (t) => {
28019
28025
  t.target !== e || t.propertyName !== "height" || r();
28020
28026
  }, r = () => {
28021
- F.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
28027
+ R.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
28022
28028
  }, i = setTimeout(r, 400);
28023
28029
  return e.addEventListener("transitionend", n), () => {
28024
28030
  clearTimeout(i), e.removeEventListener("transitionend", n);
@@ -28033,24 +28039,24 @@ var Sx = {
28033
28039
  ref: j,
28034
28040
  className: W("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", uS.section, s && uS.sectionLeaving),
28035
28041
  style: {
28036
- ...b,
28037
- minHeight: te
28042
+ ...x,
28043
+ minHeight: P
28038
28044
  },
28039
28045
  onAnimationEnd: (e) => {
28040
28046
  e.target === j.current && s && f?.();
28041
28047
  },
28042
28048
  children: [/* @__PURE__ */ I(Cx, {
28043
28049
  title: n,
28044
- postfix: k,
28045
- titleClassName: v,
28046
- postfixClassName: y,
28047
- trailing: O > 1 ? /* @__PURE__ */ L("div", {
28050
+ postfix: ee,
28051
+ titleClassName: y,
28052
+ postfixClassName: b,
28053
+ trailing: k > 1 ? /* @__PURE__ */ L("div", {
28048
28054
  className: W("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", uS.pageNav),
28049
28055
  children: [
28050
28056
  /* @__PURE__ */ I("button", {
28051
28057
  "aria-label": p,
28052
- disabled: S === 1,
28053
- onClick: () => C((e) => e - 1),
28058
+ disabled: C === 1,
28059
+ onClick: () => w((e) => e - 1),
28054
28060
  className: W("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", uS.navBtn),
28055
28061
  children: /* @__PURE__ */ I(ce, {
28056
28062
  size: 14,
@@ -28060,15 +28066,15 @@ var Sx = {
28060
28066
  /* @__PURE__ */ L("span", {
28061
28067
  className: W("min-w-[32px] select-none px-1 text-center", uS.pageCounter),
28062
28068
  children: [
28063
- S,
28069
+ C,
28064
28070
  " / ",
28065
- O
28071
+ k
28066
28072
  ]
28067
28073
  }),
28068
28074
  /* @__PURE__ */ I("button", {
28069
28075
  "aria-label": m,
28070
- disabled: S === O,
28071
- onClick: () => C((e) => e + 1),
28076
+ disabled: C === k,
28077
+ onClick: () => w((e) => e + 1),
28072
28078
  className: W("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", uS.navBtn),
28073
28079
  children: /* @__PURE__ */ I(le, {
28074
28080
  size: 14,
@@ -28081,17 +28087,18 @@ var Sx = {
28081
28087
  ref: M,
28082
28088
  className: W("grid content-start gap-5", uS.gridPage),
28083
28089
  style: {
28084
- gridTemplateColumns: `repeat(${w}, minmax(0, 1fr))`,
28090
+ gridTemplateColumns: `repeat(${T}, minmax(0, 1fr))`,
28085
28091
  minHeight: N
28086
28092
  },
28087
- children: D.map((e) => /* @__PURE__ */ I(dS, {
28093
+ children: O.map((e) => /* @__PURE__ */ I(dS, {
28088
28094
  item: e,
28089
28095
  onToggle: r,
28090
28096
  onClick: i,
28091
28097
  addToFavoritesAriaLabel: h,
28092
28098
  removeFromFavoritesAriaLabel: g,
28093
- isSelected: e.id === _
28094
- }, `${S}-${e.id}`))
28099
+ isSelected: e.id === _,
28100
+ credentialsBadgeLoggedOutLabel: v
28101
+ }, `${C}-${e.id}`))
28095
28102
  })]
28096
28103
  })
28097
28104
  });
@@ -28326,7 +28333,7 @@ var Sx = {
28326
28333
  e,
28327
28334
  r
28328
28335
  ]);
28329
- let E = y.length + 1, [D, O] = d(-1), k = u([]), A = u(null), j = a((e) => {
28336
+ let E = y.length + 1, [D, O] = d(-1), k = u([]), ee = u(null), A = a((e) => {
28330
28337
  let t = (e + E) % E;
28331
28338
  O(t), k.current[t]?.focus();
28332
28339
  }, [E]);
@@ -28335,34 +28342,34 @@ var Sx = {
28335
28342
  O(-1);
28336
28343
  return;
28337
28344
  }
28338
- let e = requestAnimationFrame(() => j(0));
28345
+ let e = requestAnimationFrame(() => A(0));
28339
28346
  return () => cancelAnimationFrame(e);
28340
- }, [_, j]);
28341
- let M = (e) => {
28342
- v(e), e || A.current?.focus();
28343
- }, N = (e) => {
28347
+ }, [_, A]);
28348
+ let j = (e) => {
28349
+ v(e), e || ee.current?.focus();
28350
+ }, M = (e) => {
28344
28351
  e.key === "ArrowDown" && !_ && (e.preventDefault(), v(!0));
28345
- }, ee = (e) => {
28346
- e.key === "ArrowDown" ? (e.preventDefault(), j(D + 1)) : e.key === "ArrowUp" ? (e.preventDefault(), j(D - 1)) : e.key === "Escape" && (e.preventDefault(), v(!1), A.current?.focus());
28352
+ }, N = (e) => {
28353
+ e.key === "ArrowDown" ? (e.preventDefault(), A(D + 1)) : e.key === "ArrowUp" ? (e.preventDefault(), A(D - 1)) : e.key === "Escape" && (e.preventDefault(), v(!1), ee.current?.focus());
28347
28354
  }, te = (e) => (t) => {
28348
28355
  (t.key === " " || t.key === "Enter") && (t.preventDefault(), e());
28349
28356
  }, P = () => {
28350
- t(S), i?.(w), M(!1);
28357
+ t(S), i?.(w), j(!1);
28351
28358
  }, ne = () => {
28352
- t(/* @__PURE__ */ new Set()), i?.(!1), M(!1);
28359
+ t(/* @__PURE__ */ new Set()), i?.(!1), j(!1);
28353
28360
  };
28354
28361
  return /* @__PURE__ */ I(x, {
28355
28362
  matchReferenceWidth: !1,
28356
28363
  placement: "bottom-start",
28357
28364
  open: _,
28358
- onOpenChange: M,
28365
+ onOpenChange: j,
28359
28366
  listClassName: "!bg-transparent !shadow-none !p-0",
28360
28367
  renderOverlay: () => /* @__PURE__ */ L("div", {
28361
28368
  role: "menu",
28362
28369
  "aria-label": f,
28363
28370
  tabIndex: -1,
28364
28371
  className: W("min-w-[360px] rounded-xl p-[6px]", OS.overlay),
28365
- onKeyDown: ee,
28372
+ onKeyDown: N,
28366
28373
  children: [
28367
28374
  /* @__PURE__ */ L("div", {
28368
28375
  role: "menuitemcheckbox",
@@ -28435,11 +28442,11 @@ var Sx = {
28435
28442
  ]
28436
28443
  }),
28437
28444
  children: /* @__PURE__ */ L("button", {
28438
- ref: A,
28445
+ ref: ee,
28439
28446
  type: "button",
28440
28447
  "aria-haspopup": "menu",
28441
28448
  "aria-expanded": _,
28442
- onKeyDown: N,
28449
+ onKeyDown: M,
28443
28450
  className: W("flex h-[50px] shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-xl px-[18px]", OS.filterBtn, g && OS.filterBtnActive, _ && OS.filterBtnOpen),
28444
28451
  children: [
28445
28452
  /* @__PURE__ */ I(fe, {
@@ -28685,7 +28692,7 @@ var Sx = {
28685
28692
  onClick: n,
28686
28693
  className: LS.gradientBtn
28687
28694
  });
28688
- }, zS = ({ items: e, favorites: t, titles: n, onToggleFavorite: r, onUseInChat: i, isPrimaryActionVisible: s, onShare: c, isPublishVisible: f, getPublishHistory: p, publishFolderItems: m, publishExpandedPaths: h, onPublishExpandedPathsChange: g, publishLoadingPaths: _, hasPublishWriteAccess: v, onPublish: y, onPublishSuccess: b, onCreatePublishFolder: x, publishTexts: S, shareOverlay: C, onFetchDetails: w, onEdit: T, onDelete: E, onLogin: D, onLogout: O, onUnshare: k, onCreateClick: A, createOptions: j, hideCreateButton: M = !1, hidePageTitle: N = !1, selectedItemId: ee, onCardClick: te, isLoading: ne, styles: re, detailsTexts: ie, initialDetailsItemId: ae }) => {
28695
+ }, zS = ({ items: e, favorites: t, titles: n, onToggleFavorite: r, onUseInChat: i, isPrimaryActionVisible: s, onShare: c, isPublishVisible: f, getPublishHistory: p, publishFolderItems: m, publishExpandedPaths: h, onPublishExpandedPathsChange: g, publishLoadingPaths: _, hasPublishWriteAccess: v, onPublish: y, onPublishSuccess: b, onCreatePublishFolder: x, publishTexts: S, shareOverlay: C, onFetchDetails: w, onEdit: T, onDelete: E, onLogin: D, onLogout: O, onUnshare: k, onCreateClick: ee, createOptions: A, hideCreateButton: j = !1, hidePageTitle: M = !1, selectedItemId: N, onCardClick: te, isLoading: ne, styles: re, detailsTexts: ie, initialDetailsItemId: ae }) => {
28689
28696
  let { typography: oe } = re ?? {}, F = qb(re), R = n?.pageTitle ?? "Catalog", se = n?.createLabel ?? "Create", ce = n?.favoritesTitle ?? "Your favorites", le = n?.browseTitle ?? "Browse", ue = n?.searchPlaceholder ?? "Search models, tools, agents…", de = n?.noResultsTitle ?? ((e) => `No results for "${e}"`), fe = n?.featuredLabel ?? "Featured", pe = n?.gridViewLabel ?? "Grid view", me = n?.listViewLabel ?? "List view", he = n?.ariaLabel ?? "Catalog", ge = [
28690
28697
  {
28691
28698
  value: Me.RecentlyUpdated,
@@ -28772,17 +28779,17 @@ var Sx = {
28772
28779
  className: W("flex min-h-0 flex-1 flex-col", IS.root),
28773
28780
  style: F,
28774
28781
  children: [
28775
- (!N || !M) && /* @__PURE__ */ I("div", {
28782
+ (!M || !j) && /* @__PURE__ */ I("div", {
28776
28783
  className: W("shrink-0", IS.heading),
28777
28784
  children: /* @__PURE__ */ L("div", {
28778
28785
  className: "flex h-[64px] w-full items-center justify-between px-8",
28779
- children: [!N && /* @__PURE__ */ I("h1", {
28786
+ children: [!M && /* @__PURE__ */ I("h1", {
28780
28787
  className: W(oe?.pageHeadingFontClassName ?? "dial-display2-text", IS.headingTitle),
28781
28788
  children: R
28782
- }), !M && /* @__PURE__ */ I(RS, {
28789
+ }), !j && /* @__PURE__ */ I(RS, {
28783
28790
  label: se,
28784
- options: j,
28785
- onClick: A
28791
+ options: A,
28792
+ onClick: ee
28786
28793
  })]
28787
28794
  })
28788
28795
  }),
@@ -28799,7 +28806,8 @@ var Sx = {
28799
28806
  onItemClick: te ?? Qe,
28800
28807
  isLeaving: Le,
28801
28808
  onExitComplete: Ie,
28802
- selectedItemId: ee
28809
+ selectedItemId: N,
28810
+ credentialsBadgeLoggedOutLabel: ie?.credentialsBadgeLoggedOutLabel
28803
28811
  })
28804
28812
  }),
28805
28813
  /* @__PURE__ */ I("div", {
@@ -28853,7 +28861,7 @@ var Sx = {
28853
28861
  onToggleFavorite: r,
28854
28862
  onItemClick: te ?? Qe,
28855
28863
  titles: ft,
28856
- selectedItemId: ee
28864
+ selectedItemId: N
28857
28865
  })
28858
28866
  }), be && ve === Re.List && /* @__PURE__ */ I("div", {
28859
28867
  className: "pb-8",
@@ -28865,7 +28873,7 @@ var Sx = {
28865
28873
  onToggleFavorite: r,
28866
28874
  onItemClick: te ?? Qe,
28867
28875
  stickyHeaderTop: 0,
28868
- selectedItemId: ee,
28876
+ selectedItemId: N,
28869
28877
  credentialsBadgeLoggedOutLabel: ie?.credentialsBadgeLoggedOutLabel
28870
28878
  })
28871
28879
  })]
@@ -52,5 +52,7 @@ export interface FavoritesProps {
52
52
  removeFromFavoritesAriaLabel?: string;
53
53
  /** ID of an item to visually mark as selected (border, tint, and checkmark). */
54
54
  selectedItemId?: string;
55
+ /** Credentials-status badge label shown when a favorited item is signed out. Default: `'LOGGED OUT'`. */
56
+ credentialsBadgeLoggedOutLabel?: string;
55
57
  }
56
58
  //# sourceMappingURL=favorites.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"favorites.d.ts","sourceRoot":"","sources":["../../src/models/favorites.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,yDAAyD;AACzD,MAAM,WAAW,mBAAmB;IAClC,yEAAyE;IACzE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yEAAyE;IACzE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,iFAAiF;AACjF,MAAM,WAAW,eAAe;IAC9B,+DAA+D;IAC/D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mEAAmE;IACnE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,sDAAsD;AACtD,MAAM,WAAW,eAAe;IAC9B,sDAAsD;IACtD,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,wDAAwD;IACxD,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B;AAED,oCAAoC;AACpC,MAAM,WAAW,cAAc;IAC7B,8CAA8C;IAC9C,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,mGAAmG;IACnG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,gBAAgB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5D,4EAA4E;IAC5E,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC1C,8DAA8D;IAC9D,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,yHAAyH;IACzH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wFAAwF;IACxF,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,iFAAiF;IACjF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,yEAAyE;IACzE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sGAAsG;IACtG,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,+GAA+G;IAC/G,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,gFAAgF;IAChF,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
1
+ {"version":3,"file":"favorites.d.ts","sourceRoot":"","sources":["../../src/models/favorites.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,yDAAyD;AACzD,MAAM,WAAW,mBAAmB;IAClC,yEAAyE;IACzE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yEAAyE;IACzE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,iFAAiF;AACjF,MAAM,WAAW,eAAe;IAC9B,+DAA+D;IAC/D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mEAAmE;IACnE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,sDAAsD;AACtD,MAAM,WAAW,eAAe;IAC9B,sDAAsD;IACtD,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,wDAAwD;IACxD,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B;AAED,oCAAoC;AACpC,MAAM,WAAW,cAAc;IAC7B,8CAA8C;IAC9C,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,mGAAmG;IACnG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,gBAAgB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5D,4EAA4E;IAC5E,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC1C,8DAA8D;IAC9D,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,yHAAyH;IACzH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wFAAwF;IACxF,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,iFAAiF;IACjF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,yEAAyE;IACzE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sGAAsG;IACtG,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,+GAA+G;IAC/G,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,gFAAgF;IAChF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yGAAyG;IACzG,8BAA8B,CAAC,EAAE,MAAM,CAAC;CACzC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-catalog",
3
3
  "description": "Marketplace catalog component for browsing models, tools, and assistants with search, filter, and sort",
4
- "version": "1.0.0-dev.477",
4
+ "version": "1.0.0-dev.480",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -20,9 +20,9 @@
20
20
  "react": "^19.0.0",
21
21
  "@tabler/icons-react": "^3.0.0",
22
22
  "@epam/ai-dial-ui-kit": "0.12.0-dev.28",
23
- "@epam/ai-dial-kit": "1.0.0-dev.477",
24
- "@epam/ai-dial-sidebar": "1.0.0-dev.477",
25
- "@epam/ai-dial-chat-shared": "1.0.0-dev.477",
23
+ "@epam/ai-dial-kit": "1.0.0-dev.480",
24
+ "@epam/ai-dial-sidebar": "1.0.0-dev.480",
25
+ "@epam/ai-dial-chat-shared": "1.0.0-dev.480",
26
26
  "ag-grid-community": "35.3.0"
27
27
  },
28
28
  "repository": {