@flamingo-stack/openframe-frontend-core 0.0.399-snapshot.20260710120252 → 0.0.399
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.
- package/dist/{chunk-56XCRZ7I.js → chunk-2L6ALD2Q.js} +2 -2
- package/dist/{chunk-UYBNOHTC.js → chunk-2XVOYDRF.js} +22 -57
- package/dist/{chunk-UYBNOHTC.js.map → chunk-2XVOYDRF.js.map} +1 -1
- package/dist/{chunk-RYPCNUXA.js → chunk-4H2ICJYB.js} +4 -4
- package/dist/{chunk-463X3AW2.js → chunk-4K5XJ5EJ.js} +3 -3
- package/dist/{chunk-MTBFE3JF.js → chunk-4KWIQEZT.js} +2 -2
- package/dist/{chunk-QGQ76SSR.cjs → chunk-4PEC5KU6.cjs} +12 -12
- package/dist/{chunk-QGQ76SSR.cjs.map → chunk-4PEC5KU6.cjs.map} +1 -1
- package/dist/{chunk-J6IQQJJQ.cjs → chunk-7OKNKZBW.cjs} +531 -566
- package/dist/chunk-7OKNKZBW.cjs.map +1 -0
- package/dist/{chunk-MQRTT3DO.js → chunk-A6KGHQRF.js} +6 -6
- package/dist/{chunk-6VR7BJF6.js → chunk-BSJO5VFV.js} +5 -5
- package/dist/{chunk-PD5MXNTJ.js → chunk-CRRH7RJX.js} +5 -5
- package/dist/{chunk-ILWSJCWD.cjs → chunk-D5IHYUBY.cjs} +29 -29
- package/dist/{chunk-ILWSJCWD.cjs.map → chunk-D5IHYUBY.cjs.map} +1 -1
- package/dist/{chunk-UFP45JLE.js → chunk-FXWURWDU.js} +3 -3
- package/dist/{chunk-FHEIG7QO.js → chunk-G3A7QHCX.js} +2 -2
- package/dist/{chunk-556BG7SX.cjs → chunk-G5NDKTX6.cjs} +40 -40
- package/dist/{chunk-556BG7SX.cjs.map → chunk-G5NDKTX6.cjs.map} +1 -1
- package/dist/{chunk-MFRP2UDK.cjs → chunk-JBLBFJ4N.cjs} +32 -32
- package/dist/{chunk-MFRP2UDK.cjs.map → chunk-JBLBFJ4N.cjs.map} +1 -1
- package/dist/{chunk-J4XR6YYZ.cjs → chunk-JWBRDNYH.cjs} +4 -23
- package/dist/chunk-JWBRDNYH.cjs.map +1 -0
- package/dist/{chunk-VTSEL7CJ.cjs → chunk-NCW22SII.cjs} +73 -73
- package/dist/{chunk-VTSEL7CJ.cjs.map → chunk-NCW22SII.cjs.map} +1 -1
- package/dist/{chunk-KIC4ZEZ7.cjs → chunk-O5NA3ULU.cjs} +73 -73
- package/dist/{chunk-KIC4ZEZ7.cjs.map → chunk-O5NA3ULU.cjs.map} +1 -1
- package/dist/{chunk-ABRDOCVN.cjs → chunk-QNYNXSYQ.cjs} +7 -7
- package/dist/{chunk-ABRDOCVN.cjs.map → chunk-QNYNXSYQ.cjs.map} +1 -1
- package/dist/{chunk-OPD5V57R.cjs → chunk-RIC4TCPD.cjs} +19 -19
- package/dist/{chunk-OPD5V57R.cjs.map → chunk-RIC4TCPD.cjs.map} +1 -1
- package/dist/{chunk-6XQJSN7G.cjs → chunk-VOHOA3WV.cjs} +15 -15
- package/dist/{chunk-6XQJSN7G.cjs.map → chunk-VOHOA3WV.cjs.map} +1 -1
- package/dist/{chunk-LAL63W5J.js → chunk-VVKWNVKE.js} +6 -6
- package/dist/{chunk-Q3AO2QWK.cjs → chunk-WBLRUO3F.cjs} +3 -3
- package/dist/{chunk-Q3AO2QWK.cjs.map → chunk-WBLRUO3F.cjs.map} +1 -1
- package/dist/{chunk-4HAVKWTJ.js → chunk-XBCAY6NE.js} +3 -3
- package/dist/{chunk-EFTKJFEF.cjs → chunk-YWCCKB4J.cjs} +5 -5
- package/dist/{chunk-EFTKJFEF.cjs.map → chunk-YWCCKB4J.cjs.map} +1 -1
- package/dist/{chunk-I4XG5PJA.js → chunk-Z5ERSGP2.js} +2 -2
- package/dist/{chunk-RSFHAFZN.cjs → chunk-ZDT2MBKE.cjs} +40 -40
- package/dist/{chunk-RSFHAFZN.cjs.map → chunk-ZDT2MBKE.cjs.map} +1 -1
- package/dist/{chunk-DH6HTYOV.js → chunk-ZSZRJWY3.js} +134 -153
- package/dist/chunk-ZSZRJWY3.js.map +1 -0
- package/dist/components/case-studies/index.cjs +9 -9
- package/dist/components/case-studies/index.js +3 -3
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/index.js +2 -2
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/contact/index.js +3 -3
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/docs/index.js +5 -5
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/embeds/index.js +3 -3
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/faq/index.js +4 -4
- package/dist/components/features/auth/auth-benefits-panel.d.ts.map +1 -1
- package/dist/components/features/auth/complete-account-form.d.ts.map +1 -1
- package/dist/components/features/auth/create-organization-form.d.ts.map +1 -1
- package/dist/components/features/auth/login-form.d.ts.map +1 -1
- package/dist/components/features/auth/openframe-sso-login-form.d.ts.map +1 -1
- package/dist/components/features/auth/openframe-sso-signup-form.d.ts.map +1 -1
- package/dist/components/features/auth/password-reset-form.d.ts.map +1 -1
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/features/index.js +2 -2
- package/dist/components/help-center-pages/index.cjs +22 -22
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +125 -125
- package/dist/components/index.js +11 -11
- package/dist/components/navigation/index.cjs +3 -3
- package/dist/components/navigation/index.js +2 -2
- package/dist/components/onboarding-guides/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.js +6 -6
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/related-content/index.js +4 -4
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/index.cjs +3 -3
- package/dist/components/ui/index.js +2 -2
- package/dist/hooks/index.cjs +2 -4
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.js +1 -3
- package/dist/hooks/ui/index.d.ts +0 -1
- package/dist/hooks/ui/index.d.ts.map +1 -1
- package/dist/index.cjs +3 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -4
- package/package.json +1 -1
- package/src/components/features/auth/auth-benefits-panel.tsx +1 -1
- package/src/components/features/auth/complete-account-form.tsx +4 -15
- package/src/components/features/auth/create-organization-form.tsx +5 -14
- package/src/components/features/auth/login-form.tsx +1 -6
- package/src/components/features/auth/openframe-sso-login-form.tsx +2 -9
- package/src/components/features/auth/openframe-sso-signup-form.tsx +5 -18
- package/src/components/features/auth/password-reset-form.tsx +2 -9
- package/src/hooks/ui/index.ts +0 -1
- package/src/stories/Input.stories.tsx +1 -1
- package/src/stories/auth/CreateOrganization.stories.tsx +1 -2
- package/dist/chunk-DH6HTYOV.js.map +0 -1
- package/dist/chunk-J4XR6YYZ.cjs.map +0 -1
- package/dist/chunk-J6IQQJJQ.cjs.map +0 -1
- package/dist/hooks/ui/use-deferred-error.d.ts +0 -16
- package/dist/hooks/ui/use-deferred-error.d.ts.map +0 -1
- package/src/hooks/ui/use-deferred-error.ts +0 -38
- /package/dist/{chunk-56XCRZ7I.js.map → chunk-2L6ALD2Q.js.map} +0 -0
- /package/dist/{chunk-RYPCNUXA.js.map → chunk-4H2ICJYB.js.map} +0 -0
- /package/dist/{chunk-463X3AW2.js.map → chunk-4K5XJ5EJ.js.map} +0 -0
- /package/dist/{chunk-MTBFE3JF.js.map → chunk-4KWIQEZT.js.map} +0 -0
- /package/dist/{chunk-MQRTT3DO.js.map → chunk-A6KGHQRF.js.map} +0 -0
- /package/dist/{chunk-6VR7BJF6.js.map → chunk-BSJO5VFV.js.map} +0 -0
- /package/dist/{chunk-PD5MXNTJ.js.map → chunk-CRRH7RJX.js.map} +0 -0
- /package/dist/{chunk-UFP45JLE.js.map → chunk-FXWURWDU.js.map} +0 -0
- /package/dist/{chunk-FHEIG7QO.js.map → chunk-G3A7QHCX.js.map} +0 -0
- /package/dist/{chunk-LAL63W5J.js.map → chunk-VVKWNVKE.js.map} +0 -0
- /package/dist/{chunk-4HAVKWTJ.js.map → chunk-XBCAY6NE.js.map} +0 -0
- /package/dist/{chunk-I4XG5PJA.js.map → chunk-Z5ERSGP2.js.map} +0 -0
|
@@ -25,8 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
var _chunkJ4XR6YYZcjs = require('./chunk-J4XR6YYZ.cjs');
|
|
28
|
+
var _chunkJWBRDNYHcjs = require('./chunk-JWBRDNYH.cjs');
|
|
30
29
|
|
|
31
30
|
|
|
32
31
|
|
|
@@ -773,7 +772,7 @@ function ToolCallRow({ call, expanded, onToggle, batchStatus, execution, showExe
|
|
|
773
772
|
onClick: onToggle,
|
|
774
773
|
className: "flex gap-[var(--spacing-system-xsf)] items-start w-full p-[var(--spacing-system-sf)] cursor-pointer text-left",
|
|
775
774
|
children: [
|
|
776
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center justify-center shrink-0 w-5 h-5", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
775
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center justify-center shrink-0 w-5 h-5", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJWBRDNYHcjs.ToolIcon, { toolType, size: 16 }) }),
|
|
777
776
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
778
777
|
"div",
|
|
779
778
|
{
|
|
@@ -4691,7 +4690,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4691
4690
|
className: "flex gap-[var(--spacing-system-xs)] items-start p-[var(--spacing-system-s)] cursor-pointer text-left w-full",
|
|
4692
4691
|
onClick: () => setExpanded((prev) => !prev),
|
|
4693
4692
|
children: [
|
|
4694
|
-
!isClient && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center justify-center shrink-0 w-5 h-5", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4693
|
+
!isClient && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center justify-center shrink-0 w-5 h-5", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJWBRDNYHcjs.ToolIcon, { toolType: integratedToolType, size: 16 }) }),
|
|
4695
4694
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4696
4695
|
"div",
|
|
4697
4696
|
{
|
|
@@ -6410,7 +6409,7 @@ function ChatQuickActionRow({
|
|
|
6410
6409
|
wrap = false,
|
|
6411
6410
|
className
|
|
6412
6411
|
}) {
|
|
6413
|
-
const auto =
|
|
6412
|
+
const auto = _chunkJWBRDNYHcjs.useAutoLimitTags.call(void 0, {
|
|
6414
6413
|
count: chips.length,
|
|
6415
6414
|
reserveInputWidth: false
|
|
6416
6415
|
});
|
|
@@ -6969,7 +6968,7 @@ function DialogSearchBar({
|
|
|
6969
6968
|
onSearchChange
|
|
6970
6969
|
}) {
|
|
6971
6970
|
const [value, setValue] = React15.useState(_nullishCoalesce(initialValue, () => ( "")));
|
|
6972
|
-
const debounced =
|
|
6971
|
+
const debounced = _chunkJWBRDNYHcjs.useDebounce.call(void 0, value, 300);
|
|
6973
6972
|
const lastEmitted = React15.useRef(_nullishCoalesce(initialValue, () => ( "")));
|
|
6974
6973
|
React15.useEffect(() => {
|
|
6975
6974
|
if (debounced === lastEmitted.current) return;
|
|
@@ -8916,7 +8915,7 @@ function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
|
|
|
8916
8915
|
return;
|
|
8917
8916
|
}
|
|
8918
8917
|
const target = stripSameOriginToPath(href);
|
|
8919
|
-
if (target.includes("#") &&
|
|
8918
|
+
if (target.includes("#") && _chunkJWBRDNYHcjs.navigateSamePageHash.call(void 0, target, { headerOffset: _chunkJWBRDNYHcjs.STICKY_HEADER_OFFSET_PX })) {
|
|
8920
8919
|
return;
|
|
8921
8920
|
}
|
|
8922
8921
|
const handled = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _141 => _141.navigation, 'access', _142 => _142.navigate, 'optionalCall', _143 => _143({ href, path, targetPlatform })]), () => ( false));
|
|
@@ -9355,7 +9354,7 @@ function EntityPortraitCard({
|
|
|
9355
9354
|
setIsWide(img.naturalWidth / img.naturalHeight >= MIN_WIDE_RATIO);
|
|
9356
9355
|
}
|
|
9357
9356
|
};
|
|
9358
|
-
const edgeColor =
|
|
9357
|
+
const edgeColor = _chunkJWBRDNYHcjs.useImageEdgeColor.call(void 0, isWide === false ? src : null, "var(--ods-bg-secondary)");
|
|
9359
9358
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target, rel, className: _chunkFIG2RKZFcjs.cn.call(void 0, "block h-full", className), "aria-label": `Open ${title}`, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { className: "bg-ods-card border border-ods-border hover:border-ods-accent hover:shadow-lg hover:shadow-ods-accent/[0.08] transition-all duration-200 p-6 flex flex-col gap-6 overflow-hidden h-full", children: [
|
|
9360
9359
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9361
9360
|
"div",
|
|
@@ -9662,7 +9661,7 @@ function AdminContentCard({
|
|
|
9662
9661
|
const [imageError, setImageError] = _react.useState.call(void 0, false);
|
|
9663
9662
|
const [imageLoaded, setImageLoaded] = _react.useState.call(void 0, false);
|
|
9664
9663
|
const displayUrl = imageUrl && !imageError ? imageUrl : placeholderUrl;
|
|
9665
|
-
const imageBgColor =
|
|
9664
|
+
const imageBgColor = _chunkJWBRDNYHcjs.useImageEdgeColor.call(void 0, displayUrl || null, "transparent");
|
|
9666
9665
|
_react.useEffect.call(void 0, () => {
|
|
9667
9666
|
setImageLoaded(false);
|
|
9668
9667
|
}, [displayUrl]);
|
|
@@ -10375,7 +10374,7 @@ function useVideoWarmup({
|
|
|
10375
10374
|
const runtime = _chunk3KEBI6TPcjs.useChatRuntime.call(void 0, );
|
|
10376
10375
|
const resolvedOrigin = _nullishCoalesce(supabaseStorageOrigin, () => ( _optionalChain([runtime, 'optionalAccess', _185 => _185.endpoints, 'access', _186 => _186.supabaseStorageOrigin])));
|
|
10377
10376
|
useVideoOriginPreconnect({ supabaseStorageOrigin: resolvedOrigin });
|
|
10378
|
-
const { ref, isNear } =
|
|
10377
|
+
const { ref, isNear } = _chunkJWBRDNYHcjs.useNearViewport.call(void 0, nearMargin);
|
|
10379
10378
|
_react.useEffect.call(void 0, () => {
|
|
10380
10379
|
if (!isNear || !videoUrl || !resolvedOrigin) return;
|
|
10381
10380
|
const conn = navigator.connection;
|
|
@@ -11973,7 +11972,7 @@ function useEntityCardPlaceholder({
|
|
|
11973
11972
|
siteName = "",
|
|
11974
11973
|
aspect = "wide"
|
|
11975
11974
|
}) {
|
|
11976
|
-
const derived =
|
|
11975
|
+
const derived = _chunkJWBRDNYHcjs.useOgPlaceholderUrl.call(void 0, { title, siteName, aspect });
|
|
11977
11976
|
return placeholderUrl !== void 0 ? placeholderUrl : derived;
|
|
11978
11977
|
}
|
|
11979
11978
|
|
|
@@ -13244,7 +13243,7 @@ function AutocompleteInner(props, ref) {
|
|
|
13244
13243
|
}, [valueArray, options]);
|
|
13245
13244
|
const selectedOption = !multiple && selectedOptions.length > 0 ? selectedOptions[0] : null;
|
|
13246
13245
|
const inputPlaceholder = multiple ? valueArray.length === 0 ? placeholder : "Add More..." : placeholder;
|
|
13247
|
-
const autoLimitTags =
|
|
13246
|
+
const autoLimitTags = _chunkJWBRDNYHcjs.useAutoLimitTags.call(void 0, {
|
|
13248
13247
|
count: multiple ? selectedOptions.length : 0,
|
|
13249
13248
|
limitTags: multiple ? limitTagsProp : 0,
|
|
13250
13249
|
placeholder: inputPlaceholder
|
|
@@ -13985,7 +13984,7 @@ function DatePickerCalendar({
|
|
|
13985
13984
|
fluid = false
|
|
13986
13985
|
}) {
|
|
13987
13986
|
const today = /* @__PURE__ */ new Date();
|
|
13988
|
-
const isMdUp = _nullishCoalesce(
|
|
13987
|
+
const isMdUp = _nullishCoalesce(_chunkJWBRDNYHcjs.useMdUp.call(void 0, ), () => ( true));
|
|
13989
13988
|
const monthsToShow = isMdUp ? numberOfMonths : 1;
|
|
13990
13989
|
const [draftRange, setDraftRange] = React42.useState(
|
|
13991
13990
|
mode === "range" ? selected : void 0
|
|
@@ -14960,7 +14959,7 @@ var ProgressBar = ({
|
|
|
14960
14959
|
mobileHeight = 8,
|
|
14961
14960
|
inverted = false
|
|
14962
14961
|
}) => {
|
|
14963
|
-
const isMdUp = _nullishCoalesce(
|
|
14962
|
+
const isMdUp = _nullishCoalesce(_chunkJWBRDNYHcjs.useMdUp.call(void 0, ), () => ( true));
|
|
14964
14963
|
const effectiveSegmentWidth = isMdUp ? segmentWidth : mobileSegmentWidth;
|
|
14965
14964
|
const effectiveHeight = isMdUp ? height : mobileHeight;
|
|
14966
14965
|
const containerRef = _react.useRef.call(void 0, null);
|
|
@@ -15087,7 +15086,7 @@ function InfoCardFooter({ footer }) {
|
|
|
15087
15086
|
] });
|
|
15088
15087
|
}
|
|
15089
15088
|
function InfoCardValueRow({ label, value, showLabel, copyable, icon, copyAriaLabel }) {
|
|
15090
|
-
const { copy, copied } =
|
|
15089
|
+
const { copy, copied } = _chunkJWBRDNYHcjs.useCopyToClipboard.call(void 0, );
|
|
15091
15090
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-6 items-center gap-[var(--spacing-system-xs)] self-stretch w-full", children: [
|
|
15092
15091
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-h4 text-ods-text-primary whitespace-nowrap", children: showLabel ? label : "" }),
|
|
15093
15092
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1 h-px bg-ods-divider" }),
|
|
@@ -17380,7 +17379,7 @@ var DrawerContent = React62.forwardRef(
|
|
|
17380
17379
|
const resolvedSide = _nullishCoalesce(side, () => ( "right"));
|
|
17381
17380
|
const isHorizontal = HORIZONTAL_SIDES.has(resolvedSide);
|
|
17382
17381
|
const initialSize = _nullishCoalesce(defaultSize, () => ( (isHorizontal ? 560 : 480)));
|
|
17383
|
-
const headerHeight =
|
|
17382
|
+
const headerHeight = _chunkJWBRDNYHcjs.useHeaderHeight.call(void 0, );
|
|
17384
17383
|
const [isMobile, setIsMobile] = React62.useState(false);
|
|
17385
17384
|
React62.useEffect(() => {
|
|
17386
17385
|
if (typeof window === "undefined") return;
|
|
@@ -19583,7 +19582,7 @@ var OGLinkPreview = ({
|
|
|
19583
19582
|
const hasImage = !!resolvedImageUrl;
|
|
19584
19583
|
const isFallbackImage = resolvedImageUrl === fallbackImage;
|
|
19585
19584
|
const isPlaceholder = resolvedImageUrl === placeholderImageUrl && !isFallbackImage;
|
|
19586
|
-
const bgColor =
|
|
19585
|
+
const bgColor = _chunkJWBRDNYHcjs.useImageEdgeColor.call(void 0, _nullishCoalesce(resolvedImageUrl, () => ( null)), "var(--ods-bg-secondary)");
|
|
19587
19586
|
const renderSkeleton = () => isCompact ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "my-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-row border border-ods-border rounded-lg overflow-hidden bg-ods-card h-[120px]", children: [
|
|
19588
19587
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-[200px] h-full flex-shrink-0 bg-ods-border animate-pulse" }),
|
|
19589
19588
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 p-3 flex flex-col justify-center", children: [
|
|
@@ -21997,7 +21996,7 @@ function ListPageLayout({
|
|
|
21997
21996
|
}) {
|
|
21998
21997
|
const [mobileFilterOpen, setMobileFilterOpen] = _react.useState.call(void 0, false);
|
|
21999
21998
|
const [localSearchValue, setLocalSearchValue] = _react.useState.call(void 0, searchValue);
|
|
22000
|
-
const debouncedSearchValue =
|
|
21999
|
+
const debouncedSearchValue = _chunkJWBRDNYHcjs.useDebounce.call(void 0, localSearchValue, 500);
|
|
22001
22000
|
_react.useEffect.call(void 0, () => {
|
|
22002
22001
|
setLocalSearchValue(searchValue);
|
|
22003
22002
|
}, [searchValue]);
|
|
@@ -22658,7 +22657,7 @@ function toToolLabel(input) {
|
|
|
22658
22657
|
if (!input) return "";
|
|
22659
22658
|
const toolType = normalizeToolType(input);
|
|
22660
22659
|
if (toolType) {
|
|
22661
|
-
return
|
|
22660
|
+
return _chunkJWBRDNYHcjs.toolLabels[toolType];
|
|
22662
22661
|
}
|
|
22663
22662
|
return input;
|
|
22664
22663
|
}
|
|
@@ -22669,7 +22668,7 @@ function getToolTypeAliases(toolType) {
|
|
|
22669
22668
|
return Object.entries(toolAliasMap).filter(([_, value]) => value === toolType).map(([key]) => key);
|
|
22670
22669
|
}
|
|
22671
22670
|
function getToolLabel(toolType) {
|
|
22672
|
-
return
|
|
22671
|
+
return _chunkJWBRDNYHcjs.toolLabels[toolType] || toolType;
|
|
22673
22672
|
}
|
|
22674
22673
|
|
|
22675
22674
|
// src/types/shell.types.ts
|
|
@@ -25640,7 +25639,7 @@ function AuthBenefitsPanel({
|
|
|
25640
25639
|
description = DEFAULT_DESCRIPTION,
|
|
25641
25640
|
benefits = DEFAULT_BENEFITS,
|
|
25642
25641
|
learnMoreLabel = "Learn More About OpenFrame",
|
|
25643
|
-
learnMoreUrl = "https://
|
|
25642
|
+
learnMoreUrl = "https://openframe.ai",
|
|
25644
25643
|
className
|
|
25645
25644
|
}) {
|
|
25646
25645
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -25858,10 +25857,6 @@ function CompleteAccountForm({
|
|
|
25858
25857
|
className
|
|
25859
25858
|
}) {
|
|
25860
25859
|
const fieldsDisabled = disabled || loading;
|
|
25861
|
-
const firstNameErr = _chunkJ4XR6YYZcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _507 => _507.firstName]), firstName);
|
|
25862
|
-
const lastNameErr = _chunkJ4XR6YYZcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _508 => _508.lastName]), lastName);
|
|
25863
|
-
const passwordErr = _chunkJ4XR6YYZcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _509 => _509.password]), password);
|
|
25864
|
-
const confirmErr = _chunkJ4XR6YYZcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _510 => _510.confirmPassword]), confirmPassword);
|
|
25865
25860
|
const handleKeyDown = (event) => {
|
|
25866
25861
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
25867
25862
|
onSubmit();
|
|
@@ -25901,9 +25896,8 @@ function CompleteAccountForm({
|
|
|
25901
25896
|
label: "First Name",
|
|
25902
25897
|
placeholder: "Enter First Name",
|
|
25903
25898
|
value: firstName,
|
|
25904
|
-
error:
|
|
25899
|
+
error: _optionalChain([errors, 'optionalAccess', _507 => _507.firstName]),
|
|
25905
25900
|
disabled: fieldsDisabled,
|
|
25906
|
-
onBlur: firstNameErr.onBlur,
|
|
25907
25901
|
onChange: (event) => onFirstNameChange(event.target.value),
|
|
25908
25902
|
onKeyDown: handleKeyDown
|
|
25909
25903
|
}
|
|
@@ -25914,9 +25908,8 @@ function CompleteAccountForm({
|
|
|
25914
25908
|
label: "Last Name",
|
|
25915
25909
|
placeholder: "Enter Last Name",
|
|
25916
25910
|
value: lastName,
|
|
25917
|
-
error:
|
|
25911
|
+
error: _optionalChain([errors, 'optionalAccess', _508 => _508.lastName]),
|
|
25918
25912
|
disabled: fieldsDisabled,
|
|
25919
|
-
onBlur: lastNameErr.onBlur,
|
|
25920
25913
|
onChange: (event) => onLastNameChange(event.target.value),
|
|
25921
25914
|
onKeyDown: handleKeyDown
|
|
25922
25915
|
}
|
|
@@ -25927,9 +25920,8 @@ function CompleteAccountForm({
|
|
|
25927
25920
|
label: "Password",
|
|
25928
25921
|
placeholder: "Enter Password",
|
|
25929
25922
|
value: password,
|
|
25930
|
-
error:
|
|
25923
|
+
error: _optionalChain([errors, 'optionalAccess', _509 => _509.password]),
|
|
25931
25924
|
disabled: fieldsDisabled,
|
|
25932
|
-
onBlur: passwordErr.onBlur,
|
|
25933
25925
|
onChange: (event) => onPasswordChange(event.target.value),
|
|
25934
25926
|
onKeyDown: handleKeyDown
|
|
25935
25927
|
}
|
|
@@ -25940,9 +25932,8 @@ function CompleteAccountForm({
|
|
|
25940
25932
|
label: "Confirm Password",
|
|
25941
25933
|
placeholder: "Confirm Password",
|
|
25942
25934
|
value: confirmPassword,
|
|
25943
|
-
error:
|
|
25935
|
+
error: _optionalChain([errors, 'optionalAccess', _510 => _510.confirmPassword]),
|
|
25944
25936
|
disabled: fieldsDisabled,
|
|
25945
|
-
onBlur: confirmErr.onBlur,
|
|
25946
25937
|
onChange: (event) => onConfirmPasswordChange(event.target.value),
|
|
25947
25938
|
onKeyDown: handleKeyDown
|
|
25948
25939
|
}
|
|
@@ -26049,9 +26040,6 @@ function CreateOrganizationForm({
|
|
|
26049
26040
|
}) {
|
|
26050
26041
|
const isSsoMode = !!ssoProviders && ssoProviders.length > 0;
|
|
26051
26042
|
const fieldsDisabled = disabled || loading || isSsoMode;
|
|
26052
|
-
const emailErr = _chunkJ4XR6YYZcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _511 => _511.email]), email);
|
|
26053
|
-
const orgNameErr = _chunkJ4XR6YYZcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _512 => _512.organizationName]), organizationName);
|
|
26054
|
-
const domainErr = _chunkJ4XR6YYZcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _513 => _513.domain]), domain);
|
|
26055
26043
|
const handleKeyDown = (event) => {
|
|
26056
26044
|
if (event.key === "Enter" && !fieldsDisabled) {
|
|
26057
26045
|
onSubmit();
|
|
@@ -26076,10 +26064,9 @@ function CreateOrganizationForm({
|
|
|
26076
26064
|
label: "Email",
|
|
26077
26065
|
placeholder: "username@mail.com",
|
|
26078
26066
|
value: email,
|
|
26079
|
-
error: _nullishCoalesce(
|
|
26080
|
-
errorVariant:
|
|
26067
|
+
error: _nullishCoalesce(_optionalChain([errors, 'optionalAccess', _511 => _511.email]), () => ( _optionalChain([emailStatus, 'optionalAccess', _512 => _512.message]))),
|
|
26068
|
+
errorVariant: _optionalChain([errors, 'optionalAccess', _513 => _513.email]) ? "error" : _optionalChain([emailStatus, 'optionalAccess', _514 => _514.variant]),
|
|
26081
26069
|
disabled: fieldsDisabled,
|
|
26082
|
-
onBlur: emailErr.onBlur,
|
|
26083
26070
|
onChange: (event) => onEmailChange(event.target.value),
|
|
26084
26071
|
onKeyDown: handleKeyDown
|
|
26085
26072
|
}
|
|
@@ -26090,9 +26077,8 @@ function CreateOrganizationForm({
|
|
|
26090
26077
|
label: "Organization Name",
|
|
26091
26078
|
placeholder: "Your Company Name",
|
|
26092
26079
|
value: organizationName,
|
|
26093
|
-
error:
|
|
26080
|
+
error: _optionalChain([errors, 'optionalAccess', _515 => _515.organizationName]),
|
|
26094
26081
|
disabled: fieldsDisabled,
|
|
26095
|
-
onBlur: orgNameErr.onBlur,
|
|
26096
26082
|
onChange: (event) => onOrganizationNameChange(event.target.value),
|
|
26097
26083
|
onKeyDown: handleKeyDown
|
|
26098
26084
|
}
|
|
@@ -26104,10 +26090,9 @@ function CreateOrganizationForm({
|
|
|
26104
26090
|
label: "Domain",
|
|
26105
26091
|
placeholder: domainPlaceholder,
|
|
26106
26092
|
value: domain,
|
|
26107
|
-
error: _nullishCoalesce(
|
|
26108
|
-
errorVariant:
|
|
26093
|
+
error: _nullishCoalesce(_optionalChain([errors, 'optionalAccess', _516 => _516.domain]), () => ( _optionalChain([domainStatus, 'optionalAccess', _517 => _517.message]))),
|
|
26094
|
+
errorVariant: _optionalChain([errors, 'optionalAccess', _518 => _518.domain]) ? "error" : _optionalChain([domainStatus, 'optionalAccess', _519 => _519.variant]),
|
|
26109
26095
|
disabled: fieldsDisabled,
|
|
26110
|
-
onBlur: domainErr.onBlur,
|
|
26111
26096
|
endAdornment: domainSuffix ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: domainSuffix }) : void 0,
|
|
26112
26097
|
onChange: (event) => onDomainChange(event.target.value),
|
|
26113
26098
|
onKeyDown: handleKeyDown
|
|
@@ -26123,7 +26108,7 @@ function CreateOrganizationForm({
|
|
|
26123
26108
|
truncateLabel: true,
|
|
26124
26109
|
checked: agreedToTerms,
|
|
26125
26110
|
disabled: fieldsDisabled,
|
|
26126
|
-
error: _optionalChain([errors, 'optionalAccess',
|
|
26111
|
+
error: _optionalChain([errors, 'optionalAccess', _520 => _520.terms]),
|
|
26127
26112
|
onCheckedChange: onAgreedToTermsChange
|
|
26128
26113
|
}
|
|
26129
26114
|
),
|
|
@@ -26204,7 +26189,6 @@ function LoginForm({
|
|
|
26204
26189
|
}) {
|
|
26205
26190
|
const isSsoMode = !!ssoProviders && ssoProviders.length > 0;
|
|
26206
26191
|
const fieldDisabled = disabled || loading || isSsoMode;
|
|
26207
|
-
const emailErr = _chunkJ4XR6YYZcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _519 => _519.email]), email);
|
|
26208
26192
|
const handleKeyDown = (event) => {
|
|
26209
26193
|
if (event.key === "Enter" && !fieldDisabled) {
|
|
26210
26194
|
onSubmit();
|
|
@@ -26229,9 +26213,8 @@ function LoginForm({
|
|
|
26229
26213
|
label: "Email",
|
|
26230
26214
|
placeholder: emailPlaceholder,
|
|
26231
26215
|
value: email,
|
|
26232
|
-
error:
|
|
26216
|
+
error: _optionalChain([errors, 'optionalAccess', _521 => _521.email]),
|
|
26233
26217
|
disabled: fieldDisabled,
|
|
26234
|
-
onBlur: emailErr.onBlur,
|
|
26235
26218
|
onChange: (event) => onEmailChange(event.target.value),
|
|
26236
26219
|
onKeyDown: handleKeyDown
|
|
26237
26220
|
}
|
|
@@ -26305,8 +26288,6 @@ function OpenFrameSsoLoginForm({
|
|
|
26305
26288
|
className
|
|
26306
26289
|
}) {
|
|
26307
26290
|
const fieldsDisabled = disabled || loading;
|
|
26308
|
-
const emailErr = _chunkJ4XR6YYZcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _520 => _520.email]), email);
|
|
26309
|
-
const passwordErr = _chunkJ4XR6YYZcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _521 => _521.password]), password);
|
|
26310
26291
|
const handleKeyDown = (event) => {
|
|
26311
26292
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
26312
26293
|
onSubmit();
|
|
@@ -26331,9 +26312,8 @@ function OpenFrameSsoLoginForm({
|
|
|
26331
26312
|
label: emailLabel,
|
|
26332
26313
|
placeholder: emailPlaceholder,
|
|
26333
26314
|
value: email,
|
|
26334
|
-
error:
|
|
26315
|
+
error: _optionalChain([errors, 'optionalAccess', _522 => _522.email]),
|
|
26335
26316
|
disabled: fieldsDisabled,
|
|
26336
|
-
onBlur: emailErr.onBlur,
|
|
26337
26317
|
onChange: (event) => onEmailChange(event.target.value),
|
|
26338
26318
|
onKeyDown: handleKeyDown
|
|
26339
26319
|
}
|
|
@@ -26344,9 +26324,8 @@ function OpenFrameSsoLoginForm({
|
|
|
26344
26324
|
label: passwordLabel,
|
|
26345
26325
|
placeholder: passwordPlaceholder,
|
|
26346
26326
|
value: password,
|
|
26347
|
-
error:
|
|
26327
|
+
error: _optionalChain([errors, 'optionalAccess', _523 => _523.password]),
|
|
26348
26328
|
disabled: fieldsDisabled,
|
|
26349
|
-
onBlur: passwordErr.onBlur,
|
|
26350
26329
|
onChange: (event) => onPasswordChange(event.target.value),
|
|
26351
26330
|
onKeyDown: handleKeyDown
|
|
26352
26331
|
}
|
|
@@ -26413,11 +26392,6 @@ function OpenFrameSsoSignUpForm({
|
|
|
26413
26392
|
className
|
|
26414
26393
|
}) {
|
|
26415
26394
|
const fieldsDisabled = disabled || loading;
|
|
26416
|
-
const emailErr = _chunkJ4XR6YYZcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _522 => _522.email]), email);
|
|
26417
|
-
const firstNameErr = _chunkJ4XR6YYZcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _523 => _523.firstName]), firstName);
|
|
26418
|
-
const lastNameErr = _chunkJ4XR6YYZcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _524 => _524.lastName]), lastName);
|
|
26419
|
-
const passwordErr = _chunkJ4XR6YYZcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _525 => _525.password]), password);
|
|
26420
|
-
const confirmErr = _chunkJ4XR6YYZcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _526 => _526.confirmPassword]), confirmPassword);
|
|
26421
26395
|
const handleKeyDown = (event) => {
|
|
26422
26396
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
26423
26397
|
onSubmit();
|
|
@@ -26442,9 +26416,8 @@ function OpenFrameSsoSignUpForm({
|
|
|
26442
26416
|
label: emailLabel,
|
|
26443
26417
|
placeholder: "username@mail.com",
|
|
26444
26418
|
value: email,
|
|
26445
|
-
error:
|
|
26419
|
+
error: _optionalChain([errors, 'optionalAccess', _524 => _524.email]),
|
|
26446
26420
|
disabled: fieldsDisabled || emailReadOnly,
|
|
26447
|
-
onBlur: emailErr.onBlur,
|
|
26448
26421
|
onChange: (event) => onEmailChange(event.target.value),
|
|
26449
26422
|
onKeyDown: handleKeyDown
|
|
26450
26423
|
}
|
|
@@ -26455,9 +26428,8 @@ function OpenFrameSsoSignUpForm({
|
|
|
26455
26428
|
label: "First Name",
|
|
26456
26429
|
placeholder: "Enter First Name",
|
|
26457
26430
|
value: firstName,
|
|
26458
|
-
error:
|
|
26431
|
+
error: _optionalChain([errors, 'optionalAccess', _525 => _525.firstName]),
|
|
26459
26432
|
disabled: fieldsDisabled,
|
|
26460
|
-
onBlur: firstNameErr.onBlur,
|
|
26461
26433
|
onChange: (event) => onFirstNameChange(event.target.value),
|
|
26462
26434
|
onKeyDown: handleKeyDown
|
|
26463
26435
|
}
|
|
@@ -26468,9 +26440,8 @@ function OpenFrameSsoSignUpForm({
|
|
|
26468
26440
|
label: "Last Name",
|
|
26469
26441
|
placeholder: "Enter Last Name",
|
|
26470
26442
|
value: lastName,
|
|
26471
|
-
error:
|
|
26443
|
+
error: _optionalChain([errors, 'optionalAccess', _526 => _526.lastName]),
|
|
26472
26444
|
disabled: fieldsDisabled,
|
|
26473
|
-
onBlur: lastNameErr.onBlur,
|
|
26474
26445
|
onChange: (event) => onLastNameChange(event.target.value),
|
|
26475
26446
|
onKeyDown: handleKeyDown
|
|
26476
26447
|
}
|
|
@@ -26481,9 +26452,8 @@ function OpenFrameSsoSignUpForm({
|
|
|
26481
26452
|
label: "Password",
|
|
26482
26453
|
placeholder: "Enter Password",
|
|
26483
26454
|
value: password,
|
|
26484
|
-
error:
|
|
26455
|
+
error: _optionalChain([errors, 'optionalAccess', _527 => _527.password]),
|
|
26485
26456
|
disabled: fieldsDisabled,
|
|
26486
|
-
onBlur: passwordErr.onBlur,
|
|
26487
26457
|
onChange: (event) => onPasswordChange(event.target.value),
|
|
26488
26458
|
onKeyDown: handleKeyDown
|
|
26489
26459
|
}
|
|
@@ -26494,9 +26464,8 @@ function OpenFrameSsoSignUpForm({
|
|
|
26494
26464
|
label: "Confirm Password",
|
|
26495
26465
|
placeholder: "Confirm Password",
|
|
26496
26466
|
value: confirmPassword,
|
|
26497
|
-
error:
|
|
26467
|
+
error: _optionalChain([errors, 'optionalAccess', _528 => _528.confirmPassword]),
|
|
26498
26468
|
disabled: fieldsDisabled,
|
|
26499
|
-
onBlur: confirmErr.onBlur,
|
|
26500
26469
|
onChange: (event) => onConfirmPasswordChange(event.target.value),
|
|
26501
26470
|
onKeyDown: handleKeyDown
|
|
26502
26471
|
}
|
|
@@ -26560,8 +26529,6 @@ function PasswordResetForm({
|
|
|
26560
26529
|
className
|
|
26561
26530
|
}) {
|
|
26562
26531
|
const fieldsDisabled = disabled || loading;
|
|
26563
|
-
const passwordErr = _chunkJ4XR6YYZcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _527 => _527.password]), password);
|
|
26564
|
-
const confirmErr = _chunkJ4XR6YYZcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _528 => _528.confirmPassword]), confirmPassword);
|
|
26565
26532
|
const handleKeyDown = (event) => {
|
|
26566
26533
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
26567
26534
|
onSubmit();
|
|
@@ -26586,9 +26553,8 @@ function PasswordResetForm({
|
|
|
26586
26553
|
label: newPasswordLabel,
|
|
26587
26554
|
placeholder: newPasswordPlaceholder,
|
|
26588
26555
|
value: password,
|
|
26589
|
-
error:
|
|
26556
|
+
error: _optionalChain([errors, 'optionalAccess', _529 => _529.password]),
|
|
26590
26557
|
disabled: fieldsDisabled,
|
|
26591
|
-
onBlur: passwordErr.onBlur,
|
|
26592
26558
|
onChange: (event) => onPasswordChange(event.target.value),
|
|
26593
26559
|
onKeyDown: handleKeyDown
|
|
26594
26560
|
}
|
|
@@ -26600,9 +26566,8 @@ function PasswordResetForm({
|
|
|
26600
26566
|
label: confirmPasswordLabel,
|
|
26601
26567
|
placeholder: confirmPasswordPlaceholder,
|
|
26602
26568
|
value: confirmPassword,
|
|
26603
|
-
error:
|
|
26569
|
+
error: _optionalChain([errors, 'optionalAccess', _530 => _530.confirmPassword]),
|
|
26604
26570
|
disabled: fieldsDisabled,
|
|
26605
|
-
onBlur: confirmErr.onBlur,
|
|
26606
26571
|
onChange: (event) => onConfirmPasswordChange(event.target.value),
|
|
26607
26572
|
onKeyDown: handleKeyDown
|
|
26608
26573
|
}
|
|
@@ -27264,10 +27229,10 @@ var getContentDimensions = (config) => {
|
|
|
27264
27229
|
const envMobileHeight = process.env.NEXT_PUBLIC_FIGMA_MOBILE_HEIGHT ? parseInt(process.env.NEXT_PUBLIC_FIGMA_MOBILE_HEIGHT) : null;
|
|
27265
27230
|
const envDesktopWidth = process.env.NEXT_PUBLIC_FIGMA_DESKTOP_WIDTH ? parseInt(process.env.NEXT_PUBLIC_FIGMA_DESKTOP_WIDTH) : null;
|
|
27266
27231
|
const envDesktopHeight = process.env.NEXT_PUBLIC_FIGMA_DESKTOP_HEIGHT ? parseInt(process.env.NEXT_PUBLIC_FIGMA_DESKTOP_HEIGHT) : null;
|
|
27267
|
-
const mobileWidth = _nullishCoalesce(_nullishCoalesce(envMobileWidth, () => ( _optionalChain([config, 'optionalAccess',
|
|
27268
|
-
const mobileHeight = _nullishCoalesce(_nullishCoalesce(envMobileHeight, () => ( _optionalChain([config, 'optionalAccess',
|
|
27269
|
-
const desktopWidth = _nullishCoalesce(_nullishCoalesce(envDesktopWidth, () => ( _optionalChain([config, 'optionalAccess',
|
|
27270
|
-
const desktopHeight = _nullishCoalesce(_nullishCoalesce(envDesktopHeight, () => ( _optionalChain([config, 'optionalAccess',
|
|
27232
|
+
const mobileWidth = _nullishCoalesce(_nullishCoalesce(envMobileWidth, () => ( _optionalChain([config, 'optionalAccess', _531 => _531.mobileContentDimensions, 'optionalAccess', _532 => _532.width]))), () => ( defaultMobile.width));
|
|
27233
|
+
const mobileHeight = _nullishCoalesce(_nullishCoalesce(envMobileHeight, () => ( _optionalChain([config, 'optionalAccess', _533 => _533.mobileContentDimensions, 'optionalAccess', _534 => _534.height]))), () => ( defaultMobile.height));
|
|
27234
|
+
const desktopWidth = _nullishCoalesce(_nullishCoalesce(envDesktopWidth, () => ( _optionalChain([config, 'optionalAccess', _535 => _535.desktopContentDimensions, 'optionalAccess', _536 => _536.width]))), () => ( defaultDesktop.width));
|
|
27235
|
+
const desktopHeight = _nullishCoalesce(_nullishCoalesce(envDesktopHeight, () => ( _optionalChain([config, 'optionalAccess', _537 => _537.desktopContentDimensions, 'optionalAccess', _538 => _538.height]))), () => ( defaultDesktop.height));
|
|
27271
27236
|
return {
|
|
27272
27237
|
mobile: { width: mobileWidth, height: mobileHeight },
|
|
27273
27238
|
desktop: { width: desktopWidth, height: desktopHeight }
|
|
@@ -27401,7 +27366,7 @@ function renderUnifiedUI(state, handlers, config, iframeRef) {
|
|
|
27401
27366
|
const contentDimensions = getContentDimensions(config);
|
|
27402
27367
|
const mobileHeight = contentDimensions.mobile.height;
|
|
27403
27368
|
const calculatedHeight = Math.max(mobileHeight + 100, 400);
|
|
27404
|
-
return `${Math.min(calculatedHeight, _optionalChain([window, 'optionalAccess',
|
|
27369
|
+
return `${Math.min(calculatedHeight, _optionalChain([window, 'optionalAccess', _539 => _539.innerHeight]) * 0.85 || 650)}px`;
|
|
27405
27370
|
})(),
|
|
27406
27371
|
minHeight: viewMode === "DESKTOP" ? "auto" : (() => {
|
|
27407
27372
|
const contentDimensions = getContentDimensions(config);
|
|
@@ -27506,7 +27471,7 @@ var FigmaPrototypeViewer = ({
|
|
|
27506
27471
|
const [isInitialized, setIsInitialized] = _react.useState.call(void 0, false);
|
|
27507
27472
|
const [currentNodeId, setCurrentNodeId] = _react.useState.call(void 0, null);
|
|
27508
27473
|
const [internalActiveSection, setInternalActiveSection] = _react.useState.call(void 0,
|
|
27509
|
-
config.defaultSectionId || _optionalChain([config, 'access',
|
|
27474
|
+
config.defaultSectionId || _optionalChain([config, 'access', _540 => _540.sections, 'access', _541 => _541[0], 'optionalAccess', _542 => _542.id]) || ""
|
|
27510
27475
|
);
|
|
27511
27476
|
const activeSection = externalActiveSection || internalActiveSection;
|
|
27512
27477
|
const [isNavigating, setIsNavigating] = _react.useState.call(void 0, false);
|
|
@@ -27596,7 +27561,7 @@ var FigmaPrototypeViewer = ({
|
|
|
27596
27561
|
const handleMessage = (event) => {
|
|
27597
27562
|
if (event.origin !== "https://www.figma.com") return;
|
|
27598
27563
|
const validEvents = ["INITIAL_LOAD", "NEW_STATE", "PRESENTED_NODE_CHANGED"];
|
|
27599
|
-
if (_optionalChain([event, 'access',
|
|
27564
|
+
if (_optionalChain([event, 'access', _543 => _543.data, 'optionalAccess', _544 => _544.type]) && validEvents.includes(event.data.type)) {
|
|
27600
27565
|
const figmaEvent = event.data;
|
|
27601
27566
|
console.log("[Figma Event]", figmaEvent.type, viewMode);
|
|
27602
27567
|
switch (figmaEvent.type) {
|
|
@@ -27606,19 +27571,19 @@ var FigmaPrototypeViewer = ({
|
|
|
27606
27571
|
setIframeState("READY");
|
|
27607
27572
|
break;
|
|
27608
27573
|
case "PRESENTED_NODE_CHANGED":
|
|
27609
|
-
if (_optionalChain([figmaEvent, 'access',
|
|
27574
|
+
if (_optionalChain([figmaEvent, 'access', _545 => _545.data, 'optionalAccess', _546 => _546.presentedNodeId])) {
|
|
27610
27575
|
setCurrentNodeId(figmaEvent.data.presentedNodeId);
|
|
27611
27576
|
if (!isNavigating) {
|
|
27612
27577
|
const matchingSection = config.sections.find((s) => {
|
|
27613
|
-
const desktopMatch = s.startingNodeId === _optionalChain([figmaEvent, 'access',
|
|
27614
|
-
const mobileMatch = s.mobileStartingNodeId === _optionalChain([figmaEvent, 'access',
|
|
27578
|
+
const desktopMatch = s.startingNodeId === _optionalChain([figmaEvent, 'access', _547 => _547.data, 'optionalAccess', _548 => _548.presentedNodeId]) || s.startingNodeId.replace(":", "-") === _optionalChain([figmaEvent, 'access', _549 => _549.data, 'optionalAccess', _550 => _550.presentedNodeId]);
|
|
27579
|
+
const mobileMatch = s.mobileStartingNodeId === _optionalChain([figmaEvent, 'access', _551 => _551.data, 'optionalAccess', _552 => _552.presentedNodeId]) || _optionalChain([s, 'access', _553 => _553.mobileStartingNodeId, 'optionalAccess', _554 => _554.replace, 'call', _555 => _555(":", "-")]) === _optionalChain([figmaEvent, 'access', _556 => _556.data, 'optionalAccess', _557 => _557.presentedNodeId]);
|
|
27615
27580
|
return desktopMatch || mobileMatch;
|
|
27616
27581
|
});
|
|
27617
27582
|
if (matchingSection && matchingSection.id !== activeSection) {
|
|
27618
27583
|
if (!externalActiveSection) {
|
|
27619
27584
|
setInternalActiveSection(matchingSection.id);
|
|
27620
27585
|
}
|
|
27621
|
-
_optionalChain([config, 'access',
|
|
27586
|
+
_optionalChain([config, 'access', _558 => _558.onSectionChange, 'optionalCall', _559 => _559(matchingSection.id)]);
|
|
27622
27587
|
}
|
|
27623
27588
|
}
|
|
27624
27589
|
}
|
|
@@ -27631,7 +27596,7 @@ var FigmaPrototypeViewer = ({
|
|
|
27631
27596
|
}, [config.sections, activeSection, isNavigating, externalActiveSection, config.onSectionChange, viewMode]);
|
|
27632
27597
|
const navigateToSection = _react.useCallback.call(void 0, (sectionId) => {
|
|
27633
27598
|
const section = config.sections.find((s) => s.id === sectionId);
|
|
27634
|
-
if (!section || !_optionalChain([iframeRef, 'access',
|
|
27599
|
+
if (!section || !_optionalChain([iframeRef, 'access', _560 => _560.current, 'optionalAccess', _561 => _561.contentWindow]) || !isInitialized) {
|
|
27635
27600
|
return;
|
|
27636
27601
|
}
|
|
27637
27602
|
setIsNavigating(true);
|
|
@@ -27639,7 +27604,7 @@ var FigmaPrototypeViewer = ({
|
|
|
27639
27604
|
if (!externalActiveSection) {
|
|
27640
27605
|
setInternalActiveSection(sectionId);
|
|
27641
27606
|
}
|
|
27642
|
-
_optionalChain([config, 'access',
|
|
27607
|
+
_optionalChain([config, 'access', _562 => _562.onSectionChange, 'optionalCall', _563 => _563(sectionId)]);
|
|
27643
27608
|
const command = {
|
|
27644
27609
|
type: "NAVIGATE_TO_FRAME_AND_CLOSE_OVERLAYS",
|
|
27645
27610
|
data: { nodeId }
|
|
@@ -27959,7 +27924,7 @@ var FiltersDropdown = ({
|
|
|
27959
27924
|
defaults[section.id] = section.defaultSelected || [];
|
|
27960
27925
|
});
|
|
27961
27926
|
setSelectedFilters(defaults);
|
|
27962
|
-
_optionalChain([onReset, 'optionalCall',
|
|
27927
|
+
_optionalChain([onReset, 'optionalCall', _564 => _564()]);
|
|
27963
27928
|
setIsOpen(false);
|
|
27964
27929
|
};
|
|
27965
27930
|
const handleApply = () => {
|
|
@@ -28252,7 +28217,7 @@ function MediaGalleryManager({
|
|
|
28252
28217
|
const [deletingIndex, setDeletingIndex] = _react.useState.call(void 0, null);
|
|
28253
28218
|
const [draggedIndex, setDraggedIndex] = _react.useState.call(void 0, null);
|
|
28254
28219
|
const handleFileSelect = _react.useCallback.call(void 0, async (event) => {
|
|
28255
|
-
const file = _optionalChain([event, 'access',
|
|
28220
|
+
const file = _optionalChain([event, 'access', _565 => _565.target, 'access', _566 => _566.files, 'optionalAccess', _567 => _567[0]]);
|
|
28256
28221
|
if (!file) return;
|
|
28257
28222
|
let mediaType;
|
|
28258
28223
|
if (file.type.startsWith("image/")) {
|
|
@@ -28367,7 +28332,7 @@ function MediaGalleryManager({
|
|
|
28367
28332
|
{
|
|
28368
28333
|
type: "button",
|
|
28369
28334
|
variant: "outline",
|
|
28370
|
-
onClick: () => _optionalChain([fileInputRef, 'access',
|
|
28335
|
+
onClick: () => _optionalChain([fileInputRef, 'access', _568 => _568.current, 'optionalAccess', _569 => _569.click, 'call', _570 => _570()]),
|
|
28371
28336
|
disabled: isUploading,
|
|
28372
28337
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Plus, { className: "h-4 w-4" }),
|
|
28373
28338
|
className: "font-['DM_Sans'] text-[16px] font-bold",
|
|
@@ -28850,7 +28815,7 @@ function PlatformFilterComponent({
|
|
|
28850
28815
|
variant: selectedPlatform === platform.value ? "accent" : "outline",
|
|
28851
28816
|
size: size2,
|
|
28852
28817
|
onClick: () => onPlatformChange(platform.value),
|
|
28853
|
-
leftIcon: showIcons ?
|
|
28818
|
+
leftIcon: showIcons ? _chunkJWBRDNYHcjs.getSmallPlatformIcon.call(void 0, platform.value) : void 0,
|
|
28854
28819
|
className: "text-h3",
|
|
28855
28820
|
children: platform.label
|
|
28856
28821
|
},
|
|
@@ -29031,7 +28996,7 @@ function ReleaseMediaManager({
|
|
|
29031
28996
|
const fileInputRef = _react.useRef.call(void 0, null);
|
|
29032
28997
|
const [uploadingIndex, setUploadingIndex] = _react.useState.call(void 0, null);
|
|
29033
28998
|
const handleFileSelect = async (event) => {
|
|
29034
|
-
const file = _optionalChain([event, 'access',
|
|
28999
|
+
const file = _optionalChain([event, 'access', _571 => _571.target, 'access', _572 => _572.files, 'optionalAccess', _573 => _573[0]]);
|
|
29035
29000
|
if (!file) return;
|
|
29036
29001
|
let mediaType;
|
|
29037
29002
|
if (file.type.startsWith("image/")) {
|
|
@@ -29111,7 +29076,7 @@ function ReleaseMediaManager({
|
|
|
29111
29076
|
{
|
|
29112
29077
|
type: "button",
|
|
29113
29078
|
variant: "outline",
|
|
29114
|
-
onClick: () => _optionalChain([fileInputRef, 'access',
|
|
29079
|
+
onClick: () => _optionalChain([fileInputRef, 'access', _574 => _574.current, 'optionalAccess', _575 => _575.click, 'call', _576 => _576()]),
|
|
29115
29080
|
disabled: uploadingIndex !== null,
|
|
29116
29081
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Plus, { className: "h-4 w-4" }),
|
|
29117
29082
|
className: "font-['DM_Sans'] text-[16px] font-bold",
|
|
@@ -29326,7 +29291,7 @@ function SEOEditorPreview({
|
|
|
29326
29291
|
const displayImage = hasOgImage || hasFeaturedImage;
|
|
29327
29292
|
const handleImageUpload = async (event) => {
|
|
29328
29293
|
if (!onOgImageUpload) return;
|
|
29329
|
-
const file = _optionalChain([event, 'access',
|
|
29294
|
+
const file = _optionalChain([event, 'access', _577 => _577.target, 'access', _578 => _578.files, 'optionalAccess', _579 => _579[0]]);
|
|
29330
29295
|
if (!file) return;
|
|
29331
29296
|
setIsUploading(true);
|
|
29332
29297
|
try {
|
|
@@ -29467,7 +29432,7 @@ function SEOEditorPreview({
|
|
|
29467
29432
|
type: "button",
|
|
29468
29433
|
variant: "outline",
|
|
29469
29434
|
size: "icon",
|
|
29470
|
-
onClick: () => _optionalChain([fileInputRef, 'optionalAccess',
|
|
29435
|
+
onClick: () => _optionalChain([fileInputRef, 'optionalAccess', _580 => _580.click, 'call', _581 => _581()]),
|
|
29471
29436
|
disabled: disabled || isUploading,
|
|
29472
29437
|
className: "bg-white text-black hover:bg-gray-100 rounded-full opacity-0 group-hover:opacity-100",
|
|
29473
29438
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "h-4 w-4" })
|
|
@@ -29490,7 +29455,7 @@ function SEOEditorPreview({
|
|
|
29490
29455
|
"div",
|
|
29491
29456
|
{
|
|
29492
29457
|
className: "h-full min-h-[280px] border-2 border-dashed border-ods-border rounded-lg flex flex-col items-center justify-center cursor-pointer hover:border-ods-accent transition-colors bg-ods-bg-hover",
|
|
29493
|
-
onClick: () => onOgImageUpload && _optionalChain([fileInputRef, 'optionalAccess',
|
|
29458
|
+
onClick: () => onOgImageUpload && _optionalChain([fileInputRef, 'optionalAccess', _582 => _582.click, 'call', _583 => _583()]),
|
|
29494
29459
|
children: isUploading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-8 w-8 animate-spin text-ods-accent" }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
29495
29460
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "h-8 w-8 text-ods-text-secondary mb-2" }),
|
|
29496
29461
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-sm text-ods-text-secondary font-['DM_Sans']", children: onOgImageUpload ? "Click to upload OG image" : "No image" })
|
|
@@ -29577,7 +29542,7 @@ function SocialLinksManager({
|
|
|
29577
29542
|
className = ""
|
|
29578
29543
|
}) {
|
|
29579
29544
|
const addLink = () => {
|
|
29580
|
-
const firstPlatform = _optionalChain([platforms, 'access',
|
|
29545
|
+
const firstPlatform = _optionalChain([platforms, 'access', _584 => _584[0], 'optionalAccess', _585 => _585.name]) || "website";
|
|
29581
29546
|
onChange([...links, { platform: firstPlatform, url: "" }]);
|
|
29582
29547
|
};
|
|
29583
29548
|
const removeLink = (index) => {
|
|
@@ -29589,7 +29554,7 @@ function SocialLinksManager({
|
|
|
29589
29554
|
onChange(updated);
|
|
29590
29555
|
};
|
|
29591
29556
|
const getIcon = (link, platform) => {
|
|
29592
|
-
const iconKey = _optionalChain([platform, 'optionalAccess',
|
|
29557
|
+
const iconKey = _optionalChain([platform, 'optionalAccess', _586 => _586.icon_name]) || link.platform;
|
|
29593
29558
|
const IconComponent = iconMap[iconKey];
|
|
29594
29559
|
return IconComponent ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: "w-5 h-5 text-ods-text-secondary" }) : null;
|
|
29595
29560
|
};
|
|
@@ -29614,7 +29579,7 @@ function SocialLinksManager({
|
|
|
29614
29579
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29615
29580
|
_chunkGA5AN24Tcjs.Input,
|
|
29616
29581
|
{
|
|
29617
|
-
placeholder: _optionalChain([platform, 'optionalAccess',
|
|
29582
|
+
placeholder: _optionalChain([platform, 'optionalAccess', _587 => _587.placeholder]) || "Profile URL",
|
|
29618
29583
|
value: link.url,
|
|
29619
29584
|
onChange: (e) => updateLink(index, "url", e.target.value),
|
|
29620
29585
|
onKeyDown: (e) => {
|
|
@@ -30058,7 +30023,7 @@ function VideoSourceSelector({
|
|
|
30058
30023
|
input.accept = "video/*";
|
|
30059
30024
|
input.onchange = async (e) => {
|
|
30060
30025
|
const target = e.target;
|
|
30061
|
-
const file = _optionalChain([target, 'access',
|
|
30026
|
+
const file = _optionalChain([target, 'access', _588 => _588.files, 'optionalAccess', _589 => _589[0]]);
|
|
30062
30027
|
if (!file) return;
|
|
30063
30028
|
setIsUploading(true);
|
|
30064
30029
|
setUploadProgress(0);
|
|
@@ -30407,7 +30372,7 @@ function TranscriptSummaryEditor({
|
|
|
30407
30372
|
{
|
|
30408
30373
|
id: "subtitles",
|
|
30409
30374
|
value: subtitles || "",
|
|
30410
|
-
onChange: (e) => _optionalChain([onSubtitlesChange, 'optionalCall',
|
|
30375
|
+
onChange: (e) => _optionalChain([onSubtitlesChange, 'optionalCall', _590 => _590(e.target.value)]),
|
|
30411
30376
|
placeholder: subtitlesPlaceholder,
|
|
30412
30377
|
disabled: disabled || !onSubtitlesChange,
|
|
30413
30378
|
className: "h-full w-full resize-none border-0 bg-transparent text-ods-text-primary placeholder:text-ods-text-secondary/50 focus:ring-0 focus:outline-none p-4 font-mono text-sm",
|
|
@@ -30560,7 +30525,7 @@ var AIEnrichSection = ({
|
|
|
30560
30525
|
}) => {
|
|
30561
30526
|
const hasResults = status === "success" || status === "error";
|
|
30562
30527
|
const shouldDisable = disabled || !canEnrich;
|
|
30563
|
-
const unfilledFields = _optionalChain([requiredFields, 'optionalAccess',
|
|
30528
|
+
const unfilledFields = _optionalChain([requiredFields, 'optionalAccess', _591 => _591.filter, 'call', _592 => _592((f) => !f.isFilled)]) || [];
|
|
30564
30529
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30565
30530
|
"div",
|
|
30566
30531
|
{
|
|
@@ -30598,7 +30563,7 @@ var AIEnrichSection = ({
|
|
|
30598
30563
|
{
|
|
30599
30564
|
id: "ai-enrich-custom-instructions",
|
|
30600
30565
|
value: _nullishCoalesce(customInstructions, () => ( "")),
|
|
30601
|
-
onChange: (e) => _optionalChain([onCustomInstructionsChange, 'optionalCall',
|
|
30566
|
+
onChange: (e) => _optionalChain([onCustomInstructionsChange, 'optionalCall', _593 => _593(e.target.value)]),
|
|
30602
30567
|
placeholder: customInstructionsPlaceholder,
|
|
30603
30568
|
disabled: loading,
|
|
30604
30569
|
maxLength: customInstructionsMaxLength,
|
|
@@ -30727,7 +30692,7 @@ function HighlightVideoSection({
|
|
|
30727
30692
|
input.accept = "video/*";
|
|
30728
30693
|
input.onchange = async (e) => {
|
|
30729
30694
|
const target = e.target;
|
|
30730
|
-
const file = _optionalChain([target, 'access',
|
|
30695
|
+
const file = _optionalChain([target, 'access', _594 => _594.files, 'optionalAccess', _595 => _595[0]]);
|
|
30731
30696
|
if (!file) return;
|
|
30732
30697
|
setUploadError(null);
|
|
30733
30698
|
try {
|
|
@@ -31222,7 +31187,7 @@ function HighlightVideoPreview({
|
|
|
31222
31187
|
input.accept = "video/*";
|
|
31223
31188
|
input.onchange = async (e) => {
|
|
31224
31189
|
const target = e.target;
|
|
31225
|
-
const file = _optionalChain([target, 'access',
|
|
31190
|
+
const file = _optionalChain([target, 'access', _596 => _596.files, 'optionalAccess', _597 => _597[0]]);
|
|
31226
31191
|
if (!file) return;
|
|
31227
31192
|
await onUpload(file);
|
|
31228
31193
|
};
|
|
@@ -31406,7 +31371,7 @@ function HighlightVideoCombinedSection({
|
|
|
31406
31371
|
input.accept = "video/*";
|
|
31407
31372
|
input.onchange = async (e) => {
|
|
31408
31373
|
const target = e.target;
|
|
31409
|
-
const file = _optionalChain([target, 'access',
|
|
31374
|
+
const file = _optionalChain([target, 'access', _598 => _598.files, 'optionalAccess', _599 => _599[0]]);
|
|
31410
31375
|
if (!file) return;
|
|
31411
31376
|
await onUpload(file);
|
|
31412
31377
|
};
|
|
@@ -31700,11 +31665,11 @@ var getApprovalLevelLabel = (level, editMode = false) => {
|
|
|
31700
31665
|
return editMode ? "Set Global Permission" : "";
|
|
31701
31666
|
}
|
|
31702
31667
|
const option = approvalLevelOptions.find((opt) => opt.value === level);
|
|
31703
|
-
return _optionalChain([option, 'optionalAccess',
|
|
31668
|
+
return _optionalChain([option, 'optionalAccess', _600 => _600.label]) || level;
|
|
31704
31669
|
};
|
|
31705
31670
|
var PolicyRow = ({ policy, categoryId, editMode, onPermissionChange }) => {
|
|
31706
31671
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-ods-bg border-b border-ods-border flex gap-4 items-center px-4 py-3", children: [
|
|
31707
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-ods-bg border border-ods-border rounded-md flex items-center justify-center w-8 h-8", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31672
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-ods-bg border border-ods-border rounded-md flex items-center justify-center w-8 h-8", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJWBRDNYHcjs.ToolIcon, { toolType: policy.toolName, size: 16 }) }),
|
|
31708
31673
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 flex flex-col min-w-0", children: [
|
|
31709
31674
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-[16px] font-medium text-ods-text-primary truncate", title: policy.name, children: policy.name }),
|
|
31710
31675
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-[12px] text-ods-text-secondary break-all font-mono", children: policy.commandPattern })
|
|
@@ -31914,12 +31879,12 @@ function PhoneInput({
|
|
|
31914
31879
|
const runValidation = _react.useCallback.call(void 0, (phone) => {
|
|
31915
31880
|
if (!phone || digitCount(phone) === 0) {
|
|
31916
31881
|
setIsInvalid(false);
|
|
31917
|
-
_optionalChain([onValidationChange, 'optionalCall',
|
|
31882
|
+
_optionalChain([onValidationChange, 'optionalCall', _601 => _601(false)]);
|
|
31918
31883
|
return;
|
|
31919
31884
|
}
|
|
31920
31885
|
const invalid = !validatePhoneNumber(phone, countryCode);
|
|
31921
31886
|
setIsInvalid(invalid);
|
|
31922
|
-
_optionalChain([onValidationChange, 'optionalCall',
|
|
31887
|
+
_optionalChain([onValidationChange, 'optionalCall', _602 => _602(invalid)]);
|
|
31923
31888
|
}, [countryCode, digitCount, onValidationChange]);
|
|
31924
31889
|
const debouncedValidation = _react.useCallback.call(void 0, (phone) => {
|
|
31925
31890
|
if (debounceRef.current) clearTimeout(debounceRef.current);
|
|
@@ -31968,7 +31933,7 @@ function PhoneInput({
|
|
|
31968
31933
|
debouncedValidation(val);
|
|
31969
31934
|
} else if (digitCount(val) === 0) {
|
|
31970
31935
|
setIsInvalid(false);
|
|
31971
|
-
_optionalChain([onValidationChange, 'optionalCall',
|
|
31936
|
+
_optionalChain([onValidationChange, 'optionalCall', _603 => _603(false)]);
|
|
31972
31937
|
}
|
|
31973
31938
|
}
|
|
31974
31939
|
},
|
|
@@ -32015,8 +31980,8 @@ function WaitlistForm({
|
|
|
32015
31980
|
const [email, setEmail] = _react.useState.call(void 0, defaultEmail);
|
|
32016
31981
|
const [phone, setPhone] = _react.useState.call(void 0, defaultPhone);
|
|
32017
31982
|
const [countryCode, setCountryCode] = _react.useState.call(void 0, "US");
|
|
32018
|
-
const { toast } =
|
|
32019
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
31983
|
+
const { toast } = _chunkJWBRDNYHcjs.useToast.call(void 0, );
|
|
31984
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunkJWBRDNYHcjs.useHumanitySignals.call(void 0, );
|
|
32020
31985
|
const [smsConsent, setSmsConsent] = _react.useState.call(void 0, false);
|
|
32021
31986
|
const [isClient, setIsClient] = _react.useState.call(void 0, false);
|
|
32022
31987
|
const [isPhoneInvalid, setIsPhoneInvalid] = _react.useState.call(void 0, false);
|
|
@@ -32309,19 +32274,19 @@ function NotificationsProvider({
|
|
|
32309
32274
|
}, []);
|
|
32310
32275
|
const markRead = React98.useCallback((id) => {
|
|
32311
32276
|
dispatch({ type: "markRead", id });
|
|
32312
|
-
void _optionalChain([actionsRef, 'access',
|
|
32277
|
+
void _optionalChain([actionsRef, 'access', _604 => _604.current, 'optionalAccess', _605 => _605.onMarkRead, 'optionalCall', _606 => _606(id)]);
|
|
32313
32278
|
}, []);
|
|
32314
32279
|
const markAllRead = React98.useCallback(() => {
|
|
32315
32280
|
dispatch({ type: "markAllRead" });
|
|
32316
|
-
void _optionalChain([actionsRef, 'access',
|
|
32281
|
+
void _optionalChain([actionsRef, 'access', _607 => _607.current, 'optionalAccess', _608 => _608.onMarkAllRead, 'optionalCall', _609 => _609()]);
|
|
32317
32282
|
}, []);
|
|
32318
32283
|
const markSettled = React98.useCallback((id) => {
|
|
32319
32284
|
dispatch({ type: "markSettled", id });
|
|
32320
|
-
void _optionalChain([actionsRef, 'access',
|
|
32285
|
+
void _optionalChain([actionsRef, 'access', _610 => _610.current, 'optionalAccess', _611 => _611.onMarkSettled, 'optionalCall', _612 => _612(id)]);
|
|
32321
32286
|
}, []);
|
|
32322
32287
|
const remove = React98.useCallback((id) => {
|
|
32323
32288
|
dispatch({ type: "remove", id });
|
|
32324
|
-
void _optionalChain([actionsRef, 'access',
|
|
32289
|
+
void _optionalChain([actionsRef, 'access', _613 => _613.current, 'optionalAccess', _614 => _614.onRemove, 'optionalCall', _615 => _615(id)]);
|
|
32325
32290
|
}, []);
|
|
32326
32291
|
const clear = React98.useCallback(() => dispatch({ type: "clear" }), []);
|
|
32327
32292
|
const open = React98.useCallback(() => setIsOpen(true), []);
|
|
@@ -32330,14 +32295,14 @@ function NotificationsProvider({
|
|
|
32330
32295
|
const setShowPopups = React98.useCallback(
|
|
32331
32296
|
(value2) => {
|
|
32332
32297
|
setShowPopupsState(value2);
|
|
32333
|
-
_optionalChain([onShowPopupsChange, 'optionalCall',
|
|
32298
|
+
_optionalChain([onShowPopupsChange, 'optionalCall', _616 => _616(value2)]);
|
|
32334
32299
|
},
|
|
32335
32300
|
[onShowPopupsChange]
|
|
32336
32301
|
);
|
|
32337
32302
|
const setShowDesktopPopups = React98.useCallback(
|
|
32338
32303
|
(value2) => {
|
|
32339
32304
|
setShowDesktopPopupsState(value2);
|
|
32340
|
-
_optionalChain([onShowDesktopPopupsChange, 'optionalCall',
|
|
32305
|
+
_optionalChain([onShowDesktopPopupsChange, 'optionalCall', _617 => _617(value2)]);
|
|
32341
32306
|
},
|
|
32342
32307
|
[onShowDesktopPopupsChange]
|
|
32343
32308
|
);
|
|
@@ -32449,7 +32414,7 @@ var AppLayoutDrawerRoot = ({
|
|
|
32449
32414
|
const handleOpenChange = React99.useCallback(
|
|
32450
32415
|
(next) => {
|
|
32451
32416
|
if (!isControlled) setInternalOpen(next);
|
|
32452
|
-
_optionalChain([onOpenChange, 'optionalCall',
|
|
32417
|
+
_optionalChain([onOpenChange, 'optionalCall', _618 => _618(next)]);
|
|
32453
32418
|
},
|
|
32454
32419
|
[isControlled, onOpenChange]
|
|
32455
32420
|
);
|
|
@@ -32467,11 +32432,11 @@ var AppLayoutDrawerRoot = ({
|
|
|
32467
32432
|
};
|
|
32468
32433
|
}
|
|
32469
32434
|
React99.useEffect(() => {
|
|
32470
|
-
if (open) _optionalChain([coordination, 'optionalAccess',
|
|
32435
|
+
if (open) _optionalChain([coordination, 'optionalAccess', _619 => _619.notifyDrawerDidOpen, 'call', _620 => _620(_nullishCoalesce(selfHandleRef.current, () => ( void 0)))]);
|
|
32471
32436
|
}, [open, coordination]);
|
|
32472
32437
|
React99.useEffect(() => {
|
|
32473
32438
|
if (!selfHandleRef.current) return;
|
|
32474
|
-
return _optionalChain([coordination, 'optionalAccess',
|
|
32439
|
+
return _optionalChain([coordination, 'optionalAccess', _621 => _621.registerDrawer, 'call', _622 => _622(selfHandleRef.current)]);
|
|
32475
32440
|
}, [coordination]);
|
|
32476
32441
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DrawerOpenContext.Provider, { value: open, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32477
32442
|
DialogPrimitive3.Root,
|
|
@@ -32851,10 +32816,10 @@ var AppLayoutDrawerContent = React99.forwardRef(
|
|
|
32851
32816
|
),
|
|
32852
32817
|
style,
|
|
32853
32818
|
onInteractOutside: (event) => {
|
|
32854
|
-
_optionalChain([onInteractOutside, 'optionalCall',
|
|
32819
|
+
_optionalChain([onInteractOutside, 'optionalCall', _623 => _623(event)]);
|
|
32855
32820
|
if (event.defaultPrevented) return;
|
|
32856
32821
|
const target = event.target;
|
|
32857
|
-
const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess',
|
|
32822
|
+
const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess', _624 => _624.contains, 'call', _625 => _625(target)]);
|
|
32858
32823
|
if (!isInsideContainer) {
|
|
32859
32824
|
event.preventDefault();
|
|
32860
32825
|
return;
|
|
@@ -32962,7 +32927,7 @@ function NotificationTile({
|
|
|
32962
32927
|
if (!counting) return;
|
|
32963
32928
|
const remaining = Math.max(0, liveDurationMs - initialElapsed);
|
|
32964
32929
|
const timer = window.setTimeout(() => {
|
|
32965
|
-
_optionalChain([onSettle, 'optionalCall',
|
|
32930
|
+
_optionalChain([onSettle, 'optionalCall', _626 => _626(id)]);
|
|
32966
32931
|
}, remaining);
|
|
32967
32932
|
return () => window.clearTimeout(timer);
|
|
32968
32933
|
}, [id, counting, initialElapsed, liveDurationMs, onSettle]);
|
|
@@ -32998,7 +32963,7 @@ function NotificationTile({
|
|
|
32998
32963
|
onError: () => setFailedImageUrl(image),
|
|
32999
32964
|
className: "size-4 rounded-[2px] object-cover"
|
|
33000
32965
|
}
|
|
33001
|
-
) : _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "size-1.5 rounded-full",
|
|
32966
|
+
) : _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "size-1.5 rounded-full", _chunkJWBRDNYHcjs.dotColorByVariant[accentVariant]) })))
|
|
33002
32967
|
}
|
|
33003
32968
|
),
|
|
33004
32969
|
type ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -33018,7 +32983,7 @@ function NotificationTile({
|
|
|
33018
32983
|
}
|
|
33019
32984
|
) : null,
|
|
33020
32985
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "relative size-4 shrink-0", children: [
|
|
33021
|
-
{ active: isLive, label: "Dismiss notification", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.XmarkIcon, { size: 16 }), onClick: () => _optionalChain([onSettle, 'optionalCall',
|
|
32986
|
+
{ active: isLive, label: "Dismiss notification", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.XmarkIcon, { size: 16 }), onClick: () => _optionalChain([onSettle, 'optionalCall', _627 => _627(id)]) },
|
|
33022
32987
|
{ active: !isLive, label: "Mark notification complete", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.CheckCircleIcon, { size: 16 }), onClick: () => onComplete(id) }
|
|
33023
32988
|
].map(({ active, label, icon: icon2, onClick }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33024
32989
|
"button",
|
|
@@ -33046,7 +33011,7 @@ function NotificationTile({
|
|
|
33046
33011
|
"aria-hidden": true,
|
|
33047
33012
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
33048
33013
|
"absolute inset-x-0 -bottom-px h-1 origin-left",
|
|
33049
|
-
|
|
33014
|
+
_chunkJWBRDNYHcjs.progressColorByVariant[accentVariant]
|
|
33050
33015
|
),
|
|
33051
33016
|
style: {
|
|
33052
33017
|
animation: `toast-progress ${liveDurationMs}ms linear forwards`,
|
|
@@ -33194,7 +33159,7 @@ function DrawerScrollList({
|
|
|
33194
33159
|
if (!sentinel || !root) return;
|
|
33195
33160
|
const observer = new IntersectionObserver(
|
|
33196
33161
|
(entries) => {
|
|
33197
|
-
if (_optionalChain([entries, 'access',
|
|
33162
|
+
if (_optionalChain([entries, 'access', _628 => _628[0], 'optionalAccess', _629 => _629.isIntersecting])) _optionalChain([loadMoreRef, 'access', _630 => _630.current, 'optionalCall', _631 => _631()]);
|
|
33198
33163
|
},
|
|
33199
33164
|
{ root, rootMargin: loadMoreRootMargin }
|
|
33200
33165
|
);
|
|
@@ -33209,7 +33174,7 @@ function DrawerScrollList({
|
|
|
33209
33174
|
className: "flex flex-1 flex-col gap-[var(--spacing-system-xs)] overflow-y-auto px-[var(--spacing-system-m)]",
|
|
33210
33175
|
children: isEmpty && !isLoadingMore ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmptyState, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
33211
33176
|
unreadNotifications.map((n) => {
|
|
33212
|
-
const custom = _optionalChain([renderTile, 'optionalCall',
|
|
33177
|
+
const custom = _optionalChain([renderTile, 'optionalCall', _632 => _632(n, { onComplete, onSettle, liveDurationMs })]);
|
|
33213
33178
|
if (custom) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: custom }, n.id);
|
|
33214
33179
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33215
33180
|
NotificationTile,
|
|
@@ -33269,7 +33234,7 @@ function ShowNotificationsToggleRow({ checked, onChange }) {
|
|
|
33269
33234
|
] });
|
|
33270
33235
|
}
|
|
33271
33236
|
function DesktopNotificationsToggleRow({ checked, onChange }) {
|
|
33272
|
-
const { supported, permission, request } =
|
|
33237
|
+
const { supported, permission, request } = _chunkJWBRDNYHcjs.useNotificationPermission.call(void 0, );
|
|
33273
33238
|
if (!supported) return null;
|
|
33274
33239
|
const blocked = permission === "denied";
|
|
33275
33240
|
const handleChange = async (value) => {
|
|
@@ -33373,7 +33338,7 @@ function NotificationPopups({
|
|
|
33373
33338
|
className
|
|
33374
33339
|
),
|
|
33375
33340
|
children: live.map((n) => {
|
|
33376
|
-
const custom = _optionalChain([renderTile, 'optionalCall',
|
|
33341
|
+
const custom = _optionalChain([renderTile, 'optionalCall', _633 => _633(n, { onComplete: markRead, onSettle: markSettled, liveDurationMs })]);
|
|
33377
33342
|
if (custom) {
|
|
33378
33343
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-auto", children: custom }, n.id);
|
|
33379
33344
|
}
|
|
@@ -33486,7 +33451,7 @@ function programItemToStripProfile(item) {
|
|
|
33486
33451
|
const fromAuthor = toStripProfile(item.author);
|
|
33487
33452
|
if (fromAuthor) return fromAuthor;
|
|
33488
33453
|
const host = Array.isArray(item.hosts) ? item.hosts[0] : null;
|
|
33489
|
-
if (!_optionalChain([host, 'optionalAccess',
|
|
33454
|
+
if (!_optionalChain([host, 'optionalAccess', _634 => _634.name])) return null;
|
|
33490
33455
|
return toStripProfile({ full_name: host.name, avatar_url: _nullishCoalesce(host.avatar_url, () => ( null)) });
|
|
33491
33456
|
}
|
|
33492
33457
|
function transformEventToProgram(event) {
|
|
@@ -33564,21 +33529,21 @@ function transformWebinarToProgram(webinar) {
|
|
|
33564
33529
|
// src/components/features/notifications/types.ts
|
|
33565
33530
|
var ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE = "ADMIN_APPROVAL_REQUEST";
|
|
33566
33531
|
function isApprovalNotification(notification) {
|
|
33567
|
-
return _optionalChain([notification, 'access',
|
|
33532
|
+
return _optionalChain([notification, 'access', _635 => _635.meta, 'optionalAccess', _636 => _636.contextType]) === ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE;
|
|
33568
33533
|
}
|
|
33569
33534
|
function getApprovalMeta(notification) {
|
|
33570
33535
|
if (!isApprovalNotification(notification)) return null;
|
|
33571
33536
|
const meta = notification.meta;
|
|
33572
|
-
const approvalRequestId = _optionalChain([meta, 'optionalAccess',
|
|
33573
|
-
const toolCalls = _optionalChain([meta, 'optionalAccess',
|
|
33537
|
+
const approvalRequestId = _optionalChain([meta, 'optionalAccess', _637 => _637.approvalRequestId]);
|
|
33538
|
+
const toolCalls = _optionalChain([meta, 'optionalAccess', _638 => _638.toolCalls]);
|
|
33574
33539
|
if (typeof approvalRequestId !== "string" || !Array.isArray(toolCalls)) return null;
|
|
33575
33540
|
return {
|
|
33576
33541
|
approvalRequestId,
|
|
33577
|
-
dialogId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
33578
|
-
ticketId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
33579
|
-
approvalType: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
33580
|
-
resolution: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
33581
|
-
resolvedByName: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
33542
|
+
dialogId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _639 => _639.dialogId]), () => ( null)),
|
|
33543
|
+
ticketId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _640 => _640.ticketId]), () => ( null)),
|
|
33544
|
+
approvalType: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _641 => _641.approvalType]), () => ( null)),
|
|
33545
|
+
resolution: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _642 => _642.resolution]), () => ( null)),
|
|
33546
|
+
resolvedByName: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _643 => _643.resolvedByName]), () => ( null)),
|
|
33582
33547
|
toolCalls
|
|
33583
33548
|
};
|
|
33584
33549
|
}
|
|
@@ -33628,7 +33593,7 @@ function ApprovalRequestNotificationTile({
|
|
|
33628
33593
|
const [processing, setProcessing] = _react.useState.call(void 0, false);
|
|
33629
33594
|
const [localStatus, setLocalStatus] = _react.useState.call(void 0, null);
|
|
33630
33595
|
const approval = getApprovalMeta(notification);
|
|
33631
|
-
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess',
|
|
33596
|
+
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess', _644 => _644.resolution]));
|
|
33632
33597
|
const status = resolvedStatus !== "pending" ? resolvedStatus : _nullishCoalesce(localStatus, () => ( "pending"));
|
|
33633
33598
|
const batchData = _react.useMemo.call(void 0, () => approval ? approvalMetaToBatchData(approval) : null, [approval]);
|
|
33634
33599
|
const { innerRef, containerStyle } = useCollapsible({ expanded });
|
|
@@ -33932,7 +33897,7 @@ function TimeTrackerPanel({
|
|
|
33932
33897
|
error: showFieldError ? "Required if no notes added" : void 0,
|
|
33933
33898
|
disableClientFilter: !!onTicketSearch,
|
|
33934
33899
|
onInputChange: (value, reason) => {
|
|
33935
|
-
if (reason === "input") _optionalChain([onTicketSearch, 'optionalCall',
|
|
33900
|
+
if (reason === "input") _optionalChain([onTicketSearch, 'optionalCall', _645 => _645(value)]);
|
|
33936
33901
|
}
|
|
33937
33902
|
}
|
|
33938
33903
|
),
|
|
@@ -33947,7 +33912,7 @@ function TimeTrackerPanel({
|
|
|
33947
33912
|
disabled: customerLocked,
|
|
33948
33913
|
disableClientFilter: !!onCustomerSearch,
|
|
33949
33914
|
onInputChange: (value, reason) => {
|
|
33950
|
-
if (reason === "input") _optionalChain([onCustomerSearch, 'optionalCall',
|
|
33915
|
+
if (reason === "input") _optionalChain([onCustomerSearch, 'optionalCall', _646 => _646(value)]);
|
|
33951
33916
|
},
|
|
33952
33917
|
startAdornment: customerStartAdornment,
|
|
33953
33918
|
renderOption: renderCustomerOption
|
|
@@ -34040,7 +34005,7 @@ function LastEntryRow({ entry, onClick }) {
|
|
|
34040
34005
|
{
|
|
34041
34006
|
variant: "outline",
|
|
34042
34007
|
size: "icon",
|
|
34043
|
-
onClick: () => _optionalChain([onClick, 'optionalCall',
|
|
34008
|
+
onClick: () => _optionalChain([onClick, 'optionalCall', _647 => _647(entry)]),
|
|
34044
34009
|
disabled: !onClick,
|
|
34045
34010
|
"aria-label": `Open entry: ${entry.title}`,
|
|
34046
34011
|
className: "h-12 w-12 shrink-0 [&_svg]:!size-6",
|
|
@@ -34085,31 +34050,31 @@ function HeaderButton({
|
|
|
34085
34050
|
function TimeTrackerHeaderButton({ className, disabled }) {
|
|
34086
34051
|
const ctx = useOptionalTimeTracker();
|
|
34087
34052
|
const elapsedLabel = useTrackerClock({
|
|
34088
|
-
status: _nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
34089
|
-
runningSince: _optionalChain([ctx, 'optionalAccess',
|
|
34090
|
-
accumulatedMs: _optionalChain([ctx, 'optionalAccess',
|
|
34053
|
+
status: _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _648 => _648.status]), () => ( "ready")),
|
|
34054
|
+
runningSince: _optionalChain([ctx, 'optionalAccess', _649 => _649.runningSince]),
|
|
34055
|
+
accumulatedMs: _optionalChain([ctx, 'optionalAccess', _650 => _650.accumulatedMs])
|
|
34091
34056
|
});
|
|
34092
34057
|
const layoutContainer = useAppLayoutDrawerContainer();
|
|
34093
34058
|
const coordination = useAppLayoutDrawerCoordination();
|
|
34094
|
-
const isOpen = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
34059
|
+
const isOpen = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _651 => _651.isOpen]), () => ( false));
|
|
34095
34060
|
const isOpenRef = _react.useRef.call(void 0, isOpen);
|
|
34096
34061
|
isOpenRef.current = isOpen;
|
|
34097
|
-
const closeRef = _react.useRef.call(void 0, _optionalChain([ctx, 'optionalAccess',
|
|
34098
|
-
closeRef.current = _optionalChain([ctx, 'optionalAccess',
|
|
34062
|
+
const closeRef = _react.useRef.call(void 0, _optionalChain([ctx, 'optionalAccess', _652 => _652.close]));
|
|
34063
|
+
closeRef.current = _optionalChain([ctx, 'optionalAccess', _653 => _653.close]);
|
|
34099
34064
|
const selfHandleRef = _react.useRef.call(void 0, null);
|
|
34100
34065
|
if (!selfHandleRef.current) {
|
|
34101
34066
|
selfHandleRef.current = {
|
|
34102
34067
|
close: () => {
|
|
34103
|
-
if (isOpenRef.current) _optionalChain([closeRef, 'access',
|
|
34068
|
+
if (isOpenRef.current) _optionalChain([closeRef, 'access', _654 => _654.current, 'optionalCall', _655 => _655()]);
|
|
34104
34069
|
}
|
|
34105
34070
|
};
|
|
34106
34071
|
}
|
|
34107
34072
|
_react.useEffect.call(void 0, () => {
|
|
34108
|
-
if (isOpen) _optionalChain([coordination, 'optionalAccess',
|
|
34073
|
+
if (isOpen) _optionalChain([coordination, 'optionalAccess', _656 => _656.notifyDrawerDidOpen, 'call', _657 => _657(_nullishCoalesce(selfHandleRef.current, () => ( void 0)))]);
|
|
34109
34074
|
}, [isOpen, coordination]);
|
|
34110
34075
|
_react.useEffect.call(void 0, () => {
|
|
34111
34076
|
if (!selfHandleRef.current) return;
|
|
34112
|
-
return _optionalChain([coordination, 'optionalAccess',
|
|
34077
|
+
return _optionalChain([coordination, 'optionalAccess', _658 => _658.registerDrawer, 'call', _659 => _659(selfHandleRef.current)]);
|
|
34113
34078
|
}, [coordination]);
|
|
34114
34079
|
if (!ctx) return null;
|
|
34115
34080
|
const { open, close, status } = ctx;
|
|
@@ -34405,15 +34370,15 @@ function TicketCard({
|
|
|
34405
34370
|
transition: sortable.transition
|
|
34406
34371
|
};
|
|
34407
34372
|
if (showNewMessage) style.borderColor = columnColor;
|
|
34408
|
-
const showDeviceRow = !!(_optionalChain([ticket, 'access',
|
|
34373
|
+
const showDeviceRow = !!(_optionalChain([ticket, 'access', _660 => _660.deviceHostnames, 'optionalAccess', _661 => _661.length]) || ticket.organizationName);
|
|
34409
34374
|
const deviceText = [
|
|
34410
|
-
_optionalChain([ticket, 'access',
|
|
34375
|
+
_optionalChain([ticket, 'access', _662 => _662.deviceHostnames, 'optionalAccess', _663 => _663.join, 'call', _664 => _664(", ")]),
|
|
34411
34376
|
ticket.organizationName
|
|
34412
34377
|
].filter(Boolean).join(", ");
|
|
34413
34378
|
const handleClick = (e) => {
|
|
34414
34379
|
if (sortable.isDragging) e.preventDefault();
|
|
34415
34380
|
};
|
|
34416
|
-
const hasRightSection = !!(ticket.priority || _optionalChain([ticket, 'access',
|
|
34381
|
+
const hasRightSection = !!(ticket.priority || _optionalChain([ticket, 'access', _665 => _665.assignees, 'optionalAccess', _666 => _666.length]) || renderAssignSlot);
|
|
34417
34382
|
const rightSection = hasRightSection ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "pointer-events-auto flex shrink-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
34418
34383
|
ticket.priority && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34419
34384
|
_chunkBGD345ZVcjs.Flag02Icon,
|
|
@@ -34422,7 +34387,7 @@ function TicketCard({
|
|
|
34422
34387
|
"aria-label": `Priority: ${ticket.priority}`
|
|
34423
34388
|
}
|
|
34424
34389
|
),
|
|
34425
|
-
renderAssignSlot ? renderAssignSlot(ticket) : _optionalChain([ticket, 'access',
|
|
34390
|
+
renderAssignSlot ? renderAssignSlot(ticket) : _optionalChain([ticket, 'access', _667 => _667.assignees, 'optionalAccess', _668 => _668.length]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex -space-x-2", children: [
|
|
34426
34391
|
ticket.assignees.slice(0, MAX_VISIBLE_ASSIGNEES).map((a) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34427
34392
|
SquareAvatar,
|
|
34428
34393
|
{
|
|
@@ -34453,7 +34418,7 @@ function TicketCard({
|
|
|
34453
34418
|
] }),
|
|
34454
34419
|
rightSection
|
|
34455
34420
|
] }),
|
|
34456
|
-
_optionalChain([ticket, 'access',
|
|
34421
|
+
_optionalChain([ticket, 'access', _669 => _669.tags, 'optionalAccess', _670 => _670.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketTagRow, { tags: ticket.tags }) : null,
|
|
34457
34422
|
timestampLabel && tooltipLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipProvider, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip, { children: [
|
|
34458
34423
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "pointer-events-auto text-h6 truncate text-ods-text-secondary", children: timestampLabel }) }),
|
|
34459
34424
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: tooltipLabel })
|
|
@@ -34653,7 +34618,7 @@ function ColumnBody({ column, getTicketHref, renderAssignSlot, onApprove, onReje
|
|
|
34653
34618
|
const observer = new IntersectionObserver(
|
|
34654
34619
|
(entries) => {
|
|
34655
34620
|
if (entries.some((e) => e.isIntersecting)) {
|
|
34656
|
-
_optionalChain([loadMoreRef, 'access',
|
|
34621
|
+
_optionalChain([loadMoreRef, 'access', _671 => _671.current, 'optionalCall', _672 => _672(columnIdRef.current)]);
|
|
34657
34622
|
}
|
|
34658
34623
|
},
|
|
34659
34624
|
{ root, rootMargin: loadMoreRootMargin }
|
|
@@ -34683,7 +34648,7 @@ function ColumnBody({ column, getTicketHref, renderAssignSlot, onApprove, onReje
|
|
|
34683
34648
|
ticket: t,
|
|
34684
34649
|
columnId: column.id,
|
|
34685
34650
|
columnColor: column.color,
|
|
34686
|
-
href: _optionalChain([getTicketHref, 'optionalCall',
|
|
34651
|
+
href: _optionalChain([getTicketHref, 'optionalCall', _673 => _673(t.id)]),
|
|
34687
34652
|
renderAssignSlot,
|
|
34688
34653
|
onApprove,
|
|
34689
34654
|
onReject,
|
|
@@ -34717,7 +34682,7 @@ function EmptyState2() {
|
|
|
34717
34682
|
// src/components/features/board/use-board-collapse.ts
|
|
34718
34683
|
|
|
34719
34684
|
function useBoardCollapse(storageKey) {
|
|
34720
|
-
const [persisted, setPersisted] =
|
|
34685
|
+
const [persisted, setPersisted] = _chunkJWBRDNYHcjs.useLocalStorage.call(void 0,
|
|
34721
34686
|
_nullishCoalesce(storageKey, () => ( "__board_collapse_unused__")),
|
|
34722
34687
|
{}
|
|
34723
34688
|
);
|
|
@@ -34767,7 +34732,7 @@ function Board({
|
|
|
34767
34732
|
onThumbPointerDown,
|
|
34768
34733
|
onThumbPointerMove,
|
|
34769
34734
|
onThumbPointerUp
|
|
34770
|
-
} =
|
|
34735
|
+
} = _chunkJWBRDNYHcjs.useHorizontalScrollbar.call(void 0, );
|
|
34771
34736
|
const [items, setItems] = React105.useState(columns);
|
|
34772
34737
|
const isDraggingRef = React105.useRef(false);
|
|
34773
34738
|
React105.useEffect(() => {
|
|
@@ -34783,17 +34748,17 @@ function Board({
|
|
|
34783
34748
|
const pointer = _core.pointerWithin.call(void 0, args);
|
|
34784
34749
|
const intersections = pointer.length > 0 ? pointer : _core.rectIntersection.call(void 0, args);
|
|
34785
34750
|
const ticketHit = intersections.find(
|
|
34786
|
-
(c) => _optionalChain([c, 'access',
|
|
34751
|
+
(c) => _optionalChain([c, 'access', _674 => _674.data, 'optionalAccess', _675 => _675.droppableContainer, 'optionalAccess', _676 => _676.data, 'optionalAccess', _677 => _677.current, 'optionalAccess', _678 => _678.type]) === "ticket"
|
|
34787
34752
|
);
|
|
34788
34753
|
if (ticketHit) return [ticketHit];
|
|
34789
34754
|
const columnHit = intersections.find(
|
|
34790
|
-
(c) => _optionalChain([c, 'access',
|
|
34755
|
+
(c) => _optionalChain([c, 'access', _679 => _679.data, 'optionalAccess', _680 => _680.droppableContainer, 'optionalAccess', _681 => _681.data, 'optionalAccess', _682 => _682.current, 'optionalAccess', _683 => _683.type]) === "column"
|
|
34791
34756
|
);
|
|
34792
34757
|
if (columnHit) {
|
|
34793
|
-
const columnId = _optionalChain([columnHit, 'access',
|
|
34758
|
+
const columnId = _optionalChain([columnHit, 'access', _684 => _684.data, 'optionalAccess', _685 => _685.droppableContainer, 'optionalAccess', _686 => _686.data, 'optionalAccess', _687 => _687.current, 'optionalAccess', _688 => _688.columnId]);
|
|
34794
34759
|
const ticketsInColumn = args.droppableContainers.filter((c) => {
|
|
34795
34760
|
const d = c.data.current;
|
|
34796
|
-
return _optionalChain([d, 'optionalAccess',
|
|
34761
|
+
return _optionalChain([d, 'optionalAccess', _689 => _689.type]) === "ticket" && d.columnId === columnId;
|
|
34797
34762
|
});
|
|
34798
34763
|
if (ticketsInColumn.length > 0) {
|
|
34799
34764
|
const closest = _core.closestCorners.call(void 0, { ...args, droppableContainers: ticketsInColumn });
|
|
@@ -34818,20 +34783,20 @@ function Board({
|
|
|
34818
34783
|
const overId = String(over.id);
|
|
34819
34784
|
if (activeId === overId) return;
|
|
34820
34785
|
const overData = over.data.current;
|
|
34821
|
-
const fromColumnId = _optionalChain([locate, 'call',
|
|
34822
|
-
const toColumnId = _optionalChain([overData, 'optionalAccess',
|
|
34786
|
+
const fromColumnId = _optionalChain([locate, 'call', _690 => _690(items, activeId), 'optionalAccess', _691 => _691.columnId]);
|
|
34787
|
+
const toColumnId = _optionalChain([overData, 'optionalAccess', _692 => _692.columnId]);
|
|
34823
34788
|
if (!fromColumnId || !toColumnId || fromColumnId === toColumnId) return;
|
|
34824
34789
|
const origin = dragOriginRef.current;
|
|
34825
|
-
const isReturnToOrigin = _optionalChain([origin, 'optionalAccess',
|
|
34790
|
+
const isReturnToOrigin = _optionalChain([origin, 'optionalAccess', _693 => _693.fromColumnId]) === toColumnId;
|
|
34826
34791
|
const targetCol = items.find((c) => c.id === toColumnId);
|
|
34827
|
-
const blockedBySource = !isReturnToOrigin && !!_optionalChain([targetCol, 'optionalAccess',
|
|
34828
|
-
if (_optionalChain([targetCol, 'optionalAccess',
|
|
34792
|
+
const blockedBySource = !isReturnToOrigin && !!_optionalChain([targetCol, 'optionalAccess', _694 => _694.allowedFromColumns]) && !!origin && !targetCol.allowedFromColumns.includes(origin.fromColumnId);
|
|
34793
|
+
if (_optionalChain([targetCol, 'optionalAccess', _695 => _695.dropDisabled]) && !isReturnToOrigin || blockedBySource) return;
|
|
34829
34794
|
setItems((prev) => {
|
|
34830
34795
|
const fromIndex = findIndexInColumn(prev, fromColumnId, activeId);
|
|
34831
34796
|
const toCol = prev.find((c) => c.id === toColumnId);
|
|
34832
34797
|
if (fromIndex < 0 || !toCol) return prev;
|
|
34833
34798
|
let toIndex;
|
|
34834
|
-
if (_optionalChain([overData, 'optionalAccess',
|
|
34799
|
+
if (_optionalChain([overData, 'optionalAccess', _696 => _696.type]) === "column") {
|
|
34835
34800
|
toIndex = toCol.tickets.length;
|
|
34836
34801
|
} else {
|
|
34837
34802
|
const overIndex = toCol.tickets.findIndex((t) => t.id === overId);
|
|
@@ -34873,14 +34838,14 @@ function Board({
|
|
|
34873
34838
|
const toColumnId = located.columnId;
|
|
34874
34839
|
const isCrossColumn = origin.fromColumnId !== toColumnId;
|
|
34875
34840
|
const targetCol = items.find((c) => c.id === toColumnId);
|
|
34876
|
-
if (isCrossColumn && (_optionalChain([targetCol, 'optionalAccess',
|
|
34841
|
+
if (isCrossColumn && (_optionalChain([targetCol, 'optionalAccess', _697 => _697.dropDisabled]) || _optionalChain([targetCol, 'optionalAccess', _698 => _698.allowedFromColumns]) && !targetCol.allowedFromColumns.includes(origin.fromColumnId))) {
|
|
34877
34842
|
setItems(columns);
|
|
34878
34843
|
return;
|
|
34879
34844
|
}
|
|
34880
34845
|
let finalIndex = located.index;
|
|
34881
|
-
let finalColumnTickets = _nullishCoalesce(_optionalChain([items, 'access',
|
|
34846
|
+
let finalColumnTickets = _nullishCoalesce(_optionalChain([items, 'access', _699 => _699.find, 'call', _700 => _700((c) => c.id === toColumnId), 'optionalAccess', _701 => _701.tickets]), () => ( []));
|
|
34882
34847
|
const overData = over.data.current;
|
|
34883
|
-
if (_optionalChain([overData, 'optionalAccess',
|
|
34848
|
+
if (_optionalChain([overData, 'optionalAccess', _702 => _702.type]) === "ticket") {
|
|
34884
34849
|
const overIndex = findIndexInColumn(items, toColumnId, String(over.id));
|
|
34885
34850
|
if (overIndex >= 0 && overIndex !== located.index) {
|
|
34886
34851
|
finalColumnTickets = _sortable.arrayMove.call(void 0, finalColumnTickets, located.index, overIndex);
|
|
@@ -34900,8 +34865,8 @@ function Board({
|
|
|
34900
34865
|
ticketId: origin.ticketId,
|
|
34901
34866
|
fromColumnId: origin.fromColumnId,
|
|
34902
34867
|
toColumnId,
|
|
34903
|
-
afterTicketId: _nullishCoalesce(_optionalChain([finalColumnTickets, 'access',
|
|
34904
|
-
beforeTicketId: _nullishCoalesce(_optionalChain([finalColumnTickets, 'access',
|
|
34868
|
+
afterTicketId: _nullishCoalesce(_optionalChain([finalColumnTickets, 'access', _703 => _703[finalIndex - 1], 'optionalAccess', _704 => _704.id]), () => ( null)),
|
|
34869
|
+
beforeTicketId: _nullishCoalesce(_optionalChain([finalColumnTickets, 'access', _705 => _705[finalIndex + 1], 'optionalAccess', _706 => _706.id]), () => ( null))
|
|
34905
34870
|
});
|
|
34906
34871
|
};
|
|
34907
34872
|
const handleDragCancel = () => {
|
|
@@ -34930,8 +34895,8 @@ function Board({
|
|
|
34930
34895
|
children: items.map((column, i) => {
|
|
34931
34896
|
const prev = items[i - 1];
|
|
34932
34897
|
const next = items[i + 1];
|
|
34933
|
-
const joinLeft = !!(column.system && _optionalChain([prev, 'optionalAccess',
|
|
34934
|
-
const joinRight = !!(column.system && _optionalChain([next, 'optionalAccess',
|
|
34898
|
+
const joinLeft = !!(column.system && _optionalChain([prev, 'optionalAccess', _707 => _707.system]));
|
|
34899
|
+
const joinRight = !!(column.system && _optionalChain([next, 'optionalAccess', _708 => _708.system]));
|
|
34935
34900
|
const showGap = i > 0 && !joinLeft;
|
|
34936
34901
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React105.Fragment, { children: [
|
|
34937
34902
|
showGap && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: "w-[var(--spacing-system-mf)] shrink-0" }),
|
|
@@ -34984,7 +34949,7 @@ function Board({
|
|
|
34984
34949
|
{
|
|
34985
34950
|
ticket: activeTicket.ticket,
|
|
34986
34951
|
columnId: activeTicket.columnId,
|
|
34987
|
-
columnColor: _optionalChain([items, 'access',
|
|
34952
|
+
columnColor: _optionalChain([items, 'access', _709 => _709.find, 'call', _710 => _710((c) => c.id === activeTicket.columnId), 'optionalAccess', _711 => _711.color]),
|
|
34988
34953
|
isOverlay: true
|
|
34989
34954
|
}
|
|
34990
34955
|
) : null })
|
|
@@ -35000,7 +34965,7 @@ function locate(cols, ticketId) {
|
|
|
35000
34965
|
return null;
|
|
35001
34966
|
}
|
|
35002
34967
|
function findIndexInColumn(cols, columnId, ticketId) {
|
|
35003
|
-
return _nullishCoalesce(_optionalChain([cols, 'access',
|
|
34968
|
+
return _nullishCoalesce(_optionalChain([cols, 'access', _712 => _712.find, 'call', _713 => _713((c) => c.id === columnId), 'optionalAccess', _714 => _714.tickets, 'access', _715 => _715.findIndex, 'call', _716 => _716((t) => t.id === ticketId)]), () => ( -1));
|
|
35004
34969
|
}
|
|
35005
34970
|
|
|
35006
34971
|
// src/components/features/board/types.ts
|
|
@@ -35248,7 +35213,7 @@ function Header2({ config, platform }) {
|
|
|
35248
35213
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
35249
35214
|
"flex justify-start w-full",
|
|
35250
35215
|
"font-bold text-[16px] leading-none tracking-[-0.32px]",
|
|
35251
|
-
index < (_nullishCoalesce(_optionalChain([item, 'access',
|
|
35216
|
+
index < (_nullishCoalesce(_optionalChain([item, 'access', _717 => _717.children, 'optionalAccess', _718 => _718.length]), () => ( 0))) - 1 && "mb-1",
|
|
35252
35217
|
"text-ods-text-primary",
|
|
35253
35218
|
// All dropdown items use primary text color
|
|
35254
35219
|
child.isActive && "bg-ods-bg-hover"
|
|
@@ -35340,7 +35305,7 @@ function Header2({ config, platform }) {
|
|
|
35340
35305
|
style: config.style,
|
|
35341
35306
|
children: [
|
|
35342
35307
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-start flex-shrink-0", children: [
|
|
35343
|
-
_optionalChain([config, 'access',
|
|
35308
|
+
_optionalChain([config, 'access', _719 => _719.actions, 'optionalAccess', _720 => _720.left]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center", children: config.actions.left }),
|
|
35344
35309
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWBR7H6E3cjs.next_link_default, { href: config.logo.href, className: "transition-opacity duration-200 hover:opacity-80", children: config.logo.element })
|
|
35345
35310
|
] }),
|
|
35346
35311
|
config.navigation && config.navigation.items.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -35357,7 +35322,7 @@ function Header2({ config, platform }) {
|
|
|
35357
35322
|
}
|
|
35358
35323
|
),
|
|
35359
35324
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-end gap-4 flex-shrink-0", children: [
|
|
35360
|
-
_optionalChain([config, 'access',
|
|
35325
|
+
_optionalChain([config, 'access', _721 => _721.actions, 'optionalAccess', _722 => _722.right]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden md:flex items-center gap-4", children: config.actions.right }),
|
|
35361
35326
|
config.mobile && config.mobile.enabled && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
35362
35327
|
_chunkGA5AN24Tcjs.Button,
|
|
35363
35328
|
{
|
|
@@ -35365,10 +35330,10 @@ function Header2({ config, platform }) {
|
|
|
35365
35330
|
size: "icon",
|
|
35366
35331
|
className: "flex md:hidden",
|
|
35367
35332
|
onClick: () => {
|
|
35368
|
-
_optionalChain([config, 'access',
|
|
35333
|
+
_optionalChain([config, 'access', _723 => _723.mobile, 'optionalAccess', _724 => _724.onToggle, 'optionalCall', _725 => _725()]);
|
|
35369
35334
|
},
|
|
35370
|
-
"aria-label": _optionalChain([config, 'access',
|
|
35371
|
-
leftIcon: _optionalChain([config, 'access',
|
|
35335
|
+
"aria-label": _optionalChain([config, 'access', _726 => _726.mobile, 'optionalAccess', _727 => _727.isOpen]) ? "Close menu" : "Open menu",
|
|
35336
|
+
leftIcon: _optionalChain([config, 'access', _728 => _728.mobile, 'optionalAccess', _729 => _729.menuIcon]) || /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.Menu01Icon, {})
|
|
35372
35337
|
}
|
|
35373
35338
|
)
|
|
35374
35339
|
] })
|
|
@@ -35385,10 +35350,10 @@ function Header2({ config, platform }) {
|
|
|
35385
35350
|
// src/components/navigation/header-skeleton.tsx
|
|
35386
35351
|
|
|
35387
35352
|
function HeaderSkeleton({ config }) {
|
|
35388
|
-
const showNavigation = _optionalChain([config, 'optionalAccess',
|
|
35389
|
-
const showActions = _optionalChain([config, 'optionalAccess',
|
|
35390
|
-
const showMobileMenu = _optionalChain([config, 'optionalAccess',
|
|
35391
|
-
const isAdminHeader = _optionalChain([config, 'optionalAccess',
|
|
35353
|
+
const showNavigation = _optionalChain([config, 'optionalAccess', _730 => _730.navigation]) && config.navigation.items.length > 0;
|
|
35354
|
+
const showActions = _optionalChain([config, 'optionalAccess', _731 => _731.actions, 'optionalAccess', _732 => _732.right]) && config.actions.right.length > 0;
|
|
35355
|
+
const showMobileMenu = _optionalChain([config, 'optionalAccess', _733 => _733.mobile, 'optionalAccess', _734 => _734.enabled]);
|
|
35356
|
+
const isAdminHeader = _optionalChain([config, 'optionalAccess', _735 => _735.className, 'optionalAccess', _736 => _736.includes, 'call', _737 => _737("admin")]);
|
|
35392
35357
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "sticky top-0 z-40 w-full", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
35393
35358
|
"header",
|
|
35394
35359
|
{
|
|
@@ -35397,11 +35362,11 @@ function HeaderSkeleton({ config }) {
|
|
|
35397
35362
|
"bg-ods-card border-b border-ods-border backdrop-blur-sm",
|
|
35398
35363
|
"px-6 py-3",
|
|
35399
35364
|
"transition-opacity duration-300 ease-in-out",
|
|
35400
|
-
_optionalChain([config, 'optionalAccess',
|
|
35365
|
+
_optionalChain([config, 'optionalAccess', _738 => _738.className])
|
|
35401
35366
|
),
|
|
35402
35367
|
children: [
|
|
35403
35368
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-start flex-shrink-0", children: [
|
|
35404
|
-
isAdminHeader && _optionalChain([config, 'optionalAccess',
|
|
35369
|
+
isAdminHeader && _optionalChain([config, 'optionalAccess', _739 => _739.actions, 'optionalAccess', _740 => _740.left]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mr-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-10 w-10 bg-ods-border rounded animate-pulse" }) }),
|
|
35405
35370
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
35406
35371
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-8 w-8 bg-ods-border rounded animate-pulse" }),
|
|
35407
35372
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-6 w-24 bg-ods-border rounded animate-pulse" })
|
|
@@ -35409,8 +35374,8 @@ function HeaderSkeleton({ config }) {
|
|
|
35409
35374
|
] }),
|
|
35410
35375
|
showNavigation && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "nav", { className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
35411
35376
|
"hidden md:flex items-center gap-2",
|
|
35412
|
-
_optionalChain([config, 'optionalAccess',
|
|
35413
|
-
_optionalChain([config, 'optionalAccess',
|
|
35377
|
+
_optionalChain([config, 'optionalAccess', _741 => _741.navigation, 'optionalAccess', _742 => _742.position]) === "center" && "absolute left-1/2 transform -translate-x-1/2",
|
|
35378
|
+
_optionalChain([config, 'optionalAccess', _743 => _743.navigation, 'optionalAccess', _744 => _744.position]) === "right" && "ml-auto mr-4"
|
|
35414
35379
|
), children: [
|
|
35415
35380
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-10 w-20 bg-ods-border rounded animate-pulse" }),
|
|
35416
35381
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-10 w-28 bg-ods-border rounded animate-pulse" }),
|
|
@@ -35458,7 +35423,7 @@ function MobileNavPanel({ isOpen, config }) {
|
|
|
35458
35423
|
_react.useEffect.call(void 0, () => {
|
|
35459
35424
|
const handleKeyDown = (e) => {
|
|
35460
35425
|
if (e.key === "Escape" && isOpen) {
|
|
35461
|
-
_optionalChain([config, 'access',
|
|
35426
|
+
_optionalChain([config, 'access', _745 => _745.onClose, 'optionalCall', _746 => _746()]);
|
|
35462
35427
|
}
|
|
35463
35428
|
};
|
|
35464
35429
|
if (isOpen) {
|
|
@@ -35475,7 +35440,7 @@ function MobileNavPanel({ isOpen, config }) {
|
|
|
35475
35440
|
if (item.onClick) {
|
|
35476
35441
|
item.onClick();
|
|
35477
35442
|
}
|
|
35478
|
-
_optionalChain([config, 'access',
|
|
35443
|
+
_optionalChain([config, 'access', _747 => _747.onClose, 'optionalCall', _748 => _748()]);
|
|
35479
35444
|
};
|
|
35480
35445
|
if (item.href) {
|
|
35481
35446
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -35570,7 +35535,7 @@ _chunkGA5AN24Tcjs.init_button2.call(void 0, );
|
|
|
35570
35535
|
function SlidingSidebar({ config }) {
|
|
35571
35536
|
const [expandedItems, setExpandedItems] = _react.useState.call(void 0, /* @__PURE__ */ new Set());
|
|
35572
35537
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
35573
|
-
const headerHeight =
|
|
35538
|
+
const headerHeight = _chunkJWBRDNYHcjs.useHeaderHeight.call(void 0, );
|
|
35574
35539
|
_react.useEffect.call(void 0, () => {
|
|
35575
35540
|
setMounted(true);
|
|
35576
35541
|
}, []);
|
|
@@ -35645,7 +35610,7 @@ function SlidingSidebar({ config }) {
|
|
|
35645
35610
|
variant: "transparent",
|
|
35646
35611
|
size: "default",
|
|
35647
35612
|
onClick: () => {
|
|
35648
|
-
_optionalChain([item, 'access',
|
|
35613
|
+
_optionalChain([item, 'access', _749 => _749.onClick, 'optionalCall', _750 => _750()]);
|
|
35649
35614
|
config.onClose();
|
|
35650
35615
|
},
|
|
35651
35616
|
leftIcon: item.icon,
|
|
@@ -35668,7 +35633,7 @@ function SlidingSidebar({ config }) {
|
|
|
35668
35633
|
variant: "transparent",
|
|
35669
35634
|
size: "default",
|
|
35670
35635
|
onClick: () => {
|
|
35671
|
-
_optionalChain([item, 'access',
|
|
35636
|
+
_optionalChain([item, 'access', _751 => _751.onClick, 'optionalCall', _752 => _752()]);
|
|
35672
35637
|
config.onClose();
|
|
35673
35638
|
},
|
|
35674
35639
|
leftIcon: item.icon,
|
|
@@ -35795,7 +35760,7 @@ function StickySectionNav({
|
|
|
35795
35760
|
] });
|
|
35796
35761
|
}
|
|
35797
35762
|
function useSectionNavigation(sections, options) {
|
|
35798
|
-
const [activeSection, setActiveSection] = _react.useState.call(void 0, _optionalChain([sections, 'access',
|
|
35763
|
+
const [activeSection, setActiveSection] = _react.useState.call(void 0, _optionalChain([sections, 'access', _753 => _753[0], 'optionalAccess', _754 => _754.id]) || "");
|
|
35799
35764
|
const isScrollingFromClick = _react.useRef.call(void 0, false);
|
|
35800
35765
|
const { offset: offset2 = 100 } = options || {};
|
|
35801
35766
|
const handleSectionClick = _react.useCallback.call(void 0, (sectionId) => {
|
|
@@ -35803,7 +35768,7 @@ function useSectionNavigation(sections, options) {
|
|
|
35803
35768
|
if (!targetElement) return;
|
|
35804
35769
|
isScrollingFromClick.current = true;
|
|
35805
35770
|
setActiveSection(sectionId);
|
|
35806
|
-
|
|
35771
|
+
_chunkJWBRDNYHcjs.scrollElementIntoView.call(void 0, targetElement, { headerOffset: offset2 });
|
|
35807
35772
|
setTimeout(() => {
|
|
35808
35773
|
isScrollingFromClick.current = false;
|
|
35809
35774
|
}, 500);
|
|
@@ -35819,7 +35784,7 @@ function useSectionNavigation(sections, options) {
|
|
|
35819
35784
|
const handleScroll = () => {
|
|
35820
35785
|
if (isScrollingFromClick.current) return;
|
|
35821
35786
|
const scrollPosition = window.scrollY + offset2 + 50;
|
|
35822
|
-
let currentSection = _optionalChain([sections, 'access',
|
|
35787
|
+
let currentSection = _optionalChain([sections, 'access', _755 => _755[0], 'optionalAccess', _756 => _756.id]) || "";
|
|
35823
35788
|
for (let i = sections.length - 1; i >= 0; i--) {
|
|
35824
35789
|
const element = document.getElementById(sections[i].id);
|
|
35825
35790
|
if (element && scrollPosition >= element.offsetTop) {
|
|
@@ -35989,10 +35954,10 @@ var MINIMIZED_WIDTH = 56;
|
|
|
35989
35954
|
var EXPANDED_WIDTH = 224;
|
|
35990
35955
|
var STORAGE_KEY = "of.navigationSidebar.minimized";
|
|
35991
35956
|
function NavigationSidebar({ config, disabled = false }) {
|
|
35992
|
-
const isMdUp = _nullishCoalesce(
|
|
35993
|
-
const isLgUp = _nullishCoalesce(
|
|
35957
|
+
const isMdUp = _nullishCoalesce(_chunkJWBRDNYHcjs.useMdUp.call(void 0, ), () => ( false));
|
|
35958
|
+
const isLgUp = _nullishCoalesce(_chunkJWBRDNYHcjs.useLgUp.call(void 0, ), () => ( false));
|
|
35994
35959
|
const isTablet = isMdUp && !isLgUp;
|
|
35995
|
-
const [desktopMinimized, setDesktopMinimized] =
|
|
35960
|
+
const [desktopMinimized, setDesktopMinimized] = _chunkJWBRDNYHcjs.useLocalStorage.call(void 0,
|
|
35996
35961
|
STORAGE_KEY,
|
|
35997
35962
|
_nullishCoalesce(config.minimized, () => ( false))
|
|
35998
35963
|
);
|
|
@@ -36010,7 +35975,7 @@ function NavigationSidebar({ config, disabled = false }) {
|
|
|
36010
35975
|
} else {
|
|
36011
35976
|
setDesktopMinimized((prev) => !prev);
|
|
36012
35977
|
}
|
|
36013
|
-
_optionalChain([config, 'access',
|
|
35978
|
+
_optionalChain([config, 'access', _757 => _757.onToggleMinimized, 'optionalCall', _758 => _758()]);
|
|
36014
35979
|
}, [isTablet, setDesktopMinimized, config]);
|
|
36015
35980
|
const closeOverlay = _react.useCallback.call(void 0, () => {
|
|
36016
35981
|
setTabletMinimized(true);
|
|
@@ -36024,11 +35989,11 @@ function NavigationSidebar({ config, disabled = false }) {
|
|
|
36024
35989
|
return () => document.removeEventListener("keydown", handleKeyDown);
|
|
36025
35990
|
}, [isOverlayOpen, closeOverlay]);
|
|
36026
35991
|
const handleItemClick = _react.useCallback.call(void 0, (item, event) => {
|
|
36027
|
-
_optionalChain([event, 'optionalAccess',
|
|
35992
|
+
_optionalChain([event, 'optionalAccess', _759 => _759.stopPropagation, 'call', _760 => _760()]);
|
|
36028
35993
|
if (item.onClick) {
|
|
36029
35994
|
item.onClick();
|
|
36030
35995
|
} else if (item.path) {
|
|
36031
|
-
_optionalChain([config, 'access',
|
|
35996
|
+
_optionalChain([config, 'access', _761 => _761.onNavigate, 'optionalCall', _762 => _762(item.path)]);
|
|
36032
35997
|
}
|
|
36033
35998
|
if (isTablet) setTabletMinimized(true);
|
|
36034
35999
|
}, [config, isTablet]);
|
|
@@ -36153,11 +36118,11 @@ function HeaderGlobalSearch({
|
|
|
36153
36118
|
};
|
|
36154
36119
|
const handleSubmit = (e) => {
|
|
36155
36120
|
e.preventDefault();
|
|
36156
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
36121
|
+
_optionalChain([onSubmit, 'optionalCall', _763 => _763(currentValue)]);
|
|
36157
36122
|
};
|
|
36158
36123
|
const handleKeyDown = (e) => {
|
|
36159
36124
|
if (e.key === "Enter") {
|
|
36160
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
36125
|
+
_optionalChain([onSubmit, 'optionalCall', _764 => _764(currentValue)]);
|
|
36161
36126
|
}
|
|
36162
36127
|
};
|
|
36163
36128
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -36251,8 +36216,8 @@ function HeaderOrganizationFilter({
|
|
|
36251
36216
|
className
|
|
36252
36217
|
}) {
|
|
36253
36218
|
const selectedOrg = organizations.find((o) => o.id === selectedOrgId);
|
|
36254
|
-
const displayName = _optionalChain([selectedOrg, 'optionalAccess',
|
|
36255
|
-
const deviceCount = _nullishCoalesce(_optionalChain([selectedOrg, 'optionalAccess',
|
|
36219
|
+
const displayName = _optionalChain([selectedOrg, 'optionalAccess', _765 => _765.name]) || "All Organizations";
|
|
36220
|
+
const deviceCount = _nullishCoalesce(_optionalChain([selectedOrg, 'optionalAccess', _766 => _766.deviceCount]), () => ( totalDeviceCount));
|
|
36256
36221
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGA5AN24Tcjs.DropdownMenu, { children: [
|
|
36257
36222
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGA5AN24Tcjs.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
36258
36223
|
"button",
|
|
@@ -36277,11 +36242,11 @@ function HeaderOrganizationFilter({
|
|
|
36277
36242
|
}
|
|
36278
36243
|
) }),
|
|
36279
36244
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGA5AN24Tcjs.DropdownMenuContent, { align: "end", className: "min-w-[240px]", children: [
|
|
36280
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGA5AN24Tcjs.DropdownMenuItem, { onClick: () => _optionalChain([onOrgChange, 'optionalCall',
|
|
36245
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGA5AN24Tcjs.DropdownMenuItem, { onClick: () => _optionalChain([onOrgChange, 'optionalCall', _767 => _767("")]), children: "All Organizations" }),
|
|
36281
36246
|
organizations.map((org) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
36282
36247
|
_chunkGA5AN24Tcjs.DropdownMenuItem,
|
|
36283
36248
|
{
|
|
36284
|
-
onClick: () => _optionalChain([onOrgChange, 'optionalCall',
|
|
36249
|
+
onClick: () => _optionalChain([onOrgChange, 'optionalCall', _768 => _768(org.id)]),
|
|
36285
36250
|
children: org.name
|
|
36286
36251
|
},
|
|
36287
36252
|
org.id
|
|
@@ -36316,7 +36281,7 @@ var AppHeader = React120.default.memo(function AppHeader2({
|
|
|
36316
36281
|
onToggleMobileMenu,
|
|
36317
36282
|
disabled = false
|
|
36318
36283
|
}) {
|
|
36319
|
-
const isMdUp = _nullishCoalesce(
|
|
36284
|
+
const isMdUp = _nullishCoalesce(_chunkJWBRDNYHcjs.useMdUp.call(void 0, ), () => ( false));
|
|
36320
36285
|
const dimmedClass = disabled ? "pointer-events-none opacity-50" : "";
|
|
36321
36286
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
36322
36287
|
"header",
|
|
@@ -36471,9 +36436,9 @@ function NotificationsHeaderButton({
|
|
|
36471
36436
|
dimmedClass
|
|
36472
36437
|
}) {
|
|
36473
36438
|
const ctx = useOptionalNotifications();
|
|
36474
|
-
const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
36475
|
-
const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
36476
|
-
const onClick = _optionalChain([ctx, 'optionalAccess',
|
|
36439
|
+
const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _769 => _769.unreadCount]), () => ( fallbackUnreadCount))) > 0;
|
|
36440
|
+
const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _770 => _770.isOpen]), () => ( false));
|
|
36441
|
+
const onClick = _optionalChain([ctx, 'optionalAccess', _771 => _771.toggle]);
|
|
36477
36442
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
36478
36443
|
HeaderButton,
|
|
36479
36444
|
{
|
|
@@ -36537,7 +36502,7 @@ var MobileBurgerMenu = React120.default.memo(function MobileBurgerMenu2({
|
|
|
36537
36502
|
if (item.onClick) {
|
|
36538
36503
|
item.onClick();
|
|
36539
36504
|
} else if (item.path) {
|
|
36540
|
-
_optionalChain([config, 'access',
|
|
36505
|
+
_optionalChain([config, 'access', _772 => _772.onNavigate, 'optionalCall', _773 => _773(item.path)]);
|
|
36541
36506
|
}
|
|
36542
36507
|
onClose();
|
|
36543
36508
|
}, [config, onClose]);
|
|
@@ -37092,7 +37057,7 @@ var ToolBadge = ({
|
|
|
37092
37057
|
}) => {
|
|
37093
37058
|
const label = getToolLabel(toolType);
|
|
37094
37059
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "flex items-center gap-1 text-ods-text-secondary", className), children: [
|
|
37095
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
37060
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJWBRDNYHcjs.ToolIcon, { toolType, className: iconClassName, size: 16 }),
|
|
37096
37061
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary text-h4", children: label })
|
|
37097
37062
|
] });
|
|
37098
37063
|
};
|
|
@@ -37140,7 +37105,7 @@ var ShellTypeBadge = ({
|
|
|
37140
37105
|
className,
|
|
37141
37106
|
iconClassName
|
|
37142
37107
|
}) => {
|
|
37143
|
-
const normalizedType = _optionalChain([shellType, 'optionalAccess',
|
|
37108
|
+
const normalizedType = _optionalChain([shellType, 'optionalAccess', _774 => _774.toUpperCase, 'call', _775 => _775()]);
|
|
37144
37109
|
const label = getShellLabel(normalizedType);
|
|
37145
37110
|
const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
|
|
37146
37111
|
const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
|
|
@@ -37464,7 +37429,7 @@ function OnboardingWalkthrough({
|
|
|
37464
37429
|
isStepSkipped,
|
|
37465
37430
|
allStepsComplete,
|
|
37466
37431
|
markMultipleComplete
|
|
37467
|
-
} =
|
|
37432
|
+
} = _chunkJWBRDNYHcjs.useOnboardingState.call(void 0, storageKey);
|
|
37468
37433
|
const hasAutoMarkedRef = _react.useRef.call(void 0, false);
|
|
37469
37434
|
const autoMarkingInProgressRef = _react.useRef.call(void 0, false);
|
|
37470
37435
|
const lastCompletionStatusRef = _react.useRef.call(void 0, null);
|
|
@@ -37527,12 +37492,12 @@ function OnboardingWalkthrough({
|
|
|
37527
37492
|
}
|
|
37528
37493
|
}, [state.completedSteps, markComplete]);
|
|
37529
37494
|
const handleStepSkip = (step) => {
|
|
37530
|
-
_optionalChain([step, 'access',
|
|
37495
|
+
_optionalChain([step, 'access', _776 => _776.onSkip, 'optionalCall', _777 => _777()]);
|
|
37531
37496
|
markSkipped(step.id);
|
|
37532
37497
|
};
|
|
37533
37498
|
const handleDismiss = () => {
|
|
37534
37499
|
dismissOnboarding();
|
|
37535
|
-
_optionalChain([onDismiss, 'optionalCall',
|
|
37500
|
+
_optionalChain([onDismiss, 'optionalCall', _778 => _778()]);
|
|
37536
37501
|
};
|
|
37537
37502
|
if (state.dismissed) {
|
|
37538
37503
|
return null;
|
|
@@ -37662,7 +37627,7 @@ var LogCard = ({ log, isLast, showConnector, onClick }) => {
|
|
|
37662
37627
|
onKeyDown: (e) => {
|
|
37663
37628
|
if (e.key === "Enter" || e.key === " ") {
|
|
37664
37629
|
e.preventDefault();
|
|
37665
|
-
_optionalChain([onClick, 'optionalCall',
|
|
37630
|
+
_optionalChain([onClick, 'optionalCall', _779 => _779()]);
|
|
37666
37631
|
}
|
|
37667
37632
|
},
|
|
37668
37633
|
children: [
|
|
@@ -37671,7 +37636,7 @@ var LogCard = ({ log, isLast, showConnector, onClick }) => {
|
|
|
37671
37636
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "font-['DM_Sans'] font-medium text-[14px] leading-5 text-white", children: log.title }),
|
|
37672
37637
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
37673
37638
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "font-['Azeret_Mono'] font-normal text-[13px] leading-4 text-ods-text-secondary uppercase tracking-wider", children: formatTimestamp(log.timestamp) }),
|
|
37674
|
-
log.toolType && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
37639
|
+
log.toolType && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJWBRDNYHcjs.ToolIcon, { toolType: log.toolType, size: 16 })
|
|
37675
37640
|
] })
|
|
37676
37641
|
] })
|
|
37677
37642
|
]
|
|
@@ -37763,7 +37728,7 @@ var LogsList = React117.forwardRef(({
|
|
|
37763
37728
|
log,
|
|
37764
37729
|
isLast: index === logs.length - 1,
|
|
37765
37730
|
showConnector,
|
|
37766
|
-
onClick: () => _optionalChain([onLogClick, 'optionalCall',
|
|
37731
|
+
onClick: () => _optionalChain([onLogClick, 'optionalCall', _780 => _780(log)])
|
|
37767
37732
|
},
|
|
37768
37733
|
log.id
|
|
37769
37734
|
))
|
|
@@ -37808,7 +37773,7 @@ function ServiceCard({ title, subtitle, icon, tag, rows, className }) {
|
|
|
37808
37773
|
}
|
|
37809
37774
|
function ServiceCardRowItem({ row }) {
|
|
37810
37775
|
const [revealed, setRevealed] = _react.useState.call(void 0, false);
|
|
37811
|
-
const { copy, copied } =
|
|
37776
|
+
const { copy, copied } = _chunkJWBRDNYHcjs.useCopyToClipboard.call(void 0, );
|
|
37812
37777
|
const actions = _react.useMemo.call(void 0, () => ({ copy: true, open: !!row.href, reveal: !!row.isSecret, ...row.actions }), [row]);
|
|
37813
37778
|
const displayValue = row.isSecret ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MaskedValue, { value: row.value, isRevealed: revealed }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: row.value });
|
|
37814
37779
|
const handleCopy = () => copy(_nullishCoalesce(row.copyValue, () => ( row.value)));
|
|
@@ -37864,7 +37829,7 @@ var Slider = React119.forwardRef(
|
|
|
37864
37829
|
({ className, value = [0], onValueChange, min = 0, max = 100, step = 1, ...props }, ref) => {
|
|
37865
37830
|
const handleChange = (e) => {
|
|
37866
37831
|
const newValue = [Number(e.target.value)];
|
|
37867
|
-
_optionalChain([onValueChange, 'optionalCall',
|
|
37832
|
+
_optionalChain([onValueChange, 'optionalCall', _781 => _781(newValue)]);
|
|
37868
37833
|
};
|
|
37869
37834
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
37870
37835
|
"input",
|
|
@@ -38298,7 +38263,7 @@ function CursorPaginationSimple({
|
|
|
38298
38263
|
{
|
|
38299
38264
|
variant: "transparent",
|
|
38300
38265
|
size: "icon",
|
|
38301
|
-
onClick: () => _optionalChain([onPrevious, 'optionalCall',
|
|
38266
|
+
onClick: () => _optionalChain([onPrevious, 'optionalCall', _782 => _782("")]),
|
|
38302
38267
|
disabled: !hasPreviousPage || loading,
|
|
38303
38268
|
className: "h-8 w-8",
|
|
38304
38269
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" }),
|
|
@@ -38310,7 +38275,7 @@ function CursorPaginationSimple({
|
|
|
38310
38275
|
{
|
|
38311
38276
|
variant: "transparent",
|
|
38312
38277
|
size: "icon",
|
|
38313
|
-
onClick: () => _optionalChain([onNext, 'optionalCall',
|
|
38278
|
+
onClick: () => _optionalChain([onNext, 'optionalCall', _783 => _783("")]),
|
|
38314
38279
|
disabled: !hasNextPage || loading,
|
|
38315
38280
|
className: "h-8 w-8",
|
|
38316
38281
|
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" }),
|
|
@@ -38330,8 +38295,8 @@ function TableEmptyState({ message: message2, icon, action, className }) {
|
|
|
38330
38295
|
icon: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWZW7C7TFcjs.SearchIcon, {}))),
|
|
38331
38296
|
title: _nullishCoalesce(message2, () => ( "No results found")),
|
|
38332
38297
|
description: message2 == null ? "Try adjusting your search or filters" : void 0,
|
|
38333
|
-
buttonLabel: _optionalChain([action, 'optionalAccess',
|
|
38334
|
-
onButtonClick: _optionalChain([action, 'optionalAccess',
|
|
38298
|
+
buttonLabel: _optionalChain([action, 'optionalAccess', _784 => _784.label]),
|
|
38299
|
+
onButtonClick: _optionalChain([action, 'optionalAccess', _785 => _785.onClick]),
|
|
38335
38300
|
className: _chunkFIG2RKZFcjs.cn.call(void 0, "py-[var(--spacing-system-xxl)]", className)
|
|
38336
38301
|
}
|
|
38337
38302
|
);
|
|
@@ -38352,7 +38317,7 @@ function TableColumnFilterDropdown({
|
|
|
38352
38317
|
placement = "bottom-start",
|
|
38353
38318
|
dropdownClassName = "min-w-[240px]"
|
|
38354
38319
|
}) {
|
|
38355
|
-
const activeCount = _optionalChain([filters, 'optionalAccess',
|
|
38320
|
+
const activeCount = _optionalChain([filters, 'optionalAccess', _786 => _786[columnKey], 'optionalAccess', _787 => _787.length]) || 0;
|
|
38356
38321
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38357
38322
|
FiltersDropdown,
|
|
38358
38323
|
{
|
|
@@ -38395,7 +38360,7 @@ function TableColumnFilterDropdown({
|
|
|
38395
38360
|
delete newFilters[columnKey];
|
|
38396
38361
|
onFilterChange(newFilters);
|
|
38397
38362
|
},
|
|
38398
|
-
currentFilters: { [columnKey]: _optionalChain([filters, 'optionalAccess',
|
|
38363
|
+
currentFilters: { [columnKey]: _optionalChain([filters, 'optionalAccess', _788 => _788[columnKey]]) || [] },
|
|
38399
38364
|
placement,
|
|
38400
38365
|
dropdownClassName
|
|
38401
38366
|
}
|
|
@@ -38470,7 +38435,7 @@ function TableHeader({
|
|
|
38470
38435
|
}
|
|
38471
38436
|
return sortDirection === "asc" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.Arrow01UpIcon, { className: "w-4 h-4 text-ods-accent" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.Arrow01DownIcon, { className: "w-4 h-4 text-ods-accent" });
|
|
38472
38437
|
};
|
|
38473
|
-
const isLgUp = _nullishCoalesce(
|
|
38438
|
+
const isLgUp = _nullishCoalesce(_chunkJWBRDNYHcjs.useLgUp.call(void 0, ), () => ( false));
|
|
38474
38439
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
38475
38440
|
"div",
|
|
38476
38441
|
{
|
|
@@ -38605,7 +38570,7 @@ function TableCardSkeleton({
|
|
|
38605
38570
|
className,
|
|
38606
38571
|
rowClassName
|
|
38607
38572
|
}) {
|
|
38608
|
-
const primaryKey = _optionalChain([(_nullishCoalesce(columns.find((c) => /flex-(1|\[)/.test(c.width || "")), () => ( columns[0]))), 'optionalAccess',
|
|
38573
|
+
const primaryKey = _optionalChain([(_nullishCoalesce(columns.find((c) => /flex-(1|\[)/.test(c.width || "")), () => ( columns[0]))), 'optionalAccess', _789 => _789.key]);
|
|
38609
38574
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
38610
38575
|
"div",
|
|
38611
38576
|
{
|
|
@@ -38698,7 +38663,7 @@ function TableRow({
|
|
|
38698
38663
|
const keys = column.key.split(".");
|
|
38699
38664
|
let value = item;
|
|
38700
38665
|
for (const key of keys) {
|
|
38701
|
-
value = _optionalChain([value, 'optionalAccess',
|
|
38666
|
+
value = _optionalChain([value, 'optionalAccess', _790 => _790[key]]);
|
|
38702
38667
|
}
|
|
38703
38668
|
if (value === null || value === void 0) {
|
|
38704
38669
|
return "-";
|
|
@@ -38787,7 +38752,7 @@ function useTableMotion(enabled) {
|
|
|
38787
38752
|
// src/components/ui/table/table.tsx
|
|
38788
38753
|
|
|
38789
38754
|
function injectSyntheticColumns(columns, rowActions, renderRowActions, rowHref) {
|
|
38790
|
-
const hasActions = Boolean(_optionalChain([rowActions, 'optionalAccess',
|
|
38755
|
+
const hasActions = Boolean(_optionalChain([rowActions, 'optionalAccess', _791 => _791.length])) || Boolean(renderRowActions);
|
|
38791
38756
|
const result = [...columns];
|
|
38792
38757
|
if (hasActions) {
|
|
38793
38758
|
const actionsColumn = {
|
|
@@ -38883,7 +38848,7 @@ function Table({
|
|
|
38883
38848
|
return rowKey(item);
|
|
38884
38849
|
}
|
|
38885
38850
|
const key = item[rowKey];
|
|
38886
|
-
return _optionalChain([key, 'optionalAccess',
|
|
38851
|
+
return _optionalChain([key, 'optionalAccess', _792 => _792.toString, 'call', _793 => _793()]) || index.toString();
|
|
38887
38852
|
};
|
|
38888
38853
|
const getRowClassName = (item, index) => {
|
|
38889
38854
|
if (typeof rowClassName === "function") {
|
|
@@ -38917,23 +38882,23 @@ function Table({
|
|
|
38917
38882
|
const allSelected = selectedRows.length > 0 && selectedRows.length === data.length;
|
|
38918
38883
|
const someSelected = selectedRows.length > 0 && selectedRows.length < data.length;
|
|
38919
38884
|
const sentinelRef = _react.useRef.call(void 0, null);
|
|
38920
|
-
const onLoadMoreRef = _react.useRef.call(void 0, _optionalChain([infiniteScroll, 'optionalAccess',
|
|
38921
|
-
onLoadMoreRef.current = _optionalChain([infiniteScroll, 'optionalAccess',
|
|
38885
|
+
const onLoadMoreRef = _react.useRef.call(void 0, _optionalChain([infiniteScroll, 'optionalAccess', _794 => _794.onLoadMore]));
|
|
38886
|
+
onLoadMoreRef.current = _optionalChain([infiniteScroll, 'optionalAccess', _795 => _795.onLoadMore]);
|
|
38922
38887
|
_react.useEffect.call(void 0, () => {
|
|
38923
|
-
if (!_optionalChain([infiniteScroll, 'optionalAccess',
|
|
38888
|
+
if (!_optionalChain([infiniteScroll, 'optionalAccess', _796 => _796.hasNextPage]) || infiniteScroll.isFetchingNextPage) return;
|
|
38924
38889
|
const sentinel = sentinelRef.current;
|
|
38925
38890
|
if (!sentinel) return;
|
|
38926
38891
|
const observer = new IntersectionObserver(
|
|
38927
38892
|
(entries) => {
|
|
38928
|
-
if (_optionalChain([entries, 'access',
|
|
38929
|
-
_optionalChain([onLoadMoreRef, 'access',
|
|
38893
|
+
if (_optionalChain([entries, 'access', _797 => _797[0], 'optionalAccess', _798 => _798.isIntersecting])) {
|
|
38894
|
+
_optionalChain([onLoadMoreRef, 'access', _799 => _799.current, 'optionalCall', _800 => _800()]);
|
|
38930
38895
|
}
|
|
38931
38896
|
},
|
|
38932
38897
|
{ rootMargin: "200px" }
|
|
38933
38898
|
);
|
|
38934
38899
|
observer.observe(sentinel);
|
|
38935
38900
|
return () => observer.disconnect();
|
|
38936
|
-
}, [_optionalChain([infiniteScroll, 'optionalAccess',
|
|
38901
|
+
}, [_optionalChain([infiniteScroll, 'optionalAccess', _801 => _801.hasNextPage]), _optionalChain([infiniteScroll, 'optionalAccess', _802 => _802.isFetchingNextPage])]);
|
|
38937
38902
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "flex flex-col gap-1 w-full", containerClassName), children: [
|
|
38938
38903
|
showToolbar && bulkActions && selectedRows.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between bg-ods-card border border-ods-border rounded-[6px] p-3 mb-2", children: [
|
|
38939
38904
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary text-sm", children: [
|
|
@@ -39003,14 +38968,14 @@ function Table({
|
|
|
39003
38968
|
selected: isRowSelected(item),
|
|
39004
38969
|
onSelect: handleSelectRow,
|
|
39005
38970
|
animateRowReorder,
|
|
39006
|
-
motionDiv: _optionalChain([tableMotion, 'optionalAccess',
|
|
38971
|
+
motionDiv: _optionalChain([tableMotion, 'optionalAccess', _803 => _803.motionDiv])
|
|
39007
38972
|
},
|
|
39008
38973
|
getRowKey(item, index)
|
|
39009
38974
|
));
|
|
39010
|
-
const LayoutGroup = _optionalChain([tableMotion, 'optionalAccess',
|
|
38975
|
+
const LayoutGroup = _optionalChain([tableMotion, 'optionalAccess', _804 => _804.LayoutGroup]);
|
|
39011
38976
|
return animateRowReorder && LayoutGroup ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LayoutGroup, { children: rows }) : rows;
|
|
39012
38977
|
})(),
|
|
39013
|
-
_optionalChain([infiniteScroll, 'optionalAccess',
|
|
38978
|
+
_optionalChain([infiniteScroll, 'optionalAccess', _805 => _805.isFetchingNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39014
38979
|
TableCardSkeleton,
|
|
39015
38980
|
{
|
|
39016
38981
|
columns,
|
|
@@ -39019,7 +38984,7 @@ function Table({
|
|
|
39019
38984
|
hasChevron: Boolean(rowHref)
|
|
39020
38985
|
}
|
|
39021
38986
|
),
|
|
39022
|
-
_optionalChain([infiniteScroll, 'optionalAccess',
|
|
38987
|
+
_optionalChain([infiniteScroll, 'optionalAccess', _806 => _806.hasNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: sentinelRef, className: "h-1", "aria-hidden": "true" }),
|
|
39023
38988
|
!infiniteScroll && Array.from({ length: Math.max(0, skeletonRows - data.length) }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
39024
38989
|
"div",
|
|
39025
38990
|
{
|
|
@@ -39377,7 +39342,7 @@ function QueryReportTable({
|
|
|
39377
39342
|
);
|
|
39378
39343
|
const handleExport = () => {
|
|
39379
39344
|
exportToCSV(data, columns, exportFilename);
|
|
39380
|
-
_optionalChain([onExport, 'optionalCall',
|
|
39345
|
+
_optionalChain([onExport, 'optionalCall', _807 => _807()]);
|
|
39381
39346
|
};
|
|
39382
39347
|
const tableMinWidth = columns.length * (columnWidth + 16);
|
|
39383
39348
|
const {
|
|
@@ -39393,7 +39358,7 @@ function QueryReportTable({
|
|
|
39393
39358
|
onThumbPointerDown,
|
|
39394
39359
|
onThumbPointerMove,
|
|
39395
39360
|
onThumbPointerUp
|
|
39396
|
-
} =
|
|
39361
|
+
} = _chunkJWBRDNYHcjs.useHorizontalScrollbar.call(void 0, );
|
|
39397
39362
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "flex flex-col w-full", isCompact ? "gap-0" : "gap-6", className), children: [
|
|
39398
39363
|
!isCompact && (title || headerActions || showExport && data.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-end justify-between pt-6", children: [
|
|
39399
39364
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "font-mono font-semibold text-[32px] leading-[40px] text-ods-text-primary", children: title }),
|
|
@@ -39550,7 +39515,7 @@ function DataTableColumnFilter({
|
|
|
39550
39515
|
align = "left"
|
|
39551
39516
|
}) {
|
|
39552
39517
|
const currentValue = column.getFilterValue();
|
|
39553
|
-
const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess',
|
|
39518
|
+
const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess', _808 => _808.length]), () => ( 0));
|
|
39554
39519
|
const sections = _react.useMemo.call(void 0,
|
|
39555
39520
|
() => [
|
|
39556
39521
|
{
|
|
@@ -39624,13 +39589,13 @@ function DataTableHeader({
|
|
|
39624
39589
|
onSortChange
|
|
39625
39590
|
}) {
|
|
39626
39591
|
const table = useDataTableContext();
|
|
39627
|
-
const isLgUp = _nullishCoalesce(
|
|
39592
|
+
const isLgUp = _nullishCoalesce(_chunkJWBRDNYHcjs.useLgUp.call(void 0, ), () => ( false));
|
|
39628
39593
|
const headerGroup = table.getHeaderGroups()[0];
|
|
39629
39594
|
if (!headerGroup) return null;
|
|
39630
39595
|
const hasVisibleHeaderCell = headerGroup.headers.some((header) => {
|
|
39631
39596
|
if (header.isPlaceholder) return false;
|
|
39632
39597
|
if (isLgUp) return true;
|
|
39633
|
-
return Boolean(_optionalChain([header, 'access',
|
|
39598
|
+
return Boolean(_optionalChain([header, 'access', _809 => _809.column, 'access', _810 => _810.columnDef, 'access', _811 => _811.meta, 'optionalAccess', _812 => _812.filter]));
|
|
39634
39599
|
});
|
|
39635
39600
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39636
39601
|
"div",
|
|
@@ -39660,20 +39625,20 @@ function HeaderCell({ header, isLgUp, sort, onSortChange }) {
|
|
|
39660
39625
|
if (header.isPlaceholder) return null;
|
|
39661
39626
|
const column = header.column;
|
|
39662
39627
|
const meta = column.columnDef.meta;
|
|
39663
|
-
const hasFilter = Boolean(_optionalChain([meta, 'optionalAccess',
|
|
39664
|
-
const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
39665
|
-
const canSort = _optionalChain([meta, 'optionalAccess',
|
|
39666
|
-
const sortDir = _optionalChain([sort, 'optionalAccess',
|
|
39628
|
+
const hasFilter = Boolean(_optionalChain([meta, 'optionalAccess', _813 => _813.filter]));
|
|
39629
|
+
const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _814 => _814.align]), () => ( "left"));
|
|
39630
|
+
const canSort = _optionalChain([meta, 'optionalAccess', _815 => _815.sortable]) === true;
|
|
39631
|
+
const sortDir = _optionalChain([sort, 'optionalAccess', _816 => _816.id]) === column.id ? sort.desc ? "desc" : "asc" : false;
|
|
39667
39632
|
if (!isLgUp && !hasFilter) return null;
|
|
39668
39633
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39669
39634
|
"div",
|
|
39670
39635
|
{
|
|
39671
39636
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
39672
39637
|
"flex items-stretch",
|
|
39673
|
-
isLgUp && (_optionalChain([meta, 'optionalAccess',
|
|
39674
|
-
_optionalChain([meta, 'optionalAccess',
|
|
39638
|
+
isLgUp && (_optionalChain([meta, 'optionalAccess', _817 => _817.width]) || "flex-1 min-w-0"),
|
|
39639
|
+
_optionalChain([meta, 'optionalAccess', _818 => _818.headerClassName]),
|
|
39675
39640
|
// Don't apply hide classes if column is filterable on tablet (keep filter accessible)
|
|
39676
|
-
!(hasFilter && !isLgUp) && getHideClasses2(_optionalChain([meta, 'optionalAccess',
|
|
39641
|
+
!(hasFilter && !isLgUp) && getHideClasses2(_optionalChain([meta, 'optionalAccess', _819 => _819.hideAt]))
|
|
39677
39642
|
),
|
|
39678
39643
|
children: hasFilter ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39679
39644
|
DataTableColumnFilter,
|
|
@@ -39692,7 +39657,7 @@ function HeaderCell({ header, isLgUp, sort, onSortChange }) {
|
|
|
39692
39657
|
isLgUp && alignJustify(align),
|
|
39693
39658
|
canSort && "group cursor-pointer"
|
|
39694
39659
|
),
|
|
39695
|
-
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall',
|
|
39660
|
+
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall', _820 => _820(column.id)]) : void 0,
|
|
39696
39661
|
children: [
|
|
39697
39662
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
39698
39663
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -39757,7 +39722,7 @@ function DataTableSkeleton({
|
|
|
39757
39722
|
}) {
|
|
39758
39723
|
const table = useDataTableContext();
|
|
39759
39724
|
const columns = table.getVisibleFlatColumns();
|
|
39760
|
-
const firstColumnId = _optionalChain([columns, 'access',
|
|
39725
|
+
const firstColumnId = _optionalChain([columns, 'access', _821 => _821[0], 'optionalAccess', _822 => _822.id]);
|
|
39761
39726
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
39762
39727
|
"div",
|
|
39763
39728
|
{
|
|
@@ -39781,7 +39746,7 @@ function DataTableSkeleton({
|
|
|
39781
39746
|
{
|
|
39782
39747
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
39783
39748
|
"flex flex-col justify-center shrink-0",
|
|
39784
|
-
_optionalChain([meta, 'optionalAccess',
|
|
39749
|
+
_optionalChain([meta, 'optionalAccess', _823 => _823.width]) || "flex-1"
|
|
39785
39750
|
),
|
|
39786
39751
|
children: [
|
|
39787
39752
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-5 bg-ods-bg-surface rounded-sm w-3/4 mb-[var(--spacing-system-xxs)]" }),
|
|
@@ -39831,7 +39796,7 @@ function DataTableRowImpl({
|
|
|
39831
39796
|
const handleClick = _react.useCallback.call(void 0,
|
|
39832
39797
|
(e) => {
|
|
39833
39798
|
const target = e.target;
|
|
39834
|
-
if (!_optionalChain([containerRef, 'access',
|
|
39799
|
+
if (!_optionalChain([containerRef, 'access', _824 => _824.current, 'optionalAccess', _825 => _825.contains, 'call', _826 => _826(target)])) {
|
|
39835
39800
|
if (isLinkMode) e.preventDefault();
|
|
39836
39801
|
return;
|
|
39837
39802
|
}
|
|
@@ -39839,7 +39804,7 @@ function DataTableRowImpl({
|
|
|
39839
39804
|
if (isLinkMode) e.preventDefault();
|
|
39840
39805
|
return;
|
|
39841
39806
|
}
|
|
39842
|
-
_optionalChain([onClick, 'optionalCall',
|
|
39807
|
+
_optionalChain([onClick, 'optionalCall', _827 => _827(row.original)]);
|
|
39843
39808
|
},
|
|
39844
39809
|
[onClick, row.original, isLinkMode]
|
|
39845
39810
|
);
|
|
@@ -39864,10 +39829,10 @@ function DataTableRowImpl({
|
|
|
39864
39829
|
{
|
|
39865
39830
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
39866
39831
|
"flex flex-col overflow-hidden",
|
|
39867
|
-
alignJustify(_optionalChain([meta, 'optionalAccess',
|
|
39868
|
-
_optionalChain([meta, 'optionalAccess',
|
|
39869
|
-
_optionalChain([meta, 'optionalAccess',
|
|
39870
|
-
getHideClasses2(_optionalChain([meta, 'optionalAccess',
|
|
39832
|
+
alignJustify(_optionalChain([meta, 'optionalAccess', _828 => _828.align])),
|
|
39833
|
+
_optionalChain([meta, 'optionalAccess', _829 => _829.width]) || "flex-1 min-w-0",
|
|
39834
|
+
_optionalChain([meta, 'optionalAccess', _830 => _830.cellClassName]),
|
|
39835
|
+
getHideClasses2(_optionalChain([meta, 'optionalAccess', _831 => _831.hideAt]))
|
|
39871
39836
|
),
|
|
39872
39837
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CellContent, { children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) })
|
|
39873
39838
|
},
|
|
@@ -39947,7 +39912,7 @@ function DataTableBody({
|
|
|
39947
39912
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "flex flex-col gap-[var(--spacing-system-xsf)] w-full", className), children: [
|
|
39948
39913
|
rows.map((row, index) => {
|
|
39949
39914
|
const item = row.original;
|
|
39950
|
-
const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall',
|
|
39915
|
+
const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall', _832 => _832(item)]), () => ( void 0));
|
|
39951
39916
|
const cls = typeof rowClassName === "function" ? rowClassName(item, index) : rowClassName;
|
|
39952
39917
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39953
39918
|
DataTableRow,
|
|
@@ -39958,7 +39923,7 @@ function DataTableBody({
|
|
|
39958
39923
|
compact,
|
|
39959
39924
|
autoHeight,
|
|
39960
39925
|
className: cls,
|
|
39961
|
-
subRow: _optionalChain([renderSubRow, 'optionalCall',
|
|
39926
|
+
subRow: _optionalChain([renderSubRow, 'optionalCall', _833 => _833(item)])
|
|
39962
39927
|
},
|
|
39963
39928
|
row.id
|
|
39964
39929
|
);
|
|
@@ -40013,7 +39978,7 @@ function DataTableInfiniteFooter({
|
|
|
40013
39978
|
if (!sentinel) return;
|
|
40014
39979
|
const observer = new IntersectionObserver(
|
|
40015
39980
|
(entries) => {
|
|
40016
|
-
if (_optionalChain([entries, 'access',
|
|
39981
|
+
if (_optionalChain([entries, 'access', _834 => _834[0], 'optionalAccess', _835 => _835.isIntersecting])) onLoadMoreRef.current();
|
|
40017
39982
|
},
|
|
40018
39983
|
{ rootMargin }
|
|
40019
39984
|
);
|
|
@@ -40061,7 +40026,7 @@ function DataTableRowCount({
|
|
|
40061
40026
|
const table = useDataTableContext();
|
|
40062
40027
|
const count = _nullishCoalesce(totalCount, () => ( table.getRowModel().rows.length));
|
|
40063
40028
|
if (hideWhenEmpty && count === 0) return null;
|
|
40064
|
-
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall',
|
|
40029
|
+
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall', _836 => _836(count, itemName)]), () => ( (count === 1 ? itemName : `${itemName}s`)));
|
|
40065
40030
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
40066
40031
|
"span",
|
|
40067
40032
|
{
|
|
@@ -40193,7 +40158,7 @@ function SearchInput({
|
|
|
40193
40158
|
}) {
|
|
40194
40159
|
const [internalValue, setInternalValue] = React122.useState(defaultValue);
|
|
40195
40160
|
const currentValue = onChange ? _nullishCoalesce(value, () => ( "")) : internalValue;
|
|
40196
|
-
const debouncedValue =
|
|
40161
|
+
const debouncedValue = _chunkJWBRDNYHcjs.useDebounce.call(void 0, currentValue, debounceMs);
|
|
40197
40162
|
const [isOpen, setIsOpen] = React122.useState(false);
|
|
40198
40163
|
const [highlightedIndex, setHighlightedIndex] = React122.useState(-1);
|
|
40199
40164
|
const containerRef = React122.useRef(null);
|
|
@@ -40205,7 +40170,7 @@ function SearchInput({
|
|
|
40205
40170
|
textMeasureRef,
|
|
40206
40171
|
badgeRef,
|
|
40207
40172
|
inputRef
|
|
40208
|
-
} =
|
|
40173
|
+
} = _chunkJWBRDNYHcjs.useAutoLimitTags.call(void 0, {
|
|
40209
40174
|
count: filterChips.length,
|
|
40210
40175
|
limitTags,
|
|
40211
40176
|
// When chips exist, pass empty placeholder so the hook only reserves input minWidth,
|
|
@@ -40220,7 +40185,7 @@ function SearchInput({
|
|
|
40220
40185
|
if (!showHiddenTags) return;
|
|
40221
40186
|
const handleClick = (e) => {
|
|
40222
40187
|
const target = e.target;
|
|
40223
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
40188
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _837 => _837.current, 'optionalAccess', _838 => _838.contains, 'call', _839 => _839(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _840 => _840.current, 'optionalAccess', _841 => _841.contains, 'call', _842 => _842(target)])) {
|
|
40224
40189
|
setShowHiddenTags(false);
|
|
40225
40190
|
}
|
|
40226
40191
|
};
|
|
@@ -40268,10 +40233,10 @@ function SearchInput({
|
|
|
40268
40233
|
} else {
|
|
40269
40234
|
setInternalValue("");
|
|
40270
40235
|
}
|
|
40271
|
-
_optionalChain([inputRef, 'access',
|
|
40236
|
+
_optionalChain([inputRef, 'access', _843 => _843.current, 'optionalAccess', _844 => _844.focus, 'call', _845 => _845()]);
|
|
40272
40237
|
};
|
|
40273
40238
|
const handleResultClick = (result, e) => {
|
|
40274
|
-
_optionalChain([onResultSelect, 'optionalCall',
|
|
40239
|
+
_optionalChain([onResultSelect, 'optionalCall', _846 => _846(
|
|
40275
40240
|
result,
|
|
40276
40241
|
e ? {
|
|
40277
40242
|
metaKey: e.metaKey,
|
|
@@ -40303,7 +40268,7 @@ function SearchInput({
|
|
|
40303
40268
|
if (highlightedIndex >= 0 && flatResults[highlightedIndex]) {
|
|
40304
40269
|
handleResultClick(flatResults[highlightedIndex]);
|
|
40305
40270
|
} else {
|
|
40306
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
40271
|
+
_optionalChain([onSubmit, 'optionalCall', _847 => _847(currentValue)]);
|
|
40307
40272
|
}
|
|
40308
40273
|
break;
|
|
40309
40274
|
case "Escape":
|
|
@@ -40381,7 +40346,7 @@ function SearchInput({
|
|
|
40381
40346
|
dropdownVisible && "!border-ods-accent"
|
|
40382
40347
|
),
|
|
40383
40348
|
onClick: () => {
|
|
40384
|
-
_optionalChain([inputRef, 'access',
|
|
40349
|
+
_optionalChain([inputRef, 'access', _848 => _848.current, 'optionalAccess', _849 => _849.focus, 'call', _850 => _850()]);
|
|
40385
40350
|
setIsOpen(true);
|
|
40386
40351
|
},
|
|
40387
40352
|
children: [
|
|
@@ -40465,10 +40430,10 @@ function SearchInput({
|
|
|
40465
40430
|
align: "start",
|
|
40466
40431
|
onOpenAutoFocus: (e) => {
|
|
40467
40432
|
e.preventDefault();
|
|
40468
|
-
_optionalChain([inputRef, 'access',
|
|
40433
|
+
_optionalChain([inputRef, 'access', _851 => _851.current, 'optionalAccess', _852 => _852.focus, 'call', _853 => _853()]);
|
|
40469
40434
|
},
|
|
40470
40435
|
onInteractOutside: (e) => {
|
|
40471
|
-
if (_optionalChain([containerRef, 'access',
|
|
40436
|
+
if (_optionalChain([containerRef, 'access', _854 => _854.current, 'optionalAccess', _855 => _855.contains, 'call', _856 => _856(e.target)])) {
|
|
40472
40437
|
e.preventDefault();
|
|
40473
40438
|
}
|
|
40474
40439
|
},
|
|
@@ -40485,10 +40450,10 @@ function SearchInput({
|
|
|
40485
40450
|
ref: hiddenTagsPopupRef,
|
|
40486
40451
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
40487
40452
|
style: {
|
|
40488
|
-
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([containerRef, 'access',
|
|
40453
|
+
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([containerRef, 'access', _857 => _857.current, 'optionalAccess', _858 => _858.getBoundingClientRect, 'call', _859 => _859(), 'access', _860 => _860.left]), () => ( 0))) : 0
|
|
40489
40454
|
},
|
|
40490
40455
|
onRemove: (value2) => {
|
|
40491
|
-
_optionalChain([onFilterRemove, 'optionalCall',
|
|
40456
|
+
_optionalChain([onFilterRemove, 'optionalCall', _861 => _861(value2)]);
|
|
40492
40457
|
if (hiddenCount <= 1) setShowHiddenTags(false);
|
|
40493
40458
|
}
|
|
40494
40459
|
}
|
|
@@ -40539,7 +40504,7 @@ function FilterListItem({
|
|
|
40539
40504
|
}) {
|
|
40540
40505
|
const handleToggle = () => {
|
|
40541
40506
|
if (disabled) return;
|
|
40542
|
-
_optionalChain([onToggle, 'optionalCall',
|
|
40507
|
+
_optionalChain([onToggle, 'optionalCall', _862 => _862(!selected)]);
|
|
40543
40508
|
};
|
|
40544
40509
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
40545
40510
|
"div",
|
|
@@ -40586,7 +40551,7 @@ function FilterListItem({
|
|
|
40586
40551
|
CheckboxPrimitive4.Root,
|
|
40587
40552
|
{
|
|
40588
40553
|
checked: selected,
|
|
40589
|
-
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall',
|
|
40554
|
+
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall', _863 => _863(c === true)]),
|
|
40590
40555
|
onClick: (e) => e.stopPropagation(),
|
|
40591
40556
|
disabled,
|
|
40592
40557
|
"aria-label": title,
|
|
@@ -40672,7 +40637,7 @@ function TagSearchInput({
|
|
|
40672
40637
|
textMeasureRef,
|
|
40673
40638
|
badgeRef,
|
|
40674
40639
|
inputRef
|
|
40675
|
-
} =
|
|
40640
|
+
} = _chunkJWBRDNYHcjs.useAutoLimitTags.call(void 0, {
|
|
40676
40641
|
count: tags.length,
|
|
40677
40642
|
limitTags,
|
|
40678
40643
|
placeholder: currentPlaceholder
|
|
@@ -40685,7 +40650,7 @@ function TagSearchInput({
|
|
|
40685
40650
|
if (!showHiddenTags) return;
|
|
40686
40651
|
const handleClick = (e) => {
|
|
40687
40652
|
const target = e.target;
|
|
40688
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
40653
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _864 => _864.current, 'optionalAccess', _865 => _865.contains, 'call', _866 => _866(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _867 => _867.current, 'optionalAccess', _868 => _868.contains, 'call', _869 => _869(target)])) {
|
|
40689
40654
|
setShowHiddenTags(false);
|
|
40690
40655
|
}
|
|
40691
40656
|
};
|
|
@@ -40701,13 +40666,13 @@ function TagSearchInput({
|
|
|
40701
40666
|
e.preventDefault();
|
|
40702
40667
|
onSubmit(searchValue);
|
|
40703
40668
|
}
|
|
40704
|
-
_optionalChain([onKeyDown, 'optionalCall',
|
|
40669
|
+
_optionalChain([onKeyDown, 'optionalCall', _870 => _870(e)]);
|
|
40705
40670
|
};
|
|
40706
40671
|
const handleClearAll = (e) => {
|
|
40707
40672
|
e.stopPropagation();
|
|
40708
40673
|
e.preventDefault();
|
|
40709
|
-
_optionalChain([onClearAll, 'optionalCall',
|
|
40710
|
-
_optionalChain([inputRef, 'access',
|
|
40674
|
+
_optionalChain([onClearAll, 'optionalCall', _871 => _871()]);
|
|
40675
|
+
_optionalChain([inputRef, 'access', _872 => _872.current, 'optionalAccess', _873 => _873.focus, 'call', _874 => _874()]);
|
|
40711
40676
|
};
|
|
40712
40677
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: wrapperRef, className: "relative", children: [
|
|
40713
40678
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -40724,7 +40689,7 @@ function TagSearchInput({
|
|
|
40724
40689
|
className
|
|
40725
40690
|
),
|
|
40726
40691
|
onClick: () => {
|
|
40727
|
-
if (!disabled) _optionalChain([inputRef, 'access',
|
|
40692
|
+
if (!disabled) _optionalChain([inputRef, 'access', _875 => _875.current, 'optionalAccess', _876 => _876.focus, 'call', _877 => _877()]);
|
|
40728
40693
|
},
|
|
40729
40694
|
children: [
|
|
40730
40695
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 flex items-center pl-3", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWZW7C7TFcjs.SearchIcon, { className: "text-ods-text-secondary size-4 md:size-6" }) }),
|
|
@@ -40796,7 +40761,7 @@ function TagSearchInput({
|
|
|
40796
40761
|
items: hiddenTags,
|
|
40797
40762
|
disabled,
|
|
40798
40763
|
style: {
|
|
40799
|
-
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([wrapperRef, 'access',
|
|
40764
|
+
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([wrapperRef, 'access', _878 => _878.current, 'optionalAccess', _879 => _879.getBoundingClientRect, 'call', _880 => _880(), 'access', _881 => _881.left]), () => ( 0))) : 0
|
|
40800
40765
|
},
|
|
40801
40766
|
onRemove: (value) => {
|
|
40802
40767
|
onTagRemove(value);
|
|
@@ -40897,7 +40862,7 @@ function MarkdownEditor({
|
|
|
40897
40862
|
const [defaultExtraCommands, setDefaultExtraCommands] = _react.useState.call(void 0, []);
|
|
40898
40863
|
_react.useEffect.call(void 0, () => {
|
|
40899
40864
|
Promise.resolve().then(() => _interopRequireWildcard(require("@uiw/react-md-editor"))).then((mod) => {
|
|
40900
|
-
if (_optionalChain([mod, 'access',
|
|
40865
|
+
if (_optionalChain([mod, 'access', _882 => _882.commands, 'optionalAccess', _883 => _883.getExtraCommands])) {
|
|
40901
40866
|
setDefaultExtraCommands(mod.commands.getExtraCommands());
|
|
40902
40867
|
}
|
|
40903
40868
|
});
|
|
@@ -40931,7 +40896,7 @@ function MarkdownEditor({
|
|
|
40931
40896
|
const isImage = file.type.startsWith("image/");
|
|
40932
40897
|
const markdown = isImage ? `` : `[${file.name}](${url})`;
|
|
40933
40898
|
insertTextAtCursor(markdown);
|
|
40934
|
-
_optionalChain([onFileUploaded, 'optionalCall',
|
|
40899
|
+
_optionalChain([onFileUploaded, 'optionalCall', _884 => _884(url, file.name)]);
|
|
40935
40900
|
} catch (error) {
|
|
40936
40901
|
console.error("File upload failed:", error);
|
|
40937
40902
|
setUploadProgress("Upload failed. Please try again.");
|
|
@@ -40944,7 +40909,7 @@ function MarkdownEditor({
|
|
|
40944
40909
|
);
|
|
40945
40910
|
const handleFileInputChange = _react.useCallback.call(void 0,
|
|
40946
40911
|
(e) => {
|
|
40947
|
-
const file = _optionalChain([e, 'access',
|
|
40912
|
+
const file = _optionalChain([e, 'access', _885 => _885.target, 'access', _886 => _886.files, 'optionalAccess', _887 => _887[0]]);
|
|
40948
40913
|
if (file) {
|
|
40949
40914
|
handleFileUpload(file);
|
|
40950
40915
|
e.target.value = "";
|
|
@@ -40955,7 +40920,7 @@ function MarkdownEditor({
|
|
|
40955
40920
|
const handlePaste = _react.useCallback.call(void 0,
|
|
40956
40921
|
(e) => {
|
|
40957
40922
|
if (!onUploadFile) return;
|
|
40958
|
-
const items = _optionalChain([e, 'access',
|
|
40923
|
+
const items = _optionalChain([e, 'access', _888 => _888.clipboardData, 'optionalAccess', _889 => _889.items]);
|
|
40959
40924
|
if (!items) return;
|
|
40960
40925
|
for (const item of items) {
|
|
40961
40926
|
if (item.type.startsWith("image/")) {
|
|
@@ -40980,7 +40945,7 @@ function MarkdownEditor({
|
|
|
40980
40945
|
buttonProps: { "aria-label": "Upload file", title: "Upload file" },
|
|
40981
40946
|
icon: isUploading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "w-3 h-3 animate-spin" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "w-3 h-3" }),
|
|
40982
40947
|
execute: () => {
|
|
40983
|
-
_optionalChain([fileInputRef, 'access',
|
|
40948
|
+
_optionalChain([fileInputRef, 'access', _890 => _890.current, 'optionalAccess', _891 => _891.click, 'call', _892 => _892()]);
|
|
40984
40949
|
}
|
|
40985
40950
|
} : null;
|
|
40986
40951
|
const extraCommands = uploadCommand ? [...defaultExtraCommands, uploadCommand] : defaultExtraCommands;
|
|
@@ -40992,7 +40957,7 @@ function MarkdownEditor({
|
|
|
40992
40957
|
const EDGE_ZONE = 60;
|
|
40993
40958
|
const MAX_SCROLL_SPEED = 15;
|
|
40994
40959
|
const findScrollParent = _react.useCallback.call(void 0, (el) => {
|
|
40995
|
-
let node = _optionalChain([el, 'optionalAccess',
|
|
40960
|
+
let node = _optionalChain([el, 'optionalAccess', _893 => _893.parentElement]);
|
|
40996
40961
|
while (node && node !== document.documentElement) {
|
|
40997
40962
|
const { overflowY } = window.getComputedStyle(node);
|
|
40998
40963
|
if ((overflowY === "auto" || overflowY === "scroll") && node.scrollHeight > node.clientHeight) {
|
|
@@ -41135,7 +41100,7 @@ function matchesAccept(file, accept) {
|
|
|
41135
41100
|
});
|
|
41136
41101
|
}
|
|
41137
41102
|
function dragHasFiles(e) {
|
|
41138
|
-
const types = _optionalChain([e, 'access',
|
|
41103
|
+
const types = _optionalChain([e, 'access', _894 => _894.dataTransfer, 'optionalAccess', _895 => _895.types]);
|
|
41139
41104
|
if (!types) return false;
|
|
41140
41105
|
for (let i = 0; i < types.length; i++) {
|
|
41141
41106
|
if (types[i] === "Files") return true;
|
|
@@ -41231,7 +41196,7 @@ function FileUpload({
|
|
|
41231
41196
|
e.stopPropagation();
|
|
41232
41197
|
setDragActive(false);
|
|
41233
41198
|
if (disabled) return;
|
|
41234
|
-
if (_optionalChain([e, 'access',
|
|
41199
|
+
if (_optionalChain([e, 'access', _896 => _896.dataTransfer, 'access', _897 => _897.files, 'optionalAccess', _898 => _898.length])) {
|
|
41235
41200
|
handleFiles(e.dataTransfer.files);
|
|
41236
41201
|
}
|
|
41237
41202
|
};
|
|
@@ -41259,7 +41224,7 @@ function FileUpload({
|
|
|
41259
41224
|
e.preventDefault();
|
|
41260
41225
|
dragCounter = 0;
|
|
41261
41226
|
setDragActive(false);
|
|
41262
|
-
if (_optionalChain([e, 'access',
|
|
41227
|
+
if (_optionalChain([e, 'access', _899 => _899.dataTransfer, 'optionalAccess', _900 => _900.files, 'optionalAccess', _901 => _901.length])) {
|
|
41263
41228
|
handleFilesRef.current(e.dataTransfer.files);
|
|
41264
41229
|
}
|
|
41265
41230
|
};
|
|
@@ -41281,7 +41246,7 @@ function FileUpload({
|
|
|
41281
41246
|
};
|
|
41282
41247
|
}, [acceptWindowDrops, disabled]);
|
|
41283
41248
|
const handleFileSelect = (e) => {
|
|
41284
|
-
if (_optionalChain([e, 'access',
|
|
41249
|
+
if (_optionalChain([e, 'access', _902 => _902.target, 'access', _903 => _903.files, 'optionalAccess', _904 => _904.length])) {
|
|
41285
41250
|
handleFiles(e.target.files);
|
|
41286
41251
|
}
|
|
41287
41252
|
};
|
|
@@ -41298,7 +41263,7 @@ function FileUpload({
|
|
|
41298
41263
|
};
|
|
41299
41264
|
const openDialog = async () => {
|
|
41300
41265
|
if (disabled) return;
|
|
41301
|
-
_optionalChain([fileInputRef, 'access',
|
|
41266
|
+
_optionalChain([fileInputRef, 'access', _905 => _905.current, 'optionalAccess', _906 => _906.click, 'call', _907 => _907()]);
|
|
41302
41267
|
};
|
|
41303
41268
|
const displayError = error || validationError || void 0;
|
|
41304
41269
|
const hasFiles = isManaged ? managedFiles.length > 0 : files.length > 0;
|
|
@@ -41360,7 +41325,7 @@ function FileUpload({
|
|
|
41360
41325
|
"button",
|
|
41361
41326
|
{
|
|
41362
41327
|
type: "button",
|
|
41363
|
-
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall',
|
|
41328
|
+
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall', _908 => _908(entry.id)]),
|
|
41364
41329
|
className: "shrink-0 text-ods-error hover:opacity-80 transition-opacity",
|
|
41365
41330
|
"aria-label": `Remove ${entry.fileName}`,
|
|
41366
41331
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.TrashIcon, { className: "size-6" })
|
|
@@ -41491,7 +41456,7 @@ function ImageUploader({
|
|
|
41491
41456
|
onChange(file);
|
|
41492
41457
|
};
|
|
41493
41458
|
const handleFileSelect = (e) => {
|
|
41494
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
41459
|
+
validateAndEmit(_optionalChain([e, 'access', _909 => _909.target, 'access', _910 => _910.files, 'optionalAccess', _911 => _911[0]]));
|
|
41495
41460
|
if (inputRef.current) inputRef.current.value = "";
|
|
41496
41461
|
};
|
|
41497
41462
|
const handleDrag = (e) => {
|
|
@@ -41506,11 +41471,11 @@ function ImageUploader({
|
|
|
41506
41471
|
e.stopPropagation();
|
|
41507
41472
|
setDragActive(false);
|
|
41508
41473
|
if (!interactive) return;
|
|
41509
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
41474
|
+
validateAndEmit(_optionalChain([e, 'access', _912 => _912.dataTransfer, 'access', _913 => _913.files, 'optionalAccess', _914 => _914[0]]));
|
|
41510
41475
|
};
|
|
41511
41476
|
const openDialog = () => {
|
|
41512
41477
|
if (!interactive) return;
|
|
41513
|
-
_optionalChain([inputRef, 'access',
|
|
41478
|
+
_optionalChain([inputRef, 'access', _915 => _915.current, 'optionalAccess', _916 => _916.click, 'call', _917 => _917()]);
|
|
41514
41479
|
};
|
|
41515
41480
|
const handleRootKeyDown = (e) => {
|
|
41516
41481
|
if (hasImage || !interactive) return;
|
|
@@ -41701,8 +41666,8 @@ function ColorPresetSelect({
|
|
|
41701
41666
|
}) {
|
|
41702
41667
|
const selectedPreset = presets.find((p) => p.key === presetKey);
|
|
41703
41668
|
const isCustom = !selectedPreset;
|
|
41704
|
-
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
41705
|
-
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
41669
|
+
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _918 => _918.label]), () => ( "Custom"));
|
|
41670
|
+
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _919 => _919.color]), () => ( value));
|
|
41706
41671
|
const groups = [
|
|
41707
41672
|
{
|
|
41708
41673
|
items: [
|
|
@@ -41992,7 +41957,7 @@ function TicketStatusConfigRow({
|
|
|
41992
41957
|
_chunkGA5AN24Tcjs.Input,
|
|
41993
41958
|
{
|
|
41994
41959
|
value: name,
|
|
41995
|
-
onChange: (e) => _optionalChain([onNameChange, 'optionalCall',
|
|
41960
|
+
onChange: (e) => _optionalChain([onNameChange, 'optionalCall', _920 => _920(e.target.value)]),
|
|
41996
41961
|
disabled: isSystem,
|
|
41997
41962
|
readOnly: isSystem,
|
|
41998
41963
|
"aria-label": "Status name",
|
|
@@ -42365,14 +42330,14 @@ function TicketInfoSection({
|
|
|
42365
42330
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42366
42331
|
SquareAvatar,
|
|
42367
42332
|
{
|
|
42368
|
-
src: _optionalChain([organization, 'optionalAccess',
|
|
42369
|
-
alt: _optionalChain([organization, 'optionalAccess',
|
|
42370
|
-
fallback: _optionalChain([organization, 'optionalAccess',
|
|
42333
|
+
src: _optionalChain([organization, 'optionalAccess', _921 => _921.imageSrc]),
|
|
42334
|
+
alt: _optionalChain([organization, 'optionalAccess', _922 => _922.name]),
|
|
42335
|
+
fallback: _optionalChain([organization, 'optionalAccess', _923 => _923.name]) || "Org",
|
|
42371
42336
|
size: "md",
|
|
42372
42337
|
className: "shrink-0"
|
|
42373
42338
|
}
|
|
42374
42339
|
),
|
|
42375
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([organization, 'optionalAccess',
|
|
42340
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([organization, 'optionalAccess', _924 => _924.name]) || "Unassigned", label: "Organization" })
|
|
42376
42341
|
] }),
|
|
42377
42342
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: assigned ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42378
42343
|
AssigneeDropdown,
|
|
@@ -42393,10 +42358,10 @@ function TicketInfoSection({
|
|
|
42393
42358
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42394
42359
|
InfoCell2,
|
|
42395
42360
|
{
|
|
42396
|
-
value: _optionalChain([device, 'optionalAccess',
|
|
42361
|
+
value: _optionalChain([device, 'optionalAccess', _925 => _925.name]) || "Unassigned",
|
|
42397
42362
|
label: "Device",
|
|
42398
|
-
icon: _optionalChain([device, 'optionalAccess',
|
|
42399
|
-
onClick: _optionalChain([device, 'optionalAccess',
|
|
42363
|
+
icon: _optionalChain([device, 'optionalAccess', _926 => _926.icon]),
|
|
42364
|
+
onClick: _optionalChain([device, 'optionalAccess', _927 => _927.onClick])
|
|
42400
42365
|
}
|
|
42401
42366
|
),
|
|
42402
42367
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-4 min-w-0", children: [
|
|
@@ -42726,7 +42691,7 @@ function RoadmapCard({
|
|
|
42726
42691
|
const compactHref = safeHref(_nullishCoalesce(href, () => ( null)));
|
|
42727
42692
|
const hasVotes = (_nullishCoalesce(item.upvotes, () => ( 0))) > 0 || (_nullishCoalesce(item.downvotes, () => ( 0))) > 0;
|
|
42728
42693
|
const hasFigma = !!item.figmaUrl;
|
|
42729
|
-
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access',
|
|
42694
|
+
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access', _928 => _928.screenshots, 'optionalAccess', _929 => _929.length]), () => ( 0))) > 0;
|
|
42730
42695
|
const typeLabel = getTaskTypeLabel(item.customItemId);
|
|
42731
42696
|
const useTypeIcon = cardType === "internal_task" || !iconSrc && item.customItemId != null;
|
|
42732
42697
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -42745,7 +42710,7 @@ function RoadmapCard({
|
|
|
42745
42710
|
unoptimized: true,
|
|
42746
42711
|
className: "h-8 w-8 object-contain"
|
|
42747
42712
|
}
|
|
42748
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-[10px] font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access',
|
|
42713
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-[10px] font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _930 => _930.title, 'optionalAccess', _931 => _931.substring, 'call', _932 => _932(0, 2)]) || "??" })
|
|
42749
42714
|
}
|
|
42750
42715
|
),
|
|
42751
42716
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
@@ -42820,7 +42785,7 @@ function RoadmapCard({
|
|
|
42820
42785
|
unoptimized: true,
|
|
42821
42786
|
className: "object-contain p-1"
|
|
42822
42787
|
}
|
|
42823
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access',
|
|
42788
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _933 => _933.title, 'optionalAccess', _934 => _934.substring, 'call', _935 => _935(0, 2)]) || "??" }) }),
|
|
42824
42789
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 min-w-0 flex flex-col", children: [
|
|
42825
42790
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-[48px] flex items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-h3 text-ods-text-primary tracking-[-0.36px] flex-1 line-clamp-2", children: item.title }) }),
|
|
42826
42791
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-[20px] flex items-center", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-h5 text-ods-text-secondary uppercase tracking-[-0.28px] truncate", children: [
|
|
@@ -43330,7 +43295,7 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
|
43330
43295
|
] }) : null,
|
|
43331
43296
|
item.preview ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "line-clamp-2 whitespace-pre-wrap break-words text-[13px] leading-5 text-ods-text-secondary", children: item.preview }) }) : null
|
|
43332
43297
|
] }),
|
|
43333
|
-
_optionalChain([anchorProps, 'optionalAccess',
|
|
43298
|
+
_optionalChain([anchorProps, 'optionalAccess', _936 => _936.href]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex shrink-0 items-center self-start h-5 text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "w-3.5 h-3.5" }) }) : null
|
|
43334
43299
|
] });
|
|
43335
43300
|
if (!anchorProps) {
|
|
43336
43301
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
@@ -43400,7 +43365,7 @@ function getDefaultOptions() {
|
|
|
43400
43365
|
// node_modules/date-fns/startOfWeek.mjs
|
|
43401
43366
|
function startOfWeek(date, options) {
|
|
43402
43367
|
const defaultOptions2 = getDefaultOptions();
|
|
43403
|
-
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
43368
|
+
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _937 => _937.weekStartsOn]), () => ( _optionalChain([options, 'optionalAccess', _938 => _938.locale, 'optionalAccess', _939 => _939.options, 'optionalAccess', _940 => _940.weekStartsOn]))), () => ( defaultOptions2.weekStartsOn)), () => ( _optionalChain([defaultOptions2, 'access', _941 => _941.locale, 'optionalAccess', _942 => _942.options, 'optionalAccess', _943 => _943.weekStartsOn]))), () => ( 0));
|
|
43404
43369
|
const _date = toDate2(date);
|
|
43405
43370
|
const day = _date.getDay();
|
|
43406
43371
|
const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
|
|
@@ -43575,7 +43540,7 @@ var formatDistance = (token, count, options) => {
|
|
|
43575
43540
|
} else {
|
|
43576
43541
|
result = tokenValue.other.replace("{{count}}", count.toString());
|
|
43577
43542
|
}
|
|
43578
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
43543
|
+
if (_optionalChain([options, 'optionalAccess', _944 => _944.addSuffix])) {
|
|
43579
43544
|
if (options.comparison && options.comparison > 0) {
|
|
43580
43545
|
return "in " + result;
|
|
43581
43546
|
} else {
|
|
@@ -43642,15 +43607,15 @@ var formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale
|
|
|
43642
43607
|
// node_modules/date-fns/locale/_lib/buildLocalizeFn.mjs
|
|
43643
43608
|
function buildLocalizeFn(args) {
|
|
43644
43609
|
return (value, options) => {
|
|
43645
|
-
const context = _optionalChain([options, 'optionalAccess',
|
|
43610
|
+
const context = _optionalChain([options, 'optionalAccess', _945 => _945.context]) ? String(options.context) : "standalone";
|
|
43646
43611
|
let valuesArray;
|
|
43647
43612
|
if (context === "formatting" && args.formattingValues) {
|
|
43648
43613
|
const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
|
|
43649
|
-
const width = _optionalChain([options, 'optionalAccess',
|
|
43614
|
+
const width = _optionalChain([options, 'optionalAccess', _946 => _946.width]) ? String(options.width) : defaultWidth;
|
|
43650
43615
|
valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
|
|
43651
43616
|
} else {
|
|
43652
43617
|
const defaultWidth = args.defaultWidth;
|
|
43653
|
-
const width = _optionalChain([options, 'optionalAccess',
|
|
43618
|
+
const width = _optionalChain([options, 'optionalAccess', _947 => _947.width]) ? String(options.width) : args.defaultWidth;
|
|
43654
43619
|
valuesArray = args.values[width] || args.values[defaultWidth];
|
|
43655
43620
|
}
|
|
43656
43621
|
const index = args.argumentCallback ? args.argumentCallback(value) : value;
|
|
@@ -44030,7 +43995,7 @@ function getWeekYear(date, options) {
|
|
|
44030
43995
|
const _date = toDate2(date);
|
|
44031
43996
|
const year = _date.getFullYear();
|
|
44032
43997
|
const defaultOptions2 = getDefaultOptions();
|
|
44033
|
-
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
43998
|
+
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _948 => _948.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _949 => _949.locale, 'optionalAccess', _950 => _950.options, 'optionalAccess', _951 => _951.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _952 => _952.locale, 'optionalAccess', _953 => _953.options, 'optionalAccess', _954 => _954.firstWeekContainsDate]))), () => ( 1));
|
|
44034
43999
|
const firstWeekOfNextYear = constructFrom(date, 0);
|
|
44035
44000
|
firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
|
|
44036
44001
|
firstWeekOfNextYear.setHours(0, 0, 0, 0);
|
|
@@ -44051,7 +44016,7 @@ function getWeekYear(date, options) {
|
|
|
44051
44016
|
// node_modules/date-fns/startOfWeekYear.mjs
|
|
44052
44017
|
function startOfWeekYear(date, options) {
|
|
44053
44018
|
const defaultOptions2 = getDefaultOptions();
|
|
44054
|
-
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
44019
|
+
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _955 => _955.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _956 => _956.locale, 'optionalAccess', _957 => _957.options, 'optionalAccess', _958 => _958.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _959 => _959.locale, 'optionalAccess', _960 => _960.options, 'optionalAccess', _961 => _961.firstWeekContainsDate]))), () => ( 1));
|
|
44055
44020
|
const year = getWeekYear(date, options);
|
|
44056
44021
|
const firstWeek = constructFrom(date, 0);
|
|
44057
44022
|
firstWeek.setFullYear(year, 0, firstWeekContainsDate);
|
|
@@ -44866,9 +44831,9 @@ var doubleQuoteRegExp = /''/g;
|
|
|
44866
44831
|
var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
44867
44832
|
function format2(date, formatStr, options) {
|
|
44868
44833
|
const defaultOptions2 = getDefaultOptions();
|
|
44869
|
-
const locale = _nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
44870
|
-
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
44871
|
-
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
44834
|
+
const locale = _nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _962 => _962.locale]), () => ( defaultOptions2.locale)), () => ( enUS));
|
|
44835
|
+
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _963 => _963.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _964 => _964.locale, 'optionalAccess', _965 => _965.options, 'optionalAccess', _966 => _966.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _967 => _967.locale, 'optionalAccess', _968 => _968.options, 'optionalAccess', _969 => _969.firstWeekContainsDate]))), () => ( 1));
|
|
44836
|
+
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _970 => _970.weekStartsOn]), () => ( _optionalChain([options, 'optionalAccess', _971 => _971.locale, 'optionalAccess', _972 => _972.options, 'optionalAccess', _973 => _973.weekStartsOn]))), () => ( defaultOptions2.weekStartsOn)), () => ( _optionalChain([defaultOptions2, 'access', _974 => _974.locale, 'optionalAccess', _975 => _975.options, 'optionalAccess', _976 => _976.weekStartsOn]))), () => ( 0));
|
|
44872
44837
|
const originalDate = toDate2(date);
|
|
44873
44838
|
if (!isValid(originalDate)) {
|
|
44874
44839
|
throw new RangeError("Invalid time value");
|
|
@@ -44909,7 +44874,7 @@ function format2(date, formatStr, options) {
|
|
|
44909
44874
|
return parts.map((part) => {
|
|
44910
44875
|
if (!part.isToken) return part.value;
|
|
44911
44876
|
const token = part.value;
|
|
44912
|
-
if (!_optionalChain([options, 'optionalAccess',
|
|
44877
|
+
if (!_optionalChain([options, 'optionalAccess', _977 => _977.useAdditionalWeekYearTokens]) && isProtectedWeekYearToken(token) || !_optionalChain([options, 'optionalAccess', _978 => _978.useAdditionalDayOfYearTokens]) && isProtectedDayOfYearToken(token)) {
|
|
44913
44878
|
warnOrThrowProtectedError(token, formatStr, String(date));
|
|
44914
44879
|
}
|
|
44915
44880
|
const formatter = formatters[token[0]];
|
|
@@ -45115,7 +45080,7 @@ function ProgramCard({
|
|
|
45115
45080
|
const itemDate2 = compactDate;
|
|
45116
45081
|
const compactCover = coverImage || placeholderUrl || null;
|
|
45117
45082
|
const typeMeta = compactTypeMeta();
|
|
45118
|
-
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access',
|
|
45083
|
+
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access', _979 => _979.labels, 'optionalAccess', _980 => _980.singular])].filter(
|
|
45119
45084
|
(s) => typeof s === "string" && s.length > 0
|
|
45120
45085
|
);
|
|
45121
45086
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: _chunkFIG2RKZFcjs.cn.call(void 0, COMPACT_CARD_OUTER, className), children: [
|
|
@@ -45272,7 +45237,7 @@ function ProgramCard({
|
|
|
45272
45237
|
|
|
45273
45238
|
|
|
45274
45239
|
function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
45275
|
-
const goalsCount = _optionalChain([campaign, 'access',
|
|
45240
|
+
const goalsCount = _optionalChain([campaign, 'access', _981 => _981.goals, 'optionalAccess', _982 => _982.length]) || 0;
|
|
45276
45241
|
const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
45277
45242
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
|
|
45278
45243
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
@@ -45370,7 +45335,7 @@ function useChatCardItem(type, id) {
|
|
|
45370
45335
|
queryKey: ["chat-card-item", type, id],
|
|
45371
45336
|
queryFn: async () => {
|
|
45372
45337
|
if (!url) return null;
|
|
45373
|
-
const res = await
|
|
45338
|
+
const res = await _chunkJWBRDNYHcjs.embedAuthedFetch.call(void 0, url);
|
|
45374
45339
|
if (!res.ok) return null;
|
|
45375
45340
|
const data = await res.json();
|
|
45376
45341
|
const items = extractItems(data);
|
|
@@ -45434,7 +45399,7 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
45434
45399
|
if (row.path && shouldFallbackToPathNav(row) && !row.externalUrl) {
|
|
45435
45400
|
const safePath = sanitizePath(row.path);
|
|
45436
45401
|
if (safePath) {
|
|
45437
|
-
const docTarget = row.documentType ? _optionalChain([ctx, 'access',
|
|
45402
|
+
const docTarget = row.documentType ? _optionalChain([ctx, 'access', _983 => _983.docPlatformTargets, 'optionalAccess', _984 => _984[row.documentType]]) : void 0;
|
|
45438
45403
|
if (docTarget) {
|
|
45439
45404
|
const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
|
|
45440
45405
|
const base = `${_chunkFIG2RKZFcjs.getBaseUrl.call(void 0, docTarget.platform)}${seg ? `/${seg}` : ""}/`;
|
|
@@ -45649,8 +45614,8 @@ function cardMenuGroups(href, discuss, openDetails) {
|
|
|
45649
45614
|
if (href) {
|
|
45650
45615
|
items.push({
|
|
45651
45616
|
id: "open-details",
|
|
45652
|
-
label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess',
|
|
45653
|
-
icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess',
|
|
45617
|
+
label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _985 => _985.label]), () => ( "Open Details")),
|
|
45618
|
+
icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _986 => _986.icon]), () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.EyeIcon, { size: 20 }))),
|
|
45654
45619
|
// Main row → open the entity (same tab, soft Link nav).
|
|
45655
45620
|
href,
|
|
45656
45621
|
// Trailing 40px ↗ side-button → open in a new tab.
|
|
@@ -45680,8 +45645,8 @@ function HubspotTicketChatCard({
|
|
|
45680
45645
|
isNewTab,
|
|
45681
45646
|
discuss
|
|
45682
45647
|
}) {
|
|
45683
|
-
const status = typeof _optionalChain([chatRef, 'access',
|
|
45684
|
-
const statusLabel = typeof _optionalChain([chatRef, 'access',
|
|
45648
|
+
const status = typeof _optionalChain([chatRef, 'access', _987 => _987.metadata, 'optionalAccess', _988 => _988.status]) === "string" ? chatRef.metadata.status : void 0;
|
|
45649
|
+
const statusLabel = typeof _optionalChain([chatRef, 'access', _989 => _989.metadata, 'optionalAccess', _990 => _990.statusLabel]) === "string" ? chatRef.metadata.statusLabel : void 0;
|
|
45685
45650
|
const statusText = _nullishCoalesce(statusLabel, () => ( formatStatusToken(status)));
|
|
45686
45651
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45687
45652
|
MingoInfoCard,
|
|
@@ -45704,7 +45669,7 @@ function FaqChatCard({
|
|
|
45704
45669
|
isNewTab,
|
|
45705
45670
|
discuss
|
|
45706
45671
|
}) {
|
|
45707
|
-
const section = typeof _optionalChain([chatRef, 'access',
|
|
45672
|
+
const section = typeof _optionalChain([chatRef, 'access', _991 => _991.metadata, 'optionalAccess', _992 => _992.section]) === "string" ? chatRef.metadata.section.trim() : void 0;
|
|
45708
45673
|
const statusLabel = section && section.length > 0 ? section : "FAQ";
|
|
45709
45674
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45710
45675
|
MingoInfoCard,
|
|
@@ -45724,7 +45689,7 @@ function SlackChatCard({
|
|
|
45724
45689
|
isNewTab,
|
|
45725
45690
|
discuss
|
|
45726
45691
|
}) {
|
|
45727
|
-
const channelName = typeof _optionalChain([chatRef, 'access',
|
|
45692
|
+
const channelName = typeof _optionalChain([chatRef, 'access', _993 => _993.metadata, 'optionalAccess', _994 => _994.channelName]) === "string" ? chatRef.metadata.channelName.trim() : void 0;
|
|
45728
45693
|
const channelPretty = channelName ? channelName.startsWith("#") ? channelName : `#${channelName}` : void 0;
|
|
45729
45694
|
const title = channelPretty ? `${chatRef.title} \xB7 ${channelPretty}` : chatRef.title;
|
|
45730
45695
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -45764,7 +45729,7 @@ function GenericFinancialChatCard({
|
|
|
45764
45729
|
isNewTab,
|
|
45765
45730
|
discuss
|
|
45766
45731
|
}) {
|
|
45767
|
-
const subtitle = typeof _optionalChain([chatRef, 'access',
|
|
45732
|
+
const subtitle = typeof _optionalChain([chatRef, 'access', _995 => _995.metadata, 'optionalAccess', _996 => _996.subtitle]) === "string" ? chatRef.metadata.subtitle : void 0;
|
|
45768
45733
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45769
45734
|
MingoInfoCard,
|
|
45770
45735
|
{
|
|
@@ -45833,12 +45798,12 @@ function ProductReleaseChatCard({
|
|
|
45833
45798
|
discuss
|
|
45834
45799
|
}) {
|
|
45835
45800
|
const releaseProps = buildProps(item);
|
|
45836
|
-
const status = _optionalChain([item, 'optionalAccess',
|
|
45801
|
+
const status = _optionalChain([item, 'optionalAccess', _997 => _997.version]) ? { label: String(item.version), variant: "grey" } : { label: "Release", variant: "grey" };
|
|
45837
45802
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45838
45803
|
EntityMingoCard,
|
|
45839
45804
|
{
|
|
45840
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
45841
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
45805
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _998 => _998.title]), () => ( "")),
|
|
45806
|
+
description: _optionalChain([item, 'optionalAccess', _999 => _999.summary]) || releaseProps.formattedDate || void 0,
|
|
45842
45807
|
cover: releaseProps.coverImage || void 0,
|
|
45843
45808
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.Rocket02Icon, { size: 24 }),
|
|
45844
45809
|
status,
|
|
@@ -45855,17 +45820,17 @@ function CampaignChatCard({
|
|
|
45855
45820
|
isNewTab,
|
|
45856
45821
|
discuss
|
|
45857
45822
|
}) {
|
|
45858
|
-
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess',
|
|
45823
|
+
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _1000 => _1000.goals])) ? item.goals.length : 0;
|
|
45859
45824
|
const meta = [
|
|
45860
|
-
_optionalChain([item, 'optionalAccess',
|
|
45825
|
+
_optionalChain([item, 'optionalAccess', _1001 => _1001.start_date]) ? formatDateShort(item.start_date) : null,
|
|
45861
45826
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
45862
45827
|
"Marketing campaign"
|
|
45863
45828
|
].filter(Boolean).join(" \xB7 ");
|
|
45864
45829
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45865
45830
|
EntityMingoCard,
|
|
45866
45831
|
{
|
|
45867
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
45868
|
-
description: meta || _optionalChain([item, 'optionalAccess',
|
|
45832
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1002 => _1002.name]), () => ( "")),
|
|
45833
|
+
description: meta || _optionalChain([item, 'optionalAccess', _1003 => _1003.description]) || void 0,
|
|
45869
45834
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.Megaphone01Icon, { size: 24 }),
|
|
45870
45835
|
chatRef,
|
|
45871
45836
|
isNewTab,
|
|
@@ -45918,14 +45883,14 @@ function BlogChatCard({
|
|
|
45918
45883
|
hasEmbeddedVideo,
|
|
45919
45884
|
discuss
|
|
45920
45885
|
}) {
|
|
45921
|
-
const category = Array.isArray(_optionalChain([item, 'optionalAccess',
|
|
45886
|
+
const category = Array.isArray(_optionalChain([item, 'optionalAccess', _1004 => _1004.categories])) ? _optionalChain([item, 'access', _1005 => _1005.categories, 'access', _1006 => _1006.find, 'call', _1007 => _1007((c) => c && c.name), 'optionalAccess', _1008 => _1008.name]) : void 0;
|
|
45922
45887
|
const status = hasEmbeddedVideo ? { label: "Video", variant: "primary" } : category ? { label: category, variant: "grey" } : void 0;
|
|
45923
45888
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45924
45889
|
EntityMingoCard,
|
|
45925
45890
|
{
|
|
45926
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
45927
|
-
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
45928
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
45891
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1009 => _1009.title]), () => ( "")),
|
|
45892
|
+
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1010 => _1010.summary]), () => ( void 0)),
|
|
45893
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _1011 => _1011.featured_image]), ogPlaceholder),
|
|
45929
45894
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.NewspaperIcon, { size: 24 }),
|
|
45930
45895
|
status,
|
|
45931
45896
|
chatRef,
|
|
@@ -45942,13 +45907,13 @@ function CaseStudyChatCard({
|
|
|
45942
45907
|
ogPlaceholder,
|
|
45943
45908
|
discuss
|
|
45944
45909
|
}) {
|
|
45945
|
-
const meta = [_optionalChain([item, 'optionalAccess',
|
|
45910
|
+
const meta = [_optionalChain([item, 'optionalAccess', _1012 => _1012.msp, 'optionalAccess', _1013 => _1013.name]), _optionalChain([item, 'optionalAccess', _1014 => _1014.user, 'optionalAccess', _1015 => _1015.full_name])].filter(Boolean).join(" \xB7 ");
|
|
45946
45911
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45947
45912
|
EntityMingoCard,
|
|
45948
45913
|
{
|
|
45949
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
45950
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
45951
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
45914
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1016 => _1016.title]), () => ( "")),
|
|
45915
|
+
description: _optionalChain([item, 'optionalAccess', _1017 => _1017.summary]) || meta || void 0,
|
|
45916
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _1018 => _1018.featured_image]), ogPlaceholder),
|
|
45952
45917
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.TrophyIcon, { size: 24 }),
|
|
45953
45918
|
status: { label: "Case study", variant: "grey" },
|
|
45954
45919
|
chatRef,
|
|
@@ -45965,13 +45930,13 @@ function CustomerInterviewChatCard({
|
|
|
45965
45930
|
ogPlaceholder,
|
|
45966
45931
|
discuss
|
|
45967
45932
|
}) {
|
|
45968
|
-
const meta = [_optionalChain([item, 'optionalAccess',
|
|
45933
|
+
const meta = [_optionalChain([item, 'optionalAccess', _1019 => _1019.user, 'optionalAccess', _1020 => _1020.full_name]), _optionalChain([item, 'optionalAccess', _1021 => _1021.msp, 'optionalAccess', _1022 => _1022.name])].filter(Boolean).join(" \xB7 ");
|
|
45969
45934
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45970
45935
|
EntityMingoCard,
|
|
45971
45936
|
{
|
|
45972
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
45973
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
45974
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
45937
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1023 => _1023.title]), () => ( "")),
|
|
45938
|
+
description: _optionalChain([item, 'optionalAccess', _1024 => _1024.video_summary]) || meta || void 0,
|
|
45939
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _1025 => _1025.featured_image]), ogPlaceholder),
|
|
45975
45940
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.MicrophoneIcon, { size: 24 }),
|
|
45976
45941
|
status: { label: "Interview", variant: "grey" },
|
|
45977
45942
|
chatRef,
|
|
@@ -45988,13 +45953,13 @@ function InvestorUpdateChatCard({
|
|
|
45988
45953
|
ogPlaceholder,
|
|
45989
45954
|
discuss
|
|
45990
45955
|
}) {
|
|
45991
|
-
const title = _optionalChain([item, 'optionalAccess',
|
|
45956
|
+
const title = _optionalChain([item, 'optionalAccess', _1026 => _1026.title]) || `Update #${_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1027 => _1027.update_number]), () => ( "?"))}`;
|
|
45992
45957
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45993
45958
|
EntityMingoCard,
|
|
45994
45959
|
{
|
|
45995
45960
|
title,
|
|
45996
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
45997
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
45961
|
+
description: _optionalChain([item, 'optionalAccess', _1028 => _1028.strategic_update]) || _optionalChain([item, 'optionalAccess', _1029 => _1029.content]) || formatInvestorUpdatePeriod(_optionalChain([item, 'optionalAccess', _1030 => _1030.period_start]), _optionalChain([item, 'optionalAccess', _1031 => _1031.period_end])) || void 0,
|
|
45962
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _1032 => _1032.featured_image]), ogPlaceholder),
|
|
45998
45963
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.PresentationLineIcon, { size: 24 }),
|
|
45999
45964
|
status: { label: "Investor update", variant: "grey" },
|
|
46000
45965
|
chatRef,
|
|
@@ -46011,12 +45976,12 @@ function OnboardingGuideChatCard({
|
|
|
46011
45976
|
ogPlaceholder,
|
|
46012
45977
|
discuss
|
|
46013
45978
|
}) {
|
|
46014
|
-
const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess',
|
|
45979
|
+
const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess', _1033 => _1033.featured_image])), () => ( entityCover(_optionalChain([item, 'optionalAccess', _1034 => _1034.main_video_thumbnail])))), () => ( entityCover(_optionalChain([item, 'optionalAccess', _1035 => _1035.og_image_url]), ogPlaceholder)));
|
|
46015
45980
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
46016
45981
|
EntityMingoCard,
|
|
46017
45982
|
{
|
|
46018
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
46019
|
-
description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
45983
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1036 => _1036.title]), () => ( "")),
|
|
45984
|
+
description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1037 => _1037.summary]), () => ( _optionalChain([item, 'optionalAccess', _1038 => _1038.description]))), () => ( void 0)),
|
|
46020
45985
|
cover,
|
|
46021
45986
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.CompassIcon, { size: 24 }),
|
|
46022
45987
|
status: { label: "Guide", variant: "grey" },
|
|
@@ -46037,25 +46002,25 @@ function ProgramChatCard({
|
|
|
46037
46002
|
discuss
|
|
46038
46003
|
}) {
|
|
46039
46004
|
const icon = configKey === "webinar" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.PresentationBarIcon, { size: 24 }) : configKey === "event" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.CalendarIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.MicrophoneIcon, { size: 24 });
|
|
46040
|
-
const isScheduled = _optionalChain([item, 'optionalAccess',
|
|
46005
|
+
const isScheduled = _optionalChain([item, 'optionalAccess', _1039 => _1039.status]) === "scheduled";
|
|
46041
46006
|
let typeMeta;
|
|
46042
|
-
if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess',
|
|
46007
|
+
if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess', _1040 => _1040.duration_seconds]) === "number" && item.duration_seconds > 0 && !isScheduled) {
|
|
46043
46008
|
typeMeta = formatDurationCompact(item.duration_seconds);
|
|
46044
|
-
} else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess',
|
|
46009
|
+
} else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess', _1041 => _1041.location_name]) === "string" && item.location_name.trim().length > 0) {
|
|
46045
46010
|
typeMeta = item.location_name;
|
|
46046
|
-
} else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess',
|
|
46011
|
+
} else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess', _1042 => _1042.start_at])) {
|
|
46047
46012
|
const time = formatTimeWithTimezone(item.start_at, _nullishCoalesce(item.timezone, () => ( null)));
|
|
46048
46013
|
const dur = formatDurationFromRange(item.start_at, item.end_at);
|
|
46049
46014
|
typeMeta = dur ? `${time} \xB7 ${dur}` : time;
|
|
46050
46015
|
}
|
|
46051
|
-
const itemDate = formatDateUTC(_nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
46016
|
+
const itemDate = formatDateUTC(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1043 => _1043.date]), () => ( null)), { fallback: "", timezone: "local" });
|
|
46052
46017
|
const meta = [itemDate, typeMeta].filter(Boolean).join(" \xB7 ");
|
|
46053
46018
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
46054
46019
|
EntityMingoCard,
|
|
46055
46020
|
{
|
|
46056
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
46057
|
-
description: meta || _optionalChain([item, 'optionalAccess',
|
|
46058
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
46021
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1044 => _1044.title]), () => ( "")),
|
|
46022
|
+
description: meta || _optionalChain([item, 'optionalAccess', _1045 => _1045.description]) || void 0,
|
|
46023
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _1046 => _1046.cover_url]), ogPlaceholder),
|
|
46059
46024
|
fallbackIcon: icon,
|
|
46060
46025
|
status: { label, variant: "grey" },
|
|
46061
46026
|
chatRef,
|
|
@@ -46072,10 +46037,10 @@ function RoadmapChatCard({
|
|
|
46072
46037
|
cardType,
|
|
46073
46038
|
discuss
|
|
46074
46039
|
}) {
|
|
46075
|
-
const logoUrl = typeof _optionalChain([item, 'optionalAccess',
|
|
46076
|
-
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess',
|
|
46040
|
+
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _1047 => _1047.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
46041
|
+
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _1048 => _1048.customItemId]) != null;
|
|
46077
46042
|
const defaultIcon = cardType === "delivery_item" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.TruckFastIcon, { size: 24 }) : cardType === "internal_task" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.CheckSquareIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.MapIcon, { size: 24 });
|
|
46078
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess',
|
|
46043
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _1049 => _1049.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
46079
46044
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
46080
46045
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
46081
46046
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: logoUrl, alt: "", className: "size-6 object-contain" })
|
|
@@ -46083,10 +46048,10 @@ function RoadmapChatCard({
|
|
|
46083
46048
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
46084
46049
|
EntityMingoCard,
|
|
46085
46050
|
{
|
|
46086
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
46087
|
-
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
46051
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1050 => _1050.title]), () => ( "")),
|
|
46052
|
+
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1051 => _1051.description]), () => ( void 0)),
|
|
46088
46053
|
fallbackIcon: icon,
|
|
46089
|
-
status: statusPill(_optionalChain([item, 'optionalAccess',
|
|
46054
|
+
status: statusPill(_optionalChain([item, 'optionalAccess', _1052 => _1052.status])),
|
|
46090
46055
|
chatRef,
|
|
46091
46056
|
isNewTab,
|
|
46092
46057
|
discuss,
|
|
@@ -46172,7 +46137,7 @@ function programRegistryEntries() {
|
|
|
46172
46137
|
discuss: opts.discuss,
|
|
46173
46138
|
configKey: cfg.configKey,
|
|
46174
46139
|
label: cfg.configKey.charAt(0).toUpperCase() + cfg.configKey.slice(1),
|
|
46175
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
46140
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1053 => _1053.extras, 'optionalAccess', _1054 => _1054.buildOgPlaceholderUrl, 'optionalCall', _1055 => _1055(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1056 => _1056.title]), () => ( "")))]), () => ( null))
|
|
46176
46141
|
}
|
|
46177
46142
|
)
|
|
46178
46143
|
};
|
|
@@ -46324,8 +46289,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
46324
46289
|
chatRef,
|
|
46325
46290
|
isNewTab: opts.isNewTab,
|
|
46326
46291
|
discuss: opts.discuss,
|
|
46327
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
46328
|
-
hasEmbeddedVideo: _optionalChain([chatRef, 'access',
|
|
46292
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1057 => _1057.extras, 'optionalAccess', _1058 => _1058.buildOgPlaceholderUrl, 'optionalCall', _1059 => _1059(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1060 => _1060.title]), () => ( "")))]), () => ( null)),
|
|
46293
|
+
hasEmbeddedVideo: _optionalChain([chatRef, 'access', _1061 => _1061.metadata, 'optionalAccess', _1062 => _1062.hasEmbeddedVideo]) === true
|
|
46329
46294
|
}
|
|
46330
46295
|
)
|
|
46331
46296
|
},
|
|
@@ -46342,7 +46307,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
46342
46307
|
chatRef,
|
|
46343
46308
|
isNewTab: opts.isNewTab,
|
|
46344
46309
|
discuss: opts.discuss,
|
|
46345
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
46310
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1063 => _1063.extras, 'optionalAccess', _1064 => _1064.buildOgPlaceholderUrl, 'optionalCall', _1065 => _1065(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1066 => _1066.title]), () => ( "")))]), () => ( null))
|
|
46346
46311
|
}
|
|
46347
46312
|
)
|
|
46348
46313
|
},
|
|
@@ -46359,7 +46324,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
46359
46324
|
chatRef,
|
|
46360
46325
|
isNewTab: opts.isNewTab,
|
|
46361
46326
|
discuss: opts.discuss,
|
|
46362
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
46327
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1067 => _1067.extras, 'optionalAccess', _1068 => _1068.buildOgPlaceholderUrl, 'optionalCall', _1069 => _1069(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1070 => _1070.title]), () => ( "")))]), () => ( null))
|
|
46363
46328
|
}
|
|
46364
46329
|
)
|
|
46365
46330
|
},
|
|
@@ -46370,7 +46335,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
46370
46335
|
bareInline: true,
|
|
46371
46336
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ProductReleaseCardSkeleton, { size: "sm" }),
|
|
46372
46337
|
render: (item, chatRef, opts) => {
|
|
46373
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
46338
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1071 => _1071.extras, 'optionalAccess', _1072 => _1072.buildProductReleaseCardProps]), () => ( defaultBuildProductReleaseCardProps));
|
|
46374
46339
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
46375
46340
|
ProductReleaseChatCard,
|
|
46376
46341
|
{
|
|
@@ -46397,7 +46362,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
46397
46362
|
chatRef,
|
|
46398
46363
|
isNewTab: opts.isNewTab,
|
|
46399
46364
|
discuss: opts.discuss,
|
|
46400
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
46365
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1073 => _1073.extras, 'optionalAccess', _1074 => _1074.buildOgPlaceholderUrl, 'optionalCall', _1075 => _1075(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1076 => _1076.title]), () => ( "")))]), () => ( null))
|
|
46401
46366
|
}
|
|
46402
46367
|
)
|
|
46403
46368
|
},
|
|
@@ -46416,7 +46381,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
46416
46381
|
chatRef,
|
|
46417
46382
|
isNewTab: opts.isNewTab,
|
|
46418
46383
|
discuss: opts.discuss,
|
|
46419
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
46384
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1077 => _1077.extras, 'optionalAccess', _1078 => _1078.buildOgPlaceholderUrl, 'optionalCall', _1079 => _1079(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1080 => _1080.title]), () => ( "")))]), () => ( null))
|
|
46420
46385
|
}
|
|
46421
46386
|
)
|
|
46422
46387
|
},
|
|
@@ -46428,7 +46393,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
46428
46393
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignCardAdminSkeleton, {}),
|
|
46429
46394
|
// No public viewer — synthesize the hub-internal admin URL post-fetch
|
|
46430
46395
|
// so the wrapper + isNewTab computation see the actual destination.
|
|
46431
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
46396
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _1081 => _1081.id]) ? `/admin/campaigns/${encodeURIComponent(item.id)}` : null,
|
|
46432
46397
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
46433
46398
|
CampaignChatCard,
|
|
46434
46399
|
{
|
|
@@ -46454,12 +46419,12 @@ function ChatCardNavWrap({
|
|
|
46454
46419
|
const onClickCapture = (e) => {
|
|
46455
46420
|
if (!href) return;
|
|
46456
46421
|
const targetEl = e.target;
|
|
46457
|
-
if (_optionalChain([targetEl, 'optionalAccess',
|
|
46458
|
-
if (!_optionalChain([targetEl, 'optionalAccess',
|
|
46422
|
+
if (_optionalChain([targetEl, 'optionalAccess', _1082 => _1082.closest, 'optionalCall', _1083 => _1083("button")])) return;
|
|
46423
|
+
if (!_optionalChain([targetEl, 'optionalAccess', _1084 => _1084.closest, 'optionalCall', _1085 => _1085("a")])) return;
|
|
46459
46424
|
const handled = handleChatNavClick(e, runtime, { href, path, targetPlatform }, router.push);
|
|
46460
46425
|
if (!handled) return;
|
|
46461
46426
|
e.stopPropagation();
|
|
46462
|
-
if (!isNewTab && _optionalChain([panel, 'optionalAccess',
|
|
46427
|
+
if (!isNewTab && _optionalChain([panel, 'optionalAccess', _1086 => _1086.closeChat])) panel.closeChat();
|
|
46463
46428
|
};
|
|
46464
46429
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "contents", onClickCapture, children });
|
|
46465
46430
|
}
|
|
@@ -46481,7 +46446,7 @@ function ChatCardLoader({
|
|
|
46481
46446
|
title: chatRef.title,
|
|
46482
46447
|
externalUrl: chatRef.url,
|
|
46483
46448
|
targetPlatform: chatRef.targetPlatform,
|
|
46484
|
-
path: typeof _optionalChain([chatRef, 'access',
|
|
46449
|
+
path: typeof _optionalChain([chatRef, 'access', _1087 => _1087.metadata, 'optionalAccess', _1088 => _1088.path]) === "string" ? chatRef.metadata.path : null
|
|
46485
46450
|
},
|
|
46486
46451
|
sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform })
|
|
46487
46452
|
);
|
|
@@ -46495,7 +46460,7 @@ function ChatCardLoader({
|
|
|
46495
46460
|
const entry = CHAT_CARD_REGISTRY[resolvedChatRef.type];
|
|
46496
46461
|
const fetchEntry = entry && entry.mode === "fetch" ? entry : null;
|
|
46497
46462
|
const { item, isLoading } = useChatCardItem(
|
|
46498
|
-
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess',
|
|
46463
|
+
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _1089 => _1089.contentRefType]), () => ( "")),
|
|
46499
46464
|
fetchEntry ? resolvedChatRef.id : ""
|
|
46500
46465
|
);
|
|
46501
46466
|
if (!entry) return null;
|
|
@@ -46526,7 +46491,7 @@ function ChatCardLoader({
|
|
|
46526
46491
|
isNewTab,
|
|
46527
46492
|
discuss
|
|
46528
46493
|
};
|
|
46529
|
-
const path = typeof _optionalChain([finalChatRef, 'access',
|
|
46494
|
+
const path = typeof _optionalChain([finalChatRef, 'access', _1090 => _1090.metadata, 'optionalAccess', _1091 => _1091.path]) === "string" ? finalChatRef.metadata.path : null;
|
|
46530
46495
|
const navWrap = (children) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
46531
46496
|
ChatCardNavWrap,
|
|
46532
46497
|
{
|
|
@@ -46912,7 +46877,7 @@ function useJetStreamDialogSubscription({
|
|
|
46912
46877
|
const lifecycle = _chunkPXXS27EEcjs.startConnectionLifecycle.call(void 0, {
|
|
46913
46878
|
conn: sharedConn,
|
|
46914
46879
|
wsUrl,
|
|
46915
|
-
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access',
|
|
46880
|
+
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _1092 => _1092.current, 'optionalCall', _1093 => _1093()]),
|
|
46916
46881
|
backoff: reconnectionBackoffRef.current,
|
|
46917
46882
|
getFreshUrl: () => getNatsWsUrlRef.current(),
|
|
46918
46883
|
// JetStream emits 'error' for protocol-level failures (e.g. -ERR Permissions
|
|
@@ -46927,7 +46892,7 @@ function useJetStreamDialogSubscription({
|
|
|
46927
46892
|
setReconnectionCount((c) => c + 1);
|
|
46928
46893
|
}
|
|
46929
46894
|
hadConnectionBeforeRef.current = true;
|
|
46930
|
-
_optionalChain([onConnectRef, 'access',
|
|
46895
|
+
_optionalChain([onConnectRef, 'access', _1094 => _1094.current, 'optionalCall', _1095 => _1095()]);
|
|
46931
46896
|
}
|
|
46932
46897
|
if (status === "error") {
|
|
46933
46898
|
console.warn("[JetStream] NATS protocol error:", evt.data);
|
|
@@ -46937,7 +46902,7 @@ function useJetStreamDialogSubscription({
|
|
|
46937
46902
|
setIsConnected(false);
|
|
46938
46903
|
setIsSubscribed(false);
|
|
46939
46904
|
tearDownSubscription();
|
|
46940
|
-
_optionalChain([onDisconnectRef, 'access',
|
|
46905
|
+
_optionalChain([onDisconnectRef, 'access', _1096 => _1096.current, 'optionalCall', _1097 => _1097()]);
|
|
46941
46906
|
}
|
|
46942
46907
|
}
|
|
46943
46908
|
});
|
|
@@ -47016,7 +46981,7 @@ function useJetStreamDialogSubscription({
|
|
|
47016
46981
|
}
|
|
47017
46982
|
subscriptionRef.current = handle;
|
|
47018
46983
|
setIsSubscribed(true);
|
|
47019
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
46984
|
+
_optionalChain([onSubscribedRef, 'access', _1098 => _1098.current, 'optionalCall', _1099 => _1099()]);
|
|
47020
46985
|
} catch (e49) {
|
|
47021
46986
|
if (!cancelled) {
|
|
47022
46987
|
setIsSubscribed(false);
|
|
@@ -47129,20 +47094,20 @@ function useNatsDialogSubscription({
|
|
|
47129
47094
|
const tearDownSubscriptions = () => {
|
|
47130
47095
|
subscriptionRefs.current.forEach((sub) => {
|
|
47131
47096
|
try {
|
|
47132
|
-
_optionalChain([sub, 'optionalAccess',
|
|
47097
|
+
_optionalChain([sub, 'optionalAccess', _1100 => _1100.unsubscribe, 'call', _1101 => _1101()]);
|
|
47133
47098
|
} catch (e51) {
|
|
47134
47099
|
}
|
|
47135
47100
|
});
|
|
47136
47101
|
subscriptionRefs.current.clear();
|
|
47137
47102
|
lastSubscribedDialogIdRef.current = null;
|
|
47138
|
-
_optionalChain([abortControllerRef, 'access',
|
|
47103
|
+
_optionalChain([abortControllerRef, 'access', _1102 => _1102.current, 'optionalAccess', _1103 => _1103.abort, 'call', _1104 => _1104()]);
|
|
47139
47104
|
abortControllerRef.current = null;
|
|
47140
47105
|
};
|
|
47141
47106
|
const isDisconnectStatus = (status) => status === "closed" || status === "disconnected";
|
|
47142
47107
|
const lifecycle = _chunkPXXS27EEcjs.startConnectionLifecycle.call(void 0, {
|
|
47143
47108
|
conn: sharedConn,
|
|
47144
47109
|
wsUrl,
|
|
47145
|
-
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access',
|
|
47110
|
+
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _1105 => _1105.current, 'optionalCall', _1106 => _1106()]),
|
|
47146
47111
|
backoff: reconnectionBackoffRef.current,
|
|
47147
47112
|
getFreshUrl: () => getNatsWsUrlRef.current(),
|
|
47148
47113
|
shouldRetryOn: isDisconnectStatus,
|
|
@@ -47153,7 +47118,7 @@ function useNatsDialogSubscription({
|
|
|
47153
47118
|
setReconnectionCount((c) => c + 1);
|
|
47154
47119
|
}
|
|
47155
47120
|
hadConnectionBeforeRef.current = true;
|
|
47156
|
-
_optionalChain([onConnectRef, 'access',
|
|
47121
|
+
_optionalChain([onConnectRef, 'access', _1107 => _1107.current, 'optionalCall', _1108 => _1108()]);
|
|
47157
47122
|
}
|
|
47158
47123
|
if (status === "error") {
|
|
47159
47124
|
console.warn("[NATS] protocol error:", evt.data);
|
|
@@ -47163,7 +47128,7 @@ function useNatsDialogSubscription({
|
|
|
47163
47128
|
setIsConnected(false);
|
|
47164
47129
|
setIsSubscribed(false);
|
|
47165
47130
|
tearDownSubscriptions();
|
|
47166
|
-
_optionalChain([onDisconnectRef, 'access',
|
|
47131
|
+
_optionalChain([onDisconnectRef, 'access', _1109 => _1109.current, 'optionalCall', _1110 => _1110()]);
|
|
47167
47132
|
}
|
|
47168
47133
|
}
|
|
47169
47134
|
});
|
|
@@ -47194,13 +47159,13 @@ function useNatsDialogSubscription({
|
|
|
47194
47159
|
setIsSubscribed(false);
|
|
47195
47160
|
subscriptionRefs.current.forEach((sub) => {
|
|
47196
47161
|
try {
|
|
47197
|
-
_optionalChain([sub, 'optionalAccess',
|
|
47162
|
+
_optionalChain([sub, 'optionalAccess', _1111 => _1111.unsubscribe, 'call', _1112 => _1112()]);
|
|
47198
47163
|
} catch (e52) {
|
|
47199
47164
|
}
|
|
47200
47165
|
});
|
|
47201
47166
|
subscriptionRefs.current.clear();
|
|
47202
47167
|
lastSubscribedDialogIdRef.current = null;
|
|
47203
|
-
_optionalChain([abortControllerRef, 'access',
|
|
47168
|
+
_optionalChain([abortControllerRef, 'access', _1113 => _1113.current, 'optionalAccess', _1114 => _1114.abort, 'call', _1115 => _1115()]);
|
|
47204
47169
|
abortControllerRef.current = null;
|
|
47205
47170
|
}
|
|
47206
47171
|
return;
|
|
@@ -47212,12 +47177,12 @@ function useNatsDialogSubscription({
|
|
|
47212
47177
|
if (subscriptionRefs.current.size > 0) {
|
|
47213
47178
|
subscriptionRefs.current.forEach((sub) => {
|
|
47214
47179
|
try {
|
|
47215
|
-
_optionalChain([sub, 'optionalAccess',
|
|
47180
|
+
_optionalChain([sub, 'optionalAccess', _1116 => _1116.unsubscribe, 'call', _1117 => _1117()]);
|
|
47216
47181
|
} catch (e53) {
|
|
47217
47182
|
}
|
|
47218
47183
|
});
|
|
47219
47184
|
subscriptionRefs.current.clear();
|
|
47220
|
-
_optionalChain([abortControllerRef, 'access',
|
|
47185
|
+
_optionalChain([abortControllerRef, 'access', _1118 => _1118.current, 'optionalAccess', _1119 => _1119.abort, 'call', _1120 => _1120()]);
|
|
47221
47186
|
}
|
|
47222
47187
|
abortControllerRef.current = new AbortController();
|
|
47223
47188
|
const abort = abortControllerRef.current;
|
|
@@ -47249,7 +47214,7 @@ function useNatsDialogSubscription({
|
|
|
47249
47214
|
});
|
|
47250
47215
|
lastSubscribedDialogIdRef.current = dialogId;
|
|
47251
47216
|
setIsSubscribed(true);
|
|
47252
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
47217
|
+
_optionalChain([onSubscribedRef, 'access', _1121 => _1121.current, 'optionalCall', _1122 => _1122()]);
|
|
47253
47218
|
};
|
|
47254
47219
|
if (isConnectedRef.current) {
|
|
47255
47220
|
createSubscriptions();
|
|
@@ -47259,7 +47224,7 @@ function useNatsDialogSubscription({
|
|
|
47259
47224
|
abort.abort();
|
|
47260
47225
|
subscriptionRefs.current.forEach((sub) => {
|
|
47261
47226
|
try {
|
|
47262
|
-
_optionalChain([sub, 'optionalAccess',
|
|
47227
|
+
_optionalChain([sub, 'optionalAccess', _1123 => _1123.unsubscribe, 'call', _1124 => _1124()]);
|
|
47263
47228
|
} catch (e55) {
|
|
47264
47229
|
}
|
|
47265
47230
|
});
|
|
@@ -47300,7 +47265,7 @@ function useNatsDialogSubscription({
|
|
|
47300
47265
|
});
|
|
47301
47266
|
lastSubscribedDialogIdRef.current = dialogId2;
|
|
47302
47267
|
setIsSubscribed(true);
|
|
47303
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
47268
|
+
_optionalChain([onSubscribedRef, 'access', _1125 => _1125.current, 'optionalCall', _1126 => _1126()]);
|
|
47304
47269
|
} else if (subscriptionRefs.current.size > 0) {
|
|
47305
47270
|
setIsSubscribed(true);
|
|
47306
47271
|
}
|
|
@@ -47308,10 +47273,10 @@ function useNatsDialogSubscription({
|
|
|
47308
47273
|
return { isConnected, isSubscribed, reconnectionCount };
|
|
47309
47274
|
}
|
|
47310
47275
|
function buildNatsWsUrl(apiBaseUrl, options) {
|
|
47311
|
-
const path = _optionalChain([options, 'optionalAccess',
|
|
47276
|
+
const path = _optionalChain([options, 'optionalAccess', _1127 => _1127.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
|
|
47312
47277
|
const u = new URL(path, apiBaseUrl);
|
|
47313
47278
|
u.protocol = u.protocol === "https:" ? "wss:" : "ws:";
|
|
47314
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
47279
|
+
if (_optionalChain([options, 'optionalAccess', _1128 => _1128.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _1129 => _1129.token])) {
|
|
47315
47280
|
u.searchParams.set("authorization", options.token);
|
|
47316
47281
|
}
|
|
47317
47282
|
return u.toString();
|
|
@@ -47447,7 +47412,7 @@ function parseChunkToAction(chunk) {
|
|
|
47447
47412
|
// is REQUIRED on `ChatContextItem`, so fall back to the id (same as the
|
|
47448
47413
|
// historical path in `process-historical-messages.ts`) — keeps both
|
|
47449
47414
|
// message sources producing an identical shape.
|
|
47450
|
-
contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess',
|
|
47415
|
+
contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess', _1130 => _1130.type]) === "string" && typeof _optionalChain([it, 'optionalAccess', _1131 => _1131.id]) === "string").map((it) => ({ type: it.type, id: it.id, label: it.id })) : void 0
|
|
47451
47416
|
};
|
|
47452
47417
|
case MESSAGE_TYPE.TOKEN_USAGE:
|
|
47453
47418
|
return {
|
|
@@ -47639,8 +47604,8 @@ var MessageSegmentAccumulator = class {
|
|
|
47639
47604
|
type: "tool_execution",
|
|
47640
47605
|
data: {
|
|
47641
47606
|
...toolData,
|
|
47642
|
-
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess',
|
|
47643
|
-
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess',
|
|
47607
|
+
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _1132 => _1132.data, 'access', _1133 => _1133.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _1134 => _1134.toolTitle]))),
|
|
47608
|
+
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _1135 => _1135.parameters])
|
|
47644
47609
|
}
|
|
47645
47610
|
};
|
|
47646
47611
|
if (existingIndex !== -1) {
|
|
@@ -47664,8 +47629,8 @@ var MessageSegmentAccumulator = class {
|
|
|
47664
47629
|
if (seg.type !== "approval_batch") return seg;
|
|
47665
47630
|
const hasCall = seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId);
|
|
47666
47631
|
if (!hasCall) return seg;
|
|
47667
|
-
const prev = _optionalChain([seg, 'access',
|
|
47668
|
-
const next = toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prev, 'optionalAccess',
|
|
47632
|
+
const prev = _optionalChain([seg, 'access', _1136 => _1136.data, 'access', _1137 => _1137.executions, 'optionalAccess', _1138 => _1138[execId]]);
|
|
47633
|
+
const next = toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prev, 'optionalAccess', _1139 => _1139.result]), success: _optionalChain([prev, 'optionalAccess', _1140 => _1140.success]) };
|
|
47669
47634
|
matched = true;
|
|
47670
47635
|
return {
|
|
47671
47636
|
...seg,
|
|
@@ -47787,10 +47752,10 @@ var MessageSegmentAccumulator = class {
|
|
|
47787
47752
|
const segment = {
|
|
47788
47753
|
type: "approval_request",
|
|
47789
47754
|
data: {
|
|
47790
|
-
command: _optionalChain([pendingApproval, 'optionalAccess',
|
|
47791
|
-
explanation: _optionalChain([pendingApproval, 'optionalAccess',
|
|
47755
|
+
command: _optionalChain([pendingApproval, 'optionalAccess', _1141 => _1141.command]) || "",
|
|
47756
|
+
explanation: _optionalChain([pendingApproval, 'optionalAccess', _1142 => _1142.explanation]),
|
|
47792
47757
|
requestId,
|
|
47793
|
-
approvalType: _optionalChain([pendingApproval, 'optionalAccess',
|
|
47758
|
+
approvalType: _optionalChain([pendingApproval, 'optionalAccess', _1143 => _1143.approvalType]) || approvalType
|
|
47794
47759
|
},
|
|
47795
47760
|
status,
|
|
47796
47761
|
onApprove: this.callbacks.onApprove,
|
|
@@ -47982,7 +47947,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
47982
47947
|
if (initialState.escalatedApprovals) {
|
|
47983
47948
|
pendingEscalatedRef.current = new Map(initialState.escalatedApprovals);
|
|
47984
47949
|
initialState.escalatedApprovals.forEach((data, requestId) => {
|
|
47985
|
-
_optionalChain([callbacks, 'access',
|
|
47950
|
+
_optionalChain([callbacks, 'access', _1144 => _1144.onEscalatedApproval, 'optionalCall', _1145 => _1145(requestId, data)]);
|
|
47986
47951
|
});
|
|
47987
47952
|
}
|
|
47988
47953
|
hasEverStreamedRef.current = true;
|
|
@@ -48003,12 +47968,12 @@ function useRealtimeChunkProcessor(options) {
|
|
|
48003
47968
|
if (!action) return;
|
|
48004
47969
|
const accumulator = accumulatorRef.current;
|
|
48005
47970
|
const streamSeq = chunk && typeof chunk === "object" && typeof chunk.streamSeq === "number" ? chunk.streamSeq : void 0;
|
|
48006
|
-
const emitSegments = (s, meta) => _optionalChain([callbacks, 'access',
|
|
47971
|
+
const emitSegments = (s, meta) => _optionalChain([callbacks, 'access', _1146 => _1146.onSegmentsUpdate, 'optionalCall', _1147 => _1147(s, streamSeq != null ? { ...meta, streamSeq } : meta)]);
|
|
48007
47972
|
if (action.action === "direct_message") sawDirectMessageRef.current = true;
|
|
48008
47973
|
if ((directModeFlagRef.current || sawDirectMessageRef.current) && !DIRECT_MODE_ALLOWED.has(action.action)) {
|
|
48009
47974
|
if (isInStreamRef.current) {
|
|
48010
47975
|
isInStreamRef.current = false;
|
|
48011
|
-
_optionalChain([callbacks, 'access',
|
|
47976
|
+
_optionalChain([callbacks, 'access', _1148 => _1148.onStreamEnd, 'optionalCall', _1149 => _1149()]);
|
|
48012
47977
|
accumulator.resetSegments();
|
|
48013
47978
|
}
|
|
48014
47979
|
return;
|
|
@@ -48017,16 +47982,16 @@ function useRealtimeChunkProcessor(options) {
|
|
|
48017
47982
|
case "message_start":
|
|
48018
47983
|
isInStreamRef.current = true;
|
|
48019
47984
|
hasEverStreamedRef.current = true;
|
|
48020
|
-
_optionalChain([callbacks, 'access',
|
|
47985
|
+
_optionalChain([callbacks, 'access', _1150 => _1150.onStreamStart, 'optionalCall', _1151 => _1151()]);
|
|
48021
47986
|
accumulator.resetSegments();
|
|
48022
47987
|
break;
|
|
48023
47988
|
case "message_end":
|
|
48024
47989
|
isInStreamRef.current = false;
|
|
48025
|
-
_optionalChain([callbacks, 'access',
|
|
47990
|
+
_optionalChain([callbacks, 'access', _1152 => _1152.onStreamEnd, 'optionalCall', _1153 => _1153()]);
|
|
48026
47991
|
accumulator.resetSegments();
|
|
48027
47992
|
break;
|
|
48028
47993
|
case "metadata":
|
|
48029
|
-
_optionalChain([callbacks, 'access',
|
|
47994
|
+
_optionalChain([callbacks, 'access', _1154 => _1154.onMetadata, 'optionalCall', _1155 => _1155(action)]);
|
|
48030
47995
|
break;
|
|
48031
47996
|
case "text": {
|
|
48032
47997
|
const segments = accumulator.appendText(action.text);
|
|
@@ -48069,7 +48034,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
48069
48034
|
emitSegments(segments);
|
|
48070
48035
|
} else {
|
|
48071
48036
|
pendingEscalatedRef.current.set(requestId, { command, explanation, approvalType });
|
|
48072
|
-
_optionalChain([callbacks, 'access',
|
|
48037
|
+
_optionalChain([callbacks, 'access', _1156 => _1156.onEscalatedApproval, 'optionalCall', _1157 => _1157(requestId, { command, explanation, approvalType })]);
|
|
48073
48038
|
}
|
|
48074
48039
|
break;
|
|
48075
48040
|
}
|
|
@@ -48081,13 +48046,13 @@ function useRealtimeChunkProcessor(options) {
|
|
|
48081
48046
|
const summary = required ? getCommandText(required) : `Batch of ${toolCalls.length} tool calls`;
|
|
48082
48047
|
pendingEscalatedRef.current.set(requestId, {
|
|
48083
48048
|
command: summary,
|
|
48084
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
48049
|
+
explanation: _optionalChain([required, 'optionalAccess', _1158 => _1158.toolExplanation]),
|
|
48085
48050
|
approvalType,
|
|
48086
48051
|
toolCalls
|
|
48087
48052
|
});
|
|
48088
|
-
_optionalChain([callbacks, 'access',
|
|
48053
|
+
_optionalChain([callbacks, 'access', _1159 => _1159.onEscalatedApproval, 'optionalCall', _1160 => _1160(requestId, {
|
|
48089
48054
|
command: summary,
|
|
48090
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
48055
|
+
explanation: _optionalChain([required, 'optionalAccess', _1161 => _1161.toolExplanation]),
|
|
48091
48056
|
approvalType
|
|
48092
48057
|
})]);
|
|
48093
48058
|
break;
|
|
@@ -48117,7 +48082,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
48117
48082
|
const status = approved ? "approved" : "rejected";
|
|
48118
48083
|
if (escalatedData) {
|
|
48119
48084
|
pendingEscalatedRef.current.delete(requestId);
|
|
48120
|
-
_optionalChain([callbacks, 'access',
|
|
48085
|
+
_optionalChain([callbacks, 'access', _1162 => _1162.onEscalatedApprovalResult, 'optionalCall', _1163 => _1163(requestId, approved, {
|
|
48121
48086
|
command: escalatedData.command,
|
|
48122
48087
|
explanation: escalatedData.explanation,
|
|
48123
48088
|
approvalType: escalatedData.approvalType
|
|
@@ -48163,29 +48128,29 @@ function useRealtimeChunkProcessor(options) {
|
|
|
48163
48128
|
emitSegments(accumulator.getSegments());
|
|
48164
48129
|
}
|
|
48165
48130
|
}
|
|
48166
|
-
_optionalChain([callbacks, 'access',
|
|
48131
|
+
_optionalChain([callbacks, 'access', _1164 => _1164.onApprovalResolved, 'optionalCall', _1165 => _1165(requestId, status, approvalType, resolvedByName)]);
|
|
48167
48132
|
break;
|
|
48168
48133
|
}
|
|
48169
48134
|
case "error": {
|
|
48170
48135
|
let message2;
|
|
48171
|
-
if ("details" in action && _optionalChain([action, 'optionalAccess',
|
|
48136
|
+
if ("details" in action && _optionalChain([action, 'optionalAccess', _1166 => _1166.details])) {
|
|
48172
48137
|
try {
|
|
48173
|
-
message2 = _optionalChain([JSON, 'access',
|
|
48138
|
+
message2 = _optionalChain([JSON, 'access', _1167 => _1167.parse, 'call', _1168 => _1168(action.details), 'optionalAccess', _1169 => _1169.error, 'optionalAccess', _1170 => _1170.message]);
|
|
48174
48139
|
} catch (e57) {
|
|
48175
48140
|
message2 = action.details;
|
|
48176
48141
|
}
|
|
48177
48142
|
}
|
|
48178
48143
|
const segments = accumulator.addError(action.error, message2);
|
|
48179
48144
|
emitSegments(segments);
|
|
48180
|
-
_optionalChain([callbacks, 'access',
|
|
48145
|
+
_optionalChain([callbacks, 'access', _1171 => _1171.onError, 'optionalCall', _1172 => _1172(action.error, message2)]);
|
|
48181
48146
|
break;
|
|
48182
48147
|
}
|
|
48183
48148
|
case "system": {
|
|
48184
|
-
_optionalChain([callbacks, 'access',
|
|
48149
|
+
_optionalChain([callbacks, 'access', _1173 => _1173.onSystemMessage, 'optionalCall', _1174 => _1174(action.text, { streamSeq })]);
|
|
48185
48150
|
break;
|
|
48186
48151
|
}
|
|
48187
48152
|
case "direct_message": {
|
|
48188
|
-
_optionalChain([callbacks, 'access',
|
|
48153
|
+
_optionalChain([callbacks, 'access', _1175 => _1175.onDirectMessage, 'optionalCall', _1176 => _1176(action.text, {
|
|
48189
48154
|
ownerType: action.ownerType,
|
|
48190
48155
|
displayName: action.displayName,
|
|
48191
48156
|
userId: action.userId,
|
|
@@ -48194,7 +48159,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
48194
48159
|
break;
|
|
48195
48160
|
}
|
|
48196
48161
|
case "message_request":
|
|
48197
|
-
_optionalChain([callbacks, 'access',
|
|
48162
|
+
_optionalChain([callbacks, 'access', _1177 => _1177.onUserMessage, 'optionalCall', _1178 => _1178(action.text, {
|
|
48198
48163
|
ownerType: action.ownerType,
|
|
48199
48164
|
displayName: action.displayName,
|
|
48200
48165
|
userId: action.userId,
|
|
@@ -48203,7 +48168,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
48203
48168
|
})]);
|
|
48204
48169
|
break;
|
|
48205
48170
|
case "token_usage":
|
|
48206
|
-
_optionalChain([callbacks, 'access',
|
|
48171
|
+
_optionalChain([callbacks, 'access', _1179 => _1179.onTokenUsage, 'optionalCall', _1180 => _1180(action.data)]);
|
|
48207
48172
|
break;
|
|
48208
48173
|
case "context_compaction_start": {
|
|
48209
48174
|
const standalone = !isInStreamRef.current;
|
|
@@ -48218,7 +48183,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
48218
48183
|
break;
|
|
48219
48184
|
}
|
|
48220
48185
|
case "dialog_closed":
|
|
48221
|
-
_optionalChain([callbacks, 'access',
|
|
48186
|
+
_optionalChain([callbacks, 'access', _1181 => _1181.onDialogClosed, 'optionalCall', _1182 => _1182()]);
|
|
48222
48187
|
break;
|
|
48223
48188
|
default:
|
|
48224
48189
|
break;
|
|
@@ -48260,12 +48225,12 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
|
|
|
48260
48225
|
try {
|
|
48261
48226
|
const url = new URL(commandsUrl, window.location.origin);
|
|
48262
48227
|
if (prefix) url.searchParams.set("q", prefix);
|
|
48263
|
-
const res = await
|
|
48228
|
+
const res = await _chunkJWBRDNYHcjs.embedAuthedFetch.call(void 0, url.toString(), { signal, headers: {} });
|
|
48264
48229
|
if (!res.ok) return [];
|
|
48265
48230
|
const data = await res.json();
|
|
48266
48231
|
return _nullishCoalesce(data.commands, () => ( []));
|
|
48267
48232
|
} catch (err) {
|
|
48268
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
48233
|
+
if (_optionalChain([err, 'optionalAccess', _1183 => _1183.name]) === "AbortError") throw err;
|
|
48269
48234
|
console.warn("[chat] slash-commands fetch failed, showing none:", err);
|
|
48270
48235
|
return [];
|
|
48271
48236
|
}
|
|
@@ -48286,7 +48251,7 @@ function useSlashCommands(prefix, commandsUrl) {
|
|
|
48286
48251
|
const next = await fetchSlashCommands(prefix, ctrl.signal, commandsUrl);
|
|
48287
48252
|
if (!cancelled) setCommands(next);
|
|
48288
48253
|
} catch (err) {
|
|
48289
|
-
if (!cancelled && _optionalChain([err, 'optionalAccess',
|
|
48254
|
+
if (!cancelled && _optionalChain([err, 'optionalAccess', _1184 => _1184.name]) !== "AbortError") {
|
|
48290
48255
|
console.warn("[use-slash-commands] fetch failed:", err);
|
|
48291
48256
|
}
|
|
48292
48257
|
} finally {
|
|
@@ -48305,7 +48270,7 @@ function useSlashCommandRegistry(commandsUrl, options) {
|
|
|
48305
48270
|
const query = _reactquery.useQuery.call(void 0, {
|
|
48306
48271
|
queryKey: ["chat-slash-commands", commandsUrl],
|
|
48307
48272
|
queryFn: ({ signal }) => fetchSlashCommands("", signal, commandsUrl),
|
|
48308
|
-
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
48273
|
+
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _1185 => _1185.enabled]), () => ( true)),
|
|
48309
48274
|
staleTime: Infinity,
|
|
48310
48275
|
gcTime: Infinity,
|
|
48311
48276
|
// The commands registry is non-critical chrome — a failure degrades to an
|
|
@@ -48335,7 +48300,7 @@ var EMPTY_STATE_FALLBACK = {
|
|
|
48335
48300
|
async function fetchEmptyStateConfig(signal, emptyStateUrl) {
|
|
48336
48301
|
try {
|
|
48337
48302
|
const url = new URL(emptyStateUrl, window.location.origin);
|
|
48338
|
-
const res = await
|
|
48303
|
+
const res = await _chunkJWBRDNYHcjs.embedAuthedFetch.call(void 0, url.toString(), { signal, headers: {} });
|
|
48339
48304
|
if (!res.ok) {
|
|
48340
48305
|
if (res.status >= 500) {
|
|
48341
48306
|
console.error(`[chat] empty-state config fetch failed (${res.status}): ${url.pathname}`);
|
|
@@ -48344,21 +48309,21 @@ async function fetchEmptyStateConfig(signal, emptyStateUrl) {
|
|
|
48344
48309
|
}
|
|
48345
48310
|
const data = await res.json();
|
|
48346
48311
|
return {
|
|
48347
|
-
name: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
48348
|
-
icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
48349
|
-
greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
48350
|
-
enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
48351
|
-
quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
48352
|
-
suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
48312
|
+
name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1186 => _1186.name]), () => ( null)),
|
|
48313
|
+
icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1187 => _1187.icon]), () => ( null)),
|
|
48314
|
+
greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1188 => _1188.greeting]), () => ( null)),
|
|
48315
|
+
enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1189 => _1189.enabledRagTableIds]), () => ( [])),
|
|
48316
|
+
quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1190 => _1190.quickActions]), () => ( [])),
|
|
48317
|
+
suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1191 => _1191.suggestedQueries]), () => ( []))
|
|
48353
48318
|
};
|
|
48354
48319
|
} catch (err) {
|
|
48355
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
48320
|
+
if (_optionalChain([err, 'optionalAccess', _1192 => _1192.name]) === "AbortError") throw err;
|
|
48356
48321
|
console.warn("[chat] empty-state config fetch failed, using neutral defaults:", err);
|
|
48357
48322
|
return EMPTY_STATE_FALLBACK;
|
|
48358
48323
|
}
|
|
48359
48324
|
}
|
|
48360
48325
|
function useEmptyStateConfig(emptyStateUrl, options) {
|
|
48361
|
-
const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
48326
|
+
const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _1193 => _1193.enabled]), () => ( true))) && !!emptyStateUrl;
|
|
48362
48327
|
const query = _reactquery.useQuery.call(void 0, {
|
|
48363
48328
|
queryKey: ["chat-empty-state", emptyStateUrl],
|
|
48364
48329
|
queryFn: ({ signal }) => fetchEmptyStateConfig(signal, emptyStateUrl),
|
|
@@ -48387,7 +48352,7 @@ var CHAT_ATTACHMENT_MAX_SIZE_BYTES = 25 * 1024 * 1024;
|
|
|
48387
48352
|
var STORAGE_CACHE_CONTROL_IMMUTABLE = "public, max-age=31536000, immutable";
|
|
48388
48353
|
function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
48389
48354
|
return new Promise((resolve, reject) => {
|
|
48390
|
-
if (_optionalChain([signal, 'optionalAccess',
|
|
48355
|
+
if (_optionalChain([signal, 'optionalAccess', _1194 => _1194.aborted])) {
|
|
48391
48356
|
reject(new Error("Upload cancelled"));
|
|
48392
48357
|
return;
|
|
48393
48358
|
}
|
|
@@ -48401,7 +48366,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
|
48401
48366
|
xhr.removeEventListener("error", handleError);
|
|
48402
48367
|
xhr.removeEventListener("abort", handleAbort);
|
|
48403
48368
|
xhr.removeEventListener("timeout", handleTimeout);
|
|
48404
|
-
_optionalChain([signal, 'optionalAccess',
|
|
48369
|
+
_optionalChain([signal, 'optionalAccess', _1195 => _1195.removeEventListener, 'call', _1196 => _1196("abort", handleSignalAbort)]);
|
|
48405
48370
|
if (xhr.readyState !== XMLHttpRequest.DONE) xhr.abort();
|
|
48406
48371
|
};
|
|
48407
48372
|
const handleProgress = (event) => {
|
|
@@ -48437,7 +48402,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
|
48437
48402
|
const handleSignalAbort = () => {
|
|
48438
48403
|
xhr.abort();
|
|
48439
48404
|
};
|
|
48440
|
-
_optionalChain([signal, 'optionalAccess',
|
|
48405
|
+
_optionalChain([signal, 'optionalAccess', _1197 => _1197.addEventListener, 'call', _1198 => _1198("abort", handleSignalAbort, { once: true })]);
|
|
48441
48406
|
xhr.upload.addEventListener("progress", handleProgress);
|
|
48442
48407
|
xhr.addEventListener("load", handleLoad);
|
|
48443
48408
|
xhr.addEventListener("error", handleError);
|
|
@@ -48481,12 +48446,12 @@ function useChatAttachments() {
|
|
|
48481
48446
|
try {
|
|
48482
48447
|
sniffed = await _filetype.fileTypeFromBlob.call(void 0, att.file);
|
|
48483
48448
|
} catch (err) {
|
|
48484
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
48449
|
+
if (_optionalChain([ctrl, 'optionalAccess', _1199 => _1199.signal, 'access', _1200 => _1200.aborted])) return;
|
|
48485
48450
|
throw new Error(
|
|
48486
48451
|
`Could not read file content: ${err instanceof Error ? err.message : String(err)}`
|
|
48487
48452
|
);
|
|
48488
48453
|
}
|
|
48489
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
48454
|
+
if (_optionalChain([ctrl, 'optionalAccess', _1201 => _1201.signal, 'access', _1202 => _1202.aborted])) return;
|
|
48490
48455
|
if (!sniffed) {
|
|
48491
48456
|
throw new Error("Unrecognized file format");
|
|
48492
48457
|
}
|
|
@@ -48497,10 +48462,10 @@ function useChatAttachments() {
|
|
|
48497
48462
|
);
|
|
48498
48463
|
}
|
|
48499
48464
|
updateOne(att.id, { status: "uploading", progress: 5 });
|
|
48500
|
-
const urlResp = await
|
|
48465
|
+
const urlResp = await _chunkJWBRDNYHcjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
|
|
48501
48466
|
method: "POST",
|
|
48502
48467
|
headers: { "Content-Type": "application/json" },
|
|
48503
|
-
signal: _optionalChain([ctrl, 'optionalAccess',
|
|
48468
|
+
signal: _optionalChain([ctrl, 'optionalAccess', _1203 => _1203.signal]),
|
|
48504
48469
|
body: JSON.stringify({
|
|
48505
48470
|
fileName: att.file.name,
|
|
48506
48471
|
// Pass the SNIFFED MIME (not `file.type`, which can be a
|
|
@@ -48526,9 +48491,9 @@ function useChatAttachments() {
|
|
|
48526
48491
|
(pct) => {
|
|
48527
48492
|
updateOne(att.id, { progress: pct });
|
|
48528
48493
|
},
|
|
48529
|
-
_optionalChain([ctrl, 'optionalAccess',
|
|
48494
|
+
_optionalChain([ctrl, 'optionalAccess', _1204 => _1204.signal])
|
|
48530
48495
|
);
|
|
48531
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
48496
|
+
if (_optionalChain([ctrl, 'optionalAccess', _1205 => _1205.signal, 'access', _1206 => _1206.aborted])) return;
|
|
48532
48497
|
updateOne(att.id, {
|
|
48533
48498
|
status: "ready",
|
|
48534
48499
|
progress: 100,
|
|
@@ -48536,7 +48501,7 @@ function useChatAttachments() {
|
|
|
48536
48501
|
viewToken: mintData.viewToken
|
|
48537
48502
|
});
|
|
48538
48503
|
} catch (err) {
|
|
48539
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
48504
|
+
if (_optionalChain([ctrl, 'optionalAccess', _1207 => _1207.signal, 'access', _1208 => _1208.aborted])) return;
|
|
48540
48505
|
const message2 = err instanceof Error ? err.message : String(err);
|
|
48541
48506
|
updateOne(att.id, { status: "error", progress: 0, errorMessage: message2 });
|
|
48542
48507
|
} finally {
|
|
@@ -48687,7 +48652,7 @@ var ANON_DEFAULTS = {
|
|
|
48687
48652
|
function useResolveChatIdentity(enabled) {
|
|
48688
48653
|
const runtime = _chunk3KEBI6TPcjs.useRequiredChatRuntime.call(void 0, );
|
|
48689
48654
|
const url = runtime.endpoints.identityUrl;
|
|
48690
|
-
const proxyEmail = _nullishCoalesce(_optionalChain([
|
|
48655
|
+
const proxyEmail = _nullishCoalesce(_optionalChain([_chunkJWBRDNYHcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _1209 => _1209.email]), () => ( null));
|
|
48691
48656
|
const [data, setData] = _react.useState.call(void 0, ANON_DEFAULTS);
|
|
48692
48657
|
const [isLoading, setIsLoading] = _react.useState.call(void 0, enabled);
|
|
48693
48658
|
_react.useEffect.call(void 0, () => {
|
|
@@ -48695,7 +48660,7 @@ function useResolveChatIdentity(enabled) {
|
|
|
48695
48660
|
let cancelled = false;
|
|
48696
48661
|
const ctrl = new AbortController();
|
|
48697
48662
|
setIsLoading(true);
|
|
48698
|
-
|
|
48663
|
+
_chunkJWBRDNYHcjs.embedAuthedFetch.call(void 0, url, { signal: ctrl.signal }).then(async (resp) => {
|
|
48699
48664
|
if (!resp.ok) return ANON_DEFAULTS;
|
|
48700
48665
|
return await resp.json();
|
|
48701
48666
|
}).then((next) => {
|
|
@@ -48778,7 +48743,7 @@ function useSSE({ useMock = true, debugMode = false, streamFn } = {}) {
|
|
|
48778
48743
|
yield chunk;
|
|
48779
48744
|
}
|
|
48780
48745
|
} catch (err) {
|
|
48781
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
48746
|
+
if (_optionalChain([err, 'optionalAccess', _1210 => _1210.name]) === "AbortError" || ctrl.signal.aborted) {
|
|
48782
48747
|
return;
|
|
48783
48748
|
}
|
|
48784
48749
|
const errorMessage = err instanceof Error ? err.message : "An error occurred";
|
|
@@ -48829,7 +48794,7 @@ function useChat({
|
|
|
48829
48794
|
const onMessagesChangeRef = _react.useRef.call(void 0, onMessagesChange);
|
|
48830
48795
|
onMessagesChangeRef.current = onMessagesChange;
|
|
48831
48796
|
_react.useEffect.call(void 0, () => {
|
|
48832
|
-
_optionalChain([onMessagesChangeRef, 'access',
|
|
48797
|
+
_optionalChain([onMessagesChangeRef, 'access', _1211 => _1211.current, 'optionalCall', _1212 => _1212(messages)]);
|
|
48833
48798
|
}, [messages]);
|
|
48834
48799
|
const {
|
|
48835
48800
|
streamMessage,
|
|
@@ -48866,7 +48831,7 @@ function useChat({
|
|
|
48866
48831
|
name: "You",
|
|
48867
48832
|
content: text,
|
|
48868
48833
|
timestamp: /* @__PURE__ */ new Date(),
|
|
48869
|
-
..._optionalChain([options, 'optionalAccess',
|
|
48834
|
+
..._optionalChain([options, 'optionalAccess', _1213 => _1213.hidden]) ? { hidden: true } : {}
|
|
48870
48835
|
};
|
|
48871
48836
|
addMessage(userMessage);
|
|
48872
48837
|
setIsTyping(true);
|
|
@@ -48928,7 +48893,7 @@ function useChat({
|
|
|
48928
48893
|
currentTextSegment = "";
|
|
48929
48894
|
}
|
|
48930
48895
|
const seg = segment;
|
|
48931
|
-
const proposalId = _optionalChain([seg, 'access',
|
|
48896
|
+
const proposalId = _optionalChain([seg, 'access', _1214 => _1214.data, 'optionalAccess', _1215 => _1215.requestId]);
|
|
48932
48897
|
const updateApprovalMessage = (transform) => {
|
|
48933
48898
|
setMessages((prev) => {
|
|
48934
48899
|
for (let i = prev.length - 1; i >= 0; i--) {
|
|
@@ -48937,7 +48902,7 @@ function useChat({
|
|
|
48937
48902
|
if (!Array.isArray(m.content)) continue;
|
|
48938
48903
|
const segments = m.content;
|
|
48939
48904
|
const hasMatch = segments.some(
|
|
48940
|
-
(s) => s.type === "approval_request" && _optionalChain([s, 'access',
|
|
48905
|
+
(s) => s.type === "approval_request" && _optionalChain([s, 'access', _1216 => _1216.data, 'optionalAccess', _1217 => _1217.requestId]) === proposalId
|
|
48941
48906
|
);
|
|
48942
48907
|
if (!hasMatch) continue;
|
|
48943
48908
|
const next = [...prev];
|
|
@@ -48979,11 +48944,11 @@ function useChat({
|
|
|
48979
48944
|
if (!Array.isArray(m.content)) continue;
|
|
48980
48945
|
const segments = m.content;
|
|
48981
48946
|
const hasMatch = segments.some(
|
|
48982
|
-
(s) => s.type === "approval_request" && _optionalChain([s, 'access',
|
|
48947
|
+
(s) => s.type === "approval_request" && _optionalChain([s, 'access', _1218 => _1218.data, 'optionalAccess', _1219 => _1219.requestId]) === decision.proposalId
|
|
48983
48948
|
);
|
|
48984
48949
|
if (!hasMatch) continue;
|
|
48985
48950
|
const flipped = segments.map(
|
|
48986
|
-
(s) => s.type === "approval_request" && _optionalChain([s, 'access',
|
|
48951
|
+
(s) => s.type === "approval_request" && _optionalChain([s, 'access', _1220 => _1220.data, 'optionalAccess', _1221 => _1221.requestId]) === decision.proposalId ? { ...s, status: decision.action } : s
|
|
48987
48952
|
);
|
|
48988
48953
|
const next = [...prev];
|
|
48989
48954
|
next[i] = { ...m, content: flipped };
|
|
@@ -49145,8 +49110,8 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
49145
49110
|
})),
|
|
49146
49111
|
{ role: "user", content: message2 }
|
|
49147
49112
|
];
|
|
49148
|
-
const targetPath = _optionalChain([extra, 'optionalAccess',
|
|
49149
|
-
const requestBody = _optionalChain([extra, 'optionalAccess',
|
|
49113
|
+
const targetPath = _optionalChain([extra, 'optionalAccess', _1222 => _1222.approvalAction]) ? endpoints.approvalToolUrl : endpoints.chatStreamUrl;
|
|
49114
|
+
const requestBody = _optionalChain([extra, 'optionalAccess', _1223 => _1223.approvalAction]) ? {
|
|
49150
49115
|
proposal_id: extra.approvalAction.proposalId,
|
|
49151
49116
|
action: extra.approvalAction.action,
|
|
49152
49117
|
messages: currentMessages.filter((m) => (m.role === "user" || m.role === "assistant") && !m.hidden).map((m) => ({
|
|
@@ -49155,10 +49120,10 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
49155
49120
|
}))
|
|
49156
49121
|
} : {
|
|
49157
49122
|
messages: apiMessages,
|
|
49158
|
-
..._optionalChain([extra, 'optionalAccess',
|
|
49159
|
-
..._optionalChain([extra, 'optionalAccess',
|
|
49123
|
+
..._optionalChain([extra, 'optionalAccess', _1224 => _1224.commandOverride]) ? { commandOverride: extra.commandOverride } : {},
|
|
49124
|
+
..._optionalChain([extra, 'optionalAccess', _1225 => _1225.pendingAttachments]) && extra.pendingAttachments.length > 0 ? { pendingAttachments: extra.pendingAttachments } : {}
|
|
49160
49125
|
};
|
|
49161
|
-
const response = await
|
|
49126
|
+
const response = await _chunkJWBRDNYHcjs.embedAuthedFetch.call(void 0, targetPath, {
|
|
49162
49127
|
method: "POST",
|
|
49163
49128
|
body: JSON.stringify(requestBody),
|
|
49164
49129
|
signal
|
|
@@ -49166,7 +49131,7 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
49166
49131
|
if (!response.ok) {
|
|
49167
49132
|
throw new Error(`Chat request failed: ${response.status}`);
|
|
49168
49133
|
}
|
|
49169
|
-
const reader = _optionalChain([response, 'access',
|
|
49134
|
+
const reader = _optionalChain([response, 'access', _1226 => _1226.body, 'optionalAccess', _1227 => _1227.getReader, 'call', _1228 => _1228()]);
|
|
49170
49135
|
if (!reader) throw new Error("No response body");
|
|
49171
49136
|
const decoder = new TextDecoder();
|
|
49172
49137
|
let buffer = "";
|
|
@@ -49249,7 +49214,7 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
49249
49214
|
const toolName = typeof meta.tool_name === "string" ? meta.tool_name : void 0;
|
|
49250
49215
|
const result = _nullishCoalesce(meta.result, () => ( null));
|
|
49251
49216
|
const card = _nullishCoalesce(meta.card, () => ( null));
|
|
49252
|
-
if (_optionalChain([card, 'optionalAccess',
|
|
49217
|
+
if (_optionalChain([card, 'optionalAccess', _1229 => _1229.ref, 'optionalAccess', _1230 => _1230.id]) && _optionalChain([card, 'optionalAccess', _1231 => _1231.type])) {
|
|
49253
49218
|
const existing = _nullishCoalesce(refsMapRef.current.get(sendIdx), () => ( {}));
|
|
49254
49219
|
const key = buildChatRefKey(card.type, card.ref.id);
|
|
49255
49220
|
refsMapRef.current.set(sendIdx, { ...existing, [key]: card.ref });
|
|
@@ -49262,8 +49227,8 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
49262
49227
|
willAutoContinue: meta.willAutoContinue === true,
|
|
49263
49228
|
...toolName ? { toolName } : {},
|
|
49264
49229
|
...result ? { result } : {},
|
|
49265
|
-
..._optionalChain([card, 'optionalAccess',
|
|
49266
|
-
..._optionalChain([card, 'optionalAccess',
|
|
49230
|
+
..._optionalChain([card, 'optionalAccess', _1232 => _1232.marker]) ? { marker: card.marker } : {},
|
|
49231
|
+
..._optionalChain([card, 'optionalAccess', _1233 => _1233.ref]) ? { cardRef: card.ref } : {},
|
|
49267
49232
|
...typeof meta.receiptText === "string" ? { receiptText: meta.receiptText } : {},
|
|
49268
49233
|
proposalId: typeof meta.proposalId === "string" ? meta.proposalId : void 0
|
|
49269
49234
|
};
|
|
@@ -49381,8 +49346,8 @@ var CHAT_STORAGE_VERSION = 1;
|
|
|
49381
49346
|
var DEFAULT_CHAT_SOURCE = "embed";
|
|
49382
49347
|
var chatStorageKey = (source) => {
|
|
49383
49348
|
const base = `mingo-chat-${source}-v${CHAT_STORAGE_VERSION}`;
|
|
49384
|
-
const auth =
|
|
49385
|
-
if (_optionalChain([auth, 'optionalAccess',
|
|
49349
|
+
const auth = _chunkJWBRDNYHcjs.getEmbedProxyAuth.call(void 0, );
|
|
49350
|
+
if (_optionalChain([auth, 'optionalAccess', _1234 => _1234.email])) {
|
|
49386
49351
|
return `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}`;
|
|
49387
49352
|
}
|
|
49388
49353
|
return base;
|
|
@@ -49437,7 +49402,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
49437
49402
|
const { active = true } = runtimeOptions;
|
|
49438
49403
|
const runtime = _chunk3KEBI6TPcjs.useRequiredChatRuntime.call(void 0, );
|
|
49439
49404
|
const source = runtime.source || DEFAULT_CHAT_SOURCE;
|
|
49440
|
-
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
49405
|
+
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _1235 => _1235.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
|
|
49441
49406
|
const persistedRef = _react.useRef.call(void 0, null);
|
|
49442
49407
|
if (persistedRef.current === null) {
|
|
49443
49408
|
pruneStaleChatStorage(source);
|
|
@@ -49542,7 +49507,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
49542
49507
|
const lookupIdx = sendIdx >= 0 ? sendIdx : 0;
|
|
49543
49508
|
sources = sourcesMapRef.current.get(lookupIdx);
|
|
49544
49509
|
chatRefs = _nullishCoalesce(m.chatRefs, () => ( refsMapRef.current.get(lookupIdx)));
|
|
49545
|
-
scrollAnchor = _nullishCoalesce(_optionalChain([metaMapRef, 'access',
|
|
49510
|
+
scrollAnchor = _nullishCoalesce(_optionalChain([metaMapRef, 'access', _1236 => _1236.current, 'access', _1237 => _1237.get, 'call', _1238 => _1238(lookupIdx), 'optionalAccess', _1239 => _1239.scrollAnchor]), () => ( void 0));
|
|
49546
49511
|
}
|
|
49547
49512
|
return {
|
|
49548
49513
|
id: m.id,
|
|
@@ -49590,7 +49555,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
49590
49555
|
);
|
|
49591
49556
|
return;
|
|
49592
49557
|
}
|
|
49593
|
-
const refSlug = typeof _optionalChain([reference, 'access',
|
|
49558
|
+
const refSlug = typeof _optionalChain([reference, 'access', _1240 => _1240.metadata, 'optionalAccess', _1241 => _1241.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
|
|
49594
49559
|
const queryValue = refSlug || sanitizeTitleForChat(reference.title) || reference.id;
|
|
49595
49560
|
const escaped = queryValue.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
|
|
49596
49561
|
const text = `/${cmdId} display "${escaped}"`;
|
|
@@ -49662,18 +49627,18 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
49662
49627
|
clearMessages,
|
|
49663
49628
|
streamingPhase,
|
|
49664
49629
|
/** Provider key for the lib's `<ModelDisplay>` icon. */
|
|
49665
|
-
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
49666
|
-
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
49667
|
-
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
49630
|
+
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1242 => _1242.provider]), () => ( null)),
|
|
49631
|
+
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1243 => _1243.modelLabel]), () => ( null)),
|
|
49632
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1244 => _1244.contextWindowMaxTokens]), () => ( null)),
|
|
49668
49633
|
/** Input tokens (known after server's message_start frame; null until). */
|
|
49669
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
49634
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1245 => _1245.inputTokens]), () => ( null)),
|
|
49670
49635
|
/** Output tokens (known only after server's trailing usage frame). */
|
|
49671
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
49636
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1246 => _1246.outputTokens]), () => ( null)),
|
|
49672
49637
|
/** Cache hit % (read / total-input × 100). null during streaming. */
|
|
49673
|
-
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
49638
|
+
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1247 => _1247.cacheHitRatePct]), () => ( null)),
|
|
49674
49639
|
/** Cross-call usage breakdown (Haiku rewriter/classifier/summarizer
|
|
49675
49640
|
* token counts). null until the trailing usage frame lands. */
|
|
49676
|
-
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
49641
|
+
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1248 => _1248.breakdown]), () => ( null)),
|
|
49677
49642
|
// ─── Dialog management — stubs for v1 ────────────────────────────────
|
|
49678
49643
|
// Guide mode currently keeps its history in `localStorage` opaquely
|
|
49679
49644
|
// under the hood (`runtime.source` namespaced key). Surfacing that
|
|
@@ -49731,15 +49696,15 @@ var noopRejectRequest = async (_id, _reason) => {
|
|
|
49731
49696
|
|
|
49732
49697
|
// src/components/chat/utils/process-historical-messages.ts
|
|
49733
49698
|
function getOwnerDisplayName(owner) {
|
|
49734
|
-
if (_optionalChain([owner, 'optionalAccess',
|
|
49699
|
+
if (_optionalChain([owner, 'optionalAccess', _1249 => _1249.type]) === OWNER_TYPE.ADMIN && owner.user) {
|
|
49735
49700
|
const { firstName, lastName } = owner.user;
|
|
49736
49701
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
49737
49702
|
if (name) return name;
|
|
49738
49703
|
}
|
|
49739
|
-
return _optionalChain([owner, 'optionalAccess',
|
|
49704
|
+
return _optionalChain([owner, 'optionalAccess', _1250 => _1250.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
49740
49705
|
}
|
|
49741
49706
|
function getOwnerAvatar(owner) {
|
|
49742
|
-
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess',
|
|
49707
|
+
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _1251 => _1251.user, 'optionalAccess', _1252 => _1252.image, 'optionalAccess', _1253 => _1253.imageUrl]), () => ( void 0));
|
|
49743
49708
|
}
|
|
49744
49709
|
function pushStandaloneMessages(processedMessages, msg, messageDataArray) {
|
|
49745
49710
|
messageDataArray.forEach((data) => {
|
|
@@ -49802,14 +49767,14 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
49802
49767
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
49803
49768
|
return;
|
|
49804
49769
|
}
|
|
49805
|
-
const isUserMessage = _optionalChain([msg, 'access',
|
|
49770
|
+
const isUserMessage = _optionalChain([msg, 'access', _1254 => _1254.owner, 'optionalAccess', _1255 => _1255.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _1256 => _1256.owner, 'optionalAccess', _1257 => _1257.type]) === OWNER_TYPE.ADMIN;
|
|
49806
49771
|
if (isUserMessage) {
|
|
49807
49772
|
flushAssistantMessage();
|
|
49808
|
-
const userAuthorType = _optionalChain([msg, 'access',
|
|
49773
|
+
const userAuthorType = _optionalChain([msg, 'access', _1258 => _1258.owner, 'optionalAccess', _1259 => _1259.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
49809
49774
|
messageDataArray.forEach((data) => {
|
|
49810
49775
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
49811
49776
|
const rawContext = data.contextItems;
|
|
49812
|
-
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess',
|
|
49777
|
+
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _1260 => _1260.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _1261 => _1261.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
|
|
49813
49778
|
processedMessages.push({
|
|
49814
49779
|
id: msg.id,
|
|
49815
49780
|
role: "user",
|
|
@@ -49833,7 +49798,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
49833
49798
|
});
|
|
49834
49799
|
const nextMsg = messages[index + 1];
|
|
49835
49800
|
const isLastMessage = index === messages.length - 1;
|
|
49836
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access',
|
|
49801
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _1262 => _1262.owner, 'optionalAccess', _1263 => _1263.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _1264 => _1264.owner, 'optionalAccess', _1265 => _1265.type]) === OWNER_TYPE.ADMIN);
|
|
49837
49802
|
if (isLastMessage || nextIsFromUser) {
|
|
49838
49803
|
flushAssistantMessage();
|
|
49839
49804
|
}
|
|
@@ -49943,7 +49908,7 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
49943
49908
|
}
|
|
49944
49909
|
}
|
|
49945
49910
|
} else {
|
|
49946
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
49911
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _1266 => _1266.set, 'call', _1267 => _1267(data.approvalRequestId, {
|
|
49947
49912
|
command: data.command || "",
|
|
49948
49913
|
explanation: data.explanation,
|
|
49949
49914
|
approvalType,
|
|
@@ -49957,8 +49922,8 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
49957
49922
|
const existingStatus = approvalStatuses[data.approvalRequestId];
|
|
49958
49923
|
const status = existingStatus || (data.approved ? "approved" : "rejected");
|
|
49959
49924
|
const resolvedByName = "resolvedByName" in data ? data.resolvedByName : void 0;
|
|
49960
|
-
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess',
|
|
49961
|
-
if (_optionalChain([escalatedData, 'optionalAccess',
|
|
49925
|
+
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _1268 => _1268.get, 'call', _1269 => _1269(data.approvalRequestId)]);
|
|
49926
|
+
if (_optionalChain([escalatedData, 'optionalAccess', _1270 => _1270.toolCalls]) && escalatedData.toolCalls.length > 0) {
|
|
49962
49927
|
if (batchApprovalsEnabled) {
|
|
49963
49928
|
accumulator.addApprovalBatch(
|
|
49964
49929
|
data.approvalRequestId,
|
|
@@ -49980,7 +49945,7 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
49980
49945
|
);
|
|
49981
49946
|
}
|
|
49982
49947
|
}
|
|
49983
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
49948
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _1271 => _1271.delete, 'call', _1272 => _1272(data.approvalRequestId)]);
|
|
49984
49949
|
break;
|
|
49985
49950
|
}
|
|
49986
49951
|
if (escalatedData) {
|
|
@@ -49989,7 +49954,7 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
49989
49954
|
explanation: escalatedData.explanation,
|
|
49990
49955
|
approvalType: escalatedData.approvalType
|
|
49991
49956
|
});
|
|
49992
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
49957
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _1273 => _1273.delete, 'call', _1274 => _1274(data.approvalRequestId)]);
|
|
49993
49958
|
}
|
|
49994
49959
|
const before = accumulator.getSegments();
|
|
49995
49960
|
const after = accumulator.updateApprovalStatus(data.approvalRequestId, status, resolvedByName);
|
|
@@ -50005,9 +49970,9 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
50005
49970
|
case MESSAGE_TYPE.ERROR:
|
|
50006
49971
|
if ("error" in data) {
|
|
50007
49972
|
let message2;
|
|
50008
|
-
if ("details" in data && _optionalChain([data, 'optionalAccess',
|
|
49973
|
+
if ("details" in data && _optionalChain([data, 'optionalAccess', _1275 => _1275.details])) {
|
|
50009
49974
|
try {
|
|
50010
|
-
message2 = _optionalChain([JSON, 'access',
|
|
49975
|
+
message2 = _optionalChain([JSON, 'access', _1276 => _1276.parse, 'call', _1277 => _1277(data.details), 'optionalAccess', _1278 => _1278.error, 'optionalAccess', _1279 => _1279.message]);
|
|
50011
49976
|
} catch (e64) {
|
|
50012
49977
|
message2 = data.details;
|
|
50013
49978
|
}
|
|
@@ -50090,14 +50055,14 @@ function processHistoricalMessagesWithErrors(messages, options = {}) {
|
|
|
50090
50055
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
50091
50056
|
return;
|
|
50092
50057
|
}
|
|
50093
|
-
const isUserMessage = _optionalChain([msg, 'access',
|
|
50058
|
+
const isUserMessage = _optionalChain([msg, 'access', _1280 => _1280.owner, 'optionalAccess', _1281 => _1281.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _1282 => _1282.owner, 'optionalAccess', _1283 => _1283.type]) === OWNER_TYPE.ADMIN;
|
|
50094
50059
|
if (isUserMessage) {
|
|
50095
50060
|
flushAssistantMessage();
|
|
50096
|
-
const userAuthorType = _optionalChain([msg, 'access',
|
|
50061
|
+
const userAuthorType = _optionalChain([msg, 'access', _1284 => _1284.owner, 'optionalAccess', _1285 => _1285.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
50097
50062
|
messageDataArray.forEach((data) => {
|
|
50098
50063
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
50099
50064
|
const rawContext = data.contextItems;
|
|
50100
|
-
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess',
|
|
50065
|
+
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _1286 => _1286.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _1287 => _1287.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
|
|
50101
50066
|
processedMessages.push({
|
|
50102
50067
|
id: msg.id,
|
|
50103
50068
|
role: "user",
|
|
@@ -50121,7 +50086,7 @@ function processHistoricalMessagesWithErrors(messages, options = {}) {
|
|
|
50121
50086
|
});
|
|
50122
50087
|
const nextMsg = messages[index + 1];
|
|
50123
50088
|
const isLastMessage = index === messages.length - 1;
|
|
50124
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access',
|
|
50089
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _1288 => _1288.owner, 'optionalAccess', _1289 => _1289.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _1290 => _1290.owner, 'optionalAccess', _1291 => _1291.type]) === OWNER_TYPE.ADMIN);
|
|
50125
50090
|
if (isLastMessage || nextIsFromUser) {
|
|
50126
50091
|
flushAssistantMessage();
|
|
50127
50092
|
}
|
|
@@ -50457,7 +50422,7 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
50457
50422
|
}, [active, fetchDialogs, loadDialogsPage]);
|
|
50458
50423
|
const sendMessage = _react.useCallback.call(void 0,
|
|
50459
50424
|
async (text, sendOptions) => {
|
|
50460
|
-
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess',
|
|
50425
|
+
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _1292 => _1292.hidden]), () => ( false));
|
|
50461
50426
|
setMessages((prev) => [
|
|
50462
50427
|
...prev,
|
|
50463
50428
|
{
|
|
@@ -50621,11 +50586,11 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
50621
50586
|
// Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
|
|
50622
50587
|
// contextWindow uses the dialog's `contextSize` (the "X / Y" denominator,
|
|
50623
50588
|
// matching the /mingo page). cacheHitRate/breakdown are SSE-only → null.
|
|
50624
|
-
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess',
|
|
50625
|
-
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess',
|
|
50626
|
-
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
50627
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
50628
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
50589
|
+
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _1293 => _1293.provider]), () => ( modelProvider)), () => ( null)),
|
|
50590
|
+
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _1294 => _1294.modelLabel]), () => ( modelLabel)), () => ( null)),
|
|
50591
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1295 => _1295.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _1296 => _1296.contextWindowMaxTokens]))), () => ( null)),
|
|
50592
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1297 => _1297.inputTokensSize]), () => ( null)),
|
|
50593
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1298 => _1298.outputTokensSize]), () => ( null)),
|
|
50629
50594
|
currentCacheHitRatePct: null,
|
|
50630
50595
|
currentUsageBreakdown: null,
|
|
50631
50596
|
// Dialog management
|
|
@@ -50873,7 +50838,7 @@ function extractIncompleteMessageState(lastMessage) {
|
|
|
50873
50838
|
break;
|
|
50874
50839
|
case "approval_batch": {
|
|
50875
50840
|
const allDone = !!segment.data.executions && segment.data.toolCalls.every(
|
|
50876
|
-
(c) => _optionalChain([segment, 'access',
|
|
50841
|
+
(c) => _optionalChain([segment, 'access', _1299 => _1299.data, 'access', _1300 => _1300.executions, 'optionalAccess', _1301 => _1301[c.toolExecutionRequestId], 'optionalAccess', _1302 => _1302.status]) === "done"
|
|
50877
50842
|
);
|
|
50878
50843
|
if (segment.status !== "rejected" && !allDone) {
|
|
50879
50844
|
hasIncompleteState = true;
|
|
@@ -50941,20 +50906,20 @@ function mergeHistoryWithRealtime(input) {
|
|
|
50941
50906
|
const seqCoverageKnown = realtimeSeenStreamSeq > 0 && historyMaxStreamSeq > 0;
|
|
50942
50907
|
const historyCoversRealtime = seqCoverageKnown ? historyMaxStreamSeq >= realtimeSeenStreamSeq : null;
|
|
50943
50908
|
const trailing = processedHistory[processedHistory.length - 1];
|
|
50944
|
-
const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess',
|
|
50945
|
-
const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access',
|
|
50909
|
+
const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _1303 => _1303.role]) === "assistant" ? trailing : null;
|
|
50910
|
+
const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access', _1304 => _1304.content, 'access', _1305 => _1305.find, 'call', _1306 => _1306((s) => s.type === "approval_batch"), 'optionalAccess', _1307 => _1307.data, 'optionalAccess', _1308 => _1308.approvalRequestId]), () => ( null)) : null;
|
|
50946
50911
|
let processedToUse = processedHistory;
|
|
50947
50912
|
const pinnedSyntheticIds = /* @__PURE__ */ new Set();
|
|
50948
50913
|
const droppedSyntheticIds = /* @__PURE__ */ new Set();
|
|
50949
50914
|
if (historyBatchId) {
|
|
50950
50915
|
const batchTwins = existingMessages.filter(
|
|
50951
50916
|
(m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some(
|
|
50952
|
-
(s) => s.type === "approval_batch" && _optionalChain([s, 'access',
|
|
50917
|
+
(s) => s.type === "approval_batch" && _optionalChain([s, 'access', _1309 => _1309.data, 'optionalAccess', _1310 => _1310.approvalRequestId]) === historyBatchId
|
|
50953
50918
|
)
|
|
50954
50919
|
);
|
|
50955
50920
|
const existingWithSameBatch = _nullishCoalesce(batchTwins.find((m) => m.id === streamingMessageId), () => ( batchTwins[batchTwins.length - 1]));
|
|
50956
50921
|
if (existingWithSameBatch && Array.isArray(existingWithSameBatch.content)) {
|
|
50957
|
-
const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess',
|
|
50922
|
+
const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _1311 => _1311.content])) ? historyTrailingAssistant.content.length : 0;
|
|
50958
50923
|
const realtimeSize = existingWithSameBatch.content.length;
|
|
50959
50924
|
if (existingWithSameBatch.id === streamingMessageId || realtimeSize > histSize) {
|
|
50960
50925
|
processedToUse = processedHistory.slice(0, -1);
|
|
@@ -50970,16 +50935,16 @@ function mergeHistoryWithRealtime(input) {
|
|
|
50970
50935
|
if (pinnedSyntheticIds.has(m.id)) return true;
|
|
50971
50936
|
if (droppedSyntheticIds.has(m.id)) return false;
|
|
50972
50937
|
if (processedIds.has(m.id)) return false;
|
|
50973
|
-
if (_optionalChain([rawHistoryIds, 'optionalAccess',
|
|
50938
|
+
if (_optionalChain([rawHistoryIds, 'optionalAccess', _1312 => _1312.has, 'call', _1313 => _1313(m.id)])) return false;
|
|
50974
50939
|
if (m.role === "user" && m.id.startsWith("optimistic-") && typeof m.content === "string") {
|
|
50975
|
-
const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access',
|
|
50940
|
+
const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _1314 => _1314.timestamp, 'optionalAccess', _1315 => _1315.getTime, 'call', _1316 => _1316()]), () => ( 0))) <= historyFetchedAt;
|
|
50976
50941
|
return !(canBeInSnapshot && processedToUse.some((pm) => pm.role === "user" && pm.content === m.content));
|
|
50977
50942
|
}
|
|
50978
50943
|
if (isSyntheticRealtimeId(m.id) && m.id !== streamingMessageId) {
|
|
50979
50944
|
if (m.role === "assistant" && trailingAssistantText && assistantAnswerText(m.content) === trailingAssistantText) {
|
|
50980
50945
|
return false;
|
|
50981
50946
|
}
|
|
50982
|
-
const covered = typeof m.streamSeq === "number" && historyMaxStreamSeq > 0 ? historyMaxStreamSeq >= m.streamSeq : historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access',
|
|
50947
|
+
const covered = typeof m.streamSeq === "number" && historyMaxStreamSeq > 0 ? historyMaxStreamSeq >= m.streamSeq : historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _1317 => _1317.timestamp, 'optionalAccess', _1318 => _1318.getTime, 'call', _1319 => _1319()]), () => ( 0))) <= historyFetchedAt;
|
|
50983
50948
|
if (covered) return false;
|
|
50984
50949
|
}
|
|
50985
50950
|
return true;
|
|
@@ -51199,7 +51164,7 @@ function useChatDialogManager({
|
|
|
51199
51164
|
const handleConfirmRestore = _react.useCallback.call(void 0, async () => {
|
|
51200
51165
|
if (restoreTarget) {
|
|
51201
51166
|
try {
|
|
51202
|
-
await _optionalChain([unarchiveDialog, 'optionalCall',
|
|
51167
|
+
await _optionalChain([unarchiveDialog, 'optionalCall', _1320 => _1320(restoreTarget.id)]);
|
|
51203
51168
|
} catch (err) {
|
|
51204
51169
|
console.error("[useChatDialogManager] unarchive failed:", err);
|
|
51205
51170
|
return;
|
|
@@ -51616,7 +51581,7 @@ function EmbeddableChatInner({
|
|
|
51616
51581
|
}),
|
|
51617
51582
|
[commandsUrl]
|
|
51618
51583
|
);
|
|
51619
|
-
const userName = _optionalChain([identityUser, 'optionalAccess',
|
|
51584
|
+
const userName = _optionalChain([identityUser, 'optionalAccess', _1321 => _1321.firstName, 'optionalAccess', _1322 => _1322.trim, 'call', _1323 => _1323()]) || _optionalChain([identityUser, 'optionalAccess', _1324 => _1324.name, 'optionalAccess', _1325 => _1325.split, 'call', _1326 => _1326(" "), 'access', _1327 => _1327[0], 'optionalAccess', _1328 => _1328.trim, 'call', _1329 => _1329()]) || void 0;
|
|
51620
51585
|
const effectiveModes = _react.useMemo.call(void 0, () => {
|
|
51621
51586
|
if (modes) return modes;
|
|
51622
51587
|
const guideOptions = tableIdForDocumentType ? { tableIdForDocumentType } : {};
|
|
@@ -51625,19 +51590,19 @@ function EmbeddableChatInner({
|
|
|
51625
51590
|
const mingoCaps = _react.useMemo.call(void 0, () => {
|
|
51626
51591
|
if (mingoState) {
|
|
51627
51592
|
return {
|
|
51628
|
-
canRename: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
51629
|
-
canArchive: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
51630
|
-
fetchArchivedDialogs: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
51631
|
-
unarchiveDialog: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
51632
|
-
searchQuery: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
51633
|
-
onSearchChange: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
51593
|
+
canRename: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _1330 => _1330.canRename]), () => ( false)),
|
|
51594
|
+
canArchive: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _1331 => _1331.canArchive]), () => ( false)),
|
|
51595
|
+
fetchArchivedDialogs: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1332 => _1332.fetchArchivedDialogs]),
|
|
51596
|
+
unarchiveDialog: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1333 => _1333.unarchiveDialog]),
|
|
51597
|
+
searchQuery: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1334 => _1334.searchQuery]),
|
|
51598
|
+
onSearchChange: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1335 => _1335.onSearchChange])
|
|
51634
51599
|
};
|
|
51635
51600
|
}
|
|
51636
51601
|
return {
|
|
51637
|
-
canRename: !!_optionalChain([effectiveModes, 'access',
|
|
51638
|
-
canArchive: !!_optionalChain([effectiveModes, 'access',
|
|
51639
|
-
fetchArchivedDialogs: _optionalChain([effectiveModes, 'access',
|
|
51640
|
-
unarchiveDialog: _optionalChain([effectiveModes, 'access',
|
|
51602
|
+
canRename: !!_optionalChain([effectiveModes, 'access', _1336 => _1336.mingo, 'optionalAccess', _1337 => _1337.renameDialog]),
|
|
51603
|
+
canArchive: !!_optionalChain([effectiveModes, 'access', _1338 => _1338.mingo, 'optionalAccess', _1339 => _1339.archiveDialog]),
|
|
51604
|
+
fetchArchivedDialogs: _optionalChain([effectiveModes, 'access', _1340 => _1340.mingo, 'optionalAccess', _1341 => _1341.fetchArchivedDialogs]),
|
|
51605
|
+
unarchiveDialog: _optionalChain([effectiveModes, 'access', _1342 => _1342.mingo, 'optionalAccess', _1343 => _1343.unarchiveDialog]),
|
|
51641
51606
|
searchQuery: void 0,
|
|
51642
51607
|
onSearchChange: void 0
|
|
51643
51608
|
};
|
|
@@ -51651,7 +51616,7 @@ function EmbeddableChatInner({
|
|
|
51651
51616
|
if (controlledActiveMode === void 0) {
|
|
51652
51617
|
setUncontrolledActiveMode(next);
|
|
51653
51618
|
}
|
|
51654
|
-
_optionalChain([onActiveModeChange, 'optionalCall',
|
|
51619
|
+
_optionalChain([onActiveModeChange, 'optionalCall', _1344 => _1344(next)]);
|
|
51655
51620
|
},
|
|
51656
51621
|
[controlledActiveMode, onActiveModeChange]
|
|
51657
51622
|
);
|
|
@@ -51673,7 +51638,7 @@ function EmbeddableChatInner({
|
|
|
51673
51638
|
const effectiveQuickActions = emptyStateUrl ? emptyStateConfig.quickActions : [];
|
|
51674
51639
|
const effectiveAssistantName = emptyStateConfig.name;
|
|
51675
51640
|
const effectiveAssistantIcon = emptyStateConfig.icon;
|
|
51676
|
-
const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess',
|
|
51641
|
+
const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess', _1345 => _1345.title]) === "string" ? guideWelcome.title : null)));
|
|
51677
51642
|
const {
|
|
51678
51643
|
messages: rawMessages,
|
|
51679
51644
|
isLoading: chatLoading,
|
|
@@ -51713,7 +51678,7 @@ function EmbeddableChatInner({
|
|
|
51713
51678
|
if (activeMode !== "guide" || guidePromptSentRef.current) return;
|
|
51714
51679
|
guidePromptSentRef.current = true;
|
|
51715
51680
|
void sendMessage(guidePendingPrompt);
|
|
51716
|
-
_optionalChain([onGuidePromptConsumed, 'optionalCall',
|
|
51681
|
+
_optionalChain([onGuidePromptConsumed, 'optionalCall', _1346 => _1346()]);
|
|
51717
51682
|
}, [guidePendingPrompt, activeMode, sendMessage, onGuidePromptConsumed]);
|
|
51718
51683
|
const {
|
|
51719
51684
|
attachments: stagedAttachments,
|
|
@@ -51724,7 +51689,7 @@ function EmbeddableChatInner({
|
|
|
51724
51689
|
clear: clearAttachments
|
|
51725
51690
|
} = useChatAttachments();
|
|
51726
51691
|
const { panelRef: galleryPanelRef, modal: galleryModal } = useChatAttachmentImageGallery();
|
|
51727
|
-
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess',
|
|
51692
|
+
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _1347 => _1347.maxItems]), () => ( 10));
|
|
51728
51693
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
51729
51694
|
const [contextItems, setContextItems] = _react.useState.call(void 0, []);
|
|
51730
51695
|
const [contextPickerOpen, setContextPickerOpen] = _react.useState.call(void 0, false);
|
|
@@ -51741,10 +51706,10 @@ function EmbeddableChatInner({
|
|
|
51741
51706
|
}, [activeDialogId, activeMode]);
|
|
51742
51707
|
const mentionMarkerByType = _react.useMemo.call(void 0, () => {
|
|
51743
51708
|
const m = /* @__PURE__ */ new Map();
|
|
51744
|
-
for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess',
|
|
51709
|
+
for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _1348 => _1348.entityTypes]), () => ( []))) if (t.marker) m.set(t.type, t.marker);
|
|
51745
51710
|
return m;
|
|
51746
|
-
}, [_optionalChain([contextPicker, 'optionalAccess',
|
|
51747
|
-
const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess',
|
|
51711
|
+
}, [_optionalChain([contextPicker, 'optionalAccess', _1349 => _1349.entityTypes])]);
|
|
51712
|
+
const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess', _1350 => _1350.entityTypes]);
|
|
51748
51713
|
const resolveContextIcon = _react.useMemo.call(void 0, () => {
|
|
51749
51714
|
const byType = /* @__PURE__ */ new Map();
|
|
51750
51715
|
for (const t of _nullishCoalesce(contextEntityTypes, () => ( []))) byType.set(t.type, t.icon);
|
|
@@ -51756,7 +51721,7 @@ function EmbeddableChatInner({
|
|
|
51756
51721
|
if (mentionActiveRef.current) {
|
|
51757
51722
|
if (contextItems.some((p) => `${p.type}:${p.id}` === key)) return;
|
|
51758
51723
|
if (contextItems.length >= contextMaxItems) return;
|
|
51759
|
-
_optionalChain([chatInputRef, 'access',
|
|
51724
|
+
_optionalChain([chatInputRef, 'access', _1351 => _1351.current, 'optionalAccess', _1352 => _1352.commitMention, 'call', _1353 => _1353(mentionTokenOf(key, mentionMarkerByType), {
|
|
51760
51725
|
label: item.label,
|
|
51761
51726
|
icon: resolveContextIcon(item)
|
|
51762
51727
|
})]);
|
|
@@ -51778,9 +51743,9 @@ function EmbeddableChatInner({
|
|
|
51778
51743
|
setContextItems((prev) => prev.filter((p) => `${p.type}:${p.id}` !== key));
|
|
51779
51744
|
if (mentionKeysRef.current.has(key)) {
|
|
51780
51745
|
mentionKeysRef.current.delete(key);
|
|
51781
|
-
const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access',
|
|
51746
|
+
const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _1354 => _1354.current, 'optionalAccess', _1355 => _1355.getValue, 'call', _1356 => _1356()]), () => ( ""));
|
|
51782
51747
|
const next = cur.replace(`@${mentionTokenOf(key, mentionMarkerByType)}`, "").replace(/\s{2,}/g, " ").trimStart();
|
|
51783
|
-
_optionalChain([chatInputRef, 'access',
|
|
51748
|
+
_optionalChain([chatInputRef, 'access', _1357 => _1357.current, 'optionalAccess', _1358 => _1358.setValue, 'call', _1359 => _1359(next)]);
|
|
51784
51749
|
}
|
|
51785
51750
|
}, [mentionMarkerByType]);
|
|
51786
51751
|
const handleContextValueChange = _react.useCallback.call(void 0, (value) => {
|
|
@@ -51797,7 +51762,7 @@ function EmbeddableChatInner({
|
|
|
51797
51762
|
}, []);
|
|
51798
51763
|
const closeContextPicker = _react.useCallback.call(void 0, () => {
|
|
51799
51764
|
if (mentionActiveRef.current) {
|
|
51800
|
-
_optionalChain([chatInputRef, 'access',
|
|
51765
|
+
_optionalChain([chatInputRef, 'access', _1360 => _1360.current, 'optionalAccess', _1361 => _1361.removeMentionTrigger, 'call', _1362 => _1362()]);
|
|
51801
51766
|
}
|
|
51802
51767
|
setContextPickerOpen(false);
|
|
51803
51768
|
setMentionQuery(null);
|
|
@@ -51831,8 +51796,8 @@ function EmbeddableChatInner({
|
|
|
51831
51796
|
[]
|
|
51832
51797
|
);
|
|
51833
51798
|
const timestampCacheRef = _react.useRef.call(void 0, /* @__PURE__ */ new Map());
|
|
51834
|
-
const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess',
|
|
51835
|
-
const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess',
|
|
51799
|
+
const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess', _1363 => _1363.firstName]), _optionalChain([identityUser, 'optionalAccess', _1364 => _1364.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([identityUser, 'optionalAccess', _1365 => _1365.name, 'optionalAccess', _1366 => _1366.trim, 'call', _1367 => _1367()]) || void 0 : void 0;
|
|
51800
|
+
const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess', _1368 => _1368.avatarUrl, 'optionalAccess', _1369 => _1369.trim, 'call', _1370 => _1370()]) || void 0 : void 0;
|
|
51836
51801
|
const messages = _react.useMemo.call(void 0, () => {
|
|
51837
51802
|
const cache = timestampCacheRef.current;
|
|
51838
51803
|
const seenIds = /* @__PURE__ */ new Set();
|
|
@@ -52001,9 +51966,9 @@ function EmbeddableChatInner({
|
|
|
52001
51966
|
const lastAssistantMsg = [...rawMessages].reverse().find((m) => m.role === "assistant");
|
|
52002
51967
|
const lastSources = _react.useMemo.call(void 0, () => {
|
|
52003
51968
|
if (chatLoading) return void 0;
|
|
52004
|
-
const sources = _optionalChain([lastAssistantMsg, 'optionalAccess',
|
|
51969
|
+
const sources = _optionalChain([lastAssistantMsg, 'optionalAccess', _1371 => _1371.sources]);
|
|
52005
51970
|
if (!sources || sources.length === 0) return void 0;
|
|
52006
|
-
const content = _optionalChain([lastAssistantMsg, 'optionalAccess',
|
|
51971
|
+
const content = _optionalChain([lastAssistantMsg, 'optionalAccess', _1372 => _1372.content]) || "";
|
|
52007
51972
|
const citationOrder = [...content.matchAll(/\[(\d+)\]/g)].map(
|
|
52008
51973
|
(m) => parseInt(m[1], 10)
|
|
52009
51974
|
);
|
|
@@ -52050,7 +52015,7 @@ function EmbeddableChatInner({
|
|
|
52050
52015
|
ChatPanelHeader,
|
|
52051
52016
|
{
|
|
52052
52017
|
showBack: hasConversation || guideCanReturnToMingo,
|
|
52053
|
-
title: hasConversation ? _optionalChain([activeDialog, 'optionalAccess',
|
|
52018
|
+
title: hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _1373 => _1373.title]) || "New Chat" : isGuideEmpty ? _nullishCoalesce(headerAssistantName, () => ( "Mingo Guide")) : "Current Chats",
|
|
52054
52019
|
backAriaLabel: hasConversation ? isViewingArchived ? "Back to archive" : "Back" : "Back to Mingo",
|
|
52055
52020
|
isArchivedView: isViewingArchived,
|
|
52056
52021
|
onBack: hasConversation ? handleBack : () => handleActiveModeChange("mingo"),
|
|
@@ -52171,9 +52136,9 @@ function EmbeddableChatInner({
|
|
|
52171
52136
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
52172
52137
|
subtitleLoading: emptyStateLoading,
|
|
52173
52138
|
...guideWelcome,
|
|
52174
|
-
title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess',
|
|
52175
|
-
icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess',
|
|
52176
|
-
quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess',
|
|
52139
|
+
title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _1374 => _1374.title]))),
|
|
52140
|
+
icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _1375 => _1375.icon]))),
|
|
52141
|
+
quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _1376 => _1376.quickActions]), () => ( guideSuggestedActions)),
|
|
52177
52142
|
onQuickAction: (action) => {
|
|
52178
52143
|
setQuickActionPreview(null);
|
|
52179
52144
|
handleSend(_nullishCoalesce(action.prompt, () => ( action.label)));
|
|
@@ -53300,4 +53265,4 @@ function EmbeddableChatInner({
|
|
|
53300
53265
|
|
|
53301
53266
|
|
|
53302
53267
|
exports.Label = Label; exports.AllowedDomainsInput = AllowedDomainsInput; exports.HiddenTagsPopup = HiddenTagsPopup; exports.tagVariants = tagVariants; exports.Tag = Tag; exports.Autocomplete = Autocomplete; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.CardHorizontal = CardHorizontal; exports.CheckboxBlock = CheckboxBlock; exports.CheckboxWithDescription = CheckboxWithDescription; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.DatePicker = DatePicker; exports.DatePickerInput = DatePickerInput; exports.DatePickerInputSimple = DatePickerInputSimple; exports.DateFilterMenu = DateFilterMenu; exports.DurationInput = DurationInput; exports.HoneypotField = HoneypotField; exports.ProgressBar = ProgressBar; exports.InfoCard = InfoCard; exports.InfoRow = InfoRow; exports.formatDate = formatDate; exports.formatNumber = formatNumber; exports.formatPrice = formatPrice; exports.formatBytes = formatBytes; exports.formatBytesShort = formatBytesShort; exports.formatFileSize = formatFileSize; exports.formatLargeNumber = formatLargeNumber; exports.formatAbbreviatedNumber = formatAbbreviatedNumber; exports.getFirstLastInitials = getFirstLastInitials; exports.nameInitials = nameInitials; exports.formatDurationMMSS = formatDurationMMSS; exports.formatDurationCompact = formatDurationCompact; exports.formatTimeWithTimezone = formatTimeWithTimezone; exports.formatDurationFromRange = formatDurationFromRange; exports.formatDateUTC = formatDateUTC; exports.formatEntryMonthUTC = formatEntryMonthUTC; exports.formatLegalDate = formatLegalDate; exports.formatCurrency = formatCurrency; exports.formatPercent = formatPercent; exports.formatWholeDollars = formatWholeDollars; exports.formatCompactMetric = formatCompactMetric; exports.getTrendColors = getTrendColors; exports.formatDateRange = formatDateRange; exports.formatDateTimeAt = formatDateTimeAt; exports.formatDurationFromMs = formatDurationFromMs; exports.formatDuration = formatDuration; exports.formatUnderscoreText = formatUnderscoreText; exports.stripHtml = stripHtml; exports.formatClassification = formatClassification; exports.formatPricingModel = formatPricingModel; exports.formatBioText = formatBioText; exports.SquareAvatar = SquareAvatar; exports.AssigneeDropdown = AssigneeDropdown; exports.ActionsMenu = ActionsMenu; exports.ActionsMenuDropdown = ActionsMenuDropdown; exports.ColorSwatch = ColorSwatch; exports.getPlatformAccentColor = getPlatformAccentColor; exports.getCurrentPlatform = getCurrentPlatform; exports.getReadableTextColor = getReadableTextColor; exports.HEX_PATTERN = HEX_PATTERN; exports.hexToRgb = hexToRgb; exports.rgbToHex = rgbToHex; exports.deriveHoverColor = deriveHoverColor; exports.deriveActiveColor = deriveActiveColor; exports.resolveTicketStatus = resolveTicketStatus; exports.getTicketStatusConfig = getTicketStatusConfig; exports.getTicketStatusTag = getTicketStatusTag; exports.kindToCanonicalStatus = kindToCanonicalStatus; exports.usesCanonicalStatusStyle = usesCanonicalStatusStyle; exports.resolveStatusTagProps = resolveStatusTagProps; exports.TicketStatusTag = TicketStatusTag; exports.InfoSection = InfoSection; exports.InputTrigger = InputTrigger; exports.InteractiveCard = InteractiveCard; exports.MediaTypeSelector = MediaTypeSelector; exports.noDataIconClasses = noDataIconClasses; exports.noDataActionsVariants = noDataActionsVariants; exports.NoDataMessage = NoDataMessage; exports.NoDataAction = NoDataAction; exports.NoDataActions = NoDataActions; exports.NoData = NoData; exports.PageLoader = PageLoader; exports.CompactPageLoader = CompactPageLoader; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.RadioGroupBlock = RadioGroupBlock; exports.Switch = Switch; exports.TagSelectDropdown = TagSelectDropdown; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.TagsInput = TagsInput; exports.TagsManager = TagsManager; exports.Textarea = Textarea; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.AspectRatio = AspectRatio; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.ImageGalleryModal = ImageGalleryModal; exports.Modal = Modal2; exports.ModalContent = ModalContent2; exports.ModalHeader = ModalHeader2; exports.ModalTitle = ModalTitle2; exports.ModalFooter = ModalFooter2; exports.Modal2 = Modal; exports.ModalContent2 = ModalContent; exports.ModalHeader2 = ModalHeader; exports.ModalTitle2 = ModalTitle; exports.ModalFooter2 = ModalFooter; exports.Separator = Separator2; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetPortal = SheetPortal; exports.SheetOverlay = SheetOverlay; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.OVERLAY_BACKDROP_CLASS = OVERLAY_BACKDROP_CLASS; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerClose = DrawerClose; exports.DrawerPortal = DrawerPortal; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DrawerBody = DrawerBody; exports.DrawerFooter = DrawerFooter; exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.MenubarMenu = MenubarMenu; exports.MenubarGroup = MenubarGroup; exports.MenubarPortal = MenubarPortal; exports.MenubarSub = MenubarSub; exports.MenubarRadioGroup = MenubarRadioGroup; exports.Menubar = Menubar; exports.MenubarTrigger = MenubarTrigger; exports.MenubarSubTrigger = MenubarSubTrigger; exports.MenubarSubContent = MenubarSubContent; exports.MenubarContent = MenubarContent; exports.MenubarItem = MenubarItem; exports.MenubarCheckboxItem = MenubarCheckboxItem; exports.MenubarRadioItem = MenubarRadioItem; exports.MenubarLabel = MenubarLabel; exports.MenubarSeparator = MenubarSeparator; exports.MenubarShortcut = MenubarShortcut; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuViewport = NavigationMenuViewport; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.CrossfadePanels = CrossfadePanels; exports.TabContent = TabContent; exports.TabNavigation = TabNavigation; exports.getTabById = getTabById; exports.getTabComponent = getTabComponent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AIGeneratedBadge = AIGeneratedBadge; exports.FadePreview = FadePreview; exports.Progress = Progress; exports.VideoPlayBadge = VideoPlayBadge; exports.VideoUnmuteGlyph = VideoUnmuteGlyph; exports.fetchPriorityProp = fetchPriorityProp; exports.extractYouTubeId = extractYouTubeId; exports.Video = Video2; exports.MediaCarousel = MediaCarousel; exports.EMBED_SIZES = EMBED_SIZES; exports.EmbedContainer = EmbedContainer; exports.YouTubeContainer = YouTubeContainer; exports.TwitterContainer = TwitterContainer; exports.RedditContainer = RedditContainer; exports.LinkPreviewContainer = LinkPreviewContainer; exports.LinkedInContainer = LinkedInContainer; exports.RichMarkdownRuntimeProvider = RichMarkdownRuntimeProvider; exports.useRichMarkdownRuntime = useRichMarkdownRuntime; exports.RedditEmbedClient = RedditEmbedClient; exports.TwitterEmbedClient = TwitterEmbedClient; exports.LinkedInEmbedClient = LinkedInEmbedClient; exports.OGLinkErrorBoundary = OGLinkErrorBoundary; exports.OGLinkPreview = OGLinkPreview; exports.toGoogleSheetsEmbedUrl = toGoogleSheetsEmbedUrl; exports.toGoogleSheetsOriginalUrl = toGoogleSheetsOriginalUrl; exports.toFigmaEmbedUrl = toFigmaEmbedUrl; exports.isFigmaSlidesUrl = isFigmaSlidesUrl; exports.toFigmaOriginalUrl = toFigmaOriginalUrl; exports.EmbedIframe = EmbedIframe; exports.FigmaEmbed = FigmaEmbed; exports.MarkdownImage = MarkdownImage; exports.RichMarkdownRenderer = RichMarkdownRenderer; exports.ReleaseChangelogSection = ReleaseChangelogSection; exports.StackedRowsPanel = StackedRowsPanel; exports.SlackChannelChip = SlackChannelChip; exports.statusBadgeVariants = statusBadgeVariants; exports.StatusBadge = StatusBadge; exports.StatusIndicator = StatusIndicator; exports.HoverDropdown = HoverDropdown; exports.ExpandChevron = ExpandChevron; exports.useCollapsible = useCollapsible; exports.getCommandText = getCommandText; exports.ArgRow = ArgRow; exports.ResultBlock = ResultBlock; exports.CommandBlock = CommandBlock; exports.ApprovalStatusTag = ApprovalStatusTag; exports.ApprovalBatchMessage = ApprovalBatchMessage; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.ContextCompactionDisplay = ContextCompactionDisplay; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.ThinkingDisplay = ThinkingDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.MspOrganizationCard = MspOrganizationCard; exports.MspOrganizationCardSkeleton = MspOrganizationCardSkeleton; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.ChatTypingIndicator = ChatTypingIndicator; exports.MingoOnboardingCard = MingoOnboardingCard; exports.ICON_REGISTRY = ICON_REGISTRY; exports.normalizeIconKey = normalizeIconKey; exports.getIconComponent = getIconComponent; exports.getDynamicIcon = getDynamicIcon; exports.ICON_ALIASES = ICON_ALIASES; exports.resolveIcon = resolveIcon; exports.ICON_OPTIONS = ICON_OPTIONS; exports.SlashCommandSuggestions = SlashCommandSuggestions; exports.ChatInput = ChatInput; exports.formatTicketRelativeTime = formatTicketRelativeTime; exports.formatTicketFullTimestamp = formatTicketFullTimestamp; exports.formatRelativeTime = formatRelativeTime; exports.formatAbsoluteDate = formatAbsoluteDate; exports.formatDateTime = formatDateTime; exports.getDetailedTimeDifference = getDetailedTimeDifference; exports.isToday = isToday; exports.isWithinMinutes = isWithinMinutes; exports.createUTCTimestamp = createUTCTimestamp; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.BlockCard = BlockCard; exports.CONTEXT_ROW_CLASS = CONTEXT_ROW_CLASS; exports.CONTEXT_ICON_CLASS = CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = CONTEXT_LABEL_CLASS; exports.CONTEXT_BACK_CLASS = CONTEXT_BACK_CLASS; exports.CONTEXT_STATE_CLASS = CONTEXT_STATE_CLASS; exports.ContextMenuRow = ContextMenuRow; exports.ContextItemsSkeleton = ContextItemsSkeleton; exports.ContextItemsList = ContextItemsList; exports.ContextErrorBoundary = ContextErrorBoundary; exports.CHAT_CONTEXT_ITEMS_DEFAULT_MAX = CHAT_CONTEXT_ITEMS_DEFAULT_MAX; exports.ChatComposerPlusMenu = ChatComposerPlusMenu; exports.ChatContextPicker = ChatContextPicker; exports.ChatContextChipStrip = ChatContextChipStrip; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.ChatMessageSkeleton = ChatMessageSkeleton; exports.ChatMessageListSkeleton = ChatMessageListSkeleton; exports.MESSAGE_TYPE = MESSAGE_TYPE; exports.SCROLL_ANCHOR = SCROLL_ANCHOR; exports.ChatMessageList = ChatMessageList; exports.getProxiedImageUrl = getProxiedImageUrl; exports.urlPathLooksLikeSvg = urlPathLooksLikeSvg; exports.shouldProxyImage = shouldProxyImage; exports.generateImageSizes = generateImageSizes; exports.useProxiedImageUrl = useProxiedImageUrl; exports.ChatMessageRow = ChatMessageRow; exports.ChatMessageRowSkeleton = ChatMessageRowSkeleton; exports.ChatQuickAction = ChatQuickAction; exports.FAE_AVATAR_DATA_URI = FAE_AVATAR_DATA_URI; exports.AgentMark = AgentMark; exports.EntityIcon = EntityIcon; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipSkeleton = QuickActionChipSkeleton; exports.QuickActionChipButton = QuickActionChipButton; exports.ChatQuickActionRow = ChatQuickActionRow; exports.ChatQuickActionRowSkeleton = ChatQuickActionRowSkeleton; exports.QuickActionMarquee = QuickActionMarquee; exports.ChatTicketItem = ChatTicketItem; exports.ChatTicketList = ChatTicketList; exports.MingoOnboardingCardSkeleton = MingoOnboardingCardSkeleton; exports.MingoOnboardingListSkeleton = MingoOnboardingListSkeleton; exports.MingoChatHistorySkeleton = MingoChatHistorySkeleton; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.GuideWelcome = GuideWelcome; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.GuideModeBanner = GuideModeBanner; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatHeaderIconButton = ChatHeaderIconButton; exports.COMPACT_HEADER_BUTTON = COMPACT_HEADER_BUTTON; exports.ChatPanelHeader = ChatPanelHeader; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX = CHAT_ATTACHMENT_VIEW_URL_PREFIX; exports.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM = CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM; exports.ANTHROPIC_SUPPORTED_IMAGE_MIME = ANTHROPIC_SUPPORTED_IMAGE_MIME; exports.buildChatAttachmentViewUrl = buildChatAttachmentViewUrl; exports.escapeMarkdownInline = escapeMarkdownInline; exports.formatChatAttachmentMarkdownForBubble = formatChatAttachmentMarkdownForBubble; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED; exports.CHAT_ATTACHMENT_MARKDOWN_PATTERN = CHAT_ATTACHMENT_MARKDOWN_PATTERN; exports.stripChatAttachmentMarkdown = stripChatAttachmentMarkdown; exports.CHAT_ATTACHMENT_MIME_TYPES = CHAT_ATTACHMENT_MIME_TYPES; exports.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER = CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER; exports.ChatAttachmentAddButton = ChatAttachmentAddButton; exports.ChatAttachmentChipStrip = ChatAttachmentChipStrip; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.ModelDisplay = ModelDisplay; exports.ModelDisplaySkeleton = ModelDisplaySkeleton; exports.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.DialogListItem = DialogListItem; exports.ChatSidebar = ChatSidebar; exports.isCrossOriginUrl = isCrossOriginUrl; exports.decideNewTab = decideNewTab; exports.computeIsNewTab = computeIsNewTab; exports.newTabAnchorAttrs = newTabAnchorAttrs; exports.buildAnchorProps = buildAnchorProps; exports.NEW_TAB_FEATURES = NEW_TAB_FEATURES; exports.isModifierClick = isModifierClick; exports.stripSameOriginToPath = stripSameOriginToPath; exports.resolveExternalNavigation = resolveExternalNavigation; exports.executeNavigation = executeNavigation; exports.executeNavigationImperative = executeNavigationImperative; exports.handleChatNavClick = handleChatNavClick; exports.NavLinkAnchorViaRuntime = NavLinkAnchorViaRuntime; exports.SourceActionButton = SourceActionButton; exports.EMPTY_AUTHOR_PLACEHOLDER = EMPTY_AUTHOR_PLACEHOLDER; exports.EntityMetadataValueCell = EntityMetadataValueCell; exports.EntityMetadataAuthorCell = EntityMetadataAuthorCell; exports.EntityAuthorCard = EntityAuthorCard; exports.BlogImagePlaceholder = BlogImagePlaceholder; exports.useCoverImageFallback = useCoverImageFallback; exports.hideOnError = hideOnError; exports.EntityPortraitCard = EntityPortraitCard; exports.FlamingoLogo = FlamingoLogo2; exports.PlatformBadge = PlatformBadge; exports.AdminContentCard = AdminContentCard; exports.getProxiedImageUrl2 = getProxiedImageUrl2; exports.WhatIShippedCard = WhatIShippedCard; exports.WhatIShippedCardSkeleton = WhatIShippedCardSkeleton; exports.MUX_STREAM_ORIGIN = MUX_STREAM_ORIGIN; exports.MUX_IMAGE_ORIGIN = MUX_IMAGE_ORIGIN; exports.useVideoOriginPreconnect = useVideoOriginPreconnect; exports.useVideoWarmup = useVideoWarmup; exports.RATIO_GRID_CLASS = RATIO_GRID_CLASS; exports.RATIO_TO_CSS_ASPECT = RATIO_TO_CSS_ASPECT; exports.RatioTabs = RatioTabs; exports.detectAspectRatio = detectAspectRatio; exports.ratioToCategory = ratioToCategory; exports.groupByAspectRatio = groupByAspectRatio; exports.DEFAULT_VIDEO_BITES_TITLE = DEFAULT_VIDEO_BITES_TITLE; exports.toStripProfile = toStripProfile; exports.sortBitesByCreatedAtDesc = sortBitesByCreatedAtDesc; exports.PAGE_HEADING_CLASS = PAGE_HEADING_CLASS; exports.SECTION_HEADING_CLASS = SECTION_HEADING_CLASS; exports.PageHeading = PageHeading; exports.STRIP_CELL_MAX_WIDTH = STRIP_CELL_MAX_WIDTH; exports.CardsStrip = CardsStrip; exports.SquareAvatar2 = SquareAvatar2; exports.UserDisplay = UserDisplay; exports.VideoBitesStrip = VideoBitesStrip; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.ProductReleaseCard = ProductReleaseCard; exports.ProductReleaseCardSkeleton = ProductReleaseCardSkeleton; exports.formatReleaseDate = formatReleaseDate; exports.formatDateShort = formatDateShort; exports.formatDateSlashUTC = formatDateSlashUTC; exports.resolveReleaseCover = resolveReleaseCover; exports.releaseTypeToBadgeColor = releaseTypeToBadgeColor; exports.defaultBuildProductReleaseCardProps = defaultBuildProductReleaseCardProps; exports.buildProductReleaseCardProps = buildProductReleaseCardProps; exports.useEntityCardLink = useEntityCardLink; exports.COMPACT_CARD_OUTER = COMPACT_CARD_OUTER; exports.COMPACT_CARD_OUTER_STATIC = COMPACT_CARD_OUTER_STATIC; exports.COMPACT_CARD_SKELETON_OUTER = COMPACT_CARD_SKELETON_OUTER; exports.COMPACT_CARD_IMAGE_SLOT = COMPACT_CARD_IMAGE_SLOT; exports.COMPACT_CARD_SKELETON_IMAGE_SLOT = COMPACT_CARD_SKELETON_IMAGE_SLOT; exports.COMPACT_CARD_ICON_SLOT = COMPACT_CARD_ICON_SLOT; exports.COMPACT_CARD_TEXT_COL = COMPACT_CARD_TEXT_COL; exports.COMPACT_CARD_TITLE_ROW = COMPACT_CARD_TITLE_ROW; exports.COMPACT_CARD_META_ROW_BOX = COMPACT_CARD_META_ROW_BOX; exports.COMPACT_CARD_TITLE = COMPACT_CARD_TITLE; exports.COMPACT_CARD_SUBTITLE = COMPACT_CARD_SUBTITLE; exports.COMPACT_CARD_SUMMARY = COMPACT_CARD_SUMMARY; exports.COMPACT_CARD_META_ROW = COMPACT_CARD_META_ROW; exports.COMPACT_CARD_ROW_FILLER = COMPACT_CARD_ROW_FILLER; exports.safeHref = safeHref; exports.BlogCardSkeleton = BlogCardSkeleton; exports.BlogCard = BlogCard; exports.CaseStudyCardSkeleton = CaseStudyCardSkeleton; exports.CaseStudyCard = CaseStudyCard; exports.CustomerInterviewCardSkeleton = CustomerInterviewCardSkeleton; exports.CustomerInterviewCard = CustomerInterviewCard; exports.formatInvestorUpdatePeriod = formatInvestorUpdatePeriod; exports.InvestorUpdateCardSkeleton = InvestorUpdateCardSkeleton; exports.InvestorUpdateCard = InvestorUpdateCard; exports.OnboardingGuideCardSkeleton = OnboardingGuideCardSkeleton; exports.OnboardingGuideCard = OnboardingGuideCard; exports.RoadmapVoteButton = RoadmapVoteButton; exports.getStatusColorScheme = getStatusColorScheme; exports.CUSTOM_ITEM_ID = CUSTOM_ITEM_ID; exports.getTaskTypeLabel = getTaskTypeLabel; exports.TaskTypeIcon = TaskTypeIcon; exports.RoadmapCardSkeleton = RoadmapCardSkeleton; exports.RoadmapCard = RoadmapCard; exports.GitHubActivityCard = GitHubActivityCard; exports.GitHubActivityCardSkeleton = GitHubActivityCardSkeleton; exports.SlackMessageCard = SlackMessageCard; exports.SlackMessageCardSkeleton = SlackMessageCardSkeleton; exports.HubspotTicketCard = HubspotTicketCard; exports.HubspotTicketCardSkeleton = HubspotTicketCardSkeleton; exports.DataRoomDocCard = DataRoomDocCard; exports.DataRoomDocCardSkeleton = DataRoomDocCardSkeleton; exports.programItemToStripProfile = programItemToStripProfile; exports.transformEventToProgram = transformEventToProgram; exports.transformPodcastToProgram = transformPodcastToProgram; exports.transformWebinarToProgram = transformWebinarToProgram; exports.ProgramCardSkeleton = ProgramCardSkeleton; exports.ProgramCard = ProgramCard; exports.CampaignCardAdmin = CampaignCardAdmin; exports.CampaignCardAdminSkeleton = CampaignCardAdminSkeleton; exports.GenericEntityCard = GenericEntityCard; exports.GenericEntityCardSkeleton = GenericEntityCardSkeleton; exports.extractItems = extractItems; exports.extractItemId = extractItemId; exports.useChatCardItem = useChatCardItem; exports.SOURCE_ICON_NAMES = SOURCE_ICON_NAMES; exports.getSourceIconName = getSourceIconName; exports.SOURCE_LABELS_BY_TABLE = SOURCE_LABELS_BY_TABLE; exports.getSourceLabel = getSourceLabel; exports.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID; exports.defaultTableIdForDocumentType = defaultTableIdForDocumentType; exports.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.ChatCardLoader = ChatCardLoader; exports.renderChatInlineEntityCard = renderChatInlineEntityCard; exports.CHAT_TYPE = CHAT_TYPE; exports.OWNER_TYPE = OWNER_TYPE; exports.MESSAGE_ROLE = MESSAGE_ROLE; exports.ASSISTANT_TYPE = ASSISTANT_TYPE; exports.AUTHOR_TYPE = AUTHOR_TYPE; exports.APPROVAL_STATUS = APPROVAL_STATUS; exports.APPROVAL_BLOCK_VARIANT = APPROVAL_BLOCK_VARIANT; exports.CONNECTION_STATUS = CONNECTION_STATUS; exports.buildChatRefKey = buildChatRefKey; exports.isStructuredContent = isStructuredContent; exports.normalizeContent = normalizeContent2; exports.NETWORK_CONFIG = NETWORK_CONFIG; exports.useChunkCatchup = useChunkCatchup; exports.useJetStreamDialogSubscription = useJetStreamDialogSubscription; exports.useNatsDialogSubscription = useNatsDialogSubscription; exports.buildNatsWsUrl = buildNatsWsUrl; exports.parseChunkToAction = parseChunkToAction; exports.isControlChunk = isControlChunk; exports.isErrorChunk = isErrorChunk; exports.isMetadataChunk = isMetadataChunk; exports.extractTextFromChunk = extractTextFromChunk; exports.MessageSegmentAccumulator = MessageSegmentAccumulator; exports.createMessageSegmentAccumulator = createMessageSegmentAccumulator; exports.useRealtimeChunkProcessor = useRealtimeChunkProcessor; exports.fetchSlashCommands = fetchSlashCommands; exports.useSlashCommands = useSlashCommands; exports.useSlashCommandRegistry = useSlashCommandRegistry; exports.fetchEmptyStateConfig = fetchEmptyStateConfig; exports.useEmptyStateConfig = useEmptyStateConfig; exports.useChatAttachments = useChatAttachments; exports.useChatAttachmentImageGallery = useChatAttachmentImageGallery; exports.ChatIdentityProvider = ChatIdentityProvider; exports.useChatIdentity = useChatIdentity; exports.useCloseOnNavigation = useCloseOnNavigation; exports.useSSE = useSSE; exports.useChat = useChat; exports.SCROLL_ANCHOR_WIRE_KEY = SCROLL_ANCHOR_WIRE_KEY; exports.parseScrollAnchor = parseScrollAnchor; exports.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; exports.flattenAssistantContent = flattenAssistantContent; exports.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.useSseChatAdapter = useSseChatAdapter; exports.processHistoricalMessages = processHistoricalMessages; exports.extractErrorMessages = extractErrorMessages; exports.processHistoricalMessagesWithErrors = processHistoricalMessagesWithErrors; exports.useNatsChatAdapter = useNatsChatAdapter; exports.useUnifiedChat = useUnifiedChat; exports.extractIncompleteMessageState = extractIncompleteMessageState; exports.SYNTHETIC_REALTIME_ID_PREFIXES = SYNTHETIC_REALTIME_ID_PREFIXES; exports.flattenMessagePagesChronological = flattenMessagePagesChronological; exports.maxPersistedStreamSeq = maxPersistedStreamSeq; exports.mergeHistoryWithRealtime = mergeHistoryWithRealtime; exports.computeHistoryPrepend = computeHistoryPrepend; exports.CHIP_ACTION_BUTTON_CLASS = CHIP_ACTION_BUTTON_CLASS; exports.chatChipClass = chatChipClass; exports.clickupTaskUrl = clickupTaskUrl; exports.EmbeddableChat = EmbeddableChat; exports.FilterCheckboxItem = FilterCheckboxItem; exports.TagKeyValueFilter = TagKeyValueFilter; exports.FilterModal = FilterModal; exports.PageActions = PageActions; exports.usePageActionsBottomPadding = usePageActionsBottomPadding; exports.PageContainer = PageContainer; exports.ListPageContainer = ListPageContainer; exports.DetailPageContainer = DetailPageContainer; exports.FormPageContainer = FormPageContainer; exports.ContentPageContainer = ContentPageContainer; exports.ListPageLayout = ListPageLayout; exports.EntityImage = EntityImage; exports.TITLE_BLOCK_MIN_HEIGHT = TITLE_BLOCK_MIN_HEIGHT; exports.TitleBlock = TitleBlock; exports.PageLayout = PageLayout; exports.PageShell = PageShell; exports.ArticleDetailLayout = ArticleDetailLayout; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.ToggleGroup = ToggleGroup; exports.ToggleGroupItem = ToggleGroupItem; exports.delay = delay; exports.generateRandomString = generateRandomString; exports.truncateString = truncateString; exports.serializeJsonLd = serializeJsonLd; exports.deepClone = deepClone; exports.getSlackCommunityJoinUrl = getSlackCommunityJoinUrl; exports.SEO_TITLE_MAX_LENGTH = SEO_TITLE_MAX_LENGTH; exports.BRAND_MARK_SVGS = BRAND_MARK_SVGS; exports.brandMarkDataUri = brandMarkDataUri; exports.OS_PLATFORMS = OS_PLATFORMS; exports.DEFAULT_OS_PLATFORM = DEFAULT_OS_PLATFORM; exports.isValidEmailDomain = isValidEmailDomain; exports.validateEmailDomain = validateEmailDomain; exports.validateEmailDomainList = validateEmailDomainList; exports.cleanEmailDomain = cleanEmailDomain; exports.getConfidenceColorClass = getConfidenceColorClass; exports.getConfidenceLevel = getConfidenceLevel; exports.getConfidenceBorderClass = getConfidenceBorderClass; exports.getConfidenceTextClass = getConfidenceTextClass; exports.getConfidenceBgClass = getConfidenceBgClass; exports.getConfidenceLabel = getConfidenceLabel; exports.DEV_SECTION_PARAM_KEYS = DEV_SECTION_PARAM_KEYS; exports.devSectionAnchorId = devSectionAnchorId; exports.normalizeToolType = normalizeToolType; exports.normalizeToolTypeWithFallback = normalizeToolTypeWithFallback; exports.toToolLabel = toToolLabel; exports.isValidToolType = isValidToolType; exports.getToolTypeAliases = getToolTypeAliases; exports.getToolLabel = getToolLabel; exports.ShellTypeValues = ShellTypeValues; exports.SHELL_TYPES = SHELL_TYPES; exports.shellLabels = shellLabels; exports.getShellLabel = getShellLabel; exports.getShellIcon = getShellIcon; exports.OSTypeValues = OSTypeValues; exports.OS_TYPES = OS_TYPES; exports.osLabels = osLabels; exports.normalizeOSType = normalizeOSType; exports.getOSLabel = getOSLabel; exports.getOSIcon = getOSIcon; exports.getOSTypeDefinition = getOSTypeDefinition; exports.getOSPlatformId = getOSPlatformId; exports.isOSPlatform = isOSPlatform; exports.getCountryPhoneData = getCountryPhoneData; exports.getCountryByCode = getCountryByCode; exports.validatePhoneNumber = validatePhoneNumber; exports.formatPhoneE164 = formatPhoneE164; exports.GENERIC_EMAIL_DOMAINS = GENERIC_EMAIL_DOMAINS; exports.extractDomainFromEmail = extractDomainFromEmail; exports.normalizeDomain = normalizeDomain; exports.isGenericDomain = isGenericDomain; exports.hasGenericEmailDomain = hasGenericEmailDomain; exports.isGenericWebsiteDomain = isGenericWebsiteDomain; exports.DESIGN_PALETTE = DESIGN_PALETTE; exports.getContrastRatio = getContrastRatio; exports.extractDominantColor = extractDominantColor; exports.getBestContrastColor = getBestContrastColor; exports.analyzeImageColor = analyzeImageColor; exports.extractImageEdgeColorAsync = extractImageEdgeColorAsync; exports.readLeadingDecisionFrame = readLeadingDecisionFrame; exports.AVAILABLE_SVG_ICONS = AVAILABLE_SVG_ICONS; exports.releaseTypeOptions = releaseTypeOptions; exports.releaseStatusOptions = releaseStatusOptions; exports.changelogLabels = changelogLabels; exports.SEMVER_REGEX = SEMVER_REGEX; exports.TASK_TYPE_LABELS = TASK_TYPE_LABELS; exports.TASK_TYPE_TEXT_COLORS = TASK_TYPE_TEXT_COLORS; exports.TMCG_ROLES = TMCG_ROLES; exports.TMCG_ROLE_DISPLAY_NAMES = TMCG_ROLE_DISPLAY_NAMES; exports.TMCG_SOCIAL_PLATFORMS = TMCG_SOCIAL_PLATFORMS; exports.ROADMAP_STATUS_OPTIONS = ROADMAP_STATUS_OPTIONS; exports.DELIVERY_TASK_TYPE_OPTIONS = DELIVERY_TASK_TYPE_OPTIONS; exports.TICKET_STATUS_OPTIONS = TICKET_STATUS_OPTIONS; exports.OPENFRAME_DEV_SECTIONS = OPENFRAME_DEV_SECTIONS; exports.canonicalContentRefType = canonicalContentRefType; exports.buildListUrl = buildListUrl; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.CONTENT_REF_GROUPS = CONTENT_REF_GROUPS; exports.getContentRefLabel = getContentRefLabel; exports.getContentRefLabelOrTitleCase = getContentRefLabelOrTitleCase; exports.orderContentRefTypes = orderContentRefTypes; exports.buildSuggestionUrl = buildSuggestionUrl; exports.DEFAULT_CONTENT_SUFFIXES = DEFAULT_CONTENT_SUFFIXES; exports.makeComposeContentUrl = makeComposeContentUrl; exports.buildDefaultHref = buildDefaultHref; exports.resolveContentHref = resolveContentHref; exports.DEFAULT_FOLDER_INDEX_FILE = DEFAULT_FOLDER_INDEX_FILE; exports.stripFolderIndexFromPath = stripFolderIndexFromPath; exports.findDocNodeByPath = findDocNodeByPath; exports.getDocAncestorNodeIds = getDocAncestorNodeIds; exports.resolveContentFetchPath = resolveContentFetchPath; exports.getInitialExpandedNodeIds = getInitialExpandedNodeIds; exports.getDocSourceDefaultPath = getDocSourceDefaultPath; exports.toDocSlug = toDocSlug; exports.pathToNodeId = pathToNodeId; exports.normalizeDocPath = normalizeDocPath; exports.formatDocName = formatDocName; exports.sortTreeChildren = sortTreeChildren; exports.buildDocumentTree = buildDocumentTree; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.extractSections = extractSections; exports.SECTION_HERO_ICON_CLASS = SECTION_HERO_ICON_CLASS; exports.BenefitCard = BenefitCard; exports.BenefitCardGrid = BenefitCardGrid; exports.BrandAssociationCard = BrandAssociationCard; exports.BrandAssociationGrid = BrandAssociationGrid; exports.BulletList = BulletList; exports.ChevronButton = ChevronButton; exports.CircularProgress = CircularProgress; exports.CheckIcon = CheckIcon2; exports.XIcon = XIcon2; exports.MinusIcon = MinusIcon; exports.CheckCircleIcon = CheckCircleIcon2; exports.XCircleIcon = XCircleIcon; exports.FloatingTooltip = FloatingTooltip; exports.DashboardInfoCard = DashboardInfoCard; exports.OSTypeBadge = OSTypeBadge; exports.OSTypeIcon = OSTypeIcon; exports.OSTypeLabel = OSTypeLabel; exports.DeviceCard = DeviceCard; exports.DeviceCardCompact = DeviceCardCompact; exports.FeatureCardGrid = FeatureCardGrid; exports.FeatureList = FeatureList; exports.TruncateText = TruncateText; exports.HighlightCard = HighlightCard; exports.HighlightCardGrid = HighlightCardGrid; exports.IconsBlock = IconsBlock; exports.DropdownButton = DropdownButton; exports.MoreActionsMenu = MoreActionsMenu; exports.OrganizationCard = OrganizationCard; exports.ServiceCard = ServiceCard; exports.Slider = Slider; exports.TabSelector = TabSelector; exports.TitleContentBlock = TitleContentBlock; exports.ErrorState = ErrorState; exports.PageError = PageError; exports.LoadError = LoadError; exports.NotFoundError = NotFoundError; exports.ContentLoader = ContentLoader; exports.CardLoader = CardLoader; exports.FormLoader = FormLoader; exports.DetailLoader = DetailLoader; exports.ListLoader = ListLoader; exports.Pagination = Pagination; exports.PaginationContent = PaginationContent; exports.PaginationItem = PaginationItem; exports.PaginationLink = PaginationLink; exports.PaginationEllipsis = PaginationEllipsis; exports.PaginationPrevious = PaginationPrevious; exports.PaginationNext = PaginationNext; exports.init_pagination = init_pagination; exports.CursorPagination = CursorPagination; exports.CursorPaginationSimple = CursorPaginationSimple; exports.TableEmptyState = TableEmptyState; exports.DynamicThemeProvider = DynamicThemeProvider; exports.useDynamicTheme = useDynamicTheme; exports.THEME_STORAGE_KEY = THEME_STORAGE_KEY; exports.THEME_ATTRIBUTE = THEME_ATTRIBUTE; exports.DEFAULT_THEME = DEFAULT_THEME; exports.ThemeProvider = ThemeProvider; exports.useTheme = useTheme; exports.useThemeToggle = useThemeToggle; exports.ArrayEntryManager = ArrayEntryManager; exports.AuthBenefitsPanel = AuthBenefitsPanel; exports.OpenFrameWordmark = OpenFrameWordmark; exports.PoweredByFlamingo = PoweredByFlamingo; exports.AuthShell = AuthShell; exports.BackToLoginLink = BackToLoginLink; exports.PasswordInput = PasswordInput; exports.PROVIDER_META = PROVIDER_META; exports.SsoProviderButtons = SsoProviderButtons; exports.CompleteAccountForm = CompleteAccountForm; exports.TermsAgreementLabel = TermsAgreementLabel; exports.CreateOrganizationForm = CreateOrganizationForm; exports.InviteLinkInvalidModal = InviteLinkInvalidModal; exports.LoginForm = LoginForm; exports.OpenFrameSsoLoginForm = OpenFrameSsoLoginForm; exports.OpenFrameSsoSignUpForm = OpenFrameSsoSignUpForm; exports.PasswordResetForm = PasswordResetForm; exports.SsoAuthShell = SsoAuthShell; exports.ProviderButton = ProviderButton; exports.AuthProvidersList = AuthProvidersList; exports.ChangelogManager = ChangelogManager; exports.ChangelogSectionsManager = ChangelogSectionsManager; exports.ClickUpTasksManager = ClickUpTasksManager; exports.CommandBox = CommandBox; exports.TAG_BADGE_CLASS = TAG_BADGE_CLASS; exports.EntityTagBadges = EntityTagBadges; exports.ErrorBoundary = ErrorBoundary; exports.SectionSelector = SectionSelector; exports.FigmaPrototypeViewer = FigmaPrototypeViewer; exports.FiltersDropdown = FiltersDropdown; exports.useFiltersDropdown = useFiltersDropdown; exports.GitHubReleasesManager = GitHubReleasesManager; exports.KnowledgeBaseLinksManager = KnowledgeBaseLinksManager; exports.LoadingProvider = LoadingProvider; exports.useLoading = useLoading; exports.MediaGalleryManager = MediaGalleryManager; exports.MoreAboutButton = MoreAboutButton; exports.OSTypeBadgeGroup = OSTypeBadgeGroup; exports.ParallaxImageShowcase = ParallaxImageShowcase; exports.PathsDisplay = PathsDisplay; exports.OPENFRAME_PATHS = OPENFRAME_PATHS; exports.getOpenFramePaths = getOpenFramePaths; exports.OPENFRAME_DOCTOR_COMMANDS = OPENFRAME_DOCTOR_COMMANDS; exports.getOpenFrameDoctorCommand = getOpenFrameDoctorCommand; exports.PlatformFilterComponent = PlatformFilterComponent; exports.PushButtonSelector = PushButtonSelector; exports.ReleaseMediaManager = ReleaseMediaManager; exports.SelectButton = SelectButton; exports.SEOEditorPreview = SEOEditorPreview; exports.SocialLinksManager = SocialLinksManager; exports.StartWithOpenFrameButton = StartWithOpenFrameButton; exports.StatusFilterComponent = StatusFilterComponent; exports.TagsSelector = TagsSelector; exports.WarningBlock = WarningBlock; exports.VideoBitesDisplay = VideoBitesDisplay; exports.getCaptionsUrl = getCaptionsUrl; exports.VideoSourceSelector = VideoSourceSelector; exports.ConfidenceBadge = ConfidenceBadge; exports.TranscriptSummaryEditor = TranscriptSummaryEditor; exports.AIEnrichButton = AIEnrichButton; exports.AIWarningsSection = AIWarningsSection; exports.AIEnrichSection = AIEnrichSection; exports.HighlightVideoSection = HighlightVideoSection; exports.HighlightConfigSection = HighlightConfigSection; exports.EntitySummaryEditor = EntitySummaryEditor; exports.AIStatusIndicator = AIStatusIndicator; exports.AIRequiredBadge = AIRequiredBadge; exports.TranscribeSummarizeSection = TranscribeSummarizeSection; exports.VideoClipsSection = VideoClipsSection; exports.HighlightGenerationSection = HighlightGenerationSection; exports.HighlightVideoPreview = HighlightVideoPreview; exports.TranscribeAndSummarizeCombinedSection = TranscribeAndSummarizeCombinedSection; exports.HighlightVideoCombinedSection = HighlightVideoCombinedSection; exports.ViewToggle = ViewToggle; exports.PolicyConfigurationPanel = PolicyConfigurationPanel; exports.PhoneInput = PhoneInput; exports.WaitlistForm = WaitlistForm; exports.NotificationsProvider = NotificationsProvider; exports.useNotifications = useNotifications; exports.useOptionalNotifications = useOptionalNotifications; exports.useAppLayoutDrawerContainer = useAppLayoutDrawerContainer; exports.AppLayoutDrawerRoot = AppLayoutDrawerRoot; exports.AppLayoutDrawerTrigger = AppLayoutDrawerTrigger; exports.AppLayoutDrawerClose = AppLayoutDrawerClose; exports.AppLayoutDrawerContent = AppLayoutDrawerContent; exports.AppLayoutDrawerHeader = AppLayoutDrawerHeader; exports.AppLayoutDrawerTitle = AppLayoutDrawerTitle; exports.AppLayoutDrawerDescription = AppLayoutDrawerDescription; exports.AppLayoutDrawerBody = AppLayoutDrawerBody; exports.AppLayoutDrawerFooter = AppLayoutDrawerFooter; exports.NotificationTile = NotificationTile; exports.NotificationDrawer = NotificationDrawer; exports.NotificationPopups = NotificationPopups; exports.ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE = ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE; exports.isApprovalNotification = isApprovalNotification; exports.getApprovalMeta = getApprovalMeta; exports.resolutionToStatus = resolutionToStatus; exports.approvalMetaToBatchData = approvalMetaToBatchData; exports.ApprovalRequestNotificationTile = ApprovalRequestNotificationTile; exports.TimeTrackerProvider = TimeTrackerProvider; exports.useTimeTracker = useTimeTracker; exports.useOptionalTimeTracker = useOptionalTimeTracker; exports.useTrackerClock = useTrackerClock; exports.TimeTrackerPanel = TimeTrackerPanel; exports.HeaderButton = HeaderButton; exports.TimeTrackerHeaderButton = TimeTrackerHeaderButton; exports.BoardColumnHeader = BoardColumnHeader; exports.tintOnDark = tintOnDark; exports.BoardTicketApproval = BoardTicketApproval; exports.TicketCard = TicketCard; exports.TicketCardSkeleton = TicketCardSkeleton; exports.BoardColumn = BoardColumn; exports.useBoardCollapse = useBoardCollapse; exports.Board = Board; exports.columnFromTicketStatus = columnFromTicketStatus; exports.groupTicketsByStatus = groupTicketsByStatus; exports.TicketStatusConfigList = TicketStatusConfigList; exports.TableHeader = TableHeader; exports.TableCell = TableCell; exports.TableCardSkeleton = TableCardSkeleton; exports.TableRow = TableRow; exports.Table = Table; exports.TableDescriptionCell = TableDescriptionCell; exports.TableTimestampCell = TableTimestampCell; exports.QueryReportTableHeader = QueryReportTableHeader; exports.QueryReportTableRow = QueryReportTableRow; exports.QueryReportTableSkeleton = QueryReportTableSkeleton; exports.deriveColumns = deriveColumns; exports.exportToCSV = exportToCSV; exports.QueryReportTable = QueryReportTable; exports.useDataTableContext = useDataTableContext; exports.DataTableRoot = DataTableRoot; exports.getHideClasses = getHideClasses2; exports.alignJustify = alignJustify; exports.multiSelectFilterFn = multiSelectFilterFn; exports.DataTableHeader = DataTableHeader; exports.DataTableEmpty = DataTableEmpty; exports.ROW_HEIGHT_DESKTOP = ROW_HEIGHT_DESKTOP2; exports.ROW_HEIGHT_MOBILE = ROW_HEIGHT_MOBILE2; exports.DataTableSkeleton = DataTableSkeleton; exports.DataTableRow = DataTableRow; exports.DataTableBody = DataTableBody; exports.DataTableInfiniteFooter = DataTableInfiniteFooter; exports.DataTableCursorFooter = DataTableCursorFooter; exports.DataTableRowCount = DataTableRowCount; exports.useDataTable = useDataTable; exports.DataTable = DataTable; exports.flexRender = _reacttable.flexRender; exports.createColumnHelper = _reacttable.createColumnHelper; exports.getCoreRowModel = _reacttable.getCoreRowModel; exports.getExpandedRowModel = _reacttable.getExpandedRowModel; exports.getFacetedRowModel = _reacttable.getFacetedRowModel; exports.getFacetedUniqueValues = _reacttable.getFacetedUniqueValues; exports.getFilteredRowModel = _reacttable.getFilteredRowModel; exports.getGroupedRowModel = _reacttable.getGroupedRowModel; exports.getPaginationRowModel = _reacttable.getPaginationRowModel; exports.getSortedRowModel = _reacttable.getSortedRowModel; exports.SearchInput = SearchInput; exports.FilterListItem = FilterListItem; exports.FilterList = FilterList; exports.TagSearchInput = TagSearchInput; exports.MarkdownEditor = MarkdownEditor; exports.FileUpload = FileUpload; exports.ImageUploader = ImageUploader; exports.TICKET_STATUS_COLOR_PRESETS = TICKET_STATUS_COLOR_PRESETS; exports.CUSTOM_PRESET_KEY = CUSTOM_PRESET_KEY; exports.DEFAULT_CUSTOM_STATUS_COLOR = DEFAULT_CUSTOM_STATUS_COLOR; exports.ColorPresetSelect = ColorPresetSelect; exports.ColorPickerInput = ColorPickerInput; exports.TicketStatusConfigRow = TicketStatusConfigRow; exports.TicketDetailSection = TicketDetailSection; exports.TicketAttachmentsList = TicketAttachmentsList; exports.TicketNoteCard = TicketNoteCard; exports.TicketNotesSection = TicketNotesSection; exports.TicketInfoSection = TicketInfoSection; exports.FilterPillRow = FilterPillRow; exports.Header = Header2; exports.HeaderSkeleton = HeaderSkeleton; exports.ClientOnlyHeader = ClientOnlyHeader; exports.MobileNavPanel = MobileNavPanel; exports.SlidingSidebar = SlidingSidebar; exports.StickySectionNav = StickySectionNav; exports.useSectionNavigation = useSectionNavigation; exports.NavigationSidebar = NavigationSidebar; exports.HeaderGlobalSearch = HeaderGlobalSearch; exports.HeaderMingoButton = HeaderMingoButton; exports.HeaderOrganizationFilter = HeaderOrganizationFilter; exports.AppHeader = AppHeader; exports.MobileBurgerMenu = MobileBurgerMenu; exports.AppLayout = AppLayout; exports.MultiLevelNavigation = MultiLevelNavigation; exports.MobileNavigationDropdown = MobileNavigationDropdown; exports.SoftwareInfo = SoftwareInfo; exports.SoftwareSourceBadge = SoftwareSourceBadge; exports.CveLink = CveLink; exports.ToolBadge = ToolBadge; exports.ShellTypeBadge = ShellTypeBadge; exports.ScriptInfoSection = ScriptInfoSection; exports.ScriptArguments = ScriptArguments; exports.OnboardingStepCard = OnboardingStepCard; exports.OnboardingWalkthrough = OnboardingWalkthrough; exports.LOG_SEVERITY_COLORS = LOG_SEVERITY_COLORS; exports.LOG_SEVERITY_LABELS = LOG_SEVERITY_LABELS; exports.LogSeverityDot = LogSeverityDot; exports.LogsList = LogsList; exports.assets = assets;
|
|
53303
|
-
//# sourceMappingURL=chunk-
|
|
53268
|
+
//# sourceMappingURL=chunk-7OKNKZBW.cjs.map
|