@flamingo-stack/openframe-frontend-core 0.0.793 → 0.0.794
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/{case-study-card-MCAM232N.cjs → case-study-card-KU4ZIONR.cjs} +2 -2
- package/dist/{chunk-HMV32LV4.cjs → chunk-2KLYMAHF.cjs} +4 -4
- package/dist/{chunk-ZZPGSLMO.cjs → chunk-3XAFK4WH.cjs} +8 -8
- package/dist/{chunk-P2JY2XCV.cjs → chunk-43ZVXQJK.cjs} +52 -52
- package/dist/{chunk-CB24ILOB.cjs → chunk-6TUI5KQS.cjs} +39 -39
- package/dist/{chunk-ZW2TS775.cjs → chunk-6VP5UWZG.cjs} +2 -2
- package/dist/{chunk-XGE2WCOH.cjs → chunk-A6E5ZNQR.cjs} +3 -3
- package/dist/{chunk-BI6FE3HO.cjs → chunk-BFCGOHQG.cjs} +32 -32
- package/dist/{chunk-DWYMZ3LO.cjs → chunk-CLEZ6TWZ.cjs} +68 -68
- package/dist/{chunk-7EH7KKFW.cjs → chunk-F73DM65J.cjs} +71 -71
- package/dist/{chunk-IHLGPIFO.cjs → chunk-FOWQ4XTB.cjs} +2 -2
- package/dist/{chunk-VUQNTCAL.cjs → chunk-FYHXMHY6.cjs} +13 -13
- package/dist/{chunk-OZIPPOSJ.cjs → chunk-FYPVCCCV.cjs} +101 -101
- package/dist/{chunk-5MIGBLDC.cjs → chunk-HXL7AUPG.cjs} +17 -17
- package/dist/{chunk-UNUJ5YQ5.cjs → chunk-IJ23KNYI.cjs} +4 -4
- package/dist/{chunk-FEARCFP4.cjs → chunk-IQTVKPRG.cjs} +22 -22
- package/dist/{chunk-LVBSVUHD.cjs → chunk-KQPU5N7T.cjs} +13 -13
- package/dist/{chunk-TBGVWIF7.cjs → chunk-NGGEYE5R.cjs} +2 -2
- package/dist/{chunk-BTI4RRU2.cjs → chunk-NIW4ETGC.cjs} +4 -4
- package/dist/{chunk-SXEIK7RU.cjs → chunk-OK467OQJ.cjs} +2 -2
- package/dist/{chunk-FBA6S4ES.cjs → chunk-QDW64E6T.cjs} +99 -99
- package/dist/{chunk-CKSAUEEL.cjs → chunk-U4D4ABXK.cjs} +38 -38
- package/dist/{chunk-YDH5OVRQ.cjs → chunk-UAZTXYPC.cjs} +81 -79
- package/dist/{chunk-C5EPWKM7.cjs → chunk-UN6LC5PK.cjs} +1 -1
- package/dist/{chunk-ZCNEO273.cjs → chunk-YPKAMHYA.cjs} +157 -157
- package/dist/{chunk-LMZICTQW.cjs → chunk-YYKXX5NA.cjs} +11 -11
- package/dist/{chunk-CASWVIJC.cjs → chunk-ZIMPE7D5.cjs} +3 -3
- package/dist/{cloud-tenants-BISHVU2T.cjs → cloud-tenants-Z3AYAXF5.cjs} +7 -7
- package/dist/components/case-studies/index.cjs +22 -22
- package/dist/components/chat/index.cjs +6 -6
- package/dist/components/contact/index.cjs +8 -8
- package/dist/components/docs/index.cjs +11 -11
- package/dist/components/embeds/index.cjs +8 -8
- package/dist/components/faq/index.cjs +9 -9
- package/dist/components/features/index.cjs +7 -7
- package/dist/components/help-center-pages/index.cjs +84 -84
- package/dist/components/index.cjs +56 -56
- package/dist/components/meeting-scheduler/index.cjs +40 -40
- package/dist/components/navigation/index.cjs +10 -10
- package/dist/components/onboarding-guides/index.cjs +10 -10
- package/dist/components/product-demo/index.cjs +16 -16
- package/dist/components/related-content/index.cjs +6 -6
- package/dist/components/shared/roadmap/roadmap-grid.d.ts.map +1 -1
- package/dist/components/shared/roadmap/roadmap-grid.js +3 -1
- package/dist/components/tickets/index.cjs +14 -14
- package/dist/components/ui/index.cjs +7 -7
- package/dist/components/ui/status-badge.d.ts.map +1 -1
- package/dist/components/ui/status-badge.js +1 -1
- package/dist/{devices-GMR73ZF3.cjs → devices-P6XQL23S.cjs} +8 -8
- package/dist/{embeddable-chat-54X3TTG4.cjs → embeddable-chat-6BNLOSBB.cjs} +67 -67
- package/dist/index.cjs +11 -11
- package/dist/{knowledge-XC2K5VQO.cjs → knowledge-IU5ORU7U.cjs} +8 -8
- package/dist/{logs-LBGQLETC.cjs → logs-DCFTQVKA.cjs} +15 -15
- package/dist/{policies-3XVE6266.cjs → policies-ESC6XCVH.cjs} +11 -11
- package/dist/{scripts-NE5IL4NC.cjs → scripts-24PIP2VO.cjs} +12 -12
- package/dist/{software-update-EJDKTFAP.cjs → software-update-47GDTKMI.cjs} +10 -10
- package/package.json +1 -1
- package/src/components/shared/roadmap/roadmap-grid.tsx +5 -1
- package/src/components/ui/status-badge.tsx +4 -2
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkQDW64E6Tcjs = require('./chunk-QDW64E6T.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -107,13 +107,13 @@ var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
|
107
107
|
var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
var
|
|
110
|
+
var _chunk3XAFK4WHcjs = require('./chunk-3XAFK4WH.cjs');
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
|
|
114
114
|
|
|
115
115
|
|
|
116
|
-
var
|
|
116
|
+
var _chunkFYPVCCCVcjs = require('./chunk-FYPVCCCV.cjs');
|
|
117
117
|
|
|
118
118
|
|
|
119
119
|
|
|
@@ -132,7 +132,7 @@ var _chunkOZIPPOSJcjs = require('./chunk-OZIPPOSJ.cjs');
|
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
|
|
135
|
-
var
|
|
135
|
+
var _chunkUN6LC5PKcjs = require('./chunk-UN6LC5PK.cjs');
|
|
136
136
|
|
|
137
137
|
|
|
138
138
|
|
|
@@ -204,7 +204,7 @@ function ChatMessageRow(props) {
|
|
|
204
204
|
}
|
|
205
205
|
function ChatMessageRowLoaded(props) {
|
|
206
206
|
const { displayName, avatarUrl, timeLabel, body, footer } = props;
|
|
207
|
-
const proxiedAvatar =
|
|
207
|
+
const proxiedAvatar = _chunkFYPVCCCVcjs.useProxiedImageUrl.call(void 0, _nullishCoalesce(avatarUrl, () => ( "")));
|
|
208
208
|
const resolvedAvatar = proxiedAvatar || avatarUrl || void 0;
|
|
209
209
|
const [failedSrc, setFailedSrc] = _react.useState.call(void 0, null);
|
|
210
210
|
const src = resolvedAvatar && resolvedAvatar !== failedSrc ? resolvedAvatar : void 0;
|
|
@@ -2027,7 +2027,7 @@ function lastPathSegment(url) {
|
|
|
2027
2027
|
function makeComposeContentUrl(opts) {
|
|
2028
2028
|
const suffixes = _nullishCoalesce(opts.suffixes, () => ( DEFAULT_CONTENT_SUFFIXES));
|
|
2029
2029
|
return ({ type: rawType, identifier, slug: slugHint, externalUrl, targetPlatform, platforms }) => {
|
|
2030
|
-
const type =
|
|
2030
|
+
const type = _chunkFYPVCCCVcjs.canonicalContentRefType.call(void 0, rawType);
|
|
2031
2031
|
const override = opts.overrides && Object.prototype.hasOwnProperty.call(opts.overrides, type) ? opts.overrides[type] : void 0;
|
|
2032
2032
|
if (override) return { ...override(identifier), hostOverride: true };
|
|
2033
2033
|
const seg = _nullishCoalesce((Object.prototype.hasOwnProperty.call(suffixes, type) ? suffixes[type] : void 0), () => ( type));
|
|
@@ -2038,8 +2038,8 @@ function makeComposeContentUrl(opts) {
|
|
|
2038
2038
|
}
|
|
2039
2039
|
if (externalUrl) return { href: externalUrl, targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)) };
|
|
2040
2040
|
const claimedOwner = _nullishCoalesce(targetPlatform, () => ( primaryPlatformOf(platforms)));
|
|
2041
|
-
const owner = claimedOwner &&
|
|
2042
|
-
const origin = owner ?
|
|
2041
|
+
const owner = claimedOwner && _chunkQDW64E6Tcjs.byKey.call(void 0, claimedOwner) ? claimedOwner : null;
|
|
2042
|
+
const origin = owner ? _chunkQDW64E6Tcjs.getPlatformProductionUrl.call(void 0, owner) : opts.contentOrigin;
|
|
2043
2043
|
return {
|
|
2044
2044
|
href: `${origin.replace(/\/+$/, "")}/${seg}/${_optionalChain([slugHint, 'optionalAccess', _80 => _80.trim, 'call', _81 => _81()]) || identifier}`,
|
|
2045
2045
|
// Report the owner so `decideNewTab` can compare it against the current
|
|
@@ -2220,7 +2220,7 @@ function extractSections(markdown, options = {}) {
|
|
|
2220
2220
|
if (heading.level > opts.maxLevel) continue;
|
|
2221
2221
|
let title = heading.text;
|
|
2222
2222
|
if (opts.stripFormattingMarkers) {
|
|
2223
|
-
title =
|
|
2223
|
+
title = _chunkQDW64E6Tcjs.stripInlineMarkdown.call(void 0, title).trim();
|
|
2224
2224
|
}
|
|
2225
2225
|
const baseId = _chunkOJZBZH56cjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunkOJZBZH56cjs.stripHeadingEmojis.call(void 0, title) : title);
|
|
2226
2226
|
const cleanId = baseId || `section-${sections.length + 1}`;
|
|
@@ -2535,7 +2535,7 @@ function demoClockTimes(seed, options = {}) {
|
|
|
2535
2535
|
function openAskAi(source, options) {
|
|
2536
2536
|
const prompt = _optionalChain([options, 'optionalAccess', _88 => _88.prompt, 'optionalAccess', _89 => _89.trim, 'call', _90 => _90()]);
|
|
2537
2537
|
const detail = prompt ? { source: _nullishCoalesce(source, () => ( "")), prompt } : { source: _nullishCoalesce(source, () => ( "")) };
|
|
2538
|
-
window.dispatchEvent(new CustomEvent(
|
|
2538
|
+
window.dispatchEvent(new CustomEvent(_chunkQDW64E6Tcjs.ASK_AI_OPEN_EVENT, { detail }));
|
|
2539
2539
|
}
|
|
2540
2540
|
function MingoAiButton({
|
|
2541
2541
|
source,
|
|
@@ -2578,7 +2578,7 @@ function MingoAiButton({
|
|
|
2578
2578
|
{
|
|
2579
2579
|
...props,
|
|
2580
2580
|
type: "button",
|
|
2581
|
-
...{ [
|
|
2581
|
+
...{ [_chunkQDW64E6Tcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" },
|
|
2582
2582
|
variant: field ? "glyph" : "transparent",
|
|
2583
2583
|
size: "wrap",
|
|
2584
2584
|
font: "regular",
|
|
@@ -2680,7 +2680,7 @@ function useAskPrompts({
|
|
|
2680
2680
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
2681
2681
|
const base = assistantAvailable(assistant) ? assistant.askPromptsUrl : void 0;
|
|
2682
2682
|
const url = base && enabled ? buildAskPromptsUrl(base, { count, topic, exclude }) : null;
|
|
2683
|
-
const { data, dataUrl, error } =
|
|
2683
|
+
const { data, dataUrl, error } = _chunk3XAFK4WHcjs.useSelfFetch.call(void 0, url);
|
|
2684
2684
|
const landed = url !== null && (dataUrl === url || error);
|
|
2685
2685
|
return { prompts: landed ? _nullishCoalesce(_optionalChain([data, 'optionalAccess', _97 => _97.prompts]), () => ( [])) : [], isLoading: !!base && !landed, supported: !!base };
|
|
2686
2686
|
}
|
|
@@ -2819,9 +2819,9 @@ function QuestionChips({
|
|
|
2819
2819
|
{
|
|
2820
2820
|
"data-loading-item": true,
|
|
2821
2821
|
className: _nullishCoalesce(slotClassName, () => ( CHIP_SLOT_CLASS)),
|
|
2822
|
-
...prompt ? { [
|
|
2822
|
+
...prompt ? { [_chunkQDW64E6Tcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" } : {},
|
|
2823
2823
|
children: (loading || prompt) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2824
|
-
|
|
2824
|
+
_chunkQDW64E6Tcjs.QuickActionChipButton,
|
|
2825
2825
|
{
|
|
2826
2826
|
loading,
|
|
2827
2827
|
variant: "question",
|
|
@@ -3031,7 +3031,7 @@ function QuickActionMarquee({
|
|
|
3031
3031
|
);
|
|
3032
3032
|
if (items.length === 0) return null;
|
|
3033
3033
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3034
|
-
|
|
3034
|
+
_chunkQDW64E6Tcjs.QuickActionWall,
|
|
3035
3035
|
{
|
|
3036
3036
|
chips,
|
|
3037
3037
|
mode,
|
|
@@ -3246,7 +3246,7 @@ var ChatSidebar = _react.forwardRef.call(void 0,
|
|
|
3246
3246
|
hasNextPage,
|
|
3247
3247
|
isFetchingNextPage,
|
|
3248
3248
|
onLoadMore,
|
|
3249
|
-
pageSize =
|
|
3249
|
+
pageSize = _chunkQDW64E6Tcjs.CHAT_HISTORY_PAGE_SIZE,
|
|
3250
3250
|
...props
|
|
3251
3251
|
}, ref) => {
|
|
3252
3252
|
const loading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || !!isLoading && dialogs.length === 0 && !children;
|
|
@@ -3530,7 +3530,7 @@ function OnboardingCarousel({
|
|
|
3530
3530
|
|
|
3531
3531
|
var ADMIN_CONTENT_CARD_GRID_CLASS = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-[var(--spacing-system-lf)]";
|
|
3532
3532
|
var GRID_CELL_CLASS = "h-full";
|
|
3533
|
-
var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3533
|
+
var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFYPVCCCVcjs.AdminContentCard, { loading: true, reserveRows: true, title: "", actions: true });
|
|
3534
3534
|
function loadingCardOf(loadingCard, Skeleton) {
|
|
3535
3535
|
if (loadingCard !== void 0) return loadingCard;
|
|
3536
3536
|
return Skeleton ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, {}) : DEFAULT_LOADING_CARD;
|
|
@@ -3544,7 +3544,7 @@ function AdminContentCardGridSkeleton({
|
|
|
3544
3544
|
label = "Loading",
|
|
3545
3545
|
region = true
|
|
3546
3546
|
}) {
|
|
3547
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3547
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQDW64E6Tcjs.LoadingFallback, { label, status: region, className: _chunk6YZNUHXTcjs.cn.call(void 0, ADMIN_CONTENT_CARD_GRID_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: GRID_CELL_CLASS, "data-loading-item": true, children: loadingCardOf(loadingCard, Skeleton) }) }) });
|
|
3548
3548
|
}
|
|
3549
3549
|
function AdminContentCardGrid({
|
|
3550
3550
|
items,
|
|
@@ -3634,23 +3634,23 @@ function SlackMessageCard({ item, variant = "compact", className, anchorProps })
|
|
|
3634
3634
|
metaParts.push(
|
|
3635
3635
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
3636
3636
|
);
|
|
3637
|
-
const href =
|
|
3637
|
+
const href = _chunkUN6LC5PKcjs.safeHref.call(void 0, item.url);
|
|
3638
3638
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3639
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3640
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3641
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3642
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3643
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3639
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWDRZM73cjs.SlackIcon, { className: "h-5 w-5" }) }),
|
|
3640
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3641
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_TITLE, children: item.title }) }),
|
|
3642
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_SUMMARY, children: item.preview || _chunkUN6LC5PKcjs.COMPACT_CARD_ROW_FILLER }) }),
|
|
3643
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_META_ROW, children: metaParts.length > 0 ? metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
3644
3644
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
3645
3645
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
3646
|
-
] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3646
|
+
] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_SUMMARY, children: _chunkUN6LC5PKcjs.COMPACT_CARD_ROW_FILLER }) }) })
|
|
3647
3647
|
] }),
|
|
3648
3648
|
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
|
|
3649
3649
|
] });
|
|
3650
3650
|
if (anchorProps) {
|
|
3651
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3651
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkUN6LC5PKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3652
3652
|
}
|
|
3653
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
3653
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkUN6LC5PKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkUN6LC5PKcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3654
3654
|
}
|
|
3655
3655
|
function SlackMessageCardSkeleton({
|
|
3656
3656
|
variant = "compact",
|
|
@@ -3658,7 +3658,7 @@ function SlackMessageCardSkeleton({
|
|
|
3658
3658
|
}) {
|
|
3659
3659
|
if (variant === "row") {
|
|
3660
3660
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3661
|
-
|
|
3661
|
+
_chunkUN6LC5PKcjs.ActivityRowSkeleton,
|
|
3662
3662
|
{
|
|
3663
3663
|
lead: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3664
3664
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { className: "h-3.5 w-3.5 shrink-0 rounded" }),
|
|
@@ -3670,7 +3670,7 @@ function SlackMessageCardSkeleton({
|
|
|
3670
3670
|
);
|
|
3671
3671
|
}
|
|
3672
3672
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3673
|
-
|
|
3673
|
+
_chunkUN6LC5PKcjs.CompactCardSkeleton,
|
|
3674
3674
|
{
|
|
3675
3675
|
titleWidth: "w-2/3",
|
|
3676
3676
|
rows: [{ width: "w-5/6" }, { width: "w-1/3" }],
|
|
@@ -3711,7 +3711,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3711
3711
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
3712
3712
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "max-w-[260px] shrink-0 truncate text-ods-text-primary text-h6", children: item.title }),
|
|
3713
3713
|
item.preview ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-ods-text-secondary text-h6", children: item.preview }) : null,
|
|
3714
|
-
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3714
|
+
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6LC5PKcjs.StatusBadge, { text: statusText, variant: "button", colorScheme: statusScheme(item.status) }) : null,
|
|
3715
3715
|
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "w-24 shrink-0 text-right text-ods-text-secondary text-h6", children: dateText }) : null
|
|
3716
3716
|
] });
|
|
3717
3717
|
}
|
|
@@ -3725,13 +3725,13 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3725
3725
|
metaParts.push(
|
|
3726
3726
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
3727
3727
|
);
|
|
3728
|
-
const href =
|
|
3728
|
+
const href = _chunkUN6LC5PKcjs.safeHref.call(void 0, item.url);
|
|
3729
3729
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3730
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3730
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3731
3731
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
3732
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3732
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkUN6LC5PKcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
3733
3733
|
priorityText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3734
|
-
|
|
3734
|
+
_chunkUN6LC5PKcjs.StatusBadge,
|
|
3735
3735
|
{
|
|
3736
3736
|
text: priorityText,
|
|
3737
3737
|
variant: "button",
|
|
@@ -3740,7 +3740,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3740
3740
|
}
|
|
3741
3741
|
) : null,
|
|
3742
3742
|
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3743
|
-
|
|
3743
|
+
_chunkUN6LC5PKcjs.StatusBadge,
|
|
3744
3744
|
{
|
|
3745
3745
|
text: statusText,
|
|
3746
3746
|
variant: "button",
|
|
@@ -3754,7 +3754,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3754
3754
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: item.customerEmail })
|
|
3755
3755
|
] }) : null,
|
|
3756
3756
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "line-clamp-4 whitespace-pre-wrap break-words text-ods-text-secondary text-h6", children: item.preview || /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "italic text-ods-text-secondary/60", children: "No description provided." }) }) }),
|
|
3757
|
-
metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3757
|
+
metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
3758
3758
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
3759
3759
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
3760
3760
|
] }, i)) }) }) : null
|
|
@@ -3762,9 +3762,9 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3762
3762
|
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
|
|
3763
3763
|
] });
|
|
3764
3764
|
if (anchorProps) {
|
|
3765
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3765
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkUN6LC5PKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3766
3766
|
}
|
|
3767
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
3767
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkUN6LC5PKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkUN6LC5PKcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3768
3768
|
}
|
|
3769
3769
|
function HubspotTicketCardSkeleton({
|
|
3770
3770
|
variant = "compact",
|
|
@@ -3779,7 +3779,7 @@ function HubspotTicketCardSkeleton({
|
|
|
3779
3779
|
] });
|
|
3780
3780
|
}
|
|
3781
3781
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3782
|
-
|
|
3782
|
+
_chunkUN6LC5PKcjs.CompactCardSkeleton,
|
|
3783
3783
|
{
|
|
3784
3784
|
slot: false,
|
|
3785
3785
|
titleWidth: "w-2/3",
|
|
@@ -3797,10 +3797,10 @@ function HubspotTicketCardSkeleton({
|
|
|
3797
3797
|
function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
3798
3798
|
if (_chunk6YZNUHXTcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataRoomDocCardSkeleton, { className });
|
|
3799
3799
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3800
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3800
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3801
3801
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
3802
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3803
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3802
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkUN6LC5PKcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
3803
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6LC5PKcjs.StatusBadge, { text: badgeText, variant: "button", colorScheme: "cyan", className: "shrink-0" })
|
|
3804
3804
|
] }),
|
|
3805
3805
|
item.path ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-1 text-ods-text-secondary text-h6", children: [
|
|
3806
3806
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/70", children: "Path:" }),
|
|
@@ -3811,13 +3811,13 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
|
3811
3811
|
_optionalChain([anchorProps, 'optionalAccess', _128 => _128.href]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
|
|
3812
3812
|
] });
|
|
3813
3813
|
if (!anchorProps) {
|
|
3814
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3814
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkUN6LC5PKcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3815
3815
|
}
|
|
3816
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3816
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkUN6LC5PKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3817
3817
|
}
|
|
3818
3818
|
function DataRoomDocCardSkeleton({ className }) {
|
|
3819
3819
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3820
|
-
|
|
3820
|
+
_chunkUN6LC5PKcjs.CompactCardSkeleton,
|
|
3821
3821
|
{
|
|
3822
3822
|
slot: false,
|
|
3823
3823
|
titleWidth: "w-2/3",
|
|
@@ -3836,24 +3836,24 @@ function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
|
3836
3836
|
if (_chunk6YZNUHXTcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignCardAdminSkeleton, { className });
|
|
3837
3837
|
const goalsCount = _optionalChain([campaign, 'access', _129 => _129.goals, 'optionalAccess', _130 => _130.length]) || 0;
|
|
3838
3838
|
const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3839
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3840
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3841
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3842
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3843
|
-
campaign.start_date ?
|
|
3839
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
|
|
3840
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3841
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
|
|
3842
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_SUBTITLE, children: [
|
|
3843
|
+
campaign.start_date ? _chunkFYPVCCCVcjs.formatDateShort.call(void 0, campaign.start_date) : null,
|
|
3844
3844
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
3845
3845
|
"Marketing campaign"
|
|
3846
3846
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
3847
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3847
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_SUMMARY, children: campaign.description || _chunkUN6LC5PKcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
3848
3848
|
] })
|
|
3849
3849
|
] });
|
|
3850
3850
|
if (anchorProps) {
|
|
3851
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3851
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkUN6LC5PKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
|
|
3852
3852
|
}
|
|
3853
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3853
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkUN6LC5PKcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
|
|
3854
3854
|
}
|
|
3855
3855
|
function CampaignCardAdminSkeleton({ className }) {
|
|
3856
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3856
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6LC5PKcjs.CompactCardSkeleton, { rows: [{ width: "w-1/2" }, { width: "w-11/12" }], className });
|
|
3857
3857
|
}
|
|
3858
3858
|
|
|
3859
3859
|
// src/components/chat/entity-cards/generic-entity-card.tsx
|
|
@@ -3861,14 +3861,14 @@ function CampaignCardAdminSkeleton({ className }) {
|
|
|
3861
3861
|
|
|
3862
3862
|
function GenericEntityCard({ item, className, anchorProps }) {
|
|
3863
3863
|
if (_chunk6YZNUHXTcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GenericEntityCardSkeleton, { className });
|
|
3864
|
-
const href =
|
|
3864
|
+
const href = _chunkUN6LC5PKcjs.safeHref.call(void 0, item.url);
|
|
3865
3865
|
const dateText = _chunk7VXMO4XJcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
3866
3866
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3867
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3867
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3868
3868
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
3869
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3869
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkUN6LC5PKcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
3870
3870
|
item.badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3871
|
-
|
|
3871
|
+
_chunkUN6LC5PKcjs.StatusBadge,
|
|
3872
3872
|
{
|
|
3873
3873
|
text: item.badge.text,
|
|
3874
3874
|
variant: "button",
|
|
@@ -3886,18 +3886,18 @@ function GenericEntityCard({ item, className, anchorProps }) {
|
|
|
3886
3886
|
] }),
|
|
3887
3887
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate font-medium text-ods-text-primary", children: f.value })
|
|
3888
3888
|
] }, i)) }) : null,
|
|
3889
|
-
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3889
|
+
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }) }) }) : null
|
|
3890
3890
|
] }),
|
|
3891
3891
|
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
|
|
3892
3892
|
] });
|
|
3893
3893
|
if (anchorProps) {
|
|
3894
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3894
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkUN6LC5PKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3895
3895
|
}
|
|
3896
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, className: `${
|
|
3896
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, className: `${_chunkUN6LC5PKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkUN6LC5PKcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3897
3897
|
}
|
|
3898
3898
|
function GenericEntityCardSkeleton({ className }) {
|
|
3899
3899
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3900
|
-
|
|
3900
|
+
_chunkUN6LC5PKcjs.CompactCardSkeleton,
|
|
3901
3901
|
{
|
|
3902
3902
|
slot: false,
|
|
3903
3903
|
titleWidth: "w-2/3",
|
|
@@ -5136,7 +5136,7 @@ function Section({ title, description, children }) {
|
|
|
5136
5136
|
] });
|
|
5137
5137
|
}
|
|
5138
5138
|
function ProxyCredentialsPanel({ description }) {
|
|
5139
|
-
const hydrated =
|
|
5139
|
+
const hydrated = _chunkQDW64E6Tcjs.useIsHydrated.call(void 0, );
|
|
5140
5140
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5141
5141
|
ProxyCredentialsForm,
|
|
5142
5142
|
{
|
|
@@ -5197,13 +5197,13 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5197
5197
|
setStatus("Cleared. Requests use the session again.");
|
|
5198
5198
|
};
|
|
5199
5199
|
const setField = (field, value) => setOptional((prev) => ({ ...prev, [field]: value }));
|
|
5200
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5200
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6LC5PKcjs.Card, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkUN6LC5PKcjs.CardContent, { className: "space-y-[var(--spacing-system-lf)] p-[var(--spacing-system-mf)]", children: [
|
|
5201
5201
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "header", { className: "flex flex-col gap-[var(--spacing-system-sf)] sm:flex-row sm:items-start sm:justify-between", children: [
|
|
5202
5202
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
5203
5203
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h3", children: "Proxy credentials" }),
|
|
5204
5204
|
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: description })
|
|
5205
5205
|
] }),
|
|
5206
|
-
activeEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5206
|
+
activeEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6LC5PKcjs.StatusBadge, { singleLine: true, colorScheme: "success", text: `Active: ${activeEmail}` }) })
|
|
5207
5207
|
] }),
|
|
5208
5208
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5209
5209
|
Section,
|
|
@@ -5300,21 +5300,21 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5300
5300
|
|
|
5301
5301
|
// src/components/chat/index.ts
|
|
5302
5302
|
var LoadedEmbeddableChat = _react.lazy.call(void 0,
|
|
5303
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-
|
|
5303
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-6BNLOSBB.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
|
|
5304
5304
|
);
|
|
5305
5305
|
var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
5306
5306
|
const [loadRequested, setLoadRequested] = _react.useState.call(void 0, false);
|
|
5307
5307
|
const load = loadRequested || Boolean(props.open) || Boolean(props.defaultOpen);
|
|
5308
|
-
_react.useEffect.call(void 0, () =>
|
|
5308
|
+
_react.useEffect.call(void 0, () => _chunkQDW64E6Tcjs.holdAskAiOpens.call(void 0, ), []);
|
|
5309
5309
|
_react.useEffect.call(void 0, () => {
|
|
5310
5310
|
if (load) return void 0;
|
|
5311
5311
|
const start = () => setLoadRequested(true);
|
|
5312
|
-
if (
|
|
5313
|
-
for (const name of
|
|
5314
|
-
const cancel =
|
|
5312
|
+
if (_chunkQDW64E6Tcjs.askAiOpenIsHeld.call(void 0, )) queueMicrotask(start);
|
|
5313
|
+
for (const name of _chunkQDW64E6Tcjs.ASK_AI_OPEN_EVENTS) window.addEventListener(name, start);
|
|
5314
|
+
const cancel = _chunkQDW64E6Tcjs.onAskAiIntent.call(void 0, start);
|
|
5315
5315
|
return () => {
|
|
5316
5316
|
cancel();
|
|
5317
|
-
for (const name of
|
|
5317
|
+
for (const name of _chunkQDW64E6Tcjs.ASK_AI_OPEN_EVENTS) window.removeEventListener(name, start);
|
|
5318
5318
|
};
|
|
5319
5319
|
}, [load]);
|
|
5320
5320
|
if (!load) return null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk2KLYMAHFcjs = require('./chunk-2KLYMAHF.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -118,7 +118,7 @@ function PersistentPaginationWrapper({
|
|
|
118
118
|
},
|
|
119
119
|
"aria-hidden": isPaginationDisabled,
|
|
120
120
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
121
|
-
|
|
121
|
+
_chunk2KLYMAHFcjs.UnifiedPagination,
|
|
122
122
|
{
|
|
123
123
|
currentPage: displayCurrentPage,
|
|
124
124
|
totalPages: displayTotalPages,
|
|
@@ -5,12 +5,12 @@ var _chunkCWA6J7KCcjs = require('./chunk-CWA6J7KC.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkF73DM65Jcjs = require('./chunk-F73DM65J.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkQDW64E6Tcjs = require('./chunk-QDW64E6T.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -25,10 +25,10 @@ var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunk3XAFK4WHcjs = require('./chunk-3XAFK4WH.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkFYPVCCCVcjs = require('./chunk-FYPVCCCV.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunk7PNRXJX2cjs = require('./chunk-7PNRXJX2.cjs');
|
|
@@ -74,7 +74,7 @@ function FaqAccordion({ items, defaultOpenIds = [], loading: loadingProp, skelet
|
|
|
74
74
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
75
75
|
"div",
|
|
76
76
|
{
|
|
77
|
-
id:
|
|
77
|
+
id: _chunkQDW64E6Tcjs.faqItemAnchor.call(void 0, item.id),
|
|
78
78
|
className: _chunk6YZNUHXTcjs.cn.call(void 0, ROW_FRAME_CLASS, "hover:bg-ods-bg-hover"),
|
|
79
79
|
"data-loading-item": true,
|
|
80
80
|
children: [
|
|
@@ -140,14 +140,14 @@ function FaqAccordionSkeleton({
|
|
|
140
140
|
|
|
141
141
|
var PICK_ROOT_MARGIN = "600px";
|
|
142
142
|
function faqAskCardShown(assistant) {
|
|
143
|
-
return
|
|
143
|
+
return _chunkF73DM65Jcjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
144
144
|
}
|
|
145
145
|
function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
|
|
146
146
|
const { ref, inView } = _chunkOJZBZH56cjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
147
147
|
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
148
148
|
if (inView && !reached) setReached(true);
|
|
149
149
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
150
|
-
|
|
150
|
+
_chunkF73DM65Jcjs.AssistantAskPrompts,
|
|
151
151
|
{
|
|
152
152
|
variant: "card",
|
|
153
153
|
topic,
|
|
@@ -207,7 +207,7 @@ var CATEGORY_NAV_SKELETON_LINE_CLASS = "flex min-w-0 flex-nowrap gap-2 overflow-
|
|
|
207
207
|
var FAQ_NAV_SKELETON_PILLS = 8;
|
|
208
208
|
var CATEGORY_PILL_CLASS = "rounded-full border px-4 py-2 transition-colors text-h6";
|
|
209
209
|
var CATEGORY_SECTION_CLASS = "scroll-mt-24";
|
|
210
|
-
var CATEGORY_HEADING_CLASS = _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
210
|
+
var CATEGORY_HEADING_CLASS = _chunk6YZNUHXTcjs.cn.call(void 0, _chunkFYPVCCCVcjs.SECTION_HEADING_CLASS, "pb-4");
|
|
211
211
|
var FAQ_SECTION_SKELETON_QUESTIONS = FAQ_ACCORDION_SKELETON_ROWS;
|
|
212
212
|
function FaqLayout({
|
|
213
213
|
heading,
|
|
@@ -233,7 +233,7 @@ function FaqLayout({
|
|
|
233
233
|
] });
|
|
234
234
|
}
|
|
235
235
|
function faqHeadingNode(heading, showTopic, topic) {
|
|
236
|
-
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
236
|
+
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunkFYPVCCCVcjs.SECTION_HEADING_CLASS, children: DEFAULT_HEADING_TEXT }) : heading;
|
|
237
237
|
if (!(showTopic && topic)) return titleNode;
|
|
238
238
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TOPIC_STACK_CLASS, children: [
|
|
239
239
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: titleNode }),
|
|
@@ -247,7 +247,7 @@ function pageFaqProps(faq) {
|
|
|
247
247
|
}
|
|
248
248
|
function buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl = "", topic) {
|
|
249
249
|
const entityScoped = !!entityType && entityId !== void 0 && entityId !== null && entityId !== "";
|
|
250
|
-
return
|
|
250
|
+
return _chunk3XAFK4WHcjs.buildSuggestionUrl.call(void 0, "/api/faqs", {
|
|
251
251
|
apiBaseUrl,
|
|
252
252
|
entityType,
|
|
253
253
|
entityId,
|
|
@@ -268,7 +268,7 @@ function groupFaqsBySection(faqs) {
|
|
|
268
268
|
}
|
|
269
269
|
let group = byName.get(name);
|
|
270
270
|
if (!group) {
|
|
271
|
-
group = { section: name, slug:
|
|
271
|
+
group = { section: name, slug: _chunkQDW64E6Tcjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
272
272
|
byName.set(name, group);
|
|
273
273
|
}
|
|
274
274
|
group.items.push(item);
|
|
@@ -324,7 +324,7 @@ function GroupedFaqList({
|
|
|
324
324
|
}, [slugKey]);
|
|
325
325
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
326
326
|
_react.useEffect.call(void 0, () => {
|
|
327
|
-
const refresh = () => setHashTarget(
|
|
327
|
+
const refresh = () => setHashTarget(_chunkQDW64E6Tcjs.parseFaqHash.call(void 0, window.location.hash));
|
|
328
328
|
refresh();
|
|
329
329
|
window.addEventListener("hashchange", refresh);
|
|
330
330
|
return () => window.removeEventListener("hashchange", refresh);
|
|
@@ -425,7 +425,7 @@ function FaqSection({
|
|
|
425
425
|
() => initialFaqs ? { faqs: initialFaqs } : void 0,
|
|
426
426
|
[initialFaqs]
|
|
427
427
|
);
|
|
428
|
-
const { data, dataUrl, isLoading, error } =
|
|
428
|
+
const { data, dataUrl, isLoading, error } = _chunk3XAFK4WHcjs.useSelfFetch.call(void 0, inScope ? null : url, { initialData });
|
|
429
429
|
const held = dataUrl === url ? _optionalChain([data, 'optionalAccess', _14 => _14.faqs]) : void 0;
|
|
430
430
|
const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(held, () => ( [])), [held]);
|
|
431
431
|
const groups = _react.useMemo.call(void 0, () => faqs.length > 0 ? groupFaqsBySection(faqs) : [], [faqs]);
|