@flamingo-stack/openframe-frontend-core 0.0.781 → 0.0.783
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/case-study-card-WYZPBDDM.cjs +23 -0
- package/dist/{chunk-RJX33Y4Q.cjs → chunk-3INHO6GP.cjs} +22 -22
- package/dist/{chunk-TH5X2BXK.cjs → chunk-3PKORICR.cjs} +115 -115
- package/dist/{chunk-JHDPEYZH.cjs → chunk-4DKPNN2A.cjs} +17 -17
- package/dist/{chunk-L4XOCV7S.cjs → chunk-4DQ4CNAG.cjs} +10 -10
- package/dist/{chunk-HTSRCFXP.cjs → chunk-4MQASMIU.cjs} +7 -7
- package/dist/{chunk-3VINTJPE.cjs → chunk-5WMRVMXH.cjs} +5 -5
- package/dist/{chunk-OHXB6HUX.cjs → chunk-5XAWVXNI.cjs} +320 -320
- package/dist/{chunk-HLZUBJPL.cjs → chunk-62TMGBRO.cjs} +197 -197
- package/dist/{chunk-B6EQVH7D.cjs → chunk-6NEWJ6I2.cjs} +51 -51
- package/dist/{chunk-FWJ5YECN.cjs → chunk-7OJMOG34.cjs} +546 -544
- package/dist/{chunk-63OCO2G5.cjs → chunk-A3UZFFR3.cjs} +4 -4
- package/dist/{chunk-XHJI7R4J.cjs → chunk-AFSVWR3X.cjs} +46 -46
- package/dist/{chunk-LDGR5VCK.cjs → chunk-APO7GMZQ.cjs} +4 -4
- package/dist/{chunk-PID7LUDP.cjs → chunk-BAJB3JF3.cjs} +31 -31
- package/dist/{chunk-T7SDYBST.cjs → chunk-BE4OUWTA.cjs} +54 -54
- package/dist/{chunk-ZV6RQNXE.cjs → chunk-CBKXU77H.cjs} +46 -46
- package/dist/{chunk-IYU2ZH2J.cjs → chunk-CS5SZJFV.cjs} +2 -2
- package/dist/{chunk-Q7HXTF2C.cjs → chunk-DYF6XB27.cjs} +4 -4
- package/dist/{chunk-AKCBLZAO.cjs → chunk-E2ZZOYSM.cjs} +74 -62
- package/dist/{chunk-57NE7SHG.cjs → chunk-EFCWHAYC.cjs} +8 -8
- package/dist/{chunk-KWV23THO.cjs → chunk-EHQ2UGT4.cjs} +14 -14
- package/dist/{chunk-DJTPDK3W.cjs → chunk-F2FFJWOQ.cjs} +4 -4
- package/dist/{chunk-CDBFQVPA.cjs → chunk-FLS6DZEN.cjs} +46 -43
- package/dist/{chunk-VZKAAXU3.cjs → chunk-FS7CBRF4.cjs} +23 -23
- package/dist/{chunk-X6TXMWBV.cjs → chunk-H3RHAN6B.cjs} +61 -61
- package/dist/{chunk-HPGCUYAZ.cjs → chunk-KRXHRL3W.cjs} +110 -110
- package/dist/{chunk-D46WFWWI.cjs → chunk-LGISRUGF.cjs} +41 -39
- package/dist/{chunk-2OYKOHFK.cjs → chunk-LUWYWYNC.cjs} +2 -2
- package/dist/{chunk-N6YCOBLK.cjs → chunk-MGEUZRNQ.cjs} +101 -9
- package/dist/{chunk-YEJWNHD3.cjs → chunk-MKF6XX5A.cjs} +63 -63
- package/dist/{chunk-3IHGS44W.cjs → chunk-N2SVJJLU.cjs} +5 -5
- package/dist/{chunk-TZ6MTHUC.cjs → chunk-N5TPRCSS.cjs} +60 -60
- package/dist/{chunk-YNDH72VU.cjs → chunk-NNNRN4OF.cjs} +14 -14
- package/dist/{chunk-JQWYXC2E.cjs → chunk-ODDUGLYF.cjs} +110 -110
- package/dist/{chunk-T4ZVKEDP.cjs → chunk-OMTH355I.cjs} +3 -3
- package/dist/{chunk-OFX6XEVN.cjs → chunk-PQSTPJQQ.cjs} +13 -13
- package/dist/{chunk-YKJ4JN6T.cjs → chunk-RL45AU2C.cjs} +42 -42
- package/dist/{chunk-DIY4SJZI.cjs → chunk-RT6QATX4.cjs} +19 -19
- package/dist/{chunk-ODZ5XGWA.cjs → chunk-THOGSAFH.cjs} +2076 -2052
- package/dist/{chunk-UONQCE5N.cjs → chunk-TS6TISIF.cjs} +209 -208
- package/dist/{chunk-SMEX3BWO.cjs → chunk-UPQMFK5B.cjs} +7 -7
- package/dist/{chunk-5PBWAF2D.cjs → chunk-URFAMWCA.cjs} +44 -44
- package/dist/{chunk-VDTLVFCV.cjs → chunk-WHNI4QTG.cjs} +13 -13
- package/dist/{chunk-EYNQE2XN.cjs → chunk-WS7IDGEL.cjs} +6 -6
- package/dist/{chunk-QD7SKYCQ.cjs → chunk-WSBWP7IW.cjs} +3 -3
- package/dist/{chunk-RYIWADIB.cjs → chunk-XAA5LUHC.cjs} +12 -12
- package/dist/{chunk-XYKVOBIP.cjs → chunk-XKDJ5ISQ.cjs} +3 -3
- package/dist/{chunk-A7FSNBNV.cjs → chunk-YU23M33V.cjs} +173 -172
- package/dist/{chunk-ZPYFPLPD.cjs → chunk-YXZOP726.cjs} +10 -10
- package/dist/{chunk-4XDYSGRL.cjs → chunk-ZFOMRALU.cjs} +17 -17
- package/dist/{chunk-AFJEUBDS.cjs → chunk-ZJS45HQZ.cjs} +29 -29
- package/dist/{cloud-tenants-UAFVHKX7.cjs → cloud-tenants-QYW3MPPP.cjs} +32 -32
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/case-studies/index.cjs +52 -52
- package/dist/components/category-card.d.ts.map +1 -1
- package/dist/components/category-card.js +1 -0
- package/dist/components/chat/ask-display.js +2 -2
- package/dist/components/chat/chat-context-memory-bar.js +2 -2
- package/dist/components/chat/chat-context-picker.d.ts.map +1 -1
- package/dist/components/chat/chat-context-picker.js +4 -2
- package/dist/components/chat/chat-input.d.ts.map +1 -1
- package/dist/components/chat/chat-input.js +2 -1
- package/dist/components/chat/chat-nav-sidebar.d.ts.map +1 -1
- package/dist/components/chat/chat-nav-sidebar.js +12 -1
- package/dist/components/chat/embeddable-chat.js +120 -98
- package/dist/components/chat/guide-mode-banner.js +1 -1
- package/dist/components/chat/index.cjs +26 -26
- package/dist/components/chat/mingo-welcome.js +1 -1
- package/dist/components/contact/index.cjs +33 -33
- package/dist/components/docs/index.cjs +36 -36
- package/dist/components/embeds/index.cjs +33 -33
- package/dist/components/faq/index.cjs +34 -34
- package/dist/components/features/capability-explorer.d.ts.map +1 -1
- package/dist/components/features/capability-explorer.js +11 -1
- package/dist/components/features/command-box.js +1 -1
- package/dist/components/features/devices/devices-grid-filters.d.ts.map +1 -1
- package/dist/components/features/devices/devices-grid-filters.js +15 -4
- package/dist/components/features/filters-dropdown.d.ts.map +1 -1
- package/dist/components/features/filters-dropdown.js +6 -5
- package/dist/components/features/index.cjs +32 -32
- package/dist/components/features/model-token-rates.js +1 -1
- package/dist/components/features/notifications/notification-drawer.d.ts.map +1 -1
- package/dist/components/features/notifications/notification-drawer.js +1 -0
- package/dist/components/features/notifications/notification-tile.js +1 -1
- package/dist/components/features/paths-display.js +1 -1
- package/dist/components/features/remote-session/remote-session-events.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-session-events.js +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.js +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-timing-fields.js +1 -1
- package/dist/components/features/select-button.js +0 -1
- package/dist/components/features/tags-selector.js +1 -1
- package/dist/components/help-center-pages/index.cjs +163 -163
- package/dist/components/index.cjs +205 -204
- package/dist/components/loading/loading-region.d.ts.map +1 -1
- package/dist/components/loading/loading-region.js +2 -2
- package/dist/components/meeting-scheduler/index.cjs +187 -187
- package/dist/components/navigation/index.cjs +35 -35
- package/dist/components/navigation/mobile-burger-menu.d.ts.map +1 -1
- package/dist/components/navigation/mobile-burger-menu.js +2 -1
- package/dist/components/navigation/multi-level-navigation.d.ts.map +1 -1
- package/dist/components/navigation/multi-level-navigation.js +4 -2
- package/dist/components/navigation/navigation-sidebar-item.js +3 -3
- package/dist/components/onboarding-guides/index.cjs +35 -35
- package/dist/components/product-demo/index.cjs +45 -45
- package/dist/components/related-content/index.cjs +17 -17
- package/dist/components/tickets/index.cjs +39 -39
- package/dist/components/ui/allowed-domains-input.d.ts.map +1 -1
- package/dist/components/ui/allowed-domains-input.js +1 -0
- package/dist/components/ui/button/button-styles.d.ts +12 -4
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button-styles.js +99 -7
- package/dist/components/ui/button/button.d.ts +1 -1
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/button.js +3 -0
- package/dist/components/ui/file-manager/file-manager-breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/file-manager/file-manager-breadcrumb.js +1 -0
- package/dist/components/ui/file-manager/index.cjs +56 -55
- package/dist/components/ui/file-upload.d.ts.map +1 -1
- package/dist/components/ui/file-upload.js +5 -3
- package/dist/components/ui/hidden-tags-popup.js +1 -1
- package/dist/components/ui/hover-dropdown.js +1 -1
- package/dist/components/ui/index.cjs +32 -32
- package/dist/components/ui/info-card.js +1 -1
- package/dist/components/ui/info-section.d.ts.map +1 -1
- package/dist/components/ui/info-section.js +1 -0
- package/dist/components/ui/loading-scope.d.ts.map +1 -1
- package/dist/components/ui/loading-scope.js +2 -2
- package/dist/components/ui/modal-v2.js +1 -1
- package/dist/components/ui/organization-card.d.ts.map +1 -1
- package/dist/components/ui/organization-card.js +2 -1
- package/dist/components/ui/page-actions.d.ts +2 -2
- package/dist/components/ui/page-actions.d.ts.map +1 -1
- package/dist/components/ui/password-input.js +1 -1
- package/dist/components/ui/service-card.js +3 -3
- package/dist/components/ui/tab-selector.d.ts.map +1 -1
- package/dist/components/ui/tab-selector.js +3 -3
- package/dist/components/ui/test-run.d.ts.map +1 -1
- package/dist/components/ui/test-run.js +2 -1
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/textarea.js +2 -1
- package/dist/components/ui/ticket-attachments-list.d.ts.map +1 -1
- package/dist/components/ui/ticket-attachments-list.js +3 -2
- package/dist/components/ui/ticket-info-section.d.ts.map +1 -1
- package/dist/components/ui/ticket-info-section.js +1 -0
- package/dist/components/ui/ticket-note-card.d.ts.map +1 -1
- package/dist/components/ui/ticket-note-card.js +6 -4
- package/dist/components/ui/ticket-status-config-row.d.ts.map +1 -1
- package/dist/components/ui/ticket-status-config-row.js +1 -10
- package/dist/components/ui/toaster.js +1 -1
- package/dist/components/vendor-display-button.js +1 -1
- package/dist/{devices-TDKCKWRP.cjs → devices-DMMMEO2B.cjs} +33 -33
- package/dist/embed-shims/index.cjs +4 -4
- package/dist/embed-shims/next-image.cjs +4 -4
- package/dist/{embeddable-chat-HEL4Z2FL.cjs → embeddable-chat-OSSPL7L4.cjs} +226 -204
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +48 -48
- package/dist/{knowledge-A5KJ4CAD.cjs → knowledge-XQQXVV6C.cjs} +33 -33
- package/dist/{logs-6WRBPIMM.cjs → logs-BHKMDCBP.cjs} +41 -41
- package/dist/{policies-ICRXHW3H.cjs → policies-5IY7QUED.cjs} +36 -36
- package/dist/{remote-session-MEV5JL2Z.cjs → remote-session-IEOWFBF7.cjs} +17 -17
- package/dist/{scripts-AZVCZE6C.cjs → scripts-ZQXRBGVK.cjs} +39 -39
- package/dist/{software-update-4ZBCGJGA.cjs → software-update-RGFRYL3N.cjs} +36 -36
- package/dist/{tickets-board-BJPQD3HE.cjs → tickets-board-EYKLSB36.cjs} +17 -17
- package/dist/{video-file-player-DETXW4OJ.cjs → video-file-player-ZU666VUY.cjs} +14 -14
- package/package.json +1 -1
- package/src/components/category-card.tsx +2 -0
- package/src/components/chat/ask-display.tsx +2 -2
- package/src/components/chat/chat-context-memory-bar.tsx +2 -2
- package/src/components/chat/chat-context-picker.tsx +4 -2
- package/src/components/chat/chat-input.tsx +3 -1
- package/src/components/chat/chat-nav-sidebar.tsx +10 -1
- package/src/components/chat/embeddable-chat.tsx +21 -4
- package/src/components/chat/guide-mode-banner.tsx +1 -1
- package/src/components/chat/mingo-welcome.tsx +1 -1
- package/src/components/features/capability-explorer.tsx +8 -1
- package/src/components/features/command-box.tsx +1 -1
- package/src/components/features/devices/devices-grid-filters.tsx +8 -1
- package/src/components/features/filters-dropdown.tsx +6 -1
- package/src/components/features/model-token-rates.tsx +1 -1
- package/src/components/features/notifications/notification-drawer.tsx +1 -0
- package/src/components/features/notifications/notification-tile.tsx +1 -1
- package/src/components/features/paths-display.tsx +1 -1
- package/src/components/features/remote-session/remote-session-events.tsx +2 -0
- package/src/components/features/scripts/schedule-form/schedule-script-picker-card.tsx +1 -1
- package/src/components/features/scripts/schedule-form/schedule-timing-fields.tsx +1 -1
- package/src/components/features/select-button.tsx +2 -2
- package/src/components/features/tags-selector.tsx +1 -1
- package/src/components/loading/loading-region.tsx +4 -1
- package/src/components/navigation/mobile-burger-menu.tsx +3 -1
- package/src/components/navigation/multi-level-navigation.tsx +6 -2
- package/src/components/navigation/navigation-sidebar-item.tsx +5 -5
- package/src/components/ui/allowed-domains-input.tsx +1 -0
- package/src/components/ui/button/button-styles.ts +106 -9
- package/src/components/ui/button/button.tsx +3 -0
- package/src/components/ui/file-manager/file-manager-breadcrumb.tsx +1 -0
- package/src/components/ui/file-upload.tsx +5 -3
- package/src/components/ui/hidden-tags-popup.tsx +1 -1
- package/src/components/ui/hover-dropdown.tsx +1 -1
- package/src/components/ui/info-card.tsx +1 -1
- package/src/components/ui/info-section.tsx +2 -0
- package/src/components/ui/loading-scope.tsx +2 -1
- package/src/components/ui/modal-v2.tsx +1 -1
- package/src/components/ui/organization-card.tsx +3 -1
- package/src/components/ui/page-actions.tsx +14 -2
- package/src/components/ui/password-input.tsx +1 -1
- package/src/components/ui/service-card.tsx +3 -3
- package/src/components/ui/tab-selector.tsx +5 -3
- package/src/components/ui/test-run.tsx +2 -1
- package/src/components/ui/textarea.tsx +3 -1
- package/src/components/ui/ticket-attachments-list.tsx +3 -2
- package/src/components/ui/ticket-info-section.tsx +1 -0
- package/src/components/ui/ticket-note-card.tsx +6 -4
- package/src/components/ui/ticket-status-config-row.tsx +1 -6
- package/src/components/ui/toaster.tsx +1 -1
- package/src/components/vendor-display-button.tsx +1 -1
- package/dist/case-study-card-CYJ3JXU6.cjs +0 -23
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkRT6QATX4cjs = require('./chunk-RT6QATX4.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,7 +12,7 @@ var _chunkDIY4SJZIcjs = require('./chunk-DIY4SJZI.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk4DKPNN2Acjs = require('./chunk-4DKPNN2A.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -27,23 +27,23 @@ var _chunkJHDPEYZHcjs = require('./chunk-JHDPEYZH.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunk5XAWVXNIcjs = require('./chunk-5XAWVXNI.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkODDUGLYFcjs = require('./chunk-ODDUGLYF.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunkBLH2SFOOcjs = require('./chunk-BLH2SFOO.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunkA3UZFFR3cjs = require('./chunk-A3UZFFR3.cjs');
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkNNNRN4OFcjs = require('./chunk-NNNRN4OF.cjs');
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
var
|
|
46
|
+
var _chunkMGEUZRNQcjs = require('./chunk-MGEUZRNQ.cjs');
|
|
47
47
|
|
|
48
48
|
// src/components/related-content/related-content-section.tsx
|
|
49
49
|
var _react = require('react');
|
|
@@ -443,13 +443,13 @@ function programEntry(configKey) {
|
|
|
443
443
|
return cardEntry({
|
|
444
444
|
// The gallery and hosts rows are drawn only for a type whose cards show them (its config's `cardShowsGallery`,
|
|
445
445
|
// `cardShowsHosts`), as `ProgramCard` decides in a scope: elsewhere a record may have none.
|
|
446
|
-
skeleton: (size, extras) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
446
|
+
skeleton: (size, extras) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5XAWVXNIcjs.ProgramCard, { loading: true, config: _optionalChain([extras, 'optionalAccess', _2 => _2.programConfigs, 'optionalAccess', _3 => _3[configKey]]), size: size === "sm" ? "sm" : "default" }),
|
|
447
447
|
decode: decodeProgramRow,
|
|
448
448
|
render: (item, ctx) => {
|
|
449
449
|
const config = _optionalChain([ctx, 'access', _4 => _4.extras, 'optionalAccess', _5 => _5.programConfigs, 'optionalAccess', _6 => _6[configKey]]);
|
|
450
450
|
if (!config) return null;
|
|
451
451
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
452
|
-
|
|
452
|
+
_chunk5XAWVXNIcjs.ProgramCard,
|
|
453
453
|
{
|
|
454
454
|
config,
|
|
455
455
|
item,
|
|
@@ -467,10 +467,10 @@ function programEntry(configKey) {
|
|
|
467
467
|
}
|
|
468
468
|
function roadmapEntry(cardType) {
|
|
469
469
|
return cardEntry({
|
|
470
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
470
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5XAWVXNIcjs.RoadmapCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
471
471
|
decode: decodeRoadmapRow,
|
|
472
472
|
render: (item, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
473
|
-
|
|
473
|
+
_chunk5XAWVXNIcjs.RoadmapCard,
|
|
474
474
|
{
|
|
475
475
|
item,
|
|
476
476
|
href: ctx.href,
|
|
@@ -487,10 +487,10 @@ function roadmapEntry(cardType) {
|
|
|
487
487
|
}
|
|
488
488
|
var RELATED_CARD_REGISTRY = {
|
|
489
489
|
blog_post_existing: cardEntry({
|
|
490
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
490
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5XAWVXNIcjs.BlogCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
491
491
|
decode: decodeBlogRow,
|
|
492
492
|
render: (post, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
493
|
-
|
|
493
|
+
_chunk5XAWVXNIcjs.BlogCard,
|
|
494
494
|
{
|
|
495
495
|
post,
|
|
496
496
|
size: ctx.legacySize,
|
|
@@ -503,10 +503,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
503
503
|
)
|
|
504
504
|
}),
|
|
505
505
|
case_study: cardEntry({
|
|
506
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
506
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkODDUGLYFcjs.CaseStudyCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
507
507
|
decode: decodeCaseStudyRow,
|
|
508
508
|
render: (study, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
509
|
-
|
|
509
|
+
_chunkODDUGLYFcjs.CaseStudyCard,
|
|
510
510
|
{
|
|
511
511
|
study,
|
|
512
512
|
size: ctx.legacySize,
|
|
@@ -518,10 +518,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
518
518
|
)
|
|
519
519
|
}),
|
|
520
520
|
customer_interview: cardEntry({
|
|
521
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
521
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5XAWVXNIcjs.CustomerInterviewCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
522
522
|
decode: decodeCustomerInterviewRow,
|
|
523
523
|
render: (interview, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
524
|
-
|
|
524
|
+
_chunk5XAWVXNIcjs.CustomerInterviewCard,
|
|
525
525
|
{
|
|
526
526
|
interview,
|
|
527
527
|
size: ctx.legacySize,
|
|
@@ -539,13 +539,13 @@ var RELATED_CARD_REGISTRY = {
|
|
|
539
539
|
* record, and the three props the rail sets itself are read off it.
|
|
540
540
|
*/
|
|
541
541
|
product_release: cardEntry({
|
|
542
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
542
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5XAWVXNIcjs.ProductReleaseCard, { loading: true, size: size === "sm" ? "sm" : "lg" }),
|
|
543
543
|
decode: asRecord,
|
|
544
544
|
render: (release, ctx) => {
|
|
545
|
-
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _7 => _7.extras, 'optionalAccess', _8 => _8.buildProductReleaseCardProps]), () => (
|
|
545
|
+
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _7 => _7.extras, 'optionalAccess', _8 => _8.buildProductReleaseCardProps]), () => ( _chunk5XAWVXNIcjs.buildProductReleaseCardProps));
|
|
546
546
|
const releaseProps = buildReleaseProps(release);
|
|
547
547
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
548
|
-
|
|
548
|
+
_chunk5XAWVXNIcjs.ProductReleaseCard,
|
|
549
549
|
{
|
|
550
550
|
size: ctx.size === "sm" ? "sm" : "lg",
|
|
551
551
|
title: str(release, "title"),
|
|
@@ -561,10 +561,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
561
561
|
webinar: programEntry("webinar"),
|
|
562
562
|
event: programEntry("event"),
|
|
563
563
|
investor_update: cardEntry({
|
|
564
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
564
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5XAWVXNIcjs.InvestorUpdateCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
565
565
|
decode: decodeInvestorUpdateRow,
|
|
566
566
|
render: (update, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
567
|
-
|
|
567
|
+
_chunk5XAWVXNIcjs.InvestorUpdateCard,
|
|
568
568
|
{
|
|
569
569
|
update,
|
|
570
570
|
size: ctx.legacySize,
|
|
@@ -579,10 +579,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
579
579
|
* step-numbered 'default' variant is for the guide detail page's "More in
|
|
580
580
|
* section" rail, not this full-width row. */
|
|
581
581
|
onboarding_guide: cardEntry({
|
|
582
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
582
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5XAWVXNIcjs.OnboardingGuideCard, { loading: true, size: size === "sm" ? "sm" : "catalog", published: false }),
|
|
583
583
|
decode: decodeOnboardingGuideRow,
|
|
584
584
|
render: (guide, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
585
|
-
|
|
585
|
+
_chunk5XAWVXNIcjs.OnboardingGuideCard,
|
|
586
586
|
{
|
|
587
587
|
guide,
|
|
588
588
|
size: ctx.size === "sm" ? "sm" : "catalog",
|
|
@@ -599,10 +599,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
599
599
|
* href: an object with `href: undefined` is still truthy and would wrap the
|
|
600
600
|
* card in a dead <a>. */
|
|
601
601
|
what_i_shipped: cardEntry({
|
|
602
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
602
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4DKPNN2Acjs.WhatIShippedCard, { loading: true }),
|
|
603
603
|
decode: decodeEmployeeEntryRow,
|
|
604
604
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
605
|
-
|
|
605
|
+
_chunk4DKPNN2Acjs.WhatIShippedCard,
|
|
606
606
|
{
|
|
607
607
|
entry,
|
|
608
608
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -612,10 +612,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
612
612
|
}),
|
|
613
613
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
614
614
|
how_i_work: cardEntry({
|
|
615
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
615
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4DKPNN2Acjs.HowIWorkCard, { loading: true }),
|
|
616
616
|
decode: decodeEmployeeEntryRow,
|
|
617
617
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
618
|
-
|
|
618
|
+
_chunk4DKPNN2Acjs.HowIWorkCard,
|
|
619
619
|
{
|
|
620
620
|
entry,
|
|
621
621
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -625,10 +625,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
625
625
|
}),
|
|
626
626
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
627
627
|
ai_prompt: cardEntry({
|
|
628
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
628
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4DKPNN2Acjs.AiPromptCard, { loading: true }),
|
|
629
629
|
decode: decodeEmployeeEntryRow,
|
|
630
630
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
631
|
-
|
|
631
|
+
_chunk4DKPNN2Acjs.AiPromptCard,
|
|
632
632
|
{
|
|
633
633
|
entry,
|
|
634
634
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -649,7 +649,7 @@ function DefaultLinkPropsProvider({
|
|
|
649
649
|
children
|
|
650
650
|
}) {
|
|
651
651
|
if (!href) return children(null);
|
|
652
|
-
const newTab =
|
|
652
|
+
const newTab = _chunkODDUGLYFcjs.decideNewTab.call(void 0, { href, targetPlatform, currentSource: "" });
|
|
653
653
|
return children(newTab ? { href, target: "_blank", rel: "noopener noreferrer" } : { href });
|
|
654
654
|
}
|
|
655
655
|
function defaultResolveHref(ref) {
|
|
@@ -711,9 +711,9 @@ function useGroupItems(type, refs, buildUrl, seedRows) {
|
|
|
711
711
|
() => seedRows && url !== null ? /* @__PURE__ */ new Map([[url, [...seedRows]]]) : /* @__PURE__ */ new Map()
|
|
712
712
|
);
|
|
713
713
|
const cached = url !== null ? pages.get(url) : void 0;
|
|
714
|
-
const { data, dataUrl, error } =
|
|
714
|
+
const { data, dataUrl, error } = _chunk4DKPNN2Acjs.useSelfFetch.call(void 0, cached ? null : url);
|
|
715
715
|
if (data != null && dataUrl !== null && !pages.has(dataUrl)) {
|
|
716
|
-
setPages(new Map(pages).set(dataUrl,
|
|
716
|
+
setPages(new Map(pages).set(dataUrl, _chunk5XAWVXNIcjs.extractItems.call(void 0, data)));
|
|
717
717
|
}
|
|
718
718
|
if (url === null) return { items: null, isLoading: false };
|
|
719
719
|
return { items: _nullishCoalesce(cached, () => ( (error ? [] : null))), isLoading: !cached && !error };
|
|
@@ -722,7 +722,7 @@ function gridClassFor(columns) {
|
|
|
722
722
|
return columns === 3 ? "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6" : "grid grid-cols-1 sm:grid-cols-2 gap-6";
|
|
723
723
|
}
|
|
724
724
|
function resolveGroupConfig(type) {
|
|
725
|
-
return _nullishCoalesce(
|
|
725
|
+
return _nullishCoalesce(_chunk4DKPNN2Acjs.CONTENT_REF_GROUPS[type], () => ( {
|
|
726
726
|
label: type,
|
|
727
727
|
order: 999,
|
|
728
728
|
layout: "grid",
|
|
@@ -735,15 +735,15 @@ var GROUP_HEADING_CLASS = "font-semibold text-ods-text-secondary text-h5";
|
|
|
735
735
|
var RAIL_CLASS = "flex flex-col gap-8";
|
|
736
736
|
var UNKNOWN_TYPE_CARD = "blog_post_existing";
|
|
737
737
|
function GroupHeading({ type }) {
|
|
738
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children:
|
|
738
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: _chunk4DKPNN2Acjs.getContentRefLabelOrTitleCase.call(void 0, type) });
|
|
739
739
|
}
|
|
740
740
|
function orderRailTypes(types, entityType) {
|
|
741
|
-
let ordered =
|
|
741
|
+
let ordered = _chunk4DKPNN2Acjs.orderContentRefTypes.call(void 0, types);
|
|
742
742
|
if (entityType) {
|
|
743
|
-
const canonicalEntityType =
|
|
744
|
-
const sameType = ordered.filter((t) =>
|
|
743
|
+
const canonicalEntityType = _chunk5XAWVXNIcjs.canonicalContentRefType.call(void 0, entityType);
|
|
744
|
+
const sameType = ordered.filter((t) => _chunk5XAWVXNIcjs.canonicalContentRefType.call(void 0, t) === canonicalEntityType);
|
|
745
745
|
if (sameType.length > 0) {
|
|
746
|
-
ordered = [...sameType, ...ordered.filter((t) =>
|
|
746
|
+
ordered = [...sameType, ...ordered.filter((t) => _chunk5XAWVXNIcjs.canonicalContentRefType.call(void 0, t) !== canonicalEntityType)];
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
749
|
return ordered;
|
|
@@ -772,10 +772,10 @@ function ContentGroup({
|
|
|
772
772
|
setPagedRefsKey(refsKey);
|
|
773
773
|
setPage(1);
|
|
774
774
|
}
|
|
775
|
-
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length,
|
|
776
|
-
const pageRefs = refs.slice((page - 1) *
|
|
775
|
+
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length, _chunk4DKPNN2Acjs.GROUP_PAGE_SIZE);
|
|
776
|
+
const pageRefs = refs.slice((page - 1) * _chunk4DKPNN2Acjs.GROUP_PAGE_SIZE, page * _chunk4DKPNN2Acjs.GROUP_PAGE_SIZE);
|
|
777
777
|
const { items, isLoading } = useGroupItems(type, pageRefs, buildUrl, seedRows);
|
|
778
|
-
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
778
|
+
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRT6QATX4cjs.Pagination, { currentPage: page, totalPages: totalGroupPages, onPageChange: setPage }) : null;
|
|
779
779
|
_react.useEffect.call(void 0, () => {
|
|
780
780
|
onLoadingChange(type, isLoading);
|
|
781
781
|
return () => onLoadingChange(type, false);
|
|
@@ -784,7 +784,7 @@ function ContentGroup({
|
|
|
784
784
|
const skeletons = pageRefs.map((r) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, children: renderSkeletonForType(type, cardSize, adminCampaignCard, extras) }, r.id));
|
|
785
785
|
return (
|
|
786
786
|
// The rail announces for every group (`announce={false}`): one rail, one "loading".
|
|
787
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
787
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkA3UZFFR3cjs.LoadingRegion, { announce: false, className: GROUP_CLASS, "data-loading-item": true, children: [
|
|
788
788
|
heading,
|
|
789
789
|
isListLayout ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: GROUP_LIST_CLASS, children: skeletons }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: skeletons }),
|
|
790
790
|
groupPagination
|
|
@@ -793,7 +793,7 @@ function ContentGroup({
|
|
|
793
793
|
}
|
|
794
794
|
if (!items) return null;
|
|
795
795
|
const rowKey = (it) => {
|
|
796
|
-
const extracted =
|
|
796
|
+
const extracted = _chunk5XAWVXNIcjs.extractItemId.call(void 0, type, it);
|
|
797
797
|
if (extracted !== null) return extracted;
|
|
798
798
|
return String(typeof it === "object" && it !== null ? it.id : void 0);
|
|
799
799
|
};
|
|
@@ -864,11 +864,11 @@ function RelatedContentSection({
|
|
|
864
864
|
types: includeTypes !== void 0 ? includeTypes.join(",") : void 0,
|
|
865
865
|
excludeTypes: excludeTypes && excludeTypes.length > 0 ? excludeTypes.join(",") : void 0
|
|
866
866
|
};
|
|
867
|
-
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ?
|
|
867
|
+
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ? _chunk4DKPNN2Acjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
868
868
|
apiBaseUrl,
|
|
869
869
|
extraParams: { authorId, ...typeFilterParams }
|
|
870
870
|
}) : null;
|
|
871
|
-
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ?
|
|
871
|
+
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ? _chunk4DKPNN2Acjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
872
872
|
apiBaseUrl,
|
|
873
873
|
entityType,
|
|
874
874
|
entityId,
|
|
@@ -885,8 +885,8 @@ function RelatedContentSection({
|
|
|
885
885
|
() => !suggestionsDisabled && initialItems ? { refs: initialItems } : void 0,
|
|
886
886
|
[initialItems, suggestionsDisabled]
|
|
887
887
|
);
|
|
888
|
-
const { data, isLoading } =
|
|
889
|
-
const inScope =
|
|
888
|
+
const { data, isLoading } = _chunk4DKPNN2Acjs.useSelfFetch.call(void 0, suggestUrl, { initialData });
|
|
889
|
+
const inScope = _chunkMGEUZRNQcjs.useLoadingScope.call(void 0, );
|
|
890
890
|
const [loadingTypes, setLoadingTypes] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
|
|
891
891
|
const onGroupLoadingChange = _react.useCallback.call(void 0, (type, loading) => {
|
|
892
892
|
setLoadingTypes((prev) => {
|
|
@@ -898,7 +898,7 @@ function RelatedContentSection({
|
|
|
898
898
|
});
|
|
899
899
|
}, []);
|
|
900
900
|
const effectiveBuildListUrl = _react.useMemo.call(void 0,
|
|
901
|
-
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) =>
|
|
901
|
+
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) => _chunk5XAWVXNIcjs.buildListUrl.call(void 0, type, ids, apiBaseUrl)))),
|
|
902
902
|
[buildListUrl2, apiBaseUrl]
|
|
903
903
|
);
|
|
904
904
|
const refs = _nullishCoalesce(_nullishCoalesce(contentRefs, () => ( _optionalChain([data, 'optionalAccess', _12 => _12.refs]))), () => ( []));
|
|
@@ -922,7 +922,7 @@ function RelatedContentSection({
|
|
|
922
922
|
}
|
|
923
923
|
if (!showWhenEmpty) return null;
|
|
924
924
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
925
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children:
|
|
925
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children: _chunk5XAWVXNIcjs.accentSentenceMarks.call(void 0, title) }),
|
|
926
926
|
_nullishCoalesce(emptyState, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: emptyStateText })))
|
|
927
927
|
] });
|
|
928
928
|
}
|
|
@@ -947,8 +947,8 @@ function RelatedContentSection({
|
|
|
947
947
|
}
|
|
948
948
|
);
|
|
949
949
|
}
|
|
950
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
951
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children:
|
|
950
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkA3UZFFR3cjs.LoadingRegion, { as: "section", label: "Loading related content", announce: loadingTypes.size > 0, className: RAIL_CLASS, children: [
|
|
951
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: _chunk5XAWVXNIcjs.accentSentenceMarks.call(void 0, title) }),
|
|
952
952
|
orderedTypes.map((type, groupIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
953
953
|
ContentGroup,
|
|
954
954
|
{
|
|
@@ -979,24 +979,24 @@ function RelatedContentSectionSkeleton({
|
|
|
979
979
|
adminCampaignCard,
|
|
980
980
|
extras
|
|
981
981
|
}) {
|
|
982
|
-
const canonicalEntityType = entityType ?
|
|
982
|
+
const canonicalEntityType = entityType ? _chunk5XAWVXNIcjs.canonicalContentRefType.call(void 0, entityType) : null;
|
|
983
983
|
const unknownGroup = types.length === 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: GROUP_CLASS, "aria-hidden": true, "data-loading-item": true, children: [
|
|
984
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
985
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length:
|
|
984
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNNNRN4OFcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-24" }) }),
|
|
985
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length: _chunk4DKPNN2Acjs.GROUP_PAGE_SIZE }, (_, i) => (
|
|
986
986
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
987
987
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, children: renderSkeletonForType(UNKNOWN_TYPE_CARD, "default", adminCampaignCard, extras) }, i)
|
|
988
988
|
)) })
|
|
989
989
|
] }) : null;
|
|
990
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
991
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: title ?
|
|
990
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkA3UZFFR3cjs.LoadingRegion, { as: "section", label: "Loading related content", className: RAIL_CLASS, children: [
|
|
991
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: title ? _chunk5XAWVXNIcjs.accentSentenceMarks.call(void 0, title) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNNNRN4OFcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/2" }) }),
|
|
992
992
|
unknownGroup,
|
|
993
993
|
orderRailTypes(new Set(types), entityType).map((type) => {
|
|
994
994
|
const config = resolveGroupConfig(type);
|
|
995
|
-
const sameType = canonicalEntityType !== null &&
|
|
995
|
+
const sameType = canonicalEntityType !== null && _chunk5XAWVXNIcjs.canonicalContentRefType.call(void 0, type) === canonicalEntityType;
|
|
996
996
|
const isList = config.layout === "list";
|
|
997
997
|
const count = Math.min(
|
|
998
|
-
|
|
999
|
-
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => (
|
|
998
|
+
_chunk4DKPNN2Acjs.GROUP_PAGE_SIZE,
|
|
999
|
+
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => ( _chunk4DKPNN2Acjs.GROUP_PAGE_SIZE))
|
|
1000
1000
|
);
|
|
1001
1001
|
const cards = Array.from({ length: count }, (_, i) => (
|
|
1002
1002
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkMGEUZRNQcjs = require('./chunk-MGEUZRNQ.cjs');
|
|
6
6
|
|
|
7
7
|
// src/styles/component-sizes.ts
|
|
8
8
|
var TEXT_LINES_MIN = {
|
|
@@ -117,7 +117,7 @@ function UnifiedSkeleton({
|
|
|
117
117
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
118
118
|
Tag,
|
|
119
119
|
{
|
|
120
|
-
className:
|
|
120
|
+
className: _chunkMGEUZRNQcjs.cn.call(void 0,
|
|
121
121
|
// An inline span ignores width and height: without a display of its own the bar draws at 0×0.
|
|
122
122
|
Tag === "span" && !setsDisplay && "inline-block max-w-full align-middle",
|
|
123
123
|
animate ? SKELETON_SURFACE_CLASS : "bg-ods-skeleton",
|
|
@@ -149,13 +149,13 @@ function TextLineSkeleton({ type, lines = 1, as = "div", width, className }) {
|
|
|
149
149
|
Tag,
|
|
150
150
|
{
|
|
151
151
|
"aria-hidden": "true",
|
|
152
|
-
className:
|
|
152
|
+
className: _chunkMGEUZRNQcjs.cn.call(void 0, "flex flex-col", TEXT_LINE_TYPE[type], heightClass, className),
|
|
153
153
|
style: heightClass && width === void 0 ? void 0 : { height: heightClass ? void 0 : `${lines}lh`, width },
|
|
154
154
|
children: Array.from({ length: lines }, (_, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Tag, { className: "flex h-[1lh] items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
155
155
|
UnifiedSkeleton,
|
|
156
156
|
{
|
|
157
157
|
as,
|
|
158
|
-
className:
|
|
158
|
+
className: _chunkMGEUZRNQcjs.cn.call(void 0, "block h-[0.7lh] rounded", lines > 1 && index === lines - 1 ? "w-3/5" : "w-full")
|
|
159
159
|
}
|
|
160
160
|
) }, index))
|
|
161
161
|
}
|
|
@@ -165,19 +165,19 @@ var TextSkeleton = {
|
|
|
165
165
|
/**
|
|
166
166
|
* Large heading skeleton (h1, h2)
|
|
167
167
|
*/
|
|
168
|
-
Heading: ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnifiedSkeleton, { variant: "text", className:
|
|
168
|
+
Heading: ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnifiedSkeleton, { variant: "text", className: _chunkMGEUZRNQcjs.cn.call(void 0, "h-8 content-md:h-10 content-lg:h-12", className), ...props }),
|
|
169
169
|
/**
|
|
170
170
|
* Medium heading skeleton (h3, h4)
|
|
171
171
|
*/
|
|
172
|
-
Subheading: ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnifiedSkeleton, { variant: "text", className:
|
|
172
|
+
Subheading: ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnifiedSkeleton, { variant: "text", className: _chunkMGEUZRNQcjs.cn.call(void 0, "h-6 content-md:h-7 content-lg:h-8", className), ...props }),
|
|
173
173
|
/**
|
|
174
174
|
* Body text skeleton
|
|
175
175
|
*/
|
|
176
|
-
Body: ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnifiedSkeleton, { variant: "text", className:
|
|
176
|
+
Body: ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnifiedSkeleton, { variant: "text", className: _chunkMGEUZRNQcjs.cn.call(void 0, "h-4 content-md:h-5", className), ...props }),
|
|
177
177
|
/**
|
|
178
178
|
* Small text skeleton (captions, metadata)
|
|
179
179
|
*/
|
|
180
|
-
Caption: ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnifiedSkeleton, { variant: "text", className:
|
|
180
|
+
Caption: ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnifiedSkeleton, { variant: "text", className: _chunkMGEUZRNQcjs.cn.call(void 0, "h-3 content-md:h-4", className), ...props })
|
|
181
181
|
};
|
|
182
182
|
var BUTTON_SKELETON_LABEL_WIDTH_CLASS = "w-24";
|
|
183
183
|
var InteractiveSkeleton = {
|
|
@@ -195,7 +195,7 @@ var InteractiveSkeleton = {
|
|
|
195
195
|
UnifiedSkeleton,
|
|
196
196
|
{
|
|
197
197
|
variant: "default",
|
|
198
|
-
className:
|
|
198
|
+
className: _chunkMGEUZRNQcjs.cn.call(void 0, _chunkMGEUZRNQcjs.BUTTON_SIZE_CLASS[size], !size.startsWith("icon") && BUTTON_SKELETON_LABEL_WIDTH_CLASS, className),
|
|
199
199
|
...props
|
|
200
200
|
}
|
|
201
201
|
),
|
|
@@ -206,14 +206,14 @@ var InteractiveSkeleton = {
|
|
|
206
206
|
UnifiedSkeleton,
|
|
207
207
|
{
|
|
208
208
|
variant: "default",
|
|
209
|
-
className:
|
|
209
|
+
className: _chunkMGEUZRNQcjs.cn.call(void 0, "w-full", INPUT_HEIGHT_CLASS, INPUT_RADIUS_CLASS, className),
|
|
210
210
|
...props
|
|
211
211
|
}
|
|
212
212
|
),
|
|
213
213
|
/**
|
|
214
214
|
* Filter chip skeleton
|
|
215
215
|
*/
|
|
216
|
-
Chip: ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnifiedSkeleton, { variant: "default", className:
|
|
216
|
+
Chip: ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnifiedSkeleton, { variant: "default", className: _chunkMGEUZRNQcjs.cn.call(void 0, "h-8 w-20 rounded-full", className), ...props })
|
|
217
217
|
};
|
|
218
218
|
var MediaSkeleton = {
|
|
219
219
|
/**
|
|
@@ -229,13 +229,13 @@ var MediaSkeleton = {
|
|
|
229
229
|
md: "h-12 w-12",
|
|
230
230
|
lg: "h-16 w-16"
|
|
231
231
|
};
|
|
232
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnifiedSkeleton, { variant: "circular", className:
|
|
232
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnifiedSkeleton, { variant: "circular", className: _chunkMGEUZRNQcjs.cn.call(void 0, sizeClasses[size], className), ...props });
|
|
233
233
|
},
|
|
234
234
|
/**
|
|
235
235
|
* Card image skeleton (1200×630 OG aspect — matches entity-cards default
|
|
236
236
|
* so loading state never causes a height shift when card data arrives)
|
|
237
237
|
*/
|
|
238
|
-
CardImage: ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnifiedSkeleton, { variant: "default", className:
|
|
238
|
+
CardImage: ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnifiedSkeleton, { variant: "default", className: _chunkMGEUZRNQcjs.cn.call(void 0, "aspect-[1200/630] w-full", className), ...props }),
|
|
239
239
|
/**
|
|
240
240
|
* Icon skeleton
|
|
241
241
|
*/
|
|
@@ -249,7 +249,7 @@ var MediaSkeleton = {
|
|
|
249
249
|
md: "h-6 w-6",
|
|
250
250
|
lg: "h-8 w-8"
|
|
251
251
|
};
|
|
252
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnifiedSkeleton, { variant: "default", className:
|
|
252
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnifiedSkeleton, { variant: "default", className: _chunkMGEUZRNQcjs.cn.call(void 0, sizeClasses[size], className), ...props });
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
255
|
|