@flamingo-stack/openframe-frontend-core 0.0.749 → 0.0.750
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-SOPVUD2Y.cjs → chunk-4O2KYY4K.cjs} +3 -3
- package/dist/{chunk-SECT4H34.cjs → chunk-6KEJQR6L.cjs} +96 -41
- package/dist/{chunk-OZLIKBKC.cjs → chunk-7RCTOWBA.cjs} +3 -3
- package/dist/{chunk-ZLF55RDR.cjs → chunk-AW6GP3JK.cjs} +12 -12
- package/dist/{chunk-SGL47BS2.cjs → chunk-BO6ZOAPB.cjs} +2 -2
- package/dist/{chunk-KRAQEZPB.cjs → chunk-CNUZLOVA.cjs} +10 -10
- package/dist/{chunk-VEVIMDNK.cjs → chunk-FP6HAJQV.cjs} +23 -23
- package/dist/{chunk-BN6NA5RM.cjs → chunk-GVETSV7H.cjs} +15 -15
- package/dist/{chunk-CXV7VBSI.cjs → chunk-JPUTILTV.cjs} +22 -22
- package/dist/{chunk-GOFEOCQN.cjs → chunk-KVSEWACW.cjs} +4 -4
- package/dist/{chunk-LQT2ITMG.cjs → chunk-YL62VAHC.cjs} +2 -2
- package/dist/{cloud-tenants-2MYFHEYY.cjs → cloud-tenants-E4JSG3GH.cjs} +2 -2
- package/dist/components/case-studies/index.cjs +10 -10
- 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/auth/login-form.d.ts +34 -21
- package/dist/components/features/auth/login-form.d.ts.map +1 -1
- package/dist/components/features/auth/login-form.js +77 -39
- package/dist/components/features/auth/sso-providers.d.ts +7 -1
- package/dist/components/features/auth/sso-providers.d.ts.map +1 -1
- package/dist/components/features/auth/sso-providers.js +22 -4
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/help-center-pages/index.cjs +44 -44
- package/dist/components/index.cjs +17 -17
- package/dist/components/meeting-scheduler/index.cjs +13 -13
- package/dist/components/navigation/index.cjs +3 -3
- package/dist/components/onboarding-guides/index.cjs +4 -4
- package/dist/components/product-demo/index.cjs +7 -7
- package/dist/components/tickets/index.cjs +5 -5
- package/dist/components/ui/index.cjs +2 -2
- package/dist/{devices-FVXAGKVX.cjs → devices-AVRQGB2N.cjs} +3 -3
- package/dist/index.cjs +3 -3
- package/dist/{knowledge-ZL3ZHBSL.cjs → knowledge-S3CNISQH.cjs} +2 -2
- package/dist/{logs-KQCWDIOB.cjs → logs-WDLOKDXT.cjs} +10 -10
- package/dist/{policies-ARDCZ3CT.cjs → policies-STML7NEZ.cjs} +6 -6
- package/dist/{scripts-ZAMVWCY4.cjs → scripts-HO53VYGX.cjs} +7 -7
- package/dist/{software-update-6F7BIYS3.cjs → software-update-4VTK7LWQ.cjs} +5 -5
- package/package.json +1 -1
- package/src/components/features/auth/login-form.tsx +121 -64
- package/src/components/features/auth/sso-providers.tsx +21 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk6KEJQR6Lcjs = require('./chunk-6KEJQR6L.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkCKR42OBKcjs = require('./chunk-CKR42OBK.cjs');
|
|
@@ -48,7 +48,7 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
|
|
|
48
48
|
] });
|
|
49
49
|
}
|
|
50
50
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
51
|
-
|
|
51
|
+
_chunk6KEJQR6Lcjs.EmbedViewerFrame,
|
|
52
52
|
{
|
|
53
53
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCKR42OBKcjs.GoogleSheetsIcon, { className: "h-5 w-5 shrink-0" }),
|
|
54
54
|
title: displayName,
|
|
@@ -83,7 +83,7 @@ function PdfViewer({ src, fileName, onPreview, onDownload, height }) {
|
|
|
83
83
|
] });
|
|
84
84
|
}
|
|
85
85
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
86
|
-
|
|
86
|
+
_chunk6KEJQR6Lcjs.EmbedViewerFrame,
|
|
87
87
|
{
|
|
88
88
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM7ZSKWT3cjs.AdobePdfIcon, { className: "h-5 w-5 shrink-0" }),
|
|
89
89
|
title: displayName,
|
|
@@ -17908,12 +17908,13 @@ function SsoProviderButtons({
|
|
|
17908
17908
|
onSsoClick,
|
|
17909
17909
|
actionLabel = "Continue with",
|
|
17910
17910
|
disabled = false,
|
|
17911
|
-
enabledProviders
|
|
17911
|
+
enabledProviders,
|
|
17912
|
+
tag
|
|
17912
17913
|
}) {
|
|
17913
17914
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-l)]", children: providers.map((provider) => {
|
|
17914
17915
|
const meta = PROVIDER_META[provider];
|
|
17915
17916
|
const Icon = meta.Icon;
|
|
17916
|
-
return /* @__PURE__ */ _jsxruntime.
|
|
17917
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17917
17918
|
_chunk2QMBXGMQcjs.Button,
|
|
17918
17919
|
{
|
|
17919
17920
|
type: "button",
|
|
@@ -17923,7 +17924,23 @@ function SsoProviderButtons({
|
|
|
17923
17924
|
className: "disabled:bg-ods-bg",
|
|
17924
17925
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-5 w-5" }),
|
|
17925
17926
|
onClick: () => _optionalChain([onSsoClick, 'optionalCall', _369 => _369(provider)]),
|
|
17926
|
-
children:
|
|
17927
|
+
children: [
|
|
17928
|
+
`${actionLabel} ${meta.name}`,
|
|
17929
|
+
tag && // A child, not `rightIcon`: the Button lays its children out through a `contents` span,
|
|
17930
|
+
// so the badge is a flex item of the button itself and can give up width (`min-w-0`)
|
|
17931
|
+
// where a long organization name would otherwise push the label out of a phone-width
|
|
17932
|
+
// button. `block` over its inline-flex, because an ellipsis only renders on a block box.
|
|
17933
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17934
|
+
_chunkOFO75R2Ocjs.StatusBadge,
|
|
17935
|
+
{
|
|
17936
|
+
text: tag,
|
|
17937
|
+
variant: "button",
|
|
17938
|
+
singleLine: true,
|
|
17939
|
+
title: tag,
|
|
17940
|
+
className: "block min-w-0 max-w-32 truncate"
|
|
17941
|
+
}
|
|
17942
|
+
)
|
|
17943
|
+
]
|
|
17927
17944
|
},
|
|
17928
17945
|
provider
|
|
17929
17946
|
);
|
|
@@ -18296,6 +18313,7 @@ function LegalLinks({ termsUrl, privacyPolicyUrl }) {
|
|
|
18296
18313
|
|
|
18297
18314
|
// src/components/features/auth/login-form.tsx
|
|
18298
18315
|
|
|
18316
|
+
var ENTER_ANIMATION = "animate-in fade-in-0 slide-in-from-top-1 duration-200 ease-out motion-reduce:animate-none";
|
|
18299
18317
|
function LoginForm({
|
|
18300
18318
|
email,
|
|
18301
18319
|
onEmailChange,
|
|
@@ -18304,17 +18322,18 @@ function LoginForm({
|
|
|
18304
18322
|
disabled = false,
|
|
18305
18323
|
errors,
|
|
18306
18324
|
emailStatus,
|
|
18325
|
+
notice,
|
|
18307
18326
|
ssoProviders,
|
|
18308
18327
|
onSsoClick,
|
|
18309
18328
|
ssoDisabled = false,
|
|
18310
18329
|
ssoEnabledProviders,
|
|
18311
18330
|
ssoActionLabel = "Continue with",
|
|
18312
|
-
dividerLabel = "or continue with
|
|
18313
|
-
|
|
18314
|
-
noCustomSsoLabel = "No additional SSO configurations for this domain",
|
|
18331
|
+
dividerLabel = "or continue with",
|
|
18332
|
+
tenantMethods,
|
|
18315
18333
|
onSubmitClick,
|
|
18316
18334
|
submitLabel = "Continue",
|
|
18317
18335
|
submitDisabled = false,
|
|
18336
|
+
onEmailEnter,
|
|
18318
18337
|
title = "Login to OpenFrame",
|
|
18319
18338
|
subtitle = "Enter your email to access your organization.",
|
|
18320
18339
|
termsUrl,
|
|
@@ -18322,10 +18341,15 @@ function LoginForm({
|
|
|
18322
18341
|
className
|
|
18323
18342
|
}) {
|
|
18324
18343
|
const fieldDisabled = disabled || loading;
|
|
18344
|
+
const providersDisabled = fieldDisabled || ssoDisabled;
|
|
18325
18345
|
const emailErr = _chunk4FWURR3Wcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _379 => _379.email]), email);
|
|
18326
18346
|
const handleKeyDown = (event) => {
|
|
18327
|
-
if (event.key !== "Enter" ||
|
|
18328
|
-
|
|
18347
|
+
if (event.key !== "Enter" || event.repeat || fieldDisabled) return;
|
|
18348
|
+
if (onSubmitClick) {
|
|
18349
|
+
if (!submitDisabled) onSubmitClick();
|
|
18350
|
+
return;
|
|
18351
|
+
}
|
|
18352
|
+
_optionalChain([onEmailEnter, 'optionalCall', _380 => _380()]);
|
|
18329
18353
|
};
|
|
18330
18354
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
18331
18355
|
"div",
|
|
@@ -18339,17 +18363,6 @@ function LoginForm({
|
|
|
18339
18363
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkOFO75R2Ocjs.accentSentenceMarks.call(void 0, title) }),
|
|
18340
18364
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18341
18365
|
] }),
|
|
18342
|
-
ssoProviders.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18343
|
-
SsoProviderButtons,
|
|
18344
|
-
{
|
|
18345
|
-
providers: ssoProviders,
|
|
18346
|
-
onSsoClick,
|
|
18347
|
-
actionLabel: ssoActionLabel,
|
|
18348
|
-
disabled: disabled || loading || ssoDisabled,
|
|
18349
|
-
enabledProviders: ssoEnabledProviders
|
|
18350
|
-
}
|
|
18351
|
-
),
|
|
18352
|
-
ssoProviders.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LabeledDivider, { label: dividerLabel }),
|
|
18353
18366
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18354
18367
|
_chunkHTRILBJDcjs.Input,
|
|
18355
18368
|
{
|
|
@@ -18365,30 +18378,22 @@ function LoginForm({
|
|
|
18365
18378
|
onKeyDown: handleKeyDown
|
|
18366
18379
|
}
|
|
18367
18380
|
),
|
|
18368
|
-
|
|
18369
|
-
|
|
18381
|
+
notice && // Tokens are the design's: soft-grey surface, grey text and icon, the bold-body step, a 24px
|
|
18382
|
+
// icon, and 12/16 for the inset and the gap.
|
|
18383
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
18384
|
+
"div",
|
|
18370
18385
|
{
|
|
18371
|
-
|
|
18372
|
-
|
|
18373
|
-
|
|
18374
|
-
|
|
18386
|
+
role: "status",
|
|
18387
|
+
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
18388
|
+
"flex min-h-11 w-full items-center gap-[var(--spacing-system-m)] rounded-md bg-ods-bg-surface px-[var(--spacing-system-s)] py-[var(--spacing-system-s)] text-ods-text-secondary text-h3 md:min-h-12",
|
|
18389
|
+
ENTER_ANIMATION
|
|
18390
|
+
),
|
|
18391
|
+
children: [
|
|
18392
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7AAW6L5Ucjs.AlertTriangleIcon, { className: "h-6 w-6 shrink-0" }),
|
|
18393
|
+
notice
|
|
18394
|
+
]
|
|
18375
18395
|
}
|
|
18376
|
-
)
|
|
18377
|
-
// Same footprint as the button it stands in for, so nothing shifts when a tenant does
|
|
18378
|
-
// have options. Tokens are the design's: soft-grey surface, grey text and icon, the
|
|
18379
|
-
// bold-body step, a 24px icon, and 12/16 for the inset and the gap.
|
|
18380
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
18381
|
-
"div",
|
|
18382
|
-
{
|
|
18383
|
-
role: "status",
|
|
18384
|
-
className: "flex min-h-11 w-full items-center gap-[var(--spacing-system-m)] rounded-md bg-ods-bg-surface px-[var(--spacing-system-s)] py-[var(--spacing-system-s)] text-ods-text-secondary text-h3 md:min-h-12",
|
|
18385
|
-
children: [
|
|
18386
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7AAW6L5Ucjs.AlertTriangleIcon, { className: "h-6 w-6 shrink-0" }),
|
|
18387
|
-
noCustomSsoLabel
|
|
18388
|
-
]
|
|
18389
|
-
}
|
|
18390
|
-
)
|
|
18391
|
-
)),
|
|
18396
|
+
),
|
|
18392
18397
|
onSubmitClick && // Full width on a phone, half the row and right-aligned from `md` up, matching the design.
|
|
18393
18398
|
// The spacer, rather than a width on the button, keeps it flush with the fields' right edge.
|
|
18394
18399
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-l)]", children: [
|
|
@@ -18407,6 +18412,56 @@ function LoginForm({
|
|
|
18407
18412
|
}
|
|
18408
18413
|
)
|
|
18409
18414
|
] }),
|
|
18415
|
+
(tenantMethods || ssoProviders.length > 0) && // One block, so an organization's methods replace the generic set as a whole: the key mounts
|
|
18416
|
+
// it anew when they arrive, and every row of it eases in, not only the rows that are new.
|
|
18417
|
+
// Going back to the generic set swaps without a transition, as the prototype does.
|
|
18418
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
18419
|
+
"div",
|
|
18420
|
+
{
|
|
18421
|
+
role: "group",
|
|
18422
|
+
"aria-label": "Sign-in methods",
|
|
18423
|
+
className: _chunk3ATAYP36cjs.cn.call(void 0, "flex flex-col gap-[var(--spacing-system-l)]", tenantMethods && ENTER_ANIMATION),
|
|
18424
|
+
children: [
|
|
18425
|
+
tenantMethods && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
18426
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, LabeledDivider, { label: `Sign-in methods for ${tenantMethods.name || "your organization"}` }),
|
|
18427
|
+
tenantMethods.openframe && // Not configured with anyone's credentials, so it carries no tag.
|
|
18428
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18429
|
+
SsoProviderButtons,
|
|
18430
|
+
{
|
|
18431
|
+
providers: ["openframe"],
|
|
18432
|
+
onSsoClick,
|
|
18433
|
+
actionLabel: ssoActionLabel,
|
|
18434
|
+
disabled: providersDisabled
|
|
18435
|
+
}
|
|
18436
|
+
),
|
|
18437
|
+
tenantMethods.providers.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18438
|
+
SsoProviderButtons,
|
|
18439
|
+
{
|
|
18440
|
+
providers: tenantMethods.providers,
|
|
18441
|
+
onSsoClick,
|
|
18442
|
+
actionLabel: ssoActionLabel,
|
|
18443
|
+
disabled: providersDisabled,
|
|
18444
|
+
tag: tenantMethods.name
|
|
18445
|
+
}
|
|
18446
|
+
)
|
|
18447
|
+
] }),
|
|
18448
|
+
ssoProviders.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
18449
|
+
(!tenantMethods || tenantMethods.openframe || tenantMethods.providers.length > 0) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LabeledDivider, { label: dividerLabel }),
|
|
18450
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18451
|
+
SsoProviderButtons,
|
|
18452
|
+
{
|
|
18453
|
+
providers: ssoProviders,
|
|
18454
|
+
onSsoClick,
|
|
18455
|
+
actionLabel: ssoActionLabel,
|
|
18456
|
+
disabled: providersDisabled,
|
|
18457
|
+
enabledProviders: ssoEnabledProviders
|
|
18458
|
+
}
|
|
18459
|
+
)
|
|
18460
|
+
] })
|
|
18461
|
+
]
|
|
18462
|
+
},
|
|
18463
|
+
tenantMethods ? `tenant:${_nullishCoalesce(tenantMethods.name, () => ( ""))}` : "generic"
|
|
18464
|
+
),
|
|
18410
18465
|
termsUrl && privacyPolicyUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LegalLinks, { termsUrl, privacyPolicyUrl })
|
|
18411
18466
|
]
|
|
18412
18467
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk6KEJQR6Lcjs = require('./chunk-6KEJQR6L.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, _chunk6KEJQR6Lcjs.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, _chunkHTRILBJDcjs.RequiredMark, {})
|
|
335
335
|
] }),
|
|
336
336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
-
|
|
337
|
+
_chunk6KEJQR6Lcjs.Textarea,
|
|
338
338
|
{
|
|
339
339
|
id: "message",
|
|
340
340
|
...register("message"),
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk4O2KYY4Kcjs = require('./chunk-4O2KYY4K.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -13,13 +13,13 @@ var _chunkE3KFEOFAcjs = require('./chunk-E3KFEOFA.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkBO6ZOAPBcjs = require('./chunk-BO6ZOAPB.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunk6KEJQR6Lcjs = require('./chunk-6KEJQR6L.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunkALPRQ3ZXcjs = require('./chunk-ALPRQ3ZX.cjs');
|
|
@@ -738,7 +738,7 @@ function DocViewerContent({
|
|
|
738
738
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _12 => _12.label]), () => ( "Back to home")),
|
|
739
739
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _13 => _13.href]), () => ( "/")))
|
|
740
740
|
};
|
|
741
|
-
const docSearch =
|
|
741
|
+
const docSearch = _chunkBO6ZOAPBcjs.useDocSearch.call(void 0, {
|
|
742
742
|
source: chatSource,
|
|
743
743
|
baseRoute,
|
|
744
744
|
searchEndpoint,
|
|
@@ -775,7 +775,7 @@ function DocViewerContent({
|
|
|
775
775
|
const resolvedEmptyText = emptyStateText || defaultEmptyText;
|
|
776
776
|
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkALPRQ3ZXcjs.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: [
|
|
777
777
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
778
|
-
|
|
778
|
+
_chunkBO6ZOAPBcjs.DocSearchBar,
|
|
779
779
|
{
|
|
780
780
|
placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _19 => _19.toLowerCase, 'call', _20 => _20()]) || "documents"}...`,
|
|
781
781
|
query: docSearch.query,
|
|
@@ -794,7 +794,7 @@ function DocViewerContent({
|
|
|
794
794
|
] })
|
|
795
795
|
] }) }),
|
|
796
796
|
!error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col items-start gap-6 content-lg:flex-row content-lg:gap-10", children: [
|
|
797
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
797
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6KEJQR6Lcjs.CategorySidebarSkeleton, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
798
798
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
799
799
|
_chunkE3KFEOFAcjs.MobileNavigationDropdown,
|
|
800
800
|
{
|
|
@@ -864,7 +864,7 @@ function DocViewerContent({
|
|
|
864
864
|
) })
|
|
865
865
|
] })
|
|
866
866
|
] }) }) });
|
|
867
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
867
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6KEJQR6Lcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
|
|
868
868
|
}
|
|
869
869
|
|
|
870
870
|
// src/components/docs/skeletons.tsx
|
|
@@ -950,7 +950,7 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
950
950
|
] }),
|
|
951
951
|
/* @__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, _chunk2YXOD2KLcjs.UnifiedSkeleton, { className: "h-10 w-full flex-1 rounded content-sm:w-32 content-sm:flex-initial" }, i)) })
|
|
952
952
|
] }),
|
|
953
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
953
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6KEJQR6Lcjs.EmbedLoadingSkeleton, { region: false })
|
|
954
954
|
] });
|
|
955
955
|
}
|
|
956
956
|
|
|
@@ -958,11 +958,11 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
958
958
|
|
|
959
959
|
var DEFAULT_TITLE = "Documents";
|
|
960
960
|
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" }) });
|
|
961
|
-
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
962
|
-
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
963
|
-
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
961
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2KYY4Kcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
962
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4O2KYY4Kcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
963
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6KEJQR6Lcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
964
964
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
965
|
-
|
|
965
|
+
_chunk4O2KYY4Kcjs.FileDownloadCard,
|
|
966
966
|
{
|
|
967
967
|
fileName: content.fileName,
|
|
968
968
|
mimeType: content.mimeType,
|
|
@@ -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 _chunk6KEJQR6Lcjs = require('./chunk-6KEJQR6L.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -70,7 +70,7 @@ function DocSearchBar({
|
|
|
70
70
|
renderResult
|
|
71
71
|
}) {
|
|
72
72
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
73
|
-
|
|
73
|
+
_chunk6KEJQR6Lcjs.SearchInput,
|
|
74
74
|
{
|
|
75
75
|
placeholder,
|
|
76
76
|
value: query,
|
|
@@ -6,14 +6,14 @@ var _chunkCLAJIQ7Ecjs = require('./chunk-CLAJIQ7E.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkBO6ZOAPBcjs = require('./chunk-BO6ZOAPB.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk6KEJQR6Lcjs = require('./chunk-6KEJQR6L.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkALPRQ3ZXcjs = require('./chunk-ALPRQ3ZX.cjs');
|
|
@@ -146,7 +146,7 @@ function OnboardingGuidesCatalogView({
|
|
|
146
146
|
});
|
|
147
147
|
};
|
|
148
148
|
const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _6 => _6.source]), () => ( "openframe"));
|
|
149
|
-
const docSearch =
|
|
149
|
+
const docSearch = _chunkBO6ZOAPBcjs.useDocSearch.call(void 0, {
|
|
150
150
|
source,
|
|
151
151
|
baseRoute: basePath,
|
|
152
152
|
onNavigate: (path) => router.push(path),
|
|
@@ -164,7 +164,7 @@ function OnboardingGuidesCatalogView({
|
|
|
164
164
|
const renderCardFn = _nullishCoalesce(renderCard, () => ( defaultRenderCard));
|
|
165
165
|
const preControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
166
166
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
167
|
-
|
|
167
|
+
_chunkBO6ZOAPBcjs.DocSearchBar,
|
|
168
168
|
{
|
|
169
169
|
placeholder: "Search onboarding guides, releases, case studies\u2026",
|
|
170
170
|
query: docSearch.query,
|
|
@@ -176,7 +176,7 @@ function OnboardingGuidesCatalogView({
|
|
|
176
176
|
}
|
|
177
177
|
),
|
|
178
178
|
sections.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
179
|
-
|
|
179
|
+
_chunk6KEJQR6Lcjs.FilterPillRow,
|
|
180
180
|
{
|
|
181
181
|
label: "Section",
|
|
182
182
|
selectedValue: activeSection,
|
|
@@ -186,7 +186,7 @@ function OnboardingGuidesCatalogView({
|
|
|
186
186
|
)
|
|
187
187
|
] });
|
|
188
188
|
if (selfFetch && guidesRes.error) {
|
|
189
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
189
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6KEJQR6Lcjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
|
|
190
190
|
}
|
|
191
191
|
if (selfFetch && guidesRes.data == null && isLoading) {
|
|
192
192
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OnboardingGuidesCatalogSkeleton, {});
|
|
@@ -218,7 +218,7 @@ function OnboardingGuideDetailView({
|
|
|
218
218
|
slug,
|
|
219
219
|
guideEndpoint,
|
|
220
220
|
related = [],
|
|
221
|
-
MarkdownRenderer =
|
|
221
|
+
MarkdownRenderer = _chunk6KEJQR6Lcjs.RichMarkdownRenderer,
|
|
222
222
|
renderRelatedCard,
|
|
223
223
|
backHref,
|
|
224
224
|
backLabel = "Back to Getting Started",
|
|
@@ -230,7 +230,7 @@ function OnboardingGuideDetailView({
|
|
|
230
230
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
231
231
|
const captions = _chunkV3UJ6NDRcjs.useCaptions.call(void 0, );
|
|
232
232
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
233
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
233
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6KEJQR6Lcjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
234
234
|
const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null;
|
|
235
235
|
const { data: guide, isLoading, error, reload } = _chunkXJ3J4UIScjs.useSelfFetch.call(void 0, url, { initialData });
|
|
236
236
|
const { ref: videoWarmupRef } = _chunk3RFQPQ7Zcjs.useVideoWarmup.call(void 0, {
|
|
@@ -238,7 +238,7 @@ function OnboardingGuideDetailView({
|
|
|
238
238
|
supabaseStorageOrigin: _optionalChain([runtime, 'optionalAccess', _9 => _9.endpoints, 'access', _10 => _10.supabaseStorageOrigin])
|
|
239
239
|
});
|
|
240
240
|
if (error || !guide && !isLoading) {
|
|
241
|
-
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
241
|
+
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6KEJQR6Lcjs.LoadError, { message: "Guide not found.", onRetry: reload }));
|
|
242
242
|
}
|
|
243
243
|
if (!guide) {
|
|
244
244
|
return renderShell(
|
|
@@ -270,7 +270,7 @@ function OnboardingGuideDetailView({
|
|
|
270
270
|
titleWrap: true,
|
|
271
271
|
backButton: { label: backLabel, onClick: () => router.push(resolvedBackHref) },
|
|
272
272
|
children: [
|
|
273
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
273
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6KEJQR6Lcjs.EntityTagBadges, { tags: guide.onboarding_guide_tags }),
|
|
274
274
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
275
275
|
_chunkOFO75R2Ocjs.EntityAuthorCard,
|
|
276
276
|
{
|
|
@@ -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 _chunk7RCTOWBAcjs = require('./chunk-7RCTOWBA.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkKVSEWACWcjs = require('./chunk-KVSEWACW.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -31,7 +31,7 @@ var _chunkHOEVD6ENcjs = require('./chunk-HOEVD6EN.cjs');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunk6KEJQR6Lcjs = require('./chunk-6KEJQR6L.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
@@ -669,7 +669,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
669
669
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
670
670
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "ticket-content", className: "mb-1 block text-ods-text-primary text-h6", children: "Your Message" }),
|
|
671
671
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
672
|
-
|
|
672
|
+
_chunk6KEJQR6Lcjs.Textarea,
|
|
673
673
|
{
|
|
674
674
|
id: "ticket-content",
|
|
675
675
|
placeholder: "Describe your issue or question in detail...",
|
|
@@ -799,7 +799,7 @@ function TicketLinkedDeliveryCard({ clickup, className }) {
|
|
|
799
799
|
dateClosed: clickup.date_closed,
|
|
800
800
|
clickupUrl: _nullishCoalesce(clickup.clickup_url, () => ( ""))
|
|
801
801
|
};
|
|
802
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${_chunkOFO75R2Ocjs.CONTENT_CARD_SKELETON_FRAME_CLASS} ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
802
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${_chunkOFO75R2Ocjs.CONTENT_CARD_SKELETON_FRAME_CLASS} ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVSEWACWcjs.DeliveryRow, { item, href: clickup.delivery_href, caption: "Linked delivery" }) });
|
|
803
803
|
}
|
|
804
804
|
|
|
805
805
|
// src/components/tickets/ticket-reply-composer.tsx
|
|
@@ -881,13 +881,13 @@ function TicketReplyComposer({
|
|
|
881
881
|
}
|
|
882
882
|
)
|
|
883
883
|
] }),
|
|
884
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
885
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
886
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
887
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
884
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6KEJQR6Lcjs.AlertDialog, { open: closeDialogOpen, onOpenChange: setCloseDialogOpen, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk6KEJQR6Lcjs.AlertDialogContent, { className: "border-ods-border bg-ods-card", children: [
|
|
885
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk6KEJQR6Lcjs.AlertDialogHeader, { children: [
|
|
886
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6KEJQR6Lcjs.AlertDialogTitle, { className: "text-ods-text-primary", children: "Close this ticket?" }),
|
|
887
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6KEJQR6Lcjs.AlertDialogDescription, { className: "text-ods-text-secondary", children: "Add an optional resolution note below. You can reopen the ticket later if needed." })
|
|
888
888
|
] }),
|
|
889
889
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
890
|
-
|
|
890
|
+
_chunk6KEJQR6Lcjs.Textarea,
|
|
891
891
|
{
|
|
892
892
|
value: resolution,
|
|
893
893
|
onChange: (e) => setResolution(e.target.value),
|
|
@@ -897,9 +897,9 @@ function TicketReplyComposer({
|
|
|
897
897
|
className: "mt-2"
|
|
898
898
|
}
|
|
899
899
|
),
|
|
900
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
900
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk6KEJQR6Lcjs.AlertDialogFooter, { children: [
|
|
901
901
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
902
|
-
|
|
902
|
+
_chunk6KEJQR6Lcjs.AlertDialogCancel,
|
|
903
903
|
{
|
|
904
904
|
disabled: busy,
|
|
905
905
|
className: "border-ods-border bg-transparent text-ods-text-primary hover:bg-ods-border",
|
|
@@ -907,7 +907,7 @@ function TicketReplyComposer({
|
|
|
907
907
|
}
|
|
908
908
|
),
|
|
909
909
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
910
|
-
|
|
910
|
+
_chunk6KEJQR6Lcjs.AlertDialogAction,
|
|
911
911
|
{
|
|
912
912
|
onClick: () => void confirmClose(),
|
|
913
913
|
disabled: busy,
|
|
@@ -1065,7 +1065,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1065
1065
|
avatarUrl: avatarSrc,
|
|
1066
1066
|
timeLabel: eng.createdAt ? _chunkLVO7FALWcjs.formatRelativeTime.call(void 0, eng.createdAt) : null,
|
|
1067
1067
|
body: stripAttachmentsPreamble(_nullishCoalesce(eng.body, () => ( ""))),
|
|
1068
|
-
footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1068
|
+
footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6KEJQR6Lcjs.TicketAttachmentsList, { attachments: engAttachments, size: "compact" }) }) : null
|
|
1069
1069
|
},
|
|
1070
1070
|
eng.id
|
|
1071
1071
|
);
|
|
@@ -1479,7 +1479,7 @@ function HelpCenterCard({
|
|
|
1479
1479
|
"aria-controls": isExpanded ? `help-center-drawer-${ticket.id}` : void 0,
|
|
1480
1480
|
className: "w-full p-[12px] text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-accent disabled:cursor-default content-md:p-[16px]",
|
|
1481
1481
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1482
|
-
|
|
1482
|
+
_chunkKVSEWACWcjs.DevCardRowContent,
|
|
1483
1483
|
{
|
|
1484
1484
|
title,
|
|
1485
1485
|
subtitle,
|
|
@@ -1590,7 +1590,7 @@ function HelpCenterCreateForm({
|
|
|
1590
1590
|
subjectError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "help-center-subject-error", className: "mt-1 text-ods-error text-h6", children: subjectError })
|
|
1591
1591
|
] });
|
|
1592
1592
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1593
|
-
|
|
1593
|
+
_chunk7RCTOWBAcjs.ContactForm,
|
|
1594
1594
|
{
|
|
1595
1595
|
rescue: null,
|
|
1596
1596
|
title: "Open a new ticket",
|
|
@@ -1639,19 +1639,19 @@ function HelpCenterList({ toast: toast2 = _chunk4FWURR3Wcjs.toast, backButton, t
|
|
|
1639
1639
|
const page = _chunkBLH2SFOOcjs.positiveInt.call(void 0, searchParams.get("page"), 1);
|
|
1640
1640
|
if (identity.isLoading) {
|
|
1641
1641
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1642
|
-
|
|
1642
|
+
_chunkKVSEWACWcjs.DevSectionPage,
|
|
1643
1643
|
{
|
|
1644
1644
|
sectionKey: "tickets",
|
|
1645
1645
|
backButton,
|
|
1646
1646
|
title,
|
|
1647
1647
|
shell,
|
|
1648
1648
|
preControls: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpCenterCreateFormSkeleton, {}),
|
|
1649
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1649
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVSEWACWcjs.DevCardRowSkeletonList, {})
|
|
1650
1650
|
}
|
|
1651
1651
|
);
|
|
1652
1652
|
}
|
|
1653
1653
|
if (identity.authTier === "anon" || !_optionalChain([identity, 'access', _66 => _66.user, 'optionalAccess', _67 => _67.email])) {
|
|
1654
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1654
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVSEWACWcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1655
1655
|
_chunk34TWK3JEcjs.EmptyState,
|
|
1656
1656
|
{
|
|
1657
1657
|
type: "generic",
|
|
@@ -1781,15 +1781,15 @@ function HelpCenterListAuthed({
|
|
|
1781
1781
|
] }),
|
|
1782
1782
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { type: "button", variant: "accent", onClick: () => refetch(), children: "Retry" })
|
|
1783
1783
|
] }),
|
|
1784
|
-
!error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1784
|
+
!error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVSEWACWcjs.DevCardRowSkeletonList, {}) : !hasResults && isFetching ? (
|
|
1785
1785
|
// Bridge state — background refetch in flight and the
|
|
1786
1786
|
// optimistic placeholder was just removed by the mutation
|
|
1787
1787
|
// callback. Without this branch "No tickets yet" would flash
|
|
1788
1788
|
// for ~50ms between `removeOptimistic` and the server
|
|
1789
1789
|
// response landing.
|
|
1790
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1790
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVSEWACWcjs.DevCardRowSkeletonList, { rows: 1 })
|
|
1791
1791
|
) : !hasResults ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1792
|
-
|
|
1792
|
+
_chunkKVSEWACWcjs.ListEmptyState,
|
|
1793
1793
|
{
|
|
1794
1794
|
isFiltered: hasActiveFilters,
|
|
1795
1795
|
filtered: {
|
|
@@ -1838,7 +1838,7 @@ function HelpCenterListAuthed({
|
|
|
1838
1838
|
) }),
|
|
1839
1839
|
!error && totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk34TWK3JEcjs.UnifiedPagination, { currentPage: page, totalPages })
|
|
1840
1840
|
] });
|
|
1841
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1841
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVSEWACWcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, preControls: form, children: body });
|
|
1842
1842
|
}
|
|
1843
1843
|
|
|
1844
1844
|
|