@flamingo-stack/openframe-frontend-core 0.0.794 → 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-UAZTXYPC.cjs → chunk-JC43ULIC.cjs} +107 -78
- 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/shared/roadmap/roadmap-grid.d.ts +6 -1
- package/dist/components/shared/roadmap/roadmap-grid.d.ts.map +1 -1
- package/dist/components/shared/roadmap/roadmap-grid.js +37 -8
- 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/shared/roadmap/roadmap-grid.tsx +38 -9
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunk7SEY3FDFcjs = require('./chunk-7SEY3FDF.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,7 +12,7 @@ var _chunk6VP5UWZGcjs = require('./chunk-6VP5UWZG.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkOKAHKZP2cjs = require('./chunk-OKAHKZP2.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -27,7 +27,7 @@ var _chunk3XAFK4WHcjs = require('./chunk-3XAFK4WH.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkJGURZROBcjs = require('./chunk-JGURZROB.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
@@ -443,13 +443,13 @@ function programEntry(configKey) {
|
|
|
443
443
|
return cardEntry({
|
|
444
444
|
// The gallery and hosts rows are drawn only for a type whose cards show them (its config's `cardShowsGallery`,
|
|
445
445
|
// `cardShowsHosts`), as `ProgramCard` decides in a scope: elsewhere a record may have none.
|
|
446
|
-
skeleton: (size, extras) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
446
|
+
skeleton: (size, extras) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJGURZROBcjs.ProgramCard, { loading: true, config: _optionalChain([extras, 'optionalAccess', _2 => _2.programConfigs, 'optionalAccess', _3 => _3[configKey]]), size: size === "sm" ? "sm" : "default" }),
|
|
447
447
|
decode: decodeProgramRow,
|
|
448
448
|
render: (item, ctx) => {
|
|
449
449
|
const config = _optionalChain([ctx, 'access', _4 => _4.extras, 'optionalAccess', _5 => _5.programConfigs, 'optionalAccess', _6 => _6[configKey]]);
|
|
450
450
|
if (!config) return null;
|
|
451
451
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
452
|
-
|
|
452
|
+
_chunkJGURZROBcjs.ProgramCard,
|
|
453
453
|
{
|
|
454
454
|
config,
|
|
455
455
|
item,
|
|
@@ -467,10 +467,10 @@ function programEntry(configKey) {
|
|
|
467
467
|
}
|
|
468
468
|
function roadmapEntry(cardType) {
|
|
469
469
|
return cardEntry({
|
|
470
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
470
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJGURZROBcjs.RoadmapCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
471
471
|
decode: decodeRoadmapRow,
|
|
472
472
|
render: (item, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
473
|
-
|
|
473
|
+
_chunkJGURZROBcjs.RoadmapCard,
|
|
474
474
|
{
|
|
475
475
|
item,
|
|
476
476
|
href: ctx.href,
|
|
@@ -487,10 +487,10 @@ function roadmapEntry(cardType) {
|
|
|
487
487
|
}
|
|
488
488
|
var RELATED_CARD_REGISTRY = {
|
|
489
489
|
blog_post_existing: cardEntry({
|
|
490
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
490
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJGURZROBcjs.BlogCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
491
491
|
decode: decodeBlogRow,
|
|
492
492
|
render: (post, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
493
|
-
|
|
493
|
+
_chunkJGURZROBcjs.BlogCard,
|
|
494
494
|
{
|
|
495
495
|
post,
|
|
496
496
|
size: ctx.legacySize,
|
|
@@ -518,10 +518,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
518
518
|
)
|
|
519
519
|
}),
|
|
520
520
|
customer_interview: cardEntry({
|
|
521
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
521
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJGURZROBcjs.CustomerInterviewCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
522
522
|
decode: decodeCustomerInterviewRow,
|
|
523
523
|
render: (interview, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
524
|
-
|
|
524
|
+
_chunkJGURZROBcjs.CustomerInterviewCard,
|
|
525
525
|
{
|
|
526
526
|
interview,
|
|
527
527
|
size: ctx.legacySize,
|
|
@@ -539,13 +539,13 @@ var RELATED_CARD_REGISTRY = {
|
|
|
539
539
|
* record, and the three props the rail sets itself are read off it.
|
|
540
540
|
*/
|
|
541
541
|
product_release: cardEntry({
|
|
542
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
542
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJGURZROBcjs.ProductReleaseCard, { loading: true, size: size === "sm" ? "sm" : "lg" }),
|
|
543
543
|
decode: asRecord,
|
|
544
544
|
render: (release, ctx) => {
|
|
545
|
-
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _7 => _7.extras, 'optionalAccess', _8 => _8.buildProductReleaseCardProps]), () => (
|
|
545
|
+
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _7 => _7.extras, 'optionalAccess', _8 => _8.buildProductReleaseCardProps]), () => ( _chunkJGURZROBcjs.buildProductReleaseCardProps));
|
|
546
546
|
const releaseProps = buildReleaseProps(release);
|
|
547
547
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
548
|
-
|
|
548
|
+
_chunkJGURZROBcjs.ProductReleaseCard,
|
|
549
549
|
{
|
|
550
550
|
size: ctx.size === "sm" ? "sm" : "lg",
|
|
551
551
|
title: str(release, "title"),
|
|
@@ -561,10 +561,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
561
561
|
webinar: programEntry("webinar"),
|
|
562
562
|
event: programEntry("event"),
|
|
563
563
|
investor_update: cardEntry({
|
|
564
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
564
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJGURZROBcjs.InvestorUpdateCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
565
565
|
decode: decodeInvestorUpdateRow,
|
|
566
566
|
render: (update, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
567
|
-
|
|
567
|
+
_chunkJGURZROBcjs.InvestorUpdateCard,
|
|
568
568
|
{
|
|
569
569
|
update,
|
|
570
570
|
size: ctx.legacySize,
|
|
@@ -579,10 +579,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
579
579
|
* step-numbered 'default' variant is for the guide detail page's "More in
|
|
580
580
|
* section" rail, not this full-width row. */
|
|
581
581
|
onboarding_guide: cardEntry({
|
|
582
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
582
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJGURZROBcjs.OnboardingGuideCard, { loading: true, size: size === "sm" ? "sm" : "catalog", published: false }),
|
|
583
583
|
decode: decodeOnboardingGuideRow,
|
|
584
584
|
render: (guide, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
585
|
-
|
|
585
|
+
_chunkJGURZROBcjs.OnboardingGuideCard,
|
|
586
586
|
{
|
|
587
587
|
guide,
|
|
588
588
|
size: ctx.size === "sm" ? "sm" : "catalog",
|
|
@@ -599,10 +599,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
599
599
|
* href: an object with `href: undefined` is still truthy and would wrap the
|
|
600
600
|
* card in a dead <a>. */
|
|
601
601
|
what_i_shipped: cardEntry({
|
|
602
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
602
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOKAHKZP2cjs.WhatIShippedCard, { loading: true }),
|
|
603
603
|
decode: decodeEmployeeEntryRow,
|
|
604
604
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
605
|
-
|
|
605
|
+
_chunkOKAHKZP2cjs.WhatIShippedCard,
|
|
606
606
|
{
|
|
607
607
|
entry,
|
|
608
608
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -612,10 +612,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
612
612
|
}),
|
|
613
613
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
614
614
|
how_i_work: cardEntry({
|
|
615
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
615
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOKAHKZP2cjs.HowIWorkCard, { loading: true }),
|
|
616
616
|
decode: decodeEmployeeEntryRow,
|
|
617
617
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
618
|
-
|
|
618
|
+
_chunkOKAHKZP2cjs.HowIWorkCard,
|
|
619
619
|
{
|
|
620
620
|
entry,
|
|
621
621
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -625,10 +625,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
625
625
|
}),
|
|
626
626
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
627
627
|
ai_prompt: cardEntry({
|
|
628
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
628
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOKAHKZP2cjs.AiPromptCard, { loading: true }),
|
|
629
629
|
decode: decodeEmployeeEntryRow,
|
|
630
630
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
631
|
-
|
|
631
|
+
_chunkOKAHKZP2cjs.AiPromptCard,
|
|
632
632
|
{
|
|
633
633
|
entry,
|
|
634
634
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -711,9 +711,9 @@ function useGroupItems(type, refs, buildUrl, seedRows) {
|
|
|
711
711
|
() => seedRows && url !== null ? /* @__PURE__ */ new Map([[url, [...seedRows]]]) : /* @__PURE__ */ new Map()
|
|
712
712
|
);
|
|
713
713
|
const cached = url !== null ? pages.get(url) : void 0;
|
|
714
|
-
const { data, dataUrl, error } =
|
|
714
|
+
const { data, dataUrl, error } = _chunkOKAHKZP2cjs.useSelfFetch.call(void 0, cached ? null : url);
|
|
715
715
|
if (data != null && dataUrl !== null && !pages.has(dataUrl)) {
|
|
716
|
-
setPages(new Map(pages).set(dataUrl,
|
|
716
|
+
setPages(new Map(pages).set(dataUrl, _chunkJGURZROBcjs.extractItems.call(void 0, data)));
|
|
717
717
|
}
|
|
718
718
|
if (url === null) return { items: null, isLoading: false };
|
|
719
719
|
return { items: _nullishCoalesce(cached, () => ( (error ? [] : null))), isLoading: !cached && !error };
|
|
@@ -722,7 +722,7 @@ function gridClassFor(columns) {
|
|
|
722
722
|
return columns === 3 ? "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6" : "grid grid-cols-1 sm:grid-cols-2 gap-6";
|
|
723
723
|
}
|
|
724
724
|
function resolveGroupConfig(type) {
|
|
725
|
-
return _nullishCoalesce(
|
|
725
|
+
return _nullishCoalesce(_chunkOKAHKZP2cjs.CONTENT_REF_GROUPS[type], () => ( {
|
|
726
726
|
label: type,
|
|
727
727
|
order: 999,
|
|
728
728
|
layout: "grid",
|
|
@@ -735,15 +735,15 @@ var GROUP_HEADING_CLASS = "font-semibold text-ods-text-secondary text-h5";
|
|
|
735
735
|
var RAIL_CLASS = "flex flex-col gap-8";
|
|
736
736
|
var UNKNOWN_TYPE_CARD = "blog_post_existing";
|
|
737
737
|
function GroupHeading({ type }) {
|
|
738
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children:
|
|
738
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: _chunkOKAHKZP2cjs.getContentRefLabelOrTitleCase.call(void 0, type) });
|
|
739
739
|
}
|
|
740
740
|
function orderRailTypes(types, entityType) {
|
|
741
|
-
let ordered =
|
|
741
|
+
let ordered = _chunkOKAHKZP2cjs.orderContentRefTypes.call(void 0, types);
|
|
742
742
|
if (entityType) {
|
|
743
|
-
const canonicalEntityType =
|
|
744
|
-
const sameType = ordered.filter((t) =>
|
|
743
|
+
const canonicalEntityType = _chunkJGURZROBcjs.canonicalContentRefType.call(void 0, entityType);
|
|
744
|
+
const sameType = ordered.filter((t) => _chunkJGURZROBcjs.canonicalContentRefType.call(void 0, t) === canonicalEntityType);
|
|
745
745
|
if (sameType.length > 0) {
|
|
746
|
-
ordered = [...sameType, ...ordered.filter((t) =>
|
|
746
|
+
ordered = [...sameType, ...ordered.filter((t) => _chunkJGURZROBcjs.canonicalContentRefType.call(void 0, t) !== canonicalEntityType)];
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
749
|
return ordered;
|
|
@@ -772,10 +772,10 @@ function ContentGroup({
|
|
|
772
772
|
setPagedRefsKey(refsKey);
|
|
773
773
|
setPage(1);
|
|
774
774
|
}
|
|
775
|
-
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length,
|
|
776
|
-
const pageRefs = refs.slice((page - 1) *
|
|
775
|
+
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length, _chunkOKAHKZP2cjs.GROUP_PAGE_SIZE);
|
|
776
|
+
const pageRefs = refs.slice((page - 1) * _chunkOKAHKZP2cjs.GROUP_PAGE_SIZE, page * _chunkOKAHKZP2cjs.GROUP_PAGE_SIZE);
|
|
777
777
|
const { items, isLoading } = useGroupItems(type, pageRefs, buildUrl, seedRows);
|
|
778
|
-
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
778
|
+
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7SEY3FDFcjs.Pagination, { currentPage: page, totalPages: totalGroupPages, onPageChange: setPage }) : null;
|
|
779
779
|
_react.useEffect.call(void 0, () => {
|
|
780
780
|
onLoadingChange(type, isLoading);
|
|
781
781
|
return () => onLoadingChange(type, false);
|
|
@@ -793,7 +793,7 @@ function ContentGroup({
|
|
|
793
793
|
}
|
|
794
794
|
if (!items) return null;
|
|
795
795
|
const rowKey = (it) => {
|
|
796
|
-
const extracted =
|
|
796
|
+
const extracted = _chunkJGURZROBcjs.extractItemId.call(void 0, type, it);
|
|
797
797
|
if (extracted !== null) return extracted;
|
|
798
798
|
return String(typeof it === "object" && it !== null ? it.id : void 0);
|
|
799
799
|
};
|
|
@@ -864,11 +864,11 @@ function RelatedContentSection({
|
|
|
864
864
|
types: includeTypes !== void 0 ? includeTypes.join(",") : void 0,
|
|
865
865
|
excludeTypes: excludeTypes && excludeTypes.length > 0 ? excludeTypes.join(",") : void 0
|
|
866
866
|
};
|
|
867
|
-
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ?
|
|
867
|
+
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ? _chunkOKAHKZP2cjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
868
868
|
apiBaseUrl,
|
|
869
869
|
extraParams: { authorId, ...typeFilterParams }
|
|
870
870
|
}) : null;
|
|
871
|
-
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ?
|
|
871
|
+
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ? _chunkOKAHKZP2cjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
872
872
|
apiBaseUrl,
|
|
873
873
|
entityType,
|
|
874
874
|
entityId,
|
|
@@ -885,7 +885,7 @@ function RelatedContentSection({
|
|
|
885
885
|
() => !suggestionsDisabled && initialItems ? { refs: initialItems } : void 0,
|
|
886
886
|
[initialItems, suggestionsDisabled]
|
|
887
887
|
);
|
|
888
|
-
const { data, isLoading } =
|
|
888
|
+
const { data, isLoading } = _chunkOKAHKZP2cjs.useSelfFetch.call(void 0, suggestUrl, { initialData });
|
|
889
889
|
const inScope = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, );
|
|
890
890
|
const [loadingTypes, setLoadingTypes] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
|
|
891
891
|
const onGroupLoadingChange = _react.useCallback.call(void 0, (type, loading) => {
|
|
@@ -898,7 +898,7 @@ function RelatedContentSection({
|
|
|
898
898
|
});
|
|
899
899
|
}, []);
|
|
900
900
|
const effectiveBuildListUrl = _react.useMemo.call(void 0,
|
|
901
|
-
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) =>
|
|
901
|
+
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) => _chunkJGURZROBcjs.buildListUrl.call(void 0, type, ids, apiBaseUrl)))),
|
|
902
902
|
[buildListUrl2, apiBaseUrl]
|
|
903
903
|
);
|
|
904
904
|
const refs = _nullishCoalesce(_nullishCoalesce(contentRefs, () => ( _optionalChain([data, 'optionalAccess', _12 => _12.refs]))), () => ( []));
|
|
@@ -922,7 +922,7 @@ function RelatedContentSection({
|
|
|
922
922
|
}
|
|
923
923
|
if (!showWhenEmpty) return null;
|
|
924
924
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
925
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children:
|
|
925
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children: _chunkJGURZROBcjs.accentSentenceMarks.call(void 0, title) }),
|
|
926
926
|
_nullishCoalesce(emptyState, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: emptyStateText })))
|
|
927
927
|
] });
|
|
928
928
|
}
|
|
@@ -948,7 +948,7 @@ function RelatedContentSection({
|
|
|
948
948
|
);
|
|
949
949
|
}
|
|
950
950
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGD6RPLHXcjs.LoadingRegion, { as: "section", label: "Loading related content", announce: loadingTypes.size > 0, className: RAIL_CLASS, children: [
|
|
951
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children:
|
|
951
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: _chunkJGURZROBcjs.accentSentenceMarks.call(void 0, title) }),
|
|
952
952
|
orderedTypes.map((type, groupIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
953
953
|
ContentGroup,
|
|
954
954
|
{
|
|
@@ -979,24 +979,24 @@ function RelatedContentSectionSkeleton({
|
|
|
979
979
|
adminCampaignCard,
|
|
980
980
|
extras
|
|
981
981
|
}) {
|
|
982
|
-
const canonicalEntityType = entityType ?
|
|
982
|
+
const canonicalEntityType = entityType ? _chunkJGURZROBcjs.canonicalContentRefType.call(void 0, entityType) : null;
|
|
983
983
|
const unknownGroup = types.length === 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: GROUP_CLASS, "aria-hidden": true, "data-loading-item": true, children: [
|
|
984
984
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-24" }) }),
|
|
985
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length:
|
|
985
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length: _chunkOKAHKZP2cjs.GROUP_PAGE_SIZE }, (_, i) => (
|
|
986
986
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
987
987
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, children: renderSkeletonForType(UNKNOWN_TYPE_CARD, "default", adminCampaignCard, extras) }, i)
|
|
988
988
|
)) })
|
|
989
989
|
] }) : null;
|
|
990
990
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGD6RPLHXcjs.LoadingRegion, { as: "section", label: "Loading related content", className: RAIL_CLASS, children: [
|
|
991
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: title ?
|
|
991
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: title ? _chunkJGURZROBcjs.accentSentenceMarks.call(void 0, title) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/2" }) }),
|
|
992
992
|
unknownGroup,
|
|
993
993
|
orderRailTypes(new Set(types), entityType).map((type) => {
|
|
994
994
|
const config = resolveGroupConfig(type);
|
|
995
|
-
const sameType = canonicalEntityType !== null &&
|
|
995
|
+
const sameType = canonicalEntityType !== null && _chunkJGURZROBcjs.canonicalContentRefType.call(void 0, type) === canonicalEntityType;
|
|
996
996
|
const isList = config.layout === "list";
|
|
997
997
|
const count = Math.min(
|
|
998
|
-
|
|
999
|
-
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => (
|
|
998
|
+
_chunkOKAHKZP2cjs.GROUP_PAGE_SIZE,
|
|
999
|
+
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => ( _chunkOKAHKZP2cjs.GROUP_PAGE_SIZE))
|
|
1000
1000
|
);
|
|
1001
1001
|
const cards = Array.from({ length: count }, (_, i) => (
|
|
1002
1002
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkGP7NV6BKcjs = require('./chunk-GP7NV6BK.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkAT4C2YMAcjs = require('./chunk-AT4C2YMA.cjs');
|
|
@@ -81,7 +81,7 @@ function AvatarStack({
|
|
|
81
81
|
"aria-label": `${label}: ${names}${unnamed > 0 ? ` and ${unnamed} more` : ""}`,
|
|
82
82
|
children: [
|
|
83
83
|
visible.map((person, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
84
|
-
|
|
84
|
+
_chunkGP7NV6BKcjs.SquareAvatar,
|
|
85
85
|
{
|
|
86
86
|
"data-loading-item": true,
|
|
87
87
|
variant: "round",
|
|
@@ -10,7 +10,7 @@ var _chunkA6P6DHEZcjs = require('./chunk-A6P6DHEZ.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkIONS6HDFcjs = require('./chunk-IONS6HDF.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -102,7 +102,7 @@ var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
var
|
|
105
|
+
var _chunkGP7NV6BKcjs = require('./chunk-GP7NV6BK.cjs');
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
@@ -248,7 +248,7 @@ function TruncateText({
|
|
|
248
248
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: variant, lines, as, className: _chunk6YZNUHXTcjs.cn.call(void 0, "w-3/4", triggerClassName) });
|
|
249
249
|
const clampClass = isMultiLine ? LINE_CLAMP_CLASS[lines] : "truncate block";
|
|
250
250
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
251
|
-
|
|
251
|
+
_chunkGP7NV6BKcjs.FloatingTooltip,
|
|
252
252
|
{
|
|
253
253
|
content: _nullishCoalesce(tooltip, () => ( children)),
|
|
254
254
|
side,
|
|
@@ -587,7 +587,7 @@ function AutocompleteInner(props, ref) {
|
|
|
587
587
|
),
|
|
588
588
|
children: [
|
|
589
589
|
multiple && visibleTags.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
590
|
-
|
|
590
|
+
_chunkGP7NV6BKcjs.Tag,
|
|
591
591
|
{
|
|
592
592
|
variant: "outline",
|
|
593
593
|
className: wrapTags ? "max-w-full" : void 0,
|
|
@@ -817,7 +817,7 @@ function AutocompleteInner(props, ref) {
|
|
|
817
817
|
"aria-hidden": "true",
|
|
818
818
|
className: "pointer-events-none invisible absolute left-0 top-0 -z-10 flex gap-2",
|
|
819
819
|
children: selectedOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
820
|
-
|
|
820
|
+
_chunkGP7NV6BKcjs.Tag,
|
|
821
821
|
{
|
|
822
822
|
variant: "outline",
|
|
823
823
|
labelClassName: "max-w-[90px] truncate",
|
|
@@ -1300,7 +1300,7 @@ function EntityImage({ src, alt, fallbackText, sizeClassName, className }) {
|
|
|
1300
1300
|
const imageFailed = resolvedSrc !== void 0 && failedSrc === resolvedSrc;
|
|
1301
1301
|
if (held) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EntityImageSkeleton, { sizeClassName, className });
|
|
1302
1302
|
const showFallback = imageFailed || !resolvedSrc;
|
|
1303
|
-
const initials =
|
|
1303
|
+
const initials = _chunkGP7NV6BKcjs.personInitials.call(void 0, _nullishCoalesce(fallbackText, () => ( alt)));
|
|
1304
1304
|
if (showFallback) {
|
|
1305
1305
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1306
1306
|
"div",
|
|
@@ -1443,7 +1443,7 @@ function TitleBlock({
|
|
|
1443
1443
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
1444
1444
|
(titleLoading || title) && (titleAdornment ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center gap-[var(--spacing-system-m)]", children: [
|
|
1445
1445
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1446
|
-
|
|
1446
|
+
_chunkGP7NV6BKcjs.FloatingTooltip,
|
|
1447
1447
|
{
|
|
1448
1448
|
content: title,
|
|
1449
1449
|
side: "bottom",
|
|
@@ -1460,12 +1460,12 @@ function TitleBlock({
|
|
|
1460
1460
|
}
|
|
1461
1461
|
),
|
|
1462
1462
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0", children: titleAdornment })
|
|
1463
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1463
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGP7NV6BKcjs.FloatingTooltip, { content: title, side: "bottom", disabled: !titleTruncated, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageTitle, { ref: titleRef, className: _chunk6YZNUHXTcjs.cn.call(void 0, titleClass, "text-ods-text-primary", titleOverflowClass), children: titleNode }) })),
|
|
1464
1464
|
hasSubtitleRow && /* The NBSP is a pure spacer, reached only in `'always'` mode: an
|
|
1465
1465
|
empty `p` collapses to zero height (its only content would be
|
|
1466
1466
|
collapsible whitespace), which is exactly the shift that mode
|
|
1467
1467
|
exists to prevent. Hidden from AT — it carries no meaning. */
|
|
1468
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1468
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGP7NV6BKcjs.FloatingTooltip, { content: subtitle, side: "bottom", disabled: !subtitleTruncated, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1469
1469
|
"p",
|
|
1470
1470
|
{
|
|
1471
1471
|
ref: subtitleRef,
|
|
@@ -1483,7 +1483,7 @@ function TitleBlock({
|
|
|
1483
1483
|
) })
|
|
1484
1484
|
] })
|
|
1485
1485
|
] }) : title && (titleAdornment ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center gap-[var(--spacing-system-m)]", children: [
|
|
1486
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1486
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGP7NV6BKcjs.FloatingTooltip, { content: title, side: "bottom", disabled: !titleTruncated, triggerClassName: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1487
1487
|
PageTitle,
|
|
1488
1488
|
{
|
|
1489
1489
|
ref: titleRef,
|
|
@@ -1611,7 +1611,7 @@ function RemoteSessionViewers({ viewers, max = 4, className }) {
|
|
|
1611
1611
|
children: [
|
|
1612
1612
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center", children: [
|
|
1613
1613
|
faces.map((viewer, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1614
|
-
|
|
1614
|
+
_chunkGP7NV6BKcjs.SquareAvatar,
|
|
1615
1615
|
{
|
|
1616
1616
|
variant: "round",
|
|
1617
1617
|
sizePx: 32,
|
|
@@ -1645,7 +1645,7 @@ function RemoteSessionViewers({ viewers, max = 4, className }) {
|
|
|
1645
1645
|
),
|
|
1646
1646
|
children: [
|
|
1647
1647
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1648
|
-
|
|
1648
|
+
_chunkGP7NV6BKcjs.SquareAvatar,
|
|
1649
1649
|
{
|
|
1650
1650
|
variant: "round",
|
|
1651
1651
|
sizePx: 24,
|
|
@@ -1691,7 +1691,7 @@ function RemoteSessionScope({ children, className }) {
|
|
|
1691
1691
|
function RemoteSessionOrgLogo({ name, logoUrl, sizePx, className }) {
|
|
1692
1692
|
if (logoUrl) {
|
|
1693
1693
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1694
|
-
|
|
1694
|
+
_chunkGP7NV6BKcjs.SquareAvatar,
|
|
1695
1695
|
{
|
|
1696
1696
|
variant: "square",
|
|
1697
1697
|
fit: "contain",
|
|
@@ -1801,7 +1801,7 @@ function RemoteAccessRequestCard({
|
|
|
1801
1801
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RemoteSessionOrgLogo, { name: organizationName, logoUrl: party.organizationLogoUrl, sizePx: 64 }),
|
|
1802
1802
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
1803
1803
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full truncate text-ods-text-primary text-h3", children: organizationName }),
|
|
1804
|
-
siteUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full truncate text-ods-text-secondary text-h4", children:
|
|
1804
|
+
siteUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full truncate text-ods-text-secondary text-h4", children: _chunkGP7NV6BKcjs.formatUrlForDisplay.call(void 0, siteUrl, { keepWww: true }) })
|
|
1805
1805
|
] }),
|
|
1806
1806
|
openableSite && onOpenSite && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "outline", size: "icon", "aria-label": "Open website", onClick: () => onOpenSite(openableSite), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDVT7OAScjs.ExternalLinkIcon, { size: 24, color: "currentColor" }) })
|
|
1807
1807
|
] }),
|
|
@@ -1912,7 +1912,7 @@ function RemoteSessionSummary({
|
|
|
1912
1912
|
...dragHandlers,
|
|
1913
1913
|
children: [
|
|
1914
1914
|
technician ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1915
|
-
|
|
1915
|
+
_chunkGP7NV6BKcjs.SquareAvatar,
|
|
1916
1916
|
{
|
|
1917
1917
|
variant: "round",
|
|
1918
1918
|
sizePx: 48,
|
|
@@ -1966,7 +1966,7 @@ var RemoteSessionMinimizedChip = _react.forwardRef.call(void 0,
|
|
|
1966
1966
|
...dragHandlers,
|
|
1967
1967
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex flex-col overflow-hidden rounded-md border border-ods-border", children: [
|
|
1968
1968
|
technician ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1969
|
-
|
|
1969
|
+
_chunkGP7NV6BKcjs.SquareAvatar,
|
|
1970
1970
|
{
|
|
1971
1971
|
sizePx: 48,
|
|
1972
1972
|
src: _nullishCoalesce(party.technicianAvatarUrl, () => ( void 0)),
|
|
@@ -2118,7 +2118,7 @@ function RemoteSessionChatMessageRow({
|
|
|
2118
2118
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
2119
2119
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2120
2120
|
isTechnician && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2121
|
-
|
|
2121
|
+
_chunkGP7NV6BKcjs.SquareAvatar,
|
|
2122
2122
|
{
|
|
2123
2123
|
variant: "round",
|
|
2124
2124
|
sizePx: 16,
|
|
@@ -2161,7 +2161,7 @@ function RemoteDesktopChatMessageRow({
|
|
|
2161
2161
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: MESSAGE_ROW_CLASS, "aria-hidden": loading || void 0, ..._chunk6YZNUHXTcjs.loadingItemProps.call(void 0, props), children: [
|
|
2162
2162
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: MESSAGE_HEAD_CLASS, children: [
|
|
2163
2163
|
isTechnician && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2164
|
-
|
|
2164
|
+
_chunkGP7NV6BKcjs.SquareAvatar,
|
|
2165
2165
|
{
|
|
2166
2166
|
loading,
|
|
2167
2167
|
variant: "round",
|
|
@@ -2180,7 +2180,7 @@ function RemoteDesktopChatMessageRow({
|
|
|
2180
2180
|
),
|
|
2181
2181
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", as: "span", className: "w-12 shrink-0" }) : (
|
|
2182
2182
|
// The time is in the viewer's zone, which a server render cannot know.
|
|
2183
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { suppressHydrationWarning: true, className: "shrink-0 text-ods-text-secondary text-h6", children:
|
|
2183
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { suppressHydrationWarning: true, className: "shrink-0 text-ods-text-secondary text-h6", children: _chunkIONS6HDFcjs.formatTime.call(void 0, sentAt) })
|
|
2184
2184
|
)
|
|
2185
2185
|
] }),
|
|
2186
2186
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h4", className: "w-3/4" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "whitespace-pre-wrap text-ods-text-primary text-h4", children: body })
|
|
@@ -2246,7 +2246,7 @@ function RemoteDesktopChatPanel({
|
|
|
2246
2246
|
message.id
|
|
2247
2247
|
)) }) }),
|
|
2248
2248
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2249
|
-
|
|
2249
|
+
_chunkIONS6HDFcjs.ChatInput,
|
|
2250
2250
|
{
|
|
2251
2251
|
placeholder: "Enter your Message...",
|
|
2252
2252
|
onSend,
|
|
@@ -2589,9 +2589,9 @@ function KeepRecordingModal({
|
|
|
2589
2589
|
if (!canKeep || isPending) return;
|
|
2590
2590
|
onConfirm({ reason, description: reason === "OTHER" ? trimmed : null });
|
|
2591
2591
|
};
|
|
2592
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2592
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIONS6HDFcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2593
2593
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2594
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2594
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ModalTitle, { children: "Keep this recording" }) }),
|
|
2595
2595
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2596
2596
|
KeepNotice,
|
|
2597
2597
|
{
|
|
@@ -2629,7 +2629,7 @@ function KeepRecordingModal({
|
|
|
2629
2629
|
}
|
|
2630
2630
|
)
|
|
2631
2631
|
] }),
|
|
2632
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2632
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIONS6HDFcjs.ModalFooter, { children: [
|
|
2633
2633
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2634
2634
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2635
2635
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2659,9 +2659,9 @@ function ReleaseKeepingModal({
|
|
|
2659
2659
|
isPending = false,
|
|
2660
2660
|
onConfirm
|
|
2661
2661
|
}) {
|
|
2662
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2662
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIONS6HDFcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2663
2663
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2664
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2664
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ModalTitle, { children: "Release Keeping" }) }),
|
|
2665
2665
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xsf)] break-words text-ods-text-primary text-h4", children: [
|
|
2666
2666
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { children: [
|
|
2667
2667
|
"Kept by ",
|
|
@@ -2678,7 +2678,7 @@ function ReleaseKeepingModal({
|
|
|
2678
2678
|
] })
|
|
2679
2679
|
] }),
|
|
2680
2680
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, KeepNotice, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkILWSAV64cjs.HourglassIcon, { size: 24, color: "currentColor" }), title: `It will expire on ${expiresOn}`, children: dueOn ? `It was due to expire on ${dueOn}. Releasing gives it 3 days' grace, and it shows amber until then. Whoever placed the Keep is reminded the day before it goes. Nothing is deleted now.` : "Nothing is deleted now." }),
|
|
2681
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2681
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIONS6HDFcjs.ModalFooter, { children: [
|
|
2682
2682
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2683
2683
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2684
2684
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { type: "button", variant: "accent", onClick: onConfirm, loading: isPending, className: "flex-1", children: "Release Keeping" })
|
|
@@ -2720,9 +2720,9 @@ function AssignTicketModal({
|
|
|
2720
2720
|
if (ticketIds.length === 0 || isPending) return;
|
|
2721
2721
|
onConfirm(ticketIds);
|
|
2722
2722
|
};
|
|
2723
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2723
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIONS6HDFcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2724
2724
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2725
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2725
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ModalTitle, { children: "Assign Ticket" }) }),
|
|
2726
2726
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2727
2727
|
Autocomplete,
|
|
2728
2728
|
{
|
|
@@ -2741,7 +2741,7 @@ function AssignTicketModal({
|
|
|
2741
2741
|
disabled: isPending
|
|
2742
2742
|
}
|
|
2743
2743
|
),
|
|
2744
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2744
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIONS6HDFcjs.ModalFooter, { children: [
|
|
2745
2745
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2746
2746
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2747
2747
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2760,11 +2760,11 @@ function AssignTicketModal({
|
|
|
2760
2760
|
] });
|
|
2761
2761
|
}
|
|
2762
2762
|
function UnassignTicketModal({ isOpen, onClose, isPending = false, onConfirm }) {
|
|
2763
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2763
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIONS6HDFcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2764
2764
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2765
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2765
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ModalTitle, { children: "Unassign Ticket" }) }),
|
|
2766
2766
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full text-ods-text-primary text-h4", children: "This Ticket will no longer be linked to this remote session. The ticket itself stays as it is, and you can assign it again anytime." }),
|
|
2767
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2767
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIONS6HDFcjs.ModalFooter, { children: [
|
|
2768
2768
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2769
2769
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2770
2770
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { type: "button", variant: "destructive", onClick: onConfirm, loading: isPending, className: "flex-1", children: "Unassign" })
|
|
@@ -2845,7 +2845,7 @@ var STATUS_TAG = {
|
|
|
2845
2845
|
function RemoteSessionStatusTag({ status, className }) {
|
|
2846
2846
|
const { label, variant } = STATUS_TAG[status];
|
|
2847
2847
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2848
|
-
|
|
2848
|
+
_chunkGP7NV6BKcjs.Tag,
|
|
2849
2849
|
{
|
|
2850
2850
|
label,
|
|
2851
2851
|
variant,
|