@flamingo-stack/openframe-frontend-core 0.0.792 → 0.0.793
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-ABZGBMC2.cjs → chunk-BI6FE3HO.cjs} +10 -10
- package/dist/{chunk-W3Q7ZQLS.cjs → chunk-BTI4RRU2.cjs} +2 -2
- package/dist/{chunk-4G2KZHZW.cjs → chunk-CASWVIJC.cjs} +3 -3
- package/dist/{chunk-OKQQJ5TD.cjs → chunk-CB24ILOB.cjs} +13 -13
- package/dist/{chunk-YWNXZAQ2.cjs → chunk-CKSAUEEL.cjs} +16 -16
- package/dist/{chunk-3AN35WAO.cjs → chunk-DWYMZ3LO.cjs} +24 -24
- package/dist/{chunk-YPWFYQFE.cjs → chunk-FEARCFP4.cjs} +5 -5
- package/dist/{chunk-O4TKEWNW.cjs → chunk-LMZICTQW.cjs} +3 -3
- package/dist/{chunk-EPWLLLGW.cjs → chunk-LVBSVUHD.cjs} +2 -2
- package/dist/{chunk-6ZPHUDTP.cjs → chunk-XGE2WCOH.cjs} +3 -3
- package/dist/{chunk-WWWLOMZI.cjs → chunk-YDH5OVRQ.cjs} +31 -31
- package/dist/{chunk-2I2AXIBD.cjs → chunk-ZCNEO273.cjs} +75 -55
- package/dist/{cloud-tenants-CQOD6DDR.cjs → cloud-tenants-BISHVU2T.cjs} +2 -2
- package/dist/components/case-studies/index.cjs +11 -11
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/docs/index.cjs +5 -5
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/features/conversation-card.d.ts.map +1 -1
- package/dist/components/features/conversation-card.js +77 -56
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/help-center-pages/index.cjs +49 -49
- package/dist/components/index.cjs +18 -18
- package/dist/components/meeting-scheduler/booking-context-summary.d.ts +8 -0
- package/dist/components/meeting-scheduler/booking-context-summary.d.ts.map +1 -0
- package/dist/components/meeting-scheduler/booking-context-summary.js +54 -0
- package/dist/components/meeting-scheduler/booking-form.d.ts +14 -1
- package/dist/components/meeting-scheduler/booking-form.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/booking-form.js +13 -3
- package/dist/components/meeting-scheduler/index.cjs +134 -60
- package/dist/components/meeting-scheduler/index.d.ts +6 -2
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +7 -2
- package/dist/components/navigation/index.cjs +3 -3
- package/dist/components/onboarding-guides/index.cjs +4 -4
- package/dist/components/product-demo/index.cjs +11 -11
- package/dist/components/tickets/index.cjs +5 -5
- package/dist/components/ui/index.cjs +2 -2
- package/dist/{devices-PEBUW34G.cjs → devices-GMR73ZF3.cjs} +3 -3
- package/dist/index.cjs +3 -3
- package/dist/{knowledge-KL4BP2YK.cjs → knowledge-XC2K5VQO.cjs} +2 -2
- package/dist/loading-standard/engine.d.mts.map +1 -1
- package/dist/{logs-TO277M4F.cjs → logs-LBGQLETC.cjs} +10 -10
- package/dist/{policies-6HSKMG4I.cjs → policies-3XVE6266.cjs} +6 -6
- package/dist/schemas/meeting-booking-schema.cjs +21 -0
- package/dist/schemas/meeting-booking-schema.d.ts +43 -0
- package/dist/schemas/meeting-booking-schema.d.ts.map +1 -1
- package/dist/schemas/meeting-booking-schema.js +21 -0
- package/dist/{scripts-4IO2LPMY.cjs → scripts-NE5IL4NC.cjs} +7 -7
- package/dist/{software-update-RMAWEZKX.cjs → software-update-EJDKTFAP.cjs} +5 -5
- package/package.json +1 -1
- package/src/components/features/conversation-card.tsx +89 -64
- package/src/components/meeting-scheduler/booking-context-summary.tsx +100 -0
- package/src/components/meeting-scheduler/booking-form.tsx +28 -0
- package/src/components/meeting-scheduler/index.tsx +23 -2
- package/src/loading-standard/engine.mjs +6 -2
- package/src/schemas/meeting-booking-schema.ts +62 -0
|
@@ -5,14 +5,14 @@ var _chunkTBGVWIF7cjs = require('./chunk-TBGVWIF7.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkLVBSVUHDcjs = require('./chunk-LVBSVUHD.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkZCNEO273cjs = require('./chunk-ZCNEO273.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkRPC4P7GYcjs = require('./chunk-RPC4P7GY.cjs');
|
|
@@ -143,7 +143,7 @@ function OnboardingGuidesCatalogView({
|
|
|
143
143
|
});
|
|
144
144
|
};
|
|
145
145
|
const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _6 => _6.source]), () => ( "openframe"));
|
|
146
|
-
const docSearch =
|
|
146
|
+
const docSearch = _chunkLVBSVUHDcjs.useDocSearch.call(void 0, {
|
|
147
147
|
source,
|
|
148
148
|
baseRoute: basePath,
|
|
149
149
|
onNavigate: (path) => router.push(path),
|
|
@@ -161,7 +161,7 @@ function OnboardingGuidesCatalogView({
|
|
|
161
161
|
const renderCardFn = _nullishCoalesce(renderCard, () => ( defaultRenderCard));
|
|
162
162
|
const preControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_CONTROLS_CLASS, children: [
|
|
163
163
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
164
|
-
|
|
164
|
+
_chunkLVBSVUHDcjs.DocSearchBar,
|
|
165
165
|
{
|
|
166
166
|
placeholder: "Search onboarding guides, releases, case studies\u2026",
|
|
167
167
|
query: docSearch.query,
|
|
@@ -173,7 +173,7 @@ function OnboardingGuidesCatalogView({
|
|
|
173
173
|
}
|
|
174
174
|
),
|
|
175
175
|
(loading || sections.length > 0) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
176
|
-
|
|
176
|
+
_chunkZCNEO273cjs.FilterPillRow,
|
|
177
177
|
{
|
|
178
178
|
label: "Section",
|
|
179
179
|
selectedValue: activeSection,
|
|
@@ -184,7 +184,7 @@ function OnboardingGuidesCatalogView({
|
|
|
184
184
|
)
|
|
185
185
|
] });
|
|
186
186
|
if (!loading && selfFetch && guidesRes.error) {
|
|
187
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
187
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCNEO273cjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
|
|
188
188
|
}
|
|
189
189
|
const view = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_VIEW_CLASS, children: [
|
|
190
190
|
preControls,
|
|
@@ -304,7 +304,7 @@ function OnboardingGuideDetailView({
|
|
|
304
304
|
slug,
|
|
305
305
|
guideEndpoint,
|
|
306
306
|
related = [],
|
|
307
|
-
MarkdownRenderer =
|
|
307
|
+
MarkdownRenderer = _chunkZCNEO273cjs.RichMarkdownRenderer,
|
|
308
308
|
renderRelatedCard,
|
|
309
309
|
backHref,
|
|
310
310
|
backLabel = "Back to Getting Started",
|
|
@@ -316,7 +316,7 @@ function OnboardingGuideDetailView({
|
|
|
316
316
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
317
317
|
const captions = _chunkFBA6S4EScjs.useCaptions.call(void 0, );
|
|
318
318
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
319
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
319
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCNEO273cjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
320
320
|
const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null;
|
|
321
321
|
const scoped = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, );
|
|
322
322
|
const {
|
|
@@ -334,7 +334,7 @@ function OnboardingGuideDetailView({
|
|
|
334
334
|
const backCfg = { label: backLabel, onClick: () => router.push(resolvedBackHref) };
|
|
335
335
|
const loading = scoped || !guide && isLoading;
|
|
336
336
|
if (!loading && (error || !guide)) {
|
|
337
|
-
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
+
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCNEO273cjs.LoadError, { message: "Guide not found.", onRetry: reload }));
|
|
338
338
|
}
|
|
339
339
|
const view = _nullishCoalesce(guide, () => ( EMPTY_ONBOARDING_GUIDE));
|
|
340
340
|
const { captionsUrl, highlightCaptionsUrl } = captions.forEntity("onboarding_guide", view);
|
|
@@ -352,7 +352,7 @@ function OnboardingGuideDetailView({
|
|
|
352
352
|
};
|
|
353
353
|
const renderRelatedCardFn = _nullishCoalesce(renderRelatedCard, () => ( defaultRenderRelatedCard));
|
|
354
354
|
const page = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkRPC4P7GYcjs.PageLayout, { title: view.title, loading, titleSize: "h1", titleWrap: true, backButton: backCfg, children: [
|
|
355
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
355
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCNEO273cjs.EntityTagBadges, { tags: view.onboarding_guide_tags }),
|
|
356
356
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
357
357
|
_chunkOZIPPOSJcjs.EntityAuthorCard,
|
|
358
358
|
{
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkVUQNTCALcjs = require('./chunk-VUQNTCAL.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkZCNEO273cjs = require('./chunk-ZCNEO273.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkRPC4P7GYcjs = require('./chunk-RPC4P7GY.cjs');
|
|
@@ -53,7 +53,7 @@ function FaqDocumentPage({
|
|
|
53
53
|
skeletonNav
|
|
54
54
|
}
|
|
55
55
|
) });
|
|
56
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
56
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCNEO273cjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
|
|
@@ -5,12 +5,12 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkZCNEO273cjs = require('./chunk-ZCNEO273.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 = { ..._chunkZCNEO273cjs.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
|
+
_chunkZCNEO273cjs.DevicesPanelView,
|
|
26
26
|
{
|
|
27
27
|
className: "p-[var(--spacing-system-l)]",
|
|
28
28
|
headerSlot: NO_HEADER,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkXGE2WCOHcjs = require('./chunk-XGE2WCOH.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -13,14 +13,14 @@ var _chunkSXEIK7RUcjs = require('./chunk-SXEIK7RU.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkLVBSVUHDcjs = require('./chunk-LVBSVUHD.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkZCNEO273cjs = require('./chunk-ZCNEO273.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunkRPC4P7GYcjs = require('./chunk-RPC4P7GY.cjs');
|
|
@@ -354,7 +354,7 @@ function toDocContent(value, requestedPath) {
|
|
|
354
354
|
function toDataSync(value) {
|
|
355
355
|
if (!isRecord(value)) return void 0;
|
|
356
356
|
const source = readString(value, "source");
|
|
357
|
-
if (!
|
|
357
|
+
if (!_chunkZCNEO273cjs.isDataSyncSource.call(void 0, source)) return void 0;
|
|
358
358
|
return { source, syncedAt: _nullishCoalesce(readString(value, "syncedAt"), () => ( null)) };
|
|
359
359
|
}
|
|
360
360
|
function useDocumentTree(config, initialPath) {
|
|
@@ -760,7 +760,7 @@ function DocViewerContent({
|
|
|
760
760
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _12 => _12.label]), () => ( "Back to home")),
|
|
761
761
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _13 => _13.href]), () => ( "/")))
|
|
762
762
|
};
|
|
763
|
-
const docSearch =
|
|
763
|
+
const docSearch = _chunkLVBSVUHDcjs.useDocSearch.call(void 0, {
|
|
764
764
|
source: chatSource,
|
|
765
765
|
baseRoute,
|
|
766
766
|
searchEndpoint,
|
|
@@ -796,9 +796,9 @@ function DocViewerContent({
|
|
|
796
796
|
const defaultEmptyText = structure.length > 0 ? "Select a document from the sidebar to view" : "No documents yet. Add content from the admin panel.";
|
|
797
797
|
const resolvedEmptyText = emptyStateText || defaultEmptyText;
|
|
798
798
|
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRPC4P7GYcjs.PageLayout, { title, subtitle, titleSize: "h1", titleWrap: true, backButton: _nullishCoalesce(backCfg, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-10", children: [
|
|
799
|
-
synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
799
|
+
synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCNEO273cjs.DataSyncLine, { sync: _optionalChain([content, 'optionalAccess', _19 => _19.sync]), loading: !content && (isLoadingContent || isLoadingStructure) }),
|
|
800
800
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
801
|
-
|
|
801
|
+
_chunkLVBSVUHDcjs.DocSearchBar,
|
|
802
802
|
{
|
|
803
803
|
placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _20 => _20.toLowerCase, 'call', _21 => _21()]) || "documents"}...`,
|
|
804
804
|
query: docSearch.query,
|
|
@@ -887,7 +887,7 @@ function DocViewerContent({
|
|
|
887
887
|
) })
|
|
888
888
|
] })
|
|
889
889
|
] }) }) });
|
|
890
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
890
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCNEO273cjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
|
|
891
891
|
}
|
|
892
892
|
|
|
893
893
|
// src/components/docs/skeletons.tsx
|
|
@@ -959,7 +959,7 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
959
959
|
] }),
|
|
960
960
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full items-center gap-2 content-sm:w-auto", children: Array.from({ length: buttonCount }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { className: "h-10 w-full flex-1 rounded content-sm:w-32 content-sm:flex-initial" }, i)) })
|
|
961
961
|
] }),
|
|
962
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
962
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCNEO273cjs.EmbedLoadingSkeleton, { region: false })
|
|
963
963
|
] });
|
|
964
964
|
}
|
|
965
965
|
|
|
@@ -967,11 +967,11 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
967
967
|
|
|
968
968
|
var DEFAULT_TITLE = "Documents";
|
|
969
969
|
var defaultFallbackRenderer = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "py-16 text-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: "Unsupported document type" }) });
|
|
970
|
-
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
971
|
-
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
972
|
-
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
970
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXGE2WCOHcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
971
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXGE2WCOHcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
972
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCNEO273cjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
973
973
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
974
|
-
|
|
974
|
+
_chunkXGE2WCOHcjs.FileDownloadCard,
|
|
975
975
|
{
|
|
976
976
|
fileName: content.fileName,
|
|
977
977
|
mimeType: content.mimeType,
|
|
@@ -18,7 +18,7 @@ var _chunkUNUJ5YQ5cjs = require('./chunk-UNUJ5YQ5.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkZCNEO273cjs = require('./chunk-ZCNEO273.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
var _chunkHJBJHQKEcjs = require('./chunk-HJBJHQKE.cjs');
|
|
@@ -193,7 +193,7 @@ function NavItemRow({
|
|
|
193
193
|
className
|
|
194
194
|
}) {
|
|
195
195
|
const label = navLinkLabel(link);
|
|
196
|
-
const counter = badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
196
|
+
const counter = badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCNEO273cjs.UnreadCountBadge, { count: badge, className: "static shrink-0" }) : null;
|
|
197
197
|
const singleLine = !link.description && !link.builtOn;
|
|
198
198
|
const rowClassName = _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
199
199
|
ROW_CLASSES[variant],
|
|
@@ -615,7 +615,7 @@ function SiteHeader({
|
|
|
615
615
|
leading: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
616
616
|
leading,
|
|
617
617
|
mobile && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
618
|
-
|
|
618
|
+
_chunkZCNEO273cjs.HeaderButton,
|
|
619
619
|
{
|
|
620
620
|
className: "border-r border-ods-border lg:hidden",
|
|
621
621
|
onClick: mobile.onToggle,
|
|
@@ -923,7 +923,7 @@ function SiteFooter({
|
|
|
923
923
|
const columns = nav.footerColumns;
|
|
924
924
|
const accordion = columns.length > ACCORDION_OVER;
|
|
925
925
|
const socialRow = _nullishCoalesce(social, () => ( (nav.brand.social.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
926
|
-
|
|
926
|
+
_chunkZCNEO273cjs.SocialIconRow,
|
|
927
927
|
{
|
|
928
928
|
compact: true,
|
|
929
929
|
links: nav.brand.social.map((link) => ({
|
|
@@ -1236,7 +1236,7 @@ function PageSectionBar({ sections: listed, label, brand, action }) {
|
|
|
1236
1236
|
});
|
|
1237
1237
|
if (sections.length === 0 && !inScope) return null;
|
|
1238
1238
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1239
|
-
|
|
1239
|
+
_chunkZCNEO273cjs.PageContainer,
|
|
1240
1240
|
{
|
|
1241
1241
|
as: "div",
|
|
1242
1242
|
backgroundClassName: "sticky z-30 border-b border-ods-border bg-ods-bg transition-[top] duration-300 ease-in-out motion-reduce:transition-none",
|
|
@@ -1339,7 +1339,7 @@ function LoadedNavigationSidebarItemButton({
|
|
|
1339
1339
|
const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1340
1340
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex flex-shrink-0 items-center justify-center", children: [
|
|
1341
1341
|
_react.cloneElement.call(void 0, item.icon, { color: "inherit" }),
|
|
1342
|
-
hasUnread && !showLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1342
|
+
hasUnread && !showLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCNEO273cjs.UnreadDot, { size: "fixed" })
|
|
1343
1343
|
] }),
|
|
1344
1344
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1345
1345
|
"span",
|
|
@@ -1757,7 +1757,7 @@ function TicketAlertsButton({ href, onNavigate, disabled, className }) {
|
|
|
1757
1757
|
else window.location.assign(target);
|
|
1758
1758
|
};
|
|
1759
1759
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1760
|
-
|
|
1760
|
+
_chunkZCNEO273cjs.HeaderButton,
|
|
1761
1761
|
{
|
|
1762
1762
|
icon: (
|
|
1763
1763
|
// Glyph inherits HeaderButton's standard cell coloring (secondary at
|
|
@@ -1767,7 +1767,7 @@ function TicketAlertsButton({ href, onNavigate, disabled, className }) {
|
|
|
1767
1767
|
// existing while updates are unread — never by tinting the glyph.
|
|
1768
1768
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative inline-flex", children: [
|
|
1769
1769
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk365ZKGGOcjs.LifeBuoyIcon, { className: "h-6 w-6" }),
|
|
1770
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1770
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCNEO273cjs.UnreadCountBadge, { count: live.unreadTotal })
|
|
1771
1771
|
] })
|
|
1772
1772
|
),
|
|
1773
1773
|
"aria-label": `Support tickets \u2014 ${live.unreadTotal} unread ${live.unreadTotal === 1 ? "update" : "updates"}`,
|
|
@@ -1844,7 +1844,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1844
1844
|
leading: (
|
|
1845
1845
|
// Mobile: Burger Menu Button
|
|
1846
1846
|
!isMdUp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1847
|
-
|
|
1847
|
+
_chunkZCNEO273cjs.HeaderButton,
|
|
1848
1848
|
{
|
|
1849
1849
|
onClick: onToggleMobileMenu,
|
|
1850
1850
|
isActive: isMobileMenuOpen,
|
|
@@ -1870,7 +1870,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1870
1870
|
center: showSearch ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderGlobalSearch, { onSubmit: onSearch, className: _chunk6YZNUHXTcjs.cn.call(void 0, "w-full", dimmedClass) }) : void 0,
|
|
1871
1871
|
sideActions: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1872
1872
|
showSearch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1873
|
-
|
|
1873
|
+
_chunkZCNEO273cjs.HeaderButton,
|
|
1874
1874
|
{
|
|
1875
1875
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ74QE57Tcjs.SearchIcon, { className: "h-6 w-6" }),
|
|
1876
1876
|
"aria-label": "Search",
|
|
@@ -1887,7 +1887,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1887
1887
|
className: _chunk6YZNUHXTcjs.cn.call(void 0, "hidden lg:flex", dimmedClass)
|
|
1888
1888
|
}
|
|
1889
1889
|
),
|
|
1890
|
-
showTimeTracker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1890
|
+
showTimeTracker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCNEO273cjs.TimeTrackerHeaderButton, { disabled, className: _chunk6YZNUHXTcjs.cn.call(void 0, cellDivider, dimmedClass) }),
|
|
1891
1891
|
showNotifications && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1892
1892
|
NotificationsHeaderButton,
|
|
1893
1893
|
{
|
|
@@ -1907,7 +1907,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1907
1907
|
),
|
|
1908
1908
|
isMdUp && showUser && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkHYF4LPXFcjs.DropdownMenu, { children: [
|
|
1909
1909
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHYF4LPXFcjs.DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1910
|
-
|
|
1910
|
+
_chunkZCNEO273cjs.HeaderButton,
|
|
1911
1911
|
{
|
|
1912
1912
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1913
1913
|
_chunk7VXMO4XJcjs.SquareAvatar,
|
|
@@ -1992,12 +1992,12 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1992
1992
|
);
|
|
1993
1993
|
});
|
|
1994
1994
|
function NotificationsHeaderButton({ fallbackUnreadCount, disabled, dimmedClass }) {
|
|
1995
|
-
const ctx =
|
|
1995
|
+
const ctx = _chunkZCNEO273cjs.useOptionalNotifications.call(void 0, );
|
|
1996
1996
|
const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _56 => _56.unreadCount]), () => ( fallbackUnreadCount))) > 0;
|
|
1997
1997
|
const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _57 => _57.isOpen]), () => ( false));
|
|
1998
1998
|
const onClick = _optionalChain([ctx, 'optionalAccess', _58 => _58.toggle]);
|
|
1999
1999
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2000
|
-
|
|
2000
|
+
_chunkZCNEO273cjs.HeaderButton,
|
|
2001
2001
|
{
|
|
2002
2002
|
icon: isActive ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { className: "h-6 w-6" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCON36SEJcjs.BellIcon, { className: "h-6 w-6" }),
|
|
2003
2003
|
showUnreadDot: !isActive && hasUnread,
|
|
@@ -2650,7 +2650,7 @@ function AppLayout({
|
|
|
2650
2650
|
}),
|
|
2651
2651
|
[]
|
|
2652
2652
|
);
|
|
2653
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2653
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCNEO273cjs.AppLayoutDrawerContainerContext.Provider, { value: drawerContainer, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCNEO273cjs.AppLayoutDrawerCoordinationContext.Provider, { value: drawerCoordination, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "flex h-screen flex-col bg-ods-bg", className), children: [
|
|
2654
2654
|
topBar,
|
|
2655
2655
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex min-h-0 flex-1", children: [
|
|
2656
2656
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationSidebar, { config: sidebarConfig, disabled, pushOnTablet: hasSidePanel }),
|
|
@@ -2674,7 +2674,7 @@ function AppLayout({
|
|
|
2674
2674
|
disabled
|
|
2675
2675
|
}
|
|
2676
2676
|
),
|
|
2677
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2677
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCNEO273cjs.NotificationDrawer, {}),
|
|
2678
2678
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2679
2679
|
"div",
|
|
2680
2680
|
{
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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 _chunkLMZICTQWcjs = require('./chunk-LMZICTQW.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkFEARCFP4cjs = require('./chunk-FEARCFP4.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -28,7 +28,7 @@ var _chunkUNUJ5YQ5cjs = require('./chunk-UNUJ5YQ5.cjs');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkZCNEO273cjs = require('./chunk-ZCNEO273.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
@@ -691,7 +691,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
691
691
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
692
692
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJRTDBPJTcjs.Label, { htmlFor: "ticket-content", className: "mb-1", children: "Your Message" }),
|
|
693
693
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
694
|
-
|
|
694
|
+
_chunkZCNEO273cjs.Textarea,
|
|
695
695
|
{
|
|
696
696
|
id: "ticket-content",
|
|
697
697
|
placeholder: "Describe your issue or question in detail...",
|
|
@@ -821,7 +821,7 @@ function TicketLinkedDeliveryCard({ clickup, className }) {
|
|
|
821
821
|
dateClosed: clickup.date_closed,
|
|
822
822
|
clickupUrl: _nullishCoalesce(clickup.clickup_url, () => ( ""))
|
|
823
823
|
};
|
|
824
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${_chunkC5EPWKM7cjs.CONTENT_CARD_SKELETON_FRAME_CLASS} ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
824
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${_chunkC5EPWKM7cjs.CONTENT_CARD_SKELETON_FRAME_CLASS} ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFEARCFP4cjs.DeliveryRow, { item, href: clickup.delivery_href, caption: "Linked delivery" }) });
|
|
825
825
|
}
|
|
826
826
|
|
|
827
827
|
// src/components/tickets/ticket-reply-composer.tsx
|
|
@@ -903,13 +903,13 @@ function TicketReplyComposer({
|
|
|
903
903
|
}
|
|
904
904
|
)
|
|
905
905
|
] }),
|
|
906
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
907
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
908
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
909
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
906
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCNEO273cjs.AlertDialog, { open: closeDialogOpen, onOpenChange: setCloseDialogOpen, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZCNEO273cjs.AlertDialogContent, { className: "border-ods-border bg-ods-card", children: [
|
|
907
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZCNEO273cjs.AlertDialogHeader, { children: [
|
|
908
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCNEO273cjs.AlertDialogTitle, { className: "text-ods-text-primary", children: "Close this ticket?" }),
|
|
909
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCNEO273cjs.AlertDialogDescription, { className: "text-ods-text-secondary", children: "Add an optional resolution note below. You can reopen the ticket later if needed." })
|
|
910
910
|
] }),
|
|
911
911
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
912
|
-
|
|
912
|
+
_chunkZCNEO273cjs.Textarea,
|
|
913
913
|
{
|
|
914
914
|
value: resolution,
|
|
915
915
|
onChange: (e) => setResolution(e.target.value),
|
|
@@ -919,9 +919,9 @@ function TicketReplyComposer({
|
|
|
919
919
|
className: "mt-2"
|
|
920
920
|
}
|
|
921
921
|
),
|
|
922
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
922
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZCNEO273cjs.AlertDialogFooter, { children: [
|
|
923
923
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
924
|
-
|
|
924
|
+
_chunkZCNEO273cjs.AlertDialogCancel,
|
|
925
925
|
{
|
|
926
926
|
disabled: busy,
|
|
927
927
|
className: "border-ods-border bg-transparent text-ods-text-primary hover:bg-ods-border",
|
|
@@ -929,7 +929,7 @@ function TicketReplyComposer({
|
|
|
929
929
|
}
|
|
930
930
|
),
|
|
931
931
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
932
|
-
|
|
932
|
+
_chunkZCNEO273cjs.AlertDialogAction,
|
|
933
933
|
{
|
|
934
934
|
onClick: () => void confirmClose(),
|
|
935
935
|
disabled: busy,
|
|
@@ -1089,7 +1089,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1089
1089
|
avatarUrl: avatarSrc,
|
|
1090
1090
|
timeLabel: eng.createdAt ? _chunkBIYLAAFIcjs.formatRelativeTime.call(void 0, eng.createdAt) : null,
|
|
1091
1091
|
body: stripAttachmentsPreamble(_nullishCoalesce(eng.body, () => ( ""))),
|
|
1092
|
-
footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1092
|
+
footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCNEO273cjs.TicketAttachmentsList, { attachments: engAttachments, size: "compact" }) }) : null
|
|
1093
1093
|
},
|
|
1094
1094
|
eng.id
|
|
1095
1095
|
);
|
|
@@ -1343,7 +1343,7 @@ function TicketCenterAuthed({
|
|
|
1343
1343
|
const toggleRow = _react.useCallback.call(void 0, (id) => {
|
|
1344
1344
|
setExpandedTicketId((prev) => prev === id ? null : id);
|
|
1345
1345
|
}, []);
|
|
1346
|
-
const syncInPage =
|
|
1346
|
+
const syncInPage = _chunkFEARCFP4cjs.usePageDataSync.call(void 0, sync, isLoading);
|
|
1347
1347
|
const merged = [...optimisticTickets, ...tickets];
|
|
1348
1348
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1349
1349
|
TicketCenterView,
|
|
@@ -1379,7 +1379,7 @@ function TicketCenterAuthed({
|
|
|
1379
1379
|
function TicketCenterPending({
|
|
1380
1380
|
region = true
|
|
1381
1381
|
} = {}) {
|
|
1382
|
-
const syncInPage =
|
|
1382
|
+
const syncInPage = _chunkFEARCFP4cjs.usePageDataSync.call(void 0, null, true);
|
|
1383
1383
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFBA6S4EScjs.LoadingFallback, { label: "Loading tickets", status: region, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1384
1384
|
TicketCenterView,
|
|
1385
1385
|
{
|
|
@@ -1442,7 +1442,7 @@ function TicketListHeader({
|
|
|
1442
1442
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-3", children: [
|
|
1443
1443
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h5", children: "Your Current Tickets" }),
|
|
1444
1444
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3 text-ods-text-secondary text-h6", children: [
|
|
1445
|
-
sync !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1445
|
+
sync !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCNEO273cjs.DataSyncLine, { sync, loading: syncLoading, inline: true }),
|
|
1446
1446
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { inert: !onRefresh || void 0, "aria-hidden": !onRefresh || void 0, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1447
1447
|
_chunkK7I3YYYUcjs.Button,
|
|
1448
1448
|
{
|
|
@@ -1477,7 +1477,7 @@ function HelpCenterCard(props) {
|
|
|
1477
1477
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpCenterCardLoaded, { ...props });
|
|
1478
1478
|
}
|
|
1479
1479
|
function HelpCenterCardSkeleton({ id, ...props }) {
|
|
1480
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { id, className: HELP_CENTER_ROW_CLASS, "aria-hidden": true, ..._chunk6YZNUHXTcjs.loadingItemProps.call(void 0, props), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: HELP_CENTER_SUMMARY_PAD_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1480
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { id, className: HELP_CENTER_ROW_CLASS, "aria-hidden": true, ..._chunk6YZNUHXTcjs.loadingItemProps.call(void 0, props), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: HELP_CENTER_SUMMARY_PAD_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFEARCFP4cjs.DevCardRowContent, { loading: true, title: "", subtitle: "", description: "", rightBadges: null }) }) });
|
|
1481
1481
|
}
|
|
1482
1482
|
function HelpCenterCardLoaded({
|
|
1483
1483
|
ticket,
|
|
@@ -1571,7 +1571,7 @@ function HelpCenterCardLoaded({
|
|
|
1571
1571
|
"aria-expanded": isExpandable ? isExpanded : void 0,
|
|
1572
1572
|
"aria-controls": isExpanded ? `help-center-drawer-${ticket.id}` : void 0,
|
|
1573
1573
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "block", HELP_CENTER_SUMMARY_PAD_CLASS), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1574
|
-
|
|
1574
|
+
_chunkFEARCFP4cjs.DevCardRowContent,
|
|
1575
1575
|
{
|
|
1576
1576
|
title,
|
|
1577
1577
|
subtitle,
|
|
@@ -1652,7 +1652,7 @@ function HelpCenterCreateFormBody({
|
|
|
1652
1652
|
subjectError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "help-center-subject-error", className: "mt-1 text-ods-error text-h6", children: subjectError })
|
|
1653
1653
|
] });
|
|
1654
1654
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1655
|
-
|
|
1655
|
+
_chunkLMZICTQWcjs.ContactForm,
|
|
1656
1656
|
{
|
|
1657
1657
|
rescue: null,
|
|
1658
1658
|
title: "Open a new ticket",
|
|
@@ -1702,7 +1702,7 @@ function HelpCenterList({ toast: toast2 = _chunkCWA6J7KCcjs.toast, backButton, t
|
|
|
1702
1702
|
const page = _chunkBLH2SFOOcjs.positiveInt.call(void 0, searchParams.get("page"), 1);
|
|
1703
1703
|
if (identity.isLoading) {
|
|
1704
1704
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1705
|
-
|
|
1705
|
+
_chunkFEARCFP4cjs.DevSectionPage,
|
|
1706
1706
|
{
|
|
1707
1707
|
sectionKey: "tickets",
|
|
1708
1708
|
backButton,
|
|
@@ -1714,7 +1714,7 @@ function HelpCenterList({ toast: toast2 = _chunkCWA6J7KCcjs.toast, backButton, t
|
|
|
1714
1714
|
);
|
|
1715
1715
|
}
|
|
1716
1716
|
if (identity.authTier === "anon" || !_optionalChain([identity, 'access', _66 => _66.user, 'optionalAccess', _67 => _67.email])) {
|
|
1717
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1717
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFEARCFP4cjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1718
1718
|
_chunkHMV32LV4cjs.EmptyState,
|
|
1719
1719
|
{
|
|
1720
1720
|
type: "generic",
|
|
@@ -1845,7 +1845,7 @@ function HelpCenterListAuthed({
|
|
|
1845
1845
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { type: "button", variant: "accent", onClick: () => refetch(), children: "Retry" })
|
|
1846
1846
|
] }),
|
|
1847
1847
|
!error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: isLoading || !hasResults && isFetching ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpCenterRowsFrame, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.LoadingItems, { count: pageSize, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpCenterCard, { ticket: null, "data-loading-item": true }) }) }) : !hasResults ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1848
|
-
|
|
1848
|
+
_chunkFEARCFP4cjs.ListEmptyState,
|
|
1849
1849
|
{
|
|
1850
1850
|
isFiltered: hasActiveFilters,
|
|
1851
1851
|
filtered: {
|
|
@@ -1885,7 +1885,7 @@ function HelpCenterListAuthed({
|
|
|
1885
1885
|
)) }) }),
|
|
1886
1886
|
!error && totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHMV32LV4cjs.UnifiedPagination, { currentPage: page, totalPages })
|
|
1887
1887
|
] });
|
|
1888
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1888
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFEARCFP4cjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, preControls: form, children: body });
|
|
1889
1889
|
}
|
|
1890
1890
|
function HelpCenterRowsFrame({ children }) {
|
|
1891
1891
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full overflow-clip rounded-[6px] border border-ods-border bg-ods-card", children });
|
|
@@ -15,7 +15,7 @@ var _chunkHEVW75L3cjs = require('./chunk-HEVW75L3.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkZCNEO273cjs = require('./chunk-ZCNEO273.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunkRPC4P7GYcjs = require('./chunk-RPC4P7GY.cjs');
|
|
@@ -105,7 +105,7 @@ function PageDataSyncProvider({
|
|
|
105
105
|
function PageDataSyncRow({ inline = false }) {
|
|
106
106
|
const context = _react.useContext.call(void 0, PageDataSyncContext);
|
|
107
107
|
if (!context) return null;
|
|
108
|
-
const line = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
108
|
+
const line = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCNEO273cjs.DataSyncLine, { sync: context.state.sync, loading: context.state.loading, stated: context.stated, inline });
|
|
109
109
|
return context.stated ? line : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "contents", "data-loading-optional": "", children: line });
|
|
110
110
|
}
|
|
111
111
|
function usePageDataSync(sync, loading) {
|
|
@@ -166,7 +166,7 @@ function DevSectionView({ sectionKey, preControls, children, showHeading = true
|
|
|
166
166
|
preControls,
|
|
167
167
|
(search || filter) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
168
168
|
search && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
169
|
-
|
|
169
|
+
_chunkZCNEO273cjs.SearchInput,
|
|
170
170
|
{
|
|
171
171
|
showDropdown: false,
|
|
172
172
|
placeholder: search.placeholder,
|
|
@@ -176,7 +176,7 @@ function DevSectionView({ sectionKey, preControls, children, showHeading = true
|
|
|
176
176
|
}
|
|
177
177
|
),
|
|
178
178
|
filter && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
179
|
-
|
|
179
|
+
_chunkZCNEO273cjs.StatusFilterComponent,
|
|
180
180
|
{
|
|
181
181
|
selectedStatus: currentFilterValue,
|
|
182
182
|
onStatusChange: handleFilterChange,
|
|
@@ -228,7 +228,7 @@ function DevSectionPage({
|
|
|
228
228
|
}
|
|
229
229
|
)
|
|
230
230
|
);
|
|
231
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
231
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCNEO273cjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
// src/components/shared/dev-section/dev-card-row.tsx
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkZCNEO273cjs = require('./chunk-ZCNEO273.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -209,7 +209,7 @@ function ContactForm({
|
|
|
209
209
|
!showEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("email") }),
|
|
210
210
|
!showHelpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("helpCategory") }),
|
|
211
211
|
!showMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("message") }),
|
|
212
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
212
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCNEO273cjs.HoneypotField, { ...honeypotInputProps }),
|
|
213
213
|
extraTopField,
|
|
214
214
|
showNameEmailRow && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-md:grid-cols-2 content-md:gap-6", children: [
|
|
215
215
|
showName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
@@ -334,7 +334,7 @@ function ContactForm({
|
|
|
334
334
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHCXNFMLOcjs.RequiredMark, {})
|
|
335
335
|
] }),
|
|
336
336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
-
|
|
337
|
+
_chunkZCNEO273cjs.Textarea,
|
|
338
338
|
{
|
|
339
339
|
id: "message",
|
|
340
340
|
...register("message"),
|
|
@@ -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 _chunkZCNEO273cjs = require('./chunk-ZCNEO273.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -72,7 +72,7 @@ function DocSearchBar({
|
|
|
72
72
|
renderResult
|
|
73
73
|
}) {
|
|
74
74
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
75
|
-
|
|
75
|
+
_chunkZCNEO273cjs.SearchInput,
|
|
76
76
|
{
|
|
77
77
|
placeholder,
|
|
78
78
|
value: query,
|