@flamingo-stack/openframe-frontend-core 0.0.386 → 0.0.387
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-K557GA5G.js → chunk-3BPVTHOW.js} +4 -4
- package/dist/{chunk-UPHZGPXZ.js → chunk-3KA5L7LC.js} +2 -2
- package/dist/{chunk-X5DBARHE.cjs → chunk-3L4B7MBD.cjs} +31 -31
- package/dist/{chunk-X5DBARHE.cjs.map → chunk-3L4B7MBD.cjs.map} +1 -1
- package/dist/{chunk-CIBBHSCP.cjs → chunk-44ENRZZJ.cjs} +12 -12
- package/dist/{chunk-CIBBHSCP.cjs.map → chunk-44ENRZZJ.cjs.map} +1 -1
- package/dist/{chunk-LFAEFMYA.cjs → chunk-ADEP6E3Z.cjs} +26 -26
- package/dist/{chunk-LFAEFMYA.cjs.map → chunk-ADEP6E3Z.cjs.map} +1 -1
- package/dist/{chunk-XQ77CK5C.js → chunk-ANPV7GZT.js} +32 -25
- package/dist/{chunk-XQ77CK5C.js.map → chunk-ANPV7GZT.js.map} +1 -1
- package/dist/{chunk-LDOEIJIA.cjs → chunk-CIH2LZI7.cjs} +62 -62
- package/dist/{chunk-LDOEIJIA.cjs.map → chunk-CIH2LZI7.cjs.map} +1 -1
- package/dist/{chunk-VZHEFPPH.cjs → chunk-DKN425XR.cjs} +488 -481
- package/dist/chunk-DKN425XR.cjs.map +1 -0
- package/dist/{chunk-DN5AIYP4.cjs → chunk-DO7LOWFE.cjs} +9 -9
- package/dist/{chunk-DN5AIYP4.cjs.map → chunk-DO7LOWFE.cjs.map} +1 -1
- package/dist/{chunk-YDYO7DRL.js → chunk-DU2X2MH2.js} +2 -2
- package/dist/{chunk-IDF4BZHL.js → chunk-EHVRW3WB.js} +2 -2
- package/dist/{chunk-53R2NLYW.js → chunk-EULRZYQH.js} +4 -4
- package/dist/{chunk-L5FDBXYI.js → chunk-GPTS2NXW.js} +4 -4
- package/dist/{chunk-ACYF5YVM.js → chunk-MVY4ZKQR.js} +2 -2
- package/dist/{chunk-ACKCFE7D.js → chunk-N2LW5NHS.js} +2 -2
- package/dist/{chunk-PNJXI4NZ.js → chunk-OGNKGDHT.js} +4 -4
- package/dist/{chunk-LRLY7VFQ.cjs → chunk-OLCNA32C.cjs} +15 -15
- package/dist/{chunk-LRLY7VFQ.cjs.map → chunk-OLCNA32C.cjs.map} +1 -1
- package/dist/{chunk-7DVZECFW.js → chunk-OX75ZFN6.js} +2 -2
- package/dist/{chunk-5O2QED4E.cjs → chunk-POJRURML.cjs} +37 -37
- package/dist/{chunk-5O2QED4E.cjs.map → chunk-POJRURML.cjs.map} +1 -1
- package/dist/{chunk-5I4ERVP4.cjs → chunk-RUHE3RJK.cjs} +57 -57
- package/dist/{chunk-5I4ERVP4.cjs.map → chunk-RUHE3RJK.cjs.map} +1 -1
- package/dist/{chunk-ZRVWRNVJ.cjs → chunk-SECF2KWQ.cjs} +5 -5
- package/dist/{chunk-ZRVWRNVJ.cjs.map → chunk-SECF2KWQ.cjs.map} +1 -1
- package/dist/{chunk-2KDXNL7M.cjs → chunk-SGULN3RX.cjs} +7 -7
- package/dist/{chunk-2KDXNL7M.cjs.map → chunk-SGULN3RX.cjs.map} +1 -1
- package/dist/{chunk-QXKQ2WZF.cjs → chunk-SOAWTQXO.cjs} +25 -25
- package/dist/{chunk-QXKQ2WZF.cjs.map → chunk-SOAWTQXO.cjs.map} +1 -1
- package/dist/{chunk-NTHZI6VG.js → chunk-XGLZK25V.js} +2 -2
- 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/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/auth/login-form.d.ts +4 -1
- package/dist/components/features/auth/login-form.d.ts.map +1 -1
- package/dist/components/features/auth/openframe-sso-login-form.d.ts.map +1 -1
- package/dist/components/features/auth/openframe-sso-signup-form.d.ts +4 -7
- package/dist/components/features/auth/openframe-sso-signup-form.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 +20 -20
- package/dist/components/help-center-pages/index.js +11 -11
- package/dist/components/index.cjs +120 -120
- package/dist/components/index.js +9 -9
- 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/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/tickets/index.cjs +5 -5
- package/dist/components/tickets/index.js +4 -4
- 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/package.json +1 -1
- package/src/components/features/auth/auth-benefits-panel.tsx +1 -1
- package/src/components/features/auth/login-form.tsx +21 -3
- package/src/components/features/auth/openframe-sso-login-form.tsx +6 -3
- package/src/components/features/auth/openframe-sso-signup-form.tsx +11 -27
- package/src/stories/auth/Login.stories.tsx +1 -0
- package/src/stories/auth/OpenFrameSso.stories.tsx +1 -7
- package/dist/chunk-VZHEFPPH.cjs.map +0 -1
- /package/dist/{chunk-K557GA5G.js.map → chunk-3BPVTHOW.js.map} +0 -0
- /package/dist/{chunk-UPHZGPXZ.js.map → chunk-3KA5L7LC.js.map} +0 -0
- /package/dist/{chunk-YDYO7DRL.js.map → chunk-DU2X2MH2.js.map} +0 -0
- /package/dist/{chunk-IDF4BZHL.js.map → chunk-EHVRW3WB.js.map} +0 -0
- /package/dist/{chunk-53R2NLYW.js.map → chunk-EULRZYQH.js.map} +0 -0
- /package/dist/{chunk-L5FDBXYI.js.map → chunk-GPTS2NXW.js.map} +0 -0
- /package/dist/{chunk-ACYF5YVM.js.map → chunk-MVY4ZKQR.js.map} +0 -0
- /package/dist/{chunk-ACKCFE7D.js.map → chunk-N2LW5NHS.js.map} +0 -0
- /package/dist/{chunk-PNJXI4NZ.js.map → chunk-OGNKGDHT.js.map} +0 -0
- /package/dist/{chunk-7DVZECFW.js.map → chunk-OX75ZFN6.js.map} +0 -0
- /package/dist/{chunk-NTHZI6VG.js.map → chunk-XGLZK25V.js.map} +0 -0
|
@@ -24452,7 +24452,7 @@ _chunkFIG2RKZFcjs.init_cn.call(void 0, );
|
|
|
24452
24452
|
_chunkNYIZVI4Icjs.init_button2.call(void 0, );
|
|
24453
24453
|
|
|
24454
24454
|
var DEFAULT_TITLE2 = "The All-in-One Open Platform for MSPs";
|
|
24455
|
-
var DEFAULT_DESCRIPTION = "All your core ops in one place - built for MSPs who are done duct-taping tools together.
|
|
24455
|
+
var DEFAULT_DESCRIPTION = "All your core ops in one place - built for MSPs who are done duct-taping tools together. Unified stack, AI-ready, no vendor tax. Just solid software that lets you run lean and fast.";
|
|
24456
24456
|
var DEFAULT_BENEFITS = [
|
|
24457
24457
|
{ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.CreditCardXmarkIcon, {}), label: "No card required" },
|
|
24458
24458
|
{ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.XmarkAltIcon, {}), label: "Cancel Anytime" },
|
|
@@ -24765,8 +24765,10 @@ function LoginForm({
|
|
|
24765
24765
|
email,
|
|
24766
24766
|
onEmailChange,
|
|
24767
24767
|
onSubmit,
|
|
24768
|
+
onForgotPassword,
|
|
24768
24769
|
emailPlaceholder = "username@mail.com",
|
|
24769
24770
|
submitLabel = "Continue",
|
|
24771
|
+
forgotPasswordLabel = "Forgot Password?",
|
|
24770
24772
|
submitDisabled = false,
|
|
24771
24773
|
loading = false,
|
|
24772
24774
|
disabled = false,
|
|
@@ -24817,14 +24819,28 @@ function LoginForm({
|
|
|
24817
24819
|
disabled: disabled || loading
|
|
24818
24820
|
}
|
|
24819
24821
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-l)]", children: [
|
|
24820
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24822
|
+
onForgotPassword ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24823
|
+
_chunkNYIZVI4Icjs.Button,
|
|
24824
|
+
{
|
|
24825
|
+
type: "button",
|
|
24826
|
+
variant: "transparent",
|
|
24827
|
+
fullWidth: true,
|
|
24828
|
+
className: "flex-1",
|
|
24829
|
+
disabled: disabled || loading,
|
|
24830
|
+
onClick: onForgotPassword,
|
|
24831
|
+
children: forgotPasswordLabel
|
|
24832
|
+
}
|
|
24833
|
+
) : (
|
|
24834
|
+
// Spacer keeps the button on the right half, matching the design
|
|
24835
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" })
|
|
24836
|
+
),
|
|
24821
24837
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24822
24838
|
_chunkNYIZVI4Icjs.Button,
|
|
24823
24839
|
{
|
|
24824
24840
|
type: "button",
|
|
24825
24841
|
variant: "accent",
|
|
24826
24842
|
fullWidth: true,
|
|
24827
|
-
className: "md:flex-1",
|
|
24843
|
+
className: onForgotPassword ? "flex-1" : "md:flex-1",
|
|
24828
24844
|
loading,
|
|
24829
24845
|
disabled: disabled || submitDisabled,
|
|
24830
24846
|
onClick: onSubmit,
|
|
@@ -24941,11 +24957,14 @@ function OpenFrameSsoLoginForm({
|
|
|
24941
24957
|
),
|
|
24942
24958
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-l)]", children: [
|
|
24943
24959
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24944
|
-
|
|
24960
|
+
_chunkNYIZVI4Icjs.Button,
|
|
24945
24961
|
{
|
|
24946
24962
|
type: "button",
|
|
24963
|
+
variant: "transparent",
|
|
24964
|
+
fullWidth: true,
|
|
24965
|
+
className: "flex-1",
|
|
24966
|
+
disabled: fieldsDisabled,
|
|
24947
24967
|
onClick: onForgotPassword,
|
|
24948
|
-
className: "flex-1 text-left text-h4 text-ods-text-secondary",
|
|
24949
24968
|
children: forgotPasswordLabel
|
|
24950
24969
|
}
|
|
24951
24970
|
),
|
|
@@ -24978,21 +24997,18 @@ function OpenFrameSsoSignUpForm({
|
|
|
24978
24997
|
lastName,
|
|
24979
24998
|
password,
|
|
24980
24999
|
confirmPassword,
|
|
24981
|
-
agreedToTerms,
|
|
24982
25000
|
onEmailChange,
|
|
24983
25001
|
onFirstNameChange,
|
|
24984
25002
|
onLastNameChange,
|
|
24985
25003
|
onPasswordChange,
|
|
24986
25004
|
onConfirmPasswordChange,
|
|
24987
|
-
onAgreedToTermsChange,
|
|
24988
25005
|
onSubmit,
|
|
24989
25006
|
onForgotPassword,
|
|
25007
|
+
emailReadOnly = false,
|
|
24990
25008
|
submitDisabled = false,
|
|
24991
25009
|
loading = false,
|
|
24992
25010
|
disabled = false,
|
|
24993
25011
|
errors,
|
|
24994
|
-
termsUrl = "#",
|
|
24995
|
-
privacyPolicyUrl = "#",
|
|
24996
25012
|
title = "OpenFrame Single Sign-On",
|
|
24997
25013
|
subtitle = "Enter your email and password to access your organization.",
|
|
24998
25014
|
emailLabel = "Email",
|
|
@@ -25026,7 +25042,7 @@ function OpenFrameSsoSignUpForm({
|
|
|
25026
25042
|
placeholder: "username@mail.com",
|
|
25027
25043
|
value: email,
|
|
25028
25044
|
error: _optionalChain([errors, 'optionalAccess', _443 => _443.email]),
|
|
25029
|
-
disabled: fieldsDisabled,
|
|
25045
|
+
disabled: fieldsDisabled || emailReadOnly,
|
|
25030
25046
|
onChange: (event) => onEmailChange(event.target.value),
|
|
25031
25047
|
onKeyDown: handleKeyDown
|
|
25032
25048
|
}
|
|
@@ -25083,25 +25099,16 @@ function OpenFrameSsoSignUpForm({
|
|
|
25083
25099
|
}
|
|
25084
25100
|
) })
|
|
25085
25101
|
] }),
|
|
25086
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25087
|
-
CheckboxBlock,
|
|
25088
|
-
{
|
|
25089
|
-
id: "sso-signup-terms",
|
|
25090
|
-
label: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TermsAgreementLabel, { termsUrl, privacyPolicyUrl }),
|
|
25091
|
-
truncateLabel: true,
|
|
25092
|
-
checked: agreedToTerms,
|
|
25093
|
-
disabled: fieldsDisabled,
|
|
25094
|
-
error: _optionalChain([errors, 'optionalAccess', _448 => _448.terms]),
|
|
25095
|
-
onCheckedChange: onAgreedToTermsChange
|
|
25096
|
-
}
|
|
25097
|
-
),
|
|
25098
25102
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-l)]", children: [
|
|
25099
25103
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25100
|
-
|
|
25104
|
+
_chunkNYIZVI4Icjs.Button,
|
|
25101
25105
|
{
|
|
25102
25106
|
type: "button",
|
|
25107
|
+
variant: "transparent",
|
|
25108
|
+
fullWidth: true,
|
|
25109
|
+
className: "flex-1",
|
|
25110
|
+
disabled: fieldsDisabled,
|
|
25103
25111
|
onClick: onForgotPassword,
|
|
25104
|
-
className: "flex-1 text-left text-h4 text-ods-text-secondary",
|
|
25105
25112
|
children: forgotPasswordLabel
|
|
25106
25113
|
}
|
|
25107
25114
|
),
|
|
@@ -25175,7 +25182,7 @@ function PasswordResetForm({
|
|
|
25175
25182
|
label: newPasswordLabel,
|
|
25176
25183
|
placeholder: newPasswordPlaceholder,
|
|
25177
25184
|
value: password,
|
|
25178
|
-
error: _optionalChain([errors, 'optionalAccess',
|
|
25185
|
+
error: _optionalChain([errors, 'optionalAccess', _448 => _448.password]),
|
|
25179
25186
|
disabled: fieldsDisabled,
|
|
25180
25187
|
onChange: (event) => onPasswordChange(event.target.value),
|
|
25181
25188
|
onKeyDown: handleKeyDown
|
|
@@ -25188,7 +25195,7 @@ function PasswordResetForm({
|
|
|
25188
25195
|
label: confirmPasswordLabel,
|
|
25189
25196
|
placeholder: confirmPasswordPlaceholder,
|
|
25190
25197
|
value: confirmPassword,
|
|
25191
|
-
error: _optionalChain([errors, 'optionalAccess',
|
|
25198
|
+
error: _optionalChain([errors, 'optionalAccess', _449 => _449.confirmPassword]),
|
|
25192
25199
|
disabled: fieldsDisabled,
|
|
25193
25200
|
onChange: (event) => onConfirmPasswordChange(event.target.value),
|
|
25194
25201
|
onKeyDown: handleKeyDown
|
|
@@ -25851,10 +25858,10 @@ var getContentDimensions = (config) => {
|
|
|
25851
25858
|
const envMobileHeight = process.env.NEXT_PUBLIC_FIGMA_MOBILE_HEIGHT ? parseInt(process.env.NEXT_PUBLIC_FIGMA_MOBILE_HEIGHT) : null;
|
|
25852
25859
|
const envDesktopWidth = process.env.NEXT_PUBLIC_FIGMA_DESKTOP_WIDTH ? parseInt(process.env.NEXT_PUBLIC_FIGMA_DESKTOP_WIDTH) : null;
|
|
25853
25860
|
const envDesktopHeight = process.env.NEXT_PUBLIC_FIGMA_DESKTOP_HEIGHT ? parseInt(process.env.NEXT_PUBLIC_FIGMA_DESKTOP_HEIGHT) : null;
|
|
25854
|
-
const mobileWidth = _nullishCoalesce(_nullishCoalesce(envMobileWidth, () => ( _optionalChain([config, 'optionalAccess',
|
|
25855
|
-
const mobileHeight = _nullishCoalesce(_nullishCoalesce(envMobileHeight, () => ( _optionalChain([config, 'optionalAccess',
|
|
25856
|
-
const desktopWidth = _nullishCoalesce(_nullishCoalesce(envDesktopWidth, () => ( _optionalChain([config, 'optionalAccess',
|
|
25857
|
-
const desktopHeight = _nullishCoalesce(_nullishCoalesce(envDesktopHeight, () => ( _optionalChain([config, 'optionalAccess',
|
|
25861
|
+
const mobileWidth = _nullishCoalesce(_nullishCoalesce(envMobileWidth, () => ( _optionalChain([config, 'optionalAccess', _450 => _450.mobileContentDimensions, 'optionalAccess', _451 => _451.width]))), () => ( defaultMobile.width));
|
|
25862
|
+
const mobileHeight = _nullishCoalesce(_nullishCoalesce(envMobileHeight, () => ( _optionalChain([config, 'optionalAccess', _452 => _452.mobileContentDimensions, 'optionalAccess', _453 => _453.height]))), () => ( defaultMobile.height));
|
|
25863
|
+
const desktopWidth = _nullishCoalesce(_nullishCoalesce(envDesktopWidth, () => ( _optionalChain([config, 'optionalAccess', _454 => _454.desktopContentDimensions, 'optionalAccess', _455 => _455.width]))), () => ( defaultDesktop.width));
|
|
25864
|
+
const desktopHeight = _nullishCoalesce(_nullishCoalesce(envDesktopHeight, () => ( _optionalChain([config, 'optionalAccess', _456 => _456.desktopContentDimensions, 'optionalAccess', _457 => _457.height]))), () => ( defaultDesktop.height));
|
|
25858
25865
|
return {
|
|
25859
25866
|
mobile: { width: mobileWidth, height: mobileHeight },
|
|
25860
25867
|
desktop: { width: desktopWidth, height: desktopHeight }
|
|
@@ -25988,7 +25995,7 @@ function renderUnifiedUI(state, handlers, config, iframeRef) {
|
|
|
25988
25995
|
const contentDimensions = getContentDimensions(config);
|
|
25989
25996
|
const mobileHeight = contentDimensions.mobile.height;
|
|
25990
25997
|
const calculatedHeight = Math.max(mobileHeight + 100, 400);
|
|
25991
|
-
return `${Math.min(calculatedHeight, _optionalChain([window, 'optionalAccess',
|
|
25998
|
+
return `${Math.min(calculatedHeight, _optionalChain([window, 'optionalAccess', _458 => _458.innerHeight]) * 0.85 || 650)}px`;
|
|
25992
25999
|
})(),
|
|
25993
26000
|
minHeight: viewMode === "DESKTOP" ? "auto" : (() => {
|
|
25994
26001
|
const contentDimensions = getContentDimensions(config);
|
|
@@ -26093,7 +26100,7 @@ var FigmaPrototypeViewer = ({
|
|
|
26093
26100
|
const [isInitialized, setIsInitialized] = _react.useState.call(void 0, false);
|
|
26094
26101
|
const [currentNodeId, setCurrentNodeId] = _react.useState.call(void 0, null);
|
|
26095
26102
|
const [internalActiveSection, setInternalActiveSection] = _react.useState.call(void 0,
|
|
26096
|
-
config.defaultSectionId || _optionalChain([config, 'access',
|
|
26103
|
+
config.defaultSectionId || _optionalChain([config, 'access', _459 => _459.sections, 'access', _460 => _460[0], 'optionalAccess', _461 => _461.id]) || ""
|
|
26097
26104
|
);
|
|
26098
26105
|
const activeSection = externalActiveSection || internalActiveSection;
|
|
26099
26106
|
const [isNavigating, setIsNavigating] = _react.useState.call(void 0, false);
|
|
@@ -26183,7 +26190,7 @@ var FigmaPrototypeViewer = ({
|
|
|
26183
26190
|
const handleMessage = (event) => {
|
|
26184
26191
|
if (event.origin !== "https://www.figma.com") return;
|
|
26185
26192
|
const validEvents = ["INITIAL_LOAD", "NEW_STATE", "PRESENTED_NODE_CHANGED"];
|
|
26186
|
-
if (_optionalChain([event, 'access',
|
|
26193
|
+
if (_optionalChain([event, 'access', _462 => _462.data, 'optionalAccess', _463 => _463.type]) && validEvents.includes(event.data.type)) {
|
|
26187
26194
|
const figmaEvent = event.data;
|
|
26188
26195
|
console.log("[Figma Event]", figmaEvent.type, viewMode);
|
|
26189
26196
|
switch (figmaEvent.type) {
|
|
@@ -26193,19 +26200,19 @@ var FigmaPrototypeViewer = ({
|
|
|
26193
26200
|
setIframeState("READY");
|
|
26194
26201
|
break;
|
|
26195
26202
|
case "PRESENTED_NODE_CHANGED":
|
|
26196
|
-
if (_optionalChain([figmaEvent, 'access',
|
|
26203
|
+
if (_optionalChain([figmaEvent, 'access', _464 => _464.data, 'optionalAccess', _465 => _465.presentedNodeId])) {
|
|
26197
26204
|
setCurrentNodeId(figmaEvent.data.presentedNodeId);
|
|
26198
26205
|
if (!isNavigating) {
|
|
26199
26206
|
const matchingSection = config.sections.find((s) => {
|
|
26200
|
-
const desktopMatch = s.startingNodeId === _optionalChain([figmaEvent, 'access',
|
|
26201
|
-
const mobileMatch = s.mobileStartingNodeId === _optionalChain([figmaEvent, 'access',
|
|
26207
|
+
const desktopMatch = s.startingNodeId === _optionalChain([figmaEvent, 'access', _466 => _466.data, 'optionalAccess', _467 => _467.presentedNodeId]) || s.startingNodeId.replace(":", "-") === _optionalChain([figmaEvent, 'access', _468 => _468.data, 'optionalAccess', _469 => _469.presentedNodeId]);
|
|
26208
|
+
const mobileMatch = s.mobileStartingNodeId === _optionalChain([figmaEvent, 'access', _470 => _470.data, 'optionalAccess', _471 => _471.presentedNodeId]) || _optionalChain([s, 'access', _472 => _472.mobileStartingNodeId, 'optionalAccess', _473 => _473.replace, 'call', _474 => _474(":", "-")]) === _optionalChain([figmaEvent, 'access', _475 => _475.data, 'optionalAccess', _476 => _476.presentedNodeId]);
|
|
26202
26209
|
return desktopMatch || mobileMatch;
|
|
26203
26210
|
});
|
|
26204
26211
|
if (matchingSection && matchingSection.id !== activeSection) {
|
|
26205
26212
|
if (!externalActiveSection) {
|
|
26206
26213
|
setInternalActiveSection(matchingSection.id);
|
|
26207
26214
|
}
|
|
26208
|
-
_optionalChain([config, 'access',
|
|
26215
|
+
_optionalChain([config, 'access', _477 => _477.onSectionChange, 'optionalCall', _478 => _478(matchingSection.id)]);
|
|
26209
26216
|
}
|
|
26210
26217
|
}
|
|
26211
26218
|
}
|
|
@@ -26218,7 +26225,7 @@ var FigmaPrototypeViewer = ({
|
|
|
26218
26225
|
}, [config.sections, activeSection, isNavigating, externalActiveSection, config.onSectionChange, viewMode]);
|
|
26219
26226
|
const navigateToSection = _react.useCallback.call(void 0, (sectionId) => {
|
|
26220
26227
|
const section = config.sections.find((s) => s.id === sectionId);
|
|
26221
|
-
if (!section || !_optionalChain([iframeRef, 'access',
|
|
26228
|
+
if (!section || !_optionalChain([iframeRef, 'access', _479 => _479.current, 'optionalAccess', _480 => _480.contentWindow]) || !isInitialized) {
|
|
26222
26229
|
return;
|
|
26223
26230
|
}
|
|
26224
26231
|
setIsNavigating(true);
|
|
@@ -26226,7 +26233,7 @@ var FigmaPrototypeViewer = ({
|
|
|
26226
26233
|
if (!externalActiveSection) {
|
|
26227
26234
|
setInternalActiveSection(sectionId);
|
|
26228
26235
|
}
|
|
26229
|
-
_optionalChain([config, 'access',
|
|
26236
|
+
_optionalChain([config, 'access', _481 => _481.onSectionChange, 'optionalCall', _482 => _482(sectionId)]);
|
|
26230
26237
|
const command = {
|
|
26231
26238
|
type: "NAVIGATE_TO_FRAME_AND_CLOSE_OVERLAYS",
|
|
26232
26239
|
data: { nodeId }
|
|
@@ -26546,7 +26553,7 @@ var FiltersDropdown = ({
|
|
|
26546
26553
|
defaults[section.id] = section.defaultSelected || [];
|
|
26547
26554
|
});
|
|
26548
26555
|
setSelectedFilters(defaults);
|
|
26549
|
-
_optionalChain([onReset, 'optionalCall',
|
|
26556
|
+
_optionalChain([onReset, 'optionalCall', _483 => _483()]);
|
|
26550
26557
|
setIsOpen(false);
|
|
26551
26558
|
};
|
|
26552
26559
|
const handleApply = () => {
|
|
@@ -26839,7 +26846,7 @@ function MediaGalleryManager({
|
|
|
26839
26846
|
const [deletingIndex, setDeletingIndex] = _react.useState.call(void 0, null);
|
|
26840
26847
|
const [draggedIndex, setDraggedIndex] = _react.useState.call(void 0, null);
|
|
26841
26848
|
const handleFileSelect = _react.useCallback.call(void 0, async (event) => {
|
|
26842
|
-
const file = _optionalChain([event, 'access',
|
|
26849
|
+
const file = _optionalChain([event, 'access', _484 => _484.target, 'access', _485 => _485.files, 'optionalAccess', _486 => _486[0]]);
|
|
26843
26850
|
if (!file) return;
|
|
26844
26851
|
let mediaType;
|
|
26845
26852
|
if (file.type.startsWith("image/")) {
|
|
@@ -26954,7 +26961,7 @@ function MediaGalleryManager({
|
|
|
26954
26961
|
{
|
|
26955
26962
|
type: "button",
|
|
26956
26963
|
variant: "outline",
|
|
26957
|
-
onClick: () => _optionalChain([fileInputRef, 'access',
|
|
26964
|
+
onClick: () => _optionalChain([fileInputRef, 'access', _487 => _487.current, 'optionalAccess', _488 => _488.click, 'call', _489 => _489()]),
|
|
26958
26965
|
disabled: isUploading,
|
|
26959
26966
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Plus, { className: "h-4 w-4" }),
|
|
26960
26967
|
className: "font-['DM_Sans'] text-[16px] font-bold",
|
|
@@ -27618,7 +27625,7 @@ function ReleaseMediaManager({
|
|
|
27618
27625
|
const fileInputRef = _react.useRef.call(void 0, null);
|
|
27619
27626
|
const [uploadingIndex, setUploadingIndex] = _react.useState.call(void 0, null);
|
|
27620
27627
|
const handleFileSelect = async (event) => {
|
|
27621
|
-
const file = _optionalChain([event, 'access',
|
|
27628
|
+
const file = _optionalChain([event, 'access', _490 => _490.target, 'access', _491 => _491.files, 'optionalAccess', _492 => _492[0]]);
|
|
27622
27629
|
if (!file) return;
|
|
27623
27630
|
let mediaType;
|
|
27624
27631
|
if (file.type.startsWith("image/")) {
|
|
@@ -27698,7 +27705,7 @@ function ReleaseMediaManager({
|
|
|
27698
27705
|
{
|
|
27699
27706
|
type: "button",
|
|
27700
27707
|
variant: "outline",
|
|
27701
|
-
onClick: () => _optionalChain([fileInputRef, 'access',
|
|
27708
|
+
onClick: () => _optionalChain([fileInputRef, 'access', _493 => _493.current, 'optionalAccess', _494 => _494.click, 'call', _495 => _495()]),
|
|
27702
27709
|
disabled: uploadingIndex !== null,
|
|
27703
27710
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Plus, { className: "h-4 w-4" }),
|
|
27704
27711
|
className: "font-['DM_Sans'] text-[16px] font-bold",
|
|
@@ -27913,7 +27920,7 @@ function SEOEditorPreview({
|
|
|
27913
27920
|
const displayImage = hasOgImage || hasFeaturedImage;
|
|
27914
27921
|
const handleImageUpload = async (event) => {
|
|
27915
27922
|
if (!onOgImageUpload) return;
|
|
27916
|
-
const file = _optionalChain([event, 'access',
|
|
27923
|
+
const file = _optionalChain([event, 'access', _496 => _496.target, 'access', _497 => _497.files, 'optionalAccess', _498 => _498[0]]);
|
|
27917
27924
|
if (!file) return;
|
|
27918
27925
|
setIsUploading(true);
|
|
27919
27926
|
try {
|
|
@@ -28054,7 +28061,7 @@ function SEOEditorPreview({
|
|
|
28054
28061
|
type: "button",
|
|
28055
28062
|
variant: "outline",
|
|
28056
28063
|
size: "icon",
|
|
28057
|
-
onClick: () => _optionalChain([fileInputRef, 'optionalAccess',
|
|
28064
|
+
onClick: () => _optionalChain([fileInputRef, 'optionalAccess', _499 => _499.click, 'call', _500 => _500()]),
|
|
28058
28065
|
disabled: disabled || isUploading,
|
|
28059
28066
|
className: "bg-white text-black hover:bg-gray-100 rounded-full opacity-0 group-hover:opacity-100",
|
|
28060
28067
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "h-4 w-4" })
|
|
@@ -28077,7 +28084,7 @@ function SEOEditorPreview({
|
|
|
28077
28084
|
"div",
|
|
28078
28085
|
{
|
|
28079
28086
|
className: "h-full min-h-[280px] border-2 border-dashed border-ods-border rounded-lg flex flex-col items-center justify-center cursor-pointer hover:border-ods-accent transition-colors bg-ods-bg-hover",
|
|
28080
|
-
onClick: () => onOgImageUpload && _optionalChain([fileInputRef, 'optionalAccess',
|
|
28087
|
+
onClick: () => onOgImageUpload && _optionalChain([fileInputRef, 'optionalAccess', _501 => _501.click, 'call', _502 => _502()]),
|
|
28081
28088
|
children: isUploading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-8 w-8 animate-spin text-ods-accent" }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
28082
28089
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "h-8 w-8 text-ods-text-secondary mb-2" }),
|
|
28083
28090
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-sm text-ods-text-secondary font-['DM_Sans']", children: onOgImageUpload ? "Click to upload OG image" : "No image" })
|
|
@@ -28164,7 +28171,7 @@ function SocialLinksManager({
|
|
|
28164
28171
|
className = ""
|
|
28165
28172
|
}) {
|
|
28166
28173
|
const addLink = () => {
|
|
28167
|
-
const firstPlatform = _optionalChain([platforms, 'access',
|
|
28174
|
+
const firstPlatform = _optionalChain([platforms, 'access', _503 => _503[0], 'optionalAccess', _504 => _504.name]) || "website";
|
|
28168
28175
|
onChange([...links, { platform: firstPlatform, url: "" }]);
|
|
28169
28176
|
};
|
|
28170
28177
|
const removeLink = (index) => {
|
|
@@ -28176,7 +28183,7 @@ function SocialLinksManager({
|
|
|
28176
28183
|
onChange(updated);
|
|
28177
28184
|
};
|
|
28178
28185
|
const getIcon = (link, platform) => {
|
|
28179
|
-
const iconKey = _optionalChain([platform, 'optionalAccess',
|
|
28186
|
+
const iconKey = _optionalChain([platform, 'optionalAccess', _505 => _505.icon_name]) || link.platform;
|
|
28180
28187
|
const IconComponent = iconMap[iconKey];
|
|
28181
28188
|
return IconComponent ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: "w-5 h-5 text-ods-text-secondary" }) : null;
|
|
28182
28189
|
};
|
|
@@ -28201,7 +28208,7 @@ function SocialLinksManager({
|
|
|
28201
28208
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28202
28209
|
_chunkNYIZVI4Icjs.Input,
|
|
28203
28210
|
{
|
|
28204
|
-
placeholder: _optionalChain([platform, 'optionalAccess',
|
|
28211
|
+
placeholder: _optionalChain([platform, 'optionalAccess', _506 => _506.placeholder]) || "Profile URL",
|
|
28205
28212
|
value: link.url,
|
|
28206
28213
|
onChange: (e) => updateLink(index, "url", e.target.value),
|
|
28207
28214
|
onKeyDown: (e) => {
|
|
@@ -28594,7 +28601,7 @@ function useVideoOriginPreconnect({
|
|
|
28594
28601
|
supabaseStorageOrigin
|
|
28595
28602
|
} = {}) {
|
|
28596
28603
|
const runtime = _chunk3KEBI6TPcjs.useChatRuntime.call(void 0, );
|
|
28597
|
-
const resolvedOrigin = _nullishCoalesce(supabaseStorageOrigin, () => ( _optionalChain([runtime, 'optionalAccess',
|
|
28604
|
+
const resolvedOrigin = _nullishCoalesce(supabaseStorageOrigin, () => ( _optionalChain([runtime, 'optionalAccess', _507 => _507.endpoints, 'access', _508 => _508.supabaseStorageOrigin])));
|
|
28598
28605
|
try {
|
|
28599
28606
|
ReactDOM2.default.preconnect(MUX_STREAM_ORIGIN, { crossOrigin: "anonymous" });
|
|
28600
28607
|
ReactDOM2.default.preconnect(MUX_IMAGE_ORIGIN, { crossOrigin: "anonymous" });
|
|
@@ -28613,13 +28620,13 @@ function useVideoWarmup({
|
|
|
28613
28620
|
nearMargin = "1000px"
|
|
28614
28621
|
} = {}) {
|
|
28615
28622
|
const runtime = _chunk3KEBI6TPcjs.useChatRuntime.call(void 0, );
|
|
28616
|
-
const resolvedOrigin = _nullishCoalesce(supabaseStorageOrigin, () => ( _optionalChain([runtime, 'optionalAccess',
|
|
28623
|
+
const resolvedOrigin = _nullishCoalesce(supabaseStorageOrigin, () => ( _optionalChain([runtime, 'optionalAccess', _509 => _509.endpoints, 'access', _510 => _510.supabaseStorageOrigin])));
|
|
28617
28624
|
useVideoOriginPreconnect({ supabaseStorageOrigin: resolvedOrigin });
|
|
28618
28625
|
const { ref, isNear } = _chunk743FCO64cjs.useNearViewport.call(void 0, nearMargin);
|
|
28619
28626
|
_react.useEffect.call(void 0, () => {
|
|
28620
28627
|
if (!isNear || !videoUrl || !resolvedOrigin) return;
|
|
28621
28628
|
const conn = navigator.connection;
|
|
28622
|
-
if (_optionalChain([conn, 'optionalAccess',
|
|
28629
|
+
if (_optionalChain([conn, 'optionalAccess', _511 => _511.saveData]) === true) return;
|
|
28623
28630
|
let videoOrigin;
|
|
28624
28631
|
try {
|
|
28625
28632
|
videoOrigin = new URL(videoUrl, "http://placeholder.local").origin;
|
|
@@ -28689,7 +28696,7 @@ function VideoSourceSelector({
|
|
|
28689
28696
|
input.accept = "video/*";
|
|
28690
28697
|
input.onchange = async (e) => {
|
|
28691
28698
|
const target = e.target;
|
|
28692
|
-
const file = _optionalChain([target, 'access',
|
|
28699
|
+
const file = _optionalChain([target, 'access', _512 => _512.files, 'optionalAccess', _513 => _513[0]]);
|
|
28693
28700
|
if (!file) return;
|
|
28694
28701
|
setIsUploading(true);
|
|
28695
28702
|
setUploadProgress(0);
|
|
@@ -29038,7 +29045,7 @@ function TranscriptSummaryEditor({
|
|
|
29038
29045
|
{
|
|
29039
29046
|
id: "subtitles",
|
|
29040
29047
|
value: subtitles || "",
|
|
29041
|
-
onChange: (e) => _optionalChain([onSubtitlesChange, 'optionalCall',
|
|
29048
|
+
onChange: (e) => _optionalChain([onSubtitlesChange, 'optionalCall', _514 => _514(e.target.value)]),
|
|
29042
29049
|
placeholder: subtitlesPlaceholder,
|
|
29043
29050
|
disabled: disabled || !onSubtitlesChange,
|
|
29044
29051
|
className: "h-full w-full resize-none border-0 bg-transparent text-ods-text-primary placeholder:text-ods-text-secondary/50 focus:ring-0 focus:outline-none p-4 font-mono text-sm",
|
|
@@ -29191,7 +29198,7 @@ var AIEnrichSection = ({
|
|
|
29191
29198
|
}) => {
|
|
29192
29199
|
const hasResults = status === "success" || status === "error";
|
|
29193
29200
|
const shouldDisable = disabled || !canEnrich;
|
|
29194
|
-
const unfilledFields = _optionalChain([requiredFields, 'optionalAccess',
|
|
29201
|
+
const unfilledFields = _optionalChain([requiredFields, 'optionalAccess', _515 => _515.filter, 'call', _516 => _516((f) => !f.isFilled)]) || [];
|
|
29195
29202
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
29196
29203
|
"div",
|
|
29197
29204
|
{
|
|
@@ -29229,7 +29236,7 @@ var AIEnrichSection = ({
|
|
|
29229
29236
|
{
|
|
29230
29237
|
id: "ai-enrich-custom-instructions",
|
|
29231
29238
|
value: _nullishCoalesce(customInstructions, () => ( "")),
|
|
29232
|
-
onChange: (e) => _optionalChain([onCustomInstructionsChange, 'optionalCall',
|
|
29239
|
+
onChange: (e) => _optionalChain([onCustomInstructionsChange, 'optionalCall', _517 => _517(e.target.value)]),
|
|
29233
29240
|
placeholder: customInstructionsPlaceholder,
|
|
29234
29241
|
disabled: loading,
|
|
29235
29242
|
maxLength: customInstructionsMaxLength,
|
|
@@ -29358,7 +29365,7 @@ function HighlightVideoSection({
|
|
|
29358
29365
|
input.accept = "video/*";
|
|
29359
29366
|
input.onchange = async (e) => {
|
|
29360
29367
|
const target = e.target;
|
|
29361
|
-
const file = _optionalChain([target, 'access',
|
|
29368
|
+
const file = _optionalChain([target, 'access', _518 => _518.files, 'optionalAccess', _519 => _519[0]]);
|
|
29362
29369
|
if (!file) return;
|
|
29363
29370
|
setUploadError(null);
|
|
29364
29371
|
try {
|
|
@@ -29853,7 +29860,7 @@ function HighlightVideoPreview({
|
|
|
29853
29860
|
input.accept = "video/*";
|
|
29854
29861
|
input.onchange = async (e) => {
|
|
29855
29862
|
const target = e.target;
|
|
29856
|
-
const file = _optionalChain([target, 'access',
|
|
29863
|
+
const file = _optionalChain([target, 'access', _520 => _520.files, 'optionalAccess', _521 => _521[0]]);
|
|
29857
29864
|
if (!file) return;
|
|
29858
29865
|
await onUpload(file);
|
|
29859
29866
|
};
|
|
@@ -30037,7 +30044,7 @@ function HighlightVideoCombinedSection({
|
|
|
30037
30044
|
input.accept = "video/*";
|
|
30038
30045
|
input.onchange = async (e) => {
|
|
30039
30046
|
const target = e.target;
|
|
30040
|
-
const file = _optionalChain([target, 'access',
|
|
30047
|
+
const file = _optionalChain([target, 'access', _522 => _522.files, 'optionalAccess', _523 => _523[0]]);
|
|
30041
30048
|
if (!file) return;
|
|
30042
30049
|
await onUpload(file);
|
|
30043
30050
|
};
|
|
@@ -30331,7 +30338,7 @@ var getApprovalLevelLabel = (level, editMode = false) => {
|
|
|
30331
30338
|
return editMode ? "Set Global Permission" : "";
|
|
30332
30339
|
}
|
|
30333
30340
|
const option = approvalLevelOptions.find((opt) => opt.value === level);
|
|
30334
|
-
return _optionalChain([option, 'optionalAccess',
|
|
30341
|
+
return _optionalChain([option, 'optionalAccess', _524 => _524.label]) || level;
|
|
30335
30342
|
};
|
|
30336
30343
|
var PolicyRow = ({ policy, categoryId, editMode, onPermissionChange }) => {
|
|
30337
30344
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-ods-bg border-b border-ods-border flex gap-4 items-center px-4 py-3", children: [
|
|
@@ -30545,12 +30552,12 @@ function PhoneInput({
|
|
|
30545
30552
|
const runValidation = _react.useCallback.call(void 0, (phone) => {
|
|
30546
30553
|
if (!phone || digitCount(phone) === 0) {
|
|
30547
30554
|
setIsInvalid(false);
|
|
30548
|
-
_optionalChain([onValidationChange, 'optionalCall',
|
|
30555
|
+
_optionalChain([onValidationChange, 'optionalCall', _525 => _525(false)]);
|
|
30549
30556
|
return;
|
|
30550
30557
|
}
|
|
30551
30558
|
const invalid = !validatePhoneNumber(phone, countryCode);
|
|
30552
30559
|
setIsInvalid(invalid);
|
|
30553
|
-
_optionalChain([onValidationChange, 'optionalCall',
|
|
30560
|
+
_optionalChain([onValidationChange, 'optionalCall', _526 => _526(invalid)]);
|
|
30554
30561
|
}, [countryCode, digitCount, onValidationChange]);
|
|
30555
30562
|
const debouncedValidation = _react.useCallback.call(void 0, (phone) => {
|
|
30556
30563
|
if (debounceRef.current) clearTimeout(debounceRef.current);
|
|
@@ -30599,7 +30606,7 @@ function PhoneInput({
|
|
|
30599
30606
|
debouncedValidation(val);
|
|
30600
30607
|
} else if (digitCount(val) === 0) {
|
|
30601
30608
|
setIsInvalid(false);
|
|
30602
|
-
_optionalChain([onValidationChange, 'optionalCall',
|
|
30609
|
+
_optionalChain([onValidationChange, 'optionalCall', _527 => _527(false)]);
|
|
30603
30610
|
}
|
|
30604
30611
|
}
|
|
30605
30612
|
},
|
|
@@ -30940,19 +30947,19 @@ function NotificationsProvider({
|
|
|
30940
30947
|
}, []);
|
|
30941
30948
|
const markRead = React96.useCallback((id) => {
|
|
30942
30949
|
dispatch({ type: "markRead", id });
|
|
30943
|
-
void _optionalChain([actionsRef, 'access',
|
|
30950
|
+
void _optionalChain([actionsRef, 'access', _528 => _528.current, 'optionalAccess', _529 => _529.onMarkRead, 'optionalCall', _530 => _530(id)]);
|
|
30944
30951
|
}, []);
|
|
30945
30952
|
const markAllRead = React96.useCallback(() => {
|
|
30946
30953
|
dispatch({ type: "markAllRead" });
|
|
30947
|
-
void _optionalChain([actionsRef, 'access',
|
|
30954
|
+
void _optionalChain([actionsRef, 'access', _531 => _531.current, 'optionalAccess', _532 => _532.onMarkAllRead, 'optionalCall', _533 => _533()]);
|
|
30948
30955
|
}, []);
|
|
30949
30956
|
const markSettled = React96.useCallback((id) => {
|
|
30950
30957
|
dispatch({ type: "markSettled", id });
|
|
30951
|
-
void _optionalChain([actionsRef, 'access',
|
|
30958
|
+
void _optionalChain([actionsRef, 'access', _534 => _534.current, 'optionalAccess', _535 => _535.onMarkSettled, 'optionalCall', _536 => _536(id)]);
|
|
30952
30959
|
}, []);
|
|
30953
30960
|
const remove = React96.useCallback((id) => {
|
|
30954
30961
|
dispatch({ type: "remove", id });
|
|
30955
|
-
void _optionalChain([actionsRef, 'access',
|
|
30962
|
+
void _optionalChain([actionsRef, 'access', _537 => _537.current, 'optionalAccess', _538 => _538.onRemove, 'optionalCall', _539 => _539(id)]);
|
|
30956
30963
|
}, []);
|
|
30957
30964
|
const clear = React96.useCallback(() => dispatch({ type: "clear" }), []);
|
|
30958
30965
|
const open = React96.useCallback(() => setIsOpen(true), []);
|
|
@@ -30961,14 +30968,14 @@ function NotificationsProvider({
|
|
|
30961
30968
|
const setShowPopups = React96.useCallback(
|
|
30962
30969
|
(value2) => {
|
|
30963
30970
|
setShowPopupsState(value2);
|
|
30964
|
-
_optionalChain([onShowPopupsChange, 'optionalCall',
|
|
30971
|
+
_optionalChain([onShowPopupsChange, 'optionalCall', _540 => _540(value2)]);
|
|
30965
30972
|
},
|
|
30966
30973
|
[onShowPopupsChange]
|
|
30967
30974
|
);
|
|
30968
30975
|
const setShowDesktopPopups = React96.useCallback(
|
|
30969
30976
|
(value2) => {
|
|
30970
30977
|
setShowDesktopPopupsState(value2);
|
|
30971
|
-
_optionalChain([onShowDesktopPopupsChange, 'optionalCall',
|
|
30978
|
+
_optionalChain([onShowDesktopPopupsChange, 'optionalCall', _541 => _541(value2)]);
|
|
30972
30979
|
},
|
|
30973
30980
|
[onShowDesktopPopupsChange]
|
|
30974
30981
|
);
|
|
@@ -31103,7 +31110,7 @@ function NotificationTile({
|
|
|
31103
31110
|
if (!counting) return;
|
|
31104
31111
|
const remaining = Math.max(0, liveDurationMs - initialElapsed);
|
|
31105
31112
|
const timer = window.setTimeout(() => {
|
|
31106
|
-
_optionalChain([onSettle, 'optionalCall',
|
|
31113
|
+
_optionalChain([onSettle, 'optionalCall', _542 => _542(id)]);
|
|
31107
31114
|
}, remaining);
|
|
31108
31115
|
return () => window.clearTimeout(timer);
|
|
31109
31116
|
}, [id, counting, initialElapsed, liveDurationMs, onSettle]);
|
|
@@ -31159,7 +31166,7 @@ function NotificationTile({
|
|
|
31159
31166
|
}
|
|
31160
31167
|
) : null,
|
|
31161
31168
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "relative size-4 shrink-0", children: [
|
|
31162
|
-
{ active: isLive, label: "Dismiss notification", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.XmarkIcon, { size: 16 }), onClick: () => _optionalChain([onSettle, 'optionalCall',
|
|
31169
|
+
{ active: isLive, label: "Dismiss notification", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.XmarkIcon, { size: 16 }), onClick: () => _optionalChain([onSettle, 'optionalCall', _543 => _543(id)]) },
|
|
31163
31170
|
{ active: !isLive, label: "Mark notification complete", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.CheckCircleIcon, { size: 16 }), onClick: () => onComplete(id) }
|
|
31164
31171
|
].map(({ active, label, icon: icon2, onClick }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31165
31172
|
"button",
|
|
@@ -31322,7 +31329,7 @@ function DrawerScrollList({
|
|
|
31322
31329
|
if (!sentinel || !root) return;
|
|
31323
31330
|
const observer = new IntersectionObserver(
|
|
31324
31331
|
(entries) => {
|
|
31325
|
-
if (_optionalChain([entries, 'access',
|
|
31332
|
+
if (_optionalChain([entries, 'access', _544 => _544[0], 'optionalAccess', _545 => _545.isIntersecting])) _optionalChain([loadMoreRef, 'access', _546 => _546.current, 'optionalCall', _547 => _547()]);
|
|
31326
31333
|
},
|
|
31327
31334
|
{ root, rootMargin: loadMoreRootMargin }
|
|
31328
31335
|
);
|
|
@@ -31337,7 +31344,7 @@ function DrawerScrollList({
|
|
|
31337
31344
|
className: "flex flex-1 flex-col gap-[var(--spacing-system-xs)] overflow-y-auto px-[var(--spacing-system-m)]",
|
|
31338
31345
|
children: isEmpty && !isLoadingMore ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmptyState, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
31339
31346
|
unreadNotifications.map((n) => {
|
|
31340
|
-
const custom = _optionalChain([renderTile, 'optionalCall',
|
|
31347
|
+
const custom = _optionalChain([renderTile, 'optionalCall', _548 => _548(n, { onComplete, onSettle, liveDurationMs })]);
|
|
31341
31348
|
if (custom) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: custom }, n.id);
|
|
31342
31349
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31343
31350
|
NotificationTile,
|
|
@@ -31501,7 +31508,7 @@ function NotificationPopups({
|
|
|
31501
31508
|
className
|
|
31502
31509
|
),
|
|
31503
31510
|
children: live.map((n) => {
|
|
31504
|
-
const custom = _optionalChain([renderTile, 'optionalCall',
|
|
31511
|
+
const custom = _optionalChain([renderTile, 'optionalCall', _549 => _549(n, { onComplete: markRead, onSettle: markSettled, liveDurationMs })]);
|
|
31505
31512
|
if (custom) {
|
|
31506
31513
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-auto", children: custom }, n.id);
|
|
31507
31514
|
}
|
|
@@ -31681,21 +31688,21 @@ function transformWebinarToProgram(webinar) {
|
|
|
31681
31688
|
// src/components/features/notifications/types.ts
|
|
31682
31689
|
var ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE = "ADMIN_APPROVAL_REQUEST";
|
|
31683
31690
|
function isApprovalNotification(notification) {
|
|
31684
|
-
return _optionalChain([notification, 'access',
|
|
31691
|
+
return _optionalChain([notification, 'access', _550 => _550.meta, 'optionalAccess', _551 => _551.contextType]) === ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE;
|
|
31685
31692
|
}
|
|
31686
31693
|
function getApprovalMeta(notification) {
|
|
31687
31694
|
if (!isApprovalNotification(notification)) return null;
|
|
31688
31695
|
const meta = notification.meta;
|
|
31689
|
-
const approvalRequestId = _optionalChain([meta, 'optionalAccess',
|
|
31690
|
-
const toolCalls = _optionalChain([meta, 'optionalAccess',
|
|
31696
|
+
const approvalRequestId = _optionalChain([meta, 'optionalAccess', _552 => _552.approvalRequestId]);
|
|
31697
|
+
const toolCalls = _optionalChain([meta, 'optionalAccess', _553 => _553.toolCalls]);
|
|
31691
31698
|
if (typeof approvalRequestId !== "string" || !Array.isArray(toolCalls)) return null;
|
|
31692
31699
|
return {
|
|
31693
31700
|
approvalRequestId,
|
|
31694
|
-
dialogId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
31695
|
-
ticketId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
31696
|
-
approvalType: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
31697
|
-
resolution: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
31698
|
-
resolvedByName: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
31701
|
+
dialogId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _554 => _554.dialogId]), () => ( null)),
|
|
31702
|
+
ticketId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _555 => _555.ticketId]), () => ( null)),
|
|
31703
|
+
approvalType: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _556 => _556.approvalType]), () => ( null)),
|
|
31704
|
+
resolution: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _557 => _557.resolution]), () => ( null)),
|
|
31705
|
+
resolvedByName: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _558 => _558.resolvedByName]), () => ( null)),
|
|
31699
31706
|
toolCalls
|
|
31700
31707
|
};
|
|
31701
31708
|
}
|
|
@@ -31745,7 +31752,7 @@ function ApprovalRequestNotificationTile({
|
|
|
31745
31752
|
const [processing, setProcessing] = _react.useState.call(void 0, false);
|
|
31746
31753
|
const [localStatus, setLocalStatus] = _react.useState.call(void 0, null);
|
|
31747
31754
|
const approval = getApprovalMeta(notification);
|
|
31748
|
-
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess',
|
|
31755
|
+
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess', _559 => _559.resolution]));
|
|
31749
31756
|
const status = resolvedStatus !== "pending" ? resolvedStatus : _nullishCoalesce(localStatus, () => ( "pending"));
|
|
31750
31757
|
const batchData = _react.useMemo.call(void 0, () => approval ? approvalMetaToBatchData(approval) : null, [approval]);
|
|
31751
31758
|
const { innerRef, containerStyle } = useCollapsible({ expanded });
|
|
@@ -32049,7 +32056,7 @@ function TimeTrackerPanel({
|
|
|
32049
32056
|
error: showFieldError ? "Required if no notes added" : void 0,
|
|
32050
32057
|
disableClientFilter: !!onTicketSearch,
|
|
32051
32058
|
onInputChange: (value, reason) => {
|
|
32052
|
-
if (reason === "input") _optionalChain([onTicketSearch, 'optionalCall',
|
|
32059
|
+
if (reason === "input") _optionalChain([onTicketSearch, 'optionalCall', _560 => _560(value)]);
|
|
32053
32060
|
}
|
|
32054
32061
|
}
|
|
32055
32062
|
),
|
|
@@ -32064,7 +32071,7 @@ function TimeTrackerPanel({
|
|
|
32064
32071
|
disabled: customerLocked,
|
|
32065
32072
|
disableClientFilter: !!onCustomerSearch,
|
|
32066
32073
|
onInputChange: (value, reason) => {
|
|
32067
|
-
if (reason === "input") _optionalChain([onCustomerSearch, 'optionalCall',
|
|
32074
|
+
if (reason === "input") _optionalChain([onCustomerSearch, 'optionalCall', _561 => _561(value)]);
|
|
32068
32075
|
},
|
|
32069
32076
|
startAdornment: customerStartAdornment,
|
|
32070
32077
|
renderOption: renderCustomerOption
|
|
@@ -32157,7 +32164,7 @@ function LastEntryRow({ entry, onClick }) {
|
|
|
32157
32164
|
{
|
|
32158
32165
|
variant: "outline",
|
|
32159
32166
|
size: "icon",
|
|
32160
|
-
onClick: () => _optionalChain([onClick, 'optionalCall',
|
|
32167
|
+
onClick: () => _optionalChain([onClick, 'optionalCall', _562 => _562(entry)]),
|
|
32161
32168
|
disabled: !onClick,
|
|
32162
32169
|
"aria-label": `Open entry: ${entry.title}`,
|
|
32163
32170
|
className: "h-12 w-12 shrink-0 [&_svg]:!size-6",
|
|
@@ -32201,9 +32208,9 @@ function HeaderButton({
|
|
|
32201
32208
|
function TimeTrackerHeaderButton({ className, disabled }) {
|
|
32202
32209
|
const ctx = useOptionalTimeTracker();
|
|
32203
32210
|
const elapsedLabel = useTrackerClock({
|
|
32204
|
-
status: _nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
32205
|
-
runningSince: _optionalChain([ctx, 'optionalAccess',
|
|
32206
|
-
accumulatedMs: _optionalChain([ctx, 'optionalAccess',
|
|
32211
|
+
status: _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _563 => _563.status]), () => ( "ready")),
|
|
32212
|
+
runningSince: _optionalChain([ctx, 'optionalAccess', _564 => _564.runningSince]),
|
|
32213
|
+
accumulatedMs: _optionalChain([ctx, 'optionalAccess', _565 => _565.accumulatedMs])
|
|
32207
32214
|
});
|
|
32208
32215
|
if (!ctx) return null;
|
|
32209
32216
|
const { isOpen, open, close, status } = ctx;
|
|
@@ -32499,15 +32506,15 @@ function TicketCard({
|
|
|
32499
32506
|
transition: sortable.transition
|
|
32500
32507
|
};
|
|
32501
32508
|
if (showNewMessage) style.borderColor = columnColor;
|
|
32502
|
-
const showDeviceRow = !!(_optionalChain([ticket, 'access',
|
|
32509
|
+
const showDeviceRow = !!(_optionalChain([ticket, 'access', _566 => _566.deviceHostnames, 'optionalAccess', _567 => _567.length]) || ticket.organizationName);
|
|
32503
32510
|
const deviceText = [
|
|
32504
|
-
_optionalChain([ticket, 'access',
|
|
32511
|
+
_optionalChain([ticket, 'access', _568 => _568.deviceHostnames, 'optionalAccess', _569 => _569.join, 'call', _570 => _570(", ")]),
|
|
32505
32512
|
ticket.organizationName
|
|
32506
32513
|
].filter(Boolean).join(", ");
|
|
32507
32514
|
const handleClick = (e) => {
|
|
32508
32515
|
if (sortable.isDragging) e.preventDefault();
|
|
32509
32516
|
};
|
|
32510
|
-
const hasRightSection = !!(ticket.priority || _optionalChain([ticket, 'access',
|
|
32517
|
+
const hasRightSection = !!(ticket.priority || _optionalChain([ticket, 'access', _571 => _571.assignees, 'optionalAccess', _572 => _572.length]) || renderAssignSlot);
|
|
32511
32518
|
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: [
|
|
32512
32519
|
ticket.priority && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32513
32520
|
_chunkBGD345ZVcjs.Flag02Icon,
|
|
@@ -32516,7 +32523,7 @@ function TicketCard({
|
|
|
32516
32523
|
"aria-label": `Priority: ${ticket.priority}`
|
|
32517
32524
|
}
|
|
32518
32525
|
),
|
|
32519
|
-
renderAssignSlot ? renderAssignSlot(ticket) : _optionalChain([ticket, 'access',
|
|
32526
|
+
renderAssignSlot ? renderAssignSlot(ticket) : _optionalChain([ticket, 'access', _573 => _573.assignees, 'optionalAccess', _574 => _574.length]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex -space-x-2", children: [
|
|
32520
32527
|
ticket.assignees.slice(0, MAX_VISIBLE_ASSIGNEES).map((a) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32521
32528
|
SquareAvatar,
|
|
32522
32529
|
{
|
|
@@ -32547,7 +32554,7 @@ function TicketCard({
|
|
|
32547
32554
|
] }),
|
|
32548
32555
|
rightSection
|
|
32549
32556
|
] }),
|
|
32550
|
-
_optionalChain([ticket, 'access',
|
|
32557
|
+
_optionalChain([ticket, 'access', _575 => _575.tags, 'optionalAccess', _576 => _576.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketTagRow, { tags: ticket.tags }) : null,
|
|
32551
32558
|
timestampLabel && tooltipLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipProvider, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip, { children: [
|
|
32552
32559
|
/* @__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 }) }),
|
|
32553
32560
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: tooltipLabel })
|
|
@@ -32747,7 +32754,7 @@ function ColumnBody({ column, getTicketHref, renderAssignSlot, onApprove, onReje
|
|
|
32747
32754
|
const observer = new IntersectionObserver(
|
|
32748
32755
|
(entries) => {
|
|
32749
32756
|
if (entries.some((e) => e.isIntersecting)) {
|
|
32750
|
-
_optionalChain([loadMoreRef, 'access',
|
|
32757
|
+
_optionalChain([loadMoreRef, 'access', _577 => _577.current, 'optionalCall', _578 => _578(columnIdRef.current)]);
|
|
32751
32758
|
}
|
|
32752
32759
|
},
|
|
32753
32760
|
{ root, rootMargin: loadMoreRootMargin }
|
|
@@ -32777,7 +32784,7 @@ function ColumnBody({ column, getTicketHref, renderAssignSlot, onApprove, onReje
|
|
|
32777
32784
|
ticket: t,
|
|
32778
32785
|
columnId: column.id,
|
|
32779
32786
|
columnColor: column.color,
|
|
32780
|
-
href: _optionalChain([getTicketHref, 'optionalCall',
|
|
32787
|
+
href: _optionalChain([getTicketHref, 'optionalCall', _579 => _579(t.id)]),
|
|
32781
32788
|
renderAssignSlot,
|
|
32782
32789
|
onApprove,
|
|
32783
32790
|
onReject,
|
|
@@ -32877,17 +32884,17 @@ function Board({
|
|
|
32877
32884
|
const pointer = _core.pointerWithin.call(void 0, args);
|
|
32878
32885
|
const intersections = pointer.length > 0 ? pointer : _core.rectIntersection.call(void 0, args);
|
|
32879
32886
|
const ticketHit = intersections.find(
|
|
32880
|
-
(c) => _optionalChain([c, 'access',
|
|
32887
|
+
(c) => _optionalChain([c, 'access', _580 => _580.data, 'optionalAccess', _581 => _581.droppableContainer, 'optionalAccess', _582 => _582.data, 'optionalAccess', _583 => _583.current, 'optionalAccess', _584 => _584.type]) === "ticket"
|
|
32881
32888
|
);
|
|
32882
32889
|
if (ticketHit) return [ticketHit];
|
|
32883
32890
|
const columnHit = intersections.find(
|
|
32884
|
-
(c) => _optionalChain([c, 'access',
|
|
32891
|
+
(c) => _optionalChain([c, 'access', _585 => _585.data, 'optionalAccess', _586 => _586.droppableContainer, 'optionalAccess', _587 => _587.data, 'optionalAccess', _588 => _588.current, 'optionalAccess', _589 => _589.type]) === "column"
|
|
32885
32892
|
);
|
|
32886
32893
|
if (columnHit) {
|
|
32887
|
-
const columnId = _optionalChain([columnHit, 'access',
|
|
32894
|
+
const columnId = _optionalChain([columnHit, 'access', _590 => _590.data, 'optionalAccess', _591 => _591.droppableContainer, 'optionalAccess', _592 => _592.data, 'optionalAccess', _593 => _593.current, 'optionalAccess', _594 => _594.columnId]);
|
|
32888
32895
|
const ticketsInColumn = args.droppableContainers.filter((c) => {
|
|
32889
32896
|
const d = c.data.current;
|
|
32890
|
-
return _optionalChain([d, 'optionalAccess',
|
|
32897
|
+
return _optionalChain([d, 'optionalAccess', _595 => _595.type]) === "ticket" && d.columnId === columnId;
|
|
32891
32898
|
});
|
|
32892
32899
|
if (ticketsInColumn.length > 0) {
|
|
32893
32900
|
const closest = _core.closestCorners.call(void 0, { ...args, droppableContainers: ticketsInColumn });
|
|
@@ -32912,20 +32919,20 @@ function Board({
|
|
|
32912
32919
|
const overId = String(over.id);
|
|
32913
32920
|
if (activeId === overId) return;
|
|
32914
32921
|
const overData = over.data.current;
|
|
32915
|
-
const fromColumnId = _optionalChain([locate, 'call',
|
|
32916
|
-
const toColumnId = _optionalChain([overData, 'optionalAccess',
|
|
32922
|
+
const fromColumnId = _optionalChain([locate, 'call', _596 => _596(items, activeId), 'optionalAccess', _597 => _597.columnId]);
|
|
32923
|
+
const toColumnId = _optionalChain([overData, 'optionalAccess', _598 => _598.columnId]);
|
|
32917
32924
|
if (!fromColumnId || !toColumnId || fromColumnId === toColumnId) return;
|
|
32918
32925
|
const origin = dragOriginRef.current;
|
|
32919
|
-
const isReturnToOrigin = _optionalChain([origin, 'optionalAccess',
|
|
32926
|
+
const isReturnToOrigin = _optionalChain([origin, 'optionalAccess', _599 => _599.fromColumnId]) === toColumnId;
|
|
32920
32927
|
const targetCol = items.find((c) => c.id === toColumnId);
|
|
32921
|
-
const blockedBySource = !isReturnToOrigin && !!_optionalChain([targetCol, 'optionalAccess',
|
|
32922
|
-
if (_optionalChain([targetCol, 'optionalAccess',
|
|
32928
|
+
const blockedBySource = !isReturnToOrigin && !!_optionalChain([targetCol, 'optionalAccess', _600 => _600.allowedFromColumns]) && !!origin && !targetCol.allowedFromColumns.includes(origin.fromColumnId);
|
|
32929
|
+
if (_optionalChain([targetCol, 'optionalAccess', _601 => _601.dropDisabled]) && !isReturnToOrigin || blockedBySource) return;
|
|
32923
32930
|
setItems((prev) => {
|
|
32924
32931
|
const fromIndex = findIndexInColumn(prev, fromColumnId, activeId);
|
|
32925
32932
|
const toCol = prev.find((c) => c.id === toColumnId);
|
|
32926
32933
|
if (fromIndex < 0 || !toCol) return prev;
|
|
32927
32934
|
let toIndex;
|
|
32928
|
-
if (_optionalChain([overData, 'optionalAccess',
|
|
32935
|
+
if (_optionalChain([overData, 'optionalAccess', _602 => _602.type]) === "column") {
|
|
32929
32936
|
toIndex = toCol.tickets.length;
|
|
32930
32937
|
} else {
|
|
32931
32938
|
const overIndex = toCol.tickets.findIndex((t) => t.id === overId);
|
|
@@ -32967,14 +32974,14 @@ function Board({
|
|
|
32967
32974
|
const toColumnId = located.columnId;
|
|
32968
32975
|
const isCrossColumn = origin.fromColumnId !== toColumnId;
|
|
32969
32976
|
const targetCol = items.find((c) => c.id === toColumnId);
|
|
32970
|
-
if (isCrossColumn && (_optionalChain([targetCol, 'optionalAccess',
|
|
32977
|
+
if (isCrossColumn && (_optionalChain([targetCol, 'optionalAccess', _603 => _603.dropDisabled]) || _optionalChain([targetCol, 'optionalAccess', _604 => _604.allowedFromColumns]) && !targetCol.allowedFromColumns.includes(origin.fromColumnId))) {
|
|
32971
32978
|
setItems(columns);
|
|
32972
32979
|
return;
|
|
32973
32980
|
}
|
|
32974
32981
|
let finalIndex = located.index;
|
|
32975
|
-
let finalColumnTickets = _nullishCoalesce(_optionalChain([items, 'access',
|
|
32982
|
+
let finalColumnTickets = _nullishCoalesce(_optionalChain([items, 'access', _605 => _605.find, 'call', _606 => _606((c) => c.id === toColumnId), 'optionalAccess', _607 => _607.tickets]), () => ( []));
|
|
32976
32983
|
const overData = over.data.current;
|
|
32977
|
-
if (_optionalChain([overData, 'optionalAccess',
|
|
32984
|
+
if (_optionalChain([overData, 'optionalAccess', _608 => _608.type]) === "ticket") {
|
|
32978
32985
|
const overIndex = findIndexInColumn(items, toColumnId, String(over.id));
|
|
32979
32986
|
if (overIndex >= 0 && overIndex !== located.index) {
|
|
32980
32987
|
finalColumnTickets = _sortable.arrayMove.call(void 0, finalColumnTickets, located.index, overIndex);
|
|
@@ -32994,8 +33001,8 @@ function Board({
|
|
|
32994
33001
|
ticketId: origin.ticketId,
|
|
32995
33002
|
fromColumnId: origin.fromColumnId,
|
|
32996
33003
|
toColumnId,
|
|
32997
|
-
afterTicketId: _nullishCoalesce(_optionalChain([finalColumnTickets, 'access',
|
|
32998
|
-
beforeTicketId: _nullishCoalesce(_optionalChain([finalColumnTickets, 'access',
|
|
33004
|
+
afterTicketId: _nullishCoalesce(_optionalChain([finalColumnTickets, 'access', _609 => _609[finalIndex - 1], 'optionalAccess', _610 => _610.id]), () => ( null)),
|
|
33005
|
+
beforeTicketId: _nullishCoalesce(_optionalChain([finalColumnTickets, 'access', _611 => _611[finalIndex + 1], 'optionalAccess', _612 => _612.id]), () => ( null))
|
|
32999
33006
|
});
|
|
33000
33007
|
};
|
|
33001
33008
|
const handleDragCancel = () => {
|
|
@@ -33024,8 +33031,8 @@ function Board({
|
|
|
33024
33031
|
children: items.map((column, i) => {
|
|
33025
33032
|
const prev = items[i - 1];
|
|
33026
33033
|
const next = items[i + 1];
|
|
33027
|
-
const joinLeft = !!(column.system && _optionalChain([prev, 'optionalAccess',
|
|
33028
|
-
const joinRight = !!(column.system && _optionalChain([next, 'optionalAccess',
|
|
33034
|
+
const joinLeft = !!(column.system && _optionalChain([prev, 'optionalAccess', _613 => _613.system]));
|
|
33035
|
+
const joinRight = !!(column.system && _optionalChain([next, 'optionalAccess', _614 => _614.system]));
|
|
33029
33036
|
const showGap = i > 0 && !joinLeft;
|
|
33030
33037
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React102.Fragment, { children: [
|
|
33031
33038
|
showGap && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: "w-[var(--spacing-system-mf)] shrink-0" }),
|
|
@@ -33078,7 +33085,7 @@ function Board({
|
|
|
33078
33085
|
{
|
|
33079
33086
|
ticket: activeTicket.ticket,
|
|
33080
33087
|
columnId: activeTicket.columnId,
|
|
33081
|
-
columnColor: _optionalChain([items, 'access',
|
|
33088
|
+
columnColor: _optionalChain([items, 'access', _615 => _615.find, 'call', _616 => _616((c) => c.id === activeTicket.columnId), 'optionalAccess', _617 => _617.color]),
|
|
33082
33089
|
isOverlay: true
|
|
33083
33090
|
}
|
|
33084
33091
|
) : null })
|
|
@@ -33094,7 +33101,7 @@ function locate(cols, ticketId) {
|
|
|
33094
33101
|
return null;
|
|
33095
33102
|
}
|
|
33096
33103
|
function findIndexInColumn(cols, columnId, ticketId) {
|
|
33097
|
-
return _nullishCoalesce(_optionalChain([cols, 'access',
|
|
33104
|
+
return _nullishCoalesce(_optionalChain([cols, 'access', _618 => _618.find, 'call', _619 => _619((c) => c.id === columnId), 'optionalAccess', _620 => _620.tickets, 'access', _621 => _621.findIndex, 'call', _622 => _622((t) => t.id === ticketId)]), () => ( -1));
|
|
33098
33105
|
}
|
|
33099
33106
|
|
|
33100
33107
|
// src/components/features/board/types.ts
|
|
@@ -33342,7 +33349,7 @@ function Header2({ config, platform }) {
|
|
|
33342
33349
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
33343
33350
|
"flex justify-start w-full",
|
|
33344
33351
|
"font-bold text-[16px] leading-none tracking-[-0.32px]",
|
|
33345
|
-
index < (_nullishCoalesce(_optionalChain([item, 'access',
|
|
33352
|
+
index < (_nullishCoalesce(_optionalChain([item, 'access', _623 => _623.children, 'optionalAccess', _624 => _624.length]), () => ( 0))) - 1 && "mb-1",
|
|
33346
33353
|
"text-ods-text-primary",
|
|
33347
33354
|
// All dropdown items use primary text color
|
|
33348
33355
|
child.isActive && "bg-ods-bg-hover"
|
|
@@ -33434,7 +33441,7 @@ function Header2({ config, platform }) {
|
|
|
33434
33441
|
style: config.style,
|
|
33435
33442
|
children: [
|
|
33436
33443
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-start flex-shrink-0", children: [
|
|
33437
|
-
_optionalChain([config, 'access',
|
|
33444
|
+
_optionalChain([config, 'access', _625 => _625.actions, 'optionalAccess', _626 => _626.left]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center", children: config.actions.left }),
|
|
33438
33445
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWBR7H6E3cjs.next_link_default, { href: config.logo.href, className: "transition-opacity duration-200 hover:opacity-80", children: config.logo.element })
|
|
33439
33446
|
] }),
|
|
33440
33447
|
config.navigation && config.navigation.items.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -33451,7 +33458,7 @@ function Header2({ config, platform }) {
|
|
|
33451
33458
|
}
|
|
33452
33459
|
),
|
|
33453
33460
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-end gap-4 flex-shrink-0", children: [
|
|
33454
|
-
_optionalChain([config, 'access',
|
|
33461
|
+
_optionalChain([config, 'access', _627 => _627.actions, 'optionalAccess', _628 => _628.right]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden md:flex items-center gap-4", children: config.actions.right }),
|
|
33455
33462
|
config.mobile && config.mobile.enabled && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33456
33463
|
_chunkNYIZVI4Icjs.Button,
|
|
33457
33464
|
{
|
|
@@ -33459,10 +33466,10 @@ function Header2({ config, platform }) {
|
|
|
33459
33466
|
size: "icon",
|
|
33460
33467
|
className: "flex md:hidden",
|
|
33461
33468
|
onClick: () => {
|
|
33462
|
-
_optionalChain([config, 'access',
|
|
33469
|
+
_optionalChain([config, 'access', _629 => _629.mobile, 'optionalAccess', _630 => _630.onToggle, 'optionalCall', _631 => _631()]);
|
|
33463
33470
|
},
|
|
33464
|
-
"aria-label": _optionalChain([config, 'access',
|
|
33465
|
-
leftIcon: _optionalChain([config, 'access',
|
|
33471
|
+
"aria-label": _optionalChain([config, 'access', _632 => _632.mobile, 'optionalAccess', _633 => _633.isOpen]) ? "Close menu" : "Open menu",
|
|
33472
|
+
leftIcon: _optionalChain([config, 'access', _634 => _634.mobile, 'optionalAccess', _635 => _635.menuIcon]) || /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.Menu01Icon, {})
|
|
33466
33473
|
}
|
|
33467
33474
|
)
|
|
33468
33475
|
] })
|
|
@@ -33479,10 +33486,10 @@ function Header2({ config, platform }) {
|
|
|
33479
33486
|
// src/components/navigation/header-skeleton.tsx
|
|
33480
33487
|
|
|
33481
33488
|
function HeaderSkeleton({ config }) {
|
|
33482
|
-
const showNavigation = _optionalChain([config, 'optionalAccess',
|
|
33483
|
-
const showActions = _optionalChain([config, 'optionalAccess',
|
|
33484
|
-
const showMobileMenu = _optionalChain([config, 'optionalAccess',
|
|
33485
|
-
const isAdminHeader = _optionalChain([config, 'optionalAccess',
|
|
33489
|
+
const showNavigation = _optionalChain([config, 'optionalAccess', _636 => _636.navigation]) && config.navigation.items.length > 0;
|
|
33490
|
+
const showActions = _optionalChain([config, 'optionalAccess', _637 => _637.actions, 'optionalAccess', _638 => _638.right]) && config.actions.right.length > 0;
|
|
33491
|
+
const showMobileMenu = _optionalChain([config, 'optionalAccess', _639 => _639.mobile, 'optionalAccess', _640 => _640.enabled]);
|
|
33492
|
+
const isAdminHeader = _optionalChain([config, 'optionalAccess', _641 => _641.className, 'optionalAccess', _642 => _642.includes, 'call', _643 => _643("admin")]);
|
|
33486
33493
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "sticky top-0 z-40 w-full", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33487
33494
|
"header",
|
|
33488
33495
|
{
|
|
@@ -33491,11 +33498,11 @@ function HeaderSkeleton({ config }) {
|
|
|
33491
33498
|
"bg-ods-card border-b border-ods-border backdrop-blur-sm",
|
|
33492
33499
|
"px-6 py-3",
|
|
33493
33500
|
"transition-opacity duration-300 ease-in-out",
|
|
33494
|
-
_optionalChain([config, 'optionalAccess',
|
|
33501
|
+
_optionalChain([config, 'optionalAccess', _644 => _644.className])
|
|
33495
33502
|
),
|
|
33496
33503
|
children: [
|
|
33497
33504
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-start flex-shrink-0", children: [
|
|
33498
|
-
isAdminHeader && _optionalChain([config, 'optionalAccess',
|
|
33505
|
+
isAdminHeader && _optionalChain([config, 'optionalAccess', _645 => _645.actions, 'optionalAccess', _646 => _646.left]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mr-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-10 w-10 bg-ods-border rounded animate-pulse" }) }),
|
|
33499
33506
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
33500
33507
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-8 w-8 bg-ods-border rounded animate-pulse" }),
|
|
33501
33508
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-6 w-24 bg-ods-border rounded animate-pulse" })
|
|
@@ -33503,8 +33510,8 @@ function HeaderSkeleton({ config }) {
|
|
|
33503
33510
|
] }),
|
|
33504
33511
|
showNavigation && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "nav", { className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
33505
33512
|
"hidden md:flex items-center gap-2",
|
|
33506
|
-
_optionalChain([config, 'optionalAccess',
|
|
33507
|
-
_optionalChain([config, 'optionalAccess',
|
|
33513
|
+
_optionalChain([config, 'optionalAccess', _647 => _647.navigation, 'optionalAccess', _648 => _648.position]) === "center" && "absolute left-1/2 transform -translate-x-1/2",
|
|
33514
|
+
_optionalChain([config, 'optionalAccess', _649 => _649.navigation, 'optionalAccess', _650 => _650.position]) === "right" && "ml-auto mr-4"
|
|
33508
33515
|
), children: [
|
|
33509
33516
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-10 w-20 bg-ods-border rounded animate-pulse" }),
|
|
33510
33517
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-10 w-28 bg-ods-border rounded animate-pulse" }),
|
|
@@ -33552,7 +33559,7 @@ function MobileNavPanel({ isOpen, config }) {
|
|
|
33552
33559
|
_react.useEffect.call(void 0, () => {
|
|
33553
33560
|
const handleKeyDown = (e) => {
|
|
33554
33561
|
if (e.key === "Escape" && isOpen) {
|
|
33555
|
-
_optionalChain([config, 'access',
|
|
33562
|
+
_optionalChain([config, 'access', _651 => _651.onClose, 'optionalCall', _652 => _652()]);
|
|
33556
33563
|
}
|
|
33557
33564
|
};
|
|
33558
33565
|
if (isOpen) {
|
|
@@ -33569,7 +33576,7 @@ function MobileNavPanel({ isOpen, config }) {
|
|
|
33569
33576
|
if (item.onClick) {
|
|
33570
33577
|
item.onClick();
|
|
33571
33578
|
}
|
|
33572
|
-
_optionalChain([config, 'access',
|
|
33579
|
+
_optionalChain([config, 'access', _653 => _653.onClose, 'optionalCall', _654 => _654()]);
|
|
33573
33580
|
};
|
|
33574
33581
|
if (item.href) {
|
|
33575
33582
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -33739,7 +33746,7 @@ function SlidingSidebar({ config }) {
|
|
|
33739
33746
|
variant: "transparent",
|
|
33740
33747
|
size: "default",
|
|
33741
33748
|
onClick: () => {
|
|
33742
|
-
_optionalChain([item, 'access',
|
|
33749
|
+
_optionalChain([item, 'access', _655 => _655.onClick, 'optionalCall', _656 => _656()]);
|
|
33743
33750
|
config.onClose();
|
|
33744
33751
|
},
|
|
33745
33752
|
leftIcon: item.icon,
|
|
@@ -33762,7 +33769,7 @@ function SlidingSidebar({ config }) {
|
|
|
33762
33769
|
variant: "transparent",
|
|
33763
33770
|
size: "default",
|
|
33764
33771
|
onClick: () => {
|
|
33765
|
-
_optionalChain([item, 'access',
|
|
33772
|
+
_optionalChain([item, 'access', _657 => _657.onClick, 'optionalCall', _658 => _658()]);
|
|
33766
33773
|
config.onClose();
|
|
33767
33774
|
},
|
|
33768
33775
|
leftIcon: item.icon,
|
|
@@ -33889,7 +33896,7 @@ function StickySectionNav({
|
|
|
33889
33896
|
] });
|
|
33890
33897
|
}
|
|
33891
33898
|
function useSectionNavigation(sections, options) {
|
|
33892
|
-
const [activeSection, setActiveSection] = _react.useState.call(void 0, _optionalChain([sections, 'access',
|
|
33899
|
+
const [activeSection, setActiveSection] = _react.useState.call(void 0, _optionalChain([sections, 'access', _659 => _659[0], 'optionalAccess', _660 => _660.id]) || "");
|
|
33893
33900
|
const isScrollingFromClick = _react.useRef.call(void 0, false);
|
|
33894
33901
|
const { offset: offset2 = 100 } = options || {};
|
|
33895
33902
|
const handleSectionClick = _react.useCallback.call(void 0, (sectionId) => {
|
|
@@ -33913,7 +33920,7 @@ function useSectionNavigation(sections, options) {
|
|
|
33913
33920
|
const handleScroll = () => {
|
|
33914
33921
|
if (isScrollingFromClick.current) return;
|
|
33915
33922
|
const scrollPosition = window.scrollY + offset2 + 50;
|
|
33916
|
-
let currentSection = _optionalChain([sections, 'access',
|
|
33923
|
+
let currentSection = _optionalChain([sections, 'access', _661 => _661[0], 'optionalAccess', _662 => _662.id]) || "";
|
|
33917
33924
|
for (let i = sections.length - 1; i >= 0; i--) {
|
|
33918
33925
|
const element = document.getElementById(sections[i].id);
|
|
33919
33926
|
if (element && scrollPosition >= element.offsetTop) {
|
|
@@ -34104,7 +34111,7 @@ function NavigationSidebar({ config, disabled = false }) {
|
|
|
34104
34111
|
} else {
|
|
34105
34112
|
setDesktopMinimized((prev) => !prev);
|
|
34106
34113
|
}
|
|
34107
|
-
_optionalChain([config, 'access',
|
|
34114
|
+
_optionalChain([config, 'access', _663 => _663.onToggleMinimized, 'optionalCall', _664 => _664()]);
|
|
34108
34115
|
}, [isTablet, setDesktopMinimized, config]);
|
|
34109
34116
|
const closeOverlay = _react.useCallback.call(void 0, () => {
|
|
34110
34117
|
setTabletMinimized(true);
|
|
@@ -34118,11 +34125,11 @@ function NavigationSidebar({ config, disabled = false }) {
|
|
|
34118
34125
|
return () => document.removeEventListener("keydown", handleKeyDown);
|
|
34119
34126
|
}, [isOverlayOpen, closeOverlay]);
|
|
34120
34127
|
const handleItemClick = _react.useCallback.call(void 0, (item, event) => {
|
|
34121
|
-
_optionalChain([event, 'optionalAccess',
|
|
34128
|
+
_optionalChain([event, 'optionalAccess', _665 => _665.stopPropagation, 'call', _666 => _666()]);
|
|
34122
34129
|
if (item.onClick) {
|
|
34123
34130
|
item.onClick();
|
|
34124
34131
|
} else if (item.path) {
|
|
34125
|
-
_optionalChain([config, 'access',
|
|
34132
|
+
_optionalChain([config, 'access', _667 => _667.onNavigate, 'optionalCall', _668 => _668(item.path)]);
|
|
34126
34133
|
}
|
|
34127
34134
|
if (isTablet) setTabletMinimized(true);
|
|
34128
34135
|
}, [config, isTablet]);
|
|
@@ -34247,11 +34254,11 @@ function HeaderGlobalSearch({
|
|
|
34247
34254
|
};
|
|
34248
34255
|
const handleSubmit = (e) => {
|
|
34249
34256
|
e.preventDefault();
|
|
34250
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
34257
|
+
_optionalChain([onSubmit, 'optionalCall', _669 => _669(currentValue)]);
|
|
34251
34258
|
};
|
|
34252
34259
|
const handleKeyDown = (e) => {
|
|
34253
34260
|
if (e.key === "Enter") {
|
|
34254
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
34261
|
+
_optionalChain([onSubmit, 'optionalCall', _670 => _670(currentValue)]);
|
|
34255
34262
|
}
|
|
34256
34263
|
};
|
|
34257
34264
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -34345,8 +34352,8 @@ function HeaderOrganizationFilter({
|
|
|
34345
34352
|
className
|
|
34346
34353
|
}) {
|
|
34347
34354
|
const selectedOrg = organizations.find((o) => o.id === selectedOrgId);
|
|
34348
|
-
const displayName = _optionalChain([selectedOrg, 'optionalAccess',
|
|
34349
|
-
const deviceCount = _nullishCoalesce(_optionalChain([selectedOrg, 'optionalAccess',
|
|
34355
|
+
const displayName = _optionalChain([selectedOrg, 'optionalAccess', _671 => _671.name]) || "All Organizations";
|
|
34356
|
+
const deviceCount = _nullishCoalesce(_optionalChain([selectedOrg, 'optionalAccess', _672 => _672.deviceCount]), () => ( totalDeviceCount));
|
|
34350
34357
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNYIZVI4Icjs.DropdownMenu, { children: [
|
|
34351
34358
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNYIZVI4Icjs.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
34352
34359
|
"button",
|
|
@@ -34371,11 +34378,11 @@ function HeaderOrganizationFilter({
|
|
|
34371
34378
|
}
|
|
34372
34379
|
) }),
|
|
34373
34380
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNYIZVI4Icjs.DropdownMenuContent, { align: "end", className: "min-w-[240px]", children: [
|
|
34374
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNYIZVI4Icjs.DropdownMenuItem, { onClick: () => _optionalChain([onOrgChange, 'optionalCall',
|
|
34381
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNYIZVI4Icjs.DropdownMenuItem, { onClick: () => _optionalChain([onOrgChange, 'optionalCall', _673 => _673("")]), children: "All Organizations" }),
|
|
34375
34382
|
organizations.map((org) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34376
34383
|
_chunkNYIZVI4Icjs.DropdownMenuItem,
|
|
34377
34384
|
{
|
|
34378
|
-
onClick: () => _optionalChain([onOrgChange, 'optionalCall',
|
|
34385
|
+
onClick: () => _optionalChain([onOrgChange, 'optionalCall', _674 => _674(org.id)]),
|
|
34379
34386
|
children: org.name
|
|
34380
34387
|
},
|
|
34381
34388
|
org.id
|
|
@@ -34565,9 +34572,9 @@ function NotificationsHeaderButton({
|
|
|
34565
34572
|
dimmedClass
|
|
34566
34573
|
}) {
|
|
34567
34574
|
const ctx = useOptionalNotifications();
|
|
34568
|
-
const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
34569
|
-
const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
34570
|
-
const onClick = _optionalChain([ctx, 'optionalAccess',
|
|
34575
|
+
const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _675 => _675.unreadCount]), () => ( fallbackUnreadCount))) > 0;
|
|
34576
|
+
const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _676 => _676.isOpen]), () => ( false));
|
|
34577
|
+
const onClick = _optionalChain([ctx, 'optionalAccess', _677 => _677.toggle]);
|
|
34571
34578
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34572
34579
|
HeaderButton,
|
|
34573
34580
|
{
|
|
@@ -34631,7 +34638,7 @@ var MobileBurgerMenu = React118.default.memo(function MobileBurgerMenu2({
|
|
|
34631
34638
|
if (item.onClick) {
|
|
34632
34639
|
item.onClick();
|
|
34633
34640
|
} else if (item.path) {
|
|
34634
|
-
_optionalChain([config, 'access',
|
|
34641
|
+
_optionalChain([config, 'access', _678 => _678.onNavigate, 'optionalCall', _679 => _679(item.path)]);
|
|
34635
34642
|
}
|
|
34636
34643
|
onClose();
|
|
34637
34644
|
}, [config, onClose]);
|
|
@@ -34896,7 +34903,7 @@ var AppLayoutDrawerRoot = ({
|
|
|
34896
34903
|
const handleOpenChange = React111.useCallback(
|
|
34897
34904
|
(next) => {
|
|
34898
34905
|
if (!isControlled) setInternalOpen(next);
|
|
34899
|
-
_optionalChain([onOpenChange, 'optionalCall',
|
|
34906
|
+
_optionalChain([onOpenChange, 'optionalCall', _680 => _680(next)]);
|
|
34900
34907
|
},
|
|
34901
34908
|
[isControlled, onOpenChange]
|
|
34902
34909
|
);
|
|
@@ -34906,10 +34913,10 @@ var AppLayoutDrawerRoot = ({
|
|
|
34906
34913
|
const handleOpenChangeRef = React111.useRef(handleOpenChange);
|
|
34907
34914
|
handleOpenChangeRef.current = handleOpenChange;
|
|
34908
34915
|
React111.useEffect(() => {
|
|
34909
|
-
if (open) _optionalChain([coordination, 'optionalAccess',
|
|
34916
|
+
if (open) _optionalChain([coordination, 'optionalAccess', _681 => _681.notifyDrawerDidOpen, 'call', _682 => _682()]);
|
|
34910
34917
|
}, [open, coordination]);
|
|
34911
34918
|
React111.useEffect(() => {
|
|
34912
|
-
return _optionalChain([coordination, 'optionalAccess',
|
|
34919
|
+
return _optionalChain([coordination, 'optionalAccess', _683 => _683.registerDrawer, 'call', _684 => _684({
|
|
34913
34920
|
close: () => {
|
|
34914
34921
|
if (openRef.current) handleOpenChangeRef.current(false);
|
|
34915
34922
|
}
|
|
@@ -35293,10 +35300,10 @@ var AppLayoutDrawerContent = React111.forwardRef(
|
|
|
35293
35300
|
),
|
|
35294
35301
|
style,
|
|
35295
35302
|
onInteractOutside: (event) => {
|
|
35296
|
-
_optionalChain([onInteractOutside, 'optionalCall',
|
|
35303
|
+
_optionalChain([onInteractOutside, 'optionalCall', _685 => _685(event)]);
|
|
35297
35304
|
if (event.defaultPrevented) return;
|
|
35298
35305
|
const target = event.target;
|
|
35299
|
-
const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess',
|
|
35306
|
+
const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess', _686 => _686.contains, 'call', _687 => _687(target)]);
|
|
35300
35307
|
if (!isInsideContainer) {
|
|
35301
35308
|
event.preventDefault();
|
|
35302
35309
|
return;
|
|
@@ -35709,7 +35716,7 @@ var ShellTypeBadge = ({
|
|
|
35709
35716
|
className,
|
|
35710
35717
|
iconClassName
|
|
35711
35718
|
}) => {
|
|
35712
|
-
const normalizedType = _optionalChain([shellType, 'optionalAccess',
|
|
35719
|
+
const normalizedType = _optionalChain([shellType, 'optionalAccess', _688 => _688.toUpperCase, 'call', _689 => _689()]);
|
|
35713
35720
|
const label = getShellLabel(normalizedType);
|
|
35714
35721
|
const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
|
|
35715
35722
|
const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
|
|
@@ -36096,12 +36103,12 @@ function OnboardingWalkthrough({
|
|
|
36096
36103
|
}
|
|
36097
36104
|
}, [state.completedSteps, markComplete]);
|
|
36098
36105
|
const handleStepSkip = (step) => {
|
|
36099
|
-
_optionalChain([step, 'access',
|
|
36106
|
+
_optionalChain([step, 'access', _690 => _690.onSkip, 'optionalCall', _691 => _691()]);
|
|
36100
36107
|
markSkipped(step.id);
|
|
36101
36108
|
};
|
|
36102
36109
|
const handleDismiss = () => {
|
|
36103
36110
|
dismissOnboarding();
|
|
36104
|
-
_optionalChain([onDismiss, 'optionalCall',
|
|
36111
|
+
_optionalChain([onDismiss, 'optionalCall', _692 => _692()]);
|
|
36105
36112
|
};
|
|
36106
36113
|
if (state.dismissed) {
|
|
36107
36114
|
return null;
|
|
@@ -36231,7 +36238,7 @@ var LogCard = ({ log, isLast, showConnector, onClick }) => {
|
|
|
36231
36238
|
onKeyDown: (e) => {
|
|
36232
36239
|
if (e.key === "Enter" || e.key === " ") {
|
|
36233
36240
|
e.preventDefault();
|
|
36234
|
-
_optionalChain([onClick, 'optionalCall',
|
|
36241
|
+
_optionalChain([onClick, 'optionalCall', _693 => _693()]);
|
|
36235
36242
|
}
|
|
36236
36243
|
},
|
|
36237
36244
|
children: [
|
|
@@ -36332,7 +36339,7 @@ var LogsList = React115.forwardRef(({
|
|
|
36332
36339
|
log,
|
|
36333
36340
|
isLast: index === logs.length - 1,
|
|
36334
36341
|
showConnector,
|
|
36335
|
-
onClick: () => _optionalChain([onLogClick, 'optionalCall',
|
|
36342
|
+
onClick: () => _optionalChain([onLogClick, 'optionalCall', _694 => _694(log)])
|
|
36336
36343
|
},
|
|
36337
36344
|
log.id
|
|
36338
36345
|
))
|
|
@@ -36433,7 +36440,7 @@ var Slider = React117.forwardRef(
|
|
|
36433
36440
|
({ className, value = [0], onValueChange, min = 0, max = 100, step = 1, ...props }, ref) => {
|
|
36434
36441
|
const handleChange = (e) => {
|
|
36435
36442
|
const newValue = [Number(e.target.value)];
|
|
36436
|
-
_optionalChain([onValueChange, 'optionalCall',
|
|
36443
|
+
_optionalChain([onValueChange, 'optionalCall', _695 => _695(newValue)]);
|
|
36437
36444
|
};
|
|
36438
36445
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
36439
36446
|
"input",
|
|
@@ -36867,7 +36874,7 @@ function CursorPaginationSimple({
|
|
|
36867
36874
|
{
|
|
36868
36875
|
variant: "transparent",
|
|
36869
36876
|
size: "icon",
|
|
36870
|
-
onClick: () => _optionalChain([onPrevious, 'optionalCall',
|
|
36877
|
+
onClick: () => _optionalChain([onPrevious, 'optionalCall', _696 => _696("")]),
|
|
36871
36878
|
disabled: !hasPreviousPage || loading,
|
|
36872
36879
|
className: "h-8 w-8",
|
|
36873
36880
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" }),
|
|
@@ -36879,7 +36886,7 @@ function CursorPaginationSimple({
|
|
|
36879
36886
|
{
|
|
36880
36887
|
variant: "transparent",
|
|
36881
36888
|
size: "icon",
|
|
36882
|
-
onClick: () => _optionalChain([onNext, 'optionalCall',
|
|
36889
|
+
onClick: () => _optionalChain([onNext, 'optionalCall', _697 => _697("")]),
|
|
36883
36890
|
disabled: !hasNextPage || loading,
|
|
36884
36891
|
className: "h-8 w-8",
|
|
36885
36892
|
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" }),
|
|
@@ -36899,8 +36906,8 @@ function TableEmptyState({ message: message2, icon, action, className }) {
|
|
|
36899
36906
|
icon: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWZW7C7TFcjs.SearchIcon, {}))),
|
|
36900
36907
|
title: _nullishCoalesce(message2, () => ( "No results found")),
|
|
36901
36908
|
description: message2 == null ? "Try adjusting your search or filters" : void 0,
|
|
36902
|
-
buttonLabel: _optionalChain([action, 'optionalAccess',
|
|
36903
|
-
onButtonClick: _optionalChain([action, 'optionalAccess',
|
|
36909
|
+
buttonLabel: _optionalChain([action, 'optionalAccess', _698 => _698.label]),
|
|
36910
|
+
onButtonClick: _optionalChain([action, 'optionalAccess', _699 => _699.onClick]),
|
|
36904
36911
|
className: _chunkFIG2RKZFcjs.cn.call(void 0, "py-[var(--spacing-system-xxl)]", className)
|
|
36905
36912
|
}
|
|
36906
36913
|
);
|
|
@@ -36921,7 +36928,7 @@ function TableColumnFilterDropdown({
|
|
|
36921
36928
|
placement = "bottom-start",
|
|
36922
36929
|
dropdownClassName = "min-w-[240px]"
|
|
36923
36930
|
}) {
|
|
36924
|
-
const activeCount = _optionalChain([filters, 'optionalAccess',
|
|
36931
|
+
const activeCount = _optionalChain([filters, 'optionalAccess', _700 => _700[columnKey], 'optionalAccess', _701 => _701.length]) || 0;
|
|
36925
36932
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
36926
36933
|
FiltersDropdown,
|
|
36927
36934
|
{
|
|
@@ -36964,7 +36971,7 @@ function TableColumnFilterDropdown({
|
|
|
36964
36971
|
delete newFilters[columnKey];
|
|
36965
36972
|
onFilterChange(newFilters);
|
|
36966
36973
|
},
|
|
36967
|
-
currentFilters: { [columnKey]: _optionalChain([filters, 'optionalAccess',
|
|
36974
|
+
currentFilters: { [columnKey]: _optionalChain([filters, 'optionalAccess', _702 => _702[columnKey]]) || [] },
|
|
36968
36975
|
placement,
|
|
36969
36976
|
dropdownClassName
|
|
36970
36977
|
}
|
|
@@ -37174,7 +37181,7 @@ function TableCardSkeleton({
|
|
|
37174
37181
|
className,
|
|
37175
37182
|
rowClassName
|
|
37176
37183
|
}) {
|
|
37177
|
-
const primaryKey = _optionalChain([(_nullishCoalesce(columns.find((c) => /flex-(1|\[)/.test(c.width || "")), () => ( columns[0]))), 'optionalAccess',
|
|
37184
|
+
const primaryKey = _optionalChain([(_nullishCoalesce(columns.find((c) => /flex-(1|\[)/.test(c.width || "")), () => ( columns[0]))), 'optionalAccess', _703 => _703.key]);
|
|
37178
37185
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
37179
37186
|
"div",
|
|
37180
37187
|
{
|
|
@@ -37267,7 +37274,7 @@ function TableRow({
|
|
|
37267
37274
|
const keys = column.key.split(".");
|
|
37268
37275
|
let value = item;
|
|
37269
37276
|
for (const key of keys) {
|
|
37270
|
-
value = _optionalChain([value, 'optionalAccess',
|
|
37277
|
+
value = _optionalChain([value, 'optionalAccess', _704 => _704[key]]);
|
|
37271
37278
|
}
|
|
37272
37279
|
if (value === null || value === void 0) {
|
|
37273
37280
|
return "-";
|
|
@@ -37356,7 +37363,7 @@ function useTableMotion(enabled) {
|
|
|
37356
37363
|
// src/components/ui/table/table.tsx
|
|
37357
37364
|
|
|
37358
37365
|
function injectSyntheticColumns(columns, rowActions, renderRowActions, rowHref) {
|
|
37359
|
-
const hasActions = Boolean(_optionalChain([rowActions, 'optionalAccess',
|
|
37366
|
+
const hasActions = Boolean(_optionalChain([rowActions, 'optionalAccess', _705 => _705.length])) || Boolean(renderRowActions);
|
|
37360
37367
|
const result = [...columns];
|
|
37361
37368
|
if (hasActions) {
|
|
37362
37369
|
const actionsColumn = {
|
|
@@ -37452,7 +37459,7 @@ function Table({
|
|
|
37452
37459
|
return rowKey(item);
|
|
37453
37460
|
}
|
|
37454
37461
|
const key = item[rowKey];
|
|
37455
|
-
return _optionalChain([key, 'optionalAccess',
|
|
37462
|
+
return _optionalChain([key, 'optionalAccess', _706 => _706.toString, 'call', _707 => _707()]) || index.toString();
|
|
37456
37463
|
};
|
|
37457
37464
|
const getRowClassName = (item, index) => {
|
|
37458
37465
|
if (typeof rowClassName === "function") {
|
|
@@ -37486,23 +37493,23 @@ function Table({
|
|
|
37486
37493
|
const allSelected = selectedRows.length > 0 && selectedRows.length === data.length;
|
|
37487
37494
|
const someSelected = selectedRows.length > 0 && selectedRows.length < data.length;
|
|
37488
37495
|
const sentinelRef = _react.useRef.call(void 0, null);
|
|
37489
|
-
const onLoadMoreRef = _react.useRef.call(void 0, _optionalChain([infiniteScroll, 'optionalAccess',
|
|
37490
|
-
onLoadMoreRef.current = _optionalChain([infiniteScroll, 'optionalAccess',
|
|
37496
|
+
const onLoadMoreRef = _react.useRef.call(void 0, _optionalChain([infiniteScroll, 'optionalAccess', _708 => _708.onLoadMore]));
|
|
37497
|
+
onLoadMoreRef.current = _optionalChain([infiniteScroll, 'optionalAccess', _709 => _709.onLoadMore]);
|
|
37491
37498
|
_react.useEffect.call(void 0, () => {
|
|
37492
|
-
if (!_optionalChain([infiniteScroll, 'optionalAccess',
|
|
37499
|
+
if (!_optionalChain([infiniteScroll, 'optionalAccess', _710 => _710.hasNextPage]) || infiniteScroll.isFetchingNextPage) return;
|
|
37493
37500
|
const sentinel = sentinelRef.current;
|
|
37494
37501
|
if (!sentinel) return;
|
|
37495
37502
|
const observer = new IntersectionObserver(
|
|
37496
37503
|
(entries) => {
|
|
37497
|
-
if (_optionalChain([entries, 'access',
|
|
37498
|
-
_optionalChain([onLoadMoreRef, 'access',
|
|
37504
|
+
if (_optionalChain([entries, 'access', _711 => _711[0], 'optionalAccess', _712 => _712.isIntersecting])) {
|
|
37505
|
+
_optionalChain([onLoadMoreRef, 'access', _713 => _713.current, 'optionalCall', _714 => _714()]);
|
|
37499
37506
|
}
|
|
37500
37507
|
},
|
|
37501
37508
|
{ rootMargin: "200px" }
|
|
37502
37509
|
);
|
|
37503
37510
|
observer.observe(sentinel);
|
|
37504
37511
|
return () => observer.disconnect();
|
|
37505
|
-
}, [_optionalChain([infiniteScroll, 'optionalAccess',
|
|
37512
|
+
}, [_optionalChain([infiniteScroll, 'optionalAccess', _715 => _715.hasNextPage]), _optionalChain([infiniteScroll, 'optionalAccess', _716 => _716.isFetchingNextPage])]);
|
|
37506
37513
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "flex flex-col gap-1 w-full", containerClassName), children: [
|
|
37507
37514
|
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: [
|
|
37508
37515
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary text-sm", children: [
|
|
@@ -37572,14 +37579,14 @@ function Table({
|
|
|
37572
37579
|
selected: isRowSelected(item),
|
|
37573
37580
|
onSelect: handleSelectRow,
|
|
37574
37581
|
animateRowReorder,
|
|
37575
|
-
motionDiv: _optionalChain([tableMotion, 'optionalAccess',
|
|
37582
|
+
motionDiv: _optionalChain([tableMotion, 'optionalAccess', _717 => _717.motionDiv])
|
|
37576
37583
|
},
|
|
37577
37584
|
getRowKey(item, index)
|
|
37578
37585
|
));
|
|
37579
|
-
const LayoutGroup = _optionalChain([tableMotion, 'optionalAccess',
|
|
37586
|
+
const LayoutGroup = _optionalChain([tableMotion, 'optionalAccess', _718 => _718.LayoutGroup]);
|
|
37580
37587
|
return animateRowReorder && LayoutGroup ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LayoutGroup, { children: rows }) : rows;
|
|
37581
37588
|
})(),
|
|
37582
|
-
_optionalChain([infiniteScroll, 'optionalAccess',
|
|
37589
|
+
_optionalChain([infiniteScroll, 'optionalAccess', _719 => _719.isFetchingNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
37583
37590
|
TableCardSkeleton,
|
|
37584
37591
|
{
|
|
37585
37592
|
columns,
|
|
@@ -37588,7 +37595,7 @@ function Table({
|
|
|
37588
37595
|
hasChevron: Boolean(rowHref)
|
|
37589
37596
|
}
|
|
37590
37597
|
),
|
|
37591
|
-
_optionalChain([infiniteScroll, 'optionalAccess',
|
|
37598
|
+
_optionalChain([infiniteScroll, 'optionalAccess', _720 => _720.hasNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: sentinelRef, className: "h-1", "aria-hidden": "true" }),
|
|
37592
37599
|
!infiniteScroll && Array.from({ length: Math.max(0, skeletonRows - data.length) }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
37593
37600
|
"div",
|
|
37594
37601
|
{
|
|
@@ -37946,7 +37953,7 @@ function QueryReportTable({
|
|
|
37946
37953
|
);
|
|
37947
37954
|
const handleExport = () => {
|
|
37948
37955
|
exportToCSV(data, columns, exportFilename);
|
|
37949
|
-
_optionalChain([onExport, 'optionalCall',
|
|
37956
|
+
_optionalChain([onExport, 'optionalCall', _721 => _721()]);
|
|
37950
37957
|
};
|
|
37951
37958
|
const tableMinWidth = columns.length * (columnWidth + 16);
|
|
37952
37959
|
const {
|
|
@@ -38119,7 +38126,7 @@ function DataTableColumnFilter({
|
|
|
38119
38126
|
align = "left"
|
|
38120
38127
|
}) {
|
|
38121
38128
|
const currentValue = column.getFilterValue();
|
|
38122
|
-
const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess',
|
|
38129
|
+
const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess', _722 => _722.length]), () => ( 0));
|
|
38123
38130
|
const sections = _react.useMemo.call(void 0,
|
|
38124
38131
|
() => [
|
|
38125
38132
|
{
|
|
@@ -38199,7 +38206,7 @@ function DataTableHeader({
|
|
|
38199
38206
|
const hasVisibleHeaderCell = headerGroup.headers.some((header) => {
|
|
38200
38207
|
if (header.isPlaceholder) return false;
|
|
38201
38208
|
if (isLgUp) return true;
|
|
38202
|
-
return Boolean(_optionalChain([header, 'access',
|
|
38209
|
+
return Boolean(_optionalChain([header, 'access', _723 => _723.column, 'access', _724 => _724.columnDef, 'access', _725 => _725.meta, 'optionalAccess', _726 => _726.filter]));
|
|
38203
38210
|
});
|
|
38204
38211
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38205
38212
|
"div",
|
|
@@ -38229,20 +38236,20 @@ function HeaderCell({ header, isLgUp, sort, onSortChange }) {
|
|
|
38229
38236
|
if (header.isPlaceholder) return null;
|
|
38230
38237
|
const column = header.column;
|
|
38231
38238
|
const meta = column.columnDef.meta;
|
|
38232
|
-
const hasFilter = Boolean(_optionalChain([meta, 'optionalAccess',
|
|
38233
|
-
const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
38234
|
-
const canSort = _optionalChain([meta, 'optionalAccess',
|
|
38235
|
-
const sortDir = _optionalChain([sort, 'optionalAccess',
|
|
38239
|
+
const hasFilter = Boolean(_optionalChain([meta, 'optionalAccess', _727 => _727.filter]));
|
|
38240
|
+
const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _728 => _728.align]), () => ( "left"));
|
|
38241
|
+
const canSort = _optionalChain([meta, 'optionalAccess', _729 => _729.sortable]) === true;
|
|
38242
|
+
const sortDir = _optionalChain([sort, 'optionalAccess', _730 => _730.id]) === column.id ? sort.desc ? "desc" : "asc" : false;
|
|
38236
38243
|
if (!isLgUp && !hasFilter) return null;
|
|
38237
38244
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38238
38245
|
"div",
|
|
38239
38246
|
{
|
|
38240
38247
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
38241
38248
|
"flex items-stretch",
|
|
38242
|
-
isLgUp && (_optionalChain([meta, 'optionalAccess',
|
|
38243
|
-
_optionalChain([meta, 'optionalAccess',
|
|
38249
|
+
isLgUp && (_optionalChain([meta, 'optionalAccess', _731 => _731.width]) || "flex-1 min-w-0"),
|
|
38250
|
+
_optionalChain([meta, 'optionalAccess', _732 => _732.headerClassName]),
|
|
38244
38251
|
// Don't apply hide classes if column is filterable on tablet (keep filter accessible)
|
|
38245
|
-
!(hasFilter && !isLgUp) && getHideClasses2(_optionalChain([meta, 'optionalAccess',
|
|
38252
|
+
!(hasFilter && !isLgUp) && getHideClasses2(_optionalChain([meta, 'optionalAccess', _733 => _733.hideAt]))
|
|
38246
38253
|
),
|
|
38247
38254
|
children: hasFilter ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38248
38255
|
DataTableColumnFilter,
|
|
@@ -38261,7 +38268,7 @@ function HeaderCell({ header, isLgUp, sort, onSortChange }) {
|
|
|
38261
38268
|
isLgUp && alignJustify(align),
|
|
38262
38269
|
canSort && "group cursor-pointer"
|
|
38263
38270
|
),
|
|
38264
|
-
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall',
|
|
38271
|
+
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall', _734 => _734(column.id)]) : void 0,
|
|
38265
38272
|
children: [
|
|
38266
38273
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
38267
38274
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -38326,7 +38333,7 @@ function DataTableSkeleton({
|
|
|
38326
38333
|
}) {
|
|
38327
38334
|
const table = useDataTableContext();
|
|
38328
38335
|
const columns = table.getVisibleFlatColumns();
|
|
38329
|
-
const firstColumnId = _optionalChain([columns, 'access',
|
|
38336
|
+
const firstColumnId = _optionalChain([columns, 'access', _735 => _735[0], 'optionalAccess', _736 => _736.id]);
|
|
38330
38337
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
38331
38338
|
"div",
|
|
38332
38339
|
{
|
|
@@ -38350,7 +38357,7 @@ function DataTableSkeleton({
|
|
|
38350
38357
|
{
|
|
38351
38358
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
38352
38359
|
"flex flex-col justify-center shrink-0",
|
|
38353
|
-
_optionalChain([meta, 'optionalAccess',
|
|
38360
|
+
_optionalChain([meta, 'optionalAccess', _737 => _737.width]) || "flex-1"
|
|
38354
38361
|
),
|
|
38355
38362
|
children: [
|
|
38356
38363
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-5 bg-ods-bg-surface rounded-sm w-3/4 mb-[var(--spacing-system-xxs)]" }),
|
|
@@ -38400,7 +38407,7 @@ function DataTableRowImpl({
|
|
|
38400
38407
|
const handleClick = _react.useCallback.call(void 0,
|
|
38401
38408
|
(e) => {
|
|
38402
38409
|
const target = e.target;
|
|
38403
|
-
if (!_optionalChain([containerRef, 'access',
|
|
38410
|
+
if (!_optionalChain([containerRef, 'access', _738 => _738.current, 'optionalAccess', _739 => _739.contains, 'call', _740 => _740(target)])) {
|
|
38404
38411
|
if (isLinkMode) e.preventDefault();
|
|
38405
38412
|
return;
|
|
38406
38413
|
}
|
|
@@ -38408,7 +38415,7 @@ function DataTableRowImpl({
|
|
|
38408
38415
|
if (isLinkMode) e.preventDefault();
|
|
38409
38416
|
return;
|
|
38410
38417
|
}
|
|
38411
|
-
_optionalChain([onClick, 'optionalCall',
|
|
38418
|
+
_optionalChain([onClick, 'optionalCall', _741 => _741(row.original)]);
|
|
38412
38419
|
},
|
|
38413
38420
|
[onClick, row.original, isLinkMode]
|
|
38414
38421
|
);
|
|
@@ -38433,10 +38440,10 @@ function DataTableRowImpl({
|
|
|
38433
38440
|
{
|
|
38434
38441
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
38435
38442
|
"flex flex-col overflow-hidden",
|
|
38436
|
-
alignJustify(_optionalChain([meta, 'optionalAccess',
|
|
38437
|
-
_optionalChain([meta, 'optionalAccess',
|
|
38438
|
-
_optionalChain([meta, 'optionalAccess',
|
|
38439
|
-
getHideClasses2(_optionalChain([meta, 'optionalAccess',
|
|
38443
|
+
alignJustify(_optionalChain([meta, 'optionalAccess', _742 => _742.align])),
|
|
38444
|
+
_optionalChain([meta, 'optionalAccess', _743 => _743.width]) || "flex-1 min-w-0",
|
|
38445
|
+
_optionalChain([meta, 'optionalAccess', _744 => _744.cellClassName]),
|
|
38446
|
+
getHideClasses2(_optionalChain([meta, 'optionalAccess', _745 => _745.hideAt]))
|
|
38440
38447
|
),
|
|
38441
38448
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CellContent, { children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) })
|
|
38442
38449
|
},
|
|
@@ -38516,7 +38523,7 @@ function DataTableBody({
|
|
|
38516
38523
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "flex flex-col gap-[var(--spacing-system-xsf)] w-full", className), children: [
|
|
38517
38524
|
rows.map((row, index) => {
|
|
38518
38525
|
const item = row.original;
|
|
38519
|
-
const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall',
|
|
38526
|
+
const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall', _746 => _746(item)]), () => ( void 0));
|
|
38520
38527
|
const cls = typeof rowClassName === "function" ? rowClassName(item, index) : rowClassName;
|
|
38521
38528
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38522
38529
|
DataTableRow,
|
|
@@ -38527,7 +38534,7 @@ function DataTableBody({
|
|
|
38527
38534
|
compact,
|
|
38528
38535
|
autoHeight,
|
|
38529
38536
|
className: cls,
|
|
38530
|
-
subRow: _optionalChain([renderSubRow, 'optionalCall',
|
|
38537
|
+
subRow: _optionalChain([renderSubRow, 'optionalCall', _747 => _747(item)])
|
|
38531
38538
|
},
|
|
38532
38539
|
row.id
|
|
38533
38540
|
);
|
|
@@ -38582,7 +38589,7 @@ function DataTableInfiniteFooter({
|
|
|
38582
38589
|
if (!sentinel) return;
|
|
38583
38590
|
const observer = new IntersectionObserver(
|
|
38584
38591
|
(entries) => {
|
|
38585
|
-
if (_optionalChain([entries, 'access',
|
|
38592
|
+
if (_optionalChain([entries, 'access', _748 => _748[0], 'optionalAccess', _749 => _749.isIntersecting])) onLoadMoreRef.current();
|
|
38586
38593
|
},
|
|
38587
38594
|
{ rootMargin }
|
|
38588
38595
|
);
|
|
@@ -38630,7 +38637,7 @@ function DataTableRowCount({
|
|
|
38630
38637
|
const table = useDataTableContext();
|
|
38631
38638
|
const count = _nullishCoalesce(totalCount, () => ( table.getRowModel().rows.length));
|
|
38632
38639
|
if (hideWhenEmpty && count === 0) return null;
|
|
38633
|
-
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall',
|
|
38640
|
+
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall', _750 => _750(count, itemName)]), () => ( (count === 1 ? itemName : `${itemName}s`)));
|
|
38634
38641
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
38635
38642
|
"span",
|
|
38636
38643
|
{
|
|
@@ -38789,7 +38796,7 @@ function SearchInput({
|
|
|
38789
38796
|
if (!showHiddenTags) return;
|
|
38790
38797
|
const handleClick = (e) => {
|
|
38791
38798
|
const target = e.target;
|
|
38792
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
38799
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _751 => _751.current, 'optionalAccess', _752 => _752.contains, 'call', _753 => _753(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _754 => _754.current, 'optionalAccess', _755 => _755.contains, 'call', _756 => _756(target)])) {
|
|
38793
38800
|
setShowHiddenTags(false);
|
|
38794
38801
|
}
|
|
38795
38802
|
};
|
|
@@ -38837,10 +38844,10 @@ function SearchInput({
|
|
|
38837
38844
|
} else {
|
|
38838
38845
|
setInternalValue("");
|
|
38839
38846
|
}
|
|
38840
|
-
_optionalChain([inputRef, 'access',
|
|
38847
|
+
_optionalChain([inputRef, 'access', _757 => _757.current, 'optionalAccess', _758 => _758.focus, 'call', _759 => _759()]);
|
|
38841
38848
|
};
|
|
38842
38849
|
const handleResultClick = (result, e) => {
|
|
38843
|
-
_optionalChain([onResultSelect, 'optionalCall',
|
|
38850
|
+
_optionalChain([onResultSelect, 'optionalCall', _760 => _760(
|
|
38844
38851
|
result,
|
|
38845
38852
|
e ? {
|
|
38846
38853
|
metaKey: e.metaKey,
|
|
@@ -38872,7 +38879,7 @@ function SearchInput({
|
|
|
38872
38879
|
if (highlightedIndex >= 0 && flatResults[highlightedIndex]) {
|
|
38873
38880
|
handleResultClick(flatResults[highlightedIndex]);
|
|
38874
38881
|
} else {
|
|
38875
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
38882
|
+
_optionalChain([onSubmit, 'optionalCall', _761 => _761(currentValue)]);
|
|
38876
38883
|
}
|
|
38877
38884
|
break;
|
|
38878
38885
|
case "Escape":
|
|
@@ -38950,7 +38957,7 @@ function SearchInput({
|
|
|
38950
38957
|
dropdownVisible && "!border-ods-accent"
|
|
38951
38958
|
),
|
|
38952
38959
|
onClick: () => {
|
|
38953
|
-
_optionalChain([inputRef, 'access',
|
|
38960
|
+
_optionalChain([inputRef, 'access', _762 => _762.current, 'optionalAccess', _763 => _763.focus, 'call', _764 => _764()]);
|
|
38954
38961
|
setIsOpen(true);
|
|
38955
38962
|
},
|
|
38956
38963
|
children: [
|
|
@@ -39034,10 +39041,10 @@ function SearchInput({
|
|
|
39034
39041
|
align: "start",
|
|
39035
39042
|
onOpenAutoFocus: (e) => {
|
|
39036
39043
|
e.preventDefault();
|
|
39037
|
-
_optionalChain([inputRef, 'access',
|
|
39044
|
+
_optionalChain([inputRef, 'access', _765 => _765.current, 'optionalAccess', _766 => _766.focus, 'call', _767 => _767()]);
|
|
39038
39045
|
},
|
|
39039
39046
|
onInteractOutside: (e) => {
|
|
39040
|
-
if (_optionalChain([containerRef, 'access',
|
|
39047
|
+
if (_optionalChain([containerRef, 'access', _768 => _768.current, 'optionalAccess', _769 => _769.contains, 'call', _770 => _770(e.target)])) {
|
|
39041
39048
|
e.preventDefault();
|
|
39042
39049
|
}
|
|
39043
39050
|
},
|
|
@@ -39054,10 +39061,10 @@ function SearchInput({
|
|
|
39054
39061
|
ref: hiddenTagsPopupRef,
|
|
39055
39062
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
39056
39063
|
style: {
|
|
39057
|
-
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([containerRef, 'access',
|
|
39064
|
+
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([containerRef, 'access', _771 => _771.current, 'optionalAccess', _772 => _772.getBoundingClientRect, 'call', _773 => _773(), 'access', _774 => _774.left]), () => ( 0))) : 0
|
|
39058
39065
|
},
|
|
39059
39066
|
onRemove: (value2) => {
|
|
39060
|
-
_optionalChain([onFilterRemove, 'optionalCall',
|
|
39067
|
+
_optionalChain([onFilterRemove, 'optionalCall', _775 => _775(value2)]);
|
|
39061
39068
|
if (hiddenCount <= 1) setShowHiddenTags(false);
|
|
39062
39069
|
}
|
|
39063
39070
|
}
|
|
@@ -39108,7 +39115,7 @@ function FilterListItem({
|
|
|
39108
39115
|
}) {
|
|
39109
39116
|
const handleToggle = () => {
|
|
39110
39117
|
if (disabled) return;
|
|
39111
|
-
_optionalChain([onToggle, 'optionalCall',
|
|
39118
|
+
_optionalChain([onToggle, 'optionalCall', _776 => _776(!selected)]);
|
|
39112
39119
|
};
|
|
39113
39120
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
39114
39121
|
"div",
|
|
@@ -39155,7 +39162,7 @@ function FilterListItem({
|
|
|
39155
39162
|
CheckboxPrimitive4.Root,
|
|
39156
39163
|
{
|
|
39157
39164
|
checked: selected,
|
|
39158
|
-
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall',
|
|
39165
|
+
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall', _777 => _777(c === true)]),
|
|
39159
39166
|
onClick: (e) => e.stopPropagation(),
|
|
39160
39167
|
disabled,
|
|
39161
39168
|
"aria-label": title,
|
|
@@ -39254,7 +39261,7 @@ function TagSearchInput({
|
|
|
39254
39261
|
if (!showHiddenTags) return;
|
|
39255
39262
|
const handleClick = (e) => {
|
|
39256
39263
|
const target = e.target;
|
|
39257
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
39264
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _778 => _778.current, 'optionalAccess', _779 => _779.contains, 'call', _780 => _780(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _781 => _781.current, 'optionalAccess', _782 => _782.contains, 'call', _783 => _783(target)])) {
|
|
39258
39265
|
setShowHiddenTags(false);
|
|
39259
39266
|
}
|
|
39260
39267
|
};
|
|
@@ -39270,13 +39277,13 @@ function TagSearchInput({
|
|
|
39270
39277
|
e.preventDefault();
|
|
39271
39278
|
onSubmit(searchValue);
|
|
39272
39279
|
}
|
|
39273
|
-
_optionalChain([onKeyDown, 'optionalCall',
|
|
39280
|
+
_optionalChain([onKeyDown, 'optionalCall', _784 => _784(e)]);
|
|
39274
39281
|
};
|
|
39275
39282
|
const handleClearAll = (e) => {
|
|
39276
39283
|
e.stopPropagation();
|
|
39277
39284
|
e.preventDefault();
|
|
39278
|
-
_optionalChain([onClearAll, 'optionalCall',
|
|
39279
|
-
_optionalChain([inputRef, 'access',
|
|
39285
|
+
_optionalChain([onClearAll, 'optionalCall', _785 => _785()]);
|
|
39286
|
+
_optionalChain([inputRef, 'access', _786 => _786.current, 'optionalAccess', _787 => _787.focus, 'call', _788 => _788()]);
|
|
39280
39287
|
};
|
|
39281
39288
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: wrapperRef, className: "relative", children: [
|
|
39282
39289
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -39293,7 +39300,7 @@ function TagSearchInput({
|
|
|
39293
39300
|
className
|
|
39294
39301
|
),
|
|
39295
39302
|
onClick: () => {
|
|
39296
|
-
if (!disabled) _optionalChain([inputRef, 'access',
|
|
39303
|
+
if (!disabled) _optionalChain([inputRef, 'access', _789 => _789.current, 'optionalAccess', _790 => _790.focus, 'call', _791 => _791()]);
|
|
39297
39304
|
},
|
|
39298
39305
|
children: [
|
|
39299
39306
|
/* @__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" }) }),
|
|
@@ -39365,7 +39372,7 @@ function TagSearchInput({
|
|
|
39365
39372
|
items: hiddenTags,
|
|
39366
39373
|
disabled,
|
|
39367
39374
|
style: {
|
|
39368
|
-
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([wrapperRef, 'access',
|
|
39375
|
+
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([wrapperRef, 'access', _792 => _792.current, 'optionalAccess', _793 => _793.getBoundingClientRect, 'call', _794 => _794(), 'access', _795 => _795.left]), () => ( 0))) : 0
|
|
39369
39376
|
},
|
|
39370
39377
|
onRemove: (value) => {
|
|
39371
39378
|
onTagRemove(value);
|
|
@@ -39466,7 +39473,7 @@ function MarkdownEditor({
|
|
|
39466
39473
|
const [defaultExtraCommands, setDefaultExtraCommands] = _react.useState.call(void 0, []);
|
|
39467
39474
|
_react.useEffect.call(void 0, () => {
|
|
39468
39475
|
Promise.resolve().then(() => _interopRequireWildcard(require("@uiw/react-md-editor"))).then((mod) => {
|
|
39469
|
-
if (_optionalChain([mod, 'access',
|
|
39476
|
+
if (_optionalChain([mod, 'access', _796 => _796.commands, 'optionalAccess', _797 => _797.getExtraCommands])) {
|
|
39470
39477
|
setDefaultExtraCommands(mod.commands.getExtraCommands());
|
|
39471
39478
|
}
|
|
39472
39479
|
});
|
|
@@ -39500,7 +39507,7 @@ function MarkdownEditor({
|
|
|
39500
39507
|
const isImage = file.type.startsWith("image/");
|
|
39501
39508
|
const markdown = isImage ? `` : `[${file.name}](${url})`;
|
|
39502
39509
|
insertTextAtCursor(markdown);
|
|
39503
|
-
_optionalChain([onFileUploaded, 'optionalCall',
|
|
39510
|
+
_optionalChain([onFileUploaded, 'optionalCall', _798 => _798(url, file.name)]);
|
|
39504
39511
|
} catch (error) {
|
|
39505
39512
|
console.error("File upload failed:", error);
|
|
39506
39513
|
setUploadProgress("Upload failed. Please try again.");
|
|
@@ -39513,7 +39520,7 @@ function MarkdownEditor({
|
|
|
39513
39520
|
);
|
|
39514
39521
|
const handleFileInputChange = _react.useCallback.call(void 0,
|
|
39515
39522
|
(e) => {
|
|
39516
|
-
const file = _optionalChain([e, 'access',
|
|
39523
|
+
const file = _optionalChain([e, 'access', _799 => _799.target, 'access', _800 => _800.files, 'optionalAccess', _801 => _801[0]]);
|
|
39517
39524
|
if (file) {
|
|
39518
39525
|
handleFileUpload(file);
|
|
39519
39526
|
e.target.value = "";
|
|
@@ -39524,7 +39531,7 @@ function MarkdownEditor({
|
|
|
39524
39531
|
const handlePaste = _react.useCallback.call(void 0,
|
|
39525
39532
|
(e) => {
|
|
39526
39533
|
if (!onUploadFile) return;
|
|
39527
|
-
const items = _optionalChain([e, 'access',
|
|
39534
|
+
const items = _optionalChain([e, 'access', _802 => _802.clipboardData, 'optionalAccess', _803 => _803.items]);
|
|
39528
39535
|
if (!items) return;
|
|
39529
39536
|
for (const item of items) {
|
|
39530
39537
|
if (item.type.startsWith("image/")) {
|
|
@@ -39549,7 +39556,7 @@ function MarkdownEditor({
|
|
|
39549
39556
|
buttonProps: { "aria-label": "Upload file", title: "Upload file" },
|
|
39550
39557
|
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" }),
|
|
39551
39558
|
execute: () => {
|
|
39552
|
-
_optionalChain([fileInputRef, 'access',
|
|
39559
|
+
_optionalChain([fileInputRef, 'access', _804 => _804.current, 'optionalAccess', _805 => _805.click, 'call', _806 => _806()]);
|
|
39553
39560
|
}
|
|
39554
39561
|
} : null;
|
|
39555
39562
|
const extraCommands = uploadCommand ? [...defaultExtraCommands, uploadCommand] : defaultExtraCommands;
|
|
@@ -39561,7 +39568,7 @@ function MarkdownEditor({
|
|
|
39561
39568
|
const EDGE_ZONE = 60;
|
|
39562
39569
|
const MAX_SCROLL_SPEED = 15;
|
|
39563
39570
|
const findScrollParent = _react.useCallback.call(void 0, (el) => {
|
|
39564
|
-
let node = _optionalChain([el, 'optionalAccess',
|
|
39571
|
+
let node = _optionalChain([el, 'optionalAccess', _807 => _807.parentElement]);
|
|
39565
39572
|
while (node && node !== document.documentElement) {
|
|
39566
39573
|
const { overflowY } = window.getComputedStyle(node);
|
|
39567
39574
|
if ((overflowY === "auto" || overflowY === "scroll") && node.scrollHeight > node.clientHeight) {
|
|
@@ -39704,7 +39711,7 @@ function matchesAccept(file, accept) {
|
|
|
39704
39711
|
});
|
|
39705
39712
|
}
|
|
39706
39713
|
function dragHasFiles(e) {
|
|
39707
|
-
const types = _optionalChain([e, 'access',
|
|
39714
|
+
const types = _optionalChain([e, 'access', _808 => _808.dataTransfer, 'optionalAccess', _809 => _809.types]);
|
|
39708
39715
|
if (!types) return false;
|
|
39709
39716
|
for (let i = 0; i < types.length; i++) {
|
|
39710
39717
|
if (types[i] === "Files") return true;
|
|
@@ -39800,7 +39807,7 @@ function FileUpload({
|
|
|
39800
39807
|
e.stopPropagation();
|
|
39801
39808
|
setDragActive(false);
|
|
39802
39809
|
if (disabled) return;
|
|
39803
|
-
if (_optionalChain([e, 'access',
|
|
39810
|
+
if (_optionalChain([e, 'access', _810 => _810.dataTransfer, 'access', _811 => _811.files, 'optionalAccess', _812 => _812.length])) {
|
|
39804
39811
|
handleFiles(e.dataTransfer.files);
|
|
39805
39812
|
}
|
|
39806
39813
|
};
|
|
@@ -39828,7 +39835,7 @@ function FileUpload({
|
|
|
39828
39835
|
e.preventDefault();
|
|
39829
39836
|
dragCounter = 0;
|
|
39830
39837
|
setDragActive(false);
|
|
39831
|
-
if (_optionalChain([e, 'access',
|
|
39838
|
+
if (_optionalChain([e, 'access', _813 => _813.dataTransfer, 'optionalAccess', _814 => _814.files, 'optionalAccess', _815 => _815.length])) {
|
|
39832
39839
|
handleFilesRef.current(e.dataTransfer.files);
|
|
39833
39840
|
}
|
|
39834
39841
|
};
|
|
@@ -39850,7 +39857,7 @@ function FileUpload({
|
|
|
39850
39857
|
};
|
|
39851
39858
|
}, [acceptWindowDrops, disabled]);
|
|
39852
39859
|
const handleFileSelect = (e) => {
|
|
39853
|
-
if (_optionalChain([e, 'access',
|
|
39860
|
+
if (_optionalChain([e, 'access', _816 => _816.target, 'access', _817 => _817.files, 'optionalAccess', _818 => _818.length])) {
|
|
39854
39861
|
handleFiles(e.target.files);
|
|
39855
39862
|
}
|
|
39856
39863
|
};
|
|
@@ -39867,7 +39874,7 @@ function FileUpload({
|
|
|
39867
39874
|
};
|
|
39868
39875
|
const openDialog = async () => {
|
|
39869
39876
|
if (disabled) return;
|
|
39870
|
-
_optionalChain([fileInputRef, 'access',
|
|
39877
|
+
_optionalChain([fileInputRef, 'access', _819 => _819.current, 'optionalAccess', _820 => _820.click, 'call', _821 => _821()]);
|
|
39871
39878
|
};
|
|
39872
39879
|
const displayError = error || validationError || void 0;
|
|
39873
39880
|
const hasFiles = isManaged ? managedFiles.length > 0 : files.length > 0;
|
|
@@ -39929,7 +39936,7 @@ function FileUpload({
|
|
|
39929
39936
|
"button",
|
|
39930
39937
|
{
|
|
39931
39938
|
type: "button",
|
|
39932
|
-
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall',
|
|
39939
|
+
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall', _822 => _822(entry.id)]),
|
|
39933
39940
|
className: "shrink-0 text-ods-error hover:opacity-80 transition-opacity",
|
|
39934
39941
|
"aria-label": `Remove ${entry.fileName}`,
|
|
39935
39942
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.TrashIcon, { className: "size-6" })
|
|
@@ -40060,7 +40067,7 @@ function ImageUploader({
|
|
|
40060
40067
|
onChange(file);
|
|
40061
40068
|
};
|
|
40062
40069
|
const handleFileSelect = (e) => {
|
|
40063
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
40070
|
+
validateAndEmit(_optionalChain([e, 'access', _823 => _823.target, 'access', _824 => _824.files, 'optionalAccess', _825 => _825[0]]));
|
|
40064
40071
|
if (inputRef.current) inputRef.current.value = "";
|
|
40065
40072
|
};
|
|
40066
40073
|
const handleDrag = (e) => {
|
|
@@ -40075,11 +40082,11 @@ function ImageUploader({
|
|
|
40075
40082
|
e.stopPropagation();
|
|
40076
40083
|
setDragActive(false);
|
|
40077
40084
|
if (!interactive) return;
|
|
40078
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
40085
|
+
validateAndEmit(_optionalChain([e, 'access', _826 => _826.dataTransfer, 'access', _827 => _827.files, 'optionalAccess', _828 => _828[0]]));
|
|
40079
40086
|
};
|
|
40080
40087
|
const openDialog = () => {
|
|
40081
40088
|
if (!interactive) return;
|
|
40082
|
-
_optionalChain([inputRef, 'access',
|
|
40089
|
+
_optionalChain([inputRef, 'access', _829 => _829.current, 'optionalAccess', _830 => _830.click, 'call', _831 => _831()]);
|
|
40083
40090
|
};
|
|
40084
40091
|
const handleRootKeyDown = (e) => {
|
|
40085
40092
|
if (hasImage || !interactive) return;
|
|
@@ -40270,8 +40277,8 @@ function ColorPresetSelect({
|
|
|
40270
40277
|
}) {
|
|
40271
40278
|
const selectedPreset = presets.find((p) => p.key === presetKey);
|
|
40272
40279
|
const isCustom = !selectedPreset;
|
|
40273
|
-
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
40274
|
-
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
40280
|
+
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _832 => _832.label]), () => ( "Custom"));
|
|
40281
|
+
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _833 => _833.color]), () => ( value));
|
|
40275
40282
|
const groups = [
|
|
40276
40283
|
{
|
|
40277
40284
|
items: [
|
|
@@ -40561,7 +40568,7 @@ function TicketStatusConfigRow({
|
|
|
40561
40568
|
_chunkNYIZVI4Icjs.Input,
|
|
40562
40569
|
{
|
|
40563
40570
|
value: name,
|
|
40564
|
-
onChange: (e) => _optionalChain([onNameChange, 'optionalCall',
|
|
40571
|
+
onChange: (e) => _optionalChain([onNameChange, 'optionalCall', _834 => _834(e.target.value)]),
|
|
40565
40572
|
disabled: isSystem,
|
|
40566
40573
|
readOnly: isSystem,
|
|
40567
40574
|
"aria-label": "Status name",
|
|
@@ -40934,14 +40941,14 @@ function TicketInfoSection({
|
|
|
40934
40941
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
40935
40942
|
SquareAvatar,
|
|
40936
40943
|
{
|
|
40937
|
-
src: _optionalChain([organization, 'optionalAccess',
|
|
40938
|
-
alt: _optionalChain([organization, 'optionalAccess',
|
|
40939
|
-
fallback: _optionalChain([organization, 'optionalAccess',
|
|
40944
|
+
src: _optionalChain([organization, 'optionalAccess', _835 => _835.imageSrc]),
|
|
40945
|
+
alt: _optionalChain([organization, 'optionalAccess', _836 => _836.name]),
|
|
40946
|
+
fallback: _optionalChain([organization, 'optionalAccess', _837 => _837.name]) || "Org",
|
|
40940
40947
|
size: "md",
|
|
40941
40948
|
className: "shrink-0"
|
|
40942
40949
|
}
|
|
40943
40950
|
),
|
|
40944
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([organization, 'optionalAccess',
|
|
40951
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([organization, 'optionalAccess', _838 => _838.name]) || "Unassigned", label: "Organization" })
|
|
40945
40952
|
] }),
|
|
40946
40953
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: assigned ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
40947
40954
|
AssigneeDropdown,
|
|
@@ -40962,10 +40969,10 @@ function TicketInfoSection({
|
|
|
40962
40969
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
40963
40970
|
InfoCell2,
|
|
40964
40971
|
{
|
|
40965
|
-
value: _optionalChain([device, 'optionalAccess',
|
|
40972
|
+
value: _optionalChain([device, 'optionalAccess', _839 => _839.name]) || "Unassigned",
|
|
40966
40973
|
label: "Device",
|
|
40967
|
-
icon: _optionalChain([device, 'optionalAccess',
|
|
40968
|
-
onClick: _optionalChain([device, 'optionalAccess',
|
|
40974
|
+
icon: _optionalChain([device, 'optionalAccess', _840 => _840.icon]),
|
|
40975
|
+
onClick: _optionalChain([device, 'optionalAccess', _841 => _841.onClick])
|
|
40969
40976
|
}
|
|
40970
40977
|
),
|
|
40971
40978
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-4 min-w-0", children: [
|
|
@@ -41295,7 +41302,7 @@ function RoadmapCard({
|
|
|
41295
41302
|
const compactHref = safeHref(_nullishCoalesce(href, () => ( null)));
|
|
41296
41303
|
const hasVotes = (_nullishCoalesce(item.upvotes, () => ( 0))) > 0 || (_nullishCoalesce(item.downvotes, () => ( 0))) > 0;
|
|
41297
41304
|
const hasFigma = !!item.figmaUrl;
|
|
41298
|
-
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access',
|
|
41305
|
+
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access', _842 => _842.screenshots, 'optionalAccess', _843 => _843.length]), () => ( 0))) > 0;
|
|
41299
41306
|
const typeLabel = getTaskTypeLabel(item.customItemId);
|
|
41300
41307
|
const useTypeIcon = cardType === "internal_task" || !iconSrc && item.customItemId != null;
|
|
41301
41308
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -41314,7 +41321,7 @@ function RoadmapCard({
|
|
|
41314
41321
|
unoptimized: true,
|
|
41315
41322
|
className: "h-8 w-8 object-contain"
|
|
41316
41323
|
}
|
|
41317
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-[10px] font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access',
|
|
41324
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-[10px] font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _844 => _844.title, 'optionalAccess', _845 => _845.substring, 'call', _846 => _846(0, 2)]) || "??" })
|
|
41318
41325
|
}
|
|
41319
41326
|
),
|
|
41320
41327
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
@@ -41389,7 +41396,7 @@ function RoadmapCard({
|
|
|
41389
41396
|
unoptimized: true,
|
|
41390
41397
|
className: "object-contain p-1"
|
|
41391
41398
|
}
|
|
41392
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access',
|
|
41399
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _847 => _847.title, 'optionalAccess', _848 => _848.substring, 'call', _849 => _849(0, 2)]) || "??" }) }),
|
|
41393
41400
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 min-w-0 flex flex-col", children: [
|
|
41394
41401
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-[48px] flex items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-h3 text-ods-text-primary tracking-[-0.36px] flex-1 line-clamp-2", children: item.title }) }),
|
|
41395
41402
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-[20px] flex items-center", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-h5 text-ods-text-secondary uppercase tracking-[-0.28px] truncate", children: [
|
|
@@ -41899,7 +41906,7 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
|
41899
41906
|
] }) : null,
|
|
41900
41907
|
item.preview ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "line-clamp-2 whitespace-pre-wrap break-words text-[13px] leading-5 text-ods-text-secondary", children: item.preview }) }) : null
|
|
41901
41908
|
] }),
|
|
41902
|
-
_optionalChain([anchorProps, 'optionalAccess',
|
|
41909
|
+
_optionalChain([anchorProps, 'optionalAccess', _850 => _850.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
|
|
41903
41910
|
] });
|
|
41904
41911
|
if (!anchorProps) {
|
|
41905
41912
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
@@ -41969,7 +41976,7 @@ function getDefaultOptions() {
|
|
|
41969
41976
|
// node_modules/date-fns/startOfWeek.mjs
|
|
41970
41977
|
function startOfWeek(date, options) {
|
|
41971
41978
|
const defaultOptions2 = getDefaultOptions();
|
|
41972
|
-
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
41979
|
+
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _851 => _851.weekStartsOn]), () => ( _optionalChain([options, 'optionalAccess', _852 => _852.locale, 'optionalAccess', _853 => _853.options, 'optionalAccess', _854 => _854.weekStartsOn]))), () => ( defaultOptions2.weekStartsOn)), () => ( _optionalChain([defaultOptions2, 'access', _855 => _855.locale, 'optionalAccess', _856 => _856.options, 'optionalAccess', _857 => _857.weekStartsOn]))), () => ( 0));
|
|
41973
41980
|
const _date = toDate(date);
|
|
41974
41981
|
const day = _date.getDay();
|
|
41975
41982
|
const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
|
|
@@ -42144,7 +42151,7 @@ var formatDistance = (token, count, options) => {
|
|
|
42144
42151
|
} else {
|
|
42145
42152
|
result = tokenValue.other.replace("{{count}}", count.toString());
|
|
42146
42153
|
}
|
|
42147
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
42154
|
+
if (_optionalChain([options, 'optionalAccess', _858 => _858.addSuffix])) {
|
|
42148
42155
|
if (options.comparison && options.comparison > 0) {
|
|
42149
42156
|
return "in " + result;
|
|
42150
42157
|
} else {
|
|
@@ -42211,15 +42218,15 @@ var formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale
|
|
|
42211
42218
|
// node_modules/date-fns/locale/_lib/buildLocalizeFn.mjs
|
|
42212
42219
|
function buildLocalizeFn(args) {
|
|
42213
42220
|
return (value, options) => {
|
|
42214
|
-
const context = _optionalChain([options, 'optionalAccess',
|
|
42221
|
+
const context = _optionalChain([options, 'optionalAccess', _859 => _859.context]) ? String(options.context) : "standalone";
|
|
42215
42222
|
let valuesArray;
|
|
42216
42223
|
if (context === "formatting" && args.formattingValues) {
|
|
42217
42224
|
const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
|
|
42218
|
-
const width = _optionalChain([options, 'optionalAccess',
|
|
42225
|
+
const width = _optionalChain([options, 'optionalAccess', _860 => _860.width]) ? String(options.width) : defaultWidth;
|
|
42219
42226
|
valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
|
|
42220
42227
|
} else {
|
|
42221
42228
|
const defaultWidth = args.defaultWidth;
|
|
42222
|
-
const width = _optionalChain([options, 'optionalAccess',
|
|
42229
|
+
const width = _optionalChain([options, 'optionalAccess', _861 => _861.width]) ? String(options.width) : args.defaultWidth;
|
|
42223
42230
|
valuesArray = args.values[width] || args.values[defaultWidth];
|
|
42224
42231
|
}
|
|
42225
42232
|
const index = args.argumentCallback ? args.argumentCallback(value) : value;
|
|
@@ -42599,7 +42606,7 @@ function getWeekYear(date, options) {
|
|
|
42599
42606
|
const _date = toDate(date);
|
|
42600
42607
|
const year = _date.getFullYear();
|
|
42601
42608
|
const defaultOptions2 = getDefaultOptions();
|
|
42602
|
-
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
42609
|
+
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _862 => _862.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _863 => _863.locale, 'optionalAccess', _864 => _864.options, 'optionalAccess', _865 => _865.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _866 => _866.locale, 'optionalAccess', _867 => _867.options, 'optionalAccess', _868 => _868.firstWeekContainsDate]))), () => ( 1));
|
|
42603
42610
|
const firstWeekOfNextYear = constructFrom(date, 0);
|
|
42604
42611
|
firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
|
|
42605
42612
|
firstWeekOfNextYear.setHours(0, 0, 0, 0);
|
|
@@ -42620,7 +42627,7 @@ function getWeekYear(date, options) {
|
|
|
42620
42627
|
// node_modules/date-fns/startOfWeekYear.mjs
|
|
42621
42628
|
function startOfWeekYear(date, options) {
|
|
42622
42629
|
const defaultOptions2 = getDefaultOptions();
|
|
42623
|
-
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
42630
|
+
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _869 => _869.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _870 => _870.locale, 'optionalAccess', _871 => _871.options, 'optionalAccess', _872 => _872.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _873 => _873.locale, 'optionalAccess', _874 => _874.options, 'optionalAccess', _875 => _875.firstWeekContainsDate]))), () => ( 1));
|
|
42624
42631
|
const year = getWeekYear(date, options);
|
|
42625
42632
|
const firstWeek = constructFrom(date, 0);
|
|
42626
42633
|
firstWeek.setFullYear(year, 0, firstWeekContainsDate);
|
|
@@ -43435,9 +43442,9 @@ var doubleQuoteRegExp = /''/g;
|
|
|
43435
43442
|
var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
43436
43443
|
function format(date, formatStr, options) {
|
|
43437
43444
|
const defaultOptions2 = getDefaultOptions();
|
|
43438
|
-
const locale = _nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
43439
|
-
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
43440
|
-
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
43445
|
+
const locale = _nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _876 => _876.locale]), () => ( defaultOptions2.locale)), () => ( enUS));
|
|
43446
|
+
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _877 => _877.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _878 => _878.locale, 'optionalAccess', _879 => _879.options, 'optionalAccess', _880 => _880.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _881 => _881.locale, 'optionalAccess', _882 => _882.options, 'optionalAccess', _883 => _883.firstWeekContainsDate]))), () => ( 1));
|
|
43447
|
+
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _884 => _884.weekStartsOn]), () => ( _optionalChain([options, 'optionalAccess', _885 => _885.locale, 'optionalAccess', _886 => _886.options, 'optionalAccess', _887 => _887.weekStartsOn]))), () => ( defaultOptions2.weekStartsOn)), () => ( _optionalChain([defaultOptions2, 'access', _888 => _888.locale, 'optionalAccess', _889 => _889.options, 'optionalAccess', _890 => _890.weekStartsOn]))), () => ( 0));
|
|
43441
43448
|
const originalDate = toDate(date);
|
|
43442
43449
|
if (!isValid(originalDate)) {
|
|
43443
43450
|
throw new RangeError("Invalid time value");
|
|
@@ -43478,7 +43485,7 @@ function format(date, formatStr, options) {
|
|
|
43478
43485
|
return parts.map((part) => {
|
|
43479
43486
|
if (!part.isToken) return part.value;
|
|
43480
43487
|
const token = part.value;
|
|
43481
|
-
if (!_optionalChain([options, 'optionalAccess',
|
|
43488
|
+
if (!_optionalChain([options, 'optionalAccess', _891 => _891.useAdditionalWeekYearTokens]) && isProtectedWeekYearToken(token) || !_optionalChain([options, 'optionalAccess', _892 => _892.useAdditionalDayOfYearTokens]) && isProtectedDayOfYearToken(token)) {
|
|
43482
43489
|
warnOrThrowProtectedError(token, formatStr, String(date));
|
|
43483
43490
|
}
|
|
43484
43491
|
const formatter = formatters[token[0]];
|
|
@@ -43659,7 +43666,7 @@ function ProgramCard({
|
|
|
43659
43666
|
const dur = formatDurationFromRange(w.start_at, w.end_at);
|
|
43660
43667
|
typeMeta = dur ? `${time} \xB7 ${dur}` : time;
|
|
43661
43668
|
}
|
|
43662
|
-
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access',
|
|
43669
|
+
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access', _893 => _893.labels, 'optionalAccess', _894 => _894.singular])].filter(
|
|
43663
43670
|
(s) => typeof s === "string" && s.length > 0
|
|
43664
43671
|
);
|
|
43665
43672
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: _chunkFIG2RKZFcjs.cn.call(void 0, COMPACT_CARD_OUTER, className), children: [
|
|
@@ -43816,7 +43823,7 @@ function ProgramCard({
|
|
|
43816
43823
|
|
|
43817
43824
|
|
|
43818
43825
|
function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
43819
|
-
const goalsCount = _optionalChain([campaign, 'access',
|
|
43826
|
+
const goalsCount = _optionalChain([campaign, 'access', _895 => _895.goals, 'optionalAccess', _896 => _896.length]) || 0;
|
|
43820
43827
|
const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
43821
43828
|
/* @__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" }) }),
|
|
43822
43829
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
@@ -43978,7 +43985,7 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
43978
43985
|
if (row.path && shouldFallbackToPathNav(row) && !row.externalUrl) {
|
|
43979
43986
|
const safePath = sanitizePath(row.path);
|
|
43980
43987
|
if (safePath) {
|
|
43981
|
-
const docTarget = row.documentType ? _optionalChain([ctx, 'access',
|
|
43988
|
+
const docTarget = row.documentType ? _optionalChain([ctx, 'access', _897 => _897.docPlatformTargets, 'optionalAccess', _898 => _898[row.documentType]]) : void 0;
|
|
43982
43989
|
if (docTarget) {
|
|
43983
43990
|
const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
|
|
43984
43991
|
const base = `${_chunkFIG2RKZFcjs.getBaseUrl.call(void 0, docTarget.platform)}${seg ? `/${seg}` : ""}/`;
|
|
@@ -44193,8 +44200,8 @@ function cardMenuGroups(href, discuss, openDetails) {
|
|
|
44193
44200
|
if (href) {
|
|
44194
44201
|
items.push({
|
|
44195
44202
|
id: "open-details",
|
|
44196
|
-
label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess',
|
|
44197
|
-
icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess',
|
|
44203
|
+
label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _899 => _899.label]), () => ( "Open Details")),
|
|
44204
|
+
icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _900 => _900.icon]), () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.EyeIcon, { size: 20 }))),
|
|
44198
44205
|
// Main row → open the entity (same tab, soft Link nav).
|
|
44199
44206
|
href,
|
|
44200
44207
|
// Trailing 40px ↗ side-button → open in a new tab.
|
|
@@ -44224,8 +44231,8 @@ function HubspotTicketChatCard({
|
|
|
44224
44231
|
isNewTab,
|
|
44225
44232
|
discuss
|
|
44226
44233
|
}) {
|
|
44227
|
-
const status = typeof _optionalChain([chatRef, 'access',
|
|
44228
|
-
const statusLabel = typeof _optionalChain([chatRef, 'access',
|
|
44234
|
+
const status = typeof _optionalChain([chatRef, 'access', _901 => _901.metadata, 'optionalAccess', _902 => _902.status]) === "string" ? chatRef.metadata.status : void 0;
|
|
44235
|
+
const statusLabel = typeof _optionalChain([chatRef, 'access', _903 => _903.metadata, 'optionalAccess', _904 => _904.statusLabel]) === "string" ? chatRef.metadata.statusLabel : void 0;
|
|
44229
44236
|
const statusText = _nullishCoalesce(statusLabel, () => ( formatStatusToken(status)));
|
|
44230
44237
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44231
44238
|
MingoInfoCard,
|
|
@@ -44248,7 +44255,7 @@ function FaqChatCard({
|
|
|
44248
44255
|
isNewTab,
|
|
44249
44256
|
discuss
|
|
44250
44257
|
}) {
|
|
44251
|
-
const section = typeof _optionalChain([chatRef, 'access',
|
|
44258
|
+
const section = typeof _optionalChain([chatRef, 'access', _905 => _905.metadata, 'optionalAccess', _906 => _906.section]) === "string" ? chatRef.metadata.section.trim() : void 0;
|
|
44252
44259
|
const statusLabel = section && section.length > 0 ? section : "FAQ";
|
|
44253
44260
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44254
44261
|
MingoInfoCard,
|
|
@@ -44268,7 +44275,7 @@ function SlackChatCard({
|
|
|
44268
44275
|
isNewTab,
|
|
44269
44276
|
discuss
|
|
44270
44277
|
}) {
|
|
44271
|
-
const channelName = typeof _optionalChain([chatRef, 'access',
|
|
44278
|
+
const channelName = typeof _optionalChain([chatRef, 'access', _907 => _907.metadata, 'optionalAccess', _908 => _908.channelName]) === "string" ? chatRef.metadata.channelName.trim() : void 0;
|
|
44272
44279
|
const channelPretty = channelName ? channelName.startsWith("#") ? channelName : `#${channelName}` : void 0;
|
|
44273
44280
|
const title = channelPretty ? `${chatRef.title} \xB7 ${channelPretty}` : chatRef.title;
|
|
44274
44281
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -44308,7 +44315,7 @@ function GenericFinancialChatCard({
|
|
|
44308
44315
|
isNewTab,
|
|
44309
44316
|
discuss
|
|
44310
44317
|
}) {
|
|
44311
|
-
const subtitle = typeof _optionalChain([chatRef, 'access',
|
|
44318
|
+
const subtitle = typeof _optionalChain([chatRef, 'access', _909 => _909.metadata, 'optionalAccess', _910 => _910.subtitle]) === "string" ? chatRef.metadata.subtitle : void 0;
|
|
44312
44319
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44313
44320
|
MingoInfoCard,
|
|
44314
44321
|
{
|
|
@@ -44377,12 +44384,12 @@ function ProductReleaseChatCard({
|
|
|
44377
44384
|
discuss
|
|
44378
44385
|
}) {
|
|
44379
44386
|
const releaseProps = buildProps(item);
|
|
44380
|
-
const status = _optionalChain([item, 'optionalAccess',
|
|
44387
|
+
const status = _optionalChain([item, 'optionalAccess', _911 => _911.version]) ? { label: String(item.version), variant: "grey" } : { label: "Release", variant: "grey" };
|
|
44381
44388
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44382
44389
|
EntityMingoCard,
|
|
44383
44390
|
{
|
|
44384
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
44385
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
44391
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _912 => _912.title]), () => ( "")),
|
|
44392
|
+
description: _optionalChain([item, 'optionalAccess', _913 => _913.summary]) || releaseProps.formattedDate || void 0,
|
|
44386
44393
|
cover: releaseProps.coverImage || void 0,
|
|
44387
44394
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.Rocket02Icon, { size: 24 }),
|
|
44388
44395
|
status,
|
|
@@ -44399,17 +44406,17 @@ function CampaignChatCard({
|
|
|
44399
44406
|
isNewTab,
|
|
44400
44407
|
discuss
|
|
44401
44408
|
}) {
|
|
44402
|
-
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess',
|
|
44409
|
+
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _914 => _914.goals])) ? item.goals.length : 0;
|
|
44403
44410
|
const meta = [
|
|
44404
|
-
_optionalChain([item, 'optionalAccess',
|
|
44411
|
+
_optionalChain([item, 'optionalAccess', _915 => _915.start_date]) ? formatDateShort(item.start_date) : null,
|
|
44405
44412
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
44406
44413
|
"Marketing campaign"
|
|
44407
44414
|
].filter(Boolean).join(" \xB7 ");
|
|
44408
44415
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44409
44416
|
EntityMingoCard,
|
|
44410
44417
|
{
|
|
44411
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
44412
|
-
description: meta || _optionalChain([item, 'optionalAccess',
|
|
44418
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _916 => _916.name]), () => ( "")),
|
|
44419
|
+
description: meta || _optionalChain([item, 'optionalAccess', _917 => _917.description]) || void 0,
|
|
44413
44420
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.Megaphone01Icon, { size: 24 }),
|
|
44414
44421
|
chatRef,
|
|
44415
44422
|
isNewTab,
|
|
@@ -44462,14 +44469,14 @@ function BlogChatCard({
|
|
|
44462
44469
|
hasEmbeddedVideo,
|
|
44463
44470
|
discuss
|
|
44464
44471
|
}) {
|
|
44465
|
-
const category = Array.isArray(_optionalChain([item, 'optionalAccess',
|
|
44472
|
+
const category = Array.isArray(_optionalChain([item, 'optionalAccess', _918 => _918.categories])) ? _optionalChain([item, 'access', _919 => _919.categories, 'access', _920 => _920.find, 'call', _921 => _921((c) => c && c.name), 'optionalAccess', _922 => _922.name]) : void 0;
|
|
44466
44473
|
const status = hasEmbeddedVideo ? { label: "Video", variant: "primary" } : category ? { label: category, variant: "grey" } : void 0;
|
|
44467
44474
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44468
44475
|
EntityMingoCard,
|
|
44469
44476
|
{
|
|
44470
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
44471
|
-
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
44472
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
44477
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _923 => _923.title]), () => ( "")),
|
|
44478
|
+
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _924 => _924.summary]), () => ( void 0)),
|
|
44479
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _925 => _925.featured_image]), ogPlaceholder),
|
|
44473
44480
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.NewspaperIcon, { size: 24 }),
|
|
44474
44481
|
status,
|
|
44475
44482
|
chatRef,
|
|
@@ -44486,13 +44493,13 @@ function CaseStudyChatCard({
|
|
|
44486
44493
|
ogPlaceholder,
|
|
44487
44494
|
discuss
|
|
44488
44495
|
}) {
|
|
44489
|
-
const meta = [_optionalChain([item, 'optionalAccess',
|
|
44496
|
+
const meta = [_optionalChain([item, 'optionalAccess', _926 => _926.msp, 'optionalAccess', _927 => _927.name]), _optionalChain([item, 'optionalAccess', _928 => _928.user, 'optionalAccess', _929 => _929.full_name])].filter(Boolean).join(" \xB7 ");
|
|
44490
44497
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44491
44498
|
EntityMingoCard,
|
|
44492
44499
|
{
|
|
44493
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
44494
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
44495
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
44500
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _930 => _930.title]), () => ( "")),
|
|
44501
|
+
description: _optionalChain([item, 'optionalAccess', _931 => _931.summary]) || meta || void 0,
|
|
44502
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _932 => _932.featured_image]), ogPlaceholder),
|
|
44496
44503
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.TrophyIcon, { size: 24 }),
|
|
44497
44504
|
status: { label: "Case study", variant: "grey" },
|
|
44498
44505
|
chatRef,
|
|
@@ -44509,13 +44516,13 @@ function CustomerInterviewChatCard({
|
|
|
44509
44516
|
ogPlaceholder,
|
|
44510
44517
|
discuss
|
|
44511
44518
|
}) {
|
|
44512
|
-
const meta = [_optionalChain([item, 'optionalAccess',
|
|
44519
|
+
const meta = [_optionalChain([item, 'optionalAccess', _933 => _933.user, 'optionalAccess', _934 => _934.full_name]), _optionalChain([item, 'optionalAccess', _935 => _935.msp, 'optionalAccess', _936 => _936.name])].filter(Boolean).join(" \xB7 ");
|
|
44513
44520
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44514
44521
|
EntityMingoCard,
|
|
44515
44522
|
{
|
|
44516
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
44517
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
44518
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
44523
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _937 => _937.title]), () => ( "")),
|
|
44524
|
+
description: _optionalChain([item, 'optionalAccess', _938 => _938.video_summary]) || meta || void 0,
|
|
44525
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _939 => _939.featured_image]), ogPlaceholder),
|
|
44519
44526
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.MicrophoneIcon, { size: 24 }),
|
|
44520
44527
|
status: { label: "Interview", variant: "grey" },
|
|
44521
44528
|
chatRef,
|
|
@@ -44532,13 +44539,13 @@ function InvestorUpdateChatCard({
|
|
|
44532
44539
|
ogPlaceholder,
|
|
44533
44540
|
discuss
|
|
44534
44541
|
}) {
|
|
44535
|
-
const title = _optionalChain([item, 'optionalAccess',
|
|
44542
|
+
const title = _optionalChain([item, 'optionalAccess', _940 => _940.title]) || `Update #${_nullishCoalesce(_optionalChain([item, 'optionalAccess', _941 => _941.update_number]), () => ( "?"))}`;
|
|
44536
44543
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44537
44544
|
EntityMingoCard,
|
|
44538
44545
|
{
|
|
44539
44546
|
title,
|
|
44540
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
44541
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
44547
|
+
description: _optionalChain([item, 'optionalAccess', _942 => _942.strategic_update]) || _optionalChain([item, 'optionalAccess', _943 => _943.content]) || formatInvestorUpdatePeriod(_optionalChain([item, 'optionalAccess', _944 => _944.period_start]), _optionalChain([item, 'optionalAccess', _945 => _945.period_end])) || void 0,
|
|
44548
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _946 => _946.featured_image]), ogPlaceholder),
|
|
44542
44549
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.PresentationLineIcon, { size: 24 }),
|
|
44543
44550
|
status: { label: "Investor update", variant: "grey" },
|
|
44544
44551
|
chatRef,
|
|
@@ -44555,12 +44562,12 @@ function OnboardingGuideChatCard({
|
|
|
44555
44562
|
ogPlaceholder,
|
|
44556
44563
|
discuss
|
|
44557
44564
|
}) {
|
|
44558
|
-
const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess',
|
|
44565
|
+
const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess', _947 => _947.featured_image])), () => ( entityCover(_optionalChain([item, 'optionalAccess', _948 => _948.main_video_thumbnail])))), () => ( entityCover(_optionalChain([item, 'optionalAccess', _949 => _949.og_image_url]), ogPlaceholder)));
|
|
44559
44566
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44560
44567
|
EntityMingoCard,
|
|
44561
44568
|
{
|
|
44562
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
44563
|
-
description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
44569
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _950 => _950.title]), () => ( "")),
|
|
44570
|
+
description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _951 => _951.summary]), () => ( _optionalChain([item, 'optionalAccess', _952 => _952.description]))), () => ( void 0)),
|
|
44564
44571
|
cover,
|
|
44565
44572
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.CompassIcon, { size: 24 }),
|
|
44566
44573
|
status: { label: "Guide", variant: "grey" },
|
|
@@ -44581,25 +44588,25 @@ function ProgramChatCard({
|
|
|
44581
44588
|
discuss
|
|
44582
44589
|
}) {
|
|
44583
44590
|
const icon = configKey === "webinar" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.PresentationBarIcon, { size: 24 }) : configKey === "event" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.CalendarIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.MicrophoneIcon, { size: 24 });
|
|
44584
|
-
const isScheduled = _optionalChain([item, 'optionalAccess',
|
|
44591
|
+
const isScheduled = _optionalChain([item, 'optionalAccess', _953 => _953.status]) === "scheduled";
|
|
44585
44592
|
let typeMeta;
|
|
44586
|
-
if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess',
|
|
44593
|
+
if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess', _954 => _954.duration_seconds]) === "number" && item.duration_seconds > 0 && !isScheduled) {
|
|
44587
44594
|
typeMeta = formatDurationCompact(item.duration_seconds);
|
|
44588
|
-
} else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess',
|
|
44595
|
+
} else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess', _955 => _955.location_name]) === "string" && item.location_name.trim().length > 0) {
|
|
44589
44596
|
typeMeta = item.location_name;
|
|
44590
|
-
} else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess',
|
|
44597
|
+
} else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess', _956 => _956.start_at])) {
|
|
44591
44598
|
const time = formatTimeWithTimezone(item.start_at, _nullishCoalesce(item.timezone, () => ( null)));
|
|
44592
44599
|
const dur = formatDurationFromRange(item.start_at, item.end_at);
|
|
44593
44600
|
typeMeta = dur ? `${time} \xB7 ${dur}` : time;
|
|
44594
44601
|
}
|
|
44595
|
-
const itemDate = formatDateUTC(_nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
44602
|
+
const itemDate = formatDateUTC(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _957 => _957.date]), () => ( null)), { fallback: "", timezone: "local" });
|
|
44596
44603
|
const meta = [itemDate, typeMeta].filter(Boolean).join(" \xB7 ");
|
|
44597
44604
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44598
44605
|
EntityMingoCard,
|
|
44599
44606
|
{
|
|
44600
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
44601
|
-
description: meta || _optionalChain([item, 'optionalAccess',
|
|
44602
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
44607
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _958 => _958.title]), () => ( "")),
|
|
44608
|
+
description: meta || _optionalChain([item, 'optionalAccess', _959 => _959.description]) || void 0,
|
|
44609
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _960 => _960.cover_url]), ogPlaceholder),
|
|
44603
44610
|
fallbackIcon: icon,
|
|
44604
44611
|
status: { label, variant: "grey" },
|
|
44605
44612
|
chatRef,
|
|
@@ -44616,10 +44623,10 @@ function RoadmapChatCard({
|
|
|
44616
44623
|
cardType,
|
|
44617
44624
|
discuss
|
|
44618
44625
|
}) {
|
|
44619
|
-
const logoUrl = typeof _optionalChain([item, 'optionalAccess',
|
|
44620
|
-
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess',
|
|
44626
|
+
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _961 => _961.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
44627
|
+
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _962 => _962.customItemId]) != null;
|
|
44621
44628
|
const defaultIcon = cardType === "delivery_item" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.TruckFastIcon, { size: 24 }) : cardType === "internal_task" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.CheckSquareIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.MapIcon, { size: 24 });
|
|
44622
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess',
|
|
44629
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _963 => _963.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
44623
44630
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
44624
44631
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
44625
44632
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: logoUrl, alt: "", className: "size-6 object-contain" })
|
|
@@ -44627,10 +44634,10 @@ function RoadmapChatCard({
|
|
|
44627
44634
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44628
44635
|
EntityMingoCard,
|
|
44629
44636
|
{
|
|
44630
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
44631
|
-
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
44637
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _964 => _964.title]), () => ( "")),
|
|
44638
|
+
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _965 => _965.description]), () => ( void 0)),
|
|
44632
44639
|
fallbackIcon: icon,
|
|
44633
|
-
status: statusPill(_optionalChain([item, 'optionalAccess',
|
|
44640
|
+
status: statusPill(_optionalChain([item, 'optionalAccess', _966 => _966.status])),
|
|
44634
44641
|
chatRef,
|
|
44635
44642
|
isNewTab,
|
|
44636
44643
|
discuss,
|
|
@@ -44716,7 +44723,7 @@ function programRegistryEntries() {
|
|
|
44716
44723
|
discuss: opts.discuss,
|
|
44717
44724
|
configKey: cfg.configKey,
|
|
44718
44725
|
label: cfg.configKey.charAt(0).toUpperCase() + cfg.configKey.slice(1),
|
|
44719
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
44726
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _967 => _967.extras, 'optionalAccess', _968 => _968.buildOgPlaceholderUrl, 'optionalCall', _969 => _969(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _970 => _970.title]), () => ( "")))]), () => ( null))
|
|
44720
44727
|
}
|
|
44721
44728
|
)
|
|
44722
44729
|
};
|
|
@@ -44868,8 +44875,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
44868
44875
|
chatRef,
|
|
44869
44876
|
isNewTab: opts.isNewTab,
|
|
44870
44877
|
discuss: opts.discuss,
|
|
44871
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
44872
|
-
hasEmbeddedVideo: _optionalChain([chatRef, 'access',
|
|
44878
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _971 => _971.extras, 'optionalAccess', _972 => _972.buildOgPlaceholderUrl, 'optionalCall', _973 => _973(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _974 => _974.title]), () => ( "")))]), () => ( null)),
|
|
44879
|
+
hasEmbeddedVideo: _optionalChain([chatRef, 'access', _975 => _975.metadata, 'optionalAccess', _976 => _976.hasEmbeddedVideo]) === true
|
|
44873
44880
|
}
|
|
44874
44881
|
)
|
|
44875
44882
|
},
|
|
@@ -44886,7 +44893,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
44886
44893
|
chatRef,
|
|
44887
44894
|
isNewTab: opts.isNewTab,
|
|
44888
44895
|
discuss: opts.discuss,
|
|
44889
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
44896
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _977 => _977.extras, 'optionalAccess', _978 => _978.buildOgPlaceholderUrl, 'optionalCall', _979 => _979(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _980 => _980.title]), () => ( "")))]), () => ( null))
|
|
44890
44897
|
}
|
|
44891
44898
|
)
|
|
44892
44899
|
},
|
|
@@ -44903,7 +44910,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
44903
44910
|
chatRef,
|
|
44904
44911
|
isNewTab: opts.isNewTab,
|
|
44905
44912
|
discuss: opts.discuss,
|
|
44906
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
44913
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _981 => _981.extras, 'optionalAccess', _982 => _982.buildOgPlaceholderUrl, 'optionalCall', _983 => _983(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _984 => _984.title]), () => ( "")))]), () => ( null))
|
|
44907
44914
|
}
|
|
44908
44915
|
)
|
|
44909
44916
|
},
|
|
@@ -44914,7 +44921,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
44914
44921
|
bareInline: true,
|
|
44915
44922
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ProductReleaseCardSkeleton, { size: "sm" }),
|
|
44916
44923
|
render: (item, chatRef, opts) => {
|
|
44917
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
44924
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _985 => _985.extras, 'optionalAccess', _986 => _986.buildProductReleaseCardProps]), () => ( defaultBuildProductReleaseCardProps));
|
|
44918
44925
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44919
44926
|
ProductReleaseChatCard,
|
|
44920
44927
|
{
|
|
@@ -44941,7 +44948,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
44941
44948
|
chatRef,
|
|
44942
44949
|
isNewTab: opts.isNewTab,
|
|
44943
44950
|
discuss: opts.discuss,
|
|
44944
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
44951
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _987 => _987.extras, 'optionalAccess', _988 => _988.buildOgPlaceholderUrl, 'optionalCall', _989 => _989(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _990 => _990.title]), () => ( "")))]), () => ( null))
|
|
44945
44952
|
}
|
|
44946
44953
|
)
|
|
44947
44954
|
},
|
|
@@ -44960,7 +44967,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
44960
44967
|
chatRef,
|
|
44961
44968
|
isNewTab: opts.isNewTab,
|
|
44962
44969
|
discuss: opts.discuss,
|
|
44963
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
44970
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _991 => _991.extras, 'optionalAccess', _992 => _992.buildOgPlaceholderUrl, 'optionalCall', _993 => _993(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _994 => _994.title]), () => ( "")))]), () => ( null))
|
|
44964
44971
|
}
|
|
44965
44972
|
)
|
|
44966
44973
|
},
|
|
@@ -44972,7 +44979,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
44972
44979
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignCardAdminSkeleton, {}),
|
|
44973
44980
|
// No public viewer — synthesize the hub-internal admin URL post-fetch
|
|
44974
44981
|
// so the wrapper + isNewTab computation see the actual destination.
|
|
44975
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
44982
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _995 => _995.id]) ? `/admin/campaigns/${encodeURIComponent(item.id)}` : null,
|
|
44976
44983
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44977
44984
|
CampaignChatCard,
|
|
44978
44985
|
{
|
|
@@ -44998,12 +45005,12 @@ function ChatCardNavWrap({
|
|
|
44998
45005
|
const onClickCapture = (e) => {
|
|
44999
45006
|
if (!href) return;
|
|
45000
45007
|
const targetEl = e.target;
|
|
45001
|
-
if (_optionalChain([targetEl, 'optionalAccess',
|
|
45002
|
-
if (!_optionalChain([targetEl, 'optionalAccess',
|
|
45008
|
+
if (_optionalChain([targetEl, 'optionalAccess', _996 => _996.closest, 'optionalCall', _997 => _997("button")])) return;
|
|
45009
|
+
if (!_optionalChain([targetEl, 'optionalAccess', _998 => _998.closest, 'optionalCall', _999 => _999("a")])) return;
|
|
45003
45010
|
const handled = handleChatNavClick(e, runtime, { href, path, targetPlatform }, router.push);
|
|
45004
45011
|
if (!handled) return;
|
|
45005
45012
|
e.stopPropagation();
|
|
45006
|
-
if (!isNewTab && _optionalChain([panel, 'optionalAccess',
|
|
45013
|
+
if (!isNewTab && _optionalChain([panel, 'optionalAccess', _1000 => _1000.closeChat])) panel.closeChat();
|
|
45007
45014
|
};
|
|
45008
45015
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "contents", onClickCapture, children });
|
|
45009
45016
|
}
|
|
@@ -45025,7 +45032,7 @@ function ChatCardLoader({
|
|
|
45025
45032
|
title: chatRef.title,
|
|
45026
45033
|
externalUrl: chatRef.url,
|
|
45027
45034
|
targetPlatform: chatRef.targetPlatform,
|
|
45028
|
-
path: typeof _optionalChain([chatRef, 'access',
|
|
45035
|
+
path: typeof _optionalChain([chatRef, 'access', _1001 => _1001.metadata, 'optionalAccess', _1002 => _1002.path]) === "string" ? chatRef.metadata.path : null
|
|
45029
45036
|
},
|
|
45030
45037
|
sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform })
|
|
45031
45038
|
);
|
|
@@ -45039,7 +45046,7 @@ function ChatCardLoader({
|
|
|
45039
45046
|
const entry = CHAT_CARD_REGISTRY[resolvedChatRef.type];
|
|
45040
45047
|
const fetchEntry = entry && entry.mode === "fetch" ? entry : null;
|
|
45041
45048
|
const { item, isLoading } = useChatCardItem(
|
|
45042
|
-
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess',
|
|
45049
|
+
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _1003 => _1003.contentRefType]), () => ( "")),
|
|
45043
45050
|
fetchEntry ? resolvedChatRef.id : ""
|
|
45044
45051
|
);
|
|
45045
45052
|
if (!entry) return null;
|
|
@@ -45070,7 +45077,7 @@ function ChatCardLoader({
|
|
|
45070
45077
|
isNewTab,
|
|
45071
45078
|
discuss
|
|
45072
45079
|
};
|
|
45073
|
-
const path = typeof _optionalChain([finalChatRef, 'access',
|
|
45080
|
+
const path = typeof _optionalChain([finalChatRef, 'access', _1004 => _1004.metadata, 'optionalAccess', _1005 => _1005.path]) === "string" ? finalChatRef.metadata.path : null;
|
|
45074
45081
|
const navWrap = (children) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45075
45082
|
ChatCardNavWrap,
|
|
45076
45083
|
{
|
|
@@ -45456,7 +45463,7 @@ function useJetStreamDialogSubscription({
|
|
|
45456
45463
|
const lifecycle = _chunkPXXS27EEcjs.startConnectionLifecycle.call(void 0, {
|
|
45457
45464
|
conn: sharedConn,
|
|
45458
45465
|
wsUrl,
|
|
45459
|
-
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access',
|
|
45466
|
+
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _1006 => _1006.current, 'optionalCall', _1007 => _1007()]),
|
|
45460
45467
|
backoff: reconnectionBackoffRef.current,
|
|
45461
45468
|
getFreshUrl: () => getNatsWsUrlRef.current(),
|
|
45462
45469
|
// JetStream emits 'error' for protocol-level failures (e.g. -ERR Permissions
|
|
@@ -45471,7 +45478,7 @@ function useJetStreamDialogSubscription({
|
|
|
45471
45478
|
setReconnectionCount((c) => c + 1);
|
|
45472
45479
|
}
|
|
45473
45480
|
hadConnectionBeforeRef.current = true;
|
|
45474
|
-
_optionalChain([onConnectRef, 'access',
|
|
45481
|
+
_optionalChain([onConnectRef, 'access', _1008 => _1008.current, 'optionalCall', _1009 => _1009()]);
|
|
45475
45482
|
}
|
|
45476
45483
|
if (status === "error") {
|
|
45477
45484
|
console.warn("[JetStream] NATS protocol error:", evt.data);
|
|
@@ -45481,7 +45488,7 @@ function useJetStreamDialogSubscription({
|
|
|
45481
45488
|
setIsConnected(false);
|
|
45482
45489
|
setIsSubscribed(false);
|
|
45483
45490
|
tearDownSubscription();
|
|
45484
|
-
_optionalChain([onDisconnectRef, 'access',
|
|
45491
|
+
_optionalChain([onDisconnectRef, 'access', _1010 => _1010.current, 'optionalCall', _1011 => _1011()]);
|
|
45485
45492
|
}
|
|
45486
45493
|
}
|
|
45487
45494
|
});
|
|
@@ -45560,7 +45567,7 @@ function useJetStreamDialogSubscription({
|
|
|
45560
45567
|
}
|
|
45561
45568
|
subscriptionRef.current = handle;
|
|
45562
45569
|
setIsSubscribed(true);
|
|
45563
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
45570
|
+
_optionalChain([onSubscribedRef, 'access', _1012 => _1012.current, 'optionalCall', _1013 => _1013()]);
|
|
45564
45571
|
} catch (e43) {
|
|
45565
45572
|
if (!cancelled) {
|
|
45566
45573
|
setIsSubscribed(false);
|
|
@@ -45673,20 +45680,20 @@ function useNatsDialogSubscription({
|
|
|
45673
45680
|
const tearDownSubscriptions = () => {
|
|
45674
45681
|
subscriptionRefs.current.forEach((sub) => {
|
|
45675
45682
|
try {
|
|
45676
|
-
_optionalChain([sub, 'optionalAccess',
|
|
45683
|
+
_optionalChain([sub, 'optionalAccess', _1014 => _1014.unsubscribe, 'call', _1015 => _1015()]);
|
|
45677
45684
|
} catch (e45) {
|
|
45678
45685
|
}
|
|
45679
45686
|
});
|
|
45680
45687
|
subscriptionRefs.current.clear();
|
|
45681
45688
|
lastSubscribedDialogIdRef.current = null;
|
|
45682
|
-
_optionalChain([abortControllerRef, 'access',
|
|
45689
|
+
_optionalChain([abortControllerRef, 'access', _1016 => _1016.current, 'optionalAccess', _1017 => _1017.abort, 'call', _1018 => _1018()]);
|
|
45683
45690
|
abortControllerRef.current = null;
|
|
45684
45691
|
};
|
|
45685
45692
|
const isDisconnectStatus = (status) => status === "closed" || status === "disconnected";
|
|
45686
45693
|
const lifecycle = _chunkPXXS27EEcjs.startConnectionLifecycle.call(void 0, {
|
|
45687
45694
|
conn: sharedConn,
|
|
45688
45695
|
wsUrl,
|
|
45689
|
-
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access',
|
|
45696
|
+
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _1019 => _1019.current, 'optionalCall', _1020 => _1020()]),
|
|
45690
45697
|
backoff: reconnectionBackoffRef.current,
|
|
45691
45698
|
getFreshUrl: () => getNatsWsUrlRef.current(),
|
|
45692
45699
|
shouldRetryOn: isDisconnectStatus,
|
|
@@ -45697,7 +45704,7 @@ function useNatsDialogSubscription({
|
|
|
45697
45704
|
setReconnectionCount((c) => c + 1);
|
|
45698
45705
|
}
|
|
45699
45706
|
hadConnectionBeforeRef.current = true;
|
|
45700
|
-
_optionalChain([onConnectRef, 'access',
|
|
45707
|
+
_optionalChain([onConnectRef, 'access', _1021 => _1021.current, 'optionalCall', _1022 => _1022()]);
|
|
45701
45708
|
}
|
|
45702
45709
|
if (status === "error") {
|
|
45703
45710
|
console.warn("[NATS] protocol error:", evt.data);
|
|
@@ -45707,7 +45714,7 @@ function useNatsDialogSubscription({
|
|
|
45707
45714
|
setIsConnected(false);
|
|
45708
45715
|
setIsSubscribed(false);
|
|
45709
45716
|
tearDownSubscriptions();
|
|
45710
|
-
_optionalChain([onDisconnectRef, 'access',
|
|
45717
|
+
_optionalChain([onDisconnectRef, 'access', _1023 => _1023.current, 'optionalCall', _1024 => _1024()]);
|
|
45711
45718
|
}
|
|
45712
45719
|
}
|
|
45713
45720
|
});
|
|
@@ -45738,13 +45745,13 @@ function useNatsDialogSubscription({
|
|
|
45738
45745
|
setIsSubscribed(false);
|
|
45739
45746
|
subscriptionRefs.current.forEach((sub) => {
|
|
45740
45747
|
try {
|
|
45741
|
-
_optionalChain([sub, 'optionalAccess',
|
|
45748
|
+
_optionalChain([sub, 'optionalAccess', _1025 => _1025.unsubscribe, 'call', _1026 => _1026()]);
|
|
45742
45749
|
} catch (e46) {
|
|
45743
45750
|
}
|
|
45744
45751
|
});
|
|
45745
45752
|
subscriptionRefs.current.clear();
|
|
45746
45753
|
lastSubscribedDialogIdRef.current = null;
|
|
45747
|
-
_optionalChain([abortControllerRef, 'access',
|
|
45754
|
+
_optionalChain([abortControllerRef, 'access', _1027 => _1027.current, 'optionalAccess', _1028 => _1028.abort, 'call', _1029 => _1029()]);
|
|
45748
45755
|
abortControllerRef.current = null;
|
|
45749
45756
|
}
|
|
45750
45757
|
return;
|
|
@@ -45756,12 +45763,12 @@ function useNatsDialogSubscription({
|
|
|
45756
45763
|
if (subscriptionRefs.current.size > 0) {
|
|
45757
45764
|
subscriptionRefs.current.forEach((sub) => {
|
|
45758
45765
|
try {
|
|
45759
|
-
_optionalChain([sub, 'optionalAccess',
|
|
45766
|
+
_optionalChain([sub, 'optionalAccess', _1030 => _1030.unsubscribe, 'call', _1031 => _1031()]);
|
|
45760
45767
|
} catch (e47) {
|
|
45761
45768
|
}
|
|
45762
45769
|
});
|
|
45763
45770
|
subscriptionRefs.current.clear();
|
|
45764
|
-
_optionalChain([abortControllerRef, 'access',
|
|
45771
|
+
_optionalChain([abortControllerRef, 'access', _1032 => _1032.current, 'optionalAccess', _1033 => _1033.abort, 'call', _1034 => _1034()]);
|
|
45765
45772
|
}
|
|
45766
45773
|
abortControllerRef.current = new AbortController();
|
|
45767
45774
|
const abort = abortControllerRef.current;
|
|
@@ -45793,7 +45800,7 @@ function useNatsDialogSubscription({
|
|
|
45793
45800
|
});
|
|
45794
45801
|
lastSubscribedDialogIdRef.current = dialogId;
|
|
45795
45802
|
setIsSubscribed(true);
|
|
45796
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
45803
|
+
_optionalChain([onSubscribedRef, 'access', _1035 => _1035.current, 'optionalCall', _1036 => _1036()]);
|
|
45797
45804
|
};
|
|
45798
45805
|
if (isConnectedRef.current) {
|
|
45799
45806
|
createSubscriptions();
|
|
@@ -45803,7 +45810,7 @@ function useNatsDialogSubscription({
|
|
|
45803
45810
|
abort.abort();
|
|
45804
45811
|
subscriptionRefs.current.forEach((sub) => {
|
|
45805
45812
|
try {
|
|
45806
|
-
_optionalChain([sub, 'optionalAccess',
|
|
45813
|
+
_optionalChain([sub, 'optionalAccess', _1037 => _1037.unsubscribe, 'call', _1038 => _1038()]);
|
|
45807
45814
|
} catch (e49) {
|
|
45808
45815
|
}
|
|
45809
45816
|
});
|
|
@@ -45844,7 +45851,7 @@ function useNatsDialogSubscription({
|
|
|
45844
45851
|
});
|
|
45845
45852
|
lastSubscribedDialogIdRef.current = dialogId2;
|
|
45846
45853
|
setIsSubscribed(true);
|
|
45847
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
45854
|
+
_optionalChain([onSubscribedRef, 'access', _1039 => _1039.current, 'optionalCall', _1040 => _1040()]);
|
|
45848
45855
|
} else if (subscriptionRefs.current.size > 0) {
|
|
45849
45856
|
setIsSubscribed(true);
|
|
45850
45857
|
}
|
|
@@ -45852,10 +45859,10 @@ function useNatsDialogSubscription({
|
|
|
45852
45859
|
return { isConnected, isSubscribed, reconnectionCount };
|
|
45853
45860
|
}
|
|
45854
45861
|
function buildNatsWsUrl(apiBaseUrl, options) {
|
|
45855
|
-
const path = _optionalChain([options, 'optionalAccess',
|
|
45862
|
+
const path = _optionalChain([options, 'optionalAccess', _1041 => _1041.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
|
|
45856
45863
|
const u = new URL(path, apiBaseUrl);
|
|
45857
45864
|
u.protocol = u.protocol === "https:" ? "wss:" : "ws:";
|
|
45858
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
45865
|
+
if (_optionalChain([options, 'optionalAccess', _1042 => _1042.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _1043 => _1043.token])) {
|
|
45859
45866
|
u.searchParams.set("authorization", options.token);
|
|
45860
45867
|
}
|
|
45861
45868
|
return u.toString();
|
|
@@ -45991,7 +45998,7 @@ function parseChunkToAction(chunk) {
|
|
|
45991
45998
|
// is REQUIRED on `ChatContextItem`, so fall back to the id (same as the
|
|
45992
45999
|
// historical path in `process-historical-messages.ts`) — keeps both
|
|
45993
46000
|
// message sources producing an identical shape.
|
|
45994
|
-
contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess',
|
|
46001
|
+
contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess', _1044 => _1044.type]) === "string" && typeof _optionalChain([it, 'optionalAccess', _1045 => _1045.id]) === "string").map((it) => ({ type: it.type, id: it.id, label: it.id })) : void 0
|
|
45995
46002
|
};
|
|
45996
46003
|
case MESSAGE_TYPE.TOKEN_USAGE:
|
|
45997
46004
|
return {
|
|
@@ -46183,8 +46190,8 @@ var MessageSegmentAccumulator = class {
|
|
|
46183
46190
|
type: "tool_execution",
|
|
46184
46191
|
data: {
|
|
46185
46192
|
...toolData,
|
|
46186
|
-
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess',
|
|
46187
|
-
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess',
|
|
46193
|
+
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _1046 => _1046.data, 'access', _1047 => _1047.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _1048 => _1048.toolTitle]))),
|
|
46194
|
+
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _1049 => _1049.parameters])
|
|
46188
46195
|
}
|
|
46189
46196
|
};
|
|
46190
46197
|
if (existingIndex !== -1) {
|
|
@@ -46208,8 +46215,8 @@ var MessageSegmentAccumulator = class {
|
|
|
46208
46215
|
if (seg.type !== "approval_batch") return seg;
|
|
46209
46216
|
const hasCall = seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId);
|
|
46210
46217
|
if (!hasCall) return seg;
|
|
46211
|
-
const prev = _optionalChain([seg, 'access',
|
|
46212
|
-
const next = toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prev, 'optionalAccess',
|
|
46218
|
+
const prev = _optionalChain([seg, 'access', _1050 => _1050.data, 'access', _1051 => _1051.executions, 'optionalAccess', _1052 => _1052[execId]]);
|
|
46219
|
+
const next = toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prev, 'optionalAccess', _1053 => _1053.result]), success: _optionalChain([prev, 'optionalAccess', _1054 => _1054.success]) };
|
|
46213
46220
|
matched = true;
|
|
46214
46221
|
return {
|
|
46215
46222
|
...seg,
|
|
@@ -46331,10 +46338,10 @@ var MessageSegmentAccumulator = class {
|
|
|
46331
46338
|
const segment = {
|
|
46332
46339
|
type: "approval_request",
|
|
46333
46340
|
data: {
|
|
46334
|
-
command: _optionalChain([pendingApproval, 'optionalAccess',
|
|
46335
|
-
explanation: _optionalChain([pendingApproval, 'optionalAccess',
|
|
46341
|
+
command: _optionalChain([pendingApproval, 'optionalAccess', _1055 => _1055.command]) || "",
|
|
46342
|
+
explanation: _optionalChain([pendingApproval, 'optionalAccess', _1056 => _1056.explanation]),
|
|
46336
46343
|
requestId,
|
|
46337
|
-
approvalType: _optionalChain([pendingApproval, 'optionalAccess',
|
|
46344
|
+
approvalType: _optionalChain([pendingApproval, 'optionalAccess', _1057 => _1057.approvalType]) || approvalType
|
|
46338
46345
|
},
|
|
46339
46346
|
status,
|
|
46340
46347
|
onApprove: this.callbacks.onApprove,
|
|
@@ -46526,7 +46533,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
46526
46533
|
if (initialState.escalatedApprovals) {
|
|
46527
46534
|
pendingEscalatedRef.current = new Map(initialState.escalatedApprovals);
|
|
46528
46535
|
initialState.escalatedApprovals.forEach((data, requestId) => {
|
|
46529
|
-
_optionalChain([callbacks, 'access',
|
|
46536
|
+
_optionalChain([callbacks, 'access', _1058 => _1058.onEscalatedApproval, 'optionalCall', _1059 => _1059(requestId, data)]);
|
|
46530
46537
|
});
|
|
46531
46538
|
}
|
|
46532
46539
|
hasEverStreamedRef.current = true;
|
|
@@ -46547,12 +46554,12 @@ function useRealtimeChunkProcessor(options) {
|
|
|
46547
46554
|
if (!action) return;
|
|
46548
46555
|
const accumulator = accumulatorRef.current;
|
|
46549
46556
|
const streamSeq = chunk && typeof chunk === "object" && typeof chunk.streamSeq === "number" ? chunk.streamSeq : void 0;
|
|
46550
|
-
const emitSegments = (s, meta) => _optionalChain([callbacks, 'access',
|
|
46557
|
+
const emitSegments = (s, meta) => _optionalChain([callbacks, 'access', _1060 => _1060.onSegmentsUpdate, 'optionalCall', _1061 => _1061(s, streamSeq != null ? { ...meta, streamSeq } : meta)]);
|
|
46551
46558
|
if (action.action === "direct_message") sawDirectMessageRef.current = true;
|
|
46552
46559
|
if ((directModeFlagRef.current || sawDirectMessageRef.current) && !DIRECT_MODE_ALLOWED.has(action.action)) {
|
|
46553
46560
|
if (isInStreamRef.current) {
|
|
46554
46561
|
isInStreamRef.current = false;
|
|
46555
|
-
_optionalChain([callbacks, 'access',
|
|
46562
|
+
_optionalChain([callbacks, 'access', _1062 => _1062.onStreamEnd, 'optionalCall', _1063 => _1063()]);
|
|
46556
46563
|
accumulator.resetSegments();
|
|
46557
46564
|
}
|
|
46558
46565
|
return;
|
|
@@ -46561,16 +46568,16 @@ function useRealtimeChunkProcessor(options) {
|
|
|
46561
46568
|
case "message_start":
|
|
46562
46569
|
isInStreamRef.current = true;
|
|
46563
46570
|
hasEverStreamedRef.current = true;
|
|
46564
|
-
_optionalChain([callbacks, 'access',
|
|
46571
|
+
_optionalChain([callbacks, 'access', _1064 => _1064.onStreamStart, 'optionalCall', _1065 => _1065()]);
|
|
46565
46572
|
accumulator.resetSegments();
|
|
46566
46573
|
break;
|
|
46567
46574
|
case "message_end":
|
|
46568
46575
|
isInStreamRef.current = false;
|
|
46569
|
-
_optionalChain([callbacks, 'access',
|
|
46576
|
+
_optionalChain([callbacks, 'access', _1066 => _1066.onStreamEnd, 'optionalCall', _1067 => _1067()]);
|
|
46570
46577
|
accumulator.resetSegments();
|
|
46571
46578
|
break;
|
|
46572
46579
|
case "metadata":
|
|
46573
|
-
_optionalChain([callbacks, 'access',
|
|
46580
|
+
_optionalChain([callbacks, 'access', _1068 => _1068.onMetadata, 'optionalCall', _1069 => _1069(action)]);
|
|
46574
46581
|
break;
|
|
46575
46582
|
case "text": {
|
|
46576
46583
|
const segments = accumulator.appendText(action.text);
|
|
@@ -46613,7 +46620,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
46613
46620
|
emitSegments(segments);
|
|
46614
46621
|
} else {
|
|
46615
46622
|
pendingEscalatedRef.current.set(requestId, { command, explanation, approvalType });
|
|
46616
|
-
_optionalChain([callbacks, 'access',
|
|
46623
|
+
_optionalChain([callbacks, 'access', _1070 => _1070.onEscalatedApproval, 'optionalCall', _1071 => _1071(requestId, { command, explanation, approvalType })]);
|
|
46617
46624
|
}
|
|
46618
46625
|
break;
|
|
46619
46626
|
}
|
|
@@ -46625,13 +46632,13 @@ function useRealtimeChunkProcessor(options) {
|
|
|
46625
46632
|
const summary = required ? getCommandText(required) : `Batch of ${toolCalls.length} tool calls`;
|
|
46626
46633
|
pendingEscalatedRef.current.set(requestId, {
|
|
46627
46634
|
command: summary,
|
|
46628
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
46635
|
+
explanation: _optionalChain([required, 'optionalAccess', _1072 => _1072.toolExplanation]),
|
|
46629
46636
|
approvalType,
|
|
46630
46637
|
toolCalls
|
|
46631
46638
|
});
|
|
46632
|
-
_optionalChain([callbacks, 'access',
|
|
46639
|
+
_optionalChain([callbacks, 'access', _1073 => _1073.onEscalatedApproval, 'optionalCall', _1074 => _1074(requestId, {
|
|
46633
46640
|
command: summary,
|
|
46634
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
46641
|
+
explanation: _optionalChain([required, 'optionalAccess', _1075 => _1075.toolExplanation]),
|
|
46635
46642
|
approvalType
|
|
46636
46643
|
})]);
|
|
46637
46644
|
break;
|
|
@@ -46661,7 +46668,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
46661
46668
|
const status = approved ? "approved" : "rejected";
|
|
46662
46669
|
if (escalatedData) {
|
|
46663
46670
|
pendingEscalatedRef.current.delete(requestId);
|
|
46664
|
-
_optionalChain([callbacks, 'access',
|
|
46671
|
+
_optionalChain([callbacks, 'access', _1076 => _1076.onEscalatedApprovalResult, 'optionalCall', _1077 => _1077(requestId, approved, {
|
|
46665
46672
|
command: escalatedData.command,
|
|
46666
46673
|
explanation: escalatedData.explanation,
|
|
46667
46674
|
approvalType: escalatedData.approvalType
|
|
@@ -46707,29 +46714,29 @@ function useRealtimeChunkProcessor(options) {
|
|
|
46707
46714
|
emitSegments(accumulator.getSegments());
|
|
46708
46715
|
}
|
|
46709
46716
|
}
|
|
46710
|
-
_optionalChain([callbacks, 'access',
|
|
46717
|
+
_optionalChain([callbacks, 'access', _1078 => _1078.onApprovalResolved, 'optionalCall', _1079 => _1079(requestId, status, approvalType, resolvedByName)]);
|
|
46711
46718
|
break;
|
|
46712
46719
|
}
|
|
46713
46720
|
case "error": {
|
|
46714
46721
|
let message2;
|
|
46715
|
-
if ("details" in action && _optionalChain([action, 'optionalAccess',
|
|
46722
|
+
if ("details" in action && _optionalChain([action, 'optionalAccess', _1080 => _1080.details])) {
|
|
46716
46723
|
try {
|
|
46717
|
-
message2 = _optionalChain([JSON, 'access',
|
|
46724
|
+
message2 = _optionalChain([JSON, 'access', _1081 => _1081.parse, 'call', _1082 => _1082(action.details), 'optionalAccess', _1083 => _1083.error, 'optionalAccess', _1084 => _1084.message]);
|
|
46718
46725
|
} catch (e51) {
|
|
46719
46726
|
message2 = action.details;
|
|
46720
46727
|
}
|
|
46721
46728
|
}
|
|
46722
46729
|
const segments = accumulator.addError(action.error, message2);
|
|
46723
46730
|
emitSegments(segments);
|
|
46724
|
-
_optionalChain([callbacks, 'access',
|
|
46731
|
+
_optionalChain([callbacks, 'access', _1085 => _1085.onError, 'optionalCall', _1086 => _1086(action.error, message2)]);
|
|
46725
46732
|
break;
|
|
46726
46733
|
}
|
|
46727
46734
|
case "system": {
|
|
46728
|
-
_optionalChain([callbacks, 'access',
|
|
46735
|
+
_optionalChain([callbacks, 'access', _1087 => _1087.onSystemMessage, 'optionalCall', _1088 => _1088(action.text, { streamSeq })]);
|
|
46729
46736
|
break;
|
|
46730
46737
|
}
|
|
46731
46738
|
case "direct_message": {
|
|
46732
|
-
_optionalChain([callbacks, 'access',
|
|
46739
|
+
_optionalChain([callbacks, 'access', _1089 => _1089.onDirectMessage, 'optionalCall', _1090 => _1090(action.text, {
|
|
46733
46740
|
ownerType: action.ownerType,
|
|
46734
46741
|
displayName: action.displayName,
|
|
46735
46742
|
userId: action.userId,
|
|
@@ -46738,7 +46745,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
46738
46745
|
break;
|
|
46739
46746
|
}
|
|
46740
46747
|
case "message_request":
|
|
46741
|
-
_optionalChain([callbacks, 'access',
|
|
46748
|
+
_optionalChain([callbacks, 'access', _1091 => _1091.onUserMessage, 'optionalCall', _1092 => _1092(action.text, {
|
|
46742
46749
|
ownerType: action.ownerType,
|
|
46743
46750
|
displayName: action.displayName,
|
|
46744
46751
|
userId: action.userId,
|
|
@@ -46747,7 +46754,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
46747
46754
|
})]);
|
|
46748
46755
|
break;
|
|
46749
46756
|
case "token_usage":
|
|
46750
|
-
_optionalChain([callbacks, 'access',
|
|
46757
|
+
_optionalChain([callbacks, 'access', _1093 => _1093.onTokenUsage, 'optionalCall', _1094 => _1094(action.data)]);
|
|
46751
46758
|
break;
|
|
46752
46759
|
case "context_compaction_start": {
|
|
46753
46760
|
const standalone = !isInStreamRef.current;
|
|
@@ -46762,7 +46769,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
46762
46769
|
break;
|
|
46763
46770
|
}
|
|
46764
46771
|
case "dialog_closed":
|
|
46765
|
-
_optionalChain([callbacks, 'access',
|
|
46772
|
+
_optionalChain([callbacks, 'access', _1095 => _1095.onDialogClosed, 'optionalCall', _1096 => _1096()]);
|
|
46766
46773
|
break;
|
|
46767
46774
|
default:
|
|
46768
46775
|
break;
|
|
@@ -46809,7 +46816,7 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
|
|
|
46809
46816
|
const data = await res.json();
|
|
46810
46817
|
return _nullishCoalesce(data.commands, () => ( []));
|
|
46811
46818
|
} catch (err) {
|
|
46812
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
46819
|
+
if (_optionalChain([err, 'optionalAccess', _1097 => _1097.name]) === "AbortError") throw err;
|
|
46813
46820
|
console.warn("[chat] slash-commands fetch failed, showing none:", err);
|
|
46814
46821
|
return [];
|
|
46815
46822
|
}
|
|
@@ -46830,7 +46837,7 @@ function useSlashCommands(prefix, commandsUrl) {
|
|
|
46830
46837
|
const next = await fetchSlashCommands(prefix, ctrl.signal, commandsUrl);
|
|
46831
46838
|
if (!cancelled) setCommands(next);
|
|
46832
46839
|
} catch (err) {
|
|
46833
|
-
if (!cancelled && _optionalChain([err, 'optionalAccess',
|
|
46840
|
+
if (!cancelled && _optionalChain([err, 'optionalAccess', _1098 => _1098.name]) !== "AbortError") {
|
|
46834
46841
|
console.warn("[use-slash-commands] fetch failed:", err);
|
|
46835
46842
|
}
|
|
46836
46843
|
} finally {
|
|
@@ -46849,7 +46856,7 @@ function useSlashCommandRegistry(commandsUrl, options) {
|
|
|
46849
46856
|
const query = _reactquery.useQuery.call(void 0, {
|
|
46850
46857
|
queryKey: ["chat-slash-commands", commandsUrl],
|
|
46851
46858
|
queryFn: ({ signal }) => fetchSlashCommands("", signal, commandsUrl),
|
|
46852
|
-
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
46859
|
+
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _1099 => _1099.enabled]), () => ( true)),
|
|
46853
46860
|
staleTime: Infinity,
|
|
46854
46861
|
gcTime: Infinity,
|
|
46855
46862
|
// The commands registry is non-critical chrome — a failure degrades to an
|
|
@@ -46888,21 +46895,21 @@ async function fetchEmptyStateConfig(signal, emptyStateUrl) {
|
|
|
46888
46895
|
}
|
|
46889
46896
|
const data = await res.json();
|
|
46890
46897
|
return {
|
|
46891
|
-
name: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
46892
|
-
icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
46893
|
-
greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
46894
|
-
enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
46895
|
-
quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
46896
|
-
suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
46898
|
+
name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1100 => _1100.name]), () => ( null)),
|
|
46899
|
+
icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1101 => _1101.icon]), () => ( null)),
|
|
46900
|
+
greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1102 => _1102.greeting]), () => ( null)),
|
|
46901
|
+
enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1103 => _1103.enabledRagTableIds]), () => ( [])),
|
|
46902
|
+
quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1104 => _1104.quickActions]), () => ( [])),
|
|
46903
|
+
suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1105 => _1105.suggestedQueries]), () => ( []))
|
|
46897
46904
|
};
|
|
46898
46905
|
} catch (err) {
|
|
46899
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
46906
|
+
if (_optionalChain([err, 'optionalAccess', _1106 => _1106.name]) === "AbortError") throw err;
|
|
46900
46907
|
console.warn("[chat] empty-state config fetch failed, using neutral defaults:", err);
|
|
46901
46908
|
return EMPTY_STATE_FALLBACK;
|
|
46902
46909
|
}
|
|
46903
46910
|
}
|
|
46904
46911
|
function useEmptyStateConfig(emptyStateUrl, options) {
|
|
46905
|
-
const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
46912
|
+
const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _1107 => _1107.enabled]), () => ( true))) && !!emptyStateUrl;
|
|
46906
46913
|
const query = _reactquery.useQuery.call(void 0, {
|
|
46907
46914
|
queryKey: ["chat-empty-state", emptyStateUrl],
|
|
46908
46915
|
queryFn: ({ signal }) => fetchEmptyStateConfig(signal, emptyStateUrl),
|
|
@@ -46931,7 +46938,7 @@ var CHAT_ATTACHMENT_MAX_SIZE_BYTES = 25 * 1024 * 1024;
|
|
|
46931
46938
|
var STORAGE_CACHE_CONTROL_IMMUTABLE = "public, max-age=31536000, immutable";
|
|
46932
46939
|
function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
46933
46940
|
return new Promise((resolve, reject) => {
|
|
46934
|
-
if (_optionalChain([signal, 'optionalAccess',
|
|
46941
|
+
if (_optionalChain([signal, 'optionalAccess', _1108 => _1108.aborted])) {
|
|
46935
46942
|
reject(new Error("Upload cancelled"));
|
|
46936
46943
|
return;
|
|
46937
46944
|
}
|
|
@@ -46945,7 +46952,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
|
46945
46952
|
xhr.removeEventListener("error", handleError);
|
|
46946
46953
|
xhr.removeEventListener("abort", handleAbort);
|
|
46947
46954
|
xhr.removeEventListener("timeout", handleTimeout);
|
|
46948
|
-
_optionalChain([signal, 'optionalAccess',
|
|
46955
|
+
_optionalChain([signal, 'optionalAccess', _1109 => _1109.removeEventListener, 'call', _1110 => _1110("abort", handleSignalAbort)]);
|
|
46949
46956
|
if (xhr.readyState !== XMLHttpRequest.DONE) xhr.abort();
|
|
46950
46957
|
};
|
|
46951
46958
|
const handleProgress = (event) => {
|
|
@@ -46981,7 +46988,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
|
46981
46988
|
const handleSignalAbort = () => {
|
|
46982
46989
|
xhr.abort();
|
|
46983
46990
|
};
|
|
46984
|
-
_optionalChain([signal, 'optionalAccess',
|
|
46991
|
+
_optionalChain([signal, 'optionalAccess', _1111 => _1111.addEventListener, 'call', _1112 => _1112("abort", handleSignalAbort, { once: true })]);
|
|
46985
46992
|
xhr.upload.addEventListener("progress", handleProgress);
|
|
46986
46993
|
xhr.addEventListener("load", handleLoad);
|
|
46987
46994
|
xhr.addEventListener("error", handleError);
|
|
@@ -47025,12 +47032,12 @@ function useChatAttachments() {
|
|
|
47025
47032
|
try {
|
|
47026
47033
|
sniffed = await _filetype.fileTypeFromBlob.call(void 0, att.file);
|
|
47027
47034
|
} catch (err) {
|
|
47028
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
47035
|
+
if (_optionalChain([ctrl, 'optionalAccess', _1113 => _1113.signal, 'access', _1114 => _1114.aborted])) return;
|
|
47029
47036
|
throw new Error(
|
|
47030
47037
|
`Could not read file content: ${err instanceof Error ? err.message : String(err)}`
|
|
47031
47038
|
);
|
|
47032
47039
|
}
|
|
47033
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
47040
|
+
if (_optionalChain([ctrl, 'optionalAccess', _1115 => _1115.signal, 'access', _1116 => _1116.aborted])) return;
|
|
47034
47041
|
if (!sniffed) {
|
|
47035
47042
|
throw new Error("Unrecognized file format");
|
|
47036
47043
|
}
|
|
@@ -47044,7 +47051,7 @@ function useChatAttachments() {
|
|
|
47044
47051
|
const urlResp = await _chunk743FCO64cjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
|
|
47045
47052
|
method: "POST",
|
|
47046
47053
|
headers: { "Content-Type": "application/json" },
|
|
47047
|
-
signal: _optionalChain([ctrl, 'optionalAccess',
|
|
47054
|
+
signal: _optionalChain([ctrl, 'optionalAccess', _1117 => _1117.signal]),
|
|
47048
47055
|
body: JSON.stringify({
|
|
47049
47056
|
fileName: att.file.name,
|
|
47050
47057
|
// Pass the SNIFFED MIME (not `file.type`, which can be a
|
|
@@ -47070,9 +47077,9 @@ function useChatAttachments() {
|
|
|
47070
47077
|
(pct) => {
|
|
47071
47078
|
updateOne(att.id, { progress: pct });
|
|
47072
47079
|
},
|
|
47073
|
-
_optionalChain([ctrl, 'optionalAccess',
|
|
47080
|
+
_optionalChain([ctrl, 'optionalAccess', _1118 => _1118.signal])
|
|
47074
47081
|
);
|
|
47075
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
47082
|
+
if (_optionalChain([ctrl, 'optionalAccess', _1119 => _1119.signal, 'access', _1120 => _1120.aborted])) return;
|
|
47076
47083
|
updateOne(att.id, {
|
|
47077
47084
|
status: "ready",
|
|
47078
47085
|
progress: 100,
|
|
@@ -47080,7 +47087,7 @@ function useChatAttachments() {
|
|
|
47080
47087
|
viewToken: mintData.viewToken
|
|
47081
47088
|
});
|
|
47082
47089
|
} catch (err) {
|
|
47083
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
47090
|
+
if (_optionalChain([ctrl, 'optionalAccess', _1121 => _1121.signal, 'access', _1122 => _1122.aborted])) return;
|
|
47084
47091
|
const message2 = err instanceof Error ? err.message : String(err);
|
|
47085
47092
|
updateOne(att.id, { status: "error", progress: 0, errorMessage: message2 });
|
|
47086
47093
|
} finally {
|
|
@@ -47231,7 +47238,7 @@ var ANON_DEFAULTS = {
|
|
|
47231
47238
|
function useResolveChatIdentity(enabled) {
|
|
47232
47239
|
const runtime = _chunk3KEBI6TPcjs.useRequiredChatRuntime.call(void 0, );
|
|
47233
47240
|
const url = runtime.endpoints.identityUrl;
|
|
47234
|
-
const proxyEmail = _nullishCoalesce(_optionalChain([_chunk743FCO64cjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess',
|
|
47241
|
+
const proxyEmail = _nullishCoalesce(_optionalChain([_chunk743FCO64cjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _1123 => _1123.email]), () => ( null));
|
|
47235
47242
|
const [data, setData] = _react.useState.call(void 0, ANON_DEFAULTS);
|
|
47236
47243
|
const [isLoading, setIsLoading] = _react.useState.call(void 0, enabled);
|
|
47237
47244
|
_react.useEffect.call(void 0, () => {
|
|
@@ -47322,7 +47329,7 @@ function useSSE({ useMock = true, debugMode = false, streamFn } = {}) {
|
|
|
47322
47329
|
yield chunk;
|
|
47323
47330
|
}
|
|
47324
47331
|
} catch (err) {
|
|
47325
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
47332
|
+
if (_optionalChain([err, 'optionalAccess', _1124 => _1124.name]) === "AbortError" || ctrl.signal.aborted) {
|
|
47326
47333
|
return;
|
|
47327
47334
|
}
|
|
47328
47335
|
const errorMessage = err instanceof Error ? err.message : "An error occurred";
|
|
@@ -47373,7 +47380,7 @@ function useChat({
|
|
|
47373
47380
|
const onMessagesChangeRef = _react.useRef.call(void 0, onMessagesChange);
|
|
47374
47381
|
onMessagesChangeRef.current = onMessagesChange;
|
|
47375
47382
|
_react.useEffect.call(void 0, () => {
|
|
47376
|
-
_optionalChain([onMessagesChangeRef, 'access',
|
|
47383
|
+
_optionalChain([onMessagesChangeRef, 'access', _1125 => _1125.current, 'optionalCall', _1126 => _1126(messages)]);
|
|
47377
47384
|
}, [messages]);
|
|
47378
47385
|
const {
|
|
47379
47386
|
streamMessage,
|
|
@@ -47410,7 +47417,7 @@ function useChat({
|
|
|
47410
47417
|
name: "You",
|
|
47411
47418
|
content: text,
|
|
47412
47419
|
timestamp: /* @__PURE__ */ new Date(),
|
|
47413
|
-
..._optionalChain([options, 'optionalAccess',
|
|
47420
|
+
..._optionalChain([options, 'optionalAccess', _1127 => _1127.hidden]) ? { hidden: true } : {}
|
|
47414
47421
|
};
|
|
47415
47422
|
addMessage(userMessage);
|
|
47416
47423
|
setIsTyping(true);
|
|
@@ -47472,7 +47479,7 @@ function useChat({
|
|
|
47472
47479
|
currentTextSegment = "";
|
|
47473
47480
|
}
|
|
47474
47481
|
const seg = segment;
|
|
47475
|
-
const proposalId = _optionalChain([seg, 'access',
|
|
47482
|
+
const proposalId = _optionalChain([seg, 'access', _1128 => _1128.data, 'optionalAccess', _1129 => _1129.requestId]);
|
|
47476
47483
|
const updateApprovalMessage = (transform) => {
|
|
47477
47484
|
setMessages((prev) => {
|
|
47478
47485
|
for (let i = prev.length - 1; i >= 0; i--) {
|
|
@@ -47481,7 +47488,7 @@ function useChat({
|
|
|
47481
47488
|
if (!Array.isArray(m.content)) continue;
|
|
47482
47489
|
const segments = m.content;
|
|
47483
47490
|
const hasMatch = segments.some(
|
|
47484
|
-
(s) => s.type === "approval_request" && _optionalChain([s, 'access',
|
|
47491
|
+
(s) => s.type === "approval_request" && _optionalChain([s, 'access', _1130 => _1130.data, 'optionalAccess', _1131 => _1131.requestId]) === proposalId
|
|
47485
47492
|
);
|
|
47486
47493
|
if (!hasMatch) continue;
|
|
47487
47494
|
const next = [...prev];
|
|
@@ -47523,11 +47530,11 @@ function useChat({
|
|
|
47523
47530
|
if (!Array.isArray(m.content)) continue;
|
|
47524
47531
|
const segments = m.content;
|
|
47525
47532
|
const hasMatch = segments.some(
|
|
47526
|
-
(s) => s.type === "approval_request" && _optionalChain([s, 'access',
|
|
47533
|
+
(s) => s.type === "approval_request" && _optionalChain([s, 'access', _1132 => _1132.data, 'optionalAccess', _1133 => _1133.requestId]) === decision.proposalId
|
|
47527
47534
|
);
|
|
47528
47535
|
if (!hasMatch) continue;
|
|
47529
47536
|
const flipped = segments.map(
|
|
47530
|
-
(s) => s.type === "approval_request" && _optionalChain([s, 'access',
|
|
47537
|
+
(s) => s.type === "approval_request" && _optionalChain([s, 'access', _1134 => _1134.data, 'optionalAccess', _1135 => _1135.requestId]) === decision.proposalId ? { ...s, status: decision.action } : s
|
|
47531
47538
|
);
|
|
47532
47539
|
const next = [...prev];
|
|
47533
47540
|
next[i] = { ...m, content: flipped };
|
|
@@ -47689,8 +47696,8 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
47689
47696
|
})),
|
|
47690
47697
|
{ role: "user", content: message2 }
|
|
47691
47698
|
];
|
|
47692
|
-
const targetPath = _optionalChain([extra, 'optionalAccess',
|
|
47693
|
-
const requestBody = _optionalChain([extra, 'optionalAccess',
|
|
47699
|
+
const targetPath = _optionalChain([extra, 'optionalAccess', _1136 => _1136.approvalAction]) ? endpoints.approvalToolUrl : endpoints.chatStreamUrl;
|
|
47700
|
+
const requestBody = _optionalChain([extra, 'optionalAccess', _1137 => _1137.approvalAction]) ? {
|
|
47694
47701
|
proposal_id: extra.approvalAction.proposalId,
|
|
47695
47702
|
action: extra.approvalAction.action,
|
|
47696
47703
|
messages: currentMessages.filter((m) => (m.role === "user" || m.role === "assistant") && !m.hidden).map((m) => ({
|
|
@@ -47699,8 +47706,8 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
47699
47706
|
}))
|
|
47700
47707
|
} : {
|
|
47701
47708
|
messages: apiMessages,
|
|
47702
|
-
..._optionalChain([extra, 'optionalAccess',
|
|
47703
|
-
..._optionalChain([extra, 'optionalAccess',
|
|
47709
|
+
..._optionalChain([extra, 'optionalAccess', _1138 => _1138.commandOverride]) ? { commandOverride: extra.commandOverride } : {},
|
|
47710
|
+
..._optionalChain([extra, 'optionalAccess', _1139 => _1139.pendingAttachments]) && extra.pendingAttachments.length > 0 ? { pendingAttachments: extra.pendingAttachments } : {}
|
|
47704
47711
|
};
|
|
47705
47712
|
const response = await _chunk743FCO64cjs.embedAuthedFetch.call(void 0, targetPath, {
|
|
47706
47713
|
method: "POST",
|
|
@@ -47710,7 +47717,7 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
47710
47717
|
if (!response.ok) {
|
|
47711
47718
|
throw new Error(`Chat request failed: ${response.status}`);
|
|
47712
47719
|
}
|
|
47713
|
-
const reader = _optionalChain([response, 'access',
|
|
47720
|
+
const reader = _optionalChain([response, 'access', _1140 => _1140.body, 'optionalAccess', _1141 => _1141.getReader, 'call', _1142 => _1142()]);
|
|
47714
47721
|
if (!reader) throw new Error("No response body");
|
|
47715
47722
|
const decoder = new TextDecoder();
|
|
47716
47723
|
let buffer = "";
|
|
@@ -47793,7 +47800,7 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
47793
47800
|
const toolName = typeof meta.tool_name === "string" ? meta.tool_name : void 0;
|
|
47794
47801
|
const result = _nullishCoalesce(meta.result, () => ( null));
|
|
47795
47802
|
const card = _nullishCoalesce(meta.card, () => ( null));
|
|
47796
|
-
if (_optionalChain([card, 'optionalAccess',
|
|
47803
|
+
if (_optionalChain([card, 'optionalAccess', _1143 => _1143.ref, 'optionalAccess', _1144 => _1144.id]) && _optionalChain([card, 'optionalAccess', _1145 => _1145.type])) {
|
|
47797
47804
|
const existing = _nullishCoalesce(refsMapRef.current.get(sendIdx), () => ( {}));
|
|
47798
47805
|
const key = buildChatRefKey(card.type, card.ref.id);
|
|
47799
47806
|
refsMapRef.current.set(sendIdx, { ...existing, [key]: card.ref });
|
|
@@ -47806,8 +47813,8 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
47806
47813
|
willAutoContinue: meta.willAutoContinue === true,
|
|
47807
47814
|
...toolName ? { toolName } : {},
|
|
47808
47815
|
...result ? { result } : {},
|
|
47809
|
-
..._optionalChain([card, 'optionalAccess',
|
|
47810
|
-
..._optionalChain([card, 'optionalAccess',
|
|
47816
|
+
..._optionalChain([card, 'optionalAccess', _1146 => _1146.marker]) ? { marker: card.marker } : {},
|
|
47817
|
+
..._optionalChain([card, 'optionalAccess', _1147 => _1147.ref]) ? { cardRef: card.ref } : {},
|
|
47811
47818
|
...typeof meta.receiptText === "string" ? { receiptText: meta.receiptText } : {},
|
|
47812
47819
|
proposalId: typeof meta.proposalId === "string" ? meta.proposalId : void 0
|
|
47813
47820
|
};
|
|
@@ -47926,7 +47933,7 @@ var DEFAULT_CHAT_SOURCE = "embed";
|
|
|
47926
47933
|
var chatStorageKey = (source) => {
|
|
47927
47934
|
const base = `mingo-chat-${source}-v${CHAT_STORAGE_VERSION}`;
|
|
47928
47935
|
const auth = _chunk743FCO64cjs.getEmbedProxyAuth.call(void 0, );
|
|
47929
|
-
if (_optionalChain([auth, 'optionalAccess',
|
|
47936
|
+
if (_optionalChain([auth, 'optionalAccess', _1148 => _1148.email])) {
|
|
47930
47937
|
return `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}`;
|
|
47931
47938
|
}
|
|
47932
47939
|
return base;
|
|
@@ -47981,7 +47988,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
47981
47988
|
const { active = true } = runtimeOptions;
|
|
47982
47989
|
const runtime = _chunk3KEBI6TPcjs.useRequiredChatRuntime.call(void 0, );
|
|
47983
47990
|
const source = runtime.source || DEFAULT_CHAT_SOURCE;
|
|
47984
|
-
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
47991
|
+
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _1149 => _1149.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
|
|
47985
47992
|
const persistedRef = _react.useRef.call(void 0, null);
|
|
47986
47993
|
if (persistedRef.current === null) {
|
|
47987
47994
|
pruneStaleChatStorage(source);
|
|
@@ -48086,7 +48093,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
48086
48093
|
const lookupIdx = sendIdx >= 0 ? sendIdx : 0;
|
|
48087
48094
|
sources = sourcesMapRef.current.get(lookupIdx);
|
|
48088
48095
|
chatRefs = _nullishCoalesce(m.chatRefs, () => ( refsMapRef.current.get(lookupIdx)));
|
|
48089
|
-
scrollAnchor = _nullishCoalesce(_optionalChain([metaMapRef, 'access',
|
|
48096
|
+
scrollAnchor = _nullishCoalesce(_optionalChain([metaMapRef, 'access', _1150 => _1150.current, 'access', _1151 => _1151.get, 'call', _1152 => _1152(lookupIdx), 'optionalAccess', _1153 => _1153.scrollAnchor]), () => ( void 0));
|
|
48090
48097
|
}
|
|
48091
48098
|
return {
|
|
48092
48099
|
id: m.id,
|
|
@@ -48134,7 +48141,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
48134
48141
|
);
|
|
48135
48142
|
return;
|
|
48136
48143
|
}
|
|
48137
|
-
const refSlug = typeof _optionalChain([reference, 'access',
|
|
48144
|
+
const refSlug = typeof _optionalChain([reference, 'access', _1154 => _1154.metadata, 'optionalAccess', _1155 => _1155.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
|
|
48138
48145
|
const queryValue = refSlug || sanitizeTitleForChat(reference.title) || reference.id;
|
|
48139
48146
|
const escaped = queryValue.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
|
|
48140
48147
|
const text = `/${cmdId} display "${escaped}"`;
|
|
@@ -48206,18 +48213,18 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
48206
48213
|
clearMessages,
|
|
48207
48214
|
streamingPhase,
|
|
48208
48215
|
/** Provider key for the lib's `<ModelDisplay>` icon. */
|
|
48209
|
-
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
48210
|
-
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
48211
|
-
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
48216
|
+
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1156 => _1156.provider]), () => ( null)),
|
|
48217
|
+
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1157 => _1157.modelLabel]), () => ( null)),
|
|
48218
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1158 => _1158.contextWindowMaxTokens]), () => ( null)),
|
|
48212
48219
|
/** Input tokens (known after server's message_start frame; null until). */
|
|
48213
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
48220
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1159 => _1159.inputTokens]), () => ( null)),
|
|
48214
48221
|
/** Output tokens (known only after server's trailing usage frame). */
|
|
48215
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
48222
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1160 => _1160.outputTokens]), () => ( null)),
|
|
48216
48223
|
/** Cache hit % (read / total-input × 100). null during streaming. */
|
|
48217
|
-
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
48224
|
+
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1161 => _1161.cacheHitRatePct]), () => ( null)),
|
|
48218
48225
|
/** Cross-call usage breakdown (Haiku rewriter/classifier/summarizer
|
|
48219
48226
|
* token counts). null until the trailing usage frame lands. */
|
|
48220
|
-
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
48227
|
+
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1162 => _1162.breakdown]), () => ( null)),
|
|
48221
48228
|
// ─── Dialog management — stubs for v1 ────────────────────────────────
|
|
48222
48229
|
// Guide mode currently keeps its history in `localStorage` opaquely
|
|
48223
48230
|
// under the hood (`runtime.source` namespaced key). Surfacing that
|
|
@@ -48275,15 +48282,15 @@ var noopRejectRequest = async (_id, _reason) => {
|
|
|
48275
48282
|
|
|
48276
48283
|
// src/components/chat/utils/process-historical-messages.ts
|
|
48277
48284
|
function getOwnerDisplayName(owner) {
|
|
48278
|
-
if (_optionalChain([owner, 'optionalAccess',
|
|
48285
|
+
if (_optionalChain([owner, 'optionalAccess', _1163 => _1163.type]) === OWNER_TYPE.ADMIN && owner.user) {
|
|
48279
48286
|
const { firstName, lastName } = owner.user;
|
|
48280
48287
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
48281
48288
|
if (name) return name;
|
|
48282
48289
|
}
|
|
48283
|
-
return _optionalChain([owner, 'optionalAccess',
|
|
48290
|
+
return _optionalChain([owner, 'optionalAccess', _1164 => _1164.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
48284
48291
|
}
|
|
48285
48292
|
function getOwnerAvatar(owner) {
|
|
48286
|
-
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess',
|
|
48293
|
+
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _1165 => _1165.user, 'optionalAccess', _1166 => _1166.image, 'optionalAccess', _1167 => _1167.imageUrl]), () => ( void 0));
|
|
48287
48294
|
}
|
|
48288
48295
|
function pushStandaloneMessages(processedMessages, msg, messageDataArray) {
|
|
48289
48296
|
messageDataArray.forEach((data) => {
|
|
@@ -48346,14 +48353,14 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
48346
48353
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
48347
48354
|
return;
|
|
48348
48355
|
}
|
|
48349
|
-
const isUserMessage = _optionalChain([msg, 'access',
|
|
48356
|
+
const isUserMessage = _optionalChain([msg, 'access', _1168 => _1168.owner, 'optionalAccess', _1169 => _1169.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _1170 => _1170.owner, 'optionalAccess', _1171 => _1171.type]) === OWNER_TYPE.ADMIN;
|
|
48350
48357
|
if (isUserMessage) {
|
|
48351
48358
|
flushAssistantMessage();
|
|
48352
|
-
const userAuthorType = _optionalChain([msg, 'access',
|
|
48359
|
+
const userAuthorType = _optionalChain([msg, 'access', _1172 => _1172.owner, 'optionalAccess', _1173 => _1173.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
48353
48360
|
messageDataArray.forEach((data) => {
|
|
48354
48361
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
48355
48362
|
const rawContext = data.contextItems;
|
|
48356
|
-
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess',
|
|
48363
|
+
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _1174 => _1174.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _1175 => _1175.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
|
|
48357
48364
|
processedMessages.push({
|
|
48358
48365
|
id: msg.id,
|
|
48359
48366
|
role: "user",
|
|
@@ -48377,7 +48384,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
48377
48384
|
});
|
|
48378
48385
|
const nextMsg = messages[index + 1];
|
|
48379
48386
|
const isLastMessage = index === messages.length - 1;
|
|
48380
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access',
|
|
48387
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _1176 => _1176.owner, 'optionalAccess', _1177 => _1177.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _1178 => _1178.owner, 'optionalAccess', _1179 => _1179.type]) === OWNER_TYPE.ADMIN);
|
|
48381
48388
|
if (isLastMessage || nextIsFromUser) {
|
|
48382
48389
|
flushAssistantMessage();
|
|
48383
48390
|
}
|
|
@@ -48487,7 +48494,7 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
48487
48494
|
}
|
|
48488
48495
|
}
|
|
48489
48496
|
} else {
|
|
48490
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
48497
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _1180 => _1180.set, 'call', _1181 => _1181(data.approvalRequestId, {
|
|
48491
48498
|
command: data.command || "",
|
|
48492
48499
|
explanation: data.explanation,
|
|
48493
48500
|
approvalType,
|
|
@@ -48501,8 +48508,8 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
48501
48508
|
const existingStatus = approvalStatuses[data.approvalRequestId];
|
|
48502
48509
|
const status = existingStatus || (data.approved ? "approved" : "rejected");
|
|
48503
48510
|
const resolvedByName = "resolvedByName" in data ? data.resolvedByName : void 0;
|
|
48504
|
-
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess',
|
|
48505
|
-
if (_optionalChain([escalatedData, 'optionalAccess',
|
|
48511
|
+
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _1182 => _1182.get, 'call', _1183 => _1183(data.approvalRequestId)]);
|
|
48512
|
+
if (_optionalChain([escalatedData, 'optionalAccess', _1184 => _1184.toolCalls]) && escalatedData.toolCalls.length > 0) {
|
|
48506
48513
|
if (batchApprovalsEnabled) {
|
|
48507
48514
|
accumulator.addApprovalBatch(
|
|
48508
48515
|
data.approvalRequestId,
|
|
@@ -48524,7 +48531,7 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
48524
48531
|
);
|
|
48525
48532
|
}
|
|
48526
48533
|
}
|
|
48527
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
48534
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _1185 => _1185.delete, 'call', _1186 => _1186(data.approvalRequestId)]);
|
|
48528
48535
|
break;
|
|
48529
48536
|
}
|
|
48530
48537
|
if (escalatedData) {
|
|
@@ -48533,7 +48540,7 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
48533
48540
|
explanation: escalatedData.explanation,
|
|
48534
48541
|
approvalType: escalatedData.approvalType
|
|
48535
48542
|
});
|
|
48536
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
48543
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _1187 => _1187.delete, 'call', _1188 => _1188(data.approvalRequestId)]);
|
|
48537
48544
|
}
|
|
48538
48545
|
const before = accumulator.getSegments();
|
|
48539
48546
|
const after = accumulator.updateApprovalStatus(data.approvalRequestId, status, resolvedByName);
|
|
@@ -48549,9 +48556,9 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
48549
48556
|
case MESSAGE_TYPE.ERROR:
|
|
48550
48557
|
if ("error" in data) {
|
|
48551
48558
|
let message2;
|
|
48552
|
-
if ("details" in data && _optionalChain([data, 'optionalAccess',
|
|
48559
|
+
if ("details" in data && _optionalChain([data, 'optionalAccess', _1189 => _1189.details])) {
|
|
48553
48560
|
try {
|
|
48554
|
-
message2 = _optionalChain([JSON, 'access',
|
|
48561
|
+
message2 = _optionalChain([JSON, 'access', _1190 => _1190.parse, 'call', _1191 => _1191(data.details), 'optionalAccess', _1192 => _1192.error, 'optionalAccess', _1193 => _1193.message]);
|
|
48555
48562
|
} catch (e58) {
|
|
48556
48563
|
message2 = data.details;
|
|
48557
48564
|
}
|
|
@@ -48634,14 +48641,14 @@ function processHistoricalMessagesWithErrors(messages, options = {}) {
|
|
|
48634
48641
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
48635
48642
|
return;
|
|
48636
48643
|
}
|
|
48637
|
-
const isUserMessage = _optionalChain([msg, 'access',
|
|
48644
|
+
const isUserMessage = _optionalChain([msg, 'access', _1194 => _1194.owner, 'optionalAccess', _1195 => _1195.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _1196 => _1196.owner, 'optionalAccess', _1197 => _1197.type]) === OWNER_TYPE.ADMIN;
|
|
48638
48645
|
if (isUserMessage) {
|
|
48639
48646
|
flushAssistantMessage();
|
|
48640
|
-
const userAuthorType = _optionalChain([msg, 'access',
|
|
48647
|
+
const userAuthorType = _optionalChain([msg, 'access', _1198 => _1198.owner, 'optionalAccess', _1199 => _1199.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
48641
48648
|
messageDataArray.forEach((data) => {
|
|
48642
48649
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
48643
48650
|
const rawContext = data.contextItems;
|
|
48644
|
-
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess',
|
|
48651
|
+
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _1200 => _1200.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _1201 => _1201.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
|
|
48645
48652
|
processedMessages.push({
|
|
48646
48653
|
id: msg.id,
|
|
48647
48654
|
role: "user",
|
|
@@ -48665,7 +48672,7 @@ function processHistoricalMessagesWithErrors(messages, options = {}) {
|
|
|
48665
48672
|
});
|
|
48666
48673
|
const nextMsg = messages[index + 1];
|
|
48667
48674
|
const isLastMessage = index === messages.length - 1;
|
|
48668
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access',
|
|
48675
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _1202 => _1202.owner, 'optionalAccess', _1203 => _1203.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _1204 => _1204.owner, 'optionalAccess', _1205 => _1205.type]) === OWNER_TYPE.ADMIN);
|
|
48669
48676
|
if (isLastMessage || nextIsFromUser) {
|
|
48670
48677
|
flushAssistantMessage();
|
|
48671
48678
|
}
|
|
@@ -49001,7 +49008,7 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
49001
49008
|
}, [active, fetchDialogs, loadDialogsPage]);
|
|
49002
49009
|
const sendMessage = _react.useCallback.call(void 0,
|
|
49003
49010
|
async (text, sendOptions) => {
|
|
49004
|
-
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess',
|
|
49011
|
+
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _1206 => _1206.hidden]), () => ( false));
|
|
49005
49012
|
setMessages((prev) => [
|
|
49006
49013
|
...prev,
|
|
49007
49014
|
{
|
|
@@ -49165,11 +49172,11 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
49165
49172
|
// Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
|
|
49166
49173
|
// contextWindow uses the dialog's `contextSize` (the "X / Y" denominator,
|
|
49167
49174
|
// matching the /mingo page). cacheHitRate/breakdown are SSE-only → null.
|
|
49168
|
-
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess',
|
|
49169
|
-
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess',
|
|
49170
|
-
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
49171
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
49172
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
49175
|
+
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _1207 => _1207.provider]), () => ( modelProvider)), () => ( null)),
|
|
49176
|
+
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _1208 => _1208.modelLabel]), () => ( modelLabel)), () => ( null)),
|
|
49177
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1209 => _1209.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _1210 => _1210.contextWindowMaxTokens]))), () => ( null)),
|
|
49178
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1211 => _1211.inputTokensSize]), () => ( null)),
|
|
49179
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1212 => _1212.outputTokensSize]), () => ( null)),
|
|
49173
49180
|
currentCacheHitRatePct: null,
|
|
49174
49181
|
currentUsageBreakdown: null,
|
|
49175
49182
|
// Dialog management
|
|
@@ -49417,7 +49424,7 @@ function extractIncompleteMessageState(lastMessage) {
|
|
|
49417
49424
|
break;
|
|
49418
49425
|
case "approval_batch": {
|
|
49419
49426
|
const allDone = !!segment.data.executions && segment.data.toolCalls.every(
|
|
49420
|
-
(c) => _optionalChain([segment, 'access',
|
|
49427
|
+
(c) => _optionalChain([segment, 'access', _1213 => _1213.data, 'access', _1214 => _1214.executions, 'optionalAccess', _1215 => _1215[c.toolExecutionRequestId], 'optionalAccess', _1216 => _1216.status]) === "done"
|
|
49421
49428
|
);
|
|
49422
49429
|
if (segment.status !== "rejected" && !allDone) {
|
|
49423
49430
|
hasIncompleteState = true;
|
|
@@ -49485,20 +49492,20 @@ function mergeHistoryWithRealtime(input) {
|
|
|
49485
49492
|
const seqCoverageKnown = realtimeSeenStreamSeq > 0 && historyMaxStreamSeq > 0;
|
|
49486
49493
|
const historyCoversRealtime = seqCoverageKnown ? historyMaxStreamSeq >= realtimeSeenStreamSeq : null;
|
|
49487
49494
|
const trailing = processedHistory[processedHistory.length - 1];
|
|
49488
|
-
const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess',
|
|
49489
|
-
const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access',
|
|
49495
|
+
const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _1217 => _1217.role]) === "assistant" ? trailing : null;
|
|
49496
|
+
const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access', _1218 => _1218.content, 'access', _1219 => _1219.find, 'call', _1220 => _1220((s) => s.type === "approval_batch"), 'optionalAccess', _1221 => _1221.data, 'optionalAccess', _1222 => _1222.approvalRequestId]), () => ( null)) : null;
|
|
49490
49497
|
let processedToUse = processedHistory;
|
|
49491
49498
|
const pinnedSyntheticIds = /* @__PURE__ */ new Set();
|
|
49492
49499
|
const droppedSyntheticIds = /* @__PURE__ */ new Set();
|
|
49493
49500
|
if (historyBatchId) {
|
|
49494
49501
|
const batchTwins = existingMessages.filter(
|
|
49495
49502
|
(m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some(
|
|
49496
|
-
(s) => s.type === "approval_batch" && _optionalChain([s, 'access',
|
|
49503
|
+
(s) => s.type === "approval_batch" && _optionalChain([s, 'access', _1223 => _1223.data, 'optionalAccess', _1224 => _1224.approvalRequestId]) === historyBatchId
|
|
49497
49504
|
)
|
|
49498
49505
|
);
|
|
49499
49506
|
const existingWithSameBatch = _nullishCoalesce(batchTwins.find((m) => m.id === streamingMessageId), () => ( batchTwins[batchTwins.length - 1]));
|
|
49500
49507
|
if (existingWithSameBatch && Array.isArray(existingWithSameBatch.content)) {
|
|
49501
|
-
const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess',
|
|
49508
|
+
const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _1225 => _1225.content])) ? historyTrailingAssistant.content.length : 0;
|
|
49502
49509
|
const realtimeSize = existingWithSameBatch.content.length;
|
|
49503
49510
|
if (existingWithSameBatch.id === streamingMessageId || realtimeSize > histSize) {
|
|
49504
49511
|
processedToUse = processedHistory.slice(0, -1);
|
|
@@ -49514,16 +49521,16 @@ function mergeHistoryWithRealtime(input) {
|
|
|
49514
49521
|
if (pinnedSyntheticIds.has(m.id)) return true;
|
|
49515
49522
|
if (droppedSyntheticIds.has(m.id)) return false;
|
|
49516
49523
|
if (processedIds.has(m.id)) return false;
|
|
49517
|
-
if (_optionalChain([rawHistoryIds, 'optionalAccess',
|
|
49524
|
+
if (_optionalChain([rawHistoryIds, 'optionalAccess', _1226 => _1226.has, 'call', _1227 => _1227(m.id)])) return false;
|
|
49518
49525
|
if (m.role === "user" && m.id.startsWith("optimistic-") && typeof m.content === "string") {
|
|
49519
|
-
const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access',
|
|
49526
|
+
const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _1228 => _1228.timestamp, 'optionalAccess', _1229 => _1229.getTime, 'call', _1230 => _1230()]), () => ( 0))) <= historyFetchedAt;
|
|
49520
49527
|
return !(canBeInSnapshot && processedToUse.some((pm) => pm.role === "user" && pm.content === m.content));
|
|
49521
49528
|
}
|
|
49522
49529
|
if (isSyntheticRealtimeId(m.id) && m.id !== streamingMessageId) {
|
|
49523
49530
|
if (m.role === "assistant" && trailingAssistantText && assistantAnswerText(m.content) === trailingAssistantText) {
|
|
49524
49531
|
return false;
|
|
49525
49532
|
}
|
|
49526
|
-
const covered = typeof m.streamSeq === "number" && historyMaxStreamSeq > 0 ? historyMaxStreamSeq >= m.streamSeq : historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access',
|
|
49533
|
+
const covered = typeof m.streamSeq === "number" && historyMaxStreamSeq > 0 ? historyMaxStreamSeq >= m.streamSeq : historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _1231 => _1231.timestamp, 'optionalAccess', _1232 => _1232.getTime, 'call', _1233 => _1233()]), () => ( 0))) <= historyFetchedAt;
|
|
49527
49534
|
if (covered) return false;
|
|
49528
49535
|
}
|
|
49529
49536
|
return true;
|
|
@@ -49743,7 +49750,7 @@ function useChatDialogManager({
|
|
|
49743
49750
|
const handleConfirmRestore = _react.useCallback.call(void 0, async () => {
|
|
49744
49751
|
if (restoreTarget) {
|
|
49745
49752
|
try {
|
|
49746
|
-
await _optionalChain([unarchiveDialog, 'optionalCall',
|
|
49753
|
+
await _optionalChain([unarchiveDialog, 'optionalCall', _1234 => _1234(restoreTarget.id)]);
|
|
49747
49754
|
} catch (err) {
|
|
49748
49755
|
console.error("[useChatDialogManager] unarchive failed:", err);
|
|
49749
49756
|
return;
|
|
@@ -50160,7 +50167,7 @@ function EmbeddableChatInner({
|
|
|
50160
50167
|
}),
|
|
50161
50168
|
[commandsUrl]
|
|
50162
50169
|
);
|
|
50163
|
-
const userName = _optionalChain([identityUser, 'optionalAccess',
|
|
50170
|
+
const userName = _optionalChain([identityUser, 'optionalAccess', _1235 => _1235.firstName, 'optionalAccess', _1236 => _1236.trim, 'call', _1237 => _1237()]) || _optionalChain([identityUser, 'optionalAccess', _1238 => _1238.name, 'optionalAccess', _1239 => _1239.split, 'call', _1240 => _1240(" "), 'access', _1241 => _1241[0], 'optionalAccess', _1242 => _1242.trim, 'call', _1243 => _1243()]) || void 0;
|
|
50164
50171
|
const effectiveModes = _react.useMemo.call(void 0, () => {
|
|
50165
50172
|
if (modes) return modes;
|
|
50166
50173
|
const guideOptions = tableIdForDocumentType ? { tableIdForDocumentType } : {};
|
|
@@ -50169,19 +50176,19 @@ function EmbeddableChatInner({
|
|
|
50169
50176
|
const mingoCaps = _react.useMemo.call(void 0, () => {
|
|
50170
50177
|
if (mingoState) {
|
|
50171
50178
|
return {
|
|
50172
|
-
canRename: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
50173
|
-
canArchive: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
50174
|
-
fetchArchivedDialogs: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
50175
|
-
unarchiveDialog: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
50176
|
-
searchQuery: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
50177
|
-
onSearchChange: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
50179
|
+
canRename: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _1244 => _1244.canRename]), () => ( false)),
|
|
50180
|
+
canArchive: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _1245 => _1245.canArchive]), () => ( false)),
|
|
50181
|
+
fetchArchivedDialogs: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1246 => _1246.fetchArchivedDialogs]),
|
|
50182
|
+
unarchiveDialog: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1247 => _1247.unarchiveDialog]),
|
|
50183
|
+
searchQuery: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1248 => _1248.searchQuery]),
|
|
50184
|
+
onSearchChange: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1249 => _1249.onSearchChange])
|
|
50178
50185
|
};
|
|
50179
50186
|
}
|
|
50180
50187
|
return {
|
|
50181
|
-
canRename: !!_optionalChain([effectiveModes, 'access',
|
|
50182
|
-
canArchive: !!_optionalChain([effectiveModes, 'access',
|
|
50183
|
-
fetchArchivedDialogs: _optionalChain([effectiveModes, 'access',
|
|
50184
|
-
unarchiveDialog: _optionalChain([effectiveModes, 'access',
|
|
50188
|
+
canRename: !!_optionalChain([effectiveModes, 'access', _1250 => _1250.mingo, 'optionalAccess', _1251 => _1251.renameDialog]),
|
|
50189
|
+
canArchive: !!_optionalChain([effectiveModes, 'access', _1252 => _1252.mingo, 'optionalAccess', _1253 => _1253.archiveDialog]),
|
|
50190
|
+
fetchArchivedDialogs: _optionalChain([effectiveModes, 'access', _1254 => _1254.mingo, 'optionalAccess', _1255 => _1255.fetchArchivedDialogs]),
|
|
50191
|
+
unarchiveDialog: _optionalChain([effectiveModes, 'access', _1256 => _1256.mingo, 'optionalAccess', _1257 => _1257.unarchiveDialog]),
|
|
50185
50192
|
searchQuery: void 0,
|
|
50186
50193
|
onSearchChange: void 0
|
|
50187
50194
|
};
|
|
@@ -50195,7 +50202,7 @@ function EmbeddableChatInner({
|
|
|
50195
50202
|
if (controlledActiveMode === void 0) {
|
|
50196
50203
|
setUncontrolledActiveMode(next);
|
|
50197
50204
|
}
|
|
50198
|
-
_optionalChain([onActiveModeChange, 'optionalCall',
|
|
50205
|
+
_optionalChain([onActiveModeChange, 'optionalCall', _1258 => _1258(next)]);
|
|
50199
50206
|
},
|
|
50200
50207
|
[controlledActiveMode, onActiveModeChange]
|
|
50201
50208
|
);
|
|
@@ -50217,7 +50224,7 @@ function EmbeddableChatInner({
|
|
|
50217
50224
|
const effectiveQuickActions = emptyStateUrl ? emptyStateConfig.quickActions : [];
|
|
50218
50225
|
const effectiveAssistantName = emptyStateConfig.name;
|
|
50219
50226
|
const effectiveAssistantIcon = emptyStateConfig.icon;
|
|
50220
|
-
const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess',
|
|
50227
|
+
const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess', _1259 => _1259.title]) === "string" ? guideWelcome.title : null)));
|
|
50221
50228
|
const {
|
|
50222
50229
|
messages: rawMessages,
|
|
50223
50230
|
isLoading: chatLoading,
|
|
@@ -50257,7 +50264,7 @@ function EmbeddableChatInner({
|
|
|
50257
50264
|
if (activeMode !== "guide" || guidePromptSentRef.current) return;
|
|
50258
50265
|
guidePromptSentRef.current = true;
|
|
50259
50266
|
void sendMessage(guidePendingPrompt);
|
|
50260
|
-
_optionalChain([onGuidePromptConsumed, 'optionalCall',
|
|
50267
|
+
_optionalChain([onGuidePromptConsumed, 'optionalCall', _1260 => _1260()]);
|
|
50261
50268
|
}, [guidePendingPrompt, activeMode, sendMessage, onGuidePromptConsumed]);
|
|
50262
50269
|
const {
|
|
50263
50270
|
attachments: stagedAttachments,
|
|
@@ -50268,7 +50275,7 @@ function EmbeddableChatInner({
|
|
|
50268
50275
|
clear: clearAttachments
|
|
50269
50276
|
} = useChatAttachments();
|
|
50270
50277
|
const { panelRef: galleryPanelRef, modal: galleryModal } = useChatAttachmentImageGallery();
|
|
50271
|
-
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess',
|
|
50278
|
+
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _1261 => _1261.maxItems]), () => ( 10));
|
|
50272
50279
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
50273
50280
|
const [contextItems, setContextItems] = _react.useState.call(void 0, []);
|
|
50274
50281
|
const [contextPickerOpen, setContextPickerOpen] = _react.useState.call(void 0, false);
|
|
@@ -50285,10 +50292,10 @@ function EmbeddableChatInner({
|
|
|
50285
50292
|
}, [activeDialogId, activeMode]);
|
|
50286
50293
|
const mentionMarkerByType = _react.useMemo.call(void 0, () => {
|
|
50287
50294
|
const m = /* @__PURE__ */ new Map();
|
|
50288
|
-
for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess',
|
|
50295
|
+
for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _1262 => _1262.entityTypes]), () => ( []))) if (t.marker) m.set(t.type, t.marker);
|
|
50289
50296
|
return m;
|
|
50290
|
-
}, [_optionalChain([contextPicker, 'optionalAccess',
|
|
50291
|
-
const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess',
|
|
50297
|
+
}, [_optionalChain([contextPicker, 'optionalAccess', _1263 => _1263.entityTypes])]);
|
|
50298
|
+
const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess', _1264 => _1264.entityTypes]);
|
|
50292
50299
|
const resolveContextIcon = _react.useMemo.call(void 0, () => {
|
|
50293
50300
|
const byType = /* @__PURE__ */ new Map();
|
|
50294
50301
|
for (const t of _nullishCoalesce(contextEntityTypes, () => ( []))) byType.set(t.type, t.icon);
|
|
@@ -50300,7 +50307,7 @@ function EmbeddableChatInner({
|
|
|
50300
50307
|
if (mentionActiveRef.current) {
|
|
50301
50308
|
if (contextItems.some((p) => `${p.type}:${p.id}` === key)) return;
|
|
50302
50309
|
if (contextItems.length >= contextMaxItems) return;
|
|
50303
|
-
_optionalChain([chatInputRef, 'access',
|
|
50310
|
+
_optionalChain([chatInputRef, 'access', _1265 => _1265.current, 'optionalAccess', _1266 => _1266.commitMention, 'call', _1267 => _1267(mentionTokenOf(key, mentionMarkerByType), {
|
|
50304
50311
|
label: item.label,
|
|
50305
50312
|
icon: resolveContextIcon(item)
|
|
50306
50313
|
})]);
|
|
@@ -50322,9 +50329,9 @@ function EmbeddableChatInner({
|
|
|
50322
50329
|
setContextItems((prev) => prev.filter((p) => `${p.type}:${p.id}` !== key));
|
|
50323
50330
|
if (mentionKeysRef.current.has(key)) {
|
|
50324
50331
|
mentionKeysRef.current.delete(key);
|
|
50325
|
-
const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access',
|
|
50332
|
+
const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _1268 => _1268.current, 'optionalAccess', _1269 => _1269.getValue, 'call', _1270 => _1270()]), () => ( ""));
|
|
50326
50333
|
const next = cur.replace(`@${mentionTokenOf(key, mentionMarkerByType)}`, "").replace(/\s{2,}/g, " ").trimStart();
|
|
50327
|
-
_optionalChain([chatInputRef, 'access',
|
|
50334
|
+
_optionalChain([chatInputRef, 'access', _1271 => _1271.current, 'optionalAccess', _1272 => _1272.setValue, 'call', _1273 => _1273(next)]);
|
|
50328
50335
|
}
|
|
50329
50336
|
}, [mentionMarkerByType]);
|
|
50330
50337
|
const handleContextValueChange = _react.useCallback.call(void 0, (value) => {
|
|
@@ -50341,7 +50348,7 @@ function EmbeddableChatInner({
|
|
|
50341
50348
|
}, []);
|
|
50342
50349
|
const closeContextPicker = _react.useCallback.call(void 0, () => {
|
|
50343
50350
|
if (mentionActiveRef.current) {
|
|
50344
|
-
_optionalChain([chatInputRef, 'access',
|
|
50351
|
+
_optionalChain([chatInputRef, 'access', _1274 => _1274.current, 'optionalAccess', _1275 => _1275.removeMentionTrigger, 'call', _1276 => _1276()]);
|
|
50345
50352
|
}
|
|
50346
50353
|
setContextPickerOpen(false);
|
|
50347
50354
|
setMentionQuery(null);
|
|
@@ -50375,8 +50382,8 @@ function EmbeddableChatInner({
|
|
|
50375
50382
|
[]
|
|
50376
50383
|
);
|
|
50377
50384
|
const timestampCacheRef = _react.useRef.call(void 0, /* @__PURE__ */ new Map());
|
|
50378
|
-
const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess',
|
|
50379
|
-
const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess',
|
|
50385
|
+
const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess', _1277 => _1277.firstName]), _optionalChain([identityUser, 'optionalAccess', _1278 => _1278.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([identityUser, 'optionalAccess', _1279 => _1279.name, 'optionalAccess', _1280 => _1280.trim, 'call', _1281 => _1281()]) || void 0 : void 0;
|
|
50386
|
+
const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess', _1282 => _1282.avatarUrl, 'optionalAccess', _1283 => _1283.trim, 'call', _1284 => _1284()]) || void 0 : void 0;
|
|
50380
50387
|
const messages = _react.useMemo.call(void 0, () => {
|
|
50381
50388
|
const cache = timestampCacheRef.current;
|
|
50382
50389
|
const seenIds = /* @__PURE__ */ new Set();
|
|
@@ -50545,9 +50552,9 @@ function EmbeddableChatInner({
|
|
|
50545
50552
|
const lastAssistantMsg = [...rawMessages].reverse().find((m) => m.role === "assistant");
|
|
50546
50553
|
const lastSources = _react.useMemo.call(void 0, () => {
|
|
50547
50554
|
if (chatLoading) return void 0;
|
|
50548
|
-
const sources = _optionalChain([lastAssistantMsg, 'optionalAccess',
|
|
50555
|
+
const sources = _optionalChain([lastAssistantMsg, 'optionalAccess', _1285 => _1285.sources]);
|
|
50549
50556
|
if (!sources || sources.length === 0) return void 0;
|
|
50550
|
-
const content = _optionalChain([lastAssistantMsg, 'optionalAccess',
|
|
50557
|
+
const content = _optionalChain([lastAssistantMsg, 'optionalAccess', _1286 => _1286.content]) || "";
|
|
50551
50558
|
const citationOrder = [...content.matchAll(/\[(\d+)\]/g)].map(
|
|
50552
50559
|
(m) => parseInt(m[1], 10)
|
|
50553
50560
|
);
|
|
@@ -50594,7 +50601,7 @@ function EmbeddableChatInner({
|
|
|
50594
50601
|
ChatPanelHeader,
|
|
50595
50602
|
{
|
|
50596
50603
|
showBack: hasConversation || guideCanReturnToMingo,
|
|
50597
|
-
title: hasConversation ? _optionalChain([activeDialog, 'optionalAccess',
|
|
50604
|
+
title: hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _1287 => _1287.title]) || "New Chat" : isGuideEmpty ? _nullishCoalesce(headerAssistantName, () => ( "Mingo Guide")) : "Current Chats",
|
|
50598
50605
|
backAriaLabel: hasConversation ? isViewingArchived ? "Back to archive" : "Back" : "Back to Mingo",
|
|
50599
50606
|
isArchivedView: isViewingArchived,
|
|
50600
50607
|
onBack: hasConversation ? handleBack : () => handleActiveModeChange("mingo"),
|
|
@@ -50715,9 +50722,9 @@ function EmbeddableChatInner({
|
|
|
50715
50722
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
50716
50723
|
subtitleLoading: emptyStateLoading,
|
|
50717
50724
|
...guideWelcome,
|
|
50718
|
-
title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess',
|
|
50719
|
-
icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess',
|
|
50720
|
-
quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess',
|
|
50725
|
+
title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _1288 => _1288.title]))),
|
|
50726
|
+
icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _1289 => _1289.icon]))),
|
|
50727
|
+
quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _1290 => _1290.quickActions]), () => ( guideSuggestedActions)),
|
|
50721
50728
|
onQuickAction: (action) => {
|
|
50722
50729
|
setQuickActionPreview(null);
|
|
50723
50730
|
handleSend(_nullishCoalesce(action.prompt, () => ( action.label)));
|
|
@@ -51828,4 +51835,4 @@ function EmbeddableChatInner({
|
|
|
51828
51835
|
|
|
51829
51836
|
|
|
51830
51837
|
exports.Label = Label; exports.AllowedDomainsInput = AllowedDomainsInput; exports.HiddenTagsPopup = HiddenTagsPopup; exports.tagVariants = tagVariants; exports.Tag = Tag; exports.Autocomplete = Autocomplete; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.CardHorizontal = CardHorizontal; exports.CheckboxBlock = CheckboxBlock; exports.CheckboxWithDescription = CheckboxWithDescription; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.DatePicker = DatePicker; exports.DatePickerInput = DatePickerInput; exports.DatePickerInputSimple = DatePickerInputSimple; exports.DateFilterMenu = DateFilterMenu; exports.DurationInput = DurationInput; exports.HoneypotField = HoneypotField; exports.ProgressBar = ProgressBar; exports.InfoCard = InfoCard; exports.InfoRow = InfoRow; exports.formatDate = formatDate; exports.formatNumber = formatNumber; exports.formatPrice = formatPrice; exports.formatBytes = formatBytes; exports.formatBytesShort = formatBytesShort; exports.formatFileSize = formatFileSize; exports.formatLargeNumber = formatLargeNumber; exports.formatAbbreviatedNumber = formatAbbreviatedNumber; exports.getFirstLastInitials = getFirstLastInitials; exports.nameInitials = nameInitials; exports.formatDurationMMSS = formatDurationMMSS; exports.formatDurationCompact = formatDurationCompact; exports.formatTimeWithTimezone = formatTimeWithTimezone; exports.formatDurationFromRange = formatDurationFromRange; exports.formatDateUTC = formatDateUTC; exports.formatEntryMonthUTC = formatEntryMonthUTC; exports.formatLegalDate = formatLegalDate; exports.formatCurrency = formatCurrency; exports.formatPercent = formatPercent; exports.formatWholeDollars = formatWholeDollars; exports.formatCompactMetric = formatCompactMetric; exports.getTrendColors = getTrendColors; exports.formatDateRange = formatDateRange; exports.formatDateTimeAt = formatDateTimeAt; exports.formatDurationFromMs = formatDurationFromMs; exports.formatDuration = formatDuration; exports.formatUnderscoreText = formatUnderscoreText; exports.stripHtml = stripHtml; exports.formatClassification = formatClassification; exports.formatPricingModel = formatPricingModel; exports.formatBioText = formatBioText; exports.SquareAvatar = SquareAvatar; exports.AssigneeDropdown = AssigneeDropdown; exports.ActionsMenu = ActionsMenu; exports.ActionsMenuDropdown = ActionsMenuDropdown; exports.ColorSwatch = ColorSwatch; exports.getPlatformAccentColor = getPlatformAccentColor; exports.getCurrentPlatform = getCurrentPlatform; exports.getReadableTextColor = getReadableTextColor; exports.HEX_PATTERN = HEX_PATTERN; exports.hexToRgb = hexToRgb; exports.rgbToHex = rgbToHex; exports.deriveHoverColor = deriveHoverColor; exports.deriveActiveColor = deriveActiveColor; exports.resolveTicketStatus = resolveTicketStatus; exports.getTicketStatusConfig = getTicketStatusConfig; exports.getTicketStatusTag = getTicketStatusTag; exports.kindToCanonicalStatus = kindToCanonicalStatus; exports.usesCanonicalStatusStyle = usesCanonicalStatusStyle; exports.resolveStatusTagProps = resolveStatusTagProps; exports.TicketStatusTag = TicketStatusTag; exports.InfoSection = InfoSection; exports.InputTrigger = InputTrigger; exports.InteractiveCard = InteractiveCard; exports.MediaTypeSelector = MediaTypeSelector; exports.noDataIconClasses = noDataIconClasses; exports.noDataActionsVariants = noDataActionsVariants; exports.NoDataMessage = NoDataMessage; exports.NoDataAction = NoDataAction; exports.NoDataActions = NoDataActions; exports.NoData = NoData; exports.PageLoader = PageLoader; exports.CompactPageLoader = CompactPageLoader; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.RadioGroupBlock = RadioGroupBlock; exports.Switch = Switch; exports.TagSelectDropdown = TagSelectDropdown; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.TagsInput = TagsInput; exports.TagsManager = TagsManager; exports.Textarea = Textarea; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.AspectRatio = AspectRatio; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.ImageGalleryModal = ImageGalleryModal; exports.Modal = Modal2; exports.ModalContent = ModalContent2; exports.ModalHeader = ModalHeader2; exports.ModalTitle = ModalTitle2; exports.ModalFooter = ModalFooter2; exports.Modal2 = Modal; exports.ModalContent2 = ModalContent; exports.ModalHeader2 = ModalHeader; exports.ModalTitle2 = ModalTitle; exports.ModalFooter2 = ModalFooter; exports.Separator = Separator2; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetPortal = SheetPortal; exports.SheetOverlay = SheetOverlay; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.OVERLAY_BACKDROP_CLASS = OVERLAY_BACKDROP_CLASS; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerClose = DrawerClose; exports.DrawerPortal = DrawerPortal; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DrawerBody = DrawerBody; exports.DrawerFooter = DrawerFooter; exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.MenubarMenu = MenubarMenu; exports.MenubarGroup = MenubarGroup; exports.MenubarPortal = MenubarPortal; exports.MenubarSub = MenubarSub; exports.MenubarRadioGroup = MenubarRadioGroup; exports.Menubar = Menubar; exports.MenubarTrigger = MenubarTrigger; exports.MenubarSubTrigger = MenubarSubTrigger; exports.MenubarSubContent = MenubarSubContent; exports.MenubarContent = MenubarContent; exports.MenubarItem = MenubarItem; exports.MenubarCheckboxItem = MenubarCheckboxItem; exports.MenubarRadioItem = MenubarRadioItem; exports.MenubarLabel = MenubarLabel; exports.MenubarSeparator = MenubarSeparator; exports.MenubarShortcut = MenubarShortcut; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuViewport = NavigationMenuViewport; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.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.fetchPriorityProp = fetchPriorityProp; exports.extractYouTubeId = extractYouTubeId; exports.Video = Video2; exports.MediaCarousel = MediaCarousel; exports.EMBED_SIZES = EMBED_SIZES; exports.EmbedContainer = EmbedContainer; exports.YouTubeContainer = YouTubeContainer; exports.TwitterContainer = TwitterContainer; exports.RedditContainer = RedditContainer; exports.LinkPreviewContainer = LinkPreviewContainer; exports.LinkedInContainer = LinkedInContainer; exports.RichMarkdownRuntimeProvider = RichMarkdownRuntimeProvider; exports.useRichMarkdownRuntime = useRichMarkdownRuntime; exports.RedditEmbedClient = RedditEmbedClient; exports.TwitterEmbedClient = TwitterEmbedClient; exports.LinkedInEmbedClient = LinkedInEmbedClient; exports.OGLinkErrorBoundary = OGLinkErrorBoundary; exports.OGLinkPreview = OGLinkPreview; exports.toGoogleSheetsEmbedUrl = toGoogleSheetsEmbedUrl; exports.toGoogleSheetsOriginalUrl = toGoogleSheetsOriginalUrl; exports.toFigmaEmbedUrl = toFigmaEmbedUrl; exports.isFigmaSlidesUrl = isFigmaSlidesUrl; exports.toFigmaOriginalUrl = toFigmaOriginalUrl; exports.EmbedIframe = EmbedIframe; exports.FigmaEmbed = FigmaEmbed; exports.MarkdownImage = MarkdownImage; exports.RichMarkdownRenderer = RichMarkdownRenderer; exports.ReleaseChangelogSection = ReleaseChangelogSection; exports.StackedRowsPanel = StackedRowsPanel; exports.SlackChannelChip = SlackChannelChip; exports.statusBadgeVariants = statusBadgeVariants; exports.StatusBadge = StatusBadge; exports.StatusIndicator = StatusIndicator; exports.HoverDropdown = HoverDropdown; exports.ApprovalRequestMessage = ApprovalRequestMessage; 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.ContextCompactionDisplay = ContextCompactionDisplay; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.ThinkingDisplay = ThinkingDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.MspOrganizationCard = MspOrganizationCard; exports.MspOrganizationCardSkeleton = MspOrganizationCardSkeleton; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.ChatTypingIndicator = ChatTypingIndicator; exports.MingoOnboardingCard = MingoOnboardingCard; exports.ICON_REGISTRY = ICON_REGISTRY; exports.normalizeIconKey = normalizeIconKey; exports.getIconComponent = getIconComponent; exports.getDynamicIcon = getDynamicIcon; exports.ICON_ALIASES = ICON_ALIASES; exports.resolveIcon = resolveIcon; exports.ICON_OPTIONS = ICON_OPTIONS; exports.SlashCommandSuggestions = SlashCommandSuggestions; exports.ChatInput = ChatInput; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.BlockCard = BlockCard; exports.CONTEXT_ROW_CLASS = CONTEXT_ROW_CLASS; exports.CONTEXT_ICON_CLASS = CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = CONTEXT_LABEL_CLASS; exports.CONTEXT_BACK_CLASS = CONTEXT_BACK_CLASS; exports.CONTEXT_STATE_CLASS = CONTEXT_STATE_CLASS; exports.ContextMenuRow = ContextMenuRow; exports.ContextItemsSkeleton = ContextItemsSkeleton; exports.ContextItemsList = ContextItemsList; exports.ContextErrorBoundary = ContextErrorBoundary; exports.CHAT_CONTEXT_ITEMS_DEFAULT_MAX = CHAT_CONTEXT_ITEMS_DEFAULT_MAX; exports.ChatComposerPlusMenu = ChatComposerPlusMenu; exports.ChatContextPicker = ChatContextPicker; exports.ChatContextChipStrip = ChatContextChipStrip; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.ChatMessageSkeleton = ChatMessageSkeleton; exports.ChatMessageListSkeleton = ChatMessageListSkeleton; exports.MESSAGE_TYPE = MESSAGE_TYPE; exports.SCROLL_ANCHOR = SCROLL_ANCHOR; exports.ChatMessageList = ChatMessageList; exports.getProxiedImageUrl = getProxiedImageUrl; exports.urlPathLooksLikeSvg = urlPathLooksLikeSvg; exports.shouldProxyImage = shouldProxyImage; exports.generateImageSizes = generateImageSizes; exports.useProxiedImageUrl = useProxiedImageUrl; exports.ChatMessageRow = ChatMessageRow; exports.ChatMessageRowSkeleton = ChatMessageRowSkeleton; exports.ChatQuickAction = ChatQuickAction; exports.FAE_AVATAR_DATA_URI = FAE_AVATAR_DATA_URI; exports.AgentMark = AgentMark; exports.EntityIcon = EntityIcon; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipSkeleton = QuickActionChipSkeleton; exports.QuickActionChipButton = QuickActionChipButton; exports.ChatQuickActionRow = ChatQuickActionRow; exports.ChatQuickActionRowSkeleton = ChatQuickActionRowSkeleton; exports.QuickActionMarquee = QuickActionMarquee; exports.ChatTicketItem = ChatTicketItem; exports.ChatTicketList = ChatTicketList; exports.MingoOnboardingCardSkeleton = MingoOnboardingCardSkeleton; exports.MingoOnboardingListSkeleton = MingoOnboardingListSkeleton; exports.MingoChatHistorySkeleton = MingoChatHistorySkeleton; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.GuideWelcome = GuideWelcome; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.GuideModeBanner = GuideModeBanner; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatHeaderIconButton = ChatHeaderIconButton; exports.COMPACT_HEADER_BUTTON = COMPACT_HEADER_BUTTON; exports.ChatPanelHeader = ChatPanelHeader; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX = CHAT_ATTACHMENT_VIEW_URL_PREFIX; exports.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM = CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM; exports.ANTHROPIC_SUPPORTED_IMAGE_MIME = ANTHROPIC_SUPPORTED_IMAGE_MIME; exports.buildChatAttachmentViewUrl = buildChatAttachmentViewUrl; exports.escapeMarkdownInline = escapeMarkdownInline; exports.formatChatAttachmentMarkdownForBubble = formatChatAttachmentMarkdownForBubble; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED; exports.CHAT_ATTACHMENT_MARKDOWN_PATTERN = CHAT_ATTACHMENT_MARKDOWN_PATTERN; exports.stripChatAttachmentMarkdown = stripChatAttachmentMarkdown; exports.CHAT_ATTACHMENT_MIME_TYPES = CHAT_ATTACHMENT_MIME_TYPES; exports.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER = CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER; exports.ChatAttachmentAddButton = ChatAttachmentAddButton; exports.ChatAttachmentChipStrip = ChatAttachmentChipStrip; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.ModelDisplay = ModelDisplay; exports.ModelDisplaySkeleton = ModelDisplaySkeleton; exports.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.DialogListItem = DialogListItem; exports.ChatSidebar = ChatSidebar; exports.isCrossOriginUrl = isCrossOriginUrl; exports.decideNewTab = decideNewTab; exports.computeIsNewTab = computeIsNewTab; exports.newTabAnchorAttrs = newTabAnchorAttrs; exports.buildAnchorProps = buildAnchorProps; exports.NEW_TAB_FEATURES = NEW_TAB_FEATURES; exports.isModifierClick = isModifierClick; exports.stripSameOriginToPath = stripSameOriginToPath; exports.resolveExternalNavigation = resolveExternalNavigation; exports.executeNavigation = executeNavigation; exports.executeNavigationImperative = executeNavigationImperative; exports.handleChatNavClick = handleChatNavClick; exports.NavLinkAnchorViaRuntime = NavLinkAnchorViaRuntime; exports.SourceActionButton = SourceActionButton; exports.EMPTY_AUTHOR_PLACEHOLDER = EMPTY_AUTHOR_PLACEHOLDER; exports.EntityMetadataValueCell = EntityMetadataValueCell; exports.EntityMetadataAuthorCell = EntityMetadataAuthorCell; exports.EntityAuthorCard = EntityAuthorCard; exports.BlogImagePlaceholder = BlogImagePlaceholder; exports.FlamingoLogo = FlamingoLogo2; exports.PlatformBadge = PlatformBadge; exports.AdminContentCard = AdminContentCard; exports.getProxiedImageUrl2 = getProxiedImageUrl2; exports.WhatIShippedCard = WhatIShippedCard; exports.WhatIShippedCardSkeleton = WhatIShippedCardSkeleton; exports.PAGE_HEADING_CLASS = PAGE_HEADING_CLASS; exports.SECTION_HEADING_CLASS = SECTION_HEADING_CLASS; exports.PageHeading = PageHeading; exports.RATIO_GRID_CLASS = RATIO_GRID_CLASS; exports.RATIO_DISPLAY_GRID_CLASS = RATIO_DISPLAY_GRID_CLASS; exports.RatioTabs = RatioTabs; exports.detectAspectRatio = detectAspectRatio; exports.ratioToCategory = ratioToCategory; exports.groupByAspectRatio = groupByAspectRatio; exports.VideoBitesDisplay = VideoBitesDisplay; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.ProductReleaseCard = ProductReleaseCard; exports.ProductReleaseCardSkeleton = ProductReleaseCardSkeleton; exports.formatReleaseDate = formatReleaseDate; exports.formatDateShort = formatDateShort; exports.formatDateSlashUTC = formatDateSlashUTC; exports.resolveReleaseCover = resolveReleaseCover; exports.releaseTypeToBadgeColor = releaseTypeToBadgeColor; exports.defaultBuildProductReleaseCardProps = defaultBuildProductReleaseCardProps; exports.buildProductReleaseCardProps = buildProductReleaseCardProps; exports.useEntityCardLink = useEntityCardLink; exports.COMPACT_CARD_OUTER = COMPACT_CARD_OUTER; exports.COMPACT_CARD_OUTER_STATIC = COMPACT_CARD_OUTER_STATIC; exports.COMPACT_CARD_SKELETON_OUTER = COMPACT_CARD_SKELETON_OUTER; exports.COMPACT_CARD_IMAGE_SLOT = COMPACT_CARD_IMAGE_SLOT; exports.COMPACT_CARD_SKELETON_IMAGE_SLOT = COMPACT_CARD_SKELETON_IMAGE_SLOT; exports.COMPACT_CARD_ICON_SLOT = COMPACT_CARD_ICON_SLOT; exports.COMPACT_CARD_TEXT_COL = COMPACT_CARD_TEXT_COL; exports.COMPACT_CARD_TITLE_ROW = COMPACT_CARD_TITLE_ROW; exports.COMPACT_CARD_META_ROW_BOX = COMPACT_CARD_META_ROW_BOX; exports.COMPACT_CARD_TITLE = COMPACT_CARD_TITLE; exports.COMPACT_CARD_SUBTITLE = COMPACT_CARD_SUBTITLE; exports.COMPACT_CARD_SUMMARY = COMPACT_CARD_SUMMARY; exports.COMPACT_CARD_META_ROW = COMPACT_CARD_META_ROW; exports.COMPACT_CARD_ROW_FILLER = COMPACT_CARD_ROW_FILLER; exports.safeHref = safeHref; exports.BlogCardSkeleton = BlogCardSkeleton; exports.BlogCard = BlogCard; exports.CaseStudyCardSkeleton = CaseStudyCardSkeleton; exports.CaseStudyCard = CaseStudyCard; exports.CustomerInterviewCardSkeleton = CustomerInterviewCardSkeleton; exports.CustomerInterviewCard = CustomerInterviewCard; exports.formatInvestorUpdatePeriod = formatInvestorUpdatePeriod; exports.InvestorUpdateCardSkeleton = InvestorUpdateCardSkeleton; exports.InvestorUpdateCard = InvestorUpdateCard; exports.OnboardingGuideCardSkeleton = OnboardingGuideCardSkeleton; exports.OnboardingGuideCard = OnboardingGuideCard; exports.RoadmapVoteButton = RoadmapVoteButton; exports.getStatusColorScheme = getStatusColorScheme; exports.CUSTOM_ITEM_ID = CUSTOM_ITEM_ID; exports.getTaskTypeLabel = getTaskTypeLabel; exports.TaskTypeIcon = TaskTypeIcon; exports.RoadmapCardSkeleton = RoadmapCardSkeleton; exports.RoadmapCard = RoadmapCard; exports.GitHubActivityCard = GitHubActivityCard; exports.GitHubActivityCardSkeleton = GitHubActivityCardSkeleton; exports.SlackMessageCard = SlackMessageCard; exports.SlackMessageCardSkeleton = SlackMessageCardSkeleton; exports.HubspotTicketCard = HubspotTicketCard; exports.HubspotTicketCardSkeleton = HubspotTicketCardSkeleton; exports.DataRoomDocCard = DataRoomDocCard; exports.DataRoomDocCardSkeleton = DataRoomDocCardSkeleton; exports.ProgramCardSkeleton = ProgramCardSkeleton; exports.ProgramCard = ProgramCard; exports.CampaignCardAdmin = CampaignCardAdmin; exports.CampaignCardAdminSkeleton = CampaignCardAdminSkeleton; exports.GenericEntityCard = GenericEntityCard; exports.GenericEntityCardSkeleton = GenericEntityCardSkeleton; exports.extractItems = extractItems; exports.extractItemId = extractItemId; exports.useChatCardItem = useChatCardItem; exports.SOURCE_ICON_NAMES = SOURCE_ICON_NAMES; exports.getSourceIconName = getSourceIconName; exports.SOURCE_LABELS_BY_TABLE = SOURCE_LABELS_BY_TABLE; exports.getSourceLabel = getSourceLabel; exports.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID; exports.defaultTableIdForDocumentType = defaultTableIdForDocumentType; exports.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.ChatCardLoader = ChatCardLoader; exports.renderChatInlineEntityCard = renderChatInlineEntityCard; exports.CHAT_TYPE = CHAT_TYPE; exports.OWNER_TYPE = OWNER_TYPE; exports.MESSAGE_ROLE = MESSAGE_ROLE; exports.ASSISTANT_TYPE = ASSISTANT_TYPE; exports.AUTHOR_TYPE = AUTHOR_TYPE; exports.APPROVAL_STATUS = APPROVAL_STATUS; exports.CONNECTION_STATUS = CONNECTION_STATUS; exports.buildChatRefKey = buildChatRefKey; exports.isStructuredContent = isStructuredContent; exports.normalizeContent = normalizeContent2; exports.NETWORK_CONFIG = NETWORK_CONFIG; exports.transformEventToProgram = transformEventToProgram; exports.transformPodcastToProgram = transformPodcastToProgram; exports.transformWebinarToProgram = transformWebinarToProgram; exports.useChunkCatchup = useChunkCatchup; exports.useJetStreamDialogSubscription = useJetStreamDialogSubscription; exports.useNatsDialogSubscription = useNatsDialogSubscription; exports.buildNatsWsUrl = buildNatsWsUrl; exports.parseChunkToAction = parseChunkToAction; exports.isControlChunk = isControlChunk; exports.isErrorChunk = isErrorChunk; exports.isMetadataChunk = isMetadataChunk; exports.extractTextFromChunk = extractTextFromChunk; exports.MessageSegmentAccumulator = MessageSegmentAccumulator; exports.createMessageSegmentAccumulator = createMessageSegmentAccumulator; exports.useRealtimeChunkProcessor = useRealtimeChunkProcessor; exports.fetchSlashCommands = fetchSlashCommands; exports.useSlashCommands = useSlashCommands; exports.useSlashCommandRegistry = useSlashCommandRegistry; exports.fetchEmptyStateConfig = fetchEmptyStateConfig; exports.useEmptyStateConfig = useEmptyStateConfig; exports.useChatAttachments = useChatAttachments; exports.useChatAttachmentImageGallery = useChatAttachmentImageGallery; exports.ChatIdentityProvider = ChatIdentityProvider; exports.useChatIdentity = useChatIdentity; exports.useCloseOnNavigation = useCloseOnNavigation; exports.useSSE = useSSE; exports.useChat = useChat; exports.SCROLL_ANCHOR_WIRE_KEY = SCROLL_ANCHOR_WIRE_KEY; exports.parseScrollAnchor = parseScrollAnchor; exports.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; exports.flattenAssistantContent = flattenAssistantContent; exports.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.useSseChatAdapter = useSseChatAdapter; exports.processHistoricalMessages = processHistoricalMessages; exports.extractErrorMessages = extractErrorMessages; exports.processHistoricalMessagesWithErrors = processHistoricalMessagesWithErrors; exports.useNatsChatAdapter = useNatsChatAdapter; exports.useUnifiedChat = useUnifiedChat; exports.extractIncompleteMessageState = extractIncompleteMessageState; exports.SYNTHETIC_REALTIME_ID_PREFIXES = SYNTHETIC_REALTIME_ID_PREFIXES; exports.flattenMessagePagesChronological = flattenMessagePagesChronological; exports.maxPersistedStreamSeq = maxPersistedStreamSeq; exports.mergeHistoryWithRealtime = mergeHistoryWithRealtime; exports.computeHistoryPrepend = computeHistoryPrepend; exports.CHIP_ACTION_BUTTON_CLASS = CHIP_ACTION_BUTTON_CLASS; exports.chatChipClass = chatChipClass; exports.clickupTaskUrl = clickupTaskUrl; exports.EmbeddableChat = EmbeddableChat; exports.FilterCheckboxItem = FilterCheckboxItem; exports.TagKeyValueFilter = TagKeyValueFilter; exports.FilterModal = FilterModal; exports.PageActions = PageActions; exports.usePageActionsBottomPadding = usePageActionsBottomPadding; exports.PageContainer = PageContainer; exports.ListPageContainer = ListPageContainer; exports.DetailPageContainer = DetailPageContainer; exports.FormPageContainer = FormPageContainer; exports.ContentPageContainer = ContentPageContainer; exports.ListPageLayout = ListPageLayout; exports.EntityImage = EntityImage; exports.TITLE_BLOCK_MIN_HEIGHT = TITLE_BLOCK_MIN_HEIGHT; exports.TitleBlock = TitleBlock; exports.PageLayout = PageLayout; exports.PageShell = PageShell; exports.ArticleDetailLayout = ArticleDetailLayout; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.ToggleGroup = ToggleGroup; exports.ToggleGroupItem = ToggleGroupItem; exports.delay = delay; exports.generateRandomString = generateRandomString; exports.truncateString = truncateString; exports.serializeJsonLd = serializeJsonLd; exports.deepClone = deepClone; exports.getSlackCommunityJoinUrl = getSlackCommunityJoinUrl; exports.SEO_TITLE_MAX_LENGTH = SEO_TITLE_MAX_LENGTH; exports.BRAND_MARK_SVGS = BRAND_MARK_SVGS; exports.brandMarkDataUri = brandMarkDataUri; exports.OS_PLATFORMS = OS_PLATFORMS; exports.DEFAULT_OS_PLATFORM = DEFAULT_OS_PLATFORM; exports.isValidEmailDomain = isValidEmailDomain; exports.validateEmailDomain = validateEmailDomain; exports.validateEmailDomainList = validateEmailDomainList; exports.cleanEmailDomain = cleanEmailDomain; exports.getConfidenceColorClass = getConfidenceColorClass; exports.getConfidenceLevel = getConfidenceLevel; exports.getConfidenceBorderClass = getConfidenceBorderClass; exports.getConfidenceTextClass = getConfidenceTextClass; exports.getConfidenceBgClass = getConfidenceBgClass; exports.getConfidenceLabel = getConfidenceLabel; exports.DEV_SECTION_PARAM_KEYS = DEV_SECTION_PARAM_KEYS; exports.devSectionAnchorId = devSectionAnchorId; exports.normalizeToolType = normalizeToolType; exports.normalizeToolTypeWithFallback = normalizeToolTypeWithFallback; exports.toToolLabel = toToolLabel; exports.isValidToolType = isValidToolType; exports.getToolTypeAliases = getToolTypeAliases; exports.getToolLabel = getToolLabel; exports.ShellTypeValues = ShellTypeValues; exports.SHELL_TYPES = SHELL_TYPES; exports.shellLabels = shellLabels; exports.getShellLabel = getShellLabel; exports.getShellIcon = getShellIcon; exports.OSTypeValues = OSTypeValues; exports.OS_TYPES = OS_TYPES; exports.osLabels = osLabels; exports.normalizeOSType = normalizeOSType; exports.getOSLabel = getOSLabel; exports.getOSIcon = getOSIcon; exports.getOSTypeDefinition = getOSTypeDefinition; exports.getOSPlatformId = getOSPlatformId; exports.isOSPlatform = isOSPlatform; exports.getCountryPhoneData = getCountryPhoneData; exports.getCountryByCode = getCountryByCode; exports.validatePhoneNumber = validatePhoneNumber; exports.formatPhoneE164 = formatPhoneE164; exports.GENERIC_EMAIL_DOMAINS = GENERIC_EMAIL_DOMAINS; exports.extractDomainFromEmail = extractDomainFromEmail; exports.normalizeDomain = normalizeDomain; exports.isGenericDomain = isGenericDomain; exports.hasGenericEmailDomain = hasGenericEmailDomain; exports.isGenericWebsiteDomain = isGenericWebsiteDomain; exports.DESIGN_PALETTE = DESIGN_PALETTE; exports.getContrastRatio = getContrastRatio; exports.extractDominantColor = extractDominantColor; exports.getBestContrastColor = getBestContrastColor; exports.analyzeImageColor = analyzeImageColor; exports.extractImageEdgeColorAsync = extractImageEdgeColorAsync; exports.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.readLeadingDecisionFrame = readLeadingDecisionFrame; exports.AVAILABLE_SVG_ICONS = AVAILABLE_SVG_ICONS; exports.releaseTypeOptions = releaseTypeOptions; exports.releaseStatusOptions = releaseStatusOptions; exports.changelogLabels = changelogLabels; exports.SEMVER_REGEX = SEMVER_REGEX; exports.TASK_TYPE_LABELS = TASK_TYPE_LABELS; exports.TASK_TYPE_TEXT_COLORS = TASK_TYPE_TEXT_COLORS; exports.TMCG_ROLES = TMCG_ROLES; exports.TMCG_ROLE_DISPLAY_NAMES = TMCG_ROLE_DISPLAY_NAMES; exports.TMCG_SOCIAL_PLATFORMS = TMCG_SOCIAL_PLATFORMS; exports.ROADMAP_STATUS_OPTIONS = ROADMAP_STATUS_OPTIONS; exports.DELIVERY_TASK_TYPE_OPTIONS = DELIVERY_TASK_TYPE_OPTIONS; exports.TICKET_STATUS_OPTIONS = TICKET_STATUS_OPTIONS; exports.OPENFRAME_DEV_SECTIONS = OPENFRAME_DEV_SECTIONS; exports.canonicalContentRefType = canonicalContentRefType; exports.buildListUrl = buildListUrl; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.CONTENT_REF_GROUPS = CONTENT_REF_GROUPS; exports.getContentRefLabel = getContentRefLabel; exports.getContentRefLabelOrTitleCase = getContentRefLabelOrTitleCase; exports.orderContentRefTypes = orderContentRefTypes; exports.buildSuggestionUrl = buildSuggestionUrl; exports.DEFAULT_CONTENT_SUFFIXES = DEFAULT_CONTENT_SUFFIXES; exports.makeComposeContentUrl = makeComposeContentUrl; exports.buildDefaultHref = buildDefaultHref; exports.resolveContentHref = resolveContentHref; exports.DEFAULT_FOLDER_INDEX_FILE = DEFAULT_FOLDER_INDEX_FILE; exports.stripFolderIndexFromPath = stripFolderIndexFromPath; exports.findDocNodeByPath = findDocNodeByPath; exports.getDocAncestorNodeIds = getDocAncestorNodeIds; exports.resolveContentFetchPath = resolveContentFetchPath; exports.getInitialExpandedNodeIds = getInitialExpandedNodeIds; exports.getDocSourceDefaultPath = getDocSourceDefaultPath; exports.toDocSlug = toDocSlug; exports.pathToNodeId = pathToNodeId; exports.normalizeDocPath = normalizeDocPath; exports.formatDocName = formatDocName; exports.sortTreeChildren = sortTreeChildren; exports.buildDocumentTree = buildDocumentTree; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.extractSections = extractSections; exports.SECTION_HERO_ICON_CLASS = SECTION_HERO_ICON_CLASS; exports.BenefitCard = BenefitCard; exports.BenefitCardGrid = BenefitCardGrid; exports.BrandAssociationCard = BrandAssociationCard; exports.BrandAssociationGrid = BrandAssociationGrid; exports.BulletList = BulletList; exports.ChevronButton = ChevronButton; exports.CircularProgress = CircularProgress; exports.CheckIcon = CheckIcon2; exports.XIcon = XIcon2; exports.MinusIcon = MinusIcon; exports.CheckCircleIcon = CheckCircleIcon2; exports.XCircleIcon = XCircleIcon; exports.FloatingTooltip = FloatingTooltip; exports.DashboardInfoCard = DashboardInfoCard; exports.OSTypeBadge = OSTypeBadge; exports.OSTypeIcon = OSTypeIcon; exports.OSTypeLabel = OSTypeLabel; exports.DeviceCard = DeviceCard; exports.DeviceCardCompact = DeviceCardCompact; exports.FeatureCardGrid = FeatureCardGrid; exports.FeatureList = FeatureList; exports.TruncateText = TruncateText; exports.HighlightCard = HighlightCard; exports.HighlightCardGrid = HighlightCardGrid; exports.IconsBlock = IconsBlock; exports.DropdownButton = DropdownButton; exports.MoreActionsMenu = MoreActionsMenu; exports.OrganizationCard = OrganizationCard; exports.ServiceCard = ServiceCard; exports.Slider = Slider; exports.TabSelector = TabSelector; exports.TitleContentBlock = TitleContentBlock; exports.ErrorState = ErrorState; exports.PageError = PageError; exports.LoadError = LoadError; exports.NotFoundError = NotFoundError; exports.ContentLoader = ContentLoader; exports.CardLoader = CardLoader; exports.FormLoader = FormLoader; exports.DetailLoader = DetailLoader; exports.ListLoader = ListLoader; exports.Pagination = Pagination; exports.PaginationContent = PaginationContent; exports.PaginationItem = PaginationItem; exports.PaginationLink = PaginationLink; exports.PaginationEllipsis = PaginationEllipsis; exports.PaginationPrevious = PaginationPrevious; exports.PaginationNext = PaginationNext; exports.init_pagination = init_pagination; exports.CursorPagination = CursorPagination; exports.CursorPaginationSimple = CursorPaginationSimple; exports.TableEmptyState = TableEmptyState; exports.DynamicThemeProvider = DynamicThemeProvider; exports.useDynamicTheme = useDynamicTheme; exports.THEME_STORAGE_KEY = THEME_STORAGE_KEY; exports.THEME_ATTRIBUTE = THEME_ATTRIBUTE; exports.DEFAULT_THEME = DEFAULT_THEME; exports.ThemeProvider = ThemeProvider; exports.useTheme = useTheme; exports.useThemeToggle = useThemeToggle; exports.ArrayEntryManager = ArrayEntryManager; exports.BackToLoginLink = BackToLoginLink; exports.PROVIDER_META = PROVIDER_META; exports.SsoProviderButtons = SsoProviderButtons; exports.AcceptInvitationForm = AcceptInvitationForm; exports.AuthBenefitsPanel = AuthBenefitsPanel; exports.OpenFrameWordmark = OpenFrameWordmark; exports.PoweredByFlamingo = PoweredByFlamingo; exports.AuthShell = AuthShell; exports.TermsAgreementLabel = TermsAgreementLabel; exports.CreateOrganizationForm = CreateOrganizationForm; exports.InviteLinkInvalidModal = InviteLinkInvalidModal; exports.LoginForm = LoginForm; exports.PasswordInput = PasswordInput; 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.MUX_STREAM_ORIGIN = MUX_STREAM_ORIGIN; exports.MUX_IMAGE_ORIGIN = MUX_IMAGE_ORIGIN; exports.useVideoOriginPreconnect = useVideoOriginPreconnect; exports.useVideoWarmup = useVideoWarmup; 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.NotificationTile = NotificationTile; exports.NotificationDrawer = NotificationDrawer; exports.NotificationPopups = NotificationPopups; exports.ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE = ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE; exports.isApprovalNotification = isApprovalNotification; exports.getApprovalMeta = getApprovalMeta; exports.resolutionToStatus = resolutionToStatus; exports.approvalMetaToBatchData = approvalMetaToBatchData; exports.ApprovalRequestNotificationTile = ApprovalRequestNotificationTile; exports.TimeTrackerProvider = TimeTrackerProvider; exports.useTimeTracker = useTimeTracker; exports.useOptionalTimeTracker = useOptionalTimeTracker; exports.useTrackerClock = useTrackerClock; exports.TimeTrackerPanel = TimeTrackerPanel; exports.HeaderButton = HeaderButton; exports.TimeTrackerHeaderButton = TimeTrackerHeaderButton; exports.BoardColumnHeader = BoardColumnHeader; exports.tintOnDark = tintOnDark; exports.BoardTicketApproval = BoardTicketApproval; exports.TicketCard = TicketCard; exports.TicketCardSkeleton = TicketCardSkeleton; exports.BoardColumn = BoardColumn; exports.useBoardCollapse = useBoardCollapse; exports.Board = Board; exports.columnFromTicketStatus = columnFromTicketStatus; exports.groupTicketsByStatus = groupTicketsByStatus; exports.TicketStatusConfigList = TicketStatusConfigList; exports.TableHeader = TableHeader; exports.TableCell = TableCell; exports.TableCardSkeleton = TableCardSkeleton; exports.TableRow = TableRow; exports.Table = Table; exports.TableDescriptionCell = TableDescriptionCell; exports.TableTimestampCell = TableTimestampCell; exports.QueryReportTableHeader = QueryReportTableHeader; exports.QueryReportTableRow = QueryReportTableRow; exports.QueryReportTableSkeleton = QueryReportTableSkeleton; exports.deriveColumns = deriveColumns; exports.exportToCSV = exportToCSV; exports.QueryReportTable = QueryReportTable; exports.useDataTableContext = useDataTableContext; exports.DataTableRoot = DataTableRoot; exports.getHideClasses = getHideClasses2; exports.alignJustify = alignJustify; exports.multiSelectFilterFn = multiSelectFilterFn; exports.DataTableHeader = DataTableHeader; exports.DataTableEmpty = DataTableEmpty; exports.ROW_HEIGHT_DESKTOP = ROW_HEIGHT_DESKTOP2; exports.ROW_HEIGHT_MOBILE = ROW_HEIGHT_MOBILE2; exports.DataTableSkeleton = DataTableSkeleton; exports.DataTableRow = DataTableRow; exports.DataTableBody = DataTableBody; exports.DataTableInfiniteFooter = DataTableInfiniteFooter; exports.DataTableCursorFooter = DataTableCursorFooter; exports.DataTableRowCount = DataTableRowCount; exports.useDataTable = useDataTable; exports.DataTable = DataTable; exports.flexRender = _reacttable.flexRender; exports.createColumnHelper = _reacttable.createColumnHelper; exports.getCoreRowModel = _reacttable.getCoreRowModel; exports.getExpandedRowModel = _reacttable.getExpandedRowModel; exports.getFacetedRowModel = _reacttable.getFacetedRowModel; exports.getFacetedUniqueValues = _reacttable.getFacetedUniqueValues; exports.getFilteredRowModel = _reacttable.getFilteredRowModel; exports.getGroupedRowModel = _reacttable.getGroupedRowModel; exports.getPaginationRowModel = _reacttable.getPaginationRowModel; exports.getSortedRowModel = _reacttable.getSortedRowModel; exports.SearchInput = SearchInput; exports.FilterListItem = FilterListItem; exports.FilterList = FilterList; exports.TagSearchInput = TagSearchInput; exports.MarkdownEditor = MarkdownEditor; exports.FileUpload = FileUpload; exports.ImageUploader = ImageUploader; exports.TICKET_STATUS_COLOR_PRESETS = TICKET_STATUS_COLOR_PRESETS; exports.CUSTOM_PRESET_KEY = CUSTOM_PRESET_KEY; exports.DEFAULT_CUSTOM_STATUS_COLOR = DEFAULT_CUSTOM_STATUS_COLOR; exports.ColorPresetSelect = ColorPresetSelect; exports.ColorPickerInput = ColorPickerInput; exports.TicketStatusConfigRow = TicketStatusConfigRow; exports.TicketDetailSection = TicketDetailSection; exports.TicketAttachmentsList = TicketAttachmentsList; exports.TicketNoteCard = TicketNoteCard; exports.TicketNotesSection = TicketNotesSection; exports.TicketInfoSection = TicketInfoSection; exports.FilterPillRow = FilterPillRow; exports.Header = Header2; exports.HeaderSkeleton = HeaderSkeleton; exports.ClientOnlyHeader = ClientOnlyHeader; exports.MobileNavPanel = MobileNavPanel; exports.SlidingSidebar = SlidingSidebar; exports.StickySectionNav = StickySectionNav; exports.useSectionNavigation = useSectionNavigation; exports.NavigationSidebar = NavigationSidebar; exports.HeaderGlobalSearch = HeaderGlobalSearch; exports.HeaderMingoButton = HeaderMingoButton; exports.HeaderOrganizationFilter = HeaderOrganizationFilter; exports.AppHeader = AppHeader; exports.MobileBurgerMenu = MobileBurgerMenu; exports.useAppLayoutDrawerContainer = useAppLayoutDrawerContainer; exports.AppLayout = AppLayout; 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.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;
|
|
51831
|
-
//# sourceMappingURL=chunk-
|
|
51838
|
+
//# sourceMappingURL=chunk-DKN425XR.cjs.map
|