@flamingo-stack/openframe-frontend-core 0.0.799 → 0.0.801
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-4RK62AMV.cjs → chunk-237MLBT7.cjs} +68 -68
- package/dist/{chunk-IJGIWG6G.cjs → chunk-3W2PBWD5.cjs} +4 -4
- package/dist/{chunk-BSBCZIPQ.cjs → chunk-3YPEXJVQ.cjs} +39 -39
- package/dist/{chunk-GRNTIKPD.cjs → chunk-7E4BC3AF.cjs} +68 -51
- package/dist/{chunk-6CB3AXZM.cjs → chunk-CJSUMYTH.cjs} +30 -30
- package/dist/{chunk-PPORXZI7.cjs → chunk-CRVXQYUZ.cjs} +25 -25
- package/dist/{chunk-FDDM5Z52.cjs → chunk-DYDS2P5G.cjs} +2 -2
- package/dist/{chunk-FIKIPO4F.cjs → chunk-FAUVDMH4.cjs} +1 -1
- package/dist/{chunk-SDV335EO.cjs → chunk-FFRFKWTZ.cjs} +4 -4
- package/dist/{chunk-XJD7IZR2.cjs → chunk-FS4TVAE7.cjs} +48 -48
- package/dist/{chunk-AVAE5B2A.cjs → chunk-KVGWOJCX.cjs} +2 -2
- package/dist/{chunk-HB7FVY46.cjs → chunk-LEEBFBI4.cjs} +32 -32
- package/dist/{chunk-UFCKY7OL.cjs → chunk-LOCJD7TD.cjs} +16 -16
- package/dist/{chunk-6EDOASF4.cjs → chunk-PJMLRXAG.cjs} +11 -11
- package/dist/{chunk-TETW5NR4.cjs → chunk-PY6SPYUR.cjs} +3 -3
- package/dist/{chunk-2KEBGXA4.cjs → chunk-QAUQYQWT.cjs} +4 -4
- package/dist/{chunk-CS2KLF4O.cjs → chunk-QNIUDJAK.cjs} +13 -13
- package/dist/{chunk-B3X4J4HQ.cjs → chunk-SHOE6ATQ.cjs} +14 -14
- package/dist/{chunk-PO5IIN4S.cjs → chunk-THQKEA2T.cjs} +11 -11
- package/dist/{chunk-O6KQ64RI.cjs → chunk-UYGXJ5SQ.cjs} +2 -2
- package/dist/{chunk-3MRK7X6Z.cjs → chunk-XYPNYTCV.cjs} +3 -3
- package/dist/{chunk-ZOK4OWMJ.cjs → chunk-Y5XHMEBB.cjs} +2 -2
- package/dist/{chunk-247LDSQE.cjs → chunk-YUGX72P4.cjs} +61 -61
- package/dist/{chunk-DBRXZC2I.cjs → chunk-Z66FOMSA.cjs} +136 -129
- package/dist/{chunk-T5OCU3EL.cjs → chunk-ZPVFFPQM.cjs} +4 -4
- package/dist/{cloud-tenants-BQAVRN44.cjs → cloud-tenants-X7QHAIX2.cjs} +6 -6
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/chat/chat-context-picker.d.ts.map +1 -1
- package/dist/components/chat/chat-context-picker.js +16 -14
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/contact/index.cjs +7 -7
- package/dist/components/docs/index.cjs +10 -10
- package/dist/components/embeds/index.cjs +7 -7
- package/dist/components/faq/index.cjs +8 -8
- package/dist/components/features/index.cjs +6 -6
- package/dist/components/help-center-pages/index.cjs +82 -82
- package/dist/components/index.cjs +52 -52
- package/dist/components/layout/page-heading.js +1 -1
- package/dist/components/meeting-scheduler/index.cjs +38 -38
- package/dist/components/navigation/index.cjs +9 -9
- package/dist/components/onboarding-guides/index.cjs +9 -9
- package/dist/components/product-demo/index.cjs +15 -15
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/ui/fade-preview.d.ts.map +1 -1
- package/dist/components/ui/fade-preview.js +9 -2
- package/dist/components/ui/index.cjs +6 -6
- package/dist/{devices-KDT5ZGSG.cjs → devices-VBFYZVVG.cjs} +7 -7
- package/dist/{embeddable-chat-ODKTSW3C.cjs → embeddable-chat-XZDZOHFY.cjs} +62 -62
- package/dist/index.cjs +10 -10
- package/dist/{knowledge-4NLP77HP.cjs → knowledge-RJZJFD2Y.cjs} +7 -7
- package/dist/loading-standard/engine.d.mts +1 -0
- package/dist/loading-standard/engine.d.mts.map +1 -1
- package/dist/loading-standard/rule-examples.d.mts.map +1 -1
- package/dist/{logs-U6VMTY4N.cjs → logs-3WZ4GROE.cjs} +14 -14
- package/dist/{policies-TBLFBRFM.cjs → policies-E6WQEXDF.cjs} +10 -10
- package/dist/{scripts-ZMNJWX7I.cjs → scripts-JLCM42F4.cjs} +11 -11
- package/dist/{software-update-Q5AEQ4A4.cjs → software-update-BVBHAROC.cjs} +9 -9
- package/dist/utils/index.cjs +16 -1
- package/dist/utils/markdown-to-plain.d.ts.map +1 -1
- package/dist/utils/markdown-to-plain.js +16 -1
- package/package.json +1 -1
- package/src/components/chat/chat-context-picker.tsx +30 -16
- package/src/components/layout/page-heading.tsx +3 -1
- package/src/components/ui/fade-preview.tsx +13 -2
- package/src/loading-standard/engine.mjs +49 -2
- package/src/loading-standard/rule-examples.mjs +35 -3
- package/src/utils/markdown-to-plain.ts +23 -4
|
@@ -107,7 +107,7 @@ var _chunkYR74H7Z3cjs = require('./chunk-YR74H7Z3.cjs');
|
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
var
|
|
110
|
+
var _chunkCRVXQYUZcjs = require('./chunk-CRVXQYUZ.cjs');
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
|
|
@@ -127,7 +127,7 @@ var _chunkPPORXZI7cjs = require('./chunk-PPORXZI7.cjs');
|
|
|
127
127
|
|
|
128
128
|
|
|
129
129
|
|
|
130
|
-
var
|
|
130
|
+
var _chunk7E4BC3AFcjs = require('./chunk-7E4BC3AF.cjs');
|
|
131
131
|
|
|
132
132
|
|
|
133
133
|
|
|
@@ -486,7 +486,7 @@ var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
|
486
486
|
|
|
487
487
|
|
|
488
488
|
|
|
489
|
-
var
|
|
489
|
+
var _chunkFAUVDMH4cjs = require('./chunk-FAUVDMH4.cjs');
|
|
490
490
|
|
|
491
491
|
|
|
492
492
|
|
|
@@ -695,7 +695,7 @@ function ThemeProvider({ children, ...overrides }) {
|
|
|
695
695
|
var useTheme = _nextthemes.useTheme;
|
|
696
696
|
function useThemeToggle() {
|
|
697
697
|
const { resolvedTheme, theme, setTheme } = useTheme();
|
|
698
|
-
const mounted =
|
|
698
|
+
const mounted = _chunk7E4BC3AFcjs.useIsHydrated.call(void 0, );
|
|
699
699
|
const active = mounted ? resolvedTheme === "light" || theme === "light" ? "light" : "dark" : DEFAULT_THEME;
|
|
700
700
|
const setOdsTheme = _react.useCallback.call(void 0, (next) => setTheme(next), [setTheme]);
|
|
701
701
|
const toggle = _react.useCallback.call(void 0, () => setTheme(active === "dark" ? "light" : "dark"), [active, setTheme]);
|
|
@@ -4539,7 +4539,7 @@ function AdminFormDrawer({
|
|
|
4539
4539
|
"form",
|
|
4540
4540
|
{
|
|
4541
4541
|
id: formId,
|
|
4542
|
-
...
|
|
4542
|
+
..._chunkCRVXQYUZcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4543
4543
|
className: "flex flex-col gap-[var(--spacing-system-lf)]",
|
|
4544
4544
|
onSubmit: (e) => {
|
|
4545
4545
|
e.preventDefault();
|
|
@@ -4646,7 +4646,7 @@ function AdminFormModal({
|
|
|
4646
4646
|
"form",
|
|
4647
4647
|
{
|
|
4648
4648
|
id: formId,
|
|
4649
|
-
...
|
|
4649
|
+
..._chunkCRVXQYUZcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4650
4650
|
className: "flex min-h-0 flex-1 flex-col",
|
|
4651
4651
|
onSubmit: (e) => {
|
|
4652
4652
|
e.preventDefault();
|
|
@@ -5743,6 +5743,7 @@ function FadePreview({
|
|
|
5743
5743
|
const collapsedHeight = _nullishCoalesce(collapsedHeightProp, () => ( (itemMode ? "auto" : 120)));
|
|
5744
5744
|
const collapsed = itemMode && itemsHeight != null ? itemsHeight : collapsedHeight;
|
|
5745
5745
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
5746
|
+
const [openHeight, setOpenHeight] = _react.useState.call(void 0, null);
|
|
5746
5747
|
const [overflows, setOverflows] = _react.useState.call(void 0, false);
|
|
5747
5748
|
const contentRef = _react.useRef.call(void 0, null);
|
|
5748
5749
|
const [collapsedFor, setCollapsedFor] = _react.useState.call(void 0, resetKey);
|
|
@@ -5809,8 +5810,11 @@ function FadePreview({
|
|
|
5809
5810
|
// Fixed mode renders the collapsed height INTO the markup, so the
|
|
5810
5811
|
// server-rendered block is already clamped and hydration never shrinks
|
|
5811
5812
|
// it. The expanded value is a live DOM measurement, so the layout
|
|
5812
|
-
// effect above
|
|
5813
|
+
// effect above keeps it current.
|
|
5813
5814
|
...fixed && !fill && !expanded ? { height: cssLength(collapsed) } : {},
|
|
5815
|
+
// The counted mode too: its collapsed max-height is in the server's markup, so a cached page is clamped in
|
|
5816
|
+
// its first paint (it used to show the whole list until hydration, then collapse it).
|
|
5817
|
+
...!fixed ? { maxHeight: expanded && openHeight != null ? `${openHeight}px` : cssLength(collapsedHeight) } : {},
|
|
5814
5818
|
...!expanded && needsFade ? {
|
|
5815
5819
|
maskImage: "linear-gradient(to bottom, black 30%, transparent 100%)",
|
|
5816
5820
|
WebkitMaskImage: "linear-gradient(to bottom, black 30%, transparent 100%)"
|
|
@@ -5826,7 +5830,10 @@ function FadePreview({
|
|
|
5826
5830
|
variant: "link",
|
|
5827
5831
|
size: "compact",
|
|
5828
5832
|
noPaddingX: true,
|
|
5829
|
-
onClick: () =>
|
|
5833
|
+
onClick: () => {
|
|
5834
|
+
if (!expanded && contentRef.current) setOpenHeight(contentRef.current.scrollHeight);
|
|
5835
|
+
setExpanded(!expanded);
|
|
5836
|
+
},
|
|
5830
5837
|
"aria-expanded": expanded,
|
|
5831
5838
|
"aria-hidden": showToggle ? void 0 : true,
|
|
5832
5839
|
tabIndex: showToggle ? void 0 : -1,
|
|
@@ -6040,7 +6047,7 @@ function EmbedViewerFrame({
|
|
|
6040
6047
|
const controllerRef = _react.useRef.call(void 0, null);
|
|
6041
6048
|
_react.useEffect.call(void 0, () => {
|
|
6042
6049
|
if (!fullscreenControl) return void 0;
|
|
6043
|
-
const controller = new (0,
|
|
6050
|
+
const controller = new (0, _chunkCRVXQYUZcjs.FullscreenSwitchController)({
|
|
6044
6051
|
target: () => frameRef.current,
|
|
6045
6052
|
onFullscreenChange: setIsFullscreen
|
|
6046
6053
|
});
|
|
@@ -7279,7 +7286,7 @@ var formatTimeAgo = (timestamp) => {
|
|
|
7279
7286
|
return `${Math.floor(diffSeconds / 86400)}d ago`;
|
|
7280
7287
|
};
|
|
7281
7288
|
function RedditEmbedClient({ url, maxWidth = 700, rel }) {
|
|
7282
|
-
const postLinkRel =
|
|
7289
|
+
const postLinkRel = _chunk7E4BC3AFcjs.renderedLinkRel.call(void 0, rel, true);
|
|
7283
7290
|
const { redditProxyUrl } = useRichMarkdownRuntime();
|
|
7284
7291
|
const [redditData, setRedditData] = _react.useState.call(void 0, null);
|
|
7285
7292
|
const [loading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7611,7 +7618,7 @@ var UserIcon3 = () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "svg", { wid
|
|
|
7611
7618
|
] });
|
|
7612
7619
|
var XIcon = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TEMEXDTcjs.XLogoIcon, { className: "h-5 w-5", color: "currentColor" });
|
|
7613
7620
|
function TwitterEmbedClient({ url, tweetId, maxWidth = 700, rel }) {
|
|
7614
|
-
const postLinkRel =
|
|
7621
|
+
const postLinkRel = _chunk7E4BC3AFcjs.renderedLinkRel.call(void 0, rel, true);
|
|
7615
7622
|
const { twitterProxyUrl } = useRichMarkdownRuntime();
|
|
7616
7623
|
const [tweetData, setTweetData] = _react.useState.call(void 0, null);
|
|
7617
7624
|
const [fetchLoading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7813,7 +7820,7 @@ function buildRichEmbedOverrides({
|
|
|
7813
7820
|
ogEndpointPath,
|
|
7814
7821
|
textSizes
|
|
7815
7822
|
}) {
|
|
7816
|
-
const standard =
|
|
7823
|
+
const standard = _chunk7E4BC3AFcjs.buildStandardLeafRenderers.call(void 0, { textSizes });
|
|
7817
7824
|
return {
|
|
7818
7825
|
// Fence-language embeds (```youtube-embed etc.); everything else
|
|
7819
7826
|
// (mermaid, highlighted blocks, inline code) falls through to `standard`.
|
|
@@ -7949,14 +7956,14 @@ function buildRichEmbedOverrides({
|
|
|
7949
7956
|
// rich-markdown runtime (Supabase optimization on the hub, identity
|
|
7950
7957
|
// elsewhere). Guard against empty `![]()`.
|
|
7951
7958
|
img: ({ src, alt }) => {
|
|
7952
|
-
if (!
|
|
7959
|
+
if (!_chunk7E4BC3AFcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7953
7960
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownImage, { src: src.trim(), alt });
|
|
7954
7961
|
},
|
|
7955
7962
|
// Raw <iframe> tags in stored content (a pasted YouTube embed). A YouTube one becomes the same click-to-play
|
|
7956
7963
|
// facade as the `youtube-embed` fence: the raw iframe loaded YouTube's whole player (about 470 KB of script) with
|
|
7957
7964
|
// the page, on every post that carried one (CU-17tkuw5xp4q). Any other iframe loads when it nears the screen.
|
|
7958
7965
|
iframe: ({ node: _node, src, ...rest }) => {
|
|
7959
|
-
if (!
|
|
7966
|
+
if (!_chunk7E4BC3AFcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7960
7967
|
const url = src.trim();
|
|
7961
7968
|
if (_chunkYBTORXFYcjs.extractYouTubeId.call(void 0, url)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYBTORXFYcjs.Video, { kind: "youtube", url });
|
|
7962
7969
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "iframe", { ...rest, src: url, loading: "lazy" });
|
|
@@ -7964,7 +7971,7 @@ function buildRichEmbedOverrides({
|
|
|
7964
7971
|
// Raw <video> tags in stored content (blog publisher injection) route
|
|
7965
7972
|
// to the <Video> SSOT (MuxPlayer) so HLS manifests play everywhere.
|
|
7966
7973
|
video: ({ src, poster, className }) => {
|
|
7967
|
-
if (!
|
|
7974
|
+
if (!_chunk7E4BC3AFcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7968
7975
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `overflow-hidden ${className || "my-8 w-full rounded-lg"}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYBTORXFYcjs.Video, { kind: "file", url: src.trim(), poster: typeof poster === "string" ? poster : void 0 }) }) });
|
|
7969
7976
|
}
|
|
7970
7977
|
};
|
|
@@ -8073,7 +8080,7 @@ var processShortcodes = (content) => {
|
|
|
8073
8080
|
try {
|
|
8074
8081
|
const urlObj = new URL(url);
|
|
8075
8082
|
const hostname = urlObj.hostname.toLowerCase();
|
|
8076
|
-
const hostIs = (domain) =>
|
|
8083
|
+
const hostIs = (domain) => _chunkCRVXQYUZcjs.hostMatches.call(void 0, hostname, domain);
|
|
8077
8084
|
const isYouTubeVideo = hostIs("youtube.com") && urlObj.searchParams.has("v") || hostIs("youtu.be");
|
|
8078
8085
|
if (isYouTubeVideo || hostIs("reddit.com") || hostIs("twitter.com") || hostIs("x.com") || hostIs("figma.com")) {
|
|
8079
8086
|
return match;
|
|
@@ -8150,13 +8157,13 @@ var RichMarkdownInner = ({
|
|
|
8150
8157
|
},
|
|
8151
8158
|
[resolveLinkEndpointUrl, resolveSource]
|
|
8152
8159
|
);
|
|
8153
|
-
const textSizes = _react.useMemo.call(void 0, () =>
|
|
8160
|
+
const textSizes = _react.useMemo.call(void 0, () => _chunk7E4BC3AFcjs.resolveTextSizeConfig.call(void 0, "article"), []);
|
|
8154
8161
|
const componentOverrides = _react.useMemo.call(void 0,
|
|
8155
8162
|
() => buildRichEmbedOverrides({ ogApiBaseUrl, ogEndpointPath, textSizes }),
|
|
8156
8163
|
[ogApiBaseUrl, ogEndpointPath, textSizes]
|
|
8157
8164
|
);
|
|
8158
8165
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8159
|
-
|
|
8166
|
+
_chunk7E4BC3AFcjs.MarkdownEngine,
|
|
8160
8167
|
{
|
|
8161
8168
|
content,
|
|
8162
8169
|
className,
|
|
@@ -8180,7 +8187,7 @@ var RichMarkdownRendererImpl = ({
|
|
|
8180
8187
|
className = "",
|
|
8181
8188
|
sectionIds,
|
|
8182
8189
|
onInternalLinkClick,
|
|
8183
|
-
brokenLinks =
|
|
8190
|
+
brokenLinks = _chunk7E4BC3AFcjs.NO_BROKEN_LINKS,
|
|
8184
8191
|
currentPath,
|
|
8185
8192
|
resolveSource = "openframe-docs",
|
|
8186
8193
|
resolveLinkEndpointUrl = "/api/docs/resolve-link",
|
|
@@ -9525,7 +9532,7 @@ function renderAdvancedPageContainer({
|
|
|
9525
9532
|
contentClassName,
|
|
9526
9533
|
showHeader = true
|
|
9527
9534
|
}, inScope = false) {
|
|
9528
|
-
const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE56LN23Hcjs.PageTitle, { className: PAGE_CONTAINER_TITLE_CLASS, children:
|
|
9535
|
+
const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE56LN23Hcjs.PageTitle, { className: PAGE_CONTAINER_TITLE_CLASS, children: _chunkFAUVDMH4cjs.accentSentenceMarks.call(void 0, title) }) : inScope && title === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageContainerTitleSkeleton, {}) : null;
|
|
9529
9536
|
const subtitleNode = subtitle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: PAGE_CONTAINER_SUBTITLE_CLASS, children: subtitle }) : inScope && subtitle === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageContainerSubtitleSkeleton, {}) : null;
|
|
9530
9537
|
const getActionsVariant = () => {
|
|
9531
9538
|
if (actionsVariant) return actionsVariant;
|
|
@@ -9952,7 +9959,7 @@ var BenefitCardGrid = ({ children, className = "", columns = 2 }) => {
|
|
|
9952
9959
|
|
|
9953
9960
|
|
|
9954
9961
|
function PlatformBrowseButton({ item }) {
|
|
9955
|
-
const linkProps =
|
|
9962
|
+
const linkProps = _chunk7E4BC3AFcjs.useNavLinkViaRuntime.call(void 0, { href: item.link, targetPlatform: item.targetPlatform });
|
|
9956
9963
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", linkProps, rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-4 w-4" }), children: [
|
|
9957
9964
|
"Browse ",
|
|
9958
9965
|
item.buttonText
|
|
@@ -10471,10 +10478,10 @@ var OSTypeBadge = ({
|
|
|
10471
10478
|
if (!osType) {
|
|
10472
10479
|
return labelOnly ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "text-ods-text-secondary", className), children: "Unknown" }) : null;
|
|
10473
10480
|
}
|
|
10474
|
-
const normalized =
|
|
10481
|
+
const normalized = _chunkCRVXQYUZcjs.normalizeOSType.call(void 0, osType);
|
|
10475
10482
|
if (!normalized && !labelOnly) return null;
|
|
10476
|
-
const label =
|
|
10477
|
-
const IconComponent =
|
|
10483
|
+
const label = _chunkCRVXQYUZcjs.getOSLabel.call(void 0, osType);
|
|
10484
|
+
const IconComponent = _chunkCRVXQYUZcjs.getOSIcon.call(void 0, osType);
|
|
10478
10485
|
if (iconOnly && IconComponent) {
|
|
10479
10486
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: _chunk7JWFMAQBcjs.cn.call(void 0, iconSize, "text-ods-text-secondary", className) });
|
|
10480
10487
|
}
|
|
@@ -10770,7 +10777,7 @@ function ComplianceLogo({
|
|
|
10770
10777
|
fallback = null,
|
|
10771
10778
|
className
|
|
10772
10779
|
}) {
|
|
10773
|
-
const standard =
|
|
10780
|
+
const standard = _chunkCRVXQYUZcjs.complianceStandardForName.call(void 0, ...names);
|
|
10774
10781
|
if (!standard) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: fallback });
|
|
10775
10782
|
const Official = standard.logo ? COMPLIANCE_LOGOS[standard.logo] : null;
|
|
10776
10783
|
return Official ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -12811,7 +12818,7 @@ function DataTableRowImpl({
|
|
|
12811
12818
|
const containerRef = _react.useRef.call(void 0, null);
|
|
12812
12819
|
const handleClick = _react.useCallback.call(void 0,
|
|
12813
12820
|
(e) => {
|
|
12814
|
-
if (!
|
|
12821
|
+
if (!_chunkCRVXQYUZcjs.isOwnClick.call(void 0, e.target, containerRef.current)) {
|
|
12815
12822
|
if (isLinkMode) e.preventDefault();
|
|
12816
12823
|
return;
|
|
12817
12824
|
}
|
|
@@ -12825,7 +12832,7 @@ function DataTableRowImpl({
|
|
|
12825
12832
|
if (!(target instanceof Element) || !_optionalChain([container, 'optionalAccess', _222 => _222.contains, 'call', _223 => _223(target)])) return;
|
|
12826
12833
|
const nestedLink = target.closest("a");
|
|
12827
12834
|
if (nestedLink && nestedLink !== container && container.contains(nestedLink)) return;
|
|
12828
|
-
if (!
|
|
12835
|
+
if (!_chunkCRVXQYUZcjs.isOwnClick.call(void 0, target, container) || target.closest(ROW_LINK_CONTROL_SELECTOR)) e.preventDefault();
|
|
12829
12836
|
}, []);
|
|
12830
12837
|
const containerClassName = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
12831
12838
|
DATA_TABLE_ROW_FRAME_CLASS,
|
|
@@ -12954,7 +12961,7 @@ function DataTableBody({
|
|
|
12954
12961
|
const skeletonRowClassName = typeof rowClassName === "string" ? rowClassName : void 0;
|
|
12955
12962
|
if (loading && loadingCells && hasRows) {
|
|
12956
12963
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12957
|
-
|
|
12964
|
+
_chunk7E4BC3AFcjs.LoadingFallback,
|
|
12958
12965
|
{
|
|
12959
12966
|
label: "Loading results",
|
|
12960
12967
|
status: loadingRegion && !inScope,
|
|
@@ -13302,7 +13309,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13302
13309
|
// child of the cell.
|
|
13303
13310
|
_optionalChain([meta, 'optionalAccess', _241 => _241.hint]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13304
13311
|
filterTrigger,
|
|
13305
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13312
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCRVXQYUZcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13306
13313
|
] }) : filterTrigger
|
|
13307
13314
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13308
13315
|
"div",
|
|
@@ -13327,7 +13334,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13327
13334
|
// centred on the row.
|
|
13328
13335
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13329
13336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13330
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13337
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCRVXQYUZcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13331
13338
|
] })
|
|
13332
13339
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13333
13340
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -13566,7 +13573,7 @@ function PhoneInput({
|
|
|
13566
13573
|
placeholder = "Phone Number (optional)",
|
|
13567
13574
|
onKeyDown
|
|
13568
13575
|
}) {
|
|
13569
|
-
const { priority, others } = _react.useMemo.call(void 0, () =>
|
|
13576
|
+
const { priority, others } = _react.useMemo.call(void 0, () => _chunkCRVXQYUZcjs.getCountryPhoneData.call(void 0, ), []);
|
|
13570
13577
|
const selectedCountry = _react.useMemo.call(void 0,
|
|
13571
13578
|
() => [...priority, ...others].find((c) => c.code === countryCode),
|
|
13572
13579
|
[countryCode, priority, others]
|
|
@@ -13581,7 +13588,7 @@ function PhoneInput({
|
|
|
13581
13588
|
_optionalChain([onValidationChange, 'optionalCall', _258 => _258(false)]);
|
|
13582
13589
|
return;
|
|
13583
13590
|
}
|
|
13584
|
-
const invalid = !
|
|
13591
|
+
const invalid = !_chunkCRVXQYUZcjs.validatePhoneNumber.call(void 0, phone, countryCode);
|
|
13585
13592
|
setIsInvalid(invalid);
|
|
13586
13593
|
_optionalChain([onValidationChange, 'optionalCall', _259 => _259(invalid)]);
|
|
13587
13594
|
},
|
|
@@ -14440,7 +14447,7 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14440
14447
|
),
|
|
14441
14448
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xsf)]", children: [
|
|
14442
14449
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14443
|
-
|
|
14450
|
+
_chunk7E4BC3AFcjs.TabSelector,
|
|
14444
14451
|
{
|
|
14445
14452
|
label: "Search engines",
|
|
14446
14453
|
value: choice,
|
|
@@ -14497,7 +14504,7 @@ function useMarkdownLinkCommand() {
|
|
|
14497
14504
|
buttonProps: { "aria-label": "Add or edit a link (ctrl + l)", title: "Add or edit a link (ctrl + l)" },
|
|
14498
14505
|
icon: command.icon,
|
|
14499
14506
|
execute: (state, api) => {
|
|
14500
|
-
const existing =
|
|
14507
|
+
const existing = _chunk7E4BC3AFcjs.findMarkdownLinkAt.call(void 0, state.text, state.selection.start, state.selection.end);
|
|
14501
14508
|
setPending(
|
|
14502
14509
|
existing ? {
|
|
14503
14510
|
api,
|
|
@@ -14528,7 +14535,7 @@ function useMarkdownLinkCommand() {
|
|
|
14528
14535
|
initial: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _316 => _316.initial]), () => ( EMPTY_LINK)),
|
|
14529
14536
|
editing: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _317 => _317.editing]), () => ( false)),
|
|
14530
14537
|
onSubmit: (link) => {
|
|
14531
|
-
if (pending) write(pending,
|
|
14538
|
+
if (pending) write(pending, _chunk7E4BC3AFcjs.formatMarkdownLink.call(void 0, link));
|
|
14532
14539
|
},
|
|
14533
14540
|
onRemove: () => {
|
|
14534
14541
|
if (pending) write(pending, pending.initial.text);
|
|
@@ -14694,7 +14701,7 @@ function MarkdownEditor({
|
|
|
14694
14701
|
setUploadProgress(`Uploading ${file.name}...`);
|
|
14695
14702
|
try {
|
|
14696
14703
|
const url = await onUploadFile(file);
|
|
14697
|
-
const isImage =
|
|
14704
|
+
const isImage = _chunkFAUVDMH4cjs.fileMediaType.call(void 0, file) === "image";
|
|
14698
14705
|
const markdown = isImage ? `` : `[${file.name}](${url})`;
|
|
14699
14706
|
insertTextAtCursor(markdown);
|
|
14700
14707
|
_optionalChain([onFileUploaded, 'optionalCall', _320 => _320(url, file.name)]);
|
|
@@ -14824,7 +14831,7 @@ function MarkdownEditor({
|
|
|
14824
14831
|
type: "file",
|
|
14825
14832
|
className: "hidden",
|
|
14826
14833
|
onChange: handleFileInputChange,
|
|
14827
|
-
accept: `${
|
|
14834
|
+
accept: `${_chunkFAUVDMH4cjs.IMAGE_FILE_ACCEPT},.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.zip,.txt`
|
|
14828
14835
|
}
|
|
14829
14836
|
),
|
|
14830
14837
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownEditorHeightContext.Provider, { value: height, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Suspense, { fallback: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownEditorFieldSkeleton, { height }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -15238,7 +15245,7 @@ function matchesAccept2(file, accept) {
|
|
|
15238
15245
|
return patterns.some((pattern) => {
|
|
15239
15246
|
if (pattern.startsWith(".")) return fileName.endsWith(pattern);
|
|
15240
15247
|
if (pattern.endsWith("/*"))
|
|
15241
|
-
return fileType.startsWith(pattern.slice(0, -1)) ||
|
|
15248
|
+
return fileType.startsWith(pattern.slice(0, -1)) || _chunkFAUVDMH4cjs.fileMediaType.call(void 0, file) === pattern.slice(0, -2);
|
|
15242
15249
|
return fileType === pattern;
|
|
15243
15250
|
});
|
|
15244
15251
|
}
|
|
@@ -15246,7 +15253,7 @@ function ImageUploader({
|
|
|
15246
15253
|
value,
|
|
15247
15254
|
onChange,
|
|
15248
15255
|
onRemove,
|
|
15249
|
-
accept =
|
|
15256
|
+
accept = _chunkFAUVDMH4cjs.IMAGE_FILE_ACCEPT,
|
|
15250
15257
|
maxSize = DEFAULT_MAX_SIZE,
|
|
15251
15258
|
label = "Cover Image",
|
|
15252
15259
|
description = "(Click Here or Drag and Drop)",
|
|
@@ -16407,7 +16414,7 @@ function TicketInfoSection({
|
|
|
16407
16414
|
expanded && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
16408
16415
|
createdAt && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-2 items-center gap-4 border-b border-ods-border bg-ods-bg px-4 py-3", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: createdAt, label: "Created" }) }),
|
|
16409
16416
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-4 border-b border-ods-border bg-ods-bg p-4", children: [
|
|
16410
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16417
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7E4BC3AFcjs.SimpleMarkdownRenderer, { content: description }),
|
|
16411
16418
|
attachments && attachments.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Attachments", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketAttachmentsList, { attachments }) }),
|
|
16412
16419
|
tags && tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Tags", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-wrap gap-2", children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.Tag, { label: tag, variant: "outline", className: "max-w-full" }, tag)) }) }),
|
|
16413
16420
|
(notes || onAddNote) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Notes", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16892,7 +16899,7 @@ function PhotoWall({
|
|
|
16892
16899
|
gap: COLUMN_GAP_PX
|
|
16893
16900
|
};
|
|
16894
16901
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rootRef, "aria-hidden": "true", className: _chunk7JWFMAQBcjs.cn.call(void 0, "grid overflow-hidden", className), style: gridStyle, children: columnsToDraw ? columnsToDraw.map((column, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16895
|
-
|
|
16902
|
+
_chunk7E4BC3AFcjs.MarqueeWall,
|
|
16896
16903
|
{
|
|
16897
16904
|
axis: "y",
|
|
16898
16905
|
reverse: index % 2 === 1,
|
|
@@ -17452,7 +17459,7 @@ var TRIAL_TERM_ICONS = {
|
|
|
17452
17459
|
};
|
|
17453
17460
|
var DEFAULT_TRIAL_TERMS = ["cancel", "length", "noContract"];
|
|
17454
17461
|
function trialBenefits(trialDays, terms = DEFAULT_TRIAL_TERMS) {
|
|
17455
|
-
const labels =
|
|
17462
|
+
const labels = _chunkCRVXQYUZcjs.trialLabels.call(void 0, trialDays);
|
|
17456
17463
|
return terms.flatMap((term) => {
|
|
17457
17464
|
const label = labels[term];
|
|
17458
17465
|
return label ? [{ icon: TRIAL_TERM_ICONS[term], label }] : [];
|
|
@@ -18486,7 +18493,7 @@ function CompleteAccountForm({
|
|
|
18486
18493
|
),
|
|
18487
18494
|
children: [
|
|
18488
18495
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18489
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18496
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkFAUVDMH4cjs.accentSentenceMarks.call(void 0, title) }),
|
|
18490
18497
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18491
18498
|
] }),
|
|
18492
18499
|
(ssoProvidersLoading || ssoProviders && ssoProviders.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -18637,7 +18644,7 @@ function CreateOrganizationForm({
|
|
|
18637
18644
|
),
|
|
18638
18645
|
children: [
|
|
18639
18646
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18640
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18647
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkFAUVDMH4cjs.accentSentenceMarks.call(void 0, title) }),
|
|
18641
18648
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle === null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: CREATE_ORGANIZATION_SUBTITLE_BAR_CLASS }) : subtitle })
|
|
18642
18649
|
] }),
|
|
18643
18650
|
email === void 0 ? null : emailReadOnly && emailReadOnlyLabel === null ? (
|
|
@@ -18784,7 +18791,7 @@ function InviteLinkInvalidModal({
|
|
|
18784
18791
|
),
|
|
18785
18792
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full max-w-[600px] flex-col gap-[var(--spacing-system-l)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-xl)]", children: [
|
|
18786
18793
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-mf)]", children: [
|
|
18787
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "flex-1 tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18794
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "flex-1 tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkFAUVDMH4cjs.accentSentenceMarks.call(void 0, title) }),
|
|
18788
18795
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18789
18796
|
_chunkAHBTZ7DNcjs.Button,
|
|
18790
18797
|
{
|
|
@@ -18868,7 +18875,7 @@ function LoginForm({
|
|
|
18868
18875
|
),
|
|
18869
18876
|
children: [
|
|
18870
18877
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18871
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18878
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkFAUVDMH4cjs.accentSentenceMarks.call(void 0, title) }),
|
|
18872
18879
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18873
18880
|
] }),
|
|
18874
18881
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -18995,7 +19002,7 @@ function NoAccountNotice({
|
|
|
18995
19002
|
),
|
|
18996
19003
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full max-w-[600px] flex-col gap-[var(--spacing-system-l)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-xl)]", children: [
|
|
18997
19004
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18998
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19005
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkFAUVDMH4cjs.accentSentenceMarks.call(void 0, title) }),
|
|
18999
19006
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: description })
|
|
19000
19007
|
] }),
|
|
19001
19008
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "outline", fullWidth: true, onClick: onBackToLogin, children: backLabel })
|
|
@@ -19044,7 +19051,7 @@ function OpenFrameSsoLoginForm({
|
|
|
19044
19051
|
),
|
|
19045
19052
|
children: [
|
|
19046
19053
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
19047
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19054
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkFAUVDMH4cjs.accentSentenceMarks.call(void 0, title) }),
|
|
19048
19055
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19049
19056
|
] }),
|
|
19050
19057
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19149,7 +19156,7 @@ function OpenFrameSsoSignUpForm({
|
|
|
19149
19156
|
),
|
|
19150
19157
|
children: [
|
|
19151
19158
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
19152
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19159
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkFAUVDMH4cjs.accentSentenceMarks.call(void 0, title) }),
|
|
19153
19160
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19154
19161
|
] }),
|
|
19155
19162
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19255,7 +19262,7 @@ function PasswordResetForm({
|
|
|
19255
19262
|
),
|
|
19256
19263
|
children: [
|
|
19257
19264
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19258
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19265
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkFAUVDMH4cjs.accentSentenceMarks.call(void 0, title) }),
|
|
19259
19266
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19260
19267
|
] }),
|
|
19261
19268
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19376,7 +19383,7 @@ function SsoJoinForm({
|
|
|
19376
19383
|
),
|
|
19377
19384
|
children: [
|
|
19378
19385
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19379
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19386
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkFAUVDMH4cjs.accentSentenceMarks.call(void 0, title) }),
|
|
19380
19387
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19381
19388
|
] }),
|
|
19382
19389
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-s)] rounded-md border border-ods-border bg-ods-bg p-[var(--spacing-system-m)]", children: [
|
|
@@ -21231,15 +21238,15 @@ function useLoading() {
|
|
|
21231
21238
|
|
|
21232
21239
|
|
|
21233
21240
|
function isAlreadyThere(file, existing) {
|
|
21234
|
-
const key =
|
|
21241
|
+
const key = _chunkFAUVDMH4cjs.mediaNameKey.call(void 0, file.name);
|
|
21235
21242
|
if (!key) return false;
|
|
21236
21243
|
return existing.some(
|
|
21237
|
-
(item) => (item.title ?
|
|
21244
|
+
(item) => (item.title ? _chunkFAUVDMH4cjs.mediaNameKey.call(void 0, item.title) === key : false) || (item.media_url ? _chunkFAUVDMH4cjs.mediaNameKey.call(void 0, item.media_url) === key : false)
|
|
21238
21245
|
);
|
|
21239
21246
|
}
|
|
21240
21247
|
var isFileDrag = (event) => Array.from(event.dataTransfer.types).includes("Files");
|
|
21241
|
-
var isVideoItem = (item) =>
|
|
21242
|
-
var MEDIA_KIND_ACCEPT = { image:
|
|
21248
|
+
var isVideoItem = (item) => _chunkFAUVDMH4cjs.isVideoMedia.call(void 0, item) || item.media_type === "demo";
|
|
21249
|
+
var MEDIA_KIND_ACCEPT = { image: _chunkFAUVDMH4cjs.IMAGE_FILE_ACCEPT, video: "video/*", both: _chunkFAUVDMH4cjs.MEDIA_FILE_ACCEPT };
|
|
21243
21250
|
var MEDIA_KIND_COPY = {
|
|
21244
21251
|
image: { noun: "pictures", refusal: "Not a picture" },
|
|
21245
21252
|
video: { noun: "videos", refusal: "Not a video" },
|
|
@@ -21263,12 +21270,12 @@ function useMediaIntake({ existing, onUpload, onUploaded, kinds = "both" }) {
|
|
|
21263
21270
|
const seen = /* @__PURE__ */ new Set();
|
|
21264
21271
|
const accepted = [];
|
|
21265
21272
|
for (const file of files) {
|
|
21266
|
-
const mediaType =
|
|
21273
|
+
const mediaType = _chunkFAUVDMH4cjs.fileMediaType.call(void 0, file);
|
|
21267
21274
|
if (!mediaType || kinds !== "both" && mediaType !== kinds) {
|
|
21268
21275
|
unsupported.push(file.name);
|
|
21269
21276
|
continue;
|
|
21270
21277
|
}
|
|
21271
|
-
const contentKey = await
|
|
21278
|
+
const contentKey = await _chunkFAUVDMH4cjs.fileContentKey.call(void 0, file).catch(() => `${file.name}:${file.size}`);
|
|
21272
21279
|
if (seen.has(contentKey) || isAlreadyThere(file, existingRef.current)) {
|
|
21273
21280
|
duplicates.push(file.name);
|
|
21274
21281
|
continue;
|
|
@@ -21883,7 +21890,7 @@ var MODEL_TOKEN_RATES_COPY = {
|
|
|
21883
21890
|
empty: "No token rates are in effect right now."
|
|
21884
21891
|
};
|
|
21885
21892
|
function providerMark(providerType, stated, className) {
|
|
21886
|
-
const Mark = _chunk5RGGUQ4Ycjs.findIcon.call(void 0,
|
|
21893
|
+
const Mark = _chunk5RGGUQ4Ycjs.findIcon.call(void 0, _chunkCRVXQYUZcjs.aiProvider.call(void 0, providerType, { icon: stated }).icon);
|
|
21887
21894
|
return Mark ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Mark, { className }) : void 0;
|
|
21888
21895
|
}
|
|
21889
21896
|
var PAD_X = "px-[var(--spacing-system-s)]";
|
|
@@ -21901,7 +21908,7 @@ var UNIT_LINE_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
|
21901
21908
|
var TABS_ROW_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0, "shrink-0 border-b border-ods-border py-[var(--spacing-system-xs)]", PAD_X);
|
|
21902
21909
|
var NUMBER_CELL = "w-16 shrink-0 whitespace-nowrap text-right tabular-nums";
|
|
21903
21910
|
function useProviderGroup(rates) {
|
|
21904
|
-
const groups =
|
|
21911
|
+
const groups = _chunkCRVXQYUZcjs.groupTokenRatesByProvider.call(void 0, rates);
|
|
21905
21912
|
const [picked, setPicked] = _react.useState.call(void 0, null);
|
|
21906
21913
|
return { groups, group: _nullishCoalesce(groups.find((candidate) => candidate.providerType === picked), () => ( groups[0])), setPicked };
|
|
21907
21914
|
}
|
|
@@ -21912,7 +21919,7 @@ function ProviderTabs({
|
|
|
21912
21919
|
className
|
|
21913
21920
|
}) {
|
|
21914
21921
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21915
|
-
|
|
21922
|
+
_chunk7E4BC3AFcjs.TabSelector,
|
|
21916
21923
|
{
|
|
21917
21924
|
variant: "secondary",
|
|
21918
21925
|
scrollable: true,
|
|
@@ -21920,7 +21927,7 @@ function ProviderTabs({
|
|
|
21920
21927
|
onValueChange,
|
|
21921
21928
|
items: groups.map((candidate) => ({
|
|
21922
21929
|
id: candidate.providerType,
|
|
21923
|
-
label:
|
|
21930
|
+
label: _chunkCRVXQYUZcjs.tokenRateProviderLabel.call(void 0, candidate.providerType, _optionalChain([candidate, 'access', _459 => _459.rates, 'access', _460 => _460[0], 'optionalAccess', _461 => _461.providerLabel])),
|
|
21924
21931
|
icon: providerMark(candidate.providerType, _optionalChain([candidate, 'access', _462 => _462.rates, 'access', _463 => _463[0], 'optionalAccess', _464 => _464.providerIcon]), "size-full")
|
|
21925
21932
|
})),
|
|
21926
21933
|
className
|
|
@@ -21997,8 +22004,8 @@ function ModelTokenRatesTable({ rates }) {
|
|
|
21997
22004
|
] }),
|
|
21998
22005
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { role: "rowgroup", className: "min-h-0 flex-1 overflow-y-auto", children: group.rates.map((rate) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "data-loading-item": true, role: "row", className: BODY_ROW_CLASS, children: [
|
|
21999
22006
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "rowheader", className: "min-w-0 flex-1 truncate", children: rate.displayName || rate.modelName }),
|
|
22000
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
22001
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
22007
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkCRVXQYUZcjs.formatTokenRate.call(void 0, rate.inputTokenRate) }),
|
|
22008
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkCRVXQYUZcjs.formatTokenRate.call(void 0, rate.outputTokenRate) })
|
|
22002
22009
|
] }, rate.modelName)) })
|
|
22003
22010
|
] }),
|
|
22004
22011
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: UNIT_LINE_CLASS, children: MODEL_TOKEN_RATES_COPY.unit })
|
|
@@ -22045,7 +22052,7 @@ function modelOption(rate) {
|
|
|
22045
22052
|
return {
|
|
22046
22053
|
label: rate.displayName || rate.modelName,
|
|
22047
22054
|
value: rate.modelName,
|
|
22048
|
-
description:
|
|
22055
|
+
description: _chunkCRVXQYUZcjs.tokenRateProviderLabel.call(void 0, rate.providerType, rate.providerLabel),
|
|
22049
22056
|
icon: providerMark(rate.providerType, rate.providerIcon, "size-full text-ods-text-secondary")
|
|
22050
22057
|
};
|
|
22051
22058
|
}
|
|
@@ -22100,8 +22107,8 @@ function ModelTokenExchange({
|
|
|
22100
22107
|
const [chosen, setChosen] = _react.useState.call(void 0, null);
|
|
22101
22108
|
const balance = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(chosen, () => ( defaultAmount)), () => ( _optionalChain([tokenPrice, 'optionalAccess', _465 => _465.tokens]))), () => ( MODEL_TOKEN_EXCHANGE_BALANCE));
|
|
22102
22109
|
const max = Math.max(amountRange.max, balance, ...presets.map((preset) => preset.tokens));
|
|
22103
|
-
const tokens =
|
|
22104
|
-
const cost =
|
|
22110
|
+
const tokens = _chunkCRVXQYUZcjs.formatTokenAmount.call(void 0, balance);
|
|
22111
|
+
const cost = _chunkCRVXQYUZcjs.tokenCost.call(void 0, balance, tokenPrice);
|
|
22105
22112
|
const balancePrice = cost === null ? null : _chunk6UKH22NQcjs.formatPrice.call(void 0, cost);
|
|
22106
22113
|
const model = rate ? rate.displayName || rate.modelName : "";
|
|
22107
22114
|
const options = models.map(modelOption);
|
|
@@ -22144,7 +22151,7 @@ function ModelTokenExchange({
|
|
|
22144
22151
|
variant: preset.tokens === balance ? "accent" : "outline",
|
|
22145
22152
|
size: "small",
|
|
22146
22153
|
onClick: () => setChosen(preset.tokens),
|
|
22147
|
-
children: copy.buy.preset(
|
|
22154
|
+
children: copy.buy.preset(_chunkCRVXQYUZcjs.formatTokenAmount.call(void 0, preset.tokens), preset.label)
|
|
22148
22155
|
},
|
|
22149
22156
|
preset.label
|
|
22150
22157
|
)) })
|
|
@@ -22161,7 +22168,7 @@ function ModelTokenExchange({
|
|
|
22161
22168
|
const stated = _nullishCoalesce(models.find((option) => option.providerType === providerType), () => ( (_optionalChain([rate, 'optionalAccess', _466 => _466.providerType]) === providerType ? rate : null)));
|
|
22162
22169
|
return {
|
|
22163
22170
|
id: providerType,
|
|
22164
|
-
name:
|
|
22171
|
+
name: _chunkCRVXQYUZcjs.tokenRateProviderLabel.call(void 0, providerType, _optionalChain([stated, 'optionalAccess', _467 => _467.providerLabel])),
|
|
22165
22172
|
icon: providerMark(providerType, _optionalChain([stated, 'optionalAccess', _468 => _468.providerIcon]), "size-8 text-ods-text-secondary")
|
|
22166
22173
|
};
|
|
22167
22174
|
}),
|
|
@@ -22200,7 +22207,7 @@ function ModelTokenExchange({
|
|
|
22200
22207
|
{
|
|
22201
22208
|
size: "plain",
|
|
22202
22209
|
loading,
|
|
22203
|
-
figure:
|
|
22210
|
+
figure: _chunkCRVXQYUZcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _473 => _473.inputTokenRate])),
|
|
22204
22211
|
words: copy.charge.input
|
|
22205
22212
|
}
|
|
22206
22213
|
),
|
|
@@ -22209,7 +22216,7 @@ function ModelTokenExchange({
|
|
|
22209
22216
|
{
|
|
22210
22217
|
size: "plain",
|
|
22211
22218
|
loading,
|
|
22212
|
-
figure:
|
|
22219
|
+
figure: _chunkCRVXQYUZcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _474 => _474.outputTokenRate])),
|
|
22213
22220
|
words: copy.charge.output
|
|
22214
22221
|
}
|
|
22215
22222
|
)
|
|
@@ -22221,9 +22228,9 @@ function ModelTokenExchange({
|
|
|
22221
22228
|
className: "mt-auto flex flex-col rounded-md border border-ods-accent bg-ods-bg p-[var(--spacing-system-mf)]",
|
|
22222
22229
|
children: [
|
|
22223
22230
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[2lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-full max-w-xs" }) : copy.charge.so(_nullishCoalesce(balancePrice, () => ( copy.buy.tokens(tokens))), model) }),
|
|
22224
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] whitespace-nowrap tabular-nums text-ods-text-primary text-h1", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }) :
|
|
22231
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] whitespace-nowrap tabular-nums text-ods-text-primary text-h1", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }) : _chunkCRVXQYUZcjs.formatTokenAmount.call(void 0, _chunkCRVXQYUZcjs.tokensForBalance.call(void 0, balance, rate.inputTokenRate)) }),
|
|
22225
22232
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-primary text-h3", children: copy.charge.read }),
|
|
22226
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48" }) : copy.charge.orWritten(
|
|
22233
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48" }) : copy.charge.orWritten(_chunkCRVXQYUZcjs.formatTokenAmount.call(void 0, _chunkCRVXQYUZcjs.tokensForBalance.call(void 0, balance, rate.outputTokenRate))) })
|
|
22227
22234
|
]
|
|
22228
22235
|
}
|
|
22229
22236
|
)
|
|
@@ -22770,14 +22777,14 @@ var ConfidenceBadge = ({
|
|
|
22770
22777
|
size = "sm",
|
|
22771
22778
|
className
|
|
22772
22779
|
}) => {
|
|
22773
|
-
const level =
|
|
22780
|
+
const level = _chunkCRVXQYUZcjs.getConfidenceLevel.call(void 0, confidence);
|
|
22774
22781
|
if (level === "none") {
|
|
22775
22782
|
return null;
|
|
22776
22783
|
}
|
|
22777
|
-
const label =
|
|
22778
|
-
const borderClass =
|
|
22779
|
-
const textClass =
|
|
22780
|
-
const bgClass =
|
|
22784
|
+
const label = _chunkCRVXQYUZcjs.getConfidenceLabel.call(void 0, confidence);
|
|
22785
|
+
const borderClass = _chunkCRVXQYUZcjs.getConfidenceBorderClass.call(void 0, confidence);
|
|
22786
|
+
const textClass = _chunkCRVXQYUZcjs.getConfidenceTextClass.call(void 0, confidence);
|
|
22787
|
+
const bgClass = _chunkCRVXQYUZcjs.getConfidenceBgClass.call(void 0, confidence);
|
|
22781
22788
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
22782
22789
|
"span",
|
|
22783
22790
|
{
|
|
@@ -22828,9 +22835,9 @@ function SEOEditorPreview({
|
|
|
22828
22835
|
const [isUploading, setIsUploading] = _react.useState.call(void 0, false);
|
|
22829
22836
|
const [fileInputRef, setFileInputRef] = _react.useState.call(void 0, null);
|
|
22830
22837
|
const seoTitleLength = (seoTitle || "").length;
|
|
22831
|
-
const seoTitleTooLong = seoTitleLength >
|
|
22838
|
+
const seoTitleTooLong = seoTitleLength > _chunkCRVXQYUZcjs.SEO_TITLE_MAX_LENGTH;
|
|
22832
22839
|
const seoDescriptionLength = (seoDescription || "").length;
|
|
22833
|
-
const seoDescriptionTooLong = seoDescriptionLength >
|
|
22840
|
+
const seoDescriptionTooLong = seoDescriptionLength > _chunkCRVXQYUZcjs.SEO_DESCRIPTION_MAX_LENGTH;
|
|
22834
22841
|
const displayTitle = seoTitle.trim() || title || "Untitled";
|
|
22835
22842
|
const displayDescription = seoDescription.trim() || summary || "No description";
|
|
22836
22843
|
const hasOgImage = ogImageUrl.trim();
|
|
@@ -22855,10 +22862,10 @@ function SEOEditorPreview({
|
|
|
22855
22862
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
22856
22863
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
22857
22864
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22858
|
-
|
|
22865
|
+
_chunkCRVXQYUZcjs.Field,
|
|
22859
22866
|
{
|
|
22860
22867
|
label: "SEO Title",
|
|
22861
|
-
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${
|
|
22868
|
+
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${_chunkCRVXQYUZcjs.SEO_TITLE_MAX_LENGTH})` : null,
|
|
22862
22869
|
labelExtras: aiConfidenceSeoTitle !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
22863
22870
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
22864
22871
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ConfidenceBadge, { confidence: aiConfidenceSeoTitle, showLabel: true, showPercentage: true, size: "sm" })
|
|
@@ -22873,7 +22880,7 @@ function SEOEditorPreview({
|
|
|
22873
22880
|
children: [
|
|
22874
22881
|
seoTitleLength,
|
|
22875
22882
|
"/",
|
|
22876
|
-
|
|
22883
|
+
_chunkCRVXQYUZcjs.SEO_TITLE_MAX_LENGTH
|
|
22877
22884
|
]
|
|
22878
22885
|
}
|
|
22879
22886
|
),
|
|
@@ -22884,7 +22891,7 @@ function SEOEditorPreview({
|
|
|
22884
22891
|
value: seoTitle || "",
|
|
22885
22892
|
onChange: (e) => onSeoTitleChange(e.target.value),
|
|
22886
22893
|
disabled,
|
|
22887
|
-
maxLength:
|
|
22894
|
+
maxLength: _chunkCRVXQYUZcjs.SEO_TITLE_MAX_LENGTH,
|
|
22888
22895
|
invalid: seoTitleTooLong,
|
|
22889
22896
|
placeholder: "Enter SEO meta title...",
|
|
22890
22897
|
className: "border-ods-border bg-ods-bg text-ods-text-primary"
|
|
@@ -22895,7 +22902,7 @@ function SEOEditorPreview({
|
|
|
22895
22902
|
!seoTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-accent text-h6", children: "Auto-populated from title" })
|
|
22896
22903
|
] }),
|
|
22897
22904
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22898
|
-
|
|
22905
|
+
_chunkCRVXQYUZcjs.Field,
|
|
22899
22906
|
{
|
|
22900
22907
|
label: "SEO Keywords",
|
|
22901
22908
|
labelExtras: aiConfidenceSeoKeywords !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -22927,10 +22934,10 @@ function SEOEditorPreview({
|
|
|
22927
22934
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
22928
22935
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
22929
22936
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22930
|
-
|
|
22937
|
+
_chunkCRVXQYUZcjs.Field,
|
|
22931
22938
|
{
|
|
22932
22939
|
label: "SEO Description",
|
|
22933
|
-
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${
|
|
22940
|
+
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${_chunkCRVXQYUZcjs.SEO_DESCRIPTION_MAX_LENGTH})` : null,
|
|
22934
22941
|
labelExtras: aiConfidenceSeoDescription !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
22935
22942
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
22936
22943
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22953,7 +22960,7 @@ function SEOEditorPreview({
|
|
|
22953
22960
|
children: [
|
|
22954
22961
|
seoDescriptionLength,
|
|
22955
22962
|
"/",
|
|
22956
|
-
|
|
22963
|
+
_chunkCRVXQYUZcjs.SEO_DESCRIPTION_MAX_LENGTH
|
|
22957
22964
|
]
|
|
22958
22965
|
}
|
|
22959
22966
|
),
|
|
@@ -22964,7 +22971,7 @@ function SEOEditorPreview({
|
|
|
22964
22971
|
value: seoDescription || "",
|
|
22965
22972
|
onChange: (e) => onSeoDescriptionChange(e.target.value),
|
|
22966
22973
|
disabled,
|
|
22967
|
-
maxLength:
|
|
22974
|
+
maxLength: _chunkCRVXQYUZcjs.SEO_DESCRIPTION_MAX_LENGTH,
|
|
22968
22975
|
invalid: seoDescriptionTooLong,
|
|
22969
22976
|
placeholder: "Enter SEO meta description...",
|
|
22970
22977
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "resize-none border-ods-border bg-ods-bg text-ods-text-primary", SEO_MEDIA_BOX_HEIGHT)
|
|
@@ -23033,7 +23040,7 @@ function SEOEditorPreview({
|
|
|
23033
23040
|
{
|
|
23034
23041
|
ref: setFileInputRef,
|
|
23035
23042
|
type: "file",
|
|
23036
|
-
accept:
|
|
23043
|
+
accept: _chunkFAUVDMH4cjs.IMAGE_FILE_ACCEPT,
|
|
23037
23044
|
onChange: handleImageUpload,
|
|
23038
23045
|
className: "hidden",
|
|
23039
23046
|
disabled: disabled || isUploading
|
|
@@ -23117,7 +23124,7 @@ function socialIcon(platform) {
|
|
|
23117
23124
|
return _nullishCoalesce(_chunk5RGGUQ4Ycjs.iconOf.call(void 0, SOCIAL_ICONS[platform]), () => ( void 0));
|
|
23118
23125
|
}
|
|
23119
23126
|
function renderSocialIcon(platform) {
|
|
23120
|
-
const key = _nullishCoalesce(
|
|
23127
|
+
const key = _nullishCoalesce(_chunkCRVXQYUZcjs.normalizeSocialPlatform.call(void 0, platform), () => ( "website"));
|
|
23121
23128
|
const icon = _nullishCoalesce(socialIcon(key), () => ( socialIcon("website")));
|
|
23122
23129
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5" }) : null;
|
|
23123
23130
|
}
|
|
@@ -23208,7 +23215,7 @@ function SocialLinksManager({
|
|
|
23208
23215
|
};
|
|
23209
23216
|
const getIcon = (link, platform) => {
|
|
23210
23217
|
const iconKey = _optionalChain([platform, 'optionalAccess', _484 => _484.icon_name]) || link.platform;
|
|
23211
|
-
const key =
|
|
23218
|
+
const key = _chunkCRVXQYUZcjs.normalizeSocialPlatform.call(void 0, iconKey);
|
|
23212
23219
|
if (!key) return null;
|
|
23213
23220
|
const icon = socialIcon(key);
|
|
23214
23221
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5 text-ods-text-secondary" }) : null;
|
|
@@ -23676,7 +23683,7 @@ function VideoBitesDisplay({
|
|
|
23676
23683
|
filterPublished = true,
|
|
23677
23684
|
showTitle = true
|
|
23678
23685
|
}) {
|
|
23679
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23686
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7E4BC3AFcjs.VideoBitesStrip, { bites, title, filterPublished, showTitle });
|
|
23680
23687
|
}
|
|
23681
23688
|
|
|
23682
23689
|
// src/components/features/walkthrough-video.tsx
|
|
@@ -23706,7 +23713,7 @@ function WalkthroughVideo({
|
|
|
23706
23713
|
onOpenChange,
|
|
23707
23714
|
defaultOpen,
|
|
23708
23715
|
defaultOpenPaused,
|
|
23709
|
-
deepLinkParam =
|
|
23716
|
+
deepLinkParam = _chunkCRVXQYUZcjs.WALKTHROUGH_OPEN_QUERY_PARAM,
|
|
23710
23717
|
autoPlayCard = false,
|
|
23711
23718
|
label = "Play Demo Video",
|
|
23712
23719
|
placement,
|
|
@@ -23723,7 +23730,7 @@ function WalkthroughVideo({
|
|
|
23723
23730
|
const inline = placement === "inline";
|
|
23724
23731
|
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
23725
23732
|
const dismissEnabled = dismissal !== false;
|
|
23726
|
-
const storageKey = dismissEnabled && dismissal.storageKey ||
|
|
23733
|
+
const storageKey = dismissEnabled && dismissal.storageKey || _chunkCRVXQYUZcjs.WALKTHROUGH_VIDEO_DISMISS_KEY;
|
|
23727
23734
|
const dismissalId = _optionalChain([video, 'optionalAccess', _490 => _490.id]) != null ? String(video.id) : "dismissed";
|
|
23728
23735
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
23729
23736
|
const [dismissed, setDismissed] = _react.useState.call(void 0, false);
|
|
@@ -23735,7 +23742,7 @@ function WalkthroughVideo({
|
|
|
23735
23742
|
let delayElapsed = false;
|
|
23736
23743
|
let interacted = inline;
|
|
23737
23744
|
const reveal = () => {
|
|
23738
|
-
if (dismissEnabled &&
|
|
23745
|
+
if (dismissEnabled && _chunkCRVXQYUZcjs.isWalkthroughDismissed.call(void 0, storageKey, dismissalId)) {
|
|
23739
23746
|
setDismissed(true);
|
|
23740
23747
|
return;
|
|
23741
23748
|
}
|
|
@@ -23772,7 +23779,7 @@ function WalkthroughVideo({
|
|
|
23772
23779
|
if (idleHandle !== null && typeof cic === "function") cic(idleHandle);
|
|
23773
23780
|
};
|
|
23774
23781
|
}, [appearDelayMs, dismissEnabled, storageKey, dismissalId, hasVideo, videoId, inline]);
|
|
23775
|
-
const hydrated =
|
|
23782
|
+
const hydrated = _chunk7E4BC3AFcjs.useIsHydrated.call(void 0, );
|
|
23776
23783
|
const previewSuppressed = _react.useMemo.call(void 0, () => {
|
|
23777
23784
|
if (!hydrated) return false;
|
|
23778
23785
|
try {
|
|
@@ -24022,7 +24029,7 @@ function WalkthroughVideo({
|
|
|
24022
24029
|
(e) => {
|
|
24023
24030
|
e.stopPropagation();
|
|
24024
24031
|
pausePreviewNow();
|
|
24025
|
-
if (dismissEnabled)
|
|
24032
|
+
if (dismissEnabled) _chunkCRVXQYUZcjs.dismissWalkthrough.call(void 0, storageKey, dismissalId);
|
|
24026
24033
|
setDismissed(true);
|
|
24027
24034
|
},
|
|
24028
24035
|
[dismissEnabled, storageKey, dismissalId, pausePreviewNow]
|
|
@@ -24197,7 +24204,7 @@ function WalkthroughVideo({
|
|
|
24197
24204
|
`card-${embedUrlKey}`
|
|
24198
24205
|
) }),
|
|
24199
24206
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24200
|
-
|
|
24207
|
+
_chunk7E4BC3AFcjs.CardHitLayer,
|
|
24201
24208
|
{
|
|
24202
24209
|
label: video.title ? `${label}: ${video.title}` : label,
|
|
24203
24210
|
onPointerDown: pausePreviewNow,
|
|
@@ -24369,7 +24376,7 @@ function useWalkthroughVideo(opts) {
|
|
|
24369
24376
|
const { endpoint, initialData, enabled: enabledGiven = true, transformCaptionsUrl } = opts;
|
|
24370
24377
|
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
24371
24378
|
const enabled = enabledGiven && !inScope;
|
|
24372
|
-
const captions =
|
|
24379
|
+
const captions = _chunk7E4BC3AFcjs.useCaptions.call(void 0, );
|
|
24373
24380
|
const query = _reactquery.useQuery.call(void 0, {
|
|
24374
24381
|
queryKey: ["walkthrough-video", endpoint],
|
|
24375
24382
|
enabled,
|
|
@@ -25120,7 +25127,7 @@ function HighlightConfigSection({
|
|
|
25120
25127
|
disabled = false,
|
|
25121
25128
|
className = ""
|
|
25122
25129
|
}) {
|
|
25123
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `space-y-3 rounded-lg border border-ods-border bg-ods-card p-4 ${className}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25130
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `space-y-3 rounded-lg border border-ods-border bg-ods-card p-4 ${className}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCRVXQYUZcjs.Field, { label: "Target Duration", children: (f) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25124
25131
|
_chunkE56LN23Hcjs.Select,
|
|
25125
25132
|
{
|
|
25126
25133
|
value: targetDurationSeconds.toString(),
|
|
@@ -25221,7 +25228,7 @@ var AIStatusIndicator = ({
|
|
|
25221
25228
|
}) => {
|
|
25222
25229
|
const config = statusConfig[status];
|
|
25223
25230
|
const displayText = message || config.label;
|
|
25224
|
-
const confidenceLabel = showConfidence && confidence !== void 0 ? `${
|
|
25231
|
+
const confidenceLabel = showConfidence && confidence !== void 0 ? `${_chunkCRVXQYUZcjs.getConfidenceLabel.call(void 0, confidence)} (${confidence}%)` : null;
|
|
25225
25232
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "inline-flex items-center gap-2 rounded-lg px-3 py-1.5", config.bgColor, className), children: [
|
|
25226
25233
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25227
25234
|
_chunkUNFCRSYIcjs.SparklesIcon,
|
|
@@ -25229,7 +25236,7 @@ var AIStatusIndicator = ({
|
|
|
25229
25236
|
size: 16,
|
|
25230
25237
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
25231
25238
|
status === "loading" && _chunk4WIJI4AKcjs.LIVE_PULSE_CLASS,
|
|
25232
|
-
confidence !== void 0 && status === "success" ?
|
|
25239
|
+
confidence !== void 0 && status === "success" ? _chunkCRVXQYUZcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25233
25240
|
)
|
|
25234
25241
|
}
|
|
25235
25242
|
),
|
|
@@ -25238,7 +25245,7 @@ var AIStatusIndicator = ({
|
|
|
25238
25245
|
{
|
|
25239
25246
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
25240
25247
|
"text-h6",
|
|
25241
|
-
confidence !== void 0 && status === "success" ?
|
|
25248
|
+
confidence !== void 0 && status === "success" ? _chunkCRVXQYUZcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25242
25249
|
),
|
|
25243
25250
|
children: displayText
|
|
25244
25251
|
}
|
|
@@ -25248,8 +25255,8 @@ var AIStatusIndicator = ({
|
|
|
25248
25255
|
{
|
|
25249
25256
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
25250
25257
|
"rounded-full border px-2 py-0.5 text-h6",
|
|
25251
|
-
|
|
25252
|
-
|
|
25258
|
+
_chunkCRVXQYUZcjs.getConfidenceBorderClass.call(void 0, confidence),
|
|
25259
|
+
_chunkCRVXQYUZcjs.getConfidenceTextClass.call(void 0, confidence)
|
|
25253
25260
|
),
|
|
25254
25261
|
children: confidenceLabel
|
|
25255
25262
|
}
|
|
@@ -26129,7 +26136,7 @@ function OpenPolicyButton({ href, name }) {
|
|
|
26129
26136
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26130
26137
|
_chunkAHBTZ7DNcjs.Button,
|
|
26131
26138
|
{
|
|
26132
|
-
onClick: loading ? void 0 :
|
|
26139
|
+
onClick: loading ? void 0 : _chunkCRVXQYUZcjs.openInNewTab.call(void 0, href),
|
|
26133
26140
|
disabled: loading,
|
|
26134
26141
|
variant: "outline",
|
|
26135
26142
|
size: "icon",
|
|
@@ -26503,7 +26510,7 @@ function OpenTenantButton({ href, name }) {
|
|
|
26503
26510
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26504
26511
|
_chunkAHBTZ7DNcjs.Button,
|
|
26505
26512
|
{
|
|
26506
|
-
onClick: loading ? void 0 :
|
|
26513
|
+
onClick: loading ? void 0 : _chunkCRVXQYUZcjs.openInNewTab.call(void 0, href),
|
|
26507
26514
|
disabled: loading,
|
|
26508
26515
|
variant: "outline",
|
|
26509
26516
|
size: "icon",
|
|
@@ -26638,7 +26645,7 @@ function WaitlistForm({
|
|
|
26638
26645
|
const { toast } = _chunkBWR5ACK3cjs.useToast.call(void 0, );
|
|
26639
26646
|
const { honeypotInputProps, getSignals, resetSignals } = _chunkBWR5ACK3cjs.useHumanitySignals.call(void 0, );
|
|
26640
26647
|
const [smsConsent, setSmsConsent] = _react.useState.call(void 0, false);
|
|
26641
|
-
const isClient =
|
|
26648
|
+
const isClient = _chunk7E4BC3AFcjs.useIsHydrated.call(void 0, );
|
|
26642
26649
|
const [isPhoneInvalid, setIsPhoneInvalid] = _react.useState.call(void 0, false);
|
|
26643
26650
|
const [showConsentError, setShowConsentError] = _react.useState.call(void 0, false);
|
|
26644
26651
|
const rescue = _chunkBWR5ACK3cjs.useFormRescue.call(void 0, {
|
|
@@ -26653,7 +26660,7 @@ function WaitlistForm({
|
|
|
26653
26660
|
_react.useEffect.call(void 0, () => {
|
|
26654
26661
|
rescue.track({ email, phone }, null);
|
|
26655
26662
|
}, [email, phone, rescue]);
|
|
26656
|
-
const isMailDomainGeneric =
|
|
26663
|
+
const isMailDomainGeneric = _chunkCRVXQYUZcjs.hasGenericEmailDomain.call(void 0, email);
|
|
26657
26664
|
const [syncedDefaultEmail, setSyncedDefaultEmail] = _react.useState.call(void 0, defaultEmail);
|
|
26658
26665
|
if (syncedDefaultEmail !== defaultEmail) {
|
|
26659
26666
|
setSyncedDefaultEmail(defaultEmail);
|
|
@@ -26687,7 +26694,7 @@ function WaitlistForm({
|
|
|
26687
26694
|
setShowConsentError(true);
|
|
26688
26695
|
return;
|
|
26689
26696
|
}
|
|
26690
|
-
const finalPhone = phone ?
|
|
26697
|
+
const finalPhone = phone ? _chunkCRVXQYUZcjs.formatPhoneE164.call(void 0, phone, countryCode) : void 0;
|
|
26691
26698
|
try {
|
|
26692
26699
|
await onRegister(email, finalPhone, getSignals(), rescue.submitFields());
|
|
26693
26700
|
rescue.complete();
|
|
@@ -28842,7 +28849,7 @@ function getDeviceStatusConfig(status) {
|
|
|
28842
28849
|
}
|
|
28843
28850
|
}
|
|
28844
28851
|
function getDeviceOperatingSystem(osType) {
|
|
28845
|
-
return
|
|
28852
|
+
return _chunkCRVXQYUZcjs.getOSPlatformId.call(void 0, osType);
|
|
28846
28853
|
}
|
|
28847
28854
|
|
|
28848
28855
|
// src/components/features/devices/device-statuses.ts
|
|
@@ -30417,7 +30424,7 @@ function DevicesPanelView({
|
|
|
30417
30424
|
actionsVariant: "icon-buttons",
|
|
30418
30425
|
className,
|
|
30419
30426
|
selector: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30420
|
-
|
|
30427
|
+
_chunk7E4BC3AFcjs.TabSelector,
|
|
30421
30428
|
{
|
|
30422
30429
|
value: viewMode,
|
|
30423
30430
|
onValueChange: (value) => _optionalChain([onViewModeChange, 'optionalCall', _671 => _671(value)]),
|
|
@@ -30952,11 +30959,11 @@ var ToolBadge = ({
|
|
|
30952
30959
|
iconClassName
|
|
30953
30960
|
}) => {
|
|
30954
30961
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
30955
|
-
const text = _nullishCoalesce(label, () => ( (toolType ?
|
|
30962
|
+
const text = _nullishCoalesce(label, () => ( (toolType ? _chunkCRVXQYUZcjs.getToolLabel.call(void 0, toolType) : "")));
|
|
30956
30963
|
const mark = _nullishCoalesce(icon, () => ( (toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHATRCNXJcjs.ToolIcon, { toolType, className: iconClassName, size: 16 }) : null)));
|
|
30957
30964
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ToolBadgeSkeleton, { variant, icon: !!mark, className });
|
|
30958
30965
|
const linked = (node, linkClassName) => href && targetPlatform ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30959
|
-
|
|
30966
|
+
_chunk7E4BC3AFcjs.NavLinkAnchorViaRuntime,
|
|
30960
30967
|
{
|
|
30961
30968
|
href,
|
|
30962
30969
|
targetPlatform,
|
|
@@ -31106,7 +31113,7 @@ function LogsTableView({
|
|
|
31106
31113
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31107
31114
|
ToolBadge,
|
|
31108
31115
|
{
|
|
31109
|
-
toolType:
|
|
31116
|
+
toolType: _chunkCRVXQYUZcjs.normalizeToolTypeWithFallback.call(void 0, row.original.source.toolType),
|
|
31110
31117
|
iconClassName: "h-4 w-4 content-md:h-6 content-md:w-6"
|
|
31111
31118
|
}
|
|
31112
31119
|
),
|
|
@@ -31118,7 +31125,7 @@ function LogsTableView({
|
|
|
31118
31125
|
filter: {
|
|
31119
31126
|
options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess', _679 => _679.toolTypes, 'access', _680 => _680.map, 'call', _681 => _681((toolType) => ({
|
|
31120
31127
|
id: toolType,
|
|
31121
|
-
label:
|
|
31128
|
+
label: _chunkCRVXQYUZcjs.toToolLabel.call(void 0, toolType),
|
|
31122
31129
|
value: toolType
|
|
31123
31130
|
}))]), () => ( []))
|
|
31124
31131
|
}
|
|
@@ -31167,7 +31174,7 @@ function LogsTableView({
|
|
|
31167
31174
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31168
31175
|
LogRowButton,
|
|
31169
31176
|
{
|
|
31170
|
-
onClick: getLogHref ?
|
|
31177
|
+
onClick: getLogHref ? _chunkCRVXQYUZcjs.openInNewTab.call(void 0, getLogHref(row.original)) : void 0,
|
|
31171
31178
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
31172
31179
|
label: "Open in new tab"
|
|
31173
31180
|
}
|
|
@@ -31489,7 +31496,7 @@ function OpenInNewTabCell({ href }) {
|
|
|
31489
31496
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31490
31497
|
_chunkAHBTZ7DNcjs.Button,
|
|
31491
31498
|
{
|
|
31492
|
-
onClick: loading ? void 0 :
|
|
31499
|
+
onClick: loading ? void 0 : _chunkCRVXQYUZcjs.openInNewTab.call(void 0, href),
|
|
31493
31500
|
disabled: loading,
|
|
31494
31501
|
variant: "outline",
|
|
31495
31502
|
size: "icon",
|
|
@@ -31678,9 +31685,9 @@ function ScriptSchedulesTable({
|
|
|
31678
31685
|
|
|
31679
31686
|
// src/components/features/scripts/shell-types.ts
|
|
31680
31687
|
var SCRIPT_SHELL_TYPES = [
|
|
31681
|
-
{ id:
|
|
31682
|
-
{ id:
|
|
31683
|
-
{ id:
|
|
31688
|
+
{ id: _chunkCRVXQYUZcjs.ShellTypeValues.POWERSHELL, label: "PowerShell", value: "powershell", icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon },
|
|
31689
|
+
{ id: _chunkCRVXQYUZcjs.ShellTypeValues.CMD, label: "CMD", value: "cmd", icon: _chunkNIVJEJSGcjs.TerminalSquareIcon },
|
|
31690
|
+
{ id: _chunkCRVXQYUZcjs.ShellTypeValues.BASH, label: "Bash", value: "bash", icon: _chunkTRUW6DDAcjs.TerminalIcon }
|
|
31684
31691
|
];
|
|
31685
31692
|
function scriptShellType(value) {
|
|
31686
31693
|
return SCRIPT_SHELL_TYPES.find((shell) => shell.value === value);
|
|
@@ -33137,7 +33144,7 @@ function ScheduleFormFields({
|
|
|
33137
33144
|
disabled = false,
|
|
33138
33145
|
renderScriptSearch,
|
|
33139
33146
|
timeReferenceGate = "off",
|
|
33140
|
-
platforms =
|
|
33147
|
+
platforms = _chunkCRVXQYUZcjs.OS_PLATFORMS,
|
|
33141
33148
|
comingSoonPlatforms = [],
|
|
33142
33149
|
getTimeSlots,
|
|
33143
33150
|
nameLayout = "stacked",
|
|
@@ -33283,7 +33290,7 @@ function ScheduleFormFields({
|
|
|
33283
33290
|
// src/components/features/scripts/schedule-form/schedule-script-search-field.tsx
|
|
33284
33291
|
|
|
33285
33292
|
function ScriptPlatformIcons({ platforms }) {
|
|
33286
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children:
|
|
33293
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children: _chunkCRVXQYUZcjs.OS_PLATFORMS.filter((p) => platforms.includes(p.id)).map((p) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, p.icon, { className: "h-3.5 w-3.5 text-ods-text-secondary opacity-60" }, p.id)) });
|
|
33287
33294
|
}
|
|
33288
33295
|
function ScheduleScriptSearchField({
|
|
33289
33296
|
scriptId,
|
|
@@ -33356,7 +33363,7 @@ function KnowledgeBaseOpenButton({ href }) {
|
|
|
33356
33363
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33357
33364
|
_chunkAHBTZ7DNcjs.Button,
|
|
33358
33365
|
{
|
|
33359
|
-
onClick: loading ? void 0 :
|
|
33366
|
+
onClick: loading ? void 0 : _chunkCRVXQYUZcjs.openInNewTab.call(void 0, href),
|
|
33360
33367
|
disabled: loading,
|
|
33361
33368
|
variant: "outline",
|
|
33362
33369
|
size: "icon",
|
|
@@ -33707,7 +33714,7 @@ function ConversationCard({
|
|
|
33707
33714
|
style: tint,
|
|
33708
33715
|
onClick: selection && ((event) => {
|
|
33709
33716
|
if (event.button !== 0 || _optionalChain([window, 'access', _745 => _745.getSelection, 'call', _746 => _746(), 'optionalAccess', _747 => _747.toString, 'call', _748 => _748()])) return;
|
|
33710
|
-
if (!
|
|
33717
|
+
if (!_chunkCRVXQYUZcjs.isOwnClick.call(void 0, event.target, event.currentTarget, { controls: true })) return;
|
|
33711
33718
|
selection.onToggle();
|
|
33712
33719
|
}),
|
|
33713
33720
|
children: [
|
|
@@ -33730,7 +33737,7 @@ function ConversationCard({
|
|
|
33730
33737
|
)
|
|
33731
33738
|
),
|
|
33732
33739
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33733
|
-
|
|
33740
|
+
_chunkCRVXQYUZcjs.ChatTurn,
|
|
33734
33741
|
{
|
|
33735
33742
|
avatar: requester.avatar,
|
|
33736
33743
|
name: requester.name,
|
|
@@ -33751,7 +33758,7 @@ function ConversationCard({
|
|
|
33751
33758
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: CONTEXT_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess', _749 => _749.context])), children: context.text })
|
|
33752
33759
|
] }),
|
|
33753
33760
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33754
|
-
|
|
33761
|
+
_chunkCRVXQYUZcjs.ChatTurn,
|
|
33755
33762
|
{
|
|
33756
33763
|
avatar: responder.avatar,
|
|
33757
33764
|
name: responder.name,
|
|
@@ -33796,7 +33803,7 @@ function ConversationCardSkeleton({
|
|
|
33796
33803
|
{
|
|
33797
33804
|
selection: selection && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.InertWhileLoading, { className: "contents", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectionToggle, { pressed: selection.pressed }) }),
|
|
33798
33805
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33799
|
-
|
|
33806
|
+
_chunkCRVXQYUZcjs.ChatTurn,
|
|
33800
33807
|
{
|
|
33801
33808
|
loading: true,
|
|
33802
33809
|
name: "",
|
|
@@ -33820,7 +33827,7 @@ function ConversationCardSkeleton({
|
|
|
33820
33827
|
] })
|
|
33821
33828
|
] }),
|
|
33822
33829
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33823
|
-
|
|
33830
|
+
_chunkCRVXQYUZcjs.ChatTurn,
|
|
33824
33831
|
{
|
|
33825
33832
|
loading: true,
|
|
33826
33833
|
name: "",
|