@flamingo-stack/openframe-frontend-core 0.0.821 → 0.0.823
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/export-map.json +1 -1
- package/dist/chat-protocol/citation-chip.d.ts +20 -0
- package/dist/chat-protocol/citation-chip.d.ts.map +1 -0
- package/dist/chat-protocol/citation-chip.js +25 -0
- package/dist/chat-protocol/index.cjs +25 -0
- package/dist/chat-protocol/index.d.ts +1 -0
- package/dist/chat-protocol/index.d.ts.map +1 -1
- package/dist/chat-protocol/index.js +1 -0
- package/dist/{chunk-YCE7A63X.cjs → chunk-2LT2WR4O.cjs} +24 -13
- package/dist/{chunk-OEKVCVOS.cjs → chunk-2U6MAM6D.cjs} +47 -47
- package/dist/{chunk-LQF5F7LF.cjs → chunk-3JCDSZ6D.cjs} +4 -4
- package/dist/{chunk-7DIWYZPQ.cjs → chunk-AK7MYM25.cjs} +3 -3
- package/dist/{chunk-2WHKEYDX.cjs → chunk-DEWT25QK.cjs} +53 -53
- package/dist/{chunk-FTD3CZAS.cjs → chunk-DYSMAPSI.cjs} +4 -4
- package/dist/{chunk-N2XHQVWX.cjs → chunk-GP2Y3DBE.cjs} +6 -6
- package/dist/{chunk-LWOXKF5P.cjs → chunk-HWXFUI3R.cjs} +19 -19
- package/dist/{chunk-7QGK76LC.cjs → chunk-K7NGDYBG.cjs} +108 -106
- package/dist/{chunk-P2ZIQ72J.cjs → chunk-KWS7YKCO.cjs} +10 -10
- package/dist/{chunk-GQHXJGA2.cjs → chunk-L7YE6APP.cjs} +9 -9
- package/dist/{chunk-QFNQSZ4H.cjs → chunk-SBXL5EKE.cjs} +16 -16
- package/dist/{chunk-3SE34JVB.cjs → chunk-TJFVIJPV.cjs} +2 -2
- package/dist/{chunk-BY2PLXYC.cjs → chunk-U7CH53FT.cjs} +7 -7
- package/dist/{chunk-V26M75GV.cjs → chunk-UUFL4FDS.cjs} +11 -11
- package/dist/{chunk-RRLJ5PNL.cjs → chunk-Y3MPERIZ.cjs} +3 -3
- package/dist/{chunk-IS6BQSL6.cjs → chunk-Y7BTM2NC.cjs} +39 -39
- package/dist/{chunk-CA7X6CCJ.cjs → chunk-YMDSCI4E.cjs} +32 -32
- package/dist/{cloud-tenants-M34P47GS.cjs → cloud-tenants-VQQ2KNJI.cjs} +4 -4
- package/dist/components/case-studies/index.cjs +16 -16
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/remark-strip-citations.d.ts +3 -4
- package/dist/components/chat/remark-strip-citations.d.ts.map +1 -1
- package/dist/components/chat/remark-strip-citations.js +3 -13
- package/dist/components/chat/utils/cited-sources.d.ts.map +1 -1
- package/dist/components/chat/utils/cited-sources.js +2 -6
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/docs/index.cjs +8 -8
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/faq/index.cjs +6 -6
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/help-center-pages/index.cjs +61 -61
- package/dist/components/index.cjs +37 -37
- package/dist/components/meeting-scheduler/index.cjs +29 -29
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.cjs +6 -6
- package/dist/components/product-demo/index.cjs +13 -13
- package/dist/components/tickets/index.cjs +9 -9
- package/dist/components/ui/file-upload.d.ts +3 -1
- package/dist/components/ui/file-upload.d.ts.map +1 -1
- package/dist/components/ui/file-upload.js +2 -1
- package/dist/components/ui/image-uploader.d.ts +3 -1
- package/dist/components/ui/image-uploader.d.ts.map +1 -1
- package/dist/components/ui/image-uploader.js +2 -1
- package/dist/components/ui/index.cjs +4 -4
- package/dist/{devices-SWFK4CPO.cjs → devices-KKJHYQ72.cjs} +5 -5
- package/dist/{embeddable-chat-J6CKPKKM.cjs → embeddable-chat-MQGYFYGX.cjs} +65 -69
- package/dist/index.cjs +8 -8
- package/dist/{knowledge-N5FDIA33.cjs → knowledge-VMLXNFDI.cjs} +5 -5
- package/dist/{logs-OEK7GMEB.cjs → logs-EFXRQ6LV.cjs} +12 -12
- package/dist/{policies-Q7AS5AL6.cjs → policies-SU3NQPFV.cjs} +8 -8
- package/dist/{scripts-3XWEDB2A.cjs → scripts-WLLAUOAA.cjs} +9 -9
- package/dist/{software-update-6FOBLAOF.cjs → software-update-WKUDBC3U.cjs} +7 -7
- package/package.json +1 -1
- package/src/chat-protocol/citation-chip.ts +46 -0
- package/src/chat-protocol/index.ts +2 -0
- package/src/components/chat/remark-strip-citations.ts +7 -26
- package/src/components/chat/utils/cited-sources.ts +2 -8
- package/src/components/ui/file-upload.tsx +4 -1
- package/src/components/ui/image-uploader.tsx +4 -1
|
@@ -113,7 +113,7 @@ var _chunk5SZ4ILU3cjs = require('./chunk-5SZ4ILU3.cjs');
|
|
|
113
113
|
|
|
114
114
|
|
|
115
115
|
|
|
116
|
-
var
|
|
116
|
+
var _chunkSBXL5EKEcjs = require('./chunk-SBXL5EKE.cjs');
|
|
117
117
|
|
|
118
118
|
|
|
119
119
|
|
|
@@ -134,7 +134,7 @@ var _chunkQFNQSZ4Hcjs = require('./chunk-QFNQSZ4H.cjs');
|
|
|
134
134
|
|
|
135
135
|
|
|
136
136
|
|
|
137
|
-
var
|
|
137
|
+
var _chunk2LT2WR4Ocjs = require('./chunk-2LT2WR4O.cjs');
|
|
138
138
|
|
|
139
139
|
|
|
140
140
|
|
|
@@ -709,7 +709,7 @@ function ThemeProvider({ children, ...overrides }) {
|
|
|
709
709
|
var useTheme = _nextthemes.useTheme;
|
|
710
710
|
function useThemeToggle() {
|
|
711
711
|
const { resolvedTheme, theme, setTheme } = useTheme();
|
|
712
|
-
const mounted =
|
|
712
|
+
const mounted = _chunk2LT2WR4Ocjs.useIsHydrated.call(void 0, );
|
|
713
713
|
const active = mounted ? resolvedTheme === "light" || theme === "light" ? "light" : "dark" : DEFAULT_THEME;
|
|
714
714
|
const setOdsTheme = _react.useCallback.call(void 0, (next) => setTheme(next), [setTheme]);
|
|
715
715
|
const toggle = _react.useCallback.call(void 0, () => setTheme(active === "dark" ? "light" : "dark"), [active, setTheme]);
|
|
@@ -4580,7 +4580,7 @@ function AdminFormDrawer({
|
|
|
4580
4580
|
"form",
|
|
4581
4581
|
{
|
|
4582
4582
|
id: formId,
|
|
4583
|
-
...
|
|
4583
|
+
..._chunkSBXL5EKEcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4584
4584
|
className: "flex flex-col gap-[var(--spacing-system-lf)]",
|
|
4585
4585
|
onSubmit: (e) => {
|
|
4586
4586
|
e.preventDefault();
|
|
@@ -4687,7 +4687,7 @@ function AdminFormModal({
|
|
|
4687
4687
|
"form",
|
|
4688
4688
|
{
|
|
4689
4689
|
id: formId,
|
|
4690
|
-
...
|
|
4690
|
+
..._chunkSBXL5EKEcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4691
4691
|
className: "flex min-h-0 flex-1 flex-col",
|
|
4692
4692
|
onSubmit: (e) => {
|
|
4693
4693
|
e.preventDefault();
|
|
@@ -6057,7 +6057,7 @@ function EmbedViewerFrame({
|
|
|
6057
6057
|
const controllerRef = _react.useRef.call(void 0, null);
|
|
6058
6058
|
_react.useEffect.call(void 0, () => {
|
|
6059
6059
|
if (!fullscreenControl) return void 0;
|
|
6060
|
-
const controller = new (0,
|
|
6060
|
+
const controller = new (0, _chunkSBXL5EKEcjs.FullscreenSwitchController)({
|
|
6061
6061
|
target: () => frameRef.current,
|
|
6062
6062
|
onFullscreenChange: setIsFullscreen
|
|
6063
6063
|
});
|
|
@@ -7306,7 +7306,7 @@ var formatTimeAgo = (timestamp) => {
|
|
|
7306
7306
|
return `${Math.floor(diffSeconds / 86400)}d ago`;
|
|
7307
7307
|
};
|
|
7308
7308
|
function RedditEmbedClient({ url, maxWidth = 700, rel }) {
|
|
7309
|
-
const postLinkRel =
|
|
7309
|
+
const postLinkRel = _chunk2LT2WR4Ocjs.renderedLinkRel.call(void 0, rel, true);
|
|
7310
7310
|
const { redditProxyUrl } = useRichMarkdownRuntime();
|
|
7311
7311
|
const [redditData, setRedditData] = _react.useState.call(void 0, null);
|
|
7312
7312
|
const [loading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7638,7 +7638,7 @@ var UserIcon3 = () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "svg", { wid
|
|
|
7638
7638
|
] });
|
|
7639
7639
|
var XIcon = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TEMEXDTcjs.XLogoIcon, { className: "h-5 w-5", color: "currentColor" });
|
|
7640
7640
|
function TwitterEmbedClient({ url, tweetId, maxWidth = 700, rel }) {
|
|
7641
|
-
const postLinkRel =
|
|
7641
|
+
const postLinkRel = _chunk2LT2WR4Ocjs.renderedLinkRel.call(void 0, rel, true);
|
|
7642
7642
|
const { twitterProxyUrl } = useRichMarkdownRuntime();
|
|
7643
7643
|
const [tweetData, setTweetData] = _react.useState.call(void 0, null);
|
|
7644
7644
|
const [fetchLoading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7840,7 +7840,7 @@ function buildRichEmbedOverrides({
|
|
|
7840
7840
|
ogEndpointPath,
|
|
7841
7841
|
textSizes
|
|
7842
7842
|
}) {
|
|
7843
|
-
const standard =
|
|
7843
|
+
const standard = _chunk2LT2WR4Ocjs.buildStandardLeafRenderers.call(void 0, { textSizes });
|
|
7844
7844
|
return {
|
|
7845
7845
|
// Fence-language embeds (```youtube-embed etc.); everything else
|
|
7846
7846
|
// (mermaid, highlighted blocks, inline code) falls through to `standard`.
|
|
@@ -7976,14 +7976,14 @@ function buildRichEmbedOverrides({
|
|
|
7976
7976
|
// rich-markdown runtime (Supabase optimization on the hub, identity
|
|
7977
7977
|
// elsewhere). Guard against empty `![]()`.
|
|
7978
7978
|
img: ({ src, alt }) => {
|
|
7979
|
-
if (!
|
|
7979
|
+
if (!_chunk2LT2WR4Ocjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7980
7980
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownImage, { src: src.trim(), alt });
|
|
7981
7981
|
},
|
|
7982
7982
|
// Raw <iframe> tags in stored content (a pasted YouTube embed). A YouTube one becomes the same click-to-play
|
|
7983
7983
|
// facade as the `youtube-embed` fence: the raw iframe loaded YouTube's whole player (about 470 KB of script) with
|
|
7984
7984
|
// the page, on every post that carried one (CU-17tkuw5xp4q). Any other iframe loads when it nears the screen.
|
|
7985
7985
|
iframe: ({ node: _node, src, ...rest }) => {
|
|
7986
|
-
if (!
|
|
7986
|
+
if (!_chunk2LT2WR4Ocjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7987
7987
|
const url = src.trim();
|
|
7988
7988
|
if (_chunkUEULXVW2cjs.extractYouTubeId.call(void 0, url)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.Video, { kind: "youtube", url });
|
|
7989
7989
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "iframe", { ...rest, src: url, loading: "lazy" });
|
|
@@ -7991,7 +7991,7 @@ function buildRichEmbedOverrides({
|
|
|
7991
7991
|
// Raw <video> tags in stored content (blog publisher injection) route
|
|
7992
7992
|
// to the <Video> SSOT (MuxPlayer) so HLS manifests play everywhere.
|
|
7993
7993
|
video: ({ src, poster, className }) => {
|
|
7994
|
-
if (!
|
|
7994
|
+
if (!_chunk2LT2WR4Ocjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7995
7995
|
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, _chunkUEULXVW2cjs.Video, { kind: "file", url: src.trim(), poster: typeof poster === "string" ? poster : void 0 }) }) });
|
|
7996
7996
|
}
|
|
7997
7997
|
};
|
|
@@ -8177,13 +8177,13 @@ var RichMarkdownInner = ({
|
|
|
8177
8177
|
},
|
|
8178
8178
|
[resolveLinkEndpointUrl, resolveSource]
|
|
8179
8179
|
);
|
|
8180
|
-
const textSizes = _react.useMemo.call(void 0, () =>
|
|
8180
|
+
const textSizes = _react.useMemo.call(void 0, () => _chunk2LT2WR4Ocjs.resolveTextSizeConfig.call(void 0, "article"), []);
|
|
8181
8181
|
const componentOverrides = _react.useMemo.call(void 0,
|
|
8182
8182
|
() => buildRichEmbedOverrides({ ogApiBaseUrl, ogEndpointPath, textSizes }),
|
|
8183
8183
|
[ogApiBaseUrl, ogEndpointPath, textSizes]
|
|
8184
8184
|
);
|
|
8185
8185
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8186
|
-
|
|
8186
|
+
_chunk2LT2WR4Ocjs.MarkdownEngine,
|
|
8187
8187
|
{
|
|
8188
8188
|
content,
|
|
8189
8189
|
className,
|
|
@@ -8208,7 +8208,7 @@ var RichMarkdownRendererImpl = ({
|
|
|
8208
8208
|
className = "",
|
|
8209
8209
|
sectionIds,
|
|
8210
8210
|
onInternalLinkClick,
|
|
8211
|
-
brokenLinks =
|
|
8211
|
+
brokenLinks = _chunk2LT2WR4Ocjs.NO_BROKEN_LINKS,
|
|
8212
8212
|
currentPath,
|
|
8213
8213
|
resolveSource = "openframe-docs",
|
|
8214
8214
|
resolveLinkEndpointUrl = "/api/docs/resolve-link",
|
|
@@ -9980,7 +9980,7 @@ var BenefitCardGrid = ({ children, className = "", columns = 2 }) => {
|
|
|
9980
9980
|
|
|
9981
9981
|
|
|
9982
9982
|
function PlatformBrowseButton({ item }) {
|
|
9983
|
-
const linkProps =
|
|
9983
|
+
const linkProps = _chunk2LT2WR4Ocjs.useNavLinkViaRuntime.call(void 0, { href: item.link, targetPlatform: item.targetPlatform });
|
|
9984
9984
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", linkProps, rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-4 w-4" }), children: [
|
|
9985
9985
|
"Browse ",
|
|
9986
9986
|
item.buttonText
|
|
@@ -10499,10 +10499,10 @@ var OSTypeBadge = ({
|
|
|
10499
10499
|
if (!osType) {
|
|
10500
10500
|
return labelOnly ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, "text-ods-text-secondary", className), children: "Unknown" }) : null;
|
|
10501
10501
|
}
|
|
10502
|
-
const normalized =
|
|
10502
|
+
const normalized = _chunkSBXL5EKEcjs.normalizeOSType.call(void 0, osType);
|
|
10503
10503
|
if (!normalized && !labelOnly) return null;
|
|
10504
|
-
const label =
|
|
10505
|
-
const IconComponent =
|
|
10504
|
+
const label = _chunkSBXL5EKEcjs.getOSLabel.call(void 0, osType);
|
|
10505
|
+
const IconComponent = _chunkSBXL5EKEcjs.getOSIcon.call(void 0, osType);
|
|
10506
10506
|
if (iconOnly && IconComponent) {
|
|
10507
10507
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: _chunk63A4GZMBcjs.cn.call(void 0, iconSize, "text-ods-text-secondary", className) });
|
|
10508
10508
|
}
|
|
@@ -10799,7 +10799,7 @@ function ComplianceLogo({
|
|
|
10799
10799
|
fallback = null,
|
|
10800
10800
|
className
|
|
10801
10801
|
}) {
|
|
10802
|
-
const standard =
|
|
10802
|
+
const standard = _chunkSBXL5EKEcjs.complianceStandardForName.call(void 0, ...names);
|
|
10803
10803
|
if (!standard) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: fallback });
|
|
10804
10804
|
const Official = standard.logo ? COMPLIANCE_LOGOS[standard.logo] : null;
|
|
10805
10805
|
return Official ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -12841,7 +12841,7 @@ function DataTableRowImpl({
|
|
|
12841
12841
|
const containerRef = _react.useRef.call(void 0, null);
|
|
12842
12842
|
const handleClick = _react.useCallback.call(void 0,
|
|
12843
12843
|
(e) => {
|
|
12844
|
-
if (!
|
|
12844
|
+
if (!_chunkSBXL5EKEcjs.isOwnClick.call(void 0, e.target, containerRef.current)) {
|
|
12845
12845
|
if (isLinkMode) e.preventDefault();
|
|
12846
12846
|
return;
|
|
12847
12847
|
}
|
|
@@ -12855,7 +12855,7 @@ function DataTableRowImpl({
|
|
|
12855
12855
|
if (!(target instanceof Element) || !_optionalChain([container, 'optionalAccess', _224 => _224.contains, 'call', _225 => _225(target)])) return;
|
|
12856
12856
|
const nestedLink = target.closest("a");
|
|
12857
12857
|
if (nestedLink && nestedLink !== container && container.contains(nestedLink)) return;
|
|
12858
|
-
if (!
|
|
12858
|
+
if (!_chunkSBXL5EKEcjs.isOwnClick.call(void 0, target, container) || target.closest(ROW_LINK_CONTROL_SELECTOR)) e.preventDefault();
|
|
12859
12859
|
}, []);
|
|
12860
12860
|
const containerClassName = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
12861
12861
|
DATA_TABLE_ROW_FRAME_CLASS,
|
|
@@ -12985,7 +12985,7 @@ function DataTableBody({
|
|
|
12985
12985
|
const skeletonRowClassName = typeof rowClassName === "string" ? rowClassName : void 0;
|
|
12986
12986
|
if (loading && loadingCells && hasRows) {
|
|
12987
12987
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12988
|
-
|
|
12988
|
+
_chunk2LT2WR4Ocjs.LoadingFallback,
|
|
12989
12989
|
{
|
|
12990
12990
|
label: "Loading results",
|
|
12991
12991
|
status: loadingRegion && !inScope,
|
|
@@ -13334,7 +13334,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13334
13334
|
// child of the cell.
|
|
13335
13335
|
_optionalChain([meta, 'optionalAccess', _244 => _244.hint]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13336
13336
|
filterTrigger,
|
|
13337
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13337
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSBXL5EKEcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13338
13338
|
] }) : filterTrigger
|
|
13339
13339
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13340
13340
|
"div",
|
|
@@ -13359,7 +13359,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13359
13359
|
// centred on the row.
|
|
13360
13360
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13361
13361
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13362
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13362
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSBXL5EKEcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13363
13363
|
] })
|
|
13364
13364
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13365
13365
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -13598,7 +13598,7 @@ function PhoneInput({
|
|
|
13598
13598
|
placeholder = "Phone Number (optional)",
|
|
13599
13599
|
onKeyDown
|
|
13600
13600
|
}) {
|
|
13601
|
-
const { priority, others } = _react.useMemo.call(void 0, () =>
|
|
13601
|
+
const { priority, others } = _react.useMemo.call(void 0, () => _chunkSBXL5EKEcjs.getCountryPhoneData.call(void 0, ), []);
|
|
13602
13602
|
const selectedCountry = _react.useMemo.call(void 0,
|
|
13603
13603
|
() => [...priority, ...others].find((c) => c.code === countryCode),
|
|
13604
13604
|
[countryCode, priority, others]
|
|
@@ -13613,7 +13613,7 @@ function PhoneInput({
|
|
|
13613
13613
|
_optionalChain([onValidationChange, 'optionalCall', _261 => _261(false)]);
|
|
13614
13614
|
return;
|
|
13615
13615
|
}
|
|
13616
|
-
const invalid = !
|
|
13616
|
+
const invalid = !_chunkSBXL5EKEcjs.validatePhoneNumber.call(void 0, phone, countryCode);
|
|
13617
13617
|
setIsInvalid(invalid);
|
|
13618
13618
|
_optionalChain([onValidationChange, 'optionalCall', _262 => _262(invalid)]);
|
|
13619
13619
|
},
|
|
@@ -14458,7 +14458,7 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14458
14458
|
),
|
|
14459
14459
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xsf)]", children: [
|
|
14460
14460
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14461
|
-
|
|
14461
|
+
_chunk2LT2WR4Ocjs.TabSelector,
|
|
14462
14462
|
{
|
|
14463
14463
|
label: "Search engines",
|
|
14464
14464
|
value: choice,
|
|
@@ -14515,7 +14515,7 @@ function useMarkdownLinkCommand() {
|
|
|
14515
14515
|
buttonProps: { "aria-label": "Add or edit a link (ctrl + l)", title: "Add or edit a link (ctrl + l)" },
|
|
14516
14516
|
icon: command.icon,
|
|
14517
14517
|
execute: (state, api) => {
|
|
14518
|
-
const existing =
|
|
14518
|
+
const existing = _chunk2LT2WR4Ocjs.findMarkdownLinkAt.call(void 0, state.text, state.selection.start, state.selection.end);
|
|
14519
14519
|
setPending(
|
|
14520
14520
|
existing ? {
|
|
14521
14521
|
api,
|
|
@@ -14546,7 +14546,7 @@ function useMarkdownLinkCommand() {
|
|
|
14546
14546
|
initial: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _319 => _319.initial]), () => ( EMPTY_LINK)),
|
|
14547
14547
|
editing: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _320 => _320.editing]), () => ( false)),
|
|
14548
14548
|
onSubmit: (link) => {
|
|
14549
|
-
if (pending) write(pending,
|
|
14549
|
+
if (pending) write(pending, _chunk2LT2WR4Ocjs.formatMarkdownLink.call(void 0, link));
|
|
14550
14550
|
},
|
|
14551
14551
|
onRemove: () => {
|
|
14552
14552
|
if (pending) write(pending, pending.initial.text);
|
|
@@ -14937,6 +14937,7 @@ function FileUpload({
|
|
|
14937
14937
|
label = "Upload Files",
|
|
14938
14938
|
description = "(Click Here or Drag and Drop)",
|
|
14939
14939
|
fieldLabel,
|
|
14940
|
+
labelVariant,
|
|
14940
14941
|
disabled = false,
|
|
14941
14942
|
error,
|
|
14942
14943
|
className,
|
|
@@ -15097,7 +15098,7 @@ function FileUpload({
|
|
|
15097
15098
|
const displayError = error || validationError || void 0;
|
|
15098
15099
|
const hasFiles = isManaged ? managedFiles.length > 0 : files.length > 0;
|
|
15099
15100
|
const showDropzone = multiple || !hasFiles;
|
|
15100
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkSWF6TNZ3cjs.FieldWrapper, { label: fieldLabel, error: displayError, className, children: [
|
|
15101
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkSWF6TNZ3cjs.FieldWrapper, { label: fieldLabel, labelVariant, error: displayError, className, children: [
|
|
15101
15102
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15102
15103
|
"input",
|
|
15103
15104
|
{
|
|
@@ -15270,6 +15271,7 @@ function ImageUploader({
|
|
|
15270
15271
|
description = "(Click Here or Drag and Drop)",
|
|
15271
15272
|
hint,
|
|
15272
15273
|
fieldLabel,
|
|
15274
|
+
labelVariant,
|
|
15273
15275
|
disabled = false,
|
|
15274
15276
|
loading = false,
|
|
15275
15277
|
error,
|
|
@@ -15331,7 +15333,7 @@ function ImageUploader({
|
|
|
15331
15333
|
}
|
|
15332
15334
|
};
|
|
15333
15335
|
const isActionState = dragActive || pressed && !hasImage;
|
|
15334
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkSWF6TNZ3cjs.FieldWrapper, { label: fieldLabel, error: displayError, className, children: [
|
|
15336
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkSWF6TNZ3cjs.FieldWrapper, { label: fieldLabel, labelVariant, error: displayError, className, children: [
|
|
15335
15337
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15336
15338
|
"input",
|
|
15337
15339
|
{
|
|
@@ -16426,7 +16428,7 @@ function TicketInfoSection({
|
|
|
16426
16428
|
expanded && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
16427
16429
|
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" }) }),
|
|
16428
16430
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-4 border-b border-ods-border bg-ods-bg p-4", children: [
|
|
16429
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16431
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LT2WR4Ocjs.SimpleMarkdownRenderer, { content: description }),
|
|
16430
16432
|
attachments && attachments.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Attachments", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketAttachmentsList, { attachments }) }),
|
|
16431
16433
|
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, _chunkBOS7OIC4cjs.Tag, { label: tag, variant: "outline", className: "max-w-full" }, tag)) }) }),
|
|
16432
16434
|
(notes || onAddNote) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Notes", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16901,7 +16903,7 @@ function PhotoWall({
|
|
|
16901
16903
|
gap: COLUMN_GAP_PX
|
|
16902
16904
|
};
|
|
16903
16905
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rootRef, "aria-hidden": "true", className: _chunk63A4GZMBcjs.cn.call(void 0, "grid overflow-hidden", className), style: gridStyle, children: columnsToDraw ? columnsToDraw.map((column, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16904
|
-
|
|
16906
|
+
_chunk2LT2WR4Ocjs.MarqueeWall,
|
|
16905
16907
|
{
|
|
16906
16908
|
axis: "y",
|
|
16907
16909
|
reverse: index % 2 === 1,
|
|
@@ -17446,7 +17448,7 @@ function LoadingLabel({ label, typical }) {
|
|
|
17446
17448
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: label.split(/(\{\w+\})/).map(
|
|
17447
17449
|
(part, index) => /^\{\w+\}$/.test(part) ? (
|
|
17448
17450
|
// biome-ignore lint/suspicious/noArrayIndexKey: the parts of one fixed string never reorder
|
|
17449
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17451
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LT2WR4Ocjs.TextHold, { children: typical }, index)
|
|
17450
17452
|
) : part
|
|
17451
17453
|
) });
|
|
17452
17454
|
}
|
|
@@ -17461,7 +17463,7 @@ var TRIAL_TERM_ICONS = {
|
|
|
17461
17463
|
};
|
|
17462
17464
|
var DEFAULT_TRIAL_TERMS = ["cancel", "length", "noContract"];
|
|
17463
17465
|
function trialBenefits(trialDays, terms = DEFAULT_TRIAL_TERMS) {
|
|
17464
|
-
const labels =
|
|
17466
|
+
const labels = _chunkSBXL5EKEcjs.trialLabels.call(void 0, trialDays);
|
|
17465
17467
|
return terms.flatMap((term) => {
|
|
17466
17468
|
const label = labels[term];
|
|
17467
17469
|
return label ? [{ icon: TRIAL_TERM_ICONS[term], label }] : [];
|
|
@@ -21892,7 +21894,7 @@ var MODEL_TOKEN_RATES_COPY = {
|
|
|
21892
21894
|
empty: "No token rates are in effect right now."
|
|
21893
21895
|
};
|
|
21894
21896
|
function providerMark(providerType, stated, className) {
|
|
21895
|
-
const Mark = _chunkQOAA7ZHBcjs.findIcon.call(void 0,
|
|
21897
|
+
const Mark = _chunkQOAA7ZHBcjs.findIcon.call(void 0, _chunkSBXL5EKEcjs.aiProvider.call(void 0, providerType, { icon: stated }).icon);
|
|
21896
21898
|
return Mark ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Mark, { className }) : void 0;
|
|
21897
21899
|
}
|
|
21898
21900
|
var PAD_X = "px-[var(--spacing-system-s)]";
|
|
@@ -21910,7 +21912,7 @@ var UNIT_LINE_CLASS = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
|
21910
21912
|
var TABS_ROW_CLASS = _chunk63A4GZMBcjs.cn.call(void 0, "shrink-0 border-b border-ods-border py-[var(--spacing-system-xs)]", PAD_X);
|
|
21911
21913
|
var NUMBER_CELL = "w-16 shrink-0 whitespace-nowrap text-right tabular-nums";
|
|
21912
21914
|
function useProviderGroup(rates) {
|
|
21913
|
-
const groups =
|
|
21915
|
+
const groups = _chunkSBXL5EKEcjs.groupTokenRatesByProvider.call(void 0, rates);
|
|
21914
21916
|
const [picked, setPicked] = _react.useState.call(void 0, null);
|
|
21915
21917
|
return { groups, group: _nullishCoalesce(groups.find((candidate) => candidate.providerType === picked), () => ( groups[0])), setPicked };
|
|
21916
21918
|
}
|
|
@@ -21921,7 +21923,7 @@ function ProviderTabs({
|
|
|
21921
21923
|
className
|
|
21922
21924
|
}) {
|
|
21923
21925
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21924
|
-
|
|
21926
|
+
_chunk2LT2WR4Ocjs.TabSelector,
|
|
21925
21927
|
{
|
|
21926
21928
|
variant: "secondary",
|
|
21927
21929
|
scrollable: true,
|
|
@@ -21929,7 +21931,7 @@ function ProviderTabs({
|
|
|
21929
21931
|
onValueChange,
|
|
21930
21932
|
items: groups.map((candidate) => ({
|
|
21931
21933
|
id: candidate.providerType,
|
|
21932
|
-
label:
|
|
21934
|
+
label: _chunkSBXL5EKEcjs.tokenRateProviderLabel.call(void 0, candidate.providerType, _optionalChain([candidate, 'access', _462 => _462.rates, 'access', _463 => _463[0], 'optionalAccess', _464 => _464.providerLabel])),
|
|
21933
21935
|
icon: providerMark(candidate.providerType, _optionalChain([candidate, 'access', _465 => _465.rates, 'access', _466 => _466[0], 'optionalAccess', _467 => _467.providerIcon]), "size-full")
|
|
21934
21936
|
})),
|
|
21935
21937
|
className
|
|
@@ -22006,8 +22008,8 @@ function ModelTokenRatesTable({ rates }) {
|
|
|
22006
22008
|
] }),
|
|
22007
22009
|
/* @__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: [
|
|
22008
22010
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "rowheader", className: "min-w-0 flex-1 truncate", children: rate.displayName || rate.modelName }),
|
|
22009
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
22010
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
22011
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkSBXL5EKEcjs.formatTokenRate.call(void 0, rate.inputTokenRate) }),
|
|
22012
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkSBXL5EKEcjs.formatTokenRate.call(void 0, rate.outputTokenRate) })
|
|
22011
22013
|
] }, rate.modelName)) })
|
|
22012
22014
|
] }),
|
|
22013
22015
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: UNIT_LINE_CLASS, children: MODEL_TOKEN_RATES_COPY.unit })
|
|
@@ -22054,7 +22056,7 @@ function modelOption(rate) {
|
|
|
22054
22056
|
return {
|
|
22055
22057
|
label: rate.displayName || rate.modelName,
|
|
22056
22058
|
value: rate.modelName,
|
|
22057
|
-
description:
|
|
22059
|
+
description: _chunkSBXL5EKEcjs.tokenRateProviderLabel.call(void 0, rate.providerType, rate.providerLabel),
|
|
22058
22060
|
icon: providerMark(rate.providerType, rate.providerIcon, "size-full text-ods-text-secondary")
|
|
22059
22061
|
};
|
|
22060
22062
|
}
|
|
@@ -22109,8 +22111,8 @@ function ModelTokenExchange({
|
|
|
22109
22111
|
const [chosen, setChosen] = _react.useState.call(void 0, null);
|
|
22110
22112
|
const balance = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(chosen, () => ( defaultAmount)), () => ( _optionalChain([tokenPrice, 'optionalAccess', _468 => _468.tokens]))), () => ( MODEL_TOKEN_EXCHANGE_BALANCE));
|
|
22111
22113
|
const max = Math.max(amountRange.max, balance, ...presets.map((preset) => preset.tokens));
|
|
22112
|
-
const tokens =
|
|
22113
|
-
const cost =
|
|
22114
|
+
const tokens = _chunkSBXL5EKEcjs.formatTokenAmount.call(void 0, balance);
|
|
22115
|
+
const cost = _chunkSBXL5EKEcjs.tokenCost.call(void 0, balance, tokenPrice);
|
|
22114
22116
|
const balancePrice = cost === null ? null : _chunkBOS7OIC4cjs.formatPrice.call(void 0, cost);
|
|
22115
22117
|
const model = rate ? rate.displayName || rate.modelName : "";
|
|
22116
22118
|
const options = models.map(modelOption);
|
|
@@ -22153,7 +22155,7 @@ function ModelTokenExchange({
|
|
|
22153
22155
|
variant: preset.tokens === balance ? "accent" : "outline",
|
|
22154
22156
|
size: "small",
|
|
22155
22157
|
onClick: () => setChosen(preset.tokens),
|
|
22156
|
-
children: copy.buy.preset(
|
|
22158
|
+
children: copy.buy.preset(_chunkSBXL5EKEcjs.formatTokenAmount.call(void 0, preset.tokens), preset.label)
|
|
22157
22159
|
},
|
|
22158
22160
|
preset.label
|
|
22159
22161
|
)) })
|
|
@@ -22170,7 +22172,7 @@ function ModelTokenExchange({
|
|
|
22170
22172
|
const stated = _nullishCoalesce(models.find((option) => option.providerType === providerType), () => ( (_optionalChain([rate, 'optionalAccess', _469 => _469.providerType]) === providerType ? rate : null)));
|
|
22171
22173
|
return {
|
|
22172
22174
|
id: providerType,
|
|
22173
|
-
name:
|
|
22175
|
+
name: _chunkSBXL5EKEcjs.tokenRateProviderLabel.call(void 0, providerType, _optionalChain([stated, 'optionalAccess', _470 => _470.providerLabel])),
|
|
22174
22176
|
icon: providerMark(providerType, _optionalChain([stated, 'optionalAccess', _471 => _471.providerIcon]), "size-8 text-ods-text-secondary")
|
|
22175
22177
|
};
|
|
22176
22178
|
}),
|
|
@@ -22209,7 +22211,7 @@ function ModelTokenExchange({
|
|
|
22209
22211
|
{
|
|
22210
22212
|
size: "plain",
|
|
22211
22213
|
loading,
|
|
22212
|
-
figure:
|
|
22214
|
+
figure: _chunkSBXL5EKEcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _476 => _476.inputTokenRate])),
|
|
22213
22215
|
words: copy.charge.input
|
|
22214
22216
|
}
|
|
22215
22217
|
),
|
|
@@ -22218,7 +22220,7 @@ function ModelTokenExchange({
|
|
|
22218
22220
|
{
|
|
22219
22221
|
size: "plain",
|
|
22220
22222
|
loading,
|
|
22221
|
-
figure:
|
|
22223
|
+
figure: _chunkSBXL5EKEcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _477 => _477.outputTokenRate])),
|
|
22222
22224
|
words: copy.charge.output
|
|
22223
22225
|
}
|
|
22224
22226
|
)
|
|
@@ -22230,9 +22232,9 @@ function ModelTokenExchange({
|
|
|
22230
22232
|
className: "mt-auto flex flex-col rounded-md border border-ods-accent bg-ods-bg p-[var(--spacing-system-mf)]",
|
|
22231
22233
|
children: [
|
|
22232
22234
|
/* @__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, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-full max-w-xs" }) : copy.charge.so(_nullishCoalesce(balancePrice, () => ( copy.buy.tokens(tokens))), model) }),
|
|
22233
|
-
/* @__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, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }) :
|
|
22235
|
+
/* @__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, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }) : _chunkSBXL5EKEcjs.formatTokenAmount.call(void 0, _chunkSBXL5EKEcjs.tokensForBalance.call(void 0, balance, rate.inputTokenRate)) }),
|
|
22234
22236
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-primary text-h3", children: copy.charge.read }),
|
|
22235
|
-
/* @__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, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48" }) : copy.charge.orWritten(
|
|
22237
|
+
/* @__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, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48" }) : copy.charge.orWritten(_chunkSBXL5EKEcjs.formatTokenAmount.call(void 0, _chunkSBXL5EKEcjs.tokensForBalance.call(void 0, balance, rate.outputTokenRate))) })
|
|
22236
22238
|
]
|
|
22237
22239
|
}
|
|
22238
22240
|
)
|
|
@@ -22752,14 +22754,14 @@ var ConfidenceBadge = ({
|
|
|
22752
22754
|
size = "sm",
|
|
22753
22755
|
className
|
|
22754
22756
|
}) => {
|
|
22755
|
-
const level =
|
|
22757
|
+
const level = _chunkSBXL5EKEcjs.getConfidenceLevel.call(void 0, confidence);
|
|
22756
22758
|
if (level === "none") {
|
|
22757
22759
|
return null;
|
|
22758
22760
|
}
|
|
22759
|
-
const label =
|
|
22760
|
-
const borderClass =
|
|
22761
|
-
const textClass =
|
|
22762
|
-
const bgClass =
|
|
22761
|
+
const label = _chunkSBXL5EKEcjs.getConfidenceLabel.call(void 0, confidence);
|
|
22762
|
+
const borderClass = _chunkSBXL5EKEcjs.getConfidenceBorderClass.call(void 0, confidence);
|
|
22763
|
+
const textClass = _chunkSBXL5EKEcjs.getConfidenceTextClass.call(void 0, confidence);
|
|
22764
|
+
const bgClass = _chunkSBXL5EKEcjs.getConfidenceBgClass.call(void 0, confidence);
|
|
22763
22765
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
22764
22766
|
"span",
|
|
22765
22767
|
{
|
|
@@ -22810,9 +22812,9 @@ function SEOEditorPreview({
|
|
|
22810
22812
|
const [isUploading, setIsUploading] = _react.useState.call(void 0, false);
|
|
22811
22813
|
const [fileInputRef, setFileInputRef] = _react.useState.call(void 0, null);
|
|
22812
22814
|
const seoTitleLength = (seoTitle || "").length;
|
|
22813
|
-
const seoTitleTooLong = seoTitleLength >
|
|
22815
|
+
const seoTitleTooLong = seoTitleLength > _chunkSBXL5EKEcjs.SEO_TITLE_MAX_LENGTH;
|
|
22814
22816
|
const seoDescriptionLength = (seoDescription || "").length;
|
|
22815
|
-
const seoDescriptionTooLong = seoDescriptionLength >
|
|
22817
|
+
const seoDescriptionTooLong = seoDescriptionLength > _chunkSBXL5EKEcjs.SEO_DESCRIPTION_MAX_LENGTH;
|
|
22816
22818
|
const displayTitle = seoTitle.trim() || title || "Untitled";
|
|
22817
22819
|
const displayDescription = seoDescription.trim() || summary || "No description";
|
|
22818
22820
|
const hasOgImage = ogImageUrl.trim();
|
|
@@ -22837,10 +22839,10 @@ function SEOEditorPreview({
|
|
|
22837
22839
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
22838
22840
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
22839
22841
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22840
|
-
|
|
22842
|
+
_chunkSBXL5EKEcjs.Field,
|
|
22841
22843
|
{
|
|
22842
22844
|
label: "SEO Title",
|
|
22843
|
-
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${
|
|
22845
|
+
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${_chunkSBXL5EKEcjs.SEO_TITLE_MAX_LENGTH})` : null,
|
|
22844
22846
|
labelExtras: aiConfidenceSeoTitle !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
22845
22847
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
22846
22848
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ConfidenceBadge, { confidence: aiConfidenceSeoTitle, showLabel: true, showPercentage: true, size: "sm" })
|
|
@@ -22855,7 +22857,7 @@ function SEOEditorPreview({
|
|
|
22855
22857
|
children: [
|
|
22856
22858
|
seoTitleLength,
|
|
22857
22859
|
"/",
|
|
22858
|
-
|
|
22860
|
+
_chunkSBXL5EKEcjs.SEO_TITLE_MAX_LENGTH
|
|
22859
22861
|
]
|
|
22860
22862
|
}
|
|
22861
22863
|
),
|
|
@@ -22866,7 +22868,7 @@ function SEOEditorPreview({
|
|
|
22866
22868
|
value: seoTitle || "",
|
|
22867
22869
|
onChange: (e) => onSeoTitleChange(e.target.value),
|
|
22868
22870
|
disabled,
|
|
22869
|
-
maxLength:
|
|
22871
|
+
maxLength: _chunkSBXL5EKEcjs.SEO_TITLE_MAX_LENGTH,
|
|
22870
22872
|
invalid: seoTitleTooLong,
|
|
22871
22873
|
placeholder: "Enter SEO meta title...",
|
|
22872
22874
|
className: "border-ods-border bg-ods-bg text-ods-text-primary"
|
|
@@ -22877,7 +22879,7 @@ function SEOEditorPreview({
|
|
|
22877
22879
|
!seoTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-accent text-h6", children: "Auto-populated from title" })
|
|
22878
22880
|
] }),
|
|
22879
22881
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22880
|
-
|
|
22882
|
+
_chunkSBXL5EKEcjs.Field,
|
|
22881
22883
|
{
|
|
22882
22884
|
label: "SEO Keywords",
|
|
22883
22885
|
labelExtras: aiConfidenceSeoKeywords !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -22909,10 +22911,10 @@ function SEOEditorPreview({
|
|
|
22909
22911
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
22910
22912
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
22911
22913
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22912
|
-
|
|
22914
|
+
_chunkSBXL5EKEcjs.Field,
|
|
22913
22915
|
{
|
|
22914
22916
|
label: "SEO Description",
|
|
22915
|
-
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${
|
|
22917
|
+
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${_chunkSBXL5EKEcjs.SEO_DESCRIPTION_MAX_LENGTH})` : null,
|
|
22916
22918
|
labelExtras: aiConfidenceSeoDescription !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
22917
22919
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
22918
22920
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22935,7 +22937,7 @@ function SEOEditorPreview({
|
|
|
22935
22937
|
children: [
|
|
22936
22938
|
seoDescriptionLength,
|
|
22937
22939
|
"/",
|
|
22938
|
-
|
|
22940
|
+
_chunkSBXL5EKEcjs.SEO_DESCRIPTION_MAX_LENGTH
|
|
22939
22941
|
]
|
|
22940
22942
|
}
|
|
22941
22943
|
),
|
|
@@ -22946,7 +22948,7 @@ function SEOEditorPreview({
|
|
|
22946
22948
|
value: seoDescription || "",
|
|
22947
22949
|
onChange: (e) => onSeoDescriptionChange(e.target.value),
|
|
22948
22950
|
disabled,
|
|
22949
|
-
maxLength:
|
|
22951
|
+
maxLength: _chunkSBXL5EKEcjs.SEO_DESCRIPTION_MAX_LENGTH,
|
|
22950
22952
|
invalid: seoDescriptionTooLong,
|
|
22951
22953
|
placeholder: "Enter SEO meta description...",
|
|
22952
22954
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "resize-none border-ods-border bg-ods-bg text-ods-text-primary", SEO_MEDIA_BOX_HEIGHT)
|
|
@@ -23658,7 +23660,7 @@ function VideoBitesDisplay({
|
|
|
23658
23660
|
filterPublished = true,
|
|
23659
23661
|
showTitle = true
|
|
23660
23662
|
}) {
|
|
23661
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23663
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LT2WR4Ocjs.VideoBitesStrip, { bites, title, filterPublished, showTitle });
|
|
23662
23664
|
}
|
|
23663
23665
|
|
|
23664
23666
|
// src/components/features/walkthrough-video.tsx
|
|
@@ -23687,7 +23689,7 @@ function WalkthroughVideo({
|
|
|
23687
23689
|
onOpenChange,
|
|
23688
23690
|
defaultOpen,
|
|
23689
23691
|
defaultOpenPaused,
|
|
23690
|
-
deepLinkParam =
|
|
23692
|
+
deepLinkParam = _chunkSBXL5EKEcjs.WALKTHROUGH_OPEN_QUERY_PARAM,
|
|
23691
23693
|
autoPlayCard = false,
|
|
23692
23694
|
label = "Play Demo Video",
|
|
23693
23695
|
placement,
|
|
@@ -23704,7 +23706,7 @@ function WalkthroughVideo({
|
|
|
23704
23706
|
const inline = placement === "inline";
|
|
23705
23707
|
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
23706
23708
|
const dismissEnabled = dismissal !== false;
|
|
23707
|
-
const storageKey = dismissEnabled && dismissal.storageKey ||
|
|
23709
|
+
const storageKey = dismissEnabled && dismissal.storageKey || _chunkSBXL5EKEcjs.WALKTHROUGH_VIDEO_DISMISS_KEY;
|
|
23708
23710
|
const dismissalId = _optionalChain([video, 'optionalAccess', _493 => _493.id]) != null ? String(video.id) : "dismissed";
|
|
23709
23711
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
23710
23712
|
const [dismissed, setDismissed] = _react.useState.call(void 0, false);
|
|
@@ -23716,7 +23718,7 @@ function WalkthroughVideo({
|
|
|
23716
23718
|
let delayElapsed = false;
|
|
23717
23719
|
let interacted = inline;
|
|
23718
23720
|
const reveal = () => {
|
|
23719
|
-
if (dismissEnabled &&
|
|
23721
|
+
if (dismissEnabled && _chunkSBXL5EKEcjs.isWalkthroughDismissed.call(void 0, storageKey, dismissalId)) {
|
|
23720
23722
|
setDismissed(true);
|
|
23721
23723
|
return;
|
|
23722
23724
|
}
|
|
@@ -23753,7 +23755,7 @@ function WalkthroughVideo({
|
|
|
23753
23755
|
if (idleHandle !== null && typeof cic === "function") cic(idleHandle);
|
|
23754
23756
|
};
|
|
23755
23757
|
}, [appearDelayMs, dismissEnabled, storageKey, dismissalId, hasVideo, videoId, inline]);
|
|
23756
|
-
const hydrated =
|
|
23758
|
+
const hydrated = _chunk2LT2WR4Ocjs.useIsHydrated.call(void 0, );
|
|
23757
23759
|
const previewSuppressed = _react.useMemo.call(void 0, () => {
|
|
23758
23760
|
if (!hydrated) return false;
|
|
23759
23761
|
try {
|
|
@@ -24003,7 +24005,7 @@ function WalkthroughVideo({
|
|
|
24003
24005
|
(e) => {
|
|
24004
24006
|
e.stopPropagation();
|
|
24005
24007
|
pausePreviewNow();
|
|
24006
|
-
if (dismissEnabled)
|
|
24008
|
+
if (dismissEnabled) _chunkSBXL5EKEcjs.dismissWalkthrough.call(void 0, storageKey, dismissalId);
|
|
24007
24009
|
setDismissed(true);
|
|
24008
24010
|
},
|
|
24009
24011
|
[dismissEnabled, storageKey, dismissalId, pausePreviewNow]
|
|
@@ -24178,7 +24180,7 @@ function WalkthroughVideo({
|
|
|
24178
24180
|
`card-${embedUrlKey}`
|
|
24179
24181
|
) }),
|
|
24180
24182
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24181
|
-
|
|
24183
|
+
_chunk2LT2WR4Ocjs.CardHitLayer,
|
|
24182
24184
|
{
|
|
24183
24185
|
label: video.title ? `${label}: ${video.title}` : label,
|
|
24184
24186
|
onPointerDown: pausePreviewNow,
|
|
@@ -24350,7 +24352,7 @@ function useWalkthroughVideo(opts) {
|
|
|
24350
24352
|
const { endpoint, initialData, enabled: enabledGiven = true, transformCaptionsUrl } = opts;
|
|
24351
24353
|
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
24352
24354
|
const enabled = enabledGiven && !inScope;
|
|
24353
|
-
const captions =
|
|
24355
|
+
const captions = _chunk2LT2WR4Ocjs.useCaptions.call(void 0, );
|
|
24354
24356
|
const query = _reactquery.useQuery.call(void 0, {
|
|
24355
24357
|
queryKey: ["walkthrough-video", endpoint],
|
|
24356
24358
|
enabled,
|
|
@@ -25101,7 +25103,7 @@ function HighlightConfigSection({
|
|
|
25101
25103
|
disabled = false,
|
|
25102
25104
|
className = ""
|
|
25103
25105
|
}) {
|
|
25104
|
-
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,
|
|
25106
|
+
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, _chunkSBXL5EKEcjs.Field, { label: "Target Duration", children: (f) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25105
25107
|
_chunkIJCSQFLDcjs.Select,
|
|
25106
25108
|
{
|
|
25107
25109
|
value: targetDurationSeconds.toString(),
|
|
@@ -25202,7 +25204,7 @@ var AIStatusIndicator = ({
|
|
|
25202
25204
|
}) => {
|
|
25203
25205
|
const config = statusConfig[status];
|
|
25204
25206
|
const displayText = message || config.label;
|
|
25205
|
-
const confidenceLabel = showConfidence && confidence !== void 0 ? `${
|
|
25207
|
+
const confidenceLabel = showConfidence && confidence !== void 0 ? `${_chunkSBXL5EKEcjs.getConfidenceLabel.call(void 0, confidence)} (${confidence}%)` : null;
|
|
25206
25208
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "inline-flex items-center gap-2 rounded-lg px-3 py-1.5", config.bgColor, className), children: [
|
|
25207
25209
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25208
25210
|
_chunkUNFCRSYIcjs.SparklesIcon,
|
|
@@ -25210,7 +25212,7 @@ var AIStatusIndicator = ({
|
|
|
25210
25212
|
size: 16,
|
|
25211
25213
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
25212
25214
|
status === "loading" && _chunk3TOWCFIKcjs.LIVE_PULSE_CLASS,
|
|
25213
|
-
confidence !== void 0 && status === "success" ?
|
|
25215
|
+
confidence !== void 0 && status === "success" ? _chunkSBXL5EKEcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25214
25216
|
)
|
|
25215
25217
|
}
|
|
25216
25218
|
),
|
|
@@ -25219,7 +25221,7 @@ var AIStatusIndicator = ({
|
|
|
25219
25221
|
{
|
|
25220
25222
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
25221
25223
|
"text-h6",
|
|
25222
|
-
confidence !== void 0 && status === "success" ?
|
|
25224
|
+
confidence !== void 0 && status === "success" ? _chunkSBXL5EKEcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25223
25225
|
),
|
|
25224
25226
|
children: displayText
|
|
25225
25227
|
}
|
|
@@ -25229,8 +25231,8 @@ var AIStatusIndicator = ({
|
|
|
25229
25231
|
{
|
|
25230
25232
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
25231
25233
|
"rounded-full border px-2 py-0.5 text-h6",
|
|
25232
|
-
|
|
25233
|
-
|
|
25234
|
+
_chunkSBXL5EKEcjs.getConfidenceBorderClass.call(void 0, confidence),
|
|
25235
|
+
_chunkSBXL5EKEcjs.getConfidenceTextClass.call(void 0, confidence)
|
|
25234
25236
|
),
|
|
25235
25237
|
children: confidenceLabel
|
|
25236
25238
|
}
|
|
@@ -25851,7 +25853,7 @@ function ApprovalLevelView({
|
|
|
25851
25853
|
] });
|
|
25852
25854
|
}
|
|
25853
25855
|
function ApprovalLevelSkeleton({ editable = false, showLabel = true, className }) {
|
|
25854
|
-
const name = showLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: LEVEL_NAME_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25856
|
+
const name = showLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: LEVEL_NAME_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LT2WR4Ocjs.TextHold, { children: LONGEST_LEVEL_LABEL }) }) : null;
|
|
25855
25857
|
if (!editable) {
|
|
25856
25858
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "aria-hidden": true, className: _chunk63A4GZMBcjs.cn.call(void 0, READ_ONLY_ROW_CLASS, className), children: [
|
|
25857
25859
|
name,
|
|
@@ -26110,7 +26112,7 @@ function OpenPolicyButton({ href, name }) {
|
|
|
26110
26112
|
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,
|
|
26111
26113
|
_chunkFCZAUK4Dcjs.Button,
|
|
26112
26114
|
{
|
|
26113
|
-
onClick: loading ? void 0 :
|
|
26115
|
+
onClick: loading ? void 0 : _chunkSBXL5EKEcjs.openInNewTab.call(void 0, href),
|
|
26114
26116
|
disabled: loading,
|
|
26115
26117
|
variant: "outline",
|
|
26116
26118
|
size: "icon",
|
|
@@ -26484,7 +26486,7 @@ function OpenTenantButton({ href, name }) {
|
|
|
26484
26486
|
/* @__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,
|
|
26485
26487
|
_chunkFCZAUK4Dcjs.Button,
|
|
26486
26488
|
{
|
|
26487
|
-
onClick: loading ? void 0 :
|
|
26489
|
+
onClick: loading ? void 0 : _chunkSBXL5EKEcjs.openInNewTab.call(void 0, href),
|
|
26488
26490
|
disabled: loading,
|
|
26489
26491
|
variant: "outline",
|
|
26490
26492
|
size: "icon",
|
|
@@ -26619,7 +26621,7 @@ function WaitlistForm({
|
|
|
26619
26621
|
const { toast } = _chunkT266OITJcjs.useToast.call(void 0, );
|
|
26620
26622
|
const { honeypotInputProps, getSignals, resetSignals } = _chunkT266OITJcjs.useHumanitySignals.call(void 0, );
|
|
26621
26623
|
const [smsConsent, setSmsConsent] = _react.useState.call(void 0, false);
|
|
26622
|
-
const isClient =
|
|
26624
|
+
const isClient = _chunk2LT2WR4Ocjs.useIsHydrated.call(void 0, );
|
|
26623
26625
|
const [isPhoneInvalid, setIsPhoneInvalid] = _react.useState.call(void 0, false);
|
|
26624
26626
|
const [showConsentError, setShowConsentError] = _react.useState.call(void 0, false);
|
|
26625
26627
|
const rescue = _chunkT266OITJcjs.useFormRescue.call(void 0, {
|
|
@@ -26634,7 +26636,7 @@ function WaitlistForm({
|
|
|
26634
26636
|
_react.useEffect.call(void 0, () => {
|
|
26635
26637
|
rescue.track({ email, phone }, null);
|
|
26636
26638
|
}, [email, phone, rescue]);
|
|
26637
|
-
const isMailDomainGeneric =
|
|
26639
|
+
const isMailDomainGeneric = _chunkSBXL5EKEcjs.hasGenericEmailDomain.call(void 0, email);
|
|
26638
26640
|
const [syncedDefaultEmail, setSyncedDefaultEmail] = _react.useState.call(void 0, defaultEmail);
|
|
26639
26641
|
if (syncedDefaultEmail !== defaultEmail) {
|
|
26640
26642
|
setSyncedDefaultEmail(defaultEmail);
|
|
@@ -26668,7 +26670,7 @@ function WaitlistForm({
|
|
|
26668
26670
|
setShowConsentError(true);
|
|
26669
26671
|
return;
|
|
26670
26672
|
}
|
|
26671
|
-
const finalPhone = phone ?
|
|
26673
|
+
const finalPhone = phone ? _chunkSBXL5EKEcjs.formatPhoneE164.call(void 0, phone, countryCode) : void 0;
|
|
26672
26674
|
try {
|
|
26673
26675
|
await onRegister(email, finalPhone, getSignals(), rescue.submitFields());
|
|
26674
26676
|
rescue.complete();
|
|
@@ -28823,7 +28825,7 @@ function getDeviceStatusConfig(status) {
|
|
|
28823
28825
|
}
|
|
28824
28826
|
}
|
|
28825
28827
|
function getDeviceOperatingSystem(osType) {
|
|
28826
|
-
return
|
|
28828
|
+
return _chunkSBXL5EKEcjs.getOSPlatformId.call(void 0, osType);
|
|
28827
28829
|
}
|
|
28828
28830
|
|
|
28829
28831
|
// src/components/features/devices/device-statuses.ts
|
|
@@ -30399,7 +30401,7 @@ function DevicesPanelView({
|
|
|
30399
30401
|
actionsVariant: "icon-buttons",
|
|
30400
30402
|
className,
|
|
30401
30403
|
selector: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30402
|
-
|
|
30404
|
+
_chunk2LT2WR4Ocjs.TabSelector,
|
|
30403
30405
|
{
|
|
30404
30406
|
value: viewMode,
|
|
30405
30407
|
onValueChange: (value) => _optionalChain([onViewModeChange, 'optionalCall', _674 => _674(value)]),
|
|
@@ -30934,11 +30936,11 @@ var ToolBadge = ({
|
|
|
30934
30936
|
iconClassName
|
|
30935
30937
|
}) => {
|
|
30936
30938
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
30937
|
-
const text = _nullishCoalesce(label, () => ( (toolType ?
|
|
30939
|
+
const text = _nullishCoalesce(label, () => ( (toolType ? _chunkSBXL5EKEcjs.getToolLabel.call(void 0, toolType) : "")));
|
|
30938
30940
|
const mark = _nullishCoalesce(icon, () => ( (toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQDDBOCG3cjs.ToolIcon, { toolType, className: iconClassName, size: 16 }) : null)));
|
|
30939
30941
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ToolBadgeSkeleton, { variant, icon: !!mark, className });
|
|
30940
30942
|
const linked = (node, linkClassName) => href && targetPlatform ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30941
|
-
|
|
30943
|
+
_chunk2LT2WR4Ocjs.NavLinkAnchorViaRuntime,
|
|
30942
30944
|
{
|
|
30943
30945
|
href,
|
|
30944
30946
|
targetPlatform,
|
|
@@ -31088,7 +31090,7 @@ function LogsTableView({
|
|
|
31088
31090
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31089
31091
|
ToolBadge,
|
|
31090
31092
|
{
|
|
31091
|
-
toolType:
|
|
31093
|
+
toolType: _chunkSBXL5EKEcjs.normalizeToolTypeWithFallback.call(void 0, row.original.source.toolType),
|
|
31092
31094
|
iconClassName: "h-4 w-4 content-md:h-6 content-md:w-6"
|
|
31093
31095
|
}
|
|
31094
31096
|
),
|
|
@@ -31100,7 +31102,7 @@ function LogsTableView({
|
|
|
31100
31102
|
filter: {
|
|
31101
31103
|
options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess', _682 => _682.toolTypes, 'access', _683 => _683.map, 'call', _684 => _684((toolType) => ({
|
|
31102
31104
|
id: toolType,
|
|
31103
|
-
label:
|
|
31105
|
+
label: _chunkSBXL5EKEcjs.toToolLabel.call(void 0, toolType),
|
|
31104
31106
|
value: toolType
|
|
31105
31107
|
}))]), () => ( []))
|
|
31106
31108
|
}
|
|
@@ -31149,7 +31151,7 @@ function LogsTableView({
|
|
|
31149
31151
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31150
31152
|
LogRowButton,
|
|
31151
31153
|
{
|
|
31152
|
-
onClick: getLogHref ?
|
|
31154
|
+
onClick: getLogHref ? _chunkSBXL5EKEcjs.openInNewTab.call(void 0, getLogHref(row.original)) : void 0,
|
|
31153
31155
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
31154
31156
|
label: "Open in new tab"
|
|
31155
31157
|
}
|
|
@@ -31471,7 +31473,7 @@ function OpenInNewTabCell({ href }) {
|
|
|
31471
31473
|
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,
|
|
31472
31474
|
_chunkFCZAUK4Dcjs.Button,
|
|
31473
31475
|
{
|
|
31474
|
-
onClick: loading ? void 0 :
|
|
31476
|
+
onClick: loading ? void 0 : _chunkSBXL5EKEcjs.openInNewTab.call(void 0, href),
|
|
31475
31477
|
disabled: loading,
|
|
31476
31478
|
variant: "outline",
|
|
31477
31479
|
size: "icon",
|
|
@@ -31660,9 +31662,9 @@ function ScriptSchedulesTable({
|
|
|
31660
31662
|
|
|
31661
31663
|
// src/components/features/scripts/shell-types.ts
|
|
31662
31664
|
var SCRIPT_SHELL_TYPES = [
|
|
31663
|
-
{ id:
|
|
31664
|
-
{ id:
|
|
31665
|
-
{ id:
|
|
31665
|
+
{ id: _chunkSBXL5EKEcjs.ShellTypeValues.POWERSHELL, label: "PowerShell", value: "powershell", icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon },
|
|
31666
|
+
{ id: _chunkSBXL5EKEcjs.ShellTypeValues.CMD, label: "CMD", value: "cmd", icon: _chunkNIVJEJSGcjs.TerminalSquareIcon },
|
|
31667
|
+
{ id: _chunkSBXL5EKEcjs.ShellTypeValues.BASH, label: "Bash", value: "bash", icon: _chunkTRUW6DDAcjs.TerminalIcon }
|
|
31666
31668
|
];
|
|
31667
31669
|
function scriptShellType(value) {
|
|
31668
31670
|
return SCRIPT_SHELL_TYPES.find((shell) => shell.value === value);
|
|
@@ -33138,7 +33140,7 @@ function ScheduleFormFields({
|
|
|
33138
33140
|
disabled = false,
|
|
33139
33141
|
renderScriptSearch,
|
|
33140
33142
|
timeReferenceGate = "off",
|
|
33141
|
-
platforms =
|
|
33143
|
+
platforms = _chunkSBXL5EKEcjs.OS_PLATFORMS,
|
|
33142
33144
|
comingSoonPlatforms = [],
|
|
33143
33145
|
getTimeSlots,
|
|
33144
33146
|
nameLayout = "stacked",
|
|
@@ -33284,7 +33286,7 @@ function ScheduleFormFields({
|
|
|
33284
33286
|
// src/components/features/scripts/schedule-form/schedule-script-search-field.tsx
|
|
33285
33287
|
|
|
33286
33288
|
function ScriptPlatformIcons({ platforms }) {
|
|
33287
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children:
|
|
33289
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children: _chunkSBXL5EKEcjs.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)) });
|
|
33288
33290
|
}
|
|
33289
33291
|
function ScheduleScriptSearchField({
|
|
33290
33292
|
scriptId,
|
|
@@ -33357,7 +33359,7 @@ function KnowledgeBaseOpenButton({ href }) {
|
|
|
33357
33359
|
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,
|
|
33358
33360
|
_chunkFCZAUK4Dcjs.Button,
|
|
33359
33361
|
{
|
|
33360
|
-
onClick: loading ? void 0 :
|
|
33362
|
+
onClick: loading ? void 0 : _chunkSBXL5EKEcjs.openInNewTab.call(void 0, href),
|
|
33361
33363
|
disabled: loading,
|
|
33362
33364
|
variant: "outline",
|
|
33363
33365
|
size: "icon",
|
|
@@ -33708,7 +33710,7 @@ function ConversationCard({
|
|
|
33708
33710
|
style: tint,
|
|
33709
33711
|
onClick: selection && ((event) => {
|
|
33710
33712
|
if (event.button !== 0 || _optionalChain([window, 'access', _748 => _748.getSelection, 'call', _749 => _749(), 'optionalAccess', _750 => _750.toString, 'call', _751 => _751()])) return;
|
|
33711
|
-
if (!
|
|
33713
|
+
if (!_chunkSBXL5EKEcjs.isOwnClick.call(void 0, event.target, event.currentTarget, { controls: true })) return;
|
|
33712
33714
|
selection.onToggle();
|
|
33713
33715
|
}),
|
|
33714
33716
|
children: [
|
|
@@ -33731,7 +33733,7 @@ function ConversationCard({
|
|
|
33731
33733
|
)
|
|
33732
33734
|
),
|
|
33733
33735
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33734
|
-
|
|
33736
|
+
_chunkSBXL5EKEcjs.ChatTurn,
|
|
33735
33737
|
{
|
|
33736
33738
|
avatar: requester.avatar,
|
|
33737
33739
|
name: requester.name,
|
|
@@ -33752,7 +33754,7 @@ function ConversationCard({
|
|
|
33752
33754
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: CONTEXT_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess', _752 => _752.context])), children: context.text })
|
|
33753
33755
|
] }),
|
|
33754
33756
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33755
|
-
|
|
33757
|
+
_chunkSBXL5EKEcjs.ChatTurn,
|
|
33756
33758
|
{
|
|
33757
33759
|
avatar: responder.avatar,
|
|
33758
33760
|
name: responder.name,
|
|
@@ -33797,7 +33799,7 @@ function ConversationCardSkeleton({
|
|
|
33797
33799
|
{
|
|
33798
33800
|
selection: selection && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.InertWhileLoading, { className: "contents", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectionToggle, { pressed: selection.pressed }) }),
|
|
33799
33801
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33800
|
-
|
|
33802
|
+
_chunkSBXL5EKEcjs.ChatTurn,
|
|
33801
33803
|
{
|
|
33802
33804
|
loading: true,
|
|
33803
33805
|
name: "",
|
|
@@ -33821,7 +33823,7 @@ function ConversationCardSkeleton({
|
|
|
33821
33823
|
] })
|
|
33822
33824
|
] }),
|
|
33823
33825
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33824
|
-
|
|
33826
|
+
_chunkSBXL5EKEcjs.ChatTurn,
|
|
33825
33827
|
{
|
|
33826
33828
|
loading: true,
|
|
33827
33829
|
name: "",
|