@flamingo-stack/openframe-frontend-core 0.0.798 → 0.0.800
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-TJQGKIXB.cjs → chunk-3C6JR5Z5.cjs} +32 -32
- package/dist/{chunk-C2UZWRU5.cjs → chunk-5LTKE6D3.cjs} +16 -16
- package/dist/{chunk-FO3N6HDS.cjs → chunk-5PDOKPBF.cjs} +13 -13
- package/dist/{chunk-BWTCULUN.cjs → chunk-CDLOQCJC.cjs} +4 -4
- package/dist/{chunk-2M6HS23A.cjs → chunk-CM2UGR4I.cjs} +30 -30
- package/dist/{chunk-NK2FSEWD.cjs → chunk-DUSCG2EO.cjs} +4 -4
- package/dist/{chunk-FIKIPO4F.cjs → chunk-FAUVDMH4.cjs} +1 -1
- package/dist/{chunk-VUHPWSAE.cjs → chunk-FCT7VKWG.cjs} +25 -25
- package/dist/{chunk-SDV335EO.cjs → chunk-FFRFKWTZ.cjs} +4 -4
- package/dist/{chunk-XJD7IZR2.cjs → chunk-FS4TVAE7.cjs} +48 -48
- package/dist/{chunk-5IU64YEA.cjs → chunk-IX2D26OR.cjs} +39 -39
- package/dist/{chunk-ZXRAYCNB.cjs → chunk-KH5DRO4V.cjs} +3 -3
- package/dist/{chunk-AVAE5B2A.cjs → chunk-KVGWOJCX.cjs} +2 -2
- package/dist/{chunk-6YCUP6JJ.cjs → chunk-LTOSJI6B.cjs} +14 -14
- package/dist/{chunk-ND7ECICK.cjs → chunk-OEEFUB25.cjs} +70 -45
- package/dist/{chunk-EYE5FLHZ.cjs → chunk-OGUBSDU5.cjs} +11 -11
- package/dist/{chunk-6F2UHDCB.cjs → chunk-OUKKLSME.cjs} +3 -3
- package/dist/{chunk-W25OB2R6.cjs → chunk-PQNRSUQ6.cjs} +11 -11
- package/dist/{chunk-W5ZQDEDT.cjs → chunk-PZVBTLLQ.cjs} +147 -131
- package/dist/{chunk-PTQVGWJE.cjs → chunk-S7CBD6KF.cjs} +61 -61
- package/dist/{chunk-O6KQ64RI.cjs → chunk-UYGXJ5SQ.cjs} +2 -2
- package/dist/{chunk-WUBTAN27.cjs → chunk-WWWCFNKI.cjs} +68 -68
- package/dist/{chunk-KFDAL6NA.cjs → chunk-XAJPXPQ6.cjs} +2 -2
- package/dist/{chunk-ZOK4OWMJ.cjs → chunk-Y5XHMEBB.cjs} +2 -2
- package/dist/{chunk-T5OCU3EL.cjs → chunk-ZPVFFPQM.cjs} +4 -4
- package/dist/{cloud-tenants-XGL3DYSG.cjs → cloud-tenants-S3BDIJHM.cjs} +6 -6
- package/dist/components/case-studies/index.cjs +20 -20
- 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/loading/loading-fallback.d.ts +27 -3
- package/dist/components/loading/loading-fallback.d.ts.map +1 -1
- package/dist/components/loading/loading-fallback.js +17 -9
- 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/components/ui/index.d.ts +1 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +9 -1
- package/dist/components/ui/markdown-editor.d.ts.map +1 -1
- package/dist/components/ui/trendline.d.ts +1 -1
- package/dist/components/ui/trendline.d.ts.map +1 -1
- package/dist/components/ui/trendline.js +11 -2
- package/dist/{devices-U2NQYDI7.cjs → devices-C6OOVBJK.cjs} +7 -7
- package/dist/{embeddable-chat-MPJLN4C6.cjs → embeddable-chat-2EBDLEVA.cjs} +62 -62
- package/dist/index.cjs +10 -10
- package/dist/{knowledge-BUY6TSK6.cjs → knowledge-YA5SFLQP.cjs} +7 -7
- package/dist/loading-standard/engine.d.mts +22 -4
- package/dist/loading-standard/engine.d.mts.map +1 -1
- package/dist/loading-standard/rule-examples.d.mts.map +1 -1
- package/dist/{logs-FUPQ7XYE.cjs → logs-LQX2CNVB.cjs} +14 -14
- package/dist/{policies-NASADYBK.cjs → policies-LWAUO6NR.cjs} +10 -10
- package/dist/{scripts-BGLTDQKV.cjs → scripts-W46RQ64X.cjs} +11 -11
- package/dist/{software-update-QDIZ32KU.cjs → software-update-OVR26DUF.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/layout/page-heading.tsx +3 -1
- package/src/components/loading/loading-fallback.tsx +52 -12
- package/src/components/ui/fade-preview.tsx +13 -2
- package/src/components/ui/index.ts +13 -1
- package/src/components/ui/markdown-editor.tsx +1 -0
- package/src/components/ui/trendline.tsx +27 -10
- package/src/loading-standard/engine.mjs +170 -14
- package/src/loading-standard/rule-examples.mjs +50 -0
- 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 _chunkFCT7VKWGcjs = require('./chunk-FCT7VKWG.cjs');
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
|
|
@@ -127,7 +127,7 @@ var _chunkVUHPWSAEcjs = require('./chunk-VUHPWSAE.cjs');
|
|
|
127
127
|
|
|
128
128
|
|
|
129
129
|
|
|
130
|
-
var
|
|
130
|
+
var _chunkOEEFUB25cjs = require('./chunk-OEEFUB25.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 = _chunkOEEFUB25cjs.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
|
+
..._chunkFCT7VKWGcjs.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
|
+
..._chunkFCT7VKWGcjs.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, _chunkFCT7VKWGcjs.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 = _chunkOEEFUB25cjs.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 = _chunkOEEFUB25cjs.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 = _chunkOEEFUB25cjs.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 (!_chunkOEEFUB25cjs.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 (!_chunkOEEFUB25cjs.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 (!_chunkOEEFUB25cjs.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) => _chunkFCT7VKWGcjs.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, () => _chunkOEEFUB25cjs.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
|
+
_chunkOEEFUB25cjs.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 = _chunkOEEFUB25cjs.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 = _chunkOEEFUB25cjs.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 = _chunkFCT7VKWGcjs.normalizeOSType.call(void 0, osType);
|
|
10475
10482
|
if (!normalized && !labelOnly) return null;
|
|
10476
|
-
const label =
|
|
10477
|
-
const IconComponent =
|
|
10483
|
+
const label = _chunkFCT7VKWGcjs.getOSLabel.call(void 0, osType);
|
|
10484
|
+
const IconComponent = _chunkFCT7VKWGcjs.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 = _chunkFCT7VKWGcjs.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,
|
|
@@ -11168,7 +11175,15 @@ function Spark({ values, toneClass }) {
|
|
|
11168
11175
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "circle", { cx: last.x, cy: last.y, r: 2, fill: "currentColor" })
|
|
11169
11176
|
] });
|
|
11170
11177
|
}
|
|
11171
|
-
function Trendline({
|
|
11178
|
+
function Trendline({
|
|
11179
|
+
values,
|
|
11180
|
+
label,
|
|
11181
|
+
change,
|
|
11182
|
+
higherIsBetter = false,
|
|
11183
|
+
tones,
|
|
11184
|
+
details,
|
|
11185
|
+
side = "top"
|
|
11186
|
+
}) {
|
|
11172
11187
|
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, )) {
|
|
11173
11188
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: BOX_CLASS, "aria-hidden": "true", children: [
|
|
11174
11189
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { as: "span", className: `${SPARK_CLASS} rounded-sm` }),
|
|
@@ -11221,7 +11236,8 @@ function TrendHistory({ title, columns, rows, loadingRows, error, children }) {
|
|
|
11221
11236
|
] });
|
|
11222
11237
|
}
|
|
11223
11238
|
function TrendHistoryCell({ column, value }) {
|
|
11224
|
-
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ))
|
|
11239
|
+
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ))
|
|
11240
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: column.align === "right" ? "ml-auto w-8" : "w-12" });
|
|
11225
11241
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${column.align === "right" ? "text-right tabular-nums" : "text-left"} text-ods-text-primary`, children: value });
|
|
11226
11242
|
}
|
|
11227
11243
|
|
|
@@ -12802,7 +12818,7 @@ function DataTableRowImpl({
|
|
|
12802
12818
|
const containerRef = _react.useRef.call(void 0, null);
|
|
12803
12819
|
const handleClick = _react.useCallback.call(void 0,
|
|
12804
12820
|
(e) => {
|
|
12805
|
-
if (!
|
|
12821
|
+
if (!_chunkFCT7VKWGcjs.isOwnClick.call(void 0, e.target, containerRef.current)) {
|
|
12806
12822
|
if (isLinkMode) e.preventDefault();
|
|
12807
12823
|
return;
|
|
12808
12824
|
}
|
|
@@ -12816,7 +12832,7 @@ function DataTableRowImpl({
|
|
|
12816
12832
|
if (!(target instanceof Element) || !_optionalChain([container, 'optionalAccess', _222 => _222.contains, 'call', _223 => _223(target)])) return;
|
|
12817
12833
|
const nestedLink = target.closest("a");
|
|
12818
12834
|
if (nestedLink && nestedLink !== container && container.contains(nestedLink)) return;
|
|
12819
|
-
if (!
|
|
12835
|
+
if (!_chunkFCT7VKWGcjs.isOwnClick.call(void 0, target, container) || target.closest(ROW_LINK_CONTROL_SELECTOR)) e.preventDefault();
|
|
12820
12836
|
}, []);
|
|
12821
12837
|
const containerClassName = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
12822
12838
|
DATA_TABLE_ROW_FRAME_CLASS,
|
|
@@ -12945,7 +12961,7 @@ function DataTableBody({
|
|
|
12945
12961
|
const skeletonRowClassName = typeof rowClassName === "string" ? rowClassName : void 0;
|
|
12946
12962
|
if (loading && loadingCells && hasRows) {
|
|
12947
12963
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12948
|
-
|
|
12964
|
+
_chunkOEEFUB25cjs.LoadingFallback,
|
|
12949
12965
|
{
|
|
12950
12966
|
label: "Loading results",
|
|
12951
12967
|
status: loadingRegion && !inScope,
|
|
@@ -13293,7 +13309,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13293
13309
|
// child of the cell.
|
|
13294
13310
|
_optionalChain([meta, 'optionalAccess', _241 => _241.hint]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13295
13311
|
filterTrigger,
|
|
13296
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13312
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCT7VKWGcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13297
13313
|
] }) : filterTrigger
|
|
13298
13314
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13299
13315
|
"div",
|
|
@@ -13318,7 +13334,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13318
13334
|
// centred on the row.
|
|
13319
13335
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13320
13336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13321
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13337
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCT7VKWGcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13322
13338
|
] })
|
|
13323
13339
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13324
13340
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -13557,7 +13573,7 @@ function PhoneInput({
|
|
|
13557
13573
|
placeholder = "Phone Number (optional)",
|
|
13558
13574
|
onKeyDown
|
|
13559
13575
|
}) {
|
|
13560
|
-
const { priority, others } = _react.useMemo.call(void 0, () =>
|
|
13576
|
+
const { priority, others } = _react.useMemo.call(void 0, () => _chunkFCT7VKWGcjs.getCountryPhoneData.call(void 0, ), []);
|
|
13561
13577
|
const selectedCountry = _react.useMemo.call(void 0,
|
|
13562
13578
|
() => [...priority, ...others].find((c) => c.code === countryCode),
|
|
13563
13579
|
[countryCode, priority, others]
|
|
@@ -13572,7 +13588,7 @@ function PhoneInput({
|
|
|
13572
13588
|
_optionalChain([onValidationChange, 'optionalCall', _258 => _258(false)]);
|
|
13573
13589
|
return;
|
|
13574
13590
|
}
|
|
13575
|
-
const invalid = !
|
|
13591
|
+
const invalid = !_chunkFCT7VKWGcjs.validatePhoneNumber.call(void 0, phone, countryCode);
|
|
13576
13592
|
setIsInvalid(invalid);
|
|
13577
13593
|
_optionalChain([onValidationChange, 'optionalCall', _259 => _259(invalid)]);
|
|
13578
13594
|
},
|
|
@@ -14431,7 +14447,7 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14431
14447
|
),
|
|
14432
14448
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xsf)]", children: [
|
|
14433
14449
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14434
|
-
|
|
14450
|
+
_chunkOEEFUB25cjs.TabSelector,
|
|
14435
14451
|
{
|
|
14436
14452
|
label: "Search engines",
|
|
14437
14453
|
value: choice,
|
|
@@ -14488,7 +14504,7 @@ function useMarkdownLinkCommand() {
|
|
|
14488
14504
|
buttonProps: { "aria-label": "Add or edit a link (ctrl + l)", title: "Add or edit a link (ctrl + l)" },
|
|
14489
14505
|
icon: command.icon,
|
|
14490
14506
|
execute: (state, api) => {
|
|
14491
|
-
const existing =
|
|
14507
|
+
const existing = _chunkOEEFUB25cjs.findMarkdownLinkAt.call(void 0, state.text, state.selection.start, state.selection.end);
|
|
14492
14508
|
setPending(
|
|
14493
14509
|
existing ? {
|
|
14494
14510
|
api,
|
|
@@ -14519,7 +14535,7 @@ function useMarkdownLinkCommand() {
|
|
|
14519
14535
|
initial: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _316 => _316.initial]), () => ( EMPTY_LINK)),
|
|
14520
14536
|
editing: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _317 => _317.editing]), () => ( false)),
|
|
14521
14537
|
onSubmit: (link) => {
|
|
14522
|
-
if (pending) write(pending,
|
|
14538
|
+
if (pending) write(pending, _chunkOEEFUB25cjs.formatMarkdownLink.call(void 0, link));
|
|
14523
14539
|
},
|
|
14524
14540
|
onRemove: () => {
|
|
14525
14541
|
if (pending) write(pending, pending.initial.text);
|
|
@@ -14685,7 +14701,7 @@ function MarkdownEditor({
|
|
|
14685
14701
|
setUploadProgress(`Uploading ${file.name}...`);
|
|
14686
14702
|
try {
|
|
14687
14703
|
const url = await onUploadFile(file);
|
|
14688
|
-
const isImage =
|
|
14704
|
+
const isImage = _chunkFAUVDMH4cjs.fileMediaType.call(void 0, file) === "image";
|
|
14689
14705
|
const markdown = isImage ? `` : `[${file.name}](${url})`;
|
|
14690
14706
|
insertTextAtCursor(markdown);
|
|
14691
14707
|
_optionalChain([onFileUploaded, 'optionalCall', _320 => _320(url, file.name)]);
|
|
@@ -14815,7 +14831,7 @@ function MarkdownEditor({
|
|
|
14815
14831
|
type: "file",
|
|
14816
14832
|
className: "hidden",
|
|
14817
14833
|
onChange: handleFileInputChange,
|
|
14818
|
-
accept: `${
|
|
14834
|
+
accept: `${_chunkFAUVDMH4cjs.IMAGE_FILE_ACCEPT},.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.zip,.txt`
|
|
14819
14835
|
}
|
|
14820
14836
|
),
|
|
14821
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,
|
|
@@ -15229,7 +15245,7 @@ function matchesAccept2(file, accept) {
|
|
|
15229
15245
|
return patterns.some((pattern) => {
|
|
15230
15246
|
if (pattern.startsWith(".")) return fileName.endsWith(pattern);
|
|
15231
15247
|
if (pattern.endsWith("/*"))
|
|
15232
|
-
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);
|
|
15233
15249
|
return fileType === pattern;
|
|
15234
15250
|
});
|
|
15235
15251
|
}
|
|
@@ -15237,7 +15253,7 @@ function ImageUploader({
|
|
|
15237
15253
|
value,
|
|
15238
15254
|
onChange,
|
|
15239
15255
|
onRemove,
|
|
15240
|
-
accept =
|
|
15256
|
+
accept = _chunkFAUVDMH4cjs.IMAGE_FILE_ACCEPT,
|
|
15241
15257
|
maxSize = DEFAULT_MAX_SIZE,
|
|
15242
15258
|
label = "Cover Image",
|
|
15243
15259
|
description = "(Click Here or Drag and Drop)",
|
|
@@ -16398,7 +16414,7 @@ function TicketInfoSection({
|
|
|
16398
16414
|
expanded && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
16399
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" }) }),
|
|
16400
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: [
|
|
16401
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16417
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOEEFUB25cjs.SimpleMarkdownRenderer, { content: description }),
|
|
16402
16418
|
attachments && attachments.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Attachments", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketAttachmentsList, { attachments }) }),
|
|
16403
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)) }) }),
|
|
16404
16420
|
(notes || onAddNote) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Notes", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16883,7 +16899,7 @@ function PhotoWall({
|
|
|
16883
16899
|
gap: COLUMN_GAP_PX
|
|
16884
16900
|
};
|
|
16885
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,
|
|
16886
|
-
|
|
16902
|
+
_chunkOEEFUB25cjs.MarqueeWall,
|
|
16887
16903
|
{
|
|
16888
16904
|
axis: "y",
|
|
16889
16905
|
reverse: index % 2 === 1,
|
|
@@ -17443,7 +17459,7 @@ var TRIAL_TERM_ICONS = {
|
|
|
17443
17459
|
};
|
|
17444
17460
|
var DEFAULT_TRIAL_TERMS = ["cancel", "length", "noContract"];
|
|
17445
17461
|
function trialBenefits(trialDays, terms = DEFAULT_TRIAL_TERMS) {
|
|
17446
|
-
const labels =
|
|
17462
|
+
const labels = _chunkFCT7VKWGcjs.trialLabels.call(void 0, trialDays);
|
|
17447
17463
|
return terms.flatMap((term) => {
|
|
17448
17464
|
const label = labels[term];
|
|
17449
17465
|
return label ? [{ icon: TRIAL_TERM_ICONS[term], label }] : [];
|
|
@@ -18477,7 +18493,7 @@ function CompleteAccountForm({
|
|
|
18477
18493
|
),
|
|
18478
18494
|
children: [
|
|
18479
18495
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18480
|
-
/* @__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) }),
|
|
18481
18497
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18482
18498
|
] }),
|
|
18483
18499
|
(ssoProvidersLoading || ssoProviders && ssoProviders.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -18628,7 +18644,7 @@ function CreateOrganizationForm({
|
|
|
18628
18644
|
),
|
|
18629
18645
|
children: [
|
|
18630
18646
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18631
|
-
/* @__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) }),
|
|
18632
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 })
|
|
18633
18649
|
] }),
|
|
18634
18650
|
email === void 0 ? null : emailReadOnly && emailReadOnlyLabel === null ? (
|
|
@@ -18775,7 +18791,7 @@ function InviteLinkInvalidModal({
|
|
|
18775
18791
|
),
|
|
18776
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: [
|
|
18777
18793
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-mf)]", children: [
|
|
18778
|
-
/* @__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) }),
|
|
18779
18795
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18780
18796
|
_chunkAHBTZ7DNcjs.Button,
|
|
18781
18797
|
{
|
|
@@ -18859,7 +18875,7 @@ function LoginForm({
|
|
|
18859
18875
|
),
|
|
18860
18876
|
children: [
|
|
18861
18877
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18862
|
-
/* @__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) }),
|
|
18863
18879
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18864
18880
|
] }),
|
|
18865
18881
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -18986,7 +19002,7 @@ function NoAccountNotice({
|
|
|
18986
19002
|
),
|
|
18987
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: [
|
|
18988
19004
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18989
|
-
/* @__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) }),
|
|
18990
19006
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: description })
|
|
18991
19007
|
] }),
|
|
18992
19008
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "outline", fullWidth: true, onClick: onBackToLogin, children: backLabel })
|
|
@@ -19035,7 +19051,7 @@ function OpenFrameSsoLoginForm({
|
|
|
19035
19051
|
),
|
|
19036
19052
|
children: [
|
|
19037
19053
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
19038
|
-
/* @__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) }),
|
|
19039
19055
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19040
19056
|
] }),
|
|
19041
19057
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19140,7 +19156,7 @@ function OpenFrameSsoSignUpForm({
|
|
|
19140
19156
|
),
|
|
19141
19157
|
children: [
|
|
19142
19158
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
19143
|
-
/* @__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) }),
|
|
19144
19160
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19145
19161
|
] }),
|
|
19146
19162
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19246,7 +19262,7 @@ function PasswordResetForm({
|
|
|
19246
19262
|
),
|
|
19247
19263
|
children: [
|
|
19248
19264
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19249
|
-
/* @__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) }),
|
|
19250
19266
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19251
19267
|
] }),
|
|
19252
19268
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19367,7 +19383,7 @@ function SsoJoinForm({
|
|
|
19367
19383
|
),
|
|
19368
19384
|
children: [
|
|
19369
19385
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19370
|
-
/* @__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) }),
|
|
19371
19387
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19372
19388
|
] }),
|
|
19373
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: [
|
|
@@ -21222,15 +21238,15 @@ function useLoading() {
|
|
|
21222
21238
|
|
|
21223
21239
|
|
|
21224
21240
|
function isAlreadyThere(file, existing) {
|
|
21225
|
-
const key =
|
|
21241
|
+
const key = _chunkFAUVDMH4cjs.mediaNameKey.call(void 0, file.name);
|
|
21226
21242
|
if (!key) return false;
|
|
21227
21243
|
return existing.some(
|
|
21228
|
-
(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)
|
|
21229
21245
|
);
|
|
21230
21246
|
}
|
|
21231
21247
|
var isFileDrag = (event) => Array.from(event.dataTransfer.types).includes("Files");
|
|
21232
|
-
var isVideoItem = (item) =>
|
|
21233
|
-
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 };
|
|
21234
21250
|
var MEDIA_KIND_COPY = {
|
|
21235
21251
|
image: { noun: "pictures", refusal: "Not a picture" },
|
|
21236
21252
|
video: { noun: "videos", refusal: "Not a video" },
|
|
@@ -21254,12 +21270,12 @@ function useMediaIntake({ existing, onUpload, onUploaded, kinds = "both" }) {
|
|
|
21254
21270
|
const seen = /* @__PURE__ */ new Set();
|
|
21255
21271
|
const accepted = [];
|
|
21256
21272
|
for (const file of files) {
|
|
21257
|
-
const mediaType =
|
|
21273
|
+
const mediaType = _chunkFAUVDMH4cjs.fileMediaType.call(void 0, file);
|
|
21258
21274
|
if (!mediaType || kinds !== "both" && mediaType !== kinds) {
|
|
21259
21275
|
unsupported.push(file.name);
|
|
21260
21276
|
continue;
|
|
21261
21277
|
}
|
|
21262
|
-
const contentKey = await
|
|
21278
|
+
const contentKey = await _chunkFAUVDMH4cjs.fileContentKey.call(void 0, file).catch(() => `${file.name}:${file.size}`);
|
|
21263
21279
|
if (seen.has(contentKey) || isAlreadyThere(file, existingRef.current)) {
|
|
21264
21280
|
duplicates.push(file.name);
|
|
21265
21281
|
continue;
|
|
@@ -21874,7 +21890,7 @@ var MODEL_TOKEN_RATES_COPY = {
|
|
|
21874
21890
|
empty: "No token rates are in effect right now."
|
|
21875
21891
|
};
|
|
21876
21892
|
function providerMark(providerType, stated, className) {
|
|
21877
|
-
const Mark = _chunk5RGGUQ4Ycjs.findIcon.call(void 0,
|
|
21893
|
+
const Mark = _chunk5RGGUQ4Ycjs.findIcon.call(void 0, _chunkFCT7VKWGcjs.aiProvider.call(void 0, providerType, { icon: stated }).icon);
|
|
21878
21894
|
return Mark ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Mark, { className }) : void 0;
|
|
21879
21895
|
}
|
|
21880
21896
|
var PAD_X = "px-[var(--spacing-system-s)]";
|
|
@@ -21892,7 +21908,7 @@ var UNIT_LINE_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
|
21892
21908
|
var TABS_ROW_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0, "shrink-0 border-b border-ods-border py-[var(--spacing-system-xs)]", PAD_X);
|
|
21893
21909
|
var NUMBER_CELL = "w-16 shrink-0 whitespace-nowrap text-right tabular-nums";
|
|
21894
21910
|
function useProviderGroup(rates) {
|
|
21895
|
-
const groups =
|
|
21911
|
+
const groups = _chunkFCT7VKWGcjs.groupTokenRatesByProvider.call(void 0, rates);
|
|
21896
21912
|
const [picked, setPicked] = _react.useState.call(void 0, null);
|
|
21897
21913
|
return { groups, group: _nullishCoalesce(groups.find((candidate) => candidate.providerType === picked), () => ( groups[0])), setPicked };
|
|
21898
21914
|
}
|
|
@@ -21903,7 +21919,7 @@ function ProviderTabs({
|
|
|
21903
21919
|
className
|
|
21904
21920
|
}) {
|
|
21905
21921
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21906
|
-
|
|
21922
|
+
_chunkOEEFUB25cjs.TabSelector,
|
|
21907
21923
|
{
|
|
21908
21924
|
variant: "secondary",
|
|
21909
21925
|
scrollable: true,
|
|
@@ -21911,7 +21927,7 @@ function ProviderTabs({
|
|
|
21911
21927
|
onValueChange,
|
|
21912
21928
|
items: groups.map((candidate) => ({
|
|
21913
21929
|
id: candidate.providerType,
|
|
21914
|
-
label:
|
|
21930
|
+
label: _chunkFCT7VKWGcjs.tokenRateProviderLabel.call(void 0, candidate.providerType, _optionalChain([candidate, 'access', _459 => _459.rates, 'access', _460 => _460[0], 'optionalAccess', _461 => _461.providerLabel])),
|
|
21915
21931
|
icon: providerMark(candidate.providerType, _optionalChain([candidate, 'access', _462 => _462.rates, 'access', _463 => _463[0], 'optionalAccess', _464 => _464.providerIcon]), "size-full")
|
|
21916
21932
|
})),
|
|
21917
21933
|
className
|
|
@@ -21988,8 +22004,8 @@ function ModelTokenRatesTable({ rates }) {
|
|
|
21988
22004
|
] }),
|
|
21989
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: [
|
|
21990
22006
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "rowheader", className: "min-w-0 flex-1 truncate", children: rate.displayName || rate.modelName }),
|
|
21991
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
21992
|
-
/* @__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: _chunkFCT7VKWGcjs.formatTokenRate.call(void 0, rate.inputTokenRate) }),
|
|
22008
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkFCT7VKWGcjs.formatTokenRate.call(void 0, rate.outputTokenRate) })
|
|
21993
22009
|
] }, rate.modelName)) })
|
|
21994
22010
|
] }),
|
|
21995
22011
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: UNIT_LINE_CLASS, children: MODEL_TOKEN_RATES_COPY.unit })
|
|
@@ -22036,7 +22052,7 @@ function modelOption(rate) {
|
|
|
22036
22052
|
return {
|
|
22037
22053
|
label: rate.displayName || rate.modelName,
|
|
22038
22054
|
value: rate.modelName,
|
|
22039
|
-
description:
|
|
22055
|
+
description: _chunkFCT7VKWGcjs.tokenRateProviderLabel.call(void 0, rate.providerType, rate.providerLabel),
|
|
22040
22056
|
icon: providerMark(rate.providerType, rate.providerIcon, "size-full text-ods-text-secondary")
|
|
22041
22057
|
};
|
|
22042
22058
|
}
|
|
@@ -22091,8 +22107,8 @@ function ModelTokenExchange({
|
|
|
22091
22107
|
const [chosen, setChosen] = _react.useState.call(void 0, null);
|
|
22092
22108
|
const balance = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(chosen, () => ( defaultAmount)), () => ( _optionalChain([tokenPrice, 'optionalAccess', _465 => _465.tokens]))), () => ( MODEL_TOKEN_EXCHANGE_BALANCE));
|
|
22093
22109
|
const max = Math.max(amountRange.max, balance, ...presets.map((preset) => preset.tokens));
|
|
22094
|
-
const tokens =
|
|
22095
|
-
const cost =
|
|
22110
|
+
const tokens = _chunkFCT7VKWGcjs.formatTokenAmount.call(void 0, balance);
|
|
22111
|
+
const cost = _chunkFCT7VKWGcjs.tokenCost.call(void 0, balance, tokenPrice);
|
|
22096
22112
|
const balancePrice = cost === null ? null : _chunk6UKH22NQcjs.formatPrice.call(void 0, cost);
|
|
22097
22113
|
const model = rate ? rate.displayName || rate.modelName : "";
|
|
22098
22114
|
const options = models.map(modelOption);
|
|
@@ -22135,7 +22151,7 @@ function ModelTokenExchange({
|
|
|
22135
22151
|
variant: preset.tokens === balance ? "accent" : "outline",
|
|
22136
22152
|
size: "small",
|
|
22137
22153
|
onClick: () => setChosen(preset.tokens),
|
|
22138
|
-
children: copy.buy.preset(
|
|
22154
|
+
children: copy.buy.preset(_chunkFCT7VKWGcjs.formatTokenAmount.call(void 0, preset.tokens), preset.label)
|
|
22139
22155
|
},
|
|
22140
22156
|
preset.label
|
|
22141
22157
|
)) })
|
|
@@ -22152,7 +22168,7 @@ function ModelTokenExchange({
|
|
|
22152
22168
|
const stated = _nullishCoalesce(models.find((option) => option.providerType === providerType), () => ( (_optionalChain([rate, 'optionalAccess', _466 => _466.providerType]) === providerType ? rate : null)));
|
|
22153
22169
|
return {
|
|
22154
22170
|
id: providerType,
|
|
22155
|
-
name:
|
|
22171
|
+
name: _chunkFCT7VKWGcjs.tokenRateProviderLabel.call(void 0, providerType, _optionalChain([stated, 'optionalAccess', _467 => _467.providerLabel])),
|
|
22156
22172
|
icon: providerMark(providerType, _optionalChain([stated, 'optionalAccess', _468 => _468.providerIcon]), "size-8 text-ods-text-secondary")
|
|
22157
22173
|
};
|
|
22158
22174
|
}),
|
|
@@ -22191,7 +22207,7 @@ function ModelTokenExchange({
|
|
|
22191
22207
|
{
|
|
22192
22208
|
size: "plain",
|
|
22193
22209
|
loading,
|
|
22194
|
-
figure:
|
|
22210
|
+
figure: _chunkFCT7VKWGcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _473 => _473.inputTokenRate])),
|
|
22195
22211
|
words: copy.charge.input
|
|
22196
22212
|
}
|
|
22197
22213
|
),
|
|
@@ -22200,7 +22216,7 @@ function ModelTokenExchange({
|
|
|
22200
22216
|
{
|
|
22201
22217
|
size: "plain",
|
|
22202
22218
|
loading,
|
|
22203
|
-
figure:
|
|
22219
|
+
figure: _chunkFCT7VKWGcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _474 => _474.outputTokenRate])),
|
|
22204
22220
|
words: copy.charge.output
|
|
22205
22221
|
}
|
|
22206
22222
|
)
|
|
@@ -22212,9 +22228,9 @@ function ModelTokenExchange({
|
|
|
22212
22228
|
className: "mt-auto flex flex-col rounded-md border border-ods-accent bg-ods-bg p-[var(--spacing-system-mf)]",
|
|
22213
22229
|
children: [
|
|
22214
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) }),
|
|
22215
|
-
/* @__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" }) : _chunkFCT7VKWGcjs.formatTokenAmount.call(void 0, _chunkFCT7VKWGcjs.tokensForBalance.call(void 0, balance, rate.inputTokenRate)) }),
|
|
22216
22232
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-primary text-h3", children: copy.charge.read }),
|
|
22217
|
-
/* @__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(_chunkFCT7VKWGcjs.formatTokenAmount.call(void 0, _chunkFCT7VKWGcjs.tokensForBalance.call(void 0, balance, rate.outputTokenRate))) })
|
|
22218
22234
|
]
|
|
22219
22235
|
}
|
|
22220
22236
|
)
|
|
@@ -22761,14 +22777,14 @@ var ConfidenceBadge = ({
|
|
|
22761
22777
|
size = "sm",
|
|
22762
22778
|
className
|
|
22763
22779
|
}) => {
|
|
22764
|
-
const level =
|
|
22780
|
+
const level = _chunkFCT7VKWGcjs.getConfidenceLevel.call(void 0, confidence);
|
|
22765
22781
|
if (level === "none") {
|
|
22766
22782
|
return null;
|
|
22767
22783
|
}
|
|
22768
|
-
const label =
|
|
22769
|
-
const borderClass =
|
|
22770
|
-
const textClass =
|
|
22771
|
-
const bgClass =
|
|
22784
|
+
const label = _chunkFCT7VKWGcjs.getConfidenceLabel.call(void 0, confidence);
|
|
22785
|
+
const borderClass = _chunkFCT7VKWGcjs.getConfidenceBorderClass.call(void 0, confidence);
|
|
22786
|
+
const textClass = _chunkFCT7VKWGcjs.getConfidenceTextClass.call(void 0, confidence);
|
|
22787
|
+
const bgClass = _chunkFCT7VKWGcjs.getConfidenceBgClass.call(void 0, confidence);
|
|
22772
22788
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
22773
22789
|
"span",
|
|
22774
22790
|
{
|
|
@@ -22819,9 +22835,9 @@ function SEOEditorPreview({
|
|
|
22819
22835
|
const [isUploading, setIsUploading] = _react.useState.call(void 0, false);
|
|
22820
22836
|
const [fileInputRef, setFileInputRef] = _react.useState.call(void 0, null);
|
|
22821
22837
|
const seoTitleLength = (seoTitle || "").length;
|
|
22822
|
-
const seoTitleTooLong = seoTitleLength >
|
|
22838
|
+
const seoTitleTooLong = seoTitleLength > _chunkFCT7VKWGcjs.SEO_TITLE_MAX_LENGTH;
|
|
22823
22839
|
const seoDescriptionLength = (seoDescription || "").length;
|
|
22824
|
-
const seoDescriptionTooLong = seoDescriptionLength >
|
|
22840
|
+
const seoDescriptionTooLong = seoDescriptionLength > _chunkFCT7VKWGcjs.SEO_DESCRIPTION_MAX_LENGTH;
|
|
22825
22841
|
const displayTitle = seoTitle.trim() || title || "Untitled";
|
|
22826
22842
|
const displayDescription = seoDescription.trim() || summary || "No description";
|
|
22827
22843
|
const hasOgImage = ogImageUrl.trim();
|
|
@@ -22846,10 +22862,10 @@ function SEOEditorPreview({
|
|
|
22846
22862
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
22847
22863
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
22848
22864
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22849
|
-
|
|
22865
|
+
_chunkFCT7VKWGcjs.Field,
|
|
22850
22866
|
{
|
|
22851
22867
|
label: "SEO Title",
|
|
22852
|
-
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 ${_chunkFCT7VKWGcjs.SEO_TITLE_MAX_LENGTH})` : null,
|
|
22853
22869
|
labelExtras: aiConfidenceSeoTitle !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
22854
22870
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
22855
22871
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ConfidenceBadge, { confidence: aiConfidenceSeoTitle, showLabel: true, showPercentage: true, size: "sm" })
|
|
@@ -22864,7 +22880,7 @@ function SEOEditorPreview({
|
|
|
22864
22880
|
children: [
|
|
22865
22881
|
seoTitleLength,
|
|
22866
22882
|
"/",
|
|
22867
|
-
|
|
22883
|
+
_chunkFCT7VKWGcjs.SEO_TITLE_MAX_LENGTH
|
|
22868
22884
|
]
|
|
22869
22885
|
}
|
|
22870
22886
|
),
|
|
@@ -22875,7 +22891,7 @@ function SEOEditorPreview({
|
|
|
22875
22891
|
value: seoTitle || "",
|
|
22876
22892
|
onChange: (e) => onSeoTitleChange(e.target.value),
|
|
22877
22893
|
disabled,
|
|
22878
|
-
maxLength:
|
|
22894
|
+
maxLength: _chunkFCT7VKWGcjs.SEO_TITLE_MAX_LENGTH,
|
|
22879
22895
|
invalid: seoTitleTooLong,
|
|
22880
22896
|
placeholder: "Enter SEO meta title...",
|
|
22881
22897
|
className: "border-ods-border bg-ods-bg text-ods-text-primary"
|
|
@@ -22886,7 +22902,7 @@ function SEOEditorPreview({
|
|
|
22886
22902
|
!seoTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-accent text-h6", children: "Auto-populated from title" })
|
|
22887
22903
|
] }),
|
|
22888
22904
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22889
|
-
|
|
22905
|
+
_chunkFCT7VKWGcjs.Field,
|
|
22890
22906
|
{
|
|
22891
22907
|
label: "SEO Keywords",
|
|
22892
22908
|
labelExtras: aiConfidenceSeoKeywords !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -22918,10 +22934,10 @@ function SEOEditorPreview({
|
|
|
22918
22934
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
22919
22935
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
22920
22936
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22921
|
-
|
|
22937
|
+
_chunkFCT7VKWGcjs.Field,
|
|
22922
22938
|
{
|
|
22923
22939
|
label: "SEO Description",
|
|
22924
|
-
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 ${_chunkFCT7VKWGcjs.SEO_DESCRIPTION_MAX_LENGTH})` : null,
|
|
22925
22941
|
labelExtras: aiConfidenceSeoDescription !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
22926
22942
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
22927
22943
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22944,7 +22960,7 @@ function SEOEditorPreview({
|
|
|
22944
22960
|
children: [
|
|
22945
22961
|
seoDescriptionLength,
|
|
22946
22962
|
"/",
|
|
22947
|
-
|
|
22963
|
+
_chunkFCT7VKWGcjs.SEO_DESCRIPTION_MAX_LENGTH
|
|
22948
22964
|
]
|
|
22949
22965
|
}
|
|
22950
22966
|
),
|
|
@@ -22955,7 +22971,7 @@ function SEOEditorPreview({
|
|
|
22955
22971
|
value: seoDescription || "",
|
|
22956
22972
|
onChange: (e) => onSeoDescriptionChange(e.target.value),
|
|
22957
22973
|
disabled,
|
|
22958
|
-
maxLength:
|
|
22974
|
+
maxLength: _chunkFCT7VKWGcjs.SEO_DESCRIPTION_MAX_LENGTH,
|
|
22959
22975
|
invalid: seoDescriptionTooLong,
|
|
22960
22976
|
placeholder: "Enter SEO meta description...",
|
|
22961
22977
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "resize-none border-ods-border bg-ods-bg text-ods-text-primary", SEO_MEDIA_BOX_HEIGHT)
|
|
@@ -23024,7 +23040,7 @@ function SEOEditorPreview({
|
|
|
23024
23040
|
{
|
|
23025
23041
|
ref: setFileInputRef,
|
|
23026
23042
|
type: "file",
|
|
23027
|
-
accept:
|
|
23043
|
+
accept: _chunkFAUVDMH4cjs.IMAGE_FILE_ACCEPT,
|
|
23028
23044
|
onChange: handleImageUpload,
|
|
23029
23045
|
className: "hidden",
|
|
23030
23046
|
disabled: disabled || isUploading
|
|
@@ -23108,7 +23124,7 @@ function socialIcon(platform) {
|
|
|
23108
23124
|
return _nullishCoalesce(_chunk5RGGUQ4Ycjs.iconOf.call(void 0, SOCIAL_ICONS[platform]), () => ( void 0));
|
|
23109
23125
|
}
|
|
23110
23126
|
function renderSocialIcon(platform) {
|
|
23111
|
-
const key = _nullishCoalesce(
|
|
23127
|
+
const key = _nullishCoalesce(_chunkFCT7VKWGcjs.normalizeSocialPlatform.call(void 0, platform), () => ( "website"));
|
|
23112
23128
|
const icon = _nullishCoalesce(socialIcon(key), () => ( socialIcon("website")));
|
|
23113
23129
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5" }) : null;
|
|
23114
23130
|
}
|
|
@@ -23199,7 +23215,7 @@ function SocialLinksManager({
|
|
|
23199
23215
|
};
|
|
23200
23216
|
const getIcon = (link, platform) => {
|
|
23201
23217
|
const iconKey = _optionalChain([platform, 'optionalAccess', _484 => _484.icon_name]) || link.platform;
|
|
23202
|
-
const key =
|
|
23218
|
+
const key = _chunkFCT7VKWGcjs.normalizeSocialPlatform.call(void 0, iconKey);
|
|
23203
23219
|
if (!key) return null;
|
|
23204
23220
|
const icon = socialIcon(key);
|
|
23205
23221
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5 text-ods-text-secondary" }) : null;
|
|
@@ -23667,7 +23683,7 @@ function VideoBitesDisplay({
|
|
|
23667
23683
|
filterPublished = true,
|
|
23668
23684
|
showTitle = true
|
|
23669
23685
|
}) {
|
|
23670
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23686
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOEEFUB25cjs.VideoBitesStrip, { bites, title, filterPublished, showTitle });
|
|
23671
23687
|
}
|
|
23672
23688
|
|
|
23673
23689
|
// src/components/features/walkthrough-video.tsx
|
|
@@ -23697,7 +23713,7 @@ function WalkthroughVideo({
|
|
|
23697
23713
|
onOpenChange,
|
|
23698
23714
|
defaultOpen,
|
|
23699
23715
|
defaultOpenPaused,
|
|
23700
|
-
deepLinkParam =
|
|
23716
|
+
deepLinkParam = _chunkFCT7VKWGcjs.WALKTHROUGH_OPEN_QUERY_PARAM,
|
|
23701
23717
|
autoPlayCard = false,
|
|
23702
23718
|
label = "Play Demo Video",
|
|
23703
23719
|
placement,
|
|
@@ -23714,7 +23730,7 @@ function WalkthroughVideo({
|
|
|
23714
23730
|
const inline = placement === "inline";
|
|
23715
23731
|
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
23716
23732
|
const dismissEnabled = dismissal !== false;
|
|
23717
|
-
const storageKey = dismissEnabled && dismissal.storageKey ||
|
|
23733
|
+
const storageKey = dismissEnabled && dismissal.storageKey || _chunkFCT7VKWGcjs.WALKTHROUGH_VIDEO_DISMISS_KEY;
|
|
23718
23734
|
const dismissalId = _optionalChain([video, 'optionalAccess', _490 => _490.id]) != null ? String(video.id) : "dismissed";
|
|
23719
23735
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
23720
23736
|
const [dismissed, setDismissed] = _react.useState.call(void 0, false);
|
|
@@ -23726,7 +23742,7 @@ function WalkthroughVideo({
|
|
|
23726
23742
|
let delayElapsed = false;
|
|
23727
23743
|
let interacted = inline;
|
|
23728
23744
|
const reveal = () => {
|
|
23729
|
-
if (dismissEnabled &&
|
|
23745
|
+
if (dismissEnabled && _chunkFCT7VKWGcjs.isWalkthroughDismissed.call(void 0, storageKey, dismissalId)) {
|
|
23730
23746
|
setDismissed(true);
|
|
23731
23747
|
return;
|
|
23732
23748
|
}
|
|
@@ -23763,7 +23779,7 @@ function WalkthroughVideo({
|
|
|
23763
23779
|
if (idleHandle !== null && typeof cic === "function") cic(idleHandle);
|
|
23764
23780
|
};
|
|
23765
23781
|
}, [appearDelayMs, dismissEnabled, storageKey, dismissalId, hasVideo, videoId, inline]);
|
|
23766
|
-
const hydrated =
|
|
23782
|
+
const hydrated = _chunkOEEFUB25cjs.useIsHydrated.call(void 0, );
|
|
23767
23783
|
const previewSuppressed = _react.useMemo.call(void 0, () => {
|
|
23768
23784
|
if (!hydrated) return false;
|
|
23769
23785
|
try {
|
|
@@ -24013,7 +24029,7 @@ function WalkthroughVideo({
|
|
|
24013
24029
|
(e) => {
|
|
24014
24030
|
e.stopPropagation();
|
|
24015
24031
|
pausePreviewNow();
|
|
24016
|
-
if (dismissEnabled)
|
|
24032
|
+
if (dismissEnabled) _chunkFCT7VKWGcjs.dismissWalkthrough.call(void 0, storageKey, dismissalId);
|
|
24017
24033
|
setDismissed(true);
|
|
24018
24034
|
},
|
|
24019
24035
|
[dismissEnabled, storageKey, dismissalId, pausePreviewNow]
|
|
@@ -24188,7 +24204,7 @@ function WalkthroughVideo({
|
|
|
24188
24204
|
`card-${embedUrlKey}`
|
|
24189
24205
|
) }),
|
|
24190
24206
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24191
|
-
|
|
24207
|
+
_chunkOEEFUB25cjs.CardHitLayer,
|
|
24192
24208
|
{
|
|
24193
24209
|
label: video.title ? `${label}: ${video.title}` : label,
|
|
24194
24210
|
onPointerDown: pausePreviewNow,
|
|
@@ -24360,7 +24376,7 @@ function useWalkthroughVideo(opts) {
|
|
|
24360
24376
|
const { endpoint, initialData, enabled: enabledGiven = true, transformCaptionsUrl } = opts;
|
|
24361
24377
|
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
24362
24378
|
const enabled = enabledGiven && !inScope;
|
|
24363
|
-
const captions =
|
|
24379
|
+
const captions = _chunkOEEFUB25cjs.useCaptions.call(void 0, );
|
|
24364
24380
|
const query = _reactquery.useQuery.call(void 0, {
|
|
24365
24381
|
queryKey: ["walkthrough-video", endpoint],
|
|
24366
24382
|
enabled,
|
|
@@ -25111,7 +25127,7 @@ function HighlightConfigSection({
|
|
|
25111
25127
|
disabled = false,
|
|
25112
25128
|
className = ""
|
|
25113
25129
|
}) {
|
|
25114
|
-
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, _chunkFCT7VKWGcjs.Field, { label: "Target Duration", children: (f) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25115
25131
|
_chunkE56LN23Hcjs.Select,
|
|
25116
25132
|
{
|
|
25117
25133
|
value: targetDurationSeconds.toString(),
|
|
@@ -25212,7 +25228,7 @@ var AIStatusIndicator = ({
|
|
|
25212
25228
|
}) => {
|
|
25213
25229
|
const config = statusConfig[status];
|
|
25214
25230
|
const displayText = message || config.label;
|
|
25215
|
-
const confidenceLabel = showConfidence && confidence !== void 0 ? `${
|
|
25231
|
+
const confidenceLabel = showConfidence && confidence !== void 0 ? `${_chunkFCT7VKWGcjs.getConfidenceLabel.call(void 0, confidence)} (${confidence}%)` : null;
|
|
25216
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: [
|
|
25217
25233
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25218
25234
|
_chunkUNFCRSYIcjs.SparklesIcon,
|
|
@@ -25220,7 +25236,7 @@ var AIStatusIndicator = ({
|
|
|
25220
25236
|
size: 16,
|
|
25221
25237
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
25222
25238
|
status === "loading" && _chunk4WIJI4AKcjs.LIVE_PULSE_CLASS,
|
|
25223
|
-
confidence !== void 0 && status === "success" ?
|
|
25239
|
+
confidence !== void 0 && status === "success" ? _chunkFCT7VKWGcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25224
25240
|
)
|
|
25225
25241
|
}
|
|
25226
25242
|
),
|
|
@@ -25229,7 +25245,7 @@ var AIStatusIndicator = ({
|
|
|
25229
25245
|
{
|
|
25230
25246
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
25231
25247
|
"text-h6",
|
|
25232
|
-
confidence !== void 0 && status === "success" ?
|
|
25248
|
+
confidence !== void 0 && status === "success" ? _chunkFCT7VKWGcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25233
25249
|
),
|
|
25234
25250
|
children: displayText
|
|
25235
25251
|
}
|
|
@@ -25239,8 +25255,8 @@ var AIStatusIndicator = ({
|
|
|
25239
25255
|
{
|
|
25240
25256
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
25241
25257
|
"rounded-full border px-2 py-0.5 text-h6",
|
|
25242
|
-
|
|
25243
|
-
|
|
25258
|
+
_chunkFCT7VKWGcjs.getConfidenceBorderClass.call(void 0, confidence),
|
|
25259
|
+
_chunkFCT7VKWGcjs.getConfidenceTextClass.call(void 0, confidence)
|
|
25244
25260
|
),
|
|
25245
25261
|
children: confidenceLabel
|
|
25246
25262
|
}
|
|
@@ -26120,7 +26136,7 @@ function OpenPolicyButton({ href, name }) {
|
|
|
26120
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,
|
|
26121
26137
|
_chunkAHBTZ7DNcjs.Button,
|
|
26122
26138
|
{
|
|
26123
|
-
onClick: loading ? void 0 :
|
|
26139
|
+
onClick: loading ? void 0 : _chunkFCT7VKWGcjs.openInNewTab.call(void 0, href),
|
|
26124
26140
|
disabled: loading,
|
|
26125
26141
|
variant: "outline",
|
|
26126
26142
|
size: "icon",
|
|
@@ -26494,7 +26510,7 @@ function OpenTenantButton({ href, name }) {
|
|
|
26494
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,
|
|
26495
26511
|
_chunkAHBTZ7DNcjs.Button,
|
|
26496
26512
|
{
|
|
26497
|
-
onClick: loading ? void 0 :
|
|
26513
|
+
onClick: loading ? void 0 : _chunkFCT7VKWGcjs.openInNewTab.call(void 0, href),
|
|
26498
26514
|
disabled: loading,
|
|
26499
26515
|
variant: "outline",
|
|
26500
26516
|
size: "icon",
|
|
@@ -26629,7 +26645,7 @@ function WaitlistForm({
|
|
|
26629
26645
|
const { toast } = _chunkBWR5ACK3cjs.useToast.call(void 0, );
|
|
26630
26646
|
const { honeypotInputProps, getSignals, resetSignals } = _chunkBWR5ACK3cjs.useHumanitySignals.call(void 0, );
|
|
26631
26647
|
const [smsConsent, setSmsConsent] = _react.useState.call(void 0, false);
|
|
26632
|
-
const isClient =
|
|
26648
|
+
const isClient = _chunkOEEFUB25cjs.useIsHydrated.call(void 0, );
|
|
26633
26649
|
const [isPhoneInvalid, setIsPhoneInvalid] = _react.useState.call(void 0, false);
|
|
26634
26650
|
const [showConsentError, setShowConsentError] = _react.useState.call(void 0, false);
|
|
26635
26651
|
const rescue = _chunkBWR5ACK3cjs.useFormRescue.call(void 0, {
|
|
@@ -26644,7 +26660,7 @@ function WaitlistForm({
|
|
|
26644
26660
|
_react.useEffect.call(void 0, () => {
|
|
26645
26661
|
rescue.track({ email, phone }, null);
|
|
26646
26662
|
}, [email, phone, rescue]);
|
|
26647
|
-
const isMailDomainGeneric =
|
|
26663
|
+
const isMailDomainGeneric = _chunkFCT7VKWGcjs.hasGenericEmailDomain.call(void 0, email);
|
|
26648
26664
|
const [syncedDefaultEmail, setSyncedDefaultEmail] = _react.useState.call(void 0, defaultEmail);
|
|
26649
26665
|
if (syncedDefaultEmail !== defaultEmail) {
|
|
26650
26666
|
setSyncedDefaultEmail(defaultEmail);
|
|
@@ -26678,7 +26694,7 @@ function WaitlistForm({
|
|
|
26678
26694
|
setShowConsentError(true);
|
|
26679
26695
|
return;
|
|
26680
26696
|
}
|
|
26681
|
-
const finalPhone = phone ?
|
|
26697
|
+
const finalPhone = phone ? _chunkFCT7VKWGcjs.formatPhoneE164.call(void 0, phone, countryCode) : void 0;
|
|
26682
26698
|
try {
|
|
26683
26699
|
await onRegister(email, finalPhone, getSignals(), rescue.submitFields());
|
|
26684
26700
|
rescue.complete();
|
|
@@ -28833,7 +28849,7 @@ function getDeviceStatusConfig(status) {
|
|
|
28833
28849
|
}
|
|
28834
28850
|
}
|
|
28835
28851
|
function getDeviceOperatingSystem(osType) {
|
|
28836
|
-
return
|
|
28852
|
+
return _chunkFCT7VKWGcjs.getOSPlatformId.call(void 0, osType);
|
|
28837
28853
|
}
|
|
28838
28854
|
|
|
28839
28855
|
// src/components/features/devices/device-statuses.ts
|
|
@@ -30408,7 +30424,7 @@ function DevicesPanelView({
|
|
|
30408
30424
|
actionsVariant: "icon-buttons",
|
|
30409
30425
|
className,
|
|
30410
30426
|
selector: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30411
|
-
|
|
30427
|
+
_chunkOEEFUB25cjs.TabSelector,
|
|
30412
30428
|
{
|
|
30413
30429
|
value: viewMode,
|
|
30414
30430
|
onValueChange: (value) => _optionalChain([onViewModeChange, 'optionalCall', _671 => _671(value)]),
|
|
@@ -30943,11 +30959,11 @@ var ToolBadge = ({
|
|
|
30943
30959
|
iconClassName
|
|
30944
30960
|
}) => {
|
|
30945
30961
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
30946
|
-
const text = _nullishCoalesce(label, () => ( (toolType ?
|
|
30962
|
+
const text = _nullishCoalesce(label, () => ( (toolType ? _chunkFCT7VKWGcjs.getToolLabel.call(void 0, toolType) : "")));
|
|
30947
30963
|
const mark = _nullishCoalesce(icon, () => ( (toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHATRCNXJcjs.ToolIcon, { toolType, className: iconClassName, size: 16 }) : null)));
|
|
30948
30964
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ToolBadgeSkeleton, { variant, icon: !!mark, className });
|
|
30949
30965
|
const linked = (node, linkClassName) => href && targetPlatform ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30950
|
-
|
|
30966
|
+
_chunkOEEFUB25cjs.NavLinkAnchorViaRuntime,
|
|
30951
30967
|
{
|
|
30952
30968
|
href,
|
|
30953
30969
|
targetPlatform,
|
|
@@ -31097,7 +31113,7 @@ function LogsTableView({
|
|
|
31097
31113
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31098
31114
|
ToolBadge,
|
|
31099
31115
|
{
|
|
31100
|
-
toolType:
|
|
31116
|
+
toolType: _chunkFCT7VKWGcjs.normalizeToolTypeWithFallback.call(void 0, row.original.source.toolType),
|
|
31101
31117
|
iconClassName: "h-4 w-4 content-md:h-6 content-md:w-6"
|
|
31102
31118
|
}
|
|
31103
31119
|
),
|
|
@@ -31109,7 +31125,7 @@ function LogsTableView({
|
|
|
31109
31125
|
filter: {
|
|
31110
31126
|
options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess', _679 => _679.toolTypes, 'access', _680 => _680.map, 'call', _681 => _681((toolType) => ({
|
|
31111
31127
|
id: toolType,
|
|
31112
|
-
label:
|
|
31128
|
+
label: _chunkFCT7VKWGcjs.toToolLabel.call(void 0, toolType),
|
|
31113
31129
|
value: toolType
|
|
31114
31130
|
}))]), () => ( []))
|
|
31115
31131
|
}
|
|
@@ -31158,7 +31174,7 @@ function LogsTableView({
|
|
|
31158
31174
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31159
31175
|
LogRowButton,
|
|
31160
31176
|
{
|
|
31161
|
-
onClick: getLogHref ?
|
|
31177
|
+
onClick: getLogHref ? _chunkFCT7VKWGcjs.openInNewTab.call(void 0, getLogHref(row.original)) : void 0,
|
|
31162
31178
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
31163
31179
|
label: "Open in new tab"
|
|
31164
31180
|
}
|
|
@@ -31480,7 +31496,7 @@ function OpenInNewTabCell({ href }) {
|
|
|
31480
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,
|
|
31481
31497
|
_chunkAHBTZ7DNcjs.Button,
|
|
31482
31498
|
{
|
|
31483
|
-
onClick: loading ? void 0 :
|
|
31499
|
+
onClick: loading ? void 0 : _chunkFCT7VKWGcjs.openInNewTab.call(void 0, href),
|
|
31484
31500
|
disabled: loading,
|
|
31485
31501
|
variant: "outline",
|
|
31486
31502
|
size: "icon",
|
|
@@ -31669,9 +31685,9 @@ function ScriptSchedulesTable({
|
|
|
31669
31685
|
|
|
31670
31686
|
// src/components/features/scripts/shell-types.ts
|
|
31671
31687
|
var SCRIPT_SHELL_TYPES = [
|
|
31672
|
-
{ id:
|
|
31673
|
-
{ id:
|
|
31674
|
-
{ id:
|
|
31688
|
+
{ id: _chunkFCT7VKWGcjs.ShellTypeValues.POWERSHELL, label: "PowerShell", value: "powershell", icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon },
|
|
31689
|
+
{ id: _chunkFCT7VKWGcjs.ShellTypeValues.CMD, label: "CMD", value: "cmd", icon: _chunkNIVJEJSGcjs.TerminalSquareIcon },
|
|
31690
|
+
{ id: _chunkFCT7VKWGcjs.ShellTypeValues.BASH, label: "Bash", value: "bash", icon: _chunkTRUW6DDAcjs.TerminalIcon }
|
|
31675
31691
|
];
|
|
31676
31692
|
function scriptShellType(value) {
|
|
31677
31693
|
return SCRIPT_SHELL_TYPES.find((shell) => shell.value === value);
|
|
@@ -33128,7 +33144,7 @@ function ScheduleFormFields({
|
|
|
33128
33144
|
disabled = false,
|
|
33129
33145
|
renderScriptSearch,
|
|
33130
33146
|
timeReferenceGate = "off",
|
|
33131
|
-
platforms =
|
|
33147
|
+
platforms = _chunkFCT7VKWGcjs.OS_PLATFORMS,
|
|
33132
33148
|
comingSoonPlatforms = [],
|
|
33133
33149
|
getTimeSlots,
|
|
33134
33150
|
nameLayout = "stacked",
|
|
@@ -33274,7 +33290,7 @@ function ScheduleFormFields({
|
|
|
33274
33290
|
// src/components/features/scripts/schedule-form/schedule-script-search-field.tsx
|
|
33275
33291
|
|
|
33276
33292
|
function ScriptPlatformIcons({ platforms }) {
|
|
33277
|
-
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: _chunkFCT7VKWGcjs.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)) });
|
|
33278
33294
|
}
|
|
33279
33295
|
function ScheduleScriptSearchField({
|
|
33280
33296
|
scriptId,
|
|
@@ -33347,7 +33363,7 @@ function KnowledgeBaseOpenButton({ href }) {
|
|
|
33347
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,
|
|
33348
33364
|
_chunkAHBTZ7DNcjs.Button,
|
|
33349
33365
|
{
|
|
33350
|
-
onClick: loading ? void 0 :
|
|
33366
|
+
onClick: loading ? void 0 : _chunkFCT7VKWGcjs.openInNewTab.call(void 0, href),
|
|
33351
33367
|
disabled: loading,
|
|
33352
33368
|
variant: "outline",
|
|
33353
33369
|
size: "icon",
|
|
@@ -33698,7 +33714,7 @@ function ConversationCard({
|
|
|
33698
33714
|
style: tint,
|
|
33699
33715
|
onClick: selection && ((event) => {
|
|
33700
33716
|
if (event.button !== 0 || _optionalChain([window, 'access', _745 => _745.getSelection, 'call', _746 => _746(), 'optionalAccess', _747 => _747.toString, 'call', _748 => _748()])) return;
|
|
33701
|
-
if (!
|
|
33717
|
+
if (!_chunkFCT7VKWGcjs.isOwnClick.call(void 0, event.target, event.currentTarget, { controls: true })) return;
|
|
33702
33718
|
selection.onToggle();
|
|
33703
33719
|
}),
|
|
33704
33720
|
children: [
|
|
@@ -33721,7 +33737,7 @@ function ConversationCard({
|
|
|
33721
33737
|
)
|
|
33722
33738
|
),
|
|
33723
33739
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33724
|
-
|
|
33740
|
+
_chunkFCT7VKWGcjs.ChatTurn,
|
|
33725
33741
|
{
|
|
33726
33742
|
avatar: requester.avatar,
|
|
33727
33743
|
name: requester.name,
|
|
@@ -33742,7 +33758,7 @@ function ConversationCard({
|
|
|
33742
33758
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: CONTEXT_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess', _749 => _749.context])), children: context.text })
|
|
33743
33759
|
] }),
|
|
33744
33760
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33745
|
-
|
|
33761
|
+
_chunkFCT7VKWGcjs.ChatTurn,
|
|
33746
33762
|
{
|
|
33747
33763
|
avatar: responder.avatar,
|
|
33748
33764
|
name: responder.name,
|
|
@@ -33787,7 +33803,7 @@ function ConversationCardSkeleton({
|
|
|
33787
33803
|
{
|
|
33788
33804
|
selection: selection && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.InertWhileLoading, { className: "contents", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectionToggle, { pressed: selection.pressed }) }),
|
|
33789
33805
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33790
|
-
|
|
33806
|
+
_chunkFCT7VKWGcjs.ChatTurn,
|
|
33791
33807
|
{
|
|
33792
33808
|
loading: true,
|
|
33793
33809
|
name: "",
|
|
@@ -33811,7 +33827,7 @@ function ConversationCardSkeleton({
|
|
|
33811
33827
|
] })
|
|
33812
33828
|
] }),
|
|
33813
33829
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33814
|
-
|
|
33830
|
+
_chunkFCT7VKWGcjs.ChatTurn,
|
|
33815
33831
|
{
|
|
33816
33832
|
loading: true,
|
|
33817
33833
|
name: "",
|