@flamingo-stack/openframe-frontend-core 0.0.610-snapshot.20260908185814 → 0.0.610
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-2R36JUKN.js → chunk-25YIHMZ6.js} +2 -2
- package/dist/{chunk-DOIBUVVN.js → chunk-2QBXG74C.js} +5 -5
- package/dist/{chunk-IRUSFKE4.cjs → chunk-2YMDDD5V.cjs} +3 -3
- package/dist/{chunk-IRUSFKE4.cjs.map → chunk-2YMDDD5V.cjs.map} +1 -1
- package/dist/{chunk-D4R3QSNG.js → chunk-37CAZTLP.js} +4 -4
- package/dist/{chunk-DV4UKIPN.cjs → chunk-C4KQ2XPK.cjs} +13 -13
- package/dist/{chunk-DV4UKIPN.cjs.map → chunk-C4KQ2XPK.cjs.map} +1 -1
- package/dist/{chunk-24KS3ZL3.cjs → chunk-EANAFFAD.cjs} +17 -17
- package/dist/{chunk-24KS3ZL3.cjs.map → chunk-EANAFFAD.cjs.map} +1 -1
- package/dist/{chunk-NWET25AT.cjs → chunk-FASOANK7.cjs} +4 -4
- package/dist/{chunk-NWET25AT.cjs.map → chunk-FASOANK7.cjs.map} +1 -1
- package/dist/{chunk-QI2CAZES.js → chunk-FS3CTGIR.js} +2 -2
- package/dist/{chunk-ROBMD5C5.cjs → chunk-GFAHCXIL.cjs} +10 -10
- package/dist/{chunk-ROBMD5C5.cjs.map → chunk-GFAHCXIL.cjs.map} +1 -1
- package/dist/{chunk-UZQ25ZD6.cjs → chunk-GNLV326I.cjs} +4 -4
- package/dist/{chunk-UZQ25ZD6.cjs.map → chunk-GNLV326I.cjs.map} +1 -1
- package/dist/{chunk-4MOB63HI.cjs → chunk-HKJ3WKGW.cjs} +320 -325
- package/dist/chunk-HKJ3WKGW.cjs.map +1 -0
- package/dist/{chunk-CEW2A4PV.js → chunk-HQSCJYCF.js} +2 -2
- package/dist/{chunk-QQYV4CMH.js → chunk-HZS4TV34.js} +5 -5
- package/dist/{chunk-VFYAJDFR.js → chunk-IBMHEOBV.js} +2 -2
- package/dist/{chunk-LLYGTLJ4.js → chunk-MGXSJI23.js} +2 -2
- package/dist/{chunk-THAE6Y2T.js → chunk-O6PO5BHE.js} +4 -4
- package/dist/{chunk-HS4YYQA6.js → chunk-OIKZDXNW.js} +2 -2
- package/dist/{chunk-55M4LRMY.js → chunk-OJZW3GE2.js} +2 -2
- package/dist/{chunk-DQHAT6VG.cjs → chunk-OVVKVIMH.cjs} +34 -34
- package/dist/{chunk-DQHAT6VG.cjs.map → chunk-OVVKVIMH.cjs.map} +1 -1
- package/dist/{chunk-5EEUZULX.js → chunk-Q2CNCBMK.js} +3 -3
- package/dist/{chunk-CFJFWJG7.cjs → chunk-Q3APHZK5.cjs} +17 -17
- package/dist/{chunk-CFJFWJG7.cjs.map → chunk-Q3APHZK5.cjs.map} +1 -1
- package/dist/{chunk-WMFG2QJ2.cjs → chunk-QE2Z6WME.cjs} +33 -33
- package/dist/{chunk-WMFG2QJ2.cjs.map → chunk-QE2Z6WME.cjs.map} +1 -1
- package/dist/{chunk-JOMGPWBN.js → chunk-R2UDEMKK.js} +2 -2
- package/dist/{chunk-SPUW2YXQ.js → chunk-ROOIHDLS.js} +2 -2
- package/dist/{chunk-O5FEBR3Q.cjs → chunk-THCB7NHV.cjs} +3 -3
- package/dist/{chunk-O5FEBR3Q.cjs.map → chunk-THCB7NHV.cjs.map} +1 -1
- package/dist/{chunk-IIE5NCTX.cjs → chunk-THCSSPXU.cjs} +50 -50
- package/dist/{chunk-IIE5NCTX.cjs.map → chunk-THCSSPXU.cjs.map} +1 -1
- package/dist/{chunk-PI7AV4GT.cjs → chunk-UFFVMZDL.cjs} +3 -3
- package/dist/{chunk-PI7AV4GT.cjs.map → chunk-UFFVMZDL.cjs.map} +1 -1
- package/dist/{chunk-AQABZFS2.js → chunk-V6TINNLD.js} +18 -23
- package/dist/chunk-V6TINNLD.js.map +1 -0
- package/dist/{chunk-QQ5G6PM4.cjs → chunk-WJQOYSR3.cjs} +3 -3
- package/dist/{chunk-QQ5G6PM4.cjs.map → chunk-WJQOYSR3.cjs.map} +1 -1
- package/dist/{chunk-GEKWQVSG.cjs → chunk-ZDLCWNM6.cjs} +18 -18
- package/dist/{chunk-GEKWQVSG.cjs.map → chunk-ZDLCWNM6.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +8 -8
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/docs/index.js +5 -5
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/embeds/og-link-preview.d.ts +11 -24
- package/dist/components/embeds/og-link-preview.d.ts.map +1 -1
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/help-center-pages/index.cjs +22 -22
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +31 -31
- package/dist/components/index.js +12 -12
- package/dist/components/meeting-scheduler/index.cjs +21 -21
- package/dist/components/meeting-scheduler/index.js +1 -1
- package/dist/components/navigation/index.cjs +5 -5
- package/dist/components/navigation/index.js +4 -4
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.js +5 -5
- package/package.json +1 -1
- package/src/components/embeds/og-link-preview.tsx +35 -56
- package/dist/chunk-4MOB63HI.cjs.map +0 -1
- package/dist/chunk-AQABZFS2.js.map +0 -1
- /package/dist/{chunk-2R36JUKN.js.map → chunk-25YIHMZ6.js.map} +0 -0
- /package/dist/{chunk-DOIBUVVN.js.map → chunk-2QBXG74C.js.map} +0 -0
- /package/dist/{chunk-D4R3QSNG.js.map → chunk-37CAZTLP.js.map} +0 -0
- /package/dist/{chunk-QI2CAZES.js.map → chunk-FS3CTGIR.js.map} +0 -0
- /package/dist/{chunk-CEW2A4PV.js.map → chunk-HQSCJYCF.js.map} +0 -0
- /package/dist/{chunk-QQYV4CMH.js.map → chunk-HZS4TV34.js.map} +0 -0
- /package/dist/{chunk-VFYAJDFR.js.map → chunk-IBMHEOBV.js.map} +0 -0
- /package/dist/{chunk-LLYGTLJ4.js.map → chunk-MGXSJI23.js.map} +0 -0
- /package/dist/{chunk-THAE6Y2T.js.map → chunk-O6PO5BHE.js.map} +0 -0
- /package/dist/{chunk-HS4YYQA6.js.map → chunk-OIKZDXNW.js.map} +0 -0
- /package/dist/{chunk-55M4LRMY.js.map → chunk-OJZW3GE2.js.map} +0 -0
- /package/dist/{chunk-5EEUZULX.js.map → chunk-Q2CNCBMK.js.map} +0 -0
- /package/dist/{chunk-JOMGPWBN.js.map → chunk-R2UDEMKK.js.map} +0 -0
- /package/dist/{chunk-SPUW2YXQ.js.map → chunk-ROOIHDLS.js.map} +0 -0
|
@@ -6457,9 +6457,9 @@ var OGLinkPreview = ({
|
|
|
6457
6457
|
apiBaseUrl,
|
|
6458
6458
|
ogEndpointPath = "/api/og-scraper",
|
|
6459
6459
|
buildPlaceholderUrl,
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
|
|
6460
|
+
fallbackTitle,
|
|
6461
|
+
fallbackDescription,
|
|
6462
|
+
fallbackImage,
|
|
6463
6463
|
publicationName,
|
|
6464
6464
|
publicationLogo,
|
|
6465
6465
|
variant = "default",
|
|
@@ -6468,7 +6468,9 @@ var OGLinkPreview = ({
|
|
|
6468
6468
|
const [ogData, setOgData] = _react.useState.call(void 0, null);
|
|
6469
6469
|
const [loading, setLoading] = _react.useState.call(void 0, true);
|
|
6470
6470
|
const [error, setError] = _react.useState.call(void 0, false);
|
|
6471
|
-
const [
|
|
6471
|
+
const [imageError, setImageError] = _react.useState.call(void 0, false);
|
|
6472
|
+
const [originalImageError, setOriginalImageError] = _react.useState.call(void 0, false);
|
|
6473
|
+
const [fallbackImageError, setFallbackImageError] = _react.useState.call(void 0, false);
|
|
6472
6474
|
let isValidUrl = true;
|
|
6473
6475
|
let isLocalhost = false;
|
|
6474
6476
|
try {
|
|
@@ -6527,8 +6529,8 @@ var OGLinkPreview = ({
|
|
|
6527
6529
|
const isCompact = variant === "compact";
|
|
6528
6530
|
const domain = getDomain(url);
|
|
6529
6531
|
const effectiveData = _nullishCoalesce(ogData, () => ( (error ? {
|
|
6530
|
-
title:
|
|
6531
|
-
description:
|
|
6532
|
+
title: fallbackTitle || domainToTitle(domain),
|
|
6533
|
+
description: fallbackDescription || domain,
|
|
6532
6534
|
image: "",
|
|
6533
6535
|
url,
|
|
6534
6536
|
siteName: publicationName || domain,
|
|
@@ -6536,17 +6538,10 @@ var OGLinkPreview = ({
|
|
|
6536
6538
|
favicon: `https://www.google.com/s2/favicons?domain=${domain}&sz=32`
|
|
6537
6539
|
} : null)));
|
|
6538
6540
|
const placeholderImageUrl = enablePlaceholder && buildPlaceholderUrl && _optionalChain([effectiveData, 'optionalAccess', _126 => _126.title]) ? buildPlaceholderUrl(effectiveData.title, effectiveData.siteName || domain) : null;
|
|
6539
|
-
const
|
|
6540
|
-
{ source: "curated", url: curatedImage },
|
|
6541
|
-
{ source: "og", url: _optionalChain([effectiveData, 'optionalAccess', _127 => _127.image]) },
|
|
6542
|
-
{ source: "og-original", url: _optionalChain([effectiveData, 'optionalAccess', _128 => _128.originalImage]) },
|
|
6543
|
-
{ source: "placeholder", url: placeholderImageUrl }
|
|
6544
|
-
];
|
|
6545
|
-
const resolvedImage = _nullishCoalesce(imageCandidates.find((c) => !!c.url && !failedImages.has(c.url)), () => ( null));
|
|
6546
|
-
const resolvedImageUrl = _nullishCoalesce(_optionalChain([resolvedImage, 'optionalAccess', _129 => _129.url]), () => ( null));
|
|
6541
|
+
const resolvedImageUrl = _optionalChain([effectiveData, 'optionalAccess', _127 => _127.image]) && !imageError ? effectiveData.image : _optionalChain([effectiveData, 'optionalAccess', _128 => _128.originalImage]) && !originalImageError ? effectiveData.originalImage : fallbackImage && !fallbackImageError ? fallbackImage : placeholderImageUrl;
|
|
6547
6542
|
const hasImage = !!resolvedImageUrl;
|
|
6548
|
-
const
|
|
6549
|
-
const isPlaceholder =
|
|
6543
|
+
const isFallbackImage = resolvedImageUrl === fallbackImage;
|
|
6544
|
+
const isPlaceholder = resolvedImageUrl === placeholderImageUrl && !isFallbackImage;
|
|
6550
6545
|
const bgColor = _chunkEHAYNUOLcjs.useImageEdgeColor.call(void 0, _nullishCoalesce(resolvedImageUrl, () => ( null)), "var(--color-bg-surface)");
|
|
6551
6546
|
const renderSkeleton = () => isCompact ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "my-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-[120px] flex-row overflow-hidden rounded-lg border border-ods-border bg-ods-card", children: [
|
|
6552
6547
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full w-[200px] flex-shrink-0 animate-pulse bg-ods-border" }),
|
|
@@ -6606,22 +6601,22 @@ var OGLinkPreview = ({
|
|
|
6606
6601
|
}
|
|
6607
6602
|
if (loading) return renderSkeleton();
|
|
6608
6603
|
if (!effectiveData) return renderSkeleton();
|
|
6609
|
-
const title =
|
|
6610
|
-
const description =
|
|
6604
|
+
const title = fallbackTitle || effectiveData.title;
|
|
6605
|
+
const description = fallbackDescription || effectiveData.description || "";
|
|
6611
6606
|
const ogDomain = getDomain(effectiveData.url);
|
|
6612
6607
|
const faviconSrc = effectiveData.favicon || `https://www.google.com/s2/favicons?domain=${ogDomain}&sz=32`;
|
|
6613
6608
|
const logoSrc = publicationLogo || faviconSrc;
|
|
6614
6609
|
const handleImageError = () => {
|
|
6615
|
-
|
|
6616
|
-
if (!
|
|
6617
|
-
|
|
6610
|
+
if (effectiveData.image && !imageError) setImageError(true);
|
|
6611
|
+
else if (effectiveData.originalImage && !originalImageError) setOriginalImageError(true);
|
|
6612
|
+
else setFallbackImageError(true);
|
|
6618
6613
|
};
|
|
6619
6614
|
const renderImage = () => {
|
|
6620
6615
|
if (!resolvedImageUrl) return null;
|
|
6621
6616
|
if (isPlaceholder) {
|
|
6622
6617
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWLSFBRT5cjs.next_image_default, { src: resolvedImageUrl, alt: title, className: "rounded-md object-cover", fill: true, sizes: "100vw", unoptimized: true });
|
|
6623
6618
|
}
|
|
6624
|
-
if (
|
|
6619
|
+
if (isFallbackImage) {
|
|
6625
6620
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6626
6621
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
6627
6622
|
{
|
|
@@ -7155,7 +7150,7 @@ function RedditEmbedClient({ url, maxWidth = 700 }) {
|
|
|
7155
7150
|
apiEndpoint: redditProxyUrl,
|
|
7156
7151
|
dataValidator: validateRedditData,
|
|
7157
7152
|
onDataUpdate: (data) => {
|
|
7158
|
-
if (isCurrent() && _optionalChain([data, 'access',
|
|
7153
|
+
if (isCurrent() && _optionalChain([data, 'access', _129 => _129[0], 'optionalAccess', _130 => _130.data, 'optionalAccess', _131 => _131.children, 'optionalAccess', _132 => _132[0], 'optionalAccess', _133 => _133.data])) {
|
|
7159
7154
|
setRedditData(data[0].data.children[0].data);
|
|
7160
7155
|
}
|
|
7161
7156
|
},
|
|
@@ -7230,11 +7225,11 @@ function RedditEmbedClient({ url, maxWidth = 700 }) {
|
|
|
7230
7225
|
gallery_data: redditData.gallery_data,
|
|
7231
7226
|
media_metadata: redditData.media_metadata
|
|
7232
7227
|
});
|
|
7233
|
-
const video = _optionalChain([redditData, 'access',
|
|
7228
|
+
const video = _optionalChain([redditData, 'access', _134 => _134.media, 'optionalAccess', _135 => _135.reddit_video]) || _optionalChain([redditData, 'access', _136 => _136.secure_media, 'optionalAccess', _137 => _137.reddit_video]);
|
|
7234
7229
|
if (video && video.fallback_url) {
|
|
7235
7230
|
console.log("\u{1F4F9} Found Reddit video:", video);
|
|
7236
7231
|
let posterUrl = "";
|
|
7237
|
-
if (_optionalChain([redditData, 'access',
|
|
7232
|
+
if (_optionalChain([redditData, 'access', _138 => _138.preview, 'optionalAccess', _139 => _139.images, 'optionalAccess', _140 => _140[0], 'optionalAccess', _141 => _141.source, 'optionalAccess', _142 => _142.url])) {
|
|
7238
7233
|
posterUrl = redditData.preview.images[0].source.url.replace(/&/g, "&");
|
|
7239
7234
|
console.log("\u2705 Using preview image as video poster:", posterUrl);
|
|
7240
7235
|
} else {
|
|
@@ -7286,7 +7281,7 @@ function RedditEmbedClient({ url, maxWidth = 700 }) {
|
|
|
7286
7281
|
return media;
|
|
7287
7282
|
}
|
|
7288
7283
|
}
|
|
7289
|
-
if (_optionalChain([redditData, 'access',
|
|
7284
|
+
if (_optionalChain([redditData, 'access', _143 => _143.preview, 'optionalAccess', _144 => _144.images, 'optionalAccess', _145 => _145[0]]) && !redditData.is_video) {
|
|
7290
7285
|
const imageData = redditData.preview.images[0];
|
|
7291
7286
|
console.log("\u{1F5BC}\uFE0F Found preview image data:", imageData);
|
|
7292
7287
|
let source = imageData.source;
|
|
@@ -7321,7 +7316,7 @@ function RedditEmbedClient({ url, maxWidth = 700 }) {
|
|
|
7321
7316
|
} else if (directUrl.match(/\.(mp4|webm|mov|avi)(\?.*)?$/i)) {
|
|
7322
7317
|
console.log("\u{1F3AC} Found direct video URL");
|
|
7323
7318
|
let posterUrl = "";
|
|
7324
|
-
if (_optionalChain([redditData, 'access',
|
|
7319
|
+
if (_optionalChain([redditData, 'access', _146 => _146.preview, 'optionalAccess', _147 => _147.images, 'optionalAccess', _148 => _148[0], 'optionalAccess', _149 => _149.source, 'optionalAccess', _150 => _150.url])) {
|
|
7325
7320
|
posterUrl = redditData.preview.images[0].source.url.replace(/&/g, "&");
|
|
7326
7321
|
}
|
|
7327
7322
|
media.push({
|
|
@@ -7334,7 +7329,7 @@ function RedditEmbedClient({ url, maxWidth = 700 }) {
|
|
|
7334
7329
|
});
|
|
7335
7330
|
} else if (directUrl.includes("imgur.com") && !directUrl.includes(".gifv")) {
|
|
7336
7331
|
console.log("\u{1F310} Found Imgur link");
|
|
7337
|
-
const imgurId = _optionalChain([directUrl, 'access',
|
|
7332
|
+
const imgurId = _optionalChain([directUrl, 'access', _151 => _151.match, 'call', _152 => _152(/imgur\.com\/([a-zA-Z0-9]+)/), 'optionalAccess', _153 => _153[1]]);
|
|
7338
7333
|
if (imgurId && !directUrl.includes("/a/") && !directUrl.includes("/gallery/")) {
|
|
7339
7334
|
media.push({
|
|
7340
7335
|
type: "image",
|
|
@@ -7467,7 +7462,7 @@ function TwitterEmbedClient({ url, tweetId, maxWidth = 700 }) {
|
|
|
7467
7462
|
const [fetchLoading, setLoading] = _react.useState.call(void 0, true);
|
|
7468
7463
|
const [fetchError, setError] = _react.useState.call(void 0, null);
|
|
7469
7464
|
const fetchedForRef = _react.useRef.call(void 0, null);
|
|
7470
|
-
const extractedTweetId = tweetId || _optionalChain([url, 'access',
|
|
7465
|
+
const extractedTweetId = tweetId || _optionalChain([url, 'access', _154 => _154.match, 'call', _155 => _155(/status\/(\d+)/), 'optionalAccess', _156 => _156[1]]);
|
|
7471
7466
|
const error = extractedTweetId ? fetchError : "Invalid tweet URL or ID";
|
|
7472
7467
|
const loading = extractedTweetId ? fetchLoading : false;
|
|
7473
7468
|
const tweetUrl = url.includes("twitter.com") || url.includes("x.com") ? url : `https://twitter.com/twitter/status/${extractedTweetId}`;
|
|
@@ -7539,10 +7534,10 @@ function TwitterEmbedClient({ url, tweetId, maxWidth = 700 }) {
|
|
|
7539
7534
|
const parser = new DOMParser();
|
|
7540
7535
|
const doc = parser.parseFromString(tweetData.html, "text/html");
|
|
7541
7536
|
const blockquote = doc.querySelector("blockquote");
|
|
7542
|
-
const fullText = _optionalChain([blockquote, 'optionalAccess',
|
|
7537
|
+
const fullText = _optionalChain([blockquote, 'optionalAccess', _157 => _157.textContent]) || "";
|
|
7543
7538
|
const tweetText = fullText.replace(/- .* \(@.*\).*$/, "").trim();
|
|
7544
7539
|
const username = tweetData.author_url ? tweetData.author_url.split("/").pop() : "";
|
|
7545
|
-
const links = Array.from(_optionalChain([blockquote, 'optionalAccess',
|
|
7540
|
+
const links = Array.from(_optionalChain([blockquote, 'optionalAccess', _158 => _158.querySelectorAll, 'call', _159 => _159("a")]) || []).map((link) => ({
|
|
7546
7541
|
url: link.href,
|
|
7547
7542
|
text: link.textContent || link.href
|
|
7548
7543
|
})).filter((link) => !link.url.includes("twitter.com") && !link.url.includes("x.com"));
|
|
@@ -7909,7 +7904,7 @@ var processShortcodes = (content) => {
|
|
|
7909
7904
|
}).replace(
|
|
7910
7905
|
/\{\{claude-(artifact|design):([^|}]+)(?:\|([^}]*))?\}\}/g,
|
|
7911
7906
|
(match, kind, url, title) => {
|
|
7912
|
-
const name = _optionalChain([title, 'optionalAccess',
|
|
7907
|
+
const name = _optionalChain([title, 'optionalAccess', _160 => _160.trim, 'call', _161 => _161()]);
|
|
7913
7908
|
const titleAttr = name ? ` data-title="${escapeAttr(name)}"` : "";
|
|
7914
7909
|
return `
|
|
7915
7910
|
|
|
@@ -8642,9 +8637,9 @@ function FilterModal({
|
|
|
8642
8637
|
return { ...currentFilters };
|
|
8643
8638
|
});
|
|
8644
8639
|
const [pendingTags, setPendingTags] = _react.useState.call(void 0, _nullishCoalesce(selectedTags, () => ( [])));
|
|
8645
|
-
const dateDefaultSort = _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess',
|
|
8646
|
-
const [draftDateSort, setDraftDateSort] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess',
|
|
8647
|
-
const [draftDateRange, setDraftDateRange] = _react.useState.call(void 0, _optionalChain([dateFilter, 'optionalAccess',
|
|
8640
|
+
const dateDefaultSort = _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _162 => _162.defaultSort]), () => ( "desc"));
|
|
8641
|
+
const [draftDateSort, setDraftDateSort] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _163 => _163.sort]), () => ( dateDefaultSort)));
|
|
8642
|
+
const [draftDateRange, setDraftDateRange] = _react.useState.call(void 0, _optionalChain([dateFilter, 'optionalAccess', _164 => _164.range]));
|
|
8648
8643
|
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkYXTAV2E3cjs.useScrollFade.call(void 0, );
|
|
8649
8644
|
const seedKey = `${JSON.stringify(currentFilters)}|${JSON.stringify(_nullishCoalesce(selectedTags, () => ( [])))}`;
|
|
8650
8645
|
const seedSourceRef = _react.useRef.call(void 0, { currentFilters, selectedTags, dateFilter, dateDefaultSort });
|
|
@@ -8656,8 +8651,8 @@ function FilterModal({
|
|
|
8656
8651
|
const seed = seedSourceRef.current;
|
|
8657
8652
|
setSelectedFilters({ ...seed.currentFilters });
|
|
8658
8653
|
setPendingTags(_nullishCoalesce(seed.selectedTags, () => ( [])));
|
|
8659
|
-
setDraftDateSort(_nullishCoalesce(_optionalChain([seed, 'access',
|
|
8660
|
-
setDraftDateRange(_optionalChain([seed, 'access',
|
|
8654
|
+
setDraftDateSort(_nullishCoalesce(_optionalChain([seed, 'access', _165 => _165.dateFilter, 'optionalAccess', _166 => _166.sort]), () => ( seed.dateDefaultSort)));
|
|
8655
|
+
setDraftDateRange(_optionalChain([seed, 'access', _167 => _167.dateFilter, 'optionalAccess', _168 => _168.range]));
|
|
8661
8656
|
}, [isOpen, seedKey]);
|
|
8662
8657
|
const handleFilterToggle = (groupId, optionId, checked) => {
|
|
8663
8658
|
setSelectedFilters((prev) => {
|
|
@@ -8673,18 +8668,18 @@ function FilterModal({
|
|
|
8673
8668
|
};
|
|
8674
8669
|
const handleReset = () => {
|
|
8675
8670
|
onFilterChange({});
|
|
8676
|
-
_optionalChain([onTagsChange, 'optionalCall',
|
|
8677
|
-
_optionalChain([dateFilter, 'optionalAccess',
|
|
8671
|
+
_optionalChain([onTagsChange, 'optionalCall', _169 => _169([])]);
|
|
8672
|
+
_optionalChain([dateFilter, 'optionalAccess', _170 => _170.onChange, 'call', _171 => _171({ sort: dateDefaultSort, range: void 0 })]);
|
|
8678
8673
|
onClose();
|
|
8679
8674
|
};
|
|
8680
8675
|
const handleApply = () => {
|
|
8681
8676
|
onFilterChange(selectedFilters);
|
|
8682
|
-
_optionalChain([onTagsChange, 'optionalCall',
|
|
8683
|
-
_optionalChain([dateFilter, 'optionalAccess',
|
|
8677
|
+
_optionalChain([onTagsChange, 'optionalCall', _172 => _172(pendingTags)]);
|
|
8678
|
+
_optionalChain([dateFilter, 'optionalAccess', _173 => _173.onChange, 'call', _174 => _174({ sort: draftDateSort, range: draftDateRange })]);
|
|
8684
8679
|
onClose();
|
|
8685
8680
|
};
|
|
8686
8681
|
const getColumnDirection = (columnKey) => {
|
|
8687
|
-
return _optionalChain([sortConfig, 'optionalAccess',
|
|
8682
|
+
return _optionalChain([sortConfig, 'optionalAccess', _175 => _175.sortBy]) === columnKey ? sortConfig.sortDirection : void 0;
|
|
8688
8683
|
};
|
|
8689
8684
|
const hasSort = !!sortConfig && sortConfig.columns.length > 0;
|
|
8690
8685
|
const hasFilterGroups = filterGroups.length > 0;
|
|
@@ -8734,7 +8729,7 @@ function FilterModal({
|
|
|
8734
8729
|
{
|
|
8735
8730
|
column,
|
|
8736
8731
|
currentDirection: getColumnDirection(column.key),
|
|
8737
|
-
onSort: (direction) => _optionalChain([onSort, 'optionalCall',
|
|
8732
|
+
onSort: (direction) => _optionalChain([onSort, 'optionalCall', _176 => _176(column.key, direction)]),
|
|
8738
8733
|
onClear: onSortClear ? () => onSortClear(column.key) : void 0
|
|
8739
8734
|
},
|
|
8740
8735
|
column.key
|
|
@@ -8985,7 +8980,7 @@ function IconButtonsVariant({
|
|
|
8985
8980
|
}) {
|
|
8986
8981
|
const desktopActions = actions.filter((a) => !a.showOnlyMobile);
|
|
8987
8982
|
const hasMenuActions = !!menuActions && menuActions.some((g) => g.items.length > 0);
|
|
8988
|
-
const isSingleAction = actions.length === 1 && !_optionalChain([actions, 'access',
|
|
8983
|
+
const isSingleAction = actions.length === 1 && !_optionalChain([actions, 'access', _177 => _177[0], 'access', _178 => _178.submenu, 'optionalAccess', _179 => _179.length]);
|
|
8989
8984
|
const singleAction = isSingleAction ? actions[0] : null;
|
|
8990
8985
|
const useSingleActionMobile = isSingleAction && !hasMenuActions;
|
|
8991
8986
|
const mobileMenuGroups = [{ items: actions.flatMap(actionToMenuItems) }, ..._nullishCoalesce(menuActions, () => ( []))];
|
|
@@ -9980,7 +9975,7 @@ function getShellIcon(shellType) {
|
|
|
9980
9975
|
if (!shellType) return void 0;
|
|
9981
9976
|
const normalized = shellType.toUpperCase();
|
|
9982
9977
|
const shellDef = SHELL_TYPES.find((s) => s.id === normalized);
|
|
9983
|
-
return _optionalChain([shellDef, 'optionalAccess',
|
|
9978
|
+
return _optionalChain([shellDef, 'optionalAccess', _180 => _180.icon]);
|
|
9984
9979
|
}
|
|
9985
9980
|
|
|
9986
9981
|
// src/utils/video-bite-id.ts
|
|
@@ -10082,7 +10077,7 @@ function getOSIcon(osType) {
|
|
|
10082
10077
|
const normalized = normalizeOSType(osType);
|
|
10083
10078
|
if (!normalized) return void 0;
|
|
10084
10079
|
const osTypeDef = OS_TYPES.find((t) => t.id === normalized);
|
|
10085
|
-
return _optionalChain([osTypeDef, 'optionalAccess',
|
|
10080
|
+
return _optionalChain([osTypeDef, 'optionalAccess', _181 => _181.icon]);
|
|
10086
10081
|
}
|
|
10087
10082
|
function getOSTypeDefinition(osType) {
|
|
10088
10083
|
if (!osType) return void 0;
|
|
@@ -10092,7 +10087,7 @@ function getOSTypeDefinition(osType) {
|
|
|
10092
10087
|
}
|
|
10093
10088
|
function getOSPlatformId(osType) {
|
|
10094
10089
|
const osTypeDef = getOSTypeDefinition(osType);
|
|
10095
|
-
return _optionalChain([osTypeDef, 'optionalAccess',
|
|
10090
|
+
return _optionalChain([osTypeDef, 'optionalAccess', _182 => _182.platformId]);
|
|
10096
10091
|
}
|
|
10097
10092
|
function isOSPlatform(deviceOS, targetPlatform) {
|
|
10098
10093
|
if (!deviceOS || !targetPlatform) return false;
|
|
@@ -10185,10 +10180,10 @@ var GENERIC_EMAIL_DOMAINS = [
|
|
|
10185
10180
|
];
|
|
10186
10181
|
function extractDomainFromEmail(email) {
|
|
10187
10182
|
if (!email || !email.includes("@")) return null;
|
|
10188
|
-
return _optionalChain([email, 'access',
|
|
10183
|
+
return _optionalChain([email, 'access', _183 => _183.split, 'call', _184 => _184("@"), 'access', _185 => _185[1], 'optionalAccess', _186 => _186.toLowerCase, 'call', _187 => _187()]) || null;
|
|
10189
10184
|
}
|
|
10190
10185
|
function normalizeDomain(domain) {
|
|
10191
|
-
return _optionalChain([domain, 'optionalAccess',
|
|
10186
|
+
return _optionalChain([domain, 'optionalAccess', _188 => _188.toLowerCase, 'call', _189 => _189(), 'access', _190 => _190.replace, 'call', _191 => _191(/^https?:\/\//, ""), 'access', _192 => _192.replace, 'call', _193 => _193(/^www\./, ""), 'access', _194 => _194.split, 'call', _195 => _195("/"), 'access', _196 => _196[0], 'access', _197 => _197.trim, 'call', _198 => _198()]) || "";
|
|
10192
10187
|
}
|
|
10193
10188
|
function isGenericDomain(domain) {
|
|
10194
10189
|
const normalized = normalizeDomain(domain);
|
|
@@ -10340,7 +10335,7 @@ function createSseSubscription(options) {
|
|
|
10340
10335
|
if (connected === next) return;
|
|
10341
10336
|
connected = next;
|
|
10342
10337
|
try {
|
|
10343
|
-
_optionalChain([onConnectedChange, 'optionalCall',
|
|
10338
|
+
_optionalChain([onConnectedChange, 'optionalCall', _199 => _199(next)]);
|
|
10344
10339
|
} catch (err) {
|
|
10345
10340
|
console.error("[sse-subscription] onConnectedChange threw:", err);
|
|
10346
10341
|
}
|
|
@@ -10356,7 +10351,7 @@ function createSseSubscription(options) {
|
|
|
10356
10351
|
if (status !== "open") {
|
|
10357
10352
|
confirmTimerId = clearLifecycleTimer(confirmTimerId);
|
|
10358
10353
|
}
|
|
10359
|
-
_optionalChain([onStatusChange, 'optionalCall',
|
|
10354
|
+
_optionalChain([onStatusChange, 'optionalCall', _200 => _200(status)]);
|
|
10360
10355
|
};
|
|
10361
10356
|
const internalReconnect = (delayMs) => {
|
|
10362
10357
|
failedDelayTimerId = clearLifecycleTimer(failedDelayTimerId);
|
|
@@ -10370,7 +10365,7 @@ function createSseSubscription(options) {
|
|
|
10370
10365
|
}, delayMs);
|
|
10371
10366
|
};
|
|
10372
10367
|
const handleServerStatus = (data) => {
|
|
10373
|
-
const status = _optionalChain([data, 'optionalAccess',
|
|
10368
|
+
const status = _optionalChain([data, 'optionalAccess', _201 => _201.status]);
|
|
10374
10369
|
if (status === "subscribed") {
|
|
10375
10370
|
confirmTimerId = clearLifecycleTimer(confirmTimerId);
|
|
10376
10371
|
serverGraceTimerId = clearLifecycleTimer(serverGraceTimerId);
|
|
@@ -10412,7 +10407,7 @@ function createSseSubscription(options) {
|
|
|
10412
10407
|
const armSilenceTimer = () => {
|
|
10413
10408
|
if (silenceTimerId) clearTimeout(silenceTimerId);
|
|
10414
10409
|
silenceTimerId = setTimeout(() => {
|
|
10415
|
-
_optionalChain([abortController, 'optionalAccess',
|
|
10410
|
+
_optionalChain([abortController, 'optionalAccess', _202 => _202.abort, 'call', _203 => _203()]);
|
|
10416
10411
|
}, silenceTimeoutMs);
|
|
10417
10412
|
};
|
|
10418
10413
|
const scheduleReconnect = () => {
|
|
@@ -10544,7 +10539,7 @@ function createSseSubscription(options) {
|
|
|
10544
10539
|
generation += 1;
|
|
10545
10540
|
clearTimers();
|
|
10546
10541
|
attempt = 0;
|
|
10547
|
-
_optionalChain([abortController, 'optionalAccess',
|
|
10542
|
+
_optionalChain([abortController, 'optionalAccess', _204 => _204.abort, 'call', _205 => _205()]);
|
|
10548
10543
|
void connect();
|
|
10549
10544
|
}
|
|
10550
10545
|
const suspend = () => {
|
|
@@ -10552,7 +10547,7 @@ function createSseSubscription(options) {
|
|
|
10552
10547
|
suspended = true;
|
|
10553
10548
|
generation += 1;
|
|
10554
10549
|
clearTimers();
|
|
10555
|
-
_optionalChain([abortController, 'optionalAccess',
|
|
10550
|
+
_optionalChain([abortController, 'optionalAccess', _206 => _206.abort, 'call', _207 => _207()]);
|
|
10556
10551
|
setStatus("suspended");
|
|
10557
10552
|
};
|
|
10558
10553
|
const onVisibilityChange = () => {
|
|
@@ -10586,13 +10581,13 @@ function createSseSubscription(options) {
|
|
|
10586
10581
|
closed = true;
|
|
10587
10582
|
generation += 1;
|
|
10588
10583
|
clearTimers();
|
|
10589
|
-
_optionalChain([abortController, 'optionalAccess',
|
|
10584
|
+
_optionalChain([abortController, 'optionalAccess', _208 => _208.abort, 'call', _209 => _209()]);
|
|
10590
10585
|
if (listenersActive) {
|
|
10591
10586
|
document.removeEventListener("visibilitychange", onVisibilityChange);
|
|
10592
10587
|
window.removeEventListener("online", onOnline);
|
|
10593
10588
|
}
|
|
10594
10589
|
setConnected(false);
|
|
10595
|
-
_optionalChain([onStatusChange, 'optionalCall',
|
|
10590
|
+
_optionalChain([onStatusChange, 'optionalCall', _210 => _210("closed")]);
|
|
10596
10591
|
},
|
|
10597
10592
|
reconnectNow: () => {
|
|
10598
10593
|
if (closed) return;
|
|
@@ -10604,7 +10599,7 @@ function createSseSubscription(options) {
|
|
|
10604
10599
|
|
|
10605
10600
|
// src/utils/sse-decision-frame.ts
|
|
10606
10601
|
async function readLeadingDecisionFrame(response) {
|
|
10607
|
-
const reader = _optionalChain([response, 'access',
|
|
10602
|
+
const reader = _optionalChain([response, 'access', _211 => _211.body, 'optionalAccess', _212 => _212.getReader, 'call', _213 => _213()]);
|
|
10608
10603
|
if (!reader) throw new Error("readLeadingDecisionFrame: response has no body");
|
|
10609
10604
|
const decoder = new TextDecoder();
|
|
10610
10605
|
let buffer = "";
|
|
@@ -10629,8 +10624,8 @@ async function readLeadingDecisionFrame(response) {
|
|
|
10629
10624
|
throw new Error(`readLeadingDecisionFrame: leading JSON parse failed: ${err.message}`);
|
|
10630
10625
|
}
|
|
10631
10626
|
const obj = parsed;
|
|
10632
|
-
if (_optionalChain([obj, 'optionalAccess',
|
|
10633
|
-
throw new Error(`readLeadingDecisionFrame: expected decision_resolved, got kind=${String(_optionalChain([obj, 'optionalAccess',
|
|
10627
|
+
if (_optionalChain([obj, 'optionalAccess', _214 => _214.kind]) !== "decision_resolved") {
|
|
10628
|
+
throw new Error(`readLeadingDecisionFrame: expected decision_resolved, got kind=${String(_optionalChain([obj, 'optionalAccess', _215 => _215.kind]))}`);
|
|
10634
10629
|
}
|
|
10635
10630
|
frame = normalizeDecisionFrame(obj);
|
|
10636
10631
|
buffer = buffer.slice(nullIdx + 1);
|
|
@@ -10881,7 +10876,7 @@ function primaryPlatformOf(platforms) {
|
|
|
10881
10876
|
if (!Array.isArray(platforms)) return null;
|
|
10882
10877
|
for (const entry of platforms) {
|
|
10883
10878
|
const row = entry;
|
|
10884
|
-
const name = _nullishCoalesce(_nullishCoalesce(_optionalChain([row, 'optionalAccess',
|
|
10879
|
+
const name = _nullishCoalesce(_nullishCoalesce(_optionalChain([row, 'optionalAccess', _216 => _216.platforms, 'optionalAccess', _217 => _217.name]), () => ( _optionalChain([row, 'optionalAccess', _218 => _218.platform_name]))), () => ( _optionalChain([row, 'optionalAccess', _219 => _219.name])));
|
|
10885
10880
|
if (typeof name === "string" && name.trim()) return name.trim();
|
|
10886
10881
|
}
|
|
10887
10882
|
return null;
|
|
@@ -10904,7 +10899,7 @@ function makeComposeContentUrl(opts) {
|
|
|
10904
10899
|
const seg = _nullishCoalesce((Object.prototype.hasOwnProperty.call(suffixes, type) ? suffixes[type] : void 0), () => ( type));
|
|
10905
10900
|
if (opts.hostedTypes.has(type)) {
|
|
10906
10901
|
const recovered = externalUrl ? lastPathSegment(externalUrl) : null;
|
|
10907
|
-
const slug = recovered && recovered !== seg ? recovered : _optionalChain([slugHint, 'optionalAccess',
|
|
10902
|
+
const slug = recovered && recovered !== seg ? recovered : _optionalChain([slugHint, 'optionalAccess', _220 => _220.trim, 'call', _221 => _221()]) || identifier;
|
|
10908
10903
|
return { href: `/${seg}/${slug}`, targetPlatform: null };
|
|
10909
10904
|
}
|
|
10910
10905
|
if (externalUrl) return { href: externalUrl, targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)) };
|
|
@@ -10912,7 +10907,7 @@ function makeComposeContentUrl(opts) {
|
|
|
10912
10907
|
const owner = claimedOwner && _chunk23V5BSHDcjs.byKey.call(void 0, claimedOwner) ? claimedOwner : null;
|
|
10913
10908
|
const origin = owner ? _chunk23V5BSHDcjs.getPlatformProductionUrl.call(void 0, owner) : opts.contentOrigin;
|
|
10914
10909
|
return {
|
|
10915
|
-
href: `${origin.replace(/\/+$/, "")}/${seg}/${_optionalChain([slugHint, 'optionalAccess',
|
|
10910
|
+
href: `${origin.replace(/\/+$/, "")}/${seg}/${_optionalChain([slugHint, 'optionalAccess', _222 => _222.trim, 'call', _223 => _223()]) || identifier}`,
|
|
10916
10911
|
// Report the owner so `decideNewTab` can compare it against the current
|
|
10917
10912
|
// app instead of falling back to an origin guess (which is unreliable in
|
|
10918
10913
|
// dev, where every platform shares localhost). `null` whenever the href
|
|
@@ -10982,7 +10977,7 @@ function getDocSourceDefaultPath(structure, folderIndexFile = DEFAULT_FOLDER_IND
|
|
|
10982
10977
|
const hasRootIndex = structure.some((node) => node.type === "file" && node.path === folderIndexFile);
|
|
10983
10978
|
if (hasRootIndex) return null;
|
|
10984
10979
|
const firstFolderWithReadme = structure.find((node) => node.type === "folder" && node.hasReadme && !!node.path);
|
|
10985
|
-
return _nullishCoalesce(_optionalChain([firstFolderWithReadme, 'optionalAccess',
|
|
10980
|
+
return _nullishCoalesce(_optionalChain([firstFolderWithReadme, 'optionalAccess', _224 => _224.path]), () => ( null));
|
|
10986
10981
|
}
|
|
10987
10982
|
|
|
10988
10983
|
// src/utils/doc-path-utils.ts
|
|
@@ -10993,7 +10988,7 @@ function pathToNodeId(path) {
|
|
|
10993
10988
|
return path.replace(/[/\s]/g, "-").toLowerCase();
|
|
10994
10989
|
}
|
|
10995
10990
|
function normalizeDocPath(segments, folderIndexFile = DEFAULT_FOLDER_INDEX_FILE) {
|
|
10996
|
-
const lowerPath = (_optionalChain([segments, 'optionalAccess',
|
|
10991
|
+
const lowerPath = (_optionalChain([segments, 'optionalAccess', _225 => _225.join, 'call', _226 => _226("/")]) || "").toLowerCase();
|
|
10997
10992
|
const lowerIndex = folderIndexFile.toLowerCase();
|
|
10998
10993
|
const suffix = `/${lowerIndex}`;
|
|
10999
10994
|
if (lowerPath.endsWith(suffix)) return lowerPath.slice(0, -suffix.length);
|
|
@@ -11866,26 +11861,26 @@ function DeviceCard({
|
|
|
11866
11861
|
] }),
|
|
11867
11862
|
device.organization && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", title: device.organization, children: device.organization })
|
|
11868
11863
|
] }),
|
|
11869
|
-
_optionalChain([actions, 'access',
|
|
11864
|
+
_optionalChain([actions, 'access', _227 => _227.moreButton, 'optionalAccess', _228 => _228.visible]) !== false && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11870
11865
|
"div",
|
|
11871
11866
|
{
|
|
11872
11867
|
className: "flex shrink-0 cursor-pointer items-center justify-center rounded-[6px] border border-ods-border p-3 transition-colors hover:bg-ods-bg-hover",
|
|
11873
11868
|
onClick: (e) => {
|
|
11874
11869
|
e.stopPropagation();
|
|
11875
|
-
_optionalChain([actions, 'access',
|
|
11870
|
+
_optionalChain([actions, 'access', _229 => _229.moreButton, 'optionalAccess', _230 => _230.onClick, 'optionalCall', _231 => _231()]);
|
|
11876
11871
|
},
|
|
11877
11872
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.Ellipsis01Icon, { className: "text-ods-text-primary" })
|
|
11878
11873
|
}
|
|
11879
11874
|
),
|
|
11880
|
-
_optionalChain([actions, 'access',
|
|
11881
|
-
_optionalChain([actions, 'access',
|
|
11875
|
+
_optionalChain([actions, 'access', _232 => _232.detailsButton, 'optionalAccess', _233 => _233.visible]) !== false && _optionalChain([actions, 'access', _234 => _234.detailsButton, 'optionalAccess', _235 => _235.component]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0", onClick: (e) => e.stopPropagation(), children: actions.detailsButton.component }),
|
|
11876
|
+
_optionalChain([actions, 'access', _236 => _236.customActions, 'optionalAccess', _237 => _237.map, 'call', _238 => _238(
|
|
11882
11877
|
(action, index) => action.visible !== false && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11883
11878
|
"div",
|
|
11884
11879
|
{
|
|
11885
11880
|
className: "flex shrink-0 cursor-pointer items-center justify-center rounded-[6px] border border-ods-border px-4 py-3 transition-colors hover:bg-ods-bg-hover",
|
|
11886
11881
|
onClick: (e) => {
|
|
11887
11882
|
e.stopPropagation();
|
|
11888
|
-
_optionalChain([action, 'access',
|
|
11883
|
+
_optionalChain([action, 'access', _239 => _239.onClick, 'optionalCall', _240 => _240()]);
|
|
11889
11884
|
},
|
|
11890
11885
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-nowrap text-ods-text-primary text-h3", children: action.label })
|
|
11891
11886
|
},
|
|
@@ -12306,7 +12301,7 @@ function MoreActionsMenu({
|
|
|
12306
12301
|
] });
|
|
12307
12302
|
const handleActivate = (e) => {
|
|
12308
12303
|
e.stopPropagation();
|
|
12309
|
-
if (!item.disabled) _optionalChain([item, 'access',
|
|
12304
|
+
if (!item.disabled) _optionalChain([item, 'access', _241 => _241.onClick, 'optionalCall', _242 => _242()]);
|
|
12310
12305
|
};
|
|
12311
12306
|
if (item.href) {
|
|
12312
12307
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCHIHYC7Qcjs.DropdownMenuItem, { asChild: true, disabled: item.disabled, className: itemClassName, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -12362,7 +12357,7 @@ function OrganizationCard({
|
|
|
12362
12357
|
const handleActionClick = (e) => {
|
|
12363
12358
|
e.preventDefault();
|
|
12364
12359
|
e.stopPropagation();
|
|
12365
|
-
_optionalChain([actionButton, 'optionalAccess',
|
|
12360
|
+
_optionalChain([actionButton, 'optionalAccess', _243 => _243.onClick, 'call', _244 => _244(organization, e)]);
|
|
12366
12361
|
};
|
|
12367
12362
|
const card = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
12368
12363
|
"div",
|
|
@@ -12534,7 +12529,7 @@ var Slider = _react.forwardRef.call(void 0,
|
|
|
12534
12529
|
({ className, value = [0], onValueChange, min = 0, max = 100, step = 1, ...props }, ref) => {
|
|
12535
12530
|
const handleChange = (e) => {
|
|
12536
12531
|
const newValue = [Number(e.target.value)];
|
|
12537
|
-
_optionalChain([onValueChange, 'optionalCall',
|
|
12532
|
+
_optionalChain([onValueChange, 'optionalCall', _245 => _245(newValue)]);
|
|
12538
12533
|
};
|
|
12539
12534
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12540
12535
|
"input",
|
|
@@ -12822,7 +12817,7 @@ function CursorPaginationSimple({
|
|
|
12822
12817
|
{
|
|
12823
12818
|
variant: "transparent",
|
|
12824
12819
|
size: "icon",
|
|
12825
|
-
onClick: () => _optionalChain([onPrevious, 'optionalCall',
|
|
12820
|
+
onClick: () => _optionalChain([onPrevious, 'optionalCall', _246 => _246("")]),
|
|
12826
12821
|
disabled: !hasPreviousPage || loading,
|
|
12827
12822
|
className: "h-8 w-8",
|
|
12828
12823
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" }),
|
|
@@ -12834,7 +12829,7 @@ function CursorPaginationSimple({
|
|
|
12834
12829
|
{
|
|
12835
12830
|
variant: "transparent",
|
|
12836
12831
|
size: "icon",
|
|
12837
|
-
onClick: () => _optionalChain([onNext, 'optionalCall',
|
|
12832
|
+
onClick: () => _optionalChain([onNext, 'optionalCall', _247 => _247("")]),
|
|
12838
12833
|
disabled: !hasNextPage || loading,
|
|
12839
12834
|
className: "h-8 w-8",
|
|
12840
12835
|
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" }),
|
|
@@ -12916,7 +12911,7 @@ var ROW_SHELL_CLASSES = "items-center gap-[var(--spacing-system-mf)] px-[var(--s
|
|
|
12916
12911
|
function DataTableSkeleton({ rows = 10, className, rowClassName, rowHeightClassName }) {
|
|
12917
12912
|
const table = useDataTableContext();
|
|
12918
12913
|
const columns = table.getVisibleFlatColumns();
|
|
12919
|
-
const firstColumnId = _optionalChain([columns, 'access',
|
|
12914
|
+
const firstColumnId = _optionalChain([columns, 'access', _248 => _248[0], 'optionalAccess', _249 => _249.id]);
|
|
12920
12915
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
12921
12916
|
"div",
|
|
12922
12917
|
{
|
|
@@ -12943,13 +12938,13 @@ function DataTableSkeleton({ rows = 10, className, rowClassName, rowHeightClassN
|
|
|
12943
12938
|
{
|
|
12944
12939
|
className: _chunk23V5BSHDcjs.cn.call(void 0,
|
|
12945
12940
|
"flex shrink-0 flex-col justify-center",
|
|
12946
|
-
_optionalChain([meta, 'optionalAccess',
|
|
12941
|
+
_optionalChain([meta, 'optionalAccess', _250 => _250.width]) || "flex-1",
|
|
12947
12942
|
// Same responsive hiding the real header and row apply.
|
|
12948
12943
|
// Without it a `hideAt` column was drawn in the skeleton and
|
|
12949
12944
|
// absent from the loaded table, so below that breakpoint the
|
|
12950
12945
|
// remaining columns were sized against a different total and
|
|
12951
12946
|
// the whole row re-laid-out the moment data arrived.
|
|
12952
|
-
getHideClasses(_optionalChain([meta, 'optionalAccess',
|
|
12947
|
+
getHideClasses(_optionalChain([meta, 'optionalAccess', _251 => _251.hideAt]))
|
|
12953
12948
|
),
|
|
12954
12949
|
children: [
|
|
12955
12950
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-[var(--spacing-system-xxs)] h-5 w-3/4 rounded-sm bg-ods-bg-surface" }),
|
|
@@ -13053,8 +13048,8 @@ function TableEmptyState({ message, description, emptyState, icon, action, class
|
|
|
13053
13048
|
icon: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWZW7C7TFcjs.SearchIcon, {}))),
|
|
13054
13049
|
title: _nullishCoalesce(message, () => ( "No results found")),
|
|
13055
13050
|
description: _nullishCoalesce(description, () => ( (message == null ? "Try adjusting your search or filters" : void 0))),
|
|
13056
|
-
buttonLabel: _optionalChain([action, 'optionalAccess',
|
|
13057
|
-
onButtonClick: _optionalChain([action, 'optionalAccess',
|
|
13051
|
+
buttonLabel: _optionalChain([action, 'optionalAccess', _252 => _252.label]),
|
|
13052
|
+
onButtonClick: _optionalChain([action, 'optionalAccess', _253 => _253.onClick]),
|
|
13058
13053
|
className: _chunk23V5BSHDcjs.cn.call(void 0, "py-[var(--spacing-system-xxl)]", className),
|
|
13059
13054
|
...emptyState
|
|
13060
13055
|
}
|
|
@@ -13072,7 +13067,7 @@ function TableColumnFilterDropdown({
|
|
|
13072
13067
|
placement = "bottom-start",
|
|
13073
13068
|
dropdownClassName = "min-w-[240px]"
|
|
13074
13069
|
}) {
|
|
13075
|
-
const activeCount = _optionalChain([filters, 'optionalAccess',
|
|
13070
|
+
const activeCount = _optionalChain([filters, 'optionalAccess', _254 => _254[columnKey], 'optionalAccess', _255 => _255.length]) || 0;
|
|
13076
13071
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13077
13072
|
FiltersDropdown,
|
|
13078
13073
|
{
|
|
@@ -13112,7 +13107,7 @@ function TableColumnFilterDropdown({
|
|
|
13112
13107
|
delete newFilters[columnKey];
|
|
13113
13108
|
onFilterChange(newFilters);
|
|
13114
13109
|
},
|
|
13115
|
-
currentFilters: { [columnKey]: _optionalChain([filters, 'optionalAccess',
|
|
13110
|
+
currentFilters: { [columnKey]: _optionalChain([filters, 'optionalAccess', _256 => _256[columnKey]]) || [] },
|
|
13116
13111
|
placement,
|
|
13117
13112
|
dropdownClassName
|
|
13118
13113
|
}
|
|
@@ -13300,7 +13295,7 @@ function TableCardSkeleton({
|
|
|
13300
13295
|
className,
|
|
13301
13296
|
rowClassName
|
|
13302
13297
|
}) {
|
|
13303
|
-
const primaryKey = _optionalChain([(_nullishCoalesce(columns.find((c) => /flex-(1|\[)/.test(c.width || "")), () => ( columns[0]))), 'optionalAccess',
|
|
13298
|
+
const primaryKey = _optionalChain([(_nullishCoalesce(columns.find((c) => /flex-(1|\[)/.test(c.width || "")), () => ( columns[0]))), 'optionalAccess', _257 => _257.key]);
|
|
13304
13299
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13305
13300
|
"div",
|
|
13306
13301
|
{
|
|
@@ -13485,7 +13480,7 @@ function useTableMotion(enabled) {
|
|
|
13485
13480
|
// src/components/ui/table/table.tsx
|
|
13486
13481
|
|
|
13487
13482
|
function injectSyntheticColumns(columns, rowActions, renderRowActions, rowHref, actionsColumnWidth) {
|
|
13488
|
-
const hasActions = Boolean(_optionalChain([rowActions, 'optionalAccess',
|
|
13483
|
+
const hasActions = Boolean(_optionalChain([rowActions, 'optionalAccess', _258 => _258.length])) || Boolean(renderRowActions);
|
|
13489
13484
|
const result = [...columns];
|
|
13490
13485
|
const actions = _nullishCoalesce(rowActions, () => ( []));
|
|
13491
13486
|
if (hasActions) {
|
|
@@ -13592,7 +13587,7 @@ function Table({
|
|
|
13592
13587
|
return rowKey(item);
|
|
13593
13588
|
}
|
|
13594
13589
|
const key = item[rowKey];
|
|
13595
|
-
return _optionalChain([key, 'optionalAccess',
|
|
13590
|
+
return _optionalChain([key, 'optionalAccess', _259 => _259.toString, 'call', _260 => _260()]) || index.toString();
|
|
13596
13591
|
};
|
|
13597
13592
|
const getRowClassName = (item, index) => {
|
|
13598
13593
|
if (typeof rowClassName === "function") {
|
|
@@ -13626,25 +13621,25 @@ function Table({
|
|
|
13626
13621
|
const allSelected = selectedRows.length > 0 && selectedRows.length === data.length;
|
|
13627
13622
|
const someSelected = selectedRows.length > 0 && selectedRows.length < data.length;
|
|
13628
13623
|
const sentinelRef = _react.useRef.call(void 0, null);
|
|
13629
|
-
const onLoadMoreRef = _react.useRef.call(void 0, _optionalChain([infiniteScroll, 'optionalAccess',
|
|
13624
|
+
const onLoadMoreRef = _react.useRef.call(void 0, _optionalChain([infiniteScroll, 'optionalAccess', _261 => _261.onLoadMore]));
|
|
13630
13625
|
_react.useEffect.call(void 0, () => {
|
|
13631
|
-
onLoadMoreRef.current = _optionalChain([infiniteScroll, 'optionalAccess',
|
|
13626
|
+
onLoadMoreRef.current = _optionalChain([infiniteScroll, 'optionalAccess', _262 => _262.onLoadMore]);
|
|
13632
13627
|
});
|
|
13633
13628
|
_react.useEffect.call(void 0, () => {
|
|
13634
|
-
if (!_optionalChain([infiniteScroll, 'optionalAccess',
|
|
13629
|
+
if (!_optionalChain([infiniteScroll, 'optionalAccess', _263 => _263.hasNextPage]) || infiniteScroll.isFetchingNextPage) return void 0;
|
|
13635
13630
|
const sentinel = sentinelRef.current;
|
|
13636
13631
|
if (!sentinel) return void 0;
|
|
13637
13632
|
const observer = new IntersectionObserver(
|
|
13638
13633
|
(entries) => {
|
|
13639
|
-
if (_optionalChain([entries, 'access',
|
|
13640
|
-
_optionalChain([onLoadMoreRef, 'access',
|
|
13634
|
+
if (_optionalChain([entries, 'access', _264 => _264[0], 'optionalAccess', _265 => _265.isIntersecting])) {
|
|
13635
|
+
_optionalChain([onLoadMoreRef, 'access', _266 => _266.current, 'optionalCall', _267 => _267()]);
|
|
13641
13636
|
}
|
|
13642
13637
|
},
|
|
13643
13638
|
{ rootMargin: "200px" }
|
|
13644
13639
|
);
|
|
13645
13640
|
observer.observe(sentinel);
|
|
13646
13641
|
return () => observer.disconnect();
|
|
13647
|
-
}, [_optionalChain([infiniteScroll, 'optionalAccess',
|
|
13642
|
+
}, [_optionalChain([infiniteScroll, 'optionalAccess', _268 => _268.hasNextPage]), _optionalChain([infiniteScroll, 'optionalAccess', _269 => _269.isFetchingNextPage])]);
|
|
13648
13643
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk23V5BSHDcjs.cn.call(void 0, "flex w-full flex-col gap-1", containerClassName), children: [
|
|
13649
13644
|
showToolbar && bulkActions && selectedRows.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-2 flex items-center justify-between rounded-[6px] border border-ods-border bg-ods-card p-3", children: [
|
|
13650
13645
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: [
|
|
@@ -13696,7 +13691,7 @@ function Table({
|
|
|
13696
13691
|
columns,
|
|
13697
13692
|
rows: skeletonRows,
|
|
13698
13693
|
compact,
|
|
13699
|
-
hasActions: (_nullishCoalesce(_optionalChain([rowActions, 'optionalAccess',
|
|
13694
|
+
hasActions: (_nullishCoalesce(_optionalChain([rowActions, 'optionalAccess', _270 => _270.length]), () => ( 0))) > 0,
|
|
13700
13695
|
hasChevron: Boolean(rowHref)
|
|
13701
13696
|
}
|
|
13702
13697
|
) : data.length === 0 ? (
|
|
@@ -13730,23 +13725,23 @@ function Table({
|
|
|
13730
13725
|
selected: isRowSelected(item),
|
|
13731
13726
|
onSelect: handleSelectRow,
|
|
13732
13727
|
animateRowReorder,
|
|
13733
|
-
motionDiv: _optionalChain([tableMotion, 'optionalAccess',
|
|
13728
|
+
motionDiv: _optionalChain([tableMotion, 'optionalAccess', _271 => _271.motionDiv])
|
|
13734
13729
|
},
|
|
13735
13730
|
getRowKey(item, index)
|
|
13736
13731
|
));
|
|
13737
|
-
const LayoutGroup = _optionalChain([tableMotion, 'optionalAccess',
|
|
13732
|
+
const LayoutGroup = _optionalChain([tableMotion, 'optionalAccess', _272 => _272.LayoutGroup]);
|
|
13738
13733
|
return animateRowReorder && LayoutGroup ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LayoutGroup, { children: rows }) : rows;
|
|
13739
13734
|
})(),
|
|
13740
|
-
_optionalChain([infiniteScroll, 'optionalAccess',
|
|
13735
|
+
_optionalChain([infiniteScroll, 'optionalAccess', _273 => _273.isFetchingNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13741
13736
|
TableCardSkeleton,
|
|
13742
13737
|
{
|
|
13743
13738
|
columns,
|
|
13744
13739
|
rows: _nullishCoalesce(infiniteScroll.skeletonRows, () => ( 3)),
|
|
13745
|
-
hasActions: (_nullishCoalesce(_optionalChain([rowActions, 'optionalAccess',
|
|
13740
|
+
hasActions: (_nullishCoalesce(_optionalChain([rowActions, 'optionalAccess', _274 => _274.length]), () => ( 0))) > 0,
|
|
13746
13741
|
hasChevron: Boolean(rowHref)
|
|
13747
13742
|
}
|
|
13748
13743
|
),
|
|
13749
|
-
_optionalChain([infiniteScroll, 'optionalAccess',
|
|
13744
|
+
_optionalChain([infiniteScroll, 'optionalAccess', _275 => _275.hasNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: sentinelRef, className: "h-1", "aria-hidden": "true" }),
|
|
13750
13745
|
!infiniteScroll && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13751
13746
|
PlaceholderRows,
|
|
13752
13747
|
{
|
|
@@ -14020,7 +14015,7 @@ function QueryReportTable({
|
|
|
14020
14015
|
const columns = _react.useMemo.call(void 0, () => deriveColumns(data, columnOrder), [data, columnOrder]);
|
|
14021
14016
|
const handleExport = () => {
|
|
14022
14017
|
exportToCSV(data, columns, exportFilename);
|
|
14023
|
-
_optionalChain([onExport, 'optionalCall',
|
|
14018
|
+
_optionalChain([onExport, 'optionalCall', _276 => _276()]);
|
|
14024
14019
|
};
|
|
14025
14020
|
const tableMinWidth = columns.length * (columnWidth + 16);
|
|
14026
14021
|
const {
|
|
@@ -14146,7 +14141,7 @@ function DataTableRowImpl({
|
|
|
14146
14141
|
const handleClick = _react.useCallback.call(void 0,
|
|
14147
14142
|
(e) => {
|
|
14148
14143
|
const target = e.target;
|
|
14149
|
-
if (!_optionalChain([containerRef, 'access',
|
|
14144
|
+
if (!_optionalChain([containerRef, 'access', _277 => _277.current, 'optionalAccess', _278 => _278.contains, 'call', _279 => _279(target)])) {
|
|
14150
14145
|
if (isLinkMode) e.preventDefault();
|
|
14151
14146
|
return;
|
|
14152
14147
|
}
|
|
@@ -14154,7 +14149,7 @@ function DataTableRowImpl({
|
|
|
14154
14149
|
if (isLinkMode) e.preventDefault();
|
|
14155
14150
|
return;
|
|
14156
14151
|
}
|
|
14157
|
-
_optionalChain([onClick, 'optionalCall',
|
|
14152
|
+
_optionalChain([onClick, 'optionalCall', _280 => _280(row.original)]);
|
|
14158
14153
|
},
|
|
14159
14154
|
[onClick, row.original, isLinkMode]
|
|
14160
14155
|
);
|
|
@@ -14184,10 +14179,10 @@ function DataTableRowImpl({
|
|
|
14184
14179
|
{
|
|
14185
14180
|
className: _chunk23V5BSHDcjs.cn.call(void 0,
|
|
14186
14181
|
"flex flex-col overflow-hidden",
|
|
14187
|
-
alignJustify(_optionalChain([meta, 'optionalAccess',
|
|
14188
|
-
_optionalChain([meta, 'optionalAccess',
|
|
14189
|
-
_optionalChain([meta, 'optionalAccess',
|
|
14190
|
-
getHideClasses(_optionalChain([meta, 'optionalAccess',
|
|
14182
|
+
alignJustify(_optionalChain([meta, 'optionalAccess', _281 => _281.align])),
|
|
14183
|
+
_optionalChain([meta, 'optionalAccess', _282 => _282.width]) || "min-w-0 flex-1",
|
|
14184
|
+
_optionalChain([meta, 'optionalAccess', _283 => _283.cellClassName]),
|
|
14185
|
+
getHideClasses(_optionalChain([meta, 'optionalAccess', _284 => _284.hideAt]))
|
|
14191
14186
|
),
|
|
14192
14187
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CellContent, { children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) })
|
|
14193
14188
|
},
|
|
@@ -14283,7 +14278,7 @@ function DataTableBody({
|
|
|
14283
14278
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk23V5BSHDcjs.cn.call(void 0, "flex w-full flex-col gap-[var(--spacing-system-xsf)]", className), children: [
|
|
14284
14279
|
rows.map((row, index) => {
|
|
14285
14280
|
const item = row.original;
|
|
14286
|
-
const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall',
|
|
14281
|
+
const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall', _285 => _285(item)]), () => ( void 0));
|
|
14287
14282
|
const cls = typeof rowClassName === "function" ? rowClassName(item, index) : rowClassName;
|
|
14288
14283
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14289
14284
|
DataTableRow,
|
|
@@ -14295,7 +14290,7 @@ function DataTableBody({
|
|
|
14295
14290
|
autoHeight,
|
|
14296
14291
|
rowHeightClassName,
|
|
14297
14292
|
className: cls,
|
|
14298
|
-
subRow: _optionalChain([renderSubRow, 'optionalCall',
|
|
14293
|
+
subRow: _optionalChain([renderSubRow, 'optionalCall', _286 => _286(item)])
|
|
14299
14294
|
},
|
|
14300
14295
|
row.id
|
|
14301
14296
|
);
|
|
@@ -14339,7 +14334,7 @@ function DataTableColumnFilter({
|
|
|
14339
14334
|
pending = false
|
|
14340
14335
|
}) {
|
|
14341
14336
|
const currentValue = column.getFilterValue();
|
|
14342
|
-
const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess',
|
|
14337
|
+
const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess', _287 => _287.length]), () => ( 0));
|
|
14343
14338
|
const sections = _react.useMemo.call(void 0,
|
|
14344
14339
|
() => [
|
|
14345
14340
|
{
|
|
@@ -14471,7 +14466,7 @@ function DataTableHeader({
|
|
|
14471
14466
|
);
|
|
14472
14467
|
}
|
|
14473
14468
|
function keepsCellOnTablet(meta) {
|
|
14474
|
-
return Boolean(_optionalChain([meta, 'optionalAccess',
|
|
14469
|
+
return Boolean(_optionalChain([meta, 'optionalAccess', _288 => _288.filter])) || _optionalChain([meta, 'optionalAccess', _289 => _289.sortable]) === true || _optionalChain([meta, 'optionalAccess', _290 => _290.alwaysShowHeader]) === true;
|
|
14475
14470
|
}
|
|
14476
14471
|
var SHOW_FROM = {
|
|
14477
14472
|
md: "md:flex",
|
|
@@ -14509,11 +14504,11 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
14509
14504
|
if (header.isPlaceholder) return null;
|
|
14510
14505
|
const column = header.column;
|
|
14511
14506
|
const meta = column.columnDef.meta;
|
|
14512
|
-
const filter = _optionalChain([meta, 'optionalAccess',
|
|
14507
|
+
const filter = _optionalChain([meta, 'optionalAccess', _291 => _291.filter]);
|
|
14513
14508
|
const keepOnTablet = keepsCellOnTablet(meta);
|
|
14514
|
-
const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
14515
|
-
const canSort = _optionalChain([meta, 'optionalAccess',
|
|
14516
|
-
const sortDir = _optionalChain([sort, 'optionalAccess',
|
|
14509
|
+
const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _292 => _292.align]), () => ( "left"));
|
|
14510
|
+
const canSort = _optionalChain([meta, 'optionalAccess', _293 => _293.sortable]) === true;
|
|
14511
|
+
const sortDir = _optionalChain([sort, 'optionalAccess', _294 => _294.id]) === column.id ? sort.desc ? "desc" : "asc" : false;
|
|
14517
14512
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14518
14513
|
"div",
|
|
14519
14514
|
{
|
|
@@ -14521,7 +14516,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
14521
14516
|
"items-stretch",
|
|
14522
14517
|
// Cells are hidden rather than dropped from the tree, so which columns
|
|
14523
14518
|
// exist never depends on when an effect ran.
|
|
14524
|
-
getCellVisibilityClasses(keepOnTablet, _optionalChain([meta, 'optionalAccess',
|
|
14519
|
+
getCellVisibilityClasses(keepOnTablet, _optionalChain([meta, 'optionalAccess', _295 => _295.hideAt])),
|
|
14525
14520
|
// Width applies from lg only. Stated as "always, neutralized below lg"
|
|
14526
14521
|
// because `meta.width` is an opaque consumer string that cannot be
|
|
14527
14522
|
// prefixed. Only `keepOnTablet` cells need the override — the rest are
|
|
@@ -14539,9 +14534,9 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
14539
14534
|
// Specificity rather than `!important`: it stays a normal declaration, so a
|
|
14540
14535
|
// consumer that genuinely needs a tablet width can still take it back with a
|
|
14541
14536
|
// more specific rule — `!important` could only be answered with another one.
|
|
14542
|
-
_optionalChain([meta, 'optionalAccess',
|
|
14537
|
+
_optionalChain([meta, 'optionalAccess', _296 => _296.width]) || "min-w-0 flex-1",
|
|
14543
14538
|
keepOnTablet && "max-lg:[&&]:w-auto max-lg:[&&]:flex-none max-lg:[&&]:basis-auto",
|
|
14544
|
-
_optionalChain([meta, 'optionalAccess',
|
|
14539
|
+
_optionalChain([meta, 'optionalAccess', _297 => _297.headerClassName])
|
|
14545
14540
|
),
|
|
14546
14541
|
children: filter ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14547
14542
|
DataTableColumnFilter,
|
|
@@ -14565,7 +14560,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
14565
14560
|
keepOnTablet && "max-lg:justify-start",
|
|
14566
14561
|
canSort && "group cursor-pointer"
|
|
14567
14562
|
),
|
|
14568
|
-
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall',
|
|
14563
|
+
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall', _298 => _298(column.id)]) : void 0,
|
|
14569
14564
|
children: [
|
|
14570
14565
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
14571
14566
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -14615,7 +14610,7 @@ function DataTableInfiniteFooter({
|
|
|
14615
14610
|
if (!sentinel) return void 0;
|
|
14616
14611
|
const observer = new IntersectionObserver(
|
|
14617
14612
|
(entries) => {
|
|
14618
|
-
if (_optionalChain([entries, 'access',
|
|
14613
|
+
if (_optionalChain([entries, 'access', _299 => _299[0], 'optionalAccess', _300 => _300.isIntersecting])) onLoadMoreRef.current();
|
|
14619
14614
|
},
|
|
14620
14615
|
{ rootMargin }
|
|
14621
14616
|
);
|
|
@@ -14640,7 +14635,7 @@ function DataTableRowCount({
|
|
|
14640
14635
|
const table = useDataTableContext();
|
|
14641
14636
|
const count = _nullishCoalesce(totalCount, () => ( table.getRowModel().rows.length));
|
|
14642
14637
|
if (hideWhenEmpty && count === 0) return null;
|
|
14643
|
-
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall',
|
|
14638
|
+
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall', _301 => _301(count, itemName)]), () => ( (count === 1 ? itemName : `${itemName}s`)));
|
|
14644
14639
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk23V5BSHDcjs.cn.call(void 0, "whitespace-nowrap text-ods-text-secondary text-h6", className), children: [
|
|
14645
14640
|
count,
|
|
14646
14641
|
" ",
|
|
@@ -14759,12 +14754,12 @@ function PhoneInput({
|
|
|
14759
14754
|
(phone) => {
|
|
14760
14755
|
if (!phone || digitCount(phone) === 0) {
|
|
14761
14756
|
setIsInvalid(false);
|
|
14762
|
-
_optionalChain([onValidationChange, 'optionalCall',
|
|
14757
|
+
_optionalChain([onValidationChange, 'optionalCall', _302 => _302(false)]);
|
|
14763
14758
|
return;
|
|
14764
14759
|
}
|
|
14765
14760
|
const invalid = !validatePhoneNumber(phone, countryCode);
|
|
14766
14761
|
setIsInvalid(invalid);
|
|
14767
|
-
_optionalChain([onValidationChange, 'optionalCall',
|
|
14762
|
+
_optionalChain([onValidationChange, 'optionalCall', _303 => _303(invalid)]);
|
|
14768
14763
|
},
|
|
14769
14764
|
[countryCode, digitCount, onValidationChange]
|
|
14770
14765
|
);
|
|
@@ -14818,7 +14813,7 @@ function PhoneInput({
|
|
|
14818
14813
|
debouncedValidation(val);
|
|
14819
14814
|
} else if (digitCount(val) === 0) {
|
|
14820
14815
|
setIsInvalid(false);
|
|
14821
|
-
_optionalChain([onValidationChange, 'optionalCall',
|
|
14816
|
+
_optionalChain([onValidationChange, 'optionalCall', _304 => _304(false)]);
|
|
14822
14817
|
}
|
|
14823
14818
|
}
|
|
14824
14819
|
},
|
|
@@ -14934,7 +14929,7 @@ function SearchInput({
|
|
|
14934
14929
|
if (!showHiddenTags) return void 0;
|
|
14935
14930
|
const handleClick = (e) => {
|
|
14936
14931
|
const target = e.target;
|
|
14937
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
14932
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _305 => _305.current, 'optionalAccess', _306 => _306.contains, 'call', _307 => _307(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _308 => _308.current, 'optionalAccess', _309 => _309.contains, 'call', _310 => _310(target)])) {
|
|
14938
14933
|
setShowHiddenTags(false);
|
|
14939
14934
|
}
|
|
14940
14935
|
};
|
|
@@ -14945,7 +14940,7 @@ function SearchInput({
|
|
|
14945
14940
|
const popup = hiddenTagsPopupRef.current;
|
|
14946
14941
|
const badge = badgeRef.current;
|
|
14947
14942
|
if (!popup || !badge) return;
|
|
14948
|
-
const originLeft = _nullishCoalesce(_optionalChain([containerRef, 'access',
|
|
14943
|
+
const originLeft = _nullishCoalesce(_optionalChain([containerRef, 'access', _311 => _311.current, 'optionalAccess', _312 => _312.getBoundingClientRect, 'call', _313 => _313(), 'access', _314 => _314.left]), () => ( 0));
|
|
14949
14944
|
popup.style.left = `${badge.getBoundingClientRect().left - originLeft}px`;
|
|
14950
14945
|
});
|
|
14951
14946
|
const hiddenCount = filterChips.length - visibleCount;
|
|
@@ -14991,10 +14986,10 @@ function SearchInput({
|
|
|
14991
14986
|
} else {
|
|
14992
14987
|
setInternalValue("");
|
|
14993
14988
|
}
|
|
14994
|
-
_optionalChain([inputRef, 'access',
|
|
14989
|
+
_optionalChain([inputRef, 'access', _315 => _315.current, 'optionalAccess', _316 => _316.focus, 'call', _317 => _317()]);
|
|
14995
14990
|
};
|
|
14996
14991
|
const handleResultClick = (result, e) => {
|
|
14997
|
-
_optionalChain([onResultSelect, 'optionalCall',
|
|
14992
|
+
_optionalChain([onResultSelect, 'optionalCall', _318 => _318(
|
|
14998
14993
|
result,
|
|
14999
14994
|
e ? {
|
|
15000
14995
|
metaKey: e.metaKey,
|
|
@@ -15022,7 +15017,7 @@ function SearchInput({
|
|
|
15022
15017
|
if (highlightedIndex >= 0 && flatResults[highlightedIndex]) {
|
|
15023
15018
|
handleResultClick(flatResults[highlightedIndex]);
|
|
15024
15019
|
} else {
|
|
15025
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
15020
|
+
_optionalChain([onSubmit, 'optionalCall', _319 => _319(currentValue)]);
|
|
15026
15021
|
}
|
|
15027
15022
|
break;
|
|
15028
15023
|
case "Escape":
|
|
@@ -15104,7 +15099,7 @@ function SearchInput({
|
|
|
15104
15099
|
dropdownVisible && "!border-ods-accent"
|
|
15105
15100
|
),
|
|
15106
15101
|
onClick: () => {
|
|
15107
|
-
_optionalChain([inputRef, 'access',
|
|
15102
|
+
_optionalChain([inputRef, 'access', _320 => _320.current, 'optionalAccess', _321 => _321.focus, 'call', _322 => _322()]);
|
|
15108
15103
|
setIsOpen(true);
|
|
15109
15104
|
},
|
|
15110
15105
|
children: [
|
|
@@ -15190,10 +15185,10 @@ function SearchInput({
|
|
|
15190
15185
|
collisionPadding: { bottom: keyboardPadding },
|
|
15191
15186
|
onOpenAutoFocus: (e) => {
|
|
15192
15187
|
e.preventDefault();
|
|
15193
|
-
_optionalChain([inputRef, 'access',
|
|
15188
|
+
_optionalChain([inputRef, 'access', _323 => _323.current, 'optionalAccess', _324 => _324.focus, 'call', _325 => _325()]);
|
|
15194
15189
|
},
|
|
15195
15190
|
onInteractOutside: (e) => {
|
|
15196
|
-
if (_optionalChain([containerRef, 'access',
|
|
15191
|
+
if (_optionalChain([containerRef, 'access', _326 => _326.current, 'optionalAccess', _327 => _327.contains, 'call', _328 => _328(e.target)])) {
|
|
15197
15192
|
e.preventDefault();
|
|
15198
15193
|
}
|
|
15199
15194
|
},
|
|
@@ -15210,7 +15205,7 @@ function SearchInput({
|
|
|
15210
15205
|
ref: hiddenTagsPopupRef,
|
|
15211
15206
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
15212
15207
|
onRemove: (removedTag) => {
|
|
15213
|
-
_optionalChain([onFilterRemove, 'optionalCall',
|
|
15208
|
+
_optionalChain([onFilterRemove, 'optionalCall', _329 => _329(removedTag)]);
|
|
15214
15209
|
if (hiddenCount <= 1) setShowHiddenTags(false);
|
|
15215
15210
|
}
|
|
15216
15211
|
}
|
|
@@ -15252,7 +15247,7 @@ function FilterListItem({
|
|
|
15252
15247
|
}) {
|
|
15253
15248
|
const handleToggle = () => {
|
|
15254
15249
|
if (disabled) return;
|
|
15255
|
-
_optionalChain([onToggle, 'optionalCall',
|
|
15250
|
+
_optionalChain([onToggle, 'optionalCall', _330 => _330(!selected)]);
|
|
15256
15251
|
};
|
|
15257
15252
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
15258
15253
|
"div",
|
|
@@ -15299,7 +15294,7 @@ function FilterListItem({
|
|
|
15299
15294
|
CheckboxPrimitive4.Root,
|
|
15300
15295
|
{
|
|
15301
15296
|
checked: selected,
|
|
15302
|
-
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall',
|
|
15297
|
+
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall', _331 => _331(c === true)]),
|
|
15303
15298
|
onClick: (e) => e.stopPropagation(),
|
|
15304
15299
|
disabled,
|
|
15305
15300
|
"aria-label": title,
|
|
@@ -15380,7 +15375,7 @@ function TagSearchInput({
|
|
|
15380
15375
|
if (!showHiddenTags) return void 0;
|
|
15381
15376
|
const handleClick = (e) => {
|
|
15382
15377
|
const target = e.target;
|
|
15383
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
15378
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _332 => _332.current, 'optionalAccess', _333 => _333.contains, 'call', _334 => _334(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _335 => _335.current, 'optionalAccess', _336 => _336.contains, 'call', _337 => _337(target)])) {
|
|
15384
15379
|
setShowHiddenTags(false);
|
|
15385
15380
|
}
|
|
15386
15381
|
};
|
|
@@ -15391,7 +15386,7 @@ function TagSearchInput({
|
|
|
15391
15386
|
const popup = hiddenTagsPopupRef.current;
|
|
15392
15387
|
const badge = badgeRef.current;
|
|
15393
15388
|
if (!popup || !badge) return;
|
|
15394
|
-
const originLeft = _nullishCoalesce(_optionalChain([wrapperRef, 'access',
|
|
15389
|
+
const originLeft = _nullishCoalesce(_optionalChain([wrapperRef, 'access', _338 => _338.current, 'optionalAccess', _339 => _339.getBoundingClientRect, 'call', _340 => _340(), 'access', _341 => _341.left]), () => ( 0));
|
|
15395
15390
|
popup.style.left = `${badge.getBoundingClientRect().left - originLeft}px`;
|
|
15396
15391
|
});
|
|
15397
15392
|
const hiddenCount = tags.length - visibleCount;
|
|
@@ -15403,13 +15398,13 @@ function TagSearchInput({
|
|
|
15403
15398
|
e.preventDefault();
|
|
15404
15399
|
onSubmit(searchValue);
|
|
15405
15400
|
}
|
|
15406
|
-
_optionalChain([onKeyDown, 'optionalCall',
|
|
15401
|
+
_optionalChain([onKeyDown, 'optionalCall', _342 => _342(e)]);
|
|
15407
15402
|
};
|
|
15408
15403
|
const handleClearAll = (e) => {
|
|
15409
15404
|
e.stopPropagation();
|
|
15410
15405
|
e.preventDefault();
|
|
15411
|
-
_optionalChain([onClearAll, 'optionalCall',
|
|
15412
|
-
_optionalChain([inputRef, 'access',
|
|
15406
|
+
_optionalChain([onClearAll, 'optionalCall', _343 => _343()]);
|
|
15407
|
+
_optionalChain([inputRef, 'access', _344 => _344.current, 'optionalAccess', _345 => _345.focus, 'call', _346 => _346()]);
|
|
15413
15408
|
};
|
|
15414
15409
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: wrapperRef, className: "relative", children: [
|
|
15415
15410
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -15432,7 +15427,7 @@ function TagSearchInput({
|
|
|
15432
15427
|
className
|
|
15433
15428
|
),
|
|
15434
15429
|
onClick: () => {
|
|
15435
|
-
if (!disabled) _optionalChain([inputRef, 'access',
|
|
15430
|
+
if (!disabled) _optionalChain([inputRef, 'access', _347 => _347.current, 'optionalAccess', _348 => _348.focus, 'call', _349 => _349()]);
|
|
15436
15431
|
},
|
|
15437
15432
|
children: [
|
|
15438
15433
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex shrink-0 items-center pl-3", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWZW7C7TFcjs.SearchIcon, { className: "size-4 text-ods-text-secondary md:size-6" }) }),
|
|
@@ -15606,7 +15601,7 @@ function MarkdownEditor({
|
|
|
15606
15601
|
try {
|
|
15607
15602
|
const mod = await Promise.resolve().then(() => _interopRequireWildcard(require("@uiw/react-md-editor")));
|
|
15608
15603
|
if (cancelled) return;
|
|
15609
|
-
if (_optionalChain([mod, 'access',
|
|
15604
|
+
if (_optionalChain([mod, 'access', _350 => _350.commands, 'optionalAccess', _351 => _351.getExtraCommands])) {
|
|
15610
15605
|
setDefaultExtraCommands(mod.commands.getExtraCommands());
|
|
15611
15606
|
}
|
|
15612
15607
|
} catch (error) {
|
|
@@ -15644,7 +15639,7 @@ function MarkdownEditor({
|
|
|
15644
15639
|
const isImage = file.type.startsWith("image/");
|
|
15645
15640
|
const markdown = isImage ? `` : `[${file.name}](${url})`;
|
|
15646
15641
|
insertTextAtCursor(markdown);
|
|
15647
|
-
_optionalChain([onFileUploaded, 'optionalCall',
|
|
15642
|
+
_optionalChain([onFileUploaded, 'optionalCall', _352 => _352(url, file.name)]);
|
|
15648
15643
|
} catch (error) {
|
|
15649
15644
|
console.error("File upload failed:", error);
|
|
15650
15645
|
setUploadProgress("Upload failed. Please try again.");
|
|
@@ -15658,7 +15653,7 @@ function MarkdownEditor({
|
|
|
15658
15653
|
const handleFileInputChange = _react.useCallback.call(void 0,
|
|
15659
15654
|
(e) => {
|
|
15660
15655
|
const input = e.target;
|
|
15661
|
-
const file = _optionalChain([input, 'access',
|
|
15656
|
+
const file = _optionalChain([input, 'access', _353 => _353.files, 'optionalAccess', _354 => _354[0]]);
|
|
15662
15657
|
if (file) {
|
|
15663
15658
|
void handleFileUpload(file);
|
|
15664
15659
|
input.value = "";
|
|
@@ -15669,7 +15664,7 @@ function MarkdownEditor({
|
|
|
15669
15664
|
const handlePaste = _react.useCallback.call(void 0,
|
|
15670
15665
|
(e) => {
|
|
15671
15666
|
if (!onUploadFile) return;
|
|
15672
|
-
const items = _optionalChain([e, 'access',
|
|
15667
|
+
const items = _optionalChain([e, 'access', _355 => _355.clipboardData, 'optionalAccess', _356 => _356.items]);
|
|
15673
15668
|
if (!items) return;
|
|
15674
15669
|
for (const item of items) {
|
|
15675
15670
|
if (item.type.startsWith("image/")) {
|
|
@@ -15694,7 +15689,7 @@ function MarkdownEditor({
|
|
|
15694
15689
|
buttonProps: { "aria-label": "Upload file", title: "Upload file" },
|
|
15695
15690
|
icon: isUploading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "h-3 w-3" }),
|
|
15696
15691
|
execute: () => {
|
|
15697
|
-
_optionalChain([fileInputRef, 'access',
|
|
15692
|
+
_optionalChain([fileInputRef, 'access', _357 => _357.current, 'optionalAccess', _358 => _358.click, 'call', _359 => _359()]);
|
|
15698
15693
|
}
|
|
15699
15694
|
} : null;
|
|
15700
15695
|
const extraCommands = uploadCommand ? [...defaultExtraCommands, uploadCommand] : defaultExtraCommands;
|
|
@@ -15706,7 +15701,7 @@ function MarkdownEditor({
|
|
|
15706
15701
|
const EDGE_ZONE = 60;
|
|
15707
15702
|
const MAX_SCROLL_SPEED = 15;
|
|
15708
15703
|
const findScrollParent = _react.useCallback.call(void 0, (el) => {
|
|
15709
|
-
let node = _optionalChain([el, 'optionalAccess',
|
|
15704
|
+
let node = _optionalChain([el, 'optionalAccess', _360 => _360.parentElement]);
|
|
15710
15705
|
while (node && node !== document.documentElement) {
|
|
15711
15706
|
const { overflowY } = window.getComputedStyle(node);
|
|
15712
15707
|
if ((overflowY === "auto" || overflowY === "scroll") && node.scrollHeight > node.clientHeight) {
|
|
@@ -15845,7 +15840,7 @@ function matchesAccept(file, accept) {
|
|
|
15845
15840
|
});
|
|
15846
15841
|
}
|
|
15847
15842
|
function dragHasFiles(e) {
|
|
15848
|
-
const types = _optionalChain([e, 'access',
|
|
15843
|
+
const types = _optionalChain([e, 'access', _361 => _361.dataTransfer, 'optionalAccess', _362 => _362.types]);
|
|
15849
15844
|
if (!types) return false;
|
|
15850
15845
|
for (let i = 0; i < types.length; i++) {
|
|
15851
15846
|
if (types[i] === "Files") return true;
|
|
@@ -15944,7 +15939,7 @@ function FileUpload({
|
|
|
15944
15939
|
e.stopPropagation();
|
|
15945
15940
|
setDragActive(false);
|
|
15946
15941
|
if (disabled) return;
|
|
15947
|
-
if (_optionalChain([e, 'access',
|
|
15942
|
+
if (_optionalChain([e, 'access', _363 => _363.dataTransfer, 'access', _364 => _364.files, 'optionalAccess', _365 => _365.length])) {
|
|
15948
15943
|
handleFiles(e.dataTransfer.files);
|
|
15949
15944
|
}
|
|
15950
15945
|
};
|
|
@@ -15972,7 +15967,7 @@ function FileUpload({
|
|
|
15972
15967
|
e.preventDefault();
|
|
15973
15968
|
dragCounter = 0;
|
|
15974
15969
|
setDragActive(false);
|
|
15975
|
-
if (_optionalChain([e, 'access',
|
|
15970
|
+
if (_optionalChain([e, 'access', _366 => _366.dataTransfer, 'optionalAccess', _367 => _367.files, 'optionalAccess', _368 => _368.length])) {
|
|
15976
15971
|
handleFilesRef.current(e.dataTransfer.files);
|
|
15977
15972
|
}
|
|
15978
15973
|
};
|
|
@@ -15994,7 +15989,7 @@ function FileUpload({
|
|
|
15994
15989
|
};
|
|
15995
15990
|
}, [acceptWindowDrops, disabled]);
|
|
15996
15991
|
const handleFileSelect = (e) => {
|
|
15997
|
-
if (_optionalChain([e, 'access',
|
|
15992
|
+
if (_optionalChain([e, 'access', _369 => _369.target, 'access', _370 => _370.files, 'optionalAccess', _371 => _371.length])) {
|
|
15998
15993
|
handleFiles(e.target.files);
|
|
15999
15994
|
}
|
|
16000
15995
|
};
|
|
@@ -16012,7 +16007,7 @@ function FileUpload({
|
|
|
16012
16007
|
const openDialog = async () => {
|
|
16013
16008
|
if (disabled) return;
|
|
16014
16009
|
if (!pickFiles) {
|
|
16015
|
-
_optionalChain([fileInputRef, 'access',
|
|
16010
|
+
_optionalChain([fileInputRef, 'access', _372 => _372.current, 'optionalAccess', _373 => _373.click, 'call', _374 => _374()]);
|
|
16016
16011
|
return;
|
|
16017
16012
|
}
|
|
16018
16013
|
try {
|
|
@@ -16085,7 +16080,7 @@ function FileUpload({
|
|
|
16085
16080
|
"button",
|
|
16086
16081
|
{
|
|
16087
16082
|
type: "button",
|
|
16088
|
-
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall',
|
|
16083
|
+
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall', _375 => _375(entry.id)]),
|
|
16089
16084
|
className: "shrink-0 text-ods-error transition-opacity hover:opacity-80",
|
|
16090
16085
|
"aria-label": `Remove ${entry.fileName}`,
|
|
16091
16086
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.TrashIcon, { className: "size-6" })
|
|
@@ -16216,7 +16211,7 @@ function ImageUploader({
|
|
|
16216
16211
|
onChange(file);
|
|
16217
16212
|
};
|
|
16218
16213
|
const handleFileSelect = (e) => {
|
|
16219
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
16214
|
+
validateAndEmit(_optionalChain([e, 'access', _376 => _376.target, 'access', _377 => _377.files, 'optionalAccess', _378 => _378[0]]));
|
|
16220
16215
|
if (inputRef.current) inputRef.current.value = "";
|
|
16221
16216
|
};
|
|
16222
16217
|
const handleDrag = (e) => {
|
|
@@ -16231,11 +16226,11 @@ function ImageUploader({
|
|
|
16231
16226
|
e.stopPropagation();
|
|
16232
16227
|
setDragActive(false);
|
|
16233
16228
|
if (!interactive) return;
|
|
16234
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
16229
|
+
validateAndEmit(_optionalChain([e, 'access', _379 => _379.dataTransfer, 'access', _380 => _380.files, 'optionalAccess', _381 => _381[0]]));
|
|
16235
16230
|
};
|
|
16236
16231
|
const openDialog = () => {
|
|
16237
16232
|
if (!interactive) return;
|
|
16238
|
-
_optionalChain([inputRef, 'access',
|
|
16233
|
+
_optionalChain([inputRef, 'access', _382 => _382.current, 'optionalAccess', _383 => _383.click, 'call', _384 => _384()]);
|
|
16239
16234
|
};
|
|
16240
16235
|
const handleRootKeyDown = (e) => {
|
|
16241
16236
|
if (hasImage || !interactive) return;
|
|
@@ -16407,8 +16402,8 @@ function ColorPresetSelect({
|
|
|
16407
16402
|
}) {
|
|
16408
16403
|
const selectedPreset = presets.find((p) => p.key === presetKey);
|
|
16409
16404
|
const isCustom = !selectedPreset;
|
|
16410
|
-
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
16411
|
-
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
16405
|
+
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _385 => _385.label]), () => ( "Custom"));
|
|
16406
|
+
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _386 => _386.color]), () => ( value));
|
|
16412
16407
|
const groups = [
|
|
16413
16408
|
{
|
|
16414
16409
|
items: [
|
|
@@ -16704,7 +16699,7 @@ function TicketStatusConfigRow({
|
|
|
16704
16699
|
{
|
|
16705
16700
|
id: nameInputId,
|
|
16706
16701
|
value: name,
|
|
16707
|
-
onChange: (e) => _optionalChain([onNameChange, 'optionalCall',
|
|
16702
|
+
onChange: (e) => _optionalChain([onNameChange, 'optionalCall', _387 => _387(e.target.value)]),
|
|
16708
16703
|
disabled: isSystem,
|
|
16709
16704
|
readOnly: isSystem,
|
|
16710
16705
|
maxLength: 50
|
|
@@ -17243,14 +17238,14 @@ function TicketInfoSection({
|
|
|
17243
17238
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17244
17239
|
_chunkUQEOAPAIcjs.SquareAvatar,
|
|
17245
17240
|
{
|
|
17246
|
-
src: _optionalChain([organization, 'optionalAccess',
|
|
17247
|
-
alt: _optionalChain([organization, 'optionalAccess',
|
|
17248
|
-
fallback: _optionalChain([organization, 'optionalAccess',
|
|
17241
|
+
src: _optionalChain([organization, 'optionalAccess', _388 => _388.imageSrc]),
|
|
17242
|
+
alt: _optionalChain([organization, 'optionalAccess', _389 => _389.name]),
|
|
17243
|
+
fallback: _optionalChain([organization, 'optionalAccess', _390 => _390.name]) || "Org",
|
|
17249
17244
|
size: "md",
|
|
17250
17245
|
className: "shrink-0"
|
|
17251
17246
|
}
|
|
17252
17247
|
),
|
|
17253
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([organization, 'optionalAccess',
|
|
17248
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([organization, 'optionalAccess', _391 => _391.name]) || "Unassigned", label: "Organization" })
|
|
17254
17249
|
] }),
|
|
17255
17250
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: assigned ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17256
17251
|
AssigneeDropdown,
|
|
@@ -17268,7 +17263,7 @@ function TicketInfoSection({
|
|
|
17268
17263
|
] }),
|
|
17269
17264
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "block truncate text-ods-text-secondary text-h6", children: "Assigned" })
|
|
17270
17265
|
] }) }),
|
|
17271
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([device, 'optionalAccess',
|
|
17266
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([device, 'optionalAccess', _392 => _392.name]) || "Unassigned", label: "Device", icon: _optionalChain([device, 'optionalAccess', _393 => _393.icon]), onClick: _optionalChain([device, 'optionalAccess', _394 => _394.onClick]) }),
|
|
17272
17267
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
17273
17268
|
(status || statusLabel) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17274
17269
|
_chunkYXTAV2E3cjs.TicketStatusTag,
|
|
@@ -17373,7 +17368,7 @@ function TakeOverTicketModal({
|
|
|
17373
17368
|
setAssigneeId(_nullishCoalesce(initialAssigneeId, () => ( null)));
|
|
17374
17369
|
}
|
|
17375
17370
|
}
|
|
17376
|
-
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access',
|
|
17371
|
+
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access', _395 => _395[0], 'optionalAccess', _396 => _396.value]))), () => ( null));
|
|
17377
17372
|
const selectedStatus = statusOptions.find((o) => o.value === selectedStatusId);
|
|
17378
17373
|
const selectedAssignee = assigneeOptions.find((o) => o.value === assigneeId);
|
|
17379
17374
|
const handleConfirm = () => {
|
|
@@ -17471,7 +17466,7 @@ function ReopenTicketModal({
|
|
|
17471
17466
|
setReason("");
|
|
17472
17467
|
}
|
|
17473
17468
|
}
|
|
17474
|
-
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access',
|
|
17469
|
+
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access', _397 => _397[0], 'optionalAccess', _398 => _398.value]))), () => ( null));
|
|
17475
17470
|
const selectedStatus = statusOptions.find((o) => o.value === selectedStatusId);
|
|
17476
17471
|
const selectedAssignee = assigneeOptions.find((o) => o.value === assigneeId);
|
|
17477
17472
|
const handleConfirm = () => {
|
|
@@ -17873,10 +17868,10 @@ function AccountDetailsFields({
|
|
|
17873
17868
|
onKeyDown,
|
|
17874
17869
|
layout = "stacked"
|
|
17875
17870
|
}) {
|
|
17876
|
-
const firstNameErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
17877
|
-
const lastNameErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
17878
|
-
const passwordErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
17879
|
-
const confirmErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
17871
|
+
const firstNameErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _399 => _399.firstName]), firstName);
|
|
17872
|
+
const lastNameErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _400 => _400.lastName]), lastName);
|
|
17873
|
+
const passwordErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _401 => _401.password]), password);
|
|
17874
|
+
const confirmErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _402 => _402.confirmPassword]), confirmPassword);
|
|
17880
17875
|
const names = [
|
|
17881
17876
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17882
17877
|
_chunkN6HNK25Acjs.Input,
|
|
@@ -18116,7 +18111,7 @@ function SsoProviderButtons({
|
|
|
18116
18111
|
disabled: disabled || (enabledProviders ? !enabledProviders.includes(provider) : false),
|
|
18117
18112
|
className: "disabled:bg-ods-bg",
|
|
18118
18113
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon2, { className: "h-5 w-5" }),
|
|
18119
|
-
onClick: () => _optionalChain([onSsoClick, 'optionalCall',
|
|
18114
|
+
onClick: () => _optionalChain([onSsoClick, 'optionalCall', _403 => _403(provider)]),
|
|
18120
18115
|
children: `${actionLabel} ${meta.name}`
|
|
18121
18116
|
},
|
|
18122
18117
|
provider
|
|
@@ -18294,9 +18289,9 @@ function CreateOrganizationForm({
|
|
|
18294
18289
|
}) {
|
|
18295
18290
|
const hasSso = !!ssoProviders && ssoProviders.length > 0;
|
|
18296
18291
|
const fieldsDisabled = disabled || loading;
|
|
18297
|
-
const emailErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18298
|
-
const orgNameErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18299
|
-
const domainErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18292
|
+
const emailErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _404 => _404.email]), _nullishCoalesce(email, () => ( "")));
|
|
18293
|
+
const orgNameErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _405 => _405.organizationName]), organizationName);
|
|
18294
|
+
const domainErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _406 => _406.domain]), domain);
|
|
18300
18295
|
const handleKeyDown = (event) => {
|
|
18301
18296
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
18302
18297
|
onSubmit();
|
|
@@ -18321,11 +18316,11 @@ function CreateOrganizationForm({
|
|
|
18321
18316
|
label: "Email",
|
|
18322
18317
|
placeholder: "username@mail.com",
|
|
18323
18318
|
value: email,
|
|
18324
|
-
error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess',
|
|
18325
|
-
errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess',
|
|
18319
|
+
error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess', _407 => _407.message]))),
|
|
18320
|
+
errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess', _408 => _408.variant]),
|
|
18326
18321
|
disabled: fieldsDisabled,
|
|
18327
18322
|
onBlur: emailErr.onBlur,
|
|
18328
|
-
onChange: (event) => _optionalChain([onEmailChange, 'optionalCall',
|
|
18323
|
+
onChange: (event) => _optionalChain([onEmailChange, 'optionalCall', _409 => _409(event.target.value)]),
|
|
18329
18324
|
onKeyDown: handleKeyDown
|
|
18330
18325
|
}
|
|
18331
18326
|
),
|
|
@@ -18349,8 +18344,8 @@ function CreateOrganizationForm({
|
|
|
18349
18344
|
label: "Domain",
|
|
18350
18345
|
placeholder: domainPlaceholder,
|
|
18351
18346
|
value: domain,
|
|
18352
|
-
error: _nullishCoalesce(domainErr.error, () => ( _optionalChain([domainStatus, 'optionalAccess',
|
|
18353
|
-
errorVariant: domainErr.error ? "error" : _optionalChain([domainStatus, 'optionalAccess',
|
|
18347
|
+
error: _nullishCoalesce(domainErr.error, () => ( _optionalChain([domainStatus, 'optionalAccess', _410 => _410.message]))),
|
|
18348
|
+
errorVariant: domainErr.error ? "error" : _optionalChain([domainStatus, 'optionalAccess', _411 => _411.variant]),
|
|
18354
18349
|
disabled: fieldsDisabled,
|
|
18355
18350
|
onBlur: domainErr.onBlur,
|
|
18356
18351
|
endAdornment: domainSuffix ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: domainSuffix }) : void 0,
|
|
@@ -18385,7 +18380,7 @@ function CreateOrganizationForm({
|
|
|
18385
18380
|
label: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TermsAgreementLabel, { termsUrl, privacyPolicyUrl }),
|
|
18386
18381
|
checked: agreedToTerms,
|
|
18387
18382
|
disabled: fieldsDisabled,
|
|
18388
|
-
error: _optionalChain([errors, 'optionalAccess',
|
|
18383
|
+
error: _optionalChain([errors, 'optionalAccess', _412 => _412.terms]),
|
|
18389
18384
|
onCheckedChange: onAgreedToTermsChange
|
|
18390
18385
|
}
|
|
18391
18386
|
),
|
|
@@ -18512,10 +18507,10 @@ function LoginForm({
|
|
|
18512
18507
|
className
|
|
18513
18508
|
}) {
|
|
18514
18509
|
const fieldDisabled = disabled || loading;
|
|
18515
|
-
const emailErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18510
|
+
const emailErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _413 => _413.email]), email);
|
|
18516
18511
|
const handleKeyDown = (event) => {
|
|
18517
18512
|
if (event.key !== "Enter" || fieldDisabled || submitDisabled) return;
|
|
18518
|
-
_optionalChain([onSubmitClick, 'optionalCall',
|
|
18513
|
+
_optionalChain([onSubmitClick, 'optionalCall', _414 => _414()]);
|
|
18519
18514
|
};
|
|
18520
18515
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
18521
18516
|
"div",
|
|
@@ -18547,8 +18542,8 @@ function LoginForm({
|
|
|
18547
18542
|
label: "Email",
|
|
18548
18543
|
placeholder: emailPlaceholder,
|
|
18549
18544
|
value: email,
|
|
18550
|
-
error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess',
|
|
18551
|
-
errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess',
|
|
18545
|
+
error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess', _415 => _415.message]))),
|
|
18546
|
+
errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess', _416 => _416.variant]),
|
|
18552
18547
|
disabled: fieldDisabled,
|
|
18553
18548
|
onBlur: emailErr.onBlur,
|
|
18554
18549
|
onChange: (event) => onEmailChange(event.target.value),
|
|
@@ -18627,8 +18622,8 @@ function OpenFrameSsoLoginForm({
|
|
|
18627
18622
|
className
|
|
18628
18623
|
}) {
|
|
18629
18624
|
const fieldsDisabled = disabled || loading;
|
|
18630
|
-
const emailErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18631
|
-
const passwordErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18625
|
+
const emailErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _417 => _417.email]), email);
|
|
18626
|
+
const passwordErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _418 => _418.password]), password);
|
|
18632
18627
|
const handleKeyDown = (event) => {
|
|
18633
18628
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
18634
18629
|
onSubmit();
|
|
@@ -18733,7 +18728,7 @@ function OpenFrameSsoSignUpForm({
|
|
|
18733
18728
|
className
|
|
18734
18729
|
}) {
|
|
18735
18730
|
const fieldsDisabled = disabled || loading;
|
|
18736
|
-
const emailErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18731
|
+
const emailErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _419 => _419.email]), email);
|
|
18737
18732
|
const handleKeyDown = (event) => {
|
|
18738
18733
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
18739
18734
|
onSubmit();
|
|
@@ -18838,8 +18833,8 @@ function PasswordResetForm({
|
|
|
18838
18833
|
className
|
|
18839
18834
|
}) {
|
|
18840
18835
|
const fieldsDisabled = disabled || loading;
|
|
18841
|
-
const passwordErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18842
|
-
const confirmErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess',
|
|
18836
|
+
const passwordErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _420 => _420.password]), password);
|
|
18837
|
+
const confirmErr = _chunkJJUV7Z4Lcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _421 => _421.confirmPassword]), confirmPassword);
|
|
18843
18838
|
const handleKeyDown = (event) => {
|
|
18844
18839
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
18845
18840
|
onSubmit();
|
|
@@ -19550,10 +19545,10 @@ var getContentDimensions = (config) => {
|
|
|
19550
19545
|
const envMobileHeight = process.env.NEXT_PUBLIC_FIGMA_MOBILE_HEIGHT ? parseInt(process.env.NEXT_PUBLIC_FIGMA_MOBILE_HEIGHT) : null;
|
|
19551
19546
|
const envDesktopWidth = process.env.NEXT_PUBLIC_FIGMA_DESKTOP_WIDTH ? parseInt(process.env.NEXT_PUBLIC_FIGMA_DESKTOP_WIDTH) : null;
|
|
19552
19547
|
const envDesktopHeight = process.env.NEXT_PUBLIC_FIGMA_DESKTOP_HEIGHT ? parseInt(process.env.NEXT_PUBLIC_FIGMA_DESKTOP_HEIGHT) : null;
|
|
19553
|
-
const mobileWidth = _nullishCoalesce(_nullishCoalesce(envMobileWidth, () => ( _optionalChain([config, 'optionalAccess',
|
|
19554
|
-
const mobileHeight = _nullishCoalesce(_nullishCoalesce(envMobileHeight, () => ( _optionalChain([config, 'optionalAccess',
|
|
19555
|
-
const desktopWidth = _nullishCoalesce(_nullishCoalesce(envDesktopWidth, () => ( _optionalChain([config, 'optionalAccess',
|
|
19556
|
-
const desktopHeight = _nullishCoalesce(_nullishCoalesce(envDesktopHeight, () => ( _optionalChain([config, 'optionalAccess',
|
|
19548
|
+
const mobileWidth = _nullishCoalesce(_nullishCoalesce(envMobileWidth, () => ( _optionalChain([config, 'optionalAccess', _422 => _422.mobileContentDimensions, 'optionalAccess', _423 => _423.width]))), () => ( defaultMobile.width));
|
|
19549
|
+
const mobileHeight = _nullishCoalesce(_nullishCoalesce(envMobileHeight, () => ( _optionalChain([config, 'optionalAccess', _424 => _424.mobileContentDimensions, 'optionalAccess', _425 => _425.height]))), () => ( defaultMobile.height));
|
|
19550
|
+
const desktopWidth = _nullishCoalesce(_nullishCoalesce(envDesktopWidth, () => ( _optionalChain([config, 'optionalAccess', _426 => _426.desktopContentDimensions, 'optionalAccess', _427 => _427.width]))), () => ( defaultDesktop.width));
|
|
19551
|
+
const desktopHeight = _nullishCoalesce(_nullishCoalesce(envDesktopHeight, () => ( _optionalChain([config, 'optionalAccess', _428 => _428.desktopContentDimensions, 'optionalAccess', _429 => _429.height]))), () => ( defaultDesktop.height));
|
|
19557
19552
|
return {
|
|
19558
19553
|
mobile: { width: mobileWidth, height: mobileHeight },
|
|
19559
19554
|
desktop: { width: desktopWidth, height: desktopHeight }
|
|
@@ -19709,7 +19704,7 @@ function UnifiedUI({ state, handlers, config, iframeRef }) {
|
|
|
19709
19704
|
const contentDimensions = getContentDimensions(config);
|
|
19710
19705
|
const mobileHeight = contentDimensions.mobile.height;
|
|
19711
19706
|
const calculatedHeight = Math.max(mobileHeight + 100, 400);
|
|
19712
|
-
return `${Math.min(calculatedHeight, _optionalChain([window, 'optionalAccess',
|
|
19707
|
+
return `${Math.min(calculatedHeight, _optionalChain([window, 'optionalAccess', _430 => _430.innerHeight]) * 0.85 || 650)}px`;
|
|
19713
19708
|
})(),
|
|
19714
19709
|
minHeight: viewMode === "DESKTOP" ? "auto" : (() => {
|
|
19715
19710
|
const contentDimensions = getContentDimensions(config);
|
|
@@ -19812,7 +19807,7 @@ var FigmaPrototypeViewer = ({
|
|
|
19812
19807
|
const [isInitialized, setIsInitialized] = _react.useState.call(void 0, false);
|
|
19813
19808
|
const [currentNodeId, setCurrentNodeId] = _react.useState.call(void 0, null);
|
|
19814
19809
|
const [internalActiveSection, setInternalActiveSection] = _react.useState.call(void 0,
|
|
19815
|
-
config.defaultSectionId || _optionalChain([config, 'access',
|
|
19810
|
+
config.defaultSectionId || _optionalChain([config, 'access', _431 => _431.sections, 'access', _432 => _432[0], 'optionalAccess', _433 => _433.id]) || ""
|
|
19816
19811
|
);
|
|
19817
19812
|
const activeSection = externalActiveSection || internalActiveSection;
|
|
19818
19813
|
const [isNavigating, setIsNavigating] = _react.useState.call(void 0, false);
|
|
@@ -19910,19 +19905,19 @@ var FigmaPrototypeViewer = ({
|
|
|
19910
19905
|
setIframeState("READY");
|
|
19911
19906
|
break;
|
|
19912
19907
|
case "PRESENTED_NODE_CHANGED":
|
|
19913
|
-
if (_optionalChain([figmaEvent, 'access',
|
|
19908
|
+
if (_optionalChain([figmaEvent, 'access', _434 => _434.data, 'optionalAccess', _435 => _435.presentedNodeId])) {
|
|
19914
19909
|
setCurrentNodeId(figmaEvent.data.presentedNodeId);
|
|
19915
19910
|
if (!isNavigating) {
|
|
19916
19911
|
const matchingSection = configSections.find((s) => {
|
|
19917
|
-
const desktopMatch = s.startingNodeId === _optionalChain([figmaEvent, 'access',
|
|
19918
|
-
const mobileMatch = s.mobileStartingNodeId === _optionalChain([figmaEvent, 'access',
|
|
19912
|
+
const desktopMatch = s.startingNodeId === _optionalChain([figmaEvent, 'access', _436 => _436.data, 'optionalAccess', _437 => _437.presentedNodeId]) || s.startingNodeId.replace(":", "-") === _optionalChain([figmaEvent, 'access', _438 => _438.data, 'optionalAccess', _439 => _439.presentedNodeId]);
|
|
19913
|
+
const mobileMatch = s.mobileStartingNodeId === _optionalChain([figmaEvent, 'access', _440 => _440.data, 'optionalAccess', _441 => _441.presentedNodeId]) || _optionalChain([s, 'access', _442 => _442.mobileStartingNodeId, 'optionalAccess', _443 => _443.replace, 'call', _444 => _444(":", "-")]) === _optionalChain([figmaEvent, 'access', _445 => _445.data, 'optionalAccess', _446 => _446.presentedNodeId]);
|
|
19919
19914
|
return desktopMatch || mobileMatch;
|
|
19920
19915
|
});
|
|
19921
19916
|
if (matchingSection && matchingSection.id !== activeSection) {
|
|
19922
19917
|
if (!externalActiveSection) {
|
|
19923
19918
|
setInternalActiveSection(matchingSection.id);
|
|
19924
19919
|
}
|
|
19925
|
-
_optionalChain([onSectionChange, 'optionalCall',
|
|
19920
|
+
_optionalChain([onSectionChange, 'optionalCall', _447 => _447(matchingSection.id)]);
|
|
19926
19921
|
}
|
|
19927
19922
|
}
|
|
19928
19923
|
}
|
|
@@ -19936,7 +19931,7 @@ var FigmaPrototypeViewer = ({
|
|
|
19936
19931
|
const navigateToSection = _react.useCallback.call(void 0,
|
|
19937
19932
|
(sectionId) => {
|
|
19938
19933
|
const section = config.sections.find((s) => s.id === sectionId);
|
|
19939
|
-
if (!section || !_optionalChain([iframeRef, 'access',
|
|
19934
|
+
if (!section || !_optionalChain([iframeRef, 'access', _448 => _448.current, 'optionalAccess', _449 => _449.contentWindow]) || !isInitialized) {
|
|
19940
19935
|
return;
|
|
19941
19936
|
}
|
|
19942
19937
|
setIsNavigating(true);
|
|
@@ -19944,7 +19939,7 @@ var FigmaPrototypeViewer = ({
|
|
|
19944
19939
|
if (!externalActiveSection) {
|
|
19945
19940
|
setInternalActiveSection(sectionId);
|
|
19946
19941
|
}
|
|
19947
|
-
_optionalChain([config, 'access',
|
|
19942
|
+
_optionalChain([config, 'access', _450 => _450.onSectionChange, 'optionalCall', _451 => _451(sectionId)]);
|
|
19948
19943
|
const command = {
|
|
19949
19944
|
type: "NAVIGATE_TO_FRAME_AND_CLOSE_OVERLAYS",
|
|
19950
19945
|
data: { nodeId }
|
|
@@ -20281,7 +20276,7 @@ var FiltersDropdown = ({
|
|
|
20281
20276
|
defaults[section.id] = section.defaultSelected || [];
|
|
20282
20277
|
});
|
|
20283
20278
|
setSelectedFilters(defaults);
|
|
20284
|
-
_optionalChain([onReset, 'optionalCall',
|
|
20279
|
+
_optionalChain([onReset, 'optionalCall', _452 => _452()]);
|
|
20285
20280
|
setIsOpen(false);
|
|
20286
20281
|
};
|
|
20287
20282
|
const handleApply = () => {
|
|
@@ -20530,7 +20525,7 @@ function MediaGalleryManager({
|
|
|
20530
20525
|
const [draggedIndex, setDraggedIndex] = _react.useState.call(void 0, null);
|
|
20531
20526
|
const handleFileSelect = _react.useCallback.call(void 0,
|
|
20532
20527
|
async (event) => {
|
|
20533
|
-
const file = _optionalChain([event, 'access',
|
|
20528
|
+
const file = _optionalChain([event, 'access', _453 => _453.target, 'access', _454 => _454.files, 'optionalAccess', _455 => _455[0]]);
|
|
20534
20529
|
if (!file) return;
|
|
20535
20530
|
let mediaType;
|
|
20536
20531
|
if (file.type.startsWith("image/")) {
|
|
@@ -20655,7 +20650,7 @@ function MediaGalleryManager({
|
|
|
20655
20650
|
{
|
|
20656
20651
|
type: "button",
|
|
20657
20652
|
variant: "outline",
|
|
20658
|
-
onClick: () => _optionalChain([fileInputRef, 'access',
|
|
20653
|
+
onClick: () => _optionalChain([fileInputRef, 'access', _456 => _456.current, 'optionalAccess', _457 => _457.click, 'call', _458 => _458()]),
|
|
20659
20654
|
disabled: isUploading,
|
|
20660
20655
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Plus, { className: "h-4 w-4" }),
|
|
20661
20656
|
className: "font-bold text-h6",
|
|
@@ -22780,9 +22775,9 @@ function PushButtonSelector({
|
|
|
22780
22775
|
}) {
|
|
22781
22776
|
const scrollRef = _react.useRef.call(void 0, null);
|
|
22782
22777
|
const sentinelRef = _react.useRef.call(void 0, null);
|
|
22783
|
-
const lazyHasMore = _nullishCoalesce(_optionalChain([lazyLoad, 'optionalAccess',
|
|
22784
|
-
const lazyFetching = _nullishCoalesce(_optionalChain([lazyLoad, 'optionalAccess',
|
|
22785
|
-
const onLoadMore = _optionalChain([lazyLoad, 'optionalAccess',
|
|
22778
|
+
const lazyHasMore = _nullishCoalesce(_optionalChain([lazyLoad, 'optionalAccess', _459 => _459.hasMore]), () => ( false));
|
|
22779
|
+
const lazyFetching = _nullishCoalesce(_optionalChain([lazyLoad, 'optionalAccess', _460 => _460.isFetchingMore]), () => ( false));
|
|
22780
|
+
const onLoadMore = _optionalChain([lazyLoad, 'optionalAccess', _461 => _461.onLoadMore]);
|
|
22786
22781
|
const optionCount = options.length;
|
|
22787
22782
|
_react.useEffect.call(void 0, () => {
|
|
22788
22783
|
const sentinel = sentinelRef.current;
|
|
@@ -22953,7 +22948,7 @@ function ReleaseMediaManager({ media, onChange, onUpload, className = "" }) {
|
|
|
22953
22948
|
const fileInputRef = _react.useRef.call(void 0, null);
|
|
22954
22949
|
const [uploadingIndex, setUploadingIndex] = _react.useState.call(void 0, null);
|
|
22955
22950
|
const handleFileSelect = async (event) => {
|
|
22956
|
-
const file = _optionalChain([event, 'access',
|
|
22951
|
+
const file = _optionalChain([event, 'access', _462 => _462.target, 'access', _463 => _463.files, 'optionalAccess', _464 => _464[0]]);
|
|
22957
22952
|
if (!file) return;
|
|
22958
22953
|
let mediaType;
|
|
22959
22954
|
if (file.type.startsWith("image/")) {
|
|
@@ -23035,7 +23030,7 @@ function ReleaseMediaManager({ media, onChange, onUpload, className = "" }) {
|
|
|
23035
23030
|
{
|
|
23036
23031
|
type: "button",
|
|
23037
23032
|
variant: "outline",
|
|
23038
|
-
onClick: () => _optionalChain([fileInputRef, 'access',
|
|
23033
|
+
onClick: () => _optionalChain([fileInputRef, 'access', _465 => _465.current, 'optionalAccess', _466 => _466.click, 'call', _467 => _467()]),
|
|
23039
23034
|
disabled: uploadingIndex !== null,
|
|
23040
23035
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Plus, { className: "h-4 w-4" }),
|
|
23041
23036
|
className: "font-bold text-h6",
|
|
@@ -23316,7 +23311,7 @@ function SEOEditorPreview({
|
|
|
23316
23311
|
const displayImage = hasOgImage || hasFeaturedImage;
|
|
23317
23312
|
const handleImageUpload = async (event) => {
|
|
23318
23313
|
if (!onOgImageUpload) return;
|
|
23319
|
-
const file = _optionalChain([event, 'access',
|
|
23314
|
+
const file = _optionalChain([event, 'access', _468 => _468.target, 'access', _469 => _469.files, 'optionalAccess', _470 => _470[0]]);
|
|
23320
23315
|
if (!file) return;
|
|
23321
23316
|
setIsUploading(true);
|
|
23322
23317
|
try {
|
|
@@ -23473,7 +23468,7 @@ function SEOEditorPreview({
|
|
|
23473
23468
|
type: "button",
|
|
23474
23469
|
variant: "outline",
|
|
23475
23470
|
size: "icon",
|
|
23476
|
-
onClick: () => _optionalChain([fileInputRef, 'optionalAccess',
|
|
23471
|
+
onClick: () => _optionalChain([fileInputRef, 'optionalAccess', _471 => _471.click, 'call', _472 => _472()]),
|
|
23477
23472
|
disabled: disabled || isUploading,
|
|
23478
23473
|
className: "rounded-full bg-white text-black opacity-0 hover:bg-gray-100 group-hover:opacity-100",
|
|
23479
23474
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "h-4 w-4" })
|
|
@@ -23499,7 +23494,7 @@ function SEOEditorPreview({
|
|
|
23499
23494
|
SEO_MEDIA_BOX_HEIGHT,
|
|
23500
23495
|
"flex cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed border-ods-border bg-ods-bg-hover transition-colors hover:border-ods-accent"
|
|
23501
23496
|
),
|
|
23502
|
-
onClick: () => onOgImageUpload && _optionalChain([fileInputRef, 'optionalAccess',
|
|
23497
|
+
onClick: () => onOgImageUpload && _optionalChain([fileInputRef, 'optionalAccess', _473 => _473.click, 'call', _474 => _474()]),
|
|
23503
23498
|
children: isUploading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-8 w-8 animate-spin text-ods-accent" }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
23504
23499
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "mb-2 h-8 w-8 text-ods-text-secondary" }),
|
|
23505
23500
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: onOgImageUpload ? "Click to upload OG image" : "No image" })
|
|
@@ -23660,7 +23655,7 @@ function SocialLinksManager({
|
|
|
23660
23655
|
className = ""
|
|
23661
23656
|
}) {
|
|
23662
23657
|
const addLink = () => {
|
|
23663
|
-
const firstPlatform = _optionalChain([platforms, 'access',
|
|
23658
|
+
const firstPlatform = _optionalChain([platforms, 'access', _475 => _475[0], 'optionalAccess', _476 => _476.name]) || "website";
|
|
23664
23659
|
onChange([...links, { platform: firstPlatform, url: "" }]);
|
|
23665
23660
|
};
|
|
23666
23661
|
const removeLink = (index) => {
|
|
@@ -23672,7 +23667,7 @@ function SocialLinksManager({
|
|
|
23672
23667
|
onChange(updated);
|
|
23673
23668
|
};
|
|
23674
23669
|
const getIcon = (link, platform) => {
|
|
23675
|
-
const iconKey = _optionalChain([platform, 'optionalAccess',
|
|
23670
|
+
const iconKey = _optionalChain([platform, 'optionalAccess', _477 => _477.icon_name]) || link.platform;
|
|
23676
23671
|
const key = normalizeSocialPlatform(iconKey);
|
|
23677
23672
|
if (!key) return null;
|
|
23678
23673
|
const IconComponent = SOCIAL_ICON_COMPONENTS[key];
|
|
@@ -23696,7 +23691,7 @@ function SocialLinksManager({
|
|
|
23696
23691
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23697
23692
|
_chunkN6HNK25Acjs.Input,
|
|
23698
23693
|
{
|
|
23699
|
-
placeholder: _optionalChain([platform, 'optionalAccess',
|
|
23694
|
+
placeholder: _optionalChain([platform, 'optionalAccess', _478 => _478.placeholder]) || "Profile URL",
|
|
23700
23695
|
value: link.url,
|
|
23701
23696
|
onChange: (e) => updateLink(index, "url", e.target.value),
|
|
23702
23697
|
onKeyDown: (e) => {
|
|
@@ -24092,8 +24087,8 @@ function VideoBitesDisplay({
|
|
|
24092
24087
|
|
|
24093
24088
|
var isAtEnd = (duration, time) => duration > 0 && duration - time < 1;
|
|
24094
24089
|
function theaterSeedFromLive(live, fallbackTime, fallbackMuted) {
|
|
24095
|
-
const time = _nullishCoalesce(_optionalChain([live, 'optionalAccess',
|
|
24096
|
-
const atEnd = isAtEnd(_nullishCoalesce(_optionalChain([live, 'optionalAccess',
|
|
24090
|
+
const time = _nullishCoalesce(_optionalChain([live, 'optionalAccess', _479 => _479.getCurrentTime, 'call', _480 => _480()]), () => ( 0));
|
|
24091
|
+
const atEnd = isAtEnd(_nullishCoalesce(_optionalChain([live, 'optionalAccess', _481 => _481.getDuration, 'call', _482 => _482()]), () => ( 0)), time);
|
|
24097
24092
|
return {
|
|
24098
24093
|
// At end -> start over, never rewind to an unrelated older anchor.
|
|
24099
24094
|
time: atEnd ? 0 : time > 0.5 ? time : fallbackTime,
|
|
@@ -24125,11 +24120,11 @@ function WalkthroughVideo({
|
|
|
24125
24120
|
const inline = placement === "inline";
|
|
24126
24121
|
const dismissEnabled = dismissal !== false;
|
|
24127
24122
|
const storageKey = dismissEnabled && dismissal.storageKey || WALKTHROUGH_VIDEO_DISMISS_KEY;
|
|
24128
|
-
const dismissalId = _optionalChain([video, 'optionalAccess',
|
|
24123
|
+
const dismissalId = _optionalChain([video, 'optionalAccess', _483 => _483.id]) != null ? String(video.id) : "dismissed";
|
|
24129
24124
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
24130
24125
|
const [dismissed, setDismissed] = _react.useState.call(void 0, false);
|
|
24131
24126
|
const hasVideo = video != null;
|
|
24132
|
-
const videoId = _optionalChain([video, 'optionalAccess',
|
|
24127
|
+
const videoId = _optionalChain([video, 'optionalAccess', _484 => _484.id]);
|
|
24133
24128
|
_react.useEffect.call(void 0, () => {
|
|
24134
24129
|
let idleHandle = null;
|
|
24135
24130
|
if (!hasVideo) return void 0;
|
|
@@ -24156,9 +24151,9 @@ function WalkthroughVideo({
|
|
|
24156
24151
|
const previewSuppressed = _react.useMemo.call(void 0, () => {
|
|
24157
24152
|
if (!hydrated) return false;
|
|
24158
24153
|
try {
|
|
24159
|
-
const reducedMotion = _nullishCoalesce(_optionalChain([window, 'access',
|
|
24154
|
+
const reducedMotion = _nullishCoalesce(_optionalChain([window, 'access', _485 => _485.matchMedia, 'optionalCall', _486 => _486("(prefers-reduced-motion: reduce)"), 'access', _487 => _487.matches]), () => ( false));
|
|
24160
24155
|
const conn = navigator.connection;
|
|
24161
|
-
const saveData = _optionalChain([conn, 'optionalAccess',
|
|
24156
|
+
const saveData = _optionalChain([conn, 'optionalAccess', _488 => _488.saveData]) === true || _optionalChain([conn, 'optionalAccess', _489 => _489.effectiveType]) === "2g" || _optionalChain([conn, 'optionalAccess', _490 => _490.effectiveType]) === "slow-2g";
|
|
24162
24157
|
return Boolean(reducedMotion || saveData);
|
|
24163
24158
|
} catch (e28) {
|
|
24164
24159
|
return false;
|
|
@@ -24191,18 +24186,18 @@ function WalkthroughVideo({
|
|
|
24191
24186
|
const [cardMuted, setCardMuted] = _react.useState.call(void 0, false);
|
|
24192
24187
|
const [cardPaused, setCardPaused] = _react.useState.call(void 0, false);
|
|
24193
24188
|
const [userMuted, setUserMuted] = _react.useState.call(void 0, false);
|
|
24194
|
-
const isYouTube = Boolean(_optionalChain([video, 'optionalAccess',
|
|
24189
|
+
const isYouTube = Boolean(_optionalChain([video, 'optionalAccess', _491 => _491.youtubeUrl]));
|
|
24195
24190
|
const resumeMode = !open && handoff !== null && !isYouTube;
|
|
24196
24191
|
const previewAllowed = !previewSuppressed && !isYouTube;
|
|
24197
24192
|
const footerFadeKey = `${mounted ? 1 : 0}|${inline ? 1 : 0}|${hideNearSelector}|${pathname}`;
|
|
24198
|
-
const footerHidden = _optionalChain([footerObservation, 'optionalAccess',
|
|
24193
|
+
const footerHidden = _optionalChain([footerObservation, 'optionalAccess', _492 => _492.key]) === footerFadeKey && footerObservation.hidden;
|
|
24199
24194
|
_react.useEffect.call(void 0, () => {
|
|
24200
24195
|
if (!mounted) return void 0;
|
|
24201
24196
|
if (inline) return void 0;
|
|
24202
24197
|
const el = typeof document !== "undefined" ? document.querySelector(hideNearSelector) : null;
|
|
24203
24198
|
if (!el || typeof IntersectionObserver === "undefined") return void 0;
|
|
24204
24199
|
const io = new IntersectionObserver(
|
|
24205
|
-
(entries) => setFooterObservation({ key: footerFadeKey, hidden: _nullishCoalesce(_optionalChain([entries, 'access',
|
|
24200
|
+
(entries) => setFooterObservation({ key: footerFadeKey, hidden: _nullishCoalesce(_optionalChain([entries, 'access', _493 => _493[0], 'optionalAccess', _494 => _494.isIntersecting]), () => ( false)) }),
|
|
24206
24201
|
{ rootMargin: "0px 0px -40px 0px" }
|
|
24207
24202
|
);
|
|
24208
24203
|
io.observe(el);
|
|
@@ -24228,7 +24223,7 @@ function WalkthroughVideo({
|
|
|
24228
24223
|
if (!footerHidden) return;
|
|
24229
24224
|
const h = _nullishCoalesce(resumeHandleRef.current, () => ( previewHandleRef.current));
|
|
24230
24225
|
try {
|
|
24231
|
-
_optionalChain([h, 'optionalAccess',
|
|
24226
|
+
_optionalChain([h, 'optionalAccess', _495 => _495.pause, 'call', _496 => _496()]);
|
|
24232
24227
|
} catch (e30) {
|
|
24233
24228
|
}
|
|
24234
24229
|
}, [footerHidden, resumeMode, hovered]);
|
|
@@ -24247,30 +24242,30 @@ function WalkthroughVideo({
|
|
|
24247
24242
|
}, 400);
|
|
24248
24243
|
}
|
|
24249
24244
|
if (openProp === void 0) setOpenState(next);
|
|
24250
|
-
_optionalChain([onOpenChange, 'optionalCall',
|
|
24245
|
+
_optionalChain([onOpenChange, 'optionalCall', _497 => _497(next)]);
|
|
24251
24246
|
},
|
|
24252
24247
|
[openProp, onOpenChange]
|
|
24253
24248
|
);
|
|
24254
24249
|
const pausePreviewNow = _react.useCallback.call(void 0, () => {
|
|
24255
24250
|
const h = _nullishCoalesce(resumeHandleRef.current, () => ( previewHandleRef.current));
|
|
24256
24251
|
try {
|
|
24257
|
-
_optionalChain([h, 'optionalAccess',
|
|
24252
|
+
_optionalChain([h, 'optionalAccess', _498 => _498.pause, 'call', _499 => _499()]);
|
|
24258
24253
|
} catch (e31) {
|
|
24259
24254
|
}
|
|
24260
24255
|
setCardPaused(true);
|
|
24261
24256
|
}, [setCardPaused]);
|
|
24262
24257
|
const openTheater = _react.useCallback.call(void 0, () => {
|
|
24263
24258
|
const handleBeforePause = _nullishCoalesce(resumeHandleRef.current, () => ( previewHandleRef.current));
|
|
24264
|
-
const liveWasPlaying = _optionalChain([handleBeforePause, 'optionalAccess',
|
|
24259
|
+
const liveWasPlaying = _optionalChain([handleBeforePause, 'optionalAccess', _500 => _500.getPaused, 'call', _501 => _501()]) === false;
|
|
24265
24260
|
pausePreviewNow();
|
|
24266
24261
|
const liveHandle = _nullishCoalesce(resumeHandleRef.current, () => ( (cardModeRef.current === "preview" ? previewHandleRef.current : null)));
|
|
24267
|
-
const liveTime = _nullishCoalesce(_optionalChain([liveHandle, 'optionalAccess',
|
|
24268
|
-
const liveDuration = _nullishCoalesce(_optionalChain([liveHandle, 'optionalAccess',
|
|
24262
|
+
const liveTime = _nullishCoalesce(_optionalChain([liveHandle, 'optionalAccess', _502 => _502.getCurrentTime, 'call', _503 => _503()]), () => ( 0));
|
|
24263
|
+
const liveDuration = _nullishCoalesce(_optionalChain([liveHandle, 'optionalAccess', _504 => _504.getDuration, 'call', _505 => _505()]), () => ( 0));
|
|
24269
24264
|
const liveAtEnd = isAtEnd(liveDuration, liveTime);
|
|
24270
24265
|
const start = {
|
|
24271
24266
|
// At end -> start over. Falling back to `handoff.time` here would rewind
|
|
24272
24267
|
// to an unrelated older anchor (e.g. 3:20) instead of restarting.
|
|
24273
|
-
time: liveAtEnd ? 0 : liveTime > 0.5 ? liveTime : _nullishCoalesce(_optionalChain([handoff, 'optionalAccess',
|
|
24268
|
+
time: liveAtEnd ? 0 : liveTime > 0.5 ? liveTime : _nullishCoalesce(_optionalChain([handoff, 'optionalAccess', _506 => _506.time]), () => ( 0)),
|
|
24274
24269
|
// Live element wins over remembered intent (the theater's own chrome may
|
|
24275
24270
|
// have changed it) — EXCEPT when the element is muted only because
|
|
24276
24271
|
// autoplay policy forced it, which is not intent.
|
|
@@ -24298,7 +24293,7 @@ function WalkthroughVideo({
|
|
|
24298
24293
|
const selfDriven = selfDrivenFor === open;
|
|
24299
24294
|
if (openProp !== void 0 && !selfDriven) {
|
|
24300
24295
|
if (open) {
|
|
24301
|
-
setTheaterStart(theaterSeedFromLive(resumeHandleRef.current, _nullishCoalesce(_optionalChain([handoff, 'optionalAccess',
|
|
24296
|
+
setTheaterStart(theaterSeedFromLive(resumeHandleRef.current, _nullishCoalesce(_optionalChain([handoff, 'optionalAccess', _507 => _507.time]), () => ( 0)), userMuted));
|
|
24302
24297
|
setHovered(false);
|
|
24303
24298
|
setSuspended(false);
|
|
24304
24299
|
setHandoff(null);
|
|
@@ -24384,8 +24379,8 @@ function WalkthroughVideo({
|
|
|
24384
24379
|
});
|
|
24385
24380
|
_react.useEffect.call(void 0, () => {
|
|
24386
24381
|
if (resumeMode) {
|
|
24387
|
-
setCardMuted(_nullishCoalesce(_optionalChain([handoffRef, 'access',
|
|
24388
|
-
setCardPaused(_optionalChain([handoffRef, 'access',
|
|
24382
|
+
setCardMuted(_nullishCoalesce(_optionalChain([handoffRef, 'access', _508 => _508.current, 'optionalAccess', _509 => _509.muted]), () => ( false)));
|
|
24383
|
+
setCardPaused(_optionalChain([handoffRef, 'access', _510 => _510.current, 'optionalAccess', _511 => _511.playing]) === false);
|
|
24389
24384
|
}
|
|
24390
24385
|
}, [resumeMode]);
|
|
24391
24386
|
const [hoverSeeded, setHoverSeeded] = _react.useState.call(void 0, hovered);
|
|
@@ -24467,11 +24462,11 @@ function WalkthroughVideo({
|
|
|
24467
24462
|
},
|
|
24468
24463
|
[cardFallback.blocked, cardPaused, activeHandle, setCardPaused]
|
|
24469
24464
|
);
|
|
24470
|
-
const summaryTitle = _optionalChain([video, 'optionalAccess',
|
|
24471
|
-
const presenterAvatarSrc = _nullishCoalesce(_optionalChain([video, 'optionalAccess',
|
|
24465
|
+
const summaryTitle = _optionalChain([video, 'optionalAccess', _512 => _512.title]) || void 0;
|
|
24466
|
+
const presenterAvatarSrc = _nullishCoalesce(_optionalChain([video, 'optionalAccess', _513 => _513.presenterAvatarUrl]), () => ( null));
|
|
24472
24467
|
const embedUrlKey = _react.useMemo.call(void 0,
|
|
24473
|
-
() => `${_nullishCoalesce(_optionalChain([video, 'optionalAccess',
|
|
24474
|
-
[_optionalChain([video, 'optionalAccess',
|
|
24468
|
+
() => `${_nullishCoalesce(_optionalChain([video, 'optionalAccess', _514 => _514.mainVideoUrl]), () => ( ""))}|${_nullishCoalesce(_optionalChain([video, 'optionalAccess', _515 => _515.youtubeUrl]), () => ( ""))}`,
|
|
24469
|
+
[_optionalChain([video, 'optionalAccess', _516 => _516.mainVideoUrl]), _optionalChain([video, 'optionalAccess', _517 => _517.youtubeUrl])]
|
|
24475
24470
|
);
|
|
24476
24471
|
const cardActive = !open && previewAllowed && hovered && !resumeMode;
|
|
24477
24472
|
const cardMode = resumeMode ? "resume" : cardActive ? "preview" : "poster";
|
|
@@ -24530,7 +24525,7 @@ function WalkthroughVideo({
|
|
|
24530
24525
|
const el = e.target;
|
|
24531
24526
|
let keyboard = false;
|
|
24532
24527
|
try {
|
|
24533
|
-
keyboard = _nullishCoalesce(_optionalChain([el, 'access',
|
|
24528
|
+
keyboard = _nullishCoalesce(_optionalChain([el, 'access', _518 => _518.matches, 'optionalCall', _519 => _519(":focus-visible")]), () => ( false));
|
|
24534
24529
|
} catch (e36) {
|
|
24535
24530
|
keyboard = false;
|
|
24536
24531
|
}
|
|
@@ -24564,9 +24559,9 @@ function WalkthroughVideo({
|
|
|
24564
24559
|
previewHandleRef: cardMode === "resume" ? resumeHandleRef : previewHandleRef,
|
|
24565
24560
|
mutedIntent: userMuted,
|
|
24566
24561
|
continuation: cardMode === "resume",
|
|
24567
|
-
autoPlay: cardMode === "resume" && _optionalChain([handoff, 'optionalAccess',
|
|
24568
|
-
startTime: _optionalChain([resumeHandoff, 'optionalAccess',
|
|
24569
|
-
startMuted: _nullishCoalesce(_optionalChain([resumeHandoff, 'optionalAccess',
|
|
24562
|
+
autoPlay: cardMode === "resume" && _optionalChain([handoff, 'optionalAccess', _520 => _520.playing]) !== false && !footerHidden,
|
|
24563
|
+
startTime: _optionalChain([resumeHandoff, 'optionalAccess', _521 => _521.time]),
|
|
24564
|
+
startMuted: _nullishCoalesce(_optionalChain([resumeHandoff, 'optionalAccess', _522 => _522.muted]), () => ( false)),
|
|
24570
24565
|
onEnded: cardMode === "resume" ? () => setHandoff(null) : () => setCardPaused(true)
|
|
24571
24566
|
},
|
|
24572
24567
|
`card-${embedUrlKey}`
|
|
@@ -24663,7 +24658,7 @@ function WalkthroughVideo({
|
|
|
24663
24658
|
{
|
|
24664
24659
|
onOpenAutoFocus: (e) => {
|
|
24665
24660
|
e.preventDefault();
|
|
24666
|
-
_optionalChain([closeButtonRef, 'access',
|
|
24661
|
+
_optionalChain([closeButtonRef, 'access', _523 => _523.current, 'optionalAccess', _524 => _524.focus, 'call', _525 => _525()]);
|
|
24667
24662
|
},
|
|
24668
24663
|
className: _chunk23V5BSHDcjs.cn.call(void 0,
|
|
24669
24664
|
// PURE theater: just the video, centered on a dimmed backdrop.
|
|
@@ -24757,14 +24752,14 @@ function useWalkthroughVideo(opts) {
|
|
|
24757
24752
|
if (res.status === 404) return null;
|
|
24758
24753
|
if (!res.ok) throw new Error(`Walkthrough video request failed (${res.status})`);
|
|
24759
24754
|
const body = await res.json();
|
|
24760
|
-
return _nullishCoalesce(_optionalChain([body, 'optionalAccess',
|
|
24755
|
+
return _nullishCoalesce(_optionalChain([body, 'optionalAccess', _526 => _526.walkthroughVideo]), () => ( null));
|
|
24761
24756
|
},
|
|
24762
24757
|
// Per-observer transform — NEVER mutate the cached data. `select` also runs
|
|
24763
24758
|
// over `initialData`, so the SSR seed is rewritten too. Keeping the proxy
|
|
24764
24759
|
// rewrite here (not in queryFn) means a second consumer of the same
|
|
24765
24760
|
// endpoint can't inherit this observer's proxied captionsUrl from the cache.
|
|
24766
24761
|
select: (video) => {
|
|
24767
|
-
if (!_optionalChain([video, 'optionalAccess',
|
|
24762
|
+
if (!_optionalChain([video, 'optionalAccess', _527 => _527.captionsUrl])) return video;
|
|
24768
24763
|
if (transformCaptionsUrl && video.captionsUrl.startsWith("/")) {
|
|
24769
24764
|
return { ...video, captionsUrl: transformCaptionsUrl(video.captionsUrl) };
|
|
24770
24765
|
}
|
|
@@ -24811,7 +24806,7 @@ function VideoSourceSelector({
|
|
|
24811
24806
|
input.accept = "video/*";
|
|
24812
24807
|
input.onchange = async (e) => {
|
|
24813
24808
|
const target = e.target;
|
|
24814
|
-
const file = _optionalChain([target, 'access',
|
|
24809
|
+
const file = _optionalChain([target, 'access', _528 => _528.files, 'optionalAccess', _529 => _529[0]]);
|
|
24815
24810
|
if (!file) return;
|
|
24816
24811
|
setIsUploading(true);
|
|
24817
24812
|
setUploadProgress(0);
|
|
@@ -24987,7 +24982,7 @@ function SubtitlesEditor({
|
|
|
24987
24982
|
{
|
|
24988
24983
|
id,
|
|
24989
24984
|
value: subtitles || "",
|
|
24990
|
-
onChange: (e) => _optionalChain([onSubtitlesChange, 'optionalCall',
|
|
24985
|
+
onChange: (e) => _optionalChain([onSubtitlesChange, 'optionalCall', _530 => _530(e.target.value)]),
|
|
24991
24986
|
placeholder,
|
|
24992
24987
|
disabled: disabled || !onSubtitlesChange,
|
|
24993
24988
|
className: "h-full w-full resize-none border-0 bg-transparent p-4 text-ods-text-primary text-code placeholder:text-ods-text-secondary/50 focus:outline-none focus:ring-0",
|
|
@@ -25216,7 +25211,7 @@ var AIEnrichSection = ({
|
|
|
25216
25211
|
}) => {
|
|
25217
25212
|
const hasResults = status === "success" || status === "error";
|
|
25218
25213
|
const shouldDisable = disabled || !canEnrich;
|
|
25219
|
-
const unfilledFields = _optionalChain([requiredFields, 'optionalAccess',
|
|
25214
|
+
const unfilledFields = _optionalChain([requiredFields, 'optionalAccess', _531 => _531.filter, 'call', _532 => _532((f) => !f.isFilled)]) || [];
|
|
25220
25215
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25221
25216
|
"div",
|
|
25222
25217
|
{
|
|
@@ -25248,7 +25243,7 @@ var AIEnrichSection = ({
|
|
|
25248
25243
|
{
|
|
25249
25244
|
id: "ai-enrich-custom-instructions",
|
|
25250
25245
|
value: _nullishCoalesce(customInstructions, () => ( "")),
|
|
25251
|
-
onChange: (e) => _optionalChain([onCustomInstructionsChange, 'optionalCall',
|
|
25246
|
+
onChange: (e) => _optionalChain([onCustomInstructionsChange, 'optionalCall', _533 => _533(e.target.value)]),
|
|
25252
25247
|
placeholder: customInstructionsPlaceholder,
|
|
25253
25248
|
disabled: loading,
|
|
25254
25249
|
maxLength: customInstructionsMaxLength,
|
|
@@ -25370,7 +25365,7 @@ function HighlightVideoSection({
|
|
|
25370
25365
|
input.accept = "video/*";
|
|
25371
25366
|
input.onchange = async (e) => {
|
|
25372
25367
|
const target = e.target;
|
|
25373
|
-
const file = _optionalChain([target, 'access',
|
|
25368
|
+
const file = _optionalChain([target, 'access', _534 => _534.files, 'optionalAccess', _535 => _535[0]]);
|
|
25374
25369
|
if (!file) return;
|
|
25375
25370
|
setUploadError(null);
|
|
25376
25371
|
try {
|
|
@@ -25797,7 +25792,7 @@ function HighlightVideoPreview({
|
|
|
25797
25792
|
input.accept = "video/*";
|
|
25798
25793
|
input.onchange = async (e) => {
|
|
25799
25794
|
const target = e.target;
|
|
25800
|
-
const file = _optionalChain([target, 'access',
|
|
25795
|
+
const file = _optionalChain([target, 'access', _536 => _536.files, 'optionalAccess', _537 => _537[0]]);
|
|
25801
25796
|
if (!file) return;
|
|
25802
25797
|
await onUpload(file);
|
|
25803
25798
|
};
|
|
@@ -25981,7 +25976,7 @@ function HighlightVideoCombinedSection({
|
|
|
25981
25976
|
input.accept = "video/*";
|
|
25982
25977
|
input.onchange = async (e) => {
|
|
25983
25978
|
const target = e.target;
|
|
25984
|
-
const file = _optionalChain([target, 'access',
|
|
25979
|
+
const file = _optionalChain([target, 'access', _538 => _538.files, 'optionalAccess', _539 => _539[0]]);
|
|
25985
25980
|
if (!file) return;
|
|
25986
25981
|
await onUpload(file);
|
|
25987
25982
|
};
|
|
@@ -26660,19 +26655,19 @@ function NotificationsProvider({
|
|
|
26660
26655
|
}, []);
|
|
26661
26656
|
const markRead = _react.useCallback.call(void 0, (id) => {
|
|
26662
26657
|
dispatch({ type: "markRead", id });
|
|
26663
|
-
void _optionalChain([actionsRef, 'access',
|
|
26658
|
+
void _optionalChain([actionsRef, 'access', _540 => _540.current, 'optionalAccess', _541 => _541.onMarkRead, 'optionalCall', _542 => _542(id)]);
|
|
26664
26659
|
}, []);
|
|
26665
26660
|
const markAllRead = _react.useCallback.call(void 0, () => {
|
|
26666
26661
|
dispatch({ type: "markAllRead" });
|
|
26667
|
-
void _optionalChain([actionsRef, 'access',
|
|
26662
|
+
void _optionalChain([actionsRef, 'access', _543 => _543.current, 'optionalAccess', _544 => _544.onMarkAllRead, 'optionalCall', _545 => _545()]);
|
|
26668
26663
|
}, []);
|
|
26669
26664
|
const markSettled = _react.useCallback.call(void 0, (id) => {
|
|
26670
26665
|
dispatch({ type: "markSettled", id });
|
|
26671
|
-
void _optionalChain([actionsRef, 'access',
|
|
26666
|
+
void _optionalChain([actionsRef, 'access', _546 => _546.current, 'optionalAccess', _547 => _547.onMarkSettled, 'optionalCall', _548 => _548(id)]);
|
|
26672
26667
|
}, []);
|
|
26673
26668
|
const remove = _react.useCallback.call(void 0, (id) => {
|
|
26674
26669
|
dispatch({ type: "remove", id });
|
|
26675
|
-
void _optionalChain([actionsRef, 'access',
|
|
26670
|
+
void _optionalChain([actionsRef, 'access', _549 => _549.current, 'optionalAccess', _550 => _550.onRemove, 'optionalCall', _551 => _551(id)]);
|
|
26676
26671
|
}, []);
|
|
26677
26672
|
const clear = _react.useCallback.call(void 0, () => dispatch({ type: "clear" }), []);
|
|
26678
26673
|
const open = _react.useCallback.call(void 0, () => setIsOpen(true), []);
|
|
@@ -26681,14 +26676,14 @@ function NotificationsProvider({
|
|
|
26681
26676
|
const setShowPopups = _react.useCallback.call(void 0,
|
|
26682
26677
|
(value2) => {
|
|
26683
26678
|
setShowPopupsState(value2);
|
|
26684
|
-
_optionalChain([onShowPopupsChange, 'optionalCall',
|
|
26679
|
+
_optionalChain([onShowPopupsChange, 'optionalCall', _552 => _552(value2)]);
|
|
26685
26680
|
},
|
|
26686
26681
|
[onShowPopupsChange]
|
|
26687
26682
|
);
|
|
26688
26683
|
const setShowDesktopPopups = _react.useCallback.call(void 0,
|
|
26689
26684
|
(value2) => {
|
|
26690
26685
|
setShowDesktopPopupsState(value2);
|
|
26691
|
-
_optionalChain([onShowDesktopPopupsChange, 'optionalCall',
|
|
26686
|
+
_optionalChain([onShowDesktopPopupsChange, 'optionalCall', _553 => _553(value2)]);
|
|
26692
26687
|
},
|
|
26693
26688
|
[onShowDesktopPopupsChange]
|
|
26694
26689
|
);
|
|
@@ -26804,7 +26799,7 @@ var AppLayoutDrawerRoot = ({
|
|
|
26804
26799
|
const handleOpenChange = _react.useCallback.call(void 0,
|
|
26805
26800
|
(next) => {
|
|
26806
26801
|
if (!isControlled) setInternalOpen(next);
|
|
26807
|
-
_optionalChain([onOpenChange, 'optionalCall',
|
|
26802
|
+
_optionalChain([onOpenChange, 'optionalCall', _554 => _554(next)]);
|
|
26808
26803
|
},
|
|
26809
26804
|
[isControlled, onOpenChange]
|
|
26810
26805
|
);
|
|
@@ -26821,9 +26816,9 @@ var AppLayoutDrawerRoot = ({
|
|
|
26821
26816
|
}
|
|
26822
26817
|
}));
|
|
26823
26818
|
_react.useEffect.call(void 0, () => {
|
|
26824
|
-
if (open) _optionalChain([coordination, 'optionalAccess',
|
|
26819
|
+
if (open) _optionalChain([coordination, 'optionalAccess', _555 => _555.notifyDrawerDidOpen, 'call', _556 => _556(selfHandle)]);
|
|
26825
26820
|
}, [open, coordination, selfHandle]);
|
|
26826
|
-
_react.useEffect.call(void 0, () => _optionalChain([coordination, 'optionalAccess',
|
|
26821
|
+
_react.useEffect.call(void 0, () => _optionalChain([coordination, 'optionalAccess', _557 => _557.registerDrawer, 'call', _558 => _558(selfHandle)]), [coordination, selfHandle]);
|
|
26827
26822
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DrawerOpenContext.Provider, { value: open, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogPrimitive3.Root, { ...rest, open, onOpenChange: handleOpenChange, modal, children }) });
|
|
26828
26823
|
};
|
|
26829
26824
|
AppLayoutDrawerRoot.displayName = "AppLayoutDrawer";
|
|
@@ -27172,10 +27167,10 @@ var AppLayoutDrawerContent = _react.forwardRef.call(void 0,
|
|
|
27172
27167
|
),
|
|
27173
27168
|
style,
|
|
27174
27169
|
onInteractOutside: (event) => {
|
|
27175
|
-
_optionalChain([onInteractOutside, 'optionalCall',
|
|
27170
|
+
_optionalChain([onInteractOutside, 'optionalCall', _559 => _559(event)]);
|
|
27176
27171
|
if (event.defaultPrevented) return;
|
|
27177
27172
|
const target = event.target;
|
|
27178
|
-
const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess',
|
|
27173
|
+
const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess', _560 => _560.contains, 'call', _561 => _561(target)]);
|
|
27179
27174
|
if (!isInsideContainer) {
|
|
27180
27175
|
event.preventDefault();
|
|
27181
27176
|
return;
|
|
@@ -27278,7 +27273,7 @@ function NotificationTile({
|
|
|
27278
27273
|
if (!counting) return void 0;
|
|
27279
27274
|
const remaining = Math.max(0, liveDurationMs - initialElapsed);
|
|
27280
27275
|
const timer = window.setTimeout(() => {
|
|
27281
|
-
_optionalChain([onSettle, 'optionalCall',
|
|
27276
|
+
_optionalChain([onSettle, 'optionalCall', _562 => _562(id)]);
|
|
27282
27277
|
}, remaining);
|
|
27283
27278
|
return () => window.clearTimeout(timer);
|
|
27284
27279
|
}, [id, counting, initialElapsed, liveDurationMs, onSettle]);
|
|
@@ -27318,7 +27313,7 @@ function NotificationTile({
|
|
|
27318
27313
|
active: isLive,
|
|
27319
27314
|
label: "Dismiss notification",
|
|
27320
27315
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.XmarkIcon, { size: 16 }),
|
|
27321
|
-
onClick: () => _optionalChain([onSettle, 'optionalCall',
|
|
27316
|
+
onClick: () => _optionalChain([onSettle, 'optionalCall', _563 => _563(id)])
|
|
27322
27317
|
},
|
|
27323
27318
|
{
|
|
27324
27319
|
active: !isLive,
|
|
@@ -27506,7 +27501,7 @@ function DrawerScrollList({
|
|
|
27506
27501
|
if (!sentinel || !root) return void 0;
|
|
27507
27502
|
const observer = new IntersectionObserver(
|
|
27508
27503
|
(entries) => {
|
|
27509
|
-
if (_optionalChain([entries, 'access',
|
|
27504
|
+
if (_optionalChain([entries, 'access', _564 => _564[0], 'optionalAccess', _565 => _565.isIntersecting])) _optionalChain([loadMoreRef, 'access', _566 => _566.current, 'optionalCall', _567 => _567()]);
|
|
27510
27505
|
},
|
|
27511
27506
|
{ root, rootMargin: loadMoreRootMargin }
|
|
27512
27507
|
);
|
|
@@ -27521,7 +27516,7 @@ function DrawerScrollList({
|
|
|
27521
27516
|
className: "flex flex-1 flex-col gap-[var(--spacing-system-xs)] overflow-y-auto px-[var(--spacing-system-m)]",
|
|
27522
27517
|
children: isEmpty && !isLoadingMore ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmptyState, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
27523
27518
|
unreadNotifications.map((n) => {
|
|
27524
|
-
const custom = _optionalChain([renderTile, 'optionalCall',
|
|
27519
|
+
const custom = _optionalChain([renderTile, 'optionalCall', _568 => _568(n, { onComplete, onSettle, liveDurationMs })]);
|
|
27525
27520
|
if (custom) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: custom }, n.id);
|
|
27526
27521
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27527
27522
|
NotificationTile,
|
|
@@ -27641,7 +27636,7 @@ function NotificationPopups({
|
|
|
27641
27636
|
}) {
|
|
27642
27637
|
const ctx = useOptionalNotifications();
|
|
27643
27638
|
const [now, setNow] = _react.useState.call(void 0, () => Date.now());
|
|
27644
|
-
const hasAgeingNotifications = Boolean(_optionalChain([ctx, 'optionalAccess',
|
|
27639
|
+
const hasAgeingNotifications = Boolean(_optionalChain([ctx, 'optionalAccess', _569 => _569.notifications, 'access', _570 => _570.some, 'call', _571 => _571((n) => !n.read && !n.settled)]));
|
|
27645
27640
|
_react.useEffect.call(void 0, () => {
|
|
27646
27641
|
if (!hasAgeingNotifications) return void 0;
|
|
27647
27642
|
const id = setInterval(() => setNow(Date.now()), 500);
|
|
@@ -27684,7 +27679,7 @@ function NotificationPopups({
|
|
|
27684
27679
|
className
|
|
27685
27680
|
),
|
|
27686
27681
|
children: live.map((n) => {
|
|
27687
|
-
const custom = _optionalChain([renderTile, 'optionalCall',
|
|
27682
|
+
const custom = _optionalChain([renderTile, 'optionalCall', _572 => _572(n, { onComplete: markRead, onSettle: markSettled, liveDurationMs })]);
|
|
27688
27683
|
if (custom) {
|
|
27689
27684
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-auto", children: custom }, n.id);
|
|
27690
27685
|
}
|
|
@@ -27723,21 +27718,21 @@ function NotificationPopups({
|
|
|
27723
27718
|
// src/components/features/notifications/types.ts
|
|
27724
27719
|
var ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE = "ADMIN_APPROVAL_REQUEST";
|
|
27725
27720
|
function isApprovalNotification(notification) {
|
|
27726
|
-
return _optionalChain([notification, 'access',
|
|
27721
|
+
return _optionalChain([notification, 'access', _573 => _573.meta, 'optionalAccess', _574 => _574.contextType]) === ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE;
|
|
27727
27722
|
}
|
|
27728
27723
|
function getApprovalMeta(notification) {
|
|
27729
27724
|
if (!isApprovalNotification(notification)) return null;
|
|
27730
27725
|
const meta = notification.meta;
|
|
27731
|
-
const approvalRequestId = _optionalChain([meta, 'optionalAccess',
|
|
27732
|
-
const toolCalls = _optionalChain([meta, 'optionalAccess',
|
|
27726
|
+
const approvalRequestId = _optionalChain([meta, 'optionalAccess', _575 => _575.approvalRequestId]);
|
|
27727
|
+
const toolCalls = _optionalChain([meta, 'optionalAccess', _576 => _576.toolCalls]);
|
|
27733
27728
|
if (typeof approvalRequestId !== "string" || !Array.isArray(toolCalls)) return null;
|
|
27734
27729
|
return {
|
|
27735
27730
|
approvalRequestId,
|
|
27736
|
-
dialogId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
27737
|
-
ticketId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
27738
|
-
approvalType: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
27739
|
-
resolution: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
27740
|
-
resolvedByName: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
27731
|
+
dialogId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _577 => _577.dialogId]), () => ( null)),
|
|
27732
|
+
ticketId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _578 => _578.ticketId]), () => ( null)),
|
|
27733
|
+
approvalType: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _579 => _579.approvalType]), () => ( null)),
|
|
27734
|
+
resolution: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _580 => _580.resolution]), () => ( null)),
|
|
27735
|
+
resolvedByName: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _581 => _581.resolvedByName]), () => ( null)),
|
|
27741
27736
|
toolCalls
|
|
27742
27737
|
};
|
|
27743
27738
|
}
|
|
@@ -27787,7 +27782,7 @@ function ApprovalRequestNotificationTile({
|
|
|
27787
27782
|
const [processing, setProcessing] = _react.useState.call(void 0, false);
|
|
27788
27783
|
const [localStatus, setLocalStatus] = _react.useState.call(void 0, null);
|
|
27789
27784
|
const approval = getApprovalMeta(notification);
|
|
27790
|
-
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess',
|
|
27785
|
+
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess', _582 => _582.resolution]));
|
|
27791
27786
|
const status = resolvedStatus !== "pending" ? resolvedStatus : _nullishCoalesce(localStatus, () => ( "pending"));
|
|
27792
27787
|
const batchData = _react.useMemo.call(void 0, () => approval ? approvalMetaToBatchData(approval) : null, [approval]);
|
|
27793
27788
|
const { innerRef, containerStyle } = _chunkYXTAV2E3cjs.useCollapsible.call(void 0, { expanded });
|
|
@@ -28114,7 +28109,7 @@ function TimeTrackerPanel({
|
|
|
28114
28109
|
error: showFieldError ? "Required if no notes added" : void 0,
|
|
28115
28110
|
disableClientFilter: !!onTicketSearch,
|
|
28116
28111
|
onInputChange: (value, reason) => {
|
|
28117
|
-
if (reason === "input") _optionalChain([onTicketSearch, 'optionalCall',
|
|
28112
|
+
if (reason === "input") _optionalChain([onTicketSearch, 'optionalCall', _583 => _583(value)]);
|
|
28118
28113
|
}
|
|
28119
28114
|
}
|
|
28120
28115
|
),
|
|
@@ -28129,7 +28124,7 @@ function TimeTrackerPanel({
|
|
|
28129
28124
|
disabled: customerLocked,
|
|
28130
28125
|
disableClientFilter: !!onCustomerSearch,
|
|
28131
28126
|
onInputChange: (value, reason) => {
|
|
28132
|
-
if (reason === "input") _optionalChain([onCustomerSearch, 'optionalCall',
|
|
28127
|
+
if (reason === "input") _optionalChain([onCustomerSearch, 'optionalCall', _584 => _584(value)]);
|
|
28133
28128
|
},
|
|
28134
28129
|
startAdornment: customerStartAdornment,
|
|
28135
28130
|
renderOption: renderCustomerOption
|
|
@@ -28231,7 +28226,7 @@ function LastEntryRow({ entry, onClick }) {
|
|
|
28231
28226
|
{
|
|
28232
28227
|
variant: "outline",
|
|
28233
28228
|
size: "icon",
|
|
28234
|
-
onClick: () => _optionalChain([onClick, 'optionalCall',
|
|
28229
|
+
onClick: () => _optionalChain([onClick, 'optionalCall', _585 => _585(entry)]),
|
|
28235
28230
|
disabled: !onClick,
|
|
28236
28231
|
"aria-label": `Open entry: ${entry.title}`,
|
|
28237
28232
|
className: "h-12 w-12 shrink-0 [&_svg]:!size-6",
|
|
@@ -28315,28 +28310,28 @@ function HeaderButton({
|
|
|
28315
28310
|
function TimeTrackerHeaderButton({ className, disabled }) {
|
|
28316
28311
|
const ctx = useOptionalTimeTracker();
|
|
28317
28312
|
const elapsedLabel = useTrackerClock({
|
|
28318
|
-
status: _nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
28319
|
-
runningSince: _optionalChain([ctx, 'optionalAccess',
|
|
28320
|
-
accumulatedMs: _optionalChain([ctx, 'optionalAccess',
|
|
28313
|
+
status: _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _586 => _586.status]), () => ( "ready")),
|
|
28314
|
+
runningSince: _optionalChain([ctx, 'optionalAccess', _587 => _587.runningSince]),
|
|
28315
|
+
accumulatedMs: _optionalChain([ctx, 'optionalAccess', _588 => _588.accumulatedMs])
|
|
28321
28316
|
});
|
|
28322
28317
|
const layoutContainer = useAppLayoutDrawerContainer();
|
|
28323
28318
|
const coordination = useAppLayoutDrawerCoordination();
|
|
28324
|
-
const isOpen = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
28319
|
+
const isOpen = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _589 => _589.isOpen]), () => ( false));
|
|
28325
28320
|
const isOpenRef = _react.useRef.call(void 0, isOpen);
|
|
28326
|
-
const closeRef = _react.useRef.call(void 0, _optionalChain([ctx, 'optionalAccess',
|
|
28321
|
+
const closeRef = _react.useRef.call(void 0, _optionalChain([ctx, 'optionalAccess', _590 => _590.close]));
|
|
28327
28322
|
_react.useEffect.call(void 0, () => {
|
|
28328
28323
|
isOpenRef.current = isOpen;
|
|
28329
|
-
closeRef.current = _optionalChain([ctx, 'optionalAccess',
|
|
28324
|
+
closeRef.current = _optionalChain([ctx, 'optionalAccess', _591 => _591.close]);
|
|
28330
28325
|
});
|
|
28331
28326
|
const [selfHandle] = _react.useState.call(void 0, () => ({
|
|
28332
28327
|
close: () => {
|
|
28333
|
-
if (isOpenRef.current) _optionalChain([closeRef, 'access',
|
|
28328
|
+
if (isOpenRef.current) _optionalChain([closeRef, 'access', _592 => _592.current, 'optionalCall', _593 => _593()]);
|
|
28334
28329
|
}
|
|
28335
28330
|
}));
|
|
28336
28331
|
_react.useEffect.call(void 0, () => {
|
|
28337
|
-
if (isOpen) _optionalChain([coordination, 'optionalAccess',
|
|
28332
|
+
if (isOpen) _optionalChain([coordination, 'optionalAccess', _594 => _594.notifyDrawerDidOpen, 'call', _595 => _595(selfHandle)]);
|
|
28338
28333
|
}, [isOpen, coordination, selfHandle]);
|
|
28339
|
-
_react.useEffect.call(void 0, () => _optionalChain([coordination, 'optionalAccess',
|
|
28334
|
+
_react.useEffect.call(void 0, () => _optionalChain([coordination, 'optionalAccess', _596 => _596.registerDrawer, 'call', _597 => _597(selfHandle)]), [coordination, selfHandle]);
|
|
28340
28335
|
if (!ctx) return null;
|
|
28341
28336
|
const { open, close, status } = ctx;
|
|
28342
28337
|
const isPaused = status === "paused";
|
|
@@ -28468,7 +28463,7 @@ function autoScrollAncestors(element) {
|
|
|
28468
28463
|
|
|
28469
28464
|
// src/components/features/board/aim.ts
|
|
28470
28465
|
var _closestedge = require('@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge');
|
|
28471
|
-
var othersIn = (columns, columnId, ticketId) => (_nullishCoalesce(_optionalChain([columns, 'access',
|
|
28466
|
+
var othersIn = (columns, columnId, ticketId) => (_nullishCoalesce(_optionalChain([columns, 'access', _598 => _598.find, 'call', _599 => _599((c) => c.id === columnId), 'optionalAccess', _600 => _600.tickets]), () => ( []))).filter((t) => t.id !== ticketId);
|
|
28472
28467
|
function laneOf(columns, ticketId) {
|
|
28473
28468
|
return _nullishCoalesce(columns.find((c) => c.tickets.some((t) => t.id === ticketId)), () => ( null));
|
|
28474
28469
|
}
|
|
@@ -28512,11 +28507,11 @@ function aimToChange(columns, ticketId, aim) {
|
|
|
28512
28507
|
const lane = laneOf(columns, ticketId);
|
|
28513
28508
|
if (!lane) return null;
|
|
28514
28509
|
const others = othersIn(columns, aim.columnId, ticketId);
|
|
28515
|
-
const afterTicketId = _nullishCoalesce(_optionalChain([others, 'access',
|
|
28516
|
-
const beforeTicketId = _nullishCoalesce(_optionalChain([others, 'access',
|
|
28510
|
+
const afterTicketId = _nullishCoalesce(_optionalChain([others, 'access', _601 => _601[aim.index - 1], 'optionalAccess', _602 => _602.id]), () => ( null));
|
|
28511
|
+
const beforeTicketId = _nullishCoalesce(_optionalChain([others, 'access', _603 => _603[aim.index], 'optionalAccess', _604 => _604.id]), () => ( null));
|
|
28517
28512
|
if (lane.id === aim.columnId) {
|
|
28518
28513
|
const currentIndex = lane.tickets.findIndex((t) => t.id === ticketId);
|
|
28519
|
-
if ((_nullishCoalesce(_optionalChain([lane, 'access',
|
|
28514
|
+
if ((_nullishCoalesce(_optionalChain([lane, 'access', _605 => _605.tickets, 'access', _606 => _606[currentIndex - 1], 'optionalAccess', _607 => _607.id]), () => ( null))) === afterTicketId) return null;
|
|
28520
28515
|
}
|
|
28521
28516
|
return { ticketId, fromColumnId: lane.id, toColumnId: aim.columnId, afterTicketId, beforeTicketId };
|
|
28522
28517
|
}
|
|
@@ -28787,14 +28782,14 @@ function useIsLanding(ticketId) {
|
|
|
28787
28782
|
return _react.useContext.call(void 0, LandingCardContext) === ticketId;
|
|
28788
28783
|
}
|
|
28789
28784
|
function hasMoveSettled(columns, move) {
|
|
28790
|
-
const tickets = _optionalChain([columns, 'access',
|
|
28785
|
+
const tickets = _optionalChain([columns, 'access', _608 => _608.find, 'call', _609 => _609((c) => c.id === move.toColumnId), 'optionalAccess', _610 => _610.tickets]);
|
|
28791
28786
|
if (!tickets) return false;
|
|
28792
28787
|
const index = tickets.findIndex((t) => t.id === move.ticketId);
|
|
28793
28788
|
if (index < 0) return false;
|
|
28794
28789
|
if (move.fromColumnId === move.toColumnId) {
|
|
28795
|
-
return (_nullishCoalesce(_optionalChain([tickets, 'access',
|
|
28790
|
+
return (_nullishCoalesce(_optionalChain([tickets, 'access', _611 => _611[index - 1], 'optionalAccess', _612 => _612.id]), () => ( null))) === move.afterTicketId;
|
|
28796
28791
|
}
|
|
28797
|
-
return !_optionalChain([columns, 'access',
|
|
28792
|
+
return !_optionalChain([columns, 'access', _613 => _613.find, 'call', _614 => _614((c) => c.id === move.fromColumnId), 'optionalAccess', _615 => _615.tickets, 'access', _616 => _616.some, 'call', _617 => _617((t) => t.id === move.ticketId)]);
|
|
28798
28793
|
}
|
|
28799
28794
|
|
|
28800
28795
|
// src/components/features/board/ticket-card.tsx
|
|
@@ -28819,9 +28814,9 @@ var TICKET_CARD_SHELL = "relative flex flex-col gap-[var(--spacing-system-sf)] r
|
|
|
28819
28814
|
function TicketCardBody({ ticket, columnColor, renderAssignSlot, onApprove, onReject }) {
|
|
28820
28815
|
const showNewMessage = !!ticket.hasNewMessage && !!columnColor;
|
|
28821
28816
|
const newMessageTextColor = columnColor ? _chunkYXTAV2E3cjs.getReadableTextColor.call(void 0, columnColor) : void 0;
|
|
28822
|
-
const showDeviceRow = !!(_optionalChain([ticket, 'access',
|
|
28823
|
-
const deviceText = [_optionalChain([ticket, 'access',
|
|
28824
|
-
const hasRightSection = !!(ticket.priority || _optionalChain([ticket, 'access',
|
|
28817
|
+
const showDeviceRow = !!(_optionalChain([ticket, 'access', _618 => _618.deviceHostnames, 'optionalAccess', _619 => _619.length]) || ticket.organizationName);
|
|
28818
|
+
const deviceText = [_optionalChain([ticket, 'access', _620 => _620.deviceHostnames, 'optionalAccess', _621 => _621.join, 'call', _622 => _622(", ")]), ticket.organizationName].filter(Boolean).join(", ");
|
|
28819
|
+
const hasRightSection = !!(ticket.priority || _optionalChain([ticket, 'access', _623 => _623.assignees, 'optionalAccess', _624 => _624.length]) || renderAssignSlot);
|
|
28825
28820
|
const rightSection = hasRightSection ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "pointer-events-auto flex shrink-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
28826
28821
|
ticket.priority && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28827
28822
|
_chunkGSQM4PDRcjs.Flag02Icon,
|
|
@@ -28830,7 +28825,7 @@ function TicketCardBody({ ticket, columnColor, renderAssignSlot, onApprove, onRe
|
|
|
28830
28825
|
"aria-label": `Priority: ${ticket.priority}`
|
|
28831
28826
|
}
|
|
28832
28827
|
),
|
|
28833
|
-
renderAssignSlot ? renderAssignSlot(ticket) : _optionalChain([ticket, 'access',
|
|
28828
|
+
renderAssignSlot ? renderAssignSlot(ticket) : _optionalChain([ticket, 'access', _625 => _625.assignees, 'optionalAccess', _626 => _626.length]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex -space-x-2", children: [
|
|
28834
28829
|
ticket.assignees.slice(0, MAX_VISIBLE_ASSIGNEES).map(
|
|
28835
28830
|
(a) => a.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28836
28831
|
DeletedUserAvatar,
|
|
@@ -28870,7 +28865,7 @@ function TicketCardBody({ ticket, columnColor, renderAssignSlot, onApprove, onRe
|
|
|
28870
28865
|
] }),
|
|
28871
28866
|
rightSection
|
|
28872
28867
|
] }),
|
|
28873
|
-
_optionalChain([ticket, 'access',
|
|
28868
|
+
_optionalChain([ticket, 'access', _627 => _627.tags, 'optionalAccess', _628 => _628.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketTagRow, { tags: ticket.tags }) : null,
|
|
28874
28869
|
timestampLabel && tooltipLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXTAV2E3cjs.TooltipProvider, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYXTAV2E3cjs.Tooltip, { children: [
|
|
28875
28870
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXTAV2E3cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "pointer-events-auto truncate text-ods-text-secondary text-h6", children: timestampLabel }) }),
|
|
28876
28871
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXTAV2E3cjs.TooltipContent, { children: tooltipLabel })
|
|
@@ -28937,7 +28932,7 @@ var TicketCard = _react.memo.call(void 0, function TicketCardImpl({
|
|
|
28937
28932
|
const isLanding = useIsLanding(ticket.id);
|
|
28938
28933
|
const aim = useDropAim();
|
|
28939
28934
|
const closestEdge = aim && aim.columnId === columnId && aim.ticketId === ticket.id ? aim.edge : null;
|
|
28940
|
-
const isSource = isDragging || _optionalChain([aim, 'optionalAccess',
|
|
28935
|
+
const isSource = isDragging || _optionalChain([aim, 'optionalAccess', _629 => _629.ticket, 'access', _630 => _630.id]) === ticket.id;
|
|
28941
28936
|
const lift = useBoardLift();
|
|
28942
28937
|
const handleKeyDown = (e) => {
|
|
28943
28938
|
if (e.key !== " " || dragDisabled || !lift) return;
|
|
@@ -29190,7 +29185,7 @@ var BoardColumn = _react.memo.call(void 0, function BoardColumnImpl({
|
|
|
29190
29185
|
// large ones like the only thing that did.
|
|
29191
29186
|
getData: ({ input, element: lane, source }) => {
|
|
29192
29187
|
const nearest = nearestCardIn(lane, input.clientY, String(source.data.ticketId));
|
|
29193
|
-
const ticketId = _optionalChain([nearest, 'optionalAccess',
|
|
29188
|
+
const ticketId = _optionalChain([nearest, 'optionalAccess', _631 => _631.dataset, 'access', _632 => _632.ticketId]);
|
|
29194
29189
|
if (!nearest || !ticketId) return { type: "column", columnId: column.id };
|
|
29195
29190
|
return _closestedge.attachClosestEdge.call(void 0,
|
|
29196
29191
|
{ type: "ticket", ticketId, columnId: column.id },
|
|
@@ -29202,7 +29197,7 @@ var BoardColumn = _react.memo.call(void 0, function BoardColumnImpl({
|
|
|
29202
29197
|
onDrop: () => setIsOver(false)
|
|
29203
29198
|
});
|
|
29204
29199
|
}, [column.id, column.dropDisabled, column.allowedFromColumns, collapsed, touchMode]);
|
|
29205
|
-
const handleToggleCollapse = _react.useCallback.call(void 0, () => _optionalChain([onToggleCollapse, 'optionalCall',
|
|
29200
|
+
const handleToggleCollapse = _react.useCallback.call(void 0, () => _optionalChain([onToggleCollapse, 'optionalCall', _633 => _633(column.id)]), [onToggleCollapse, column.id]);
|
|
29206
29201
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
29207
29202
|
"div",
|
|
29208
29203
|
{
|
|
@@ -29281,7 +29276,7 @@ function ColumnBody({
|
|
|
29281
29276
|
const observer = new IntersectionObserver(
|
|
29282
29277
|
(entries) => {
|
|
29283
29278
|
if (entries.some((e) => e.isIntersecting)) {
|
|
29284
|
-
_optionalChain([loadMoreRef, 'access',
|
|
29279
|
+
_optionalChain([loadMoreRef, 'access', _634 => _634.current, 'optionalCall', _635 => _635(columnIdRef.current)]);
|
|
29285
29280
|
}
|
|
29286
29281
|
},
|
|
29287
29282
|
{ root, rootMargin: loadMoreRootMargin }
|
|
@@ -29306,7 +29301,7 @@ function ColumnBody({
|
|
|
29306
29301
|
ticket: t,
|
|
29307
29302
|
columnId: column.id,
|
|
29308
29303
|
columnColor: column.color,
|
|
29309
|
-
href: _optionalChain([getTicketHref, 'optionalCall',
|
|
29304
|
+
href: _optionalChain([getTicketHref, 'optionalCall', _636 => _636(t.id)]),
|
|
29310
29305
|
renderAssignSlot,
|
|
29311
29306
|
onApprove,
|
|
29312
29307
|
onReject,
|
|
@@ -29482,7 +29477,7 @@ function DragBoard({
|
|
|
29482
29477
|
const [landing, setLanding] = _react.useState.call(void 0, null);
|
|
29483
29478
|
const landingTimer = _react.useRef.call(void 0, null);
|
|
29484
29479
|
const pointRef = _react.useRef.call(void 0, { x: 0, y: 0 });
|
|
29485
|
-
const laneLabel = _react.useCallback.call(void 0, (columnId) => _nullishCoalesce(_optionalChain([view, 'access',
|
|
29480
|
+
const laneLabel = _react.useCallback.call(void 0, (columnId) => _nullishCoalesce(_optionalChain([view, 'access', _637 => _637.find, 'call', _638 => _638((c) => c.id === columnId), 'optionalAccess', _639 => _639.label]), () => ( columnId)), [view]);
|
|
29486
29481
|
const acceptsLifted = _react.useCallback.call(void 0,
|
|
29487
29482
|
(fromColumnId) => (column) => {
|
|
29488
29483
|
if (column.dropDisabled || collapsed[column.id]) return false;
|
|
@@ -29496,7 +29491,7 @@ function DragBoard({
|
|
|
29496
29491
|
const start = initialAim(view, ticketId);
|
|
29497
29492
|
if (!start) return;
|
|
29498
29493
|
setLifted({ ticketId, aim: start });
|
|
29499
|
-
const title = _nullishCoalesce(_optionalChain([laneOf, 'call',
|
|
29494
|
+
const title = _nullishCoalesce(_optionalChain([laneOf, 'call', _640 => _640(view, ticketId), 'optionalAccess', _641 => _641.tickets, 'access', _642 => _642.find, 'call', _643 => _643((t) => t.id === ticketId), 'optionalAccess', _644 => _644.title]), () => ( "Ticket"));
|
|
29500
29495
|
setAnnouncement(`${title} lifted. Use the arrow keys to move it, space to drop it, escape to put it back.`);
|
|
29501
29496
|
},
|
|
29502
29497
|
[view]
|
|
@@ -29521,11 +29516,11 @@ function DragBoard({
|
|
|
29521
29516
|
const walk = _react.useCallback.call(void 0,
|
|
29522
29517
|
(key) => {
|
|
29523
29518
|
if (!lifted) return;
|
|
29524
|
-
const from = _nullishCoalesce(_optionalChain([laneOf, 'call',
|
|
29519
|
+
const from = _nullishCoalesce(_optionalChain([laneOf, 'call', _645 => _645(view, lifted.ticketId), 'optionalAccess', _646 => _646.id]), () => ( lifted.aim.columnId));
|
|
29525
29520
|
const next = moveAim(view, lifted.ticketId, lifted.aim, key, acceptsLifted(from));
|
|
29526
29521
|
if (next === lifted.aim) return;
|
|
29527
29522
|
setLifted({ ...lifted, aim: next });
|
|
29528
|
-
const total = (_nullishCoalesce(_optionalChain([view, 'access',
|
|
29523
|
+
const total = (_nullishCoalesce(_optionalChain([view, 'access', _647 => _647.find, 'call', _648 => _648((c) => c.id === next.columnId), 'optionalAccess', _649 => _649.tickets]), () => ( []))).filter(
|
|
29529
29524
|
(t) => t.id !== lifted.ticketId
|
|
29530
29525
|
).length;
|
|
29531
29526
|
setAnnouncement(`${laneLabel(next.columnId)}, position ${next.index + 1} of ${total + 1}.`);
|
|
@@ -29552,11 +29547,11 @@ function DragBoard({
|
|
|
29552
29547
|
}, [lifted, drop, walk]);
|
|
29553
29548
|
_react.useEffect.call(void 0, () => {
|
|
29554
29549
|
if (!lifted) return;
|
|
29555
|
-
_optionalChain([boardRef, 'access',
|
|
29550
|
+
_optionalChain([boardRef, 'access', _650 => _650.current, 'optionalAccess', _651 => _651.querySelector, 'call', _652 => _652(`[${DROP_LINE_ATTRIBUTE}]`), 'optionalAccess', _653 => _653.scrollIntoView, 'call', _654 => _654({ block: "nearest", inline: "nearest" })]);
|
|
29556
29551
|
}, [lifted]);
|
|
29557
29552
|
const keyboardAim = _react.useMemo.call(void 0, () => {
|
|
29558
29553
|
if (!lifted) return null;
|
|
29559
|
-
const ticket = _optionalChain([laneOf, 'call',
|
|
29554
|
+
const ticket = _optionalChain([laneOf, 'call', _655 => _655(view, lifted.ticketId), 'optionalAccess', _656 => _656.tickets, 'access', _657 => _657.find, 'call', _658 => _658((t) => t.id === lifted.ticketId)]);
|
|
29560
29555
|
if (!ticket) return null;
|
|
29561
29556
|
const anchor = aimToChange(view, lifted.ticketId, lifted.aim) ? aimAnchor(view, lifted.ticketId, lifted.aim) : { ticketId: null, edge: null };
|
|
29562
29557
|
return { columnId: lifted.aim.columnId, ...anchor, ticket };
|
|
@@ -29578,7 +29573,7 @@ function DragBoard({
|
|
|
29578
29573
|
return { columnId: slot.columnId, ...anchor, ticket };
|
|
29579
29574
|
};
|
|
29580
29575
|
const aimAt = (source, targets) => {
|
|
29581
|
-
const next = readAim(source, _optionalChain([targets, 'access',
|
|
29576
|
+
const next = readAim(source, _optionalChain([targets, 'access', _659 => _659[0], 'optionalAccess', _660 => _660.data]));
|
|
29582
29577
|
setAim((prev) => isSameAim(prev, next) ? prev : next);
|
|
29583
29578
|
};
|
|
29584
29579
|
return _combine.combine.call(void 0,
|
|
@@ -29607,7 +29602,7 @@ function DragBoard({
|
|
|
29607
29602
|
setLanding(null);
|
|
29608
29603
|
dragGeometry.current = {
|
|
29609
29604
|
ticket,
|
|
29610
|
-
columnColor: _optionalChain([columnsRef, 'access',
|
|
29605
|
+
columnColor: _optionalChain([columnsRef, 'access', _661 => _661.current, 'access', _662 => _662.find, 'call', _663 => _663((c) => c.id === source.data.columnId), 'optionalAccess', _664 => _664.color]),
|
|
29611
29606
|
width: rect.width,
|
|
29612
29607
|
grabX: clientX - rect.left,
|
|
29613
29608
|
grabY: clientY - rect.top
|
|
@@ -29624,7 +29619,7 @@ function DragBoard({
|
|
|
29624
29619
|
setAim(null);
|
|
29625
29620
|
const change = resolveBoardDrop(columnsRef.current, {
|
|
29626
29621
|
source: source.data,
|
|
29627
|
-
target: _optionalChain([location, 'access',
|
|
29622
|
+
target: _optionalChain([location, 'access', _665 => _665.current, 'access', _666 => _666.dropTargets, 'access', _667 => _667[0], 'optionalAccess', _668 => _668.data])
|
|
29628
29623
|
});
|
|
29629
29624
|
if (!change) return;
|
|
29630
29625
|
setPendingMove({
|
|
@@ -29657,7 +29652,7 @@ function DragBoard({
|
|
|
29657
29652
|
return void 0;
|
|
29658
29653
|
}
|
|
29659
29654
|
const to = card.getBoundingClientRect();
|
|
29660
|
-
const lane = _optionalChain([nearestScrollableAncestor, 'call',
|
|
29655
|
+
const lane = _optionalChain([nearestScrollableAncestor, 'call', _669 => _669(card), 'optionalAccess', _670 => _670.getBoundingClientRect, 'call', _671 => _671()]);
|
|
29661
29656
|
if (lane && (to.top < lane.top || to.bottom > lane.bottom)) {
|
|
29662
29657
|
finish();
|
|
29663
29658
|
return void 0;
|
|
@@ -29716,8 +29711,8 @@ function DragBoard({
|
|
|
29716
29711
|
children: view.map((column, i) => {
|
|
29717
29712
|
const prev = view[i - 1];
|
|
29718
29713
|
const next = view[i + 1];
|
|
29719
|
-
const joinLeft = !!(column.system && _optionalChain([prev, 'optionalAccess',
|
|
29720
|
-
const joinRight = !!(column.system && _optionalChain([next, 'optionalAccess',
|
|
29714
|
+
const joinLeft = !!(column.system && _optionalChain([prev, 'optionalAccess', _672 => _672.system]));
|
|
29715
|
+
const joinRight = !!(column.system && _optionalChain([next, 'optionalAccess', _673 => _673.system]));
|
|
29721
29716
|
const showGap = i > 0 && !joinLeft;
|
|
29722
29717
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
29723
29718
|
showGap && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: "w-[var(--spacing-system-mf)] shrink-0" }),
|
|
@@ -29897,13 +29892,13 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
29897
29892
|
const [flipTick, setFlipTick] = _react.useState.call(void 0, 0);
|
|
29898
29893
|
const flipTimer = _react.useRef.call(void 0, null);
|
|
29899
29894
|
const readItems = _react.useCallback.call(void 0,
|
|
29900
|
-
() => [..._nullishCoalesce(_optionalChain([listRef, 'access',
|
|
29895
|
+
() => [..._nullishCoalesce(_optionalChain([listRef, 'access', _674 => _674.current, 'optionalAccess', _675 => _675.querySelectorAll, 'call', _676 => _676(`[${SORTABLE_ITEM_ATTRIBUTE}]`)]), () => ( []))],
|
|
29901
29896
|
[]
|
|
29902
29897
|
);
|
|
29903
29898
|
const reorder = _react.useCallback.call(void 0,
|
|
29904
29899
|
(from, to) => {
|
|
29905
29900
|
if (from === to) return;
|
|
29906
|
-
const label = _nullishCoalesce(_optionalChain([getItemLabelRef, 'access',
|
|
29901
|
+
const label = _nullishCoalesce(_optionalChain([getItemLabelRef, 'access', _677 => _677.current, 'optionalCall', _678 => _678(from)]), () => ( "Item"));
|
|
29907
29902
|
setAnnouncement(`${label} moved to position ${to + 1} of ${readItems().length}.`);
|
|
29908
29903
|
onReorderRef.current(from, to);
|
|
29909
29904
|
},
|
|
@@ -29991,7 +29986,7 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
29991
29986
|
moving.push(item);
|
|
29992
29987
|
}
|
|
29993
29988
|
if (moving.length === 0) return;
|
|
29994
|
-
void _optionalChain([listRef, 'access',
|
|
29989
|
+
void _optionalChain([listRef, 'access', _679 => _679.current, 'optionalAccess', _680 => _680.offsetHeight]);
|
|
29995
29990
|
for (const item of moving) {
|
|
29996
29991
|
item.style.transition = `transform ${DROP_MS2}ms ${EASING}`;
|
|
29997
29992
|
item.style.transform = "";
|
|
@@ -30028,8 +30023,8 @@ function SortableMoveButtons({ index, count, label, className }) {
|
|
|
30028
30023
|
if (to < 0 || to >= count) return;
|
|
30029
30024
|
reorder(index, to);
|
|
30030
30025
|
requestAnimationFrame(() => {
|
|
30031
|
-
if (step === -1 && to === 0) _optionalChain([downRef, 'access',
|
|
30032
|
-
if (step === 1 && to === count - 1) _optionalChain([upRef, 'access',
|
|
30026
|
+
if (step === -1 && to === 0) _optionalChain([downRef, 'access', _681 => _681.current, 'optionalAccess', _682 => _682.focus, 'call', _683 => _683()]);
|
|
30027
|
+
if (step === 1 && to === count - 1) _optionalChain([upRef, 'access', _684 => _684.current, 'optionalAccess', _685 => _685.focus, 'call', _686 => _686()]);
|
|
30033
30028
|
});
|
|
30034
30029
|
};
|
|
30035
30030
|
const subject = _nullishCoalesce(label, () => ( "item"));
|
|
@@ -30077,7 +30072,7 @@ function useSortableItem() {
|
|
|
30077
30072
|
const [handle, setHandle] = _react.useState.call(void 0, null);
|
|
30078
30073
|
const [isDragging, setIsDragging] = _react.useState.call(void 0, false);
|
|
30079
30074
|
const itemRef = _react.useCallback.call(void 0, (node) => {
|
|
30080
|
-
_optionalChain([node, 'optionalAccess',
|
|
30075
|
+
_optionalChain([node, 'optionalAccess', _687 => _687.setAttribute, 'call', _688 => _688(SORTABLE_ITEM_ATTRIBUTE, "")]);
|
|
30081
30076
|
setItem(node);
|
|
30082
30077
|
}, []);
|
|
30083
30078
|
_react.useEffect.call(void 0, () => {
|
|
@@ -30107,7 +30102,7 @@ function useSortableItem() {
|
|
|
30107
30102
|
if (from < 0 || to < 0 || to >= items.length) return;
|
|
30108
30103
|
event.preventDefault();
|
|
30109
30104
|
reorder(from, to);
|
|
30110
|
-
requestAnimationFrame(() => _optionalChain([handle, 'optionalAccess',
|
|
30105
|
+
requestAnimationFrame(() => _optionalChain([handle, 'optionalAccess', _689 => _689.focus, 'call', _690 => _690()]));
|
|
30111
30106
|
},
|
|
30112
30107
|
[inert, readItems, reorder, handle]
|
|
30113
30108
|
);
|
|
@@ -30129,7 +30124,7 @@ function TicketStatusConfigList({
|
|
|
30129
30124
|
onReorder,
|
|
30130
30125
|
getItemLabel,
|
|
30131
30126
|
className: _chunk23V5BSHDcjs.cn.call(void 0, "flex w-full flex-col gap-[var(--spacing-system-xs)]", className),
|
|
30132
|
-
children: items.map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortableRow, { index, count: items.length, label: _optionalChain([getItemLabel, 'optionalCall',
|
|
30127
|
+
children: items.map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortableRow, { index, count: items.length, label: _optionalChain([getItemLabel, 'optionalCall', _691 => _691(index)]), children: (args) => renderRow(item, args) }, item.id))
|
|
30133
30128
|
}
|
|
30134
30129
|
);
|
|
30135
30130
|
}
|
|
@@ -30790,4 +30785,4 @@ function SortableRow({
|
|
|
30790
30785
|
|
|
30791
30786
|
|
|
30792
30787
|
exports.AllowedDomainsInput = AllowedDomainsInput; exports.AnnouncementBarView = AnnouncementBarView; exports.HiddenTagsPopup = HiddenTagsPopup; exports.TruncateText = TruncateText; exports.Autocomplete = Autocomplete; exports.CheckboxBlock = CheckboxBlock; exports.CheckboxWithDescription = CheckboxWithDescription; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.DatePickerCalendar = DatePickerCalendar; exports.DatePicker = DatePicker; exports.DatePickerInput = DatePickerInput; exports.DatePickerInputSimple = DatePickerInputSimple; exports.DateFilterPanel = DateFilterPanel; exports.DateFilterMenu = DateFilterMenu; exports.DurationInput = DurationInput; exports.InfoHint = InfoHint; exports.Field = Field; exports.HoneypotField = HoneypotField; exports.JsonDetailList = JsonDetailList; exports.ProgressBar = ProgressBar; exports.InfoCard = InfoCard; exports.InfoRow = InfoRow; exports.DeletedUserAvatar = DeletedUserAvatar; exports.SearchableSelect = SearchableSelect; exports.AssigneeDropdown = AssigneeDropdown; exports.InfoSection = InfoSection; exports.InputTrigger = InputTrigger; exports.MediaTypeSelector = MediaTypeSelector; exports.noDataIconClasses = noDataIconClasses; exports.noDataActionsVariants = noDataActionsVariants; exports.NoDataAction = NoDataAction; exports.NoDataActions = NoDataActions; exports.NoDataMessage = NoDataMessage; exports.NoData = NoData; exports.PageLoader = PageLoader; exports.CompactPageLoader = CompactPageLoader; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.RadioGroupBlock = RadioGroupBlock; exports.Switch = Switch; exports.TagSelectDropdown = TagSelectDropdown; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.TagsInput = TagsInput; exports.TagsManager = TagsManager; exports.Textarea = Textarea; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.AspectRatio = AspectRatio; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.useConfirm = useConfirm; exports.useGuardedClose = useGuardedClose; exports.UnsavedChangesChip = UnsavedChangesChip; exports.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS = HUBSPOT_DO_NOT_COLLECT_FORM_PROPS; exports.AdminFormModal = AdminFormModal; exports.Separator = Separator2; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetPortal = SheetPortal; exports.SheetOverlay = SheetOverlay; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.MenubarMenu = MenubarMenu; exports.MenubarGroup = MenubarGroup; exports.MenubarPortal = MenubarPortal; exports.MenubarSub = MenubarSub; exports.MenubarRadioGroup = MenubarRadioGroup; exports.Menubar = Menubar; exports.MenubarTrigger = MenubarTrigger; exports.MenubarSubTrigger = MenubarSubTrigger; exports.MenubarSubContent = MenubarSubContent; exports.MenubarContent = MenubarContent; exports.MenubarItem = MenubarItem; exports.MenubarCheckboxItem = MenubarCheckboxItem; exports.MenubarRadioItem = MenubarRadioItem; exports.MenubarLabel = MenubarLabel; exports.MenubarSeparator = MenubarSeparator; exports.MenubarShortcut = MenubarShortcut; exports.NavigationMenuViewport = NavigationMenuViewport; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.CrossfadePanels = CrossfadePanels; exports.TabContent = TabContent; exports.TabNavigation = TabNavigation; exports.getTabById = getTabById; exports.getTabComponent = getTabComponent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AIGeneratedBadge = AIGeneratedBadge; exports.FadePreview = FadePreview; exports.Progress = Progress; exports.RichMarkdownRuntimeProvider = RichMarkdownRuntimeProvider; exports.useRichMarkdownRuntime = useRichMarkdownRuntime; exports.FullscreenSwitchController = FullscreenSwitchController; exports.EmbedIframe = EmbedIframe; exports.EmbedViewerFrame = EmbedViewerFrame; exports.ClaudeEmbed = ClaudeEmbed; exports.FigmaEmbed = FigmaEmbed; exports.EMBED_SIZES = EMBED_SIZES; exports.EmbedContainer = EmbedContainer; exports.YouTubeContainer = YouTubeContainer; exports.TwitterContainer = TwitterContainer; exports.RedditContainer = RedditContainer; exports.LinkPreviewContainer = LinkPreviewContainer; exports.LinkedInContainer = LinkedInContainer; exports.LinkedInEmbedClient = LinkedInEmbedClient; exports.MarkdownImage = MarkdownImage; exports.OGLinkErrorBoundary = OGLinkErrorBoundary; exports.OGLinkPreview = OGLinkPreview; exports.MediaCarousel = MediaCarousel; exports.RedditEmbedClient = RedditEmbedClient; exports.TwitterEmbedClient = TwitterEmbedClient; exports.SOCIAL_PLATFORM_ALIASES = SOCIAL_PLATFORM_ALIASES; exports.normalizeSocialPlatform = normalizeSocialPlatform; exports.hostMatches = hostMatches; exports.SOCIAL_PLATFORM_ALT_HOSTS = SOCIAL_PLATFORM_ALT_HOSTS; exports.socialPlatformHosts = socialPlatformHosts; exports.classifySocialHost = classifySocialHost; exports.pickSocialLink = pickSocialLink; exports.processShortcodes = processShortcodes; exports.RichMarkdownRenderer = RichMarkdownRenderer; exports.ReleaseChangelogSection = ReleaseChangelogSection; exports.StackedRowsPanel = StackedRowsPanel; exports.SlackChannelChip = SlackChannelChip; exports.StatusIndicator = StatusIndicator; exports.BackButton = BackButton; exports.ErrorState = ErrorState; exports.PageError = PageError; exports.LoadError = LoadError; exports.NotFoundError = NotFoundError; exports.FilterCheckboxItem = FilterCheckboxItem; exports.TagKeyValueFilter = TagKeyValueFilter; exports.FilterModal = FilterModal; exports.PageActions = PageActions; exports.usePageActionsBottomPadding = usePageActionsBottomPadding; exports.PageContainer = PageContainer; exports.ListPageContainer = ListPageContainer; exports.DetailPageContainer = DetailPageContainer; exports.FormPageContainer = FormPageContainer; exports.ContentPageContainer = ContentPageContainer; exports.ListPageLayout = ListPageLayout; exports.EntityImage = EntityImage; exports.TITLE_BLOCK_MIN_HEIGHT = TITLE_BLOCK_MIN_HEIGHT; exports.TitleBlock = TitleBlock; exports.PageLayout = PageLayout; exports.PageShell = PageShell; exports.ArticleDetailLayout = ArticleDetailLayout; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.ToggleGroup = ToggleGroup; exports.ToggleGroupItem = ToggleGroupItem; exports.SEO_TITLE_MAX_LENGTH = SEO_TITLE_MAX_LENGTH; exports.SEO_DESCRIPTION_MAX_LENGTH = SEO_DESCRIPTION_MAX_LENGTH; exports.BRAND_MARK_SVGS = BRAND_MARK_SVGS; exports.brandMarkDataUri = brandMarkDataUri; exports.OS_PLATFORMS = OS_PLATFORMS; exports.DEFAULT_OS_PLATFORM = DEFAULT_OS_PLATFORM; exports.isValidEmailDomain = isValidEmailDomain; exports.validateEmailDomain = validateEmailDomain; exports.validateEmailDomainList = validateEmailDomainList; exports.cleanEmailDomain = cleanEmailDomain; exports.getConfidenceColorClass = getConfidenceColorClass; exports.getConfidenceLevel = getConfidenceLevel; exports.getConfidenceBorderClass = getConfidenceBorderClass; exports.getConfidenceTextClass = getConfidenceTextClass; exports.getConfidenceBgClass = getConfidenceBgClass; exports.getConfidenceLabel = getConfidenceLabel; exports.DEV_SECTION_PARAM_KEYS = DEV_SECTION_PARAM_KEYS; exports.devSectionAnchorId = devSectionAnchorId; exports.TICKET_OPEN_PARAM = TICKET_OPEN_PARAM; exports.buildTicketOpenHref = buildTicketOpenHref; exports.normalizeToolType = normalizeToolType; exports.normalizeToolTypeWithFallback = normalizeToolTypeWithFallback; exports.toToolLabel = toToolLabel; exports.isValidToolType = isValidToolType; exports.getToolTypeAliases = getToolTypeAliases; exports.getToolLabel = getToolLabel; exports.ShellTypeValues = ShellTypeValues; exports.SHELL_TYPES = SHELL_TYPES; exports.shellLabels = shellLabels; exports.getShellLabel = getShellLabel; exports.getShellIcon = getShellIcon; exports.BITE_ID_RE = BITE_ID_RE; exports.generateBiteId = generateBiteId; exports.ensureBiteIds = ensureBiteIds; exports.matchBiteElement = matchBiteElement; exports.OSTypeValues = OSTypeValues; exports.OS_TYPES = OS_TYPES; exports.osLabels = osLabels; exports.normalizeOSType = normalizeOSType; exports.getOSLabel = getOSLabel; exports.getOSIcon = getOSIcon; exports.getOSTypeDefinition = getOSTypeDefinition; exports.getOSPlatformId = getOSPlatformId; exports.isOSPlatform = isOSPlatform; exports.getCountryPhoneData = getCountryPhoneData; exports.getCountryByCode = getCountryByCode; exports.validatePhoneNumber = validatePhoneNumber; exports.formatPhoneE164 = formatPhoneE164; exports.GENERIC_EMAIL_DOMAINS = GENERIC_EMAIL_DOMAINS; exports.extractDomainFromEmail = extractDomainFromEmail; exports.normalizeDomain = normalizeDomain; exports.isGenericDomain = isGenericDomain; exports.hasGenericEmailDomain = hasGenericEmailDomain; exports.isGenericWebsiteDomain = isGenericWebsiteDomain; exports.isDismissedCookieValue = isDismissedCookieValue; exports.readDismissCookie = readDismissCookie; exports.writeDismissCookie = writeDismissCookie; exports.clearDismissCookie = clearDismissCookie; exports.announcementDismissCookieName = announcementDismissCookieName; exports.dismissAnnouncement = dismissAnnouncement; exports.isAnnouncementDismissed = isAnnouncementDismissed; exports.clearAnnouncementDismissals = clearAnnouncementDismissals; exports.clearLegacyAnnouncementCache = clearLegacyAnnouncementCache; exports.WALKTHROUGH_VIDEO_DISMISS_KEY = WALKTHROUGH_VIDEO_DISMISS_KEY; exports.walkthroughDismissCookieName = walkthroughDismissCookieName; exports.isWalkthroughDismissed = isWalkthroughDismissed; exports.dismissWalkthrough = dismissWalkthrough; exports.clearWalkthroughDismissal = clearWalkthroughDismissal; exports.WALKTHROUGH_OPEN_QUERY_PARAM = WALKTHROUGH_OPEN_QUERY_PARAM; exports.withWalkthroughOpenParam = withWalkthroughOpenParam; exports.createSseSubscription = createSseSubscription; exports.readLeadingDecisionFrame = readLeadingDecisionFrame; exports.ANNOUNCEMENT_CTA_DEFAULTS = ANNOUNCEMENT_CTA_DEFAULTS; exports.AVAILABLE_SVG_ICONS = AVAILABLE_SVG_ICONS; exports.releaseTypeOptions = releaseTypeOptions; exports.releaseStatusOptions = releaseStatusOptions; exports.changelogLabels = changelogLabels; exports.SEMVER_REGEX = SEMVER_REGEX; exports.TASK_TYPE_LABELS = TASK_TYPE_LABELS; exports.TASK_TYPE_TEXT_COLORS = TASK_TYPE_TEXT_COLORS; exports.TMCG_ROLES = TMCG_ROLES; exports.TMCG_ROLE_DISPLAY_NAMES = TMCG_ROLE_DISPLAY_NAMES; exports.ROADMAP_STATUS_OPTIONS = ROADMAP_STATUS_OPTIONS; exports.DELIVERY_TASK_TYPE_OPTIONS = DELIVERY_TASK_TYPE_OPTIONS; exports.TICKET_STATUS_OPTIONS = TICKET_STATUS_OPTIONS; exports.OPENFRAME_DEV_SECTIONS = OPENFRAME_DEV_SECTIONS; exports.DEFAULT_CONTENT_SUFFIXES = DEFAULT_CONTENT_SUFFIXES; exports.makeComposeContentUrl = makeComposeContentUrl; exports.buildDefaultHref = buildDefaultHref; exports.resolveContentHref = resolveContentHref; exports.DEFAULT_FOLDER_INDEX_FILE = DEFAULT_FOLDER_INDEX_FILE; exports.stripFolderIndexFromPath = stripFolderIndexFromPath; exports.findDocNodeByPath = findDocNodeByPath; exports.getDocAncestorNodeIds = getDocAncestorNodeIds; exports.resolveContentFetchPath = resolveContentFetchPath; exports.getInitialExpandedNodeIds = getInitialExpandedNodeIds; exports.getDocSourceDefaultPath = getDocSourceDefaultPath; exports.toDocSlug = toDocSlug; exports.pathToNodeId = pathToNodeId; exports.normalizeDocPath = normalizeDocPath; exports.formatDocName = formatDocName; exports.sortTreeChildren = sortTreeChildren; exports.buildDocumentTree = buildDocumentTree; exports.extractSections = extractSections; exports.SCHEDULING_SLUG_SHAPE = SCHEDULING_SLUG_SHAPE; exports.MAX_MONTH_OFFSET = MAX_MONTH_OFFSET; exports.normalizeSchedulingSlug = normalizeSchedulingSlug; exports.isValidSchedulingSlug = isValidSchedulingSlug; exports.parseSchedulingLinkName = parseSchedulingLinkName; exports.isListedSchedulingName = isListedSchedulingName; exports.schedulingAudienceKey = schedulingAudienceKey; exports.SECTION_HERO_ICON_CLASS = SECTION_HERO_ICON_CLASS; exports.FIRST_TOUCH_ATTRIBUTION_KEY = FIRST_TOUCH_ATTRIBUTION_KEY; exports.sanitizeLandingUrl = sanitizeLandingUrl; exports.parseAttributionFromUrl = parseAttributionFromUrl; exports.captureFirstTouchAttribution = captureFirstTouchAttribution; exports.getFirstTouchAttribution = getFirstTouchAttribution; exports.withFirstTouchAttribution = withFirstTouchAttribution; exports.clearFirstTouchAttribution = clearFirstTouchAttribution; exports.ODS_SPACING_TOKENS = ODS_SPACING_TOKENS; exports.ODS_SPACING_TOKEN_PATTERN = ODS_SPACING_TOKEN_PATTERN; exports.ODS_SPACING_PROPS = ODS_SPACING_PROPS; exports.TAILWIND_STEP_TO_ODS_TOKEN = TAILWIND_STEP_TO_ODS_TOKEN; exports.CSV_CONTENT_TYPE = CSV_CONTENT_TYPE; exports.csvEscape = csvEscape; exports.toCsv = toCsv; exports.BenefitCard = BenefitCard; exports.benefitCardBorderClass = benefitCardBorderClass; exports.BenefitCardGrid = BenefitCardGrid; exports.BrandAssociationCard = BrandAssociationCard; exports.BrandAssociationGrid = BrandAssociationGrid; exports.BulletList = BulletList; exports.ChevronButton = ChevronButton; exports.CircularProgress = CircularProgress; exports.CheckIcon = CheckIcon2; exports.XIcon = XIcon2; exports.MinusIcon = MinusIcon; exports.CheckCircleIcon = CheckCircleIcon2; exports.XCircleIcon = XCircleIcon; exports.DashboardInfoCard = DashboardInfoCard; exports.InfoCardRow = InfoCardRow; exports.OSTypeBadge = OSTypeBadge; exports.OSTypeIcon = OSTypeIcon; exports.OSTypeLabel = OSTypeLabel; exports.DeviceCard = DeviceCard; exports.DeviceCardCompact = DeviceCardCompact; exports.FeatureCardGrid = FeatureCardGrid; exports.FeatureList = FeatureList; exports.SourceTooltip = SourceTooltip; exports.HighlightCard = HighlightCard; exports.HighlightCardGrid = HighlightCardGrid; exports.IconsBlock = IconsBlock; exports.DropdownButton = DropdownButton; exports.MoreActionsMenu = MoreActionsMenu; exports.OrganizationCard = OrganizationCard; exports.ServiceCard = ServiceCard; exports.Slider = Slider; exports.TitleContentBlock = TitleContentBlock; exports.TouchFriendlyTooltip = TouchFriendlyTooltip; exports.ContentLoader = ContentLoader; exports.CardLoader = CardLoader; exports.FormLoader = FormLoader; exports.DetailLoader = DetailLoader; exports.ListLoader = ListLoader; exports.CursorPagination = CursorPagination; exports.CursorPaginationSimple = CursorPaginationSimple; exports.useDataTableContext = useDataTableContext; exports.DataTableRoot = DataTableRoot; exports.getHideClasses = getHideClasses; exports.alignJustify = alignJustify; exports.multiSelectFilterFn = multiSelectFilterFn; exports.ROW_HEIGHT_DESKTOP = ROW_HEIGHT_DESKTOP; exports.ROW_HEIGHT_MOBILE = ROW_HEIGHT_MOBILE; exports.ROW_SHELL_CLASSES = ROW_SHELL_CLASSES; exports.DataTableSkeleton = DataTableSkeleton; exports.TableEmptyState = TableEmptyState; exports.DynamicThemeProvider = DynamicThemeProvider; exports.useDynamicTheme = useDynamicTheme; exports.THEME_STORAGE_KEY = THEME_STORAGE_KEY; exports.THEME_ATTRIBUTE = THEME_ATTRIBUTE; exports.DEFAULT_THEME = DEFAULT_THEME; exports.ThemeProvider = ThemeProvider; exports.useTheme = useTheme; exports.useThemeToggle = useThemeToggle; exports.ArrayEntryManager = ArrayEntryManager; exports.PasswordInput = PasswordInput; exports.AccountDetailsFields = AccountDetailsFields; exports.AuthBenefitsPanel = AuthBenefitsPanel; exports.OpenFrameWordmark = OpenFrameWordmark; exports.PoweredByFlamingo = PoweredByFlamingo; exports.AuthShell = AuthShell; exports.BackToLoginLink = BackToLoginLink; exports.LabeledDivider = LabeledDivider; exports.PROVIDER_META = PROVIDER_META; exports.SsoProviderButtons = SsoProviderButtons; exports.CompleteAccountForm = CompleteAccountForm; exports.PolicyLink = PolicyLink; exports.TermsAgreementLabel = TermsAgreementLabel; exports.CreateOrganizationForm = CreateOrganizationForm; exports.InviteLinkInvalidModal = InviteLinkInvalidModal; exports.LegalLinks = LegalLinks; exports.LoginForm = LoginForm; exports.OpenFrameSsoLoginForm = OpenFrameSsoLoginForm; exports.OpenFrameSsoSignUpForm = OpenFrameSsoSignUpForm; exports.PasswordResetForm = PasswordResetForm; exports.SsoAuthShell = SsoAuthShell; exports.ProviderButton = ProviderButton; exports.AuthProvidersList = AuthProvidersList; exports.ChangelogManager = ChangelogManager; exports.ChangelogSectionsManager = ChangelogSectionsManager; exports.ClickUpTasksManager = ClickUpTasksManager; exports.CommandBox = CommandBox; exports.TAG_BADGE_CLASS = TAG_BADGE_CLASS; exports.EntityTagBadges = EntityTagBadges; exports.ErrorBoundary = ErrorBoundary; exports.SectionSelector = SectionSelector; exports.FigmaPrototypeViewer = FigmaPrototypeViewer; exports.FiltersDropdown = FiltersDropdown; exports.useFiltersDropdown = useFiltersDropdown; exports.GitHubReleasesManager = GitHubReleasesManager; exports.KnowledgeBaseLinksManager = KnowledgeBaseLinksManager; exports.LoadingProvider = LoadingProvider; exports.useLoading = useLoading; exports.MediaGalleryManager = MediaGalleryManager; exports.MoreAboutButton = MoreAboutButton; exports.OSTypeBadgeGroup = OSTypeBadgeGroup; exports.ParallaxImageShowcase = ParallaxImageShowcase; exports.PathsDisplay = PathsDisplay; exports.OPENFRAME_PATHS = OPENFRAME_PATHS; exports.getOpenFramePaths = getOpenFramePaths; exports.OPENFRAME_DOCTOR_COMMANDS = OPENFRAME_DOCTOR_COMMANDS; exports.getOpenFrameDoctorCommand = getOpenFrameDoctorCommand; exports.PlatformFilterComponent = PlatformFilterComponent; exports.UnifiedSkeleton = UnifiedSkeleton; exports.TextSkeleton = TextSkeleton; exports.InteractiveSkeleton = InteractiveSkeleton; exports.MediaSkeleton = MediaSkeleton; exports.CardSkeleton = CardSkeleton; exports.CardSkeletonGrid = CardSkeletonGrid; exports.AnnouncementBarSkeleton = AnnouncementBarSkeleton; exports.HeroSkeleton = HeroSkeleton; exports.SearchContainerSkeleton = SearchContainerSkeleton; exports.CategorySidebarSkeleton = CategorySidebarSkeleton; exports.BreadcrumbSkeleton = BreadcrumbSkeleton; exports.ResultsHeaderSkeleton = ResultsHeaderSkeleton; exports.TwoColumnLayoutSkeleton = TwoColumnLayoutSkeleton; exports.ArticleLayoutSkeleton = ArticleLayoutSkeleton; exports.VendorDetailLayoutSkeleton = VendorDetailLayoutSkeleton; exports.StatsSectionSkeleton = StatsSectionSkeleton; exports.BlogCardGridSkeleton = BlogCardGridSkeleton; exports.VendorGridSkeleton = VendorGridSkeleton; exports.SlackCommunitySkeleton = SlackCommunitySkeleton; exports.ContentLoadingContainer = ContentLoadingContainer; exports.useContentLoading = useContentLoading; exports.ParagraphSkeleton = ParagraphSkeleton; exports.ListSkeleton = ListSkeleton; exports.TableSkeleton = TableSkeleton; exports.FormSkeleton = FormSkeleton; exports.NavigationSkeleton = NavigationSkeleton; exports.ProfileSkeleton = ProfileSkeleton; exports.CommentSkeleton = CommentSkeleton; exports.FeatureListSkeleton = FeatureListSkeleton; exports.TimelineSkeleton = TimelineSkeleton; exports.PricingSkeleton = PricingSkeleton; exports.ProfileLoadingSkeleton = ProfileLoadingSkeleton; exports.MspProfileFormSkeleton = MspProfileFormSkeleton; exports.CategoryCardSkeleton = CategoryCardSkeleton; exports.CategoryVendorSelectorSkeleton = CategoryVendorSelectorSkeleton; exports.WizardLayoutSkeleton = WizardLayoutSkeleton; exports.MarginReportSkeleton = MarginReportSkeleton; exports.UsersGridSkeleton = UsersGridSkeleton; exports.DynamicSkeleton = DynamicSkeleton; exports.SkeletonPresets = SkeletonPresets; exports.PlatformSkeletonContainer = PlatformSkeletonContainer; exports.ProgressiveSkeleton = ProgressiveSkeleton; exports.OrganizationIconSkeleton = OrganizationIconSkeleton; exports.OrganizationCardSkeleton = OrganizationCardSkeleton; exports.OrganizationCardSkeletonGrid = OrganizationCardSkeletonGrid; exports.DeviceCardSkeleton = DeviceCardSkeleton; exports.DeviceCardSkeletonGrid = DeviceCardSkeletonGrid; exports.PushButtonSelector = PushButtonSelector; exports.ReleaseMediaManager = ReleaseMediaManager; exports.SelectButton = SelectButton; exports.ConfidenceBadge = ConfidenceBadge; exports.SEOEditorPreview = SEOEditorPreview; exports.SOCIAL_ICON_COMPONENTS = SOCIAL_ICON_COMPONENTS; exports.SocialIconRow = SocialIconRow; exports.SocialLinksManager = SocialLinksManager; exports.StartWithOpenFrameButton = StartWithOpenFrameButton; exports.StatusFilterComponent = StatusFilterComponent; exports.TagsSelector = TagsSelector; exports.WarningBlock = WarningBlock; exports.VideoBitesDisplay = VideoBitesDisplay; exports.FloatingWalkthroughVideo = FloatingWalkthroughVideo; exports.InlineWalkthroughVideo = InlineWalkthroughVideo; exports.useWalkthroughVideo = useWalkthroughVideo; exports.VideoSourceSelector = VideoSourceSelector; exports.SubtitlesEditor = SubtitlesEditor; exports.TranscriptSummaryEditor = TranscriptSummaryEditor; exports.AIEnrichButton = AIEnrichButton; exports.AIWarningsSection = AIWarningsSection; exports.AIEnrichSection = AIEnrichSection; exports.HighlightVideoSection = HighlightVideoSection; exports.HighlightConfigSection = HighlightConfigSection; exports.EntitySummaryEditor = EntitySummaryEditor; exports.AIStatusIndicator = AIStatusIndicator; exports.AIRequiredBadge = AIRequiredBadge; exports.TranscribeSummarizeSection = TranscribeSummarizeSection; exports.VideoClipsSection = VideoClipsSection; exports.HighlightGenerationSection = HighlightGenerationSection; exports.HighlightVideoPreview = HighlightVideoPreview; exports.TranscribeAndSummarizeCombinedSection = TranscribeAndSummarizeCombinedSection; exports.HighlightVideoCombinedSection = HighlightVideoCombinedSection; exports.ViewToggle = ViewToggle; exports.PolicyConfigurationPanel = PolicyConfigurationPanel; exports.PhoneInput = PhoneInput; exports.WaitlistForm = WaitlistForm; exports.NotificationsProvider = NotificationsProvider; exports.useNotifications = useNotifications; exports.useOptionalNotifications = useOptionalNotifications; exports.AppLayoutDrawerContainerContext = AppLayoutDrawerContainerContext; exports.useAppLayoutDrawerContainer = useAppLayoutDrawerContainer; exports.AppLayoutDrawerCoordinationContext = AppLayoutDrawerCoordinationContext; exports.AppLayoutDrawerRoot = AppLayoutDrawerRoot; exports.AppLayoutDrawerTrigger = AppLayoutDrawerTrigger; exports.AppLayoutDrawerClose = AppLayoutDrawerClose; exports.AppLayoutDrawerContent = AppLayoutDrawerContent; exports.AppLayoutDrawerHeader = AppLayoutDrawerHeader; exports.AppLayoutDrawerTitle = AppLayoutDrawerTitle; exports.AppLayoutDrawerDescription = AppLayoutDrawerDescription; exports.AppLayoutDrawerBody = AppLayoutDrawerBody; exports.AppLayoutDrawerFooter = AppLayoutDrawerFooter; exports.NotificationTile = NotificationTile; exports.NotificationDrawer = NotificationDrawer; exports.NotificationPopups = NotificationPopups; exports.ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE = ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE; exports.isApprovalNotification = isApprovalNotification; exports.getApprovalMeta = getApprovalMeta; exports.resolutionToStatus = resolutionToStatus; exports.approvalMetaToBatchData = approvalMetaToBatchData; exports.ApprovalRequestNotificationTile = ApprovalRequestNotificationTile; exports.TimeTrackerProvider = TimeTrackerProvider; exports.useTimeTracker = useTimeTracker; exports.useOptionalTimeTracker = useOptionalTimeTracker; exports.useTrackerClock = useTrackerClock; exports.TimeTrackerPanel = TimeTrackerPanel; exports.UnreadDot = UnreadDot; exports.UnreadCountBadge = UnreadCountBadge; exports.HeaderButton = HeaderButton; exports.TimeTrackerHeaderButton = TimeTrackerHeaderButton; exports.BoardColumnHeader = BoardColumnHeader; exports.tintOnDark = tintOnDark; exports.BoardTicketApproval = BoardTicketApproval; exports.TicketCardBody = TicketCardBody; exports.TicketCardView = TicketCardView; exports.TicketCard = TicketCard; exports.TicketCardSkeleton = TicketCardSkeleton; exports.BoardColumn = BoardColumn; exports.useBoardCollapse = useBoardCollapse; exports.Board = Board; exports.columnFromTicketStatus = columnFromTicketStatus; exports.groupTicketsByStatus = groupTicketsByStatus; exports.SLOT_STICKINESS = SLOT_STICKINESS; exports.SortableList = SortableList; exports.SortableMoveButtons = SortableMoveButtons; exports.useSortableItem = useSortableItem; exports.TicketStatusConfigList = TicketStatusConfigList; exports.TableHeader = TableHeader; exports.TableCell = TableCell; exports.TableCardSkeleton = TableCardSkeleton; exports.TableRow = TableRow; exports.Table = Table; exports.TableDescriptionCell = TableDescriptionCell; exports.TableTimestampCell = TableTimestampCell; exports.QueryReportTableHeader = QueryReportTableHeader; exports.QueryReportTableRow = QueryReportTableRow; exports.QueryReportTableSkeleton = QueryReportTableSkeleton; exports.deriveColumns = deriveColumns; exports.exportToCSV = exportToCSV; exports.QueryReportTable = QueryReportTable; exports.DataTableEmpty = DataTableEmpty; exports.DataTableRow = DataTableRow; exports.DataTableBody = DataTableBody; exports.DataTableCursorFooter = DataTableCursorFooter; exports.DataTableHeader = DataTableHeader; exports.DATA_TABLE_HEADER_LABEL_CLASS = DATA_TABLE_HEADER_LABEL_CLASS; exports.DataTableInfiniteFooter = DataTableInfiniteFooter; exports.DataTableRowCount = DataTableRowCount; exports.useDataTable = useDataTable; exports.DataTable = DataTable; exports.flexRender = _reacttable.flexRender; exports.createColumnHelper = _reacttable.createColumnHelper; exports.getCoreRowModel = _reacttable.getCoreRowModel; exports.getExpandedRowModel = _reacttable.getExpandedRowModel; exports.getFacetedRowModel = _reacttable.getFacetedRowModel; exports.getFacetedUniqueValues = _reacttable.getFacetedUniqueValues; exports.getFilteredRowModel = _reacttable.getFilteredRowModel; exports.getGroupedRowModel = _reacttable.getGroupedRowModel; exports.getPaginationRowModel = _reacttable.getPaginationRowModel; exports.getSortedRowModel = _reacttable.getSortedRowModel; exports.SearchInput = SearchInput; exports.FilterListItem = FilterListItem; exports.FilterList = FilterList; exports.TagSearchInput = TagSearchInput; exports.MarkdownEditor = MarkdownEditor; exports.FileUpload = FileUpload; exports.ImageUploader = ImageUploader; exports.TICKET_STATUS_COLOR_PRESETS = TICKET_STATUS_COLOR_PRESETS; exports.CUSTOM_PRESET_KEY = CUSTOM_PRESET_KEY; exports.DEFAULT_CUSTOM_STATUS_COLOR = DEFAULT_CUSTOM_STATUS_COLOR; exports.ColorPresetSelect = ColorPresetSelect; exports.ColorPickerInput = ColorPickerInput; exports.TicketStatusConfigRow = TicketStatusConfigRow; exports.formatTestRunDuration = formatTestRunDuration; exports.TestResultsSkeleton = TestResultsSkeleton; exports.TestResultsTable = TestResultsTable; exports.TestRunErrorBanner = TestRunErrorBanner; exports.TestRunResults = TestRunResults; exports.TimingStat = TimingStat; exports.TestRunStatusStat = TestRunStatusStat; exports.useTestRunState = useTestRunState; exports.TicketAttachmentsList = TicketAttachmentsList; exports.TicketDetailSection = TicketDetailSection; exports.TicketNoteCard = TicketNoteCard; exports.TicketNotesSection = TicketNotesSection; exports.TicketInfoSection = TicketInfoSection; exports.renderTicketStatusOption = renderTicketStatusOption; exports.renderTicketAssigneeOption = renderTicketAssigneeOption; exports.TakeOverTicketModal = TakeOverTicketModal; exports.ReopenTicketModal = ReopenTicketModal; exports.ReopenTicketRequestModal = ReopenTicketRequestModal; exports.FilterPillRow = FilterPillRow; exports.LazyMount = LazyMount; exports.IconTile = IconTile;
|
|
30793
|
-
//# sourceMappingURL=chunk-
|
|
30788
|
+
//# sourceMappingURL=chunk-HKJ3WKGW.cjs.map
|