@flamingo-stack/openframe-frontend-core 0.0.724 → 0.0.726
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-N2PX26BZ.js → chunk-2MMZTACD.js} +2 -2
- package/dist/{chunk-2HLGX6JF.js → chunk-3UZET2G7.js} +5 -5
- package/dist/{chunk-NLZZUWR6.js → chunk-3XDVGHL4.js} +4 -4
- package/dist/{chunk-L5CAET76.cjs → chunk-4ND65E2B.cjs} +64 -64
- package/dist/{chunk-OFOBVPDV.js → chunk-4VRHDFF2.js} +2 -2
- package/dist/{chunk-QJ67GFF3.cjs → chunk-5SWQ2ZU5.cjs} +32 -32
- package/dist/{chunk-CJENFR5T.js → chunk-6EFNWQRY.js} +1 -1
- package/dist/{chunk-7CNGNPBI.js → chunk-AZKVHJA5.js} +3 -3
- package/dist/{chunk-QN3OXRTM.js → chunk-C5KMQLJP.js} +5 -5
- package/dist/{chunk-MU5F5QXJ.js → chunk-COFT3YPA.js} +6 -6
- package/dist/{chunk-ZKL52ALL.cjs → chunk-DXDLCYCM.cjs} +3 -3
- package/dist/{chunk-3MMKIVWZ.cjs → chunk-EHYAOIE4.cjs} +23 -23
- package/dist/{chunk-5CJGNPTT.cjs → chunk-FMFCPX3R.cjs} +35 -35
- package/dist/{chunk-DGNGABNG.cjs → chunk-HEQ4GPYE.cjs} +4 -4
- package/dist/{chunk-JKWQWHNV.cjs → chunk-IITB5TJR.cjs} +4 -1
- package/dist/{chunk-MRBPJ4NB.js → chunk-JXJFUGJY.js} +1 -1
- package/dist/{chunk-BWMEQ7IZ.js → chunk-JYJBL7GD.js} +1 -1
- package/dist/{chunk-YKV45BSJ.cjs → chunk-KLCOSY7B.cjs} +4 -4
- package/dist/{chunk-QUI7DKBW.cjs → chunk-KNLRL63O.cjs} +41 -41
- package/dist/{chunk-PF4WAKCS.js → chunk-MM66P4X4.js} +4 -4
- package/dist/{chunk-6QO6BIX7.js → chunk-MQ3ZM7FJ.js} +1 -1
- package/dist/{chunk-OWFDXYEO.js → chunk-MSPXMSMY.js} +1 -1
- package/dist/{chunk-SOTXV3T5.cjs → chunk-MZ3TMXIX.cjs} +3 -3
- package/dist/{chunk-BIWG3CYN.cjs → chunk-MZY6LBM5.cjs} +3 -3
- package/dist/{chunk-7AXOAA5T.cjs → chunk-NJV3LIDE.cjs} +3 -3
- package/dist/{chunk-IUQKIU5A.js → chunk-NLWIBA55.js} +6 -6
- package/dist/{chunk-4N5DLIEC.js → chunk-NZYMMYWN.js} +1 -1
- package/dist/{chunk-GRB5HVEV.cjs → chunk-Q2G7NVFH.cjs} +505 -505
- package/dist/{chunk-IPUDFAU5.cjs → chunk-R3BOJNZI.cjs} +31 -31
- package/dist/{chunk-SVDXNMBL.cjs → chunk-RSE3MU4G.cjs} +16 -16
- package/dist/{chunk-3NVSC3BU.cjs → chunk-RVSNXG6J.cjs} +246 -267
- package/dist/{chunk-S4SVKXHN.js → chunk-SBPPM65Y.js} +54 -75
- package/dist/{chunk-KKO4GRM3.js → chunk-SCTS3EMJ.js} +4 -4
- package/dist/{chunk-VLPGV5WH.js → chunk-TU5LEF6A.js} +1 -1
- package/dist/{chunk-N4NGKXUU.cjs → chunk-U6LRRG2E.cjs} +15 -15
- package/dist/{chunk-6BKDXUOQ.js → chunk-VKR56R3U.js} +6 -6
- package/dist/{chunk-FR4MFSH5.cjs → chunk-VPABPC2M.cjs} +19 -19
- package/dist/{chunk-2A4AGW7Z.cjs → chunk-X2PG6XWF.cjs} +11 -11
- package/dist/{chunk-JQ7A7PO5.cjs → chunk-XEIDJ6SL.cjs} +76 -76
- package/dist/{chunk-ZQKN2Z6W.js → chunk-YQDKVGKO.js} +4 -1
- package/dist/{chunk-XDTD6YGG.js → chunk-YVWJ3TRY.js} +7 -7
- package/dist/{chunk-A4WHVIYZ.cjs → chunk-Z3VAFLYK.cjs} +17 -17
- package/dist/{cloud-tenants-UMZJZTMB.cjs → cloud-tenants-5JTQ2ENQ.cjs} +7 -7
- package/dist/{cloud-tenants-5MINXS5J.js → cloud-tenants-NH7VE7KE.js} +6 -6
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/case-studies/index.js +7 -7
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/chat/index.js +4 -4
- package/dist/components/chat/utils/icon-library.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +8 -8
- package/dist/components/contact/index.js +7 -7
- package/dist/components/docs/index.cjs +11 -11
- package/dist/components/docs/index.js +10 -10
- package/dist/components/embeds/index.cjs +8 -8
- package/dist/components/embeds/index.js +7 -7
- package/dist/components/faq/index.cjs +8 -8
- package/dist/components/faq/index.js +7 -7
- package/dist/components/features/index.cjs +7 -7
- package/dist/components/features/index.js +6 -6
- package/dist/components/help-center-pages/index.cjs +106 -106
- package/dist/components/help-center-pages/index.js +18 -18
- package/dist/components/index.cjs +55 -55
- package/dist/components/index.js +18 -18
- package/dist/components/meeting-scheduler/index.cjs +32 -32
- package/dist/components/meeting-scheduler/index.js +6 -6
- package/dist/components/navigation/index.cjs +10 -10
- package/dist/components/navigation/index.js +9 -9
- package/dist/components/onboarding-guides/index.cjs +10 -10
- package/dist/components/onboarding-guides/index.js +9 -9
- package/dist/components/product-demo/index.cjs +7 -7
- package/dist/components/product-demo/index.js +7 -7
- package/dist/components/related-content/index.cjs +4 -4
- package/dist/components/related-content/index.js +3 -3
- package/dist/components/tickets/index.cjs +11 -11
- package/dist/components/tickets/index.js +10 -10
- package/dist/components/ui/index.cjs +7 -7
- package/dist/components/ui/index.js +6 -6
- package/dist/{devices-FSSUAUQN.js → devices-OC7JEI6U.js} +6 -6
- package/dist/{devices-HOT7YSDN.cjs → devices-PV76NGQO.cjs} +8 -8
- package/dist/index.cjs +11 -11
- package/dist/index.js +10 -10
- package/dist/{knowledge-3N6HCFLU.cjs → knowledge-5AYFIVKD.cjs} +8 -8
- package/dist/{knowledge-7HRUJX26.js → knowledge-L7WQ7IEP.js} +6 -6
- package/dist/{logs-75M5YP6V.cjs → logs-4F77RJXJ.cjs} +15 -15
- package/dist/{logs-T25OE2QW.js → logs-MGFHGVIE.js} +6 -6
- package/dist/{policies-BTG7UJJC.cjs → policies-VCGM3C5Z.cjs} +11 -11
- package/dist/{policies-4OK4XTD4.js → policies-WRDZFNIB.js} +6 -6
- package/dist/{remote-session-4DTOM3QD.cjs → remote-session-CSX6ESSG.cjs} +5 -5
- package/dist/{remote-session-AZJXG7ZF.js → remote-session-ZBCWD5A5.js} +3 -3
- package/dist/{software-update-5SOV4FIR.js → software-update-WVG2GDZO.js} +6 -6
- package/dist/{software-update-OZURO4VK.cjs → software-update-YD2MNL3K.cjs} +11 -11
- package/dist/utils/index.cjs +17 -18
- package/dist/utils/index.js +17 -18
- package/dist/utils/source-grouping.d.ts +15 -5
- package/dist/utils/source-grouping.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/entity-cards/dispatch.tsx +47 -58
- package/src/components/chat/utils/icon-library.tsx +8 -3
- package/src/components/chat/utils/source-row-cta.ts +3 -3
- package/src/utils/source-grouping.ts +24 -14
- package/src/utils/source-icons.ts +16 -16
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
OWNER_TYPE,
|
|
35
35
|
formatDate,
|
|
36
36
|
formatTime
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-JXJFUGJY.js";
|
|
38
38
|
import {
|
|
39
39
|
ActionsMenuDropdown,
|
|
40
40
|
OverlayOpenRegistryProvider,
|
|
@@ -140,15 +140,14 @@ import {
|
|
|
140
140
|
trustFrameworksSummary,
|
|
141
141
|
useSelfFetch,
|
|
142
142
|
useVideoWarmup
|
|
143
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-6EFNWQRY.js";
|
|
144
144
|
import {
|
|
145
145
|
AgentMark
|
|
146
146
|
} from "./chunk-H3PKYE4N.js";
|
|
147
147
|
import {
|
|
148
148
|
AvatarStack,
|
|
149
|
-
getIconComponent,
|
|
150
149
|
resolveIcon
|
|
151
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-YQDKVGKO.js";
|
|
152
151
|
import {
|
|
153
152
|
FloatingTooltip,
|
|
154
153
|
SquareAvatar,
|
|
@@ -208,16 +207,10 @@ import {
|
|
|
208
207
|
Arrow02LeftIcon,
|
|
209
208
|
Arrow02RightIcon,
|
|
210
209
|
ArrowRightUpIcon,
|
|
211
|
-
BankIcon,
|
|
212
210
|
BoxArchiveIcon,
|
|
213
|
-
BracketCurlyCheckIcon,
|
|
214
211
|
CalendarIcon,
|
|
215
|
-
CallIcon,
|
|
216
|
-
ChartBar01VerIcon,
|
|
217
|
-
ChartPieIcon,
|
|
218
212
|
ChatPlusIcon,
|
|
219
213
|
ChatQuestionIcon,
|
|
220
|
-
ChatQuoteIcon,
|
|
221
214
|
ChatsIcon,
|
|
222
215
|
CheckCircleIcon,
|
|
223
216
|
CheckFillIcon,
|
|
@@ -225,22 +218,15 @@ import {
|
|
|
225
218
|
Chevron02LeftIcon,
|
|
226
219
|
Chevron02RightIcon,
|
|
227
220
|
ClickupLogoIcon,
|
|
228
|
-
ClipboardListIcon,
|
|
229
221
|
ClockHistoryIcon,
|
|
230
222
|
CodeIcon,
|
|
231
|
-
CodeSquareIcon,
|
|
232
|
-
CodingBranchIcon,
|
|
233
223
|
CodingCommitIcon,
|
|
234
|
-
CodingMergeIcon,
|
|
235
224
|
CodingPullRequestIcon,
|
|
236
|
-
CoinsExchangeCurrencyIcon,
|
|
237
225
|
CompassIcon,
|
|
238
|
-
Copy01Icon,
|
|
239
226
|
DotsLoaderIcon,
|
|
240
227
|
Ellipsis01Icon,
|
|
241
228
|
ExternalLinkIcon,
|
|
242
229
|
EyeIcon,
|
|
243
|
-
FileCodeIcon,
|
|
244
230
|
FileContentIcon,
|
|
245
231
|
GeminiLogoGreyIcon,
|
|
246
232
|
InfoCircleIcon,
|
|
@@ -250,11 +236,9 @@ import {
|
|
|
250
236
|
Megaphone01Icon,
|
|
251
237
|
MessageIndicatorIcon,
|
|
252
238
|
MicrophoneIcon,
|
|
253
|
-
MoneyBillDollarIcon,
|
|
254
239
|
NewspaperIcon,
|
|
255
240
|
OpenaiLogoGreyIcon,
|
|
256
241
|
PackageCheckIcon,
|
|
257
|
-
PackageIcon,
|
|
258
242
|
PackagePlusIcon,
|
|
259
243
|
PenEditIcon,
|
|
260
244
|
PlusCircleIcon,
|
|
@@ -6880,11 +6864,11 @@ var SOURCE_ICON_NAMES = {
|
|
|
6880
6864
|
vendors: "package-search",
|
|
6881
6865
|
// Financials
|
|
6882
6866
|
"investor-updates": "mail",
|
|
6883
|
-
"financial-kpis": "
|
|
6884
|
-
"financial-cap-table": "
|
|
6885
|
-
"financial-pnl": "
|
|
6886
|
-
"financial-balance-sheet": "
|
|
6887
|
-
"financial-cash-flow": "
|
|
6867
|
+
"financial-kpis": "chart-bar-01-ver",
|
|
6868
|
+
"financial-cap-table": "chart-pie",
|
|
6869
|
+
"financial-pnl": "money-bill-dollar",
|
|
6870
|
+
"financial-balance-sheet": "bank",
|
|
6871
|
+
"financial-cash-flow": "coins-exchange-currency",
|
|
6888
6872
|
// ClickUp
|
|
6889
6873
|
"clickup-roadmap": "clickup",
|
|
6890
6874
|
"clickup-delivery": "clickup",
|
|
@@ -6903,22 +6887,22 @@ var SOURCE_ICON_NAMES = {
|
|
|
6903
6887
|
// Communications
|
|
6904
6888
|
"slack-messages": "slack",
|
|
6905
6889
|
// People-hub employee content
|
|
6906
|
-
"what-i-shipped": "
|
|
6907
|
-
"how-i-work": "
|
|
6908
|
-
"ai-prompts": "
|
|
6890
|
+
"what-i-shipped": "rocket-02",
|
|
6891
|
+
"how-i-work": "clipboard-list",
|
|
6892
|
+
"ai-prompts": "chat-quote",
|
|
6909
6893
|
// Product-hub internal
|
|
6910
6894
|
"design-docs": "file-text",
|
|
6911
6895
|
"openframe-tenants": "openframe",
|
|
6912
|
-
"prospect-calls": "
|
|
6896
|
+
"prospect-calls": "call",
|
|
6913
6897
|
// Code intelligence
|
|
6914
|
-
"code-rules": "check
|
|
6915
|
-
"code-graph-repos": "
|
|
6898
|
+
"code-rules": "bracket-curly-check",
|
|
6899
|
+
"code-graph-repos": "coding-branch",
|
|
6916
6900
|
"code-graph-deployments": "package",
|
|
6917
|
-
"code-graph-files": "file-
|
|
6918
|
-
"code-symbols": "
|
|
6919
|
-
"code-duplicates": "
|
|
6920
|
-
"code-impact": "
|
|
6921
|
-
"change-sets": "coding-
|
|
6901
|
+
"code-graph-files": "file-code",
|
|
6902
|
+
"code-symbols": "code-square",
|
|
6903
|
+
"code-duplicates": "copy-01",
|
|
6904
|
+
"code-impact": "coding-pull-request",
|
|
6905
|
+
"change-sets": "coding-merge"
|
|
6922
6906
|
};
|
|
6923
6907
|
function getSourceIconName(tableId) {
|
|
6924
6908
|
if (!tableId) return void 0;
|
|
@@ -7095,8 +7079,7 @@ function typeOf(source) {
|
|
|
7095
7079
|
return source.documentType || defaultDocumentTypeForTableId(source.sourceRepo) || "";
|
|
7096
7080
|
}
|
|
7097
7081
|
function joinsTableChip(source) {
|
|
7098
|
-
|
|
7099
|
-
return groupsByTable(typeOf({ ...source, sourceRepo: source.sourceRepo }));
|
|
7082
|
+
return !!source.sourceRepo;
|
|
7100
7083
|
}
|
|
7101
7084
|
function rowsOf(source) {
|
|
7102
7085
|
if (isGroupedChip(source)) return source.items ?? [];
|
|
@@ -15004,7 +14987,7 @@ function sourceRowCtxFromRuntime(runtime, surface = {}) {
|
|
|
15004
14987
|
}
|
|
15005
14988
|
function pickSourceIcon(sourceRepo, documentType) {
|
|
15006
14989
|
const iconName = sourceRepo ? getSourceIconName(sourceRepo) : void 0;
|
|
15007
|
-
const icon = iconName ?
|
|
14990
|
+
const icon = iconName ? resolveIcon(iconName, { variant: "brand" }) : FileText2;
|
|
15008
14991
|
const iconLabel = documentType ?? "Source";
|
|
15009
14992
|
return { icon, iconLabel };
|
|
15010
14993
|
}
|
|
@@ -15821,11 +15804,11 @@ function refHydratedEntry(docType, label, renderRef) {
|
|
|
15821
15804
|
};
|
|
15822
15805
|
}
|
|
15823
15806
|
var FINANCIAL_CARD_CONFIGS = {
|
|
15824
|
-
financial_kpi: { label: "Financial KPI"
|
|
15825
|
-
cap_table: { label: "Cap table entry"
|
|
15826
|
-
profit_loss: { label: "P&L period"
|
|
15827
|
-
balance_sheet: { label: "Balance sheet"
|
|
15828
|
-
cash_flow: { label: "Cash flow"
|
|
15807
|
+
financial_kpi: { label: "Financial KPI" },
|
|
15808
|
+
cap_table: { label: "Cap table entry" },
|
|
15809
|
+
profit_loss: { label: "P&L period" },
|
|
15810
|
+
balance_sheet: { label: "Balance sheet" },
|
|
15811
|
+
cash_flow: { label: "Cash flow" }
|
|
15829
15812
|
};
|
|
15830
15813
|
function registryEntries(configs, build) {
|
|
15831
15814
|
const out = {};
|
|
@@ -15839,7 +15822,7 @@ function financialRegistryEntries() {
|
|
|
15839
15822
|
GenericFinancialChatCard,
|
|
15840
15823
|
{
|
|
15841
15824
|
chatRef: displayRef,
|
|
15842
|
-
icon:
|
|
15825
|
+
icon: sourceGlyph(docType),
|
|
15843
15826
|
isNewTab: opts.isNewTab,
|
|
15844
15827
|
discuss: opts.discuss
|
|
15845
15828
|
}
|
|
@@ -15865,41 +15848,45 @@ var GITHUB_CARD_CONFIGS = {
|
|
|
15865
15848
|
github_pr_review: { label: "GitHub review", kind: "pr_review" },
|
|
15866
15849
|
github_pr_review_public: { label: "GitHub review (public)", kind: "pr_review" }
|
|
15867
15850
|
};
|
|
15868
|
-
var OpenFrameGlyph = resolveIcon("openframe");
|
|
15869
15851
|
var REF_GLYPH_CARD_CONFIGS = {
|
|
15870
|
-
openframe_tenant: { label: "OpenFrame tenant"
|
|
15871
|
-
prospect_call: { label: "Prospect call",
|
|
15852
|
+
openframe_tenant: { label: "OpenFrame tenant" },
|
|
15853
|
+
prospect_call: { label: "Prospect call", media: true },
|
|
15872
15854
|
// Code intelligence (product-hub internal): the review rules a repository is
|
|
15873
15855
|
// held to, the repositories themselves, and one row per deployment
|
|
15874
15856
|
// environment. Glyph cards like their siblings — none of the three has a
|
|
15875
15857
|
// cover image, and a rule is read in the admin screen it links to.
|
|
15876
|
-
code_rule: { label: "Code rule"
|
|
15877
|
-
code_repo: { label: "Repository"
|
|
15878
|
-
code_deployment: { label: "Deployment"
|
|
15858
|
+
code_rule: { label: "Code rule" },
|
|
15859
|
+
code_repo: { label: "Repository" },
|
|
15860
|
+
code_deployment: { label: "Deployment" },
|
|
15879
15861
|
// The graph's own objects: one source file's public surface, one public
|
|
15880
15862
|
// symbol, a near-duplicate cluster, and a pull request's blast radius.
|
|
15881
15863
|
// Glyph cards for the same reason as their three siblings — none carries a
|
|
15882
15864
|
// cover image, and each links to the admin screen that renders it in full.
|
|
15883
|
-
code_file: { label: "Code file"
|
|
15884
|
-
code_symbol: { label: "Code symbol"
|
|
15885
|
-
code_duplicate: { label: "Duplicate code"
|
|
15886
|
-
code_impact: { label: "Change impact"
|
|
15865
|
+
code_file: { label: "Code file" },
|
|
15866
|
+
code_symbol: { label: "Code symbol" },
|
|
15867
|
+
code_duplicate: { label: "Duplicate code" },
|
|
15868
|
+
code_impact: { label: "Change impact" },
|
|
15887
15869
|
// A change set: pull requests across repositories declared as one change, with the ClickUp tasks and design
|
|
15888
15870
|
// docs its pull requests are attached to. ONE card for it wherever a set is shown (chat, a design doc's page).
|
|
15889
|
-
change_set: { label: "Change set"
|
|
15871
|
+
change_set: { label: "Change set" },
|
|
15890
15872
|
// A page of the public website (pricing, product, legal, and every page the navigation lists), read live
|
|
15891
15873
|
// from the data the page shows. A glyph card: a page has no cover of its own, and the card opens the page.
|
|
15892
15874
|
site_page: { label: "Website page", icon: (ref) => /* @__PURE__ */ jsx85(SitePageGlyph, { iconName: refText(ref, "icon_name") }) },
|
|
15893
15875
|
// What OpenFrame charges, read live from its billing: the plan in force, or one AI model's token exchange
|
|
15894
15876
|
// rate. A glyph card; it opens the pricing page.
|
|
15895
|
-
openframe_price: { label: "OpenFrame price"
|
|
15877
|
+
openframe_price: { label: "OpenFrame price" },
|
|
15896
15878
|
// A vendor (product) of the OpenMSP directory. A glyph card; it opens the vendor's page there.
|
|
15897
15879
|
vendor: { label: "Vendor", icon: (ref) => /* @__PURE__ */ jsx85(VendorGlyph, { title: ref?.title ?? "", logoUrl: refText(ref, "logo_url") }) }
|
|
15898
15880
|
};
|
|
15881
|
+
function sourceGlyph(docType) {
|
|
15882
|
+
const { Icon } = resolveSourceIcon({ sourceRepo: defaultTableIdForDocumentType(docType), documentType: docType });
|
|
15883
|
+
return /* @__PURE__ */ jsx85(Icon, { className: "size-6" });
|
|
15884
|
+
}
|
|
15899
15885
|
function refGlyphRegistryEntries() {
|
|
15900
|
-
return registryEntries(
|
|
15901
|
-
|
|
15902
|
-
|
|
15886
|
+
return registryEntries(REF_GLYPH_CARD_CONFIGS, (config, docType) => {
|
|
15887
|
+
const glyph = config.icon ?? (() => sourceGlyph(docType));
|
|
15888
|
+
const cfg = config;
|
|
15889
|
+
return refHydratedEntry(
|
|
15903
15890
|
docType,
|
|
15904
15891
|
cfg.label,
|
|
15905
15892
|
(displayRef, opts) => cfg.media ? /* @__PURE__ */ jsx85(
|
|
@@ -15911,24 +15898,16 @@ function refGlyphRegistryEntries() {
|
|
|
15911
15898
|
displayRef.metadata?.videoPoster,
|
|
15912
15899
|
opts.extras?.buildOgPlaceholderUrl?.(displayRef.title ?? "") ?? null
|
|
15913
15900
|
),
|
|
15914
|
-
fallbackIcon:
|
|
15901
|
+
fallbackIcon: glyph(displayRef),
|
|
15915
15902
|
status: { label: cfg.label, variant: "grey" },
|
|
15916
15903
|
chatRef: displayRef,
|
|
15917
15904
|
isNewTab: opts.isNewTab,
|
|
15918
15905
|
discuss: opts.discuss,
|
|
15919
15906
|
menuAriaLabel: `${cfg.label} actions`
|
|
15920
15907
|
}
|
|
15921
|
-
) : /* @__PURE__ */ jsx85(
|
|
15922
|
-
|
|
15923
|
-
|
|
15924
|
-
chatRef: displayRef,
|
|
15925
|
-
icon: cfg.icon(displayRef),
|
|
15926
|
-
isNewTab: opts.isNewTab,
|
|
15927
|
-
discuss: opts.discuss
|
|
15928
|
-
}
|
|
15929
|
-
)
|
|
15930
|
-
)
|
|
15931
|
-
);
|
|
15908
|
+
) : /* @__PURE__ */ jsx85(GlyphChatCard, { chatRef: displayRef, icon: glyph(displayRef), isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
15909
|
+
);
|
|
15910
|
+
});
|
|
15932
15911
|
}
|
|
15933
15912
|
function fetchedEmployeeEntryDisplayRef(item, chatRef) {
|
|
15934
15913
|
const it = item;
|
|
@@ -15939,9 +15918,9 @@ function fetchedEmployeeEntryDisplayRef(item, chatRef) {
|
|
|
15939
15918
|
return { ...chatRef, title, preview: preview.length > 0 ? preview : chatRef.preview };
|
|
15940
15919
|
}
|
|
15941
15920
|
var EMPLOYEE_ENTRY_CARD_CONFIGS = {
|
|
15942
|
-
what_i_shipped: { label: "What I Shipped"
|
|
15943
|
-
how_i_work: { label: "How I Work"
|
|
15944
|
-
ai_prompt: { label: "Squawkbox"
|
|
15921
|
+
what_i_shipped: { label: "What I Shipped" },
|
|
15922
|
+
how_i_work: { label: "How I Work" },
|
|
15923
|
+
ai_prompt: { label: "Squawkbox" }
|
|
15945
15924
|
};
|
|
15946
15925
|
function employeeEntryRegistryEntries() {
|
|
15947
15926
|
return registryEntries(EMPLOYEE_ENTRY_CARD_CONFIGS, (cfg, docType) => ({
|
|
@@ -15953,7 +15932,7 @@ function employeeEntryRegistryEntries() {
|
|
|
15953
15932
|
GlyphChatCard,
|
|
15954
15933
|
{
|
|
15955
15934
|
chatRef: fetchedEmployeeEntryDisplayRef(item, chatRef),
|
|
15956
|
-
icon:
|
|
15935
|
+
icon: sourceGlyph(docType),
|
|
15957
15936
|
isNewTab: opts.isNewTab,
|
|
15958
15937
|
discuss: opts.discuss
|
|
15959
15938
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useOptionalTicketLive
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JYJBL7GD.js";
|
|
5
5
|
import {
|
|
6
6
|
AppLayoutDrawerContainerContext,
|
|
7
7
|
AppLayoutDrawerCoordinationContext,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
UnreadCountBadge,
|
|
13
13
|
UnreadDot,
|
|
14
14
|
useOptionalNotifications
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-C5KMQLJP.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveActiveSection,
|
|
18
18
|
useActiveSection,
|
|
@@ -28,14 +28,14 @@ import {
|
|
|
28
28
|
OVERLAY_BACKDROP_CLASS,
|
|
29
29
|
buildTicketOpenHref,
|
|
30
30
|
useIsHydrated
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-SBPPM65Y.js";
|
|
32
32
|
import {
|
|
33
33
|
useHeaderHeight
|
|
34
34
|
} from "./chunk-4I3K6LEH.js";
|
|
35
35
|
import {
|
|
36
36
|
CaseStudyCard,
|
|
37
37
|
EntityIcon
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-6EFNWQRY.js";
|
|
39
39
|
import {
|
|
40
40
|
SquareAvatar,
|
|
41
41
|
Tag
|
|
@@ -10,7 +10,7 @@ var _chunkA6P6DHEZcjs = require('./chunk-A6P6DHEZ.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkNJV3LIDEcjs = require('./chunk-NJV3LIDE.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -2027,7 +2027,7 @@ function RemoteDesktopChatMessageRow({
|
|
|
2027
2027
|
children: authorName
|
|
2028
2028
|
}
|
|
2029
2029
|
),
|
|
2030
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { suppressHydrationWarning: true, className: "shrink-0 text-ods-text-secondary text-h6", children:
|
|
2030
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { suppressHydrationWarning: true, className: "shrink-0 text-ods-text-secondary text-h6", children: _chunkNJV3LIDEcjs.formatTime.call(void 0, sentAt) })
|
|
2031
2031
|
] }),
|
|
2032
2032
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "whitespace-pre-wrap text-ods-text-primary text-h4", children: body })
|
|
2033
2033
|
] });
|
|
@@ -2072,7 +2072,7 @@ function RemoteDesktopChatPanel({
|
|
|
2072
2072
|
message.id
|
|
2073
2073
|
)) }) }),
|
|
2074
2074
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2075
|
-
|
|
2075
|
+
_chunkNJV3LIDEcjs.ChatInput,
|
|
2076
2076
|
{
|
|
2077
2077
|
placeholder: "Enter your Message...",
|
|
2078
2078
|
onSend,
|
|
@@ -2429,9 +2429,9 @@ function KeepRecordingModal({
|
|
|
2429
2429
|
if (!canKeep || isPending) return;
|
|
2430
2430
|
onConfirm({ reason, description: reason === "OTHER" ? trimmed : null });
|
|
2431
2431
|
};
|
|
2432
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2432
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNJV3LIDEcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2433
2433
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2434
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2434
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNJV3LIDEcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNJV3LIDEcjs.ModalTitle, { children: "Keep this recording" }) }),
|
|
2435
2435
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2436
2436
|
KeepNotice,
|
|
2437
2437
|
{
|
|
@@ -2469,7 +2469,7 @@ function KeepRecordingModal({
|
|
|
2469
2469
|
}
|
|
2470
2470
|
)
|
|
2471
2471
|
] }),
|
|
2472
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2472
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNJV3LIDEcjs.ModalFooter, { children: [
|
|
2473
2473
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHQIOMFJHcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2474
2474
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2475
2475
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2499,9 +2499,9 @@ function ReleaseKeepingModal({
|
|
|
2499
2499
|
isPending = false,
|
|
2500
2500
|
onConfirm
|
|
2501
2501
|
}) {
|
|
2502
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2502
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNJV3LIDEcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2503
2503
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2504
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2504
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNJV3LIDEcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNJV3LIDEcjs.ModalTitle, { children: "Release Keeping" }) }),
|
|
2505
2505
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xsf)] text-ods-text-primary text-h4", children: [
|
|
2506
2506
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { children: [
|
|
2507
2507
|
"Kept by ",
|
|
@@ -2518,7 +2518,7 @@ function ReleaseKeepingModal({
|
|
|
2518
2518
|
] })
|
|
2519
2519
|
] }),
|
|
2520
2520
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, KeepNotice, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.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." }),
|
|
2521
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2521
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNJV3LIDEcjs.ModalFooter, { children: [
|
|
2522
2522
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHQIOMFJHcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2523
2523
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2524
2524
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHQIOMFJHcjs.Button, { type: "button", variant: "accent", onClick: onConfirm, loading: isPending, className: "flex-1", children: "Release Keeping" })
|
|
@@ -2560,9 +2560,9 @@ function AssignTicketModal({
|
|
|
2560
2560
|
if (ticketIds.length === 0 || isPending) return;
|
|
2561
2561
|
onConfirm(ticketIds);
|
|
2562
2562
|
};
|
|
2563
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2563
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNJV3LIDEcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2564
2564
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2565
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2565
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNJV3LIDEcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNJV3LIDEcjs.ModalTitle, { children: "Assign Ticket" }) }),
|
|
2566
2566
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2567
2567
|
Autocomplete,
|
|
2568
2568
|
{
|
|
@@ -2581,7 +2581,7 @@ function AssignTicketModal({
|
|
|
2581
2581
|
disabled: isPending
|
|
2582
2582
|
}
|
|
2583
2583
|
),
|
|
2584
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2584
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNJV3LIDEcjs.ModalFooter, { children: [
|
|
2585
2585
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHQIOMFJHcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2586
2586
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2587
2587
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2600,11 +2600,11 @@ function AssignTicketModal({
|
|
|
2600
2600
|
] });
|
|
2601
2601
|
}
|
|
2602
2602
|
function UnassignTicketModal({ isOpen, onClose, isPending = false, onConfirm }) {
|
|
2603
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2603
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNJV3LIDEcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2604
2604
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2605
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2605
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNJV3LIDEcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNJV3LIDEcjs.ModalTitle, { children: "Unassign Ticket" }) }),
|
|
2606
2606
|
/* @__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." }),
|
|
2607
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2607
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNJV3LIDEcjs.ModalFooter, { children: [
|
|
2608
2608
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHQIOMFJHcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2609
2609
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2610
2610
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHQIOMFJHcjs.Button, { type: "button", variant: "destructive", onClick: onConfirm, loading: isPending, className: "flex-1", children: "Unassign" })
|
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ArticleAuthorByline,
|
|
4
4
|
DetailPageSkeleton
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2MMZTACD.js";
|
|
6
6
|
import {
|
|
7
7
|
DocSearchBar,
|
|
8
8
|
useDocSearch
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AZKVHJA5.js";
|
|
10
10
|
import {
|
|
11
11
|
EntityTagBadges,
|
|
12
12
|
FilterPillRow,
|
|
13
13
|
LoadError,
|
|
14
14
|
PageShell,
|
|
15
15
|
RichMarkdownRenderer
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-C5KMQLJP.js";
|
|
17
17
|
import {
|
|
18
18
|
PageLayout
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TU5LEF6A.js";
|
|
20
20
|
import {
|
|
21
21
|
EntityVideoSection,
|
|
22
22
|
VideoBitesStrip,
|
|
23
23
|
resolveContentHref,
|
|
24
24
|
useCaptions
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-SBPPM65Y.js";
|
|
26
26
|
import {
|
|
27
27
|
useRouter,
|
|
28
28
|
useSearchParams
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
toStripProfile,
|
|
35
35
|
useSelfFetch,
|
|
36
36
|
useVideoWarmup
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-6EFNWQRY.js";
|
|
38
38
|
import {
|
|
39
39
|
buildOgPlaceholderUrl
|
|
40
40
|
} from "./chunk-FSQQZFVG.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
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 _chunkQ2G7NVFHcjs = require('./chunk-Q2G7NVFH.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkU6LRRG2Ecjs = require('./chunk-U6LRRG2E.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk4LY6R4TNcjs = require('./chunk-4LY6R4TN.cjs');
|
|
@@ -18,7 +18,7 @@ var _chunk4LY6R4TNcjs = require('./chunk-4LY6R4TN.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkRVSNXG6Jcjs = require('./chunk-RVSNXG6J.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -38,7 +38,7 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkHEQ4GPYEcjs = require('./chunk-HEQ4GPYE.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
var _chunkVX4E6YSBcjs = require('./chunk-VX4E6YSB.cjs');
|
|
@@ -70,7 +70,7 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
70
70
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
71
71
|
"div",
|
|
72
72
|
{
|
|
73
|
-
id:
|
|
73
|
+
id: _chunkRVSNXG6Jcjs.faqItemAnchor.call(void 0, item.id),
|
|
74
74
|
className: "scroll-mt-24 transition-colors hover:bg-ods-bg-hover",
|
|
75
75
|
children: [
|
|
76
76
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -128,29 +128,29 @@ var DEFAULT_ASK_CARD = {
|
|
|
128
128
|
var PICK_ROOT_MARGIN = "600px";
|
|
129
129
|
var fillAssistant = (text, name) => text.split("{assistant}").join(name);
|
|
130
130
|
function faqAskCardShown(assistant) {
|
|
131
|
-
return
|
|
131
|
+
return _chunkRVSNXG6Jcjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
132
132
|
}
|
|
133
133
|
function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
|
|
134
134
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
135
135
|
const { ref, inView } = _chunkK2JUJ37Dcjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
136
136
|
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
137
137
|
if (inView && !reached) setReached(true);
|
|
138
|
-
const shownElsewhere =
|
|
138
|
+
const shownElsewhere = _chunkRVSNXG6Jcjs.useShownAskPromptIds.call(void 0, );
|
|
139
139
|
const excluded = exclude === void 0 ? shownElsewhere : exclude;
|
|
140
|
-
const slots = _nullishCoalesce(_nullishCoalesce(count, () => ( _optionalChain([assistant, 'optionalAccess', _2 => _2.askCard, 'optionalAccess', _3 => _3.count]))), () => (
|
|
141
|
-
const { prompts, isLoading, supported } =
|
|
140
|
+
const slots = _nullishCoalesce(_nullishCoalesce(count, () => ( _optionalChain([assistant, 'optionalAccess', _2 => _2.askCard, 'optionalAccess', _3 => _3.count]))), () => ( _chunkRVSNXG6Jcjs.ASK_PROMPTS_DEFAULT_COUNT));
|
|
141
|
+
const { prompts, isLoading, supported } = _chunkRVSNXG6Jcjs.useAskPrompts.call(void 0, {
|
|
142
142
|
topic,
|
|
143
143
|
count: slots,
|
|
144
144
|
exclude: _nullishCoalesce(excluded, () => ( void 0)),
|
|
145
145
|
enabled: reached && excluded !== null
|
|
146
146
|
});
|
|
147
|
-
const open =
|
|
147
|
+
const open = _chunkRVSNXG6Jcjs.useAssistantOpen.call(void 0, topic, onOpen);
|
|
148
148
|
const scoped = _react.useMemo.call(void 0, () => assistant ? { ...assistant, open } : null, [assistant, open]);
|
|
149
149
|
if (!faqAskCardShown(assistant) || !assistant.name) return null;
|
|
150
150
|
const name = assistant.name;
|
|
151
151
|
const cardDescription = _nullishCoalesce(_nullishCoalesce(description, () => ( _optionalChain([assistant, 'access', _4 => _4.askCard, 'optionalAccess', _5 => _5.description]))), () => ( DEFAULT_ASK_CARD.description));
|
|
152
152
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEWPR7662cjs.AssistantRuntimeContext.Provider, { value: scoped, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
153
|
-
|
|
153
|
+
_chunkRVSNXG6Jcjs.AskCard,
|
|
154
154
|
{
|
|
155
155
|
title: fillAssistant(_nullishCoalesce(_nullishCoalesce(title, () => ( _optionalChain([assistant, 'access', _6 => _6.askCard, 'optionalAccess', _7 => _7.title]))), () => ( DEFAULT_ASK_CARD.title)), name),
|
|
156
156
|
description: cardDescription ? fillAssistant(cardDescription, name) : void 0,
|
|
@@ -196,7 +196,7 @@ function buildFaqJsonLdFromFaqs(faqs, opts = {}) {
|
|
|
196
196
|
|
|
197
197
|
var DEFAULT_HEADING_TEXT = "Frequently Asked Questions";
|
|
198
198
|
function buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl = "") {
|
|
199
|
-
return
|
|
199
|
+
return _chunkHEQ4GPYEcjs.buildSuggestionUrl.call(void 0, "/api/faqs", { apiBaseUrl, entityType, entityId, count: minResults });
|
|
200
200
|
}
|
|
201
201
|
function groupFaqsBySection(faqs) {
|
|
202
202
|
const byName = /* @__PURE__ */ new Map();
|
|
@@ -211,7 +211,7 @@ function groupFaqsBySection(faqs) {
|
|
|
211
211
|
}
|
|
212
212
|
let group = byName.get(name);
|
|
213
213
|
if (!group) {
|
|
214
|
-
group = { section: name, slug:
|
|
214
|
+
group = { section: name, slug: _chunkRVSNXG6Jcjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
215
215
|
byName.set(name, group);
|
|
216
216
|
}
|
|
217
217
|
group.items.push(item);
|
|
@@ -266,7 +266,7 @@ function GroupedFaqList({
|
|
|
266
266
|
}, [slugKey]);
|
|
267
267
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
268
268
|
_react.useEffect.call(void 0, () => {
|
|
269
|
-
const refresh = () => setHashTarget(
|
|
269
|
+
const refresh = () => setHashTarget(_chunkRVSNXG6Jcjs.parseFaqHash.call(void 0, window.location.hash));
|
|
270
270
|
refresh();
|
|
271
271
|
window.addEventListener("hashchange", refresh);
|
|
272
272
|
return () => window.removeEventListener("hashchange", refresh);
|
|
@@ -316,7 +316,7 @@ function GroupedFaqList({
|
|
|
316
316
|
const questions = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-10", children: groups.map((group) => {
|
|
317
317
|
const key = groupKey(group);
|
|
318
318
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { id: _nullishCoalesce(group.slug, () => ( void 0)), className: "scroll-mt-24 space-y-4", children: [
|
|
319
|
-
group.section && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategoryHeading, { className:
|
|
319
|
+
group.section && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategoryHeading, { className: _chunkHEQ4GPYEcjs.SECTION_HEADING_CLASS, children: group.section }),
|
|
320
320
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
321
321
|
FaqAccordion,
|
|
322
322
|
{
|
|
@@ -372,10 +372,10 @@ function FaqSection({
|
|
|
372
372
|
() => initialFaqs ? { faqs: initialFaqs } : void 0,
|
|
373
373
|
[initialFaqs]
|
|
374
374
|
);
|
|
375
|
-
const { data, isLoading, error } =
|
|
375
|
+
const { data, isLoading, error } = _chunkHEQ4GPYEcjs.useSelfFetch.call(void 0, url, { initialData });
|
|
376
376
|
const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(_optionalChain([data, 'optionalAccess', _23 => _23.faqs]), () => ( [])), [_optionalChain([data, 'optionalAccess', _24 => _24.faqs])]);
|
|
377
377
|
const groups = _react.useMemo.call(void 0, () => faqs.length > 0 ? groupFaqsBySection(faqs) : [], [faqs]);
|
|
378
|
-
const headingNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
378
|
+
const headingNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunkHEQ4GPYEcjs.SECTION_HEADING_CLASS, children: DEFAULT_HEADING_TEXT }) : heading;
|
|
379
379
|
if (error) return null;
|
|
380
380
|
if (!isLoading && faqs.length === 0) return null;
|
|
381
381
|
if (isLoading && faqs.length === 0) {
|
|
@@ -426,7 +426,7 @@ function FaqDocumentPage({
|
|
|
426
426
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _25 => _25.label]), () => ( "Back to home")),
|
|
427
427
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _26 => _26.href]), () => ( "/")))
|
|
428
428
|
};
|
|
429
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
429
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU6LRRG2Ecjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
430
430
|
FaqSection,
|
|
431
431
|
{
|
|
432
432
|
initialFaqs,
|
|
@@ -440,7 +440,7 @@ function FaqDocumentPage({
|
|
|
440
440
|
ask
|
|
441
441
|
}
|
|
442
442
|
) });
|
|
443
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
443
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQ2G7NVFHcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
|