@flamingo-stack/openframe-frontend-core 0.0.744 → 0.0.746
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-LJ46XYYP.cjs → chunk-2ZVNXD74.cjs} +24 -24
- package/dist/{chunk-FTYQS6VI.cjs → chunk-3AUTORMB.cjs} +13 -13
- package/dist/{chunk-2JRCJV3M.cjs → chunk-3KVB5FQZ.cjs} +5 -5
- package/dist/{chunk-2UBR53AN.cjs → chunk-3OAACQQG.cjs} +4 -4
- package/dist/{chunk-QSO56JZ2.cjs → chunk-5X3F2KL7.cjs} +90 -90
- package/dist/{chunk-AT6ZI4CO.cjs → chunk-7AKFKPBV.cjs} +12 -12
- package/dist/{chunk-4N7KGOBS.cjs → chunk-B24U6KNJ.cjs} +3 -3
- package/dist/{chunk-H62FNZGG.cjs → chunk-DJ4YDVBF.cjs} +18 -18
- package/dist/{chunk-QZYF2YQ3.cjs → chunk-FAN73OTP.cjs} +6 -6
- package/dist/{chunk-HJ4KGA2M.cjs → chunk-GPSHFEF2.cjs} +1084 -890
- package/dist/{chunk-OC2LBQQJ.cjs → chunk-GSFANY2L.cjs} +80 -80
- package/dist/{chunk-URVIPSAJ.cjs → chunk-HNLI4OU5.cjs} +14 -14
- package/dist/{chunk-PYWHDPVC.cjs → chunk-IRKUFXVV.cjs} +38 -38
- package/dist/{chunk-ABLUMGCI.cjs → chunk-JHQNUWFM.cjs} +83 -33
- package/dist/{chunk-4A6OF4HI.cjs → chunk-KVPSV4ZI.cjs} +44 -44
- package/dist/{chunk-UY6A6TEY.cjs → chunk-L2IQESTQ.cjs} +2 -2
- package/dist/{chunk-YIOWV7LS.cjs → chunk-NZMQIAQC.cjs} +2 -2
- package/dist/{chunk-YJRMCFX3.cjs → chunk-O4J4NIMB.cjs} +7 -7
- package/dist/{chunk-GAGNKWOC.cjs → chunk-OWABNVDV.cjs} +2 -2
- package/dist/{chunk-HTQJYN47.cjs → chunk-PLBJ3XVC.cjs} +32 -32
- package/dist/{chunk-OWGLRE74.cjs → chunk-PSIKUDUV.cjs} +8 -8
- package/dist/{chunk-NURAL5HD.cjs → chunk-SDDZHPVK.cjs} +24 -24
- package/dist/{chunk-HHL23RFC.cjs → chunk-SLODGX6D.cjs} +35 -35
- package/dist/{chunk-7YDF3QBN.cjs → chunk-TILK7SC4.cjs} +320 -207
- package/dist/{chunk-U2O5YQRP.cjs → chunk-U6XWGK53.cjs} +33 -33
- package/dist/{chunk-JGZEHBBD.cjs → chunk-VZGCSVH7.cjs} +10 -10
- package/dist/{chunk-35IQLGV3.cjs → chunk-X4Y74M5K.cjs} +74 -74
- package/dist/{chunk-HMSUYWSB.cjs → chunk-XQJOYPPN.cjs} +4 -4
- package/dist/{chunk-65LJNDR2.cjs → chunk-YKF66VQY.cjs} +20 -20
- package/dist/{chunk-5TCIRWHL.cjs → chunk-YRULLK7N.cjs} +5 -5
- package/dist/{cloud-tenants-JPXAXSPE.cjs → cloud-tenants-OKUFSNPW.cjs} +13 -13
- package/dist/components/case-studies/index.cjs +25 -25
- package/dist/components/chat/index.cjs +9 -9
- package/dist/components/contact/index.cjs +14 -14
- package/dist/components/docs/index.cjs +17 -17
- package/dist/components/embeds/index.cjs +14 -14
- package/dist/components/embeds/reddit-embed-client.d.ts +3 -1
- package/dist/components/embeds/reddit-embed-client.d.ts.map +1 -1
- package/dist/components/embeds/reddit-embed-client.js +5 -3
- package/dist/components/embeds/twitter-embed-client.d.ts +3 -1
- package/dist/components/embeds/twitter-embed-client.d.ts.map +1 -1
- package/dist/components/embeds/twitter-embed-client.js +5 -3
- package/dist/components/faq/index.cjs +15 -15
- package/dist/components/features/index.cjs +13 -13
- package/dist/components/help-center-pages/index.cjs +116 -116
- package/dist/components/index.cjs +123 -125
- package/dist/components/meeting-scheduler/index.cjs +63 -63
- package/dist/components/navigation/index.cjs +16 -16
- package/dist/components/onboarding-guides/index.cjs +16 -16
- package/dist/components/product-demo/index.cjs +9 -9
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/tickets/index.cjs +19 -19
- package/dist/components/ui/filter-checkbox-item.d.ts +8 -2
- package/dist/components/ui/filter-checkbox-item.d.ts.map +1 -1
- package/dist/components/ui/filter-checkbox-item.js +14 -4
- package/dist/components/ui/index.cjs +17 -13
- 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 +1 -0
- package/dist/components/ui/markdown/base-components.d.ts.map +1 -1
- package/dist/components/ui/markdown/base-components.js +3 -2
- package/dist/components/ui/markdown/rich/embed-overrides.d.ts.map +1 -1
- package/dist/components/ui/markdown/rich/embed-overrides.js +11 -8
- package/dist/components/ui/markdown-editor.d.ts.map +1 -1
- package/dist/components/ui/markdown-editor.js +4 -0
- package/dist/components/ui/markdown-link-command.d.ts +37 -0
- package/dist/components/ui/markdown-link-command.d.ts.map +1 -0
- package/dist/components/ui/markdown-link-command.js +180 -0
- package/dist/components/unified-filter-logic.js +1 -1
- package/dist/components/vendor-tag.d.ts +12 -0
- package/dist/components/vendor-tag.d.ts.map +1 -1
- package/dist/components/vendor-tag.js +50 -47
- package/dist/{devices-ONC4JOVH.cjs → devices-URCDMYFU.cjs} +14 -14
- package/dist/{embeddable-chat-7ZEGCDVF.cjs → embeddable-chat-B35GB5B6.cjs} +80 -80
- package/dist/index.cjs +36 -18
- package/dist/{knowledge-G7XU5YST.cjs → knowledge-5MW2PREQ.cjs} +14 -14
- package/dist/{logs-5B7NY4G6.cjs → logs-LJJK5CK4.cjs} +21 -21
- package/dist/{policies-OYR3SLJN.cjs → policies-6TCEWQYG.cjs} +17 -17
- package/dist/{remote-session-N4PJB5FW.cjs → remote-session-IYT4LWJC.cjs} +7 -7
- package/dist/{scripts-6CWHTY6U.cjs → scripts-ABB2P6PT.cjs} +20 -20
- package/dist/{software-update-AJPIY4SQ.cjs → software-update-4427ZRMO.cjs} +17 -17
- package/dist/{tickets-board-O753S4ZB.cjs → tickets-board-4MT6ZB4F.cjs} +8 -8
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/format.js +2 -3
- package/dist/utils/index.cjs +193 -28
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +9 -6
- package/dist/utils/markdown-link.d.ts +44 -0
- package/dist/utils/markdown-link.d.ts.map +1 -0
- package/dist/utils/markdown-link.js +83 -0
- package/dist/utils/markdown-to-plain.d.ts +3 -16
- package/dist/utils/markdown-to-plain.d.ts.map +1 -1
- package/dist/utils/markdown-to-plain.js +33 -3
- package/dist/utils/vendor-classification.d.ts +43 -17
- package/dist/utils/vendor-classification.d.ts.map +1 -1
- package/dist/utils/vendor-classification.js +73 -22
- package/package.json +3 -1
- package/src/components/embeds/reddit-embed-client.tsx +7 -3
- package/src/components/embeds/twitter-embed-client.tsx +7 -3
- package/src/components/ui/filter-checkbox-item.tsx +21 -5
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/markdown/base-components.tsx +5 -2
- package/src/components/ui/markdown/rich/embed-overrides.tsx +12 -9
- package/src/components/ui/markdown-editor.tsx +6 -0
- package/src/components/ui/markdown-link-command.tsx +252 -0
- package/src/components/unified-filter-logic.tsx +1 -1
- package/src/components/vendor-tag.tsx +73 -69
- package/src/utils/format.ts +2 -3
- package/src/utils/index.ts +8 -5
- package/src/utils/markdown-link.ts +148 -0
- package/src/utils/markdown-to-plain.ts +64 -22
- package/src/utils/vendor-classification.ts +113 -34
- package/dist/utils/format-text-stub.d.ts +0 -5
- package/dist/utils/format-text-stub.d.ts.map +0 -1
- package/dist/utils/format-text-stub.js +0 -20
- package/src/utils/format-text-stub.ts +0 -17
|
@@ -15,7 +15,7 @@ var _chunkQYLIHZKZcjs = require('./chunk-QYLIHZKZ.cjs');
|
|
|
15
15
|
var _chunk63N4FN5Vcjs = require('./chunk-63N4FN5V.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkL2IQESTQcjs = require('./chunk-L2IQESTQ.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -27,7 +27,7 @@ var _chunkUY6A6TEYcjs = require('./chunk-UY6A6TEY.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkJHQNUWFMcjs = require('./chunk-JHQNUWFM.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
var _chunk32ASZMTVcjs = require('./chunk-32ASZMTV.cjs');
|
|
@@ -912,7 +912,7 @@ function escapeRegExp(value) {
|
|
|
912
912
|
function formatDayHead(dateString, style) {
|
|
913
913
|
const ymd = splitYmd(dateString);
|
|
914
914
|
if (!ymd) return dateString;
|
|
915
|
-
return
|
|
915
|
+
return _chunkJHQNUWFMcjs.formatDateWithTimezone.call(void 0, ymd.join("-"), null, style) || dateString;
|
|
916
916
|
}
|
|
917
917
|
function splitYmd(dateString) {
|
|
918
918
|
const head = dateString.split("T")[0];
|
|
@@ -1367,9 +1367,9 @@ function programMetaFormatters(fmt, opts = {}) {
|
|
|
1367
1367
|
|
|
1368
1368
|
// src/utils/program-meta-renderers.ts
|
|
1369
1369
|
var PROGRAM_META_RENDERERS = {
|
|
1370
|
-
date:
|
|
1371
|
-
duration:
|
|
1372
|
-
webinarMeta:
|
|
1370
|
+
date: _chunkJHQNUWFMcjs.formatProgramDate,
|
|
1371
|
+
duration: _chunkJHQNUWFMcjs.formatDurationCompact,
|
|
1372
|
+
webinarMeta: _chunkJHQNUWFMcjs.formatWebinarTimeMeta
|
|
1373
1373
|
};
|
|
1374
1374
|
|
|
1375
1375
|
// src/components/chat/utils/chat-nav-resolution.ts
|
|
@@ -1487,11 +1487,11 @@ function EntityMetadataAuthorCell({
|
|
|
1487
1487
|
const fullName = trimmedName || "Unknown Author";
|
|
1488
1488
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex items-center gap-3 p-4 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
1489
1489
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1490
|
-
|
|
1490
|
+
_chunkJHQNUWFMcjs.SquareAvatar,
|
|
1491
1491
|
{
|
|
1492
1492
|
src: author.avatar_url || "",
|
|
1493
1493
|
alt: fullName,
|
|
1494
|
-
fallback:
|
|
1494
|
+
fallback: _chunkJHQNUWFMcjs.nameInitials.call(void 0, fullName, ""),
|
|
1495
1495
|
size: "md",
|
|
1496
1496
|
variant: "round"
|
|
1497
1497
|
}
|
|
@@ -1515,7 +1515,7 @@ function EntityAuthorCard({
|
|
|
1515
1515
|
const hasAuthor = !!_optionalChain([author, 'optionalAccess', _33 => _33.full_name]);
|
|
1516
1516
|
if (!hasAuthor && !renderEmptyAuthor) return null;
|
|
1517
1517
|
const effectiveAuthor = hasAuthor ? author : EMPTY_AUTHOR_PLACEHOLDER;
|
|
1518
|
-
const formatted = publishedAt ?
|
|
1518
|
+
const formatted = publishedAt ? _chunkJHQNUWFMcjs.formatDate.call(void 0, publishedAt) : "";
|
|
1519
1519
|
const dateLabel = formatted === "Invalid Date" ? "" : formatted;
|
|
1520
1520
|
const showDateCell = !!dateLabel;
|
|
1521
1521
|
const extras = _nullishCoalesce(extraCells, () => ( []));
|
|
@@ -2184,7 +2184,7 @@ function ProductReleaseCard({
|
|
|
2184
2184
|
] }) }, `${cell.label}-${i}`)),
|
|
2185
2185
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3 p-4", children: [
|
|
2186
2186
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2187
|
-
|
|
2187
|
+
_chunkJHQNUWFMcjs.SquareAvatar,
|
|
2188
2188
|
{
|
|
2189
2189
|
src: _nullishCoalesce(effectiveAuthor.avatar_url, () => ( void 0)),
|
|
2190
2190
|
alt: effectiveAuthor.full_name,
|
|
@@ -2521,7 +2521,7 @@ function BlogCard({
|
|
|
2521
2521
|
});
|
|
2522
2522
|
const { src: displayImage, onError: onImageError } = useCoverImageFallback(post.featured_image, placeholderUrl);
|
|
2523
2523
|
if (size === "sm") {
|
|
2524
|
-
const dateStr2 = post.published_at ?
|
|
2524
|
+
const dateStr2 = post.published_at ? _chunkJHQNUWFMcjs.formatDateWithTimezone.call(void 0, post.published_at, null, "medium") : "";
|
|
2525
2525
|
const firstCategory = _optionalChain([post, 'access', _57 => _57.categories, 'optionalAccess', _58 => _58.find, 'call', _59 => _59((c) => c && c.name), 'optionalAccess', _60 => _60.name]);
|
|
2526
2526
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target, rel, className: _chunk3ATAYP36cjs.cn.call(void 0, COMPACT_CARD_OUTER, className), children: [
|
|
2527
2527
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_IMAGE_SLOT, children: displayImage ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2551,7 +2551,7 @@ function BlogCard({
|
|
|
2551
2551
|
] });
|
|
2552
2552
|
}
|
|
2553
2553
|
if (size === "portrait") {
|
|
2554
|
-
const dateStr2 = post.published_at ?
|
|
2554
|
+
const dateStr2 = post.published_at ? _chunkJHQNUWFMcjs.formatDateWithTimezone.call(void 0, post.published_at, null, "medium") : "";
|
|
2555
2555
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2556
2556
|
EntityPortraitCard,
|
|
2557
2557
|
{
|
|
@@ -2572,7 +2572,7 @@ function BlogCard({
|
|
|
2572
2572
|
}
|
|
2573
2573
|
);
|
|
2574
2574
|
}
|
|
2575
|
-
const dateStr = post.published_at ?
|
|
2575
|
+
const dateStr = post.published_at ? _chunkJHQNUWFMcjs.formatDateWithTimezone.call(void 0, post.published_at, null, "medium") : "";
|
|
2576
2576
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "article", { className: _chunk3ATAYP36cjs.cn.call(void 0, CONTENT_CARD_FRAME_CLASS, "flex h-full flex-col", 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: [
|
|
2577
2577
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative aspect-[1200/630] w-full overflow-hidden bg-ods-bg", children: displayImage ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2578
2578
|
_chunkHOTM4UM6cjs.next_image_default,
|
|
@@ -3072,7 +3072,7 @@ function CustomerInterviewCard({
|
|
|
3072
3072
|
// src/components/chat/types/entities/investor-update.ts
|
|
3073
3073
|
function formatInvestorUpdatePeriod(start, end, options) {
|
|
3074
3074
|
if (!start && !end) return "";
|
|
3075
|
-
const fmt = (d) =>
|
|
3075
|
+
const fmt = (d) => _chunkJHQNUWFMcjs.formatDateWithTimezone.call(void 0, d, null, _optionalChain([options, 'optionalAccess', _128 => _128.monthFormat]) === "long" ? "monthYear" : "monthYearShort") || "?";
|
|
3076
3076
|
const s = start ? fmt(start) : "?";
|
|
3077
3077
|
const e = end ? fmt(end) : "?";
|
|
3078
3078
|
return `${s} - ${e}`;
|
|
@@ -3319,7 +3319,7 @@ function OnboardingGuideCard({
|
|
|
3319
3319
|
const coverImage = guide.featured_image || guide.main_video_thumbnail || guide.og_image_url || null;
|
|
3320
3320
|
const hasVideoCover = !!(guide.main_video_thumbnail || guide.highlight_video_thumbnail);
|
|
3321
3321
|
const stepLabel = typeof guide.step_order === "number" ? String(guide.step_order).padStart(2, "0") : "\u2014";
|
|
3322
|
-
const durationLabel = typeof guide.highlight_video_duration_ms === "number" && guide.highlight_video_duration_ms > 0 ?
|
|
3322
|
+
const durationLabel = typeof guide.highlight_video_duration_ms === "number" && guide.highlight_video_duration_ms > 0 ? _chunkJHQNUWFMcjs.formatDurationMMSS.call(void 0, Math.floor(guide.highlight_video_duration_ms / 1e3)) : "";
|
|
3323
3323
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3324
3324
|
_chunkV45KLJQPcjs.next_link_default,
|
|
3325
3325
|
{
|
|
@@ -3687,7 +3687,7 @@ function RoadmapCard({
|
|
|
3687
3687
|
]
|
|
3688
3688
|
}
|
|
3689
3689
|
) : null,
|
|
3690
|
-
item.assignees && item.assignees.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3690
|
+
item.assignees && item.assignees.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL2IQESTQcjs.AvatarStack, { size: "xs", people: assigneePeople(item.assignees), className: "shrink-0" }) : null
|
|
3691
3691
|
] }),
|
|
3692
3692
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_SUMMARY, children: item.description || COMPACT_CARD_ROW_FILLER }) })
|
|
3693
3693
|
] })
|
|
@@ -3774,7 +3774,7 @@ function RoadmapCard({
|
|
|
3774
3774
|
)
|
|
3775
3775
|
] }),
|
|
3776
3776
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
3777
|
-
item.assignees && item.assignees.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3777
|
+
item.assignees && item.assignees.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL2IQESTQcjs.AvatarStack, { size: "xs", people: assigneePeople(item.assignees), className: "shrink-0" }) : null,
|
|
3778
3778
|
item.screenshots && item.screenshots.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3779
3779
|
_chunk2QMBXGMQcjs.Button,
|
|
3780
3780
|
{
|
|
@@ -4035,7 +4035,7 @@ function ProgramEditorialCard({
|
|
|
4035
4035
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "line-clamp-3 min-h-[3lh] text-ods-text-secondary text-h4", children: description }),
|
|
4036
4036
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: EDITORIAL_PERSON_ROW, children: profile && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4037
4037
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4038
|
-
|
|
4038
|
+
_chunkJHQNUWFMcjs.SquareAvatar,
|
|
4039
4039
|
{
|
|
4040
4040
|
variant: "round",
|
|
4041
4041
|
src: profile.avatarUrl || void 0,
|
|
@@ -4095,7 +4095,7 @@ function ProgramCard({
|
|
|
4095
4095
|
// Compact densities join plain strings, so the zone rides inline here; the
|
|
4096
4096
|
// default density below renders it as its own styled span instead.
|
|
4097
4097
|
} = programMetaLine(item, config.type, programMetaFormatters(PROGRAM_META_RENDERERS));
|
|
4098
|
-
const compactDate =
|
|
4098
|
+
const compactDate = _chunkJHQNUWFMcjs.formatProgramDate.call(void 0, zonedDate, "medium");
|
|
4099
4099
|
if (size === "portrait") {
|
|
4100
4100
|
const profile = programItemToStripProfile(item);
|
|
4101
4101
|
const dateMeta = compactMetaLine;
|
|
@@ -4128,7 +4128,7 @@ function ProgramCard({
|
|
|
4128
4128
|
description: item.description,
|
|
4129
4129
|
cover: coverImage || placeholderUrl || null,
|
|
4130
4130
|
eyebrow,
|
|
4131
|
-
date:
|
|
4131
|
+
date: _chunkJHQNUWFMcjs.formatProgramDate.call(void 0, zonedDate, "weekday"),
|
|
4132
4132
|
typeMeta: compactTypeMetaValue,
|
|
4133
4133
|
profile: programItemToStripProfile(item),
|
|
4134
4134
|
playable: isPlayable,
|
|
@@ -4156,7 +4156,7 @@ function ProgramCard({
|
|
|
4156
4156
|
/* @__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" }) })
|
|
4157
4157
|
] });
|
|
4158
4158
|
}
|
|
4159
|
-
const dateFormat =
|
|
4159
|
+
const dateFormat = _chunkJHQNUWFMcjs.formatProgramDate.call(void 0, zonedDate, "weekday");
|
|
4160
4160
|
const { typeMeta: defaultTypeMeta, audience: defaultAudience } = programMetaLine(
|
|
4161
4161
|
item,
|
|
4162
4162
|
config.type,
|
|
@@ -4187,7 +4187,7 @@ function ProgramCard({
|
|
|
4187
4187
|
return null;
|
|
4188
4188
|
};
|
|
4189
4189
|
const endAt = "end_at" in item && typeof item.end_at === "string" ? item.end_at : null;
|
|
4190
|
-
const dateLabel = _nullishCoalesce(
|
|
4190
|
+
const dateLabel = _nullishCoalesce(_chunkJHQNUWFMcjs.formatProgramDateRange.call(void 0, zonedDate, endAt), () => ( dateFormat));
|
|
4191
4191
|
const cardHeader = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DEFAULT_HEADER, children: [
|
|
4192
4192
|
coverImage && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DEFAULT_COVER_FRAME, children: [
|
|
4193
4193
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4216,10 +4216,10 @@ function ProgramCard({
|
|
|
4216
4216
|
] })
|
|
4217
4217
|
] }),
|
|
4218
4218
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: DEFAULT_DESCRIPTION, children: item.description }),
|
|
4219
|
-
tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEFAULT_TAG_ROW, children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4219
|
+
tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEFAULT_TAG_ROW, children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJHQNUWFMcjs.Tag, { as: "span", label: tag, variant: "outline" }, tag)) })
|
|
4220
4220
|
] }),
|
|
4221
4221
|
hosts.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2 md:justify-end", children: hosts.map((host, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4222
|
-
|
|
4222
|
+
_chunkJHQNUWFMcjs.SquareAvatar,
|
|
4223
4223
|
{
|
|
4224
4224
|
variant: "round",
|
|
4225
4225
|
src: host.avatar || void 0,
|
|
@@ -5,12 +5,12 @@ var _chunk4FWURR3Wcjs = require('./chunk-4FWURR3W.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkGSFANY2Lcjs = require('./chunk-GSFANY2L.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkTILK7SC4cjs = require('./chunk-TILK7SC4.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 _chunkVZGCSVH7cjs = require('./chunk-VZGCSVH7.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunk2ZVNXD74cjs = require('./chunk-2ZVNXD74.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunkASMNNSUQcjs = require('./chunk-ASMNNSUQ.cjs');
|
|
@@ -57,7 +57,7 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
57
57
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
58
58
|
"div",
|
|
59
59
|
{
|
|
60
|
-
id:
|
|
60
|
+
id: _chunkTILK7SC4cjs.faqItemAnchor.call(void 0, item.id),
|
|
61
61
|
className: "scroll-mt-24 transition-colors hover:bg-ods-bg-hover",
|
|
62
62
|
children: [
|
|
63
63
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -110,14 +110,14 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
110
110
|
|
|
111
111
|
var PICK_ROOT_MARGIN = "600px";
|
|
112
112
|
function faqAskCardShown(assistant) {
|
|
113
|
-
return
|
|
113
|
+
return _chunkGSFANY2Lcjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
114
114
|
}
|
|
115
115
|
function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
|
|
116
116
|
const { ref, inView } = _chunkCSJO7ZGNcjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
117
117
|
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
118
118
|
if (inView && !reached) setReached(true);
|
|
119
119
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
120
|
-
|
|
120
|
+
_chunkGSFANY2Lcjs.AssistantAskPrompts,
|
|
121
121
|
{
|
|
122
122
|
variant: "card",
|
|
123
123
|
topic,
|
|
@@ -170,7 +170,7 @@ function pageFaqProps(faq) {
|
|
|
170
170
|
}
|
|
171
171
|
function buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl = "", topic) {
|
|
172
172
|
const entityScoped = !!entityType && entityId !== void 0 && entityId !== null && entityId !== "";
|
|
173
|
-
return
|
|
173
|
+
return _chunkVZGCSVH7cjs.buildSuggestionUrl.call(void 0, "/api/faqs", {
|
|
174
174
|
apiBaseUrl,
|
|
175
175
|
entityType,
|
|
176
176
|
entityId,
|
|
@@ -191,7 +191,7 @@ function groupFaqsBySection(faqs) {
|
|
|
191
191
|
}
|
|
192
192
|
let group = byName.get(name);
|
|
193
193
|
if (!group) {
|
|
194
|
-
group = { section: name, slug:
|
|
194
|
+
group = { section: name, slug: _chunkTILK7SC4cjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
195
195
|
byName.set(name, group);
|
|
196
196
|
}
|
|
197
197
|
group.items.push(item);
|
|
@@ -246,7 +246,7 @@ function GroupedFaqList({
|
|
|
246
246
|
}, [slugKey]);
|
|
247
247
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
248
248
|
_react.useEffect.call(void 0, () => {
|
|
249
|
-
const refresh = () => setHashTarget(
|
|
249
|
+
const refresh = () => setHashTarget(_chunkTILK7SC4cjs.parseFaqHash.call(void 0, window.location.hash));
|
|
250
250
|
refresh();
|
|
251
251
|
window.addEventListener("hashchange", refresh);
|
|
252
252
|
return () => window.removeEventListener("hashchange", refresh);
|
|
@@ -296,7 +296,7 @@ function GroupedFaqList({
|
|
|
296
296
|
const questions = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-10", children: groups.map((group) => {
|
|
297
297
|
const key = groupKey(group);
|
|
298
298
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { id: _nullishCoalesce(group.slug, () => ( void 0)), className: "scroll-mt-24 space-y-4", children: [
|
|
299
|
-
group.section && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategoryHeading, { className:
|
|
299
|
+
group.section && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategoryHeading, { className: _chunk2ZVNXD74cjs.SECTION_HEADING_CLASS, children: group.section }),
|
|
300
300
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
301
301
|
FaqAccordion,
|
|
302
302
|
{
|
|
@@ -355,11 +355,11 @@ function FaqSection({
|
|
|
355
355
|
() => initialFaqs ? { faqs: initialFaqs } : void 0,
|
|
356
356
|
[initialFaqs]
|
|
357
357
|
);
|
|
358
|
-
const { data, dataUrl, isLoading, error } =
|
|
358
|
+
const { data, dataUrl, isLoading, error } = _chunkVZGCSVH7cjs.useSelfFetch.call(void 0, url, { initialData });
|
|
359
359
|
const held = dataUrl === url ? _optionalChain([data, 'optionalAccess', _15 => _15.faqs]) : void 0;
|
|
360
360
|
const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(held, () => ( [])), [held]);
|
|
361
361
|
const groups = _react.useMemo.call(void 0, () => faqs.length > 0 ? groupFaqsBySection(faqs) : [], [faqs]);
|
|
362
|
-
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
362
|
+
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunk2ZVNXD74cjs.SECTION_HEADING_CLASS, children: DEFAULT_HEADING_TEXT }) : heading;
|
|
363
363
|
const headingNode = showTopic && topic ? (
|
|
364
364
|
// The host's heading may arrive from a server component, still streaming: React cannot check such a
|
|
365
365
|
// node when it sits in a list of siblings and warns about a missing key. So it is the ONLY child of its
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkGPSHFEF2cjs = require('./chunk-GPSHFEF2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkCKR42OBKcjs = require('./chunk-CKR42OBK.cjs');
|
|
@@ -14,7 +14,7 @@ var _chunkM7ZSKWT3cjs = require('./chunk-M7ZSKWT3.cjs');
|
|
|
14
14
|
var _chunkW2RM764Dcjs = require('./chunk-W2RM764D.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkJHQNUWFMcjs = require('./chunk-JHQNUWFM.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunk2QMBXGMQcjs = require('./chunk-2QMBXGMQ.cjs');
|
|
@@ -29,7 +29,7 @@ function FileDownloadCard({ fileName, mimeType, fileSize, fileUrl }) {
|
|
|
29
29
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-ods-text-primary text-h3", children: fileName || "File" }),
|
|
30
30
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-2 flex items-center justify-center gap-3 text-ods-text-secondary text-h6", children: [
|
|
31
31
|
mimeType && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: mimeType }),
|
|
32
|
-
typeof fileSize === "number" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children:
|
|
32
|
+
typeof fileSize === "number" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkJHQNUWFMcjs.formatFileSize.call(void 0, fileSize) })
|
|
33
33
|
] })
|
|
34
34
|
] }),
|
|
35
35
|
fileUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "accent", href: fileUrl, openInNewTab: true, leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Download, { className: "h-4 w-4" }), children: "Download File" })
|
|
@@ -48,7 +48,7 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
|
|
|
48
48
|
] });
|
|
49
49
|
}
|
|
50
50
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
51
|
-
|
|
51
|
+
_chunkGPSHFEF2cjs.EmbedViewerFrame,
|
|
52
52
|
{
|
|
53
53
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCKR42OBKcjs.GoogleSheetsIcon, { className: "h-5 w-5 shrink-0" }),
|
|
54
54
|
title: displayName,
|
|
@@ -83,7 +83,7 @@ function PdfViewer({ src, fileName, onPreview, onDownload, height }) {
|
|
|
83
83
|
] });
|
|
84
84
|
}
|
|
85
85
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
86
|
-
|
|
86
|
+
_chunkGPSHFEF2cjs.EmbedViewerFrame,
|
|
87
87
|
{
|
|
88
88
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM7ZSKWT3cjs.AdobePdfIcon, { className: "h-5 w-5 shrink-0" }),
|
|
89
89
|
title: displayName,
|
|
@@ -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 _chunkGSFANY2Lcjs = require('./chunk-GSFANY2L.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkTILK7SC4cjs = require('./chunk-TILK7SC4.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkDGFDBPO7cjs = require('./chunk-DGFDBPO7.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 = _chunkTILK7SC4cjs.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 = _chunkGSFANY2Lcjs.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),
|