@flamingo-stack/openframe-frontend-core 0.0.542 → 0.0.543-1802.4768.1
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-F3GGE6DI.cjs → chunk-2NX2VD7T.cjs} +87 -87
- package/dist/{chunk-F3GGE6DI.cjs.map → chunk-2NX2VD7T.cjs.map} +1 -1
- package/dist/{chunk-T4O3AEKV.cjs → chunk-3PMCWX36.cjs} +26 -26
- package/dist/{chunk-T4O3AEKV.cjs.map → chunk-3PMCWX36.cjs.map} +1 -1
- package/dist/{chunk-BETH6QZC.cjs → chunk-4PRMQKAK.cjs} +75 -73
- package/dist/chunk-4PRMQKAK.cjs.map +1 -0
- package/dist/{chunk-PZGOK2OC.js → chunk-5DPCASIW.js} +2 -2
- package/dist/{chunk-SEAKHM72.js → chunk-67XL4FMM.js} +2 -2
- package/dist/{chunk-DMYAVVD7.cjs → chunk-74T6MVF7.cjs} +7 -7
- package/dist/{chunk-DMYAVVD7.cjs.map → chunk-74T6MVF7.cjs.map} +1 -1
- package/dist/{chunk-VP4ZY2RA.js → chunk-7RPM4KRD.js} +49 -85
- package/dist/{chunk-VP4ZY2RA.js.map → chunk-7RPM4KRD.js.map} +1 -1
- package/dist/{chunk-4JDQXYFI.cjs → chunk-AF6W3O2N.cjs} +14 -14
- package/dist/{chunk-4JDQXYFI.cjs.map → chunk-AF6W3O2N.cjs.map} +1 -1
- package/dist/{chunk-JIAZRPQG.cjs → chunk-D5K5EHBR.cjs} +11 -11
- package/dist/{chunk-JIAZRPQG.cjs.map → chunk-D5K5EHBR.cjs.map} +1 -1
- package/dist/{chunk-FT5PZQVK.js → chunk-DR3MJCFM.js} +5 -5
- package/dist/{chunk-IRZHAWRW.cjs → chunk-ERP5RN6B.cjs} +4 -4
- package/dist/{chunk-IRZHAWRW.cjs.map → chunk-ERP5RN6B.cjs.map} +1 -1
- package/dist/{chunk-4IOPSFHF.cjs → chunk-EYL5Q7QI.cjs} +37 -37
- package/dist/{chunk-4IOPSFHF.cjs.map → chunk-EYL5Q7QI.cjs.map} +1 -1
- package/dist/{chunk-OLUROGWG.cjs → chunk-FZF5QY7O.cjs} +31 -31
- package/dist/{chunk-OLUROGWG.cjs.map → chunk-FZF5QY7O.cjs.map} +1 -1
- package/dist/{chunk-WFG72MKN.cjs → chunk-HABTZJ5S.cjs} +28 -26
- package/dist/chunk-HABTZJ5S.cjs.map +1 -0
- package/dist/{chunk-LOSJMXB7.cjs → chunk-HMRPSDDQ.cjs} +9 -9
- package/dist/{chunk-LOSJMXB7.cjs.map → chunk-HMRPSDDQ.cjs.map} +1 -1
- package/dist/{chunk-FMH3YY4H.js → chunk-HOMBXWT5.js} +2 -2
- package/dist/{chunk-QW36SYRQ.js → chunk-HZCGR4TA.js} +2 -2
- package/dist/{chunk-UL5EGPMV.js → chunk-LNMWDIIJ.js} +4 -4
- package/dist/{chunk-DVBUNH46.cjs → chunk-LYH3DPK3.cjs} +5 -5
- package/dist/{chunk-DVBUNH46.cjs.map → chunk-LYH3DPK3.cjs.map} +1 -1
- package/dist/{chunk-QEXFM2QX.js → chunk-MNDO73RD.js} +2 -2
- package/dist/{chunk-2GRFWONP.js → chunk-MSDEKLLM.js} +2 -2
- package/dist/{chunk-WNNZFBMS.js → chunk-N2LJBBQQ.js} +6 -4
- package/dist/{chunk-WNNZFBMS.js.map → chunk-N2LJBBQQ.js.map} +1 -1
- package/dist/{chunk-CE2GROZZ.cjs → chunk-QOZOU6M4.cjs} +562 -598
- package/dist/{chunk-CE2GROZZ.cjs.map → chunk-QOZOU6M4.cjs.map} +1 -1
- package/dist/{chunk-Y22S7NE3.js → chunk-R3QMKCGX.js} +9 -7
- package/dist/chunk-R3QMKCGX.js.map +1 -0
- package/dist/{chunk-QDO7Y54S.js → chunk-RDWDWUO2.js} +2 -2
- package/dist/{chunk-J2Z53KRG.js → chunk-U5PYLGAK.js} +2 -2
- package/dist/{chunk-AKZY45LV.js → chunk-VHTQSY6C.js} +2 -2
- package/dist/{chunk-FLSI72M2.cjs → chunk-VWJBF3BN.cjs} +3 -3
- package/dist/{chunk-FLSI72M2.cjs.map → chunk-VWJBF3BN.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +8 -8
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/chat/index.js +1 -1
- package/dist/components/chat/types/entities/onboarding-guide.d.ts +1 -0
- package/dist/components/chat/types/entities/onboarding-guide.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +5 -5
- package/dist/components/docs/index.js +4 -4
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/captions-url.cjs +3 -2
- package/dist/components/features/captions-url.cjs.map +1 -1
- package/dist/components/features/captions-url.d.ts +8 -1
- package/dist/components/features/captions-url.d.ts.map +1 -1
- package/dist/components/features/captions-url.js +3 -2
- package/dist/components/features/captions-url.js.map +1 -1
- package/dist/components/features/entity-video-section.d.ts +7 -1
- package/dist/components/features/entity-video-section.d.ts.map +1 -1
- package/dist/components/features/highlight-config-section.d.ts +4 -6
- package/dist/components/features/highlight-config-section.d.ts.map +1 -1
- package/dist/components/features/highlight-video-combined-section.d.ts +1 -5
- package/dist/components/features/highlight-video-combined-section.d.ts.map +1 -1
- package/dist/components/features/highlight-video-section.d.ts +1 -5
- package/dist/components/features/highlight-video-section.d.ts.map +1 -1
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- 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 +132 -132
- package/dist/components/index.js +11 -11
- package/dist/components/meeting-scheduler/index.cjs +34 -34
- package/dist/components/meeting-scheduler/index.js +3 -3
- package/dist/components/navigation/index.cjs +2 -2
- package/dist/components/navigation/index.js +1 -1
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/onboarding-guides/onboarding-guide-detail-view.d.ts.map +1 -1
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/shared/product-release/release-detail-page.d.ts +2 -0
- package/dist/components/shared/product-release/release-detail-page.d.ts.map +1 -1
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/types/customer-interview.d.ts +0 -2
- package/dist/types/customer-interview.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/types/entities/onboarding-guide.ts +1 -0
- package/src/components/features/captions-url.ts +10 -1
- package/src/components/features/entity-video-section.tsx +9 -0
- package/src/components/features/highlight-config-section.tsx +3 -20
- package/src/components/features/highlight-video-combined-section.tsx +0 -8
- package/src/components/features/highlight-video-section.tsx +0 -19
- package/src/components/onboarding-guides/onboarding-guide-detail-view.tsx +2 -0
- package/src/components/shared/product-release/release-detail-page.tsx +4 -0
- package/src/types/customer-interview.ts +0 -2
- package/dist/chunk-BETH6QZC.cjs.map +0 -1
- package/dist/chunk-WFG72MKN.cjs.map +0 -1
- package/dist/chunk-Y22S7NE3.js.map +0 -1
- /package/dist/{chunk-PZGOK2OC.js.map → chunk-5DPCASIW.js.map} +0 -0
- /package/dist/{chunk-SEAKHM72.js.map → chunk-67XL4FMM.js.map} +0 -0
- /package/dist/{chunk-FT5PZQVK.js.map → chunk-DR3MJCFM.js.map} +0 -0
- /package/dist/{chunk-FMH3YY4H.js.map → chunk-HOMBXWT5.js.map} +0 -0
- /package/dist/{chunk-QW36SYRQ.js.map → chunk-HZCGR4TA.js.map} +0 -0
- /package/dist/{chunk-UL5EGPMV.js.map → chunk-LNMWDIIJ.js.map} +0 -0
- /package/dist/{chunk-QEXFM2QX.js.map → chunk-MNDO73RD.js.map} +0 -0
- /package/dist/{chunk-2GRFWONP.js.map → chunk-MSDEKLLM.js.map} +0 -0
- /package/dist/{chunk-QDO7Y54S.js.map → chunk-RDWDWUO2.js.map} +0 -0
- /package/dist/{chunk-J2Z53KRG.js.map → chunk-U5PYLGAK.js.map} +0 -0
- /package/dist/{chunk-AKZY45LV.js.map → chunk-VHTQSY6C.js.map} +0 -0
|
@@ -15339,6 +15339,7 @@ function EntityVideoSection({
|
|
|
15339
15339
|
MarkdownRenderer,
|
|
15340
15340
|
srtContent,
|
|
15341
15341
|
captionsUrl,
|
|
15342
|
+
highlightCaptionsUrl,
|
|
15342
15343
|
priority = false
|
|
15343
15344
|
}) {
|
|
15344
15345
|
const hasFullVideo = !!(youtubeUrl || mainVideoUrl);
|
|
@@ -15387,6 +15388,7 @@ function EntityVideoSection({
|
|
|
15387
15388
|
{
|
|
15388
15389
|
url: highlightVideoUrl,
|
|
15389
15390
|
poster: highlightVideoThumbnail,
|
|
15391
|
+
captionsUrl: highlightCaptionsUrl,
|
|
15390
15392
|
layout: "centered"
|
|
15391
15393
|
}
|
|
15392
15394
|
) })
|
|
@@ -15407,6 +15409,7 @@ function EntityVideoSection({
|
|
|
15407
15409
|
{
|
|
15408
15410
|
url: highlightVideoUrl,
|
|
15409
15411
|
poster: highlightVideoThumbnail,
|
|
15412
|
+
captionsUrl: highlightCaptionsUrl,
|
|
15410
15413
|
layout: "centered",
|
|
15411
15414
|
priority
|
|
15412
15415
|
}
|
|
@@ -35298,10 +35301,11 @@ function useWalkthroughVideo(opts) {
|
|
|
35298
35301
|
}
|
|
35299
35302
|
|
|
35300
35303
|
// src/components/features/captions-url.ts
|
|
35301
|
-
function getCaptionsUrl(entityType, entityId, srtContent) {
|
|
35304
|
+
function getCaptionsUrl(entityType, entityId, srtContent, options) {
|
|
35302
35305
|
if (!srtContent) return void 0;
|
|
35303
35306
|
const hash = `${srtContent.length}-${srtContent.slice(0, 8).replace(/\s/g, "")}`;
|
|
35304
|
-
|
|
35307
|
+
const variant = _optionalChain([options, 'optionalAccess', _786 => _786.variant]) ? `&variant=${options.variant}` : "";
|
|
35308
|
+
return `/api/captions/${entityType}/${entityId}?v=${hash}${variant}`;
|
|
35305
35309
|
}
|
|
35306
35310
|
|
|
35307
35311
|
// src/components/features/video-source-selector.tsx
|
|
@@ -35341,7 +35345,7 @@ function VideoSourceSelector({
|
|
|
35341
35345
|
input.accept = "video/*";
|
|
35342
35346
|
input.onchange = async (e) => {
|
|
35343
35347
|
const target = e.target;
|
|
35344
|
-
const file = _optionalChain([target, 'access',
|
|
35348
|
+
const file = _optionalChain([target, 'access', _787 => _787.files, 'optionalAccess', _788 => _788[0]]);
|
|
35345
35349
|
if (!file) return;
|
|
35346
35350
|
setIsUploading(true);
|
|
35347
35351
|
setUploadProgress(0);
|
|
@@ -35660,7 +35664,7 @@ function TranscriptSummaryEditor({
|
|
|
35660
35664
|
{
|
|
35661
35665
|
id: "subtitles",
|
|
35662
35666
|
value: subtitles || "",
|
|
35663
|
-
onChange: (e) => _optionalChain([onSubtitlesChange, 'optionalCall',
|
|
35667
|
+
onChange: (e) => _optionalChain([onSubtitlesChange, 'optionalCall', _789 => _789(e.target.value)]),
|
|
35664
35668
|
placeholder: subtitlesPlaceholder,
|
|
35665
35669
|
disabled: disabled || !onSubtitlesChange,
|
|
35666
35670
|
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 text-code",
|
|
@@ -35813,7 +35817,7 @@ var AIEnrichSection = ({
|
|
|
35813
35817
|
}) => {
|
|
35814
35818
|
const hasResults = status === "success" || status === "error";
|
|
35815
35819
|
const shouldDisable = disabled || !canEnrich;
|
|
35816
|
-
const unfilledFields = _optionalChain([requiredFields, 'optionalAccess',
|
|
35820
|
+
const unfilledFields = _optionalChain([requiredFields, 'optionalAccess', _790 => _790.filter, 'call', _791 => _791((f) => !f.isFilled)]) || [];
|
|
35817
35821
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
35818
35822
|
"div",
|
|
35819
35823
|
{
|
|
@@ -35851,7 +35855,7 @@ var AIEnrichSection = ({
|
|
|
35851
35855
|
{
|
|
35852
35856
|
id: "ai-enrich-custom-instructions",
|
|
35853
35857
|
value: _nullishCoalesce(customInstructions, () => ( "")),
|
|
35854
|
-
onChange: (e) => _optionalChain([onCustomInstructionsChange, 'optionalCall',
|
|
35858
|
+
onChange: (e) => _optionalChain([onCustomInstructionsChange, 'optionalCall', _792 => _792(e.target.value)]),
|
|
35855
35859
|
placeholder: customInstructionsPlaceholder,
|
|
35856
35860
|
disabled: loading,
|
|
35857
35861
|
maxLength: customInstructionsMaxLength,
|
|
@@ -35953,8 +35957,6 @@ function HighlightVideoSection({
|
|
|
35953
35957
|
highlightVideoSource,
|
|
35954
35958
|
targetDurationSeconds,
|
|
35955
35959
|
onTargetDurationChange,
|
|
35956
|
-
skipSubtitleBurning,
|
|
35957
|
-
onSkipSubtitleBurningChange,
|
|
35958
35960
|
onGenerateHighlight,
|
|
35959
35961
|
isGenerating = false,
|
|
35960
35962
|
generationProgress,
|
|
@@ -35980,7 +35982,7 @@ function HighlightVideoSection({
|
|
|
35980
35982
|
input.accept = "video/*";
|
|
35981
35983
|
input.onchange = async (e) => {
|
|
35982
35984
|
const target = e.target;
|
|
35983
|
-
const file = _optionalChain([target, 'access',
|
|
35985
|
+
const file = _optionalChain([target, 'access', _793 => _793.files, 'optionalAccess', _794 => _794[0]]);
|
|
35984
35986
|
if (!file) return;
|
|
35985
35987
|
setUploadError(null);
|
|
35986
35988
|
try {
|
|
@@ -35997,43 +35999,27 @@ function HighlightVideoSection({
|
|
|
35997
35999
|
return `${minutes}:${String(seconds).padStart(2, "0")}`;
|
|
35998
36000
|
};
|
|
35999
36001
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `space-y-4 ${className}`, children: [
|
|
36000
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-3 p-4 bg-ods-card rounded-lg border border-ods-border", children: /* @__PURE__ */ _jsxruntime.
|
|
36001
|
-
/* @__PURE__ */ _jsxruntime.
|
|
36002
|
-
|
|
36003
|
-
|
|
36004
|
-
|
|
36005
|
-
|
|
36006
|
-
|
|
36007
|
-
|
|
36008
|
-
|
|
36009
|
-
children:
|
|
36010
|
-
|
|
36011
|
-
/* @__PURE__ */ _jsxruntime.
|
|
36012
|
-
|
|
36013
|
-
|
|
36014
|
-
|
|
36015
|
-
|
|
36016
|
-
|
|
36017
|
-
|
|
36018
|
-
|
|
36019
|
-
|
|
36020
|
-
|
|
36021
|
-
] }),
|
|
36022
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2 pt-5", children: [
|
|
36023
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
36024
|
-
"input",
|
|
36025
|
-
{
|
|
36026
|
-
type: "checkbox",
|
|
36027
|
-
id: "skipSubtitleBurning",
|
|
36028
|
-
checked: skipSubtitleBurning,
|
|
36029
|
-
onChange: (e) => onSkipSubtitleBurningChange(e.target.checked),
|
|
36030
|
-
disabled,
|
|
36031
|
-
className: "h-4 w-4 rounded border-ods-border bg-ods-bg-surface text-ods-accent focus:ring-ods-accent"
|
|
36032
|
-
}
|
|
36033
|
-
),
|
|
36034
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { htmlFor: "skipSubtitleBurning", className: "text-h6 cursor-pointer", children: "Skip subtitle burning" })
|
|
36035
|
-
] })
|
|
36036
|
-
] }) }),
|
|
36002
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-3 p-4 bg-ods-card rounded-lg border border-ods-border", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1", children: [
|
|
36003
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { className: "text-h6", children: "Target Duration" }),
|
|
36004
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
36005
|
+
Select,
|
|
36006
|
+
{
|
|
36007
|
+
value: targetDurationSeconds.toString(),
|
|
36008
|
+
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
36009
|
+
disabled,
|
|
36010
|
+
children: [
|
|
36011
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "bg-ods-bg-surface mt-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, {}) }),
|
|
36012
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SelectContent, { className: "bg-ods-card", children: [
|
|
36013
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: "60", children: "1 minute" }),
|
|
36014
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: "120", children: "2 minutes" }),
|
|
36015
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
36016
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: "240", children: "4 minutes" }),
|
|
36017
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: "300", children: "5 minutes" })
|
|
36018
|
+
] })
|
|
36019
|
+
]
|
|
36020
|
+
}
|
|
36021
|
+
)
|
|
36022
|
+
] }) }) }),
|
|
36037
36023
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
36038
36024
|
AIEnrichSection,
|
|
36039
36025
|
{
|
|
@@ -36117,48 +36103,30 @@ function HighlightVideoSection({
|
|
|
36117
36103
|
function HighlightConfigSection({
|
|
36118
36104
|
targetDurationSeconds,
|
|
36119
36105
|
onTargetDurationChange,
|
|
36120
|
-
skipSubtitleBurning,
|
|
36121
|
-
onSkipSubtitleBurningChange,
|
|
36122
36106
|
disabled = false,
|
|
36123
36107
|
className = ""
|
|
36124
36108
|
}) {
|
|
36125
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `space-y-3 p-4 bg-ods-card rounded-lg border border-ods-border ${className}`, children: /* @__PURE__ */ _jsxruntime.
|
|
36126
|
-
/* @__PURE__ */ _jsxruntime.
|
|
36127
|
-
|
|
36128
|
-
|
|
36129
|
-
|
|
36130
|
-
|
|
36131
|
-
|
|
36132
|
-
|
|
36133
|
-
|
|
36134
|
-
children:
|
|
36135
|
-
|
|
36136
|
-
/* @__PURE__ */ _jsxruntime.
|
|
36137
|
-
|
|
36138
|
-
|
|
36139
|
-
|
|
36140
|
-
|
|
36141
|
-
|
|
36142
|
-
|
|
36143
|
-
|
|
36144
|
-
|
|
36145
|
-
|
|
36146
|
-
] }),
|
|
36147
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2 pt-5", children: [
|
|
36148
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
36149
|
-
"input",
|
|
36150
|
-
{
|
|
36151
|
-
type: "checkbox",
|
|
36152
|
-
id: "skipSubtitleBurning",
|
|
36153
|
-
checked: skipSubtitleBurning,
|
|
36154
|
-
onChange: (e) => onSkipSubtitleBurningChange(e.target.checked),
|
|
36155
|
-
disabled,
|
|
36156
|
-
className: "h-4 w-4 rounded border-ods-border bg-ods-bg text-ods-accent focus:ring-ods-accent"
|
|
36157
|
-
}
|
|
36158
|
-
),
|
|
36159
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { htmlFor: "skipSubtitleBurning", className: "text-h6 cursor-pointer", children: "Skip subtitle burning" })
|
|
36160
|
-
] })
|
|
36161
|
-
] }) });
|
|
36109
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `space-y-3 p-4 bg-ods-card rounded-lg border border-ods-border ${className}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1", children: [
|
|
36110
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { className: "text-h6", children: "Target Duration" }),
|
|
36111
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
36112
|
+
Select,
|
|
36113
|
+
{
|
|
36114
|
+
value: targetDurationSeconds.toString(),
|
|
36115
|
+
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
36116
|
+
disabled,
|
|
36117
|
+
children: [
|
|
36118
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "bg-ods-bg mt-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, {}) }),
|
|
36119
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SelectContent, { className: "bg-ods-card", children: [
|
|
36120
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: "60", children: "1 minute" }),
|
|
36121
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: "120", children: "2 minutes" }),
|
|
36122
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
36123
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: "240", children: "4 minutes" }),
|
|
36124
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: "300", children: "5 minutes" })
|
|
36125
|
+
] })
|
|
36126
|
+
]
|
|
36127
|
+
}
|
|
36128
|
+
)
|
|
36129
|
+
] }) }) });
|
|
36162
36130
|
}
|
|
36163
36131
|
|
|
36164
36132
|
// src/components/features/entity-summary-editor.tsx
|
|
@@ -36475,7 +36443,7 @@ function HighlightVideoPreview({
|
|
|
36475
36443
|
input.accept = "video/*";
|
|
36476
36444
|
input.onchange = async (e) => {
|
|
36477
36445
|
const target = e.target;
|
|
36478
|
-
const file = _optionalChain([target, 'access',
|
|
36446
|
+
const file = _optionalChain([target, 'access', _795 => _795.files, 'optionalAccess', _796 => _796[0]]);
|
|
36479
36447
|
if (!file) return;
|
|
36480
36448
|
await onUpload(file);
|
|
36481
36449
|
};
|
|
@@ -36612,8 +36580,6 @@ function HighlightVideoCombinedSection({
|
|
|
36612
36580
|
// Config props
|
|
36613
36581
|
targetDurationSeconds,
|
|
36614
36582
|
onTargetDurationChange,
|
|
36615
|
-
skipSubtitleBurning,
|
|
36616
|
-
onSkipSubtitleBurningChange,
|
|
36617
36583
|
configDisabled = false,
|
|
36618
36584
|
// Generation props
|
|
36619
36585
|
onGenerateHighlight,
|
|
@@ -36659,7 +36625,7 @@ function HighlightVideoCombinedSection({
|
|
|
36659
36625
|
input.accept = "video/*";
|
|
36660
36626
|
input.onchange = async (e) => {
|
|
36661
36627
|
const target = e.target;
|
|
36662
|
-
const file = _optionalChain([target, 'access',
|
|
36628
|
+
const file = _optionalChain([target, 'access', _797 => _797.files, 'optionalAccess', _798 => _798[0]]);
|
|
36663
36629
|
if (!file) return;
|
|
36664
36630
|
await onUpload(file);
|
|
36665
36631
|
};
|
|
@@ -36671,8 +36637,6 @@ function HighlightVideoCombinedSection({
|
|
|
36671
36637
|
{
|
|
36672
36638
|
targetDurationSeconds,
|
|
36673
36639
|
onTargetDurationChange,
|
|
36674
|
-
skipSubtitleBurning,
|
|
36675
|
-
onSkipSubtitleBurningChange,
|
|
36676
36640
|
disabled: configDisabled
|
|
36677
36641
|
}
|
|
36678
36642
|
),
|
|
@@ -37045,12 +37009,12 @@ function PhoneInput({
|
|
|
37045
37009
|
const runValidation = _react.useCallback.call(void 0, (phone) => {
|
|
37046
37010
|
if (!phone || digitCount(phone) === 0) {
|
|
37047
37011
|
setIsInvalid(false);
|
|
37048
|
-
_optionalChain([onValidationChange, 'optionalCall',
|
|
37012
|
+
_optionalChain([onValidationChange, 'optionalCall', _799 => _799(false)]);
|
|
37049
37013
|
return;
|
|
37050
37014
|
}
|
|
37051
37015
|
const invalid = !validatePhoneNumber(phone, countryCode);
|
|
37052
37016
|
setIsInvalid(invalid);
|
|
37053
|
-
_optionalChain([onValidationChange, 'optionalCall',
|
|
37017
|
+
_optionalChain([onValidationChange, 'optionalCall', _800 => _800(invalid)]);
|
|
37054
37018
|
}, [countryCode, digitCount, onValidationChange]);
|
|
37055
37019
|
const debouncedValidation = _react.useCallback.call(void 0, (phone) => {
|
|
37056
37020
|
if (debounceRef.current) clearTimeout(debounceRef.current);
|
|
@@ -37099,7 +37063,7 @@ function PhoneInput({
|
|
|
37099
37063
|
debouncedValidation(val);
|
|
37100
37064
|
} else if (digitCount(val) === 0) {
|
|
37101
37065
|
setIsInvalid(false);
|
|
37102
|
-
_optionalChain([onValidationChange, 'optionalCall',
|
|
37066
|
+
_optionalChain([onValidationChange, 'optionalCall', _801 => _801(false)]);
|
|
37103
37067
|
}
|
|
37104
37068
|
}
|
|
37105
37069
|
},
|
|
@@ -37440,19 +37404,19 @@ function NotificationsProvider({
|
|
|
37440
37404
|
}, []);
|
|
37441
37405
|
const markRead = React107.useCallback((id) => {
|
|
37442
37406
|
dispatch({ type: "markRead", id });
|
|
37443
|
-
void _optionalChain([actionsRef, 'access',
|
|
37407
|
+
void _optionalChain([actionsRef, 'access', _802 => _802.current, 'optionalAccess', _803 => _803.onMarkRead, 'optionalCall', _804 => _804(id)]);
|
|
37444
37408
|
}, []);
|
|
37445
37409
|
const markAllRead = React107.useCallback(() => {
|
|
37446
37410
|
dispatch({ type: "markAllRead" });
|
|
37447
|
-
void _optionalChain([actionsRef, 'access',
|
|
37411
|
+
void _optionalChain([actionsRef, 'access', _805 => _805.current, 'optionalAccess', _806 => _806.onMarkAllRead, 'optionalCall', _807 => _807()]);
|
|
37448
37412
|
}, []);
|
|
37449
37413
|
const markSettled = React107.useCallback((id) => {
|
|
37450
37414
|
dispatch({ type: "markSettled", id });
|
|
37451
|
-
void _optionalChain([actionsRef, 'access',
|
|
37415
|
+
void _optionalChain([actionsRef, 'access', _808 => _808.current, 'optionalAccess', _809 => _809.onMarkSettled, 'optionalCall', _810 => _810(id)]);
|
|
37452
37416
|
}, []);
|
|
37453
37417
|
const remove = React107.useCallback((id) => {
|
|
37454
37418
|
dispatch({ type: "remove", id });
|
|
37455
|
-
void _optionalChain([actionsRef, 'access',
|
|
37419
|
+
void _optionalChain([actionsRef, 'access', _811 => _811.current, 'optionalAccess', _812 => _812.onRemove, 'optionalCall', _813 => _813(id)]);
|
|
37456
37420
|
}, []);
|
|
37457
37421
|
const clear = React107.useCallback(() => dispatch({ type: "clear" }), []);
|
|
37458
37422
|
const open = React107.useCallback(() => setIsOpen(true), []);
|
|
@@ -37461,14 +37425,14 @@ function NotificationsProvider({
|
|
|
37461
37425
|
const setShowPopups = React107.useCallback(
|
|
37462
37426
|
(value2) => {
|
|
37463
37427
|
setShowPopupsState(value2);
|
|
37464
|
-
_optionalChain([onShowPopupsChange, 'optionalCall',
|
|
37428
|
+
_optionalChain([onShowPopupsChange, 'optionalCall', _814 => _814(value2)]);
|
|
37465
37429
|
},
|
|
37466
37430
|
[onShowPopupsChange]
|
|
37467
37431
|
);
|
|
37468
37432
|
const setShowDesktopPopups = React107.useCallback(
|
|
37469
37433
|
(value2) => {
|
|
37470
37434
|
setShowDesktopPopupsState(value2);
|
|
37471
|
-
_optionalChain([onShowDesktopPopupsChange, 'optionalCall',
|
|
37435
|
+
_optionalChain([onShowDesktopPopupsChange, 'optionalCall', _815 => _815(value2)]);
|
|
37472
37436
|
},
|
|
37473
37437
|
[onShowDesktopPopupsChange]
|
|
37474
37438
|
);
|
|
@@ -37580,7 +37544,7 @@ var AppLayoutDrawerRoot = ({
|
|
|
37580
37544
|
const handleOpenChange = React108.useCallback(
|
|
37581
37545
|
(next) => {
|
|
37582
37546
|
if (!isControlled) setInternalOpen(next);
|
|
37583
|
-
_optionalChain([onOpenChange, 'optionalCall',
|
|
37547
|
+
_optionalChain([onOpenChange, 'optionalCall', _816 => _816(next)]);
|
|
37584
37548
|
},
|
|
37585
37549
|
[isControlled, onOpenChange]
|
|
37586
37550
|
);
|
|
@@ -37598,11 +37562,11 @@ var AppLayoutDrawerRoot = ({
|
|
|
37598
37562
|
};
|
|
37599
37563
|
}
|
|
37600
37564
|
React108.useEffect(() => {
|
|
37601
|
-
if (open) _optionalChain([coordination, 'optionalAccess',
|
|
37565
|
+
if (open) _optionalChain([coordination, 'optionalAccess', _817 => _817.notifyDrawerDidOpen, 'call', _818 => _818(_nullishCoalesce(selfHandleRef.current, () => ( void 0)))]);
|
|
37602
37566
|
}, [open, coordination]);
|
|
37603
37567
|
React108.useEffect(() => {
|
|
37604
37568
|
if (!selfHandleRef.current) return;
|
|
37605
|
-
return _optionalChain([coordination, 'optionalAccess',
|
|
37569
|
+
return _optionalChain([coordination, 'optionalAccess', _819 => _819.registerDrawer, 'call', _820 => _820(selfHandleRef.current)]);
|
|
37606
37570
|
}, [coordination]);
|
|
37607
37571
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DrawerOpenContext.Provider, { value: open, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
37608
37572
|
DialogPrimitive4.Root,
|
|
@@ -37982,10 +37946,10 @@ var AppLayoutDrawerContent = React108.forwardRef(
|
|
|
37982
37946
|
),
|
|
37983
37947
|
style,
|
|
37984
37948
|
onInteractOutside: (event) => {
|
|
37985
|
-
_optionalChain([onInteractOutside, 'optionalCall',
|
|
37949
|
+
_optionalChain([onInteractOutside, 'optionalCall', _821 => _821(event)]);
|
|
37986
37950
|
if (event.defaultPrevented) return;
|
|
37987
37951
|
const target = event.target;
|
|
37988
|
-
const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess',
|
|
37952
|
+
const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess', _822 => _822.contains, 'call', _823 => _823(target)]);
|
|
37989
37953
|
if (!isInsideContainer) {
|
|
37990
37954
|
event.preventDefault();
|
|
37991
37955
|
return;
|
|
@@ -38093,7 +38057,7 @@ function NotificationTile({
|
|
|
38093
38057
|
if (!counting) return;
|
|
38094
38058
|
const remaining = Math.max(0, liveDurationMs - initialElapsed);
|
|
38095
38059
|
const timer = window.setTimeout(() => {
|
|
38096
|
-
_optionalChain([onSettle, 'optionalCall',
|
|
38060
|
+
_optionalChain([onSettle, 'optionalCall', _824 => _824(id)]);
|
|
38097
38061
|
}, remaining);
|
|
38098
38062
|
return () => window.clearTimeout(timer);
|
|
38099
38063
|
}, [id, counting, initialElapsed, liveDurationMs, onSettle]);
|
|
@@ -38149,7 +38113,7 @@ function NotificationTile({
|
|
|
38149
38113
|
}
|
|
38150
38114
|
) : null,
|
|
38151
38115
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "relative size-4 shrink-0", children: [
|
|
38152
|
-
{ active: isLive, label: "Dismiss notification", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.XmarkIcon, { size: 16 }), onClick: () => _optionalChain([onSettle, 'optionalCall',
|
|
38116
|
+
{ active: isLive, label: "Dismiss notification", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.XmarkIcon, { size: 16 }), onClick: () => _optionalChain([onSettle, 'optionalCall', _825 => _825(id)]) },
|
|
38153
38117
|
{ active: !isLive, label: "Mark notification complete", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.CheckCircleIcon, { size: 16 }), onClick: () => onComplete(id) }
|
|
38154
38118
|
].map(({ active, label, icon: icon2, onClick }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38155
38119
|
"button",
|
|
@@ -38325,7 +38289,7 @@ function DrawerScrollList({
|
|
|
38325
38289
|
if (!sentinel || !root) return;
|
|
38326
38290
|
const observer = new IntersectionObserver(
|
|
38327
38291
|
(entries) => {
|
|
38328
|
-
if (_optionalChain([entries, 'access',
|
|
38292
|
+
if (_optionalChain([entries, 'access', _826 => _826[0], 'optionalAccess', _827 => _827.isIntersecting])) _optionalChain([loadMoreRef, 'access', _828 => _828.current, 'optionalCall', _829 => _829()]);
|
|
38329
38293
|
},
|
|
38330
38294
|
{ root, rootMargin: loadMoreRootMargin }
|
|
38331
38295
|
);
|
|
@@ -38340,7 +38304,7 @@ function DrawerScrollList({
|
|
|
38340
38304
|
className: "flex flex-1 flex-col gap-[var(--spacing-system-xs)] overflow-y-auto px-[var(--spacing-system-m)]",
|
|
38341
38305
|
children: isEmpty && !isLoadingMore ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmptyState, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
38342
38306
|
unreadNotifications.map((n) => {
|
|
38343
|
-
const custom = _optionalChain([renderTile, 'optionalCall',
|
|
38307
|
+
const custom = _optionalChain([renderTile, 'optionalCall', _830 => _830(n, { onComplete, onSettle, liveDurationMs })]);
|
|
38344
38308
|
if (custom) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: custom }, n.id);
|
|
38345
38309
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38346
38310
|
NotificationTile,
|
|
@@ -38504,7 +38468,7 @@ function NotificationPopups({
|
|
|
38504
38468
|
className
|
|
38505
38469
|
),
|
|
38506
38470
|
children: live.map((n) => {
|
|
38507
|
-
const custom = _optionalChain([renderTile, 'optionalCall',
|
|
38471
|
+
const custom = _optionalChain([renderTile, 'optionalCall', _831 => _831(n, { onComplete: markRead, onSettle: markSettled, liveDurationMs })]);
|
|
38508
38472
|
if (custom) {
|
|
38509
38473
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-auto", children: custom }, n.id);
|
|
38510
38474
|
}
|
|
@@ -38614,7 +38578,7 @@ function programItemToStripProfile(item) {
|
|
|
38614
38578
|
const fromAuthor = toStripProfile(item.author);
|
|
38615
38579
|
if (fromAuthor) return fromAuthor;
|
|
38616
38580
|
const host = Array.isArray(item.hosts) ? item.hosts[0] : null;
|
|
38617
|
-
if (!_optionalChain([host, 'optionalAccess',
|
|
38581
|
+
if (!_optionalChain([host, 'optionalAccess', _832 => _832.name])) return null;
|
|
38618
38582
|
return toStripProfile({ full_name: host.name, avatar_url: _nullishCoalesce(host.avatar_url, () => ( null)) });
|
|
38619
38583
|
}
|
|
38620
38584
|
function transformEventToProgram(event) {
|
|
@@ -38692,21 +38656,21 @@ function transformWebinarToProgram(webinar) {
|
|
|
38692
38656
|
// src/components/features/notifications/types.ts
|
|
38693
38657
|
var ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE = "ADMIN_APPROVAL_REQUEST";
|
|
38694
38658
|
function isApprovalNotification(notification) {
|
|
38695
|
-
return _optionalChain([notification, 'access',
|
|
38659
|
+
return _optionalChain([notification, 'access', _833 => _833.meta, 'optionalAccess', _834 => _834.contextType]) === ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE;
|
|
38696
38660
|
}
|
|
38697
38661
|
function getApprovalMeta(notification) {
|
|
38698
38662
|
if (!isApprovalNotification(notification)) return null;
|
|
38699
38663
|
const meta = notification.meta;
|
|
38700
|
-
const approvalRequestId = _optionalChain([meta, 'optionalAccess',
|
|
38701
|
-
const toolCalls = _optionalChain([meta, 'optionalAccess',
|
|
38664
|
+
const approvalRequestId = _optionalChain([meta, 'optionalAccess', _835 => _835.approvalRequestId]);
|
|
38665
|
+
const toolCalls = _optionalChain([meta, 'optionalAccess', _836 => _836.toolCalls]);
|
|
38702
38666
|
if (typeof approvalRequestId !== "string" || !Array.isArray(toolCalls)) return null;
|
|
38703
38667
|
return {
|
|
38704
38668
|
approvalRequestId,
|
|
38705
|
-
dialogId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
38706
|
-
ticketId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
38707
|
-
approvalType: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
38708
|
-
resolution: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
38709
|
-
resolvedByName: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
38669
|
+
dialogId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _837 => _837.dialogId]), () => ( null)),
|
|
38670
|
+
ticketId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _838 => _838.ticketId]), () => ( null)),
|
|
38671
|
+
approvalType: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _839 => _839.approvalType]), () => ( null)),
|
|
38672
|
+
resolution: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _840 => _840.resolution]), () => ( null)),
|
|
38673
|
+
resolvedByName: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _841 => _841.resolvedByName]), () => ( null)),
|
|
38710
38674
|
toolCalls
|
|
38711
38675
|
};
|
|
38712
38676
|
}
|
|
@@ -38756,7 +38720,7 @@ function ApprovalRequestNotificationTile({
|
|
|
38756
38720
|
const [processing, setProcessing] = _react.useState.call(void 0, false);
|
|
38757
38721
|
const [localStatus, setLocalStatus] = _react.useState.call(void 0, null);
|
|
38758
38722
|
const approval = getApprovalMeta(notification);
|
|
38759
|
-
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess',
|
|
38723
|
+
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess', _842 => _842.resolution]));
|
|
38760
38724
|
const status = resolvedStatus !== "pending" ? resolvedStatus : _nullishCoalesce(localStatus, () => ( "pending"));
|
|
38761
38725
|
const batchData = _react.useMemo.call(void 0, () => approval ? approvalMetaToBatchData(approval) : null, [approval]);
|
|
38762
38726
|
const { innerRef, containerStyle } = useCollapsible({ expanded });
|
|
@@ -39060,7 +39024,7 @@ function TimeTrackerPanel({
|
|
|
39060
39024
|
error: showFieldError ? "Required if no notes added" : void 0,
|
|
39061
39025
|
disableClientFilter: !!onTicketSearch,
|
|
39062
39026
|
onInputChange: (value, reason) => {
|
|
39063
|
-
if (reason === "input") _optionalChain([onTicketSearch, 'optionalCall',
|
|
39027
|
+
if (reason === "input") _optionalChain([onTicketSearch, 'optionalCall', _843 => _843(value)]);
|
|
39064
39028
|
}
|
|
39065
39029
|
}
|
|
39066
39030
|
),
|
|
@@ -39075,7 +39039,7 @@ function TimeTrackerPanel({
|
|
|
39075
39039
|
disabled: customerLocked,
|
|
39076
39040
|
disableClientFilter: !!onCustomerSearch,
|
|
39077
39041
|
onInputChange: (value, reason) => {
|
|
39078
|
-
if (reason === "input") _optionalChain([onCustomerSearch, 'optionalCall',
|
|
39042
|
+
if (reason === "input") _optionalChain([onCustomerSearch, 'optionalCall', _844 => _844(value)]);
|
|
39079
39043
|
},
|
|
39080
39044
|
startAdornment: customerStartAdornment,
|
|
39081
39045
|
renderOption: renderCustomerOption
|
|
@@ -39169,7 +39133,7 @@ function LastEntryRow({ entry, onClick }) {
|
|
|
39169
39133
|
{
|
|
39170
39134
|
variant: "outline",
|
|
39171
39135
|
size: "icon",
|
|
39172
|
-
onClick: () => _optionalChain([onClick, 'optionalCall',
|
|
39136
|
+
onClick: () => _optionalChain([onClick, 'optionalCall', _845 => _845(entry)]),
|
|
39173
39137
|
disabled: !onClick,
|
|
39174
39138
|
"aria-label": `Open entry: ${entry.title}`,
|
|
39175
39139
|
className: "h-12 w-12 shrink-0 [&_svg]:!size-6",
|
|
@@ -39258,31 +39222,31 @@ function HeaderButton({
|
|
|
39258
39222
|
function TimeTrackerHeaderButton({ className, disabled }) {
|
|
39259
39223
|
const ctx = useOptionalTimeTracker();
|
|
39260
39224
|
const elapsedLabel = useTrackerClock({
|
|
39261
|
-
status: _nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
39262
|
-
runningSince: _optionalChain([ctx, 'optionalAccess',
|
|
39263
|
-
accumulatedMs: _optionalChain([ctx, 'optionalAccess',
|
|
39225
|
+
status: _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _846 => _846.status]), () => ( "ready")),
|
|
39226
|
+
runningSince: _optionalChain([ctx, 'optionalAccess', _847 => _847.runningSince]),
|
|
39227
|
+
accumulatedMs: _optionalChain([ctx, 'optionalAccess', _848 => _848.accumulatedMs])
|
|
39264
39228
|
});
|
|
39265
39229
|
const layoutContainer = useAppLayoutDrawerContainer();
|
|
39266
39230
|
const coordination = useAppLayoutDrawerCoordination();
|
|
39267
|
-
const isOpen = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
39231
|
+
const isOpen = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _849 => _849.isOpen]), () => ( false));
|
|
39268
39232
|
const isOpenRef = _react.useRef.call(void 0, isOpen);
|
|
39269
39233
|
isOpenRef.current = isOpen;
|
|
39270
|
-
const closeRef = _react.useRef.call(void 0, _optionalChain([ctx, 'optionalAccess',
|
|
39271
|
-
closeRef.current = _optionalChain([ctx, 'optionalAccess',
|
|
39234
|
+
const closeRef = _react.useRef.call(void 0, _optionalChain([ctx, 'optionalAccess', _850 => _850.close]));
|
|
39235
|
+
closeRef.current = _optionalChain([ctx, 'optionalAccess', _851 => _851.close]);
|
|
39272
39236
|
const selfHandleRef = _react.useRef.call(void 0, null);
|
|
39273
39237
|
if (!selfHandleRef.current) {
|
|
39274
39238
|
selfHandleRef.current = {
|
|
39275
39239
|
close: () => {
|
|
39276
|
-
if (isOpenRef.current) _optionalChain([closeRef, 'access',
|
|
39240
|
+
if (isOpenRef.current) _optionalChain([closeRef, 'access', _852 => _852.current, 'optionalCall', _853 => _853()]);
|
|
39277
39241
|
}
|
|
39278
39242
|
};
|
|
39279
39243
|
}
|
|
39280
39244
|
_react.useEffect.call(void 0, () => {
|
|
39281
|
-
if (isOpen) _optionalChain([coordination, 'optionalAccess',
|
|
39245
|
+
if (isOpen) _optionalChain([coordination, 'optionalAccess', _854 => _854.notifyDrawerDidOpen, 'call', _855 => _855(_nullishCoalesce(selfHandleRef.current, () => ( void 0)))]);
|
|
39282
39246
|
}, [isOpen, coordination]);
|
|
39283
39247
|
_react.useEffect.call(void 0, () => {
|
|
39284
39248
|
if (!selfHandleRef.current) return;
|
|
39285
|
-
return _optionalChain([coordination, 'optionalAccess',
|
|
39249
|
+
return _optionalChain([coordination, 'optionalAccess', _856 => _856.registerDrawer, 'call', _857 => _857(selfHandleRef.current)]);
|
|
39286
39250
|
}, [coordination]);
|
|
39287
39251
|
if (!ctx) return null;
|
|
39288
39252
|
const { open, close, status } = ctx;
|
|
@@ -39564,9 +39528,9 @@ var TICKET_CARD_SHELL = "relative flex flex-col gap-[var(--spacing-system-sf)] r
|
|
|
39564
39528
|
function TicketCardBody({ ticket, columnColor, renderAssignSlot, onApprove, onReject }) {
|
|
39565
39529
|
const showNewMessage = !!ticket.hasNewMessage && !!columnColor;
|
|
39566
39530
|
const newMessageTextColor = columnColor ? getReadableTextColor(columnColor) : void 0;
|
|
39567
|
-
const showDeviceRow = !!(_optionalChain([ticket, 'access',
|
|
39568
|
-
const deviceText = [_optionalChain([ticket, 'access',
|
|
39569
|
-
const hasRightSection = !!(ticket.priority || _optionalChain([ticket, 'access',
|
|
39531
|
+
const showDeviceRow = !!(_optionalChain([ticket, 'access', _858 => _858.deviceHostnames, 'optionalAccess', _859 => _859.length]) || ticket.organizationName);
|
|
39532
|
+
const deviceText = [_optionalChain([ticket, 'access', _860 => _860.deviceHostnames, 'optionalAccess', _861 => _861.join, 'call', _862 => _862(", ")]), ticket.organizationName].filter(Boolean).join(", ");
|
|
39533
|
+
const hasRightSection = !!(ticket.priority || _optionalChain([ticket, 'access', _863 => _863.assignees, 'optionalAccess', _864 => _864.length]) || renderAssignSlot);
|
|
39570
39534
|
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: [
|
|
39571
39535
|
ticket.priority && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39572
39536
|
_chunkUTVOBFXRcjs.Flag02Icon,
|
|
@@ -39575,7 +39539,7 @@ function TicketCardBody({ ticket, columnColor, renderAssignSlot, onApprove, onRe
|
|
|
39575
39539
|
"aria-label": `Priority: ${ticket.priority}`
|
|
39576
39540
|
}
|
|
39577
39541
|
),
|
|
39578
|
-
renderAssignSlot ? renderAssignSlot(ticket) : _optionalChain([ticket, 'access',
|
|
39542
|
+
renderAssignSlot ? renderAssignSlot(ticket) : _optionalChain([ticket, 'access', _865 => _865.assignees, 'optionalAccess', _866 => _866.length]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex -space-x-2", children: [
|
|
39579
39543
|
ticket.assignees.slice(0, MAX_VISIBLE_ASSIGNEES).map(
|
|
39580
39544
|
(a) => a.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeletedUserAvatar, { size: "sm", accessibleLabel: `Deleted user: ${_nullishCoalesce(_nullishCoalesce(a.name, () => ( a.initials)), () => ( a.id))}` }, a.id) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39581
39545
|
SquareAvatar,
|
|
@@ -39608,7 +39572,7 @@ function TicketCardBody({ ticket, columnColor, renderAssignSlot, onApprove, onRe
|
|
|
39608
39572
|
] }),
|
|
39609
39573
|
rightSection
|
|
39610
39574
|
] }),
|
|
39611
|
-
_optionalChain([ticket, 'access',
|
|
39575
|
+
_optionalChain([ticket, 'access', _867 => _867.tags, 'optionalAccess', _868 => _868.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketTagRow, { tags: ticket.tags }) : null,
|
|
39612
39576
|
timestampLabel && tooltipLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipProvider, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip, { children: [
|
|
39613
39577
|
/* @__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 }) }),
|
|
39614
39578
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: tooltipLabel })
|
|
@@ -39863,7 +39827,7 @@ function ColumnBody({ column, getTicketHref, renderAssignSlot, onApprove, onReje
|
|
|
39863
39827
|
const observer = new IntersectionObserver(
|
|
39864
39828
|
(entries) => {
|
|
39865
39829
|
if (entries.some((e) => e.isIntersecting)) {
|
|
39866
|
-
_optionalChain([loadMoreRef, 'access',
|
|
39830
|
+
_optionalChain([loadMoreRef, 'access', _869 => _869.current, 'optionalCall', _870 => _870(columnIdRef.current)]);
|
|
39867
39831
|
}
|
|
39868
39832
|
},
|
|
39869
39833
|
{ root, rootMargin: loadMoreRootMargin }
|
|
@@ -39893,7 +39857,7 @@ function ColumnBody({ column, getTicketHref, renderAssignSlot, onApprove, onReje
|
|
|
39893
39857
|
ticket: t,
|
|
39894
39858
|
columnId: column.id,
|
|
39895
39859
|
columnColor: column.color,
|
|
39896
|
-
href: _optionalChain([getTicketHref, 'optionalCall',
|
|
39860
|
+
href: _optionalChain([getTicketHref, 'optionalCall', _871 => _871(t.id)]),
|
|
39897
39861
|
renderAssignSlot,
|
|
39898
39862
|
onApprove,
|
|
39899
39863
|
onReject,
|
|
@@ -39993,17 +39957,17 @@ function Board({
|
|
|
39993
39957
|
const pointer = _core.pointerWithin.call(void 0, args);
|
|
39994
39958
|
const intersections = pointer.length > 0 ? pointer : _core.rectIntersection.call(void 0, args);
|
|
39995
39959
|
const ticketHit = intersections.find(
|
|
39996
|
-
(c) => _optionalChain([c, 'access',
|
|
39960
|
+
(c) => _optionalChain([c, 'access', _872 => _872.data, 'optionalAccess', _873 => _873.droppableContainer, 'optionalAccess', _874 => _874.data, 'optionalAccess', _875 => _875.current, 'optionalAccess', _876 => _876.type]) === "ticket"
|
|
39997
39961
|
);
|
|
39998
39962
|
if (ticketHit) return [ticketHit];
|
|
39999
39963
|
const columnHit = intersections.find(
|
|
40000
|
-
(c) => _optionalChain([c, 'access',
|
|
39964
|
+
(c) => _optionalChain([c, 'access', _877 => _877.data, 'optionalAccess', _878 => _878.droppableContainer, 'optionalAccess', _879 => _879.data, 'optionalAccess', _880 => _880.current, 'optionalAccess', _881 => _881.type]) === "column"
|
|
40001
39965
|
);
|
|
40002
39966
|
if (columnHit) {
|
|
40003
|
-
const columnId = _optionalChain([columnHit, 'access',
|
|
39967
|
+
const columnId = _optionalChain([columnHit, 'access', _882 => _882.data, 'optionalAccess', _883 => _883.droppableContainer, 'optionalAccess', _884 => _884.data, 'optionalAccess', _885 => _885.current, 'optionalAccess', _886 => _886.columnId]);
|
|
40004
39968
|
const ticketsInColumn = args.droppableContainers.filter((c) => {
|
|
40005
39969
|
const d = c.data.current;
|
|
40006
|
-
return _optionalChain([d, 'optionalAccess',
|
|
39970
|
+
return _optionalChain([d, 'optionalAccess', _887 => _887.type]) === "ticket" && d.columnId === columnId;
|
|
40007
39971
|
});
|
|
40008
39972
|
if (ticketsInColumn.length > 0) {
|
|
40009
39973
|
const closest = _core.closestCorners.call(void 0, { ...args, droppableContainers: ticketsInColumn });
|
|
@@ -40028,20 +39992,20 @@ function Board({
|
|
|
40028
39992
|
const overId = String(over.id);
|
|
40029
39993
|
if (activeId === overId) return;
|
|
40030
39994
|
const overData = over.data.current;
|
|
40031
|
-
const fromColumnId = _optionalChain([locate, 'call',
|
|
40032
|
-
const toColumnId = _optionalChain([overData, 'optionalAccess',
|
|
39995
|
+
const fromColumnId = _optionalChain([locate, 'call', _888 => _888(items, activeId), 'optionalAccess', _889 => _889.columnId]);
|
|
39996
|
+
const toColumnId = _optionalChain([overData, 'optionalAccess', _890 => _890.columnId]);
|
|
40033
39997
|
if (!fromColumnId || !toColumnId || fromColumnId === toColumnId) return;
|
|
40034
39998
|
const origin = dragOriginRef.current;
|
|
40035
|
-
const isReturnToOrigin = _optionalChain([origin, 'optionalAccess',
|
|
39999
|
+
const isReturnToOrigin = _optionalChain([origin, 'optionalAccess', _891 => _891.fromColumnId]) === toColumnId;
|
|
40036
40000
|
const targetCol = items.find((c) => c.id === toColumnId);
|
|
40037
|
-
const blockedBySource = !isReturnToOrigin && !!_optionalChain([targetCol, 'optionalAccess',
|
|
40038
|
-
if (_optionalChain([targetCol, 'optionalAccess',
|
|
40001
|
+
const blockedBySource = !isReturnToOrigin && !!_optionalChain([targetCol, 'optionalAccess', _892 => _892.allowedFromColumns]) && !!origin && !targetCol.allowedFromColumns.includes(origin.fromColumnId);
|
|
40002
|
+
if (_optionalChain([targetCol, 'optionalAccess', _893 => _893.dropDisabled]) && !isReturnToOrigin || blockedBySource) return;
|
|
40039
40003
|
setItems((prev) => {
|
|
40040
40004
|
const fromIndex = findIndexInColumn(prev, fromColumnId, activeId);
|
|
40041
40005
|
const toCol = prev.find((c) => c.id === toColumnId);
|
|
40042
40006
|
if (fromIndex < 0 || !toCol) return prev;
|
|
40043
40007
|
let toIndex;
|
|
40044
|
-
if (_optionalChain([overData, 'optionalAccess',
|
|
40008
|
+
if (_optionalChain([overData, 'optionalAccess', _894 => _894.type]) === "column") {
|
|
40045
40009
|
toIndex = toCol.tickets.length;
|
|
40046
40010
|
} else {
|
|
40047
40011
|
const overIndex = toCol.tickets.findIndex((t) => t.id === overId);
|
|
@@ -40083,14 +40047,14 @@ function Board({
|
|
|
40083
40047
|
const toColumnId = located.columnId;
|
|
40084
40048
|
const isCrossColumn = origin.fromColumnId !== toColumnId;
|
|
40085
40049
|
const targetCol = items.find((c) => c.id === toColumnId);
|
|
40086
|
-
if (isCrossColumn && (_optionalChain([targetCol, 'optionalAccess',
|
|
40050
|
+
if (isCrossColumn && (_optionalChain([targetCol, 'optionalAccess', _895 => _895.dropDisabled]) || _optionalChain([targetCol, 'optionalAccess', _896 => _896.allowedFromColumns]) && !targetCol.allowedFromColumns.includes(origin.fromColumnId))) {
|
|
40087
40051
|
setItems(columns);
|
|
40088
40052
|
return;
|
|
40089
40053
|
}
|
|
40090
40054
|
let finalIndex = located.index;
|
|
40091
|
-
let finalColumnTickets = _nullishCoalesce(_optionalChain([items, 'access',
|
|
40055
|
+
let finalColumnTickets = _nullishCoalesce(_optionalChain([items, 'access', _897 => _897.find, 'call', _898 => _898((c) => c.id === toColumnId), 'optionalAccess', _899 => _899.tickets]), () => ( []));
|
|
40092
40056
|
const overData = over.data.current;
|
|
40093
|
-
if (_optionalChain([overData, 'optionalAccess',
|
|
40057
|
+
if (_optionalChain([overData, 'optionalAccess', _900 => _900.type]) === "ticket") {
|
|
40094
40058
|
const overIndex = findIndexInColumn(items, toColumnId, String(over.id));
|
|
40095
40059
|
if (overIndex >= 0 && overIndex !== located.index) {
|
|
40096
40060
|
finalColumnTickets = _sortable.arrayMove.call(void 0, finalColumnTickets, located.index, overIndex);
|
|
@@ -40110,8 +40074,8 @@ function Board({
|
|
|
40110
40074
|
ticketId: origin.ticketId,
|
|
40111
40075
|
fromColumnId: origin.fromColumnId,
|
|
40112
40076
|
toColumnId,
|
|
40113
|
-
afterTicketId: _nullishCoalesce(_optionalChain([finalColumnTickets, 'access',
|
|
40114
|
-
beforeTicketId: _nullishCoalesce(_optionalChain([finalColumnTickets, 'access',
|
|
40077
|
+
afterTicketId: _nullishCoalesce(_optionalChain([finalColumnTickets, 'access', _901 => _901[finalIndex - 1], 'optionalAccess', _902 => _902.id]), () => ( null)),
|
|
40078
|
+
beforeTicketId: _nullishCoalesce(_optionalChain([finalColumnTickets, 'access', _903 => _903[finalIndex + 1], 'optionalAccess', _904 => _904.id]), () => ( null))
|
|
40115
40079
|
});
|
|
40116
40080
|
};
|
|
40117
40081
|
const handleDragCancel = () => {
|
|
@@ -40140,8 +40104,8 @@ function Board({
|
|
|
40140
40104
|
children: items.map((column, i) => {
|
|
40141
40105
|
const prev = items[i - 1];
|
|
40142
40106
|
const next = items[i + 1];
|
|
40143
|
-
const joinLeft = !!(column.system && _optionalChain([prev, 'optionalAccess',
|
|
40144
|
-
const joinRight = !!(column.system && _optionalChain([next, 'optionalAccess',
|
|
40107
|
+
const joinLeft = !!(column.system && _optionalChain([prev, 'optionalAccess', _905 => _905.system]));
|
|
40108
|
+
const joinRight = !!(column.system && _optionalChain([next, 'optionalAccess', _906 => _906.system]));
|
|
40145
40109
|
const showGap = i > 0 && !joinLeft;
|
|
40146
40110
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React114.Fragment, { children: [
|
|
40147
40111
|
showGap && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: "w-[var(--spacing-system-mf)] shrink-0" }),
|
|
@@ -40194,7 +40158,7 @@ function Board({
|
|
|
40194
40158
|
{
|
|
40195
40159
|
ticket: activeTicket.ticket,
|
|
40196
40160
|
columnId: activeTicket.columnId,
|
|
40197
|
-
columnColor: _optionalChain([items, 'access',
|
|
40161
|
+
columnColor: _optionalChain([items, 'access', _907 => _907.find, 'call', _908 => _908((c) => c.id === activeTicket.columnId), 'optionalAccess', _909 => _909.color]),
|
|
40198
40162
|
isOverlay: true
|
|
40199
40163
|
}
|
|
40200
40164
|
) : null })
|
|
@@ -40210,7 +40174,7 @@ function locate(cols, ticketId) {
|
|
|
40210
40174
|
return null;
|
|
40211
40175
|
}
|
|
40212
40176
|
function findIndexInColumn(cols, columnId, ticketId) {
|
|
40213
|
-
return _nullishCoalesce(_optionalChain([cols, 'access',
|
|
40177
|
+
return _nullishCoalesce(_optionalChain([cols, 'access', _910 => _910.find, 'call', _911 => _911((c) => c.id === columnId), 'optionalAccess', _912 => _912.tickets, 'access', _913 => _913.findIndex, 'call', _914 => _914((t) => t.id === ticketId)]), () => ( -1));
|
|
40214
40178
|
}
|
|
40215
40179
|
|
|
40216
40180
|
// src/components/features/board/types.ts
|
|
@@ -40341,7 +40305,7 @@ function MingoAiButton({ source, icon, label = "Mingo AI", className, onClick, .
|
|
|
40341
40305
|
"aria-label": label,
|
|
40342
40306
|
onClick: (e) => {
|
|
40343
40307
|
window.dispatchEvent(new CustomEvent("ask-ai:open", { detail: { source: _nullishCoalesce(source, () => ( "")) } }));
|
|
40344
|
-
_optionalChain([onClick, 'optionalCall',
|
|
40308
|
+
_optionalChain([onClick, 'optionalCall', _915 => _915(e)]);
|
|
40345
40309
|
},
|
|
40346
40310
|
className: _chunkKI4EGKNVcjs.cn.call(void 0,
|
|
40347
40311
|
// Unified ODS top-navigation cell (Figma 2797-6808 desktop /
|
|
@@ -40400,7 +40364,7 @@ function MobileNavPanel({ isOpen, config }) {
|
|
|
40400
40364
|
if (item.onClick) {
|
|
40401
40365
|
item.onClick();
|
|
40402
40366
|
}
|
|
40403
|
-
_optionalChain([config, 'access',
|
|
40367
|
+
_optionalChain([config, 'access', _916 => _916.onClose, 'optionalCall', _917 => _917()]);
|
|
40404
40368
|
};
|
|
40405
40369
|
if (item.href) {
|
|
40406
40370
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -40517,7 +40481,7 @@ var ANON_DEFAULTS = {
|
|
|
40517
40481
|
function useResolveChatIdentity(enabled) {
|
|
40518
40482
|
const runtime = _chunk7OPWSWEJcjs.useRequiredChatRuntime.call(void 0, );
|
|
40519
40483
|
const url = runtime.endpoints.identityUrl;
|
|
40520
|
-
const proxyEmail = _nullishCoalesce(_optionalChain([_chunk5RJUHUCIcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess',
|
|
40484
|
+
const proxyEmail = _nullishCoalesce(_optionalChain([_chunk5RJUHUCIcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _918 => _918.email]), () => ( null));
|
|
40521
40485
|
const [data, setData] = _react.useState.call(void 0, ANON_DEFAULTS);
|
|
40522
40486
|
const [isLoading, setIsLoading] = _react.useState.call(void 0, enabled);
|
|
40523
40487
|
_react.useEffect.call(void 0, () => {
|
|
@@ -40593,9 +40557,9 @@ function TicketLiveProvider({ children }) {
|
|
|
40593
40557
|
const runtime = _chunk7OPWSWEJcjs.useChatRuntime.call(void 0, );
|
|
40594
40558
|
const identity = useChatIdentity();
|
|
40595
40559
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
40596
|
-
const streamUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess',
|
|
40597
|
-
const readUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess',
|
|
40598
|
-
const authed = identity.authTier !== "anon" && !!_optionalChain([identity, 'access',
|
|
40560
|
+
const streamUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _919 => _919.endpoints, 'access', _920 => _920.ticketStreamUrl]), () => ( TICKET_STREAM_ENDPOINT));
|
|
40561
|
+
const readUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _921 => _921.endpoints, 'access', _922 => _922.ticketReadUrl]), () => ( TICKET_READ_ENDPOINT));
|
|
40562
|
+
const authed = identity.authTier !== "anon" && !!_optionalChain([identity, 'access', _923 => _923.user, 'optionalAccess', _924 => _924.email]);
|
|
40599
40563
|
const [connected, setConnected] = React130.default.useState(false);
|
|
40600
40564
|
const [summary, setSummary] = React130.default.useState(EMPTY_SUMMARY);
|
|
40601
40565
|
const [openTicketIdState, setOpenTicketIdState] = React130.default.useState(null);
|
|
@@ -40662,7 +40626,7 @@ function TicketLiveProvider({ children }) {
|
|
|
40662
40626
|
handlersRef.current.onEvent = (eventName, data) => {
|
|
40663
40627
|
if (eventName === "ticket-summary") {
|
|
40664
40628
|
const frame = data;
|
|
40665
|
-
if (isSummaryData(_optionalChain([frame, 'optionalAccess',
|
|
40629
|
+
if (isSummaryData(_optionalChain([frame, 'optionalAccess', _925 => _925.data]))) {
|
|
40666
40630
|
setSummary({
|
|
40667
40631
|
totalUnread: frame.data.totalUnread,
|
|
40668
40632
|
tickets: _nullishCoalesce(frame.data.tickets, () => ( {})),
|
|
@@ -40677,13 +40641,13 @@ function TicketLiveProvider({ children }) {
|
|
|
40677
40641
|
}
|
|
40678
40642
|
if (eventName === "ticket-status") {
|
|
40679
40643
|
const frame = data;
|
|
40680
|
-
const ticketId = _optionalChain([frame, 'optionalAccess',
|
|
40644
|
+
const ticketId = _optionalChain([frame, 'optionalAccess', _926 => _926.data, 'optionalAccess', _927 => _927.ticket_external_id]);
|
|
40681
40645
|
scheduleInvalidation(ticketId);
|
|
40682
40646
|
return;
|
|
40683
40647
|
}
|
|
40684
40648
|
if (eventName === "ticket-message") {
|
|
40685
40649
|
const frame = data;
|
|
40686
|
-
const payload = _optionalChain([frame, 'optionalAccess',
|
|
40650
|
+
const payload = _optionalChain([frame, 'optionalAccess', _928 => _928.data]);
|
|
40687
40651
|
if (!isTicketMessageData(payload)) {
|
|
40688
40652
|
scheduleInvalidation();
|
|
40689
40653
|
return;
|
|
@@ -40714,7 +40678,7 @@ function TicketLiveProvider({ children }) {
|
|
|
40714
40678
|
const retryIfIdle = () => {
|
|
40715
40679
|
if (noStreamRef.current) {
|
|
40716
40680
|
noStreamRef.current = false;
|
|
40717
|
-
_optionalChain([subscriptionRef, 'access',
|
|
40681
|
+
_optionalChain([subscriptionRef, 'access', _929 => _929.current, 'optionalAccess', _930 => _930.reconnectNow, 'call', _931 => _931()]);
|
|
40718
40682
|
}
|
|
40719
40683
|
};
|
|
40720
40684
|
window.addEventListener("focus", retryIfIdle);
|
|
@@ -40724,7 +40688,7 @@ function TicketLiveProvider({ children }) {
|
|
|
40724
40688
|
clearTimeout(invalidateTimerRef.current);
|
|
40725
40689
|
invalidateTimerRef.current = null;
|
|
40726
40690
|
}
|
|
40727
|
-
_optionalChain([subscriptionRef, 'access',
|
|
40691
|
+
_optionalChain([subscriptionRef, 'access', _932 => _932.current, 'optionalAccess', _933 => _933.close, 'call', _934 => _934()]);
|
|
40728
40692
|
subscriptionRef.current = null;
|
|
40729
40693
|
setConnected(false);
|
|
40730
40694
|
setSummary(EMPTY_SUMMARY);
|
|
@@ -40740,7 +40704,7 @@ function TicketLiveProvider({ children }) {
|
|
|
40740
40704
|
if (!response.ok) return;
|
|
40741
40705
|
zeroUnread(ticketExternalId);
|
|
40742
40706
|
const body = await response.json().catch(() => null);
|
|
40743
|
-
if (isSummaryData(_optionalChain([body, 'optionalAccess',
|
|
40707
|
+
if (isSummaryData(_optionalChain([body, 'optionalAccess', _935 => _935.summary]))) {
|
|
40744
40708
|
setSummary({
|
|
40745
40709
|
totalUnread: body.summary.totalUnread,
|
|
40746
40710
|
tickets: _nullishCoalesce(body.summary.tickets, () => ( {})),
|
|
@@ -40758,7 +40722,7 @@ function TicketLiveProvider({ children }) {
|
|
|
40758
40722
|
}, []);
|
|
40759
40723
|
const notifyTicketCreated = React130.default.useCallback(() => {
|
|
40760
40724
|
noStreamRef.current = false;
|
|
40761
|
-
_optionalChain([subscriptionRef, 'access',
|
|
40725
|
+
_optionalChain([subscriptionRef, 'access', _936 => _936.current, 'optionalAccess', _937 => _937.reconnectNow, 'call', _938 => _938()]);
|
|
40762
40726
|
}, []);
|
|
40763
40727
|
const value = React130.default.useMemo(() => {
|
|
40764
40728
|
let unreadByTicket = summary.tickets;
|
|
@@ -41069,7 +41033,7 @@ function Header2({ config, platform }) {
|
|
|
41069
41033
|
// explicit font-medium beats small-legacy's font-bold via
|
|
41070
41034
|
// tailwind-merge instead of stylesheet order.
|
|
41071
41035
|
"text-h6 font-medium",
|
|
41072
|
-
index < (_nullishCoalesce(_optionalChain([item, 'access',
|
|
41036
|
+
index < (_nullishCoalesce(_optionalChain([item, 'access', _939 => _939.children, 'optionalAccess', _940 => _940.length]), () => ( 0))) - 1 && "mb-1",
|
|
41073
41037
|
"text-ods-text-primary",
|
|
41074
41038
|
// All dropdown items use primary text color
|
|
41075
41039
|
child.isActive && "bg-ods-bg-hover"
|
|
@@ -41141,7 +41105,7 @@ function Header2({ config, platform }) {
|
|
|
41141
41105
|
);
|
|
41142
41106
|
};
|
|
41143
41107
|
const hasNav = !!config.navigation && config.navigation.items.length > 0;
|
|
41144
|
-
const hasCta = !!_optionalChain([config, 'access',
|
|
41108
|
+
const hasCta = !!_optionalChain([config, 'access', _941 => _941.actions, 'optionalAccess', _942 => _942.right, 'optionalAccess', _943 => _943.length]) || !!(_optionalChain([config, 'access', _944 => _944.actions, 'optionalAccess', _945 => _945.persistent]) && config.actions.persistent.length > 0);
|
|
41145
41109
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
41146
41110
|
"div",
|
|
41147
41111
|
{
|
|
@@ -41158,19 +41122,19 @@ function Header2({ config, platform }) {
|
|
|
41158
41122
|
centerBreakpoint: "lg",
|
|
41159
41123
|
size: "big",
|
|
41160
41124
|
leading: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
41161
|
-
!!_optionalChain([config, 'access',
|
|
41162
|
-
_optionalChain([config, 'access',
|
|
41125
|
+
!!_optionalChain([config, 'access', _946 => _946.actions, 'optionalAccess', _947 => _947.left, 'optionalAccess', _948 => _948.length]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-full items-center border-r border-ods-border", children: config.actions.left }),
|
|
41126
|
+
_optionalChain([config, 'access', _949 => _949.mobile, 'optionalAccess', _950 => _950.enabled]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
41163
41127
|
HeaderButton,
|
|
41164
41128
|
{
|
|
41165
41129
|
className: "lg:hidden border-r border-ods-border",
|
|
41166
41130
|
onClick: () => {
|
|
41167
|
-
_optionalChain([config, 'access',
|
|
41131
|
+
_optionalChain([config, 'access', _951 => _951.mobile, 'optionalAccess', _952 => _952.onToggle, 'optionalCall', _953 => _953()]);
|
|
41168
41132
|
},
|
|
41169
|
-
isActive: _nullishCoalesce(_optionalChain([config, 'access',
|
|
41170
|
-
"aria-label": _optionalChain([config, 'access',
|
|
41171
|
-
"aria-expanded": _nullishCoalesce(_optionalChain([config, 'access',
|
|
41172
|
-
"aria-controls": _optionalChain([config, 'access',
|
|
41173
|
-
icon: _optionalChain([config, 'access',
|
|
41133
|
+
isActive: _nullishCoalesce(_optionalChain([config, 'access', _954 => _954.mobile, 'optionalAccess', _955 => _955.isOpen]), () => ( false)),
|
|
41134
|
+
"aria-label": _optionalChain([config, 'access', _956 => _956.mobile, 'optionalAccess', _957 => _957.isOpen]) ? "Close menu" : "Open menu",
|
|
41135
|
+
"aria-expanded": _nullishCoalesce(_optionalChain([config, 'access', _958 => _958.mobile, 'optionalAccess', _959 => _959.isOpen]), () => ( false)),
|
|
41136
|
+
"aria-controls": _optionalChain([config, 'access', _960 => _960.mobile, 'optionalAccess', _961 => _961.isOpen]) ? MOBILE_NAV_PANEL_ID : void 0,
|
|
41137
|
+
icon: _optionalChain([config, 'access', _962 => _962.mobile, 'optionalAccess', _963 => _963.isOpen]) ? _optionalChain([config, 'access', _964 => _964.mobile, 'optionalAccess', _965 => _965.closeIcon]) || /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.XmarkIcon, { className: "w-6 h-6" }) : _optionalChain([config, 'access', _966 => _966.mobile, 'optionalAccess', _967 => _967.menuIcon]) || /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.Menu01Icon, { className: "w-6 h-6" })
|
|
41174
41138
|
}
|
|
41175
41139
|
)
|
|
41176
41140
|
] }),
|
|
@@ -41183,23 +41147,23 @@ function Header2({ config, platform }) {
|
|
|
41183
41147
|
"flex items-center gap-2",
|
|
41184
41148
|
// True centering relative to the bar (not the leftover flex
|
|
41185
41149
|
// space) — same treatment the pre-unification header had.
|
|
41186
|
-
_optionalChain([config, 'access',
|
|
41150
|
+
_optionalChain([config, 'access', _968 => _968.navigation, 'optionalAccess', _969 => _969.position]) === "center" && "absolute left-1/2 -translate-x-1/2"
|
|
41187
41151
|
),
|
|
41188
41152
|
role: "navigation",
|
|
41189
41153
|
"aria-label": "Main navigation",
|
|
41190
|
-
children: _optionalChain([config, 'access',
|
|
41154
|
+
children: _optionalChain([config, 'access', _970 => _970.navigation, 'optionalAccess', _971 => _971.items, 'access', _972 => _972.map, 'call', _973 => _973(renderNavigationItem)])
|
|
41191
41155
|
}
|
|
41192
41156
|
) : void 0,
|
|
41193
41157
|
centerClassName: _chunkKI4EGKNVcjs.cn.call(void 0,
|
|
41194
|
-
_optionalChain([config, 'access',
|
|
41195
|
-
_optionalChain([config, 'access',
|
|
41158
|
+
_optionalChain([config, 'access', _974 => _974.navigation, 'optionalAccess', _975 => _975.position]) === "left" && "justify-start",
|
|
41159
|
+
_optionalChain([config, 'access', _976 => _976.navigation, 'optionalAccess', _977 => _977.position]) === "right" && "justify-end pr-[var(--spacing-system-m)]"
|
|
41196
41160
|
),
|
|
41197
41161
|
cta: hasCta ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
41198
|
-
!!_optionalChain([config, 'access',
|
|
41199
|
-
_optionalChain([config, 'access',
|
|
41162
|
+
!!_optionalChain([config, 'access', _978 => _978.actions, 'optionalAccess', _979 => _979.right, 'optionalAccess', _980 => _980.length]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden lg:flex items-center gap-3", children: config.actions.right }),
|
|
41163
|
+
_optionalChain([config, 'access', _981 => _981.actions, 'optionalAccess', _982 => _982.persistent]) && config.actions.persistent.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center", children: config.actions.persistent })
|
|
41200
41164
|
] }) : void 0,
|
|
41201
41165
|
ctaClassName: "gap-3",
|
|
41202
|
-
sideActions: config.tickets || _optionalChain([config, 'access',
|
|
41166
|
+
sideActions: config.tickets || _optionalChain([config, 'access', _983 => _983.mingo, 'optionalAccess', _984 => _984.enabled]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
41203
41167
|
config.tickets && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
41204
41168
|
TicketAlertsButton,
|
|
41205
41169
|
{
|
|
@@ -41208,7 +41172,7 @@ function Header2({ config, platform }) {
|
|
|
41208
41172
|
className: "border-l border-ods-border"
|
|
41209
41173
|
}
|
|
41210
41174
|
),
|
|
41211
|
-
_optionalChain([config, 'access',
|
|
41175
|
+
_optionalChain([config, 'access', _985 => _985.mingo, 'optionalAccess', _986 => _986.enabled]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
41212
41176
|
MingoAiButton,
|
|
41213
41177
|
{
|
|
41214
41178
|
source: config.mingo.source,
|
|
@@ -41230,17 +41194,17 @@ function Header2({ config, platform }) {
|
|
|
41230
41194
|
// src/components/navigation/header-skeleton.tsx
|
|
41231
41195
|
|
|
41232
41196
|
function HeaderSkeleton({ config }) {
|
|
41233
|
-
const showNavigation = _optionalChain([config, 'optionalAccess',
|
|
41234
|
-
const showActions = _optionalChain([config, 'optionalAccess',
|
|
41235
|
-
const showMobileMenu = _optionalChain([config, 'optionalAccess',
|
|
41236
|
-
const showLeftActions = !!_optionalChain([config, 'optionalAccess',
|
|
41197
|
+
const showNavigation = _optionalChain([config, 'optionalAccess', _987 => _987.navigation]) && config.navigation.items.length > 0;
|
|
41198
|
+
const showActions = _optionalChain([config, 'optionalAccess', _988 => _988.actions, 'optionalAccess', _989 => _989.right]) && config.actions.right.length > 0;
|
|
41199
|
+
const showMobileMenu = _optionalChain([config, 'optionalAccess', _990 => _990.mobile, 'optionalAccess', _991 => _991.enabled]);
|
|
41200
|
+
const showLeftActions = !!_optionalChain([config, 'optionalAccess', _992 => _992.actions, 'optionalAccess', _993 => _993.left]);
|
|
41237
41201
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "sticky top-0 z-[50] w-full", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
41238
41202
|
"header",
|
|
41239
41203
|
{
|
|
41240
41204
|
className: _chunkKI4EGKNVcjs.cn.call(void 0,
|
|
41241
41205
|
"flex h-[72px] w-full items-center border-b border-t border-ods-border md:border-t-0",
|
|
41242
|
-
_optionalChain([config, 'optionalAccess',
|
|
41243
|
-
_optionalChain([config, 'optionalAccess',
|
|
41206
|
+
_optionalChain([config, 'optionalAccess', _994 => _994.backgroundColor]) || "bg-ods-card",
|
|
41207
|
+
_optionalChain([config, 'optionalAccess', _995 => _995.className])
|
|
41244
41208
|
),
|
|
41245
41209
|
children: [
|
|
41246
41210
|
showLeftActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-full w-[72px] items-center justify-center border-r border-ods-border", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-6 w-6 animate-pulse rounded bg-ods-border" }) }),
|
|
@@ -41255,7 +41219,7 @@ function HeaderSkeleton({ config }) {
|
|
|
41255
41219
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-8 w-24 animate-pulse rounded bg-ods-border" })
|
|
41256
41220
|
] }) }),
|
|
41257
41221
|
showActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden h-full items-center px-[var(--spacing-system-m)] lg:flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-8 w-24 animate-pulse rounded bg-ods-border" }) }),
|
|
41258
|
-
_optionalChain([config, 'optionalAccess',
|
|
41222
|
+
_optionalChain([config, 'optionalAccess', _996 => _996.mingo, 'optionalAccess', _997 => _997.enabled]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-full items-center border-l border-ods-border px-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-8 w-8 animate-pulse rounded bg-ods-border md:w-28" }) })
|
|
41259
41223
|
]
|
|
41260
41224
|
}
|
|
41261
41225
|
) });
|
|
@@ -41362,7 +41326,7 @@ function SlidingSidebar({ config }) {
|
|
|
41362
41326
|
variant: "transparent",
|
|
41363
41327
|
size: "default",
|
|
41364
41328
|
onClick: () => {
|
|
41365
|
-
_optionalChain([item, 'access',
|
|
41329
|
+
_optionalChain([item, 'access', _998 => _998.onClick, 'optionalCall', _999 => _999()]);
|
|
41366
41330
|
config.onClose();
|
|
41367
41331
|
},
|
|
41368
41332
|
leftIcon: item.icon,
|
|
@@ -41385,7 +41349,7 @@ function SlidingSidebar({ config }) {
|
|
|
41385
41349
|
variant: "transparent",
|
|
41386
41350
|
size: "default",
|
|
41387
41351
|
onClick: () => {
|
|
41388
|
-
_optionalChain([item, 'access',
|
|
41352
|
+
_optionalChain([item, 'access', _1000 => _1000.onClick, 'optionalCall', _1001 => _1001()]);
|
|
41389
41353
|
config.onClose();
|
|
41390
41354
|
},
|
|
41391
41355
|
leftIcon: item.icon,
|
|
@@ -41517,7 +41481,7 @@ function StickySectionNav({
|
|
|
41517
41481
|
] });
|
|
41518
41482
|
}
|
|
41519
41483
|
function useSectionNavigation(sections, options) {
|
|
41520
|
-
const [activeSection, setActiveSection] = _react.useState.call(void 0, _optionalChain([sections, 'access',
|
|
41484
|
+
const [activeSection, setActiveSection] = _react.useState.call(void 0, _optionalChain([sections, 'access', _1002 => _1002[0], 'optionalAccess', _1003 => _1003.id]) || "");
|
|
41521
41485
|
const isScrollingFromClick = _react.useRef.call(void 0, false);
|
|
41522
41486
|
const { offset: offset2 = 100 } = options || {};
|
|
41523
41487
|
const handleSectionClick = _react.useCallback.call(void 0, (sectionId) => {
|
|
@@ -41541,7 +41505,7 @@ function useSectionNavigation(sections, options) {
|
|
|
41541
41505
|
const handleScroll = () => {
|
|
41542
41506
|
if (isScrollingFromClick.current) return;
|
|
41543
41507
|
const scrollPosition = window.scrollY + offset2 + 50;
|
|
41544
|
-
let currentSection = _optionalChain([sections, 'access',
|
|
41508
|
+
let currentSection = _optionalChain([sections, 'access', _1004 => _1004[0], 'optionalAccess', _1005 => _1005.id]) || "";
|
|
41545
41509
|
for (let i = sections.length - 1; i >= 0; i--) {
|
|
41546
41510
|
const element = document.getElementById(sections[i].id);
|
|
41547
41511
|
if (element && scrollPosition >= element.offsetTop) {
|
|
@@ -41757,7 +41721,7 @@ function NavigationSidebar({ config, disabled = false }) {
|
|
|
41757
41721
|
} else {
|
|
41758
41722
|
setDesktopMinimized((prev) => !prev);
|
|
41759
41723
|
}
|
|
41760
|
-
_optionalChain([config, 'access',
|
|
41724
|
+
_optionalChain([config, 'access', _1006 => _1006.onToggleMinimized, 'optionalCall', _1007 => _1007()]);
|
|
41761
41725
|
}, [isTablet, setDesktopMinimized, config]);
|
|
41762
41726
|
const closeOverlay = _react.useCallback.call(void 0, () => {
|
|
41763
41727
|
setTabletMinimized(true);
|
|
@@ -41772,14 +41736,14 @@ function NavigationSidebar({ config, disabled = false }) {
|
|
|
41772
41736
|
}, [isOverlayOpen, closeOverlay]);
|
|
41773
41737
|
const [pendingItemId, setPendingItemId] = _react.useState.call(void 0, null);
|
|
41774
41738
|
const committedActiveId = _react.useMemo.call(void 0,
|
|
41775
|
-
() => _nullishCoalesce(_optionalChain([config, 'access',
|
|
41739
|
+
() => _nullishCoalesce(_optionalChain([config, 'access', _1008 => _1008.items, 'access', _1009 => _1009.find, 'call', _1010 => _1010((item) => item.isActive), 'optionalAccess', _1011 => _1011.id]), () => ( null)),
|
|
41776
41740
|
[config.items]
|
|
41777
41741
|
);
|
|
41778
41742
|
_react.useEffect.call(void 0, () => {
|
|
41779
41743
|
setPendingItemId(null);
|
|
41780
41744
|
}, [committedActiveId]);
|
|
41781
41745
|
const handleItemClick = _react.useCallback.call(void 0, (item, event) => {
|
|
41782
|
-
_optionalChain([event, 'optionalAccess',
|
|
41746
|
+
_optionalChain([event, 'optionalAccess', _1012 => _1012.stopPropagation, 'call', _1013 => _1013()]);
|
|
41783
41747
|
if (item.onClick) {
|
|
41784
41748
|
item.onClick();
|
|
41785
41749
|
if (isTablet) setTabletMinimized(true);
|
|
@@ -41788,7 +41752,7 @@ function NavigationSidebar({ config, disabled = false }) {
|
|
|
41788
41752
|
if (!item.path) return;
|
|
41789
41753
|
if (isModifiedClick(event)) return;
|
|
41790
41754
|
if (config.onNavigate) {
|
|
41791
|
-
_optionalChain([event, 'optionalAccess',
|
|
41755
|
+
_optionalChain([event, 'optionalAccess', _1014 => _1014.preventDefault, 'call', _1015 => _1015()]);
|
|
41792
41756
|
if (item.id !== committedActiveId) setPendingItemId(item.id);
|
|
41793
41757
|
config.onNavigate(item.path);
|
|
41794
41758
|
}
|
|
@@ -41800,13 +41764,13 @@ function NavigationSidebar({ config, disabled = false }) {
|
|
|
41800
41764
|
}), [config.items]);
|
|
41801
41765
|
const loadingRows = _react.useMemo.call(void 0, () => {
|
|
41802
41766
|
if (!config.loading) return null;
|
|
41803
|
-
const primary = _nullishCoalesce(_optionalChain([config, 'access',
|
|
41804
|
-
const secondary = _nullishCoalesce(_optionalChain([config, 'access',
|
|
41767
|
+
const primary = _nullishCoalesce(_optionalChain([config, 'access', _1016 => _1016.loadingRows, 'optionalAccess', _1017 => _1017.primary]), () => ( 7));
|
|
41768
|
+
const secondary = _nullishCoalesce(_optionalChain([config, 'access', _1018 => _1018.loadingRows, 'optionalAccess', _1019 => _1019.secondary]), () => ( 2));
|
|
41805
41769
|
return {
|
|
41806
41770
|
primary: Array.from({ length: Math.max(0, primary) }, (_, i) => `primary-${i}`),
|
|
41807
41771
|
secondary: Array.from({ length: Math.max(0, secondary) }, (_, i) => `secondary-${i}`)
|
|
41808
41772
|
};
|
|
41809
|
-
}, [config.loading, _optionalChain([config, 'access',
|
|
41773
|
+
}, [config.loading, _optionalChain([config, 'access', _1020 => _1020.loadingRows, 'optionalAccess', _1021 => _1021.primary]), _optionalChain([config, 'access', _1022 => _1022.loadingRows, 'optionalAccess', _1023 => _1023.secondary])]);
|
|
41810
41774
|
const sidebarWidth = _react.useMemo.call(void 0,
|
|
41811
41775
|
() => minimized ? `${MINIMIZED_WIDTH}px` : `${EXPANDED_WIDTH}px`,
|
|
41812
41776
|
[minimized]
|
|
@@ -41857,7 +41821,7 @@ function NavigationSidebar({ config, disabled = false }) {
|
|
|
41857
41821
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationSidebarHeader, { minimized }),
|
|
41858
41822
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 flex flex-col justify-between py-4 overflow-y-auto", children: [
|
|
41859
41823
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
41860
|
-
_optionalChain([config, 'access',
|
|
41824
|
+
_optionalChain([config, 'access', _1024 => _1024.topSlot, 'optionalCall', _1025 => _1025({ minimized })]),
|
|
41861
41825
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { className: "flex flex-col", "aria-label": "Primary navigation", "aria-busy": !!loadingRows, children: loadingRows ? loadingRows.primary.map((key) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationSidebarItemSkeleton, { showLabel }, key)) : primaryItems.map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
41862
41826
|
NavigationSidebarItemButton,
|
|
41863
41827
|
{
|
|
@@ -41925,11 +41889,11 @@ function HeaderGlobalSearch({
|
|
|
41925
41889
|
};
|
|
41926
41890
|
const handleSubmit = (e) => {
|
|
41927
41891
|
e.preventDefault();
|
|
41928
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
41892
|
+
_optionalChain([onSubmit, 'optionalCall', _1026 => _1026(currentValue)]);
|
|
41929
41893
|
};
|
|
41930
41894
|
const handleKeyDown = (e) => {
|
|
41931
41895
|
if (e.key === "Enter") {
|
|
41932
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
41896
|
+
_optionalChain([onSubmit, 'optionalCall', _1027 => _1027(currentValue)]);
|
|
41933
41897
|
}
|
|
41934
41898
|
};
|
|
41935
41899
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -42032,8 +41996,8 @@ function HeaderOrganizationFilter({
|
|
|
42032
41996
|
className
|
|
42033
41997
|
}) {
|
|
42034
41998
|
const selectedOrg = organizations.find((o) => o.id === selectedOrgId);
|
|
42035
|
-
const displayName = _optionalChain([selectedOrg, 'optionalAccess',
|
|
42036
|
-
const deviceCount = _nullishCoalesce(_optionalChain([selectedOrg, 'optionalAccess',
|
|
41999
|
+
const displayName = _optionalChain([selectedOrg, 'optionalAccess', _1028 => _1028.name]) || "All Organizations";
|
|
42000
|
+
const deviceCount = _nullishCoalesce(_optionalChain([selectedOrg, 'optionalAccess', _1029 => _1029.deviceCount]), () => ( totalDeviceCount));
|
|
42037
42001
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3NECEXDFcjs.DropdownMenu, { children: [
|
|
42038
42002
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NECEXDFcjs.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
42039
42003
|
"button",
|
|
@@ -42059,11 +42023,11 @@ function HeaderOrganizationFilter({
|
|
|
42059
42023
|
}
|
|
42060
42024
|
) }),
|
|
42061
42025
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3NECEXDFcjs.DropdownMenuContent, { align: "end", className: "min-w-[240px]", children: [
|
|
42062
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NECEXDFcjs.DropdownMenuItem, { onClick: () => _optionalChain([onOrgChange, 'optionalCall',
|
|
42026
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NECEXDFcjs.DropdownMenuItem, { onClick: () => _optionalChain([onOrgChange, 'optionalCall', _1030 => _1030("")]), children: "All Organizations" }),
|
|
42063
42027
|
organizations.map((org) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42064
42028
|
_chunk3NECEXDFcjs.DropdownMenuItem,
|
|
42065
42029
|
{
|
|
42066
|
-
onClick: () => _optionalChain([onOrgChange, 'optionalCall',
|
|
42030
|
+
onClick: () => _optionalChain([onOrgChange, 'optionalCall', _1031 => _1031(org.id)]),
|
|
42067
42031
|
children: org.name
|
|
42068
42032
|
},
|
|
42069
42033
|
org.id
|
|
@@ -42284,9 +42248,9 @@ var AppHeader = React130.default.memo(function AppHeader2({
|
|
|
42284
42248
|
});
|
|
42285
42249
|
function NotificationsHeaderButton({ fallbackUnreadCount, disabled, dimmedClass }) {
|
|
42286
42250
|
const ctx = useOptionalNotifications();
|
|
42287
|
-
const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
42288
|
-
const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
42289
|
-
const onClick = _optionalChain([ctx, 'optionalAccess',
|
|
42251
|
+
const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _1032 => _1032.unreadCount]), () => ( fallbackUnreadCount))) > 0;
|
|
42252
|
+
const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _1033 => _1033.isOpen]), () => ( false));
|
|
42253
|
+
const onClick = _optionalChain([ctx, 'optionalAccess', _1034 => _1034.toggle]);
|
|
42290
42254
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42291
42255
|
HeaderButton,
|
|
42292
42256
|
{
|
|
@@ -42380,7 +42344,7 @@ var MobileBurgerMenu = React130.default.memo(function MobileBurgerMenu2({
|
|
|
42380
42344
|
if (item.onClick) {
|
|
42381
42345
|
item.onClick();
|
|
42382
42346
|
} else if (item.path) {
|
|
42383
|
-
_optionalChain([config, 'access',
|
|
42347
|
+
_optionalChain([config, 'access', _1035 => _1035.onNavigate, 'optionalCall', _1036 => _1036(item.path)]);
|
|
42384
42348
|
}
|
|
42385
42349
|
onClose();
|
|
42386
42350
|
}, [config, onClose]);
|
|
@@ -42510,7 +42474,7 @@ var MobileBurgerMenu = React130.default.memo(function MobileBurgerMenu2({
|
|
|
42510
42474
|
]
|
|
42511
42475
|
}
|
|
42512
42476
|
),
|
|
42513
|
-
_optionalChain([config, 'access',
|
|
42477
|
+
_optionalChain([config, 'access', _1037 => _1037.topSlot, 'optionalCall', _1038 => _1038({ minimized: false })]),
|
|
42514
42478
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { "aria-label": "Primary navigation", children: renderNavigationGrid(primaryItems) }),
|
|
42515
42479
|
secondaryItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { "aria-label": "Secondary navigation", className: "flex flex-col gap-3", children: secondaryItems.map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, React130.default.Fragment, { children: renderNavigationItem(item, false) }, item.id)) }),
|
|
42516
42480
|
onLogout && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -42978,7 +42942,7 @@ var ShellTypeBadge = ({
|
|
|
42978
42942
|
className,
|
|
42979
42943
|
iconClassName
|
|
42980
42944
|
}) => {
|
|
42981
|
-
const normalizedType = _optionalChain([shellType, 'optionalAccess',
|
|
42945
|
+
const normalizedType = _optionalChain([shellType, 'optionalAccess', _1039 => _1039.toUpperCase, 'call', _1040 => _1040()]);
|
|
42982
42946
|
const label = getShellLabel(normalizedType);
|
|
42983
42947
|
const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
|
|
42984
42948
|
const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
|
|
@@ -43365,12 +43329,12 @@ function OnboardingWalkthrough({
|
|
|
43365
43329
|
}
|
|
43366
43330
|
}, [state.completedSteps, markComplete]);
|
|
43367
43331
|
const handleStepSkip = (step) => {
|
|
43368
|
-
_optionalChain([step, 'access',
|
|
43332
|
+
_optionalChain([step, 'access', _1041 => _1041.onSkip, 'optionalCall', _1042 => _1042()]);
|
|
43369
43333
|
markSkipped(step.id);
|
|
43370
43334
|
};
|
|
43371
43335
|
const handleDismiss = () => {
|
|
43372
43336
|
dismissOnboarding();
|
|
43373
|
-
_optionalChain([onDismiss, 'optionalCall',
|
|
43337
|
+
_optionalChain([onDismiss, 'optionalCall', _1043 => _1043()]);
|
|
43374
43338
|
};
|
|
43375
43339
|
if (state.dismissed) {
|
|
43376
43340
|
return null;
|
|
@@ -43500,7 +43464,7 @@ var LogCard = ({ log, isLast, showConnector, onClick }) => {
|
|
|
43500
43464
|
onKeyDown: (e) => {
|
|
43501
43465
|
if (e.key === "Enter" || e.key === " ") {
|
|
43502
43466
|
e.preventDefault();
|
|
43503
|
-
_optionalChain([onClick, 'optionalCall',
|
|
43467
|
+
_optionalChain([onClick, 'optionalCall', _1044 => _1044()]);
|
|
43504
43468
|
}
|
|
43505
43469
|
},
|
|
43506
43470
|
children: [
|
|
@@ -43601,7 +43565,7 @@ var LogsList = React127.forwardRef(({
|
|
|
43601
43565
|
log,
|
|
43602
43566
|
isLast: index === logs.length - 1,
|
|
43603
43567
|
showConnector,
|
|
43604
|
-
onClick: () => _optionalChain([onLogClick, 'optionalCall',
|
|
43568
|
+
onClick: () => _optionalChain([onLogClick, 'optionalCall', _1045 => _1045(log)])
|
|
43605
43569
|
},
|
|
43606
43570
|
log.id
|
|
43607
43571
|
))
|
|
@@ -43713,7 +43677,7 @@ var Slider = React129.forwardRef(
|
|
|
43713
43677
|
({ className, value = [0], onValueChange, min = 0, max = 100, step = 1, ...props }, ref) => {
|
|
43714
43678
|
const handleChange = (e) => {
|
|
43715
43679
|
const newValue = [Number(e.target.value)];
|
|
43716
|
-
_optionalChain([onValueChange, 'optionalCall',
|
|
43680
|
+
_optionalChain([onValueChange, 'optionalCall', _1046 => _1046(newValue)]);
|
|
43717
43681
|
};
|
|
43718
43682
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43719
43683
|
"input",
|
|
@@ -44100,7 +44064,7 @@ function CursorPaginationSimple({
|
|
|
44100
44064
|
{
|
|
44101
44065
|
variant: "transparent",
|
|
44102
44066
|
size: "icon",
|
|
44103
|
-
onClick: () => _optionalChain([onPrevious, 'optionalCall',
|
|
44067
|
+
onClick: () => _optionalChain([onPrevious, 'optionalCall', _1047 => _1047("")]),
|
|
44104
44068
|
disabled: !hasPreviousPage || loading,
|
|
44105
44069
|
className: "h-8 w-8",
|
|
44106
44070
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" }),
|
|
@@ -44112,7 +44076,7 @@ function CursorPaginationSimple({
|
|
|
44112
44076
|
{
|
|
44113
44077
|
variant: "transparent",
|
|
44114
44078
|
size: "icon",
|
|
44115
|
-
onClick: () => _optionalChain([onNext, 'optionalCall',
|
|
44079
|
+
onClick: () => _optionalChain([onNext, 'optionalCall', _1048 => _1048("")]),
|
|
44116
44080
|
disabled: !hasNextPage || loading,
|
|
44117
44081
|
className: "h-8 w-8",
|
|
44118
44082
|
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" }),
|
|
@@ -44132,8 +44096,8 @@ function TableEmptyState({ message: message2, icon, action, className }) {
|
|
|
44132
44096
|
icon: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWZW7C7TFcjs.SearchIcon, {}))),
|
|
44133
44097
|
title: _nullishCoalesce(message2, () => ( "No results found")),
|
|
44134
44098
|
description: message2 == null ? "Try adjusting your search or filters" : void 0,
|
|
44135
|
-
buttonLabel: _optionalChain([action, 'optionalAccess',
|
|
44136
|
-
onButtonClick: _optionalChain([action, 'optionalAccess',
|
|
44099
|
+
buttonLabel: _optionalChain([action, 'optionalAccess', _1049 => _1049.label]),
|
|
44100
|
+
onButtonClick: _optionalChain([action, 'optionalAccess', _1050 => _1050.onClick]),
|
|
44137
44101
|
className: _chunkKI4EGKNVcjs.cn.call(void 0, "py-[var(--spacing-system-xxl)]", className)
|
|
44138
44102
|
}
|
|
44139
44103
|
);
|
|
@@ -44154,7 +44118,7 @@ function TableColumnFilterDropdown({
|
|
|
44154
44118
|
placement = "bottom-start",
|
|
44155
44119
|
dropdownClassName = "min-w-[240px]"
|
|
44156
44120
|
}) {
|
|
44157
|
-
const activeCount = _optionalChain([filters, 'optionalAccess',
|
|
44121
|
+
const activeCount = _optionalChain([filters, 'optionalAccess', _1051 => _1051[columnKey], 'optionalAccess', _1052 => _1052.length]) || 0;
|
|
44158
44122
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44159
44123
|
FiltersDropdown,
|
|
44160
44124
|
{
|
|
@@ -44197,7 +44161,7 @@ function TableColumnFilterDropdown({
|
|
|
44197
44161
|
delete newFilters[columnKey];
|
|
44198
44162
|
onFilterChange(newFilters);
|
|
44199
44163
|
},
|
|
44200
|
-
currentFilters: { [columnKey]: _optionalChain([filters, 'optionalAccess',
|
|
44164
|
+
currentFilters: { [columnKey]: _optionalChain([filters, 'optionalAccess', _1053 => _1053[columnKey]]) || [] },
|
|
44201
44165
|
placement,
|
|
44202
44166
|
dropdownClassName
|
|
44203
44167
|
}
|
|
@@ -44407,7 +44371,7 @@ function TableCardSkeleton({
|
|
|
44407
44371
|
className,
|
|
44408
44372
|
rowClassName
|
|
44409
44373
|
}) {
|
|
44410
|
-
const primaryKey = _optionalChain([(_nullishCoalesce(columns.find((c) => /flex-(1|\[)/.test(c.width || "")), () => ( columns[0]))), 'optionalAccess',
|
|
44374
|
+
const primaryKey = _optionalChain([(_nullishCoalesce(columns.find((c) => /flex-(1|\[)/.test(c.width || "")), () => ( columns[0]))), 'optionalAccess', _1054 => _1054.key]);
|
|
44411
44375
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
44412
44376
|
"div",
|
|
44413
44377
|
{
|
|
@@ -44500,7 +44464,7 @@ function TableRow({
|
|
|
44500
44464
|
const keys = column.key.split(".");
|
|
44501
44465
|
let value = item;
|
|
44502
44466
|
for (const key of keys) {
|
|
44503
|
-
value = _optionalChain([value, 'optionalAccess',
|
|
44467
|
+
value = _optionalChain([value, 'optionalAccess', _1055 => _1055[key]]);
|
|
44504
44468
|
}
|
|
44505
44469
|
if (value === null || value === void 0) {
|
|
44506
44470
|
return "-";
|
|
@@ -44589,7 +44553,7 @@ function useTableMotion(enabled) {
|
|
|
44589
44553
|
// src/components/ui/table/table.tsx
|
|
44590
44554
|
|
|
44591
44555
|
function injectSyntheticColumns(columns, rowActions, renderRowActions, rowHref) {
|
|
44592
|
-
const hasActions = Boolean(_optionalChain([rowActions, 'optionalAccess',
|
|
44556
|
+
const hasActions = Boolean(_optionalChain([rowActions, 'optionalAccess', _1056 => _1056.length])) || Boolean(renderRowActions);
|
|
44593
44557
|
const result = [...columns];
|
|
44594
44558
|
if (hasActions) {
|
|
44595
44559
|
const actionsColumn = {
|
|
@@ -44685,7 +44649,7 @@ function Table({
|
|
|
44685
44649
|
return rowKey(item);
|
|
44686
44650
|
}
|
|
44687
44651
|
const key = item[rowKey];
|
|
44688
|
-
return _optionalChain([key, 'optionalAccess',
|
|
44652
|
+
return _optionalChain([key, 'optionalAccess', _1057 => _1057.toString, 'call', _1058 => _1058()]) || index.toString();
|
|
44689
44653
|
};
|
|
44690
44654
|
const getRowClassName = (item, index) => {
|
|
44691
44655
|
if (typeof rowClassName === "function") {
|
|
@@ -44719,23 +44683,23 @@ function Table({
|
|
|
44719
44683
|
const allSelected = selectedRows.length > 0 && selectedRows.length === data.length;
|
|
44720
44684
|
const someSelected = selectedRows.length > 0 && selectedRows.length < data.length;
|
|
44721
44685
|
const sentinelRef = _react.useRef.call(void 0, null);
|
|
44722
|
-
const onLoadMoreRef = _react.useRef.call(void 0, _optionalChain([infiniteScroll, 'optionalAccess',
|
|
44723
|
-
onLoadMoreRef.current = _optionalChain([infiniteScroll, 'optionalAccess',
|
|
44686
|
+
const onLoadMoreRef = _react.useRef.call(void 0, _optionalChain([infiniteScroll, 'optionalAccess', _1059 => _1059.onLoadMore]));
|
|
44687
|
+
onLoadMoreRef.current = _optionalChain([infiniteScroll, 'optionalAccess', _1060 => _1060.onLoadMore]);
|
|
44724
44688
|
_react.useEffect.call(void 0, () => {
|
|
44725
|
-
if (!_optionalChain([infiniteScroll, 'optionalAccess',
|
|
44689
|
+
if (!_optionalChain([infiniteScroll, 'optionalAccess', _1061 => _1061.hasNextPage]) || infiniteScroll.isFetchingNextPage) return;
|
|
44726
44690
|
const sentinel = sentinelRef.current;
|
|
44727
44691
|
if (!sentinel) return;
|
|
44728
44692
|
const observer = new IntersectionObserver(
|
|
44729
44693
|
(entries) => {
|
|
44730
|
-
if (_optionalChain([entries, 'access',
|
|
44731
|
-
_optionalChain([onLoadMoreRef, 'access',
|
|
44694
|
+
if (_optionalChain([entries, 'access', _1062 => _1062[0], 'optionalAccess', _1063 => _1063.isIntersecting])) {
|
|
44695
|
+
_optionalChain([onLoadMoreRef, 'access', _1064 => _1064.current, 'optionalCall', _1065 => _1065()]);
|
|
44732
44696
|
}
|
|
44733
44697
|
},
|
|
44734
44698
|
{ rootMargin: "200px" }
|
|
44735
44699
|
);
|
|
44736
44700
|
observer.observe(sentinel);
|
|
44737
44701
|
return () => observer.disconnect();
|
|
44738
|
-
}, [_optionalChain([infiniteScroll, 'optionalAccess',
|
|
44702
|
+
}, [_optionalChain([infiniteScroll, 'optionalAccess', _1066 => _1066.hasNextPage]), _optionalChain([infiniteScroll, 'optionalAccess', _1067 => _1067.isFetchingNextPage])]);
|
|
44739
44703
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkKI4EGKNVcjs.cn.call(void 0, "flex flex-col gap-1 w-full", containerClassName), children: [
|
|
44740
44704
|
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: [
|
|
44741
44705
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: [
|
|
@@ -44805,14 +44769,14 @@ function Table({
|
|
|
44805
44769
|
selected: isRowSelected(item),
|
|
44806
44770
|
onSelect: handleSelectRow,
|
|
44807
44771
|
animateRowReorder,
|
|
44808
|
-
motionDiv: _optionalChain([tableMotion, 'optionalAccess',
|
|
44772
|
+
motionDiv: _optionalChain([tableMotion, 'optionalAccess', _1068 => _1068.motionDiv])
|
|
44809
44773
|
},
|
|
44810
44774
|
getRowKey(item, index)
|
|
44811
44775
|
));
|
|
44812
|
-
const LayoutGroup = _optionalChain([tableMotion, 'optionalAccess',
|
|
44776
|
+
const LayoutGroup = _optionalChain([tableMotion, 'optionalAccess', _1069 => _1069.LayoutGroup]);
|
|
44813
44777
|
return animateRowReorder && LayoutGroup ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LayoutGroup, { children: rows }) : rows;
|
|
44814
44778
|
})(),
|
|
44815
|
-
_optionalChain([infiniteScroll, 'optionalAccess',
|
|
44779
|
+
_optionalChain([infiniteScroll, 'optionalAccess', _1070 => _1070.isFetchingNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44816
44780
|
TableCardSkeleton,
|
|
44817
44781
|
{
|
|
44818
44782
|
columns,
|
|
@@ -44821,7 +44785,7 @@ function Table({
|
|
|
44821
44785
|
hasChevron: Boolean(rowHref)
|
|
44822
44786
|
}
|
|
44823
44787
|
),
|
|
44824
|
-
_optionalChain([infiniteScroll, 'optionalAccess',
|
|
44788
|
+
_optionalChain([infiniteScroll, 'optionalAccess', _1071 => _1071.hasNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: sentinelRef, className: "h-1", "aria-hidden": "true" }),
|
|
44825
44789
|
!infiniteScroll && Array.from({ length: Math.max(0, skeletonRows - data.length) }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
44826
44790
|
"div",
|
|
44827
44791
|
{
|
|
@@ -45179,7 +45143,7 @@ function QueryReportTable({
|
|
|
45179
45143
|
);
|
|
45180
45144
|
const handleExport = () => {
|
|
45181
45145
|
exportToCSV(data, columns, exportFilename);
|
|
45182
|
-
_optionalChain([onExport, 'optionalCall',
|
|
45146
|
+
_optionalChain([onExport, 'optionalCall', _1072 => _1072()]);
|
|
45183
45147
|
};
|
|
45184
45148
|
const tableMinWidth = columns.length * (columnWidth + 16);
|
|
45185
45149
|
const {
|
|
@@ -45371,7 +45335,7 @@ function DataTableColumnFilter({
|
|
|
45371
45335
|
pending = false
|
|
45372
45336
|
}) {
|
|
45373
45337
|
const currentValue = column.getFilterValue();
|
|
45374
|
-
const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess',
|
|
45338
|
+
const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess', _1073 => _1073.length]), () => ( 0));
|
|
45375
45339
|
const sections = _react.useMemo.call(void 0,
|
|
45376
45340
|
() => [
|
|
45377
45341
|
{
|
|
@@ -45506,7 +45470,7 @@ function DataTableHeader({
|
|
|
45506
45470
|
);
|
|
45507
45471
|
}
|
|
45508
45472
|
function keepsCellOnTablet(meta) {
|
|
45509
|
-
return Boolean(_optionalChain([meta, 'optionalAccess',
|
|
45473
|
+
return Boolean(_optionalChain([meta, 'optionalAccess', _1074 => _1074.filter])) || _optionalChain([meta, 'optionalAccess', _1075 => _1075.alwaysShowHeader]) === true;
|
|
45510
45474
|
}
|
|
45511
45475
|
var SHOW_FROM = {
|
|
45512
45476
|
md: "md:flex",
|
|
@@ -45544,11 +45508,11 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
45544
45508
|
if (header.isPlaceholder) return null;
|
|
45545
45509
|
const column = header.column;
|
|
45546
45510
|
const meta = column.columnDef.meta;
|
|
45547
|
-
const hasFilter = Boolean(_optionalChain([meta, 'optionalAccess',
|
|
45511
|
+
const hasFilter = Boolean(_optionalChain([meta, 'optionalAccess', _1076 => _1076.filter]));
|
|
45548
45512
|
const keepOnTablet = keepsCellOnTablet(meta);
|
|
45549
|
-
const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
45550
|
-
const canSort = _optionalChain([meta, 'optionalAccess',
|
|
45551
|
-
const sortDir = _optionalChain([sort, 'optionalAccess',
|
|
45513
|
+
const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _1077 => _1077.align]), () => ( "left"));
|
|
45514
|
+
const canSort = _optionalChain([meta, 'optionalAccess', _1078 => _1078.sortable]) === true;
|
|
45515
|
+
const sortDir = _optionalChain([sort, 'optionalAccess', _1079 => _1079.id]) === column.id ? sort.desc ? "desc" : "asc" : false;
|
|
45552
45516
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45553
45517
|
"div",
|
|
45554
45518
|
{
|
|
@@ -45556,7 +45520,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
45556
45520
|
"items-stretch",
|
|
45557
45521
|
// Cells are hidden rather than dropped from the tree, so which columns
|
|
45558
45522
|
// exist never depends on when an effect ran.
|
|
45559
|
-
getCellVisibilityClasses(keepOnTablet, _optionalChain([meta, 'optionalAccess',
|
|
45523
|
+
getCellVisibilityClasses(keepOnTablet, _optionalChain([meta, 'optionalAccess', _1080 => _1080.hideAt])),
|
|
45560
45524
|
// Width applies from lg only. Stated as "always, neutralized below lg"
|
|
45561
45525
|
// because `meta.width` is an opaque consumer string that cannot be
|
|
45562
45526
|
// prefixed. Only `keepOnTablet` cells need the override — the rest are
|
|
@@ -45574,9 +45538,9 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
45574
45538
|
// Specificity rather than `!important`: it stays a normal declaration, so a
|
|
45575
45539
|
// consumer that genuinely needs a tablet width can still take it back with a
|
|
45576
45540
|
// more specific rule — `!important` could only be answered with another one.
|
|
45577
|
-
_optionalChain([meta, 'optionalAccess',
|
|
45541
|
+
_optionalChain([meta, 'optionalAccess', _1081 => _1081.width]) || "flex-1 min-w-0",
|
|
45578
45542
|
keepOnTablet && "max-lg:[&&]:w-auto max-lg:[&&]:flex-none max-lg:[&&]:basis-auto",
|
|
45579
|
-
_optionalChain([meta, 'optionalAccess',
|
|
45543
|
+
_optionalChain([meta, 'optionalAccess', _1082 => _1082.headerClassName])
|
|
45580
45544
|
),
|
|
45581
45545
|
children: hasFilter ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45582
45546
|
DataTableColumnFilter,
|
|
@@ -45600,7 +45564,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
45600
45564
|
keepOnTablet && "max-lg:justify-start",
|
|
45601
45565
|
canSort && "group cursor-pointer"
|
|
45602
45566
|
),
|
|
45603
|
-
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall',
|
|
45567
|
+
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall', _1083 => _1083(column.id)]) : void 0,
|
|
45604
45568
|
children: [
|
|
45605
45569
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
45606
45570
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -45666,7 +45630,7 @@ function DataTableSkeleton({
|
|
|
45666
45630
|
}) {
|
|
45667
45631
|
const table = useDataTableContext();
|
|
45668
45632
|
const columns = table.getVisibleFlatColumns();
|
|
45669
|
-
const firstColumnId = _optionalChain([columns, 'access',
|
|
45633
|
+
const firstColumnId = _optionalChain([columns, 'access', _1084 => _1084[0], 'optionalAccess', _1085 => _1085.id]);
|
|
45670
45634
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
45671
45635
|
"div",
|
|
45672
45636
|
{
|
|
@@ -45691,13 +45655,13 @@ function DataTableSkeleton({
|
|
|
45691
45655
|
{
|
|
45692
45656
|
className: _chunkKI4EGKNVcjs.cn.call(void 0,
|
|
45693
45657
|
"flex flex-col justify-center shrink-0",
|
|
45694
|
-
_optionalChain([meta, 'optionalAccess',
|
|
45658
|
+
_optionalChain([meta, 'optionalAccess', _1086 => _1086.width]) || "flex-1",
|
|
45695
45659
|
// Same responsive hiding the real header and row apply.
|
|
45696
45660
|
// Without it a `hideAt` column was drawn in the skeleton and
|
|
45697
45661
|
// absent from the loaded table, so below that breakpoint the
|
|
45698
45662
|
// remaining columns were sized against a different total and
|
|
45699
45663
|
// the whole row re-laid-out the moment data arrived.
|
|
45700
|
-
getHideClasses2(_optionalChain([meta, 'optionalAccess',
|
|
45664
|
+
getHideClasses2(_optionalChain([meta, 'optionalAccess', _1087 => _1087.hideAt]))
|
|
45701
45665
|
),
|
|
45702
45666
|
children: [
|
|
45703
45667
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-5 bg-ods-bg-surface rounded-sm w-3/4 mb-[var(--spacing-system-xxs)]" }),
|
|
@@ -45748,7 +45712,7 @@ function DataTableRowImpl({
|
|
|
45748
45712
|
const handleClick = _react.useCallback.call(void 0,
|
|
45749
45713
|
(e) => {
|
|
45750
45714
|
const target = e.target;
|
|
45751
|
-
if (!_optionalChain([containerRef, 'access',
|
|
45715
|
+
if (!_optionalChain([containerRef, 'access', _1088 => _1088.current, 'optionalAccess', _1089 => _1089.contains, 'call', _1090 => _1090(target)])) {
|
|
45752
45716
|
if (isLinkMode) e.preventDefault();
|
|
45753
45717
|
return;
|
|
45754
45718
|
}
|
|
@@ -45756,7 +45720,7 @@ function DataTableRowImpl({
|
|
|
45756
45720
|
if (isLinkMode) e.preventDefault();
|
|
45757
45721
|
return;
|
|
45758
45722
|
}
|
|
45759
|
-
_optionalChain([onClick, 'optionalCall',
|
|
45723
|
+
_optionalChain([onClick, 'optionalCall', _1091 => _1091(row.original)]);
|
|
45760
45724
|
},
|
|
45761
45725
|
[onClick, row.original, isLinkMode]
|
|
45762
45726
|
);
|
|
@@ -45782,10 +45746,10 @@ function DataTableRowImpl({
|
|
|
45782
45746
|
{
|
|
45783
45747
|
className: _chunkKI4EGKNVcjs.cn.call(void 0,
|
|
45784
45748
|
"flex flex-col overflow-hidden",
|
|
45785
|
-
alignJustify(_optionalChain([meta, 'optionalAccess',
|
|
45786
|
-
_optionalChain([meta, 'optionalAccess',
|
|
45787
|
-
_optionalChain([meta, 'optionalAccess',
|
|
45788
|
-
getHideClasses2(_optionalChain([meta, 'optionalAccess',
|
|
45749
|
+
alignJustify(_optionalChain([meta, 'optionalAccess', _1092 => _1092.align])),
|
|
45750
|
+
_optionalChain([meta, 'optionalAccess', _1093 => _1093.width]) || "flex-1 min-w-0",
|
|
45751
|
+
_optionalChain([meta, 'optionalAccess', _1094 => _1094.cellClassName]),
|
|
45752
|
+
getHideClasses2(_optionalChain([meta, 'optionalAccess', _1095 => _1095.hideAt]))
|
|
45789
45753
|
),
|
|
45790
45754
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CellContent, { children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) })
|
|
45791
45755
|
},
|
|
@@ -45865,7 +45829,7 @@ function DataTableBody({
|
|
|
45865
45829
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkKI4EGKNVcjs.cn.call(void 0, "flex flex-col gap-[var(--spacing-system-xsf)] w-full", className), children: [
|
|
45866
45830
|
rows.map((row, index) => {
|
|
45867
45831
|
const item = row.original;
|
|
45868
|
-
const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall',
|
|
45832
|
+
const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall', _1096 => _1096(item)]), () => ( void 0));
|
|
45869
45833
|
const cls = typeof rowClassName === "function" ? rowClassName(item, index) : rowClassName;
|
|
45870
45834
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45871
45835
|
DataTableRow,
|
|
@@ -45876,7 +45840,7 @@ function DataTableBody({
|
|
|
45876
45840
|
compact,
|
|
45877
45841
|
autoHeight,
|
|
45878
45842
|
className: cls,
|
|
45879
|
-
subRow: _optionalChain([renderSubRow, 'optionalCall',
|
|
45843
|
+
subRow: _optionalChain([renderSubRow, 'optionalCall', _1097 => _1097(item)])
|
|
45880
45844
|
},
|
|
45881
45845
|
row.id
|
|
45882
45846
|
);
|
|
@@ -45933,7 +45897,7 @@ function DataTableInfiniteFooter({
|
|
|
45933
45897
|
if (!sentinel) return;
|
|
45934
45898
|
const observer = new IntersectionObserver(
|
|
45935
45899
|
(entries) => {
|
|
45936
|
-
if (_optionalChain([entries, 'access',
|
|
45900
|
+
if (_optionalChain([entries, 'access', _1098 => _1098[0], 'optionalAccess', _1099 => _1099.isIntersecting])) onLoadMoreRef.current();
|
|
45937
45901
|
},
|
|
45938
45902
|
{ rootMargin }
|
|
45939
45903
|
);
|
|
@@ -45981,7 +45945,7 @@ function DataTableRowCount({
|
|
|
45981
45945
|
const table = useDataTableContext();
|
|
45982
45946
|
const count = _nullishCoalesce(totalCount, () => ( table.getRowModel().rows.length));
|
|
45983
45947
|
if (hideWhenEmpty && count === 0) return null;
|
|
45984
|
-
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall',
|
|
45948
|
+
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall', _1100 => _1100(count, itemName)]), () => ( (count === 1 ? itemName : `${itemName}s`)));
|
|
45985
45949
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
45986
45950
|
"span",
|
|
45987
45951
|
{
|
|
@@ -46142,7 +46106,7 @@ function SearchInput({
|
|
|
46142
46106
|
if (!showHiddenTags) return;
|
|
46143
46107
|
const handleClick = (e) => {
|
|
46144
46108
|
const target = e.target;
|
|
46145
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
46109
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _1101 => _1101.current, 'optionalAccess', _1102 => _1102.contains, 'call', _1103 => _1103(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _1104 => _1104.current, 'optionalAccess', _1105 => _1105.contains, 'call', _1106 => _1106(target)])) {
|
|
46146
46110
|
setShowHiddenTags(false);
|
|
46147
46111
|
}
|
|
46148
46112
|
};
|
|
@@ -46190,10 +46154,10 @@ function SearchInput({
|
|
|
46190
46154
|
} else {
|
|
46191
46155
|
setInternalValue("");
|
|
46192
46156
|
}
|
|
46193
|
-
_optionalChain([inputRef, 'access',
|
|
46157
|
+
_optionalChain([inputRef, 'access', _1107 => _1107.current, 'optionalAccess', _1108 => _1108.focus, 'call', _1109 => _1109()]);
|
|
46194
46158
|
};
|
|
46195
46159
|
const handleResultClick = (result, e) => {
|
|
46196
|
-
_optionalChain([onResultSelect, 'optionalCall',
|
|
46160
|
+
_optionalChain([onResultSelect, 'optionalCall', _1110 => _1110(
|
|
46197
46161
|
result,
|
|
46198
46162
|
e ? {
|
|
46199
46163
|
metaKey: e.metaKey,
|
|
@@ -46225,7 +46189,7 @@ function SearchInput({
|
|
|
46225
46189
|
if (highlightedIndex >= 0 && flatResults[highlightedIndex]) {
|
|
46226
46190
|
handleResultClick(flatResults[highlightedIndex]);
|
|
46227
46191
|
} else {
|
|
46228
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
46192
|
+
_optionalChain([onSubmit, 'optionalCall', _1111 => _1111(currentValue)]);
|
|
46229
46193
|
}
|
|
46230
46194
|
break;
|
|
46231
46195
|
case "Escape":
|
|
@@ -46303,7 +46267,7 @@ function SearchInput({
|
|
|
46303
46267
|
dropdownVisible && "!border-ods-accent"
|
|
46304
46268
|
),
|
|
46305
46269
|
onClick: () => {
|
|
46306
|
-
_optionalChain([inputRef, 'access',
|
|
46270
|
+
_optionalChain([inputRef, 'access', _1112 => _1112.current, 'optionalAccess', _1113 => _1113.focus, 'call', _1114 => _1114()]);
|
|
46307
46271
|
setIsOpen(true);
|
|
46308
46272
|
},
|
|
46309
46273
|
children: [
|
|
@@ -46389,10 +46353,10 @@ function SearchInput({
|
|
|
46389
46353
|
collisionPadding: { bottom: keyboardPadding },
|
|
46390
46354
|
onOpenAutoFocus: (e) => {
|
|
46391
46355
|
e.preventDefault();
|
|
46392
|
-
_optionalChain([inputRef, 'access',
|
|
46356
|
+
_optionalChain([inputRef, 'access', _1115 => _1115.current, 'optionalAccess', _1116 => _1116.focus, 'call', _1117 => _1117()]);
|
|
46393
46357
|
},
|
|
46394
46358
|
onInteractOutside: (e) => {
|
|
46395
|
-
if (_optionalChain([containerRef, 'access',
|
|
46359
|
+
if (_optionalChain([containerRef, 'access', _1118 => _1118.current, 'optionalAccess', _1119 => _1119.contains, 'call', _1120 => _1120(e.target)])) {
|
|
46396
46360
|
e.preventDefault();
|
|
46397
46361
|
}
|
|
46398
46362
|
},
|
|
@@ -46409,10 +46373,10 @@ function SearchInput({
|
|
|
46409
46373
|
ref: hiddenTagsPopupRef,
|
|
46410
46374
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
46411
46375
|
style: {
|
|
46412
|
-
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([containerRef, 'access',
|
|
46376
|
+
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([containerRef, 'access', _1121 => _1121.current, 'optionalAccess', _1122 => _1122.getBoundingClientRect, 'call', _1123 => _1123(), 'access', _1124 => _1124.left]), () => ( 0))) : 0
|
|
46413
46377
|
},
|
|
46414
46378
|
onRemove: (value2) => {
|
|
46415
|
-
_optionalChain([onFilterRemove, 'optionalCall',
|
|
46379
|
+
_optionalChain([onFilterRemove, 'optionalCall', _1125 => _1125(value2)]);
|
|
46416
46380
|
if (hiddenCount <= 1) setShowHiddenTags(false);
|
|
46417
46381
|
}
|
|
46418
46382
|
}
|
|
@@ -46463,7 +46427,7 @@ function FilterListItem({
|
|
|
46463
46427
|
}) {
|
|
46464
46428
|
const handleToggle = () => {
|
|
46465
46429
|
if (disabled) return;
|
|
46466
|
-
_optionalChain([onToggle, 'optionalCall',
|
|
46430
|
+
_optionalChain([onToggle, 'optionalCall', _1126 => _1126(!selected)]);
|
|
46467
46431
|
};
|
|
46468
46432
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
46469
46433
|
"div",
|
|
@@ -46510,7 +46474,7 @@ function FilterListItem({
|
|
|
46510
46474
|
CheckboxPrimitive4.Root,
|
|
46511
46475
|
{
|
|
46512
46476
|
checked: selected,
|
|
46513
|
-
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall',
|
|
46477
|
+
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall', _1127 => _1127(c === true)]),
|
|
46514
46478
|
onClick: (e) => e.stopPropagation(),
|
|
46515
46479
|
disabled,
|
|
46516
46480
|
"aria-label": title,
|
|
@@ -46609,7 +46573,7 @@ function TagSearchInput({
|
|
|
46609
46573
|
if (!showHiddenTags) return;
|
|
46610
46574
|
const handleClick = (e) => {
|
|
46611
46575
|
const target = e.target;
|
|
46612
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
46576
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _1128 => _1128.current, 'optionalAccess', _1129 => _1129.contains, 'call', _1130 => _1130(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _1131 => _1131.current, 'optionalAccess', _1132 => _1132.contains, 'call', _1133 => _1133(target)])) {
|
|
46613
46577
|
setShowHiddenTags(false);
|
|
46614
46578
|
}
|
|
46615
46579
|
};
|
|
@@ -46625,13 +46589,13 @@ function TagSearchInput({
|
|
|
46625
46589
|
e.preventDefault();
|
|
46626
46590
|
onSubmit(searchValue);
|
|
46627
46591
|
}
|
|
46628
|
-
_optionalChain([onKeyDown, 'optionalCall',
|
|
46592
|
+
_optionalChain([onKeyDown, 'optionalCall', _1134 => _1134(e)]);
|
|
46629
46593
|
};
|
|
46630
46594
|
const handleClearAll = (e) => {
|
|
46631
46595
|
e.stopPropagation();
|
|
46632
46596
|
e.preventDefault();
|
|
46633
|
-
_optionalChain([onClearAll, 'optionalCall',
|
|
46634
|
-
_optionalChain([inputRef, 'access',
|
|
46597
|
+
_optionalChain([onClearAll, 'optionalCall', _1135 => _1135()]);
|
|
46598
|
+
_optionalChain([inputRef, 'access', _1136 => _1136.current, 'optionalAccess', _1137 => _1137.focus, 'call', _1138 => _1138()]);
|
|
46635
46599
|
};
|
|
46636
46600
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: wrapperRef, className: "relative", children: [
|
|
46637
46601
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -46654,7 +46618,7 @@ function TagSearchInput({
|
|
|
46654
46618
|
className
|
|
46655
46619
|
),
|
|
46656
46620
|
onClick: () => {
|
|
46657
|
-
if (!disabled) _optionalChain([inputRef, 'access',
|
|
46621
|
+
if (!disabled) _optionalChain([inputRef, 'access', _1139 => _1139.current, 'optionalAccess', _1140 => _1140.focus, 'call', _1141 => _1141()]);
|
|
46658
46622
|
},
|
|
46659
46623
|
children: [
|
|
46660
46624
|
/* @__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" }) }),
|
|
@@ -46727,7 +46691,7 @@ function TagSearchInput({
|
|
|
46727
46691
|
items: hiddenTags,
|
|
46728
46692
|
disabled,
|
|
46729
46693
|
style: {
|
|
46730
|
-
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([wrapperRef, 'access',
|
|
46694
|
+
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([wrapperRef, 'access', _1142 => _1142.current, 'optionalAccess', _1143 => _1143.getBoundingClientRect, 'call', _1144 => _1144(), 'access', _1145 => _1145.left]), () => ( 0))) : 0
|
|
46731
46695
|
},
|
|
46732
46696
|
onRemove: (value) => {
|
|
46733
46697
|
onTagRemove(value);
|
|
@@ -46828,7 +46792,7 @@ function MarkdownEditor({
|
|
|
46828
46792
|
const [defaultExtraCommands, setDefaultExtraCommands] = _react.useState.call(void 0, []);
|
|
46829
46793
|
_react.useEffect.call(void 0, () => {
|
|
46830
46794
|
Promise.resolve().then(() => _interopRequireWildcard(require("@uiw/react-md-editor"))).then((mod) => {
|
|
46831
|
-
if (_optionalChain([mod, 'access',
|
|
46795
|
+
if (_optionalChain([mod, 'access', _1146 => _1146.commands, 'optionalAccess', _1147 => _1147.getExtraCommands])) {
|
|
46832
46796
|
setDefaultExtraCommands(mod.commands.getExtraCommands());
|
|
46833
46797
|
}
|
|
46834
46798
|
});
|
|
@@ -46862,7 +46826,7 @@ function MarkdownEditor({
|
|
|
46862
46826
|
const isImage = file.type.startsWith("image/");
|
|
46863
46827
|
const markdown = isImage ? `` : `[${file.name}](${url})`;
|
|
46864
46828
|
insertTextAtCursor(markdown);
|
|
46865
|
-
_optionalChain([onFileUploaded, 'optionalCall',
|
|
46829
|
+
_optionalChain([onFileUploaded, 'optionalCall', _1148 => _1148(url, file.name)]);
|
|
46866
46830
|
} catch (error) {
|
|
46867
46831
|
console.error("File upload failed:", error);
|
|
46868
46832
|
setUploadProgress("Upload failed. Please try again.");
|
|
@@ -46875,7 +46839,7 @@ function MarkdownEditor({
|
|
|
46875
46839
|
);
|
|
46876
46840
|
const handleFileInputChange = _react.useCallback.call(void 0,
|
|
46877
46841
|
(e) => {
|
|
46878
|
-
const file = _optionalChain([e, 'access',
|
|
46842
|
+
const file = _optionalChain([e, 'access', _1149 => _1149.target, 'access', _1150 => _1150.files, 'optionalAccess', _1151 => _1151[0]]);
|
|
46879
46843
|
if (file) {
|
|
46880
46844
|
handleFileUpload(file);
|
|
46881
46845
|
e.target.value = "";
|
|
@@ -46886,7 +46850,7 @@ function MarkdownEditor({
|
|
|
46886
46850
|
const handlePaste = _react.useCallback.call(void 0,
|
|
46887
46851
|
(e) => {
|
|
46888
46852
|
if (!onUploadFile) return;
|
|
46889
|
-
const items = _optionalChain([e, 'access',
|
|
46853
|
+
const items = _optionalChain([e, 'access', _1152 => _1152.clipboardData, 'optionalAccess', _1153 => _1153.items]);
|
|
46890
46854
|
if (!items) return;
|
|
46891
46855
|
for (const item of items) {
|
|
46892
46856
|
if (item.type.startsWith("image/")) {
|
|
@@ -46911,7 +46875,7 @@ function MarkdownEditor({
|
|
|
46911
46875
|
buttonProps: { "aria-label": "Upload file", title: "Upload file" },
|
|
46912
46876
|
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" }),
|
|
46913
46877
|
execute: () => {
|
|
46914
|
-
_optionalChain([fileInputRef, 'access',
|
|
46878
|
+
_optionalChain([fileInputRef, 'access', _1154 => _1154.current, 'optionalAccess', _1155 => _1155.click, 'call', _1156 => _1156()]);
|
|
46915
46879
|
}
|
|
46916
46880
|
} : null;
|
|
46917
46881
|
const extraCommands = uploadCommand ? [...defaultExtraCommands, uploadCommand] : defaultExtraCommands;
|
|
@@ -46923,7 +46887,7 @@ function MarkdownEditor({
|
|
|
46923
46887
|
const EDGE_ZONE = 60;
|
|
46924
46888
|
const MAX_SCROLL_SPEED = 15;
|
|
46925
46889
|
const findScrollParent = _react.useCallback.call(void 0, (el) => {
|
|
46926
|
-
let node = _optionalChain([el, 'optionalAccess',
|
|
46890
|
+
let node = _optionalChain([el, 'optionalAccess', _1157 => _1157.parentElement]);
|
|
46927
46891
|
while (node && node !== document.documentElement) {
|
|
46928
46892
|
const { overflowY } = window.getComputedStyle(node);
|
|
46929
46893
|
if ((overflowY === "auto" || overflowY === "scroll") && node.scrollHeight > node.clientHeight) {
|
|
@@ -47066,7 +47030,7 @@ function matchesAccept(file, accept) {
|
|
|
47066
47030
|
});
|
|
47067
47031
|
}
|
|
47068
47032
|
function dragHasFiles(e) {
|
|
47069
|
-
const types = _optionalChain([e, 'access',
|
|
47033
|
+
const types = _optionalChain([e, 'access', _1158 => _1158.dataTransfer, 'optionalAccess', _1159 => _1159.types]);
|
|
47070
47034
|
if (!types) return false;
|
|
47071
47035
|
for (let i = 0; i < types.length; i++) {
|
|
47072
47036
|
if (types[i] === "Files") return true;
|
|
@@ -47163,7 +47127,7 @@ function FileUpload({
|
|
|
47163
47127
|
e.stopPropagation();
|
|
47164
47128
|
setDragActive(false);
|
|
47165
47129
|
if (disabled) return;
|
|
47166
|
-
if (_optionalChain([e, 'access',
|
|
47130
|
+
if (_optionalChain([e, 'access', _1160 => _1160.dataTransfer, 'access', _1161 => _1161.files, 'optionalAccess', _1162 => _1162.length])) {
|
|
47167
47131
|
handleFiles(e.dataTransfer.files);
|
|
47168
47132
|
}
|
|
47169
47133
|
};
|
|
@@ -47191,7 +47155,7 @@ function FileUpload({
|
|
|
47191
47155
|
e.preventDefault();
|
|
47192
47156
|
dragCounter = 0;
|
|
47193
47157
|
setDragActive(false);
|
|
47194
|
-
if (_optionalChain([e, 'access',
|
|
47158
|
+
if (_optionalChain([e, 'access', _1163 => _1163.dataTransfer, 'optionalAccess', _1164 => _1164.files, 'optionalAccess', _1165 => _1165.length])) {
|
|
47195
47159
|
handleFilesRef.current(e.dataTransfer.files);
|
|
47196
47160
|
}
|
|
47197
47161
|
};
|
|
@@ -47213,7 +47177,7 @@ function FileUpload({
|
|
|
47213
47177
|
};
|
|
47214
47178
|
}, [acceptWindowDrops, disabled]);
|
|
47215
47179
|
const handleFileSelect = (e) => {
|
|
47216
|
-
if (_optionalChain([e, 'access',
|
|
47180
|
+
if (_optionalChain([e, 'access', _1166 => _1166.target, 'access', _1167 => _1167.files, 'optionalAccess', _1168 => _1168.length])) {
|
|
47217
47181
|
handleFiles(e.target.files);
|
|
47218
47182
|
}
|
|
47219
47183
|
};
|
|
@@ -47231,7 +47195,7 @@ function FileUpload({
|
|
|
47231
47195
|
const openDialog = async () => {
|
|
47232
47196
|
if (disabled) return;
|
|
47233
47197
|
if (!pickFiles) {
|
|
47234
|
-
_optionalChain([fileInputRef, 'access',
|
|
47198
|
+
_optionalChain([fileInputRef, 'access', _1169 => _1169.current, 'optionalAccess', _1170 => _1170.click, 'call', _1171 => _1171()]);
|
|
47235
47199
|
return;
|
|
47236
47200
|
}
|
|
47237
47201
|
try {
|
|
@@ -47301,7 +47265,7 @@ function FileUpload({
|
|
|
47301
47265
|
"button",
|
|
47302
47266
|
{
|
|
47303
47267
|
type: "button",
|
|
47304
|
-
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall',
|
|
47268
|
+
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall', _1172 => _1172(entry.id)]),
|
|
47305
47269
|
className: "shrink-0 text-ods-error hover:opacity-80 transition-opacity",
|
|
47306
47270
|
"aria-label": `Remove ${entry.fileName}`,
|
|
47307
47271
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.TrashIcon, { className: "size-6" })
|
|
@@ -47433,7 +47397,7 @@ function ImageUploader({
|
|
|
47433
47397
|
onChange(file);
|
|
47434
47398
|
};
|
|
47435
47399
|
const handleFileSelect = (e) => {
|
|
47436
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
47400
|
+
validateAndEmit(_optionalChain([e, 'access', _1173 => _1173.target, 'access', _1174 => _1174.files, 'optionalAccess', _1175 => _1175[0]]));
|
|
47437
47401
|
if (inputRef.current) inputRef.current.value = "";
|
|
47438
47402
|
};
|
|
47439
47403
|
const handleDrag = (e) => {
|
|
@@ -47448,11 +47412,11 @@ function ImageUploader({
|
|
|
47448
47412
|
e.stopPropagation();
|
|
47449
47413
|
setDragActive(false);
|
|
47450
47414
|
if (!interactive) return;
|
|
47451
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
47415
|
+
validateAndEmit(_optionalChain([e, 'access', _1176 => _1176.dataTransfer, 'access', _1177 => _1177.files, 'optionalAccess', _1178 => _1178[0]]));
|
|
47452
47416
|
};
|
|
47453
47417
|
const openDialog = () => {
|
|
47454
47418
|
if (!interactive) return;
|
|
47455
|
-
_optionalChain([inputRef, 'access',
|
|
47419
|
+
_optionalChain([inputRef, 'access', _1179 => _1179.current, 'optionalAccess', _1180 => _1180.click, 'call', _1181 => _1181()]);
|
|
47456
47420
|
};
|
|
47457
47421
|
const handleRootKeyDown = (e) => {
|
|
47458
47422
|
if (hasImage || !interactive) return;
|
|
@@ -47647,8 +47611,8 @@ function ColorPresetSelect({
|
|
|
47647
47611
|
}) {
|
|
47648
47612
|
const selectedPreset = presets.find((p) => p.key === presetKey);
|
|
47649
47613
|
const isCustom = !selectedPreset;
|
|
47650
|
-
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
47651
|
-
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
47614
|
+
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _1182 => _1182.label]), () => ( "Custom"));
|
|
47615
|
+
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _1183 => _1183.color]), () => ( value));
|
|
47652
47616
|
const groups = [
|
|
47653
47617
|
{
|
|
47654
47618
|
items: [
|
|
@@ -47938,7 +47902,7 @@ function TicketStatusConfigRow({
|
|
|
47938
47902
|
_chunk3NECEXDFcjs.Input,
|
|
47939
47903
|
{
|
|
47940
47904
|
value: name,
|
|
47941
|
-
onChange: (e) => _optionalChain([onNameChange, 'optionalCall',
|
|
47905
|
+
onChange: (e) => _optionalChain([onNameChange, 'optionalCall', _1184 => _1184(e.target.value)]),
|
|
47942
47906
|
disabled: isSystem,
|
|
47943
47907
|
readOnly: isSystem,
|
|
47944
47908
|
"aria-label": "Status name",
|
|
@@ -48491,14 +48455,14 @@ function TicketInfoSection({
|
|
|
48491
48455
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48492
48456
|
SquareAvatar,
|
|
48493
48457
|
{
|
|
48494
|
-
src: _optionalChain([organization, 'optionalAccess',
|
|
48495
|
-
alt: _optionalChain([organization, 'optionalAccess',
|
|
48496
|
-
fallback: _optionalChain([organization, 'optionalAccess',
|
|
48458
|
+
src: _optionalChain([organization, 'optionalAccess', _1185 => _1185.imageSrc]),
|
|
48459
|
+
alt: _optionalChain([organization, 'optionalAccess', _1186 => _1186.name]),
|
|
48460
|
+
fallback: _optionalChain([organization, 'optionalAccess', _1187 => _1187.name]) || "Org",
|
|
48497
48461
|
size: "md",
|
|
48498
48462
|
className: "shrink-0"
|
|
48499
48463
|
}
|
|
48500
48464
|
),
|
|
48501
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([organization, 'optionalAccess',
|
|
48465
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([organization, 'optionalAccess', _1188 => _1188.name]) || "Unassigned", label: "Organization" })
|
|
48502
48466
|
] }),
|
|
48503
48467
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: assigned ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48504
48468
|
AssigneeDropdown,
|
|
@@ -48519,10 +48483,10 @@ function TicketInfoSection({
|
|
|
48519
48483
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48520
48484
|
InfoCell2,
|
|
48521
48485
|
{
|
|
48522
|
-
value: _optionalChain([device, 'optionalAccess',
|
|
48486
|
+
value: _optionalChain([device, 'optionalAccess', _1189 => _1189.name]) || "Unassigned",
|
|
48523
48487
|
label: "Device",
|
|
48524
|
-
icon: _optionalChain([device, 'optionalAccess',
|
|
48525
|
-
onClick: _optionalChain([device, 'optionalAccess',
|
|
48488
|
+
icon: _optionalChain([device, 'optionalAccess', _1190 => _1190.icon]),
|
|
48489
|
+
onClick: _optionalChain([device, 'optionalAccess', _1191 => _1191.onClick])
|
|
48526
48490
|
}
|
|
48527
48491
|
),
|
|
48528
48492
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-4 min-w-0", children: [
|
|
@@ -48627,7 +48591,7 @@ function TakeOverTicketModal({
|
|
|
48627
48591
|
setStatusId(_nullishCoalesce(initialStatusId, () => ( null)));
|
|
48628
48592
|
setAssigneeId(_nullishCoalesce(initialAssigneeId, () => ( null)));
|
|
48629
48593
|
}, [isOpen, initialStatusId, initialAssigneeId]);
|
|
48630
|
-
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access',
|
|
48594
|
+
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access', _1192 => _1192[0], 'optionalAccess', _1193 => _1193.value]))), () => ( null));
|
|
48631
48595
|
const selectedStatus = statusOptions.find((o) => o.value === selectedStatusId);
|
|
48632
48596
|
const selectedAssignee = assigneeOptions.find((o) => o.value === assigneeId);
|
|
48633
48597
|
const handleConfirm = () => {
|
|
@@ -48723,7 +48687,7 @@ function ReopenTicketModal({
|
|
|
48723
48687
|
setAssigneeId(_nullishCoalesce(initialAssigneeId, () => ( null)));
|
|
48724
48688
|
setReason("");
|
|
48725
48689
|
}, [isOpen, initialStatusId, initialAssigneeId]);
|
|
48726
|
-
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access',
|
|
48690
|
+
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access', _1194 => _1194[0], 'optionalAccess', _1195 => _1195.value]))), () => ( null));
|
|
48727
48691
|
const selectedStatus = statusOptions.find((o) => o.value === selectedStatusId);
|
|
48728
48692
|
const selectedAssignee = assigneeOptions.find((o) => o.value === assigneeId);
|
|
48729
48693
|
const handleConfirm = () => {
|
|
@@ -49148,7 +49112,7 @@ function RoadmapCard({
|
|
|
49148
49112
|
const compactHref = safeHref(_nullishCoalesce(href, () => ( null)));
|
|
49149
49113
|
const hasVotes = (_nullishCoalesce(item.upvotes, () => ( 0))) > 0 || (_nullishCoalesce(item.downvotes, () => ( 0))) > 0;
|
|
49150
49114
|
const hasFigma = !!item.figmaUrl;
|
|
49151
|
-
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access',
|
|
49115
|
+
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access', _1196 => _1196.screenshots, 'optionalAccess', _1197 => _1197.length]), () => ( 0))) > 0;
|
|
49152
49116
|
const typeLabel = getTaskTypeLabel(item.customItemId);
|
|
49153
49117
|
const useTypeIcon = cardType === "internal_task" || !iconSrc && item.customItemId != null;
|
|
49154
49118
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -49167,7 +49131,7 @@ function RoadmapCard({
|
|
|
49167
49131
|
unoptimized: true,
|
|
49168
49132
|
className: "h-8 w-8 object-contain"
|
|
49169
49133
|
}
|
|
49170
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-h6 uppercase text-ods-text-secondary", children: _optionalChain([item, 'access',
|
|
49134
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-h6 uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _1198 => _1198.title, 'optionalAccess', _1199 => _1199.substring, 'call', _1200 => _1200(0, 2)]) || "??" })
|
|
49171
49135
|
}
|
|
49172
49136
|
),
|
|
49173
49137
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
@@ -49243,7 +49207,7 @@ function RoadmapCard({
|
|
|
49243
49207
|
unoptimized: true,
|
|
49244
49208
|
className: "object-contain p-1"
|
|
49245
49209
|
}
|
|
49246
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access',
|
|
49210
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _1201 => _1201.title, 'optionalAccess', _1202 => _1202.substring, 'call', _1203 => _1203(0, 2)]) || "??" }) }),
|
|
49247
49211
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 min-w-0 flex flex-col", children: [
|
|
49248
49212
|
/* @__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 flex-1 line-clamp-2", children: item.title }) }),
|
|
49249
49213
|
/* @__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 truncate", children: [
|
|
@@ -49754,7 +49718,7 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
|
49754
49718
|
] }) : null,
|
|
49755
49719
|
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-h6 text-ods-text-secondary", children: item.preview }) }) : null
|
|
49756
49720
|
] }),
|
|
49757
|
-
_optionalChain([anchorProps, 'optionalAccess',
|
|
49721
|
+
_optionalChain([anchorProps, 'optionalAccess', _1204 => _1204.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
|
|
49758
49722
|
] });
|
|
49759
49723
|
if (!anchorProps) {
|
|
49760
49724
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
@@ -49824,7 +49788,7 @@ function getDefaultOptions() {
|
|
|
49824
49788
|
// node_modules/date-fns/startOfWeek.mjs
|
|
49825
49789
|
function startOfWeek(date, options) {
|
|
49826
49790
|
const defaultOptions2 = getDefaultOptions();
|
|
49827
|
-
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
49791
|
+
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _1205 => _1205.weekStartsOn]), () => ( _optionalChain([options, 'optionalAccess', _1206 => _1206.locale, 'optionalAccess', _1207 => _1207.options, 'optionalAccess', _1208 => _1208.weekStartsOn]))), () => ( defaultOptions2.weekStartsOn)), () => ( _optionalChain([defaultOptions2, 'access', _1209 => _1209.locale, 'optionalAccess', _1210 => _1210.options, 'optionalAccess', _1211 => _1211.weekStartsOn]))), () => ( 0));
|
|
49828
49792
|
const _date = toDate2(date);
|
|
49829
49793
|
const day = _date.getDay();
|
|
49830
49794
|
const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
|
|
@@ -49999,7 +49963,7 @@ var formatDistance = (token, count, options) => {
|
|
|
49999
49963
|
} else {
|
|
50000
49964
|
result = tokenValue.other.replace("{{count}}", count.toString());
|
|
50001
49965
|
}
|
|
50002
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
49966
|
+
if (_optionalChain([options, 'optionalAccess', _1212 => _1212.addSuffix])) {
|
|
50003
49967
|
if (options.comparison && options.comparison > 0) {
|
|
50004
49968
|
return "in " + result;
|
|
50005
49969
|
} else {
|
|
@@ -50066,15 +50030,15 @@ var formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale
|
|
|
50066
50030
|
// node_modules/date-fns/locale/_lib/buildLocalizeFn.mjs
|
|
50067
50031
|
function buildLocalizeFn(args) {
|
|
50068
50032
|
return (value, options) => {
|
|
50069
|
-
const context = _optionalChain([options, 'optionalAccess',
|
|
50033
|
+
const context = _optionalChain([options, 'optionalAccess', _1213 => _1213.context]) ? String(options.context) : "standalone";
|
|
50070
50034
|
let valuesArray;
|
|
50071
50035
|
if (context === "formatting" && args.formattingValues) {
|
|
50072
50036
|
const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
|
|
50073
|
-
const width = _optionalChain([options, 'optionalAccess',
|
|
50037
|
+
const width = _optionalChain([options, 'optionalAccess', _1214 => _1214.width]) ? String(options.width) : defaultWidth;
|
|
50074
50038
|
valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
|
|
50075
50039
|
} else {
|
|
50076
50040
|
const defaultWidth = args.defaultWidth;
|
|
50077
|
-
const width = _optionalChain([options, 'optionalAccess',
|
|
50041
|
+
const width = _optionalChain([options, 'optionalAccess', _1215 => _1215.width]) ? String(options.width) : args.defaultWidth;
|
|
50078
50042
|
valuesArray = args.values[width] || args.values[defaultWidth];
|
|
50079
50043
|
}
|
|
50080
50044
|
const index = args.argumentCallback ? args.argumentCallback(value) : value;
|
|
@@ -50454,7 +50418,7 @@ function getWeekYear(date, options) {
|
|
|
50454
50418
|
const _date = toDate2(date);
|
|
50455
50419
|
const year = _date.getFullYear();
|
|
50456
50420
|
const defaultOptions2 = getDefaultOptions();
|
|
50457
|
-
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
50421
|
+
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _1216 => _1216.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _1217 => _1217.locale, 'optionalAccess', _1218 => _1218.options, 'optionalAccess', _1219 => _1219.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _1220 => _1220.locale, 'optionalAccess', _1221 => _1221.options, 'optionalAccess', _1222 => _1222.firstWeekContainsDate]))), () => ( 1));
|
|
50458
50422
|
const firstWeekOfNextYear = constructFrom(date, 0);
|
|
50459
50423
|
firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
|
|
50460
50424
|
firstWeekOfNextYear.setHours(0, 0, 0, 0);
|
|
@@ -50475,7 +50439,7 @@ function getWeekYear(date, options) {
|
|
|
50475
50439
|
// node_modules/date-fns/startOfWeekYear.mjs
|
|
50476
50440
|
function startOfWeekYear(date, options) {
|
|
50477
50441
|
const defaultOptions2 = getDefaultOptions();
|
|
50478
|
-
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
50442
|
+
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _1223 => _1223.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _1224 => _1224.locale, 'optionalAccess', _1225 => _1225.options, 'optionalAccess', _1226 => _1226.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _1227 => _1227.locale, 'optionalAccess', _1228 => _1228.options, 'optionalAccess', _1229 => _1229.firstWeekContainsDate]))), () => ( 1));
|
|
50479
50443
|
const year = getWeekYear(date, options);
|
|
50480
50444
|
const firstWeek = constructFrom(date, 0);
|
|
50481
50445
|
firstWeek.setFullYear(year, 0, firstWeekContainsDate);
|
|
@@ -51290,9 +51254,9 @@ var doubleQuoteRegExp = /''/g;
|
|
|
51290
51254
|
var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
51291
51255
|
function format2(date, formatStr, options) {
|
|
51292
51256
|
const defaultOptions2 = getDefaultOptions();
|
|
51293
|
-
const locale = _nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
51294
|
-
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
51295
|
-
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
51257
|
+
const locale = _nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _1230 => _1230.locale]), () => ( defaultOptions2.locale)), () => ( enUS));
|
|
51258
|
+
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _1231 => _1231.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _1232 => _1232.locale, 'optionalAccess', _1233 => _1233.options, 'optionalAccess', _1234 => _1234.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _1235 => _1235.locale, 'optionalAccess', _1236 => _1236.options, 'optionalAccess', _1237 => _1237.firstWeekContainsDate]))), () => ( 1));
|
|
51259
|
+
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _1238 => _1238.weekStartsOn]), () => ( _optionalChain([options, 'optionalAccess', _1239 => _1239.locale, 'optionalAccess', _1240 => _1240.options, 'optionalAccess', _1241 => _1241.weekStartsOn]))), () => ( defaultOptions2.weekStartsOn)), () => ( _optionalChain([defaultOptions2, 'access', _1242 => _1242.locale, 'optionalAccess', _1243 => _1243.options, 'optionalAccess', _1244 => _1244.weekStartsOn]))), () => ( 0));
|
|
51296
51260
|
const originalDate = toDate2(date);
|
|
51297
51261
|
if (!isValid(originalDate)) {
|
|
51298
51262
|
throw new RangeError("Invalid time value");
|
|
@@ -51333,7 +51297,7 @@ function format2(date, formatStr, options) {
|
|
|
51333
51297
|
return parts.map((part) => {
|
|
51334
51298
|
if (!part.isToken) return part.value;
|
|
51335
51299
|
const token = part.value;
|
|
51336
|
-
if (!_optionalChain([options, 'optionalAccess',
|
|
51300
|
+
if (!_optionalChain([options, 'optionalAccess', _1245 => _1245.useAdditionalWeekYearTokens]) && isProtectedWeekYearToken(token) || !_optionalChain([options, 'optionalAccess', _1246 => _1246.useAdditionalDayOfYearTokens]) && isProtectedDayOfYearToken(token)) {
|
|
51337
51301
|
warnOrThrowProtectedError(token, formatStr, String(date));
|
|
51338
51302
|
}
|
|
51339
51303
|
const formatter = formatters[token[0]];
|
|
@@ -51539,7 +51503,7 @@ function ProgramCard({
|
|
|
51539
51503
|
const itemDate2 = compactDate;
|
|
51540
51504
|
const compactCover = coverImage || placeholderUrl || null;
|
|
51541
51505
|
const typeMeta = compactTypeMeta();
|
|
51542
|
-
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access',
|
|
51506
|
+
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access', _1247 => _1247.labels, 'optionalAccess', _1248 => _1248.singular])].filter(
|
|
51543
51507
|
(s) => typeof s === "string" && s.length > 0
|
|
51544
51508
|
);
|
|
51545
51509
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: _chunkKI4EGKNVcjs.cn.call(void 0, COMPACT_CARD_OUTER, className), children: [
|
|
@@ -51696,7 +51660,7 @@ function ProgramCard({
|
|
|
51696
51660
|
|
|
51697
51661
|
|
|
51698
51662
|
function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
51699
|
-
const goalsCount = _optionalChain([campaign, 'access',
|
|
51663
|
+
const goalsCount = _optionalChain([campaign, 'access', _1249 => _1249.goals, 'optionalAccess', _1250 => _1250.length]) || 0;
|
|
51700
51664
|
const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
51701
51665
|
/* @__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" }) }),
|
|
51702
51666
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
@@ -51864,7 +51828,7 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
51864
51828
|
if (row.path && shouldFallbackToPathNav(row) && !row.externalUrl) {
|
|
51865
51829
|
const safePath = sanitizePath(row.path);
|
|
51866
51830
|
if (safePath) {
|
|
51867
|
-
const docTarget = row.documentType ? _optionalChain([ctx, 'access',
|
|
51831
|
+
const docTarget = row.documentType ? _optionalChain([ctx, 'access', _1251 => _1251.docPlatformTargets, 'optionalAccess', _1252 => _1252[row.documentType]]) : void 0;
|
|
51868
51832
|
if (docTarget) {
|
|
51869
51833
|
const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
|
|
51870
51834
|
const base = `${_chunkKI4EGKNVcjs.getBaseUrl.call(void 0, docTarget.platform)}${seg ? `/${seg}` : ""}/`;
|
|
@@ -52163,8 +52127,8 @@ function cardMenuGroups(href, discuss, openDetails, externalLink) {
|
|
|
52163
52127
|
if (href) {
|
|
52164
52128
|
items.push({
|
|
52165
52129
|
id: "open-details",
|
|
52166
|
-
label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess',
|
|
52167
|
-
icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess',
|
|
52130
|
+
label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _1253 => _1253.label]), () => ( "Open Details")),
|
|
52131
|
+
icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _1254 => _1254.icon]), () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.EyeIcon, { size: 20 }))),
|
|
52168
52132
|
// Main row → open the entity (same tab, soft Link nav).
|
|
52169
52133
|
href,
|
|
52170
52134
|
// Trailing 40px ↗ side-button → open in a new tab.
|
|
@@ -52224,16 +52188,16 @@ function itemVideoMetadata(item) {
|
|
|
52224
52188
|
for (const v of vals) if (typeof v === "string" && v.length > 0) return v;
|
|
52225
52189
|
return void 0;
|
|
52226
52190
|
};
|
|
52227
|
-
const m = _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52191
|
+
const m = _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1255 => _1255.metadata]), () => ( {}));
|
|
52228
52192
|
const out = {};
|
|
52229
|
-
const videoUrl = pick(m.videoUrl, _optionalChain([item, 'optionalAccess',
|
|
52230
|
-
const youtubeUrl = pick(m.youtubeUrl, _optionalChain([item, 'optionalAccess',
|
|
52231
|
-
const highlightVideoUrl = pick(m.highlightVideoUrl, _optionalChain([item, 'optionalAccess',
|
|
52193
|
+
const videoUrl = pick(m.videoUrl, _optionalChain([item, 'optionalAccess', _1256 => _1256.custom_video_url]), _optionalChain([item, 'optionalAccess', _1257 => _1257.main_video_url]));
|
|
52194
|
+
const youtubeUrl = pick(m.youtubeUrl, _optionalChain([item, 'optionalAccess', _1258 => _1258.youtube_url]), _optionalChain([item, 'optionalAccess', _1259 => _1259.testimonial_video_url]));
|
|
52195
|
+
const highlightVideoUrl = pick(m.highlightVideoUrl, _optionalChain([item, 'optionalAccess', _1260 => _1260.highlight_video_url]));
|
|
52232
52196
|
const videoPoster = pick(
|
|
52233
52197
|
m.videoPoster,
|
|
52234
|
-
_optionalChain([item, 'optionalAccess',
|
|
52235
|
-
_optionalChain([item, 'optionalAccess',
|
|
52236
|
-
_optionalChain([item, 'optionalAccess',
|
|
52198
|
+
_optionalChain([item, 'optionalAccess', _1261 => _1261.main_video_thumbnail]),
|
|
52199
|
+
_optionalChain([item, 'optionalAccess', _1262 => _1262.highlight_video_thumbnail]),
|
|
52200
|
+
_optionalChain([item, 'optionalAccess', _1263 => _1263.featured_image])
|
|
52237
52201
|
);
|
|
52238
52202
|
if (videoUrl) out.videoUrl = videoUrl;
|
|
52239
52203
|
if (youtubeUrl) out.youtubeUrl = youtubeUrl;
|
|
@@ -52267,15 +52231,15 @@ function fetchedItemDisplayRef(item, chatRef) {
|
|
|
52267
52231
|
}
|
|
52268
52232
|
function fetchedFaqDisplayRef(item, chatRef) {
|
|
52269
52233
|
const it = item;
|
|
52270
|
-
const answer = typeof _optionalChain([it, 'optionalAccess',
|
|
52234
|
+
const answer = typeof _optionalChain([it, 'optionalAccess', _1264 => _1264.answer]) === "string" && it.answer.trim().length > 0 ? it.answer.trim() : null;
|
|
52271
52235
|
return {
|
|
52272
52236
|
type: "faq",
|
|
52273
52237
|
id: chatRef.id,
|
|
52274
52238
|
sourceRepo: chatRef.sourceRepo,
|
|
52275
|
-
title: typeof _optionalChain([it, 'optionalAccess',
|
|
52239
|
+
title: typeof _optionalChain([it, 'optionalAccess', _1265 => _1265.question]) === "string" && it.question ? it.question : chatRef.id,
|
|
52276
52240
|
url: _nullishCoalesce(chatRef.url, () => ( null)),
|
|
52277
52241
|
...answer ? { preview: answer.length > 400 ? `${answer.slice(0, 397)}\u2026` : answer } : {},
|
|
52278
|
-
metadata: typeof _optionalChain([it, 'optionalAccess',
|
|
52242
|
+
metadata: typeof _optionalChain([it, 'optionalAccess', _1266 => _1266.section]) === "string" && it.section ? { section: it.section } : {}
|
|
52279
52243
|
};
|
|
52280
52244
|
}
|
|
52281
52245
|
function HubspotTicketChatCard({
|
|
@@ -52283,8 +52247,8 @@ function HubspotTicketChatCard({
|
|
|
52283
52247
|
isNewTab,
|
|
52284
52248
|
discuss
|
|
52285
52249
|
}) {
|
|
52286
|
-
const status = typeof _optionalChain([chatRef, 'access',
|
|
52287
|
-
const statusLabel = typeof _optionalChain([chatRef, 'access',
|
|
52250
|
+
const status = typeof _optionalChain([chatRef, 'access', _1267 => _1267.metadata, 'optionalAccess', _1268 => _1268.status]) === "string" ? chatRef.metadata.status : void 0;
|
|
52251
|
+
const statusLabel = typeof _optionalChain([chatRef, 'access', _1269 => _1269.metadata, 'optionalAccess', _1270 => _1270.statusLabel]) === "string" ? chatRef.metadata.statusLabel : void 0;
|
|
52288
52252
|
const statusText = _nullishCoalesce(statusLabel, () => ( formatStatusToken(status)));
|
|
52289
52253
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52290
52254
|
MingoInfoCard,
|
|
@@ -52307,7 +52271,7 @@ function FaqChatCard({
|
|
|
52307
52271
|
isNewTab,
|
|
52308
52272
|
discuss
|
|
52309
52273
|
}) {
|
|
52310
|
-
const section = typeof _optionalChain([chatRef, 'access',
|
|
52274
|
+
const section = typeof _optionalChain([chatRef, 'access', _1271 => _1271.metadata, 'optionalAccess', _1272 => _1272.section]) === "string" ? chatRef.metadata.section.trim() : void 0;
|
|
52311
52275
|
const statusLabel = section && section.length > 0 ? section : "FAQ";
|
|
52312
52276
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52313
52277
|
MingoInfoCard,
|
|
@@ -52327,7 +52291,7 @@ function SlackChatCard({
|
|
|
52327
52291
|
isNewTab,
|
|
52328
52292
|
discuss
|
|
52329
52293
|
}) {
|
|
52330
|
-
const channelName = typeof _optionalChain([chatRef, 'access',
|
|
52294
|
+
const channelName = typeof _optionalChain([chatRef, 'access', _1273 => _1273.metadata, 'optionalAccess', _1274 => _1274.channelName]) === "string" ? chatRef.metadata.channelName.trim() : void 0;
|
|
52331
52295
|
const channelPretty = channelName ? channelName.startsWith("#") ? channelName : `#${channelName}` : void 0;
|
|
52332
52296
|
const title = channelPretty ? `${chatRef.title} \xB7 ${channelPretty}` : chatRef.title;
|
|
52333
52297
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -52367,7 +52331,7 @@ function GenericFinancialChatCard({
|
|
|
52367
52331
|
isNewTab,
|
|
52368
52332
|
discuss
|
|
52369
52333
|
}) {
|
|
52370
|
-
const subtitle = typeof _optionalChain([chatRef, 'access',
|
|
52334
|
+
const subtitle = typeof _optionalChain([chatRef, 'access', _1275 => _1275.metadata, 'optionalAccess', _1276 => _1276.subtitle]) === "string" ? chatRef.metadata.subtitle : void 0;
|
|
52371
52335
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52372
52336
|
MingoInfoCard,
|
|
52373
52337
|
{
|
|
@@ -52436,12 +52400,12 @@ function ProductReleaseChatCard({
|
|
|
52436
52400
|
discuss
|
|
52437
52401
|
}) {
|
|
52438
52402
|
const releaseProps = buildProps(item);
|
|
52439
|
-
const status = _optionalChain([item, 'optionalAccess',
|
|
52403
|
+
const status = _optionalChain([item, 'optionalAccess', _1277 => _1277.version]) ? { label: String(item.version), variant: "grey" } : { label: "Release", variant: "grey" };
|
|
52440
52404
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52441
52405
|
EntityMingoCard,
|
|
52442
52406
|
{
|
|
52443
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52444
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
52407
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1278 => _1278.title]), () => ( "")),
|
|
52408
|
+
description: _optionalChain([item, 'optionalAccess', _1279 => _1279.summary]) || releaseProps.formattedDate || void 0,
|
|
52445
52409
|
cover: releaseProps.coverImage || void 0,
|
|
52446
52410
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.Rocket02Icon, { size: 24 }),
|
|
52447
52411
|
status,
|
|
@@ -52458,17 +52422,17 @@ function CampaignChatCard({
|
|
|
52458
52422
|
isNewTab,
|
|
52459
52423
|
discuss
|
|
52460
52424
|
}) {
|
|
52461
|
-
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess',
|
|
52425
|
+
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _1280 => _1280.goals])) ? item.goals.length : 0;
|
|
52462
52426
|
const meta = [
|
|
52463
|
-
_optionalChain([item, 'optionalAccess',
|
|
52427
|
+
_optionalChain([item, 'optionalAccess', _1281 => _1281.start_date]) ? formatDateShort(item.start_date) : null,
|
|
52464
52428
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
52465
52429
|
"Marketing campaign"
|
|
52466
52430
|
].filter(Boolean).join(" \xB7 ");
|
|
52467
52431
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52468
52432
|
EntityMingoCard,
|
|
52469
52433
|
{
|
|
52470
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52471
|
-
description: meta || _optionalChain([item, 'optionalAccess',
|
|
52434
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1282 => _1282.name]), () => ( "")),
|
|
52435
|
+
description: meta || _optionalChain([item, 'optionalAccess', _1283 => _1283.description]) || void 0,
|
|
52472
52436
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.Megaphone01Icon, { size: 24 }),
|
|
52473
52437
|
chatRef,
|
|
52474
52438
|
isNewTab,
|
|
@@ -52523,14 +52487,14 @@ function BlogChatCard({
|
|
|
52523
52487
|
hasEmbeddedVideo,
|
|
52524
52488
|
discuss
|
|
52525
52489
|
}) {
|
|
52526
|
-
const category = Array.isArray(_optionalChain([item, 'optionalAccess',
|
|
52490
|
+
const category = Array.isArray(_optionalChain([item, 'optionalAccess', _1284 => _1284.categories])) ? _optionalChain([item, 'access', _1285 => _1285.categories, 'access', _1286 => _1286.find, 'call', _1287 => _1287((c) => c && c.name), 'optionalAccess', _1288 => _1288.name]) : void 0;
|
|
52527
52491
|
const status = hasEmbeddedVideo ? { label: "Video", variant: "primary" } : category ? { label: category, variant: "grey" } : void 0;
|
|
52528
52492
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52529
52493
|
EntityMingoCard,
|
|
52530
52494
|
{
|
|
52531
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52532
|
-
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52533
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
52495
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1289 => _1289.title]), () => ( "")),
|
|
52496
|
+
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1290 => _1290.summary]), () => ( void 0)),
|
|
52497
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _1291 => _1291.featured_image]), ogPlaceholder),
|
|
52534
52498
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.NewspaperIcon, { size: 24 }),
|
|
52535
52499
|
status,
|
|
52536
52500
|
chatRef,
|
|
@@ -52547,13 +52511,13 @@ function CaseStudyChatCard({
|
|
|
52547
52511
|
ogPlaceholder,
|
|
52548
52512
|
discuss
|
|
52549
52513
|
}) {
|
|
52550
|
-
const meta = [_optionalChain([item, 'optionalAccess',
|
|
52514
|
+
const meta = [_optionalChain([item, 'optionalAccess', _1292 => _1292.msp, 'optionalAccess', _1293 => _1293.name]), _optionalChain([item, 'optionalAccess', _1294 => _1294.user, 'optionalAccess', _1295 => _1295.full_name])].filter(Boolean).join(" \xB7 ");
|
|
52551
52515
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52552
52516
|
EntityMingoCard,
|
|
52553
52517
|
{
|
|
52554
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52555
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
52556
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
52518
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1296 => _1296.title]), () => ( "")),
|
|
52519
|
+
description: _optionalChain([item, 'optionalAccess', _1297 => _1297.summary]) || meta || void 0,
|
|
52520
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _1298 => _1298.featured_image]), ogPlaceholder),
|
|
52557
52521
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.TrophyIcon, { size: 24 }),
|
|
52558
52522
|
status: { label: "Case study", variant: "grey" },
|
|
52559
52523
|
chatRef,
|
|
@@ -52570,13 +52534,13 @@ function CustomerInterviewChatCard({
|
|
|
52570
52534
|
ogPlaceholder,
|
|
52571
52535
|
discuss
|
|
52572
52536
|
}) {
|
|
52573
|
-
const meta = [_optionalChain([item, 'optionalAccess',
|
|
52537
|
+
const meta = [_optionalChain([item, 'optionalAccess', _1299 => _1299.user, 'optionalAccess', _1300 => _1300.full_name]), _optionalChain([item, 'optionalAccess', _1301 => _1301.msp, 'optionalAccess', _1302 => _1302.name])].filter(Boolean).join(" \xB7 ");
|
|
52574
52538
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52575
52539
|
EntityMingoCard,
|
|
52576
52540
|
{
|
|
52577
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52578
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
52579
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
52541
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1303 => _1303.title]), () => ( "")),
|
|
52542
|
+
description: _optionalChain([item, 'optionalAccess', _1304 => _1304.video_summary]) || meta || void 0,
|
|
52543
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _1305 => _1305.featured_image]), ogPlaceholder),
|
|
52580
52544
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.MicrophoneIcon, { size: 24 }),
|
|
52581
52545
|
status: { label: "Interview", variant: "grey" },
|
|
52582
52546
|
chatRef,
|
|
@@ -52593,13 +52557,13 @@ function InvestorUpdateChatCard({
|
|
|
52593
52557
|
ogPlaceholder,
|
|
52594
52558
|
discuss
|
|
52595
52559
|
}) {
|
|
52596
|
-
const title = _optionalChain([item, 'optionalAccess',
|
|
52560
|
+
const title = _optionalChain([item, 'optionalAccess', _1306 => _1306.title]) || `Update #${_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1307 => _1307.update_number]), () => ( "?"))}`;
|
|
52597
52561
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52598
52562
|
EntityMingoCard,
|
|
52599
52563
|
{
|
|
52600
52564
|
title,
|
|
52601
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
52602
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
52565
|
+
description: _optionalChain([item, 'optionalAccess', _1308 => _1308.strategic_update]) || _optionalChain([item, 'optionalAccess', _1309 => _1309.content]) || formatInvestorUpdatePeriod(_optionalChain([item, 'optionalAccess', _1310 => _1310.period_start]), _optionalChain([item, 'optionalAccess', _1311 => _1311.period_end])) || void 0,
|
|
52566
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _1312 => _1312.featured_image]), ogPlaceholder),
|
|
52603
52567
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.PresentationLineIcon, { size: 24 }),
|
|
52604
52568
|
status: { label: "Investor update", variant: "grey" },
|
|
52605
52569
|
chatRef,
|
|
@@ -52616,12 +52580,12 @@ function OnboardingGuideChatCard({
|
|
|
52616
52580
|
ogPlaceholder,
|
|
52617
52581
|
discuss
|
|
52618
52582
|
}) {
|
|
52619
|
-
const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess',
|
|
52583
|
+
const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess', _1313 => _1313.featured_image])), () => ( entityCover(_optionalChain([item, 'optionalAccess', _1314 => _1314.main_video_thumbnail])))), () => ( entityCover(_optionalChain([item, 'optionalAccess', _1315 => _1315.og_image_url]), ogPlaceholder)));
|
|
52620
52584
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52621
52585
|
EntityMingoCard,
|
|
52622
52586
|
{
|
|
52623
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52624
|
-
description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52587
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1316 => _1316.title]), () => ( "")),
|
|
52588
|
+
description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1317 => _1317.summary]), () => ( _optionalChain([item, 'optionalAccess', _1318 => _1318.description]))), () => ( void 0)),
|
|
52625
52589
|
cover,
|
|
52626
52590
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.CompassIcon, { size: 24 }),
|
|
52627
52591
|
status: { label: "Guide", variant: "grey" },
|
|
@@ -52642,25 +52606,25 @@ function ProgramChatCard({
|
|
|
52642
52606
|
discuss
|
|
52643
52607
|
}) {
|
|
52644
52608
|
const icon = configKey === "webinar" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.PresentationBarIcon, { size: 24 }) : configKey === "event" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.CalendarIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.MicrophoneIcon, { size: 24 });
|
|
52645
|
-
const isScheduled = _optionalChain([item, 'optionalAccess',
|
|
52609
|
+
const isScheduled = _optionalChain([item, 'optionalAccess', _1319 => _1319.status]) === "scheduled";
|
|
52646
52610
|
let typeMeta;
|
|
52647
|
-
if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess',
|
|
52611
|
+
if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess', _1320 => _1320.duration_seconds]) === "number" && item.duration_seconds > 0 && !isScheduled) {
|
|
52648
52612
|
typeMeta = formatDurationCompact(item.duration_seconds);
|
|
52649
|
-
} else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess',
|
|
52613
|
+
} else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess', _1321 => _1321.location_name]) === "string" && item.location_name.trim().length > 0) {
|
|
52650
52614
|
typeMeta = item.location_name;
|
|
52651
|
-
} else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess',
|
|
52615
|
+
} else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess', _1322 => _1322.start_at])) {
|
|
52652
52616
|
const time = formatTimeWithTimezone(item.start_at, _nullishCoalesce(item.timezone, () => ( null)));
|
|
52653
52617
|
const dur = formatDurationFromRange(item.start_at, item.end_at);
|
|
52654
52618
|
typeMeta = dur ? `${time} \xB7 ${dur}` : time;
|
|
52655
52619
|
}
|
|
52656
|
-
const itemDate = formatDateUTC(_nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52620
|
+
const itemDate = formatDateUTC(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1323 => _1323.date]), () => ( null)), { fallback: "", timezone: "local" });
|
|
52657
52621
|
const meta = [itemDate, typeMeta].filter(Boolean).join(" \xB7 ");
|
|
52658
52622
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52659
52623
|
EntityMingoCard,
|
|
52660
52624
|
{
|
|
52661
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52662
|
-
description: meta || _optionalChain([item, 'optionalAccess',
|
|
52663
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
52625
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1324 => _1324.title]), () => ( "")),
|
|
52626
|
+
description: meta || _optionalChain([item, 'optionalAccess', _1325 => _1325.description]) || void 0,
|
|
52627
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _1326 => _1326.cover_url]), ogPlaceholder),
|
|
52664
52628
|
fallbackIcon: icon,
|
|
52665
52629
|
status: { label, variant: "grey" },
|
|
52666
52630
|
chatRef,
|
|
@@ -52677,10 +52641,10 @@ function RoadmapChatCard({
|
|
|
52677
52641
|
cardType,
|
|
52678
52642
|
discuss
|
|
52679
52643
|
}) {
|
|
52680
|
-
const logoUrl = typeof _optionalChain([item, 'optionalAccess',
|
|
52681
|
-
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess',
|
|
52644
|
+
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _1327 => _1327.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
52645
|
+
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _1328 => _1328.customItemId]) != null;
|
|
52682
52646
|
const defaultIcon = cardType === "delivery_item" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.TruckFastIcon, { size: 24 }) : cardType === "internal_task" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.CheckSquareIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.MapIcon, { size: 24 });
|
|
52683
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess',
|
|
52647
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _1329 => _1329.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
52684
52648
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
52685
52649
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
52686
52650
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: logoUrl, alt: "", className: "size-6 object-contain" })
|
|
@@ -52691,10 +52655,10 @@ function RoadmapChatCard({
|
|
|
52691
52655
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52692
52656
|
EntityMingoCard,
|
|
52693
52657
|
{
|
|
52694
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52695
|
-
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52658
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1330 => _1330.title]), () => ( "")),
|
|
52659
|
+
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1331 => _1331.description]), () => ( void 0)),
|
|
52696
52660
|
fallbackIcon: icon,
|
|
52697
|
-
status: statusPill(_optionalChain([item, 'optionalAccess',
|
|
52661
|
+
status: statusPill(_optionalChain([item, 'optionalAccess', _1332 => _1332.status])),
|
|
52698
52662
|
chatRef,
|
|
52699
52663
|
isNewTab,
|
|
52700
52664
|
discuss,
|
|
@@ -52710,7 +52674,7 @@ function refHydratedEntry(docType, label, renderRef) {
|
|
|
52710
52674
|
bareInline: true,
|
|
52711
52675
|
contentRefType: docType,
|
|
52712
52676
|
noComposedHref: true,
|
|
52713
|
-
fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52677
|
+
fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1333 => _1333.url]), () => ( null)),
|
|
52714
52678
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCardSkeleton, {}),
|
|
52715
52679
|
render: (item, chatRef, opts) => renderRef(fetchedItemDisplayRef(item, chatRef), opts)
|
|
52716
52680
|
};
|
|
@@ -52783,7 +52747,7 @@ function programRegistryEntries() {
|
|
|
52783
52747
|
discuss: opts.discuss,
|
|
52784
52748
|
configKey: cfg.configKey,
|
|
52785
52749
|
label: cfg.configKey.charAt(0).toUpperCase() + cfg.configKey.slice(1),
|
|
52786
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
52750
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1334 => _1334.extras, 'optionalAccess', _1335 => _1335.buildOgPlaceholderUrl, 'optionalCall', _1336 => _1336(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1337 => _1337.title]), () => ( "")))]), () => ( null))
|
|
52787
52751
|
}
|
|
52788
52752
|
)
|
|
52789
52753
|
}));
|
|
@@ -52804,7 +52768,7 @@ var ROADMAP_CARD_CONFIGS = {
|
|
|
52804
52768
|
// The card's destination IS the ClickUp deep link, derived from the
|
|
52805
52769
|
// task id post-fetch (the refs frame used to carry it).
|
|
52806
52770
|
noComposedHref: true,
|
|
52807
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
52771
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _1338 => _1338.id]) != null ? clickupTaskUrl(String(item.id)) : null
|
|
52808
52772
|
}
|
|
52809
52773
|
};
|
|
52810
52774
|
function roadmapRegistryEntries() {
|
|
@@ -52846,8 +52810,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
52846
52810
|
DeletedDataCard,
|
|
52847
52811
|
{
|
|
52848
52812
|
title: chatRef.title && chatRef.title !== chatRef.id ? chatRef.title : null,
|
|
52849
|
-
entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access',
|
|
52850
|
-
recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access',
|
|
52813
|
+
entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access', _1339 => _1339.metadata, 'optionalAccess', _1340 => _1340.entity_label]), () => ( null)),
|
|
52814
|
+
recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access', _1341 => _1341.metadata, 'optionalAccess', _1342 => _1342.recovery_note]), () => ( null))
|
|
52851
52815
|
}
|
|
52852
52816
|
)
|
|
52853
52817
|
},
|
|
@@ -52861,7 +52825,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
52861
52825
|
bareInline: true,
|
|
52862
52826
|
contentRefType: "faq",
|
|
52863
52827
|
noComposedHref: true,
|
|
52864
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
52828
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _1343 => _1343.id]) != null ? `/faqs#${faqItemAnchor(item.id)}` : null,
|
|
52865
52829
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCardSkeleton, {}),
|
|
52866
52830
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52867
52831
|
FaqChatCard,
|
|
@@ -52945,8 +52909,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
52945
52909
|
chatRef,
|
|
52946
52910
|
isNewTab: opts.isNewTab,
|
|
52947
52911
|
discuss: opts.discuss,
|
|
52948
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
52949
|
-
hasEmbeddedVideo: _optionalChain([chatRef, 'access',
|
|
52912
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1344 => _1344.extras, 'optionalAccess', _1345 => _1345.buildOgPlaceholderUrl, 'optionalCall', _1346 => _1346(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1347 => _1347.title]), () => ( "")))]), () => ( null)),
|
|
52913
|
+
hasEmbeddedVideo: _optionalChain([chatRef, 'access', _1348 => _1348.metadata, 'optionalAccess', _1349 => _1349.hasEmbeddedVideo]) === true
|
|
52950
52914
|
}
|
|
52951
52915
|
)
|
|
52952
52916
|
},
|
|
@@ -52962,7 +52926,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
52962
52926
|
chatRef,
|
|
52963
52927
|
isNewTab: opts.isNewTab,
|
|
52964
52928
|
discuss: opts.discuss,
|
|
52965
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
52929
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1350 => _1350.extras, 'optionalAccess', _1351 => _1351.buildOgPlaceholderUrl, 'optionalCall', _1352 => _1352(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1353 => _1353.title]), () => ( "")))]), () => ( null))
|
|
52966
52930
|
}
|
|
52967
52931
|
)
|
|
52968
52932
|
},
|
|
@@ -52978,7 +52942,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
52978
52942
|
chatRef,
|
|
52979
52943
|
isNewTab: opts.isNewTab,
|
|
52980
52944
|
discuss: opts.discuss,
|
|
52981
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
52945
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1354 => _1354.extras, 'optionalAccess', _1355 => _1355.buildOgPlaceholderUrl, 'optionalCall', _1356 => _1356(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1357 => _1357.title]), () => ( "")))]), () => ( null))
|
|
52982
52946
|
}
|
|
52983
52947
|
)
|
|
52984
52948
|
},
|
|
@@ -52988,7 +52952,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
52988
52952
|
bareInline: true,
|
|
52989
52953
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ProductReleaseCardSkeleton, { size: "sm" }),
|
|
52990
52954
|
render: (item, chatRef, opts) => {
|
|
52991
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
52955
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1358 => _1358.extras, 'optionalAccess', _1359 => _1359.buildProductReleaseCardProps]), () => ( defaultBuildProductReleaseCardProps));
|
|
52992
52956
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52993
52957
|
ProductReleaseChatCard,
|
|
52994
52958
|
{
|
|
@@ -53014,7 +52978,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
53014
52978
|
chatRef,
|
|
53015
52979
|
isNewTab: opts.isNewTab,
|
|
53016
52980
|
discuss: opts.discuss,
|
|
53017
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
52981
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1360 => _1360.extras, 'optionalAccess', _1361 => _1361.buildOgPlaceholderUrl, 'optionalCall', _1362 => _1362(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1363 => _1363.title]), () => ( "")))]), () => ( null))
|
|
53018
52982
|
}
|
|
53019
52983
|
)
|
|
53020
52984
|
},
|
|
@@ -53032,7 +52996,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
53032
52996
|
chatRef,
|
|
53033
52997
|
isNewTab: opts.isNewTab,
|
|
53034
52998
|
discuss: opts.discuss,
|
|
53035
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
52999
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1364 => _1364.extras, 'optionalAccess', _1365 => _1365.buildOgPlaceholderUrl, 'optionalCall', _1366 => _1366(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1367 => _1367.title]), () => ( "")))]), () => ( null))
|
|
53036
53000
|
}
|
|
53037
53001
|
)
|
|
53038
53002
|
},
|
|
@@ -53043,7 +53007,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
53043
53007
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignCardAdminSkeleton, {}),
|
|
53044
53008
|
// No public viewer — synthesize the hub-internal admin URL post-fetch
|
|
53045
53009
|
// so the wrapper + isNewTab computation see the actual destination.
|
|
53046
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
53010
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _1368 => _1368.id]) ? `/admin/campaigns/${encodeURIComponent(item.id)}` : null,
|
|
53047
53011
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53048
53012
|
CampaignChatCard,
|
|
53049
53013
|
{
|
|
@@ -53070,13 +53034,13 @@ function ChatCardNavWrap({
|
|
|
53070
53034
|
if (!href) return;
|
|
53071
53035
|
const targetEl = e.target;
|
|
53072
53036
|
const host = e.currentTarget;
|
|
53073
|
-
if (!_optionalChain([host, 'optionalAccess',
|
|
53074
|
-
if (_optionalChain([targetEl, 'optionalAccess',
|
|
53075
|
-
if (!_optionalChain([targetEl, 'optionalAccess',
|
|
53037
|
+
if (!_optionalChain([host, 'optionalAccess', _1369 => _1369.contains, 'call', _1370 => _1370(targetEl)])) return;
|
|
53038
|
+
if (_optionalChain([targetEl, 'optionalAccess', _1371 => _1371.closest, 'optionalCall', _1372 => _1372("button")])) return;
|
|
53039
|
+
if (!_optionalChain([targetEl, 'optionalAccess', _1373 => _1373.closest, 'optionalCall', _1374 => _1374("a")])) return;
|
|
53076
53040
|
const handled = handleChatNavClick(e, runtime, { href, path, targetPlatform }, router.push);
|
|
53077
53041
|
if (!handled) return;
|
|
53078
53042
|
e.stopPropagation();
|
|
53079
|
-
if (!isNewTab && _optionalChain([panel, 'optionalAccess',
|
|
53043
|
+
if (!isNewTab && _optionalChain([panel, 'optionalAccess', _1375 => _1375.closeChat])) panel.closeChat();
|
|
53080
53044
|
};
|
|
53081
53045
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "contents", onClickCapture, children });
|
|
53082
53046
|
}
|
|
@@ -53098,7 +53062,7 @@ function ChatCardLoader({
|
|
|
53098
53062
|
title: chatRef.title,
|
|
53099
53063
|
externalUrl: chatRef.url,
|
|
53100
53064
|
targetPlatform: chatRef.targetPlatform,
|
|
53101
|
-
path: typeof _optionalChain([chatRef, 'access',
|
|
53065
|
+
path: typeof _optionalChain([chatRef, 'access', _1376 => _1376.metadata, 'optionalAccess', _1377 => _1377.path]) === "string" ? chatRef.metadata.path : null
|
|
53102
53066
|
},
|
|
53103
53067
|
sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform })
|
|
53104
53068
|
);
|
|
@@ -53112,11 +53076,11 @@ function ChatCardLoader({
|
|
|
53112
53076
|
const entry = CHAT_CARD_REGISTRY[resolvedChatRef.type];
|
|
53113
53077
|
const fetchEntry = entry && entry.contentRefType ? entry : null;
|
|
53114
53078
|
const { item, isLoading, isError, isFetched } = useChatCardItem(
|
|
53115
|
-
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess',
|
|
53079
|
+
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _1378 => _1378.contentRefType]), () => ( "")),
|
|
53116
53080
|
fetchEntry ? resolvedChatRef.id : ""
|
|
53117
53081
|
);
|
|
53118
53082
|
if (!entry) return null;
|
|
53119
|
-
const composedHref = _optionalChain([fetchEntry, 'optionalAccess',
|
|
53083
|
+
const composedHref = _optionalChain([fetchEntry, 'optionalAccess', _1379 => _1379.contentRefType]) && !resolvedChatRef.url && item && !fetchEntry.fallbackHref && !fetchEntry.noComposedHref ? resolveFetchedCardHref({
|
|
53120
53084
|
contentRefType: fetchEntry.contentRefType,
|
|
53121
53085
|
id: resolvedChatRef.id,
|
|
53122
53086
|
item,
|
|
@@ -53155,7 +53119,7 @@ function ChatCardLoader({
|
|
|
53155
53119
|
isNewTab,
|
|
53156
53120
|
discuss
|
|
53157
53121
|
};
|
|
53158
|
-
const path = typeof _optionalChain([finalChatRef, 'access',
|
|
53122
|
+
const path = typeof _optionalChain([finalChatRef, 'access', _1380 => _1380.metadata, 'optionalAccess', _1381 => _1381.path]) === "string" ? finalChatRef.metadata.path : null;
|
|
53159
53123
|
const navWrap = (children) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53160
53124
|
ChatCardNavWrap,
|
|
53161
53125
|
{
|
|
@@ -53179,7 +53143,7 @@ function ChatCardLoader({
|
|
|
53179
53143
|
if (!fetchEntry) {
|
|
53180
53144
|
return finish(entry.render(void 0, finalChatRef, renderOpts));
|
|
53181
53145
|
}
|
|
53182
|
-
if (isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([fetchEntry, 'access',
|
|
53146
|
+
if (isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([fetchEntry, 'access', _1382 => _1382.skeleton, 'optionalCall', _1383 => _1383()]), () => ( null)) });
|
|
53183
53147
|
if (!item) {
|
|
53184
53148
|
if (isError) {
|
|
53185
53149
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardLoadFailure, { label: entry.label, id: finalChatRef.id, detail: "Failed to load" });
|
|
@@ -53442,7 +53406,7 @@ function useChunkCatchup({
|
|
|
53442
53406
|
console.error("Error during chunk catchup:", error);
|
|
53443
53407
|
} finally {
|
|
53444
53408
|
if (dialogId2 !== dialogIdRef.current) {
|
|
53445
|
-
if (_optionalChain([pendingCatchupRef, 'access',
|
|
53409
|
+
if (_optionalChain([pendingCatchupRef, 'access', _1384 => _1384.current, 'optionalAccess', _1385 => _1385.dialogId]) === dialogId2) {
|
|
53446
53410
|
pendingCatchupRef.current = null;
|
|
53447
53411
|
}
|
|
53448
53412
|
} else {
|
|
@@ -53455,7 +53419,7 @@ function useChunkCatchup({
|
|
|
53455
53419
|
lastFetchParams.current = null;
|
|
53456
53420
|
bufferUntilInitialCatchupComplete.current = true;
|
|
53457
53421
|
try {
|
|
53458
|
-
await _optionalChain([catchUpChunksRef, 'access',
|
|
53422
|
+
await _optionalChain([catchUpChunksRef, 'access', _1386 => _1386.current, 'optionalCall', _1387 => _1387(pending.fromSequenceId)]);
|
|
53459
53423
|
} catch (rerunError) {
|
|
53460
53424
|
console.error("Queued catch-up re-run failed:", rerunError);
|
|
53461
53425
|
}
|
|
@@ -53519,7 +53483,7 @@ function useChunkCatchup({
|
|
|
53519
53483
|
|
|
53520
53484
|
var EMPTY_FRAME = { messages: [], phase: "idle", typing: false, delayMs: 0 };
|
|
53521
53485
|
function prefersReducedMotion() {
|
|
53522
|
-
return typeof window !== "undefined" && _optionalChain([window, 'access',
|
|
53486
|
+
return typeof window !== "undefined" && _optionalChain([window, 'access', _1388 => _1388.matchMedia, 'optionalCall', _1389 => _1389("(prefers-reduced-motion: reduce)"), 'access', _1390 => _1390.matches]) === true;
|
|
53523
53487
|
}
|
|
53524
53488
|
function useScriptedStream(frames, resetKey, enabled = true) {
|
|
53525
53489
|
const [index, setIndex] = _react.useState.call(void 0, 0);
|
|
@@ -53531,7 +53495,7 @@ function useScriptedStream(frames, resetKey, enabled = true) {
|
|
|
53531
53495
|
}
|
|
53532
53496
|
_react.useEffect.call(void 0, () => {
|
|
53533
53497
|
setReducedMotion(prefersReducedMotion());
|
|
53534
|
-
const mq = _optionalChain([window, 'access',
|
|
53498
|
+
const mq = _optionalChain([window, 'access', _1391 => _1391.matchMedia, 'optionalCall', _1392 => _1392("(prefers-reduced-motion: reduce)")]);
|
|
53535
53499
|
if (!mq) return;
|
|
53536
53500
|
const onChange = () => setReducedMotion(mq.matches);
|
|
53537
53501
|
mq.addEventListener("change", onChange);
|
|
@@ -53667,7 +53631,7 @@ function useJetStreamDialogSubscription({
|
|
|
53667
53631
|
const lifecycle = _chunkKQKU4VXBcjs.startConnectionLifecycle.call(void 0, {
|
|
53668
53632
|
conn: sharedConn,
|
|
53669
53633
|
wsUrl,
|
|
53670
|
-
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access',
|
|
53634
|
+
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _1393 => _1393.current, 'optionalCall', _1394 => _1394()]),
|
|
53671
53635
|
backoff: reconnectionBackoffRef.current,
|
|
53672
53636
|
getFreshUrl: () => getNatsWsUrlRef.current(),
|
|
53673
53637
|
// JetStream emits 'error' for protocol-level failures (e.g. -ERR Permissions
|
|
@@ -53682,7 +53646,7 @@ function useJetStreamDialogSubscription({
|
|
|
53682
53646
|
setReconnectionCount((c) => c + 1);
|
|
53683
53647
|
}
|
|
53684
53648
|
hadConnectionBeforeRef.current = true;
|
|
53685
|
-
_optionalChain([onConnectRef, 'access',
|
|
53649
|
+
_optionalChain([onConnectRef, 'access', _1395 => _1395.current, 'optionalCall', _1396 => _1396()]);
|
|
53686
53650
|
}
|
|
53687
53651
|
if (status === "error") {
|
|
53688
53652
|
console.warn("[JetStream] NATS protocol error:", evt.data);
|
|
@@ -53692,7 +53656,7 @@ function useJetStreamDialogSubscription({
|
|
|
53692
53656
|
setIsConnected(false);
|
|
53693
53657
|
setIsSubscribed(false);
|
|
53694
53658
|
tearDownSubscription();
|
|
53695
|
-
_optionalChain([onDisconnectRef, 'access',
|
|
53659
|
+
_optionalChain([onDisconnectRef, 'access', _1397 => _1397.current, 'optionalCall', _1398 => _1398()]);
|
|
53696
53660
|
}
|
|
53697
53661
|
}
|
|
53698
53662
|
});
|
|
@@ -53821,7 +53785,7 @@ function useJetStreamDialogSubscription({
|
|
|
53821
53785
|
}
|
|
53822
53786
|
subscriptionRef.current = handle;
|
|
53823
53787
|
setIsSubscribed(true);
|
|
53824
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
53788
|
+
_optionalChain([onSubscribedRef, 'access', _1399 => _1399.current, 'optionalCall', _1400 => _1400()]);
|
|
53825
53789
|
} catch (e90) {
|
|
53826
53790
|
if (!cancelled) {
|
|
53827
53791
|
setIsSubscribed(false);
|
|
@@ -53935,20 +53899,20 @@ function useNatsDialogSubscription({
|
|
|
53935
53899
|
const tearDownSubscriptions = () => {
|
|
53936
53900
|
subscriptionRefs.current.forEach((sub) => {
|
|
53937
53901
|
try {
|
|
53938
|
-
_optionalChain([sub, 'optionalAccess',
|
|
53902
|
+
_optionalChain([sub, 'optionalAccess', _1401 => _1401.unsubscribe, 'call', _1402 => _1402()]);
|
|
53939
53903
|
} catch (e92) {
|
|
53940
53904
|
}
|
|
53941
53905
|
});
|
|
53942
53906
|
subscriptionRefs.current.clear();
|
|
53943
53907
|
lastSubscribedDialogIdRef.current = null;
|
|
53944
|
-
_optionalChain([abortControllerRef, 'access',
|
|
53908
|
+
_optionalChain([abortControllerRef, 'access', _1403 => _1403.current, 'optionalAccess', _1404 => _1404.abort, 'call', _1405 => _1405()]);
|
|
53945
53909
|
abortControllerRef.current = null;
|
|
53946
53910
|
};
|
|
53947
53911
|
const isDisconnectStatus = (status) => status === "closed" || status === "disconnected";
|
|
53948
53912
|
const lifecycle = _chunkKQKU4VXBcjs.startConnectionLifecycle.call(void 0, {
|
|
53949
53913
|
conn: sharedConn,
|
|
53950
53914
|
wsUrl,
|
|
53951
|
-
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access',
|
|
53915
|
+
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _1406 => _1406.current, 'optionalCall', _1407 => _1407()]),
|
|
53952
53916
|
backoff: reconnectionBackoffRef.current,
|
|
53953
53917
|
getFreshUrl: () => getNatsWsUrlRef.current(),
|
|
53954
53918
|
shouldRetryOn: isDisconnectStatus,
|
|
@@ -53959,7 +53923,7 @@ function useNatsDialogSubscription({
|
|
|
53959
53923
|
setReconnectionCount((c) => c + 1);
|
|
53960
53924
|
}
|
|
53961
53925
|
hadConnectionBeforeRef.current = true;
|
|
53962
|
-
_optionalChain([onConnectRef, 'access',
|
|
53926
|
+
_optionalChain([onConnectRef, 'access', _1408 => _1408.current, 'optionalCall', _1409 => _1409()]);
|
|
53963
53927
|
}
|
|
53964
53928
|
if (status === "error") {
|
|
53965
53929
|
console.warn("[NATS] protocol error:", evt.data);
|
|
@@ -53969,7 +53933,7 @@ function useNatsDialogSubscription({
|
|
|
53969
53933
|
setIsConnected(false);
|
|
53970
53934
|
setIsSubscribed(false);
|
|
53971
53935
|
tearDownSubscriptions();
|
|
53972
|
-
_optionalChain([onDisconnectRef, 'access',
|
|
53936
|
+
_optionalChain([onDisconnectRef, 'access', _1410 => _1410.current, 'optionalCall', _1411 => _1411()]);
|
|
53973
53937
|
}
|
|
53974
53938
|
}
|
|
53975
53939
|
});
|
|
@@ -54002,13 +53966,13 @@ function useNatsDialogSubscription({
|
|
|
54002
53966
|
setIsSubscribed(false);
|
|
54003
53967
|
subscriptionRefs.current.forEach((sub) => {
|
|
54004
53968
|
try {
|
|
54005
|
-
_optionalChain([sub, 'optionalAccess',
|
|
53969
|
+
_optionalChain([sub, 'optionalAccess', _1412 => _1412.unsubscribe, 'call', _1413 => _1413()]);
|
|
54006
53970
|
} catch (e93) {
|
|
54007
53971
|
}
|
|
54008
53972
|
});
|
|
54009
53973
|
subscriptionRefs.current.clear();
|
|
54010
53974
|
lastSubscribedDialogIdRef.current = null;
|
|
54011
|
-
_optionalChain([abortControllerRef, 'access',
|
|
53975
|
+
_optionalChain([abortControllerRef, 'access', _1414 => _1414.current, 'optionalAccess', _1415 => _1415.abort, 'call', _1416 => _1416()]);
|
|
54012
53976
|
abortControllerRef.current = null;
|
|
54013
53977
|
}
|
|
54014
53978
|
return;
|
|
@@ -54020,12 +53984,12 @@ function useNatsDialogSubscription({
|
|
|
54020
53984
|
if (subscriptionRefs.current.size > 0) {
|
|
54021
53985
|
subscriptionRefs.current.forEach((sub) => {
|
|
54022
53986
|
try {
|
|
54023
|
-
_optionalChain([sub, 'optionalAccess',
|
|
53987
|
+
_optionalChain([sub, 'optionalAccess', _1417 => _1417.unsubscribe, 'call', _1418 => _1418()]);
|
|
54024
53988
|
} catch (e94) {
|
|
54025
53989
|
}
|
|
54026
53990
|
});
|
|
54027
53991
|
subscriptionRefs.current.clear();
|
|
54028
|
-
_optionalChain([abortControllerRef, 'access',
|
|
53992
|
+
_optionalChain([abortControllerRef, 'access', _1419 => _1419.current, 'optionalAccess', _1420 => _1420.abort, 'call', _1421 => _1421()]);
|
|
54029
53993
|
}
|
|
54030
53994
|
abortControllerRef.current = new AbortController();
|
|
54031
53995
|
const abort = abortControllerRef.current;
|
|
@@ -54057,7 +54021,7 @@ function useNatsDialogSubscription({
|
|
|
54057
54021
|
});
|
|
54058
54022
|
lastSubscribedDialogIdRef.current = dialogId;
|
|
54059
54023
|
setIsSubscribed(true);
|
|
54060
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
54024
|
+
_optionalChain([onSubscribedRef, 'access', _1422 => _1422.current, 'optionalCall', _1423 => _1423()]);
|
|
54061
54025
|
};
|
|
54062
54026
|
if (isConnectedRef.current) {
|
|
54063
54027
|
createSubscriptions();
|
|
@@ -54067,7 +54031,7 @@ function useNatsDialogSubscription({
|
|
|
54067
54031
|
abort.abort();
|
|
54068
54032
|
subscriptionRefs.current.forEach((sub) => {
|
|
54069
54033
|
try {
|
|
54070
|
-
_optionalChain([sub, 'optionalAccess',
|
|
54034
|
+
_optionalChain([sub, 'optionalAccess', _1424 => _1424.unsubscribe, 'call', _1425 => _1425()]);
|
|
54071
54035
|
} catch (e96) {
|
|
54072
54036
|
}
|
|
54073
54037
|
});
|
|
@@ -54108,7 +54072,7 @@ function useNatsDialogSubscription({
|
|
|
54108
54072
|
});
|
|
54109
54073
|
lastSubscribedDialogIdRef.current = dialogId2;
|
|
54110
54074
|
setIsSubscribed(true);
|
|
54111
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
54075
|
+
_optionalChain([onSubscribedRef, 'access', _1426 => _1426.current, 'optionalCall', _1427 => _1427()]);
|
|
54112
54076
|
} else if (subscriptionRefs.current.size > 0) {
|
|
54113
54077
|
setIsSubscribed(true);
|
|
54114
54078
|
}
|
|
@@ -54116,10 +54080,10 @@ function useNatsDialogSubscription({
|
|
|
54116
54080
|
return { isConnected, isSubscribed, reconnectionCount };
|
|
54117
54081
|
}
|
|
54118
54082
|
function buildNatsWsUrl(apiBaseUrl, options) {
|
|
54119
|
-
const path = _optionalChain([options, 'optionalAccess',
|
|
54083
|
+
const path = _optionalChain([options, 'optionalAccess', _1428 => _1428.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
|
|
54120
54084
|
const u = new URL(path, apiBaseUrl);
|
|
54121
54085
|
u.protocol = u.protocol === "https:" ? "wss:" : "ws:";
|
|
54122
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
54086
|
+
if (_optionalChain([options, 'optionalAccess', _1429 => _1429.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _1430 => _1430.token])) {
|
|
54123
54087
|
u.searchParams.set("authorization", options.token);
|
|
54124
54088
|
}
|
|
54125
54089
|
return u.toString();
|
|
@@ -54137,7 +54101,7 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
|
|
|
54137
54101
|
const data = await res.json();
|
|
54138
54102
|
return _nullishCoalesce(data.commands, () => ( []));
|
|
54139
54103
|
} catch (err) {
|
|
54140
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
54104
|
+
if (_optionalChain([err, 'optionalAccess', _1431 => _1431.name]) === "AbortError") throw err;
|
|
54141
54105
|
console.warn("[chat] slash-commands fetch failed, showing none:", err);
|
|
54142
54106
|
return [];
|
|
54143
54107
|
}
|
|
@@ -54158,7 +54122,7 @@ function useSlashCommands(prefix, commandsUrl) {
|
|
|
54158
54122
|
const next = await fetchSlashCommands(prefix, ctrl.signal, commandsUrl);
|
|
54159
54123
|
if (!cancelled) setCommands(next);
|
|
54160
54124
|
} catch (err) {
|
|
54161
|
-
if (!cancelled && _optionalChain([err, 'optionalAccess',
|
|
54125
|
+
if (!cancelled && _optionalChain([err, 'optionalAccess', _1432 => _1432.name]) !== "AbortError") {
|
|
54162
54126
|
console.warn("[use-slash-commands] fetch failed:", err);
|
|
54163
54127
|
}
|
|
54164
54128
|
} finally {
|
|
@@ -54177,7 +54141,7 @@ function useSlashCommandRegistry(commandsUrl, options) {
|
|
|
54177
54141
|
const query = _reactquery.useQuery.call(void 0, {
|
|
54178
54142
|
queryKey: ["chat-slash-commands", commandsUrl],
|
|
54179
54143
|
queryFn: ({ signal }) => fetchSlashCommands("", signal, commandsUrl),
|
|
54180
|
-
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
54144
|
+
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _1433 => _1433.enabled]), () => ( true)),
|
|
54181
54145
|
staleTime: Infinity,
|
|
54182
54146
|
gcTime: Infinity,
|
|
54183
54147
|
// The commands registry is non-critical chrome — a failure degrades to an
|
|
@@ -54216,21 +54180,21 @@ async function fetchEmptyStateConfig(signal, emptyStateUrl) {
|
|
|
54216
54180
|
}
|
|
54217
54181
|
const data = await res.json();
|
|
54218
54182
|
return {
|
|
54219
|
-
name: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
54220
|
-
icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
54221
|
-
greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
54222
|
-
enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
54223
|
-
quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
54224
|
-
suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
54183
|
+
name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1434 => _1434.name]), () => ( null)),
|
|
54184
|
+
icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1435 => _1435.icon]), () => ( null)),
|
|
54185
|
+
greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1436 => _1436.greeting]), () => ( null)),
|
|
54186
|
+
enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1437 => _1437.enabledRagTableIds]), () => ( [])),
|
|
54187
|
+
quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1438 => _1438.quickActions]), () => ( [])),
|
|
54188
|
+
suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1439 => _1439.suggestedQueries]), () => ( []))
|
|
54225
54189
|
};
|
|
54226
54190
|
} catch (err) {
|
|
54227
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
54191
|
+
if (_optionalChain([err, 'optionalAccess', _1440 => _1440.name]) === "AbortError") throw err;
|
|
54228
54192
|
console.warn("[chat] empty-state config fetch failed, using neutral defaults:", err);
|
|
54229
54193
|
return EMPTY_STATE_FALLBACK;
|
|
54230
54194
|
}
|
|
54231
54195
|
}
|
|
54232
54196
|
function useEmptyStateConfig(emptyStateUrl, options) {
|
|
54233
|
-
const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
54197
|
+
const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _1441 => _1441.enabled]), () => ( true))) && !!emptyStateUrl;
|
|
54234
54198
|
const query = _reactquery.useQuery.call(void 0, {
|
|
54235
54199
|
queryKey: ["chat-empty-state", emptyStateUrl],
|
|
54236
54200
|
queryFn: ({ signal }) => fetchEmptyStateConfig(signal, emptyStateUrl),
|
|
@@ -54259,7 +54223,7 @@ var CHAT_ATTACHMENT_MAX_SIZE_BYTES = 25 * 1024 * 1024;
|
|
|
54259
54223
|
var STORAGE_CACHE_CONTROL_IMMUTABLE = "public, max-age=31536000, immutable";
|
|
54260
54224
|
function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
54261
54225
|
return new Promise((resolve, reject) => {
|
|
54262
|
-
if (_optionalChain([signal, 'optionalAccess',
|
|
54226
|
+
if (_optionalChain([signal, 'optionalAccess', _1442 => _1442.aborted])) {
|
|
54263
54227
|
reject(new Error("Upload cancelled"));
|
|
54264
54228
|
return;
|
|
54265
54229
|
}
|
|
@@ -54273,7 +54237,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
|
54273
54237
|
xhr.removeEventListener("error", handleError);
|
|
54274
54238
|
xhr.removeEventListener("abort", handleAbort);
|
|
54275
54239
|
xhr.removeEventListener("timeout", handleTimeout);
|
|
54276
|
-
_optionalChain([signal, 'optionalAccess',
|
|
54240
|
+
_optionalChain([signal, 'optionalAccess', _1443 => _1443.removeEventListener, 'call', _1444 => _1444("abort", handleSignalAbort)]);
|
|
54277
54241
|
if (xhr.readyState !== XMLHttpRequest.DONE) xhr.abort();
|
|
54278
54242
|
};
|
|
54279
54243
|
const handleProgress = (event) => {
|
|
@@ -54309,7 +54273,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
|
54309
54273
|
const handleSignalAbort = () => {
|
|
54310
54274
|
xhr.abort();
|
|
54311
54275
|
};
|
|
54312
|
-
_optionalChain([signal, 'optionalAccess',
|
|
54276
|
+
_optionalChain([signal, 'optionalAccess', _1445 => _1445.addEventListener, 'call', _1446 => _1446("abort", handleSignalAbort, { once: true })]);
|
|
54313
54277
|
xhr.upload.addEventListener("progress", handleProgress);
|
|
54314
54278
|
xhr.addEventListener("load", handleLoad);
|
|
54315
54279
|
xhr.addEventListener("error", handleError);
|
|
@@ -54353,12 +54317,12 @@ function useChatAttachments() {
|
|
|
54353
54317
|
try {
|
|
54354
54318
|
sniffed = await _filetype.fileTypeFromBlob.call(void 0, att.file);
|
|
54355
54319
|
} catch (err) {
|
|
54356
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
54320
|
+
if (_optionalChain([ctrl, 'optionalAccess', _1447 => _1447.signal, 'access', _1448 => _1448.aborted])) return;
|
|
54357
54321
|
throw new Error(
|
|
54358
54322
|
`Could not read file content: ${err instanceof Error ? err.message : String(err)}`
|
|
54359
54323
|
);
|
|
54360
54324
|
}
|
|
54361
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
54325
|
+
if (_optionalChain([ctrl, 'optionalAccess', _1449 => _1449.signal, 'access', _1450 => _1450.aborted])) return;
|
|
54362
54326
|
if (!sniffed) {
|
|
54363
54327
|
throw new Error("Unrecognized file format");
|
|
54364
54328
|
}
|
|
@@ -54372,7 +54336,7 @@ function useChatAttachments() {
|
|
|
54372
54336
|
const urlResp = await _chunk5RJUHUCIcjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
|
|
54373
54337
|
method: "POST",
|
|
54374
54338
|
headers: { "Content-Type": "application/json" },
|
|
54375
|
-
signal: _optionalChain([ctrl, 'optionalAccess',
|
|
54339
|
+
signal: _optionalChain([ctrl, 'optionalAccess', _1451 => _1451.signal]),
|
|
54376
54340
|
body: JSON.stringify({
|
|
54377
54341
|
fileName: att.file.name,
|
|
54378
54342
|
// Pass the SNIFFED MIME (not `file.type`, which can be a
|
|
@@ -54398,9 +54362,9 @@ function useChatAttachments() {
|
|
|
54398
54362
|
(pct) => {
|
|
54399
54363
|
updateOne(att.id, { progress: pct });
|
|
54400
54364
|
},
|
|
54401
|
-
_optionalChain([ctrl, 'optionalAccess',
|
|
54365
|
+
_optionalChain([ctrl, 'optionalAccess', _1452 => _1452.signal])
|
|
54402
54366
|
);
|
|
54403
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
54367
|
+
if (_optionalChain([ctrl, 'optionalAccess', _1453 => _1453.signal, 'access', _1454 => _1454.aborted])) return;
|
|
54404
54368
|
updateOne(att.id, {
|
|
54405
54369
|
status: "ready",
|
|
54406
54370
|
progress: 100,
|
|
@@ -54408,7 +54372,7 @@ function useChatAttachments() {
|
|
|
54408
54372
|
viewToken: mintData.viewToken
|
|
54409
54373
|
});
|
|
54410
54374
|
} catch (err) {
|
|
54411
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
54375
|
+
if (_optionalChain([ctrl, 'optionalAccess', _1455 => _1455.signal, 'access', _1456 => _1456.aborted])) return;
|
|
54412
54376
|
const message2 = err instanceof Error ? err.message : String(err);
|
|
54413
54377
|
updateOne(att.id, { status: "error", progress: 0, errorMessage: message2 });
|
|
54414
54378
|
} finally {
|
|
@@ -54595,7 +54559,7 @@ function useSSE({ useMock = true, debugMode = false, streamFn } = {}) {
|
|
|
54595
54559
|
yield chunk;
|
|
54596
54560
|
}
|
|
54597
54561
|
} catch (err) {
|
|
54598
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
54562
|
+
if (_optionalChain([err, 'optionalAccess', _1457 => _1457.name]) === "AbortError" || ctrl.signal.aborted) {
|
|
54599
54563
|
return;
|
|
54600
54564
|
}
|
|
54601
54565
|
const errorMessage = err instanceof Error ? err.message : "An error occurred";
|
|
@@ -54646,7 +54610,7 @@ function useChat({
|
|
|
54646
54610
|
const onMessagesChangeRef = _react.useRef.call(void 0, onMessagesChange);
|
|
54647
54611
|
onMessagesChangeRef.current = onMessagesChange;
|
|
54648
54612
|
_react.useEffect.call(void 0, () => {
|
|
54649
|
-
_optionalChain([onMessagesChangeRef, 'access',
|
|
54613
|
+
_optionalChain([onMessagesChangeRef, 'access', _1458 => _1458.current, 'optionalCall', _1459 => _1459(messages)]);
|
|
54650
54614
|
}, [messages]);
|
|
54651
54615
|
const {
|
|
54652
54616
|
streamMessage,
|
|
@@ -54683,7 +54647,7 @@ function useChat({
|
|
|
54683
54647
|
name: "You",
|
|
54684
54648
|
content: text,
|
|
54685
54649
|
timestamp: /* @__PURE__ */ new Date(),
|
|
54686
|
-
..._optionalChain([options, 'optionalAccess',
|
|
54650
|
+
..._optionalChain([options, 'optionalAccess', _1460 => _1460.hidden]) ? { hidden: true } : {}
|
|
54687
54651
|
};
|
|
54688
54652
|
addMessage(userMessage);
|
|
54689
54653
|
setIsTyping(true);
|
|
@@ -54745,7 +54709,7 @@ function useChat({
|
|
|
54745
54709
|
currentTextSegment = "";
|
|
54746
54710
|
}
|
|
54747
54711
|
const seg = segment;
|
|
54748
|
-
const proposalId = _optionalChain([seg, 'access',
|
|
54712
|
+
const proposalId = _optionalChain([seg, 'access', _1461 => _1461.data, 'optionalAccess', _1462 => _1462.requestId]);
|
|
54749
54713
|
const updateApprovalMessage = (transform) => {
|
|
54750
54714
|
setMessages((prev) => {
|
|
54751
54715
|
for (let i = prev.length - 1; i >= 0; i--) {
|
|
@@ -54754,7 +54718,7 @@ function useChat({
|
|
|
54754
54718
|
if (!Array.isArray(m.content)) continue;
|
|
54755
54719
|
const segments = m.content;
|
|
54756
54720
|
const hasMatch = segments.some(
|
|
54757
|
-
(s) => s.type === "approval_request" && _optionalChain([s, 'access',
|
|
54721
|
+
(s) => s.type === "approval_request" && _optionalChain([s, 'access', _1463 => _1463.data, 'optionalAccess', _1464 => _1464.requestId]) === proposalId
|
|
54758
54722
|
);
|
|
54759
54723
|
if (!hasMatch) continue;
|
|
54760
54724
|
const next = [...prev];
|
|
@@ -54796,11 +54760,11 @@ function useChat({
|
|
|
54796
54760
|
if (!Array.isArray(m.content)) continue;
|
|
54797
54761
|
const segments = m.content;
|
|
54798
54762
|
const hasMatch = segments.some(
|
|
54799
|
-
(s) => s.type === "approval_request" && _optionalChain([s, 'access',
|
|
54763
|
+
(s) => s.type === "approval_request" && _optionalChain([s, 'access', _1465 => _1465.data, 'optionalAccess', _1466 => _1466.requestId]) === decision.proposalId
|
|
54800
54764
|
);
|
|
54801
54765
|
if (!hasMatch) continue;
|
|
54802
54766
|
const flipped = segments.map(
|
|
54803
|
-
(s) => s.type === "approval_request" && _optionalChain([s, 'access',
|
|
54767
|
+
(s) => s.type === "approval_request" && _optionalChain([s, 'access', _1467 => _1467.data, 'optionalAccess', _1468 => _1468.requestId]) === decision.proposalId ? { ...s, status: decision.action } : s
|
|
54804
54768
|
);
|
|
54805
54769
|
const next = [...prev];
|
|
54806
54770
|
next[i] = { ...m, content: flipped };
|
|
@@ -54928,7 +54892,7 @@ function buildConfirmToolBody(request) {
|
|
|
54928
54892
|
async function readServerErrorMessage(response) {
|
|
54929
54893
|
try {
|
|
54930
54894
|
const body = await response.json();
|
|
54931
|
-
if (typeof _optionalChain([body, 'optionalAccess',
|
|
54895
|
+
if (typeof _optionalChain([body, 'optionalAccess', _1469 => _1469.error]) === "string" && body.error.length > 0) return body.error;
|
|
54932
54896
|
} catch (e98) {
|
|
54933
54897
|
}
|
|
54934
54898
|
return null;
|
|
@@ -55149,7 +55113,7 @@ var STORAGE_KEY2 = "conversation";
|
|
|
55149
55113
|
var namespaceFor = (source) => {
|
|
55150
55114
|
const base = `mingo-chat-${source}`;
|
|
55151
55115
|
const auth = _chunk5RJUHUCIcjs.getEmbedProxyAuth.call(void 0, );
|
|
55152
|
-
return _optionalChain([auth, 'optionalAccess',
|
|
55116
|
+
return _optionalChain([auth, 'optionalAccess', _1470 => _1470.email]) ? `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}` : base;
|
|
55153
55117
|
};
|
|
55154
55118
|
function createChatConversationStorage(source) {
|
|
55155
55119
|
return _chunk5RJUHUCIcjs.createLocalStorageAdapter.call(void 0, {
|
|
@@ -55211,8 +55175,8 @@ function useChatHistoryHydration({
|
|
|
55211
55175
|
);
|
|
55212
55176
|
if (!res.ok) return;
|
|
55213
55177
|
const payload = await res.json().catch(() => null);
|
|
55214
|
-
const body = _nullishCoalesce(_optionalChain([payload, 'optionalAccess',
|
|
55215
|
-
const rows = Array.isArray(_optionalChain([body, 'optionalAccess',
|
|
55178
|
+
const body = _nullishCoalesce(_optionalChain([payload, 'optionalAccess', _1471 => _1471.data]), () => ( payload));
|
|
55179
|
+
const rows = Array.isArray(_optionalChain([body, 'optionalAccess', _1472 => _1472.messages])) ? body.messages : [];
|
|
55216
55180
|
if (cancelled || rows.length === 0) return;
|
|
55217
55181
|
const hydrated = [];
|
|
55218
55182
|
const sourcesSeed = /* @__PURE__ */ new Map();
|
|
@@ -55319,11 +55283,11 @@ function appendToTrailingAssistant(prev, segments) {
|
|
|
55319
55283
|
for (const seg of segments) {
|
|
55320
55284
|
const tail = merged[merged.length - 1];
|
|
55321
55285
|
const key = upsertKey(seg);
|
|
55322
|
-
if (seg.type === "text" && _optionalChain([tail, 'optionalAccess',
|
|
55286
|
+
if (seg.type === "text" && _optionalChain([tail, 'optionalAccess', _1473 => _1473.type]) === "text") {
|
|
55323
55287
|
merged[merged.length - 1] = { type: "text", text: tail.text + seg.text };
|
|
55324
|
-
} else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess',
|
|
55288
|
+
} else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess', _1474 => _1474.type]) === "thinking") {
|
|
55325
55289
|
merged[merged.length - 1] = { type: "thinking", text: tail.text + seg.text };
|
|
55326
|
-
} else if (seg.type === "guide" && _optionalChain([tail, 'optionalAccess',
|
|
55290
|
+
} else if (seg.type === "guide" && _optionalChain([tail, 'optionalAccess', _1475 => _1475.type]) === "guide") {
|
|
55327
55291
|
merged[merged.length - 1] = { type: "guide", text: tail.text + seg.text };
|
|
55328
55292
|
} else if (key) {
|
|
55329
55293
|
const idx = merged.findIndex((m) => upsertKey(m) === key);
|
|
@@ -55363,7 +55327,7 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
|
|
|
55363
55327
|
}
|
|
55364
55328
|
if (s.type !== "approval_batch") return s;
|
|
55365
55329
|
const isAnchor = s.data.approvalRequestId === requestId;
|
|
55366
|
-
const hasRow = _optionalChain([s, 'access',
|
|
55330
|
+
const hasRow = _optionalChain([s, 'access', _1476 => _1476.data, 'access', _1477 => _1477.toolCalls, 'optionalAccess', _1478 => _1478.some, 'call', _1479 => _1479((c) => c.toolExecutionRequestId === requestId)]);
|
|
55367
55331
|
if (!isAnchor && !hasRow) return s;
|
|
55368
55332
|
const nextResolvedBy = _nullishCoalesce(resolvedByName, () => ( s.resolvedByName));
|
|
55369
55333
|
const nextExecutions = hasRow ? {
|
|
@@ -55385,8 +55349,8 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
|
|
|
55385
55349
|
};
|
|
55386
55350
|
}
|
|
55387
55351
|
function nextBatchExecution(prevExec, toolData) {
|
|
55388
|
-
if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess',
|
|
55389
|
-
return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess',
|
|
55352
|
+
if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess', _1480 => _1480.status]) === "done") return null;
|
|
55353
|
+
return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess', _1481 => _1481.result]), success: _optionalChain([prevExec, 'optionalAccess', _1482 => _1482.success]) };
|
|
55390
55354
|
}
|
|
55391
55355
|
function withBatchExecution(seg, execId, state) {
|
|
55392
55356
|
return {
|
|
@@ -55403,11 +55367,11 @@ function projectBatchStatusToMessages(prev, anchorId, status) {
|
|
|
55403
55367
|
}
|
|
55404
55368
|
function projectBatchRowFailureToMessages(prev, rowRequestId) {
|
|
55405
55369
|
return mapSegments(prev, (s) => {
|
|
55406
|
-
if (s.type !== "approval_batch" || !_optionalChain([s, 'access',
|
|
55370
|
+
if (s.type !== "approval_batch" || !_optionalChain([s, 'access', _1483 => _1483.data, 'access', _1484 => _1484.toolCalls, 'optionalAccess', _1485 => _1485.some, 'call', _1486 => _1486((c) => c.toolExecutionRequestId === rowRequestId)])) {
|
|
55407
55371
|
return s;
|
|
55408
55372
|
}
|
|
55409
|
-
const existing = _optionalChain([s, 'access',
|
|
55410
|
-
if (_optionalChain([existing, 'optionalAccess',
|
|
55373
|
+
const existing = _optionalChain([s, 'access', _1487 => _1487.data, 'access', _1488 => _1488.executions, 'optionalAccess', _1489 => _1489[rowRequestId]]);
|
|
55374
|
+
if (_optionalChain([existing, 'optionalAccess', _1490 => _1490.status]) === "done") return s;
|
|
55411
55375
|
return withBatchExecution(s, rowRequestId, { status: "done", success: false });
|
|
55412
55376
|
});
|
|
55413
55377
|
}
|
|
@@ -55446,7 +55410,7 @@ function mergeToolExecutionIfPresent(prev, segment) {
|
|
|
55446
55410
|
for (let j = message2.segments.length - 1; j >= 0; j--) {
|
|
55447
55411
|
const seg = message2.segments[j];
|
|
55448
55412
|
if (execId && seg.type === "approval_batch" && seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId)) {
|
|
55449
|
-
const prevExec = _optionalChain([seg, 'access',
|
|
55413
|
+
const prevExec = _optionalChain([seg, 'access', _1491 => _1491.data, 'access', _1492 => _1492.executions, 'optionalAccess', _1493 => _1493[execId]]);
|
|
55450
55414
|
const nextExec = nextBatchExecution(prevExec, toolData);
|
|
55451
55415
|
if (nextExec === null) return prev;
|
|
55452
55416
|
if (sameExecutionState(prevExec, nextExec)) return prev;
|
|
@@ -55635,9 +55599,9 @@ var MessageSegmentAccumulator = class {
|
|
|
55635
55599
|
type: "tool_execution",
|
|
55636
55600
|
data: {
|
|
55637
55601
|
...toolData,
|
|
55638
|
-
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess',
|
|
55639
|
-
toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess',
|
|
55640
|
-
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess',
|
|
55602
|
+
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _1494 => _1494.data, 'access', _1495 => _1495.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _1496 => _1496.toolTitle]))),
|
|
55603
|
+
toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess', _1497 => _1497.data, 'access', _1498 => _1498.toolExplanation]))), () => ( _optionalChain([executingTool, 'optionalAccess', _1499 => _1499.toolExplanation]))),
|
|
55604
|
+
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _1500 => _1500.parameters])
|
|
55641
55605
|
}
|
|
55642
55606
|
};
|
|
55643
55607
|
if (existingIndex !== -1) {
|
|
@@ -55661,7 +55625,7 @@ var MessageSegmentAccumulator = class {
|
|
|
55661
55625
|
if (seg.type !== "approval_batch") return seg;
|
|
55662
55626
|
const hasCall = seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId);
|
|
55663
55627
|
if (!hasCall) return seg;
|
|
55664
|
-
const prev = _optionalChain([seg, 'access',
|
|
55628
|
+
const prev = _optionalChain([seg, 'access', _1501 => _1501.data, 'access', _1502 => _1502.executions, 'optionalAccess', _1503 => _1503[execId]]);
|
|
55665
55629
|
const next = nextBatchExecution(prev, toolData);
|
|
55666
55630
|
matched = true;
|
|
55667
55631
|
if (next === null) return seg;
|
|
@@ -55803,8 +55767,8 @@ var MessageSegmentAccumulator = class {
|
|
|
55803
55767
|
requestId,
|
|
55804
55768
|
{
|
|
55805
55769
|
...pendingApproval,
|
|
55806
|
-
command: _optionalChain([pendingApproval, 'optionalAccess',
|
|
55807
|
-
approvalType: _optionalChain([pendingApproval, 'optionalAccess',
|
|
55770
|
+
command: _optionalChain([pendingApproval, 'optionalAccess', _1504 => _1504.command]) || "",
|
|
55771
|
+
approvalType: _optionalChain([pendingApproval, 'optionalAccess', _1505 => _1505.approvalType]) || approvalType
|
|
55808
55772
|
},
|
|
55809
55773
|
status
|
|
55810
55774
|
);
|
|
@@ -55829,9 +55793,9 @@ var MessageSegmentAccumulator = class {
|
|
|
55829
55793
|
type: "escalation_offer",
|
|
55830
55794
|
// The resolved chunk carries no text/origin — a redelivered offer must
|
|
55831
55795
|
// not blank the card the PENDING chunk already painted.
|
|
55832
|
-
data: { offerId, text: text || _optionalChain([existing, 'optionalAccess',
|
|
55796
|
+
data: { offerId, text: text || _optionalChain([existing, 'optionalAccess', _1506 => _1506.data, 'access', _1507 => _1507.text]) || "", origin: _nullishCoalesce(origin, () => ( _optionalChain([existing, 'optionalAccess', _1508 => _1508.data, 'access', _1509 => _1509.origin]))) },
|
|
55833
55797
|
status,
|
|
55834
|
-
resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess',
|
|
55798
|
+
resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess', _1510 => _1510.resolvedByName]))),
|
|
55835
55799
|
onApprove: this.callbacks.onEscalationApprove,
|
|
55836
55800
|
onReject: this.callbacks.onEscalationReject
|
|
55837
55801
|
};
|
|
@@ -56047,7 +56011,7 @@ function createMessageSegmentAccumulator(callbacks) {
|
|
|
56047
56011
|
// src/chat-protocol/events.ts
|
|
56048
56012
|
var GUIDE_ORIGIN = "guide";
|
|
56049
56013
|
function isGuideOrigin(source) {
|
|
56050
|
-
return _optionalChain([source, 'optionalAccess',
|
|
56014
|
+
return _optionalChain([source, 'optionalAccess', _1511 => _1511.origin]) === GUIDE_ORIGIN;
|
|
56051
56015
|
}
|
|
56052
56016
|
var ESCALATION_STATE = {
|
|
56053
56017
|
PENDING: "PENDING",
|
|
@@ -56170,7 +56134,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
56170
56134
|
let stateCache = null;
|
|
56171
56135
|
function invalidate() {
|
|
56172
56136
|
stateCache = null;
|
|
56173
|
-
_optionalChain([onChange, 'optionalCall',
|
|
56137
|
+
_optionalChain([onChange, 'optionalCall', _1512 => _1512()]);
|
|
56174
56138
|
}
|
|
56175
56139
|
function getState() {
|
|
56176
56140
|
if (!stateCache) {
|
|
@@ -56187,7 +56151,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
56187
56151
|
return stateCache;
|
|
56188
56152
|
}
|
|
56189
56153
|
function emit(name, ...args) {
|
|
56190
|
-
_optionalChain([onEffect, 'optionalCall',
|
|
56154
|
+
_optionalChain([onEffect, 'optionalCall', _1513 => _1513({ name, args })]);
|
|
56191
56155
|
}
|
|
56192
56156
|
function setMessagesInternal(next) {
|
|
56193
56157
|
if (next !== messages) {
|
|
@@ -56218,12 +56182,12 @@ function createChatStreamReducer(options = {}) {
|
|
|
56218
56182
|
return [...next.slice(0, -1), { ...last, streamSeq: seq }];
|
|
56219
56183
|
}
|
|
56220
56184
|
function applySegmentsToState(segments, meta) {
|
|
56221
|
-
const seq = _optionalChain([meta, 'optionalAccess',
|
|
56222
|
-
if (_optionalChain([meta, 'optionalAccess',
|
|
56185
|
+
const seq = _optionalChain([meta, 'optionalAccess', _1514 => _1514.streamSeq]);
|
|
56186
|
+
if (_optionalChain([meta, 'optionalAccess', _1515 => _1515.append]) && meta.isCompacting) {
|
|
56223
56187
|
setMessagesInternal(stampTrailingAssistantSeq(upsertTrailingCompaction(messages, segments), seq));
|
|
56224
56188
|
return;
|
|
56225
56189
|
}
|
|
56226
|
-
if (_optionalChain([meta, 'optionalAccess',
|
|
56190
|
+
if (_optionalChain([meta, 'optionalAccess', _1516 => _1516.append])) {
|
|
56227
56191
|
setMessagesInternal(stampTrailingAssistantSeq(appendToTrailingAssistant(messages, segments), seq));
|
|
56228
56192
|
return;
|
|
56229
56193
|
}
|
|
@@ -56235,7 +56199,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
56235
56199
|
adoptTrailingAssistant = false;
|
|
56236
56200
|
const last = messages[messages.length - 1];
|
|
56237
56201
|
if (!last || last.role !== "assistant" || adoptTail) return;
|
|
56238
|
-
const hasContent2 = (_nullishCoalesce(_optionalChain([last, 'access',
|
|
56202
|
+
const hasContent2 = (_nullishCoalesce(_optionalChain([last, 'access', _1517 => _1517.segments, 'optionalAccess', _1518 => _1518.length]), () => ( 0))) > 0 || last.content !== "";
|
|
56239
56203
|
if (!hasContent2) return;
|
|
56240
56204
|
setMessagesInternal([
|
|
56241
56205
|
...messages,
|
|
@@ -56463,13 +56427,13 @@ function createChatStreamReducer(options = {}) {
|
|
|
56463
56427
|
const summary = required ? getCommandText(required) : `Batch of ${toolCalls.length} tool calls`;
|
|
56464
56428
|
pendingEscalated.set(requestId, {
|
|
56465
56429
|
command: summary,
|
|
56466
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
56430
|
+
explanation: _optionalChain([required, 'optionalAccess', _1519 => _1519.toolExplanation]),
|
|
56467
56431
|
approvalType,
|
|
56468
56432
|
toolCalls
|
|
56469
56433
|
});
|
|
56470
56434
|
emit("onEscalatedApproval", requestId, {
|
|
56471
56435
|
command: summary,
|
|
56472
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
56436
|
+
explanation: _optionalChain([required, 'optionalAccess', _1520 => _1520.toolExplanation]),
|
|
56473
56437
|
approvalType
|
|
56474
56438
|
});
|
|
56475
56439
|
break;
|
|
@@ -56658,7 +56622,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
56658
56622
|
let message2;
|
|
56659
56623
|
if (event.details) {
|
|
56660
56624
|
try {
|
|
56661
|
-
message2 = _optionalChain([JSON, 'access',
|
|
56625
|
+
message2 = _optionalChain([JSON, 'access', _1521 => _1521.parse, 'call', _1522 => _1522(event.details), 'optionalAccess', _1523 => _1523.error, 'optionalAccess', _1524 => _1524.message]);
|
|
56662
56626
|
} catch (e103) {
|
|
56663
56627
|
message2 = event.details;
|
|
56664
56628
|
}
|
|
@@ -56875,7 +56839,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
56875
56839
|
const resolveBatch = (status, confirm) => async () => {
|
|
56876
56840
|
setMessagesInternal(projectBatchStatusToMessages(messages, anchorId, status));
|
|
56877
56841
|
for (const id of ids) {
|
|
56878
|
-
const ok = await _optionalChain([confirm, 'optionalCall',
|
|
56842
|
+
const ok = await _optionalChain([confirm, 'optionalCall', _1525 => _1525(id)]);
|
|
56879
56843
|
if (ok === false) {
|
|
56880
56844
|
setMessagesInternal(projectBatchRowFailureToMessages(messages, id));
|
|
56881
56845
|
}
|
|
@@ -57018,8 +56982,8 @@ function createChatStreamReducer(options = {}) {
|
|
|
57018
56982
|
}
|
|
57019
56983
|
}
|
|
57020
56984
|
}
|
|
57021
|
-
hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess',
|
|
57022
|
-
if (_optionalChain([extras, 'optionalAccess',
|
|
56985
|
+
hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess', _1526 => _1526.resumed]), () => ( messages.length > 0)));
|
|
56986
|
+
if (_optionalChain([extras, 'optionalAccess', _1527 => _1527.agentBusy])) agentBusyState();
|
|
57023
56987
|
invalidate();
|
|
57024
56988
|
}
|
|
57025
56989
|
return {
|
|
@@ -57104,7 +57068,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
57104
57068
|
},
|
|
57105
57069
|
endSseTurn() {
|
|
57106
57070
|
const last = messages[messages.length - 1];
|
|
57107
|
-
if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access',
|
|
57071
|
+
if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access', _1528 => _1528.segments, 'optionalAccess', _1529 => _1529.length]), () => ( 0))) === 0 && last.content === "") {
|
|
57108
57072
|
messages = messages.slice(0, -1);
|
|
57109
57073
|
}
|
|
57110
57074
|
sseCurrentText = "";
|
|
@@ -57258,10 +57222,10 @@ function createChatDialogStore(options = {}) {
|
|
|
57258
57222
|
if (onEvict) {
|
|
57259
57223
|
const sep = key.indexOf(KEY_SEP);
|
|
57260
57224
|
onEvict(key.slice(0, sep), key.slice(sep + 1), {
|
|
57261
|
-
messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
57262
|
-
approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
57263
|
-
lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
57264
|
-
pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
57225
|
+
messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _1530 => _1530.state, 'access', _1531 => _1531.messages]), () => ( EMPTY_STATE.messages)),
|
|
57226
|
+
approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _1532 => _1532.state, 'access', _1533 => _1533.approvalStatuses]), () => ( EMPTY_STATE.approvalStatuses)),
|
|
57227
|
+
lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _1534 => _1534.getLastAppliedSeq, 'call', _1535 => _1535()]), () => ( Number.NEGATIVE_INFINITY)),
|
|
57228
|
+
pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _1536 => _1536.getPendingEchoes, 'call', _1537 => _1537()]), () => ( EMPTY_PENDING_ECHOES))
|
|
57265
57229
|
});
|
|
57266
57230
|
}
|
|
57267
57231
|
}
|
|
@@ -57271,12 +57235,12 @@ function createChatDialogStore(options = {}) {
|
|
|
57271
57235
|
const key = keyOf(dialogId, side);
|
|
57272
57236
|
let reducer2 = reducers.get(key);
|
|
57273
57237
|
if (!reducer2) {
|
|
57274
|
-
const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall',
|
|
57238
|
+
const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall', _1538 => _1538(dialogId, side)]), () => ( {}));
|
|
57275
57239
|
const userOnChange = base.onChange;
|
|
57276
57240
|
reducer2 = createChatStreamReducer({
|
|
57277
57241
|
...base,
|
|
57278
57242
|
onChange: () => {
|
|
57279
|
-
_optionalChain([userOnChange, 'optionalCall',
|
|
57243
|
+
_optionalChain([userOnChange, 'optionalCall', _1539 => _1539()]);
|
|
57280
57244
|
notify();
|
|
57281
57245
|
}
|
|
57282
57246
|
});
|
|
@@ -57321,7 +57285,7 @@ function createChatDialogStore(options = {}) {
|
|
|
57321
57285
|
};
|
|
57322
57286
|
}
|
|
57323
57287
|
function getSnapshot(dialogId, side = DEFAULT_DIALOG_SIDE) {
|
|
57324
|
-
return _nullishCoalesce(_optionalChain([reducers, 'access',
|
|
57288
|
+
return _nullishCoalesce(_optionalChain([reducers, 'access', _1540 => _1540.get, 'call', _1541 => _1541(keyOf(dialogId, side)), 'optionalAccess', _1542 => _1542.state]), () => ( EMPTY_STATE));
|
|
57325
57289
|
}
|
|
57326
57290
|
function getServerSnapshot() {
|
|
57327
57291
|
return EMPTY_STATE;
|
|
@@ -57413,7 +57377,7 @@ function createDeltaBatcher({
|
|
|
57413
57377
|
pending = [];
|
|
57414
57378
|
const key = pendingKey;
|
|
57415
57379
|
for (const delta of batch) applyOne(delta, key);
|
|
57416
|
-
_optionalChain([onFlushed, 'optionalCall',
|
|
57380
|
+
_optionalChain([onFlushed, 'optionalCall', _1543 => _1543(batch.length)]);
|
|
57417
57381
|
}
|
|
57418
57382
|
function schedule() {
|
|
57419
57383
|
if (raf !== null || timer !== null) return;
|
|
@@ -57437,7 +57401,7 @@ function createDeltaBatcher({
|
|
|
57437
57401
|
}
|
|
57438
57402
|
if (!isDeltaEvent(event)) return false;
|
|
57439
57403
|
const tail = pending[pending.length - 1];
|
|
57440
|
-
const seqAdvances = _optionalChain([tail, 'optionalAccess',
|
|
57404
|
+
const seqAdvances = _optionalChain([tail, 'optionalAccess', _1544 => _1544.seq]) == null ? event.seq == null : event.seq != null && event.seq > tail.seq;
|
|
57441
57405
|
if (tail && seqAdvances && tail.type === event.type && (tail.type !== "text-delta" || tail.leading === event.leading)) {
|
|
57442
57406
|
pending[pending.length - 1] = {
|
|
57443
57407
|
...tail,
|
|
@@ -57470,7 +57434,7 @@ function useChatStreamReducer({
|
|
|
57470
57434
|
}) {
|
|
57471
57435
|
const optionsRef = _react.useRef.call(void 0, createReducerOptions);
|
|
57472
57436
|
optionsRef.current = createReducerOptions;
|
|
57473
|
-
const reducer2 = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([optionsRef, 'access',
|
|
57437
|
+
const reducer2 = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([optionsRef, 'access', _1545 => _1545.current, 'optionalCall', _1546 => _1546()]), () => ( {})));
|
|
57474
57438
|
const getSnapshot = _react.useCallback.call(void 0, () => store.getSnapshot(dialogId, side), [store, dialogId, side]);
|
|
57475
57439
|
const getServerSnapshot = _react.useCallback.call(void 0, () => store.getServerSnapshot(), [store]);
|
|
57476
57440
|
const subscribe = _react.useCallback.call(void 0, (listener) => store.subscribe(listener), [store]);
|
|
@@ -57530,7 +57494,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
57530
57494
|
const { active = true } = runtimeOptions;
|
|
57531
57495
|
const runtime = _chunk7OPWSWEJcjs.useRequiredChatRuntime.call(void 0, );
|
|
57532
57496
|
const source = runtime.source || DEFAULT_CHAT_SOURCE;
|
|
57533
|
-
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
57497
|
+
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _1547 => _1547.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
|
|
57534
57498
|
const sendMessageRef = _react.useRef.call(void 0, async () => true);
|
|
57535
57499
|
const cardResolve = _react.useCallback.call(void 0,
|
|
57536
57500
|
(action) => (reqId) => {
|
|
@@ -57565,7 +57529,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
57565
57529
|
if (!restoredConversationRef.current) {
|
|
57566
57530
|
restoredConversationRef.current = true;
|
|
57567
57531
|
pruneStaleChatConversationStorage(source);
|
|
57568
|
-
conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access',
|
|
57532
|
+
conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _1548 => _1548.load, 'call', _1549 => _1549(), 'optionalAccess', _1550 => _1550.conversationId]), () => ( null));
|
|
57569
57533
|
}
|
|
57570
57534
|
const commandsUrl = runtime.endpoints.commandsUrl;
|
|
57571
57535
|
const { commands: slashCommands } = useSlashCommandRegistry(commandsUrl, {
|
|
@@ -57672,7 +57636,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
57672
57636
|
const serverMessage = await readServerErrorMessage(response);
|
|
57673
57637
|
throw new Error(_nullishCoalesce(serverMessage, () => ( `Chat request failed: ${response.status}`)));
|
|
57674
57638
|
}
|
|
57675
|
-
const reader = _optionalChain([response, 'access',
|
|
57639
|
+
const reader = _optionalChain([response, 'access', _1551 => _1551.body, 'optionalAccess', _1552 => _1552.getReader, 'call', _1553 => _1553()]);
|
|
57676
57640
|
if (!reader) throw new Error("No response body");
|
|
57677
57641
|
const frameDecoder = createSseFrameDecoder();
|
|
57678
57642
|
let finished = false;
|
|
@@ -57695,7 +57659,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
57695
57659
|
}
|
|
57696
57660
|
return true;
|
|
57697
57661
|
} catch (err) {
|
|
57698
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
57662
|
+
if (_optionalChain([err, 'optionalAccess', _1554 => _1554.name]) === "AbortError" || ctrl.signal.aborted) {
|
|
57699
57663
|
return true;
|
|
57700
57664
|
}
|
|
57701
57665
|
flushDeltas();
|
|
@@ -57717,7 +57681,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
57717
57681
|
);
|
|
57718
57682
|
sendMessageRef.current = sendMessage;
|
|
57719
57683
|
const stopMessage = _react.useCallback.call(void 0, () => {
|
|
57720
|
-
_optionalChain([abortControllerRef, 'access',
|
|
57684
|
+
_optionalChain([abortControllerRef, 'access', _1555 => _1555.current, 'optionalAccess', _1556 => _1556.abort, 'call', _1557 => _1557()]);
|
|
57721
57685
|
flushDeltas();
|
|
57722
57686
|
mutate((r) => r.setPhase("idle"));
|
|
57723
57687
|
}, [mutate, flushDeltas]);
|
|
@@ -57733,7 +57697,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
57733
57697
|
let sendIdx = -1;
|
|
57734
57698
|
return state.messages.map((m) => {
|
|
57735
57699
|
const segments = m.segments;
|
|
57736
|
-
const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess',
|
|
57700
|
+
const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess', _1558 => _1558.filter, 'call', _1559 => _1559((s) => s.type === "text"), 'access', _1560 => _1560.map, 'call', _1561 => _1561((s) => s.text), 'access', _1562 => _1562.join, 'call', _1563 => _1563("")]), () => ( ""));
|
|
57737
57701
|
let sources;
|
|
57738
57702
|
let scrollAnchor;
|
|
57739
57703
|
if (m.role === "user" && !m.hidden) {
|
|
@@ -57742,7 +57706,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
57742
57706
|
if (m.role === "assistant") {
|
|
57743
57707
|
const lookupIdx = sendIdx >= 0 ? sendIdx : 0;
|
|
57744
57708
|
sources = sourcesMap.get(lookupIdx);
|
|
57745
|
-
scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access',
|
|
57709
|
+
scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _1564 => _1564.get, 'call', _1565 => _1565(lookupIdx), 'optionalAccess', _1566 => _1566.scrollAnchor]), () => ( void 0));
|
|
57746
57710
|
}
|
|
57747
57711
|
return {
|
|
57748
57712
|
id: m.id,
|
|
@@ -57771,7 +57735,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
57771
57735
|
);
|
|
57772
57736
|
return;
|
|
57773
57737
|
}
|
|
57774
|
-
const refSlug = typeof _optionalChain([reference, 'access',
|
|
57738
|
+
const refSlug = typeof _optionalChain([reference, 'access', _1567 => _1567.metadata, 'optionalAccess', _1568 => _1568.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
|
|
57775
57739
|
const queryValue = refSlug || sanitizeTitleForChat(reference.title) || reference.id;
|
|
57776
57740
|
const escaped = queryValue.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
|
|
57777
57741
|
const text = `/${cmdId} display "${escaped}"`;
|
|
@@ -57821,18 +57785,18 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
57821
57785
|
/** True while the mount-time rebuild from the server transcript runs. */
|
|
57822
57786
|
isHydratingHistory,
|
|
57823
57787
|
/** Provider key for the lib's `<ModelDisplay>` icon. */
|
|
57824
|
-
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
57825
|
-
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
57826
|
-
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
57788
|
+
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1569 => _1569.provider]), () => ( null)),
|
|
57789
|
+
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1570 => _1570.modelLabel]), () => ( null)),
|
|
57790
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1571 => _1571.contextWindowMaxTokens]), () => ( null)),
|
|
57827
57791
|
/** Input tokens (known after server's message_start frame; null until). */
|
|
57828
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
57792
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1572 => _1572.inputTokens]), () => ( null)),
|
|
57829
57793
|
/** Output tokens (known only after server's trailing usage frame). */
|
|
57830
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
57794
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1573 => _1573.outputTokens]), () => ( null)),
|
|
57831
57795
|
/** Cache hit % (read / total-input × 100). null during streaming. */
|
|
57832
|
-
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
57796
|
+
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1574 => _1574.cacheHitRatePct]), () => ( null)),
|
|
57833
57797
|
/** Cross-call usage breakdown (Haiku rewriter/classifier/summarizer
|
|
57834
57798
|
* token counts). null until the trailing usage frame lands. */
|
|
57835
|
-
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
57799
|
+
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1575 => _1575.breakdown]), () => ( null)),
|
|
57836
57800
|
// ─── Dialog management — stubs for v1 ────────────────────────────────
|
|
57837
57801
|
// Guide mode keeps ONE server-side conversation per stored id
|
|
57838
57802
|
// (`chat_conversations`, hydrated on mount). Surfacing multiple threads
|
|
@@ -58126,7 +58090,7 @@ function decodeNatsChunk(chunk) {
|
|
|
58126
58090
|
userId: typeof data.userId === "string" ? data.userId : void 0,
|
|
58127
58091
|
// Wire shape carries no label; fall back to the id (parity with
|
|
58128
58092
|
// the history path in `process-historical-messages.ts`).
|
|
58129
|
-
contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess',
|
|
58093
|
+
contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess', _1576 => _1576.type]) === "string" && typeof _optionalChain([it, 'optionalAccess', _1577 => _1577.id]) === "string").map((it) => ({
|
|
58130
58094
|
type: it.type,
|
|
58131
58095
|
id: it.id,
|
|
58132
58096
|
label: it.id
|
|
@@ -58178,15 +58142,15 @@ function decodeNatsChunk(chunk) {
|
|
|
58178
58142
|
|
|
58179
58143
|
// src/components/chat/utils/process-historical-messages.ts
|
|
58180
58144
|
function getOwnerDisplayName(owner) {
|
|
58181
|
-
if (_optionalChain([owner, 'optionalAccess',
|
|
58145
|
+
if (_optionalChain([owner, 'optionalAccess', _1578 => _1578.type]) === OWNER_TYPE.ADMIN && owner.user) {
|
|
58182
58146
|
const { firstName, lastName } = owner.user;
|
|
58183
58147
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
58184
58148
|
if (name) return name;
|
|
58185
58149
|
}
|
|
58186
|
-
return _optionalChain([owner, 'optionalAccess',
|
|
58150
|
+
return _optionalChain([owner, 'optionalAccess', _1579 => _1579.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
58187
58151
|
}
|
|
58188
58152
|
function getOwnerAvatar(owner) {
|
|
58189
|
-
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess',
|
|
58153
|
+
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _1580 => _1580.user, 'optionalAccess', _1581 => _1581.image, 'optionalAccess', _1582 => _1582.imageUrl]), () => ( void 0));
|
|
58190
58154
|
}
|
|
58191
58155
|
function pushStandaloneMessages(processedMessages, msg, messageDataArray) {
|
|
58192
58156
|
messageDataArray.forEach((data) => {
|
|
@@ -58384,7 +58348,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
58384
58348
|
event.offerId,
|
|
58385
58349
|
event.text,
|
|
58386
58350
|
event.origin,
|
|
58387
|
-
_nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess',
|
|
58351
|
+
_nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _1583 => _1583[event.offerId]]), () => ( "pending"))
|
|
58388
58352
|
);
|
|
58389
58353
|
break;
|
|
58390
58354
|
case "ticket-escalated":
|
|
@@ -58409,7 +58373,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
58409
58373
|
});
|
|
58410
58374
|
break;
|
|
58411
58375
|
case "escalation-offer-resolved":
|
|
58412
|
-
_optionalChain([offerResolutions, 'optionalAccess',
|
|
58376
|
+
_optionalChain([offerResolutions, 'optionalAccess', _1584 => _1584.set, 'call', _1585 => _1585(event.offerId, {
|
|
58413
58377
|
status: event.status,
|
|
58414
58378
|
resolvedByName: event.resolvedByName
|
|
58415
58379
|
})]);
|
|
@@ -58487,7 +58451,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
58487
58451
|
}
|
|
58488
58452
|
}
|
|
58489
58453
|
} else {
|
|
58490
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
58454
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _1586 => _1586.set, 'call', _1587 => _1587(event.requestId, {
|
|
58491
58455
|
command: event.command || "",
|
|
58492
58456
|
explanation: event.explanation,
|
|
58493
58457
|
approvalType,
|
|
@@ -58502,8 +58466,8 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
58502
58466
|
const existingStatus = approvalStatuses[requestId];
|
|
58503
58467
|
const status = existingStatus || event.status;
|
|
58504
58468
|
const resolvedByName = event.resolvedByName;
|
|
58505
|
-
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess',
|
|
58506
|
-
if (_optionalChain([escalatedData, 'optionalAccess',
|
|
58469
|
+
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _1588 => _1588.get, 'call', _1589 => _1589(requestId)]);
|
|
58470
|
+
if (_optionalChain([escalatedData, 'optionalAccess', _1590 => _1590.toolCalls]) && escalatedData.toolCalls.length > 0) {
|
|
58507
58471
|
if (batchApprovalsEnabled) {
|
|
58508
58472
|
accumulator.addApprovalBatch(
|
|
58509
58473
|
requestId,
|
|
@@ -58525,7 +58489,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
58525
58489
|
);
|
|
58526
58490
|
}
|
|
58527
58491
|
}
|
|
58528
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
58492
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _1591 => _1591.delete, 'call', _1592 => _1592(requestId)]);
|
|
58529
58493
|
break;
|
|
58530
58494
|
}
|
|
58531
58495
|
if (escalatedData) {
|
|
@@ -58534,7 +58498,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
58534
58498
|
explanation: escalatedData.explanation,
|
|
58535
58499
|
approvalType: escalatedData.approvalType
|
|
58536
58500
|
});
|
|
58537
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
58501
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _1593 => _1593.delete, 'call', _1594 => _1594(requestId)]);
|
|
58538
58502
|
}
|
|
58539
58503
|
const before = accumulator.getSegments();
|
|
58540
58504
|
const after = accumulator.updateApprovalStatus(requestId, status, resolvedByName);
|
|
@@ -58551,7 +58515,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
58551
58515
|
let message2;
|
|
58552
58516
|
if (event.details) {
|
|
58553
58517
|
try {
|
|
58554
|
-
message2 = _optionalChain([JSON, 'access',
|
|
58518
|
+
message2 = _optionalChain([JSON, 'access', _1595 => _1595.parse, 'call', _1596 => _1596(event.details), 'optionalAccess', _1597 => _1597.error, 'optionalAccess', _1598 => _1598.message]);
|
|
58555
58519
|
} catch (e104) {
|
|
58556
58520
|
message2 = event.details;
|
|
58557
58521
|
}
|
|
@@ -58637,14 +58601,14 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
58637
58601
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
58638
58602
|
return;
|
|
58639
58603
|
}
|
|
58640
|
-
const isUserMessage = _optionalChain([msg, 'access',
|
|
58604
|
+
const isUserMessage = _optionalChain([msg, 'access', _1599 => _1599.owner, 'optionalAccess', _1600 => _1600.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _1601 => _1601.owner, 'optionalAccess', _1602 => _1602.type]) === OWNER_TYPE.ADMIN;
|
|
58641
58605
|
if (isUserMessage) {
|
|
58642
58606
|
flushAssistantMessage();
|
|
58643
|
-
const userAuthorType = _optionalChain([msg, 'access',
|
|
58607
|
+
const userAuthorType = _optionalChain([msg, 'access', _1603 => _1603.owner, 'optionalAccess', _1604 => _1604.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
58644
58608
|
messageDataArray.forEach((data) => {
|
|
58645
58609
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
58646
58610
|
const rawContext = data.contextItems;
|
|
58647
|
-
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess',
|
|
58611
|
+
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _1605 => _1605.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _1606 => _1606.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
|
|
58648
58612
|
processedMessages.push({
|
|
58649
58613
|
id: msg.id,
|
|
58650
58614
|
role: "user",
|
|
@@ -58681,7 +58645,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
58681
58645
|
});
|
|
58682
58646
|
const nextMsg = messages[index + 1];
|
|
58683
58647
|
const isLastMessage = index === messages.length - 1;
|
|
58684
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access',
|
|
58648
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _1607 => _1607.owner, 'optionalAccess', _1608 => _1608.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _1609 => _1609.owner, 'optionalAccess', _1610 => _1610.type]) === OWNER_TYPE.ADMIN);
|
|
58685
58649
|
if (isLastMessage || nextIsFromUser) {
|
|
58686
58650
|
flushAssistantMessage();
|
|
58687
58651
|
}
|
|
@@ -58793,7 +58757,7 @@ function extractIncompleteMessageState(lastMessage) {
|
|
|
58793
58757
|
break;
|
|
58794
58758
|
case "approval_batch": {
|
|
58795
58759
|
const allDone = !!segment.data.executions && segment.data.toolCalls.every(
|
|
58796
|
-
(c) => _optionalChain([segment, 'access',
|
|
58760
|
+
(c) => _optionalChain([segment, 'access', _1611 => _1611.data, 'access', _1612 => _1612.executions, 'optionalAccess', _1613 => _1613[c.toolExecutionRequestId], 'optionalAccess', _1614 => _1614.status]) === "done"
|
|
58797
58761
|
);
|
|
58798
58762
|
if (segment.status !== "rejected" && !allDone) {
|
|
58799
58763
|
hasIncompleteState = true;
|
|
@@ -58829,11 +58793,11 @@ function extractIncompleteMessageState(lastMessage) {
|
|
|
58829
58793
|
function extractIncompleteTailState(messages) {
|
|
58830
58794
|
if (!messages || messages.length === 0) return void 0;
|
|
58831
58795
|
let start = messages.length;
|
|
58832
|
-
while (start > 0 && _optionalChain([messages, 'access',
|
|
58796
|
+
while (start > 0 && _optionalChain([messages, 'access', _1615 => _1615[start - 1], 'optionalAccess', _1616 => _1616.role]) === "assistant") start -= 1;
|
|
58833
58797
|
if (start === messages.length) return void 0;
|
|
58834
58798
|
const segments = [];
|
|
58835
58799
|
for (let i = start; i < messages.length; i += 1) {
|
|
58836
|
-
const content = _optionalChain([messages, 'access',
|
|
58800
|
+
const content = _optionalChain([messages, 'access', _1617 => _1617[i], 'optionalAccess', _1618 => _1618.content]);
|
|
58837
58801
|
if (Array.isArray(content)) segments.push(...content);
|
|
58838
58802
|
}
|
|
58839
58803
|
if (segments.length === 0) return void 0;
|
|
@@ -59187,7 +59151,7 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
59187
59151
|
}, [active, fetchDialogs, loadDialogsPage]);
|
|
59188
59152
|
const sendMessage = _react.useCallback.call(void 0,
|
|
59189
59153
|
async (text, sendOptions) => {
|
|
59190
|
-
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess',
|
|
59154
|
+
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _1619 => _1619.hidden]), () => ( false));
|
|
59191
59155
|
mutate((r) => r.pushOptimisticSend(text, hidden));
|
|
59192
59156
|
await publishUserMessage(text, { hidden, dialogId });
|
|
59193
59157
|
},
|
|
@@ -59343,11 +59307,11 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
59343
59307
|
// Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
|
|
59344
59308
|
// contextWindow uses the dialog's `contextSize` (the "X / Y" denominator,
|
|
59345
59309
|
// matching the /mingo page). cacheHitRate/breakdown are SSE-only → null.
|
|
59346
|
-
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess',
|
|
59347
|
-
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess',
|
|
59348
|
-
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
59349
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
59350
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
59310
|
+
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _1620 => _1620.provider]), () => ( modelProvider)), () => ( null)),
|
|
59311
|
+
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _1621 => _1621.modelLabel]), () => ( modelLabel)), () => ( null)),
|
|
59312
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1622 => _1622.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _1623 => _1623.contextWindowMaxTokens]))), () => ( null)),
|
|
59313
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1624 => _1624.inputTokensSize]), () => ( null)),
|
|
59314
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1625 => _1625.outputTokensSize]), () => ( null)),
|
|
59351
59315
|
currentCacheHitRatePct: null,
|
|
59352
59316
|
currentUsageBreakdown: null,
|
|
59353
59317
|
// Dialog management
|
|
@@ -59484,7 +59448,7 @@ function useUnifiedChat(options) {
|
|
|
59484
59448
|
[]
|
|
59485
59449
|
);
|
|
59486
59450
|
const setDialogScope = _react.useCallback.call(void 0,
|
|
59487
|
-
(scope) => _optionalChain([activeStateRef, 'access',
|
|
59451
|
+
(scope) => _optionalChain([activeStateRef, 'access', _1626 => _1626.current, 'access', _1627 => _1627.setDialogScope, 'optionalCall', _1628 => _1628(scope)]),
|
|
59488
59452
|
[]
|
|
59489
59453
|
);
|
|
59490
59454
|
const reloadDialogs = _react.useCallback.call(void 0,
|
|
@@ -59588,19 +59552,19 @@ function turnRequestKeys(content) {
|
|
|
59588
59552
|
if (!Array.isArray(content)) return keys;
|
|
59589
59553
|
for (const seg of content) {
|
|
59590
59554
|
if (seg.type === "tool_execution") {
|
|
59591
|
-
const id = _optionalChain([seg, 'access',
|
|
59555
|
+
const id = _optionalChain([seg, 'access', _1629 => _1629.data, 'optionalAccess', _1630 => _1630.toolExecutionRequestId]);
|
|
59592
59556
|
if (id) keys.add(id);
|
|
59593
59557
|
} else if (seg.type === "approval_request") {
|
|
59594
|
-
const id = _optionalChain([seg, 'access',
|
|
59558
|
+
const id = _optionalChain([seg, 'access', _1631 => _1631.data, 'optionalAccess', _1632 => _1632.requestId]);
|
|
59595
59559
|
if (id) keys.add(id);
|
|
59596
59560
|
} else if (seg.type === "escalation_offer") {
|
|
59597
|
-
const id = _optionalChain([seg, 'access',
|
|
59561
|
+
const id = _optionalChain([seg, 'access', _1633 => _1633.data, 'optionalAccess', _1634 => _1634.offerId]);
|
|
59598
59562
|
if (id) keys.add(id);
|
|
59599
59563
|
} else if (seg.type === "approval_batch") {
|
|
59600
59564
|
const data = seg.data;
|
|
59601
|
-
if (_optionalChain([data, 'optionalAccess',
|
|
59602
|
-
for (const call of _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
59603
|
-
if (_optionalChain([call, 'optionalAccess',
|
|
59565
|
+
if (_optionalChain([data, 'optionalAccess', _1635 => _1635.approvalRequestId])) keys.add(data.approvalRequestId);
|
|
59566
|
+
for (const call of _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1636 => _1636.toolCalls]), () => ( []))) {
|
|
59567
|
+
if (_optionalChain([call, 'optionalAccess', _1637 => _1637.toolExecutionRequestId])) keys.add(call.toolExecutionRequestId);
|
|
59604
59568
|
}
|
|
59605
59569
|
}
|
|
59606
59570
|
}
|
|
@@ -59652,20 +59616,20 @@ function mergeHistoryWithRealtime(input) {
|
|
|
59652
59616
|
}
|
|
59653
59617
|
}
|
|
59654
59618
|
const trailing = processedHistory[processedHistory.length - 1];
|
|
59655
|
-
const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess',
|
|
59656
|
-
const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access',
|
|
59619
|
+
const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _1638 => _1638.role]) === "assistant" ? trailing : null;
|
|
59620
|
+
const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access', _1639 => _1639.content, 'access', _1640 => _1640.find, 'call', _1641 => _1641((s) => s.type === "approval_batch"), 'optionalAccess', _1642 => _1642.data, 'optionalAccess', _1643 => _1643.approvalRequestId]), () => ( null)) : null;
|
|
59657
59621
|
let processedToUse = processedHistory;
|
|
59658
59622
|
const pinnedSyntheticIds = /* @__PURE__ */ new Set();
|
|
59659
59623
|
const droppedSyntheticIds = /* @__PURE__ */ new Set();
|
|
59660
59624
|
if (historyBatchId) {
|
|
59661
59625
|
const batchTwins = existingMessages.filter(
|
|
59662
59626
|
(m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some(
|
|
59663
|
-
(s) => s.type === "approval_batch" && _optionalChain([s, 'access',
|
|
59627
|
+
(s) => s.type === "approval_batch" && _optionalChain([s, 'access', _1644 => _1644.data, 'optionalAccess', _1645 => _1645.approvalRequestId]) === historyBatchId
|
|
59664
59628
|
)
|
|
59665
59629
|
);
|
|
59666
59630
|
const existingWithSameBatch = _nullishCoalesce(batchTwins.find((m) => m.id === streamingMessageId), () => ( batchTwins[batchTwins.length - 1]));
|
|
59667
59631
|
if (existingWithSameBatch && Array.isArray(existingWithSameBatch.content)) {
|
|
59668
|
-
const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess',
|
|
59632
|
+
const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _1646 => _1646.content])) ? historyTrailingAssistant.content.length : 0;
|
|
59669
59633
|
const realtimeSize = existingWithSameBatch.content.length;
|
|
59670
59634
|
if (existingWithSameBatch.id === streamingMessageId || realtimeSize > histSize) {
|
|
59671
59635
|
processedToUse = processedHistory.slice(0, -1);
|
|
@@ -59707,9 +59671,9 @@ function mergeHistoryWithRealtime(input) {
|
|
|
59707
59671
|
if (pinnedSyntheticIds.has(m.id)) return true;
|
|
59708
59672
|
if (droppedSyntheticIds.has(m.id)) return false;
|
|
59709
59673
|
if (processedIds.has(m.id)) return false;
|
|
59710
|
-
if (_optionalChain([rawHistoryIds, 'optionalAccess',
|
|
59674
|
+
if (_optionalChain([rawHistoryIds, 'optionalAccess', _1647 => _1647.has, 'call', _1648 => _1648(m.id)])) return false;
|
|
59711
59675
|
if (m.role === "user" && m.id.startsWith("optimistic-") && typeof m.content === "string") {
|
|
59712
|
-
const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access',
|
|
59676
|
+
const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _1649 => _1649.timestamp, 'optionalAccess', _1650 => _1650.getTime, 'call', _1651 => _1651()]), () => ( 0))) <= historyFetchedAt;
|
|
59713
59677
|
return !(canBeInSnapshot && processedToUse.some((pm) => pm.role === "user" && pm.content === m.content));
|
|
59714
59678
|
}
|
|
59715
59679
|
if (isSyntheticRealtimeId(m.id) && m.id !== streamingMessageId) {
|
|
@@ -59733,7 +59697,7 @@ function mergeHistoryWithRealtime(input) {
|
|
|
59733
59697
|
} else if (typeof m.streamSeq === "number") {
|
|
59734
59698
|
covered = historyMaxStreamSeq > 0 && historyMaxStreamSeq >= m.streamSeq;
|
|
59735
59699
|
} else {
|
|
59736
|
-
covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access',
|
|
59700
|
+
covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _1652 => _1652.timestamp, 'optionalAccess', _1653 => _1653.getTime, 'call', _1654 => _1654()]), () => ( 0))) <= historyFetchedAt;
|
|
59737
59701
|
}
|
|
59738
59702
|
if (covered) return false;
|
|
59739
59703
|
}
|
|
@@ -59789,7 +59753,7 @@ function normalizeHistoricalMessageData(md) {
|
|
|
59789
59753
|
function isHistoricalUserTurn(m) {
|
|
59790
59754
|
return !!m.owner;
|
|
59791
59755
|
}
|
|
59792
|
-
var isTextSegment = (d) => _optionalChain([d, 'optionalAccess',
|
|
59756
|
+
var isTextSegment = (d) => _optionalChain([d, 'optionalAccess', _1655 => _1655.type]) === "TEXT" && typeof d.text === "string";
|
|
59793
59757
|
var THINK_MS = 550;
|
|
59794
59758
|
var TOKEN_MS = 55;
|
|
59795
59759
|
var USER_MS = 480;
|
|
@@ -60036,7 +60000,7 @@ function useChatDialogManager({
|
|
|
60036
60000
|
const handleConfirmRestore = _react.useCallback.call(void 0, async () => {
|
|
60037
60001
|
if (restoreTarget) {
|
|
60038
60002
|
try {
|
|
60039
|
-
await _optionalChain([unarchiveDialog, 'optionalCall',
|
|
60003
|
+
await _optionalChain([unarchiveDialog, 'optionalCall', _1656 => _1656(restoreTarget.id)]);
|
|
60040
60004
|
} catch (err) {
|
|
60041
60005
|
console.error("[useChatDialogManager] unarchive failed:", err);
|
|
60042
60006
|
return;
|
|
@@ -60518,7 +60482,7 @@ function EmbeddableChatInner({
|
|
|
60518
60482
|
}),
|
|
60519
60483
|
[commandsUrl]
|
|
60520
60484
|
);
|
|
60521
|
-
const headerUserName = _optionalChain([identityUser, 'optionalAccess',
|
|
60485
|
+
const headerUserName = _optionalChain([identityUser, 'optionalAccess', _1657 => _1657.name, 'optionalAccess', _1658 => _1658.trim, 'call', _1659 => _1659()]) || [_optionalChain([identityUser, 'optionalAccess', _1660 => _1660.firstName]), _optionalChain([identityUser, 'optionalAccess', _1661 => _1661.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([userDisplayName, 'optionalAccess', _1662 => _1662.trim, 'call', _1663 => _1663()]) || void 0;
|
|
60522
60486
|
const effectiveModes = _react.useMemo.call(void 0, () => {
|
|
60523
60487
|
if (modes) return modes;
|
|
60524
60488
|
const guideOptions = tableIdForDocumentType ? { tableIdForDocumentType } : {};
|
|
@@ -60527,19 +60491,19 @@ function EmbeddableChatInner({
|
|
|
60527
60491
|
const mingoCaps = _react.useMemo.call(void 0, () => {
|
|
60528
60492
|
if (mingoState) {
|
|
60529
60493
|
return {
|
|
60530
|
-
canRename: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
60531
|
-
canArchive: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
60532
|
-
fetchArchivedDialogs: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
60533
|
-
unarchiveDialog: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
60534
|
-
searchQuery: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
60535
|
-
onSearchChange: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
60494
|
+
canRename: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _1664 => _1664.canRename]), () => ( false)),
|
|
60495
|
+
canArchive: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _1665 => _1665.canArchive]), () => ( false)),
|
|
60496
|
+
fetchArchivedDialogs: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1666 => _1666.fetchArchivedDialogs]),
|
|
60497
|
+
unarchiveDialog: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1667 => _1667.unarchiveDialog]),
|
|
60498
|
+
searchQuery: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1668 => _1668.searchQuery]),
|
|
60499
|
+
onSearchChange: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1669 => _1669.onSearchChange])
|
|
60536
60500
|
};
|
|
60537
60501
|
}
|
|
60538
60502
|
return {
|
|
60539
|
-
canRename: !!_optionalChain([effectiveModes, 'access',
|
|
60540
|
-
canArchive: !!_optionalChain([effectiveModes, 'access',
|
|
60541
|
-
fetchArchivedDialogs: _optionalChain([effectiveModes, 'access',
|
|
60542
|
-
unarchiveDialog: _optionalChain([effectiveModes, 'access',
|
|
60503
|
+
canRename: !!_optionalChain([effectiveModes, 'access', _1670 => _1670.mingo, 'optionalAccess', _1671 => _1671.renameDialog]),
|
|
60504
|
+
canArchive: !!_optionalChain([effectiveModes, 'access', _1672 => _1672.mingo, 'optionalAccess', _1673 => _1673.archiveDialog]),
|
|
60505
|
+
fetchArchivedDialogs: _optionalChain([effectiveModes, 'access', _1674 => _1674.mingo, 'optionalAccess', _1675 => _1675.fetchArchivedDialogs]),
|
|
60506
|
+
unarchiveDialog: _optionalChain([effectiveModes, 'access', _1676 => _1676.mingo, 'optionalAccess', _1677 => _1677.unarchiveDialog]),
|
|
60543
60507
|
searchQuery: void 0,
|
|
60544
60508
|
onSearchChange: void 0
|
|
60545
60509
|
};
|
|
@@ -60553,7 +60517,7 @@ function EmbeddableChatInner({
|
|
|
60553
60517
|
if (controlledActiveMode === void 0) {
|
|
60554
60518
|
setUncontrolledActiveMode(next);
|
|
60555
60519
|
}
|
|
60556
|
-
_optionalChain([onActiveModeChange, 'optionalCall',
|
|
60520
|
+
_optionalChain([onActiveModeChange, 'optionalCall', _1678 => _1678(next)]);
|
|
60557
60521
|
},
|
|
60558
60522
|
[controlledActiveMode, onActiveModeChange]
|
|
60559
60523
|
);
|
|
@@ -60575,7 +60539,7 @@ function EmbeddableChatInner({
|
|
|
60575
60539
|
const effectiveQuickActions = emptyStateUrl ? emptyStateConfig.quickActions : [];
|
|
60576
60540
|
const effectiveAssistantName = emptyStateConfig.name;
|
|
60577
60541
|
const effectiveAssistantIcon = emptyStateConfig.icon;
|
|
60578
|
-
const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess',
|
|
60542
|
+
const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess', _1679 => _1679.title]) === "string" ? guideWelcome.title : null)));
|
|
60579
60543
|
const {
|
|
60580
60544
|
messages: rawMessages,
|
|
60581
60545
|
isLoading: chatLoading,
|
|
@@ -60617,7 +60581,7 @@ function EmbeddableChatInner({
|
|
|
60617
60581
|
if (activeMode !== "guide" || guidePromptSentRef.current) return;
|
|
60618
60582
|
guidePromptSentRef.current = true;
|
|
60619
60583
|
void sendMessage(guidePendingPrompt);
|
|
60620
|
-
_optionalChain([onGuidePromptConsumed, 'optionalCall',
|
|
60584
|
+
_optionalChain([onGuidePromptConsumed, 'optionalCall', _1680 => _1680()]);
|
|
60621
60585
|
}, [guidePendingPrompt, activeMode, sendMessage, onGuidePromptConsumed]);
|
|
60622
60586
|
const {
|
|
60623
60587
|
attachments: stagedAttachments,
|
|
@@ -60628,7 +60592,7 @@ function EmbeddableChatInner({
|
|
|
60628
60592
|
clear: clearAttachments
|
|
60629
60593
|
} = useChatAttachments();
|
|
60630
60594
|
const { panelRef: galleryPanelRef, modal: galleryModal } = useChatAttachmentImageGallery();
|
|
60631
|
-
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess',
|
|
60595
|
+
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _1681 => _1681.maxItems]), () => ( 10));
|
|
60632
60596
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
60633
60597
|
const [contextItems, setContextItems] = _react.useState.call(void 0, []);
|
|
60634
60598
|
const [contextPickerOpen, setContextPickerOpen] = _react.useState.call(void 0, false);
|
|
@@ -60645,10 +60609,10 @@ function EmbeddableChatInner({
|
|
|
60645
60609
|
}, [activeDialogId, activeMode]);
|
|
60646
60610
|
const mentionMarkerByType = _react.useMemo.call(void 0, () => {
|
|
60647
60611
|
const m = /* @__PURE__ */ new Map();
|
|
60648
|
-
for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess',
|
|
60612
|
+
for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _1682 => _1682.entityTypes]), () => ( []))) if (t.marker) m.set(t.type, t.marker);
|
|
60649
60613
|
return m;
|
|
60650
|
-
}, [_optionalChain([contextPicker, 'optionalAccess',
|
|
60651
|
-
const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess',
|
|
60614
|
+
}, [_optionalChain([contextPicker, 'optionalAccess', _1683 => _1683.entityTypes])]);
|
|
60615
|
+
const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess', _1684 => _1684.entityTypes]);
|
|
60652
60616
|
const resolveContextIcon = _react.useMemo.call(void 0, () => {
|
|
60653
60617
|
const byType = /* @__PURE__ */ new Map();
|
|
60654
60618
|
for (const t of _nullishCoalesce(contextEntityTypes, () => ( []))) byType.set(t.type, t.icon);
|
|
@@ -60660,7 +60624,7 @@ function EmbeddableChatInner({
|
|
|
60660
60624
|
if (mentionActiveRef.current) {
|
|
60661
60625
|
if (contextItems.some((p) => `${p.type}:${p.id}` === key)) return;
|
|
60662
60626
|
if (contextItems.length >= contextMaxItems) return;
|
|
60663
|
-
_optionalChain([chatInputRef, 'access',
|
|
60627
|
+
_optionalChain([chatInputRef, 'access', _1685 => _1685.current, 'optionalAccess', _1686 => _1686.commitMention, 'call', _1687 => _1687(mentionTokenOf(key, mentionMarkerByType), {
|
|
60664
60628
|
label: item.label,
|
|
60665
60629
|
icon: resolveContextIcon(item)
|
|
60666
60630
|
})]);
|
|
@@ -60682,9 +60646,9 @@ function EmbeddableChatInner({
|
|
|
60682
60646
|
setContextItems((prev) => prev.filter((p) => `${p.type}:${p.id}` !== key));
|
|
60683
60647
|
if (mentionKeysRef.current.has(key)) {
|
|
60684
60648
|
mentionKeysRef.current.delete(key);
|
|
60685
|
-
const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access',
|
|
60649
|
+
const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _1688 => _1688.current, 'optionalAccess', _1689 => _1689.getValue, 'call', _1690 => _1690()]), () => ( ""));
|
|
60686
60650
|
const next = cur.replace(`@${mentionTokenOf(key, mentionMarkerByType)}`, "").replace(/\s{2,}/g, " ").trimStart();
|
|
60687
|
-
_optionalChain([chatInputRef, 'access',
|
|
60651
|
+
_optionalChain([chatInputRef, 'access', _1691 => _1691.current, 'optionalAccess', _1692 => _1692.setValue, 'call', _1693 => _1693(next)]);
|
|
60688
60652
|
}
|
|
60689
60653
|
}, [mentionMarkerByType]);
|
|
60690
60654
|
const handleContextValueChange = _react.useCallback.call(void 0, (value) => {
|
|
@@ -60701,7 +60665,7 @@ function EmbeddableChatInner({
|
|
|
60701
60665
|
}, []);
|
|
60702
60666
|
const closeContextPicker = _react.useCallback.call(void 0, () => {
|
|
60703
60667
|
if (mentionActiveRef.current) {
|
|
60704
|
-
_optionalChain([chatInputRef, 'access',
|
|
60668
|
+
_optionalChain([chatInputRef, 'access', _1694 => _1694.current, 'optionalAccess', _1695 => _1695.removeMentionTrigger, 'call', _1696 => _1696()]);
|
|
60705
60669
|
}
|
|
60706
60670
|
setContextPickerOpen(false);
|
|
60707
60671
|
setMentionQuery(null);
|
|
@@ -60735,8 +60699,8 @@ function EmbeddableChatInner({
|
|
|
60735
60699
|
[effectiveAssistantIcon]
|
|
60736
60700
|
);
|
|
60737
60701
|
const timestampCacheRef = _react.useRef.call(void 0, /* @__PURE__ */ new Map());
|
|
60738
|
-
const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess',
|
|
60739
|
-
const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess',
|
|
60702
|
+
const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess', _1697 => _1697.firstName]), _optionalChain([identityUser, 'optionalAccess', _1698 => _1698.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([identityUser, 'optionalAccess', _1699 => _1699.name, 'optionalAccess', _1700 => _1700.trim, 'call', _1701 => _1701()]) || void 0 : void 0;
|
|
60703
|
+
const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess', _1702 => _1702.avatarUrl, 'optionalAccess', _1703 => _1703.trim, 'call', _1704 => _1704()]) || void 0 : void 0;
|
|
60740
60704
|
const messages = _react.useMemo.call(void 0, () => {
|
|
60741
60705
|
const cache = timestampCacheRef.current;
|
|
60742
60706
|
const seenIds = /* @__PURE__ */ new Set();
|
|
@@ -60927,9 +60891,9 @@ function EmbeddableChatInner({
|
|
|
60927
60891
|
const lastAssistantMsg = [...rawMessages].reverse().find((m) => m.role === "assistant");
|
|
60928
60892
|
const lastSources = _react.useMemo.call(void 0, () => {
|
|
60929
60893
|
if (chatLoading) return void 0;
|
|
60930
|
-
const sources = _optionalChain([lastAssistantMsg, 'optionalAccess',
|
|
60894
|
+
const sources = _optionalChain([lastAssistantMsg, 'optionalAccess', _1705 => _1705.sources]);
|
|
60931
60895
|
if (!sources || sources.length === 0) return void 0;
|
|
60932
|
-
const content = _optionalChain([lastAssistantMsg, 'optionalAccess',
|
|
60896
|
+
const content = _optionalChain([lastAssistantMsg, 'optionalAccess', _1706 => _1706.content]) || "";
|
|
60933
60897
|
const citationOrder = [...content.matchAll(/\[(\d+)\]/g)].map(
|
|
60934
60898
|
(m) => parseInt(m[1], 10)
|
|
60935
60899
|
);
|
|
@@ -60949,7 +60913,7 @@ function EmbeddableChatInner({
|
|
|
60949
60913
|
const el = panelMeasureRef.current;
|
|
60950
60914
|
if (!el || typeof ResizeObserver === "undefined") return;
|
|
60951
60915
|
const ro = new ResizeObserver((entries) => {
|
|
60952
|
-
const w = _optionalChain([entries, 'access',
|
|
60916
|
+
const w = _optionalChain([entries, 'access', _1707 => _1707[0], 'optionalAccess', _1708 => _1708.contentRect, 'optionalAccess', _1709 => _1709.width]);
|
|
60953
60917
|
if (typeof w === "number") setPanelWidth(w);
|
|
60954
60918
|
});
|
|
60955
60919
|
ro.observe(el);
|
|
@@ -60992,16 +60956,16 @@ function EmbeddableChatInner({
|
|
|
60992
60956
|
const isMingoMode = activeMode === "mingo";
|
|
60993
60957
|
const stackedListView = isMingoMode && !hasConversation && !archiveOpen && !wideMingo && !composeOpen;
|
|
60994
60958
|
const headerShowBack = hasConversation || guideCanReturnToMingo;
|
|
60995
|
-
const headerTitle = hasConversation ? _optionalChain([activeDialog, 'optionalAccess',
|
|
60959
|
+
const headerTitle = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _1710 => _1710.title]) || "New Chat" : isGuideEmpty ? _nullishCoalesce(headerAssistantName, () => ( "Mingo Guide")) : "Current Chats";
|
|
60996
60960
|
const headerBackAriaLabel = hasConversation ? isViewingArchived ? "Back to archive" : "Back" : "Back to Mingo";
|
|
60997
60961
|
const headerOnBack = hasConversation ? handleBack : () => handleActiveModeChange("mingo");
|
|
60998
60962
|
const headerOnRestore = isViewingArchived && unarchiveDialog && activeDialog ? () => setRestoreTarget(activeDialog) : void 0;
|
|
60999
60963
|
const headerOnRename = activeDialogId && activeDialog && mingoCaps.canRename ? () => setRenameTarget(activeDialog) : void 0;
|
|
61000
60964
|
const headerOnArchive = activeDialogId && activeDialog && mingoCaps.canArchive ? () => setArchiveTarget(activeDialog) : void 0;
|
|
61001
60965
|
const headerOnOpenArchive = fetchArchivedDialogs ? openArchive : void 0;
|
|
61002
|
-
const headerOwner = hasConversation ? _optionalChain([activeDialog, 'optionalAccess',
|
|
61003
|
-
const headerPersonName = _optionalChain([headerOwner, 'optionalAccess',
|
|
61004
|
-
const headerPersonAvatarUrl = headerOwner ? _optionalChain([headerOwner, 'access',
|
|
60966
|
+
const headerOwner = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _1711 => _1711.owner]) : void 0;
|
|
60967
|
+
const headerPersonName = _optionalChain([headerOwner, 'optionalAccess', _1712 => _1712.name, 'optionalAccess', _1713 => _1713.trim, 'call', _1714 => _1714()]) || headerUserName;
|
|
60968
|
+
const headerPersonAvatarUrl = headerOwner ? _optionalChain([headerOwner, 'access', _1715 => _1715.avatarUrl, 'optionalAccess', _1716 => _1716.trim, 'call', _1717 => _1717()]) || void 0 : _optionalChain([identityUser, 'optionalAccess', _1718 => _1718.avatarUrl, 'optionalAccess', _1719 => _1719.trim, 'call', _1720 => _1720()]) || _optionalChain([userAvatarUrl, 'optionalAccess', _1721 => _1721.trim, 'call', _1722 => _1722()]) || void 0;
|
|
61005
60969
|
const headerAvatar = headerPersonName || headerPersonAvatarUrl ? { name: headerPersonName, avatarUrl: headerPersonAvatarUrl } : void 0;
|
|
61006
60970
|
const handleNewChat = _react.useCallback.call(void 0, () => {
|
|
61007
60971
|
resetToNewChat();
|
|
@@ -61362,9 +61326,9 @@ function EmbeddableChatInner({
|
|
|
61362
61326
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
61363
61327
|
subtitleLoading: emptyStateLoading,
|
|
61364
61328
|
...guideWelcome,
|
|
61365
|
-
title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess',
|
|
61366
|
-
icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess',
|
|
61367
|
-
quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess',
|
|
61329
|
+
title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _1723 => _1723.title]))),
|
|
61330
|
+
icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _1724 => _1724.icon]))),
|
|
61331
|
+
quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _1725 => _1725.quickActions]), () => ( guideSuggestedActions)),
|
|
61368
61332
|
onQuickAction: (action) => {
|
|
61369
61333
|
setQuickActionPreview(null);
|
|
61370
61334
|
handleSend(_nullishCoalesce(action.prompt, () => ( action.label)));
|
|
@@ -61444,8 +61408,8 @@ function EmbeddableChatInner({
|
|
|
61444
61408
|
selectedContextItems: contextItems,
|
|
61445
61409
|
onToggleContextItem: toggleContextItem,
|
|
61446
61410
|
onRemoveContextItem: removeContextItem,
|
|
61447
|
-
contextMemoryItems: _optionalChain([contextMemory, 'optionalAccess',
|
|
61448
|
-
onRemoveContextMemoryItem: _optionalChain([contextMemory, 'optionalAccess',
|
|
61411
|
+
contextMemoryItems: _optionalChain([contextMemory, 'optionalAccess', _1726 => _1726.items]),
|
|
61412
|
+
onRemoveContextMemoryItem: _optionalChain([contextMemory, 'optionalAccess', _1727 => _1727.onRemove]),
|
|
61449
61413
|
contextPickerOpen,
|
|
61450
61414
|
onOpenContextPicker: openContextPicker,
|
|
61451
61415
|
onCloseContextPicker: closeContextPicker,
|
|
@@ -62643,4 +62607,4 @@ function EmbeddableChatInner({
|
|
|
62643
62607
|
|
|
62644
62608
|
|
|
62645
62609
|
exports.Label = Label; exports.AllowedDomainsInput = AllowedDomainsInput; exports.AnnouncementBarView = AnnouncementBarView; exports.FloatingTooltip = FloatingTooltip; exports.TruncateText = TruncateText; 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.DateFilterPanel = DateFilterPanel; exports.DateFilterMenu = DateFilterMenu; exports.DurationInput = DurationInput; exports.InfoHint = InfoHint; exports.Field = Field; exports.HoneypotField = HoneypotField; 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.JsonDetailList = JsonDetailList; exports.ProgressBar = ProgressBar; exports.InfoCard = InfoCard; exports.InfoRow = InfoRow; exports.DeletedUserAvatar = DeletedUserAvatar; exports.SearchableSelect = SearchableSelect; exports.formatDate = formatDate2; 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.titleCaseFromSlug = titleCaseFromSlug; 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.DESIGN_PALETTE = DESIGN_PALETTE; exports.getContrastRatio = getContrastRatio; exports.pickReadableTextColor = pickReadableTextColor; exports.extractDominantColor = extractDominantColor; exports.getBestContrastColor = getBestContrastColor; exports.analyzeImageColor = analyzeImageColor; exports.extractImageEdgeColorAsync = extractImageEdgeColorAsync; exports.getPlatformAccentColor = getPlatformAccentColor; exports.getCurrentPlatform = getCurrentPlatform; exports.getReadableTextColor = getReadableTextColor; exports.HEX_PATTERN = HEX_PATTERN; exports.hexToRgb = hexToRgb2; 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.useScrollFade = useScrollFade; exports.ScrollFadeOverlay = ScrollFadeOverlay; exports.ScrollShadow = ScrollShadow; 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.useConfirm = useConfirm; exports.useGuardedClose = useGuardedClose; exports.UnsavedChangesChip = UnsavedChangesChip; 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.SAFE_HTML_TAGS = SAFE_HTML_TAGS; exports.SVG_TAGS = SVG_TAGS; exports.buildEffectiveTagSet = buildEffectiveTagSet; exports.buildSanitizeSchema = buildSanitizeSchema; exports.rehypeStripUnsafe = rehypeStripUnsafe; exports.escapeUnknownHtmlTags = escapeUnknownHtmlTags; exports.cardAwareUrlTransform = cardAwareUrlTransform; exports.TEXT_SIZE_PRESETS = TEXT_SIZE_PRESETS; exports.resolveTextSizeConfig = resolveTextSizeConfig; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.buildHeadingIdMap = buildHeadingIdMap; exports.useHeadingIdMap = useHeadingIdMap; exports.extractText = extractText; exports.MermaidDiagram = MermaidDiagram; exports.splitStreamingBlocks = splitStreamingBlocks; exports.completeStreamingTail = completeStreamingTail; exports.MarkdownEngine = MarkdownEngine; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.RichMarkdownRuntimeProvider = RichMarkdownRuntimeProvider; exports.useRichMarkdownRuntime = useRichMarkdownRuntime; exports.VideoPlayBadge = VideoPlayBadge; exports.VideoUnmuteGlyph = VideoUnmuteGlyph; exports.fetchPriorityProp = fetchPriorityProp; exports.MUX_STREAM_ORIGIN = MUX_STREAM_ORIGIN; exports.MUX_IMAGE_ORIGIN = MUX_IMAGE_ORIGIN; exports.saveDataEnabled = saveDataEnabled; exports.useVideoOriginPreconnect = useVideoOriginPreconnect; exports.useVideoWarmup = useVideoWarmup; 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.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.EmbedViewerFrame = EmbedViewerFrame; exports.FigmaEmbed = FigmaEmbed; exports.MarkdownImage = MarkdownImage; exports.processShortcodes = processShortcodes; exports.RichMarkdownRenderer = RichMarkdownRenderer; exports.ReleaseChangelogSection = ReleaseChangelogSection; exports.StackedRowsPanel = StackedRowsPanel; exports.SlackChannelChip = SlackChannelChip; exports.statusBadgeVariants = statusBadgeVariants; exports.genBadgeBgOpacity = genBadgeBgOpacity; exports.generationTierFromLabel = generationTierFromLabel; 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.EscalationOfferMessage = EscalationOfferMessage; exports.AiAssistantInfo = AiAssistantInfo; exports.TicketEscalatedMessage = TicketEscalatedMessage; exports.MESSAGE_TYPE = MESSAGE_TYPE; exports.SCROLL_ANCHOR = SCROLL_ANCHOR; exports.TICKET_EVENT_KIND = TICKET_EVENT_KIND; exports.TicketEventMessage = TicketEventMessage; exports.ContextCompactionDisplay = ContextCompactionDisplay; exports.ThinkingDisplay = ThinkingDisplay; exports.GuideDisplay = GuideDisplay; exports.AskDisplay = AskDisplay; 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.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.ChatMessageList = ChatMessageList; exports.getProxiedImageUrl = getProxiedImageUrl; exports.urlPathLooksLikeSvg = urlPathLooksLikeSvg; exports.shouldProxyImage = shouldProxyImage; exports.generateImageSizes = generateImageSizes; exports.useProxiedImageUrl = useProxiedImageUrl; exports.ChatMessageRow = ChatMessageRow; exports.ChatMessageRowSkeleton = ChatMessageRowSkeleton; exports.FAE_AVATAR_DATA_URI = FAE_AVATAR_DATA_URI; exports.AgentMark = AgentMark; exports.EntityIcon = EntityIcon; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.isQuickActionIconSpec = isQuickActionIconSpec; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipSkeleton = QuickActionChipSkeleton; exports.QuickActionChipButton = QuickActionChipButton; exports.QuickActionChipFromData = QuickActionChipFromData; exports.useMarqueeSync = useMarqueeSync; exports.getMarqueeTrackOffset = getMarqueeTrackOffset; exports.getMarqueeAppliedOffset = getMarqueeAppliedOffset; exports.getMarqueeCloneTwin = getMarqueeCloneTwin; exports.MarqueeWallFades = MarqueeWallFades; exports.MarqueeWall = MarqueeWall; exports.WALL_SKELETON_LABEL_CH = WALL_SKELETON_LABEL_CH; exports.interleave = interleave; exports.QuickActionWall = QuickActionWall; 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.TabSelector = TabSelector; exports.MingoHistoryRail = MingoHistoryRail; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatHeaderIconButton = ChatHeaderIconButton; exports.ChatHeaderSearchField = ChatHeaderSearchField; 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.ChatContextMemoryBar = ChatContextMemoryBar; 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.VideoHoverPreviewSurface = VideoHoverPreviewSurface; exports.CardHitLayer = CardHitLayer; 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.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.AvatarStack = AvatarStack; 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.canonicalContentRefType = canonicalContentRefType; exports.buildListUrl = buildListUrl; exports.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.readFetchedCardTitle = readFetchedCardTitle; exports.resolveFetchedCardHref = resolveFetchedCardHref; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.clickupTaskUrl = clickupTaskUrl; 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.isStructuredContent = isStructuredContent; exports.normalizeContent = normalizeContent2; exports.NETWORK_CONFIG = NETWORK_CONFIG; exports.useChunkCatchup = useChunkCatchup; exports.useScriptedStream = useScriptedStream; exports.RESYNC_AFTER_HIDDEN_MS = RESYNC_AFTER_HIDDEN_MS; exports.useJetStreamDialogSubscription = useJetStreamDialogSubscription; exports.useNatsDialogSubscription = useNatsDialogSubscription; exports.buildNatsWsUrl = buildNatsWsUrl; 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.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; exports.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.buildDiscussPrompt = buildDiscussPrompt; exports.appendToTrailingAssistant = appendToTrailingAssistant; exports.upsertTrailingCompaction = upsertTrailingCompaction; exports.applyToolExecutionToMessages = applyToolExecutionToMessages; exports.MessageSegmentAccumulator = MessageSegmentAccumulator; exports.createMessageSegmentAccumulator = createMessageSegmentAccumulator; exports.SCROLL_ANCHOR_WIRE_KEY = SCROLL_ANCHOR_WIRE_KEY; exports.parseScrollAnchor = parseScrollAnchor; exports.isGuideApproval = isGuideApproval; exports.guideApprovalOrigin = guideApprovalOrigin; exports.approvalDisplaysInline = approvalDisplaysInline; exports.isGuideApprovalSegment = isGuideApprovalSegment; exports.createEmptyTurnMeta = createEmptyTurnMeta; exports.createChatStreamReducer = createChatStreamReducer; exports.DEFAULT_DIALOG_SIDE = DEFAULT_DIALOG_SIDE; exports.DEFAULT_MAX_REDUCERS = DEFAULT_MAX_REDUCERS; exports.MAX_PENDING_RETAIN_KEYS = MAX_PENDING_RETAIN_KEYS; exports.createChatDialogStore = createChatDialogStore; exports.createDeltaBatcher = createDeltaBatcher; exports.useChatStreamReducer = useChatStreamReducer; exports.useSseChatAdapter = useSseChatAdapter; exports.decodeHistoricalMessageData = decodeHistoricalMessageData; exports.processHistoricalMessages = processHistoricalMessages; exports.extractErrorMessages = extractErrorMessages; exports.processHistoricalMessagesWithErrors = processHistoricalMessagesWithErrors; exports.extractIncompleteMessageState = extractIncompleteMessageState; exports.extractIncompleteTailState = extractIncompleteTailState; exports.mapProcessedToUnified = mapProcessedToUnified; exports.historicalToUnified = historicalToUnified; exports.useNatsChatAdapter = useNatsChatAdapter; exports.useUnifiedChat = useUnifiedChat; 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.flattenAssistantContent = flattenAssistantContent; exports.normalizeHistoricalMessageData = normalizeHistoricalMessageData; exports.isHistoricalUserTurn = isHistoricalUserTurn; exports.buildStreamFrames = buildStreamFrames; exports.EmbeddableChat = EmbeddableChat; exports.BackButton = BackButton; 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.SEO_DESCRIPTION_MAX_LENGTH = SEO_DESCRIPTION_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.TICKET_OPEN_PARAM = TICKET_OPEN_PARAM; exports.buildTicketOpenHref = buildTicketOpenHref; 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.BITE_ID_RE = BITE_ID_RE; exports.generateBiteId = generateBiteId; exports.ensureBiteIds = ensureBiteIds; exports.matchBiteElement = matchBiteElement; 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.isDismissedCookieValue = isDismissedCookieValue; exports.readDismissCookie = readDismissCookie; exports.writeDismissCookie = writeDismissCookie; exports.clearDismissCookie = clearDismissCookie; exports.announcementDismissCookieName = announcementDismissCookieName; exports.dismissAnnouncement = dismissAnnouncement; exports.isAnnouncementDismissed = isAnnouncementDismissed; exports.clearAnnouncementDismissals = clearAnnouncementDismissals; exports.clearLegacyAnnouncementCache = clearLegacyAnnouncementCache; exports.WALKTHROUGH_VIDEO_DISMISS_KEY = WALKTHROUGH_VIDEO_DISMISS_KEY; exports.walkthroughDismissCookieName = walkthroughDismissCookieName; exports.isWalkthroughDismissed = isWalkthroughDismissed; exports.dismissWalkthrough = dismissWalkthrough; exports.clearWalkthroughDismissal = clearWalkthroughDismissal; exports.WALKTHROUGH_OPEN_QUERY_PARAM = WALKTHROUGH_OPEN_QUERY_PARAM; exports.withWalkthroughOpenParam = withWalkthroughOpenParam; exports.createSseSubscription = createSseSubscription; exports.readLeadingDecisionFrame = readLeadingDecisionFrame; exports.ANNOUNCEMENT_CTA_DEFAULTS = ANNOUNCEMENT_CTA_DEFAULTS; 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.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.extractSections = extractSections; exports.SCHEDULING_SLUG_SHAPE = SCHEDULING_SLUG_SHAPE; exports.MAX_MONTH_OFFSET = MAX_MONTH_OFFSET; exports.isValidSchedulingSlug = isValidSchedulingSlug; exports.parseSchedulingLinkName = parseSchedulingLinkName; exports.isListedSchedulingName = isListedSchedulingName; exports.schedulingAudienceKey = schedulingAudienceKey; exports.SECTION_HERO_ICON_CLASS = SECTION_HERO_ICON_CLASS; exports.FIRST_TOUCH_ATTRIBUTION_KEY = FIRST_TOUCH_ATTRIBUTION_KEY; exports.sanitizeLandingUrl = sanitizeLandingUrl; exports.parseAttributionFromUrl = parseAttributionFromUrl; exports.captureFirstTouchAttribution = captureFirstTouchAttribution; exports.getFirstTouchAttribution = getFirstTouchAttribution; exports.withFirstTouchAttribution = withFirstTouchAttribution; exports.clearFirstTouchAttribution = clearFirstTouchAttribution; 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.DashboardInfoCard = DashboardInfoCard; exports.InfoCardRow = InfoCardRow; exports.OSTypeBadge = OSTypeBadge; exports.OSTypeIcon = OSTypeIcon; exports.OSTypeLabel = OSTypeLabel; exports.DeviceCard = DeviceCard; exports.DeviceCardCompact = DeviceCardCompact; exports.FeatureCardGrid = FeatureCardGrid; exports.FeatureList = FeatureList; exports.SourceTooltip = SourceTooltip; 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.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.FloatingWalkthroughVideo = FloatingWalkthroughVideo; exports.useWalkthroughVideo = useWalkthroughVideo; 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.UnreadDot = UnreadDot; exports.UnreadCountBadge = UnreadCountBadge; exports.HeaderButton = HeaderButton; exports.TimeTrackerHeaderButton = TimeTrackerHeaderButton; exports.BoardColumnHeader = BoardColumnHeader; exports.tintOnDark = tintOnDark; exports.BoardTicketApproval = BoardTicketApproval; exports.TicketCardBody = TicketCardBody; exports.TicketCardView = TicketCardView; 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.ROW_SHELL_CLASSES = ROW_SHELL_CLASSES; 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.formatTestRunDuration = formatTestRunDuration; exports.TestResultsSkeleton = TestResultsSkeleton; exports.TestResultsTable = TestResultsTable; exports.TestRunErrorBanner = TestRunErrorBanner; exports.TestRunResults = TestRunResults; exports.TimingStat = TimingStat; exports.TestRunStatusStat = TestRunStatusStat; exports.useTestRunState = useTestRunState; exports.TicketDetailSection = TicketDetailSection; exports.TicketAttachmentsList = TicketAttachmentsList; exports.TicketNoteCard = TicketNoteCard; exports.TicketNotesSection = TicketNotesSection; exports.TicketInfoSection = TicketInfoSection; exports.renderTicketStatusOption = renderTicketStatusOption; exports.renderTicketAssigneeOption = renderTicketAssigneeOption; exports.TakeOverTicketModal = TakeOverTicketModal; exports.ReopenTicketModal = ReopenTicketModal; exports.ReopenTicketRequestModal = ReopenTicketRequestModal; exports.FilterPillRow = FilterPillRow; exports.MingoAiButton = MingoAiButton; exports.MOBILE_NAV_PANEL_ID = MOBILE_NAV_PANEL_ID; exports.MobileNavPanel = MobileNavPanel; exports.useOptionalTicketLive = useOptionalTicketLive; exports.useTicketLive = useTicketLive; exports.TicketLiveProvider = TicketLiveProvider; exports.isOptimistic = isOptimistic; exports.TICKET_TEXT_MAX_CHARS = TICKET_TEXT_MAX_CHARS; exports.TICKET_MARK_READ_DEBOUNCE_MS = TICKET_MARK_READ_DEBOUNCE_MS; exports.TOAST_COPY = TOAST_COPY; exports.TicketAlertsButton = TicketAlertsButton; exports.TopNavigation = TopNavigation; exports.Header = Header2; exports.HeaderSkeleton = HeaderSkeleton; exports.ClientOnlyHeader = ClientOnlyHeader; exports.SlidingSidebar = SlidingSidebar; exports.StickySectionNav = StickySectionNav; exports.useSectionNavigation = useSectionNavigation; exports.NAVIGATION_SIDEBAR_WIDTH_VAR = NAVIGATION_SIDEBAR_WIDTH_VAR; 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;
|
|
62646
|
-
//# sourceMappingURL=chunk-
|
|
62610
|
+
//# sourceMappingURL=chunk-QOZOU6M4.cjs.map
|