@epam/ai-dial-share 1.1.0-dev.298 → 1.1.0-dev.299

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":"AccessControl.d.ts","sourceRoot":"","sources":["../../../src/components/AccessControl/AccessControl.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,uCAAuC;AACvC,UAAU,kBAAkB;IAC1B,qDAAqD;IACrD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,uDAAuD;IACvD,sBAAsB,EAAE,MAAM,CAAC;IAC/B,kDAAkD;IAClD,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,mFAAmF;IACnF,aAAa,EAAE,OAAO,CAAC;IACvB,oDAAoD;IACpD,eAAe,EAAE,MAAM,CAAC;IACxB,oDAAoD;IACpD,eAAe,EAAE,MAAM,CAAC;IACxB,iDAAiD;IACjD,eAAe,EAAE,MAAM,CAAC;IACxB,gDAAgD;IAChD,MAAM,EAAE,OAAO,CAAC;IAChB,yDAAyD;IACzD,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,6DAA6D;IAC7D,cAAc,EAAE,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,IAAI,CAAC;IACpD,sDAAsD;IACtD,aAAa,EAAE,CAAC,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAC1D,uFAAuF;IACvF,UAAU,EAAE,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IAChD,wFAAwF;IACxF,OAAO,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC1C,uFAAuF;IACvF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oFAAoF;IACpF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2FAA2F;IAC3F,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,yFAAyF;IACzF,4BAA4B,CAAC,EAAE,MAAM,CAAC;CACvC;AAED,gHAAgH;AAChH,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAyKhD,CAAC"}
1
+ {"version":3,"file":"AccessControl.d.ts","sourceRoot":"","sources":["../../../src/components/AccessControl/AccessControl.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,EAAE,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,uCAAuC;AACvC,UAAU,kBAAkB;IAC1B,qDAAqD;IACrD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,uDAAuD;IACvD,sBAAsB,EAAE,MAAM,CAAC;IAC/B,kDAAkD;IAClD,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,mFAAmF;IACnF,aAAa,EAAE,OAAO,CAAC;IACvB,oDAAoD;IACpD,eAAe,EAAE,MAAM,CAAC;IACxB,oDAAoD;IACpD,eAAe,EAAE,MAAM,CAAC;IACxB,iDAAiD;IACjD,eAAe,EAAE,MAAM,CAAC;IACxB,gDAAgD;IAChD,MAAM,EAAE,OAAO,CAAC;IAChB,yDAAyD;IACzD,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,6DAA6D;IAC7D,cAAc,EAAE,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,IAAI,CAAC;IACpD,sDAAsD;IACtD,aAAa,EAAE,CAAC,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAC1D,uFAAuF;IACvF,UAAU,EAAE,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IAChD,wFAAwF;IACxF,OAAO,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC1C,uFAAuF;IACvF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oFAAoF;IACpF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2FAA2F;IAC3F,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,yFAAyF;IACzF,4BAA4B,CAAC,EAAE,MAAM,CAAC;CACvC;AAED,gHAAgH;AAChH,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA6KhD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"LinkView.d.ts","sourceRoot":"","sources":["../../../src/components/LinkView/LinkView.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAG3B,kCAAkC;AAClC,UAAU,aAAa;IACrB,kDAAkD;IAClD,GAAG,EAAE,MAAM,CAAC;IACZ,sCAAsC;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,wDAAwD;IACxD,QAAQ,EAAE,OAAO,CAAC;IAClB,oEAAoE;IACpE,eAAe,EAAE,MAAM,CAAC;IACxB,0EAA0E;IAC1E,iBAAiB,EAAE,MAAM,CAAC;IAC1B,8CAA8C;IAC9C,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,kFAAkF;AAClF,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CA0CtC,CAAC"}
1
+ {"version":3,"file":"LinkView.d.ts","sourceRoot":"","sources":["../../../src/components/LinkView/LinkView.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAG3B,kCAAkC;AAClC,UAAU,aAAa;IACrB,kDAAkD;IAClD,GAAG,EAAE,MAAM,CAAC;IACZ,sCAAsC;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,wDAAwD;IACxD,QAAQ,EAAE,OAAO,CAAC;IAClB,oEAAoE;IACpE,eAAe,EAAE,MAAM,CAAC;IACxB,0EAA0E;IAC1E,iBAAiB,EAAE,MAAM,CAAC;IAC1B,8CAA8C;IAC9C,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,kFAAkF;AAClF,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAkDtC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SharePopoverHeader.d.ts","sourceRoot":"","sources":["../../../src/components/SharePopover/SharePopoverHeader.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAGrD,0FAA0F;AAC1F,eAAO,MAAM,YAAY,4BAA4B,CAAC;AACtD,gGAAgG;AAChG,eAAO,MAAM,cAAc,8BAA8B,CAAC;AAE1D,4CAA4C;AAC5C,UAAU,uBAAuB;IAC/B,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,IAAI,EAAE,gBAAgB,CAAC;IACvB,2BAA2B;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,iDAAiD;IACjD,YAAY,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC/C,yEAAyE;IACzE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,6DAA6D;AAC7D,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CA4B1D,CAAC"}
1
+ {"version":3,"file":"SharePopoverHeader.d.ts","sourceRoot":"","sources":["../../../src/components/SharePopover/SharePopoverHeader.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAGrD,0FAA0F;AAC1F,eAAO,MAAM,YAAY,4BAA4B,CAAC;AACtD,gGAAgG;AAChG,eAAO,MAAM,cAAc,8BAA8B,CAAC;AAE1D,4CAA4C;AAC5C,UAAU,uBAAuB;IAC/B,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,IAAI,EAAE,gBAAgB,CAAC;IACvB,2BAA2B;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,iDAAiD;IACjD,YAAY,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC/C,yEAAyE;IACzE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,6DAA6D;AAC7D,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAwC1D,CAAC"}
package/index.js CHANGED
@@ -1,24 +1,24 @@
1
1
  import { buildCssVars as e, mergeClasses as t, useCodeCopy as n } from "@epam/ai-dial-chat-shared";
2
2
  import r, { forwardRef as i, memo as a, useEffect as o, useRef as s, useState as c } from "react";
3
- import { DIAL_ICON_SIZE as l, Dropdown as u, GhostButton as d, GhostIconButton as f, Input as p, Skeleton as m, SkeletonVariant as h } from "@epam/ai-dial-ui-kit";
4
- import { IconCheck as g, IconChevronDown as _, IconCopy as v, IconLink as y, IconQrcode as b, IconWorld as x } from "@tabler/icons-react";
5
- import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
3
+ import { DIAL_ICON_SIZE as l, DIAL_KIT_ICON_STROKE as u, Dropdown as d, GhostButton as f, GhostIconButton as p, Input as m, Skeleton as h, SkeletonVariant as g } from "@epam/ai-dial-ui-kit";
4
+ import { IconCheck as _, IconChevronDown as v, IconCopy as y, IconLink as b, IconQrcode as x, IconWorld as S } from "@tabler/icons-react";
5
+ import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
6
6
  //#region \0rolldown/runtime.js
7
- var T = Object.create, E = Object.defineProperty, D = Object.getOwnPropertyDescriptor, O = Object.getOwnPropertyNames, k = Object.getPrototypeOf, A = Object.prototype.hasOwnProperty, j = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), M = (e, t, n, r) => {
8
- if (t && typeof t == "object" || typeof t == "function") for (var i = O(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !A.call(e, s) && s !== n && E(e, s, {
7
+ var E = Object.create, D = Object.defineProperty, O = Object.getOwnPropertyDescriptor, k = Object.getOwnPropertyNames, A = Object.getPrototypeOf, j = Object.prototype.hasOwnProperty, M = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), N = (e, t, n, r) => {
8
+ if (t && typeof t == "object" || typeof t == "function") for (var i = k(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !j.call(e, s) && s !== n && D(e, s, {
9
9
  get: ((e) => t[e]).bind(null, s),
10
- enumerable: !(r = D(t, s)) || r.enumerable
10
+ enumerable: !(r = O(t, s)) || r.enumerable
11
11
  });
12
12
  return e;
13
- }, N = (e, t, n) => (n = e == null ? {} : T(k(e)), M(t || !e || !e.__esModule ? E(n, "default", {
13
+ }, P = (e, t, n) => (n = e == null ? {} : E(A(e)), N(t || !e || !e.__esModule ? D(n, "default", {
14
14
  value: e,
15
15
  enumerable: !0
16
- }) : n, e)), P = /* @__PURE__ */ function(e) {
16
+ }) : n, e)), F = /* @__PURE__ */ function(e) {
17
17
  return e.View = "view", e.Edit = "edit", e;
18
- }({}), F = /* @__PURE__ */ function(e) {
18
+ }({}), I = /* @__PURE__ */ function(e) {
19
19
  return e.Link = "link", e.Qr = "qr", e;
20
- }({}), ee = "button:not(:disabled), input:not(:disabled), [tabindex]:not([tabindex=\"-1\"])", I = (e) => Array.from(e?.querySelectorAll(ee) ?? []), L = (e) => {
21
- let [t] = I(e);
20
+ }({}), L = "button:not(:disabled), input:not(:disabled), [tabindex]:not([tabindex=\"-1\"])", ee = (e) => Array.from(e?.querySelectorAll(L) ?? []), te = (e) => {
21
+ let [t] = ee(e);
22
22
  (t ?? e)?.focus();
23
23
  }, R = {
24
24
  skeletonColor: "var(--shp-skeleton-color, var(--bg-layer-sunken, #eef1f7))",
@@ -38,117 +38,119 @@ var T = Object.create, E = Object.defineProperty, D = Object.getOwnPropertyDescr
38
38
  errorText: "_errorText_7tw3f_90",
39
39
  note: "_note_7tw3f_94",
40
40
  divider: "_divider_7tw3f_98"
41
- }, te = ({ anyoneWithLinkTitle: e, anyoneWithLinkSubtitle: n, access: r, canEditAccess: i, accessViewLabel: a, accessEditLabel: o, accessAriaLabel: s, isOpen: c, onOpenChange: d, onAccessChange: f, onMenuKeyDown: p, triggerRef: m, menuRef: h, titleClassName: v = "dial-small-semi-text", subtitleClassName: y = "dial-small-text", accessTriggerLabelClassName: b = "dial-small-semi-text", accessMenuItemLabelClassName: S = "dial-small-text" }) => {
42
- let T = [{
43
- value: P.View,
41
+ }, ne = ({ anyoneWithLinkTitle: e, anyoneWithLinkSubtitle: n, access: r, canEditAccess: i, accessViewLabel: a, accessEditLabel: o, accessAriaLabel: s, isOpen: c, onOpenChange: f, onAccessChange: p, onMenuKeyDown: m, triggerRef: h, menuRef: g, titleClassName: y = "dial-small-semi-text", subtitleClassName: b = "dial-small-text", accessTriggerLabelClassName: x = "dial-small-semi-text", accessMenuItemLabelClassName: C = "dial-small-text" }) => {
42
+ let E = [{
43
+ value: F.View,
44
44
  label: a
45
45
  }, {
46
- value: P.Edit,
46
+ value: F.Edit,
47
47
  label: o
48
- }], E = r.includes(P.Edit) ? P.Edit : P.View;
49
- return /* @__PURE__ */ w("div", {
48
+ }], D = r.includes(F.Edit) ? F.Edit : F.View;
49
+ return /* @__PURE__ */ T("div", {
50
50
  className: "flex items-center gap-2.5",
51
51
  children: [
52
- /* @__PURE__ */ C("span", {
52
+ /* @__PURE__ */ w("span", {
53
53
  className: t("flex size-8 shrink-0 items-center justify-center rounded-full", R.linkIconBadge),
54
- children: /* @__PURE__ */ C(x, {
54
+ children: /* @__PURE__ */ w(S, {
55
55
  size: l.MD,
56
- "aria-hidden": !0
56
+ "aria-hidden": !0,
57
+ stroke: u
57
58
  })
58
59
  }),
59
- /* @__PURE__ */ w("div", {
60
+ /* @__PURE__ */ T("div", {
60
61
  className: "min-w-0 flex-1",
61
- children: [/* @__PURE__ */ C("p", {
62
- className: t(v, "truncate", R.anyoneWithLinkTitle),
62
+ children: [/* @__PURE__ */ w("p", {
63
+ className: t(y, "truncate", R.anyoneWithLinkTitle),
63
64
  children: e
64
- }), /* @__PURE__ */ C("p", {
65
- className: t(y, R.anyoneWithLinkSubtitle),
65
+ }), /* @__PURE__ */ w("p", {
66
+ className: t(b, R.anyoneWithLinkSubtitle),
66
67
  children: n
67
68
  })]
68
69
  }),
69
- i ? /* @__PURE__ */ C(u, {
70
+ i ? /* @__PURE__ */ w(d, {
70
71
  matchReferenceWidth: !1,
71
72
  placement: "bottom-end",
72
73
  open: c,
73
- onOpenChange: d,
74
- renderOverlay: () => /* @__PURE__ */ C("div", {
75
- ref: h,
74
+ onOpenChange: f,
75
+ renderOverlay: () => /* @__PURE__ */ w("div", {
76
+ ref: g,
76
77
  role: "menu",
77
78
  "aria-label": s,
78
79
  tabIndex: -1,
79
80
  className: "min-w-[160px]",
80
- onKeyDown: p,
81
- children: T.map((e) => {
82
- let n = E === e.value;
83
- return /* @__PURE__ */ w("button", {
81
+ onKeyDown: m,
82
+ children: E.map((e) => {
83
+ let n = D === e.value;
84
+ return /* @__PURE__ */ T("button", {
84
85
  type: "button",
85
86
  role: "menuitemradio",
86
87
  "aria-checked": n,
87
88
  className: t("flex w-full cursor-pointer select-none items-center justify-between gap-2 rounded-lg px-2.5 py-2 text-start outline-none", R.accessMenuItem, n && R.accessMenuItemChecked),
88
89
  onClick: () => {
89
- f(e.value === P.Edit ? [P.View, P.Edit] : [P.View]), d(!1);
90
+ p(e.value === F.Edit ? [F.View, F.Edit] : [F.View]), f(!1);
90
91
  },
91
- children: [/* @__PURE__ */ C("span", {
92
- className: t(S, R.accessMenuItemLabel),
92
+ children: [/* @__PURE__ */ w("span", {
93
+ className: t(C, R.accessMenuItemLabel),
93
94
  children: e.label
94
- }), n && /* @__PURE__ */ C(g, {
95
+ }), n && /* @__PURE__ */ w(_, {
95
96
  size: l.SM,
96
- stroke: 2,
97
+ stroke: u,
97
98
  className: R.accessMenuItemCheck,
98
99
  "aria-hidden": !0
99
100
  })]
100
101
  }, e.value);
101
102
  })
102
103
  }),
103
- children: /* @__PURE__ */ w("button", {
104
- ref: m,
104
+ children: /* @__PURE__ */ T("button", {
105
+ ref: h,
105
106
  type: "button",
106
107
  "aria-haspopup": "menu",
107
108
  "aria-expanded": c,
108
109
  className: t("flex h-10 shrink-0 cursor-pointer items-center gap-1.5 whitespace-nowrap rounded-full border px-3 outline-none", R.accessTriggerBtn, c && R.accessTriggerBtnOpen),
109
- children: [/* @__PURE__ */ C("span", {
110
- className: t(R.accessTriggerLabel, b),
111
- children: T.find((e) => e.value === E)?.label
112
- }), /* @__PURE__ */ C(_, {
110
+ children: [/* @__PURE__ */ w("span", {
111
+ className: t(R.accessTriggerLabel, x),
112
+ children: E.find((e) => e.value === D)?.label
113
+ }), /* @__PURE__ */ w(v, {
113
114
  size: l.MD,
114
- strokeWidth: 2.2,
115
+ stroke: u,
115
116
  className: t("shrink-0 transition-transform duration-150 rtl:scale-x-[-1]", R.accessTriggerChevron, c && "rotate-180"),
116
117
  "aria-hidden": !0
117
118
  })]
118
119
  })
119
- }) : /* @__PURE__ */ C("span", {
120
+ }) : /* @__PURE__ */ w("span", {
120
121
  "aria-label": s,
121
122
  className: t("flex h-10 shrink-0 items-center whitespace-nowrap rounded-full px-3", R.accessTriggerBtn),
122
- children: /* @__PURE__ */ C("span", {
123
- className: t(R.accessTriggerLabel, b),
123
+ children: /* @__PURE__ */ w("span", {
124
+ className: t(R.accessTriggerLabel, x),
124
125
  children: a
125
126
  })
126
127
  })
127
128
  ]
128
129
  });
129
- }, ne = ({ url: e, linkAriaLabel: n, isCopied: r, copyButtonLabel: i, copiedButtonLabel: a, onCopy: o }) => /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ w("div", {
130
+ }, re = ({ url: e, linkAriaLabel: n, isCopied: r, copyButtonLabel: i, copiedButtonLabel: a, onCopy: o }) => /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ T("div", {
130
131
  className: t("flex items-center gap-3 rounded-full px-4 py-2", R.linkRow),
131
- children: [/* @__PURE__ */ C(p, {
132
+ children: [/* @__PURE__ */ w(m, {
132
133
  readOnly: !0,
133
134
  value: e,
134
135
  "aria-label": n,
135
136
  containerClassName: "min-w-0 flex-1",
136
137
  wrapperClassName: "border-0 bg-transparent px-0 outline-none"
137
- }), /* @__PURE__ */ C(f, {
138
- icon: C(r ? g : v, {
138
+ }), /* @__PURE__ */ w(p, {
139
+ icon: w(r ? _ : y, {
139
140
  size: l.LG,
140
- "aria-hidden": !0
141
+ "aria-hidden": !0,
142
+ stroke: u
141
143
  }),
142
144
  "aria-label": r ? a : i,
143
145
  tooltipProps: { tooltip: r ? a : i },
144
146
  onClick: o
145
147
  })]
146
- }), /* @__PURE__ */ C("span", {
148
+ }), /* @__PURE__ */ w("span", {
147
149
  role: "status",
148
150
  "aria-live": "polite",
149
151
  className: "sr-only",
150
152
  children: r ? a : ""
151
- })] }), z = /* @__PURE__ */ j(((e) => {
153
+ })] }), z = /* @__PURE__ */ M(((e) => {
152
154
  var t = typeof Symbol == "function" && Symbol.for, n = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
153
155
  function b(e) {
154
156
  if (typeof e == "object" && e) {
@@ -204,7 +206,7 @@ var T = Object.create, E = Object.defineProperty, D = Object.getOwnPropertyDescr
204
206
  }, e.isValidElementType = function(e) {
205
207
  return typeof e == "string" || typeof e == "function" || e === i || e === u || e === o || e === a || e === f || e === p || typeof e == "object" && !!e && (e.$$typeof === h || e.$$typeof === m || e.$$typeof === s || e.$$typeof === c || e.$$typeof === d || e.$$typeof === _ || e.$$typeof === v || e.$$typeof === y || e.$$typeof === g);
206
208
  }, e.typeOf = b;
207
- })), B = /* @__PURE__ */ j(((e) => {
209
+ })), ie = /* @__PURE__ */ M(((e) => {
208
210
  process.env.NODE_ENV !== "production" && (function() {
209
211
  var t = typeof Symbol == "function" && Symbol.for, n = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
210
212
  function b(e) {
@@ -239,50 +241,50 @@ var T = Object.create, E = Object.defineProperty, D = Object.getOwnPropertyDescr
239
241
  }
240
242
  }
241
243
  var S = l, C = u, w = c, T = s, E = n, D = d, O = i, k = h, A = m, j = r, M = o, N = a, P = f, F = !1;
242
- function ee(e) {
243
- return F || (F = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), I(e) || x(e) === l;
244
- }
245
244
  function I(e) {
246
- return x(e) === u;
245
+ return F || (F = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), L(e) || x(e) === l;
247
246
  }
248
247
  function L(e) {
248
+ return x(e) === u;
249
+ }
250
+ function ee(e) {
249
251
  return x(e) === c;
250
252
  }
251
- function R(e) {
253
+ function te(e) {
252
254
  return x(e) === s;
253
255
  }
254
- function te(e) {
256
+ function R(e) {
255
257
  return typeof e == "object" && !!e && e.$$typeof === n;
256
258
  }
257
259
  function ne(e) {
258
260
  return x(e) === d;
259
261
  }
260
- function z(e) {
262
+ function re(e) {
261
263
  return x(e) === i;
262
264
  }
263
- function B(e) {
265
+ function z(e) {
264
266
  return x(e) === h;
265
267
  }
266
- function V(e) {
268
+ function ie(e) {
267
269
  return x(e) === m;
268
270
  }
269
- function re(e) {
271
+ function B(e) {
270
272
  return x(e) === r;
271
273
  }
272
- function H(e) {
274
+ function V(e) {
273
275
  return x(e) === o;
274
276
  }
275
- function U(e) {
277
+ function H(e) {
276
278
  return x(e) === a;
277
279
  }
278
- function W(e) {
280
+ function U(e) {
279
281
  return x(e) === f;
280
282
  }
281
- e.AsyncMode = S, e.ConcurrentMode = C, e.ContextConsumer = w, e.ContextProvider = T, e.Element = E, e.ForwardRef = D, e.Fragment = O, e.Lazy = k, e.Memo = A, e.Portal = j, e.Profiler = M, e.StrictMode = N, e.Suspense = P, e.isAsyncMode = ee, e.isConcurrentMode = I, e.isContextConsumer = L, e.isContextProvider = R, e.isElement = te, e.isForwardRef = ne, e.isFragment = z, e.isLazy = B, e.isMemo = V, e.isPortal = re, e.isProfiler = H, e.isStrictMode = U, e.isSuspense = W, e.isValidElementType = b, e.typeOf = x;
283
+ e.AsyncMode = S, e.ConcurrentMode = C, e.ContextConsumer = w, e.ContextProvider = T, e.Element = E, e.ForwardRef = D, e.Fragment = O, e.Lazy = k, e.Memo = A, e.Portal = j, e.Profiler = M, e.StrictMode = N, e.Suspense = P, e.isAsyncMode = I, e.isConcurrentMode = L, e.isContextConsumer = ee, e.isContextProvider = te, e.isElement = R, e.isForwardRef = ne, e.isFragment = re, e.isLazy = z, e.isMemo = ie, e.isPortal = B, e.isProfiler = V, e.isStrictMode = H, e.isSuspense = U, e.isValidElementType = b, e.typeOf = x;
282
284
  })();
283
- })), V = /* @__PURE__ */ j(((e, t) => {
284
- process.env.NODE_ENV === "production" ? t.exports = z() : t.exports = B();
285
- })), re = /* @__PURE__ */ j(((e, t) => {
285
+ })), B = /* @__PURE__ */ M(((e, t) => {
286
+ process.env.NODE_ENV === "production" ? t.exports = z() : t.exports = ie();
287
+ })), V = /* @__PURE__ */ M(((e, t) => {
286
288
  var n = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
287
289
  function a(e) {
288
290
  if (e == null) throw TypeError("Object.assign cannot be called with null or undefined");
@@ -315,11 +317,11 @@ var T = Object.create, E = Object.defineProperty, D = Object.getOwnPropertyDescr
315
317
  }
316
318
  return s;
317
319
  };
318
- })), H = /* @__PURE__ */ j(((e, t) => {
320
+ })), H = /* @__PURE__ */ M(((e, t) => {
319
321
  t.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
320
- })), U = /* @__PURE__ */ j(((e, t) => {
322
+ })), U = /* @__PURE__ */ M(((e, t) => {
321
323
  t.exports = Function.call.bind(Object.prototype.hasOwnProperty);
322
- })), W = /* @__PURE__ */ j(((e, t) => {
324
+ })), ae = /* @__PURE__ */ M(((e, t) => {
323
325
  var n = function() {};
324
326
  if (process.env.NODE_ENV !== "production") {
325
327
  var r = H(), i = {}, a = U();
@@ -355,8 +357,8 @@ var T = Object.create, E = Object.defineProperty, D = Object.getOwnPropertyDescr
355
357
  o.resetWarningCache = function() {
356
358
  process.env.NODE_ENV !== "production" && (i = {});
357
359
  }, t.exports = o;
358
- })), ie = /* @__PURE__ */ j(((e, t) => {
359
- var n = V(), r = re(), i = H(), a = U(), o = W(), s = function() {};
360
+ })), oe = /* @__PURE__ */ M(((e, t) => {
361
+ var n = B(), r = V(), i = H(), a = U(), o = ae(), s = function() {};
360
362
  process.env.NODE_ENV !== "production" && (s = function(e) {
361
363
  var t = "Warning: " + e;
362
364
  typeof console < "u" && console.error(t);
@@ -614,7 +616,7 @@ var T = Object.create, E = Object.defineProperty, D = Object.getOwnPropertyDescr
614
616
  }
615
617
  return p.checkPropTypes = o, p.resetWarningCache = o.resetWarningCache, p.PropTypes = p, p;
616
618
  };
617
- })), ae = /* @__PURE__ */ j(((e, t) => {
619
+ })), W = /* @__PURE__ */ M(((e, t) => {
618
620
  var n = H();
619
621
  function r() {}
620
622
  function i() {}
@@ -654,11 +656,11 @@ var T = Object.create, E = Object.defineProperty, D = Object.getOwnPropertyDescr
654
656
  };
655
657
  return a.PropTypes = a, a;
656
658
  };
657
- })), G = /* @__PURE__ */ N((/* @__PURE__ */ j(((e, t) => {
659
+ })), G = /* @__PURE__ */ P((/* @__PURE__ */ M(((e, t) => {
658
660
  if (process.env.NODE_ENV !== "production") {
659
- var n = V();
660
- t.exports = ie()(n.isElement, !0);
661
- } else t.exports = ae()();
661
+ var n = B();
662
+ t.exports = oe()(n.isElement, !0);
663
+ } else t.exports = W()();
662
664
  })))(), 1), K = function(e, t) {
663
665
  let n = e, r = J[t], i = null, a = 0, o = null, s = [], c = {}, l = function(e, t) {
664
666
  a = n * 4 + 17, i = function(e) {
@@ -742,7 +744,7 @@ var T = Object.create, E = Object.defineProperty, D = Object.getOwnPropertyDescr
742
744
  for (let e = 0; e < i; e += 1) for (let n = 0; n < t.length; n += 1) e < o[n].length && (c[l] = o[n][e], l += 1);
743
745
  return c;
744
746
  }, v = function(e, t, n) {
745
- let r = oe.getRSBlocks(e, t), i = se();
747
+ let r = se.getRSBlocks(e, t), i = ce();
746
748
  for (let t = 0; t < n.length; t += 1) {
747
749
  let r = n[t];
748
750
  i.put(r.getMode(), 4), i.put(r.getLength(), X.getLengthInBits(r.getMode(), e)), r.write(i);
@@ -759,16 +761,16 @@ var T = Object.create, E = Object.defineProperty, D = Object.getOwnPropertyDescr
759
761
  let n = null;
760
762
  switch (t) {
761
763
  case "Numeric":
762
- n = ce(e);
764
+ n = le(e);
763
765
  break;
764
766
  case "Alphanumeric":
765
- n = le(e);
767
+ n = ue(e);
766
768
  break;
767
769
  case "Byte":
768
- n = ue(e);
770
+ n = de(e);
769
771
  break;
770
772
  case "Kanji":
771
- n = de(e);
773
+ n = fe(e);
772
774
  break;
773
775
  default: throw "mode:" + t;
774
776
  }
@@ -782,7 +784,7 @@ var T = Object.create, E = Object.defineProperty, D = Object.getOwnPropertyDescr
782
784
  if (n < 1) {
783
785
  let e = 1;
784
786
  for (; e < 40; e++) {
785
- let t = oe.getRSBlocks(e, r), n = se();
787
+ let t = se.getRSBlocks(e, r), n = ce();
786
788
  for (let t = 0; t < s.length; t++) {
787
789
  let r = s[t];
788
790
  n.put(r.getMode(), 4), n.put(r.getLength(), X.getLengthInBits(r.getMode(), e)), r.write(n);
@@ -813,7 +815,7 @@ var T = Object.create, E = Object.defineProperty, D = Object.getOwnPropertyDescr
813
815
  }, c.createDataURL = function(e, t) {
814
816
  e ||= 2, t = t === void 0 ? e * 4 : t;
815
817
  let n = c.getModuleCount() * e + t * 2, r = t, i = n - t;
816
- return ge(n, n, function(t, n) {
818
+ return _e(n, n, function(t, n) {
817
819
  if (r <= t && t < i && r <= n && n < i) {
818
820
  let i = Math.floor((t - r) / e), a = Math.floor((n - r) / e);
819
821
  return +!c.isDark(a, i);
@@ -890,7 +892,7 @@ K.stringToBytes = function(e) {
890
892
  return t;
891
893
  }, K.createStringToBytes = function(e, t) {
892
894
  let n = function() {
893
- let n = me(e), r = function() {
895
+ let n = he(e), r = function() {
894
896
  let e = n.read();
895
897
  if (e == -1) throw "eof";
896
898
  return e;
@@ -1306,7 +1308,7 @@ var q = {
1306
1308
  for (let r = 0; r < e.getLength(); r += 1) n[r] ^= Z.gexp(Z.glog(e.getAt(r)) + t);
1307
1309
  return Q(n, 0).mod(e);
1308
1310
  }, r;
1309
- }, oe = function() {
1311
+ }, se = function() {
1310
1312
  let e = [
1311
1313
  [
1312
1314
  1,
@@ -2514,7 +2516,7 @@ var q = {
2514
2516
  }
2515
2517
  return o;
2516
2518
  }, n;
2517
- }(), se = function() {
2519
+ }(), ce = function() {
2518
2520
  let e = [], t = 0, n = {};
2519
2521
  return n.getBuffer = function() {
2520
2522
  return e;
@@ -2528,7 +2530,7 @@ var q = {
2528
2530
  let r = Math.floor(t / 8);
2529
2531
  e.length <= r && e.push(0), n && (e[r] |= 128 >>> t % 8), t += 1;
2530
2532
  }, n;
2531
- }, ce = function(e) {
2533
+ }, le = function(e) {
2532
2534
  let t = q.MODE_NUMBER, n = e, r = {};
2533
2535
  r.getMode = function() {
2534
2536
  return t;
@@ -2548,7 +2550,7 @@ var q = {
2548
2550
  throw "illegal char :" + e;
2549
2551
  };
2550
2552
  return r;
2551
- }, le = function(e) {
2553
+ }, ue = function(e) {
2552
2554
  let t = q.MODE_ALPHA_NUM, n = e, r = {};
2553
2555
  r.getMode = function() {
2554
2556
  return t;
@@ -2576,7 +2578,7 @@ var q = {
2576
2578
  }
2577
2579
  };
2578
2580
  return r;
2579
- }, ue = function(e) {
2581
+ }, de = function(e) {
2580
2582
  let t = q.MODE_8BIT_BYTE, n = K.stringToBytes(e), r = {};
2581
2583
  return r.getMode = function() {
2582
2584
  return t;
@@ -2585,7 +2587,7 @@ var q = {
2585
2587
  }, r.write = function(e) {
2586
2588
  for (let t = 0; t < n.length; t += 1) e.put(n[t], 8);
2587
2589
  }, r;
2588
- }, de = function(e) {
2590
+ }, fe = function(e) {
2589
2591
  let t = q.MODE_KANJI, n = K.stringToBytes;
2590
2592
  (function(e, t) {
2591
2593
  let r = n(e);
@@ -2607,7 +2609,7 @@ var q = {
2607
2609
  }
2608
2610
  if (n < t.length) throw "illegal char at " + (n + 1);
2609
2611
  }, i;
2610
- }, fe = function() {
2612
+ }, pe = function() {
2611
2613
  let e = [], t = {};
2612
2614
  return t.writeByte = function(t) {
2613
2615
  e.push(t & 255);
@@ -2626,7 +2628,7 @@ var q = {
2626
2628
  for (let n = 0; n < e.length; n += 1) n > 0 && (t += ","), t += e[n];
2627
2629
  return t += "]", t;
2628
2630
  }, t;
2629
- }, pe = function() {
2631
+ }, me = function() {
2630
2632
  let e = 0, t = 0, n = 0, r = "", i = {}, a = function(e) {
2631
2633
  r += String.fromCharCode(o(e & 63));
2632
2634
  }, o = function(e) {
@@ -2648,7 +2650,7 @@ var q = {
2648
2650
  }, i.toString = function() {
2649
2651
  return r;
2650
2652
  }, i;
2651
- }, me = function(e) {
2653
+ }, he = function(e) {
2652
2654
  let t = e, n = 0, r = 0, i = 0, a = {};
2653
2655
  a.read = function() {
2654
2656
  for (; i < 8;) {
@@ -2672,7 +2674,7 @@ var q = {
2672
2674
  throw "c:" + e;
2673
2675
  };
2674
2676
  return a;
2675
- }, he = function(e, t) {
2677
+ }, ge = function(e, t) {
2676
2678
  let n = e, r = t, i = Array(e * t), a = {};
2677
2679
  a.setPixel = function(e, t, r) {
2678
2680
  i[t * n + e] = r;
@@ -2697,7 +2699,7 @@ var q = {
2697
2699
  let t = 1 << e, n = (1 << e) + 1, r = e + 1, a = c();
2698
2700
  for (let e = 0; e < t; e += 1) a.add(String.fromCharCode(e));
2699
2701
  a.add(String.fromCharCode(t)), a.add(String.fromCharCode(n));
2700
- let s = fe(), l = o(s);
2702
+ let s = pe(), l = o(s);
2701
2703
  l.write(t, r);
2702
2704
  let u = 0, d = String.fromCharCode(i[u]);
2703
2705
  for (u += 1; u < i.length;) {
@@ -2719,12 +2721,12 @@ var q = {
2719
2721
  }, n;
2720
2722
  };
2721
2723
  return a;
2722
- }, ge = function(e, t, n) {
2723
- let r = he(e, t);
2724
+ }, _e = function(e, t, n) {
2725
+ let r = ge(e, t);
2724
2726
  for (let i = 0; i < t; i += 1) for (let t = 0; t < e; t += 1) r.setPixel(t, i, n(t, i));
2725
- let i = fe();
2727
+ let i = pe();
2726
2728
  r.write(i);
2727
- let a = pe(), o = i.toByteArray();
2729
+ let a = me(), o = i.toByteArray();
2728
2730
  for (let e = 0; e < o.length; e += 1) a.writeByte(o[e]);
2729
2731
  return a.flush(), "data:image/gif;base64," + a;
2730
2732
  };
@@ -2740,16 +2742,16 @@ function $() {
2740
2742
  return e;
2741
2743
  }, $.apply(null, arguments);
2742
2744
  }
2743
- function _e(e, t) {
2745
+ function ve(e, t) {
2744
2746
  if (e == null) return {};
2745
- var n, r, i = ve(e, t);
2747
+ var n, r, i = ye(e, t);
2746
2748
  if (Object.getOwnPropertySymbols) {
2747
2749
  var a = Object.getOwnPropertySymbols(e);
2748
2750
  for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
2749
2751
  }
2750
2752
  return i;
2751
2753
  }
2752
- function ve(e, t) {
2754
+ function ye(e, t) {
2753
2755
  if (e == null) return {};
2754
2756
  var n = {};
2755
2757
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -2758,7 +2760,7 @@ function ve(e, t) {
2758
2760
  }
2759
2761
  return n;
2760
2762
  }
2761
- var ye = [
2763
+ var be = [
2762
2764
  "bgColor",
2763
2765
  "bgD",
2764
2766
  "fgD",
@@ -2767,7 +2769,7 @@ var ye = [
2767
2769
  "title",
2768
2770
  "viewBoxSize",
2769
2771
  "xmlns"
2770
- ], be = {
2772
+ ], xe = {
2771
2773
  bgColor: G.default.oneOfType([G.default.object, G.default.string]).isRequired,
2772
2774
  bgD: G.default.string.isRequired,
2773
2775
  fgColor: G.default.oneOfType([G.default.object, G.default.string]).isRequired,
@@ -2776,8 +2778,8 @@ var ye = [
2776
2778
  title: G.default.string,
2777
2779
  viewBoxSize: G.default.number.isRequired,
2778
2780
  xmlns: G.default.string
2779
- }, xe = /*#__PURE__*/ i(function(e, t) {
2780
- var n = e.bgColor, i = e.bgD, a = e.fgD, o = e.fgColor, s = e.size, c = e.title, l = e.viewBoxSize, u = e.xmlns, d = u === void 0 ? "http://www.w3.org/2000/svg" : u, f = _e(e, ye);
2781
+ }, Se = /*#__PURE__*/ i(function(e, t) {
2782
+ var n = e.bgColor, i = e.bgD, a = e.fgD, o = e.fgColor, s = e.size, c = e.title, l = e.viewBoxSize, u = e.xmlns, d = u === void 0 ? "http://www.w3.org/2000/svg" : u, f = ve(e, be);
2781
2783
  return /*#__PURE__*/ r.createElement("svg", $({}, f, {
2782
2784
  height: s,
2783
2785
  ref: t,
@@ -2792,8 +2794,8 @@ var ye = [
2792
2794
  fill: o
2793
2795
  }));
2794
2796
  });
2795
- xe.displayName = "QRCodeSvg", xe.propTypes = be;
2796
- var Se = [
2797
+ Se.displayName = "QRCodeSvg", Se.propTypes = xe;
2798
+ var Ce = [
2797
2799
  "bgColor",
2798
2800
  "fgColor",
2799
2801
  "level",
@@ -2803,21 +2805,21 @@ var Se = [
2803
2805
  K.stringToBytes = function(e) {
2804
2806
  return Array.from(new TextEncoder().encode(e));
2805
2807
  };
2806
- var Ce = {
2808
+ var we = {
2807
2809
  bgColor: G.default.oneOfType([G.default.object, G.default.string]),
2808
2810
  fgColor: G.default.oneOfType([G.default.object, G.default.string]),
2809
2811
  level: G.default.string,
2810
2812
  size: G.default.number,
2811
2813
  value: G.default.string.isRequired
2812
- }, we = /*#__PURE__*/ i(function(e, t) {
2813
- var n = e.bgColor, i = n === void 0 ? "#FFFFFF" : n, a = e.fgColor, o = a === void 0 ? "#000000" : a, s = e.level, c = s === void 0 ? "L" : s, l = e.size, u = l === void 0 ? 256 : l, d = e.value, f = _e(e, Se), p = K(0, c);
2814
+ }, Te = /*#__PURE__*/ i(function(e, t) {
2815
+ var n = e.bgColor, i = n === void 0 ? "#FFFFFF" : n, a = e.fgColor, o = a === void 0 ? "#000000" : a, s = e.level, c = s === void 0 ? "L" : s, l = e.size, u = l === void 0 ? 256 : l, d = e.value, f = ve(e, Ce), p = K(0, c);
2814
2816
  p.addData(d), p.make();
2815
2817
  var m = p.getModuleCount(), h = Array.from({ length: m }, function(e, t) {
2816
2818
  return Array.from({ length: m }, function(e, n) {
2817
2819
  return p.isDark(t, n);
2818
2820
  });
2819
2821
  });
2820
- return /*#__PURE__*/ r.createElement(xe, $({}, f, {
2822
+ return /*#__PURE__*/ r.createElement(Se, $({}, f, {
2821
2823
  bgColor: i,
2822
2824
  bgD: h.map(function(e, t) {
2823
2825
  return e.map(function(e, n) {
@@ -2835,122 +2837,124 @@ var Ce = {
2835
2837
  viewBoxSize: m
2836
2838
  }));
2837
2839
  });
2838
- we.displayName = "QRCode", we.propTypes = Ce;
2839
- var Te = {
2840
+ Te.displayName = "QRCode", Te.propTypes = we;
2841
+ var Ee = {
2840
2842
  container: "_container_hzzl6_1",
2841
2843
  qrColor: "_qrColor_hzzl6_6"
2842
- }, Ee = ({ value: n, labels: r, styles: i }) => {
2844
+ }, De = ({ value: n, labels: r, styles: i }) => {
2843
2845
  let { colors: a } = i ?? {}, o = e({
2844
2846
  "--qr-border": a?.borderColor,
2845
2847
  "--qr-bg": a?.backgroundColor,
2846
2848
  "--qr-color": a?.fillColor
2847
2849
  });
2848
- return /* @__PURE__ */ C("div", {
2850
+ return /* @__PURE__ */ w("div", {
2849
2851
  role: "img",
2850
2852
  "aria-label": r.ariaLabel,
2851
2853
  style: o,
2852
- className: t("flex size-40 items-center justify-center self-center rounded-lg border p-3", Te.container),
2853
- children: /* @__PURE__ */ C(we, {
2854
+ className: t("flex size-40 items-center justify-center self-center rounded-lg border p-3", Ee.container),
2855
+ children: /* @__PURE__ */ w(Te, {
2854
2856
  value: n,
2855
2857
  size: 128,
2856
2858
  bgColor: "transparent",
2857
2859
  fgColor: "currentColor",
2858
2860
  "aria-hidden": !0,
2859
- className: t("size-full", Te.qrColor)
2861
+ className: t("size-full", Ee.qrColor)
2860
2862
  })
2861
2863
  });
2862
- }, De = ({ ariaLabel: e, skeletonColor: t = R.skeletonColor }) => /* @__PURE__ */ w("div", {
2864
+ }, Oe = ({ ariaLabel: e, skeletonColor: t = R.skeletonColor }) => /* @__PURE__ */ T("div", {
2863
2865
  role: "status",
2864
2866
  "aria-label": e,
2865
2867
  className: "flex flex-col gap-3",
2866
2868
  children: [
2867
- /* @__PURE__ */ w("div", {
2869
+ /* @__PURE__ */ T("div", {
2868
2870
  "aria-hidden": !0,
2869
2871
  className: "flex items-center gap-2.5",
2870
2872
  children: [
2871
- /* @__PURE__ */ C(m, {
2872
- variant: h.Circular,
2873
+ /* @__PURE__ */ w(h, {
2874
+ variant: g.Circular,
2873
2875
  width: 32,
2874
2876
  height: 32,
2875
2877
  color: t
2876
2878
  }),
2877
- /* @__PURE__ */ w("div", {
2879
+ /* @__PURE__ */ T("div", {
2878
2880
  className: "flex min-w-0 flex-1 flex-col gap-1.5",
2879
- children: [/* @__PURE__ */ C(m, {
2880
- variant: h.Text,
2881
+ children: [/* @__PURE__ */ w(h, {
2882
+ variant: g.Text,
2881
2883
  width: "70%",
2882
2884
  height: 16,
2883
2885
  color: t
2884
- }), /* @__PURE__ */ C(m, {
2885
- variant: h.Text,
2886
+ }), /* @__PURE__ */ w(h, {
2887
+ variant: g.Text,
2886
2888
  width: "45%",
2887
2889
  height: 12,
2888
2890
  color: t
2889
2891
  })]
2890
2892
  }),
2891
- /* @__PURE__ */ C(m, {
2892
- variant: h.Rectangular,
2893
+ /* @__PURE__ */ w(h, {
2894
+ variant: g.Rectangular,
2893
2895
  width: 92,
2894
2896
  height: 30,
2895
2897
  color: t
2896
2898
  })
2897
2899
  ]
2898
2900
  }),
2899
- /* @__PURE__ */ w("div", {
2901
+ /* @__PURE__ */ T("div", {
2900
2902
  "aria-hidden": !0,
2901
2903
  className: "flex flex-col gap-1.5",
2902
- children: [/* @__PURE__ */ C(m, {
2903
- variant: h.Text,
2904
+ children: [/* @__PURE__ */ w(h, {
2905
+ variant: g.Text,
2904
2906
  width: "100%",
2905
2907
  height: 12,
2906
2908
  color: t
2907
- }), /* @__PURE__ */ C(m, {
2908
- variant: h.Text,
2909
+ }), /* @__PURE__ */ w(h, {
2910
+ variant: g.Text,
2909
2911
  width: "60%",
2910
2912
  height: 12,
2911
2913
  color: t
2912
2914
  })]
2913
2915
  }),
2914
- /* @__PURE__ */ C(m, {
2916
+ /* @__PURE__ */ w(h, {
2915
2917
  "aria-hidden": !0,
2916
- variant: h.Rectangular,
2918
+ variant: g.Rectangular,
2917
2919
  width: "100%",
2918
2920
  height: 40,
2919
2921
  color: t
2920
2922
  }),
2921
- /* @__PURE__ */ C(m, {
2923
+ /* @__PURE__ */ w(h, {
2922
2924
  "aria-hidden": !0,
2923
- variant: h.Text,
2925
+ variant: g.Text,
2924
2926
  width: "50%",
2925
2927
  height: 12,
2926
2928
  color: t
2927
2929
  })
2928
2930
  ]
2929
- }), Oe = "share-popover-qr-button", ke = "share-popover-back-button", Ae = ({ title: e, view: n, qrButtonLabel: r, linkLabel: i, onViewChange: a, titleClassName: o = "dial-h3-text" }) => /* @__PURE__ */ w("div", {
2931
+ }), ke = "share-popover-qr-button", Ae = "share-popover-back-button", je = ({ title: e, view: n, qrButtonLabel: r, linkLabel: i, onViewChange: a, titleClassName: o = "dial-h3-text" }) => /* @__PURE__ */ T("div", {
2930
2932
  className: "flex items-center gap-2",
2931
- children: [/* @__PURE__ */ C("span", {
2933
+ children: [/* @__PURE__ */ w("span", {
2932
2934
  className: t(o, R.title),
2933
2935
  children: e
2934
- }), n === F.Link ? /* @__PURE__ */ C(d, {
2935
- id: Oe,
2936
+ }), n === I.Link ? /* @__PURE__ */ w(f, {
2937
+ id: ke,
2936
2938
  label: r,
2937
- iconBefore: /* @__PURE__ */ C(b, {
2939
+ iconBefore: /* @__PURE__ */ w(x, {
2938
2940
  size: l.SM,
2939
- "aria-hidden": !0
2941
+ "aria-hidden": !0,
2942
+ stroke: u
2940
2943
  }),
2941
2944
  className: "ms-auto",
2942
- onClick: () => a(F.Qr)
2943
- }) : /* @__PURE__ */ C(d, {
2944
- id: ke,
2945
+ onClick: () => a(I.Qr)
2946
+ }) : /* @__PURE__ */ w(f, {
2947
+ id: Ae,
2945
2948
  label: i,
2946
- iconBefore: /* @__PURE__ */ C(y, {
2949
+ iconBefore: /* @__PURE__ */ w(b, {
2947
2950
  size: l.SM,
2948
- "aria-hidden": !0
2951
+ "aria-hidden": !0,
2952
+ stroke: u
2949
2953
  }),
2950
2954
  className: "ms-auto",
2951
- onClick: () => a(F.Link)
2955
+ onClick: () => a(I.Link)
2952
2956
  })]
2953
- }), je = a(({ url: r, isLoading: i, error: a, access: l, canEditAccess: u, onAccessChange: d, onClose: f, labels: p, className: m, styles: h }) => {
2957
+ }), Me = a(({ url: r, isLoading: i, error: a, access: l, canEditAccess: u, onAccessChange: d, onClose: f, labels: p, className: m, styles: h }) => {
2954
2958
  let g = h?.colors, _ = h?.typography, v = e({
2955
2959
  "--shp-access-trigger-bg": g?.accessTriggerBackground,
2956
2960
  "--shp-access-trigger-border": g?.accessTriggerBorder,
@@ -2974,38 +2978,38 @@ var Te = {
2974
2978
  "--shp-note-text": g?.noteText,
2975
2979
  "--shp-divider": g?.divider,
2976
2980
  "--shp-skeleton-color": g?.skeletonColor
2977
- }), { title: y = "Share", qrButtonLabel: b = "QR", linkLabel: x = "Link", anyoneWithLinkTitle: T = "Anyone with the link", anyoneWithLinkSubtitle: E = "in your organization", accessAriaLabel: D = "Link access level", accessViewLabel: O = "Can view", accessEditLabel: k = "Can edit", visibilityNote: A = "This deployment and its updates will be visible to users with the link.", visibilityNoteEdit: j = "Anyone with the link will be able to view and edit this deployment.", copyButtonLabel: M = "Copy", copiedButtonLabel: N = "Copied", linkAriaLabel: ee = "Share link", expiryNote: z, qrCodeAriaLabel: B = "QR code for the share link", loadingLabel: V = "Creating share link…", errorTitle: re = "Couldn’t create the share link. Please try again.", nestedItemsNote: H } = p ?? {}, [U, W] = c(F.Link), { isCopied: ie, copy: ae } = n(r ?? ""), [G, K] = c(!1), q = s(null), J = s(null), Y = (e) => {
2978
- K(e), e || q.current?.focus();
2981
+ }), { title: y = "Share", qrButtonLabel: b = "QR", linkLabel: x = "Link", anyoneWithLinkTitle: S = "Anyone with the link", anyoneWithLinkSubtitle: E = "in your organization", accessAriaLabel: D = "Link access level", accessViewLabel: O = "Can view", accessEditLabel: k = "Can edit", visibilityNote: A = "This deployment and its updates will be visible to users with the link.", visibilityNoteEdit: j = "Anyone with the link will be able to view and edit this deployment.", copyButtonLabel: M = "Copy", copiedButtonLabel: N = "Copied", linkAriaLabel: P = "Share link", expiryNote: L, qrCodeAriaLabel: z = "QR code for the share link", loadingLabel: ie = "Creating share link…", errorTitle: B = "Couldn’t create the share link. Please try again.", nestedItemsNote: V } = p ?? {}, [H, U] = c(I.Link), { isCopied: ae, copy: oe } = n(r ?? ""), [W, G] = c(!1), K = s(null), q = s(null), J = (e) => {
2982
+ G(e), e || K.current?.focus();
2979
2983
  };
2980
2984
  o(() => {
2981
- G && J.current?.querySelector("[aria-checked=\"true\"]")?.focus();
2982
- }, [G]);
2983
- let X = s(null);
2985
+ W && q.current?.querySelector("[aria-checked=\"true\"]")?.focus();
2986
+ }, [W]);
2987
+ let Y = s(null);
2984
2988
  o(() => {
2985
- L(X.current);
2989
+ te(Y.current);
2986
2990
  let e = setTimeout(() => {
2987
- X.current?.contains(document.activeElement) || L(X.current);
2991
+ Y.current?.contains(document.activeElement) || te(Y.current);
2988
2992
  }, 0);
2989
2993
  return () => clearTimeout(e);
2990
2994
  }, []);
2991
- let Z = s(!0);
2995
+ let X = s(!0);
2992
2996
  o(() => {
2993
- if (Z.current) {
2994
- Z.current = !1;
2997
+ if (X.current) {
2998
+ X.current = !1;
2995
2999
  return;
2996
3000
  }
2997
- let e = U === F.Qr ? ke : Oe;
3001
+ let e = H === I.Qr ? Ae : ke;
2998
3002
  document.getElementById(e)?.focus();
2999
- }, [U]);
3000
- let Q = (e) => {
3001
- let t = G ? Array.from(J.current?.querySelectorAll("[role=\"menuitemradio\"]") ?? []) : I(X.current);
3003
+ }, [H]);
3004
+ let Z = (e) => {
3005
+ let t = W ? Array.from(q.current?.querySelectorAll("[role=\"menuitemradio\"]") ?? []) : ee(Y.current);
3002
3006
  if (t.length === 0) return;
3003
3007
  e.preventDefault();
3004
3008
  let n = t.indexOf(document.activeElement), r = e.shiftKey ? -1 : 1;
3005
3009
  t[n === -1 ? 0 : (n + r + t.length) % t.length]?.focus();
3006
3010
  };
3007
- return /* @__PURE__ */ w("div", {
3008
- ref: X,
3011
+ return /* @__PURE__ */ T("div", {
3012
+ ref: Y,
3009
3013
  role: "dialog",
3010
3014
  "aria-label": y,
3011
3015
  tabIndex: -1,
@@ -3013,85 +3017,85 @@ var Te = {
3013
3017
  className: t("flex w-96 flex-col gap-3 rounded-xl bg-layer-raised px-6 pb-6 pt-4 shadow-lg outline-none", m),
3014
3018
  onKeyDownCapture: (e) => {
3015
3019
  if (e.key === "Tab") {
3016
- Q(e);
3020
+ Z(e);
3017
3021
  return;
3018
3022
  }
3019
3023
  if (e.key === "Escape") {
3020
- if (e.stopPropagation(), G) {
3021
- e.preventDefault(), Y(!1);
3024
+ if (e.stopPropagation(), W) {
3025
+ e.preventDefault(), J(!1);
3022
3026
  return;
3023
3027
  }
3024
- U === F.Qr ? (e.preventDefault(), W(F.Link)) : f();
3028
+ H === I.Qr ? (e.preventDefault(), U(I.Link)) : f();
3025
3029
  }
3026
3030
  },
3027
3031
  children: [
3028
- /* @__PURE__ */ C(Ae, {
3032
+ /* @__PURE__ */ w(je, {
3029
3033
  title: y,
3030
- view: U,
3034
+ view: H,
3031
3035
  qrButtonLabel: b,
3032
3036
  linkLabel: x,
3033
- onViewChange: W
3037
+ onViewChange: U
3034
3038
  }),
3035
- /* @__PURE__ */ C("div", { className: t("-mt-1.5 h-px w-full", R.divider) }),
3036
- i && /* @__PURE__ */ C(De, {
3037
- ariaLabel: V,
3039
+ /* @__PURE__ */ w("div", { className: t("-mt-1.5 h-px w-full", R.divider) }),
3040
+ i && /* @__PURE__ */ w(Oe, {
3041
+ ariaLabel: ie,
3038
3042
  skeletonColor: g?.skeletonColor
3039
3043
  }),
3040
- !i && a != null && /* @__PURE__ */ C("p", {
3044
+ !i && a != null && /* @__PURE__ */ w("p", {
3041
3045
  role: "alert",
3042
3046
  className: t(_?.errorClassName ?? "dial-tiny-text", "py-6 text-center", R.errorText),
3043
- children: re
3047
+ children: B
3044
3048
  }),
3045
- !i && a == null && r != null && /* @__PURE__ */ w(S, { children: [
3046
- /* @__PURE__ */ C(te, {
3047
- anyoneWithLinkTitle: T,
3049
+ !i && a == null && r != null && /* @__PURE__ */ T(C, { children: [
3050
+ /* @__PURE__ */ w(ne, {
3051
+ anyoneWithLinkTitle: S,
3048
3052
  anyoneWithLinkSubtitle: E,
3049
3053
  access: l,
3050
3054
  canEditAccess: u,
3051
3055
  accessViewLabel: O,
3052
3056
  accessEditLabel: k,
3053
3057
  accessAriaLabel: D,
3054
- isOpen: G,
3055
- onOpenChange: Y,
3058
+ isOpen: W,
3059
+ onOpenChange: J,
3056
3060
  onAccessChange: d,
3057
3061
  onMenuKeyDown: (e) => {
3058
3062
  if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
3059
3063
  e.preventDefault();
3060
- let t = Array.from(J.current?.querySelectorAll("[role=\"menuitemradio\"]") ?? []);
3064
+ let t = Array.from(q.current?.querySelectorAll("[role=\"menuitemradio\"]") ?? []);
3061
3065
  t.length !== 0 && t[(t.indexOf(document.activeElement) + (e.key === "ArrowDown" ? 1 : -1) + t.length) % t.length]?.focus();
3062
3066
  },
3063
- triggerRef: q,
3064
- menuRef: J,
3067
+ triggerRef: K,
3068
+ menuRef: q,
3065
3069
  titleClassName: _?.anyoneTitleClassName,
3066
3070
  subtitleClassName: _?.anyoneSubtitleClassName,
3067
3071
  accessTriggerLabelClassName: _?.accessTriggerLabelClassName
3068
3072
  }),
3069
- /* @__PURE__ */ C("p", {
3073
+ /* @__PURE__ */ w("p", {
3070
3074
  className: t(_?.noteClassName ?? "dial-tiny-text", R.note),
3071
- children: u && l.includes(P.Edit) ? j : A
3075
+ children: u && l.includes(F.Edit) ? j : A
3072
3076
  }),
3073
- H != null && /* @__PURE__ */ C("p", {
3077
+ V != null && /* @__PURE__ */ w("p", {
3074
3078
  className: t(_?.nestedItemsNoteClassName ?? "dial-tiny-semi-text", R.note),
3075
- children: H
3079
+ children: V
3076
3080
  }),
3077
- U === F.Qr ? /* @__PURE__ */ C(Ee, {
3081
+ H === I.Qr ? /* @__PURE__ */ w(De, {
3078
3082
  value: r,
3079
- labels: { ariaLabel: B }
3080
- }) : /* @__PURE__ */ C(ne, {
3083
+ labels: { ariaLabel: z }
3084
+ }) : /* @__PURE__ */ w(re, {
3081
3085
  url: r,
3082
- linkAriaLabel: ee,
3083
- isCopied: ie,
3086
+ linkAriaLabel: P,
3087
+ isCopied: ae,
3084
3088
  copyButtonLabel: M,
3085
3089
  copiedButtonLabel: N,
3086
- onCopy: ae
3090
+ onCopy: oe
3087
3091
  }),
3088
- z != null && /* @__PURE__ */ C("p", {
3092
+ L != null && /* @__PURE__ */ w("p", {
3089
3093
  className: t(_?.noteClassName ?? "dial-tiny-text", R.note),
3090
- children: z
3094
+ children: L
3091
3095
  })
3092
3096
  ] })
3093
3097
  ]
3094
3098
  });
3095
3099
  });
3096
3100
  //#endregion
3097
- export { Ee as QrCode, P as ShareLinkAccess, je as SharePopover, F as SharePopoverView };
3101
+ export { De as QrCode, F as ShareLinkAccess, Me as SharePopover, I as SharePopoverView };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-share",
3
3
  "description": "Share popover UI component and share-link types for AI DIAL catalog deployments",
4
- "version": "1.1.0-dev.298",
4
+ "version": "1.1.0-dev.299",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -16,7 +16,7 @@
16
16
  }
17
17
  },
18
18
  "peerDependencies": {
19
- "@epam/ai-dial-chat-shared": "1.1.0-dev.298",
19
+ "@epam/ai-dial-chat-shared": "1.1.0-dev.299",
20
20
  "@tabler/icons-react": "^3.0.0",
21
21
  "react": "^19.0.0",
22
22
  "react-qr-code": "^2.2.0",