@flamingo-stack/openframe-frontend-core 0.0.795 → 0.0.796
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/build/export-map.json +1 -1
- package/dist/{chunk-FYHXMHY6.cjs → chunk-6JCTKXHX.cjs} +13 -13
- package/dist/{chunk-HXL7AUPG.cjs → chunk-6WXP5IKR.cjs} +16 -16
- package/dist/{chunk-6VP5UWZG.cjs → chunk-7SEY3FDF.cjs} +2 -2
- package/dist/{chunk-BFCGOHQG.cjs → chunk-7VU4HHUR.cjs} +32 -32
- package/dist/{chunk-43ZVXQJK.cjs → chunk-CC7NRWRF.cjs} +48 -48
- package/dist/{chunk-72NE4G63.cjs → chunk-CFXCCQ6T.cjs} +2 -2
- package/dist/{chunk-RPC4P7GY.cjs → chunk-F64GLU75.cjs} +33 -33
- package/dist/{chunk-PQIWR4Q2.cjs → chunk-G24OX7AC.cjs} +16 -16
- package/dist/{chunk-7VXMO4XJ.cjs → chunk-GP7NV6BK.cjs} +3 -1
- package/dist/{chunk-6TUI5KQS.cjs → chunk-II4A2RUG.cjs} +41 -41
- package/dist/{chunk-ZCMXBX4Z.cjs → chunk-IONS6HDF.cjs} +5 -5
- package/dist/{chunk-4BYNNQBC.cjs → chunk-JC43ULIC.cjs} +71 -71
- package/dist/{chunk-FYPVCCCV.cjs → chunk-JGURZROB.cjs} +27 -27
- package/dist/{chunk-FOWQ4XTB.cjs → chunk-N3J4U7ML.cjs} +2 -2
- package/dist/{chunk-IJ23KNYI.cjs → chunk-NAJ24ODA.cjs} +4 -4
- package/dist/{chunk-F73DM65J.cjs → chunk-NRAH3M66.cjs} +46 -46
- package/dist/{chunk-3XAFK4WH.cjs → chunk-OKAHKZP2.cjs} +8 -8
- package/dist/{chunk-2KLYMAHF.cjs → chunk-PALMLL5T.cjs} +4 -4
- package/dist/{chunk-CLEZ6TWZ.cjs → chunk-QCN46LDL.cjs} +69 -69
- package/dist/{chunk-YPKAMHYA.cjs → chunk-QMDXG3VF.cjs} +574 -457
- package/dist/{chunk-BIYLAAFI.cjs → chunk-TUD7BV6O.cjs} +9 -9
- package/dist/{chunk-OK467OQJ.cjs → chunk-UYOGZJPE.cjs} +4 -4
- package/dist/{chunk-IQTVKPRG.cjs → chunk-VUP7ZGZS.cjs} +20 -20
- package/dist/{chunk-YYKXX5NA.cjs → chunk-VYXNGADV.cjs} +24 -24
- package/dist/{chunk-A6E5ZNQR.cjs → chunk-W4QITOT7.cjs} +5 -5
- package/dist/{chunk-NGGEYE5R.cjs → chunk-XFJ7BZDJ.cjs} +5 -5
- package/dist/{chunk-U4D4ABXK.cjs → chunk-XVVQJXOA.cjs} +39 -39
- package/dist/{chunk-QDW64E6T.cjs → chunk-Y3IMXLLL.cjs} +143 -143
- package/dist/{chunk-NIW4ETGC.cjs → chunk-YFHKBIZT.cjs} +6 -6
- package/dist/{chunk-KQPU5N7T.cjs → chunk-ZMWSN2BD.cjs} +11 -11
- package/dist/{chunk-ZIMPE7D5.cjs → chunk-ZRME3A2D.cjs} +3 -3
- package/dist/{cloud-tenants-Z3AYAXF5.cjs → cloud-tenants-BQUWLMYY.cjs} +12 -12
- package/dist/components/case-studies/index.cjs +26 -26
- package/dist/components/chat/index.cjs +9 -9
- package/dist/components/contact/index.cjs +13 -13
- package/dist/components/docs/index.cjs +16 -16
- package/dist/components/embeds/index.cjs +13 -13
- package/dist/components/faq/index.cjs +14 -14
- package/dist/components/features/index.cjs +12 -12
- package/dist/components/help-center-pages/index.cjs +98 -98
- package/dist/components/index.cjs +82 -68
- package/dist/components/meeting-scheduler/index.cjs +72 -72
- package/dist/components/navigation/index.cjs +15 -15
- package/dist/components/onboarding-guides/index.cjs +15 -15
- package/dist/components/product-demo/index.cjs +23 -23
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/tickets/index.cjs +19 -19
- package/dist/components/ui/floating-tooltip.d.ts.map +1 -1
- package/dist/components/ui/floating-tooltip.js +3 -1
- package/dist/components/ui/index.cjs +26 -12
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +9 -1
- package/dist/components/ui/trendline.d.ts +60 -0
- package/dist/components/ui/trendline.d.ts.map +1 -0
- package/dist/components/ui/trendline.js +121 -0
- package/dist/{devices-P6XQL23S.cjs → devices-BFQOLI3D.cjs} +13 -13
- package/dist/{embeddable-chat-6BNLOSBB.cjs → embeddable-chat-INYF23ST.cjs} +74 -74
- package/dist/index.cjs +31 -17
- package/dist/{knowledge-IU5ORU7U.cjs → knowledge-GGYWTYTP.cjs} +13 -13
- package/dist/{logs-DCFTQVKA.cjs → logs-NO55PTIO.cjs} +20 -20
- package/dist/{policies-ESC6XCVH.cjs → policies-AAFYTVOJ.cjs} +16 -16
- package/dist/{remote-session-4ZNTOLOQ.cjs → remote-session-2CNWLF3P.cjs} +7 -7
- package/dist/{scripts-24PIP2VO.cjs → scripts-H4ECJ65X.cjs} +19 -19
- package/dist/{software-update-47GDTKMI.cjs → software-update-NEEGQBK3.cjs} +16 -16
- package/dist/{tickets-board-X4GHEKPB.cjs → tickets-board-CXYRAMDL.cjs} +8 -8
- package/package.json +1 -1
- package/src/components/ui/floating-tooltip.tsx +4 -1
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/trendline.tsx +221 -0
|
@@ -30,7 +30,7 @@ var _chunkUN6LC5PKcjs = require('./chunk-UN6LC5PK.cjs');
|
|
|
30
30
|
var _chunkJXQNECXMcjs = require('./chunk-JXQNECXM.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkCFXCCQ6Tcjs = require('./chunk-CFXCCQ6T.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
@@ -42,7 +42,7 @@ var _chunk72NE4G63cjs = require('./chunk-72NE4G63.cjs');
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
var
|
|
45
|
+
var _chunkGP7NV6BKcjs = require('./chunk-GP7NV6BK.cjs');
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
var _chunk32ASZMTVcjs = require('./chunk-32ASZMTV.cjs');
|
|
@@ -395,7 +395,7 @@ function escapeRegExp(value) {
|
|
|
395
395
|
function formatDayHead(dateString, style) {
|
|
396
396
|
const ymd = splitYmd(dateString);
|
|
397
397
|
if (!ymd) return dateString;
|
|
398
|
-
return
|
|
398
|
+
return _chunkGP7NV6BKcjs.formatDateWithTimezone.call(void 0, ymd.join("-"), null, style) || dateString;
|
|
399
399
|
}
|
|
400
400
|
function splitYmd(dateString) {
|
|
401
401
|
const head = dateString.split("T")[0];
|
|
@@ -842,9 +842,9 @@ function programMetaFormatters(fmt, opts = {}) {
|
|
|
842
842
|
|
|
843
843
|
// src/utils/program-meta-renderers.ts
|
|
844
844
|
var PROGRAM_META_RENDERERS = {
|
|
845
|
-
date:
|
|
846
|
-
duration:
|
|
847
|
-
webinarMeta:
|
|
845
|
+
date: _chunkGP7NV6BKcjs.formatProgramDate,
|
|
846
|
+
duration: _chunkGP7NV6BKcjs.formatDurationCompact,
|
|
847
|
+
webinarMeta: _chunkGP7NV6BKcjs.formatWebinarTimeMeta
|
|
848
848
|
};
|
|
849
849
|
|
|
850
850
|
// src/components/chat/utils/chat-nav-resolution.ts
|
|
@@ -947,11 +947,11 @@ function EntityMetadataAuthorCell({
|
|
|
947
947
|
const fullName = trimmedName || "Unknown Author";
|
|
948
948
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, AUTHOR_CELL_CLASS, className), children: [
|
|
949
949
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
950
|
-
|
|
950
|
+
_chunkGP7NV6BKcjs.SquareAvatar,
|
|
951
951
|
{
|
|
952
952
|
src: author.avatar_url || "",
|
|
953
953
|
alt: fullName,
|
|
954
|
-
fallback:
|
|
954
|
+
fallback: _chunkGP7NV6BKcjs.nameInitials.call(void 0, fullName, ""),
|
|
955
955
|
size: AUTHOR_AVATAR_SIZE,
|
|
956
956
|
variant: "round"
|
|
957
957
|
}
|
|
@@ -1010,7 +1010,7 @@ function EntityAuthorCard({
|
|
|
1010
1010
|
const hasAuthor = !!_optionalChain([author, 'optionalAccess', _15 => _15.full_name]);
|
|
1011
1011
|
if (!hasAuthor && !renderEmptyAuthor) return null;
|
|
1012
1012
|
const effectiveAuthor = hasAuthor ? author : EMPTY_AUTHOR_PLACEHOLDER;
|
|
1013
|
-
const formatted = publishedAt ?
|
|
1013
|
+
const formatted = publishedAt ? _chunkGP7NV6BKcjs.formatDate.call(void 0, publishedAt) : "";
|
|
1014
1014
|
const dateLabel = formatted === "Invalid Date" ? "" : formatted;
|
|
1015
1015
|
const showDateCell = !!dateLabel;
|
|
1016
1016
|
const extras = _nullishCoalesce(extraCells, () => ( []));
|
|
@@ -1645,7 +1645,7 @@ function LoadedProductReleaseCard({
|
|
|
1645
1645
|
] }) }, `${cell.label}-${i}`)),
|
|
1646
1646
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3 p-4", children: [
|
|
1647
1647
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1648
|
-
|
|
1648
|
+
_chunkGP7NV6BKcjs.SquareAvatar,
|
|
1649
1649
|
{
|
|
1650
1650
|
src: _nullishCoalesce(effectiveAuthor.avatar_url, () => ( void 0)),
|
|
1651
1651
|
alt: effectiveAuthor.full_name,
|
|
@@ -1869,7 +1869,7 @@ function LoadedBlogCard({
|
|
|
1869
1869
|
});
|
|
1870
1870
|
const { src: displayImage, onError: onImageError } = _chunkUN6LC5PKcjs.useCoverImageFallback.call(void 0, post.featured_image, placeholderUrl);
|
|
1871
1871
|
if (size === "sm") {
|
|
1872
|
-
const dateStr2 = post.published_at ?
|
|
1872
|
+
const dateStr2 = post.published_at ? _chunkGP7NV6BKcjs.formatDateWithTimezone.call(void 0, post.published_at, null, "medium") : "";
|
|
1873
1873
|
const firstCategory = _optionalChain([post, 'access', _32 => _32.categories, 'optionalAccess', _33 => _33.find, 'call', _34 => _34((c) => c && c.name), 'optionalAccess', _35 => _35.name]);
|
|
1874
1874
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target, rel, className: _chunk6YZNUHXTcjs.cn.call(void 0, _chunkUN6LC5PKcjs.COMPACT_CARD_OUTER, className), children: [
|
|
1875
1875
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_IMAGE_SLOT, children: displayImage ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1899,7 +1899,7 @@ function LoadedBlogCard({
|
|
|
1899
1899
|
] });
|
|
1900
1900
|
}
|
|
1901
1901
|
if (size === "portrait") {
|
|
1902
|
-
const dateStr2 = post.published_at ?
|
|
1902
|
+
const dateStr2 = post.published_at ? _chunkGP7NV6BKcjs.formatDateWithTimezone.call(void 0, post.published_at, null, "medium") : "";
|
|
1903
1903
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1904
1904
|
_chunkUN6LC5PKcjs.EntityPortraitCard,
|
|
1905
1905
|
{
|
|
@@ -1920,7 +1920,7 @@ function LoadedBlogCard({
|
|
|
1920
1920
|
}
|
|
1921
1921
|
);
|
|
1922
1922
|
}
|
|
1923
|
-
const dateStr = post.published_at ?
|
|
1923
|
+
const dateStr = post.published_at ? _chunkGP7NV6BKcjs.formatDateWithTimezone.call(void 0, post.published_at, null, "medium") : "";
|
|
1924
1924
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "article", { className: _chunk6YZNUHXTcjs.cn.call(void 0, _chunkUN6LC5PKcjs.CONTENT_CARD_FRAME_CLASS, BLOG_CARD_FRAME, className), role: "article", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target, rel, className: "flex h-full flex-col focus:outline-none", children: [
|
|
1925
1925
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, BLOG_CARD_COVER, "bg-ods-bg"), children: displayImage ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1926
1926
|
_chunkDRWPSN3Acjs.next_image_default,
|
|
@@ -2180,7 +2180,7 @@ function LoadedCustomerInterviewCard({
|
|
|
2180
2180
|
// src/components/chat/types/entities/investor-update.ts
|
|
2181
2181
|
function formatInvestorUpdatePeriod(start, end, options) {
|
|
2182
2182
|
if (!start && !end) return "";
|
|
2183
|
-
const fmt = (d) =>
|
|
2183
|
+
const fmt = (d) => _chunkGP7NV6BKcjs.formatDateWithTimezone.call(void 0, d, null, _optionalChain([options, 'optionalAccess', _62 => _62.monthFormat]) === "long" ? "monthYear" : "monthYearShort") || "?";
|
|
2184
2184
|
const s = start ? fmt(start) : "?";
|
|
2185
2185
|
const e = end ? fmt(end) : "?";
|
|
2186
2186
|
return `${s} - ${e}`;
|
|
@@ -2463,7 +2463,7 @@ function LoadedOnboardingGuideCard({
|
|
|
2463
2463
|
const coverImage = guide.featured_image || guide.main_video_thumbnail || guide.og_image_url || null;
|
|
2464
2464
|
const hasVideoCover = !!(guide.main_video_thumbnail || guide.highlight_video_thumbnail);
|
|
2465
2465
|
const stepLabel = typeof guide.step_order === "number" ? String(guide.step_order).padStart(2, "0") : "\u2014";
|
|
2466
|
-
const durationLabel = typeof guide.highlight_video_duration_ms === "number" && guide.highlight_video_duration_ms > 0 ?
|
|
2466
|
+
const durationLabel = typeof guide.highlight_video_duration_ms === "number" && guide.highlight_video_duration_ms > 0 ? _chunkGP7NV6BKcjs.formatDurationMMSS.call(void 0, Math.floor(guide.highlight_video_duration_ms / 1e3)) : "";
|
|
2467
2467
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2468
2468
|
_chunkV45KLJQPcjs.next_link_default,
|
|
2469
2469
|
{
|
|
@@ -2835,7 +2835,7 @@ function LoadedRoadmapCard({
|
|
|
2835
2835
|
]
|
|
2836
2836
|
}
|
|
2837
2837
|
) : null,
|
|
2838
|
-
item.assignees && item.assignees.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2838
|
+
item.assignees && item.assignees.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCFXCCQ6Tcjs.AvatarStack, { size: "xs", people: assigneePeople(item.assignees), className: "shrink-0" }) : null
|
|
2839
2839
|
] }),
|
|
2840
2840
|
/* @__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.description || _chunkUN6LC5PKcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
2841
2841
|
] })
|
|
@@ -2913,7 +2913,7 @@ function LoadedRoadmapCard({
|
|
|
2913
2913
|
)
|
|
2914
2914
|
] }),
|
|
2915
2915
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROADMAP_CARD_FOOTER_END, children: [
|
|
2916
|
-
item.assignees && item.assignees.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2916
|
+
item.assignees && item.assignees.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCFXCCQ6Tcjs.AvatarStack, { size: "xs", people: assigneePeople(item.assignees), className: "shrink-0" }) : null,
|
|
2917
2917
|
item.screenshots && item.screenshots.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2918
2918
|
_chunkK7I3YYYUcjs.Button,
|
|
2919
2919
|
{
|
|
@@ -3020,7 +3020,7 @@ function ProgramCardSkeleton({
|
|
|
3020
3020
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: EDITORIAL_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { as: "span", type: "inherit", className: "w-40" }) }),
|
|
3021
3021
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { as: "span", type: "h4", lines: 3, className: "w-full" }),
|
|
3022
3022
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: EDITORIAL_PERSON_ROW, children: [
|
|
3023
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3023
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGP7NV6BKcjs.SquareAvatar, { loading: true, ...EDITORIAL_PERSON_AVATAR, className: "shrink-0" }),
|
|
3024
3024
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { as: "span", type: "h6", className: "w-40" })
|
|
3025
3025
|
] })
|
|
3026
3026
|
] })
|
|
@@ -3039,9 +3039,9 @@ function ProgramCardSkeleton({
|
|
|
3039
3039
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { as: "span", type: "inherit", className: "w-40" })
|
|
3040
3040
|
] }),
|
|
3041
3041
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEFAULT_DESCRIPTION, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { as: "span", type: "inherit", lines: 3, className: "w-full" }) }),
|
|
3042
|
-
tags && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEFAULT_TAG_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.LoadingItems, { count: DEFAULT_SKELETON_TAGS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3042
|
+
tags && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEFAULT_TAG_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.LoadingItems, { count: DEFAULT_SKELETON_TAGS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGP7NV6BKcjs.Tag, { loading: true, as: "span", label: "", variant: "outline", "data-loading-item": true }) }) })
|
|
3043
3043
|
] }),
|
|
3044
|
-
hosts > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEFAULT_HOSTS_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.LoadingItems, { count: hosts, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3044
|
+
hosts > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEFAULT_HOSTS_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.LoadingItems, { count: hosts, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGP7NV6BKcjs.SquareAvatar, { loading: true, variant: "round", size: "sm", "data-loading-item": true }) }) })
|
|
3045
3045
|
] }),
|
|
3046
3046
|
media > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEFAULT_GALLERY_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.LoadingItems, { count: media, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { className: DEFAULT_GALLERY_THUMB, "data-loading-item": true }) }) }),
|
|
3047
3047
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEFAULT_FOOTER, children: actionLabel ? (
|
|
@@ -3208,7 +3208,7 @@ function ProgramEditorialCard({
|
|
|
3208
3208
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "line-clamp-3 min-h-[3lh] text-ods-text-secondary text-h4", children: description }),
|
|
3209
3209
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: EDITORIAL_PERSON_ROW, children: profile && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3210
3210
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3211
|
-
|
|
3211
|
+
_chunkGP7NV6BKcjs.SquareAvatar,
|
|
3212
3212
|
{
|
|
3213
3213
|
...EDITORIAL_PERSON_AVATAR,
|
|
3214
3214
|
src: profile.avatarUrl || void 0,
|
|
@@ -3269,7 +3269,7 @@ function LoadedProgramCard({
|
|
|
3269
3269
|
// Compact densities join plain strings, so the zone rides inline here; the
|
|
3270
3270
|
// default density below renders it as its own styled span instead.
|
|
3271
3271
|
} = programMetaLine(item, config.type, programMetaFormatters(PROGRAM_META_RENDERERS));
|
|
3272
|
-
const compactDate =
|
|
3272
|
+
const compactDate = _chunkGP7NV6BKcjs.formatProgramDate.call(void 0, zonedDate, "medium");
|
|
3273
3273
|
if (size === "portrait") {
|
|
3274
3274
|
const profile = _chunkUN6LC5PKcjs.programItemToStripProfile.call(void 0, item);
|
|
3275
3275
|
const dateMeta = compactMetaLine;
|
|
@@ -3303,7 +3303,7 @@ function LoadedProgramCard({
|
|
|
3303
3303
|
description: item.description,
|
|
3304
3304
|
cover: coverImage || placeholderUrl || null,
|
|
3305
3305
|
eyebrow,
|
|
3306
|
-
date:
|
|
3306
|
+
date: _chunkGP7NV6BKcjs.formatProgramDate.call(void 0, zonedDate, "weekday"),
|
|
3307
3307
|
typeMeta: compactTypeMetaValue,
|
|
3308
3308
|
profile: _chunkUN6LC5PKcjs.programItemToStripProfile.call(void 0, item),
|
|
3309
3309
|
playable: isPlayable,
|
|
@@ -3343,7 +3343,7 @@ function LoadedProgramCard({
|
|
|
3343
3343
|
/* @__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" }) })
|
|
3344
3344
|
] });
|
|
3345
3345
|
}
|
|
3346
|
-
const dateFormat =
|
|
3346
|
+
const dateFormat = _chunkGP7NV6BKcjs.formatProgramDate.call(void 0, zonedDate, "weekday");
|
|
3347
3347
|
const { typeMeta: defaultTypeMeta, audience: defaultAudience } = programMetaLine(
|
|
3348
3348
|
item,
|
|
3349
3349
|
config.type,
|
|
@@ -3374,7 +3374,7 @@ function LoadedProgramCard({
|
|
|
3374
3374
|
return null;
|
|
3375
3375
|
};
|
|
3376
3376
|
const endAt = "end_at" in item && typeof item.end_at === "string" ? item.end_at : null;
|
|
3377
|
-
const dateLabel = _nullishCoalesce(
|
|
3377
|
+
const dateLabel = _nullishCoalesce(_chunkGP7NV6BKcjs.formatProgramDateRange.call(void 0, zonedDate, endAt), () => ( dateFormat));
|
|
3378
3378
|
const cardHeader = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DEFAULT_HEADER, children: [
|
|
3379
3379
|
coverImage && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DEFAULT_COVER_FRAME, children: [
|
|
3380
3380
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -3405,12 +3405,12 @@ function LoadedProgramCard({
|
|
|
3405
3405
|
] }),
|
|
3406
3406
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: DEFAULT_DESCRIPTION, children: item.description }),
|
|
3407
3407
|
tags.length > 0 && // Only some records carry tags: the loading card leaves the row out.
|
|
3408
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEFAULT_TAG_ROW, "data-loading-optional": true, children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3408
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEFAULT_TAG_ROW, "data-loading-optional": true, children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGP7NV6BKcjs.Tag, { as: "span", label: tag, variant: "outline", "data-loading-item": true }, tag)) })
|
|
3409
3409
|
] }),
|
|
3410
3410
|
hosts.length > 0 && // A type whose cards always show hosts (`cardShowsHosts`) draws them while loading; elsewhere only some
|
|
3411
3411
|
// records have hosts, so the row is record-dependent.
|
|
3412
3412
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEFAULT_HOSTS_ROW, "data-loading-optional": config.cardShowsHosts ? void 0 : true, children: hosts.map((host, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3413
|
-
|
|
3413
|
+
_chunkGP7NV6BKcjs.SquareAvatar,
|
|
3414
3414
|
{
|
|
3415
3415
|
variant: "round",
|
|
3416
3416
|
src: host.avatar || void 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkPALMLL5Tcjs = require('./chunk-PALMLL5T.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
|
+
_chunkPALMLL5Tcjs.UnifiedPagination,
|
|
122
122
|
{
|
|
123
123
|
currentPage: displayCurrentPage,
|
|
124
124
|
totalPages: displayTotalPages,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkNRAH3M66cjs = require('./chunk-NRAH3M66.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkY3IMXLLLcjs = require('./chunk-Y3IMXLLL.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk5GJM7VRRcjs = require('./chunk-5GJM7VRR.cjs');
|
|
@@ -44,7 +44,7 @@ function isSummaryData(value) {
|
|
|
44
44
|
}
|
|
45
45
|
function TicketLiveProvider({ children, enabled = true }) {
|
|
46
46
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
47
|
-
const identity =
|
|
47
|
+
const identity = _chunkY3IMXLLLcjs.useChatIdentity.call(void 0, enabled);
|
|
48
48
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
49
49
|
const streamUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _ => _.endpoints, 'access', _2 => _2.ticketStreamUrl]), () => ( TICKET_STREAM_ENDPOINT));
|
|
50
50
|
const readUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _3 => _3.endpoints, 'access', _4 => _4.ticketReadUrl]), () => ( TICKET_READ_ENDPOINT));
|
|
@@ -160,7 +160,7 @@ function TicketLiveProvider({ children, enabled = true }) {
|
|
|
160
160
|
_react2.default.useEffect(() => {
|
|
161
161
|
if (!streamEnabled) return void 0;
|
|
162
162
|
if (typeof window === "undefined") return void 0;
|
|
163
|
-
subscriptionRef.current =
|
|
163
|
+
subscriptionRef.current = _chunkNRAH3M66cjs.createSseSubscription.call(void 0, {
|
|
164
164
|
url: streamUrl,
|
|
165
165
|
onEvent: (name, data) => handlersRef.current.onEvent(name, data),
|
|
166
166
|
onStatusChange: (status) => handlersRef.current.onStatus(status),
|
|
@@ -14,18 +14,18 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkY3IMXLLLcjs = require('./chunk-Y3IMXLLL.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkTUD7BV6Ocjs = require('./chunk-TUD7BV6O.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkIONS6HDFcjs = require('./chunk-IONS6HDF.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
var _chunkSXGDKNVEcjs = require('./chunk-SXGDKNVE.cjs');
|
|
@@ -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 _chunkOKAHKZP2cjs = require('./chunk-OKAHKZP2.cjs');
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
|
|
114
114
|
|
|
115
115
|
|
|
116
|
-
var
|
|
116
|
+
var _chunkJGURZROBcjs = require('./chunk-JGURZROB.cjs');
|
|
117
117
|
|
|
118
118
|
|
|
119
119
|
|
|
@@ -141,7 +141,7 @@ var _chunkUN6LC5PKcjs = require('./chunk-UN6LC5PK.cjs');
|
|
|
141
141
|
|
|
142
142
|
|
|
143
143
|
|
|
144
|
-
var
|
|
144
|
+
var _chunkGP7NV6BKcjs = require('./chunk-GP7NV6BK.cjs');
|
|
145
145
|
|
|
146
146
|
|
|
147
147
|
|
|
@@ -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 = _chunkJGURZROBcjs.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;
|
|
@@ -227,7 +227,7 @@ function ChatMessageRowLoaded(props) {
|
|
|
227
227
|
AVATAR_BOX_CLASS,
|
|
228
228
|
"flex items-center justify-center border border-ods-border bg-ods-bg text-ods-text-primary text-h6"
|
|
229
229
|
),
|
|
230
|
-
children:
|
|
230
|
+
children: _chunkGP7NV6BKcjs.personInitials.call(void 0, displayName) || "?"
|
|
231
231
|
}
|
|
232
232
|
),
|
|
233
233
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTENT_CLASS, children: [
|
|
@@ -329,7 +329,7 @@ function ChatTurnSkeleton({
|
|
|
329
329
|
className
|
|
330
330
|
}) {
|
|
331
331
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, TURN_ROW_CLASS, className), "aria-hidden": true, children: [
|
|
332
|
-
avatarPx ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
332
|
+
avatarPx ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGP7NV6BKcjs.SquareAvatar, { loading: true, sizePx: avatarPx, variant: avatarShape }) : null,
|
|
333
333
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TURN_BODY_CLASS, children: [
|
|
334
334
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatTurnNameSkeleton, { nameSize, meta, time }),
|
|
335
335
|
_nullishCoalesce(body, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { lines, type: "h4" })))
|
|
@@ -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 = _chunkJGURZROBcjs.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 && _chunkY3IMXLLLcjs.byKey.call(void 0, claimedOwner) ? claimedOwner : null;
|
|
2042
|
+
const origin = owner ? _chunkY3IMXLLLcjs.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 = _chunkY3IMXLLLcjs.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(_chunkY3IMXLLLcjs.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
|
+
...{ [_chunkY3IMXLLLcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" },
|
|
2582
2582
|
variant: field ? "glyph" : "transparent",
|
|
2583
2583
|
size: "wrap",
|
|
2584
2584
|
font: "regular",
|
|
@@ -2624,7 +2624,7 @@ function MingoAiButton({
|
|
|
2624
2624
|
children: icon
|
|
2625
2625
|
}
|
|
2626
2626
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2627
|
-
|
|
2627
|
+
_chunkTUD7BV6Ocjs.AgentMark,
|
|
2628
2628
|
{
|
|
2629
2629
|
agent: "mingo",
|
|
2630
2630
|
className: _chunk6YZNUHXTcjs.cn.call(void 0, "relative shrink-0 text-ods-text-primary", field ? "size-6" : "size-5")
|
|
@@ -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 } = _chunkOKAHKZP2cjs.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
|
}
|
|
@@ -2796,7 +2796,7 @@ function useAskSurface({
|
|
|
2796
2796
|
// src/components/chat/ask-prompts.tsx
|
|
2797
2797
|
|
|
2798
2798
|
function AssistantGlyph({ icon, className }) {
|
|
2799
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full", className), children: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2799
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full", className), children: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTUD7BV6Ocjs.AgentMark, { agent: "mingo", className: "size-full" }))) });
|
|
2800
2800
|
}
|
|
2801
2801
|
var slotCount = (count, loading, prompts) => _nullishCoalesce(count, () => ( (loading ? ASK_PROMPTS_DEFAULT_COUNT : prompts.length)));
|
|
2802
2802
|
var SKELETON_LABEL_CH = [26, 22, 30, 24, 20, 28];
|
|
@@ -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 ? { [_chunkY3IMXLLLcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" } : {},
|
|
2823
2823
|
children: (loading || prompt) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2824
|
-
|
|
2824
|
+
_chunkY3IMXLLLcjs.QuickActionChipButton,
|
|
2825
2825
|
{
|
|
2826
2826
|
loading,
|
|
2827
2827
|
variant: "question",
|
|
@@ -2859,7 +2859,7 @@ function AskPrompts({
|
|
|
2859
2859
|
if (!loading && prompts.length === 0) return null;
|
|
2860
2860
|
const end = align === "end";
|
|
2861
2861
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2862
|
-
|
|
2862
|
+
_chunkIONS6HDFcjs.ScrollShadow,
|
|
2863
2863
|
{
|
|
2864
2864
|
axis: "horizontal",
|
|
2865
2865
|
color: fadeColor,
|
|
@@ -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
|
+
_chunkY3IMXLLLcjs.QuickActionWall,
|
|
3035
3035
|
{
|
|
3036
3036
|
chips,
|
|
3037
3037
|
mode,
|
|
@@ -3064,13 +3064,13 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
|
3064
3064
|
({ className, ticket, onClick, loading: loadingProp = false, ...props }, ref) => {
|
|
3065
3065
|
const loading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
3066
3066
|
if (!loading && !ticket) return null;
|
|
3067
|
-
const statusTagProps = ticket ?
|
|
3067
|
+
const statusTagProps = ticket ? _chunkTUD7BV6Ocjs.resolveStatusTagProps.call(void 0, {
|
|
3068
3068
|
status: ticket.status,
|
|
3069
3069
|
statusKind: ticket.statusKind,
|
|
3070
3070
|
statusName: ticket.statusLabel,
|
|
3071
3071
|
statusColor: ticket.statusColor
|
|
3072
3072
|
}) : null;
|
|
3073
|
-
const isResolved = !!ticket && (ticket.statusKind === "RESOLVED" ||
|
|
3073
|
+
const isResolved = !!ticket && (ticket.statusKind === "RESOLVED" || _chunkTUD7BV6Ocjs.resolveTicketStatus.call(void 0, ticket.status) === "RESOLVED");
|
|
3074
3074
|
const composedSubtitle = ticket ? [ticket.ticketNumber, ticket.category, ticket.timeAgo].filter(Boolean).join(" \u2022 ") : "";
|
|
3075
3075
|
const subtitle = _nullishCoalesce(_optionalChain([ticket, 'optionalAccess', _117 => _117.subtitle]), () => ( (_optionalChain([ticket, 'optionalAccess', _118 => _118.unread]) ? UNREAD_NOTICE : composedSubtitle)));
|
|
3076
3076
|
const unread = !!_optionalChain([ticket, 'optionalAccess', _119 => _119.unread]);
|
|
@@ -3097,7 +3097,7 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
|
3097
3097
|
)
|
|
3098
3098
|
] }) }),
|
|
3099
3099
|
_optionalChain([ticket, 'optionalAccess', _120 => _120.linkedTaskLabel]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3100
|
-
|
|
3100
|
+
_chunkGP7NV6BKcjs.Tag,
|
|
3101
3101
|
{
|
|
3102
3102
|
"data-loading-optional": true,
|
|
3103
3103
|
label: ticket.linkedTaskLabel,
|
|
@@ -3106,7 +3106,7 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
|
3106
3106
|
className: "hidden shrink-0 sm:inline-flex"
|
|
3107
3107
|
}
|
|
3108
3108
|
),
|
|
3109
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3109
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTUD7BV6Ocjs.TicketStatusTag, { status: "", loading: true, className: "w-20" }) : statusTagProps && (statusTagProps.status || statusTagProps.label) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTUD7BV6Ocjs.TicketStatusTag, { ...statusTagProps }),
|
|
3110
3110
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3111
3111
|
"div",
|
|
3112
3112
|
{
|
|
@@ -3151,7 +3151,7 @@ var ChatTicketList = _react.forwardRef.call(void 0,
|
|
|
3151
3151
|
...props
|
|
3152
3152
|
}, ref) => {
|
|
3153
3153
|
const isLoading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || isLoadingProp;
|
|
3154
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
3154
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkIONS6HDFcjs.useScrollFade.call(void 0, );
|
|
3155
3155
|
if (!isLoading && tickets.length === 0) return null;
|
|
3156
3156
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk6YZNUHXTcjs.cn.call(void 0, "flex min-h-0 flex-col gap-2", className), ...props, children: [
|
|
3157
3157
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "shrink-0 text-ods-text-secondary text-h5", children: "Your Chats:" }),
|
|
@@ -3165,8 +3165,8 @@ var ChatTicketList = _react.forwardRef.call(void 0,
|
|
|
3165
3165
|
),
|
|
3166
3166
|
children: [
|
|
3167
3167
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: scrollRef, className: "h-full overflow-y-auto overscroll-contain", onScroll: updateFade, children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.LoadingItems, { count: skeletonCount, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatTicketItem, { loading: true, "data-loading-item": true }) }) : tickets.map((ticket) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatTicketItem, { ticket, onClick: onTicketClick, "data-loading-item": true }, ticket.id)) }),
|
|
3168
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3169
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3168
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ScrollFadeOverlay, { edge: "top", visible: !isLoading && fadeTop }),
|
|
3169
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ScrollFadeOverlay, { edge: "bottom", visible: !isLoading && fadeBottom })
|
|
3170
3170
|
]
|
|
3171
3171
|
}
|
|
3172
3172
|
)
|
|
@@ -3187,7 +3187,7 @@ var DialogListItem = _react.forwardRef.call(void 0,
|
|
|
3187
3187
|
_optionalChain([onClick, 'optionalCall', _123 => _123(e)]);
|
|
3188
3188
|
};
|
|
3189
3189
|
const formatTimestamp = (timestamp) => {
|
|
3190
|
-
return
|
|
3190
|
+
return _chunkGP7NV6BKcjs.formatDateWithTimezone.call(void 0, timestamp, _chunkGP7NV6BKcjs.VIEWER_TIMEZONE, "numericDateTime24h");
|
|
3191
3191
|
};
|
|
3192
3192
|
const unread = loading ? 0 : _nullishCoalesce(dialog.unreadMessagesCount, () => ( 0));
|
|
3193
3193
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -3246,7 +3246,7 @@ var ChatSidebar = _react.forwardRef.call(void 0,
|
|
|
3246
3246
|
hasNextPage,
|
|
3247
3247
|
isFetchingNextPage,
|
|
3248
3248
|
onLoadMore,
|
|
3249
|
-
pageSize =
|
|
3249
|
+
pageSize = _chunkY3IMXLLLcjs.CHAT_HISTORY_PAGE_SIZE,
|
|
3250
3250
|
...props
|
|
3251
3251
|
}, ref) => {
|
|
3252
3252
|
const loading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || !!isLoading && dialogs.length === 0 && !children;
|
|
@@ -3364,7 +3364,7 @@ var ChatTopNavigation = _react.forwardRef.call(void 0,
|
|
|
3364
3364
|
),
|
|
3365
3365
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-[var(--spacing-system-m)] px-[var(--spacing-system-m)]", children: [
|
|
3366
3366
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3367
|
-
|
|
3367
|
+
_chunkGP7NV6BKcjs.SquareAvatar,
|
|
3368
3368
|
{
|
|
3369
3369
|
loading: isLoading,
|
|
3370
3370
|
src: _nullishCoalesce(avatarUrl, () => ( void 0)),
|
|
@@ -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, _chunkJGURZROBcjs.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, _chunkY3IMXLLLcjs.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,
|
|
@@ -3608,7 +3608,7 @@ function parseChannelFromUrl(url) {
|
|
|
3608
3608
|
function SlackMessageCard({ item, variant = "compact", className, anchorProps }) {
|
|
3609
3609
|
if (_chunk6YZNUHXTcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SlackMessageCardSkeleton, { variant, className });
|
|
3610
3610
|
const channel = _nullishCoalesce(_nullishCoalesce(item.channel, () => ( parseChannelFromUrl(item.url))), () => ( null));
|
|
3611
|
-
const dateText =
|
|
3611
|
+
const dateText = _chunkGP7NV6BKcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
3612
3612
|
if (variant === "row") {
|
|
3613
3613
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
3614
3614
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWDRZM73cjs.SlackIcon, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
@@ -3706,7 +3706,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3706
3706
|
if (_chunk6YZNUHXTcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HubspotTicketCardSkeleton, { variant, className });
|
|
3707
3707
|
const statusText = _nullishCoalesce(item.statusLabel, () => ( formatToken(item.status)));
|
|
3708
3708
|
const priorityText = formatToken(item.priority);
|
|
3709
|
-
const dateText =
|
|
3709
|
+
const dateText = _chunkGP7NV6BKcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
3710
3710
|
if (variant === "row") {
|
|
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 }),
|
|
@@ -3840,7 +3840,7 @@ function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
|
3840
3840
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUN6LC5PKcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3841
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
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 ?
|
|
3843
|
+
campaign.start_date ? _chunkJGURZROBcjs.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 ") }) }),
|
|
@@ -3862,7 +3862,7 @@ function CampaignCardAdminSkeleton({ className }) {
|
|
|
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
3864
|
const href = _chunkUN6LC5PKcjs.safeHref.call(void 0, item.url);
|
|
3865
|
-
const dateText =
|
|
3865
|
+
const dateText = _chunkGP7NV6BKcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
3866
3866
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3867
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: [
|
|
@@ -5018,7 +5018,7 @@ function InfoHint({ children, label, side = "top", className }) {
|
|
|
5018
5018
|
const describedById = _react.useId.call(void 0, );
|
|
5019
5019
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "inline-flex shrink-0 items-center", className), children: [
|
|
5020
5020
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5021
|
-
|
|
5021
|
+
_chunkGP7NV6BKcjs.FloatingTooltip,
|
|
5022
5022
|
{
|
|
5023
5023
|
content: children,
|
|
5024
5024
|
side,
|
|
@@ -5136,7 +5136,7 @@ function Section({ title, description, children }) {
|
|
|
5136
5136
|
] });
|
|
5137
5137
|
}
|
|
5138
5138
|
function ProxyCredentialsPanel({ description }) {
|
|
5139
|
-
const hydrated =
|
|
5139
|
+
const hydrated = _chunkY3IMXLLLcjs.useIsHydrated.call(void 0, );
|
|
5140
5140
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5141
5141
|
ProxyCredentialsForm,
|
|
5142
5142
|
{
|
|
@@ -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-INYF23ST.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, () => _chunkY3IMXLLLcjs.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 (_chunkY3IMXLLLcjs.askAiOpenIsHeld.call(void 0, )) queueMicrotask(start);
|
|
5313
|
+
for (const name of _chunkY3IMXLLLcjs.ASK_AI_OPEN_EVENTS) window.addEventListener(name, start);
|
|
5314
|
+
const cancel = _chunkY3IMXLLLcjs.onAskAiIntent.call(void 0, start);
|
|
5315
5315
|
return () => {
|
|
5316
5316
|
cancel();
|
|
5317
|
-
for (const name of
|
|
5317
|
+
for (const name of _chunkY3IMXLLLcjs.ASK_AI_OPEN_EVENTS) window.removeEventListener(name, start);
|
|
5318
5318
|
};
|
|
5319
5319
|
}, [load]);
|
|
5320
5320
|
if (!load) return null;
|