@flamingo-stack/openframe-frontend-core 0.0.854 → 0.0.856
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/{case-study-card-WP5Z234Q.cjs → case-study-card-6VAMNHLU.cjs} +8 -8
- package/dist/{chunk-ZDPPNHA2.cjs → chunk-2BTEERLH.cjs} +3 -3
- package/dist/{chunk-FBANHIAG.cjs → chunk-2JCA7BRK.cjs} +19 -19
- package/dist/{chunk-GVHCQRUE.cjs → chunk-2P72KAG5.cjs} +23 -23
- package/dist/{chunk-YY3WP2YQ.cjs → chunk-3GJ75OUL.cjs} +183 -183
- package/dist/{chunk-FJXSKMQJ.cjs → chunk-4H3J57AN.cjs} +25 -25
- package/dist/{chunk-6GWRPW6B.cjs → chunk-5NK3FUHY.cjs} +4 -4
- package/dist/{chunk-DLTPSP5F.cjs → chunk-5TYG5JNB.cjs} +2 -2
- package/dist/{chunk-63ZV3UGG.cjs → chunk-65NMKAPQ.cjs} +12 -12
- package/dist/{chunk-IGVAPIEW.cjs → chunk-6C4OR4MZ.cjs} +2 -2
- package/dist/{chunk-GG466XFQ.cjs → chunk-6DMH4GXN.cjs} +30 -5
- package/dist/{chunk-2IJMHBOK.cjs → chunk-77GX573I.cjs} +9 -9
- package/dist/{chunk-O3EKOXFZ.cjs → chunk-AYMY2VNB.cjs} +37 -43
- package/dist/{chunk-JKBNK5U6.cjs → chunk-D6GEMVHD.cjs} +3 -3
- package/dist/{chunk-SSKMGH5O.cjs → chunk-DXVGGWLG.cjs} +10 -10
- package/dist/{chunk-S5P6CF5R.cjs → chunk-E5OQHFM6.cjs} +54 -54
- package/dist/{chunk-5TXE7BXT.cjs → chunk-EOUEUYCQ.cjs} +54 -54
- package/dist/{chunk-EIHMPQRQ.cjs → chunk-ESGE7CUX.cjs} +14 -14
- package/dist/{chunk-ETZFBB7O.cjs → chunk-EXQSIX2I.cjs} +4 -4
- package/dist/{chunk-3WXHPD6N.cjs → chunk-F33EAPD2.cjs} +124 -124
- package/dist/{chunk-4SSJ3T3N.cjs → chunk-GK577ZLJ.cjs} +3 -13
- package/dist/{chunk-ETQNMR2K.cjs → chunk-GTUQGVXH.cjs} +8 -8
- package/dist/{chunk-7MOBD44H.cjs → chunk-HGM7WDJT.cjs} +28 -28
- package/dist/{chunk-VMAOZA2V.cjs → chunk-HML3JUXF.cjs} +324 -322
- package/dist/{chunk-4O5N5CGK.cjs → chunk-J3CFRGZ2.cjs} +17 -17
- package/dist/{chunk-LQDAB5V5.cjs → chunk-KZAQPRTA.cjs} +9 -11
- package/dist/{chunk-6DCUGIGU.cjs → chunk-LSLRJJFP.cjs} +2 -2
- package/dist/{chunk-ONYANAMA.cjs → chunk-MX52LZ6M.cjs} +6 -6
- package/dist/{chunk-OH5TXFRR.cjs → chunk-O4CPT3RK.cjs} +7 -7
- package/dist/{chunk-BAA3YCLT.cjs → chunk-OW5MQKCI.cjs} +103 -103
- package/dist/{chunk-5HMENXSR.cjs → chunk-PCQ2HKU3.cjs} +5 -5
- package/dist/{chunk-D2XGRWPW.cjs → chunk-QLFNMWBP.cjs} +90 -90
- package/dist/{chunk-UPQ4MAR7.cjs → chunk-QZXCUY36.cjs} +53 -53
- package/dist/{chunk-KKFDRCQF.cjs → chunk-RY7INTYU.cjs} +14 -1
- package/dist/{chunk-PRJZMZ3X.cjs → chunk-SJZWVMBF.cjs} +678 -678
- package/dist/{chunk-GI3MMBP3.cjs → chunk-SQ7YHWEP.cjs} +228 -15
- package/dist/{chunk-ACPOJE32.cjs → chunk-STV6VJ3U.cjs} +21 -21
- package/dist/{chunk-QD727QFI.cjs → chunk-T54I5ZZY.cjs} +7 -7
- package/dist/{chunk-4LTLEUY5.cjs → chunk-TW5Y4D5I.cjs} +7 -7
- package/dist/{chunk-6XU3RCK3.cjs → chunk-UHGARY3S.cjs} +27 -27
- package/dist/{chunk-7J5NSWJG.cjs → chunk-UZIGMLTH.cjs} +100 -100
- package/dist/{chunk-FX35L4Y6.cjs → chunk-XCQ5I27Z.cjs} +3 -3
- package/dist/{chunk-5OENPMRU.cjs → chunk-XI3AMOW6.cjs} +65 -62
- package/dist/{chunk-TMPLHUUU.cjs → chunk-XTLMWLFB.cjs} +6 -6
- package/dist/{chunk-AZEO7HBB.cjs → chunk-Y44EF4JW.cjs} +2 -2
- package/dist/{chunk-RMI6O3AE.cjs → chunk-YB244RRB.cjs} +36 -36
- package/dist/{chunk-KA3L6D5N.cjs → chunk-YSXVRTGT.cjs} +9 -12
- package/dist/{chunk-H3GBPYPS.cjs → chunk-ZYAVIRQV.cjs} +25 -25
- package/dist/{cloud-tenants-5RNK4ZAT.cjs → cloud-tenants-J5T4YL2P.cjs} +28 -29
- package/dist/components/case-studies/index.cjs +44 -45
- package/dist/components/chat/chat-message-row.d.ts +1 -1
- package/dist/components/chat/chat-message-row.d.ts.map +1 -1
- package/dist/components/chat/chat-message-row.js +4 -4
- package/dist/components/chat/entity-cards/use-cover-image-fallback.d.ts +7 -13
- package/dist/components/chat/entity-cards/use-cover-image-fallback.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/use-cover-image-fallback.js +2 -8
- package/dist/components/chat/hooks/use-chat-attachment-image-gallery.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-chat-attachment-image-gallery.js +8 -4
- package/dist/components/chat/index.cjs +22 -23
- package/dist/components/contact/index.cjs +29 -30
- package/dist/components/docs/index.cjs +32 -33
- package/dist/components/embeds/index.cjs +29 -30
- package/dist/components/faq/index.cjs +30 -31
- package/dist/components/features/index.cjs +28 -29
- package/dist/components/features/remote-session/remote-session-viewers.d.ts +6 -1
- package/dist/components/features/remote-session/remote-session-viewers.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-session-viewers.js +10 -3
- package/dist/components/help-center-pages/index.cjs +134 -135
- package/dist/components/index.cjs +112 -113
- package/dist/components/meeting-scheduler/index.cjs +102 -103
- package/dist/components/navigation/index.cjs +31 -32
- package/dist/components/onboarding-guides/index.cjs +31 -32
- package/dist/components/product-demo/index.cjs +39 -40
- package/dist/components/related-content/index.cjs +16 -17
- package/dist/components/tickets/index.cjs +35 -36
- package/dist/components/ui/entity-image.d.ts +1 -2
- package/dist/components/ui/entity-image.d.ts.map +1 -1
- package/dist/components/ui/entity-image.js +4 -8
- package/dist/components/ui/index.cjs +28 -29
- package/dist/components/ui/markdown/base-components.d.ts +0 -13
- package/dist/components/ui/markdown/base-components.d.ts.map +1 -1
- package/dist/components/ui/markdown/base-components.js +7 -7
- package/dist/components/ui/square-avatar.d.ts.map +1 -1
- package/dist/components/ui/square-avatar.js +3 -8
- package/dist/{devices-44O5PZOW.cjs → devices-IJDF7SSK.cjs} +29 -30
- package/dist/embed-shims/index.cjs +3 -2
- package/dist/embed-shims/next-image.cjs +3 -2
- package/dist/embed-shims/next-image.d.ts +2 -0
- package/dist/embed-shims/next-image.d.ts.map +1 -1
- package/dist/embed-shims/next-image.js +14 -4
- package/dist/{embeddable-chat-W3CLMGC3.cjs → embeddable-chat-QD7NFD2H.cjs} +100 -101
- package/dist/hooks/index.cjs +23 -16
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/use-authed-asset-src.d.ts +77 -2
- package/dist/hooks/use-authed-asset-src.d.ts.map +1 -1
- package/dist/hooks/use-authed-asset-src.js +185 -73
- package/dist/hooks/use-authed-image-src.d.ts +11 -4
- package/dist/hooks/use-authed-image-src.d.ts.map +1 -1
- package/dist/hooks/use-authed-image-src.js +6 -2
- package/dist/hooks/use-image-fallback.d.ts +16 -0
- package/dist/hooks/use-image-fallback.d.ts.map +1 -0
- package/dist/hooks/use-image-fallback.js +14 -0
- package/dist/index.cjs +40 -36
- package/dist/{knowledge-UUU3WVO3.cjs → knowledge-5LIK6Q4E.cjs} +29 -30
- package/dist/{logs-DFHNSODA.cjs → logs-FMENCAXT.cjs} +35 -36
- package/dist/{policies-RGFUGDBP.cjs → policies-DKQEEKB4.cjs} +32 -33
- package/dist/{remote-session-U3H77HKR.cjs → remote-session-6X7CAHBC.cjs} +13 -14
- package/dist/{scripts-KOVO5DHW.cjs → scripts-4EPUIFHF.cjs} +35 -36
- package/dist/{software-update-4EKHVV5W.cjs → software-update-IMNRXBAI.cjs} +32 -33
- package/dist/{tickets-board-YIFOVMDX.cjs → tickets-board-POYZS7BW.cjs} +16 -17
- package/dist/utils/app-origins.d.ts +3 -6
- package/dist/utils/app-origins.d.ts.map +1 -1
- package/dist/utils/app-origins.js +8 -1
- package/dist/utils/embed-authed-fetch.d.ts +46 -26
- package/dist/utils/embed-authed-fetch.d.ts.map +1 -1
- package/dist/utils/embed-authed-fetch.js +24 -8
- package/dist/utils/index.cjs +4 -1
- package/dist/{video-file-player-XMOB234V.cjs → video-file-player-RIOT24NT.cjs} +3 -4
- package/package.json +1 -1
- package/src/components/chat/chat-message-row.tsx +8 -7
- package/src/components/chat/entity-cards/use-cover-image-fallback.ts +8 -28
- package/src/components/chat/hooks/use-chat-attachment-image-gallery.tsx +19 -8
- package/src/components/features/remote-session/remote-session-viewers.tsx +16 -3
- package/src/components/ui/entity-image.tsx +4 -12
- package/src/components/ui/markdown/base-components.tsx +15 -20
- package/src/components/ui/square-avatar.tsx +5 -8
- package/src/embed-shims/next-image.tsx +34 -3
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use-authed-asset-src.ts +323 -107
- package/src/hooks/use-authed-image-src.ts +15 -5
- package/src/hooks/use-image-fallback.ts +31 -0
- package/src/utils/app-origins.ts +12 -7
- package/src/utils/embed-authed-fetch.ts +71 -32
- package/dist/chunk-YSDB6HGQ.cjs +0 -102
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var _chunkAYMY2VNBcjs = require('./chunk-AYMY2VNB.cjs');
|
|
6
|
+
require('./chunk-DXVGGWLG.cjs');
|
|
7
7
|
require('./chunk-X432Y6RM.cjs');
|
|
8
8
|
require('./chunk-S5C3OZCO.cjs');
|
|
9
9
|
require('./chunk-4IYNDV3G.cjs');
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-EXQSIX2I.cjs');
|
|
11
|
+
require('./chunk-XCQ5I27Z.cjs');
|
|
12
|
+
require('./chunk-RY7INTYU.cjs');
|
|
13
13
|
require('./chunk-NTPX5GXI.cjs');
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
14
|
+
require('./chunk-6DMH4GXN.cjs');
|
|
15
|
+
require('./chunk-SQ7YHWEP.cjs');
|
|
16
16
|
require('./chunk-UJ7AXHRZ.cjs');
|
|
17
17
|
require('./chunk-PMUCEUFQ.cjs');
|
|
18
18
|
require('./chunk-FCZAUK4D.cjs');
|
|
@@ -20,4 +20,4 @@ require('./chunk-63A4GZMB.cjs');
|
|
|
20
20
|
require('./chunk-V45KLJQP.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
exports.CaseStudyCard =
|
|
23
|
+
exports.CaseStudyCard = _chunkAYMY2VNBcjs.CaseStudyCard;
|
|
@@ -5,12 +5,12 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkSJZWVMBFcjs = require('./chunk-SJZWVMBF.cjs');
|
|
9
9
|
|
|
10
10
|
// src/components/product-demo/screens/devices-view.tsx
|
|
11
11
|
var _jsxruntime = require('react/jsx-runtime');
|
|
12
12
|
var DEVICES_SEARCH_QUERY = "Windows";
|
|
13
|
-
var TOOLBAR = { ...
|
|
13
|
+
var TOOLBAR = { ..._chunkSJZWVMBFcjs.IDLE_DEVICES_TOOLBAR, searchValue: DEVICES_SEARCH_QUERY };
|
|
14
14
|
var NO_HEADER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
15
15
|
var HIDDEN_WHEN_COMPACT = ["organization"];
|
|
16
16
|
var NO_DEVICES = [];
|
|
@@ -22,7 +22,7 @@ function DevicesScreenView({
|
|
|
22
22
|
loading = false
|
|
23
23
|
}) {
|
|
24
24
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25
|
-
|
|
25
|
+
_chunkSJZWVMBFcjs.DevicesPanelView,
|
|
26
26
|
{
|
|
27
27
|
className: "p-[var(--spacing-system-l)]",
|
|
28
28
|
headerSlot: NO_HEADER,
|
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk3GJ75OULcjs = require('./chunk-3GJ75OUL.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkYSXVRTGTcjs = require('./chunk-YSXVRTGT.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkAYMY2VNBcjs = require('./chunk-AYMY2VNB.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkXCQ5I27Zcjs = require('./chunk-XCQ5I27Z.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkRY7INTYUcjs = require('./chunk-RY7INTYU.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunk6DMH4GXNcjs = require('./chunk-6DMH4GXN.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunk63A4GZMBcjs = require('./chunk-63A4GZMB.cjs');
|
|
@@ -36,7 +36,7 @@ function DepartmentBadge({
|
|
|
36
36
|
variant
|
|
37
37
|
}) {
|
|
38
38
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39
|
-
|
|
39
|
+
_chunk3GJ75OULcjs.PaletteBadge,
|
|
40
40
|
{
|
|
41
41
|
text: _optionalChain([department, 'optionalAccess', _ => _.name]) || emptyLabel,
|
|
42
42
|
color: _optionalChain([department, 'optionalAccess', _2 => _2.name]) ? department.color : null,
|
|
@@ -105,12 +105,12 @@ var STATUS_BADGE_SCHEME = {
|
|
|
105
105
|
abandoned: "default"
|
|
106
106
|
};
|
|
107
107
|
function EmployeeEntryBadge({ children }) {
|
|
108
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
108
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAYMY2VNBcjs.StatusBadge, { text: children, colorScheme: "default", variant: "button", singleLine: true });
|
|
109
109
|
}
|
|
110
110
|
function EmployeeEntryCard(props) {
|
|
111
111
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || props.loading) {
|
|
112
112
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
113
|
-
|
|
113
|
+
_chunk3GJ75OULcjs.AdminContentCard,
|
|
114
114
|
{
|
|
115
115
|
loading: true,
|
|
116
116
|
title: "",
|
|
@@ -132,9 +132,9 @@ function LoadedEmployeeEntryCard({
|
|
|
132
132
|
anchorProps,
|
|
133
133
|
className
|
|
134
134
|
}) {
|
|
135
|
-
const authorAvatar =
|
|
135
|
+
const authorAvatar = _chunk3GJ75OULcjs.useProxiedImageUrl.call(void 0, _optionalChain([entry, 'access', _7 => _7.author, 'optionalAccess', _8 => _8.avatar_url]), { directHttps: false });
|
|
136
136
|
const card = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
137
|
-
|
|
137
|
+
_chunk3GJ75OULcjs.AdminContentCard,
|
|
138
138
|
{
|
|
139
139
|
imageUrl: entry.featured_image || entry.main_video_thumbnail,
|
|
140
140
|
placeholderUrl,
|
|
@@ -142,7 +142,7 @@ function LoadedEmployeeEntryCard({
|
|
|
142
142
|
summary: (_nullishCoalesce(entry.summary, () => ( ""))).slice(0, 140) || "No description",
|
|
143
143
|
badges: entry.status || extraBadges ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
144
144
|
entry.status ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
145
|
-
|
|
145
|
+
_chunkAYMY2VNBcjs.StatusBadge,
|
|
146
146
|
{
|
|
147
147
|
text: entry.status,
|
|
148
148
|
colorScheme: _nullishCoalesce(STATUS_BADGE_SCHEME[entry.status], () => ( "default")),
|
|
@@ -155,13 +155,13 @@ function LoadedEmployeeEntryCard({
|
|
|
155
155
|
meta: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
156
156
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-2", children: [
|
|
157
157
|
authorAvatar ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
158
|
-
|
|
158
|
+
_chunk6DMH4GXNcjs.next_image_default,
|
|
159
159
|
{
|
|
160
160
|
src: authorAvatar,
|
|
161
161
|
alt: "",
|
|
162
162
|
className: "h-[1lh] w-[1lh] shrink-0 rounded-full object-cover",
|
|
163
|
-
width:
|
|
164
|
-
height:
|
|
163
|
+
width: _chunkRY7INTYUcjs.IMAGE_FIXED_PX.glyph,
|
|
164
|
+
height: _chunkRY7INTYUcjs.IMAGE_FIXED_PX.glyph,
|
|
165
165
|
unoptimized: true
|
|
166
166
|
}
|
|
167
167
|
) : null,
|
|
@@ -187,7 +187,7 @@ function WhatIShippedCard(props) {
|
|
|
187
187
|
EmployeeEntryCard,
|
|
188
188
|
{
|
|
189
189
|
entry,
|
|
190
|
-
dateLabel:
|
|
190
|
+
dateLabel: _chunkYSXVRTGTcjs.formatEntryMonthUTC.call(void 0, entry.entry_month, "short"),
|
|
191
191
|
placeholderUrl,
|
|
192
192
|
actions,
|
|
193
193
|
anchorProps,
|
|
@@ -208,7 +208,7 @@ function HowIWorkCard(props) {
|
|
|
208
208
|
EmployeeEntryCard,
|
|
209
209
|
{
|
|
210
210
|
entry,
|
|
211
|
-
dateLabel: entry.session_date ?
|
|
211
|
+
dateLabel: entry.session_date ? _chunkYSXVRTGTcjs.formatDateUTC.call(void 0, entry.session_date, { fallback: "" }) || null : null,
|
|
212
212
|
extraBadges: entry.discipline ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmployeeEntryBadge, { children: disciplineLabel(entry.discipline) }) : null,
|
|
213
213
|
untitledLabel: "Untitled session",
|
|
214
214
|
placeholderUrl,
|
|
@@ -230,7 +230,7 @@ function AiPromptCard(props) {
|
|
|
230
230
|
EmployeeEntryCard,
|
|
231
231
|
{
|
|
232
232
|
entry,
|
|
233
|
-
dateLabel: entry.published_at ?
|
|
233
|
+
dateLabel: entry.published_at ? _chunkYSXVRTGTcjs.formatDateUTC.call(void 0, entry.published_at, { fallback: "" }) || null : null,
|
|
234
234
|
extraBadges: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
235
235
|
departmentName ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepartmentBadge, { department: { name: departmentName, color: _nullishCoalesce(_optionalChain([entry, 'access', _15 => _15.department, 'optionalAccess', _16 => _16.color]), () => ( null)) } }) : null,
|
|
236
236
|
steps > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmployeeEntryBadge, { children: `${steps} steps` }) : null
|
|
@@ -279,7 +279,7 @@ function useSelfFetch(givenUrl, options) {
|
|
|
279
279
|
try {
|
|
280
280
|
setIsLoading(true);
|
|
281
281
|
setError(false);
|
|
282
|
-
const res = await
|
|
282
|
+
const res = await _chunkXCQ5I27Zcjs.contentFetch.call(void 0, url, { signal: ctrl.signal });
|
|
283
283
|
if (!res.ok) throw new Error(`Request failed (${res.status})`);
|
|
284
284
|
const json = await res.json();
|
|
285
285
|
if (!cancelled) {
|
|
@@ -1,25 +1,25 @@
|
|
|
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 _chunkQZXCUY36cjs = require('./chunk-QZXCUY36.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkMZ4KBSH7cjs = require('./chunk-MZ4KBSH7.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkF33EAPD2cjs = require('./chunk-F33EAPD2.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkHML3JUXFcjs = require('./chunk-HML3JUXF.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunk77GX573Icjs = require('./chunk-77GX573I.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
@@ -33,13 +33,13 @@ var _chunkIX2E3AN7cjs = require('./chunk-IX2E3AN7.cjs');
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunk2JCA7BRKcjs = require('./chunk-2JCA7BRK.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunk3GJ75OULcjs = require('./chunk-3GJ75OUL.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunkXCQ5I27Zcjs = require('./chunk-XCQ5I27Z.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
var _chunk2XCORRJVcjs = require('./chunk-2XCORRJV.cjs');
|
|
@@ -82,7 +82,7 @@ function FaqAccordion({ items, defaultOpenIds = [], loading: loadingProp, skelet
|
|
|
82
82
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
83
83
|
"div",
|
|
84
84
|
{
|
|
85
|
-
id:
|
|
85
|
+
id: _chunkHML3JUXFcjs.faqItemAnchor.call(void 0, item.id),
|
|
86
86
|
className: _chunk63A4GZMBcjs.cn.call(void 0, ROW_FRAME_CLASS, "hover:bg-ods-bg-hover"),
|
|
87
87
|
"data-loading-item": true,
|
|
88
88
|
children: [
|
|
@@ -148,14 +148,14 @@ function FaqAccordionSkeleton({
|
|
|
148
148
|
|
|
149
149
|
var PICK_ROOT_MARGIN = "600px";
|
|
150
150
|
function faqAskCardShown(assistant) {
|
|
151
|
-
return
|
|
151
|
+
return _chunkF33EAPD2cjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
152
152
|
}
|
|
153
153
|
function FaqAskCard({ exclude, count, title, description, onOpen }) {
|
|
154
|
-
const { ref, inView } =
|
|
154
|
+
const { ref, inView } = _chunk77GX573Icjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
155
155
|
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
156
156
|
if (inView && !reached) setReached(true);
|
|
157
157
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
158
|
-
|
|
158
|
+
_chunkF33EAPD2cjs.AssistantAskPrompts,
|
|
159
159
|
{
|
|
160
160
|
variant: "card",
|
|
161
161
|
count,
|
|
@@ -214,7 +214,7 @@ var CATEGORY_NAV_SKELETON_LINE_CLASS = "flex min-w-0 flex-nowrap gap-2 overflow-
|
|
|
214
214
|
var FAQ_NAV_SKELETON_PILLS = 8;
|
|
215
215
|
var CATEGORY_PILL_CLASS = "rounded-full border px-4 py-2 transition-colors text-h6";
|
|
216
216
|
var CATEGORY_SECTION_CLASS = "scroll-mt-24";
|
|
217
|
-
var CATEGORY_HEADING_CLASS = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
217
|
+
var CATEGORY_HEADING_CLASS = _chunk63A4GZMBcjs.cn.call(void 0, _chunk3GJ75OULcjs.SECTION_HEADING_CLASS, "pb-4");
|
|
218
218
|
var FAQ_SECTION_SKELETON_QUESTIONS = FAQ_ACCORDION_SKELETON_ROWS;
|
|
219
219
|
function FaqLayout({
|
|
220
220
|
heading,
|
|
@@ -240,11 +240,11 @@ function FaqLayout({
|
|
|
240
240
|
] });
|
|
241
241
|
}
|
|
242
242
|
function faqHeadingNode(heading, showTopic, topic) {
|
|
243
|
-
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
243
|
+
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunk3GJ75OULcjs.SECTION_HEADING_CLASS, children: DEFAULT_HEADING_TEXT }) : heading;
|
|
244
244
|
if (!(showTopic && topic)) return titleNode;
|
|
245
245
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TOPIC_STACK_CLASS, children: [
|
|
246
246
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: titleNode }),
|
|
247
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
247
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHML3JUXFcjs.PageTopicLabel, {})
|
|
248
248
|
] });
|
|
249
249
|
}
|
|
250
250
|
var PAGE_FAQ_SECTION_ID = "faq";
|
|
@@ -255,7 +255,7 @@ function SharedPageFaq() {
|
|
|
255
255
|
}
|
|
256
256
|
function buildFaqsUrl(endpoint, entityType, entityId, minResults, topic) {
|
|
257
257
|
const entityScoped = !!entityType && entityId !== void 0 && entityId !== null && entityId !== "";
|
|
258
|
-
return
|
|
258
|
+
return _chunk2JCA7BRKcjs.buildSuggestionUrl.call(void 0, endpoint, {
|
|
259
259
|
entityType,
|
|
260
260
|
entityId,
|
|
261
261
|
count: minResults,
|
|
@@ -275,7 +275,7 @@ function groupFaqsBySection(faqs) {
|
|
|
275
275
|
}
|
|
276
276
|
let group = byName.get(name);
|
|
277
277
|
if (!group) {
|
|
278
|
-
group = { section: name, slug:
|
|
278
|
+
group = { section: name, slug: _chunkHML3JUXFcjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
279
279
|
byName.set(name, group);
|
|
280
280
|
}
|
|
281
281
|
group.items.push(item);
|
|
@@ -321,7 +321,7 @@ function GroupedFaqList({
|
|
|
321
321
|
}
|
|
322
322
|
if (bestId) setActiveSlug(bestId);
|
|
323
323
|
},
|
|
324
|
-
{ rootMargin: `-${
|
|
324
|
+
{ rootMargin: `-${_chunk77GX573Icjs.STICKY_HEADER_OFFSET_PX}px 0px -55% 0px`, threshold: 0 }
|
|
325
325
|
);
|
|
326
326
|
for (const group of navGroupsRef.current) {
|
|
327
327
|
const el = group.slug ? document.getElementById(group.slug) : null;
|
|
@@ -331,7 +331,7 @@ function GroupedFaqList({
|
|
|
331
331
|
}, [slugKey]);
|
|
332
332
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
333
333
|
_react.useEffect.call(void 0, () => {
|
|
334
|
-
const refresh = () => setHashTarget(
|
|
334
|
+
const refresh = () => setHashTarget(_chunkHML3JUXFcjs.parseFaqHash.call(void 0, window.location.hash));
|
|
335
335
|
refresh();
|
|
336
336
|
window.addEventListener("hashchange", refresh);
|
|
337
337
|
return () => window.removeEventListener("hashchange", refresh);
|
|
@@ -348,7 +348,7 @@ function GroupedFaqList({
|
|
|
348
348
|
}, [groups, hashTarget]);
|
|
349
349
|
const accordionKeySuffix = _optionalChain([hashTarget, 'optionalAccess', _8 => _8.kind]) === "item" ? `item:${hashTarget.rawId}` : "default";
|
|
350
350
|
const scrollDep = `${groups.length}|` + (_optionalChain([hashTarget, 'optionalAccess', _9 => _9.kind]) === "item" ? `item:${hashTarget.rawId}` : _optionalChain([hashTarget, 'optionalAccess', _10 => _10.kind]) === "section" ? `section:${hashTarget.slug}` : "none");
|
|
351
|
-
|
|
351
|
+
_chunkQZXCUY36cjs.useScrollToHash.call(void 0, scrollDep, { headerOffset: _chunk77GX573Icjs.STICKY_HEADER_OFFSET_PX });
|
|
352
352
|
const [pillSyncedHash, setPillSyncedHash] = _react.useState.call(void 0, hashTarget);
|
|
353
353
|
if (pillSyncedHash !== hashTarget) {
|
|
354
354
|
setPillSyncedHash(hashTarget);
|
|
@@ -356,8 +356,8 @@ function GroupedFaqList({
|
|
|
356
356
|
}
|
|
357
357
|
const handleJump = _react.useCallback.call(void 0, (e, slug) => {
|
|
358
358
|
e.preventDefault();
|
|
359
|
-
|
|
360
|
-
headerOffset:
|
|
359
|
+
_chunk77GX573Icjs.navigateSamePageHash.call(void 0, "#" + slug, {
|
|
360
|
+
headerOffset: _chunk77GX573Icjs.STICKY_HEADER_OFFSET_PX,
|
|
361
361
|
history: "replace"
|
|
362
362
|
});
|
|
363
363
|
}, []);
|
|
@@ -435,7 +435,7 @@ function FaqSection({
|
|
|
435
435
|
() => initialFaqs ? { faqs: initialFaqs } : void 0,
|
|
436
436
|
[initialFaqs]
|
|
437
437
|
);
|
|
438
|
-
const { data, dataUrl, isLoading, error } =
|
|
438
|
+
const { data, dataUrl, isLoading, error } = _chunk2JCA7BRKcjs.useSelfFetch.call(void 0, inScope ? null : url, { initialData });
|
|
439
439
|
const held = dataUrl === url ? _optionalChain([data, 'optionalAccess', _15 => _15.faqs]) : void 0;
|
|
440
440
|
const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(held, () => ( [])), [held]);
|
|
441
441
|
const groups = _react.useMemo.call(void 0, () => faqs.length > 0 ? groupFaqsBySection(faqs) : [], [faqs]);
|
|
@@ -476,7 +476,7 @@ function FaqSection({
|
|
|
476
476
|
"script",
|
|
477
477
|
{
|
|
478
478
|
type: "application/ld+json",
|
|
479
|
-
dangerouslySetInnerHTML: { __html:
|
|
479
|
+
dangerouslySetInnerHTML: { __html: _chunkXCQ5I27Zcjs.serializeJsonLd.call(void 0, schema) }
|
|
480
480
|
}
|
|
481
481
|
)
|
|
482
482
|
] });
|