@flamingo-stack/openframe-frontend-core 0.0.784 → 0.0.786
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-236RTB5D.cjs +23 -0
- package/dist/{chunk-4LQKUZQL.cjs → chunk-2JDK4FWV.cjs} +209 -209
- package/dist/{chunk-KVPHCBQV.cjs → chunk-2PMLX52X.cjs} +46 -46
- package/dist/{chunk-CBKXU77H.cjs → chunk-2U4H74KS.cjs} +45 -45
- package/dist/{chunk-GI5QCHOV.cjs → chunk-3ITHC2Y4.cjs} +6 -6
- package/dist/{chunk-ODDUGLYF.cjs → chunk-3SENOTWT.cjs} +110 -110
- package/dist/{chunk-5WMRVMXH.cjs → chunk-4ZHLORL3.cjs} +5 -5
- package/dist/{chunk-XVFESSEB.cjs → chunk-55KZW2P2.cjs} +31 -31
- package/dist/{chunk-4MQASMIU.cjs → chunk-5CAQZRVN.cjs} +7 -7
- package/dist/{chunk-GTYVI4QR.cjs → chunk-5PVYYZEK.cjs} +37 -37
- package/dist/{chunk-UPQMFK5B.cjs → chunk-5Z77NJZF.cjs} +7 -7
- package/dist/{chunk-JYLECAIR.cjs → chunk-7FCOQCAK.cjs} +61 -61
- package/dist/{chunk-EFCWHAYC.cjs → chunk-7QK4R7UU.cjs} +8 -8
- package/dist/{chunk-YXZOP726.cjs → chunk-7W3NVU4V.cjs} +10 -10
- package/dist/{chunk-MKF6XX5A.cjs → chunk-BP7GLDRJ.cjs} +63 -63
- package/dist/{chunk-NZJ5WW2D.cjs → chunk-BQDO7PU7.cjs} +51 -51
- package/dist/{chunk-FQE5MGRD.cjs → chunk-DGUZUOWN.cjs} +42 -42
- package/dist/{chunk-A3UZFFR3.cjs → chunk-DNB5DELQ.cjs} +3 -3
- package/dist/{chunk-V5PJQ4C2.cjs → chunk-EIXFIGLX.cjs} +13 -13
- package/dist/{chunk-5XAWVXNI.cjs → chunk-EOZ23WOY.cjs} +320 -320
- package/dist/{chunk-WMXNSSJZ.cjs → chunk-EQKMFQ5J.cjs} +535 -535
- package/dist/{chunk-L33AEGH4.cjs → chunk-FDPAD7GS.cjs} +44 -44
- package/dist/{chunk-N5TPRCSS.cjs → chunk-FFW3IY5E.cjs} +60 -60
- package/dist/{chunk-4DKPNN2A.cjs → chunk-G7COLTR6.cjs} +17 -17
- package/dist/{chunk-3INHO6GP.cjs → chunk-GX6YLDAS.cjs} +22 -22
- package/dist/{chunk-BE4OUWTA.cjs → chunk-HAAQUV3O.cjs} +54 -54
- package/dist/{chunk-4DQ4CNAG.cjs → chunk-HE6UVP6R.cjs} +10 -10
- package/dist/{chunk-FLS6DZEN.cjs → chunk-IZXVGIQX.cjs} +44 -44
- package/dist/{chunk-LUWYWYNC.cjs → chunk-J4ZNQ55O.cjs} +2 -2
- package/dist/{chunk-OMTH355I.cjs → chunk-JHY6H2XR.cjs} +3 -3
- package/dist/{chunk-WSBWP7IW.cjs → chunk-JSNLMPXN.cjs} +3 -3
- package/dist/{chunk-4T2ZBCVJ.cjs → chunk-JZUBBNTT.cjs} +110 -110
- package/dist/{chunk-ZJS45HQZ.cjs → chunk-KKD7XV5A.cjs} +29 -29
- package/dist/{chunk-ZFOMRALU.cjs → chunk-L4ORB5RP.cjs} +16 -16
- package/dist/{chunk-CZPUVFON.cjs → chunk-LCPJNG5M.cjs} +115 -115
- package/dist/{chunk-NNNRN4OF.cjs → chunk-LCSYTFFO.cjs} +14 -14
- package/dist/{chunk-N2SVJJLU.cjs → chunk-MZOODES3.cjs} +5 -5
- package/dist/{chunk-MYXC6PEG.cjs → chunk-NVWROBPF.cjs} +2014 -2014
- package/dist/{chunk-MGEUZRNQ.cjs → chunk-NWNC22IZ.cjs} +4 -3
- package/dist/{chunk-6F3IS3RD.cjs → chunk-NXUL4W7Q.cjs} +13 -13
- package/dist/{chunk-CBDSML44.cjs → chunk-OOSSOL7E.cjs} +172 -174
- package/dist/{chunk-F2FFJWOQ.cjs → chunk-PCBKE6LA.cjs} +4 -4
- package/dist/{chunk-MZQGHDTE.cjs → chunk-Q73MAT62.cjs} +3 -3
- package/dist/{chunk-DYF6XB27.cjs → chunk-QWVVXXFG.cjs} +4 -4
- package/dist/{chunk-CS5SZJFV.cjs → chunk-RU37NNZG.cjs} +2 -2
- package/dist/{chunk-EHQ2UGT4.cjs → chunk-TC2T5Q7M.cjs} +15 -15
- package/dist/{chunk-GMIXTXAO.cjs → chunk-TRV5GGOH.cjs} +61 -61
- package/dist/{chunk-FS7CBRF4.cjs → chunk-UVPV6TUI.cjs} +23 -23
- package/dist/{chunk-RT6QATX4.cjs → chunk-WLHHXAT7.cjs} +19 -19
- package/dist/{chunk-U5R4MY4F.cjs → chunk-WNKOWR3E.cjs} +4 -4
- package/dist/{chunk-XAA5LUHC.cjs → chunk-Y6KZFPZN.cjs} +12 -12
- package/dist/{chunk-STYH4ISW.cjs → chunk-YCSX7MCG.cjs} +197 -197
- package/dist/{cloud-tenants-HUFCDOSC.cjs → cloud-tenants-TJSSGC5O.cjs} +32 -32
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/case-studies/index.cjs +52 -52
- package/dist/components/chat/index.cjs +26 -26
- 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/index.cjs +32 -32
- package/dist/components/help-center-pages/index.cjs +163 -163
- package/dist/components/index.cjs +204 -204
- package/dist/components/meeting-scheduler/index.cjs +187 -187
- package/dist/components/navigation/index.cjs +35 -35
- package/dist/components/navigation/navigation-sidebar-item.js +1 -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/autocomplete.js +1 -1
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button-styles.js +4 -3
- package/dist/components/ui/date-picker.js +1 -1
- package/dist/components/ui/file-manager/index.cjs +55 -55
- package/dist/components/ui/index.cjs +32 -32
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/select.js +1 -1
- package/dist/components/ui/tag-search-input.js +1 -1
- package/dist/components/ui/textarea.js +1 -1
- package/dist/{devices-KRWVEY76.cjs → devices-RQ7OSCJZ.cjs} +33 -33
- package/dist/embed-shims/index.cjs +4 -4
- package/dist/embed-shims/next-image.cjs +4 -4
- package/dist/{embeddable-chat-AZEPJAPN.cjs → embeddable-chat-SYWOS6YZ.cjs} +115 -115
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +48 -48
- package/dist/{knowledge-Z3FM7U3W.cjs → knowledge-5QKXKQ4Q.cjs} +33 -33
- package/dist/{logs-CNJYF5CO.cjs → logs-GBKJZHMC.cjs} +41 -41
- package/dist/{policies-U32LUDZ4.cjs → policies-WAYKWIZM.cjs} +36 -36
- package/dist/{remote-session-ST6JEZML.cjs → remote-session-AXKWTU4I.cjs} +17 -17
- package/dist/{scripts-2Y6ISOOK.cjs → scripts-L46FQYCQ.cjs} +39 -39
- package/dist/{software-update-EEN7PQR3.cjs → software-update-2HMC5XIV.cjs} +36 -36
- package/dist/{tickets-board-EYKLSB36.cjs → tickets-board-SXETISNL.cjs} +17 -17
- package/dist/{video-file-player-ZU666VUY.cjs → video-file-player-XWZIO3YN.cjs} +14 -14
- package/package.json +1 -1
- package/src/components/navigation/navigation-sidebar-item.tsx +2 -3
- package/src/components/ui/autocomplete.tsx +1 -1
- package/src/components/ui/button/button-styles.ts +4 -3
- package/src/components/ui/date-picker.tsx +1 -1
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/select.tsx +1 -1
- package/src/components/ui/tag-search-input.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -1
- package/dist/case-study-card-WYZPBDDM.cjs +0 -23
|
@@ -1,11 +1,11 @@
|
|
|
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 _chunkLCSYTFFOcjs = require('./chunk-LCSYTFFO.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkNWNC22IZcjs = require('./chunk-NWNC22IZ.cjs');
|
|
9
9
|
|
|
10
10
|
// src/embed-shims/next-image.tsx
|
|
11
11
|
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
@@ -40,19 +40,19 @@ function HeldImage({ className, style, width, height, fill }) {
|
|
|
40
40
|
const boxStyle = fill ? { position: "absolute", inset: 0, width: "100%", height: "100%", ...style } : { aspectRatio: ratio, width: SIZED_BY_CLASS.test(_nullishCoalesce(className, () => ( ""))) || !(w > 0) ? void 0 : w, ...style };
|
|
41
41
|
const { width: boxWidth, height: boxHeight, ...rest } = boxStyle;
|
|
42
42
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43
|
-
|
|
43
|
+
_chunkLCSYTFFOcjs.UnifiedSkeleton,
|
|
44
44
|
{
|
|
45
45
|
as: "span",
|
|
46
46
|
variant: "rectangular",
|
|
47
47
|
width: boxWidth,
|
|
48
48
|
height: boxHeight,
|
|
49
|
-
className:
|
|
49
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, "inline-block h-auto w-auto max-w-full", className),
|
|
50
50
|
style: { ...rest, objectFit: void 0, objectPosition: void 0 }
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
53
|
}
|
|
54
54
|
var Image = _react.forwardRef.call(void 0, function NextImageShim({ optimizedWidth, ...given }, ref) {
|
|
55
|
-
const held =
|
|
55
|
+
const held = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, );
|
|
56
56
|
if (held) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeldImage, { ...given });
|
|
57
57
|
const props = optimizedWidth && resizer && typeof given.src === "string" ? { ...given, src: resizer(given.src, optimizedWidth), unoptimized: true } : given;
|
|
58
58
|
const fetchPriority = _nullishCoalesce(props.fetchPriority, () => ( (props.priority ? "high" : void 0)));
|
|
@@ -1,16 +1,16 @@
|
|
|
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 _chunk2U4H74KScjs = require('./chunk-2U4H74KS.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkYCSX7MCGcjs = require('./chunk-YCSX7MCG.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkEQKMFQ5Jcjs = require('./chunk-EQKMFQ5J.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -25,24 +25,24 @@ var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkG7COLTR6cjs = require('./chunk-G7COLTR6.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkEOZ23WOYcjs = require('./chunk-EOZ23WOY.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunk7PNRXJX2cjs = require('./chunk-7PNRXJX2.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkDNB5DELQcjs = require('./chunk-DNB5DELQ.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunkLCSYTFFOcjs = require('./chunk-LCSYTFFO.cjs');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
var
|
|
45
|
+
var _chunkNWNC22IZcjs = require('./chunk-NWNC22IZ.cjs');
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -59,7 +59,7 @@ var FAQ_ACCORDION_SKELETON_ROWS = 12;
|
|
|
59
59
|
var wrapsOnPhone = (index) => index % 2 === 0;
|
|
60
60
|
function FaqAccordion({ items, defaultOpenIds = [], loading: loadingProp, skeletonCount }) {
|
|
61
61
|
const [openSet, setOpenSet] = _react.useState.call(void 0, new Set(defaultOpenIds));
|
|
62
|
-
const loading =
|
|
62
|
+
const loading = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, ) || !!loadingProp;
|
|
63
63
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FaqAccordionSkeleton, { count: _nullishCoalesce(skeletonCount, () => ( (items.length || void 0))) });
|
|
64
64
|
const toggle = (id) => {
|
|
65
65
|
setOpenSet((prev) => {
|
|
@@ -74,8 +74,8 @@ function FaqAccordion({ items, defaultOpenIds = [], loading: loadingProp, skelet
|
|
|
74
74
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
75
75
|
"div",
|
|
76
76
|
{
|
|
77
|
-
id:
|
|
78
|
-
className:
|
|
77
|
+
id: _chunkEQKMFQ5Jcjs.faqItemAnchor.call(void 0, item.id),
|
|
78
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, ROW_FRAME_CLASS, "hover:bg-ods-bg-hover"),
|
|
79
79
|
"data-loading-item": true,
|
|
80
80
|
children: [
|
|
81
81
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -91,7 +91,7 @@ function FaqAccordion({ items, defaultOpenIds = [], loading: loadingProp, skelet
|
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
"aria-expanded": isOpen,
|
|
94
|
-
className:
|
|
94
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
95
95
|
ROW_HEADER_CLASS,
|
|
96
96
|
"cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-focus"
|
|
97
97
|
),
|
|
@@ -102,7 +102,7 @@ function FaqAccordion({ items, defaultOpenIds = [], loading: loadingProp, skelet
|
|
|
102
102
|
{
|
|
103
103
|
"aria-hidden": "true",
|
|
104
104
|
size: 24,
|
|
105
|
-
className:
|
|
105
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, CHEVRON_CLASS, "transition-transform duration-300", isOpen && "rotate-180")
|
|
106
106
|
}
|
|
107
107
|
)
|
|
108
108
|
]
|
|
@@ -126,11 +126,11 @@ function FaqAccordionSkeleton({
|
|
|
126
126
|
count = FAQ_ACCORDION_SKELETON_ROWS,
|
|
127
127
|
className
|
|
128
128
|
}) {
|
|
129
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
129
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, ACCORDION_FRAME_CLASS, className), "aria-hidden": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNWNC22IZcjs.LoadingItems, { count, children: (i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_FRAME_CLASS, "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_HEADER_CLASS, children: [
|
|
130
130
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: QUESTION_CLASS, children: wrapsOnPhone(i) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
131
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
132
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
133
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
131
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "inherit", as: "span", lines: 2, className: "w-5/6 content-md:hidden" }),
|
|
132
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "hidden w-5/6 content-md:block" })
|
|
133
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-5/6" }) }),
|
|
134
134
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSKI6NKOEcjs.Chevron02DownIcon, { "aria-hidden": "true", size: 24, className: CHEVRON_CLASS })
|
|
135
135
|
] }) }) }) });
|
|
136
136
|
}
|
|
@@ -140,14 +140,14 @@ function FaqAccordionSkeleton({
|
|
|
140
140
|
|
|
141
141
|
var PICK_ROOT_MARGIN = "600px";
|
|
142
142
|
function faqAskCardShown(assistant) {
|
|
143
|
-
return
|
|
143
|
+
return _chunkYCSX7MCGcjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
144
144
|
}
|
|
145
145
|
function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
|
|
146
146
|
const { ref, inView } = _chunkOJZBZH56cjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
147
147
|
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
148
148
|
if (inView && !reached) setReached(true);
|
|
149
149
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
150
|
-
|
|
150
|
+
_chunkYCSX7MCGcjs.AssistantAskPrompts,
|
|
151
151
|
{
|
|
152
152
|
variant: "card",
|
|
153
153
|
topic,
|
|
@@ -207,7 +207,7 @@ var CATEGORY_NAV_SKELETON_LINE_CLASS = "flex min-w-0 flex-nowrap gap-2 overflow-
|
|
|
207
207
|
var FAQ_NAV_SKELETON_PILLS = 8;
|
|
208
208
|
var CATEGORY_PILL_CLASS = "rounded-full border px-4 py-2 transition-colors text-h6";
|
|
209
209
|
var CATEGORY_SECTION_CLASS = "scroll-mt-24";
|
|
210
|
-
var CATEGORY_HEADING_CLASS =
|
|
210
|
+
var CATEGORY_HEADING_CLASS = _chunkNWNC22IZcjs.cn.call(void 0, _chunkEOZ23WOYcjs.SECTION_HEADING_CLASS, "pb-4");
|
|
211
211
|
var FAQ_SECTION_SKELETON_QUESTIONS = FAQ_ACCORDION_SKELETON_ROWS;
|
|
212
212
|
function FaqLayout({
|
|
213
213
|
heading,
|
|
@@ -233,7 +233,7 @@ function FaqLayout({
|
|
|
233
233
|
] });
|
|
234
234
|
}
|
|
235
235
|
function faqHeadingNode(heading, showTopic, topic) {
|
|
236
|
-
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
236
|
+
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunkEOZ23WOYcjs.SECTION_HEADING_CLASS, children: DEFAULT_HEADING_TEXT }) : heading;
|
|
237
237
|
if (!(showTopic && topic)) return titleNode;
|
|
238
238
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TOPIC_STACK_CLASS, children: [
|
|
239
239
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: titleNode }),
|
|
@@ -247,7 +247,7 @@ function pageFaqProps(faq) {
|
|
|
247
247
|
}
|
|
248
248
|
function buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl = "", topic) {
|
|
249
249
|
const entityScoped = !!entityType && entityId !== void 0 && entityId !== null && entityId !== "";
|
|
250
|
-
return
|
|
250
|
+
return _chunkG7COLTR6cjs.buildSuggestionUrl.call(void 0, "/api/faqs", {
|
|
251
251
|
apiBaseUrl,
|
|
252
252
|
entityType,
|
|
253
253
|
entityId,
|
|
@@ -268,7 +268,7 @@ function groupFaqsBySection(faqs) {
|
|
|
268
268
|
}
|
|
269
269
|
let group = byName.get(name);
|
|
270
270
|
if (!group) {
|
|
271
|
-
group = { section: name, slug:
|
|
271
|
+
group = { section: name, slug: _chunkEQKMFQ5Jcjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
272
272
|
byName.set(name, group);
|
|
273
273
|
}
|
|
274
274
|
group.items.push(item);
|
|
@@ -324,7 +324,7 @@ function GroupedFaqList({
|
|
|
324
324
|
}, [slugKey]);
|
|
325
325
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
326
326
|
_react.useEffect.call(void 0, () => {
|
|
327
|
-
const refresh = () => setHashTarget(
|
|
327
|
+
const refresh = () => setHashTarget(_chunkEQKMFQ5Jcjs.parseFaqHash.call(void 0, window.location.hash));
|
|
328
328
|
refresh();
|
|
329
329
|
window.addEventListener("hashchange", refresh);
|
|
330
330
|
return () => window.removeEventListener("hashchange", refresh);
|
|
@@ -341,7 +341,7 @@ function GroupedFaqList({
|
|
|
341
341
|
}, [groups, hashTarget]);
|
|
342
342
|
const accordionKeySuffix = _optionalChain([hashTarget, 'optionalAccess', _7 => _7.kind]) === "item" ? `item:${hashTarget.rawId}` : "default";
|
|
343
343
|
const scrollDep = `${groups.length}|` + (_optionalChain([hashTarget, 'optionalAccess', _8 => _8.kind]) === "item" ? `item:${hashTarget.rawId}` : _optionalChain([hashTarget, 'optionalAccess', _9 => _9.kind]) === "section" ? `section:${hashTarget.slug}` : "none");
|
|
344
|
-
|
|
344
|
+
_chunk2U4H74KScjs.useScrollToHash.call(void 0, scrollDep, { headerOffset: _chunkOJZBZH56cjs.STICKY_HEADER_OFFSET_PX });
|
|
345
345
|
const [pillSyncedHash, setPillSyncedHash] = _react.useState.call(void 0, hashTarget);
|
|
346
346
|
if (pillSyncedHash !== hashTarget) {
|
|
347
347
|
setPillSyncedHash(hashTarget);
|
|
@@ -363,7 +363,7 @@ function GroupedFaqList({
|
|
|
363
363
|
href: `#${group.slug}`,
|
|
364
364
|
"aria-current": isActive ? "true" : void 0,
|
|
365
365
|
onClick: (e) => handleJump(e, group.slug),
|
|
366
|
-
className:
|
|
366
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
367
367
|
CATEGORY_PILL_CLASS,
|
|
368
368
|
isActive ? "border-ods-text-primary bg-ods-card text-ods-text-primary" : "border-ods-border bg-ods-card text-ods-text-secondary hover:border-ods-text-secondary hover:text-ods-text-primary"
|
|
369
369
|
),
|
|
@@ -417,7 +417,7 @@ function FaqSection({
|
|
|
417
417
|
skeletonNav = false
|
|
418
418
|
}) {
|
|
419
419
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
420
|
-
const inScope =
|
|
420
|
+
const inScope = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, );
|
|
421
421
|
const askTopic = ask === false ? void 0 : _optionalChain([ask, 'optionalAccess', _13 => _13.topic]) || topic || entityType;
|
|
422
422
|
const aside = _nullishCoalesce(asideProp, () => ( (ask !== false && askTopic && faqAskCardShown(assistant) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FaqAskCard, { ...ask, topic: askTopic }) : void 0)));
|
|
423
423
|
const url = buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl, topic);
|
|
@@ -425,7 +425,7 @@ function FaqSection({
|
|
|
425
425
|
() => initialFaqs ? { faqs: initialFaqs } : void 0,
|
|
426
426
|
[initialFaqs]
|
|
427
427
|
);
|
|
428
|
-
const { data, dataUrl, isLoading, error } =
|
|
428
|
+
const { data, dataUrl, isLoading, error } = _chunkG7COLTR6cjs.useSelfFetch.call(void 0, inScope ? null : url, { initialData });
|
|
429
429
|
const held = dataUrl === url ? _optionalChain([data, 'optionalAccess', _14 => _14.faqs]) : void 0;
|
|
430
430
|
const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(held, () => ( [])), [held]);
|
|
431
431
|
const groups = _react.useMemo.call(void 0, () => faqs.length > 0 ? groupFaqsBySection(faqs) : [], [faqs]);
|
|
@@ -486,13 +486,13 @@ function FaqSectionSkeleton({
|
|
|
486
486
|
const CategoryHeading = heading === null ? "h2" : "h3";
|
|
487
487
|
const groups = shape.length > 0 ? shape : DEFAULT_SKELETON_SHAPE;
|
|
488
488
|
const named = groups.filter((group) => group.heading).length;
|
|
489
|
-
const pills = (count) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
489
|
+
const pills = (count) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNWNC22IZcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkNWNC22IZcjs.cn.call(void 0, CATEGORY_PILL_CLASS, "shrink-0 border-ods-border bg-ods-card"), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-24" }) }) });
|
|
490
490
|
const nav = navRow ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CATEGORY_NAV_SKELETON_LINE_CLASS, "aria-hidden": true, children: pills(FAQ_NAV_SKELETON_PILLS) }) : named > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CATEGORY_NAV_CLASS, "aria-hidden": true, children: pills(named) }) : void 0;
|
|
491
491
|
const questions = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: QUESTIONS_STACK_CLASS, children: groups.map((group, index) => {
|
|
492
492
|
return (
|
|
493
493
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton groups never reorder
|
|
494
494
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { className: CATEGORY_SECTION_CLASS, "data-loading-item": true, children: [
|
|
495
|
-
group.heading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategoryHeading, { className: CATEGORY_HEADING_CLASS, "data-loading-optional": navRow ? void 0 : true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
495
|
+
group.heading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategoryHeading, { className: CATEGORY_HEADING_CLASS, "data-loading-optional": navRow ? void 0 : true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/3" }) }),
|
|
496
496
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
497
497
|
FaqAccordion,
|
|
498
498
|
{
|
|
@@ -504,7 +504,7 @@ function FaqSectionSkeleton({
|
|
|
504
504
|
] }, index)
|
|
505
505
|
);
|
|
506
506
|
}) });
|
|
507
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
507
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDNB5DELQcjs.LoadingRegion, { label: "Loading questions", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { id, "data-faq-topic": topic, className: _nullishCoalesce(className, () => ( SECTION_DEFAULT_CLASS)), children: [
|
|
508
508
|
!aside && headingNode,
|
|
509
509
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
510
510
|
FaqLayout,
|
|
@@ -7,10 +7,10 @@ var _chunkS5C3OZCOcjs = require('./chunk-S5C3OZCO.cjs');
|
|
|
7
7
|
var _chunk4IYNDV3Gcjs = require('./chunk-4IYNDV3G.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkIZXVGIQXcjs = require('./chunk-IZXVGIQX.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkNWNC22IZcjs = require('./chunk-NWNC22IZ.cjs');
|
|
14
14
|
|
|
15
15
|
// src/components/features/video-center-badge.tsx
|
|
16
16
|
var _jsxruntime = require('react/jsx-runtime');
|
|
@@ -27,7 +27,7 @@ function VideoPlayBadge({ size = "md", className }) {
|
|
|
27
27
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28
28
|
"div",
|
|
29
29
|
{
|
|
30
|
-
className:
|
|
30
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
31
31
|
"pointer-events-none flex items-center justify-center text-ods-text-primary transition-colors",
|
|
32
32
|
// Accent on card hover. These glyphs are pointer-events-none by design,
|
|
33
33
|
// so they can never resolve their own :hover — they key off the host
|
|
@@ -47,7 +47,7 @@ function CardHoverPlay({ size = "md", className }) {
|
|
|
47
47
|
"span",
|
|
48
48
|
{
|
|
49
49
|
"aria-hidden": "true",
|
|
50
|
-
className:
|
|
50
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
51
51
|
"pointer-events-none absolute inset-0 flex items-center justify-center opacity-0 transition-opacity duration-200",
|
|
52
52
|
"group-focus-within:opacity-100 group-hover:opacity-100",
|
|
53
53
|
className
|
|
@@ -62,7 +62,7 @@ function VideoUnmuteGlyph({ size = "md", className }) {
|
|
|
62
62
|
{
|
|
63
63
|
size: SIZES[size],
|
|
64
64
|
color: "currentColor",
|
|
65
|
-
className:
|
|
65
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, "transition-colors group-hover/card:text-ods-accent", className),
|
|
66
66
|
style: { filter: GLYPH_SHADOW }
|
|
67
67
|
}
|
|
68
68
|
);
|
|
@@ -111,9 +111,9 @@ function VideoErrorOverlay({
|
|
|
111
111
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "absolute inset-0 z-10 flex flex-col items-center justify-center gap-[var(--spacing-system-sf)] bg-ods-overlay p-[var(--spacing-system-lf)] text-center", children: [
|
|
112
112
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "This video failed to play." }),
|
|
113
113
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-sf)]", children: [
|
|
114
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
114
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "outline", size: "small", onClick: onRetry, children: "Try again" }),
|
|
115
115
|
watchOnYouTubeId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
116
|
-
|
|
116
|
+
_chunkIZXVGIQXcjs.Button,
|
|
117
117
|
{
|
|
118
118
|
variant: "transparent",
|
|
119
119
|
size: "small",
|
|
@@ -1,10 +1,10 @@
|
|
|
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 _chunkYCSX7MCGcjs = require('./chunk-YCSX7MCG.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkTRV5GGOHcjs = require('./chunk-TRV5GGOH.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -18,15 +18,15 @@ var _chunkOJZBZH56cjs = require('./chunk-OJZBZH56.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkLCSYTFFOcjs = require('./chunk-LCSYTFFO.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkIZXVGIQXcjs = require('./chunk-IZXVGIQX.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkNWNC22IZcjs = require('./chunk-NWNC22IZ.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -41,14 +41,14 @@ var HORIZONTAL_NAV_CLASS = "flex items-stretch gap-6 bg-ods-bg";
|
|
|
41
41
|
var HORIZONTAL_BRAND_CLASS = "hidden shrink-0 items-center gap-2.5 border-r border-ods-border pr-6 text-ods-text-primary text-h4 content-lg:flex";
|
|
42
42
|
var HORIZONTAL_ROW_CLASS = "flex h-full items-center gap-1 [scrollbar-width:none] content-lg:items-stretch";
|
|
43
43
|
var HORIZONTAL_ACTION_CLASS = "hidden shrink-0 items-center content-lg:flex";
|
|
44
|
-
var PILL_CLASS =
|
|
44
|
+
var PILL_CLASS = _chunkNWNC22IZcjs.cn.call(void 0,
|
|
45
45
|
"flex shrink-0 items-center whitespace-nowrap rounded-full border px-3 py-1.5 text-h6",
|
|
46
46
|
"content-lg:rounded-none content-lg:border-x-0 content-lg:border-b-2 content-lg:border-t-0 content-lg:py-0"
|
|
47
47
|
);
|
|
48
48
|
var VERTICAL_NAV_CLASS = "relative bg-ods-bg";
|
|
49
49
|
var VERTICAL_ROW_CLASS = "relative flex h-10 w-full items-stretch transition-all duration-200";
|
|
50
50
|
var VERTICAL_BUTTON_LAYOUT_CLASS = "flex-1 justify-start";
|
|
51
|
-
var VERTICAL_BUTTON_SKELETON_CLASS =
|
|
51
|
+
var VERTICAL_BUTTON_SKELETON_CLASS = _chunkNWNC22IZcjs.cn.call(void 0, _chunkNWNC22IZcjs.BUTTON_KIND_CLASS.tab, VERTICAL_BUTTON_LAYOUT_CLASS);
|
|
52
52
|
function HorizontalSectionNav({
|
|
53
53
|
sections,
|
|
54
54
|
activeSection,
|
|
@@ -73,10 +73,10 @@ function HorizontalSectionNav({
|
|
|
73
73
|
{
|
|
74
74
|
ref: navRef,
|
|
75
75
|
"aria-label": label,
|
|
76
|
-
className:
|
|
76
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, HORIZONTAL_NAV_CLASS, STICKY_SECTION_NAV_HEIGHT_CLASS, className),
|
|
77
77
|
children: [
|
|
78
78
|
brand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: HORIZONTAL_BRAND_CLASS, children: brand }),
|
|
79
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
79
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTRV5GGOHcjs.ScrollShadow, { axis: "horizontal", className: "min-w-0 flex-1", scrollClassName: HORIZONTAL_ROW_CLASS, children: sections.map((section) => {
|
|
80
80
|
const active = activeSection === section.id;
|
|
81
81
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
82
82
|
_chunkV45KLJQPcjs.next_link_default,
|
|
@@ -88,7 +88,7 @@ function HorizontalSectionNav({
|
|
|
88
88
|
event.preventDefault();
|
|
89
89
|
onSectionClick(section.id);
|
|
90
90
|
},
|
|
91
|
-
className:
|
|
91
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
92
92
|
PILL_CLASS,
|
|
93
93
|
"transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-accent",
|
|
94
94
|
active ? "border-ods-border bg-ods-card text-ods-text-primary content-lg:border-ods-accent content-lg:bg-transparent content-lg:bg-gradient-to-b content-lg:from-transparent content-lg:to-ods-accent/10" : "border-transparent text-ods-text-secondary hover:text-ods-text-primary content-lg:hover:bg-ods-bg-hover"
|
|
@@ -115,7 +115,7 @@ function StickySectionNav({
|
|
|
115
115
|
action,
|
|
116
116
|
label
|
|
117
117
|
}) {
|
|
118
|
-
if (
|
|
118
|
+
if (_chunkNWNC22IZcjs.useLoadingScope.call(void 0, ) && sections.length === 0) {
|
|
119
119
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
120
120
|
StickySectionNavSkeleton,
|
|
121
121
|
{
|
|
@@ -142,7 +142,7 @@ function StickySectionNav({
|
|
|
142
142
|
);
|
|
143
143
|
}
|
|
144
144
|
const navHeight = sections.length * 40;
|
|
145
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "nav", { "aria-label": label, className:
|
|
145
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "nav", { "aria-label": label, className: _chunkNWNC22IZcjs.cn.call(void 0, VERTICAL_NAV_CLASS, className), children: [
|
|
146
146
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
147
147
|
"div",
|
|
148
148
|
{
|
|
@@ -171,7 +171,7 @@ function StickySectionNav({
|
|
|
171
171
|
}
|
|
172
172
|
),
|
|
173
173
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
174
|
-
|
|
174
|
+
_chunkIZXVGIQXcjs.Button,
|
|
175
175
|
{
|
|
176
176
|
variant: "tab",
|
|
177
177
|
onClick: () => onSectionClick(section.id),
|
|
@@ -195,16 +195,16 @@ function StickySectionNavSkeleton({
|
|
|
195
195
|
}) {
|
|
196
196
|
const widths = Array.from({ length: count }, (_, i) => SKELETON_LABEL_WIDTHS[i % SKELETON_LABEL_WIDTHS.length]);
|
|
197
197
|
if (orientation === "horizontal") {
|
|
198
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
198
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, HORIZONTAL_NAV_CLASS, STICKY_SECTION_NAV_HEIGHT_CLASS, className), "aria-hidden": true, inert: true, children: [
|
|
199
199
|
brand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: HORIZONTAL_BRAND_CLASS, children: brand }),
|
|
200
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
200
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, "min-w-0 flex-1 overflow-hidden", HORIZONTAL_ROW_CLASS, "content-lg:items-center"), children: widths.map((width, i) => (
|
|
201
201
|
// The pill's own box (a tab from the content `lg` step), its label a bar.
|
|
202
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
202
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, PILL_CLASS, "border-transparent"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "h6", className: width }) }, i)
|
|
203
203
|
)) }),
|
|
204
204
|
action && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: HORIZONTAL_ACTION_CLASS, children: action })
|
|
205
205
|
] });
|
|
206
206
|
}
|
|
207
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
207
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, VERTICAL_NAV_CLASS, className), "aria-hidden": true, children: [
|
|
208
208
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
209
209
|
"div",
|
|
210
210
|
{
|
|
@@ -217,7 +217,7 @@ function StickySectionNavSkeleton({
|
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
),
|
|
220
|
-
widths.map((width, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: VERTICAL_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: VERTICAL_BUTTON_SKELETON_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
220
|
+
widths.map((width, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: VERTICAL_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: VERTICAL_BUTTON_SKELETON_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "h6", className: width }) }) }, i))
|
|
221
221
|
] });
|
|
222
222
|
}
|
|
223
223
|
function useSectionNavigation(sections, options) {
|
|
@@ -396,7 +396,7 @@ function useScrollSpy(sections, options = {}) {
|
|
|
396
396
|
// src/components/navigation/multi-level-navigation.tsx
|
|
397
397
|
var _lucidereact = require('lucide-react');
|
|
398
398
|
|
|
399
|
-
var DEFAULT_FOLDER_INDEX_FILE2 =
|
|
399
|
+
var DEFAULT_FOLDER_INDEX_FILE2 = _chunkYCSX7MCGcjs.DEFAULT_FOLDER_INDEX_FILE;
|
|
400
400
|
var NAV_LIST_CLASS = "space-y-2";
|
|
401
401
|
var NAV_ITEM_CLASS = "space-y-1";
|
|
402
402
|
var NAV_ROW_FRAME_CLASS = "relative w-full rounded-lg border transition-all duration-150";
|
|
@@ -416,9 +416,9 @@ function NavigationRowSkeleton({
|
|
|
416
416
|
rowHeightClass,
|
|
417
417
|
indentClass
|
|
418
418
|
}) {
|
|
419
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
420
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
421
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
419
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, NAV_ROW_PAD_CLASS, indentClass), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, NAV_ROW_FRAME_CLASS, "border-ods-border bg-ods-card"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, _chunkNWNC22IZcjs.BUTTON_KIND_CLASS.row, rowHeightClass), children: [
|
|
420
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.MediaSkeleton.Icon, { size: "sm", className: "mr-2 flex-shrink-0" }),
|
|
421
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "h6", className: NAV_SKELETON_LABEL_WIDTHS[index % NAV_SKELETON_LABEL_WIDTHS.length] })
|
|
422
422
|
] }) }) });
|
|
423
423
|
}
|
|
424
424
|
function NavigationTreeSkeleton({
|
|
@@ -427,7 +427,7 @@ function NavigationTreeSkeleton({
|
|
|
427
427
|
indentClass,
|
|
428
428
|
className
|
|
429
429
|
}) {
|
|
430
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
430
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, NAV_LIST_CLASS, className), "aria-hidden": true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: NAV_ITEM_CLASS, "data-loading-item": true, children: [
|
|
431
431
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationRowSkeleton, { index: 0, rowHeightClass }),
|
|
432
432
|
rows > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: NAV_CHILDREN_CLASS, children: Array.from({ length: rows - 1 }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: NAV_ITEM_CLASS, "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationRowSkeleton, { index: i + 1, rowHeightClass, indentClass }) }, i)) })
|
|
433
433
|
] }) });
|
|
@@ -485,8 +485,8 @@ function MultiLevelNavigation({
|
|
|
485
485
|
className,
|
|
486
486
|
folderIndexFile = DEFAULT_FOLDER_INDEX_FILE2
|
|
487
487
|
}) {
|
|
488
|
-
if (
|
|
489
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
488
|
+
if (_chunkNWNC22IZcjs.useLoadingScope.call(void 0, ) || isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MultiLevelNavigationSkeleton, { className });
|
|
489
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, NAV_LIST_CLASS, className), role: "list", "aria-label": "Navigation list", children: nodes.map((node) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
490
490
|
NavigationItem,
|
|
491
491
|
{
|
|
492
492
|
node,
|
|
@@ -514,22 +514,22 @@ function NavigationItem({
|
|
|
514
514
|
const children = _nullishCoalesce(node.children, () => ( []));
|
|
515
515
|
const hasChildren = children.length > 0;
|
|
516
516
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: NAV_ITEM_CLASS, role: "listitem", "data-loading-item": true, children: [
|
|
517
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
517
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, NAV_ROW_PAD_CLASS, level > 0 && NAV_INDENT_CLASS.desktop), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
518
518
|
"div",
|
|
519
519
|
{
|
|
520
|
-
className:
|
|
520
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
521
521
|
NAV_ROW_FRAME_CLASS,
|
|
522
522
|
isSelected ? "border-ods-border bg-ods-border" : "border-ods-border bg-ods-card"
|
|
523
523
|
),
|
|
524
524
|
children: [
|
|
525
525
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex items-center", children: [
|
|
526
526
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
527
|
-
|
|
527
|
+
_chunkIZXVGIQXcjs.Button,
|
|
528
528
|
{
|
|
529
529
|
variant: "row",
|
|
530
530
|
"data-state": isSelected ? "active" : void 0,
|
|
531
531
|
"data-tone": "muted",
|
|
532
|
-
className:
|
|
532
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, NAV_ROW_LAYOUT_CLASS, NAV_ROW_HEIGHT.desktop),
|
|
533
533
|
onClick: () => onNodeClick(node),
|
|
534
534
|
"aria-label": `${isSelected ? "Selected" : "Select"} ${node.name}`,
|
|
535
535
|
children: [
|
|
@@ -540,7 +540,7 @@ function NavigationItem({
|
|
|
540
540
|
}
|
|
541
541
|
),
|
|
542
542
|
hasChildren && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
543
|
-
|
|
543
|
+
_chunkIZXVGIQXcjs.Button,
|
|
544
544
|
{
|
|
545
545
|
variant: "bare",
|
|
546
546
|
size: "icon-sm",
|
|
@@ -587,8 +587,8 @@ function MobileNavigationDropdown({
|
|
|
587
587
|
className,
|
|
588
588
|
folderIndexFile = DEFAULT_FOLDER_INDEX_FILE2
|
|
589
589
|
}) {
|
|
590
|
-
if (
|
|
591
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
590
|
+
if (_chunkNWNC22IZcjs.useLoadingScope.call(void 0, ) || isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MobileNavigationDropdownSkeleton, { className });
|
|
591
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, NAV_LIST_CLASS, className), children: nodes.map((node) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
592
592
|
MobileNavigationItem,
|
|
593
593
|
{
|
|
594
594
|
node,
|
|
@@ -616,22 +616,22 @@ function MobileNavigationItem({
|
|
|
616
616
|
const children = _nullishCoalesce(node.children, () => ( []));
|
|
617
617
|
const hasChildren = children.length > 0;
|
|
618
618
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: NAV_ITEM_CLASS, "data-loading-item": true, children: [
|
|
619
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
619
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, NAV_ROW_PAD_CLASS, level > 0 && NAV_INDENT_CLASS.mobile), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
620
620
|
"div",
|
|
621
621
|
{
|
|
622
|
-
className:
|
|
622
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
623
623
|
NAV_ROW_FRAME_CLASS,
|
|
624
624
|
isSelected ? "border-ods-border bg-ods-border" : "border-ods-border bg-ods-card"
|
|
625
625
|
),
|
|
626
626
|
children: [
|
|
627
627
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex items-center", children: [
|
|
628
628
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
629
|
-
|
|
629
|
+
_chunkIZXVGIQXcjs.Button,
|
|
630
630
|
{
|
|
631
631
|
variant: "row",
|
|
632
632
|
"data-state": isSelected ? "active" : void 0,
|
|
633
633
|
"data-tone": "muted",
|
|
634
|
-
className:
|
|
634
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, NAV_ROW_LAYOUT_CLASS, NAV_ROW_HEIGHT.mobile),
|
|
635
635
|
onClick: () => onNodeClick(node),
|
|
636
636
|
children: [
|
|
637
637
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "mr-2 flex-shrink-0", children: node.type === "folder" ? isExpanded ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.FolderOpen, { className: "h-4 w-4" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Folder, { className: "h-4 w-4" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.FileText, { className: "h-4 w-4" }) }),
|
|
@@ -641,7 +641,7 @@ function MobileNavigationItem({
|
|
|
641
641
|
}
|
|
642
642
|
),
|
|
643
643
|
hasChildren && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
644
|
-
|
|
644
|
+
_chunkIZXVGIQXcjs.Button,
|
|
645
645
|
{
|
|
646
646
|
variant: "bare",
|
|
647
647
|
size: "icon-sm",
|
|
@@ -5,11 +5,11 @@ var _chunkXZJCBIYRcjs = require('./chunk-XZJCBIYR.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkLCSYTFFOcjs = require('./chunk-LCSYTFFO.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkNWNC22IZcjs = require('./chunk-NWNC22IZ.cjs');
|
|
13
13
|
|
|
14
14
|
// src/components/ui/checkbox.tsx
|
|
15
15
|
var _reactcheckbox = require('@radix-ui/react-checkbox'); var CheckboxPrimitive = _interopRequireWildcard(_reactcheckbox);
|
|
@@ -18,24 +18,24 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
18
18
|
function booleanCheckedChange(handler) {
|
|
19
19
|
return handler ? (checked) => handler(checked === true) : void 0;
|
|
20
20
|
}
|
|
21
|
-
var CHECKBOX_BOX_CLASS = `${
|
|
21
|
+
var CHECKBOX_BOX_CLASS = `${_chunkLCSYTFFOcjs.CONTROL_SIZE.checkbox} shrink-0 rounded-sm`;
|
|
22
22
|
var Checkbox = _react.forwardRef.call(void 0,
|
|
23
23
|
({ className, boxClassName, indicatorClassName, onCheckedChange, loading: loadingProp, ...props }, ref) => {
|
|
24
|
-
const loading =
|
|
25
|
-
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24
|
+
const loading = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, ) || !!loadingProp;
|
|
25
|
+
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.UnifiedSkeleton, { className: _chunkNWNC22IZcjs.cn.call(void 0, CHECKBOX_BOX_CLASS, boxClassName) });
|
|
26
26
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27
27
|
CheckboxPrimitive.Root,
|
|
28
28
|
{
|
|
29
29
|
ref,
|
|
30
30
|
onCheckedChange: booleanCheckedChange(onCheckedChange),
|
|
31
|
-
className:
|
|
31
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
32
32
|
CHECKBOX_BOX_CLASS,
|
|
33
33
|
boxClassName,
|
|
34
34
|
"peer border border-ods-border bg-ods-card focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-accent focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-ods-accent data-[state=checked]:bg-ods-accent",
|
|
35
35
|
className
|
|
36
36
|
),
|
|
37
37
|
...props,
|
|
38
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CheckboxPrimitive.Indicator, { className:
|
|
38
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CheckboxPrimitive.Indicator, { className: _chunkNWNC22IZcjs.cn.call(void 0, "flex items-center justify-center text-ods-text-on-accent"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXZJCBIYRcjs.CheckboxCheckmarkIcon, { size: 10, className: indicatorClassName }) })
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
41
|
}
|