@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 _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkMGEUZRNQcjs = require('./chunk-MGEUZRNQ.cjs');
|
|
5
5
|
|
|
6
6
|
// src/components/ui/label.tsx
|
|
7
7
|
var _reactlabel = require('@radix-ui/react-label'); var LabelPrimitive = _interopRequireWildcard(_reactlabel);
|
|
@@ -17,7 +17,7 @@ var labelVariants = _classvarianceauthority.cva.call(void 0, "", {
|
|
|
17
17
|
small: LABEL_TEXT_CLASS,
|
|
18
18
|
/** @deprecated alias of `default`. */
|
|
19
19
|
medium: LABEL_TEXT_CLASS,
|
|
20
|
-
large:
|
|
20
|
+
large: _chunkMGEUZRNQcjs.cn.call(void 0, LABEL_TEXT_CLASS, "text-h4"),
|
|
21
21
|
/** A click surface that labels its control: no typography, the site's `className` is its look. */
|
|
22
22
|
surface: ""
|
|
23
23
|
},
|
|
@@ -33,7 +33,7 @@ var labelVariants = _classvarianceauthority.cva.call(void 0, "", {
|
|
|
33
33
|
spacing: "none"
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
var Label = _react.forwardRef.call(void 0, ({ className, variant, spacing, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LabelPrimitive.Root, { ref, className:
|
|
36
|
+
var Label = _react.forwardRef.call(void 0, ({ className, variant, spacing, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LabelPrimitive.Root, { ref, className: _chunkMGEUZRNQcjs.cn.call(void 0, labelVariants({ variant, spacing }), className), ...props }));
|
|
37
37
|
Label.displayName = LabelPrimitive.Root.displayName;
|
|
38
38
|
|
|
39
39
|
|
|
@@ -1,13 +1,13 @@
|
|
|
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 _chunkTHOGSAFHcjs = require('./chunk-THOGSAFH.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk7OJMOG34cjs = require('./chunk-7OJMOG34.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkOJZBZH56cjs = require('./chunk-OJZBZH56.cjs');
|
|
@@ -18,10 +18,10 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk5XAWVXNIcjs = require('./chunk-5XAWVXNI.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkODDUGLYFcjs = require('./chunk-ODDUGLYF.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunk7PNRXJX2cjs = require('./chunk-7PNRXJX2.cjs');
|
|
@@ -42,7 +42,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
42
42
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
43
43
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
44
44
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
45
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
45
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunk7OJMOG34cjs.resolveSourceIcon.call(void 0, {
|
|
46
46
|
sourceRepo,
|
|
47
47
|
documentType: docType
|
|
48
48
|
});
|
|
@@ -72,7 +72,7 @@ function DocSearchBar({
|
|
|
72
72
|
renderResult
|
|
73
73
|
}) {
|
|
74
74
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
75
|
-
|
|
75
|
+
_chunkTHOGSAFHcjs.SearchInput,
|
|
76
76
|
{
|
|
77
77
|
placeholder,
|
|
78
78
|
value: query,
|
|
@@ -122,7 +122,7 @@ function mapDocSearchResults(docs) {
|
|
|
122
122
|
results.push({
|
|
123
123
|
id: `group-${entry.repo}`,
|
|
124
124
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
125
|
-
title: `${
|
|
125
|
+
title: `${_chunk7OJMOG34cjs.getSourceLabel.call(void 0, entry.repo)} ${_chunk7OJMOG34cjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
126
126
|
path: rows[0].path,
|
|
127
127
|
type: "file",
|
|
128
128
|
metadata: {
|
|
@@ -185,7 +185,7 @@ function resolveSearchResultAction(result, source, runtimeMode, composeContentUr
|
|
|
185
185
|
if (composed && !isAbsoluteHref(href)) {
|
|
186
186
|
return { kind: "navigate-same-tab", href };
|
|
187
187
|
}
|
|
188
|
-
const isNewTab =
|
|
188
|
+
const isNewTab = _chunkODDUGLYFcjs.decideNewTab.call(void 0, {
|
|
189
189
|
href,
|
|
190
190
|
targetPlatform: composed ? composed.targetPlatform : targetPlatform,
|
|
191
191
|
surface: "useUnifiedNav",
|
|
@@ -314,31 +314,31 @@ function useDocSearch(config) {
|
|
|
314
314
|
case "navigate-same-tab": {
|
|
315
315
|
if (wantsNewTab) {
|
|
316
316
|
setKeepOpen(true);
|
|
317
|
-
window.open(action.href, "_blank",
|
|
317
|
+
window.open(action.href, "_blank", _chunk5XAWVXNIcjs.NEW_TAB_FEATURES);
|
|
318
318
|
return;
|
|
319
319
|
}
|
|
320
320
|
setKeepOpen(false);
|
|
321
321
|
const path = baseRoute && action.href.startsWith(`${baseRoute}/`) ? action.href.slice(baseRoute.length + 1) : null;
|
|
322
322
|
if (path && _optionalChain([onInPageSwap, 'optionalCall', _16 => _16(path)])) return;
|
|
323
|
-
router.push(
|
|
323
|
+
router.push(_chunk5XAWVXNIcjs.stripSameOriginToPath.call(void 0, action.href));
|
|
324
324
|
return;
|
|
325
325
|
}
|
|
326
326
|
case "navigate-new-tab":
|
|
327
327
|
setKeepOpen(true);
|
|
328
328
|
if (_optionalChain([runtime, 'optionalAccess', _17 => _17.navigation, 'access', _18 => _18.mode]) === "embed") {
|
|
329
329
|
const targetPlatform = _nullishCoalesce(_optionalChain([result, 'access', _19 => _19.metadata, 'optionalAccess', _20 => _20.targetPlatform]), () => ( null));
|
|
330
|
-
|
|
330
|
+
_chunk5XAWVXNIcjs.resolveExternalNavigation.call(void 0, {
|
|
331
331
|
href: action.href,
|
|
332
332
|
targetPlatform,
|
|
333
333
|
runtime
|
|
334
334
|
}).open();
|
|
335
335
|
return;
|
|
336
336
|
}
|
|
337
|
-
window.open(action.href, "_blank",
|
|
337
|
+
window.open(action.href, "_blank", _chunk5XAWVXNIcjs.NEW_TAB_FEATURES);
|
|
338
338
|
return;
|
|
339
339
|
case "ask-ai":
|
|
340
340
|
setKeepOpen(false);
|
|
341
|
-
window.dispatchEvent(new CustomEvent(
|
|
341
|
+
window.dispatchEvent(new CustomEvent(_chunk7OJMOG34cjs.ASK_AI_OPEN_WITH_REF_EVENT, { detail: action.detail }));
|
|
342
342
|
return;
|
|
343
343
|
case "route":
|
|
344
344
|
setKeepOpen(false);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkCBKXU77Hcjs = require('./chunk-CBKXU77H.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk62TMGBROcjs = require('./chunk-62TMGBRO.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkSXGDKNVEcjs = require('./chunk-SXGDKNVE.cjs');
|
|
@@ -47,26 +47,26 @@ var _chunk5OG5ZTNMcjs = require('./chunk-5OG5ZTNM.cjs');
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
var
|
|
50
|
+
var _chunk5XAWVXNIcjs = require('./chunk-5XAWVXNI.cjs');
|
|
51
51
|
|
|
52
52
|
|
|
53
|
-
var
|
|
53
|
+
var _chunkODDUGLYFcjs = require('./chunk-ODDUGLYF.cjs');
|
|
54
54
|
|
|
55
55
|
|
|
56
|
-
var
|
|
56
|
+
var _chunkZJS45HQZcjs = require('./chunk-ZJS45HQZ.cjs');
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
var
|
|
59
|
+
var _chunk5WMRVMXHcjs = require('./chunk-5WMRVMXH.cjs');
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkNNNRN4OFcjs = require('./chunk-NNNRN4OF.cjs');
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
var
|
|
65
|
+
var _chunkFLS6DZENcjs = require('./chunk-FLS6DZEN.cjs');
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
var
|
|
69
|
+
var _chunkMGEUZRNQcjs = require('./chunk-MGEUZRNQ.cjs');
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -96,7 +96,7 @@ var AVAILABLE_SVG_ICONS = [
|
|
|
96
96
|
// src/components/platform/SoftwareInfo.tsx
|
|
97
97
|
var _jsxruntime = require('react/jsx-runtime');
|
|
98
98
|
var SoftwareInfo = ({ name, vendor, version, className }) => {
|
|
99
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
99
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkMGEUZRNQcjs.cn.call(void 0, "flex flex-col gap-1", className), children: [
|
|
100
100
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
101
101
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-ods-text-primary text-h4", children: name }),
|
|
102
102
|
version && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rounded bg-ods-bg-surface px-2 py-1 text-ods-text-secondary text-h6", children: version })
|
|
@@ -130,7 +130,7 @@ var sourceConfig = {
|
|
|
130
130
|
};
|
|
131
131
|
var SoftwareSourceBadge = ({ source, className }) => {
|
|
132
132
|
const config = sourceConfig[source] || { label: source, icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHLNYSJLKcjs.PackageClassicIcon, { className: "h-4 w-4" }) };
|
|
133
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
133
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkMGEUZRNQcjs.cn.call(void 0, "inline-flex items-center gap-2 text-ods-text-primary", className), children: [
|
|
134
134
|
config.icon,
|
|
135
135
|
config.label
|
|
136
136
|
] });
|
|
@@ -147,7 +147,7 @@ var CveLink = ({ cveId, className }) => {
|
|
|
147
147
|
href: nistUrl,
|
|
148
148
|
target: "_blank",
|
|
149
149
|
rel: "noopener noreferrer",
|
|
150
|
-
className:
|
|
150
|
+
className: _chunkMGEUZRNQcjs.cn.call(void 0,
|
|
151
151
|
"group inline-flex items-center gap-2 text-ods-text-primary transition-colors text-code hover:text-ods-accent",
|
|
152
152
|
className
|
|
153
153
|
),
|
|
@@ -169,31 +169,31 @@ CveLink.displayName = "CveLink";
|
|
|
169
169
|
// src/components/platform/ShellTypeBadge.tsx
|
|
170
170
|
|
|
171
171
|
var shellIconMap = {
|
|
172
|
-
[
|
|
172
|
+
[_chunk62TMGBROcjs.ShellTypeValues.POWERSHELL]: {
|
|
173
173
|
icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon,
|
|
174
174
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
175
175
|
},
|
|
176
|
-
[
|
|
176
|
+
[_chunk62TMGBROcjs.ShellTypeValues.CMD]: {
|
|
177
177
|
icon: _chunkUXUYT4WKcjs.CmdIcon,
|
|
178
178
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
179
179
|
},
|
|
180
|
-
[
|
|
180
|
+
[_chunk62TMGBROcjs.ShellTypeValues.BASH]: {
|
|
181
181
|
icon: _chunk5OG5ZTNMcjs.BashIcon,
|
|
182
182
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
183
183
|
},
|
|
184
|
-
[
|
|
184
|
+
[_chunk62TMGBROcjs.ShellTypeValues.PYTHON]: {
|
|
185
185
|
icon: _chunkBF77UKGDcjs.PythonLogoIcon,
|
|
186
186
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
187
187
|
},
|
|
188
|
-
[
|
|
188
|
+
[_chunk62TMGBROcjs.ShellTypeValues.NUSHELL]: {
|
|
189
189
|
icon: _chunkG37H4CBTcjs.NushellIcon,
|
|
190
190
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
191
191
|
},
|
|
192
|
-
[
|
|
192
|
+
[_chunk62TMGBROcjs.ShellTypeValues.DENO]: {
|
|
193
193
|
icon: _chunkHUL6SF5Acjs.DenoIcon,
|
|
194
194
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
195
195
|
},
|
|
196
|
-
[
|
|
196
|
+
[_chunk62TMGBROcjs.ShellTypeValues.SHELL]: {
|
|
197
197
|
icon: _chunk6RMATQNNcjs.ShellIcon,
|
|
198
198
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
199
199
|
}
|
|
@@ -204,11 +204,11 @@ var defaultIconConfig = {
|
|
|
204
204
|
};
|
|
205
205
|
var ShellTypeBadge = ({ shellType, className, iconClassName }) => {
|
|
206
206
|
const normalizedType = _optionalChain([shellType, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]);
|
|
207
|
-
const label =
|
|
207
|
+
const label = _chunk62TMGBROcjs.getShellLabel.call(void 0, normalizedType);
|
|
208
208
|
const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
|
|
209
209
|
const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
|
|
210
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
211
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { size: 16, className:
|
|
210
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkMGEUZRNQcjs.cn.call(void 0, "flex items-center gap-1", className), children: [
|
|
211
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { size: 16, className: _chunkMGEUZRNQcjs.cn.call(void 0, defaultIconClassName, iconClassName) }),
|
|
212
212
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary text-h4", children: label })
|
|
213
213
|
] });
|
|
214
214
|
};
|
|
@@ -220,11 +220,11 @@ function formatSupportedPlatforms(platforms) {
|
|
|
220
220
|
if (!platforms || platforms.length === 0) {
|
|
221
221
|
return "All Platforms";
|
|
222
222
|
}
|
|
223
|
-
return platforms.map((platform) =>
|
|
223
|
+
return platforms.map((platform) => _chunk62TMGBROcjs.getOSLabel.call(void 0, platform)).join(", ");
|
|
224
224
|
}
|
|
225
225
|
function InfoCell({ label, value, avatar, className }) {
|
|
226
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
227
|
-
avatar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative size-8 shrink-0 overflow-hidden rounded-full border border-ods-border bg-ods-bg", children: avatar.photoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
226
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkMGEUZRNQcjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
|
|
227
|
+
avatar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative size-8 shrink-0 overflow-hidden rounded-full border border-ods-border bg-ods-bg", children: avatar.photoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5WMRVMXHcjs.next_image_default, { src: avatar.photoUrl, alt: avatar.name, className: "object-cover", fill: true, sizes: "32px", unoptimized: true }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex size-full items-center justify-center text-ods-text-secondary text-h6", children: avatar.initials || _chunkZJS45HQZcjs.nameInitials.call(void 0, avatar.name) }) }),
|
|
228
228
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col", children: [
|
|
229
229
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", title: value, children: value }),
|
|
230
230
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: label })
|
|
@@ -240,9 +240,9 @@ var ScriptInfoSection = ({
|
|
|
240
240
|
author,
|
|
241
241
|
className
|
|
242
242
|
}) => {
|
|
243
|
-
const shellLabel =
|
|
243
|
+
const shellLabel = _chunk62TMGBROcjs.getShellLabel.call(void 0, shellType);
|
|
244
244
|
const platformsLabel = formatSupportedPlatforms(supportedPlatforms);
|
|
245
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
245
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkMGEUZRNQcjs.cn.call(void 0, "overflow-hidden rounded-[6px] border border-ods-border bg-ods-card", className), children: [
|
|
246
246
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-b border-ods-border p-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-1", children: [
|
|
247
247
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-ods-text-primary text-h4", children: headline }),
|
|
248
248
|
subheadline && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "break-words text-ods-text-secondary text-h6", children: subheadline })
|
|
@@ -288,10 +288,10 @@ function OnboardingStepCard({
|
|
|
288
288
|
onSkip();
|
|
289
289
|
};
|
|
290
290
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
291
|
-
|
|
291
|
+
_chunk5XAWVXNIcjs.InteractiveCard,
|
|
292
292
|
{
|
|
293
293
|
clickable: false,
|
|
294
|
-
className:
|
|
294
|
+
className: _chunkMGEUZRNQcjs.cn.call(void 0,
|
|
295
295
|
"rounded-[6px] border border-ods-border bg-ods-card",
|
|
296
296
|
"flex flex-col md:flex-row",
|
|
297
297
|
"min-h-[80px] md:h-[80px]",
|
|
@@ -311,12 +311,12 @@ function OnboardingStepCard({
|
|
|
311
311
|
className: "flex w-full shrink-0 items-center justify-start gap-2 md:w-auto md:justify-end",
|
|
312
312
|
onClick: (e) => e.stopPropagation(),
|
|
313
313
|
children: isCheckingCompletion ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
314
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
315
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
314
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNNNRN4OFcjs.UnifiedSkeleton, { className: "h-[32px] w-[100px] rounded-[6px]" }),
|
|
315
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNNNRN4OFcjs.UnifiedSkeleton, { className: "h-[32px] w-[120px] rounded-[6px]" })
|
|
316
316
|
] }) : isCompleted ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
317
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
317
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkODDUGLYFcjs.StatusBadge, { text: "COMPLETED", variant: "card", colorScheme: "success" }),
|
|
318
318
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
319
|
-
|
|
319
|
+
_chunkFLS6DZENcjs.Button,
|
|
320
320
|
{
|
|
321
321
|
variant: "outline",
|
|
322
322
|
onClick: handleAction,
|
|
@@ -325,9 +325,9 @@ function OnboardingStepCard({
|
|
|
325
325
|
children: step.completedText
|
|
326
326
|
}
|
|
327
327
|
)
|
|
328
|
-
] }) : isSkipped ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
329
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
330
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
328
|
+
] }) : isSkipped ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkODDUGLYFcjs.StatusBadge, { text: "SKIPPED", variant: "card", colorScheme: "default" }) }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
329
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { variant: "outline", onClick: handleSkip, children: "Skip Step" }),
|
|
330
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { variant: "accent", onClick: handleAction, disabled: isProcessing, leftIcon: step.actionIcon("black"), children: step.actionText })
|
|
331
331
|
] })
|
|
332
332
|
}
|
|
333
333
|
)
|
|
@@ -350,7 +350,7 @@ function OnboardingWalkthrough({
|
|
|
350
350
|
completionStatus,
|
|
351
351
|
isLoadingCompletion: loadingCompletionGiven = false
|
|
352
352
|
}) {
|
|
353
|
-
const isLoadingCompletion =
|
|
353
|
+
const isLoadingCompletion = _chunkMGEUZRNQcjs.useLoadingScope.call(void 0, ) || loadingCompletionGiven;
|
|
354
354
|
const {
|
|
355
355
|
state,
|
|
356
356
|
markComplete,
|
|
@@ -361,7 +361,7 @@ function OnboardingWalkthrough({
|
|
|
361
361
|
isStepSkipped,
|
|
362
362
|
allStepsComplete,
|
|
363
363
|
markMultipleComplete
|
|
364
|
-
} =
|
|
364
|
+
} = _chunkCBKXU77Hcjs.useOnboardingState.call(void 0, storageKey);
|
|
365
365
|
const hasAutoMarkedRef = _react.useRef.call(void 0, false);
|
|
366
366
|
const autoMarkingInProgressRef = _react.useRef.call(void 0, false);
|
|
367
367
|
const lastCompletionStatusRef = _react.useRef.call(void 0, null);
|
|
@@ -441,12 +441,12 @@ function OnboardingWalkthrough({
|
|
|
441
441
|
return renderDismissed ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: renderDismissed(resetOnboarding) }) : null;
|
|
442
442
|
}
|
|
443
443
|
const isAllComplete = allStepsComplete(steps);
|
|
444
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
444
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkMGEUZRNQcjs.cn.call(void 0, "w-full space-y-4", className), children: [
|
|
445
445
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-start justify-between gap-3 md:flex-row md:items-center md:gap-0", children: [
|
|
446
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
447
|
-
isLoadingCompletion ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
446
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunk5XAWVXNIcjs.SECTION_HEADING_CLASS, children: _chunk5XAWVXNIcjs.accentSentenceMarks.call(void 0, title) }),
|
|
447
|
+
isLoadingCompletion ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNNNRN4OFcjs.UnifiedSkeleton, { className: "h-[48px] w-full rounded-[6px] md:w-[160px]" }) : isAllComplete ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { variant: "accent", onClick: handleDismiss, className: "w-full md:w-auto", children: "Close Onboarding" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { variant: "outline", onClick: handleDismiss, className: "w-full md:w-auto", children: "Skip Onboarding" })
|
|
448
448
|
] }),
|
|
449
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
449
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkMGEUZRNQcjs.cn.call(void 0, spacing), children: steps.map((step) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
450
450
|
OnboardingStepCard,
|
|
451
451
|
{
|
|
452
452
|
step,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk5XAWVXNIcjs = require('./chunk-5XAWVXNI.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkNNNRN4OFcjs = require('./chunk-NNNRN4OF.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkFLS6DZENcjs = require('./chunk-FLS6DZEN.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkMGEUZRNQcjs = require('./chunk-MGEUZRNQ.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -35,7 +35,7 @@ function PaginationControl({
|
|
|
35
35
|
const ariaCurrent = current ? "page" : void 0;
|
|
36
36
|
if (!getPageHref || disabled) {
|
|
37
37
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38
|
-
|
|
38
|
+
_chunkFLS6DZENcjs.Button,
|
|
39
39
|
{
|
|
40
40
|
variant,
|
|
41
41
|
size: "icon",
|
|
@@ -49,11 +49,11 @@ function PaginationControl({
|
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
51
|
const handleClick = (event) => {
|
|
52
|
-
if (
|
|
52
|
+
if (_chunk5XAWVXNIcjs.isModifierClick.call(void 0, event)) return;
|
|
53
53
|
event.preventDefault();
|
|
54
54
|
onPageChange(page);
|
|
55
55
|
};
|
|
56
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
56
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { variant, size: "icon", className, asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
57
57
|
_chunkV45KLJQPcjs.next_link_default,
|
|
58
58
|
{
|
|
59
59
|
href: getPageHref(page),
|
|
@@ -99,7 +99,7 @@ var PAGINATION_NAV_CLASS = "mx-auto flex w-full justify-center";
|
|
|
99
99
|
var PAGINATION_LIST_CLASS = "flex flex-row items-center gap-1";
|
|
100
100
|
var PAGINATION_SKELETON_TOTAL_PAGES = 10;
|
|
101
101
|
var Pagination = ({ currentPage, totalPages, onPageChange, className, getPageHref, loading }) => {
|
|
102
|
-
if (
|
|
102
|
+
if (_chunkMGEUZRNQcjs.useLoadingScope.call(void 0, ) || loading) {
|
|
103
103
|
const known = totalPages > 1;
|
|
104
104
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
105
105
|
PaginationSkeleton,
|
|
@@ -111,7 +111,7 @@ var Pagination = ({ currentPage, totalPages, onPageChange, className, getPageHre
|
|
|
111
111
|
);
|
|
112
112
|
}
|
|
113
113
|
const pageNumbers = paginationSlots(currentPage, totalPages);
|
|
114
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { role: "navigation", "aria-label": "pagination", className:
|
|
114
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { role: "navigation", "aria-label": "pagination", className: _chunkMGEUZRNQcjs.cn.call(void 0, PAGINATION_NAV_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "ul", { className: PAGINATION_LIST_CLASS, children: [
|
|
115
115
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
116
116
|
PaginationControl,
|
|
117
117
|
{
|
|
@@ -168,25 +168,25 @@ function PaginationSkeleton({
|
|
|
168
168
|
currentPage = 1,
|
|
169
169
|
className
|
|
170
170
|
}) {
|
|
171
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
172
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
173
|
-
paginationSlots(currentPage, Math.max(totalPages, 1)).map((page, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: page < 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PaginationEllipsisSlot, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
174
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
171
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkMGEUZRNQcjs.cn.call(void 0, PAGINATION_NAV_CLASS, className), "aria-hidden": true, inert: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "ul", { className: PAGINATION_LIST_CLASS, children: [
|
|
172
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNNNRN4OFcjs.InteractiveSkeleton.Button, { className: NEIGHBOUR_CLASS }) }),
|
|
173
|
+
paginationSlots(currentPage, Math.max(totalPages, 1)).map((page, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: page < 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PaginationEllipsisSlot, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNNNRN4OFcjs.InteractiveSkeleton.Button, { className: PAGE_CLASS }) }, page < 0 ? `ellipsis-${index}` : page)),
|
|
174
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNNNRN4OFcjs.InteractiveSkeleton.Button, { className: NEIGHBOUR_CLASS }) })
|
|
175
175
|
] }) });
|
|
176
176
|
}
|
|
177
177
|
var PaginationContent = _react.forwardRef.call(void 0,
|
|
178
178
|
({ className, ...props }, ref) => {
|
|
179
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { ref, className:
|
|
179
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { ref, className: _chunkMGEUZRNQcjs.cn.call(void 0, "flex items-center justify-center", className), ...props });
|
|
180
180
|
}
|
|
181
181
|
);
|
|
182
182
|
PaginationContent.displayName = "PaginationContent";
|
|
183
183
|
var PaginationItem = _react.forwardRef.call(void 0, ({ className, ...props }, ref) => {
|
|
184
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { ref, className:
|
|
184
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { ref, className: _chunkMGEUZRNQcjs.cn.call(void 0, "", className), ...props });
|
|
185
185
|
});
|
|
186
186
|
PaginationItem.displayName = "PaginationItem";
|
|
187
187
|
var PaginationLink = _react.forwardRef.call(void 0,
|
|
188
188
|
({ className, ...props }, ref) => {
|
|
189
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
189
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { variant: "outline", size: "icon", ref, className, ...props });
|
|
190
190
|
}
|
|
191
191
|
);
|
|
192
192
|
PaginationLink.displayName = "PaginationLink";
|
|
@@ -196,7 +196,7 @@ var PaginationEllipsis = _react.forwardRef.call(void 0,
|
|
|
196
196
|
"span",
|
|
197
197
|
{
|
|
198
198
|
ref,
|
|
199
|
-
className:
|
|
199
|
+
className: _chunkMGEUZRNQcjs.cn.call(void 0, "flex h-10 w-10 items-center justify-center text-muted-foreground", className),
|
|
200
200
|
...props,
|
|
201
201
|
children: [
|
|
202
202
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.MoreHorizontal, { className: "h-4 w-4" }),
|
|
@@ -209,7 +209,7 @@ var PaginationEllipsis = _react.forwardRef.call(void 0,
|
|
|
209
209
|
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
210
210
|
var PaginationPrevious = _react.forwardRef.call(void 0,
|
|
211
211
|
({ className, ...props }, ref) => {
|
|
212
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
212
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFLS6DZENcjs.Button, { ref, variant: "outline", size: "icon", className: _chunkMGEUZRNQcjs.cn.call(void 0, "h-10 w-10", className), ...props, children: [
|
|
213
213
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" }),
|
|
214
214
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: "Previous page" })
|
|
215
215
|
] });
|
|
@@ -218,7 +218,7 @@ var PaginationPrevious = _react.forwardRef.call(void 0,
|
|
|
218
218
|
PaginationPrevious.displayName = "PaginationPrevious";
|
|
219
219
|
var PaginationNext = _react.forwardRef.call(void 0,
|
|
220
220
|
({ className, ...props }, ref) => {
|
|
221
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
221
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFLS6DZENcjs.Button, { ref, variant: "outline", size: "icon", className: _chunkMGEUZRNQcjs.cn.call(void 0, "h-10 w-10", className), ...props, children: [
|
|
222
222
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" }),
|
|
223
223
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: "Next page" })
|
|
224
224
|
] });
|